:root {
            --primary: #E63946;
            --primary-dark: #C1121F;
            --secondary: #1D3557;
            --accent: #F4A261;
            --bg-cream: #FDF8F4;
            --bg-dark: #0D1B2A;
            --text-dark: #1B2838;
            --text-light: #F1FAEE;
            --gradient-warm: linear-gradient(135deg, #E63946 0%, #F4A261 100%);
            --gradient-cool: linear-gradient(135deg, #1D3557 0%, #457B9D 100%);
            --shadow-soft: 0 4px 24px rgba(29, 53, 87, 0.08);
            --shadow-medium: 0 8px 40px rgba(29, 53, 87, 0.12);
            --shadow-strong: 0 16px 64px rgba(29, 53, 87, 0.16);
            --radius-sm: 8px;
            --radius-md: 16px;
            --radius-lg: 24px;
            --radius-xl: 32px;
        }

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

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

        body {
            font-family: 'Onest', sans-serif;
            background: var(--bg-cream);
            color: var(--text-dark);
            line-height: 1.7;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
        }

        body.menu-open {
            overflow: hidden;
        }

        h1, h2, h3, h4 {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            line-height: 1.2;
        }

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

        /* Navigation */
        .nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 16px 0;
            transition: all 0.3s ease;
        }

        .nav.scrolled {
            background: rgba(253, 248, 244, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: var(--shadow-soft);
        }

        .nav-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-family: 'Playfair Display', serif;
            font-size: 24px;
            font-weight: 700;
            color: var(--secondary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 1001;
        }

        .logo-icon {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            object-fit: cover;
        }

        .nav-links {
            display: flex;
            gap: 32px;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-dark);
            text-decoration: none;
            font-weight: 500;
            font-size: 15px;
            transition: color 0.3s ease;
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .nav-cta {
            background: var(--gradient-warm);
            color: white;
            padding: 12px 28px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .nav-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(230, 57, 70, 0.3);
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            z-index: 1001;
            width: 40px;
            height: 40px;
            position: relative;
            -webkit-tap-highlight-color: transparent;
        }

        .mobile-menu-btn span {
            display: block;
            width: 24px;
            height: 3px;
            background: var(--secondary);
            border-radius: 2px;
            position: absolute;
            left: 8px;
            transition: all 0.3s ease;
        }

        .mobile-menu-btn span:nth-child(1) { top: 10px; }
        .mobile-menu-btn span:nth-child(2) { top: 18px; }
        .mobile-menu-btn span:nth-child(3) { top: 26px; }

        .mobile-menu-btn.active span:nth-child(1) {
            top: 18px;
            transform: rotate(45deg);
        }

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

        .mobile-menu-btn.active span:nth-child(3) {
            top: 18px;
            transform: rotate(-45deg);
        }

        .mobile-menu {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg-cream);
            z-index: 999;
            padding: 100px 24px 40px;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 32px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .mobile-menu.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-menu a {
            font-size: 24px;
            font-weight: 600;
            color: var(--secondary);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .mobile-menu a:hover { color: var(--primary); }

        .mobile-menu .nav-cta {
            margin-top: 16px;
            padding: 16px 40px;
            font-size: 16px;
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            padding: 120px 0 80px;
            overflow: hidden;
        }

        .hero-pattern {
            position: absolute;
            top: 20%;
            right: 5%;
            width: 400px;
            height: 400px;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E63946' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            z-index: 0;
        }

        .hero-content {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: center;
        }

        .hero-text { max-width: 600px; }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(230, 57, 70, 0.1);
            color: var(--primary);
            padding: 8px 20px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 24px;
            animation: fadeInUp 0.8s ease;
        }

        .hero-badge::before { content: '🇹🇷'; }

        .hero h1 {
            font-size: clamp(42px, 5vw, 64px);
            color: var(--secondary);
            margin-bottom: 24px;
            animation: fadeInUp 0.8s ease 0.1s both;
        }

        .hero h1 span {
            background: var(--gradient-warm);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-description {
            font-size: 18px;
            color: #5A6B7D;
            margin-bottom: 40px;
            animation: fadeInUp 0.8s ease 0.2s both;
        }

        .hero-cta {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            animation: fadeInUp 0.8s ease 0.3s both;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 16px 32px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 16px;
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            border: none;
        }

        .btn-primary {
            background: var(--gradient-warm);
            color: white;
            box-shadow: 0 8px 24px rgba(230, 57, 70, 0.25);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 32px rgba(230, 57, 70, 0.35);
        }

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

        .btn-secondary:hover {
            background: var(--secondary);
            color: white;
        }

        .btn-whatsapp {
            background: #25D366;
            color: white;
            box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
        }

        .btn-whatsapp:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 32px rgba(37, 211, 102, 0.35);
        }

        .btn-telegram {
            background: #0088cc;
            color: white;
            box-shadow: 0 8px 24px rgba(0, 136, 204, 0.25);
        }

        .btn-telegram:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 32px rgba(0, 136, 204, 0.35);
        }

        .hero-stats {
            display: flex;
            gap: 40px;
            margin-top: 48px;
            animation: fadeInUp 0.8s ease 0.4s both;
        }

        .stat { text-align: center; }

        .stat-number {
            font-family: 'Playfair Display', serif;
            font-size: 42px;
            font-weight: 700;
            color: var(--primary);
        }

        .stat-label {
            font-size: 14px;
            color: #5A6B7D;
            margin-top: 4px;
        }

        .hero-visual {
            position: relative;
            animation: fadeInRight 1s ease 0.3s both;
        }

        .hero-image {
            width: 100%;
            max-width: 500px;
            height: 600px;
            background: var(--gradient-cool);
            border-radius: var(--radius-xl);
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-strong);
        }

        .hero-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ctext y='.9em' font-size='90'%3E🎓%3C/text%3E%3C/svg%3E") center/50% no-repeat;
            opacity: 0.2;
        }

        .hero-card {
            position: absolute;
            background: white;
            border-radius: var(--radius-md);
            padding: 16px;
            box-shadow: var(--shadow-medium);
            animation: float 3s ease-in-out infinite;
            max-width: 160px;
        }

        .hero-card-1 { top: 24px; right: -18px; animation-delay: 0s; }
        .hero-card-2 { bottom: 24px; left: -18px; animation-delay: 1s; }

        .hero-card-icon {
            width: 40px;
            height: 40px;
            background: var(--gradient-warm);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            margin-bottom: 10px;
        }

        .hero-card h4 {
            font-family: 'Onest', sans-serif;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-dark);
        }

        .hero-card p {
            font-size: 11px;
            color: #5A6B7D;
            margin-top: 2px;
        }

        /* Services Section */
        .services {
            padding: 120px 0;
            background: white;
            position: relative;
        }

        .section-header {
            text-align: center;
            max-width: 700px;
            margin: 0 auto 64px;
        }

        .section-tag {
            display: inline-block;
            background: rgba(230, 57, 70, 0.1);
            color: var(--primary);
            padding: 6px 16px;
            border-radius: 50px;
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 16px;
        }

        .section-title {
            font-size: clamp(32px, 4vw, 48px);
            color: var(--secondary);
            margin-bottom: 16px;
        }

        .section-subtitle {
            font-size: 18px;
            color: #5A6B7D;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 32px;
        }

        .service-card {
            background: var(--bg-cream);
            border-radius: var(--radius-lg);
            padding: 40px;
            position: relative;
            overflow: hidden;
            transition: all 0.4s ease;
            border: 1px solid transparent;
        }

        .service-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-strong);
            border-color: rgba(230, 57, 70, 0.2);
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--gradient-warm);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

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

        .service-number {
            position: absolute;
            top: 20px;
            right: 20px;
            font-family: 'Playfair Display', serif;
            font-size: 64px;
            font-weight: 700;
            color: var(--secondary);
            opacity: 0.05;
        }

        .service-icon {
            width: 64px;
            height: 64px;
            background: var(--gradient-warm);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            margin-bottom: 24px;
        }

        .service-card h3 {
            font-size: 24px;
            color: var(--secondary);
            margin-bottom: 16px;
        }

        .service-card > p {
            color: #5A6B7D;
            margin-bottom: 24px;
            line-height: 1.8;
        }

        .service-features {
            list-style: none;
            margin-bottom: 24px;
        }

        .service-features li {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 8px 0;
            font-size: 15px;
            color: var(--text-dark);
        }

        .service-features li::before {
            content: '✓';
            color: var(--primary);
            font-weight: 700;
            flex-shrink: 0;
        }

        .service-price {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-top: 24px;
            border-top: 1px solid rgba(29, 53, 87, 0.1);
        }

        .price {
            font-family: 'Playfair Display', serif;
            font-size: 32px;
            font-weight: 700;
            color: var(--primary);
        }

        .price span {
            font-family: 'Onest', sans-serif;
            font-size: 14px;
            font-weight: 400;
            color: #5A6B7D;
        }

        .service-cta {
            padding: 12px 24px;
            border-radius: 50px;
            background: var(--secondary);
            color: white;
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .service-cta:hover {
            background: var(--primary);
            transform: scale(1.05);
        }

        .service-card.featured {
            grid-column: span 2;
            background: var(--gradient-cool);
            color: white;
        }

        .service-card.featured .service-number { color: white; opacity: 0.1; }
        .service-card.featured h3,
        .service-card.featured p,
        .service-card.featured .service-features li { color: white; }
        .service-card.featured .service-features li::before { color: var(--accent); }
        .service-card.featured .service-price { border-top-color: rgba(255, 255, 255, 0.2); }
        .service-card.featured .price { color: var(--accent); }
        .service-card.featured .price span { color: rgba(255, 255, 255, 0.7); }
        .service-card.featured .service-cta { background: var(--accent); color: var(--secondary); }

        .featured-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(244, 162, 97, 0.2);
            color: var(--accent);
            padding: 6px 16px;
            border-radius: 50px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 16px;
        }

        .featured-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
            margin-bottom: 24px;
        }

        .featured-item h4 {
            font-family: 'Onest', sans-serif;
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--accent);
        }

        .featured-item p { font-size: 14px; opacity: 0.9; }

        /* Team Section */
        .team {
            padding: 120px 0;
            background: var(--bg-cream);
            position: relative;
            overflow: hidden;
        }

        .team::before {
            content: '';
            position: absolute;
            top: -200px;
            left: -200px;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(230, 57, 70, 0.05) 0%, transparent 70%);
            z-index: 0;
        }

        .team .container { position: relative; z-index: 1; }

        .team-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 24px;
        }

        .team-card {
            text-align: center;
            background: white;
            border-radius: var(--radius-lg);
            padding: 32px 20px;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .team-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-warm);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .team-card:hover::before { transform: scaleX(1); }
        .team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-strong); }

        .team-photo {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            background: var(--gradient-cool);
            margin: 0 auto 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 64px;
            color: white;
            position: relative;
            overflow: hidden;
            border: 4px solid white;
            box-shadow: 0 8px 32px rgba(29, 53, 87, 0.15);
        }

        .team-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center 20%;
        }

        .team-card h4 { font-size: 18px; color: var(--secondary); margin-bottom: 4px; }

        .team-role {
            font-size: 12px;
            color: var(--primary);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 12px;
        }

        .team-description { font-size: 13px; color: #5A6B7D; line-height: 1.6; }

        .team-card.director { background: var(--secondary); color: white; }
        .team-card.director h4 { color: white; }
        .team-card.director .team-role { color: var(--accent); }
        .team-card.director .team-description { color: rgba(255, 255, 255, 0.8); }
        .team-card.director .team-photo { background: var(--gradient-warm); border: 4px solid var(--accent); }

        /* Methodology Section */
        .methodology {
            padding: 120px 0;
            background: var(--bg-dark);
            color: white;
            position: relative;
            overflow: hidden;
        }

        .methodology::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 50%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F4A261' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            z-index: 0;
        }

        .methodology .container { position: relative; z-index: 1; }
        .methodology .section-tag { background: rgba(244, 162, 97, 0.2); color: var(--accent); }
        .methodology .section-title { color: white; }
        .methodology .section-subtitle { color: rgba(255, 255, 255, 0.7); }

        .method-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 32px;
        }

        .method-card {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: var(--radius-lg);
            padding: 40px;
            text-align: center;
            transition: all 0.4s ease;
        }

        .method-card:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-8px);
            border-color: var(--accent);
        }

        .method-icon {
            width: 80px;
            height: 80px;
            background: var(--gradient-warm);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            margin: 0 auto 24px;
        }

        .method-card h3 { font-size: 22px; margin-bottom: 12px; color: white; }
        .method-card p { color: rgba(255, 255, 255, 0.7); font-size: 15px; }

        /* Steps Section */
        .steps { padding: 120px 0; background: white; }

        .steps-timeline {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 32px;
            position: relative;
        }

        .steps-timeline::before {
            content: '';
            position: absolute;
            top: 50px;
            left: 12.5%;
            right: 12.5%;
            height: 3px;
            background: var(--gradient-warm);
            z-index: 0;
        }

        .step-card { text-align: center; position: relative; z-index: 1; }

        .step-number {
            width: 100px;
            height: 100px;
            background: white;
            border: 4px solid var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Playfair Display', serif;
            font-size: 36px;
            font-weight: 700;
            color: var(--primary);
            margin: 0 auto 24px;
            transition: all 0.3s ease;
        }

        .step-card:hover .step-number {
            background: var(--gradient-warm);
            color: white;
            transform: scale(1.1);
        }

        .step-card h3 { font-size: 20px; color: var(--secondary); margin-bottom: 12px; }
        .step-card p { color: #5A6B7D; font-size: 15px; }

        /* Advantages Section */
        .advantages { padding: 120px 0; background: var(--bg-cream); }

        .advantages-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
        }

        .advantage-card {
            background: white;
            border-radius: var(--radius-lg);
            padding: 32px;
            text-align: center;
            transition: all 0.4s ease;
            border: 2px solid transparent;
        }

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

        .advantage-icon {
            width: 72px;
            height: 72px;
            background: rgba(230, 57, 70, 0.1);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            margin: 0 auto 20px;
            transition: all 0.3s ease;
        }

        .advantage-card:hover .advantage-icon { background: var(--gradient-warm); }
        .advantage-card h4 { font-size: 18px; color: var(--secondary); margin-bottom: 8px; }
        .advantage-card p { font-size: 14px; color: #5A6B7D; }

        /* FAQ Section - Using native details/summary for iOS */
        .faq { padding: 120px 0; background: white; }

        .faq-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
            max-width: 1000px;
            margin: 0 auto;
        }

        .faq-item {
            background: var(--bg-cream);
            border-radius: var(--radius-md);
            overflow: hidden;
            border: 1px solid transparent;
            transition: border-color 0.3s ease;
        }

        .faq-item:hover { border-color: var(--primary); }

        .faq-item summary {
            padding: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            font-weight: 600;
            color: var(--secondary);
            transition: color 0.3s ease;
            list-style: none;
            -webkit-tap-highlight-color: transparent;
            user-select: none;
        }

        .faq-item summary::-webkit-details-marker { display: none; }
        .faq-item summary::marker { display: none; }

        .faq-item summary:hover { color: var(--primary); }

        .faq-icon {
            width: 32px;
            height: 32px;
            min-width: 32px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            font-weight: 400;
            transition: transform 0.3s ease;
        }

        .faq-item[open] .faq-icon { transform: rotate(45deg); }

        .faq-answer {
            padding: 0 24px 24px;
            color: #5A6B7D;
            line-height: 1.8;
        }

        /* CTA Section */
        .cta {
            padding: 120px 0;
            background: var(--gradient-cool);
            position: relative;
            overflow: hidden;
        }

        .cta::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='1' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E");
            animation: rotate 120s linear infinite;
        }

        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .cta .container { position: relative; z-index: 1; text-align: center; }

        .cta h2 {
            font-size: clamp(36px, 5vw, 56px);
            color: white;
            margin-bottom: 24px;
        }

        .cta p {
            font-size: 20px;
            color: rgba(255, 255, 255, 0.8);
            max-width: 600px;
            margin: 0 auto 40px;
        }

        .cta-buttons {
            display: flex;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        /* Footer */
        .footer {
            background: var(--bg-dark);
            color: white;
            padding: 80px 0 32px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 48px;
            margin-bottom: 48px;
        }

        .footer-brand { max-width: 300px; }

        .footer-logo {
            font-family: 'Playfair Display', serif;
            font-size: 24px;
            font-weight: 700;
            color: white;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .footer-logo img { width: 44px; height: 44px; border-radius: 50%; }
        .footer-brand p { color: rgba(255, 255, 255, 0.7); line-height: 1.8; }

        .footer h4 {
            font-family: 'Onest', sans-serif;
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--accent);
            margin-bottom: 24px;
        }

        .footer-links { list-style: none; }
        .footer-links li { margin-bottom: 12px; }
        .footer-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.3s ease; }
        .footer-links a:hover { color: white; }

        .footer-contact { display: flex; flex-direction: column; gap: 12px; }
        .footer-contact a {
            color: rgba(255, 255, 255, 0.7);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: color 0.3s ease;
        }
        .footer-contact a:hover { color: var(--accent); }

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

        .footer-bottom p { color: rgba(255, 255, 255, 0.5); font-size: 14px; }

        .social-links { display: flex; gap: 12px; }
        .social-links a {
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        .social-links a:hover { background: var(--primary); transform: translateY(-3px); }

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

        @keyframes fadeInRight {
            from { opacity: 0; transform: translateX(50px); }
            to { opacity: 1; transform: translateX(0); }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-10px); }
        }

        @keyframes heroBorderFlow {
            0% { background-position: 0% 50%; }
            100% { background-position: 240% 50%; }
        }

        @keyframes heroFrameDrift {
            0%, 100% { transform: rotate(-7deg) translate3d(0, 0, 0); }
            50% { transform: rotate(-4deg) translate3d(10px, -8px, 0); }
        }

        @keyframes heroFrameDriftAlt {
            0%, 100% { transform: rotate(6deg) translate3d(0, 0, 0); }
            50% { transform: rotate(3deg) translate3d(-10px, 10px, 0); }
        }

        @keyframes heroRouteSlide {
            0%, 100% { opacity: 0.42; background-position: 0 0, 0 0; }
            50% { opacity: 0.86; background-position: 80px 0, 44px 0; }
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .team-grid { grid-template-columns: repeat(3, 1fr); }
            .team-photo { width: 160px; height: 160px; }
        }

        @media (max-width: 1024px) {
            .hero-content { grid-template-columns: 1fr; gap: 48px; }
            .hero-visual { order: -1; display: flex; justify-content: center; }
            .hero-image { max-width: 400px; height: 400px; }
            .hero-card-1 { top: 16px; right: -8px; }
            .hero-card-2 { bottom: 16px; left: -8px; }
            .services-grid { grid-template-columns: 1fr; }
            .service-card.featured { grid-column: span 1; }
            .featured-grid { grid-template-columns: 1fr; }
            .method-grid { grid-template-columns: repeat(2, 1fr); }
            .steps-timeline { grid-template-columns: repeat(2, 1fr); }
            .steps-timeline::before { display: none; }
            .advantages-grid { grid-template-columns: repeat(2, 1fr); }
            .footer-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 768px) {
            .nav-links, .nav-cta { display: none; }
            .mobile-menu-btn { display: block; }
            .mobile-menu { display: flex; }
            .hero-stats { flex-wrap: wrap; gap: 24px; }
            .team-grid { grid-template-columns: repeat(2, 1fr); }
            .team-photo { width: 140px; height: 140px; }
            .method-grid { grid-template-columns: 1fr; }
            .steps-timeline { grid-template-columns: 1fr; }
            .faq-grid { grid-template-columns: 1fr; }
            .footer-grid { grid-template-columns: 1fr; }
            .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
        }

        @media (max-width: 480px) {
            .hero h1 { font-size: 32px; }
            .hero-cta { flex-direction: column; }
            .btn { width: 100%; justify-content: center; }
            .team-grid { grid-template-columns: 1fr; }
            .team-photo { width: 180px; height: 180px; }
            .advantages-grid { grid-template-columns: 1fr; }
            .cta-buttons { flex-direction: column; }
            .hero-image { height: 350px; }
            .hero-card { padding: 12px; max-width: 140px; }
            .hero-card-1 { top: 10px; right: -2px; }
            .hero-card-2 { bottom: 12px; left: -2px; }
            .hero-card-icon { width: 32px; height: 32px; font-size: 16px; }
            .hero-card h4 { font-size: 12px; }
            .hero-card p { font-size: 10px; }
        }
    
        .placeholder-photo {
            background: var(--gradient-warm);
            color: white;
            font-family: 'Playfair Display', serif;
            font-size: 64px;
            font-weight: 700;
        }
        .services-grid-updated { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
        .full-width-card { grid-column: 1 / -1; }
        .tariff-list { display: grid; gap: 14px; margin: 24px 0 20px; }
        .tariff-item { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 18px; background: rgba(29,53,87,0.04); border: 1px solid rgba(29,53,87,0.08); }
        .tariff-item strong { display: block; color: var(--secondary); font-size: 16px; margin-bottom: 4px; }
        .tariff-item span { display: block; font-size: 14px; color: #6A7A8C; }
        .tariff-item b { white-space: nowrap; font-size: 18px; color: var(--primary); }
        .tariff-item.premium { background: rgba(244,162,97,0.12); border-color: rgba(244,162,97,0.28); }
        .support-ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 22px; margin-top: 24px; }
        .support-tier { position: relative; border-radius: 28px 28px 20px 20px; padding: 24px 22px 22px; color: white; overflow: hidden; box-shadow: var(--shadow-strong); display: flex; flex-direction: column; }
        .tier-lite { min-height: 360px; background: linear-gradient(180deg, #5B7088 0%, #41586F 100%); }
        .tier-smart { min-height: 430px; background: linear-gradient(180deg, #457B9D 0%, #275A80 100%); }
        .tier-vip { min-height: 500px; background: linear-gradient(180deg, #E63946 0%, #B31E34 100%); }
        .tier-cap { display: inline-flex; width: fit-content; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.16); font-size: 13px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: 16px; }
        .tier-price { font-family: 'Playfair Display', serif; font-size: 44px; line-height: 1; margin-bottom: 12px; }
        .tier-subtitle { font-size: 16px; font-weight: 600; margin-bottom: 18px; color: rgba(255,255,255,0.92); }
        .tier-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
        .tier-list li { position: relative; padding-left: 18px; line-height: 1.6; color: rgba(255,255,255,0.9); }
        .tier-list li::before { content: '•'; position: absolute; left: 0; top: 0; color: #F4A261; }
        .tier-warning { margin-top: auto; padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.12); font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.9); }
        .reviews { padding: 120px 0; background: white; }
        .reviews-showcase-simple { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
        .review-proof-card { border-radius: var(--radius-lg); padding: 32px; background: var(--bg-cream); border: 1px solid rgba(29,53,87,0.08); display: grid; grid-template-columns: 1fr 180px; gap: 24px; align-items: center; }
        .review-badge { display: inline-flex; padding: 7px 14px; border-radius: 999px; background: rgba(244,162,97,0.18); color: var(--primary); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
        .insta-placeholder { min-height: 210px; border-radius: 22px; display: flex; align-items: center; justify-content: center; text-align: center; color: white; font-weight: 700; background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); padding: 20px; }
        .video-link { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 68px; }
        @media (max-width: 720px) { .services-grid-updated, .reviews-showcase-simple { grid-template-columns: 1fr; } .support-ladder { grid-template-columns: 1fr; align-items: stretch; } .tier-lite, .tier-smart, .tier-vip { min-height: auto; } }
        @media (max-width: 640px) { .review-proof-card { grid-template-columns: 1fr; } .tariff-item { flex-direction: column; align-items: flex-start; } }

    

        /* Team consistency update */
        .team-card.teacher .team-role,
        .team-card.admin .team-role {
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .team-card.teacher .team-description,
        .team-card.admin .team-description {
            min-height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        /* Reviews proof layout */
        .reviews-showcase-simple {
            margin-top: 32px;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 24px;
            align-items: stretch;
        }

        .review-proof-card {
            border-radius: var(--radius-lg);
            padding: 24px;
            background: var(--bg-cream);
            border: 1px solid rgba(29,53,87,0.08);
            display: grid;
            grid-template-columns: minmax(0, 1fr) 220px;
            gap: 22px;
            align-items: center;
            box-shadow: var(--shadow-soft);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .review-proof-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-medium);
        }

        .review-proof-text p {
            color: #405264;
            line-height: 1.75;
            margin-top: 14px;
        }

        .review-proof-image {
            border-radius: 20px;
            overflow: hidden;
            background: #08090c;
            min-height: 220px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .review-proof-image img {
            width: 100%;
            height: 100%;
            max-height: 280px;
            object-fit: contain;
            display: block;
        }

                .video-reviews-panel {
            margin-top: 32px;
            padding: 30px;
            border-radius: 32px;
            background: linear-gradient(135deg, rgba(29,53,87,0.98) 0%, rgba(69,123,157,0.96) 100%);
            color: white;
            box-shadow: var(--shadow-strong);
            position: relative;
            overflow: hidden;
        }

        .video-reviews-panel::before {
            content: '';
            position: absolute;
            right: -70px;
            top: -90px;
            width: 260px;
            height: 260px;
            border-radius: 50%;
            background: rgba(244,162,97,0.18);
        }

        .video-reviews-content,
        .video-reviews-actions,
        .video-reviews-grid {
            position: relative;
            z-index: 1;
        }

        .video-reviews-label {
            display: inline-flex;
            padding: 8px 14px;
            border-radius: 999px;
            background: rgba(255,255,255,0.14);
            color: #F4A261;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            margin-bottom: 12px;
        }

        .video-reviews-content h3 {
            color: white;
            font-size: 28px;
            margin-bottom: 10px;
        }

        .video-reviews-content p {
            color: rgba(255,255,255,0.82);
            line-height: 1.7;
            max-width: 760px;
        }

        .video-reviews-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 18px;
            margin-top: 26px;
        }

        .video-review-card {
            border-radius: 22px;
            padding: 12px;
            background: rgba(255,255,255,0.12);
            border: 1px solid rgba(255,255,255,0.16);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: transform 0.3s ease, background 0.3s ease;
        }

        .video-review-card:hover {
            transform: translateY(-6px);
            background: rgba(255,255,255,0.18);
        }

        .video-review-card video {
            width: 100%;
            aspect-ratio: 9 / 16;
            max-height: 420px;
            display: block;
            object-fit: cover;
            border-radius: 16px;
            background: #0b0e14;
        }

        .video-review-caption {
            margin-top: 10px;
            font-size: 14px;
            color: rgba(255,255,255,0.86);
            font-weight: 600;
            text-align: center;
        }

        .video-reviews-actions {
            display: flex;
            justify-content: flex-end;
            margin-top: 24px;
        }

        .video-reviews-button {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 16px 20px;
            border-radius: 18px;
            background: white;
            color: var(--secondary);
            text-decoration: none;
            min-width: 260px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .video-reviews-button:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 34px rgba(0,0,0,0.2);
        }

        .video-play {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--gradient-warm);
            color: white;
            flex-shrink: 0;
        }

        .video-reviews-button strong,
        .video-reviews-button small {
            display: block;
        }

        .video-reviews-button small {
            color: #6A7A8C;
            margin-top: 2px;
        }

@media (max-width: 1024px) {
            .reviews-showcase-simple { grid-template-columns: 1fr; }
            .video-reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }

        @media (max-width: 640px) {
            .review-proof-card { grid-template-columns: 1fr; }
            .review-proof-image { min-height: auto; }
            .video-reviews-panel { padding: 22px; border-radius: 24px; }
            .video-reviews-content h3 { font-size: 22px; }
            .video-reviews-grid { grid-template-columns: 1fr; }
            .video-review-card video { max-height: 520px; }
            .video-reviews-actions { justify-content: stretch; }
            .video-reviews-button { width: 100%; min-width: 0; }
        }

    

        /* Team grouped layout update */
        .team-layout {
            display: grid;
            gap: 34px;
        }

        .team-zone-label {
            width: fit-content;
            margin: 0 auto 18px;
            padding: 9px 18px;
            border-radius: 999px;
            background: rgba(29, 53, 87, 0.08);
            color: var(--secondary);
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }

        .team-directors-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(240px, 300px));
            justify-content: center;
            gap: 24px;
        }

        .teachers-zone {
            position: relative;
            padding: 36px;
            border-radius: 34px;
            background: rgba(255, 255, 255, 0.62);
            border: 1px solid rgba(29, 53, 87, 0.08);
            box-shadow: var(--shadow-soft);
            overflow: hidden;
        }

        .teachers-zone::before,
        .teachers-zone::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
        }

        .teachers-zone::before {
            width: 260px;
            height: 260px;
            left: -120px;
            top: -120px;
            background: radial-gradient(circle, rgba(230,57,70,0.11) 0%, transparent 70%);
        }

        .teachers-zone::after {
            width: 280px;
            height: 280px;
            right: -130px;
            bottom: -140px;
            background: radial-gradient(circle, rgba(244,162,97,0.16) 0%, transparent 70%);
        }

        .teachers-zone-header {
            position: relative;
            z-index: 1;
            text-align: center;
            margin-bottom: 30px;
        }

        .teachers-zone-header span {
            display: inline-flex;
            padding: 7px 16px;
            border-radius: 999px;
            background: rgba(230, 57, 70, 0.1);
            color: var(--primary);
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.7px;
            margin-bottom: 12px;
        }

        .teachers-zone-header h3 {
            font-size: 34px;
            color: var(--secondary);
        }

        .teacher-grid {
            position: relative;
            z-index: 1;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            max-width: 980px;
            margin: 0 auto;
        }

        .team-card {
            min-height: 338px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .team-card h4 {
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .team-card .team-role {
            min-height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .team-card .team-description {
            min-height: 62px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .team-directors-grid .team-card {
            min-height: 360px;
        }

        .team-directors-grid .team-card::before {
            transform: scaleX(1);
            background: var(--accent);
        }

        /* Video reviews click-to-play update */
        .video-frame {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            background: #0b0e14;
        }

        .video-review-card {
            cursor: pointer;
            user-select: none;
            -webkit-tap-highlight-color: transparent;
        }

        .video-review-card video {
            pointer-events: none;
        }

        .video-toggle {
            position: absolute;
            inset: 50% auto auto 50%;
            transform: translate(-50%, -50%);
            width: 64px;
            height: 64px;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.28);
            background: rgba(13, 27, 42, 0.64);
            color: white;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            cursor: pointer;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
            z-index: 2;
        }

        .video-review-card:hover .video-toggle {
            transform: translate(-50%, -50%) scale(1.07);
            background: rgba(230, 57, 70, 0.82);
        }

        .video-toggle-pause {
            display: none;
            font-size: 21px;
            letter-spacing: -4px;
            margin-left: -4px;
        }

        .video-review-card.is-playing .video-toggle {
            opacity: 0;
        }

        .video-review-card.is-playing:hover .video-toggle,
        .video-review-card.is-playing:focus-within .video-toggle {
            opacity: 1;
        }

        .video-review-card.is-playing .video-toggle-play { display: none; }
        .video-review-card.is-playing .video-toggle-pause { display: inline; }

        @media (max-width: 1024px) {
            .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .teachers-zone { padding: 30px; }
        }

        @media (max-width: 768px) {
            .team-directors-grid { grid-template-columns: minmax(0, 1fr); max-width: 340px; margin: 0 auto; }
            .teacher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .teachers-zone-header h3 { font-size: 28px; }
        }

        @media (max-width: 560px) {
            .teachers-zone { padding: 22px; border-radius: 26px; }
            .teacher-grid { grid-template-columns: 1fr; }
            .team-card { min-height: auto; }
            .team-card h4,
            .team-card .team-role,
            .team-card .team-description { min-height: 0; }
            .video-toggle { width: 56px; height: 56px; font-size: 20px; }
        }

        /* Video review interaction update */
        .video-frame {
            position: relative;
            overflow: hidden;
            border-radius: 16px;
            background: #0b0e14;
        }

        .video-review-card .video-toggle {
            position: absolute;
            inset: 50% auto auto 50%;
            transform: translate(-50%, -50%);
            opacity: 1;
            pointer-events: none;
            transition: opacity 0.22s ease, transform 0.22s ease;
        }

        .video-review-card.is-touched .video-toggle,
        .video-review-card.is-playing .video-toggle {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.88);
        }

        .video-review-card:hover .video-toggle,
        .video-review-card:focus-visible .video-toggle,
        .video-review-card.show-control .video-toggle {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }

        .video-review-card.is-playing:hover .video-toggle .video-toggle-play,
        .video-review-card.is-playing:focus-visible .video-toggle .video-toggle-play,
        .video-review-card.is-playing.show-control .video-toggle .video-toggle-play {
            display: none;
        }

        .video-review-card.is-playing:hover .video-toggle .video-toggle-pause,
        .video-review-card.is-playing:focus-visible .video-toggle .video-toggle-pause,
        .video-review-card.is-playing.show-control .video-toggle .video-toggle-pause {
            display: inline;
        }

        .video-review-card:not(.is-playing) .video-toggle .video-toggle-pause {
            display: none;
        }

        .video-review-card:not(.is-playing) .video-toggle .video-toggle-play {
            display: inline;
        }

        .video-review-card video {
            cursor: pointer;
        }


/* ===== UX / conversion / performance upgrade v6 ===== */
.hero-text {
    position: relative;
    z-index: 2;
}

.hero-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(29,53,87,0.08);
    box-shadow: var(--shadow-soft);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
}

.hero-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.hero-gif-wrap {
    position: relative;
    width: min(100%, 430px);
    aspect-ratio: 1 / 1;
    border-radius: 34px;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(29, 53, 87, 0.08);
    box-shadow: 0 28px 58px rgba(29, 53, 87, 0.18);
    z-index: 1;
}

.hero-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video-shell {
    max-width: 500px;
    height: 640px;
    background: transparent;
    box-shadow: none;
    isolation: isolate;
}

.hero-video-shell::before,
.hero-video-shell::after {
    content: '';
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.hero-video-shell::before {
    width: 430px;
    height: 430px;
    border: 1px solid rgba(230, 57, 70, 0.18);
    border-radius: 38px;
    transform: rotate(-7deg);
    animation: heroFrameDrift 8s ease-in-out infinite;
}

.hero-video-shell::after {
    width: 340px;
    height: 520px;
    border: 1px solid rgba(29, 53, 87, 0.18);
    border-radius: 44px;
    transform: rotate(6deg);
    animation: heroFrameDriftAlt 9s ease-in-out infinite;
}

.hero-video-wrap {
    position: relative;
    z-index: 1;
    width: min(100%, 360px);
    aspect-ratio: 9 / 16;
    border-radius: 32px;
    overflow: hidden;
    background: #0D1B2A;
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 30px 70px rgba(29, 53, 87, 0.24);
    isolation: isolate;
}

.hero-video-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(13, 27, 42, 0.28) 0%, rgba(13, 27, 42, 0) 34%, rgba(13, 27, 42, 0.3) 100%),
        linear-gradient(90deg, rgba(13, 27, 42, 0.18) 0%, rgba(13, 27, 42, 0) 22%, rgba(13, 27, 42, 0) 78%, rgba(13, 27, 42, 0.18) 100%);
}

.hero-video-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: 30px;
    padding: 1px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.7), rgba(230, 57, 70, 0.78), rgba(244, 162, 97, 0.72), rgba(69, 123, 157, 0.68), rgba(255, 255, 255, 0.7));
    background-size: 240% 240%;
    animation: heroBorderFlow 7s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.hero-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-video-wrap .hero-gif {
    display: none;
}

.hero-route {
    position: absolute;
    z-index: 0;
    width: 190px;
    height: 64px;
    pointer-events: none;
    opacity: 0.78;
    background:
        linear-gradient(90deg, rgba(230, 57, 70, 0), rgba(230, 57, 70, 0.55), rgba(244, 162, 97, 0)),
        repeating-linear-gradient(90deg, rgba(29, 53, 87, 0.28) 0 10px, transparent 10px 22px);
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.hero-route-top {
    top: 86px;
    right: 22px;
    transform: rotate(18deg);
    animation: heroRouteSlide 6s ease-in-out infinite;
}

.hero-route-bottom {
    left: 20px;
    bottom: 82px;
    transform: rotate(-16deg);
    animation: heroRouteSlide 7s ease-in-out infinite reverse;
}

.hero-card {
    z-index: 2;
    box-shadow: 0 18px 38px rgba(29, 53, 87, 0.16);
}

.quick-route {
    padding: 34px 0;
    background: white;
}

.quick-route-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 28px 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(29,53,87,0.98), rgba(69,123,157,0.96));
    box-shadow: var(--shadow-strong);
    color: white;
    position: relative;
    overflow: hidden;
}

.quick-route-inner::after {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    right: -90px;
    top: -110px;
    border-radius: 50%;
    background: rgba(244,162,97,0.2);
}

.quick-route-inner > * {
    position: relative;
    z-index: 1;
}

.quick-route-label {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #F4A261;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 10px;
}

.quick-route h2 {
    color: white;
    font-size: 30px;
    margin-bottom: 8px;
}

.quick-route p {
    color: rgba(255,255,255,0.82);
    max-width: 680px;
    line-height: 1.7;
}

.quick-route .btn {
    flex: 0 0 auto;
    justify-content: center;
    white-space: nowrap;
}

.tier-smart {
    transform: translateY(-12px);
}

.choice-cta {
    padding: 0 0 96px;
    background: var(--bg-cream);
}

.choice-cta-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 30px;
    border-radius: 30px;
    background: white;
    border: 1px solid rgba(29,53,87,0.08);
    box-shadow: var(--shadow-medium);
}

.choice-cta-icon {
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230,57,70,0.1);
    font-size: 30px;
}

.choice-cta span {
    display: inline-flex;
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.choice-cta h2 {
    color: var(--secondary);
    font-size: 27px;
    margin-bottom: 6px;
}

.choice-cta p {
    color: #5A6B7D;
    line-height: 1.7;
}

.video-mini-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.video-mini-proof span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.88);
    font-size: 13px;
    font-weight: 700;
}

.video-review-card {
    position: relative;
}

.video-review-card::before {
    content: 'Видео';
    position: absolute;
    left: 22px;
    top: 22px;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.48);
    color: white;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.video-review-card .video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #0b0e14;
}

.video-review-card video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    background: #0b0e14;
    cursor: pointer;
}

.video-review-card .video-toggle {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(13, 27, 42, 0.64);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 1;
    transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease;
    pointer-events: none;
    z-index: 4;
}

.video-review-card:hover .video-toggle {
    background: rgba(230, 57, 70, 0.82);
}

.video-review-card.is-playing .video-toggle-play { display: none; }
.video-review-card.is-playing .video-toggle-pause { display: inline; }
.video-review-card:not(.is-playing) .video-toggle-pause { display: none; }
.video-review-card:not(.is-playing) .video-toggle-play { display: inline; }

.video-review-card.hide-toggle .video-toggle {
    opacity: 0 !important;
    transform: translate(-50%, -50%) scale(0.88) !important;
}

.video-review-card.is-playing::before {
    content: 'Смотрим';
    background: rgba(230,57,70,0.82);
}

.floating-actions {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-consult {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 999px;
    background: var(--gradient-warm);
    color: white;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(230,57,70,0.28);
    font-size: 14px;
}

.floating-consult span {
    font-size: 18px;
}

.back-to-top {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: white;
    color: var(--secondary);
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@supports (content-visibility: auto) {
    .team,
    .services,
    .advantages,
    .reviews,
    .methodology,
    .steps,
    .faq,
    .cta {
        content-visibility: auto;
        contain-intrinsic-size: 900px;
    }
}

@media (max-width: 1024px) {
    .quick-route-inner,
    .choice-cta-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .choice-cta-icon {
        margin: 0 auto;
    }

    .quick-route-inner {
        align-items: stretch;
    }

    .tier-smart {
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero-trust-strip {
        justify-content: center;
    }

    .hero-gif-wrap {
        width: min(100%, 380px);
        border-radius: 26px;
    }

    .quick-route {
        padding: 24px 0;
    }

    .quick-route h2,
    .choice-cta h2 {
        font-size: 24px;
    }

    .quick-route .btn {
        width: auto;
        max-width: 100%;
        align-self: center;
        padding-inline: 26px;
    }

    .floating-actions {
        left: 16px;
        right: 16px;
        bottom: 16px;
        justify-content: space-between;
    }

    .floating-consult {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .hero-gif-wrap {
        width: min(100%, 330px);
        border-radius: 22px;
    }

    .hero-trust-strip span {
        width: 100%;
        justify-content: center;
    }

    .quick-route-inner,
    .choice-cta-card {
        padding: 22px;
        border-radius: 24px;
    }

    .floating-consult strong {
        font-size: 13px;
    }

    .video-review-card .video-toggle {
        width: 56px;
        height: 56px;
        font-size: 20px;
    }
}


/* ===== Mobile hero refinement: keep flag visible, cleaner first screen ===== */
@media (max-width: 768px) {
    .hero-visual {
        width: 100%;
        margin: 10px auto 8px;
        padding: 0 14px;
    }

    .hero-image {
        width: min(86vw, 370px);
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: none;
        margin: 0 auto;
        border-radius: 30px;
        overflow: visible;
        box-shadow: 0 22px 46px rgba(29, 53, 87, 0.16);
    }

    .hero-image::before {
        display: none;
    }

    .hero-gif-wrap {
        width: calc(100% - 28px);
        border-radius: 24px;
        box-shadow: 0 18px 36px rgba(29, 53, 87, 0.14);
    }

    .hero-card {
        max-width: 126px;
        padding: 10px 12px;
        border-radius: 16px;
        box-shadow: 0 14px 30px rgba(29, 53, 87, 0.14);
    }

    .hero-card-1 {
        top: 18px;
        right: -18px;
    }

    .hero-card-2 {
        bottom: 18px;
        left: -18px;
    }

    .hero-card-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 16px;
        margin-bottom: 8px;
    }

    .hero-card h4 {
        font-size: 11px;
        line-height: 1.25;
    }

    .hero-card p {
        font-size: 9px;
        line-height: 1.35;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        padding: 0 18px;
        margin-top: 6px;
    }

    .hero-image {
        width: min(82vw, 340px);
        border-radius: 28px;
    }

    .hero-gif-wrap {
        width: calc(100% - 24px);
        border-radius: 22px;
    }

    .hero-card {
        max-width: 112px;
        padding: 9px 10px;
        border-radius: 15px;
    }

    .hero-card-1 {
        top: 14px;
        right: -12px;
    }

    .hero-card-2 {
        bottom: 14px;
        left: -12px;
    }

    .hero-card-icon {
        width: 29px;
        height: 29px;
        font-size: 15px;
        margin-bottom: 7px;
    }

    .hero-card h4 {
        font-size: 10px;
    }

    .hero-card p {
        font-size: 8.5px;
    }
}

@media (max-width: 380px) {
    .hero-image {
        width: min(80vw, 300px);
    }

    .hero-card {
        max-width: 104px;
        padding: 8px 9px;
    }

    .hero-card-1 {
        right: -8px;
        top: 10px;
    }

    .hero-card-2 {
        left: -8px;
        bottom: 10px;
    }
}

/* ===== Header video hero ===== */
@media (max-width: 1024px) {
    .hero-video-shell {
        width: min(72vw, 360px);
        height: auto;
        aspect-ratio: 9 / 16;
        max-width: none;
    }

    .hero-video-wrap {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-video-shell {
        width: min(74vw, 340px);
        aspect-ratio: 9 / 16;
        border-radius: 30px;
        box-shadow: none;
    }

    .hero-video-wrap {
        width: 100%;
        border-radius: 28px;
        box-shadow: 0 22px 48px rgba(29, 53, 87, 0.18);
    }

    .hero-video-wrap::after {
        border-radius: 26px;
    }
}

@media (max-width: 480px) {
    .hero-video-shell {
        width: min(76vw, 300px);
    }

    .hero-video-wrap {
        border-radius: 24px;
    }

    .hero-video-wrap::after {
        border-radius: 22px;
    }
}

/* ===== Production hero video sizing guard ===== */
.hero .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 520px);
}

.hero .hero-visual {
    width: 100%;
    max-width: 540px;
    justify-self: end;
}

.hero .hero-image.hero-video-shell {
    width: 500px;
    max-width: 100%;
    height: 640px;
    flex: 0 0 auto;
    overflow: visible;
}

.hero .hero-video-shell .hero-video-wrap {
    width: 360px;
    min-width: 360px;
    max-width: 360px;
    height: 640px;
    aspect-ratio: auto;
    flex: 0 0 360px;
}

.hero .hero-video-shell .hero-video {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .hero .hero-content {
        grid-template-columns: 1fr;
    }

    .hero .hero-visual {
        justify-self: center;
        max-width: none;
    }

    .hero .hero-image.hero-video-shell {
        width: min(72vw, 360px);
        height: auto;
        aspect-ratio: 9 / 16;
    }

    .hero .hero-video-shell .hero-video-wrap {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        aspect-ratio: 9 / 16;
        flex-basis: auto;
    }
}

@media (max-width: 768px) {
    .hero .hero-image.hero-video-shell {
        width: min(74vw, 340px);
    }
}

@media (max-width: 480px) {
    .hero .hero-image.hero-video-shell {
        width: min(76vw, 300px);
    }
}
