/* ========== Адаптивные стили (подключать после styles.css) ========== */

/* Горизонтальный скролл: отключаем на всей странице */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Контейнеры не выходят за экран */
@media (max-width: 991px) {
    .container-custom {
        max-width: 100%;
    }

    /* ---------- Планшет и меньше: бургер, скрыть нав и кнопку регистрации ---------- */
    .site-nav {
        display: none;
    }

    .btn-register {
        display: none;
    }

    .burger-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        flex-shrink: 0;
        position: relative;
        z-index: 1201;
    }

    .burger-btn-line {
        display: block;
        width: 24px;
        height: 3px;
        background: var(--color-text);
        border-radius: 2px;
        transform-origin: 50% 50%;
        transition: transform 0.35s ease, opacity 0.25s ease, background-color 0.25s ease;
    }

    body.mobile-menu-open .burger-btn-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    body.mobile-menu-open .burger-btn-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    body.mobile-menu-open .burger-btn-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0.1);
    }
}

@media (min-width: 992px) {
    .burger-btn {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    /* ---------- Десктоп: блок «Что же такое TeamFest» — контейнер, размер карточек и текст ---------- */
    .about-section .container-custom {
        max-width: 1488px;
    }

    .about-cards-track {
        grid-template-columns: repeat(4, 353px);
    }

    .about-card-wrap,
    .about-card-has-hint {
        width: 353px;
        min-height: 430px;
        height: 430px;
    }

    .about-card,
    .about-card-inner,
    .about-card-front,
    .about-card-back {
        min-height: 430px;
        height: 430px;
    }

    .about-card-question {
        font-size: 2.75rem;
        line-height: 1.25;
    }

    /* ---------- Десктоп: Hero — картинка не на всю ширину, закруглённые края, текст и кнопки справа внизу ---------- */
    .hero {
        background: var(--color-bg);
        align-items: stretch;
        min-height: 75vh;
    }

    .hero-bg {
        top: 1.25rem;
        left: 1.25rem;
        right: 1.25rem;
        bottom: 1.25rem;
        border-radius: 24px;
        overflow: hidden;
    }

    .hero-overlay {
        top: 1.25rem;
        left: 1.25rem;
        right: 1.25rem;
        bottom: 1.25rem;
        border-radius: 24px;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        padding: 2.5rem 2.5rem 2rem 2.5rem;
        min-height: 100%;
        overflow: visible;
    }

    .hero-content {
        flex: 1;
        min-height: 0;
        align-items: stretch;
        overflow: visible;
    }

    .hero-right {
        justify-content: center;
        align-items: center;
        padding: 0 0 0.5rem 0;
        overflow: visible;
    }

    .hero-right-heading,
    .hero-right-desc {
        text-align: left;
    }
    .hero-right-heading {
        font-size: 1.75rem;
    }
    /* Две кнопки в один ряд: сначала «Получить приглашение», затем «Купить билет» */
    .hero-actions {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-actions .btn-invite-wrap,
    .hero-actions .btn-pro-wrap {
        width: auto;
        flex-shrink: 0;
    }

    /* Тултипы в hero — показываем над кнопками, чтобы не обрезались и были видны */
    .hero-actions .invite-tooltip,
    .hero-actions .pro-tooltip {
        top: auto;
        bottom: 100%;
        margin-top: 0;
        margin-bottom: 8px;
    }

    .hero-actions .invite-tooltip::before,
    .hero-actions .pro-tooltip::before {
        top: auto;
        bottom: -6px;
        border-bottom: none;
        border-top: 6px solid #fff;
    }
}

/* ---------- Таймлайн: мобильный ---------- */
@media (max-width: 767px) {
    .timeline-section {
        padding: 3rem 0;
    }

    .timeline-track {
        padding: 0 0.5rem;
    }

    .timeline-line {
        top: 22px;
        height: 8px;
        margin-top: -4px;
    }

    .timeline-step-dot {
        width: 36px;
        height: 36px;
        border-width: 2.5px;
        margin-bottom: 0.5rem;
    }

    .timeline-step-icon {
        width: 18px;
        height: 18px;
    }

    .timeline-step-dot--filled .timeline-step-icon--rocket {
        width: 16px;
        height: 16px;
    }

    .timeline-step-label {
        font-size: 0.8125rem;
    }

    .timeline-step-desc {
        font-size: 0.75rem;
    }
}

/* ---------- Форматы и демо-станции: планшет ---------- */
@media (max-width: 991px) {
    .formats-demo-container {
        grid-template-columns: 1fr;
    }

    .formats-demo-image-wrap {
        order: -1;
    }

    .formats-demo-image-wrap,
    .formats-demo-image {
        min-height: 320px;
    }

    /* ---------- Лекторий: планшет и мобильный ---------- */
    .lector-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .lector-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .lector-card {
        min-height: 360px;
        aspect-ratio: 4 / 3;
    }
}

/* ---------- Тарифы: планшет ---------- */
@media (max-width: 991px) {
    .tariffs-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .tariffs-third {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: 0;
        order: -1;
    }
}

/* ---------- FAQ: мобильный (по дизайну — белая карточка, тень, разделители) ---------- */
@media (max-width: 767px) {
    .faq-section .container-custom {
        overflow: visible;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }

    .faq-title {
        text-align: center;
        font-size: 1.85rem;
        line-height: 1.25;
    }

    .faq-title-accent {
        display: inline;
        color: var(--color-primary);
    }

    .faq-accordion-backing {
        width: 100%;
        max-width: 590px;
        margin: 0 auto;
        padding: 1.25rem 1rem 1.25rem;
        border-radius: 24px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
        box-sizing: border-box;
    }

    .faq-accordion {
        padding: 0 0.25rem;
        max-width: 100%;
    }

    .faq-item::after {
        margin: 0;
    }

    .faq-question {
        padding: 1rem 0.25rem 1rem 0;
    }

    .faq-question-text {
        font-size: 0.9375rem;
        font-weight: 600;
    }

    .faq-arrow-icon {
        filter: none;
    }

    .faq-answer {
        font-size: 0.875rem;
        line-height: 1.5;
        color: #6b7280;
        padding: 0 0.25rem 1rem 0;
    }

    .faq-item.is-open .faq-question {
        padding: 1rem 0.25rem 0.5rem 0;
    }
}

/* ---------- Организаторы и партнёры: десктоп — размеры по макету ---------- */
@media (min-width: 992px) {

    /* Сетка: организаторы 858px, партнёры уже — чтобы справа был отступ от края */
    .organizers-partners-layout {
        display: grid;
        gap: 25px;
        align-items: start;
        margin: 0 auto;
    }

    /* Блок «Организаторы»: 858×447 (hug), top 50, left 120, radius 20px, padding 30px, gap 46px */
    .organizers-partners-section .organizers-block {
        width: 858px;
        min-height: 447px;
        margin-top: 0;
        padding: 30px;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        gap: 46px;
        box-sizing: border-box;
    }

    .organizers-partners-section .organizers-title {
        margin: 0;
    }

    .organizers-partners-section .organizers-cards {
        gap: 1rem;
    }

    /* Блок «Партнеры»: узкий на десктопе */
    .organizers-partners-section .partners-block {
        height: 446px;
        min-height: 446px;
        margin-top: 0;
        padding: 30px;
        border-radius: 20px;
        gap: 46px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        background: #FFFFFF;
        box-sizing: border-box;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
    }

    .organizers-partners-section .partners-title {
        margin: 0;
    }
}

/* ---------- Организаторы и партнёры: планшет и мобильный (без обрезки контента) ---------- */
@media (max-width: 991px) {
    .organizers-partners-section .container-custom {
        overflow: visible;
    }

    .organizers-partners-layout {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .organizers-block {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 20px;
    }

    .organizers-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .organizers-block {
        padding: 1.5rem 1.25rem 2rem;
    }

    .organizers-card {
        min-width: 0;
    }

    .organizers-card-desc {
        word-wrap: break-word;
        max-width: 100%;
    }

    .partners-block {
        border-radius: 20px;
        padding: 1.5rem 1.25rem 2rem;
    }

    .partners-logos {
        gap: 1.25rem;
    }
}

/* ---------- Контакт: десктоп — размеры по макету ---------- */
@media (min-width: 992px) {
    .contact-section {
        min-height: 557px;
        box-sizing: border-box;
    }

    .contact-layout {
        display: grid;
        /*grid-template-columns: 930px 353px;*/
        gap: 16px;
        align-items: start;
        margin: 0;
        justify-content: start;
    }

    /* Галерея: 930px (3 равные колонки), высота 486px; кол.3 — два ряда по 50% */
    .contact-images {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* (930 - 32) / 3 ≈ 299px на колонку */
        grid-template-rows: 235px 235px; /* (486 - 16) / 2 */
        width: 930px;
        height: 486px;
        min-height: 486px;
        gap: 16px;
    }

    .contact-img {
        border-radius: 16px;
    }

    /* 1-я колонка: одна карточка на всю высоту */
    .contact-img--main {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    /* 2-я колонка: одна карточка на всю высоту */
    .contact-img--grid-1 {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    /* 3-я колонка: верхняя карточка 50% */
    .contact-img--grid-2 {
        grid-column: 3;
        grid-row: 1;
    }

    /* 3-я колонка: нижняя карточка 50% */
    .contact-img--grid-3 {
        grid-column: 3;
        grid-row: 2;
    }

    /* Блок формы по параметрам макета: 353×436, top 25px, left 1066px (через сетку), radius 10px, padding 30px, gap 25px */
    .contact-form-wrap {
        width: 100%;
        min-height: 436px;
        height: auto;
        margin-top: 25px;
        padding: 0 30px; /* по макету: left 30px, right 30px */
        box-sizing: border-box;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
    }

    .contact-form {
        display: flex;
        flex-direction: column;
        gap: 25px;
        max-width: none;
    }
}

/* ---------- Контакт: планшет ---------- */
@media (max-width: 991px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-images {
        min-height: 420px;
    }

    .contact-form-wrap {
        order: -1;
    }
}

/* ---------- Контакт: мобильная галерея — чуть меньше, по центру ---------- */
@media (max-width: 767px) {
    .contact-images {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 8px;
        min-height: 400px;
        max-width: 370px;
        width: 100%;
        margin: 0 auto;
        background: transparent;
        padding: 16px;
        border-radius: 0;
        overflow: visible;
    }

    .contact-img {
        border-radius: 16px;
        overflow: hidden;
        border: none;
    }

    /* Левое фото — на всю высоту (2 строки) */
    .contact-img--main {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    /* Правая верхняя — маленькая */
    .contact-img--grid-1 {
        grid-column: 2;
        grid-row: 1;
    }

    /* Правая нижняя — большая */
    .contact-img--grid-2 {
        grid-column: 2;
        grid-row: 2;
        display: block;
    }

    /* Четвёртое фото скрыто на мобиле */
    .contact-img--grid-3 {
        display: none;
    }
}

/* ---------- Десктоп: фиксированные пропорции блока сравнения, галерея на всю ширину, список по центру карточки ---------- */
@media (min-width: 1024px) {
    .test-day-section .container-custom {
        max-width: 1488px;
    }

    /* Блок с заголовком и описанием — по центру секции */
    .test-day-text-block {
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
    }

    .test-day-section .test-day-desc {
        text-align: center;
        margin: 0 auto;
    }

    .test-day-card {
        max-width: 490px;
    }

    .test-day-logo-img {
        max-width: 425px;
    }

    .test-day-gallery {
        width: 100%;
        max-width: 100%;
    }

    /* Список под заголовком — по центру карточки, иконки ровно в одну колонку */
    .test-day-list-wrap {
        align-items: center;
        text-align: center;
    }

    .test-day-list {
        display: grid;
        grid-template-columns: 28px 1fr;
        gap: 0.5rem 0.75rem;
        align-items: center;
        justify-items: start;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 0;
        font-family: 'Inter', sans-serif;
        font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
        color: var(--color-text);
        line-height: 1.4;
    }

    .test-day-list li {
        display: contents;
    }

    .test-day-list .test-day-list-icon {
        width: 28px;
        height: 28px;
        margin-top: 0;
        justify-self: center;
    }
}

/* ---------- Планшет: тест-день, галерея, карточки о фестивале, фичи ---------- */
@media (max-width: 991px) {
    .test-day-compare {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 2rem;
    }

    .test-day-card-before {
        order: 1;
    }

    .test-day-card-after {
        order: 2;
    }

    .test-day-logo-wrap {
        order: 3;
    }

    .test-day-card {
        max-width: 100%;
    }

    .test-day-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 1rem;
    }

    .test-day-gallery-item-large {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-strip-inner {
        justify-content: flex-start;
    }

    .feature-block {
        min-width: calc(50% - 1rem);
    }
}

/* ---------- Маленький мобильный: тест-день, карточки о фестивале ---------- */
@media (max-width: 575px) {
    .test-day-section {
        padding: 2.5rem 0;
    }

    .test-day-compare {
        gap: 1.5rem;
    }

    .test-day-list-wrap {
        padding: 1.25rem 1rem;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .about-card-wrap,
    .about-card-has-hint {
        min-height: 400px;
    }

    .about-card,
    .about-card-inner {
        min-height: 400px;
    }
}

/* ---------- Блок «Что же такое TeamFest» на мобильном: отступы и карусель ---------- */
@media (max-width: 767px) {
    .about-section {
        overflow: hidden;
    }

    .about-section .container-custom {
        overflow: hidden;
    }

    .about-title {
        margin-bottom: 0.5rem;
    }

    .about-subtitle {
        margin-bottom: 1.5rem;
    }

    .about-cards {
        margin-top: 1.25rem;
        padding: 0.5rem 0 0 0;
        overflow: visible;
    }

    /* Подсказка поверх первой карточки, не занимает место — все карточки одной высоты */
    .about-card-has-hint {
        position: relative;
    }

    .about-card-hint {
        height: 50px;
        position: absolute;
        top: -0.75rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 20;
        margin-bottom: 0;
        padding: 0.35rem 0.6rem;
        display: inline-flex;
        max-width: calc(100% - 1rem);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
        background: var(--color-bg);
    }

    .about-card-hint-text {
        font-size: 0.625rem;
        line-height: 1.3;
    }

    .about-card-hint-text-secondary {
        font-size: 0.5625rem;
    }

    .about-card-hint-img {
        width: 28px;
        height: 36px;
    }

    .about-card-hint::after {
        display: none;
    }

    .about-cards-track {
        display: flex;
        overflow-x: hidden;
        overflow-y: visible;
        /*scroll-snap-type: x mandatory;*/
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: auto;
        touch-action: pan-y;
        gap: 16px;
        grid-template-columns: unset;
        margin: 0;
        padding: 2rem 16px 8px 16px;
        width: 100%;
    }

    .about-cards-track::-webkit-scrollbar {
        display: none;
    }

    .about-cards-track {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .about-card-wrap {
        flex: 0 0 calc(100% - 16px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
        width: calc(100% - 16px);
        min-width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        box-sizing: border-box;
        min-height: 420px;
        border-radius: 20px;
        overflow: visible;
    }

    /* Все карточки одинаковой высоты, контент на обороте полностью виден */
    .about-card-has-hint {
        min-height: 420px;
    }

    .about-card,
    .about-card-inner,
    .about-card-front,
    .about-card-back {
        border-radius: 20px;
    }

    .about-card,
    .about-card-inner {
        min-height: 420px;
    }

    .about-card-front,
    .about-card-back {
        padding: 2.75rem 1.813rem;
    }

    /* Лейбл на лицевой стороне — крупно */
    .about-card-question {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .about-card-back {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .about-card-back-title {
        margin-bottom: 0.5rem;
    }

    .about-card-back-text {
        font-size: 0.875rem;
        line-height: 1.5;
        margin-top: 0;
    }

    .about-cards-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin-top: 1rem;
        padding: 0.5rem 0 0 0;
    }

    .about-carousel-btn {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: 2px solid var(--color-primary);
        background: #E5E7EB;
        color: var(--color-text);
        font-size: 1.25rem;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

    .about-carousel-btn:hover:not(:disabled) {
        background: #d1d5db;
    }

    .about-carousel-btn.is-active {
        background: var(--color-primary);
        color: var(--color-text);
    }

    .about-carousel-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* ---------- Мобильный герой, фичи, кнопки ---------- */
    .features-strip-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-block {
        min-width: 100%;
    }

    /* Мобильный герой: картинка 430×980, gap 30px; текст 418×99, top 228px, left 30px, gap 11px */
    .hero {
        display: flex;
        flex-direction: column;
        min-height: auto;
        align-items: stretch;
        position: relative;
    }

    .hero-bg {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100%;
        height: 353px;
        min-height: 50px;
        margin-bottom: 30px;
    }

    .hero-overlay {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 100%;
        height: 353px;
        min-height: 50px;
    }

    .hero-container {
        position: relative;
        display: flex;
        flex-direction: column;
        padding: 0;
        min-height: 0;
        max-width: 100%;
        overflow-x: hidden;
        align-items: center;
    }

    .hero .container-custom {
        padding: 0;
        max-width: 100%;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        flex: 1;
        position: relative;
        min-height: 0;
        grid-template-columns: unset;
        padding: 383px 0 0 0;
    }

    /* Текст: 1 апреля • Алматы • Площадка / TeamFest KZ / Фестиваль тимбилдингов Казахстана — 418×99, top 228px, left 30px, gap 11px */
    .hero-left {
        position: absolute;
        top: 228px;
        left: 30px;
        width: 418px;
        max-width: calc(100vw - 60px);
        min-height: 99px;
        margin-top: 0;
        padding: 0;
        align-items: flex-start;
        justify-content: flex-start;
        order: unset;
        gap: 11px;
    }

    /* 1 апреля • Алматы • Площадка: Inter 700, 16px, line-height 120% */
    .hero-date {
        order: unset;
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        font-size: 16px;
        line-height: 120%;
        color: rgba(255, 255, 255, 0.95);
        margin: 0;
    }

    /* TeamFest KZ: 40px, bold 700, line-height 105% */
    .hero-title {
        order: unset;
        font-size: 40px;
        font-weight: 700;
        line-height: 105%;
        margin: 0;
    }

    /* Фестиваль тимбилдингов Казахстана: Inter 400, 16px, line-height 120% */
    .hero-subtitle {
        order: unset;
        margin: 0;
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 120%;
        color: rgba(255, 255, 255, 0.95);
    }

    /* Блок: Тест-драйв... + кнопки — 370×235, gap 25px */
    .hero-right {
        order: 2;
        background: var(--color-bg);
        padding: 1.25rem var(--container-padding) 1.5rem;
        margin-left: 0;
        margin-right: 0;
        align-items: center;
        text-align: left;
        align-self: stretch;
        width: 370px;
        max-width: 100%;
        min-height: 235px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    /* Тест‑драйв тимбилдинга за 1 день: — 700, 20px, line-height 120% */
    .hero-right-heading {
        font-weight: 700;
        font-size: 20px;
        line-height: 120%;
        color: var(--color-text);
        margin: 0;
        text-align: left;
        padding: 0;
    }

    /* пришли, попробовали... — 400, 14px */
    .hero-right-desc {
        text-align: left;
        font-weight: 400;
        font-size: 14px;
        white-space: normal;
        padding: 0;
        margin: 0;
        color: var(--color-text-muted);
    }

    /* Блок кнопок: 370×147, gap 15px */
    .hero-actions {
        width: 370px;
        max-width: 100%;
        min-height: 147px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 15px;
        margin-top: 0;
    }

    .hero-actions .btn-invite-wrap,
    .hero-actions .btn-pro-wrap {
        width: 100%;
        display: flex;
    }

    /* Жёлтая и тёмная кнопки: 370×66, radius 100px, border-bottom 1px, padding 15 20, gap 8px */
    .hero-actions .btn-hero {
        width: 370px;
        max-width: 100%;
        height: 66px;
        min-height: 66px;
        justify-content: center;
        align-items: center;
        display: flex;
        gap: 8px;
        font-size: 0.875rem;
        margin: 0;
        border-radius: 100px;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 15px 20px;
        box-sizing: border-box;
    }

    .hero-actions .btn-hero-invite {
        color: var(--color-text);
    }

    .hero-actions .btn-hero-ticket {
        color: var(--color-primary);
    }

    .invite-tooltip,
    .pro-tooltip {
        display: none;
    }

    /* Блок фич на мобильном: 370×332, radius 20px; иконка слева, два ряда текста справа */
    .features-strip {
        padding: 1.5rem 0;
    }

    .features-strip-inner {
        width: 370px;
        max-width: 100%;
        min-height: 332px;
        height: auto;
        border-radius: 20px;
        padding: 1.5rem;
        box-sizing: border-box;
        gap: 1rem;
        margin: 0 auto;
    }

    .feature-block {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        min-width: 0;
        width: 100%;
    }

    .feature-block-icon-wrap {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .feature-block-text {
        flex: 1;
        min-width: 0;
    }

    .feature-block-title {
        font-size: 0.875rem;
    }

    .feature-block-desc {
        font-size: 0.75rem;
    }

    /* Бежевый блок «Форматы и демо-станции»: 382×760, gap 38px, border-radius 20px, padding 16px */
    .formats-demo-section {
        background: transparent;
    }

    .formats-demo-container {
        width: 382px;
        max-width: 100%;
        min-height: auto;
        gap: 38px;
        padding: 16px;
        border-radius: 20px;
        background: #FFF5E6;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .formats-demo-content {
        gap: 38px;
    }

    .formats-demo-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .formats-demo-btn {

        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* ---------- Футер: планшет и мобильный ---------- */
@media (max-width: 991px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-policy {
        margin-top: 0;
        text-align: left;
    }

    .footer-right-col {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4.05rem;
        align-items: center;
    }

    .footer-nav {
        align-items: center;
    }

    .footer-right {
        align-items: center;
    }

    .footer-social-row {
        justify-content: center;
    }
}

/* Футер на мобильной: текст мельче */
@media (max-width: 767px) {

    .footer-inner {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-left {
        display: contents;
    }

    .footer-brand {
        order: 1;
    }

    .footer-right-col {
        order: 2;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4.25rem;
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
    }

    .footer-nav {
        align-items: flex-start;
    }

    .footer-policy {
        order: 3;
        margin-top: 0;
        text-align: left;
    }

    .footer-right {
        align-items: flex-start;
        width: auto;
        max-width: 100%;
        gap: 0.75rem;
    }


    .footer-date {
        font-size: 0.8125rem;
    }

    .footer-title {
        font-size: 1.375rem;
    }

    .footer-subtitle {
        font-size: 0.875rem;
    }

    .footer-nav-link {
        font-size: 0.9375rem;
    }

    .footer-social-heading {
        font-size: 0.9375rem;
    }

    .footer-policy {
        font-size: 0.875rem;
    }

    /* ==========================================================
       ТОЛЬКО МОБИЛЬНЫЙ (≤ 767px) — новые изменения
       ========================================================== */

    /* --- Секция «Тест тимбилдинга за один день»: 430×1605, gap 60px, padding 50 30 --- */
    .test-day-section .container-custom {
        width: 430px;
        max-width: 100%;
        padding: 50px 30px;
        display: flex;
        flex-direction: column;
        gap: 60px;
        min-height: 1605px;
        box-sizing: border-box;
    }

    /* Блок с тайтлом, описанием и двумя карточками: 370×1037, gap 30px, по центру */
    .test-day-top {
        width: 370px;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 30px;
        min-height: 1037px;
        box-sizing: border-box;
        margin: 0 auto;
    }

    /* Блок с текстом (тайтл + описание): 370×191, gap 12px */
    .test-day-text-block {
        width: 370px;
        max-width: 100%;
        min-height: 191px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        box-sizing: border-box;
    }

    .test-day-text-block .test-day-title,
    .test-day-text-block .test-day-desc {
        margin: 0;
    }

    /* --- Убрать логотип в тест-дне --- */
    .test-day-logo-wrap {
        display: none;
    }

    /* Блок с карточками «До» и «На»: 370×816, gap 20px, карточки по центру --- */
    .test-day-compare {
        width: 370px;
        max-width: 100%;
        min-height: 816px;
        grid-template-columns: 1fr;
        gap: 20px;
        box-sizing: border-box;
        overflow: visible;
        justify-items: center;
        margin: 0 auto;
    }

    /* Сама карточка: уже 340px, чтобы не прижимало к краям; 398px высота, radius 20px */
    .test-day-section .test-day-card {
        width: 360px;
        max-width: calc(100% - 32px);
        height: 398px;
        min-height: 398px;
        border-radius: 20px;
        box-sizing: border-box;
        min-width: 0;
        margin: 0 auto;
        padding: 20px;
    }

    .test-day-section .test-day-list-wrap {
        box-sizing: border-box;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        padding: 1.25rem 1.5rem;
    }

    /* --- Галерея (только мобильная): блок 370×408, gap между колонками 12px, внутри столбцов 13px, по центру --- */
    .test-day-gallery {
        width: 370px;
        max-width: 100%;
        height: 428px;
        display: grid;
        grid-template-columns: 189px 109px;
        grid-template-rows: 120px 120px 168px;
        box-sizing: border-box;
        margin: 0 20px 0 auto;
    }

    .test-day-gallery-item,
    .test-day-gallery-item-large {
        min-height: 0;
        border-radius: 10px;
        overflow: hidden;
    }

    .test-day-gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* Левый столбец: две картинки (верхняя на 2 ряда 267px, нижняя 128px), gap 13px → 408 */
    .test-day-gallery-item-large {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 179px;
        height: 100%;
    }

    .test-day-gallery-item:nth-child(2) {
        grid-column: 1;
        grid-row: 3;
        width: 179px;
        height: 100%;
    }

    /* Правый столбец: три картинки подряд 127, 127, 128, gap 13px → 408 */
    .test-day-gallery-item:nth-child(3) {
        grid-column: 2;
        grid-row: 1;
        width: 179px;
        height: 100%;
    }

    .test-day-gallery-item:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
        width: 179px;
        height: 100%;
    }

    .test-day-gallery-item:nth-child(5) {
        grid-column: 2;
        grid-row: 3;
        width: 179px;
        height: 100%;
    }

    /* --- Таймлайн: вертикальный --- */
    .timeline-track {
        display: block;
        max-width: 320px;
        margin: 0 auto;
        padding: 0;
        position: relative;
    }

    /* Линия — вертикальная по центру, заполнение сверху вниз */
    .timeline-line {
        position: absolute;
        left: 50%;
        right: auto;
        top: 20px;
        bottom: 20px;
        height: auto;
        width: 9px;
        transform: translateX(-50%);
        border-radius: 5px;
        margin: 0;
    }

    .timeline-line::after {
        width: 100%;
        height: 0;
        top: 0;
        bottom: auto;
        transition: height 2.4s ease-out;
    }

    .timeline-track.is-visible .timeline-line::after {
        width: 100%;
        height: 100%;
    }

    /* Шаги — колонка */
    .timeline-steps {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: relative;
        z-index: 1;
    }

    /* Каждый шаг — 3 зоны: [лево][точка][право] */
    .timeline-step {
        display: grid;
        grid-template-columns: 1fr 46px 1fr;
        align-items: center;
        min-height: 80px;
        flex-direction: unset;
        text-align: unset;
    }

    /* Точка всегда в центральной колонке */
    .timeline-step .timeline-step-dot {
        grid-column: 2;
        grid-row: 1;
        margin: 0 auto;
        margin-bottom: 0;
        align-self: center;
        width: 40px;
        height: 40px;
        border-width: 2.5px;
    }

    /* Нечётные шаги (1, 3, 5) — текст СЛЕВА */
    .timeline-step:nth-child(odd) .timeline-step-label {
        grid-column: 1;
        grid-row: 1;
        text-align: right;
        padding: 0 10px 0 0;
        align-self: center;
        margin-bottom: 0;
    }

    .timeline-step:nth-child(odd) .timeline-step-desc {
        grid-column: 1;
        grid-row: 1;
        text-align: right;
        padding: 0 10px 8px 0;
        align-self: end;
    }

    /* Чётные шаги (2, 4) — текст СПРАВА */
    .timeline-step:nth-child(even) .timeline-step-label {
        grid-column: 3;
        grid-row: 1;
        text-align: left;
        padding: 0 0 0 10px;
        align-self: center;
        margin-bottom: 0;
    }

    .timeline-step:nth-child(even) .timeline-step-desc {
        grid-column: 3;
        grid-row: 1;
        text-align: left;
        padding: 0 0 8px 10px;
        align-self: end;
    }

    /* --- Лекторий: секция 430×615, gap 40px, padding 47px 30px --- */
    .lector-section {
        width: 430px;
        max-width: 100%;
        min-height: 615px;
        box-sizing: border-box;
        margin: 0 auto;
        overflow-x: hidden;
    }

    .lector-section .container-custom {
        overflow: visible;
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 0;
        max-width: 100%;
    }

    /* Тайтл секции: Inter Tight 700, 40px, line-height 105%, по центру */
    .lector-title {
        font-family: 'Inter Tight', sans-serif;
        font-weight: 700;
        font-size: 40px;
        line-height: 105%;
        letter-spacing: 0;
        text-align: center;
    }

    .lector-cards {
        display: flex;
        align-items: center;
        overflow-x: scroll;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        grid-template-columns: unset;
        gap: 35px;
        padding: 0 var(--container-padding) 0.5rem;
        /* Первая карточка по центру: (370 − 353) / 2 ≈ 8.5px + 30px базовый отступ */
        width: calc(100% + 60px);
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .lector-cards::-webkit-scrollbar {
        display: none;
    }

    /* Карточка: 353×397, border-radius 20px со всех сторон, padding 16px */
    .lector-card {
        flex: 0 0 353px;
        width: 353px;
        height: 397px;
        min-height: 397px;
        border-radius: 20px;
        padding: 16px;
        box-sizing: border-box;
        scroll-snap-align: start;
        aspect-ratio: unset;
        overflow: hidden;
    }

    .lector-section .lector-card-bg,
    .lector-section .lector-card-gradient {
        border-radius: 20px;
    }

    .lector-section .lector-card-gradient {
        border-radius: 0 0 20px 20px;
    }

    .lector-section .lector-card-speaker {
        left: 16px;
        top: 16px;
        right: auto;
    }

    .lector-section .lector-card-title {
        left: 16px;
        right: 16px;
        bottom: 16px;
        font-size: 1.125rem;
        line-height: 1.3;
    }

    /* --- Тарифы: секция 430×1871, gap 30px, padding 47px 30px --- */
    .tariffs-section {
        width: 430px;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .tariffs-section .container-custom {
        display: flex;
        flex-direction: column;
        gap: 30px;
        max-width: 100%;
    }

    /* Тайтл секции: 370×84, Inter Tight 700, 40px, line-height 105%, по центру */
    .tariffs-title {
        width: 370px;
        max-width: 100%;
        min-height: 84px;
        margin: 0 auto;
        font-family: 'Inter Tight', sans-serif;
        font-weight: 700;
        font-size: 40px;
        line-height: 105%;
        letter-spacing: 0;
        text-align: center;
        color: var(--color-text);
    }

    /* --- Тарифы: порядок — Бесплатно, Платно, Внимание+цена --- */
    .tariffs-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: center;
    }

    .tariffs-layout > article:first-child { order: 1; }
    .tariffs-layout > article:nth-child(2) { order: 2; }
    .tariffs-third { order: 3; }

    /* Кнопки в карточках тарифов: чуть короче и меньше */
    .tariffs-section .tariff-card-btn {
        max-width: 300px;
        height: 56px;
        min-height: 56px;
        gap: 8px;
        padding: 12px 18px;
        border-radius: 100px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);
        justify-content: center;
        align-items: center;
    }

    .tariffs-section .tariff-card-btn--ticket {
        width: 280px;
        height: 52px;
        min-height: 52px;
        padding: 10px 16px;
    }

    .organizers-block,
    .organizers-card {
        align-items: center;
        text-align: center;
    }

    .organizers-title,
    .organizers-card-title,
    .organizers-card-desc,
    .partners-title {
        text-align: center;
    }

    .partners-logos {
        justify-content: center;
    }

    /* --- Контакт: секция 430×1074 на мобилке --- */
    .contact-section {
        width: 430px;
        max-width: 100%;
        min-height: 1074px;
        box-sizing: border-box;
        margin-inline: auto;
    }

    .contact-section .container-custom {
        padding: 0;
        max-width: 100%;
    }

    /* Форма: 370×496, по центру, border-radius 10px, padding 30px, gap 25px */
    .contact-form-wrap {
        max-width: 100%;
        min-height: 496px;
        margin: 33.58px auto 0;
        padding: 30px;
        border-radius: 10px;
        gap: 25px;
        box-sizing: border-box;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .contact-title,
    .contact-desc {
        text-align: center;
    }

    .contact-form {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 25px;
    }

    .contact-input {
        border: none;
        outline: none;
        border-radius: 6px;
        padding: 0.75rem 1rem;
        min-height: 48px;
        font-size: 0.875rem;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-input:focus {
        outline: none;
    }

    .contact-submit {
        width: 100%;
        border-radius: 9999px;
        box-sizing: border-box;
    }

    .contact-radios {
        align-items: flex-start;
    }

    .contact-disclaimer {
        text-align: center;
    }
    /* ---------- Модалки «Получить приглашение», успеха и «Купить билет» на мобильной ---------- */
.invite-modal,
.pro-modal,
.success-modal {
        padding: 0.75rem;
        align-items: center;
        justify-content: center;
    }

    .invite-modal-backdrop,
    .pro-modal-backdrop {
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .success-modal-backdrop {
        background: rgba(45, 45, 45, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .invite-modal-box,
    .pro-modal-box {
        width: 92%;
        max-width: 100%;
        max-height: 88vh;
        overflow-y: auto;
        border-radius: 24px;
        padding: 1.75rem 1.25rem 1.5rem;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    .success-modal-box {
        width: 92%;
        max-width: 100%;
        max-height: 88vh;
        overflow-y: auto;
        border-radius: 24px;
        padding: 2rem 1.5rem 1.75rem;
        background: #f8f8f8;
        box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), 0 12px 24px rgba(0, 0, 0, 0.2);
        text-align: center;
    }

    .success-modal-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 1rem;
        line-height: 1.3;
    }

    .success-modal-text {
        font-size: 0.9375rem;
        line-height: 1.5;
        color: #4a4a4a;
        margin: 0 0 1.5rem;
    }

    .success-modal-btn {
        width: 100%;
        min-height: 52px;
        padding: 0.875rem 1.5rem;
        border-radius: 9999px;
        font-size: 1rem;
        font-weight: 600;
        color: #1a1a1a;
        background: #FECC00;
        border: none;
        box-shadow: 0 4px 16px rgba(254, 204, 0, 0.35);
        margin-top: 0.25rem;
    }

    .success-modal-btn:active {
        opacity: 0.95;
    }

    .invite-modal-title,
    .pro-modal-title {
        text-align: left;
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .invite-modal-desc,
    .pro-modal-desc {
        text-align: left;
        font-size: 0.875rem;
        color: #595959;
        margin-bottom: 1.25rem;
        line-height: 1.45;
    }

    .invite-modal-form,
    .pro-modal-form {
        gap: 1rem;
    }

    .invite-modal-input,
    .pro-modal-input {
        width: 100%;
        min-height: 48px;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        background: #F5F5F5;
        border: none;
        outline: none;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .invite-modal-input:hover,
    .invite-modal-input:focus,
    .pro-modal-input:hover,
    .pro-modal-input:focus {
        background: #eeeeee;
        border: none;
        outline: none;
    }

    .invite-modal-hint {
        margin: -0.15rem 0 0;
        font-size: 0.75rem;
        color: #A0A0A0;
        line-height: 1.4;
    }

    .invite-modal-submit,
    .pro-modal-submit {
        width: 100%;
        min-height: 48px;
        padding: 0.875rem 1.25rem;
        border-radius: 9999px;
        margin-top: 0.75rem;
        font-size: 1rem;
        font-weight: 600;
        color: var(--color-text);
        background: var(--color-primary);
        box-sizing: border-box;
    }

    .invite-modal-disclaimer,
    .pro-modal-disclaimer {
        margin-top: 1rem;
        font-size: 0.6875rem;
        color: #A0A0A0;
        text-align: center;
    }

    .pro-modal-cost {
        margin-top: 0.5rem;
        padding: 0.75rem 0;
    }
}

/* ---------- Планшеты: промежуточная верстка ---------- */
@media (min-width: 768px) and (max-width: 991px) {
    .about-cards-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .test-day-section .container-custom,
    .container-custom,
    .tariffs-section .container-custom,
    .contact-section .container-custom {
        padding: 0 1.5rem;
    }
}

/* ---------- Мобильный fluid-адаптив (до 767px) ---------- */
@media (max-width: 767px) {
    .hero-container {
        align-items: stretch;
    }

    .hero-content,
    .hero-right,
    .hero-actions {
        width: 100%;
        max-width: 100%;
    }

    .hero-left {
        left: var(--container-padding);
        width: auto;
        max-width: calc(100% - (var(--container-padding) * 2));
    }

    .test-day-section .container-custom,
    .lector-section,
    .tariffs-section,
    .contact-section {
        width: 100%;
        max-width: none;
        margin-inline: 0;
        box-sizing: border-box;
    }

    .test-day-top,
    .test-day-text-block,
    .test-day-compare,
    .test-day-gallery,
    .contact-form-wrap,
    .contact-images,
    .tariffs-title {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .test-day-gallery {
        margin-right: auto;
        height: auto;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, minmax(0, 1fr));
    }

    .test-day-gallery-item-large,
    .test-day-gallery-item:nth-child(2),
    .test-day-gallery-item:nth-child(3),
    .test-day-gallery-item:nth-child(4),
    .test-day-gallery-item:nth-child(5) {
        width: 100%;
        height: 100%;
    }

    .about-section .container-custom {
        padding: 0;
    }

    .about-cards {
        margin-left: 0;
        margin-right: 0;
    }

    .about-cards-track {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding: 2rem 16px 30px;
    }

    .about-card-wrap {
        flex: 0 0 min(88vw, 320px);
        width: min(88vw, 320px);
        min-width: min(88vw, 320px);
        max-width: min(88vw, 320px);
    }

    .lector-cards {
        width: 100%;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .lector-card {
        flex: 0 0 min(88vw, 353px);
        width: min(88vw, 353px);
        min-width: min(88vw, 353px);
        max-width: min(88vw, 353px);
    }
}

/* ---------- Минимальные устройства: 320px ---------- */
@media (max-width: 359px) {
    .hero-left {
        top: 205px;
    }

    .hero-title,
    .lector-title,
    .tariffs-title {
        font-size: clamp(2rem, 11vw, 2.25rem);
    }

    .test-day-section .test-day-card,
    .contact-form-wrap {
        max-width: 100%;
        width: 100%;
    }

    .test-day-section .test-day-card {
        padding: 1rem;
    }

    .contact-form-wrap {
        padding: 1rem;
    }

    .about-card-wrap {
        flex: 0 0 calc(100vw - (var(--container-padding) * 2));
        width: calc(100vw - (var(--container-padding) * 2));
        min-width: calc(100vw - (var(--container-padding) * 2));
        max-width: calc(100vw - (var(--container-padding) * 2));
    }
}
