:root {
    /* Динамические размеры шрифтов */
    --font-size-large: 4.5vw;
    --font-size-section-title: 3vw;
    --font-size-medium: 1.8vw;
    --font-size-tariff-text: 3.6vw;
    --font-size-small: 1.35vw;
    --font-size-nav: 1.6vw;
    
    /* Динамические отступы */
    --spacing-large: 3vw;
    --spacing-medium: 2.5vw;
    --spacing-small: 1.5vw;
    --spacing-tiny: 0.4vw;
    
    /* Динамические скругления */
    --border-radius-large: 2vw;
    --border-radius-medium: 1vw;
    --border-radius-small: 0.5vw;
    
    /* Динамические размеры элементов */
    --logo-size: 10vw;
    --burger-width: 2vw;
    --burger-height: 0.2vw;
    --burger-spacing: 0.3vw;
    
    /* Дополнительные динамические размеры */
    --header-height: 4vw;
    --card-image-height: 8vw;
    --card-image-height-mobile: 6vw;
}

/* Мобильные размеры (меньше 768px) */
@media screen and (max-width: 768px) {
    :root {
        /* Мобильные динамические размеры шрифтов */
        --font-size-large: 8vw;
        --font-size-section-title: 6vw;
        --font-size-medium: 4vw;
        --font-size-tariff-text: 8vw;
        --font-size-small: 3vw;
        --font-size-nav: 3vw;
        
        /* Мобильные динамические отступы */
        --spacing-large: 6vw;
        --spacing-medium: 4vw;
        --spacing-small: 2vw;
        --spacing-tiny: 1vw;
        
        /* Мобильные динамические скругления */
        --border-radius-large: 5vw;
        --border-radius-medium: 2.5vw;
        --border-radius-small: 1.2vw;
        
        /* Мобильные динамические размеры элементов */
        --logo-size: 8vw;
        --burger-width: 5vw;
        --burger-height: 0.5vw;
        --burger-spacing: 0.8vw;
        
        /* Мобильные дополнительные размеры */
        --header-height: 10vw;
        --card-image-height: 20vw;
        --card-image-height-mobile: 15vw;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white;
    line-height: 140%;
    /* letter-spacing: -1px; */
}

body {
    font-family: Arial, sans-serif;
    background-color: black;
}

.header {
    background-color: #000000;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

.nav-container {
    padding: var(--spacing-small) var(--spacing-medium);
}

.third-section-bg {
    background-image: url("../img/bg2.png");
    background-size: cover;
    margin: var(--spacing-small) 0 var(--spacing-small) var(--spacing-medium);
}

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

.logo img {
    width: var(--logo-size);
    /* height: var(--logo-size); */
}

.about-section {
    padding-top: var(--spacing-small);
    padding-bottom: var(--spacing-small);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.about-section-text {
    background-color: white;
    color: black;
    display: inline-block;
    padding: var(--spacing-small) var(--spacing-medium);
    border-radius: var(--border-radius-large);
    font-size: var(--font-size-small);
    font-weight: 600;
    font-family: "Noto Sans";
    margin: var(--spacing-medium);
    text-align: left;
}

.about-section-bg {
    background-image: url("../img/bg2.png");
    background-size: cover;
    margin: var(--spacing-small) var(--spacing-medium);
    border-radius: var(--border-radius-large) 0 0 0;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.about-section-title {
    display: flex;
    justify-content: space-between;
}

.third-section-header {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-right: var(--spacing-medium);
}

.third-section-spacer {
    flex: 1;
    display: flex;
    justify-content: center;
}

.third-section-header-title sup {
    color: rgba(255, 255, 255, 0.2);
    font-size: 2vw;
}


.form-success-message {
    margin-top: 20px;
    text-align: center;
    line-height: 1.5;
    font-family: "Unbounded";
    font-size: var(--font-size-small);
}

.third-section-header-title {
    /* color: white; */
    height: fit-content;
    padding: 0 4vw .5vw 6vw;
    background: black;
    font-family: "Unbounded";
    border-radius: 0 0 var(--border-radius-large) 0;
    font-weight: 900;
    font-size: var(--font-size-section-title);
}

.third-section-text {
    height: fit-content;
    font-family: "Unbounded";
    color: black;
    background: white;
    padding: var(--spacing-tiny) var(--spacing-small);
    border-radius: var(--border-radius-medium);
    margin-top: 2vw;
    font-size: calc(var(--font-size-small) * 0.85);
}

.about-section-title-text {
    /* color: white; */
    padding: 0 6vw .5rem 4vw;
    background: black;
    font-family: "Unbounded";
    border-radius: 0 0 0 var(--border-radius-large);
    font-weight: 900;
    font-size: var(--font-size-section-title);
}

.logo {
    position: absolute;
    margin: var(--spacing-large);
    font-size: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-medium);
    margin-right: var(--spacing-medium);
}

.nav-link {
    /* color: white; */
    font-family: "Inter";
    font-weight: 900;
    font-size: var(--font-size-nav);
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Бургер меню */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding-right: var(--spacing-small);
}

.burger-line {
    width: var(--burger-width);
    height: var(--burger-height);
    border-radius: calc(var(--burger-height) / 2);
    background-color: white;
    margin: var(--burger-spacing) 0;
}

.first-section {
    /* min-height: calc(100vh - var(--header-height)); */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.first-section-text {
    background-image: url("../img/bg1.png");
    background-size: cover;
    background-position: bottom right;
    margin: 0;
    /* color: white; */
    align-content: center;
    flex: 1;
    font-family: "Unbounded";
    font-weight: 900;
    line-height: 140%;
    font-size: calc(var(--font-size-large) * 1.7);
    /* font-size: 7rem; */
    padding-left: 5vw;
}

.first-section-footer {
    width: -webkit-fill-available;
    align-self: center;
    justify-content: space-between;
    background-color: black;
    margin: 0;
    display: flex;
    /* padding: 1.5rem; */
}

.first-section-footer-text {
    margin-bottom: 0;
    padding-left: var(--spacing-small);
    padding-top: var(--spacing-small);
    padding-bottom: var(--spacing-small);
    /* color: white; */
    padding-left: var(--spacing-small);
    width: 70%;
    align-self: center;
    font-family: "Unbounded";
    font-weight: 900;
    line-height: 140%;
    letter-spacing: -2%;
    font-size: var(--font-size-medium);
}

.stats {
    display: flex;
    justify-content: space-around;
    padding: var(--spacing-small);
    gap: var(--spacing-medium);
}

.stat {
    text-align: center;
    font-family: "Noto Sans";
}

.stat-number {
    font-weight: 100;
    font-size: var(--font-size-large);
    margin-bottom: 2vw;
}

.stat-text {
    font-weight: 500;
    font-size: var(--font-size-small);
}

.first-section-footer-arrow {
    display: block;
    text-align: end;
    /* width: 50%; */
    /* padding: 2rem 3rem; */
    /* flex: auto; */
    margin-right: 6vw;
    margin-top: var(--spacing-small);
    margin-bottom: var(--spacing-small);
    margin-left: 3vw;
    align-self: center;
    animation: arrow 3s ease-in-out infinite;
}

.tarifi {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1.25vw;
    align-items: stretch;
}

.tarif-aspect::before {
    /* content: "<img src=\"assets/img/list-circle.svg\">"; */
    content: url("../img/list-circle.svg");
    width: calc(var(--font-size-small) * 0.6667 * .75);
    height: calc(var(--font-size-small) * 0.6667 * .75);
    display: inline-block;
    vertical-align: text-top;
    margin-right: calc(var(--font-size-small) * 0.6667 * .75);;

}

.tarif-aspect {
    font-family: "Unbounded";
    font-weight: 500;
    font-size: calc(var(--font-size-small) * 0.6667);
    /* list-style-image: url("/assets/img/list-circle.svg"); */
}

.tarif-aspects {
    list-style-type: none;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 0.5vw;
    position: relative;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
}

/* Скрываем скроллбар в WebKit браузерах */
.tarif-aspects::-webkit-scrollbar {
    display: none;
}

/* Обертка для tarif-aspects с градиентами */
.tarif-aspects-wrapper {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Градиент сверху - на верхней границе видимой области */
.tarif-aspects-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3vw;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tarif-aspects-wrapper.has-scroll-top::before {
    opacity: 1;
}

/* Градиент снизу - на нижней границе видимой области */
.tarif-aspects-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3vw;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.95) 30%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tarif-aspects-wrapper.has-scroll-bottom::after {
    opacity: 1;
}

.tarif-aspect:not(:last-child) {
    margin-bottom: var(--spacing-small);
}

.tarif {
    background-color: black;
    padding: var(--spacing-small);
    width: 32.5%;
    border-radius: var(--border-radius-medium);
    border: 1px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    /* transition: border-width 0.3s ease, border-color 0.3s ease, padding 0.3s ease; */
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tarif.selected {
    border: 5px solid #28CFC6;
    width: 35%;
}

.tarif-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: linear-gradient(135deg, #ffffff 0%, #28CFC6 50%, #ffffff 100%);
    background-size: 200% 200%;
    color: black;
    font-family: "Unbounded";
    font-weight: 900;
    font-size: calc(var(--font-size-small) * 0.7);
    padding: 0.5vw 1.5vw;
    border-radius: var(--border-radius-small);
    white-space: nowrap;
    z-index: 10;
    animation: shimmer 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(40, 207, 198, 0.5), 0 0 30px rgba(40, 207, 198, 0.3);
    border: 2px solid rgba(40, 207, 198, 0.6);
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: 0 0 15px rgba(40, 207, 198, 0.5), 0 0 30px rgba(40, 207, 198, 0.3);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 25px rgba(40, 207, 198, 0.8), 0 0 40px rgba(40, 207, 198, 0.5);
    }
}

.third-section-raw {
    display: flex;
    padding: var(--spacing-large);
    flex-direction: row;
    gap: 2vw;
    align-items: stretch;
}

/* Для десктопной версии форма слева */
@media screen and (min-width: 769px) {
    .form {
        order: -1;
    }
    
    .tarifi {
        order: 0;
    }
}

.form {
    background-color: black;
    padding: var(--spacing-large);
    border-radius: var(--border-radius-medium);
    border: white 1px solid;
    width: 30%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    height: fit-content;
}

.form-description {
    font-family: "Unbounded";
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-small);
    font-size: calc(var(--font-size-small) * 0.9);
}

.form-inputs {
    display: flex;
    margin-bottom: var(--spacing-small);
    flex-direction: column;
    gap: calc(var(--spacing-small) * 0.5);
}

.selected-tarif-text {
    font-family: "Unbounded";
    font-weight: 600;
    font-size: calc(var(--font-size-small) * 0.85);
    text-align: center;
    margin-bottom: var(--spacing-small);
    color: rgba(255, 255, 255, 0.8);
}

.selected-tarif-text span {
    font-weight: 900;
    color: #28CFC6;
}

.form input::placeholder {
    font-family: "Unbounded";
}

.tarif-price {
    font-family: "Unbounded";
    font-weight: 900;
    text-align: center;
    font-size: var(--font-size-medium);
    margin: 2vw 0;
}

.form input {
    background-color: black;
    border-color: white;
    border: white 1px solid;
    padding: calc(var(--spacing-small) * 0.4) calc(var(--spacing-small) * 0.7);
    font-family: "Unbounded";
    border-radius: var(--border-radius-small);
}

.form-submit {
    color: black;
    font-family: "Unbounded";
    font-size: var(--font-size-small);
    font-weight: 900;
    margin-bottom: var(--spacing-small);
    padding: 1vw;
    border: none;
    border-radius: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #28CFC6 50%, #ffffff 100%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(40, 207, 198, 0.5), 0 0 30px rgba(40, 207, 198, 0.3);
    border: 2px solid rgba(40, 207, 198, 0.6);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.form-submit:hover {
    transform: scale(1.05);
}

.form-consent {
    font-family: "Noto Sans";
    font-size: calc(var(--font-size-small) * 0.6);
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.4;
}

.form-consent-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.form-consent-link:hover {
    opacity: 0.8;
}

.form-title {
    font-family: "Unbounded";
    font-weight: 900;
    margin-bottom: var(--spacing-small);
    text-align: center;
    font-size: var(--font-size-medium);
    background: linear-gradient(135deg, #ffffff 0%, #28CFC6 30%, #ffffff 60%, #28CFC6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 4s ease-in-out infinite;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(40, 207, 198, 0.6)) drop-shadow(0 0 20px rgba(40, 207, 198, 0.3));
}

@keyframes titleShimmer {
    0%, 100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 10px rgba(40, 207, 198, 0.6)) drop-shadow(0 0 20px rgba(40, 207, 198, 0.3));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 15px rgba(40, 207, 198, 0.9)) drop-shadow(0 0 30px rgba(40, 207, 198, 0.5));
    }
}



.tarif-header {
    min-height: calc(var(--font-size-medium) * 2.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Unbounded";
    font-weight: 900;
    margin-bottom: var(--spacing-small);
    text-align: center;
    font-size: var(--font-size-small);
}

.tarif-desc {
    font-family: "Unbounded";
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-bottom: var(--spacing-small);
    font-size: calc(var(--font-size-small) * 0.55);
}

.whywe {
    background-color: black;
    color: white;
    font-family: "Unbounded";
    font-weight: 900;
    font-size: var(--font-size-section-title);
    padding: 2vw 3.5vw;
    border-radius: var(--border-radius-large) 0 0 var(--border-radius-large);
    margin: 2vw 0;
    text-align: left;
    width: fit-content;
    margin-left: auto;
    margin-right: 0;
}

/* .first-section-footer-arrow img {
    width: 4rem;
} */

@keyframes arrow{
    0% {
        transform: translateY(-5px)
    }

    50% {
        transform: translateY(5px)
    }

    100% {
        transform: translateY(-5px)
    }
}

/* Медиа-запросы для мобильных устройств */
@media screen and (max-width: 768px) {
    .first-section-footer-arrow {
        margin-right: 3vw;
        margin-top: var(--spacing-small);
        margin-bottom: var(--spacing-small);
        margin-left: 3vw;
    }

    .about-section-text {
        font-size: calc(var(--font-size-small) * 1.5);
    }

    .about-section-bg {
        margin: 0;
    }

    .about-section-title {
        display: block;
    }

    .stat-number {
        font-size: calc(var(--font-size-large) * 1.5);
        margin-bottom: var(--spacing-small);
    }

    .stat-text {
        font-size: calc(var(--font-size-small) * 1.5);
    }

    .stats {
        flex-direction: column;
    }

    .about-section-title-text {
        border-radius: 0;
        padding: 8vw 4vw 1vw 0;
        font-size: var(--font-size-section-title);
        text-align: right;
    }

    .burger {
        display: flex;
    }

    .burger-line {
        width: calc(var(--burger-width) * 1.5);
    }

    .first-section-footer-text {
        font-size: var(--font-size-medium);
        width: 100%;
    }

    .first-section-footer {
        display: block;
    }

    .logo img {
        width: 30vw;
    }

    .form-success-message {
        font-size: var(--font-size-medium);
    }

    .first-section {
        min-height: 100vh;
    }

    .first-section-text {
        padding-left: var(--spacing-small);
        font-size: calc(var(--font-size-large) * 1.5);
    }

    .nav {
        padding: var(--spacing-medium) var(--spacing-small);
        width: 100%;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        background-color: #000;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-links-container {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        padding: var(--spacing-small) var(--spacing-medium);
    }

    .nav-link {
        padding: 2vw 0;
        display: block;
        margin-left: 6vw;
        text-align-last: start;
        width: auto;
        text-align: right;
        border-bottom: 1px solid #444;
        min-width: 150px;
        font-size: calc(var(--font-size-nav) * 1.5);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Header расширяется вниз при открытом меню */
    .header.expanded {
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
}

.result-text {
    font-family: "Unbounded";
    font-weight: 900;
    font-size: var(--font-size-medium);
    text-align: center;
    margin: 3vw 0;
    padding: 0 8vw;
}

/* Стили для блока карточек */
.cards {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* gap: 4vw; */
    padding: 4vw 8vw;
}

.card {
    flex: 1;
    background-color: transparent;
    border-left: 1px solid white;
    padding-left: 2.5vw;
    display: flex;
    flex-direction: column;
}

.card-header {
    font-family: "Unbounded";
    font-weight: 900;
    font-size: calc(var(--font-size-small) * .85);
    margin-bottom: 2vw;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    min-height: calc(var(--font-size-small) * .8 * 3);
    display: flex;
    align-items: flex-start;
}

.card-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-right: 1.5vw;
    /* gap: 1.5vw; */
}

.card-text {
    font-family: "Noto Sans";
    font-weight: 400;
    padding-right: 1vw;
    font-size: calc(var(--font-size-small) * 0.85);
    line-height: 1.4;
    flex: 0 0 70%;
}

.card-image {
    flex: 0 0 30%;
    height: var(--card-image-height);
}

.card-image img {
    width: 80%;
    object-fit: cover;
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
    /* Адаптация third-section */
    .third-section-bg {
        margin: 0;
        background-size: cover;
        background-position: center;
        overflow-x: visible;
        overflow-y: visible;
    }
    
    .third-section-header {
        flex-direction: column;
        align-items: stretch;
        padding-right: 0;
    }
    
    .third-section-header-title {
        font-size: var(--font-size-section-title);
        padding: 8vw 0 1vw 4vw;
        border-radius: 0;
        text-align: left;
    }
    
    .third-section-spacer {
        justify-content: center;
        padding: 0 4vw;
    }
    
    .third-section-text {
        font-size: calc(var(--font-size-small) * 1.2);
        padding: var(--spacing-tiny) var(--spacing-small);
        margin-top: var(--spacing-small);
        text-align: center;
        border-radius: var(--border-radius-medium);
    }
    
    .third-section-raw {
        display: flex;
        flex-direction: column;
        padding: 0 0 4vw 0;
        gap: 4vw;
        overflow-x: visible;
        overflow-y: visible;
    }
    
    .form {
        padding: var(--spacing-large);
        border-radius: var(--border-radius-medium);
        margin: 0 4vw;
        width: calc(100% - 8vw);
        height: auto;
    }
    
    .form-title {
        font-size: calc(var(--font-size-small) * 2);
        margin-bottom: var(--spacing-small);
    }
    
    .form-description {
        font-size: var(--font-size-small);
        margin-bottom: var(--spacing-small);
    }
    
    .form-inputs {
        gap: var(--spacing-medium);
    }
    
    .selected-tarif-text {
        font-size: var(--font-size-small);
        margin-top: var(--spacing-small);
    }
    
    .form input {
        padding: 3vw 2.5vw;
        font-size: var(--font-size-small);
        border-radius: var(--border-radius-small);
    }
    
    .form-submit {
        font-size: calc(var(--font-size-small) * 1.5);
        padding: 2.5vw 3vw;
        margin-top: var(--spacing-small);
    }
    
    .form-consent {
        font-size: calc(var(--font-size-small) * 0.7);
        padding: 0 2vw;
    }
    
    .tarifi {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4vw;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 10vw;
        -webkit-overflow-scrolling: touch;
        padding: 10vw 0 2vw 0;
        width: 100%;
        box-sizing: border-box;
        scrollbar-width: none;
        -ms-overflow-style: none;
        align-self: flex-start;
        height: auto;
    }
    
    .tarifi::-webkit-scrollbar {
        display: none;
    }
    
    .tarifi::before,
    .tarifi::after {
        content: '';
        flex-shrink: 0;
        width: 10vw;
    }
    
    .tarif {
        min-width: 80vw;
        max-width: 80vw;
        width: 80vw;
        flex-shrink: 0;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        padding: var(--spacing-large);
        border-radius: var(--border-radius-medium);
        transition: height 0.15s ease-in-out;
        box-sizing: border-box;
    }
    
    .tarif.selected {
        width: 80vw;
        border: 1px solid white;
        overflow: visible;
    }
    
    .tarif-badge {
        font-size: calc(var(--font-size-small) * 1.2);
        padding: 1vw 3vw;
    }
    
    .tarif-header {
        font-size: calc(var(--font-size-small) * 2);
        min-height: auto;
        margin-bottom: 2vw;
    }
    
    .tarif-desc {
        font-size: calc(var(--font-size-small) * 0.7);
        margin-bottom: 2vw;
    }
    
    .tarif-price {
        font-size: calc(var(--font-size-small) * 2);
        margin: 2vw 0;
    }
    
    .tarif-aspect {
        font-size: var(--font-size-small);
        margin-bottom: 1.5vw;
    }
    
    .whywe {
        font-size: calc(var(--font-size-large) * 0.8);
        padding: var(--spacing-medium);
        border-radius: var(--border-radius-medium) 0 0 var(--border-radius-medium);
        margin: var(--spacing-medium) 0;
        text-align: center;
        width: 90%;
        margin-left: auto;
        margin-right: 0;
    }
    
    .cards {
        flex-direction: column;
        gap: 3vw;
        padding: 3vw 5vw;
    }
    
    .card-header {
        font-size: var(--font-size-small);
        /* height: 4vw; */
        margin-bottom: 3vw;
    }
    
    .card-text {
        font-size: var(--font-size-small);
    }
    
    .card {
        padding-left: 1.5vw;
    }
    
    .card-body {
        gap: var(--spacing-small);
    }
    
    .card-text {
        flex: 0 0 70%;
    }
    
    .card-image {
        flex: 0 0 30%;
        height: var(--card-image-height-mobile);
    }

    .card-image img {
        width: 60%;
    }
    
    .result-text {
        font-size: var(--font-size-medium);
        margin: 2vw 0;
        padding: 0 5vw;
    }
}

/* Секция "Наши преподаватели" */
.our-teachers {
    padding: 2vw 8vw;
    display: flex;
    gap: 3vw;
    background-color: #090F10;
    /* padding: 2vw 4vw 6vw 4vw; */
    /* display: flex; */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.our-teachers-title {
    font-family: "Unbounded";
    font-weight: 900;
    font-size: var(--font-size-section-title);
    color: white;
    text-align: center;
}

.our-teachers-cards {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2vw;
}

.our-teacher-card {
    flex: 1;
    padding: 2vw;
    background-color: black;
    border: 1px solid white;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.our-teacher-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-medium);
}

.our-teacher-card-image {
    /* width: 100%; */
    /* height: 100%; */
    /* background-color: #d9d9d9; */
    border-radius: var(--border-radius-medium);
}

.our-teacher-card-info {
    padding-top: 1.5vw;
    /* padding: 1.5vw 1.2vw; */
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.our-teacher-card-name {
    background-color: white;
    color: black;
    font-family: "Unbounded";
    font-weight: 900;

    font-size: calc(var(--font-size-small) * 0.85);
    padding: 0.6vw 1vw;
    border-radius: var(--border-radius-small);
    text-align: center;
    width: 100%;
    /* width: fit-content; */
    margin: 0 auto;
}

.our-teacher-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.3vw;
    margin-left: 0.5vw;
}

.our-teacher-card-experience,
.our-teacher-card-location {
    font-family: "Noto Sans";
    font-weight: 400;
    font-size: calc(var(--font-size-small) * 0.7);
    color: white;
    text-align: left;
}

.our-teachers-desc {
    font-family: "Unbounded";
    font-weight: 700;
    font-size: var(--font-size-small);
    color: white;
    text-align: center;
    max-width: 900px;
    line-height: 1.6;
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
    .our-teachers {
        padding: 8vw 0;
        overflow-x: hidden;
        align-items: stretch;
        min-height: auto;
    }

    .our-teachers-title {
        font-size: var(--font-size-section-title);
        margin-bottom: 6vw;
        padding: 0 4vw;
    }

    .our-teachers-cards {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4vw;
        margin-bottom: 6vw;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 10vw;
        -webkit-overflow-scrolling: touch;
        padding: 2vw 0;
        width: 100%;
        box-sizing: border-box;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .our-teachers-cards::-webkit-scrollbar {
        display: none;
    }

    .our-teacher-card {
        min-width: 80vw;
        max-width: 80vw;
        width: 80vw;
        flex-shrink: 0;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .our-teachers-cards::before,
    .our-teachers-cards::after {
        content: '';
        flex-shrink: 0;
        width: 10vw;
    }

    .our-teacher-card-image {
        height: 240px;
        width: calc(100% - 4vw);
        margin: 2vw 2vw 0 2vw;
    }

    .our-teacher-card-info {
        padding: 3vw 2.5vw;
        gap: 2vw;
    }

    .our-teacher-card-name {
        font-size: var(--font-size-small);
        padding: 1.2vw 2vw;
    }

    .our-teacher-card-details {
        gap: 0.5vw;
        margin-left: 1vw;
    }

    .our-teacher-card-experience,
    .our-teacher-card-location {
        font-size: var(--font-size-small);
    }

    .our-teachers-desc {
        font-size: var(--font-size-small);
        padding: 0 4vw;
    }
}

/* Секция галереи */
.gallery-section {
    background-color: #000000;
    padding: 6vw 8vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: center;
}

.gallery-section-title {
    font-family: "Unbounded";
    font-weight: 900;
    font-size: var(--font-size-section-title);
    color: white;
    text-align: center;
    margin-bottom: 4vw;
}

.gallery-container {
    width: 100%;
    max-width: 1400px;
    overflow: hidden;
    margin-bottom: 4vw;
    background-color: white;
    padding: 3vw 2vw;
    border-radius: var(--border-radius-large);
}

.gallery-scroll {
    display: flex;
    gap: 0.5vw;
    will-change: transform;
    cursor: grab;
    user-select: none;
}

.gallery-scroll:active {
    cursor: grabbing;
}

.gallery-item {
    flex-shrink: 0;
    width: 30vw;
    height: auto;
    overflow: hidden;
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    transition: opacity 0.2s ease;
}

.gallery-item img:hover {
    opacity: 0.9;
}

.gallery-control {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4vw;
}

.gallery-slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.gallery-slider {
    width: 100%;
    height: 0.6vw;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    border-radius: 1vw;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
}

.gallery-slider::-moz-range-track {
    width: 100%;
    height: 0.6vw;
    background: transparent;
    border-radius: 1vw;
}

.gallery-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 0.6vw;
    background: transparent;
    border-radius: 1vw;
}

.gallery-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 4vw;
    height: 4vw;
    background: url("../img/slider.png") no-repeat center;
    background-size: contain;
    border: none;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    z-index: 2;
    margin-top: -1.85vw;
    transition: transform 0.2s ease;
}

.gallery-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2) rotate(-10deg);
}

.gallery-slider::-moz-range-thumb {
    width: 4vw;
    height: 4vw;
    background: url("../img/slider.png") no-repeat center;
    background-size: contain;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}



@media screen and (min-width: 769px) {
    .gallery-slider:hover::-moz-range-thumb {
        transform: scale(1.2) rotate(-10deg);
    }
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
    .gallery-slider:active::-moz-range-thumb {
        transform: scale(1.2) rotate(-10deg);
    }

    .gallery-section {
        padding: 8vw 4vw;
        min-height: auto;
    }

    .gallery-section-title {
        font-size: var(--font-size-section-title);
        margin-bottom: 6vw;
    }

    .gallery-container {
        margin-bottom: 6vw;
    }

    .gallery-scroll {
        gap: 1vw;
    }

    .gallery-item {
        width: 90vw;
        height: auto;
    }

    .gallery-container {
        padding: 3vw 2vw;
    }

    .gallery-control {
        padding: 0 2vw;
    }


    .gallery-slider {
        height: 1.5vw;
    }
    
    .gallery-slider::-moz-range-track {
        height: 1.5vw;
    }
    
    .gallery-slider::-webkit-slider-runnable-track {
        height: 1.5vw;
    }

    .gallery-slider::-webkit-slider-thumb {
        width: 10vw;
        height: 10vw;
        margin-top: -4.5vw;
    }

    .gallery-slider::-moz-range-thumb {
        width: 10vw;
        height: 10vw;
    }
}

/* Модальное окно для просмотра изображений */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: 2vw;
    right: 3vw;
    color: #ffffff;
    font-size: 4vw;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: opacity 0.2s ease;
    line-height: 1;
    width: 5vw;
    height: 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.image-modal-close:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .image-modal-close {
        top: 3vw;
        right: 4vw;
        font-size: 6vw;
        width: 8vw;
        height: 8vw;
    }
    
    .image-modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
}

/* Секция FAQ */
.faq-section {
    background-color: #000000;
    padding: 6vw 8vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-section-title {
    font-family: "Unbounded";
    font-weight: 900;
    font-size: var(--font-size-section-title);
    color: white;
    text-align: center;
    margin-bottom: 1vw;
}

.faq-section-subtitle {
    font-family: "Inter";
    font-weight: 400;
    font-size: calc(var(--font-size-small) * 0.9);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 4vw;
}

.faq-section-items {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5vw;
    width: 100%;
    max-width: 1400px;
}

.faq-section-item {
    background-color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-small);
    width: 100%;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.faq-section-item:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.faq-section-item.active {
    border-color: rgba(255, 255, 255, 0.6);
}

.faq-section-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2vw 2.5vw;
}

.faq-section-item-question {
    font-family: "Unbounded";
    font-weight: 500;
    font-size: calc(var(--font-size-small) * 0.9);
    color: white;
    margin: 0;
    flex: 1;
    padding-right: 2vw;
}

.faq-section-item-arrow {
    font-size: calc(var(--font-size-small) * 0.8);
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-section-item.active .faq-section-item-arrow {
    transform: rotate(180deg);
}

.tarif-aspects {
    font-family: "Unbounded";
    font-weight: 500;
    font-size: calc(var(--font-size-small) * 0.6);
    /* list-style-type: none; */
    padding: 0;
    margin: 0;
}

.tarif-aspects li {
    margin-bottom: calc(var(--font-size-small) * 0.6);
}

.faq-section-item-answer {
    font-family: "Noto Sans";
    font-weight: 400;
    font-size: calc(var(--font-size-small) * 1);
    color: rgba(255, 255, 255, 0.8);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
    padding: 0 2.5vw;
    line-height: 1.6;
    margin: 0;
}

.faq-section-item.active .faq-section-item-answer {
    max-height: 2000px;
    padding: 0 2.5vw 2vw 2.5vw;
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
    .faq-section {
        padding: 8vw 4vw;
    }

    .faq-section-title {
        font-size: var(--font-size-section-title);
        margin-bottom: 2vw;
    }

    .faq-section-subtitle {
        font-size: var(--font-size-small);
        margin-bottom: 6vw;
    }

    .faq-section-items {
        flex-direction: column;
        gap: 3vw;
    }

    .tarif-aspects  {
        font-size: var(--font-size-small);
    }

    .faq-section-item {
        width: 100%;
        min-width: auto;
    }

    .faq-section-item-header {
        padding: 4vw 5vw;
    }

    .faq-section-item-question {
        font-size: var(--font-size-medium);
        padding-right: 3vw;
    }

    .faq-section-item-arrow {
        font-size: var(--font-size-small);
    }

    .faq-section-item-answer {
        padding: 0 5vw;
    }

    .faq-section-item.active .faq-section-item-answer {
        padding: 0 5vw 4vw 5vw;
    }

    .faq-section-item-answer p {
        font-size: var(--font-size-small);
    }
}

/* Секция "Остались вопросы?" */
.questions-section {
    background-color: #000000;
    padding: 8vw 8vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.questions-section-title {
    font-family: "Unbounded";
    font-weight: 900;
    font-size: var(--font-size-section-title);
    color: white;
    text-align: center;
    margin-bottom: 2vw;
}

.questions-section-subtitle {
    font-family: "Unbounded";
    font-weight: 400;
    font-size: calc(var(--font-size-small) * 1.1);
    color: rgba(255, 255, 255, 1);
    text-align: center;
    margin-bottom: 6vw;
    max-width: 900px;
    line-height: 1.6;
}

.questions-section-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    min-height: 20vw;
}

.questions-arrow {
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease, left 0.3s ease, right 0.3s ease;
}

.questions-arrow-left {
    left: 2%;
}

.questions-arrow-right {
    right: 2%;
    transform: translateY(-50%) rotate(-5deg);
}

.questions-section-content:has(.questions-section-button:hover) .questions-arrow-left {
    left: -2%;
    transform: translateY(-50%) scale(1.1);
}

.questions-section-content:has(.questions-section-button:hover) .questions-arrow-right {
    right: -2%;
    transform: translateY(-50%) rotate(-5deg) scale(1.1);
}

.questions-arrow img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.questions-section-button {
    position: relative;
    z-index: 2;
    color: black;
    font-family: "Unbounded";
    font-size: calc(var(--font-size-small) * 1.2);
    font-weight: 900;
    padding: 1.5vw 4vw;
    border: none;
    border-radius: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #28CFC6 50%, #ffffff 100%);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(40, 207, 198, 0.5), 0 0 30px rgba(40, 207, 198, 0.3);
    border: 2px solid rgba(40, 207, 198, 0.6);
    cursor: pointer;
    transition: transform 0.2s ease;
    white-space: nowrap;
}

.questions-section-button:hover {
    transform: scale(1.05);
}

/* Адаптивность для мобильных устройств */
@media screen and (max-width: 768px) {
    .questions-section {
        padding: 8vw 4vw;
        min-height: auto;
    }

    .questions-section-title {
        font-size: var(--font-size-section-title);
        margin-bottom: 4vw;
    }

    .questions-section-subtitle {
        font-size: var(--font-size-small);
        margin-bottom: 8vw;
        padding: 0 2vw;
    }

    .questions-section-content {
        flex-direction: column;
        gap: 6vw;
        min-height: 40vw;
    }

    .questions-arrow {
        position: absolute;
        width: 60%;
        top: 50%;
        transform: translateY(-50%);
    }

    .questions-arrow-left {
        left: 2%;
    }

    .questions-arrow-right {
        right: 2%;
    }

    .questions-section-button {
        position: relative;
        z-index: 2;
        font-size: calc(var(--font-size-small) * 1);
        padding: 3vw 6vw;
        max-width: 90%;
    }
}

/* Footer */
.footer {
    background-color: #000E0F;
    padding: 4vw 8vw;
    margin-top: 0;
}

.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 4vw;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-block {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer-block-title {
    font-family: "Unbounded";
    font-weight: 900;
    font-size: calc(var(--font-size-small) * 1.1);
    color: white;
    margin-bottom: 2vw;
    text-transform: uppercase;
}

.footer-info-text {
    font-family: "Unbounded";
    font-weight: 700;
    font-size: calc(var(--font-size-small) * 0.9);
    color: white;
    margin-bottom: 1vw;
}

.footer-info-desc {
    font-family: "Noto Sans";
    font-weight: 400;
    font-size: calc(var(--font-size-small) * 0.8);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 2vw;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.8vw;
}

.footer-contact-item {
    font-family: "Noto Sans";
    font-weight: 400;
    font-size: calc(var(--font-size-small) * 0.75);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.footer-link {
    color: #28CFC6;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 1vw;
}

.footer-social-link {
    font-family: "Noto Sans";
    font-weight: 500;
    font-size: calc(var(--font-size-small) * 0.85);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.8vw 1.2vw;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
    display: inline-block;
    width: fit-content;
}

.footer-social-link:hover {
    background-color: rgba(40, 207, 198, 0.2);
    border-color: #28CFC6;
    color: #28CFC6;
    transform: translateX(0.5vw);
}

.footer-developers-text {
    font-family: "Noto Sans";
    font-weight: 400;
    font-size: calc(var(--font-size-small) * 0.8);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5vw;
}

.footer-developers-name {
    font-family: "Unbounded";
    font-weight: 600;
    font-size: calc(var(--font-size-small) * 0.85);
    color: #28CFC6;
    margin-bottom: 2vw;
}

.footer-copyright {
    font-family: "Noto Sans";
    font-weight: 400;
    font-size: calc(var(--font-size-small) * 0.7);
    color: rgba(255, 255, 255, 0.5);
    margin-top: auto;
    padding-top: 2vw;
}

/* Адаптивность footer для мобильных устройств */
@media screen and (max-width: 768px) {
    .footer {
        padding: 6vw 4vw;
    }

    .footer-container {
        flex-direction: column;
        gap: 6vw;
    }

    .footer-block-title {
        font-size: calc(var(--font-size-small) * 1.5);
        margin-bottom: 3vw;
    }

    .footer-info-text {
        font-size: var(--font-size-small);
        margin-bottom: 2vw;
    }

    .footer-info-desc {
        font-size: var(--font-size-small);
        margin-bottom: 3vw;
    }

    .footer-contacts {
        gap: 2vw;
    }

    .footer-contact-item {
        font-size: var(--font-size-small);
    }

    .footer-social-links {
        gap: 2vw;
    }

    .footer-social-link {
        font-size: var(--font-size-small);
        padding: 2vw 3vw;
    }

    .footer-developers-text {
        font-size: var(--font-size-small);
        margin-bottom: 1vw;
    }

    .footer-developers-name {
        font-size: var(--font-size-small);
        margin-bottom: 3vw;
    }

    .footer-copyright {
        font-size: calc(var(--font-size-small) * 0.9);
        padding-top: 3vw;
    }
}