/* Весь ваш CSS сохранен без изменений */
/* ===== HERO RIBBON (уменьшен и в левом нижнем углу) ===== */
.hero-cover {
    position: relative;
    padding: 0 !important;
}

.hero-ribbon {
    position: absolute;
    left: clamp(10px, 2vw, 32px);
    bottom: clamp(12px, 3vw, 46px);
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    user-select: none;
    z-index: 2;
}

.ribbon {
    display: inline-block;
    padding: clamp(6px, .9vw, 9px) clamp(10px, 1.9vw, 18px);
    transform: skewX(-14deg);
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,.28);
    width: fit-content;
}

.ribbon > span {
    display: inline-block;
    transform: skewX(14deg);
    font-family: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-style: italic;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.05;
    white-space: nowrap;
    font-size: clamp(17px, 3.3vw, 38px);
}

.ribbon--dark { background:#0b1b3a; color:#fff; }
.ribbon--light { background:#36aee3; color:#fff; }

@media (hover:hover) and (pointer:fine) {
    .hero-ribbon .ribbon:hover {
        transform: skewX(-14deg) translateY(-2px);
    }
}

@media (min-width: 1021px) {
    .hero-ribbon {
        left: 20px;
        bottom: 20px;
    }
}

:root {
    --bg: #0b0c0e;
    --bg-2: #161017;
    --brand: #e0102f;
    --ink: #ffffff;
    --accent: #2a78ff;
    --secondary: #10b981;
    --text: #0f172a;
    --glass-bg: rgba(12,14,18,.0);
    --glass-bg-scrolled: rgba(12,14,18,.62);
    --menu-size: clamp(12px, 1.05vw, 14px);
    --menu-size-small: clamp(11px, .95vw, 13px);
    --card-media-h-desktop: clamp(300px, 32vw, 380px);
    --card-media-h-mobile: clamp(240px, 65vw, 380px);
    /* Анимационные переменные для плавности */
    --transition: .3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%); /* Лёгкий градиент для живости */
    color: var(--text);
    font-family: "Jost",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    font-weight: 400;
    overflow-x: hidden; /* Предотвращаем горизонтальный скролл */
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px
}

/* ===== СТАРЫЕ ПОЛОСЫ ВЫКЛ ===== */
.gs-topbar, .gs-subbar {
    display: none !important;
}

/* ===== ХЕДЕР (логотип слева, 2 строки меню справа) ===== */
.hero-header {
    position: relative;
}

.navglass {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    color: #fff;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(8px) saturate(1.05);
    backdrop-filter: blur(8px) saturate(1.05);
    border-bottom: 1px solid transparent;
    transition: background .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.navglass.scrolled {
    background: var(--glass-bg-scrolled);
    border-color: rgba(255,255,255,.12);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.nav-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 18px;
    padding: 18px 0 8px 0;
}

/* логотип: левый верхний угол (белый) */
.brand {
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.brand:hover {
    transform: scale(1.05); /* Лёгкая анимация на hover */
}

.brand img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

/* правый блок: две строки меню, выравнивание вправо */
.nav-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
}

.nav-top, .nav-sub {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-top a, .nav-sub a {
    color: #ffffff;
    opacity: .95;
    font-weight: 400;
    letter-spacing: .04em;
    padding: 4px 0;
    position: relative;
    transition: var(--transition);
}

.nav-top a {
    font-size: var(--menu-size);
}

.nav-sub a {
    font-size: var(--menu-size-small);
    opacity: .92;
}

.nav-top a::after, .nav-sub a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 1px;
    width: 0;
    margin: 0 auto;
    background: rgba(255,255,255,.9);
    transition: width .16s ease;
}

.nav-top a:hover::after, .nav-sub a:hover::after {
    width: 100%;
}

.nav-top a:hover, .nav-sub a:hover {
    opacity: 1;
    transform: translateY(-2px); /* Подъём на hover для динамики */
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.phone-link .whatsapp-link {
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
    opacity: .95;
    transition: var(--transition);
}

.phone-link .whatsapp-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.phone-link .whatsapp-link svg {
    width: 32px;
    height: 32px;
    fill: #25D366;
}

/* бургер только на мобилках */
.burger-wrap {
    display: none;
    align-items: center;
    gap: 8px;
}

.hamburger {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,.22);
    color: #fff;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(255,255,255,.08);
    transform: rotate(90deg); /* Вращение для живости */
}

.hamburger svg {
    width: 26px;
    height: 26px;
}

.mobile-nav {
    display: none;
}

/* ===== HERO ===== */
.hero-cover {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: flex-end;
    background-color: #000;
    overflow: clip;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    transition: var(--transition); /* Плавный зум на hover, если добавить JS */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.42) 28%, rgba(0,0,0,.10) 55%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    padding: 0 0 46px 0;
    color: #fff;
    z-index: 2;
}

.hero-content h1 {
    font-family: 'Bebas Neue', sans-serif; /* Как в .traq-content h2 */
    font-size: clamp(32px, 5vw, 48px); /* Как в .traq-content h2 — уменьшен для стиля TraqChallenge */
    font-weight: 400;
    line-height: 1.05;
    margin: 0 0 20px; /* Как в .traq-content h2 */
    letter-spacing: .05em; /* Расстановка для динамики */
    text-transform: uppercase; /* Как в .traq-content h2 */
    color: #fff; /* Белый, как в hero */
    text-align: center; /* Центрировка для consistency с traq */
    animation: fadeInUp 1s ease-out; /* Анимация появления */
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    border: 0;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .02em;
    transition: var(--transition);
    position: relative;
    overflow: hidden; /* Для glow эффекта */
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transition: left .5s;
}

.btn:hover::before {
    left: 100%; /* Шейдер эффект на hover */
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: #c30f29;
    transform: translateY(-2px) scale(1.05); /* Улучшенный hover */
    box-shadow: 0 10px 20px rgba(224,16,47,.24);
}

.btn-ghost {
    background: #fff;
    color: #111;
}

.btn-ghost:hover {
    background: #f5f5f5;
    transform: translateY(-2px) scale(1.05);
}

.btn-accent-outline {
    background: #fff;
    color: var(--accent);
    border: 2px solid var(--accent)
}

.btn-accent-outline:hover {
    background: #f5f8ff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(31,111,255,.18)
}

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

.btn-secondary-outline:hover {
    background: #f0fdf4;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(16,185,129,.18)
}

/* Drawer */
.drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw,420px);
    background: #0e0e10;
    color: #fff;
    transform: translateX(100%);
    transition: transform .2s ease;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 28px rgba(0,0,0,.35);
}

.drawer.open {
    transform: translateX(0)
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08)
}

.drawer-body {
    padding: 14px 18px;
    overflow: auto
}

.drawer h4 {
    margin: 14px 0 8px;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9ca3af
}

.drawer a {
    display: block;
    padding: 12px 2px;
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    transition: var(--transition);
}

.drawer .phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 2px;
}

.drawer .phone-link .tel-link {
    color: #fff;
    font-weight: 500;
    font-size: 18px;
    transition: var(--transition);
}

.drawer .phone-link .whatsapp-link {
    display: inline-flex;
    align-items: center;
    padding: 0;
    opacity: .95;
    transition: var(--transition);
}

.drawer .phone-link .whatsapp-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.drawer .phone-link .whatsapp-link svg {
    width: 40px;
    height: 40px;
    fill: #25D366;
}

.drawer a:hover {
    color: var(--brand);
    padding-left: 10px; /* Сдвиг для анимации */
}

.drawer .phone-link:hover .tel-link {
    color: var(--brand);
}

.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 1100;
}

.backdrop.show {
    opacity: 1;
    pointer-events: auto
}

/* Контент */
.page {
    padding: 26px 0 96px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 72px
}

.card {
    position: relative;
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    gap: 32px;
    align-items: stretch;
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(0,0,0,.06);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px); /* Начальное состояние для анимации */
    animation: fadeInUp 0.8s ease-out forwards; /* Анимация появления карточек */
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.card:hover {
    transform: translateY(-5px); /* Подъём на hover */
    box-shadow: 0 20px 40px rgba(0,0,0,.1);
}

.card.reverse {
    grid-template-columns: 1fr 1.08fr
}

/* ===== МЕДИА-ЗОНА КАРТОЧЕК (унификация размеров) ===== */
.card .img-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 1px;
    height: var(--card-media-h-desktop);
    transition: var(--transition);
}

.card:hover .img-wrap {
    transform: scale(1.02); /* Лёгкий зум изображения */
}

.card .img-wrap img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 38px rgba(0,0,0,.28));
    transition: var(--transition);
}

/* Текстовая колонка тянется, кнопки у низа */
.card .text {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.card .actions {
    margin-top: auto;
}

.title {
    font-family: 'Bebas Neue', sans-serif; /* Новый шрифт для заголовков */
    font-weight: 400;
    font-size: clamp(32px, 4.5vw, 42px); /* Увеличен для большего воздействия */
    margin: 6px 0 8px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--text);
}

.programs {
    font-weight: 500;
    font-size: 13.5px;
    color: #1e40af;
    margin-bottom: 10px
}

.meta-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 6px
}

.badge-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: .02em;
    box-shadow: 0 3px 10px rgba(0,0,0,.04);
    transition: var(--transition);
}

.badge-price:hover {
    transform: scale(1.05);
}

.badge-price .ruble {
    font-weight: 800
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 2px
}

.chip {
    font-size: 12px;
    color: #111;
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    transition: var(--transition);
}

.chip:hover {
    background: #e0e7ff;
    transform: translateX(5px); /* Сдвиг для живости */
}

.specs {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
    color: #374151;
    font-size: 14.5px;
    line-height: 1.75;
    columns: 2;
    column-gap: 28px
}

.specs li {
    break-inside: avoid;
    margin: 2px 0;
    padding-left: 22px;
    position: relative;
    transition: var(--transition);
}

.specs li:hover {
    color: var(--brand); /* Цвет на hover */
}

.specs li::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5e7eb;
    position: absolute;
    left: 0;
    top: .55em;
    transition: var(--transition);
}

.specs li:hover::before {
    background: var(--brand);
    transform: scale(1.2);
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px
}

/* Футер */
.footer {
    background: var(--bg-2);
    color: var(--ink);
    padding: 40px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-section h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    margin-bottom: 16px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: rgba(255,255,255,.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--brand);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,.6);
}

/* Promo Section */
.promo-section {
    background: #f8fafc;
    padding: 60px 0;
}

.promo-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(18px, 4vw, 38px);
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text);
    text-align: center;
}

.promo-section p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.accordion-header {
    background: #fff;
    cursor: pointer;
    padding: 20px;
    transition: var(--transition);
}

.accordion-header:hover {
    background: #f5f5f5;
}

.accordion-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-icon {
    font-size: 18px;
    font-weight: bold;
    transition: var(--transition);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fff;
}

.accordion-content.open {
    max-height: 2000px; /* adjust as needed */
}

.accordion-content p {
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

/* Анимации */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Респонсив */
@media (max-width:1200px) {
    .nav-row {
        grid-template-columns: 1fr auto;
    }
}

@media (max-width:1020px) {
    .nav-row {
        display: none;
    }

    .mobile-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 0;
        margin-top: 10px;
    }

    .mobile-nav .brand {
        margin-top: 0;
    }

    .mobile-nav .phone-link {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .mobile-nav .phone-link .tel-link {
        font-size: 16px;
        font-weight: 500;
        color: #fff;
        opacity: .95;
        transition: var(--transition);
        white-space: nowrap;
    }

    .mobile-nav .phone-link .whatsapp-link {
        display: inline-flex;
        align-items: center;
        padding: 4px;
        opacity: .95;
        transition: var(--transition);
    }

    .mobile-nav .phone-link:hover .tel-link {
        opacity: 1;
    }

    .mobile-nav .phone-link .whatsapp-link:hover {
        opacity: 1;
        transform: translateY(-1px);
    }

    .mobile-nav .phone-link .whatsapp-link svg {
        width: 32px;
        height: 32px;
        fill: #25D366;
    }

    .burger-wrap {
        display: flex;
    }

    .page {
        padding-top: 18px
    }

    .card, .card.reverse {
        grid-template-columns: 1fr
    }

    .card.reverse .img-wrap {
        order: -1
    }

    .specs {
        columns: 1
    }

    .card .img-wrap {
        height: var(--card-media-h-mobile);
    }

    .hero-content h1 {
        font-size: clamp(32px, 5vw, 48px); /* Адаптация для мобильных */
    }
}

/* Мобильные отступы контейнера/карточек */
@media (max-width: 640px) {
    .container {
        padding: 0 4px;
    }

    .card {
        padding: 8px;
    }

    .actions {
        flex-direction: column; /* Столбец на мобильных для кнопок */
    }

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

    .mobile-nav {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
    }

    .brand img {
        height: 28px;
    }

    .mobile-nav .phone-link .tel-link {
        font-size: 14px;
    }

    .mobile-nav .phone-link .whatsapp-link svg {
        width: 28px;
        height: 28px;
        fill: #25D366;
    }
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Стили для Promo Section Gifts */
:root {
    --gs-red: #e1142e;
    --gs-red-600: #c80c24;
    --gs-blue: #0e4a84;
    --gs-blue-600: #09345c;
    --gs-ink: #0b0f1a;
    --gs-white: #ffffff;
    --gs-radius: 24px;
    --gs-gap: 28px;
    --top-height: 200px;
    /* Машины (размер/расстояния) */
    --car-h: 80px; /* единая базовая высота (≈ в 1.5 раза меньше прошлой) */
    --car-left: 170px; /* смещение Ferrari от центра */
    --car-right: 170px; /* смещение правой BMW от центра */
    --overlap: 44px; /* перекрытие задних частей */
    --hover-spread: 48px; /* разъезд при hover (~в 3 раза меньше, чем было) */
    --ferrari-boost: 1.12; /* визуальная компенсация масштаба Ferrari */
}

.gs-gifts {
    isolation: isolate;
    background: linear-gradient(180deg,#ffffff 0%,#f7f8fb 100%);
    padding: clamp(24px,3vw,48px) 0;
}

.gs-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(14px,2.2vw,28px);
}

.gs-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    font-family: "Jost",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
    font-weight: 800;
    letter-spacing: .2px;
    font-size: clamp(28px,4.2vw,48px);
    line-height: 1.05;
    color: var(--gs-ink);
}

.gs-logo {
    height: 1.2em;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.12));
}

.gs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gs-gap);
}

@media (min-width:960px) {
    .gs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.gs-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--gs-radius);
    text-decoration: none;
    color: var(--gs-white);
    min-height: 360px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(10,15,26,.10), 0 2px 6px rgba(10,15,26,.06);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
    transform-style: preserve-3d;
}

.gs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(10,15,26,.16),0 3px 10px rgba(10,15,26,.08);
}

.gs-card:focus-visible {
    outline: 3px solid #1113;
    outline-offset: 4px;
}

.gs-card-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    height: 32px;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.12));
    opacity: .9;
}

@media (max-width:640px) {
    .gs-card-logo {
        top: 16px;
        left: 16px;
        height: 28px;
    }
}

.gs-blue:hover {
    transform: translateY(-4px) rotateX(1.2deg) rotateY(-1.2deg);
}

.gs-red {
    background: radial-gradient(160% 120% at 80% 10%,#ff4b59 0%,var(--gs-red) 40%,var(--gs-red-600) 100%);
}

.gs-blue {
    background: radial-gradient(160% 120% at 80% 10%,#1e73bd 0%,var(--gs-blue) 40%,var(--gs-blue-600) 100%);
}

.gs-card-inner {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    padding: 20px 0 0 0;
}

@media (min-width:640px) {
    .gs-card-inner {
        padding: 40px 0 0 0;
    }
}

.gs-text {
    padding: 28px;
    z-index: 2;
    font-family: "Inter",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
    background: linear-gradient(180deg,transparent 0%,rgba(0,0,0,.02) 100%);
    border-radius: 0 0 var(--gs-radius) var(--gs-radius);
}

.gs-text h3 {
    margin: 0 0 10px;
    font-family: "Jost",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
    font-weight: 800;
    font-size: clamp(22px,2.6vw,32px);
    line-height: 1.1
}

.gs-text p {
    margin: 0;
    font-weight: 500;
    font-size: clamp(15px,1.4vw,18px);
    opacity: .96
}

.gs-ruble {
    position: relative;
    height: var(--top-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ruble-symbol {
    font-family: "Jost",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
    font-weight: 800;
    font-size: clamp(120px,20vw,180px);
    line-height: 1;
    color: var(--gs-white);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.3));
    opacity: .95;
    animation: ruble-bounce 3s ease-in-out infinite;
}

@keyframes ruble-bounce {
    0%,100% {
        transform: scale(1) translateY(0)
    }

    50% {
        transform: scale(1.05) translateY(-5px)
    }
}

@media (max-width:640px) {
    :root {
        --top-height: 160px;
    }

    .ruble-symbol {
        font-size: clamp(100px,25vw,140px)
    }
}

.gs-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 40%;
    width: auto;
    opacity: .08;
    pointer-events: none;
    user-select: none;
    animation: wm 6s linear infinite;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.12));
    z-index: 1;
}

@keyframes wm {
    0% {
        transform: translate(-50%, -50%) translateZ(0) translateX(0)
    }

    100% {
        transform: translate(-50%, -50%) translateZ(0) translateX(-12px)
    }
}

@media (max-width:640px) {
    .gs-watermark {
        height: 30%;
    }
}

/* ==== МАШИНЫ: одна линия, нужные перекрытия ==== */
.gs-cars {
    position: relative;
    height: var(--top-height);
    margin: 0 14px;
    overflow: visible; /* Ferrari целиком, не обрезаем края */
}

.gs-cars .car {
    position: absolute;
    left: 50%;
    bottom: 22px; /* единая "дорога" */
    height: var(--car-h);
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
    transition: transform .55s cubic-bezier(.16,.84,.36,1.12);
    will-change: transform;
    animation: none;
}

/* Ferrari спереди (чуть больше для визуального паритета) */
.car-ferrari {
    z-index: 3;
    height: calc(var(--car-h) * var(--ferrari-boost));
    transform: translateX(calc(-50% - var(--car-left) + var(--overlap)));
}

/* Центр — BMW M4, средний слой */
.car-bmw {
    z-index: 2;
    transform: translateX(-50%);
}

/* Справа — BMW M235, задний план */
.car-bmw-right {
    z-index: 1;
    transform: translateX(calc(-50% + var(--car-right) - var(--overlap)));
}

/* Ховер: центральная BMW остаётся, Ferrari немного левее, правая BMW немного правее */
.gs-blue:hover .car-bmw {
    transform: translateX(-50%);
}

.gs-blue:hover .car-ferrari {
    transform: translateX(calc(-50% - (var(--car-left) + var(--hover-spread)) + var(--overlap)));
}

.gs-blue:hover .car-bmw-right {
    transform: translateX(calc(-50% + (var(--car-right) + var(--hover-spread)) - var(--overlap)));
}

/* Узкие экраны — поджимаем высоту и расстояния */
@media (max-width:760px) {
    :root {
        --car-h: 64px;
        --car-left: 130px;
        --car-right: 130px;
        --overlap: 36px;
        --hover-spread: 36px; /* тоже ~в 3 раза меньше чем прежде */
        --ferrari-boost: 1.12;
    }

    .gs-cars .car {
        bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gs-card, .gs-cars .car, .ruble-symbol {
        transition: none !important;
        animation: none !important;
    }
}

/* Стили для контента TraqChallenge */
.traq-content {
    padding: 60px 0;
    background: #f8fafc;
}

    .traq-content h2 {
        font-family: 'Bebas Neue', sans-serif;
        font-size: clamp(32px, 5vw, 48px);
        text-transform: uppercase;
        margin-bottom: 20px;
        color: var(--text);
        text-align: center;
    }

    .traq-content p {
        font-size: 16px;
        line-height: 1.6;
        max-width: 800px;
        margin: 0 auto 20px;
        text-align: center;
    }

    .traq-content ul {
        max-width: 800px;
        margin: 0 auto 20px;
        list-style: none;
        padding: 0;
    }

    .traq-content li {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 10px;
        padding-left: 20px;
        position: relative;
    }

        .traq-content li::before {
            content: "—";
            position: absolute;
            left: 0;
        }

    .traq-content .important {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 20px;
        margin: 20px auto;
        max-width: 800px;
    }

        .traq-content .important h3 {
            font-family: 'Bebas Neue', sans-serif;
            font-size: 24px;
            text-transform: uppercase;
            margin-bottom: 10px;
            color: var(--brand);
        }

.traq-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

    .traq-actions a {
        font-size: 16px;
        padding: 14px 24px;
        background: var(--brand);
        color: #fff;
        border-radius: 12px;
        transition: var(--transition);
    }

        .traq-actions a:hover {
            background: #c30f29;
            transform: translateY(-2px);
        }

/* Стили для страниц "в работе" */
/* Стили для страниц "в работе" - обновлено для точного совпадения с traq-content */
.work-in-progress {
    padding: 60px 0; /* Как в .traq-content */
    background: #f8fafc; /* Как в .traq-content */
    text-align: center;
}

.work-in-progress img {
    max-width: 600px;
    margin: 0 auto 40px;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0,0,0,.06);
}

.work-in-progress h2 {
    font-family: 'Bebas Neue', sans-serif; /* Как в .traq-content h2 */
    font-size: clamp(32px, 5vw, 48px); /* Как в .traq-content h2 */
    text-transform: uppercase; /* Как в .traq-content h2 */
    margin-bottom: 20px; /* Как в .traq-content h2 */
    color: var(--text); /* Как в .traq-content h2 */
    text-align: center; /* Явно */
}

.work-in-progress p {
    font-size: 16px; /* Как в .traq-content p */
    line-height: 1.6; /* Как в .traq-content p */
    max-width: 800px; /* Как в .traq-content p */
    margin: 0 auto 20px; /* Как в .traq-content p, но с 20px для consistency */
    text-align: center; /* Как в .traq-content p */
    color: var(--text); /* Стандартный цвет */
}