/* ============================================
   Общие стили и переменные
   ============================================ */
:root {
    --primary-color: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --secondary-color: #DDD6FE;
    --accent-color: #EDE9FE;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --error-color: #EF4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-primary: 0 10px 30px -5px rgba(139, 92, 246, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

/* Плавная анимация изменения цветов при смене темы */
* {
    transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Исключаем некоторые элементы из анимации для лучшей производительности */
img, svg, video, iframe {
    transition: none !important;
}

/* Специальная анимация для градиентов */
.theme-transitioning * {
    transition-duration: 0.8s !important;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* ============================================
   Навигация
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
    position: relative;
}

@media (max-width: 768px) {
    .nav-content {
        gap: 1rem;
    }
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .nav-btn {
        display: none;
    }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   Кнопки
   ============================================ */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-primary);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* ============================================
   Hero секция
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 6rem;
    background: linear-gradient(135deg, #F9FAFB 0%, #EDE9FE 50%, #DDD6FE 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(139, 92, 246, 0.15), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(167, 139, 250, 0.15), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(139, 92, 246, 0.1), transparent);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-position: 0% 0%, 100% 100%, 50% 50%;
    animation: particles 20s linear infinite;
    z-index: 0;
}

@keyframes particles {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

/* Анимированные кофейни по бокам */
.hero-coffee-left,
.hero-coffee-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 400px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
    overflow: visible;
}

.hero-coffee-left {
    left: -150px;
}

.hero-coffee-right {
    right: -150px;
}

.floating-coffee {
    width: auto;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
    animation: floatCoffee 8s ease-in-out infinite;
}

.hero-coffee-right .floating-coffee {
    animation: floatCoffeeReverse 8s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes floatCoffee {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) translateX(20px) rotate(2deg) scale(1.05);
    }
    50% {
        transform: translateY(-60px) translateX(0) rotate(0deg) scale(1.1);
    }
    75% {
        transform: translateY(-30px) translateX(-20px) rotate(-2deg) scale(1.05);
    }
}

@keyframes floatCoffeeReverse {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) translateX(-20px) rotate(-2deg) scale(1.05);
    }
    50% {
        transform: translateY(-60px) translateX(0) rotate(0deg) scale(1.1);
    }
    75% {
        transform: translateY(-30px) translateX(20px) rotate(2deg) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 1rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-primary);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-buttons button {
    width: auto;
    padding: 1rem 3rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.mouse {
    width: 32px;
    height: 52px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0); 
    }
    50% { 
        opacity: 0.3; 
        transform: translateX(-50%) translateY(15px); 
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Секции
   ============================================ */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   О нас
   ============================================ */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .lead {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.about-text p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-light), var(--accent-color));
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-light);
    font-weight: 500;
}

.about-image {
    position: relative;
}

/* Слайдер изображений */
.image-slider {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-light);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    position: relative;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-xl), var(--shadow-primary);
}

.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-arrow-prev {
    left: 1rem;
}

.slider-arrow-next {
    right: 1rem;
}

.slider-arrow svg {
    width: 24px;
    height: 24px;
}

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    backdrop-filter: blur(10px);
}

.slider-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.slider-dots .dot.active {
    background: white;
    border-color: white;
    width: 32px;
    border-radius: 6px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

/* ============================================
   Преимущества
   ============================================ */
.advantages {
    background: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: var(--transition);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.advantage-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1) rotate(5deg);
}

.advantage-card h3 {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ============================================
   Форматы
   ============================================ */
.formats {
    background: var(--bg-white);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 1200px) {
    .formats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.format-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.format-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.format-card.featured {
    border-color: var(--primary-color);
    border-width: 3px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.02), rgba(167, 139, 250, 0.02));
}

.format-badge-popular {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-primary);
}

.format-header {
    margin-bottom: 2rem;
}

.format-header h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 800;
}

.format-badge {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.format-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.format-specs {
    margin-bottom: 2rem;
    flex: 1;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

@media (max-width: 480px) {
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .spec-value {
        text-align: left;
    }
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.spec-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.125rem;
    text-align: right;
    word-break: break-word;
}

.format-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.format-features li {
    padding: 0.625rem 0;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   Калькулятор
   ============================================ */
.calculator-section {
    background: linear-gradient(135deg, var(--bg-light), var(--accent-color));
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    margin-top: 3rem;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .calculator-section {
        padding: 2rem;
    }
}

.calculator-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
    font-weight: 800;
}

.calculator {
    max-width: 900px;
    margin: 0 auto;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.calc-group {
    display: flex;
    flex-direction: column;
}

.calc-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.calc-input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
    font-family: inherit;
}

.calc-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.calculator-result {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .calculator-result {
        grid-template-columns: repeat(3, 1fr);
    }
}

.result-item {
    text-align: center;
}

.result-label {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.result-value {
    display: block;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 800;
    color: var(--primary-color);
    word-break: break-word;
    line-height: 1.3;
}

/* ============================================
   Стоимость
   ============================================ */
.cost {
    background: var(--bg-light);
}

.cost-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .cost-content {
        grid-template-columns: 1.8fr 1fr;
        gap: 2.5rem;
    }
}

.cost-breakdown {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .cost-breakdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.cost-item {
    background: var(--bg-white);
    padding: 1.75rem;
    border-radius: var(--border-radius-xl);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 92, 246, 0.08);
    position: relative;
    overflow: hidden;
}

.cost-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cost-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.2);
}

.cost-item:hover::before {
    transform: scaleX(1);
}

.cost-item-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.cost-icon {
    font-size: 2.25rem;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.1));
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.cost-item:hover .cost-icon {
    transform: scale(1.1);
}

.cost-details {
    flex: 1;
    min-width: 0;
}

.cost-details h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

.cost-amount {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    display: inline-block;
}

.cost-description {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin: 0;
}

.cost-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 992px) {
    .cost-summary {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.summary-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #9333EA 50%, var(--primary-light) 100%);
    color: white;
    padding: 2.25rem 2rem;
    border-radius: var(--border-radius-xl);
    text-align: center;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.35);
}

.summary-card:hover::before {
    opacity: 1;
}

.summary-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    opacity: 0.95;
    letter-spacing: 0.01em;
}

.summary-amount {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.summary-card p {
    opacity: 0.9;
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* ============================================
   Франшиза пакеты
   ============================================ */
.franchise-packages {
    background: var(--bg-light);
}

.franchise-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .franchise-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.franchise-package-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 2px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.franchise-package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.franchise-package-card.featured {
    border-color: var(--primary-color);
    border-width: 3px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.02), rgba(167, 139, 250, 0.02));
}

.package-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.package-header h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 800;
}

.package-price {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.price-value {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--primary-color);
}

.package-royalty {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.royalty-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.royalty-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.royalty-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.package-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-content h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.package-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
}

.package-features li {
    padding: 0.75rem 0;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
}

.package-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.125rem;
}

.package-features li.feature-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.feature-note {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-weight: 400;
    font-style: italic;
    opacity: 0.8;
}

.package-note {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin-top: 1.5rem;
}

.package-note p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
}

.formats-note {
    background: linear-gradient(135deg, var(--accent-color), var(--bg-light));
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.note-text {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.8;
    text-align: center;
    margin: 0;
}

.design-section {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: var(--border-radius-xl);
    margin-top: 3rem;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .design-section {
        padding: 2rem;
    }
}

.design-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
    font-weight: 800;
}

.design-colors h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    text-align: center;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .colors-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.color-item {
    aspect-ratio: 1;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.color-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.color-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.color-item:hover::before {
    width: 300px;
    height: 300px;
}

.color-item.active {
    border-color: var(--primary-color);
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2), var(--shadow-xl);
    transform: scale(1.1);
}

.color-item.active::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    animation: checkmark 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.color-item span {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-dark);
    box-shadow: var(--shadow);
}

.design-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   Франшиза
   ============================================ */
.franchise {
    background: var(--bg-white);
}

.franchise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.franchise-item {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.franchise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    transform: scaleY(0);
    transition: var(--transition);
}

.franchise-item:hover::before {
    transform: scaleY(1);
}

.franchise-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.franchise-number {
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary-color);
    opacity: 0.15;
    position: absolute;
    top: 1rem;
    right: 1rem;
    line-height: 1;
}

.franchise-item h3 {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.franchise-item ul {
    list-style: none;
    position: relative;
    z-index: 1;
}

.franchise-item li {
    padding: 0.625rem 0;
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.franchise-item li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* ============================================
   Поддержка
   ============================================ */
.support {
    background: var(--bg-light);
}

.support-timeline {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    bottom: -40px;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    opacity: 0.3;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-marker {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: var(--shadow-primary);
}

.timeline-content {
    flex: 1;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 800;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    padding: 0.625rem 0;
    color: var(--text-light);
    padding-left: 2rem;
    position: relative;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.timeline-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.125rem;
}

/* ============================================
   Галерея
   ============================================ */
.gallery {
    background: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.gallery-placeholder-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 1.5rem;
}

.gallery-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-text {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.gallery-location {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 0.25rem;
}

.gallery-format {
    font-size: 0.875rem;
    opacity: 0.85;
    font-weight: 500;
}

.gallery-note {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
    margin-top: 2rem;
}

.gallery-note .note-text {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0;
    text-align: left;
}

.gallery-note code {
    background: rgba(139, 92, 246, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.locations-badge {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--bg-light));
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

.locations-badge strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* ============================================
   Кейсы
   ============================================ */
.cases {
    background: var(--bg-white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

@media (min-width: 1200px) {
    .cases-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.case-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
}

.case-header h3 {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-dark);
    font-weight: 700;
}

.case-location {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 700;
    white-space: nowrap;
}

.case-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.case-stat {
    flex: 1;
    text-align: center;
    padding: 1.25rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    display: block;
    font-size: clamp(1rem, 2vw, 1.375rem);
    font-weight: 800;
    color: var(--primary-color);
}

.case-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
    font-size: 0.9375rem;
}

.case-author {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

/* ============================================
   Отзывы
   ============================================ */
.reviews {
    background: var(--bg-light);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.review-stars {
    color: #FBBF24;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.review-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    font-size: 0.9375rem;
}

.review-author {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.author-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
    font-size: 1.125rem;
}

.author-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ============================================
   Услуги
   ============================================ */
.services {
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.service-price {
    font-size: clamp(1.25rem, 2.5vw, 1.875rem);
    font-weight: 900;
    color: var(--primary-color);
}

/* ============================================
   Форма обратной связи
   ============================================ */
.contact-form {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-content {
    background: var(--bg-white);
    padding: 3.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
}

.form-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 800;
}

.form-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.0625rem;
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.form-group input,
.form-group select {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: var(--error-color);
}

.form-error {
    color: var(--error-color);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    display: none;
}

.form-error.show {
    display: block;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: normal;
    font-size: 0.9375rem;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    position: relative;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
}

.form-success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.form-success h3 {
    font-size: 1.875rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 800;
}

.form-success p {
    color: var(--text-light);
    font-size: 1.0625rem;
}

/* ============================================
   Контакты
   ============================================ */
.contacts {
    background: var(--bg-white);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.contact-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-item h3 {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: var(--transition);
    display: inline-block;
}

.contact-item a:hover {
    text-decoration: underline;
    transform: scale(1.05);
}

.contact-item p {
    color: var(--text-light);
    margin-top: 0.75rem;
    font-size: 0.9375rem;
}

.contact-item address {
    font-style: normal;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

/* ============================================
   Футер
   ============================================ */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-light), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.9375rem;
}

.footer-section h4 {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9375rem;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: white;
}

/* ============================================
   Адаптивность
   ============================================ */
@media (max-width: 1024px) {
    .advantages-grid,
    .franchise-grid,
    .cases-grid,
    .reviews-grid,
    .services-grid,
    .contacts-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .formats-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .franchise-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .cost-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Предотвращение горизонтального скролла */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Навигация */
    .nav-content {
        padding: 0.875rem 0;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
        gap: 1rem;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 0.75rem 0;
        font-size: 1rem;
        width: 100%;
        display: block;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-btn {
        display: none;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    /* Hero секция */
    .hero {
        padding-bottom: 5rem;
        min-height: auto;
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-coffee-left,
    .hero-coffee-right {
        width: 300px;
        opacity: 0.1;
    }
    
    .hero-coffee-left {
        left: -120px;
    }
    
    .hero-coffee-right {
        right: -120px;
    }
    
    .hero-content {
        margin-bottom: 3rem;
        padding: 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons button {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .image-slider {
        height: 400px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .slider-arrow-prev {
        left: 0.5rem;
    }
    
    .slider-arrow-next {
        right: 0.5rem;
    }
    
    .advantages-grid,
    .franchise-grid,
    .cases-grid,
    .reviews-grid,
    .services-grid,
    .contacts-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .formats-grid,
    .franchise-packages-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calculator-inputs,
    .calculator-result {
        grid-template-columns: 1fr;
    }
    
    .cost-content {
        gap: 2rem;
    }
    
    .cost-breakdown {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cost-item {
        padding: 1.5rem;
    }
    
    .cost-icon {
        width: 56px;
        height: 56px;
        font-size: 1.875rem;
    }
    
    .cost-item-header {
        gap: 1rem;
    }
    
    .cost-summary {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .format-card,
    .franchise-package-card,
    .advantage-card,
    .service-card,
    .contact-item {
        padding: 1.75rem;
    }
    
    .format-badge-popular {
        top: -12px;
        right: 25px;
        padding: 0.4rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .summary-card {
        min-height: auto;
        padding: 1.75rem 1.5rem;
    }
    
    .summary-amount {
        font-size: 1.75rem;
    }
    
    /* Предотвращение переполнения */
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    
    /* Исправление для длинных слов */
    .spec-value,
    .result-value,
    .cost-amount,
    .summary-amount,
    .price-value {
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    /* Форма */
    .form-content {
        padding: 2rem;
    }
    
    .form-group input,
    .form-group select {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* Предотвращает зум на iOS */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    html {
        font-size: 14px;
    }
    
    /* Hero секция */
    .hero {
        padding-bottom: 5rem;
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-coffee-left,
    .hero-coffee-right {
        display: none;
    }
    
    .hero-content {
        margin-bottom: 2.5rem;
        padding: 0.5rem;
    }
    
    .hero-features {
        gap: 0.75rem;
    }
    
    .feature-item {
        font-size: 0.875rem;
    }
    
    .feature-icon {
        width: 28px;
        height: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons button {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .scroll-indicator {
        bottom: 0.5rem;
    }
    
    .scroll-text {
        font-size: 0.7rem;
    }
    
    .mouse {
        width: 28px;
        height: 45px;
    }
    
    /* Секции */
    section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9375rem;
    }
    
    /* Статистика */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Карточки */
    .advantage-card,
    .format-card,
    .franchise-package-card,
    .service-card,
    .contact-item {
        padding: 1.5rem;
    }
    
    .format-badge-popular {
        top: -12px;
        right: 20px;
        padding: 0.375rem 1rem;
        font-size: 0.75rem;
    }
    
    .spec-item {
        padding: 0.75rem 0;
        font-size: 0.875rem;
    }
    
    .spec-value {
        font-size: 1rem;
    }
    
    /* Калькулятор */
    .calculator-section {
        padding: 1.5rem;
    }
    
    .calculator-title {
        font-size: 1.25rem;
    }
    
    .calculator-result {
        padding: 1.5rem;
    }
    
    .result-value {
        font-size: 1.125rem;
    }
    
    /* Стоимость */
    .cost-item {
        padding: 1.25rem;
    }
    
    .cost-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .cost-amount {
        font-size: 1.25rem;
    }
    
    .summary-card {
        padding: 1.5rem 1.25rem;
    }
    
    .summary-amount {
        font-size: 1.5rem;
    }
    
    /* Форма */
    .form-content {
        padding: 1.5rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-subtitle {
        font-size: 0.9375rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.875rem;
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    
    /* Timeline */
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-marker {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-item::after {
        display: none;
    }
    
    /* Футер */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* Общие исправления */
    * {
        max-width: 100%;
    }
    
    p, li, span {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* ============================================
   Утилиты и анимации
   ============================================ */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

