/* ─────────────────────────────────────────────────────────────
   Porsche Contest — стили. Светлая тема, фирменные цвета.
   ───────────────────────────────────────────────────────────── */

@font-face {
    font-family: 'Porsche Next';
    src: url('/assets/fonts/PorscheNext-Regular.otf') format('opentype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Porsche Next';
    src: url('/assets/fonts/PorscheNext-RegularItalic.otf') format('opentype');
    font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
    font-family: 'Porsche Next';
    src: url('/assets/fonts/PorscheNext-SemiBold.otf') format('opentype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Porsche Next';
    src: url('/assets/fonts/PorscheNext-Bold.otf') format('opentype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Porsche Next';
    src: url('/assets/fonts/PorscheNext-Thin.otf') format('opentype');
    font-weight: 300; font-style: normal; font-display: swap;
}

:root {
    /* фирменные цвета Porsche */
    --porsche-red:        #D5001C;
    --porsche-red-dark:   #B30017;
    --porsche-red-light:  #E6233C;
    --porsche-gold:       #B89868;

    --black:              #0E0E10;
    --gray-900:           #1B1C1E;
    --gray-700:           #4A4B4D;
    --gray-500:           #7C7E82;
    --gray-300:           #C8CACC;
    --gray-200:           #E3E4E6;
    --gray-100:           #EFF0F1;
    --gray-50:            #F7F8F9;
    --white:              #FFFFFF;

    --bg:                 var(--white);
    --bg-soft:            var(--gray-50);
    --text:               var(--black);
    --text-muted:         var(--gray-500);
    --border:             var(--gray-200);
    --accent:             var(--porsche-red);

    --shadow-sm:          0 1px 2px rgba(14, 14, 16, .06);
    --shadow-md:          0 4px 16px rgba(14, 14, 16, .08);
    --shadow-lg:          0 20px 50px rgba(14, 14, 16, .14);
    --shadow-red:         0 8px 24px rgba(213, 0, 28, .25);

    --radius-sm:          6px;
    --radius:             12px;
    --radius-lg:          18px;

    --max-width:          1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html, body { overflow-x: clip; }   /* страховка от любых absolute-вылетов */

body {
    font-family: 'Porsche Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: var(--text); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.01em;
    margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }

p { margin: 0 0 1em; }

/* ─── Контейнер ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 1024px) {
    .container { padding: 0 40px; }
}

/* ─── Шапка ────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--gray-100);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.site-header__logo img { height: 22px; }
.site-header__nav {
    display: flex;
    gap: 8px;
}
.site-header__nav a {
    color: var(--gray-700);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 100px;
    transition: all .15s ease;
}
.site-header__nav a:hover { background: var(--gray-100); color: var(--black); }
.site-header__nav a.is-active { color: var(--accent); }

.site-header__cta { display: flex; gap: 8px; align-items: center; }

@media (max-width: 768px) {
    .site-header__nav { display: none; }
    /* На мобилке скрываем CTA-кнопки в хедере — они есть в hero */
    .site-header__cta { display: none; }
}

/* ─── Кнопки ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all .18s ease;
    line-height: 1;
    white-space: nowrap;
}
.btn--primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--shadow-red);
}
.btn--primary:hover {
    background: var(--porsche-red-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(213, 0, 28, .35);
}
.btn--dark {
    background: var(--black);
    color: var(--white);
}
.btn--dark:hover {
    background: var(--gray-900);
    color: var(--white);
    transform: translateY(-1px);
}
.btn--outline {
    background: transparent;
    color: var(--black);
    border-color: var(--gray-300);
}
.btn--outline:hover {
    border-color: var(--black);
    background: var(--gray-50);
}
.btn--ghost {
    background: transparent;
    color: var(--gray-700);
}
.btn--ghost:hover { background: var(--gray-100); color: var(--black); }
.btn--small { padding: 8px 14px; font-size: 13px; }
.btn--large { padding: 16px 32px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}
@media (min-width: 900px) {
    .hero { min-height: 820px; }
}
.hero::before {
    content: '';
    position: absolute;
    inset: -40% -10% auto auto;
    width: 60%;
    height: 600px;
    background: radial-gradient(closest-side, rgba(213,0,28,.08), transparent 70%);
    z-index: 0;
}

/* ── Cayenne справа: интерактивная 3D-модель (model-viewer) ── */
.hero__cayenne-wrap {
    position: absolute;
    /* «top: 50% + translateY(-30%)» вместо центра: машина уходит ниже
       середины hero, оставляя место под header сверху. */
    top: 50%;
    right: -10%;
    width: 95%;
    max-width: 1280px;
    aspect-ratio: 4961 / 3508;
    z-index: 0;
    transform: translateY(-42%);
    display: none;
}
.hero__model {
    display: block;
    background: transparent;
    --poster-color: transparent;
    --poster-image-display: contain;
}
.hero__model::part(default-progress-bar) { display: none; }

/* Главная модель hero (Cayenne) — занимает весь wrap, интерактивна. */
.hero__model--front {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    animation: heroCarFadeIn 1.1s ease .25s both;
}

/* Кастомный постер: PNG зеркалится и сдвигается, в кадре остаётся
   только морда машины с фарами. Когда glb загружен, model-viewer
   автоматически прячет slot. */
.hero__poster {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    background: transparent;
    pointer-events: none;
}
.hero__poster-img {
    position: absolute;
    /* Прижимаем постер к низу wrap'а — машина оказывается в правильной
       нижней половине hero, а не «висит» вверху. */
    bottom: 4%;
    right: -8%;
    height: 88%;
    width: auto;
    transform: scaleX(-1);
}

@keyframes heroCarFadeIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0);    }
}

@media (min-width: 900px) {
    .hero__cayenne-wrap { display: block; }
}

.hero__inner { position: relative; z-index: 1; pointer-events: none; }
.hero__content { position: relative; min-width: 0; max-width: 640px; pointer-events: none; }
/* Мягкая белая подложка под текстом: когда 3D-модель при вращении заходит
   в левую (текстовую) зону hero, тёмный кузов не «съедает» тёмный текст.
   Только на десктопе (≥900px), где модель вообще видна. */
@media (min-width: 900px) {
    .hero__content::before {
        content: '';
        position: absolute;
        inset: -32px -160px -32px -48px;
        z-index: -1;
        pointer-events: none;
        background: linear-gradient(90deg,
            rgba(255,255,255,.94) 0%,
            rgba(255,255,255,.88) 42%,
            rgba(255,255,255,0)   100%);
    }
}
/* Сам hero__inner и hero__content прозрачны для мыши, чтобы события
   проходили сквозь пустые места к 3D-модели справа. А все интерактивные
   и текстовые элементы внутри content включают события обратно. */
.hero__content > * { pointer-events: auto; }

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 18px;
}
.hero__eyebrow::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(213,0,28,.18);
}
.hero__title {
    margin: 0 0 18px;
    max-width: 900px;
    line-height: 1.05;
    background: linear-gradient(135deg, var(--black) 0%, var(--gray-700) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent) 0%, var(--porsche-red-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__lead {
    max-width: 560px;
    font-size: 16px;
    color: var(--gray-700);
    margin-bottom: 12px;
    line-height: 1.55;
}
.hero__lead--accent {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 24px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__dates {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    max-width: 900px;
}
.hero__date {
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.hero__date small {
    display: block;
    color: var(--gray-500);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 4px;
}
.hero__date strong {
    font-size: 18px;
    font-weight: 700;
}

/* ─── Секции ───────────────────────────────────────────────── */
.section { padding: 90px 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--soft { background: var(--gray-50); }

/* ─── Фото-баннер ──────────────────────────────────────────── */
.photo-band {
    position: relative;
    width: 100%;
    height: clamp(360px, 52vh, 560px);
    overflow: hidden;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    color: var(--white);
}
.photo-band__bg {
    position: absolute; inset: 0; z-index: 0;
    display: block;
}
.photo-band__bg img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}
.photo-band__overlay {
    position: absolute; inset: 0;
    background:
      linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 100%),
      linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.45) 100%);
}
.photo-band__overlay--center {
    background:
      radial-gradient(ellipse at center, rgba(0,0,0,.65) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.75) 100%),
      linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.55) 100%);
}
.photo-band__inner {
    position: relative; z-index: 1;
    max-width: 720px;
}
.photo-band__inner--center { text-align: center; margin: 0 auto; }
.photo-band__eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 18px;
}
.photo-band__title {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    margin: 0;
    color: var(--white);
    font-weight: 700;
    text-shadow: 0 2px 16px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.6);
}
.photo-band__title em {
    font-style: normal;
    color: #FF4D5E;
    text-shadow: 0 2px 14px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.7);
}
.photo-band__lead {
    margin: 18px 0 0;
    color: rgba(255,255,255,.95);
    font-size: 17px;
    max-width: 560px;
    text-shadow: 0 1px 10px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.5);
}
.photo-band__eyebrow {
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
@media (max-width: 640px) {
    .photo-band { height: clamp(280px, 60vh, 420px); }
}

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}
.section__eyebrow {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ─── Грид условий ─────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.step {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    position: relative;
    transition: all .25s ease;
}
.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}
.step__num {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p  { color: var(--gray-700); margin: 0; }

/* ─── Призы ────────────────────────────────────────────────── */
.prizes {
    display: grid;
    gap: 24px;
}
.prizes-secondary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
@media (max-width: 900px) {
    .prizes-secondary { grid-template-columns: 1fr; }
}

/* Главный приз: горизонтальная карточка с фоновой фотографией слева. */
.prize-hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1c 0%, #2c0a0d 100%);
    color: var(--white);
    border: 1px solid rgba(213,0,28,.3);
    transition: transform .3s ease, box-shadow .3s ease;
}
.prize-hero:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prize-hero__image {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 280px;
}
.prize-hero__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(15,15,17,.15) 0%,
        rgba(15,15,17,.05) 50%,
        rgba(15,15,17,.7)  100%);
}
.prize-hero__badge {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 1;
    background: var(--accent);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.prize-hero__body {
    padding: 40px 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.prize-hero__place {
    font-size: 88px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 12px;
}
.prize-hero__place span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 500;
    color: var(--gray-400, #9a9a9c);
}
.prize-hero__title {
    font-size: 28px;
    line-height: 1.15;
    margin: 0 0 16px;
    color: var(--white);
}
.prize-hero__desc {
    color: var(--gray-300);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 18px;
}
.prize-hero__points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}
.prize-hero__points li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    color: var(--gray-300);
}
.prize-hero__points li::before {
    content: '';
    position: absolute;
    left: 0; top: 7px;
    width: 8px; height: 1px;
    background: var(--accent);
}
@media (max-width: 800px) {
    .prize-hero { grid-template-columns: 1fr; min-height: 0; }
    .prize-hero__image { min-height: 220px; }
    .prize-hero__body { padding: 28px 24px; }
    .prize-hero__place { font-size: 64px; }
    .prize-hero__title { font-size: 22px; }
}
.prize {
    position: relative;
    padding: 40px 32px 32px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .3s ease;
}
.prize::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(213,0,28,0) 0%, rgba(213,0,28,.18) 100%);
    pointer-events: none;
}
.prize:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.prize__place {
    font-size: 96px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 8px;
}
.prize__rank {
    font-size: 14px;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 20px;
}
.prize__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}
.prize__desc {
    color: var(--gray-300);
    font-size: 15px;
    position: relative;
    line-height: 1.6;
}
.prize--first {
    background: linear-gradient(135deg, #1a1a1c 0%, #2c0a0d 100%);
    border: 1px solid rgba(213,0,28,.3);
}
.prize--first .prize__place { font-size: 120px; }

/* ─── CTA ──────────────────────────────────────────────────── */
.cta {
    position: relative;
    padding: 120px 0;
    background: #0c0c0c center/cover no-repeat;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; z-index: 0; display: block; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.cta::before {
    content: '';
    position: absolute; inset: 0;
    z-index: 1;
    background:
      radial-gradient(circle at 80% 50%, rgba(213,0,28,.18), transparent 55%),
      radial-gradient(ellipse at center, rgba(0,0,0,.7) 0%, rgba(0,0,0,.78) 60%, rgba(0,0,0,.92) 100%);
}
.cta h2 {
    text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.6);
}
.cta p {
    text-shadow: 0 1px 12px rgba(0,0,0,.6), 0 1px 2px rgba(0,0,0,.5);
}
.cta > .container { position: relative; z-index: 1; }
.cta h2 { color: var(--white); }
.cta p { color: var(--gray-300); max-width: 560px; margin: 0 auto 32px; }

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: var(--black);
    color: var(--gray-300);
    padding: 60px 0 30px;
    font-size: 14px;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 960px) {
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .site-footer__inner { grid-template-columns: 1fr; }
}
.site-footer__socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.site-footer .site-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-900);
    border-radius: 50%;
    color: var(--gray-300);
    padding: 0;
    line-height: 1;
    transition: color .2s, border-color .2s, background .2s;
}
.site-footer .site-footer__socials a:hover {
    color: var(--white);
    border-color: var(--accent);
    background: var(--accent);
}
/* SVG как block — убирает baseline-сдвиг inline-элемента, иконка строго центрируется. */
.site-footer__socials a svg { display: block; }
.site-footer__logo img { height: 24px; margin-bottom: 16px; }
.site-footer h4 {
    color: var(--white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 16px;
}
.site-footer a { color: var(--gray-300); display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--white); }
.site-footer__bottom {
    border-top: 1px solid var(--gray-900);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--gray-500);
}

/* ─── Формы ────────────────────────────────────────────────── */
.form { max-width: 540px; margin: 0 auto; }
.form--wide { max-width: 720px; }
.form__row { margin-bottom: 18px; }
.form__row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) { .form__row--2 { grid-template-columns: 1fr; } }

.form__label {
    display: block;
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 6px;
    font-weight: 500;
}
.form__label .req { color: var(--accent); margin-left: 2px; }
.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: 13px 16px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
    box-sizing: border-box;
}
/* Селект приводим к виду обычного input — убираем нативный chevron, рисуем свой. */
select.form__input,
.form__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    cursor: pointer;
}
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(213,0,28,.12);
}
.form__textarea { min-height: 100px; resize: vertical; }
.form__hint { font-size: 12px; color: var(--gray-500); margin-top: 6px; }
.form__error { font-size: 13px; color: var(--accent); margin-top: 6px; }

/* ── FAQ-аккордеон (нативные <details>/<summary>) ── */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item[open] {
    border-color: var(--gray-300);
    box-shadow: 0 6px 24px rgba(0,0,0,.05);
}
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
    flex-shrink: 0;
    color: var(--accent);
    transition: transform .25s ease;
}
.faq__item[open] .faq__icon { transform: rotate(180deg); }
.faq__a {
    padding: 0 22px 22px;
    color: var(--gray-600, #555);
    line-height: 1.65;
}
.faq__cta {
    max-width: 820px;
    margin: 40px auto 0;
    padding: 28px;
    text-align: center;
    background: var(--white);
    border: 1px dashed var(--gray-300);
    border-radius: 16px;
}
.faq__cta p { margin: 0 0 16px; }

.form__file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    background: var(--gray-50);
}
.form__file:hover { border-color: var(--accent); background: var(--white); }
.form__file input[type=file] { display: none; }
.form__file__label {
    font-weight: 600;
    color: var(--black);
    font-size: 15px;
}
.form__file__hint {
    display: block;
    font-size: 13px;
    color: var(--gray-500);
}
.form__file--compact { padding: 14px 18px; text-align: left; align-items: flex-start; }

/* ── Блок фото в кабинете ─────────────────────────────────── */
.cabinet-photo {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    margin: 18px 0;
    align-items: stretch;
}
.cabinet-photo__preview {
    aspect-ratio: 16 / 10;
    background: var(--gray-100) center/cover no-repeat;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}
.cabinet-photo__preview--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}
.cabinet-photo__form { margin: 0; display: flex; align-items: stretch; }
.cabinet-photo__form .form__file { width: 100%; margin: 0; }
@media (max-width: 640px) {
    .cabinet-photo { grid-template-columns: 1fr; }
}

/* Селектор стран для телефона */
.phone-input {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.phone-input:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(213,0,28,.12);
}
.phone-input select {
    border: none;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--gray-700);
    cursor: pointer;
    outline: none;
}
.phone-input input {
    flex: 1;
    border: none;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

/* ─── Flash ────────────────────────────────────────────────── */
.flashes { margin-bottom: 20px; }
.flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 14px;
    border: 1px solid;
}
.flash--success {
    background: #EEF8EE; color: #1E5C2E; border-color: #BFE5C2;
}
.flash--error {
    background: #FBEDEE; color: #8A1421; border-color: #F2B8BF;
}
.flash--info {
    background: #EEF3FB; color: #1E3F70; border-color: #C1D4ED;
}

/* ─── Badge ────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}
.badge--pending  { background: #FFF6E5; color: #8A5A00; }
.badge--approved { background: #E7F6EA; color: #1E5C2E; }
.badge--rejected { background: #FBEDEE; color: #8A1421; }

/* ─── Карточки/таблицы кабинета ───────────────────────────── */
.panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}
.panel__head h2, .panel__head h3 { margin: 0; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.table th, .table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}
.table th {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-500);
    background: var(--gray-50);
}
.table tr:hover td { background: var(--gray-50); }
.table--empty {
    text-align: center;
    color: var(--gray-500);
    padding: 40px;
}

/* ─── Голосование ─────────────────────────────────────────── */
.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.vote-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: all .2s ease;
    cursor: pointer;
    position: relative;
}
.vote-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.vote-card.is-selected {
    border-color: var(--accent);
    background: linear-gradient(180deg, #FFF6F7 0%, #FFFFFF 60%);
    box-shadow: var(--shadow-red);
}
.vote-card.is-selected::after {
    content: '✓ Ваш голос';
    position: absolute;
    top: 12px; right: 12px;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
}
.vote-card__photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
    background: var(--gray-100) center/cover no-repeat;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
}
.vote-card__name { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.vote-card__model { color: var(--gray-700); font-size: 14px; margin-bottom: 4px; }
.vote-card__plate {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 13px;
    color: var(--gray-700);
    margin-bottom: 14px;
}
.vote-card form { margin: 0; }
.vote-card.is-disabled {
    opacity: .55;
    cursor: not-allowed;
    background: var(--gray-50);
}
.vote-card.is-disabled:hover {
    border-color: var(--gray-200);
    transform: none;
    box-shadow: none;
}
.vote-card.is-disabled::after {
    content: 'Ваш автомобиль';
    position: absolute;
    top: 12px; right: 12px;
    background: var(--gray-300);
    color: var(--gray-700);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
}

/* ─── Правила и согласия ──────────────────────────────────── */
.rules-box {
    max-height: 320px;
    overflow-y: auto;
    padding: 20px 24px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--gray-700);
    -webkit-overflow-scrolling: touch;
}
.rules-box::-webkit-scrollbar { width: 8px; }
.rules-box::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}
.rules-box h4 {
    color: var(--black);
    font-size: 15px;
    margin: 0 0 12px;
}
.rules-box__h {
    color: var(--black);
    font-weight: 700;
    margin: 18px 0 8px !important;
    font-size: 14px;
}
.rules-box p {
    margin: 0 0 6px;
}
.rules-box p strong { color: var(--black); }
.rules-box__sub {
    padding-left: 18px !important;
    color: var(--gray-700);
}

.consents { margin-top: 16px; }
.consent {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .15s ease;
}
.consent:hover { border-color: var(--gray-300); background: var(--white); }
.consent:has(.consent__input:checked) {
    background: #FFF6F7;
    border-color: var(--accent);
}
.consent__input {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--accent);
    cursor: pointer;
}
.consent__text {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--gray-700);
}
.consent:has(.consent__input:checked) .consent__text { color: var(--text); }
.consent__text strong { color: var(--black); }

/* ─── Утилиты ──────────────────────────────────────────────── */
.text-muted { color: var(--gray-500); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 36px; }

.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 24px 0;
}

/* Прогресс-бар для суммы чеков */
.progress {
    height: 10px;
    background: var(--gray-100);
    border-radius: 100px;
    overflow: hidden;
    margin: 8px 0;
}
.progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--porsche-red-light));
    border-radius: 100px;
    transition: width .4s ease;
}

/* Stat cards (для админки и кабинета) */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
}
.stat-card__label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}
.stat-card__value {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
}
.stat-card__sub {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Скролл reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════
   МОБИЛЬНАЯ АДАПТАЦИЯ — финальные правки для маленьких экранов
   ════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .container { padding: 0 20px; }
}

@media (max-width: 768px) {
    body { font-size: 15px; }

    h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
    h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); }

    /* Header — компактнее. CTA-кнопки скрыты выше (есть в hero). */
    .site-header__inner { height: 60px; }
    .site-header__logo img { height: 18px; }

    /* Секции — меньше отступы */
    .section { padding: 60px 0; }
    .section__head { margin-bottom: 36px; }
    .hero { padding: 50px 0 50px; }
    .hero__lead { font-size: 16px; margin-bottom: 24px; }
    .hero__dates { margin-top: 36px; gap: 12px; }
    .hero__date { padding: 16px 18px; }
    .hero__date strong { font-size: 18px; }

    .hero__cta { gap: 8px; }
    .hero__cta .btn--large { padding: 12px 20px; font-size: 15px; }

    /* Кнопки в целом */
    .btn--large { padding: 12px 22px; font-size: 15px; }

    /* Панели */
    .panel { padding: 20px; border-radius: 10px; }
    .panel__head { gap: 10px; }
    .panel__head h2, .panel__head h3 { font-size: 18px; }

    /* Формы */
    .form { max-width: 100%; }
    .form__input,
    .form__textarea,
    .form__select { padding: 12px 14px; font-size: 16px; /* iOS — не зумит при focus */ }
    .phone-input input { padding: 12px 14px; font-size: 16px; }
    .phone-input select { font-size: 13px; padding: 0 8px; }

    /* Прайз-карты */
    .prize { padding: 32px 24px 28px; }
    .prize__place { font-size: 72px; }
    .prize--first .prize__place { font-size: 88px; }
    .prize__title { font-size: 19px; }

    /* Шаги */
    .step { padding: 24px; }

    /* CTA */
    .cta { padding: 60px 0; }

    /* Footer */
    .site-footer { padding: 40px 0 24px; }
    .site-footer__inner { gap: 24px; }
    .site-footer__bottom { font-size: 12px; }

    /* Голосование */
    .vote-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
    .vote-card { padding: 18px; }
    .vote-card__name { font-size: 16px; }

    /* Stat cards */
    .stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
    .stat-card { padding: 16px; }
    .stat-card__value { font-size: 22px; }

    /* Согласие */
    .rules-box { padding: 16px 18px; max-height: 280px; font-size: 13px; }
    .consent { padding: 10px 12px; }
    .consent__text { font-size: 13px; }

    /* Таблицы — горизонтальный скролл вместо ломки */
    .panel > .table,
    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    /* Hero */
    .hero__eyebrow { font-size: 11px; padding: 5px 11px; }
    .hero__dates { grid-template-columns: 1fr; }

    /* CTA-кнопки в одну колонку */
    .hero__cta .btn { width: 100%; justify-content: center; }

    /* Призовые карточки максимально компактны */
    .prize--first .prize__place { font-size: 76px; }
    .prize__place { font-size: 64px; }

    /* Stat cards в 2 колонки */
    .stats { grid-template-columns: 1fr 1fr; }

    /* Голосование — карточки на всю ширину */
    .vote-grid { grid-template-columns: 1fr; }
}

/* ─── Блок цитаты (Гаухар) ─────────────────────────────────── */
.quote-section {
    padding: 60px 0;
    position: relative;     /* для absolute-я 911 справа */
    overflow-x: clip;        /* 911 не вылезает за правый край viewport */
    overflow-y: visible;     /* но может выходить в gap перед призами */
}
.quote-block {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;          /* цитата центрирована, как раньше */
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

/* 911 как плавающий элемент справа от цитаты — занимает пустое место в
   правой части экрана, в верстку не вклинивается, расстояние между секциями
   остаётся прежним. */
.quote-car-float {
    position: absolute;
    /* Сразу за правым краем 900-пиксельной цитаты (gap 8px) */
    left: calc(50% + 458px);
    top: 100%;
    transform: translateY(-55%);
    /* Карточка квадратная, чем больше пустого места справа — тем крупнее. */
    width: min(720px, calc(50vw - 470px));
    aspect-ratio: 1 / 1;
    z-index: 2;
}
.quote-car-float model-viewer {
    width: 100%;
    height: 100%;
    background: transparent;
    --poster-color: transparent;
}
/* Прогресс-бар у 911 НЕ прячем — пусть посетитель видит загрузку модели. */
.quote-car-poster {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--gray-100) 100%);
    color: var(--gray-500);
    font-size: 13px;
}
.quote-car-poster__spinner {
    width: 28px; height: 28px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* Планшеты и узкие десктопы: справа места нет, 911 в плавающей позиции
   был бы мелким → прячем. */
@media (max-width: 1380px) and (min-width: 600px) {
    .quote-car-float { display: none; }
}
/* Телефоны: 911 показываем под цитатой в обычном потоке.
   Cayenne (в hero) уже скрывается своим @media min-width:900 — для phone'ов
   её всё равно нет, а 911 на мобиле остаётся как просили. */
@media (max-width: 599px) {
    .quote-car-float {
        position: static;
        transform: none;
        width: 100%;
        max-width: 460px;
        aspect-ratio: 4 / 3;
        margin: 28px auto 0;
        left: auto;
    }
}
.quote-block__photo {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--gray-100);
}
.quote-block__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.quote-block__photo::after {
    content: '';
    position: absolute;
    inset: auto -2px -2px auto;
    width: 50%; height: 6px;
    background: var(--accent);
}
.quote-block__text {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    border-left: 2px solid var(--accent);
    padding-left: 16px;
}
.quote-block__text p { margin: 0 0 10px; }
.quote-block__text p:last-child { margin-bottom: 0; }
.quote-block__author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-100);
}
.quote-block__author strong { font-size: 14px; color: var(--text); }
.quote-block__author span { color: var(--gray-500); font-size: 13px; }
@media (max-width: 768px) {
    .quote-block { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
    .quote-block__photo { max-width: 200px; margin: 0 auto; }
    .quote-block__text { font-size: 14px; padding-left: 14px; }
}

/* ─── Высокий фото-баннер (для блока «Почему это важно») ───── */
.photo-band--tall { height: clamp(520px, 70vh, 720px); }
.photo-band--tall .photo-band__inner { max-width: 720px; }
.photo-band--tall .photo-band__lead { font-size: 17px; line-height: 1.6; }

/* ─── Приз зрительских симпатий (SoMe) ─────────────────────── */
.community-prize { background: var(--gray-50); }
.community-prize__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
}
.community-prize__copy h2 { margin-bottom: 18px; }
.community-prize__copy p { color: var(--gray-700); line-height: 1.6; margin: 12px 0; }
.dot-list { list-style: none; padding: 0; margin: 14px 0 18px; }
.dot-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    line-height: 1.55;
    color: var(--gray-700);
}
.dot-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
}
.tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--gray-100);
    color: var(--text);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin: 0 2px;
}
.ig-tag {
    display: inline-block;
    padding: 1px 10px;
    background: var(--white);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.ig-tag:hover { background: var(--accent); color: var(--white); }
.callout {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--gray-200);
    line-height: 1.55;
    color: var(--text);
}
.callout--accent {
    border-left: 3px solid var(--accent);
}
.community-prize__card {
    background: var(--black);
    color: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg, 0 16px 40px rgba(0,0,0,.18));
    text-align: center;
    position: sticky;
    top: 96px;
}
.community-prize__card-rank {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: 5px 12px;
    background: var(--accent);
    border-radius: 100px;
    margin-bottom: 18px;
}
.community-prize__card-icon {
    color: var(--accent);
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
}
.community-prize__photo {
    margin: 0 0 22px;
    background: radial-gradient(120% 90% at 50% 18%, #ffffff 0%, #f3f4f6 55%, #e7e8ea 100%);
    border-radius: 16px;
    padding: 18px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 10px 28px rgba(0,0,0,.35);
}
.community-prize__photo img {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    height: auto;
    filter: drop-shadow(0 14px 22px rgba(0,0,0,.18));
}
.community-prize__card h3 {
    font-size: 24px;
    margin: 0 0 12px;
    line-height: 1.25;
}
.community-prize__card p {
    color: var(--gray-300);
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}
@media (max-width: 860px) {
    .community-prize__grid { grid-template-columns: 1fr; gap: 28px; }
    .community-prize__card { position: static; }
}

/* ─── Финальный event-band (Porsche Classic Community Event) ── */
.event-band {
    position: relative;
    color: var(--white);
    overflow: hidden;
    padding: 110px 0;
}
.event-band__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.event-band__bg img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.event-band__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
        rgba(10,10,10,.92) 0%,
        rgba(10,10,10,.78) 45%,
        rgba(10,10,10,.4)  100%);
    z-index: 1;
}
.event-band__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 56px;
    align-items: start;
}
.event-band__date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    padding: 24px 0;
    border-left: 3px solid var(--accent);
    padding-left: 24px;
}
.event-band__date span {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--gray-300);
}
.event-band__date strong {
    font-size: 72px;
    margin-top: 8px;
    color: var(--white);
    font-weight: 700;
}
.event-band__copy h2 {
    color: var(--white);
    margin: 10px 0 18px;
}
.event-band__copy p {
    color: var(--gray-300);
    font-size: 17px;
    line-height: 1.65;
    margin: 0 0 16px;
    max-width: 720px;
}
.event-band__list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 28px;
    max-width: 720px;
}
.event-band__list li {
    position: relative;
    padding-left: 22px;
    color: var(--white);
    line-height: 1.45;
}
.event-band__list li::before {
    content: '';
    position: absolute;
    left: 0; top: 9px;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
}
.section__eyebrow--light {
    color: var(--gray-300);
}
.section__eyebrow--light::before { background: var(--accent); }
@media (max-width: 860px) {
    .event-band { padding: 70px 0; }
    .event-band__inner { grid-template-columns: 1fr; gap: 24px; }
    .event-band__date { padding-left: 18px; }
    .event-band__date strong { font-size: 56px; }
    .event-band__list { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   ГАЛЕРЕЯ УЧАСТНИКОВ — карусель на главной
   ════════════════════════════════════════════════════════════ */
.gallery-section { padding-bottom: 70px; }

/* ─── Шапка блока участников + яркий счётчик ─── */
.participants-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 40px;
}
.participants-head__title {
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    margin: 0 0 22px;
}
.participants-head__lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

/* ─── Одометр участников: крупные красные цифры-барабаны ─── */
.odo-counter {
    margin: 0 0 26px;
}
.odo-counter__top {
    display: block;
    text-transform: uppercase;
    letter-spacing: .26em;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.odo-counter__bottom {
    display: block;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: clamp(1rem, 2.4vw, 1.45rem);
    font-weight: 700;
    color: var(--text);
    margin-top: 10px;
}
/* Значение: крупное число (фолбэк без JS + контейнер для барабанов) */
.odo-counter__value {
    font-size: clamp(3.4rem, 13vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--porsche-red);
    font-variant-numeric: tabular-nums;
}
/* Сам одометр (создаётся из JS внутри .odo-counter__value) */
.odo {
    display: inline-flex;
    align-items: stretch;
    gap: .015em;
    line-height: 1;
}
.odo__digit {
    height: 1em;
    overflow: hidden;
}
.odo__reel {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    will-change: transform;
}
.odo__reel span {
    height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (prefers-reduced-motion: reduce) {
    .odo__reel { transition: none !important; }
}

.gallery {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Лента карточек: горизонтальный скролл + snap. Свайп на телефоне нативный. */
.gallery__track {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.gallery__track::-webkit-scrollbar { display: none; }

/* Когда карточки помещаются целиком — центрируем и не скроллим. */
.gallery:not(.is-scrollable) .gallery__track {
    justify-content: center;
    overflow-x: hidden;
}

/* По умолчанию 3 карточки в видимой области (2 разрыва по 24px). */
.gallery__card {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gallery__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.gallery__img {
    /* Фото участников вертикальные (900×1200, 3:4) — карточка повторяет
       это соотношение, чтобы кадр не обрезался и машина внизу была видна. */
    aspect-ratio: 3 / 4;
    background: var(--gray-100);
    overflow: hidden;
}
.gallery__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery__caption {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gallery__model {
    font-size: 1.1rem;
    line-height: 1.3;
}
.gallery__year {
    color: var(--text-muted);
    font-size: 14px;
}

/* Стрелки навигации. Видны только когда есть что скроллить (is-scrollable). */
.gallery__nav {
    flex: 0 0 auto;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--black);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background .2s ease, color .2s ease, opacity .2s ease, border-color .2s ease;
}
.gallery.is-scrollable .gallery__nav { display: flex; }
.gallery__nav:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.gallery__nav:disabled { opacity: .35; cursor: default; }
.gallery__nav:disabled:hover { background: var(--white); color: var(--black); border-color: var(--gray-200); }

/* Точки-индикаторы. */
.gallery__dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}
.gallery.is-scrollable + .container .gallery__dots,
.gallery.is-scrollable ~ .container .gallery__dots { display: flex; }
.gallery__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--gray-300);
    cursor: pointer;
    transition: background .2s ease, width .2s ease;
}
.gallery__dot.is-active {
    background: var(--accent);
    width: 22px;
    border-radius: 4px;
}

/* ─── Планшет: 2 карточки ─── */
@media (max-width: 980px) {
    .gallery__card { flex-basis: calc((100% - 24px) / 2); }
}

/* ─── Телефон: 1 карточка с подглядыванием следующей, стрелки прячем ─── */
@media (max-width: 640px) {
    .gallery { gap: 0; }
    .gallery.is-scrollable .gallery__nav { display: none; }
    .gallery__track { gap: 16px; }
    .gallery__card { flex-basis: 84%; }
    .gallery:not(.is-scrollable) .gallery__card { flex-basis: 100%; }
}

/* ════════════════════════════════════════════════════════════
   ГАЛЕРЕЯ — сетка в админке
   ════════════════════════════════════════════════════════════ */
.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
.gallery-admin-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    display: flex;
    flex-direction: column;
}
.gallery-admin-card.is-hidden { opacity: .6; }
.gallery-admin-card__img {
    position: relative;
    aspect-ratio: 3 / 4;
    background: var(--gray-100);
}
.gallery-admin-card__img img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.gallery-admin-card__badge {
    position: absolute;
    top: 8px; left: 8px;
    background: rgba(14,14,16,.78);
    color: var(--white);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
}
.gallery-admin-card__body {
    padding: 12px 14px 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gallery-admin-card__body strong { font-size: 14px; line-height: 1.3; }
.gallery-admin-card__body .text-muted { font-size: 13px; }
.gallery-admin-card__actions {
    margin-top: auto;
    padding: 10px 14px 14px;
    display: flex;
    gap: 8px;
}

/* Квадратные кнопки-иконки (действия карточки галереи) */
.icon-btn {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.icon-btn:hover {
    background: var(--gray-50);
    color: var(--black);
    border-color: var(--gray-300);
}
.icon-btn--danger:hover {
    background: var(--porsche-red);
    color: var(--white);
    border-color: var(--porsche-red);
}

/* Галерея в админке — drag-and-drop сортировка */
.gallery-admin-card { position: relative; cursor: grab; }
.gallery-admin-card:active { cursor: grabbing; }
.gallery-admin-card.is-dragging { opacity: .45; outline: 2px dashed var(--porsche-red); outline-offset: -2px; }
.gallery-admin-card__drag {
    position: absolute;
    top: 6px; right: 8px;
    z-index: 2;
    color: var(--white);
    font-size: 16px;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
    letter-spacing: 1px;
    pointer-events: none;
}
/* Кнопки внутри карточки не должны таскаться — клики работают как обычно. */
.gallery-admin-card__actions button { cursor: pointer; }

/* ─── Просмотр фото галереи крупно (lightbox) ─── */
.gallery__img { cursor: zoom-in; }

.no-scroll { overflow: hidden; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(14, 14, 16, .92);
    cursor: zoom-out;
    opacity: 0;
    transition: opacity .2s ease;
}
.lightbox.is-open { display: flex; opacity: 1; }

.lightbox__figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.lightbox__img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    cursor: default;
}
.lightbox__cap {
    color: var(--white);
    font-size: 15px;
    letter-spacing: .02em;
    text-align: center;
}
.lightbox__close {
    position: absolute;
    top: 18px; right: 22px;
    width: 44px; height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: var(--white);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .25); }

@media (max-width: 640px) {
    .lightbox { padding: 16px; }
    .lightbox__close { top: 10px; right: 12px; }
}
