/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PT Root UI', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #000;
    overflow-x: hidden;
    /* Плавная прокрутка для мобильных устройств */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Оптимизация для предотвращения рывков */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

button {
    all: unset;
    cursor: pointer;
}

a {
    all: unset;
    cursor: pointer;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: PT Root UI;
}

header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1300px;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    height: 70px;
    padding: 0 20px;
    box-sizing: border-box;
}

header nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    height: 40px;
    font-size: 12px;
    font-weight: 400;
}

header nav p:nth-child(2) {
    text-align: center;
}

header nav p:nth-child(3) {
    text-align: right;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.menu-trigger {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.menu-trigger:hover {
    opacity: 0.7;
}

main {
    display: flex;
    flex-direction: column;
    min-height: 60vh;
    gap: 120px;
    margin-top: 70px;
}

.content {
    background: #000;
}

.content p, h3 {
    font-size: 40px;
    font-weight: 700;
    line-height: 40px;
    color: #fff;
}

.hero-banner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: space-between;
    justify-content: space-between;
    padding: 28px;
    height: 650px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

/* Плейсхолдер */
.hero-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.hero-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Адаптивные изображения hero-banner */
.hero-banner-mobile {
    display: none;
}

.hero-banner-desktop {
    display: block;
}

@media (max-width: 768px) {
    .hero-banner-mobile {
        display: block;
    }
    
    .hero-banner-desktop {
        display: none;
    }
}

.hero-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Видео фон */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-video.loaded {
    opacity: 1;
}

/* Оптимизация для мобильных устройств */
@media (max-width: 768px) {
    .hero-video {
        /* Отключаем аппаратное ускорение для экономии батареи */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        /* Улучшаем производительность */
        will-change: transform;
        /* Принудительное использование GPU */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* Дополнительные стили для медленных устройств */
    .hero-video.loaded {
        /* Плавный переход для мобильных */
        transition: opacity 0.3s ease-in-out;
    }
}

.hero-banner h1 {
    font-size: 160px;
    font-weight: 300;
    line-height: 140px;
    letter-spacing: -12px;
    color: #fff;
    position: relative;
    z-index: 3;
}

/* Базовые стили для вращающегося элемента */
.hero-banner a.rotate-text {
    --rotate-size: 72px;
    --star-size: 36px;

    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 28px;
    top: 50px;
    width: var(--rotate-size);
    height: var(--rotate-size);
    transition: transform 0.3s ease-out;
    cursor: pointer;
    z-index: 3;
}

/* Фоновое вращающееся изображение */
.hero-banner a.rotate-text img:nth-child(1) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotate 12s linear infinite;
}

/* Центральная звездочка */
.hero-banner a.rotate-text img:nth-child(2) {
    position: relative;
    width: var(--star-size);
    height: var(--star-size);
    z-index: 1;
}

/* Анимация вращения */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

.hero-banner .price {
    display: flex;
    flex-direction: row;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    flex-basis: 100%;
}

.price p {
    padding: 12px 18px;
    border-radius: 10px;
}

.price p:nth-child(1) {
    background: #2D2D2D;
    color: #fff;
    font-size: 28px;
    font-weight: 400;
    line-height: 30px;
    text-transform: uppercase;
}

.price p:nth-child(2) {
    background: #000;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 50px 0;
}

.hero-content p {
    width: 70%;
    font-size: 24px;
    font-weight: 600;
    line-height: 30px;
}

.hero-content button, .hero-content .cta, .modal-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 420px;
    height: 60px;
    background: #99233B;
    color: #fff;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.hero-content button:hover, .hero-content .cta:hover, .modal-buy-btn:hover {
    background: #ABB546;
}

.learn {
    display: flex;
    flex-direction: column;
    gap: 66px;
}

.header-title {
    display: flex;
    padding: 96px 0 24px 0;
}

.header-title h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: normal;
    color: #99233B;
    text-transform: uppercase;
}

.learn-content {
    display: flex;
    flex-direction: column;
    gap: 200px;
}

.learn-item {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.learn-item.single {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.learn-item-description {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
}

.single .learn-item-description {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
}

.learn-item-description h3 {
    width: calc(60% - 20px);
}

.learn-item-description p {
    width: 35%;
    font-size: 24px;
    font-weight: 400;
    line-height: normal;
    color: #fff;
}

.single .learn-item-description h3 {
    width: 100%;
}

.single .learn-item-description p {
    width: 70%;
}

.learn-item-images {
    position: relative;
    width: 100%;
    height: 400px;
}

.learn-item-images .swiper-slide {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: auto;
    flex-shrink: 0;
}

.swiper {
    overflow: visible !important;
}

.learn-item-images img {
    width: calc(1300px * 0.6 - 40px);
    max-width: calc(1300px * 0.6 - 40px);
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Адаптивные изображения для learn секции теперь генерируются динамически */

.about {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 130px;
}

.about-left {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    width: calc(60% - 10px);
    gap: 40px;
}

.about-left img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
}

.about-left a {
    margin-top: 16px;
}

.about-left a img {
    width: 28px;
    height: 28px;
    border-radius: 0;
}

.about-left p {
    width: calc(100% - 88px);
    font-size: 100px;
    font-weight: 400;
    line-height: 90px;
    color: #fff;
    text-transform: uppercase;
}

.about-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: calc(40% - 10px);
    gap: 20px;
}

.about-right p {
    font-size: 21px;
    font-weight: 300;
    line-height: normal;
    color: #fff;
}

.about-right p:last-child {
    color: #99233B;
    font-weight: 400;
    text-transform: uppercase;
}

/* Стили для program-topics */
.program-topics {
    position: relative;
    overflow: visible;
}

.program-topics .wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.content--sticky {
    width: 100vw;
    position: sticky;
    top: 0;
    --offset: 0px;
    top: var(--offset);
    height: calc(100vh - var(--offset));
}

.program-topics-item {
    width: 100%;
    height: 80vh;
    margin: auto;
    margin-bottom: 5vh;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.program-topics-item p {
    font-size: 130px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin: 0;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для program-modules */
.program-modules {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.program-modules-content {
    display: flex;
    flex-direction: column;
}

.program-modules-content:last-child {
    border-bottom: 1px solid #000;
}

.program-modules-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0;
    gap: 20px;
    border-top: 1px solid #000;
    overflow: hidden;
    transform-origin: center top;
    will-change: height, transform;
    transition: height 0.3s ease, transform 0.25s ease;
}

.program-modules-item-module {
    width: 8%;
}

.program-modules-item-module p {
    padding: 6px 9px;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    background: #99233B;
    border-radius: 10px;
    color: #fff;
    text-transform: uppercase;
}

.program-modules-item-image {
    width: 42%;
}

.program-modules-item-image img {
    width: 100%;
    height: 330px;
    object-fit: cover;
    border-radius: 10px;
}

.program-modules-item-description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 42%;
}

.program-modules-item-description h3 {
    font-size: 40px;
    font-weight: 700;
    line-height: normal;
    color: #fff;
}

.program-modules-item-description p {
    padding: 72px 0 20px 0;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: #fff;
}

.program-modules-item-description-duration {
    display: flex;
    padding-top: 20px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 60px;
}

.program-modules-item-description-duration p {
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: #fff;
    text-transform: uppercase;
}

.program-modules-item-description-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 20px;
}

.program-modules-item-description-tools p {
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: normal;
    color: #fff;
    text-transform: uppercase;
}

.program-modules-item-description-tools-items {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

.program-modules-item-description-tools-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 9px;
    border: 1px solid #fff;
    border-radius: 10px;
    gap: 6px;
}

.program-modules-item-description-tools-item img {
    width: 16px;
    height: 16px;
}

.program-modules-item-description-tools-item p {
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: normal;
    color: #fff;
    text-transform: uppercase;
}

.program-modules-item-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8%;
}

.program-modules-item-expand-button {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.program-modules-item-expand-button:hover {
    transform: scale(1.1);
}

.program-modules-item-expand-button img {
    transform-origin: center;
    transition: transform 0.25s ease;
}

/* Стили для скрытых элементов (только для десктопа) */
@media (min-width: 769px) {
    .program-modules-item.hidden .program-modules-item-image img,
    .program-modules-item.hidden .program-modules-item-description > p,
    .program-modules-item.hidden .program-modules-item-description-tools {
        display: none;
    }

    /* Состояния анимации для десктопа */
    .program-modules-item.closing {
        transform: scaleY(0.99);
    }

    .program-modules-item.opening {
        transform: scaleY(1);
    }

    .program-modules-item.closing .program-modules-item-image img,
    .program-modules-item.closing .program-modules-item-description > p,
    .program-modules-item.closing .program-modules-item-description-tools {
        opacity: 0;
        transform: translateY(-15px) scale(0.96);
    }

    .program-modules-item.opening .program-modules-item-image img,
    .program-modules-item.opening .program-modules-item-description > p,
    .program-modules-item.opening .program-modules-item-description-tools {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    .program-modules-item.expanded .program-modules-item-expand-button img {
        transform: rotate(180deg);
    }
}

/* Стили для элементов контента */
.program-modules-item-image img,
.program-modules-item-description > p,
.program-modules-item-description-tools {
    will-change: opacity, transform, scale;
    transform-origin: center center;
    transition: opacity 0.4s ease, transform 0.4s ease, scale 0.4s ease;
}

/* Стили для students-works */
.students-works-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 100px;
    column-gap: 20px;
    width: 100%;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: 10px;
}


/* Элемент галереи с подписью и кнопкой Play */
.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-link {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-link img { display: block; }

.gallery-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-play {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-play .icon {
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #fff;
    margin-left: 2px;
}

.gallery-link:hover::after { opacity: 1; }
.gallery-link:hover .gallery-play { background: rgba(0, 0, 0, 0.7); transform: translate(-50%, -50%) scale(1.03); }

.gallery-caption {
    font-size: 14px;
    font-weight: 300;
    line-height: normal;
}

@media (max-width: 768px) {
    .gallery-play { width: 48px; height: 48px; }
    .gallery-play .icon { border-top-width: 8px; border-bottom-width: 8px; border-left-width: 12px; }
}


/* Стили для studens-reviews */
.studens-reviews {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.studens-reviews-content {
    position: relative;
    width: 100%;
    overflow: visible;
    display: flex;
    align-items: stretch;
}

.studens-reviews-content .swiper-slide {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    width: auto;
    flex-shrink: 0;
}

.studens-reviews-content .swiper-wrapper {
    align-items: stretch;
}

.studens-reviews-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
    width: 360px;
    min-width: 360px;
    background: #99233B;
    padding: 18px;
    border-radius: 10px 10px 10px 0;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: #fff;
}

.studens-reviews-item-author {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 10px;
}

.studens-reviews-item-author img {
    width: 42px;
    height: 42px;
    border-radius: 100%;
}

.price-options {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-bottom: 180px;
}

.price-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.price-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: calc(100% / 4 - 10px);
    border-radius: 10px;
}

.price-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.price-item p {
    font-size: 24px;
    font-weight: 300;
    line-height: normal;
    color: #fff;
    padding-bottom: 56px;
}

.price-item p:nth-child(3) {
    width: 100%;
    font-size: 40px;
    font-weight: 700;
    padding: 26px 0;
    text-align: center;
}

/* Базовые стили для кнопок */
button.pay-button,
button.request-button,
a.request-link {
    width: 100%;
    height: 60px;
    padding: 7px 14px;
    border-radius: 14px;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

button.pay-button {
    background: #99233B;
    color: #fff;
    text-align: center;
}

button.pay-button:hover {
    background: #7a1c2f;
    transform: translateY(-2px);
}

button.pay-button:active {
    transform: translateY(0);
}

button.request-button,
a.request-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    border: 1px solid #fff;
    gap: 20px;
}

button.request-button:hover,
a.request-link:hover {
    background: #f5f5f5;
    border-color: #e0e0e0;
    transform: translateY(-2px);
}

button.request-button:active,
a.request-link:active {
    transform: translateY(0);
}

button.request-button img,
a.request-link img {
    width: 20px;
    height: auto;
    border-radius: 0;
}

footer {
    display: flex;
    padding-bottom: 40px;
}

footer .footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: end;
    justify-content: space-between;
    gap: 110px;
}

footer .footer-content-contacts {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

footer .footer-content-contacts-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

footer .footer-content-contacts p {
    font-size: 24px;
    font-weight: 300;
    line-height: normal;
    color: #fff;
}

footer p.footer-content-contacts-title {
    display: none;
}

footer .footer-content-contacts .contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #000;
    border-radius: 14px;
    border: 1px solid #fff;
    padding: 14px 14px;
    font-size: 20px;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
    gap: 20px;
    box-sizing: border-box;
}

footer .footer-content-contacts .contact-button img {
    width: 20px;
    height: auto;
    border-radius: 0;
}

footer .footer-content-ligal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

footer .footer-content-ligal p {
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: #fff;
}

footer .footer-content-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
}

footer .footer-content-links a {
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    color: #fff;
    text-decoration: underline;
}

/* Стили модального меню */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #59131E;
    padding: 50px 50px 50px 25px;
    max-width: 500px;
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    margin: 0;
}

.modal-overlay.active .modal-menu {
    transform: translateX(0);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    height: auto;
}

.modal-close {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ccc;
}

.modal-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-link {
    display: block;
    font-size: 55px;
    font-weight: 300;
    line-height: normal;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.modal-link:hover {
    color: #ccc;
    transform: translateX(4px);
}

.modal-actions {
    height: 60px;
}

.modal-buy-btn {
    display: block;
    width: 100%;
    height: 60px;
    background: #fff;
    color: #000;
    padding: 14px;
    font-size: 20px;
    font-weight: 500;
    border-radius: 15px;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modal-buy-btn:hover {
    color: #59131E;
}

/* Стили модального окна заявки */
.modal-application {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #fff;
    padding: 50px 50px 50px 25px;
    max-width: 500px;
    width: 100%;
    max-height: 100vh;
    height: 100vh;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    margin: 0;
}

.modal-overlay.active .modal-application {
    transform: translateX(0);
}

.modal-application-header {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding-bottom: 30px;
}

.modal-application .modal-close {
    color: #99233B;
}

.modal-application .modal-close:hover {
    color: #99233B;
}

.modal-application h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: normal;
    color: #000;
    padding-bottom: 60px;
}

.modal-application-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group input {
    padding: 12px 20px;
    border: 2px solid #EBEBEB;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    background: #fff;
    transition: border-color 0.3s ease;
    font-family: 'PT Root UI', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: #99233B;
}

.form-group input::placeholder {
    color: #999;
}

.form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 40px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #000;
}

.checkbox-label a {
    color: #99233B;
    text-decoration: underline;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 30px;
    height: 30px;
    border: 0.792px solid #DBDBDB;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.checkmark::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #DBDBDB;
    border-radius: 50%;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #000;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #C96374;
    border-radius: 50%;
}

.modal-application-submit {
    width: 100%;
    height: 60px;
    background: #99233B;
    color: #fff;
    border: none;
    border-radius: 15px;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'PT Root UI', sans-serif;
}

.modal-application-submit:hover {
    background: #ABB546;
}

.modal-application-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Стили модального окна видео */
.modal-video {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    padding: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    margin: auto;
    border-radius: 10px;
}

.modal-overlay.active .modal-video {
    transform: scale(1);
}

.modal-video-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    padding-bottom: 20px;
}

.modal-video .modal-close {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-video .modal-close:hover {
    color: #ccc;
}

.modal-video-content {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-video-content video {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    background: #000;
}

/* Мобильные стили для видео модального окна */
@media (max-width: 768px) {
    .modal-video {
        padding: 15px;
        max-width: 95vw;
        max-height: 95vh;
    }

    .modal-video-header {
        padding-bottom: 15px;
    }

    .modal-video-content video {
        max-height: 70vh;
    }
}

/* Десктопные стили для следования курсору */
@media (min-width: 769px) {
    .hero-banner .rotate-text.following-cursor {
        transition: transform 0.1s ease-out;
    }
}

/* Мобильные стили */
@media (max-width: 768px) {
    /* Дополнительные стили для плавной прокрутки на мобильных */
    html {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    /* Черный фон для header на мобильной версии */
    header {
        background-color: #000;
    }

    * {
        -webkit-overflow-scrolling: touch;
    }

    /* Оптимизация прокрутки для мобильных устройств */
    main, .content, .hero, .learn, .about, .program-modules, .students-works, .studens-reviews, .price-options {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        will-change: scroll-position;
    }

    /* Оптимизация для sticky элементов на мобильных */
    .content--sticky {
        /* Отключаем аппаратное ускорение для sticky элементов на мобильных */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        /* Улучшаем производительность */
        will-change: transform, opacity, scale;
        /* Принудительное использование GPU */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* Предотвращаем рывки */
        -webkit-perspective: 1000px;
        perspective: 1000px;
    }

    .container {
        max-width: 100vw;
    }

    main {
        gap: 60px;
    }

    .hero , .learn , .about , .program-modules , .students-works , .studens-reviews , .price-options {
        overflow-x: hidden;
    }

    .content h3 {
        font-size: 40px;
        font-weight: 700;
        line-height: 40px;
    }

    .hero-banner {
        width: 100%;
        height: auto;
        aspect-ratio: 9 / 16;
        padding: 20px;
        align-content: flex-end;
    }

    .hero-banner h1 {
        font-size: 55px;
        line-height: 55px;
        letter-spacing: -2px;
        font-weight: 700;
    }

    .hero-banner a.rotate-text {
        display: none;
    }

    .hero-banner .price {
        width: auto;
        font-size: 14px;
        flex-basis: auto;
        height: min-content;
    }

    .price p {
        padding: 6px 9px;
        font-size: 16px;
    }

    .price p:nth-child(1) {
        font-size: 14px;
        line-height: normal;
    }

    .price p:nth-child(2) {
        font-size: 12px;
        line-height: 16px;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
        padding: 20px 0;
    }

    .hero-content p {
        width: 100%;
        font-size: 16px;
        font-weight: 300;
        line-height: normal;
    }

    .hero-content button {
        width: 100%;
        height: 50px;
        font-size: 16px;
        line-height: 22px;
    }

    .learn {
        gap: 40px;
    }

    .header-title {
        padding: 60px 0 20px 0;
    }

    .header-title h2 {
        font-size: 20px;
    }

    .learn-content {
        gap: 80px;
    }

    .learn-item {
        gap: 30px;
    }

    .learn-item.single {
        flex-direction: column;
        flex-direction: column-reverse;
        gap: 30px;
    }

    .learn-item-description {
        flex-direction: column;
        gap: 10px;
    }

    .single .learn-item-description {
        gap: 20px;
    }

    .learn-item-description h3 {
        font-size: 36px;
        line-height: 32px;
        width: 100%;
    }

    .learn-item-description p {
        width: 100%;
        font-size: 14px;
    }

    .single .learn-item-description p {
        width: 100%;
    }

    .learn-item-images {
        height: 100%;
    }

    .learn-item-images.swiper .swiper-wrapper {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .learn-item-images img {
        width: 100%;
        height: 200px;
    }

    .single .learn-item-images img {
        width: 100%;
        height: 220px;
    }

    .about {
        gap: 30px;
    }

    .about-content {
        flex-direction: column;
        gap: 15px;
    }

    .about-left {
        width: 100%;
        min-height: 200px;
    }

    .about-left img {
        height: 220px;
        width: 100%;
        object-fit: cover;
    }

    .about-left a {
        margin-top: 0;
    }

    .about-left a img {
        height: 24px;
        width: 24px;
    }

    .about-left p {
        font-size: 44px;
        line-height: 44px;
    }

    .about-right {
        width: 100%;
        gap: 15px;
    }

    .about-right p {
        font-size: 16px;
        line-height: 22px;
    }

    .program-topics-item {
        display: flex;
        flex-direction: column;
        height: 80vh;
        width: 100%;
        max-width: 500px;
        top: 10vh;
        margin: auto;
        border-radius: 14px;
        gap: 3vh;
        text-align: center;
        margin-bottom: 5vh;
        /* Оптимизация для предотвращения рывков */
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform, opacity, scale;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .bg-1 {
        background-image: url(/assets/landing/9_modules-20788049714e6128454912940fef2fabb35f9b7ffcc5bbf95b06ec5093bb4d52.webp);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .bg-2 {
        background-image: url(/assets/landing/22_lessons-96f38e4d704b2dd68f87717fbd470ad00558187c7f3df03849363bc00e68ccb1.webp);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .bg-3 {
        background-image: url(/assets/landing/own_platform-8ee1bd91b88d842d5809bdce4e23c07704e09fe0a1c6b9fd7cc43ce0a6b884ac.webp);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .bg-4 {
        background-image: url(/assets/landing/final_project-df049bd9d552bf29563ea1a3f384606db61b8a481e00d13a74cab5aae46c9ced.webp);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .program-topics-item p {
        font-size: 55px;
        line-height: 45px;
    }

    .program-modules {
        gap: 30px;
    }

    .program-modules-content {
        gap: 60px;
    }

    .program-modules-content:last-child {
        border-bottom: none;
    }

    .program-modules-item {
        width: 100%;
        flex-direction: column;
        padding: 0;
        gap: 40px;
        align-items: flex-start;
        border-top: none;
        overflow: visible;
    }

    .program-modules-item-cover {
        display: flex;
        flex-wrap: wrap;
        position: relative;
        width: 100%;
        height: 220px;
        padding: 10px;
        border-radius: 10px;
    }

    .program-modules-item-cover p , .program-modules-item-cover h3 {
        display: flex;
        align-items: center;
        position: relative;
        width: max-content;
        height: 30px;
        padding: 6px 9px;
        border-radius: 10px;
        background: #2D2D2D;
        color: #fff;
        font-size: 14px;
        font-weight: 300;
        line-height: normal;
        text-transform: uppercase;
        z-index: 2;
    }

    .program-modules-item-cover h3 {
        font-size: 12px;
        font-weight: 600;
        background: #fff;
        color: #99233B;
    }

    .program-modules-item-cover img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 10px;
    }

    .program-modules-item-expand {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 24px;
        height: 24px;
    }

    .program-modules-item-expand-button, .program-modules-item-expand-button img {
        width: 24px;
        height: 24px;
    }

    .program-modules-item-description {
        width: 100%;
        order: 2;
        display: none; /* Скрываем по умолчанию в мобильной версии */
    }

    .program-modules-item-description h3 {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
    }

    .program-modules-item-description p {
        padding: 10px 0 60px 0;
        font-size: 24px;
        font-weight: 300;
    }

    .program-modules-item-description-duration {
        display: flex;
        gap: 40px;
    }

    .program-modules-item-description-duration p {
        padding: 0;
        font-size: 14px;
        font-weight: 300;
    }

    .program-modules-item-description-tools {
        width: 100%;
        padding-top: 20px;
    }

    .program-modules-item-description-tools p {
        padding: 0;
        font-size: 12px;
        font-weight: 600;
    }

    .program-modules-item-description-tools-items {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .program-modules-item-description-tools-items.swiper {
        overflow: visible;
    }

    .program-modules-item-description-tools-items .swiper-slide {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: auto;
        flex-shrink: 0;
    }

    .program-modules-item-description-tools-items .swiper-slide .program-modules-item-description-tools-item {
        white-space: nowrap;
    }

    .program-modules-item-description.expanded {
        display: flex;
        opacity: 1;
        height: auto;
        transition: opacity 0.3s ease, height 0.3s ease;
    }

    /* Состояния анимации для мобильной версии */
    .program-modules-item.expanded .program-modules-item-expand-button img {
        transform: rotate(180deg);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 20px;
        column-gap: 8px;
    }

    .gallery-item {
        gap: 10px;
    }

    .gallery-caption {
        font-size: 12px;
    }

    .gallery-play {
        position: absolute;
        left: 70%;
        top: 4px;
        transform: translate(0%, 0%);
        width: 28px;
        height: 28px;
        border: 0;
    }

    .gallery-play .icon {
        width: 0;
        height: 0;
        border-top: 4.5px solid transparent;
        border-bottom: 4.5px solid transparent;
        border-left: 7px solid #fff;
        margin-left: 1px;
    }

    .studens-reviews {
        margin: 0 -20px;
        width: calc(100% + 40px);
        gap: 20px;
    }

    .studens-reviews .header-title {
        padding: 60px 20px 20px 20px;
    }

    .studens-reviews-content.swiper {
        padding: 160px 20px;
        background-image: url(/assets/landing/reviews-4d9b2203fc0027d9a7fed43ca1b90bea71a02c00083bd9952e37e410f2ba8511.webp);
        background-size: cover;
        background-position: top;
        background-repeat: no-repeat;
    }

    .studens-reviews-item {
        width: calc(100vw - 40px);
        min-width: calc(100vw - 40px);
        padding: 18px;
    }

    .price-options {
        gap: 20px;
        padding-bottom: 60px;
    }

    .price-content {
        flex-direction: column;
    }

    .price-item {
        width: 100%;
        background: #161616;
        padding: 20px;
    }

    .price-item p {
        font-size: 30px;
        padding-bottom: 20px;
    }

    footer .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    footer .footer-content-contacts {
        display: flex;
        justify-content: space-between;
        height: 100vh;
        margin: 0 -20px;
        width: calc(100% + 40px);
        padding: 40px 20px 80% 20px;
        background-image: url(/assets/landing/footer-50f0593d9452b5704d11fb36d56ca9d142bddad0ed36eac0e6e5e78cd344881b.webp);
        background-size: cover;
        background-position: top;
        background-repeat: no-repeat;
    }

    footer .footer-content-contacts p {
        text-align: center;
    }

    footer .footer-content-contacts-content {
        width: calc(100vw - 40px);
        gap: 14px;
    }

    footer p.footer-content-contacts-title {
        display: block;
        font-size: 40px;
        font-weight: 600;
        text-align: center;
    }

    .modal-menu {
        padding: 30px 20px 80px 20px;
        max-width: 100%;
        width: 100%;
        border-radius: 0;
    }

    .modal-nav {
        gap: 40px;
    }

    .modal-link {
        font-size: 44px;
    }

    .modal-application {
        padding: 30px 20px;
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }

    .modal-application-header {
        flex-direction: column;
    }

    .modal-application h2 {
        font-size: 36px;
        text-align: center;
        padding-bottom: 30px;
    }

    .form-group input {
        font-size: 14px;
    }

    .checkbox-label {
        font-size: 14px;
    }

    .modal-application-submit {
        height: 50px;
        font-size: 16px;
        margin-top: 15px;
    }

}
