:root {
            --primary-pink: #ff4d8d;
            --primary-pink-light: #ff85b3;
            --primary-blue: #4a6cf7;
            --primary-blue-light: #85a0ff;
            --accent-gold: #ffd166;
            --text-dark: #2d3748;
            --text-light: #718096;
            --white: #ffffff;
            --light-bg: #f7fafc;
            --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
            --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            --border-radius: 12px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            line-height: 1.7;
            color: var(--text-dark);
            overflow-x: hidden;
            background-color: var(--white);
        }

        h1, h2, h3, h4, h5 {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            line-height: 1.3;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .section {
            padding: 100px 0;
        }

        .section-title {
            text-align: center;
            margin-bottom: 60px;
            font-size: 2.5rem;
            position: relative;
        }

        .section-title:after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-pink), var(--primary-blue));
            margin: 20px auto 0;
            border-radius: 2px;
        }

        .btn {
            display: inline-block;
            padding: 16px 32px;
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            text-align: center;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .btn:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0%;
            height: 100%;
            background: rgba(255, 255, 255, 0.2);
            transition: var(--transition);
            z-index: -1;
        }

        .btn:hover:before {
            width: 100%;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary-pink), var(--primary-pink-light));
            color: var(--white);
            box-shadow: 0 4px 15px rgba(255, 77, 141, 0.4);
        }

        .btn-primary:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(255, 77, 141, 0.5);
        }

        .btn-secondary {
            background: transparent;
            border: 2px solid var(--primary-pink);
            color: var(--primary-pink);
        }

        .btn-secondary:hover {
            background: var(--primary-pink);
            color: var(--white);
            transform: translateY(-5px);
        }

        .btn-large {
            padding: 18px 40px;
            font-size: 1.1rem;
        }

        /* Header */
        header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            transition: var(--transition);
        }

        .header-scrolled {
            padding: 10px 0;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.2rem 0;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-icon {
            font-size: 1.8rem;
            color: var(--primary-pink);
        }

        .logo-text {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-dark);
        }

        .logo-city {
            color: var(--primary-pink);
        }

        .header-contacts {
            display: flex;
            align-items: center;
            gap: 30px;
        }

        .phone-link {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-dark);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
        }

        .phone-link:hover {
            color: var(--primary-pink);
        }

        .phone-icon {
            font-size: 1.2rem;
            color: var(--primary-pink);
        }

        .audience-switcher {
            background: linear-gradient(135deg, var(--primary-pink), var(--primary-pink-light));
            color: var(--white);
            border: none;
            padding: 10px 20px;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 10px rgba(255, 77, 141, 0.3);
        }

        .audience-switcher:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(255, 77, 141, 0.4);
        }

        /* Gallery Section */
        .gallery-section {
            background: var(--light-bg);
            padding: 80px 0;
        }

        .gallery-container {
            position: relative;
            width: 100%;
            overflow: hidden; /* оставляем как было */
        }

        .gallery-track {
            display: flex;
            gap: 15px;
            /* FIX: убираем transform-анимацию — скроллим нативно */
            overflow-x: auto;               /* нативная прокрутка */
            scroll-behavior: smooth;        /* плавная прокрутка */
            -webkit-overflow-scrolling: touch; /* инерция на iOS */
            scroll-snap-type: x mandatory;  /* прилипаем по карточкам */
            cursor: grab;                   /* NEW: визуальный drag */
        }
        .gallery-track.dragging { cursor: grabbing; }

        /* NEW: скрываем системные полосы прокрутки, но оставляем скролл */
        .gallery-track::-webkit-scrollbar { display: none; }
        .gallery-track { -ms-overflow-style: none; scrollbar-width: none; }

        .gallery-item {
            flex: 0 0 auto;
            width: calc(100% / 6 - 13px);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            cursor: pointer;
            scroll-snap-align: start; /* FIX: для snap */
            user-select: none; /* NEW: чтобы не выделялось при drag */
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }

        .gallery-item img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
        }

        .gallery-nav {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 30px;
        }

        .gallery-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #cbd5e0;
            border: none;
            cursor: pointer;
            transition: var(--transition);
        }

        .gallery-dot.active {
            background: var(--primary-pink);
            transform: scale(1.2);
        }

        /* NEW: круглые кнопки-стрелки по бокам галереи */
        .gallery-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 52px;
            height: 52px;
            border-radius: 50%;
            border: none;
            background: var(--white);
            box-shadow: var(--shadow);
            color: var(--primary-pink);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            z-index: 5;
            opacity: 0.95;
        }
        .gallery-arrow:hover {
            transform: translateY(-50%) scale(1.06);
            box-shadow: var(--shadow-hover);
        }
        .gallery-arrow:active {
            transform: translateY(-50%) scale(0.98);
        }
        .gallery-arrow.left { left: 6px; }
        .gallery-arrow.right { right: 6px; }
        @media (max-width: 768px) {
            .gallery-arrow { width: 44px; height: 44px; }
        }

        /* Modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: var(--white);
            padding: 3rem;
            border-radius: 20px;
            text-align: center;
            max-width: 600px;
            width: 90%;
            transform: scale(0.9);
            opacity: 0;
            transition: all 0.4s ease;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
        }

        .modal-overlay.active .modal-content {
            transform: scale(1);
            opacity: 1;
        }

        .modal-title {
            margin-bottom: 2rem;
            font-size: 2rem;
            color: var(--text-dark);
        }

        .audience-options {
            display: flex;
            gap: 2rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .audience-btn {
            flex: 1;
            min-width: 200px;
            padding: 2.5rem 1.5rem;
            border: none;
            border-radius: 15px;
            font-size: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            box-shadow: var(--shadow);
        }

        .audience-btn.kids {
            background: linear-gradient(135deg, var(--primary-pink), var(--primary-pink-light));
            color: var(--white);
        }

        .audience-btn.adults {
            background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
            color: var(--white);
        }

        .audience-btn:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
        }

        .audience-icon {
            font-size: 3rem;
        }

        /* Hero Section */
        .hero {
            padding: 180px 0 120px;
            position: relative;
            overflow: hidden;
        }

        .hero:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800" opacity="0.03"><path fill="%23ff4d8d" d="M0,0 Q600,400 1200,0 L1200,800 Q600,1200 0,800 Z"/></svg>') no-repeat center center;
            background-size: cover;
            z-index: -1;
        }

        .hero.kids-audience {
            background: linear-gradient(135deg, #fff5f9 0%, #f0f8ff 100%);
        }

        .hero.adults-audience {
            background: linear-gradient(135deg, #f0f8ff 0%, #fff5f9 100%);
        }

        .hero-content {
            display: flex;
            align-items: center;
            gap: 50px;
        }

        .hero-text {
            flex: 1;
        }

        .hero-image {
            flex: 1;
            text-align: center;
        }

        .hero-image img {
            max-width: 100%;
            border-radius: 20px;
            box-shadow: var(--shadow-hover);
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
            100% { transform: translateY(0px); }
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1.5rem;
            background: linear-gradient(135deg, var(--primary-pink), var(--primary-blue));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1.2;
        }

        .hero-subtitle {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            color: var(--text-light);
            font-weight: 500;
        }

        .hero-features {
            display: flex;
            gap: 20px;
            margin: 2.5rem 0;
            flex-wrap: wrap;
        }

        .hero-feature {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--white);
            padding: 12px 20px;
            border-radius: 50px;
            box-shadow: var(--shadow);
            font-weight: 500;
        }

        .hero-feature i {
            color: var(--primary-pink);
            font-size: 1.2rem;
        }

        .cta-buttons {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        /* Programs Section */
        .programs-section {
            background: var(--light-bg);
        }

        .programs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
        }

        .program-card {
            background: var(--white);
            padding: 2.5rem 2rem;
            border-radius: var(--border-radius);
            text-align: center;
            box-shadow: var(--shadow);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .program-card:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(90deg, var(--primary-pink), var(--primary-blue));
            z-index: 2;
        }

        .program-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
        }

        .program-icon {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            color: var(--primary-pink);
        }

        .program-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .program-card p {
            color: var(--text-light);
            margin-bottom: 1.5rem;
        }

        .program-details {
            font-size: 0.9rem;
            color: var(--text-light);
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 1rem;
        }

        /* Prices Section - Исправлено: 2 карточки в ряд */
        .prices-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
        }

        .price-card {
            background: var(--white);
            padding: 2.5rem 2rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            text-align: center;
            transition: var(--transition);
            position: relative;
            border: 2px solid transparent;
        }

        .price-card.featured {
            border-color: var(--primary-pink);
            transform: scale(1.05);
            box-shadow: 0 15px 30px rgba(255, 77, 141, 0.2);
        }

        .price-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
        }

        .price-card.featured:hover {
            transform: scale(1.05) translateY(-10px);
        }

        .price-badge {
            position: absolute;
            top: -15px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, var(--primary-pink), var(--primary-pink-light));
            color: var(--white);
            padding: 8px 20px;
            border-radius: 50px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .price-period {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            color: var(--text-dark);
            font-weight: 600;
        }

        .price-amount {
            font-size: 3rem;
            font-weight: 700;
            margin: 1.5rem 0;
            color: var(--primary-pink);
            display: flex;
            align-items: flex-start;
            justify-content: center;
            gap: 5px;
        }

        .price-currency {
            font-size: 1.5rem;
            margin-top: 8px;
        }

        .price-note {
            color: var(--text-light);
            font-size: 0.9rem;
            margin-bottom: 1.5rem;
        }

        .price-features {
            list-style: none;
            margin: 2rem 0;
            text-align: left;
        }

        .price-features li {
            padding: 8px 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .price-features li i {
            color: var(--primary-pink);
        }

        /* Image Modal */
        .image-modal .form-modal-content {
            max-width: 90%;
            max-height: 90%;
            background: transparent;
            box-shadow: none;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .expanded-image {
            max-width: 100%;
            max-height: 80vh;
            border-radius: 10px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
        }

        .image-modal .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            cursor: pointer;
            transition: var(--transition);
            z-index: 10;
        }

        .image-modal .close-modal:hover {
            background: rgba(0, 0, 0, 0.7);
            transform: scale(1.1);
        }

        /* Map Section */
        .map-section {
            padding: 80px 0 0;
        }

        .map-container {
            height: 450px;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            position: relative;
        }

        .map-placeholder {
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: var(--text-dark);
            font-size: 1.2rem;
        }

        .map-placeholder i {
            font-size: 3rem;
            margin-bottom: 1rem;
            color: var(--primary-pink);
        }

        .contact-info {
            background: var(--white);
            padding: 2.5rem;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            margin-top: -100px;
            position: relative;
            z-index: 10;
            max-width: 400px;
        }

        .contact-info h3 {
            margin-bottom: 1.5rem;
            font-size: 1.5rem;
        }

        .contact-details {
            list-style: none;
        }

        .contact-details li {
            padding: 12px 0;
            display: flex;
            align-items: center;
            gap: 15px;
            border-bottom: 1px solid #e2e8f0;
        }

        .contact-details li:last-child {
            border-bottom: none;
        }

        .contact-details i {
            width: 20px;
            color: var(--primary-pink);
        }

        /* Sticky CTA */
        .sticky-cta {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: linear-gradient(135deg, var(--primary-pink), var(--primary-pink-light));
            color: var(--white);
            padding: 1.2rem 2.5rem;
            border-radius: 50px;
            box-shadow: 0 10px 25px rgba(255, 77, 141, 0.4);
            z-index: 1000;
            transform: translateY(100px);
            opacity: 0;
            transition: var(--transition);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .sticky-cta.show {
            transform: translateY(0);
            opacity: 1;
        }

        .sticky-cta:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(255, 77, 141, 0.5);
        }

        /* Form Modal */
        .form-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .form-modal.active {
            opacity: 1;
            visibility: visible;
        }

        .form-modal-content {
            background: var(--white);
            padding: 3rem;
            border-radius: 20px;
            max-width: 500px;
            width: 90%;
            transform: scale(0.9);
            opacity: 0;
            transition: all 0.4s ease;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
            position: relative;
        }

        .form-modal.active .form-modal-content {
            transform: scale(1);
            opacity: 1;
        }

        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
        }

        .close-modal:hover {
            color: var(--primary-pink);
        }

        .form-title {
            margin-bottom: 1.5rem;
            text-align: center;
            font-size: 1.8rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .form-control {
            width: 100%;
            padding: 15px 20px;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            font-size: 1rem;
            transition: var(--transition);
            font-family: 'Montserrat', sans-serif;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-pink);
            box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.1);
        }

        .checkbox-group {
            display: flex;
            align-items: flex-start;
            gap: 0.5rem;
        }

        .checkbox-group input {
            margin-top: 0.25rem;
        }

        .form-note {
            font-size: 0.9rem;
            color: var(--text-light);
            text-align: center;
            margin-top: 1.5rem;
        }

        /* Success Modal */
        .success-modal {
            text-align: center;
            padding: 2rem;
        }

        .success-icon {
            font-size: 4rem;
            color: #48bb78;
            margin-bottom: 1.5rem;
        }

        /* Footer */
        footer {
            background: var(--text-dark);
            color: var(--white);
            padding: 4rem 0 2rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }

        .footer-column h3 {
            margin-bottom: 1.5rem;
            font-size: 1.3rem;
            color: var(--white);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.8rem;
        }

        .footer-links a {
            color: #a0aec0;
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--white);
        }

        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--white);
            text-decoration: none;
            transition: var(--transition);
        }

        .social-link:hover {
            background: var(--primary-pink);
            transform: translateY(-3px);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid #4a5568;
            color: #a0aec0;
            font-size: 0.9rem;
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in {
            animation: fadeInUp 0.8s ease forwards;
        }

        .delay-1 {
            animation-delay: 0.2s;
        }

        .delay-2 {
            animation-delay: 0.4s;
        }

        .delay-3 {
            animation-delay: 0.6s;
        }

        /* NEW STYLES FOR ADDED SECTIONS */

        /* Teachers Section */
        .teachers-section {
            background: var(--light-bg);
            padding: 100px 0;
        }

        .teachers-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .teacher-card {
            background: var(--white);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .teacher-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
        }

        .teacher-image {
            width: 100%;
            
            background: linear-gradient(135deg, var(--primary-pink-light), var(--primary-blue-light));
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 4rem;
        }

        .teacher-info {
            padding: 2rem;
        }

        .teacher-name {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--text-dark);
        }

        .teacher-role {
            color: var(--primary-pink);
            font-weight: 600;
            margin-bottom: 1rem;
            display: block;
        }

        .teacher-details {
            list-style: none;
            margin-bottom: 1.5rem;
        }

        .teacher-details li {
            padding: 0.5rem 0;
            border-bottom: 1px solid #f1f1f1;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        .teacher-details li:last-child {
            border-bottom: none;
        }

        .teacher-details i {
            color: var(--primary-pink);
            margin-top: 3px;
        }

        .teacher-bio {
            color: var(--text-light);
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        /* FAQ Section */
        .faq-section {
            padding: 100px 0;
        }

        .faq-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .faq-item {
            background: var(--white);
            border-radius: var(--border-radius);
            margin-bottom: 1rem;
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .faq-question {
            padding: 1.5rem 2rem;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: var(--transition);
        }

        .faq-question:hover {
            background: #f8f9fa;
        }

        .faq-answer {
            padding: 0 2rem;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .faq-answer.active {
            padding: 0 2rem 2rem;
            max-height: 1000px;
        }

        .faq-toggle {
            color: var(--primary-pink);
            transition: var(--transition);
        }

        .faq-item.active .faq-toggle {
            transform: rotate(180deg);
        }

        /* Methodology Section */
        .methodology-section {
            padding: 100px 0;
            background: var(--light-bg);
        }

        .methodology-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .methodology-card {
            background: var(--white);
            padding: 2.5rem 2rem;
            border-radius: var(--border-radius);
            text-align: center;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .methodology-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
        }

        .methodology-icon {
            font-size: 3rem;
            margin-bottom: 1.5rem;
            color: var(--primary-pink);
        }

        .methodology-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .methodology-card p {
            color: var(--text-light);
            line-height: 1.6;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .hero-content {
                flex-direction: column;
                text-align: center;
            }

            .hero-features {
                justify-content: center;
            }

            .price-card.featured {
                transform: scale(1);
            }

            .price-card.featured:hover {
                transform: translateY(-10px);
            }

            /* На планшетах 4 фото в ряд */
            .gallery-item {
                width: calc(100% / 4 - 11px);
            }

            /* На планшетах 2 карточки цен в ряд */
            .prices-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .section {
                padding: 70px 0;
            }

            .section-title {
                font-size: 2rem;
            }

            .hero h1 {
                font-size: 2.5rem;
            }

            .hero-subtitle {
                font-size: 1.2rem;
            }

            .header-content {
                flex-wrap: wrap;
                gap: 15px;
            }

            .header-contacts {
                order: 3;
                width: 100%;
                justify-content: center;
            }

            .audience-options {
                flex-direction: column;
            }

            .audience-btn {
                min-width: 100%;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }

            .btn {
                width: 100%;
                max-width: 300px;
            }

            .contact-info {
                margin-top: 30px;
            }

            .sticky-cta {
                bottom: 1rem;
                right: 1rem;
                padding: 1rem 1.5rem;
                font-size: 0.9rem;
            }

            /* На мобильных 3 фото в ряд */
            .gallery-item {
                width: calc(100% / 3 - 10px);
            }

            /* На мобильных 1 карточка цен в ряд */
            .prices-container {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .hero {
                padding: 150px 0 80px;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .modal-content, .form-modal-content {
                padding: 2rem 1.5rem;
            }

            /* На маленьких мобильных 2 фото в ряд */
            .gallery-item {
                width: calc(100% / 2 - 7px);
            }
        }

        /* ==== iOS 18 / Mobile Safari точечные фиксы для 390–414 px ==== */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }

@media (max-width: 414px) {
  /* Шапка: раскладываем в две строки и убираем переполнение */
  header .header-content {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
  }

  .logo { min-width: 0; }
  .logo-text { 
    font-size: clamp(18px, 5.2vw, 22px);
    line-height: 1.15;
  }
  .logo-city { display: inline; }

  /* Блок контактов на всю ширину ниже бренда */
  .header-contacts {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: stretch;
  }

  .phone-link {
    font-size: 16px;
    white-space: nowrap;      /* не переносим “+7 …” */
    justify-self: start;
  }

  /* Кнопка “Сменить категорию” — ширина 100% */
  .audience-switcher {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 16px;
    min-height: 44px;         /* удобная зона тапа по HIG */
  }

  /* Герой: адаптивные размеры текста и аккуратные переносы */
  .hero { padding: 150px 0 90px; } /* чуть компактнее на узких экранах */

  .hero h1 {
    font-size: clamp(26px, 8vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    word-break: break-word;
    hyphens: auto;
    text-wrap: balance;
    text-align: center;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: clamp(16px, 4.6vw, 18px);
    line-height: 1.4;
    text-align: center;
  }

  .hero-features { justify-content: center; }
  .hero-feature { white-space: normal; }

  /* CTA-кнопки в столбик и на всю ширину */
  .cta-buttons {
  
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: stretch;
  }
  .btn { 
    width: 100%; 
    min-height: 44px;
    padding: 12px 16px;
    font-size: 16px;
  }

  /* Безопасные поля у контейнера, чтобы текст не упирался в края */
  .container { padding-left: 16px; padding-right: 16px; }

  /* Галерея: не даём ей “выпирать”, скролл остаётся внутри трека */
  .gallery-container { overflow: hidden; }
  .gallery-track {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .gallery-track > * { scroll-snap-align: start; }

  /* Карточки цен: убираем scale на узких, чтобы не вызывать горизонтальный скролл */
  .price-card.featured { 
    transform: none !important; 
    box-shadow: var(--shadow); 
  }
  .price-card.featured:hover {
    transform: translateY(-10px);
  }
}

/* ==== Compact mobile header layout (Android 360–400px) ==== */
@media (max-width: 400px) {
  /* Делаем из шапки 2 строки: 
     row1 — логотип на всю ширину, 
     row2 — телефон (слева) + кнопка (справа) */
  header .header-content{
    display: grid !important;
    grid-template-columns: 1fr auto;
    grid-auto-rows: min-content;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
  }

  /* Строка 1 — бренд */
  header .logo{
    grid-column: 1 / -1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  header .logo-text{
    font-size: clamp(18px, 5vw, 20px);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  header .logo-city{
    display: inline;
  }

  /* Строка 2 — телефон слева */
  header .header-contacts{
    grid-column: 1 / 2;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  header .phone-link{
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap; /* исключаем перенос номера */
  }

  /* Строка 2 — кнопка справа */
  header .audience-switcher{
    grid-column: 2 / 3;
    justify-self: end;
    width: auto;               /* не на всю ширину */
    min-height: 40px;
    padding: 10px 14px;
    font-size: 11px;
    border-radius: 20px;
    box-shadow: 0 10px 22px rgba(255,77,141,.25);
  }
  header .audience-switcher .icon{ width: 16px; height: 16px; }

  /* Чуть меньше «воздуха» под шапкой */
  .hero { padding-top: 150px; }

   .header-scrolled{
padding: 0px;

  }

header .header-content{
gap: 0px;
        padding: 0px 0;

}

        .sticky-cta{        padding: 0.7rem 0.7rem;}

}

/* ==== Compact mobile header layout (Android 360–400px) ==== */
@media (max-width: 380px) {
 /* Строка 2 — кнопка справа */
  header .audience-switcher{
    grid-column: 2 / 3;
    justify-self: end;
    width: auto;               /* не на всю ширину */
    min-height: 40px;
    padding: 10px 14px;
    font-size: 9px;
    border-radius: 20px;
    box-shadow: 0 10px 22px rgba(255,77,141,.25);
  }

  .header-scrolled{
padding: 0px;

  }

header .header-content{
gap: 0px;
        padding: 0px 0;

}

        .sticky-cta{        padding: 0.7rem 0.7rem;}

} 

/* === Твои добавленные стили ранее (оставляю без изменений) === */
.sticky-cta-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 9999;
}

.sticky-cta {
    background: var(--primary-pink);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.sticky-cta:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.whatsapp-btn {
    background-color: #25D366; /* фирменный зелёный WhatsApp */
}

.whatsapp-btn:hover {
    background-color: #1ebe5d;
}

/* ============================================================
   ДОБАВЛЕНО: Надёжные переопределения для пары кнопок в обёртке
   — ПК: блок поднят выше, кнопки в столбик
   — Мобила: кнопки в ряд, внизу справа
   — Снимаем старый fixed/opacity/transform у .sticky-cta внутри враппера
   ============================================================ */

.sticky-cta-wrapper {
  position: fixed;
  right: 20px;
  bottom: 120px;              /* ПК: "поставить выше" */
  display: flex;
  flex-direction: column;     /* ПК: в столбик */
  gap: 12px;
  z-index: 9999;
}

.sticky-cta-wrapper .sticky-cta {
  position: static !important;   /* снимаем ранний position:fixed */
  bottom: auto !important;
  right: auto !important;
  transform: none !important;    /* убираем translateY(100px) */
  opacity: 1 !important;         /* делаем видимой */
}

/* Брендирование WhatsApp в обёртке (дублируем специально ближе к override-блоку) */
.sticky-cta-wrapper .whatsapp-btn { background-color: #25D366; }
.sticky-cta-wrapper .whatsapp-btn:hover { background-color: #1ebe5d; }

/* Мобила: кнопки рядом и ниже */
@media (max-width: 768px) {
  .sticky-cta-wrapper {
    bottom: 16px;            /* ниже на мобиле */
    right: 16px;
    flex-direction: row;     /* в ряд */
    gap: 10px;
  }

  .sticky-cta-wrapper .sticky-cta {
    padding: 12px 16px;
    font-size: 14px;
  }
}


/* Фикс: на ПК кнопки не растягиваем, ширина — по содержимому */
.sticky-cta-wrapper {
  align-items: flex-end; /* было stretch по умолчанию */
}

/* На мобиле (кнопки в ряд) выравниваем по центру по высоте */
@media (max-width: 768px) {
  .sticky-cta-wrapper {
    align-items: center;
  }
}
