    /* Reset and Base Styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Raleway';
    }

    @font-face {
        font-family: "Dela_Gothic One";
        src: url("fonts/Dela Gothic One/DelaGothicOne-Regular.ttf") format("truetype");
        font-weight: normal;
        font-style: normal;
    }

    @font-face {
        font-family: "Raleway";
        src: url("fonts/Raleway/Raleway-VariableFont_wght.ttf") format("truetype");
        font-weight: normal;
        font-style: normal;
    }

    html {
        scroll-behavior: smooth;
        overflow-x: hidden;
    }

    :root {
        --text: #ffffff;
        --bg: #3F1653;
        --primary: #fab20a;
        --secondary: #7817A8;
        --accent: #EF567C;
        --textcontrast: #64d97b;
        --bgcontrast: #64d97b;
        --primarycontrast: #64d97b;
        --secondarycontrast: #64d97b;
        --accentcontrast: #ffdd00;
        --text5: hsl(0, 0%, 100%, 5%);
        --text10: hsl(0, 0%, 100%, 10%);
        --text15: hsl(0, 0%, 100%, 15%);
        --text20: hsl(0, 0%, 100%, 20%);
        --text25: hsl(0, 0%, 100%, 25%);
        --text30: hsl(0, 0%, 100%, 30%);
        --text35: hsl(0, 0%, 100%, 35%);
        --text40: hsl(0, 0%, 100%, 40%);
        --text45: hsl(0, 0%, 100%, 45%);
        --text50: hsl(0, 0%, 100%, 50%);
        --text55: hsl(0, 0%, 100%, 55%);
        --text60: hsl(0, 0%, 100%, 60%);
        --text65: hsl(0, 0%, 100%, 65%);
        --text70: hsl(0, 0%, 100%, 70%);
        --text75: hsl(0, 0%, 100%, 75%);
        --text80: hsl(0, 0%, 100%, 80%);
        --text85: hsl(0, 0%, 100%, 85%);
        --text90: hsl(0, 0%, 100%, 90%);
        --text95: hsl(0, 0%, 100%, 95%);
        --primary5: hsl(42, 96%, 51%, 5%);
        --primary10: hsl(42, 96%, 51%, 10%);
        --primary15: hsl(42, 96%, 51%, 15%);
        --primary20: hsl(42, 96%, 51%, 20%);
        --primary25: hsl(42, 96%, 51%, 25%);
        --primary30: hsl(42, 96%, 51%, 30%);
        --primary35: hsl(42, 96%, 51%, 35%);
        --primary40: hsl(42, 96%, 51%, 40%);
        --primary45: hsl(42, 96%, 51%, 45%);
        --primary50: hsl(42, 96%, 51%, 50%);
        --primary55: hsl(42, 96%, 51%, 55%);
        --primary60: hsl(42, 96%, 51%, 60%);
        --primary65: hsl(42, 96%, 51%, 65%);
        --primary70: hsl(42, 96%, 51%, 70%);
        --primary75: hsl(42, 96%, 51%, 75%);
        --primary80: hsl(42, 96%, 51%, 80%);
        --primary85: hsl(42, 96%, 51%, 85%);
        --primary90: hsl(42, 96%, 51%, 90%);
        --primary95: hsl(42, 96%, 51%, 95%);
        --secondary5: hsl(280, 76%, 37%, 5%);
        --secondary10: hsl(280, 76%, 37%, 10%);
        --secondary15: hsl(280, 76%, 37%, 15%);
        --secondary20: hsl(280, 76%, 37%, 20%);
        --secondary25: hsl(280, 76%, 37%, 25%);
        --secondary30: hsl(280, 76%, 37%, 30%);
        --secondary35: hsl(280, 76%, 37%, 35%);
        --secondary40: hsl(280, 76%, 37%, 40%);
        --secondary45: hsl(280, 76%, 37%, 45%);
        --secondary50: hsl(280, 76%, 37%, 50%);
        --secondary55: hsl(280, 76%, 37%, 55%);
        --secondary60: hsl(280, 76%, 37%, 60%);
        --secondary65: hsl(280, 76%, 37%, 65%);
        --secondary70: hsl(280, 76%, 37%, 70%);
        --secondary75: hsl(280, 76%, 37%, 75%);
        --secondary80: hsl(280, 76%, 37%, 80%);
        --secondary85: hsl(280, 76%, 37%, 85%);
        --secondary90: hsl(280, 76%, 37%, 90%);
        --secondary95: hsl(280, 76%, 37%, 95%);
        --accent5: hsl(345, 83%, 64%, 5%);
        --accent10: hsl(345, 83%, 64%, 10%);
        --accent15: hsl(345, 83%, 64%, 15%);
        --accent20: hsl(345, 83%, 64%, 20%);
        --accent25: hsl(345, 83%, 64%, 25%);
        --accent30: hsl(345, 83%, 64%, 30%);
        --accent35: hsl(345, 83%, 64%, 35%);
        --accent40: hsl(345, 83%, 64%, 40%);
        --accent45: hsl(345, 83%, 64%, 45%);
        --accent50: hsl(345, 83%, 64%, 50%);
        --accent55: hsl(345, 83%, 64%, 55%);
        --accent60: hsl(345, 83%, 64%, 60%);
        --accent65: hsl(345, 83%, 64%, 65%);
        --accent70: hsl(345, 83%, 64%, 70%);
        --accent75: hsl(345, 83%, 64%, 75%);
        --accent80: hsl(345, 83%, 64%, 80%);
        --accent85: hsl(345, 83%, 64%, 85%);
        --accent90: hsl(345, 83%, 64%, 90%);
        --accent95: hsl(345, 83%, 64%, 95%);
        --color-border: rgba(214, 196, 255, 0.3);
        --color-shadow: rgba(0, 0, 0, 0.2);
        --color-shadow-strong: rgba(0, 0, 0, 0.3);
        --max-width: 1400px;
        --line-height: 1.6;
        --container-padding: 20px;
        --section-padding: 0 0 100px 0 ;
        --border-radius-sm: 10px;
        --border-radius-md: 20px;
        --border-radius-lg: 25px;
        --border-radius-full: 10px;
        --btn-padding: 12px 24px;
        --btn-large-padding: 16px 32px;
        --btn-font-size: 16px;
        --btn-large-font-size: 18px;
        --transition: all 0.3s ease;
        --animation-speed: 0.3s;
    }

    body {
        line-height: var(--line-height);
        color: var(--text);
        background: var(--bg);
        overflow-x: hidden;
    }

    .container {
        width: var(--max-width);
        margin: 0 auto;
        padding: 0 var(--container-padding);
    }

    /* Common Styles */
    .btn {
        padding: var(--btn-padding);
        border: none;
        height: 52px;
        border-radius: var(--border-radius-full);
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 1.1rem;
    
    }

    .btn-primary {
        background: var(--primary);
        color: var(--bg);
    }

    .btn-primary:hover {
        transform: translate(0, -3px);
        box-shadow: 0 20px 80px -10px var(--primary);
    }

    .btn-secondary {
        background: var(--secondary30);
        color: var(--text);
        opacity: 0.7;
    }

    .btn-secondary:hover {
        transform: translate(0, -3px);
    }

    .btn-outline {
        background: transparent;
        color: var(--primary);
        border: 2px solid var(--primary);
    }

    .btn-outline:hover {
        background: var(--primary);
        color: var(--bg);
    }

    .btn-large {
        padding: var(--btn-large-padding);
        font-size: var(--btn-large-font-size);
    }

    .section-header {
        text-align: center;
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 3rem;
        font-weight: 800;
        margin-bottom: 20px;
        background: var(--primary);
        letter-spacing: 3px;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.8s ease forwards;
        font-family: 'Dela Gothic One';
    }

    .section-subtitle {
        font-size: 1.75rem;
        color: var(--text);
        opacity: 0.9;
        max-width: 1400px;
        margin: 0 auto;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.8s ease 0.2s forwards;
    }

    @media (max-width: 520px){
        :root{
            --max-width:100%;
            --section-padding: 25px 0;
            --container-padding: 30px;
        }
        .section-title{
            font-size: 1.5rem;
        }
    }

    @media (min-width: 521px ) and (max-width:1024px) and (orientation: portrait){
        :root{
            --max-width:100%;
        }
        .btn{
            height: 62px;
            font-size: 1.4rem;
        }
        .section-title{
            font-size: 2.5rem;
        }
    }
    @media (min-width: 768px ) and (max-width:1919px) and (orientation: landscape){
        :root{
            --max-width:100%;
            --container-padding: 50px;
        }
        .btn{
            height: 52px;
            font-size: 1.2rem;
        }
        .section-title{
            font-size: 2.5rem;
        }   

    }


    /* 2K */ 
    @media (min-width:2048px) {
        :root{
            --max-width: 1900px
        }
        .btn{
            height: 62px;
            font-size: 1.37rem;
        }
        .section-title{
            font-size: 4rem;
        }
    }

    /* 2.5K / QHD+ */ 
    @media (min-width:2560px) {
        :root{
            --max-width: 2300px
        }
        .btn{
            height: 72px;
            font-size: 2rem;
        }
        .section-title{
            font-size: 5rem;
        }
        
    }

    /* 4K */ 
    @media (min-width:3840px) {
        :root{
            --btn-padding: 24px 48px;
            --border-radius-full: 20px;
            --max-width: 3600px;
        }
        .btn{
            height: 132px;
            font-size: 3.2rem;
        }
        .section-title{
            font-size: 8rem;
        }
        
    }

    /* Header */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0);
        font-family: 'Dela Gothic One';
        z-index: 1000;
        transition: var(--transition);
    }

    .header.scrolled {
        background: var(--bg);
    }

    .navbar {
        padding: 0;
    }

    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .container a{
        text-decoration: none;
        cursor: pointer;
    }

    .nav-brand {
        display: flex;
        align-items: center;
        gap: 0;
        scale: 0.85;
        transition: transform 0.3s ease;
    }

    .nav-brand:hover{
        transform: scale(1.1);
    }

    .logo {
        height: 50px;   
    }

    .brand-text {
        color: var(--primary);
        font-family: 'Dela Gothic One';
        scale: 0.85;
        margin-left: -3px;
    }

    .nav-menu {
        display: flex;
        list-style: none;
        gap: 25px;
    }

    .nav-menu a {
        text-decoration: none;
        color: var(--text);
        font-weight: 700;
        transition: color var(--animation-speed);
        position: relative;
    }

    .nav-menu a:hover {
        color: var(--primary);
    }

    .nav-menu a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background: var(--primary);
        transition: width var(--animation-speed);
    }

    .nav-menu a:hover::after {
        width: 100%;
    }

    .nav-menu a.active {
        color: var(--primary);
    }

    .nav-menu a.active::after {
        width: 100%;
    }

    .nav-actions {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .phone-btn {
        display: flex;
        align-items: center;
        font-size: 1.1rem;
        gap: 8px;
        color: var(--text);
        text-decoration: none;
        font-weight: 700;
        transition: color var(--animation-speed);
    }

    .phone-btn:hover {
        color: var(--primary);
    }

    .cta-btn {
        background: var(--primary);
        font-size: 1rem;
        letter-spacing: 1px;
        color: var(--bg);
        border-radius: var(--border-radius-full);
        border: none;
        padding: var(--btn-padding);
        font-weight: 800;
        cursor: pointer;
        transition: transform var(--animation-speed), box-shadow var(--animation-speed);
    }

    .cta-btn:hover {
        transform: translate(0, -3px);
        box-shadow: 0 20px 80px -10px var(--primary);
    }

    .hamburger {
        display: none;
        flex-direction: column;
        cursor: pointer;
        /* Опционально: добавим отступы для лучшего кликабельного пространства */
        padding: 5px;
    }

    .hamburger span {
        width: 30px;
        height: 3px;
        background: var(--primary);
        margin: 5px 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 1px;
        position: relative;
        /* Чтобы полоски не "прыгали", фиксируем их ширину */
        display: block;
    }

    /* Активное состояние — крестик */
    .hamburger.active span:nth-child(1) {
        /* Верхняя полоска поворачивается на +45° и сдвигается вниз */
        transform: rotate(45deg) translate(2px, 7px);
    }

    .hamburger.active span:nth-child(2) {
        /* Нижняя полоска поворачивается на -45° и сдвигается вверх */
        transform: rotate(-45deg) translate(2px, -7px);
    }

    /* 2K */ 
    @media (min-width:2048px) {
        .nav-brand{
            scale: 1;
        }
        .nav-menu{
            font-size: 1.3rem;
            gap: 35px;
        }
        .phone-btn{
            font-size: 1.5rem;
        }
        .cta-btn{
            font-size: 1.4rem;
        }
        
    }

    /* 2.5K / QHD+ */ 
    @media (min-width:2560px) {
        .nav-brand{
            scale: 1.2;
        }
        .nav-menu{
            font-size: 1.5rem;
            gap: 35px;
        }
        .phone-btn{
            font-size: 1.7rem;
        }
        .cta-btn{
            font-size: 1.6rem;
        }
        
    }

    /* 4K  */ 
    @media (min-width:4096px) {
        .nav-brand{
            scale: 2;
            padding: 35px;
        }
        
        .nav-menu{
            font-size: 2.5rem;
            gap: 0;
        }
        .nav-menu a{
            
            margin-right: 55px;
        }
        .phone-btn{
            font-size: 2.7rem;
        }
        .cta-btn{
            font-size: 2.7rem;
            height: 92px;
        }
        
    }

    @media (max-width: 1180px) {
    .hamburger {
        display: flex;
        z-index: 1001;
        cursor: pointer;
    }

    

    /* Мобильное меню — шторка сверху */
    .nav-menu {
        position: fixed;
        top: 65px; /* под хедер */
        left: 0;
        width: 100%;
        background: var(--bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 20px var(--container-padding);
        flex-direction: column;
        gap: 5px;
        /* Скрываем через transform и visibility */
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
                    opacity 0.3s ease,
                    visibility 0s 0.6s;
        z-index: 1000;
        overflow: hidden;
    }

    .nav-menu.active {
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
        transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
                    opacity 0.3s ease;
    }

    /* Плавное появление пунктов */
    .nav-menu li a {
        color: var(--text);
        font-size: 1.2rem;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-menu.active li a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active li a:nth-child(1) { transition-delay: 0.2s; }
    .nav-menu.active li a:nth-child(2) { transition-delay: 0.3s; }
    .nav-menu.active li a:nth-child(3) { transition-delay: 0.4s; }
    .nav-menu.active li a:nth-child(4) { transition-delay: 0.5s; }
    .nav-menu.active li a:nth-child(5) { transition-delay: 0.6s; }
    .nav-menu.active li a:nth-child(6) { transition-delay: 0.7s; }
    .nav-menu.active li a:nth-child(7) { transition-delay: 0.8s; }
    .nav-menu.active li a:nth-child(8) { transition-delay: 0.9s; }

    /* Оверлей — затемнение фона */
    .nav-overlay {
        position: fixed;
        top: 73px;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0s 0.4s;
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-actions {
        display: none;
    }
}

    @media (max-width: 1400px){
        .nav-actions span{
            display: none;
        }
    }

    /* Hero Section */
    .hero {
        min-height: 100vh;
        color: white;
        padding: 120px 0;
        display: flex;
        align-items: center;
    }

    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; 
        z-index: -1; 
        pointer-events: none; 
    }


    .hero-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
        animation: fadeInUp 1s ease 0.4s both;
    }


    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
    }

    .hero-content h1 {
        font-family: 'Dela Gothic One';
        font-size: 3rem;
        letter-spacing: 1px;
        line-height: 1.3;
        margin-bottom: 20px;
        font-weight: 100;
    }

    .hero-subtitle {
        font-size: 1.4rem;
        font-weight: 800;
        margin-bottom: 3rem;
    }

    .hero-buttons {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        flex-direction: row-reverse;
        justify-content: flex-end;

    }

    .hero-image img {
        width: 100%;
        height: 100%;
        border-radius: 15px;
        object-fit: cover;
    }

    .hero-stats {
        display: flex;
        gap: 60px;
        margin-bottom: 20px;
        animation: fadeInUp 1s ease 0.4s both;
    }

    .stat-item {
        text-align: center;
    }

    .color-effect {
        font-family: 'Dela Gothic One';
        background: linear-gradient(120deg, var(--primary), var(--accent));
        background-size: 200% 100%;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: gradient-slide 3s ease infinite alternate;
    }

    @keyframes gradient-slide {
        0% { background-position: 0% 50%; }
        100% { background-position: 100% 50%; }
    }

    .font-effect {
        font-style: italic;
        color: var(--primary);
        font-family: 'Dela Gothic One', sans-serif;
    }

    .stat-number {
        display: block;
        font-size: 3rem;
        color: var(--primary);
        font-family: 'Dela Gothic One';
    }

    .stat-label {
        font-size: 1rem;
        opacity: 0.8;
    }

    @media (max-width: 520px) {
        .hero {
            min-height: auto;
            padding: 100px 0 80px;
        }
        .hero-grid {
            grid-template-columns: 1fr;
            text-align: center;
            gap: 30px;
        }
        .hero-image {
            order: -1;
        }
        .hero-stats {
            flex-direction: column;
            gap: 20px;
        }
        .hero-buttons {
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }
        .hero-content h1 {
            font-size: 2rem;
        }
        
        .hero-subtitle{
            font-size: 1.1rem;
        }
        .stat-number {
            grid-template-columns: 1fr;
            gap: 40px;
            font-size: 2rem;
        }
       
    }

    @media (min-width: 521px ) and (max-width:1024px) and (orientation: portrait){
        .hero {
            min-height: auto;
            padding: 100px 0 80px;
        }
        .hero-grid {
            grid-template-columns: 1fr;
            text-align: center;
            gap: 30px;
        }
        .hero-image {
            order: -1;
        }
        .hero-stats {
            flex-direction: column;
            gap: 20px;
        }
        .hero-buttons {
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }
        .hero-content h1 {
            font-size: 2.5rem;
        }
        
        .hero-subtitle{
            font-size: 1.5rem;
        }
        .stat-number {
            grid-template-columns: 1fr;
            gap: 40px;
            font-size: 3rem;
        }
        .stat-label{
            font-size: 1.3rem;
        }
    }

    @media (min-width: 768px ) and (max-width:1919px) and (orientation: landscape){
        .hero-content h1{
            font-size: 2.3rem;
        }
        .hero-subtitle{
            font-size: 1.2rem;
        }
        .stat-number{
            font-size: 2.3rem;
        }
        .stat-label{
            font-size: 1.2rem;
        }
    }


    /* 2K */ 
    @media (min-width:2048px) {
        .hero-content h1{
            font-size: 4rem;
        }
        .hero-subtitle{
            font-size: 2rem;
        }
        .stat-number{
            font-size: 4rem;
        }
        .stat-label{
            font-size: 1.6rem;
        }
            
    }

    /* 2.5K / QHD+ */ 
    @media (min-width:2560px) {
        .hero-content h1{
            font-size: 5rem;
        }
        .hero-subtitle{
            font-size: 2.5rem;
        }
        .stat-number{
            font-size: 5rem;
        }
        .stat-label{
            font-size: 2rem;
        }
            
    }

    /* 4K */ 
    @media (min-width:4096px) {
        .hero-content{
            gap: 3rem;
        }
        .hero-content h1{
            font-size: 8rem;
        }
        .hero-subtitle{
            font-size: 4rem;
            margin-bottom: 6rem;
        }
        .hero-stats{
            gap: 100px;
        }
        .stat-number{
            font-size: 8rem;
        }
        .stat-label{
            font-size: 3rem;
        }
        .font-effect{
            -webkit-text-stroke-width: 3px;
        }
            
    }
    /* Benefits Section */
    .benefits {
        padding: var(--section-padding);
        background: var(--bg);
        color: var(--text);
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    @media (max-width: 1100px) {
        .benefits-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 30px;
        }
    }

    .benefit-item {
        opacity: 1;    
        transition: all 0.5s ease;
        border-radius: var(--border-radius-md);
        width: 670px;
        height: 250px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .benefit-item.animate {
        opacity: 1;
        transform: translateY(0);
    }

    .benefit-image-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        border-radius: var(--border-radius-md);
        overflow: hidden;
    }

    .benefit-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }


    .benefit-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(
            transparent,
            #270e3490,
            #270e34bd,
            #270e34bd,
            #270e34bd,
            #270e34c8,
            #270e34cc,
            #270e34df,
            #270e34
        );
        color: white;
        padding: 15px 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        z-index: 1;
        text-align: left;
    }

    .benefit-overlay h3 {
        font-size: 1.5rem;
        margin-top: 8px;
        letter-spacing: 3px;
        margin-bottom: 8px;
        color: var(--primary);
        font-weight: 700;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.645);
        line-height: 1.2;
        font-family: 'Dela Gothic One';
    }

    .benefit-overlay p {
        font-size: 1.1rem;
        max-width: 500px;
        line-height: 1.4;
        opacity: 0.95;
        color: white;
        margin: 0;
        text-shadow: 0 1px 1px rgba(255, 0, 208, 0.5);
    }

    .placeholder-img {
        background: linear-gradient(45deg, #270e34, #3f1653);
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-size: 1.2rem;
        text-align: center;
        height: 100%;
        padding: 20px;
    }

    @media (max-width: 520px) {
        .benefits-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        .benefit-item{
            width: 100%;
        }
        .benefit-overlay h3{
            font-size: 0.8rem;
        }
        .benefit-overlay p{
            font-size: 0.75rem;
        }              
    }

     @media (min-width: 521px ) and (max-width:1024px) and (orientation: portrait){
        .benefits-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        .benefit-item{
            width: 100%;
        }
        .benefit-overlay h3{
            font-size: 1.3rem;
        }
        .benefit-overlay p{
            font-size: 1.1rem;
        }  
     }

    @media (min-width: 768px ) and (max-width:1919px) and (orientation: landscape){
        .benefit-item{
            width: 100%;
        }
        .benefits{
           min-height: auto;
        }
        .benefit-overlay h3{
            font-size: 1.2rem;
        }
        .benefit-overlay p{
            font-size: 1rem;
        }  

    }

    /* 2K */ 
    @media (min-width:2048px) {
        .benefit-item{
            width: 920px;
            height: 400px;
        }
        .benefit-overlay h3{
            font-size: 2rem;
        }
        .benefit-overlay p{
            font-size: 1.5rem;
            max-width: 700px;
        }
            
    }

    /* 2.5K / QHD+ */ 
    @media (min-width:2560px) {
        .benefit-item{
            width: 1120px;
            height: 550px;
        }
        .benefit-overlay h3{
            font-size: 2.5rem;
        }
        .benefit-overlay p{
            font-size: 2rem;
            max-width: 900px;
        }
            
    }

    /* 4K */
    @media (min-width:4096px) {
        .benefits-grid{
            gap: 50px;
        }
        .benefit-item{
            width: 1750px;
            height: 875px;
        }
        .benefit-overlay{
            padding: 50px;
        }
        .benefit-overlay h3{
            font-size: 4rem;
        }
        .benefit-overlay p{
            font-size: 3rem;
            max-width: 1300px;
        }
            
    }

    /* About Section */
    .about {
        color: white;
        padding: var(--section-padding);
        display: flex;
        align-items: center;
    }

    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        justify-items: center;
        align-items: center;
    }

    .about-text h3 {
        font-size: 3rem;
        font-weight: 500;
            letter-spacing: 2px;
                text-align: center;
        margin-bottom: 20px;
        color: var(--primary);
        font-family: 'Dela Gothic One';
    }

    .about-text p {
        font-size: 1.1rem;
        margin-bottom: 10px;
        color: var(--text);
        line-height: 1.6;
        opacity: 0.9;
    }

    .about-features {
        list-style: none;
    }

    .about-features li {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 15px;
        font-size: 1.1rem;
        color: var(--text);
    }

    .about-features i {
        color: var(--accent);
        background: var(--text);
        border-radius: 50%;
        font-size: 1.2rem;
    }

    .about-image {
        position:relative;
        height:65%;
        
    }

    .about-image img {
        width:100%;
        height:100%;
        border-radius: var(--border-radius-md);
        box-shadow: 0 20px 40px var(--color-shadow-strong);
    }

    @media (max-width: 520px) {
        .about-content{
            display: flex;
            flex-direction: column;
        }
        .about-text h3{
            font-size: 1.5rem;
            margin-bottom: 20px;
        }
        .about-text p{
            font-size: 0.9rem;
            margin-bottom: 30px;
        }
        .about-features li{
            font-size: 0.9rem;
        }
        .about-features i{
            font-size: 1rem;
        }
        .about-image img{
            width: 100%;
            height: auto;
        }
    }

    @media (min-width: 521px ) and (max-width:1024px) and (orientation: portrait){
        .about-content{
            display: flex;
            flex-direction: column;
        }
        .about-text h3{
            font-size: 1.5rem;
            margin-bottom: 20px;
        }
        .about-text p{
            font-size: 1.2rem;
            margin-bottom: 30px;
        }
        .about-features li{
            font-size: 1rem;
        }
        .about-features i{
            font-size: 1.2rem;
        }
        .about-image img{
            width: 100%;
            height: auto;
        }
    }

    @media (min-width: 768px ) and (max-width:1200px) and (orientation: landscape){
        .about{
            min-height: auto;
        }
        .about-text h3{
            font-size: 1.5rem;
            margin-bottom: 20px;
        }
        .about-text p{
            font-size: 1.1rem;
        }
        .about-features li{
            font-size: 1.1rem;
        }
        .about-features i{
            font-size: 1.2rem;
        }
    }

    /* 2K */ 
    @media (min-width:2048px) {
        .about-text h3{
            font-size: 3.5rem;
            margin-bottom: 40px;
        }
        .about-text p{
            font-size: 1.5rem;
            margin-bottom: 60px;
        }
        .about-features li{
            font-size: 1.5rem;
        }
        .about-features i{
            font-size: 1.6rem;
        }
            
    }

    /* 2.5K / QHD+ */ 
    @media (min-width:2560px) {
        .about-text h3{
            font-size: 4.5rem;
            margin-bottom: 80px;
        }
        .about-text p{
            font-size: 2rem;
            margin-bottom: 100px;
        }
        .about-features li{
            font-size: 2rem;
        }
        .about-features i{
            font-size: 2.1rem;
        }
            
    }

    /* 4K */
    @media (min-width:4096px) {
        .about-text h3{
            font-size: 7rem;
            margin-bottom: 100px;
        }
        .about-text p{
            font-size: 3.5rem;
            margin-bottom: 100px;
        }
        .about-features li{
            font-size: 3.5rem;
        }
        .about-features i{
            font-size: 2.1rem;
        }
        .about-image img{
            border-radius: 70px;
        }
    }

    /* Gallery Section */
    .gallery {
        position: relative;
        padding: var(--section-padding);
        color: var(--text);
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    .gallery-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; 
        z-index: -1;
        pointer-events: none;
        display: block;
        max-width: none;
        max-height: none;
    }

    .team-slider-container {
        width: 100%;
        height: 530px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
        margin: 40px 0 0;
    }

    .team-slides-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible;
    }

    .team-slides-container {
        width: 100%;
        height: 100%;
        
    }

    .team-slide-prev, .team-slide-next {
        position: absolute;
        width: 350px;
        height: 500px;
        scale: 0.8;
        border-radius: 15px;
        overflow: hidden;
        filter: grayscale(60%) brightness(0.9);
        opacity: 0.7;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transition: all 0.5s ease;
        cursor: pointer;
        z-index: 3;
        bottom: 50px;
    }

    .team-slide-prev {
    right: 75%;
    }

    .team-slide-next {
        left: 75%;
    }

    .team-slide-active {
        position: absolute;
        width: 350px;
        height: 500px;
        scale: 1;
        border-radius: 15px;
        overflow: hidden;
        filter: grayscale(0%) brightness(1);
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 4;
        left: 50%;
        transform: translateX(-50%);
        bottom: 50px;
    }

    .gallery-actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .team-nav-btn {
        position: absolute;
        bottom: 50px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: var(--secondary50);
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s;
        z-index: 2;
    }

    .team-nav-btn:hover {
        transform: scale(1.1);
        background: var(--primary);
    }

    .team-nav-btn:hover svg {
        transform: scale(1.1);
        fill: var(--bg);
    }

    .team-nav-btn.prev {
        right: calc(50% + 200px + 30px);
    }

    .team-nav-btn.next {
        left: calc(50% + 200px + 30px);
    }

    .team-nav-btn svg {
        width: 20px;
        height: 20px;
        fill: var(--text);
    }



    .team-dots-container {
        position: absolute;
        top: 500px;
        display: flex;
        gap: 8px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
    }

    .team-dot-item {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: var(--secondary70);
        cursor: pointer;
        transition: all 0.3s;
    }

    .team-dot-item.active {
        background-color: var(--accent);
        transform: scale(1.4);
    }

    .team-dot-item:hover {
        background-color: rgba(255, 255, 255, 0.6);
    }

    .team-card {
        position: relative;
        background: var(--bg);
        border-radius: var(--border-radius-md);
        overflow: hidden;
        box-shadow: 0 10px 25px var(--color-shadow);
        transition: all 0.3s ease;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .team-image {
        position: relative;
        flex: 1;
        overflow: hidden;
        border-radius: var(--border-radius-md);
    }

    .team-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .team-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 25px;
        background: linear-gradient(
            transparent,
            #270e3490,
            #270e34bd,
            #270e34bd,
            #270e34bd,
            #270e34c8,
            #270e34cc,
            #270e34df,
            #270e34
        );
        color: white;
        text-align: center;
        border-bottom-left-radius: var(--border-radius-md);
        border-bottom-right-radius: var(--border-radius-md);
        transform: translateY(100%);
        transition: transform 0.3s ease;
        opacity: 0;
    }

    .team-slide-active .team-info,
    .team-card.active:hover .team-info {
        transform: translateY(0);
        opacity: 1;
    }

    .team-info h3 {
        font-family: 'Dela Gothic One';
        letter-spacing: 1px;
        text-align: left;
        font-size: 1.5rem;
        font-weight: 500;
        margin-bottom: 10px;
        color: var(--primary);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .team-info p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 15px;
        text-align: left;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    .team-achievements {
        position: absolute;
        padding: 20px;
        width: 100%;
        display: flex;
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
        
    }

    .team-achievements span {
        background: var(--accent);
        color: white;
        padding: 5px 10px;
        border-radius: 15px;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        gap: 5px;
        transition: all 0.3s ease;
    }

    .team-achievements span:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
        transform: scale(1.05);
    }
    
    @media (max-width: 520px){
        .gallery{
            min-height: auto;
        }
        .team-slide-prev,
        .team-slide-active,
        .team-slide-next {
            transition: opacity 0.3s ease;
        }
        .team-slider-container{
            height: 550px;
            margin: 0;
            
        }  
        .team-slides-wrapper{
            margin-bottom: 20px;
        }    
        .team-slide-prev, .team-slide-next{
            width: 80%;
            height: 90%;
            
        } 
        .team-slide-active{
            height: 90%;
            width: 95%;
        } 
        .team-slide-prev {
            right: 32%;
        }
        .team-slide-next {
            left: 32%;
        }
        .team-nav-btn {
            display: none;
        }
        .team-dots-container{
            top: 520px;
            gap: 8px;
        }
        .team-dot-item {
            width: 8px;
            height: 8px;
        }
        .team-info h3{
            font-size: 1rem;
            letter-spacing: 1px;
        }
        .team-info p{
            font-size: 0.8rem;        
        }
        .team-achievements {
            gap: 5px;
        }
    }

    @media (min-width: 521px ) and (max-width:1024px) and (orientation: portrait){
        .gallery{
            min-height: auto;
        }
        .team-slide-prev,
        .team-slide-active,
        .team-slide-next {
            transition: opacity 0.3s ease;
        }
        .team-slider-container{
            height: 750px;
            margin: 0;
            
        }  
        .team-slides-wrapper{
            margin-bottom: 20px;
        }    
        .team-slide-prev, .team-slide-next{
            width: 60%;
            height: 90%;
            
        } 
        .team-slide-active{
            height: 90%;
            width: 60%;
        } 
        .team-slide-prev {
            right: 43%;
        }
        .team-slide-next {
            left: 43%;
        }
        .team-nav-btn {
            display: none;
        }
        .team-dots-container{
            top: 720px;
            gap: 10px;
        }
        .team-dot-item {
            width: 10px;
            height: 10px;
        }
        .team-info h3{
            font-size: 1.5rem;
            letter-spacing: 1px;
        }
        .team-info p{
            font-size: 1.1rem;        
        }
        .team-achievements {
            gap: 5px;
        }
        .team-achievements span{
            border-radius: 20px;
            font-size: 1rem;
        }
    }

    @media (min-width: 768px ) and (max-width:1919px) and (orientation: landscape){
        .gallery{
            min-height: auto;
        }
        .team-slide-prev {
            right: 68%;
        }
        .team-slide-next {
            left: 68%;
        }        
        .team-nav-btn {
            display: none;
        }
        .team-info h3{
            font-size: 1.2rem;
            letter-spacing: 1px;
        }
        .team-achievements {
            gap: 5px;
        }
    }

    /* 2K */ 
    @media (min-width:2048px) {
        .team-slider-container{
            height: 750px;
            
        }  
        .team-slides-wrapper{
            margin-bottom: 60px;
        }    
        .team-slide-prev, .team-slide-next{
            width: 540px;
            height: 680px;
            
        } 
        .team-slide-active{
            height: 680px;
            width: 540px;
        } 
        .team-nav-btn {
            width: 75px;
            height: 75px;
        }
        .team-nav-btn svg {
            width: 30px;
            height: 30px;
        }
        .team-nav-btn.prev {
            right: calc(50% + 270px + 30px);
        }

        .team-nav-btn.next {
            left: calc(50% + 270px + 30px);
        }
        .team-dots-container{
            top: 735px;
            gap: 12px;
        }
        .team-dot-item {
            width: 12px;
            height: 12px;
        }
        .team-info h3{
            font-size: 2.5rem;
            letter-spacing: 1px;
        }
        .team-info p{
            font-size: 1.5rem;        
        }
        .team-achievements {
            gap: 20px;
        }
        .team-achievements span{
            border-radius: 20px;
            font-size: 1.3rem;
        }
    }    

    /* 2.5K / QHD+ */ 
    @media (min-width:2560px) {
        .team-slider-container{
            height: 1050px;
            
        }  
        .team-slides-wrapper{
            margin-bottom: 60px;
        }    
        .team-slide-prev, .team-slide-next{
            width: 640px;
            height: 1000px;
            
        } 
        .team-slide-active{
            height: 1000px;
            width: 640px;
        } 
        .team-nav-btn {
            width: 100px;
            height: 100px;
        }
        .team-nav-btn svg {
            width: 40px;
            height: 40px;
        }
        .team-nav-btn.prev {
            right: calc(50% + 320px + 30px);
        }

        .team-nav-btn.next {
            left: calc(50% + 320px + 30px);
        }
        .team-dots-container{
            top: 1030px;
            gap: 15px;
        }
        .team-dot-item {
            width: 15px;
            height: 15px;
        }
        .team-info h3{
            font-size: 3rem;
            letter-spacing: 2px;
        }
        .team-info p{
            font-size: 2rem;        
        }
        .team-achievements {
            gap: 20px;
        }
        .team-achievements span{
            border-radius: 40px;
            font-size: 1.6rem;
        }
    }

    /* 4K */
    @media (min-width:4096px) {
        .team-slider-container{
            height: 1600px;
            
        }  
        .team-slides-wrapper{
            margin-bottom: 80px;
        }    
        .team-slide-prev, .team-slide-next{
            width: 1000px;
            height: 1500px;
            border-radius: 80px;
        } 
        .team-slide-active{
            height: 1500px;
            width: 1000px;
            border-radius: 80px;
        } 
        .team-nav-btn {
            width: 150px;
            height: 150px;
        }
        .team-nav-btn svg {
            width: 70px;
            height: 70px;
        }
        .team-nav-btn.prev {
            right: calc(50% + 500px + 30px);
        }

        .team-nav-btn.next {
            left: calc(50% + 500px + 30px);
        }
        .team-dots-container{
            top: 1580px;
            gap: 20px;
        }
        .team-dot-item {
            width: 20px;
            height: 20px;
        }
        .team-info h3{
            font-size: 5rem;
            letter-spacing: 2px;
        }
        .team-info p{
            font-size: 3rem;        
        }
        .team-achievements {
            gap: 40px;
        }
        .team-achievements span{
            border-radius: 80px;
            font-size: 2.6rem;
            padding: 15px;
        }
    }

    /* Teachers Preview */
    .teachers-preview {
        padding: var(--section-padding);
        background: var(--bg);
        color: var(--text);
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    .teachers-preview-grid {
        display: flex;
        justify-content: space-evenly;
        gap: calc((var(--max-width) - 100% ) /2);
        flex-wrap: wrap;
        margin-bottom: 40px;
    }

    .teacher-preview-card {
        position: relative;
        width: 360px;
        height: 450px;
        border-radius: var(--border-radius-md);
        overflow: hidden;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        transition: transform 0.4s ease;
    }



    .teacher-image-container {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
    }

    .teacher-main-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 0.3s ease;
    }


    .teacher-experience-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--accent70);
        color: white;
        font-weight: bold;
        font-size: 0.8rem;
        padding: 6px 12px;
        border-radius: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 2;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    .teacher-content-bottom {
        display: flex;
        align-content: flex-start;
        flex-direction: column;
        flex-wrap: wrap;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 25px;
        background: linear-gradient(
            transparent,
            #270e3490,
            #270e34bd,
            #270e34bd,
            #270e34bd,
            #270e34c8,
            #270e34cc,
            #270e34df,
            #270e34
        );
        color: white;
        text-align: center;
        border-bottom-left-radius: var(--border-radius-md);
        border-bottom-right-radius: var(--border-radius-md);
        transition: transform 0.3s ease;
    }

    .teacher-content-bottom h3 {
        width: 100%;
        font-family: 'Dela Gothic One';
        font-size: 1.5rem;
        font-weight: 500;
        letter-spacing: 1px;
        margin-bottom: 10px;
        color: var(--primary);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .teacher-content-bottom .teacher-role {
        font-size: 1.05rem;
        color: var(--text);
        margin-bottom: 15px;
        font-weight: 500;
    }

    .teacher-content-bottom .teacher-expertise {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 10px;
    }

    .teacher-content-bottom .expertise-tag {
        background: var(--accent70);
        color: #fff;
        padding: 5px 12px;
        border-radius: 16px;
        font-size: 0.8rem;
        font-weight: 600;
    }

    .teacher-content-bottom blockquote {
        font-style: italic;
        color: rgba(255, 255, 255, 0.95);
        font-size: 1.05rem;
        line-height: 1.6;
        margin: 10px 0 0;
        padding: 0 10px;
    }

    .text-center {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    @media (max-width: 520px){
        .teachers-preview-grid {
            flex-direction: column;
            align-items: center;
            gap: 30px;
        }
        .teacher-preview-card {
            width: 100%;
        }
        .teacher-experience-badge{
            font-size: 0.8rem;
        }
        .teacher-content-bottom h3{
            font-size: 1.1rem;
        }
        .teacher-content-bottom .teacher-role {
            font-size: 0.8rem;
        }
        .teacher-content-bottom .expertise-tag{
            font-size: 0.75rem;
            border-radius: 32px;
        }
        .teacher-content-bottom blockquote{
            font-size: 0.8rem;
        }

    }

    @media (min-width: 521px ) and (max-width:1024px) and (orientation: portrait){
        .teachers-preview-grid {
            flex-direction: column;
            align-items: center;
            gap: 30px;
        }
        .teacher-preview-card {
            width: 70%;
            height: 700px;
        }
        .teacher-experience-badge{
            font-size: 0.8rem;
        }
        .teacher-content-bottom h3{
            font-size: 1.5rem;
        }
        .teacher-content-bottom .teacher-role {
            font-size: 1.1rem;
        }
        .teacher-content-bottom .expertise-tag{
            font-size: 1rem;
            border-radius: 32px;
        }
        .teacher-content-bottom blockquote{
            font-size: 1.1rem;
        }
    }

    @media (min-width: 768px ) and (max-width:1200px) and (orientation: landscape){

        .teachers-preview{
            min-height: auto;
        }
        .teachers-preview-grid{
            margin-bottom: 70px;
        }
        .teacher-preview-card{
            width: 30%;
        }
        .teacher-experience-badge{
            font-size: 1rem;
        }
        .teacher-content-bottom h3{
            font-size: 1.2rem;
        }
        .teacher-content-bottom .teacher-role {
            font-size: 1rem;
        }
        .teacher-content-bottom .expertise-tag{
            font-size: 0.8rem;
            border-radius: 32px;
        }
        .teacher-content-bottom blockquote{
            font-size: 1rem;
        }
    }

    /* 2K */ 
    @media (min-width:2048px) {
        .teachers-preview-grid{
            margin-bottom: 70px;
        }
        .teacher-preview-card{
            height: 700px;
            width: 550px;
        }
        .teacher-experience-badge{
            font-size: 1.3rem;
        }
        .teacher-content-bottom h3{
            font-size: 2.5rem;
        }
        .teacher-content-bottom .teacher-role {
            font-size: 1.5rem;
        }
        .teacher-content-bottom .expertise-tag{
            font-size: 1.3rem;
            border-radius: 32px;
        }
        .teacher-content-bottom blockquote{
            font-size: 1.5rem;
        }
    }

    /* 2.5K / QHD+ */ 
    @media (min-width:2560px) {
        .teachers-preview-grid{
            margin-bottom: 100px;
        }
        .teacher-preview-card{
            height: 1000px;
            width: 650px;
        }
        .teacher-experience-badge{
            font-size: 1.6rem;
            border-radius: 40px;
        }
        .teacher-content-bottom h3{
            font-size: 3rem;
            letter-spacing: 2px;
        }
        .teacher-content-bottom .teacher-role {
            font-size: 2rem;
        }
        .teacher-content-bottom .expertise-tag{
            font-size: 1.7em;
            border-radius: 40px;
        }
        .teacher-content-bottom blockquote{
            font-size: 2rem;
        }
    }

    /* 4K */
    @media (min-width:4096px) {
        .teachers-preview-grid{
            margin-top: 80px;
            margin-bottom: 80px;
        }
        .teacher-preview-card{
            height: 1550px;
            width: 1000px;
        }
        .teacher-experience-badge{
            font-size: 2.5rem;
            width: 160px;
            text-align: center;
            border-radius: 80px;
    
        }
        .teacher-content-bottom h3{
            font-size: 5rem;
            letter-spacing: 2px;
        }
        .teacher-content-bottom .teacher-role {
            font-size: 3rem;
        }
        .teacher-content-bottom .expertise-tag{
            font-size: 2.8em;
            border-radius: 80px;
            padding: 10px;
        }
        .teacher-content-bottom blockquote{
            font-size: 3rem;
        }
    }

        /* Testimonials */
        .testimonials {
            padding: var(--section-padding);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .testimonials-slider {
            margin: 0 auto;
            overflow: hidden;
            position: relative;
            height: auto;
        }

        .testimonial-slide {
            display: none;
            position: relative;
            width: 100%;
            height: auto;
        }

        .testimonial-slide.active {
            display: block;
        }

        .testimonials-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 25px;
            margin-bottom: 30px;
            width: 100%;
        }

        .testimonial-card {
            background: var(--secondary50);
            border-radius: var(--border-radius-md);
            box-shadow: 0 10px 30px var(--color-shadow);
            color: var(--text);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: row;
            min-height: 200px;
            height: 100%;    
        }

        .testimonial-author {
            flex: 1;
            position: relative;
            max-width: 200px;
            aspect-ratio: 1/1;
            height: 100%;
        }

        .testimonial-author img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .author-overlay {
            color: white;
            font-size: 0.9rem;
            z-index: 1;
        }

        .author-overlay h4 {
            font-family: 'Dela Gothic One';
            letter-spacing: 1px;
            font-weight: 500;
            margin: 0;
            font-size: 1.5rem;
            color: var(--primary);
        }

        .author-overlay span {
            margin: 0;
            font-size: 0.8rem;
            opacity: 0.9;
            color: var(--text);
        }

        .testimonial-content {
            flex: 2;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 25px;
        }

        .testimonial-content p {
            font-size: 1rem;
            line-height: 1.6;
            opacity: 0.9;
            margin: 0;
            color: var(--text);
            flex: 1;
            display: flex;
            align-items: center;
            flex-direction: column;
            justify-content: space-evenly;
        }

        .slider-nav {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 20px;
        }

        .slider-btn {
            width: 50px;
            height: 50px;
            border: none;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
        }

        .slider-btn svg{
            width: 20px;
            height: 20px;
            fill: var(--bg);
        }

        .slider-btn:hover {
            transform: scale(1.1);
        }

        .slider-btn:hover svg{
            transform: scale(1.1);
        }

        .slider-btn:disabled {
            background: var(--secondary50);
            color: var(--text);
            cursor: not-allowed;
            transform: none;
        }

        .slider-btn:disabled svg{
            fill: var(--text);
        }

        .slider-indicators {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 10px;
        }

        .indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--secondary70);
            cursor: pointer;
            transition: var(--transition);
        }

        .indicator.active {
            background: var(--accent);
            scale: 1.4;
        }
        
        /* Модальное окно для отзывов */
#review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content-tm {
    background: var(--bg);
    max-height: 80vh;
    overflow-y: auto; 
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 560px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    color: var(--text);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #000;
}

#modal-review-text {
    margin: 0;
    white-space: pre-wrap;
}

/* Кнопка "Читать больше" в отзыве */
.btn-read{
    width:100%;
    display:flex;
        justify-content: flex-end;
}
.btn-read-more {
    background: var(--primary);
    color: var(--bg);
    border: none;
    padding: 6px 12px 6px 16px;
    margin-left: 8px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 100, 0, 0.3);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 100, 0, 0.4);
    background: linear-gradient(135deg, #ffa500, #ff7b00);
}

.btn-read-more:active {
    transform: translateY(0);
}

.btn-read-more .icon-arrow {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

.btn-read-more:hover .icon-arrow {
    transform: translateX(3px);
}

/* Адаптация под мобильные */
@media (max-width: 520px) {
    .btn-read-more {
        font-size: 0.8rem;
        padding: 5px 10px 5px 12px;
        gap: 5px;
    }
    .btn-read-more .icon-arrow {
        width: 14px;
        height: 14px;
    }
}



        /* Мобильная версия - по одному отзыву */
        @media (max-width: 520px) {
            .testimonials{
                min-height: auto;
            }
            .testimonials-container {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .testimonial-card {
                flex-direction: column;
                text-align: center;
                min-height: 450px;
                width: 100%;
            }
            
            .testimonial-author {
                flex: none;
                margin-right: 0;
                margin-top: 15px;
                width: 100%;
                height: 200px;
                aspect-ratio: auto;
                max-width: 100%;
            }

            .testimonial-author img{
                width: 150px;
                height: 200px;
                border-radius: var(--border-radius-md);
            }
            
            .testimonial-content {
                flex: 1;
                padding: 15px;
            }

            .author-overlay h4{
                font-size: 1.1rem;
                letter-spacing: 2px;
            }
            .author-overlay span{
                font-size: 0.7rem;
            }
            .testimonial-content p{
                text-align: left;
                font-size: 0.8rem;
                line-height: 1.8;
            }
            .slider-indicators{
            gap: 8px;
            }
            
            /* Скрываем все карточки кроме активной */
            .testimonials-container-mobile .testimonial-card {
                display: none;
            }
            
            .testimonials-container-mobile .testimonial-card.active {
                display: flex;
            }
        }

    @media (min-width: 521px ) and (max-width:1024px) and (orientation: portrait){
        .testimonials{
            min-height: auto;

        }
        .testimonials-container{
            display: block;
        }
        .testimonial-card{
            height: 230px;
        }
        .testimonial-author{
        max-width: 200px;
        }
        .author-overlay h4{
            font-size: 1.5rem;
            letter-spacing: 2px;
        }
        .author-overlay span{
            font-size: 1rem;
        }
        .testimonial-content p{
            font-size: 1rem;
        }
        .slider-nav{
            gap: 25px;
        }
        .slider-btn{
            width: 75px;
            height: 75px;
        }
        .slider-btn svg{
            width: 30px;
            height: 30px;
        }
        .slider-indicators{
            gap: 10px;
        }
        .indicator{
            width: 10px;
            height: 10px;
        }

    }        

    @media (min-width: 768px ) and (max-width:1700px) and (orientation: landscape){
        .testimonials{
            min-height: auto;
        }
        .testimonial-author{
            max-width: 200px;
        }
        .author-overlay h4{
            font-size: 1.2rem;
            letter-spacing: 2px;
        }
        .author-overlay span{
            font-size: 0.8rem;
        }
        .testimonial-content p{
            font-size: 1rem;
        }
        .slider-nav{
            gap: 25px;
        }
    }

    /* 2K */ 
    @media (min-width:2048px) {
        .testimonial-card{
            height: 330px;
        }
        .testimonial-author{
        max-width: 250px;
        }
        .author-overlay h4{
            font-size: 2rem;
            letter-spacing: 2px;
        }
        .author-overlay span{
            font-size: 1.2rem;
        }
        .testimonial-content p{
            font-size: 1.5rem;
        }
        .slider-nav{
            gap: 25px;
        }
        .slider-btn{
            width: 75px;
            height: 75px;
        }
        .slider-btn svg{
            width: 30px;
            height: 30px;
        }
        .slider-indicators{
            gap: 12px;
        }
        .indicator{
            width: 12px;
            height: 12px;
        }
    }

    /* 2.5K / QHD+ */
    @media (min-width:2560px) {
        .testimonials-container{
            gap: 40px;
        }
        .testimonial-card{
            height: 500px;
        }
        .testimonial-author{
            max-width: 350px;
        }
        .author-overlay h4{
            font-size: 3rem;
            letter-spacing: 2px;
        }
        .author-overlay span{
            font-size: 1.8rem;
        }
        .testimonial-content p{
            font-size: 2rem;
        }
        .slider-nav{
            gap: 30px;
        }
        .slider-btn{
            width: 90px;
            height: 90px;
        }
        .slider-btn svg{
            width: 40px;
            height: 40px;
        }
        .slider-indicators{
            gap: 15px;
        }
        .indicator{
            width: 15px;
            height: 15px;
        }
    }

    /* 4K */
    @media (min-width:4096px) {
        .testimonials-container{
            gap: 60px;
        }
        .testimonial-card{
            height: 750px;
        }
        .testimonial-author{
            max-width: 500px;
        }
        .author-overlay h4{
            font-size: 5rem;
            letter-spacing: 2px;
        }
        .author-overlay span{
            font-size: 2.8rem;
        }
        .testimonial-content p{
            font-size: 3rem;
        }
        .slider-nav{
            gap: 50px;
        }
        .slider-btn{
            width: 150px;
            height: 150px;
        }
        .slider-btn svg{
            width: 70px;
            height: 70px;
        }
        .slider-indicators{
            gap: 20px;
        }
        .indicator{
            width: 20px;
            height: 20px;
        }
    }

    /* Programs Section */
    .programs {
        min-height: 100vh;
        color: white;
        padding: var(--section-padding);
        display: flex;
        align-items: center;
    }

    .programs-grid {
        margin-top: 50px;
        width: 100%;
        display: flex;
        gap: 50px;
    }

    .program-card {
        background: var(--secondary50);
        padding: 20px 30px;
        border-radius: var(--border-radius-md);
        box-shadow: 0 10px 30px var(--color-shadow);
        position: relative;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        color: var(--text);
        width: 33%;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
    }

    .program-card.animate {
        opacity: 1;
        transform: translateY(0);
    }

    .program-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px var(--color-shadow-strong);
    }

    .program-card.featured {
        border: 3px solid var(--accent);
        transform: translateY(-20px);
    }

    .card-badge {
        position: absolute;
        top: -15px;
        right: 20px;
        background: var(--accent);
        color: var(--text);
        padding: 5px 15px;
        border-radius: 15px;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .card-icon {
        height: 70px;
        text-align: center;
    }

    .card-icon img {
        height: 100%;
        margin-bottom: 20px;
    }

    .program-card h3 {
        font-family: 'Dela Gothic One';
        font-size: 2rem;
        letter-spacing: 1px;
        font-weight: 500;
        margin-bottom: 10px;
        color: var(--primary);
        text-align: center;
    }

    .age-group {
        font-size: 1.1rem;
        color: var(--text);
        font-weight: 600;
        margin-bottom: 20px;
        text-align: center;
    }

    .program-description {
        color: var(--text);
        margin-bottom: 25px;
        line-height: 1.6;
        font-size: 1rem;
        opacity: 1;
        text-indent: 30px;
    }

    .program-features {
        list-style: none;
        margin-bottom: 30px;
    }

    .program-features li {
        padding: 8px 0;
        color: var(--text);
        font-size: 1rem;
        position: relative;
        padding-left: 30px;
    }

    .program-features li::before {
        content: '✓';
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
        position: absolute;
        text-align: center;
        left: 0;
        color: var(--text);
        background-color: var(--accent);
        border-radius: 50%;
        font-weight: bold;
    }

    .program-btn {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    @media (max-width: 520px){
        .programs-grid {
            display: grid;
            grid-template-columns: 1fr;
        }
        .card-icon{
            height: 50px;
            margin-bottom: 10px;
        }
        .program-card h3{
            font-size: 1.2rem;
        }
        .program-card {
              width: auto;
        }
        .age-group{
            font-size: 0.9rem;
        }
        .program-description{
            font-size: 0.8rem;
            text-indent: 20px;
        }
        .program-features li{
            font-size: 0.8rem;
        }
        .program-features li::before {
            width: 17px;
            height: 17px;
            font-size: 0.8em;
        }
        
    }

    @media (min-width: 521px ) and (max-width:1024px) and (orientation: portrait){

        .programs-grid {
            display: grid;
            grid-template-columns: 1fr;
        }
        .card-icon{
            height: 80px;
            margin-bottom: 10px;
        }
        .program-card h3{
            font-size: 2rem;
        }
        .age-group{
            font-size: 1.2rem;
        }
        .program-description{
            font-size: 1.1rem;
            text-indent: 20px;
        }
        .program-features li{
            font-size: 1.1rem;
        }
        .program-features li::before {
            width: 25px;
            height: 25px;
            font-size: 1rem;
            left: -10px;
        }
        .card-badge{
            font-size: 1.4rem;
            top: -25px;
            border-radius: 32px;
        }

    }

    @media (min-width: 768px ) and (max-width:1919px) and (orientation: landscape){
        .program-card h3{
            font-size: 1.5rem;
        }

    }

    /* 2K */ 
    @media (min-width:2048px) {
        .programs-grid{
            gap: 50px;
            margin-top: 60px;
        }
        .card-icon{
            height: 100px;
        }
        .program-card{
            width: 600px;
        }
        .program-card h3{
            font-size: 3rem;
        }
        .age-group{
            font-size: 1.6rem;
        }
        .program-description{
            font-size: 1.5rem;
            text-indent: 50px;
        }
        .program-features li{
            font-size: 1.5rem;
        }
        .program-features li::before {
            width: 30px;
            height: 30px;
            font-size: 1.1rem;
            left: -10px;
        }
        .card-badge{
            font-size: 1.4rem;
            top: -25px;
            border-radius: 32px;
        }

    }

    /* 2.5K / QHD+ */
    @media (min-width:2560px) {
        .programs-grid{
            gap: 80px;
            margin-top: 100px;
        }
        .card-icon{
            height: 150px;
        }
        .program-card{
            width: 700px;
        }
        .program-card h3{
            font-size: 4rem;
        }
        .age-group{
            font-size: 2.1rem;
        }
        .program-description{
            font-size: 2rem;
            text-indent: 80px;
        }
        .program-features li{
            font-size: 2rem;
        }
        .program-features li::before {
            width: 45px;
            height: 45px;
            font-size: 2rem;
            left: -25px;
        }
        .card-badge{
            font-size: 1.9rem;
            top: -30px;
            border-radius: 40px;
        }
    }

    /* 4K */
    @media (min-width:4096px) {
        .programs-grid{
            gap: 100px;
            margin-top: 150px;
        }
        .card-icon{
            height: 200px;
        }
        .program-card{
            width: 1200px;
        }
        .program-card h3{
            font-size: 5rem;
        }
        .age-group{
            font-size: 3.1rem;
        }
        .program-description{
            font-size: 3rem;
            text-indent: 100px;
        }
        .program-features li{
            font-size: 3rem;
            margin: 0 50px;
        }
        .program-features li::before {
            width: 60px;
            height: 60px;
            font-size: 2.6rem;
            left: -45px;
        }
        .card-badge{
            font-size: 2.9rem;
            top: -40px;
            border-radius: 80px;
        }

    }

    /* CTA Section */
    .cta-section {
        position: relative;
        min-height: 100vh;
        color: white;
        padding: 120px 0;
        display: flex;
        align-items: center;
    }

    .cta-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover; 
        z-index: -1; 
        pointer-events: none; 
    }

    .cta-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: center;
        animation: fadeInUp 1s ease 0.4s both;
    }

    .cta-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 3em;
    }

    .cta-content h1 {
        font-family: 'Dela Gothic One';
        font-size: 2.8rem;
        line-height: 1.3;
        margin-bottom: 20px;
        font-weight: 100;
    }

    .cta-subtitle {
        font-size: 1.4rem;
        font-weight: 500;
        opacity: 0.95;
        line-height: 1.6;
    }

    .cta-buttons {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        flex-direction: row-reverse;
        justify-content: flex-end;
        align-items: center;
    }

    .cta-image img {
        width: 60%;
        height: auto;
        border-radius: 15px;
        object-fit: cover;
    }

    .btn-cta-primary {
        padding: var(--btn-padding);
        border: none;
        height: 52px;
        border-radius: var(--border-radius-full);
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 1.5rem;
    }

    @media (max-width: 520px){
        .cta-grid {
            display: flex;
            flex-direction: column-reverse;
        }
        .cta-content{
            gap: 10px;
            text-align: center;
        }
        .cta-buttons{
            justify-content: center;
        }
        .cta-content h1{
            font-size: 1.5rem;
        }
        .cta-subtitle{
            font-size: 1rem;        
        }
        .btn-cta-primary{
            margin-top: 30px;
            height: 52px;
            font-size: 1.5rem;
            width: 200px;
            font-weight: 800;
        }
    }

    @media (min-width: 521px ) and (max-width:1024px) and (orientation: portrait){
        .cta-grid {
            display: flex;
            flex-direction: column-reverse;
        }
        .cta-content{
            gap: 10px;
            text-align: center;
        }
        .cta-buttons{
            justify-content: center;
            margin-top: 30px
        }
        .cta-content h1{
            font-size: 2.5rem;
        }
        .cta-subtitle{
            font-size: 1.3rem;        
        }
        .btn-cta-primary{
            height: 72px;
            font-size: 2rem;
            width: 250px;
            font-weight: 800;
        }
    }

    @media (min-width: 768px ) and (max-width:1919px) and (orientation: landscape){
        .cta-section{
            min-height: auto;
                padding: 70px 0;
        }
        .cta-content h1{
            font-size: 2.3rem;
        }
        .cta-subtitle{
            font-size: 1.1rem;        
        }

    }

    /* 2K */ 
    @media (min-width:2048px) {
        .cta-content h1{
            font-size: 4rem;
        }
        .cta-subtitle{
            font-size: 2rem;        
        }
        .btn-cta-primary{
            height: 62px;
            font-size: 2rem;
            width: 250px;
            font-weight: 800;
        }
    }

    /* 2.5K / QHD+ */
    @media (min-width:2560px) {
        .cta-content h1{
            font-size: 5rem;
        }
        .cta-subtitle{
            font-size: 2.5rem;        
        }
        .btn-cta-primary{
            height: 72px;
            font-size: 2.5rem;
            width: 270px;
            font-weight: 800;
        }
    }

    /* 4K */
    @media (min-width:4096px) {
        .cta-content h1{
            font-size: 8rem;
        }
        .cta-subtitle{
            font-size: 3.5rem;        
        }
        .btn-cta-primary{
            height: 132px;
            font-size: 4rem;
            width: 400px;
            font-weight: 800;
        }
    }

    /* Footer */
    .footer {
        background: var(--bg);
        padding: 60px 0 20px;
    }

    .footer-content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-section h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        color: var(--primary);
    }

    .footer-section p {
        color: var(--text);
        margin-bottom: 10px;
        opacity: 0.9;
    }

    .footer-links{
        color: var(--text);
        text-decoration: line-through;
        opacity: 0.5;
        border-bottom: 1px solid var(--text);
    }

    .footer-links:hover{
        color: var(--primary);
        border-bottom: 1px solid var(--primary);
        opacity: 1;        
    }


    .social-links {
        display: flex;
        gap: 15px;
        margin-top: 20px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        background: var(--secondary70);
        color: var(--text);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: var(--transition);
    }

    .social-links a:hover {
        transform: translateY(-3px);
    }

    .footer-bottom {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid var(--color-border);
        opacity: 0.9;
    }

    .footer-bottom h3 {
        color: var(--primary);
        font-size: 1rem;    
        letter-spacing: 1px;    
    }

    @media (max-width: 520px){
         .footer-section h3{
            font-size: 1.5rem;
        }
        .footer-content p, a{
            font-size: 0.8rem;
        }
        .footer-bottom{
            font-size: 0.8rem;
            margin-bottom: 75px;
        }
    }

    @media (min-width: 521px ) and (max-width:1024px) and (orientation: portrait){
         .footer-section h3{
            font-size: 2rem;
        }
        .footer-content p, a{
            font-size: 1.1rem;
        }
        .footer-bottom{
            font-size: 1.1rem;
            margin-bottom: 75px;
        }
    }

    @media (min-width:768px ) and (max-width:1919px) and (orientation: landscape){
        .footer-section h3{
            font-size: 1.5rem;
        }
        .footer-content p, a{
            font-size: 1.1rem;
        }
        .footer-bottom{
            font-size: 1.1rem;
        }
    }
    /* 2K */ 
    @media (min-width:2048px) {
        .footer-section h3{
            font-size: 2.5rem;
        }
        .footer-content p,a{
            font-size: 1.5rem;
        }
        .social-links a{
            width: 60px;
            height: 60px;
            font-size: 1.7rem;
        }
        .footer-bottom h3{
            font-size: 1.5rem;
        }
    }

    /* 2.5K / QHD+ */
    @media (min-width:2560px) {
        .footer-section h3{
            font-size: 3rem;
        }
        .footer-content p,a{
            font-size: 2rem;
        }
        .social-links a{
            width: 80px;
            height: 80px;
            font-size: 2.2rem;
        }
        .footer-bottom h3{
            font-size: 2rem;
        }
    }

    /* 2.5K / QHD+ */
    @media (min-width:4096px) {
        .footer-section h3{
            font-size: 5rem;
        }
        .footer-content p,a{
            font-size: 3rem;
        }
        .social-links a{
            width: 120px;
            height: 120px;
            font-size: 3.2rem;
        }
        .footer-bottom h3{
            font-size: 3rem;
        }
    }


/* === Модальное окно === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg);
    padding: 40px;
    border-radius: var(--border-radius-md);
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    color: var(--text);
}

.modal.active .modal-content {
    transform: scale(0.9);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text);
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal h2 {
    text-align: center;
    margin-bottom: 5px;
    color: var(--text);
    font-size: 2rem;
}

/* === Форма === */
.signup-form {
    display: flex;
    flex-direction: column;
    
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.signup-form input {
    padding: 15px;
    border: 2px solid var(--text);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.3s;
}

.signup-form input:focus,
.flatpickr-input:focus {
    border-color: var(--accent) !important;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Ошибки */
.error-message {
    font-size: 0.85rem;
    color: #e74c3c;
    min-height: 18px;
    margin-top: -4px;
}

/* Нет красной рамки при загрузке */
input:invalid:placeholder-shown {
    border-color: var(--text);
    box-shadow: none;
}

/* Только при ошибке после ввода */
input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #e74c3c;
}

input:focus{
    border-color:var(--accent);
}



/* === Чекбокс согласия === */
.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
}

.consent-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary);
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    accent-color: var(--primary);
}

.consent-checkbox span {
    display: block;
}

.consent-checkbox a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.consent-checkbox a:hover {
    text-decoration: underline;
    color: var(--accent);
}


/* === Окно успеха === */
.success-content {
    text-align: center;
    padding: 60px 40px;
    max-width: 500px;
}

.success-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.success-content p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Адаптив */
@media (max-width: 521px) {
    .modal h2 {
        font-size: 1.5rem;
    }
    .signup-form input {
        padding: 12px;
        font-size: 1rem;
    }
    .btn-modal {
        font-size: 1rem;
        padding: 14px;
    }
    .form-group label{
            font-size: 0.8rem;
    }
}
    /* 2K */ 
    @media (min-width:2048px) {
        .consent-checkbox {
            font-size: 1.45rem;
        }
        .consent-checkbox input[type="checkbox"]{
            width: 30px;
            height: 30px;
        }
        .modal-content{
            max-width: 800px;
        }
        .modal h2{
            font-size: 3rem;
        }
        .signup-form{
            gap: 30px;
        }
        .signup-form input,
        .signup-form select {
            height: 90px;
            font-size: 1.5rem;
        }
        .btn-modal{
            height: 90px;
            font-weight: 800;
            text-align: center;
            width: 100%;
            font-size: 2rem;
        }
        option {
            font-size: 1rem;
        }
    }

    /* 2.5K / QHD+ */
    @media (min-width:2560px) {
        .modal-content{
            max-width: 900px;
        }
        .consent-checkbox {
            font-size: 1.9rem;
        }
        .consent-checkbox input[type="checkbox"]{
            width: 50px;
            height: 50px;
        }
        .modal h2{
            font-size: 3.5rem;
        }
        .signup-form{
            gap: 40px;
        }
        .signup-form input,
        .signup-form select {
            height: 100px;
            font-size: 2rem;
        }
        .btn-modal{
            height: 100px;
            font-weight: 800;
            text-align: center;
            width: 100%;
            font-size: 2.5rem;
        }
        option {
            font-size: 1rem;
        }
    }

    /* 4K */
    @media (min-width:4096px) {
        .modal-content{
            max-width: 1500px;
        }
        .consent-checkbox {
            font-size: 2.9rem;
        }
        .consent-checkbox input[type="checkbox"]{
            width: 70px;
            height: 70px;
        }
        .modal h2{
            font-size: 5rem;
        }
        .signup-form{
            gap: 80px;
        }
        .signup-form input,
        .signup-form select {
            height: 180px;
            font-size: 3rem;
            border-radius: 30px;
        }
        .btn-modal{
            height: 180px;
            font-weight: 800;
            text-align: center;
            width: 100%;
            font-size: 4rem;
        }
        option {
            font-size: 1rem;
        }
    }
    
    /* Video Modal */
    .video-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .video-modal.active {
        opacity: 1;
        visibility: visible;
    }

    .video-modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
    }

    .video-modal-content {
        position: relative;
        width: 90%;
        max-width: 800px;
        aspect-ratio: 16/9;
    }

    .video-modal-close {
        position: absolute;
        top: -50px;
        right: 0;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        transition: color 0.3s;
    }

    .video-modal-close:hover {
        color: var(--primary);
    }

    .video-modal iframe {
        width: 100%;
        height: 100%;
        border-radius: var(--border-radius-sm);
    }

    /* Scroll to Top Button */
    .scroll-to-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background: var(--secondary);
        color: var(--text);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        transition: var(--transition);
        z-index: 998;
        opacity: 0;
        pointer-events: none;
        transform: translateY(20px); /* Добавляем начальное смещение для анимации */
    }

    .scroll-to-top.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .scroll-to-top:hover {
        background: var(--primary);
        color: var(--bg);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(139, 0, 139, 0.4);
    }

    /* 2K */ 
    @media (min-width:2048px) {
        .scroll-to-top{
            width: 70px;
            height: 70px;
            font-size: 1.2rem;
        }
        
    }

    /* 2.5K / QHD+ */
    @media (min-width:2048px) {
        .scroll-to-top{
            width: 90px;
            height: 90px;
            font-size: 1.5rem;
        }
        
    }


    /* Validation Messages */
    .validation-message {
        font-size: 0.9rem;
        margin-top: 5px;
        padding: 5px 10px;
        border-radius: 5px;
    }

    .validation-message.error {
        background: #ffe6e6;
        color: #d32f2f;
        border: 1px solid #ffcdd2;
    }

    .validation-message.success {
        background: #e8f5e8;
        color: #388e3c;
        border: 1px solid #c8e6c9;
    }

    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-20px);
        }
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
        100% {
            transform: scale(1);
        }
    }
    /* Floating "Записаться" Button */
    .floating-book-btn {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        z-index: 998;
        background: var(--primary);
        color: var(--bg);
        padding: 14px 32px;
        border: none;
        border-radius: var(--border-radius-full);
        font-weight: 700;
        font-size: 16px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 50px;
        min-width: 180px;
        opacity: 0;
        pointer-events: none;
        white-space: nowrap;
    }

    .floating-book-btn:hover {
        background: var(--secondary);
        color: var(--bg);
    }

    .floating-book-btn.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    @media (min-width: 1025px) {
        .floating-book-btn {
            display: none;
        }
    }

.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    transition: transform 0.2s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
  }

.cookie-settings-btn svg{
    width: 40px;
    height: 40px;
    
}

  .cookie-settings-btn:hover {
    opacity: 1;
    transform: rotate(90deg);
  }

  .cookie-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: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .cookie-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .cookie-modal {
    background: var(--bg);
    width: 90%;
    max-width: 520px;
    border-radius: 12px;
    padding: 24px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
  }

  .cookie-overlay.active .cookie-modal {
    transform: translateY(0);
  }

  .cookie-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: var(--primary);
  }

  .cookie-header p {
    margin: 0;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.5;
  }

  .cookie-header a {
    color: var(--primary);
    text-decoration: none;
  }

  .cookie-header a:hover {
    text-decoration: underline;
  }

  .cookie-option {
    margin: 10px 0;
  }

  .cookie-option label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
  }

  .cookie-option input {
    margin-top: 4px;
  }

  .cookie-option strong {
    font-weight: 600;
    color: var(--primary);
  }

  .cookie-option span {
    font-size: 13px;
    color: var(--text);
    display: block;
    margin-top: 2px;
  }

  .cookie-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
  }


  @media (max-width: 480px) {
    .cookie-settings-btn {
       opacity: 0;
    }
    .cookie-header h2{
        font-size: 1.2rem;
    }
    .cookie-header p{
        font-size: 0.9rem;
    }
    .cookie-option strong {
        font-size: 1.1rem;
    }

    .cookie-option span {
        font-size: 0.8rem;
    }
    .cookie-modal {
      width: 90%;
      padding: 20px;
    }

    .cookie-actions {
      flex-direction: column;
    }

  }

  /* === Адаптация под высокое разрешение (2K, 4K, 2.5K) === */

/* Для экранов с высокой плотностью пикселей (2x и выше) */
@media 
  (-webkit-min-device-pixel-ratio: 2),
  (min-resolution: 192dpi),
  (min-resolution: 2dppx) {
  
  /* Увеличиваем размеры только если экран большой И высокой чёткости */
  @media (min-width: 1920px) {
    .cookie-settings-btn {
      width: 60px;
      height: 60px;
      bottom: 30px;
      left: 30px;
    }

    .cookie-settings-btn svg {
      width: 48px;
      height: 48px;
    }

    .cookie-modal {
      max-width: 600px;
      padding: 32px;
    }

    .cookie-header h2 {
      font-size: 1.75rem;
    }

    .cookie-header p {
      font-size: 1.125rem;
    }

    .cookie-option strong {
      font-size: 1.15rem;
    }

    .cookie-option span {
      font-size: 0.95rem;
    }

    .cookie-actions {
      gap: 16px;
    }
  }
}

/* Дополнительно: ещё более агрессивное увеличение для 4K (3840px+) */
@media (min-width: 3840px) {
  .cookie-settings-btn {
    width: 90px;
    height: 90px;
    bottom: 40px;
    left: 40px;
    font-size: 24px;
  }

  .cookie-settings-btn svg {
    width: 76px;
    height: 76px;
  }

  .cookie-modal {
    min-width: 1300px;
    padding: 40px;
  }

  .cookie-header h2 {
    font-size: 5rem;
  }

  .cookie-header p {
    font-size: 3rem;
    line-height: 1.6;
  }

  .cookie-option strong {
    font-size: 3.5rem;
  }

  .cookie-option span {
    font-size: 3rem;
  }
}


