/* ============================================================================
   sections.css — стили по секциям. Mobile-first: базовое = телефон,
   @media (min-width) расширяют вверх. Pinned-блоки на мобильном деградируют.
   ============================================================================ */

/* ─── ПРЕЛОАДЕР ─────────────────────────────────────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: var(--z-preloader);
  background: var(--bg); display: grid; place-items: center;
  transition: opacity var(--dur-slow) var(--ease-out);
}
.preloader__inner { display: grid; justify-items: center; gap: var(--space-5); width: min(80vw, 320px); }
.preloader__logo { width: 96px; height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.5)); }
.preloader__bar { width: 100%; height: 8px; border-radius: 999px; overflow: hidden; background: var(--bg-3); }
.preloader__bar-fill { display: block; height: 100%; width: 0; background: var(--zebra-orange); background-size: 28px 28px; transition: width .2s linear; }
.preloader__pct { font-size: var(--fs-sm); color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* ─── HEADER ────────────────────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-sticky);
  background: rgba(14,17,22,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur);
}
.header.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.header__row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.header__logo { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-head); font-weight: 800; letter-spacing: -.01em; }
.header__logo img { height: 36px; width: auto; } /* эмблема ~квадрат, без искажения */
.header__actions { display: flex; align-items: center; gap: var(--space-4); }
.header__phone { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.header__cta { min-height: 44px; padding-inline: var(--space-4); }
@media (max-width: 600px) { .header__phone, .header__logo span { display: none; } }
/* MOBILE: верхняя шапка и плавающая Telegram-кнопка не нужны — снизу есть sticky-бар
   (Позвонить · Telegram · Рассчитать). Убираем дублирование. */
@media (max-width: 768px) {
  .header:not(.header--static) { display: none !important; } /* sticky-шапку index прячем; team (static) оставляем — там нет нижнего бара */
}

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero { position: relative; }
.hero__sticky { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero__poster, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__canvas { z-index: 1; }                 /* canvas поверх постера; на mobile JS прячет canvas → виден постер */
/* двойной scrim: вертикальный (низ темнее) + лёгкий слева — текст читается над любым кадром */
.hero__scrim { position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(14,17,22,.5) 0%, rgba(14,17,22,.32) 26%, rgba(14,17,22,.6) 62%, rgba(14,17,22,.94) 100%),
    linear-gradient(90deg, rgba(14,17,22,.45) 0%, rgba(14,17,22,0) 60%);
}
/* надзаголовок в hero — поверх фото делаем светлым (muted-серый тонет на светлом небе) */
.hero .eyebrow { color: rgba(255,255,255,.9); }
/* контент центрируем по вертикали (не прибиваем к низу — иначе CTA уезжают под cookie) */
.hero__content { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(72px, 10vh, 130px); }
.hero__h1 { max-width: 20ch; margin-top: var(--space-3); text-shadow: 0 2px 20px rgba(0,0,0,.5); }
.hero__sub { max-width: 50ch; margin-top: var(--space-3); color: #D7DBE2; }
.hero__bullets { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-4); }
.hero__bullets li { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); font-weight: 500; }
.hero__bullets .icon { width: 20px; height: 20px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
/* На низких вьюпортах (альбомный телефон) прячем второстепенное, чтобы оффер+CTA влезли */
@media (max-height: 680px) { .hero__bullets { display: none; } .hero__scrollhint { display: none; } }
.hero__callback {
  position: absolute; z-index: 4; top: calc(var(--space-4) + env(safe-area-inset-top)); right: var(--gutter);
  padding: var(--space-2) var(--space-4); border-radius: 999px; font-size: var(--fs-sm); font-weight: 600;
  border: 1px solid var(--line); background: rgba(14,17,22,.6); backdrop-filter: blur(8px); color: var(--ink);
}
.hero__scrollhint { position: absolute; z-index: 3; bottom: var(--space-4); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--ink-muted); }
.hero__scrollhint .icon { width: 18px; height: 18px; animation: bob 1.8s var(--ease-out) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero__scrollhint .icon { animation: none; } }
@media (max-width: 600px) { .hero__callback { display: none; } } /* на mobile есть sticky-бар */

/* ─── ПОЛЯ ФОРМ (общие) ─────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; position: relative; }
.field__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-muted); }
.field input:not([type="checkbox"]):not([type="radio"]), .field textarea {
  width: 100%; min-height: 48px; padding: var(--space-3) var(--space-4);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  color: var(--ink); font: inherit; transition: border-color var(--dur);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--action); box-shadow: var(--ring); }
.field textarea { resize: vertical; }
.field__error { font-size: var(--fs-xs); color: var(--brand-red-hi); min-height: 1em; }
.field--error input, .field--error textarea { border-color: var(--brand-red); }
.field--check { grid-auto-flow: column; grid-template-columns: auto 1fr; align-items: start; gap: var(--space-3); }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--action); flex: none; }
.field--check .field__error { grid-column: 1 / -1; }
.field--radio { gap: var(--space-3); }
.field--radio { display: flex; flex-wrap: wrap; align-items: center; }
.radio { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.radio input { accent-color: var(--action); width: 18px; height: 18px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* honeypot */
.form__error { color: var(--brand-red-hi); font-size: var(--fs-sm); }
.link { color: var(--action-hi); text-decoration: underline; }
.thanks { display: grid; justify-items: center; gap: var(--space-3); text-align: center; padding: var(--space-6) 0; }

/* ─── КВИЗ ──────────────────────────────────────────────────────────────── */
.section-head { margin-bottom: var(--space-7); }
.quiz { max-width: 760px; margin-inline: auto; margin-top: var(--space-7); }
.quiz__bar { height: 6px; border-radius: 999px; background: var(--bg); overflow: hidden; margin-bottom: var(--space-3); }
.quiz__bar-fill { display: block; height: 100%; width: 20%; background: var(--zebra-orange); background-size: 24px 24px; transition: width var(--dur) var(--ease-out); }
.quiz__counter { font-size: var(--fs-sm); margin-bottom: var(--space-5); }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: stepIn var(--dur-slow) var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .quiz__step.is-active { animation: none; } }
.quiz__step h3 { margin-bottom: var(--space-5); }
.quiz__choices { display: grid; gap: var(--space-3); }
.quiz__choice {
  text-align: left; padding: var(--space-4) var(--space-5); min-height: 56px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--bg); font-weight: 600; color: var(--ink);
  transition: border-color var(--dur), background var(--dur), transform var(--dur-fast);
}
.quiz__choice:hover { border-color: var(--action); }
.quiz__choice.is-selected { border-color: var(--action); background: rgba(223,112,56,.1); }
.quiz__choice:active { transform: scale(.99); }
.quiz__grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(2, 1fr); }
.quiz__grid--2 { grid-template-columns: 1fr; }
.quiz__hint { margin-top: var(--space-3); font-size: var(--fs-sm); }
.quiz__nav { display: flex; gap: var(--space-3); margin-top: var(--space-6); }
.quiz__nav .btn--primary { margin-left: auto; }
.quiz__micro { font-size: var(--fs-xs); margin-top: var(--space-3); text-align: center; }
@media (min-width: 600px) { .quiz__grid--2 { grid-template-columns: 1fr 1fr; } .quiz__choices { grid-template-columns: 1fr 1fr; } }

/* ─── ЦИФРЫ ─────────────────────────────────────────────────────────────── */
.stats { background: var(--bg-2); border-block: 1px solid var(--line); }
.stats__grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr 1fr; text-align: center; }
.stat__num { display: block; font-family: var(--font-head); font-weight: 900; font-size: var(--fs-counter); color: var(--action); line-height: 1; letter-spacing: -.03em; }
.stat__num--text { font-size: clamp(1.6rem, 3vw, 2.4rem); } /* текстовые «цифры» (география) — меньше числовых */
.stat__label { display: block; margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--ink-muted); }
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(3, 1fr); } }

/* ─── JTBD ──────────────────────────────────────────────────────────────── */
.jtbd-card {
  text-align: left; display: grid; gap: var(--space-3); align-content: start;
  padding: var(--space-6); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); min-height: 180px;
  transition: border-color var(--dur), transform var(--dur), background var(--dur);
}
.jtbd-card:hover { border-color: var(--action); transform: translateY(-4px); }
.jtbd-card h3 { font-size: 1.15rem; }
.jtbd-card .icon { width: 30px; height: 30px; }
.jtbd-card__go { color: var(--action-hi); font-weight: 700; font-family: var(--font-head); }

/* ─── КТГ ───────────────────────────────────────────────────────────────── */
.ktg__row { display: grid; gap: var(--space-7); align-items: center; }
.ktg__text { display: grid; gap: var(--space-4); align-content: start; }
.ktg__text .badge { width: fit-content; }
.artefact { margin: 0; }
.artefact__placeholder {
  aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: var(--space-3);
  border-radius: var(--radius); border: 1.5px dashed var(--line); color: var(--ink-muted);
  background: var(--zebra-dark); background-size: 28px 28px; text-align: center; padding: var(--space-5);
}
.artefact img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.artefact figcaption { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--ink-muted); }
@media (min-width: 900px) { .ktg__row { grid-template-columns: 1.1fr .9fr; } }

/* ─── АВТОПАРК (свайп-лента) ─────────────────────────────────────────────── */
.autopark__track {
  display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--space-5) var(--gutter) var(--space-6); margin-top: var(--space-6);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.autopark__item { flex: 0 0 82%; max-width: 460px; scroll-snap-align: center; margin: 0; }
.autopark__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.autopark__item figcaption { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--ink-muted); }
@media (min-width: 768px) { .autopark__item { flex-basis: 42%; } }
@media (min-width: 1100px) { .autopark__item { flex-basis: 30%; } }

/* ─── ЭТАПЫ (sticky scrollytelling — БЕЗ GSAP-pin) ───────────────────────────
   Раньше был GSAP pin: на десктопе pin-spacer считался криво, секция налезала на
   «Автопарк» и блокировала его скролл. Теперь правая колонка липнет нативным
   position:sticky, активный шаг переключает IntersectionObserver. Без overlay-багов. */
.process { background: var(--bg-2); border-block: 1px solid var(--line); padding-block: var(--section-pad); }
.process__inner { display: grid; gap: var(--space-7); width: 100%; }
.process__left { display: grid; gap: var(--space-5); }
.process__steps { display: grid; gap: var(--space-4); }
.process__step { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; padding: var(--space-3) 0; border-top: 1px solid var(--line-soft); }
.process__n { font-family: var(--font-head); font-weight: 800; color: var(--ink-dim); font-size: 1.1rem; }
.process__step h3 { font-size: 1.1rem; }
.process__right { display: none; }
@media (min-width: 900px) {
  .process__inner { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--space-8); }
  .process__steps { gap: clamp(28px, 7vh, 72px); } /* шаги разнесены — артефакт держится дольше на шаг */
  /* правая колонка липнет, пока листаешь шаги слева */
  .process__right { display: block; position: sticky; top: calc(var(--header-h) + 28px); align-self: start; height: min(70vh, 580px); }
  .process__step { opacity: .45; transition: opacity var(--dur); }
  .process__step.is-active { opacity: 1; }
  .process__step.is-active .process__n { color: var(--action); }
  /* артефакты крест-накрест: активный — поверх */
  .process__art { position: absolute; inset: 0; opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
  .process__art.is-active { opacity: 1; }
  .process__art img { height: 100%; width: 100%; object-fit: cover; aspect-ratio: auto; }
  .process__art .artefact__placeholder { height: 100%; aspect-ratio: auto; }
  .process__dots { position: absolute; right: -28px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
  .process__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
  .process__dot.is-active { background: var(--action); }
}
/* mobile: артефакты скрыты — чистый вертикальный список шагов */
@media (max-width: 899px) { .process__dots { display: none; } }

/* ─── СОХРАННОСТЬ (видео) ───────────────────────────────────────────────── */
.safety__video { margin: var(--space-7) 0 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.safety__video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-2); display: block; }

/* ─── ЦЕНА ──────────────────────────────────────────────────────────────── */
.price .container { display: grid; gap: var(--space-8); }
.checklist { display: grid; gap: var(--space-3); margin: var(--space-5) 0; }
.checklist li { display: flex; align-items: center; gap: var(--space-3); font-weight: 500; }
.checklist .icon { width: 22px; height: 22px; }
.compare { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-bottom: var(--space-5); }
.compare th, .compare td { padding: var(--space-3) var(--space-3); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-head); font-size: var(--fs-body); }
.compare__us { background: rgba(223,112,56,.08); color: var(--ink); font-weight: 600; border-left: 2px solid var(--action); }
.compare td:last-child { color: var(--ink-muted); }
@media (min-width: 960px) { .price .container { grid-template-columns: 1fr 1.2fr; align-items: start; gap: var(--space-8); } }

/* ─── ЛОГИСТ ────────────────────────────────────────────────────────────── */
.logist__row { display: grid; gap: var(--space-7); align-items: center; }
.logist__card { display: grid; gap: var(--space-5); }
.logist__row-item { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start; }
.logist__row-item .icon { width: 28px; height: 28px; }
.logist__phone { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--action); }
@media (min-width: 900px) { .logist__row { grid-template-columns: 1fr 1fr; } }

/* ─── КЕЙСЫ ─────────────────────────────────────────────────────────────── */
.cases__filter { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.cases__filter button { padding: var(--space-2) var(--space-4); border-radius: 999px; border: 1px solid var(--line); color: var(--ink-muted); font-weight: 600; font-size: var(--fs-sm); transition: all var(--dur); }
.cases__filter button:hover { border-color: var(--action); color: var(--ink); }
.cases__filter button.is-active { background: var(--action); color: var(--cta-ink); border-color: var(--action); }
.cases__grid { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
.case-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.case-card__body { padding: var(--space-5); display: grid; gap: var(--space-2); }
.case-card__route { display: flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: var(--fs-sm); }
.case-card__route .icon { color: var(--action); }
.case-card__dims { font-family: var(--font-head); font-weight: 700; color: var(--action); font-variant-numeric: tabular-nums; }
.cases__note { margin-top: var(--space-6); }
@media (min-width: 700px) { .cases__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .cases__grid { grid-template-columns: repeat(3, 1fr); } }

/* ─── ГАРАНТИИ ──────────────────────────────────────────────────────────── */
.guarantee { display: grid; gap: var(--space-3); padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.guarantee .icon { width: 32px; height: 32px; }
.guarantee h3 { font-size: 1.05rem; }
.legal-block { margin-top: var(--space-6); display: grid; gap: var(--space-2); }

/* ─── FAQ ───────────────────────────────────────────────────────────────── */
.faq__container { max-width: 820px; }
.faq__list { display: grid; gap: var(--space-3); }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-5); text-align: left; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.faq__icon { position: relative; width: 20px; height: 20px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--action); border-radius: 2px; }
.faq__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq__icon::after { left: 9px; top: 0; width: 2px; height: 20px; transition: transform var(--dur) var(--ease-out); }
.faq__item.is-open .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-out); }
.faq__a p { padding: 0 var(--space-5) var(--space-5); color: var(--ink-muted); }

/* ─── ЛИД-МАГНИТ ────────────────────────────────────────────────────────── */
.leadmagnet__card { display: grid; gap: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 48px); position: relative; overflow: hidden; }
.leadmagnet__card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--zebra-orange); background-size: 22px 22px; }
.leadmagnet__form { display: grid; gap: var(--space-4); }
@media (min-width: 880px) { .leadmagnet__card { grid-template-columns: 1.2fr 1fr; align-items: center; gap: var(--space-8); } }

/* ─── ФИНАЛ ─────────────────────────────────────────────────────────────── */
.final { background: var(--bg-2); border-top: 1px solid var(--line); }
.final__row { display: grid; gap: var(--space-7); align-items: start; }
.final__h2 { font-size: var(--fs-h2); }
.final__contacts { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.final__contacts li { display: flex; align-items: center; gap: var(--space-3); }
.final__contacts a { font-weight: 600; }
.final__form { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .final__row { grid-template-columns: 1fr 1fr; } }

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
.footer { padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.footer__row { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: center; font-size: var(--fs-sm); }


/* ─── СТРАНИЦА «НАША КОМАНДА» ────────────────────────────────────────────── */
.header--static { position: static; transform: none; opacity: 1; pointer-events: auto; }
.team-page { padding-top: var(--space-7); }
.team-hero__h1 { font-size: var(--fs-h1); text-transform: uppercase; max-width: 18ch; margin-bottom: var(--space-4); }
.team-member { margin: 0; display: grid; gap: var(--space-3); }
.team-member__photo { aspect-ratio: 1 / 1; }
.team-member figcaption { display: grid; gap: 2px; }
.team-gallery__item { aspect-ratio: 4 / 3; }
.vacancy { display: grid; gap: var(--space-2); align-content: start; }
.vacancies__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; margin-top: var(--gutter); }

/* ─── БЕЙДЖ «50+ автомобилей» / подпись видео / контакты вакансий ────────── */
.autopark__count { margin-top: var(--space-4); }
.video-strip__cap { margin-top: var(--space-5); font-size: var(--fs-sm); }
.vacancies__contacts { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ─── СТРЕЛКИ КАРУСЕЛЕЙ (◀ ▶) ────────────────────────────────────────────── */
.carousel { position: relative; }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(14,17,22,.72); color: var(--ink); border: 1px solid var(--line);
  backdrop-filter: blur(6px); font-size: 26px; line-height: 1; font-family: var(--font-head);
  box-shadow: var(--shadow); transition: background var(--dur), opacity var(--dur), transform var(--dur-fast);
}
.carousel__arrow:hover { background: var(--action); color: var(--cta-ink); border-color: var(--action); }
.carousel__arrow:active { transform: translateY(-50%) scale(.94); }
.carousel__arrow--prev { left: 10px; }
.carousel__arrow--next { right: 10px; }
.carousel__arrow.is-hidden { opacity: 0; pointer-events: none; }   /* у края ленты */
.carousel__arrow.is-off { display: none; }                         /* всё влезло — стрелки не нужны */
@media (min-width: 1024px) { .carousel__arrow--prev { left: 18px; } .carousel__arrow--next { right: 18px; } }

/* ─── ГАЛЕРЕЯ «Больше фото» — ГОРИЗОНТАЛЬНАЯ ЛЕНТА (не портянка вниз) ─────── */
.gallery {
  display: flex; gap: var(--space-3); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--space-6) 0 var(--space-3); margin-top: 0;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.gallery__item { flex: 0 0 72%; max-width: 360px; scroll-snap-align: center; margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--dur) var(--ease-out); }
.gallery__item:hover img { transform: scale(1.04); }
@media (min-width: 640px)  { .gallery__item { flex-basis: 40%; } }
@media (min-width: 1024px) { .gallery__item { flex-basis: 24%; } }

/* кликабельное медиа (лайтбокс) */
.lb-clickable { cursor: pointer; }

/* ─── ЛАЙТБОКС (полноэкранный просмотр) ──────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 1100; display: none;
  background: rgba(6,8,12,.94); place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}
.lightbox.is-open { display: grid; animation: fadeIn var(--dur) var(--ease-out); }
.lightbox__stage { max-width: 92vw; max-height: 86vh; display: grid; place-items: center; }
.lightbox__stage img, .lightbox__stage video {
  max-width: 92vw; max-height: 86vh; width: auto; height: auto;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #000;
}
/* КРЕСТИК — фикс сверху-справа, крупный, всегда виден (в т.ч. на мобильном с safe-area) */
.lightbox__close {
  position: fixed; z-index: 1102;
  top: calc(env(safe-area-inset-top) + 10px); right: calc(env(safe-area-inset-right) + 12px);
  width: 52px; height: 52px; border-radius: 50%; font-size: 34px; line-height: 1; color: #fff;
  background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px);
  display: grid; place-items: center;
}
.lightbox__close:hover { background: var(--brand-red); border-color: var(--brand-red); }
/* стрелки листания */
.lightbox__nav {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 1101;
  width: 54px; height: 54px; border-radius: 50%; font-size: 34px; line-height: 1; color: #fff;
  background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center;
  backdrop-filter: blur(6px); transition: background var(--dur);
}
.lightbox__nav:hover { background: var(--action); color: var(--cta-ink); }
.lightbox__prev { left: calc(env(safe-area-inset-left) + 10px); }
.lightbox__next { right: calc(env(safe-area-inset-right) + 10px); }
.lightbox__counter { position: fixed; bottom: calc(env(safe-area-inset-bottom) + 12px); left: 50%; transform: translateX(-50%); z-index: 1101; color: rgba(255,255,255,.8); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .lightbox__nav { width: 46px; height: 46px; font-size: 28px; bottom: calc(env(safe-area-inset-bottom) + 64px); top: auto; transform: none; }
  .lightbox__prev { left: 16px; } .lightbox__next { right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .lightbox.is-open { animation: none; } }

/* ─── ССЫЛКА В ШАПКЕ (Наша команда) ─────────────────────────────────────── */
.header__nav-link { font-weight: 600; color: var(--ink-muted); white-space: nowrap; transition: color var(--dur); }
.header__nav-link:hover { color: var(--action-hi); }
@media (max-width: 600px) { .header__nav-link { display: none; } }

/* ─── ЛЕНТА ВИДЕО ПЕРЕВОЗОК (свайп) ─────────────────────────────────────── */
.video-strip {
  display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--space-5) 0 var(--space-3); margin-top: var(--space-6);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.video-strip__item { flex: 0 0 86%; max-width: 560px; scroll-snap-align: center; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video-strip__item video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-2); display: block; }
@media (min-width: 768px)  { .video-strip__item { flex-basis: 48%; } }
@media (min-width: 1100px) { .video-strip__item { flex-basis: 32%; } }

/* ─── MOBILE STICKY-БАР ─────────────────────────────────────────────────── */
.mobilebar {
  position: fixed; z-index: var(--z-bar); left: 0; right: 0; bottom: 0; display: none;
  grid-template-columns: 1fr 1fr 1.2fr; gap: 1px;
  background: var(--line); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobilebar a, .mobilebar button { display: grid; justify-items: center; gap: 3px; padding: var(--space-3) 0; min-height: var(--mobilebar-h); background: var(--bg-2); color: var(--ink); font-size: var(--fs-xs); font-weight: 600; }
.mobilebar .icon { width: 22px; height: 22px; }
.mobilebar__cta { background: var(--action) !important; color: var(--cta-ink) !important; }
@media (max-width: 768px) { .mobilebar { display: grid; } }

/* ─── МОДАЛКА ───────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: none; place-items: center; padding: var(--gutter); background: rgba(8,10,14,.7); backdrop-filter: blur(4px); }
.modal.is-open { display: grid; animation: fadeIn var(--dur) var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__box { position: relative; width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 36px); display: grid; gap: var(--space-4); box-shadow: var(--shadow-lg); animation: modalUp var(--dur) var(--ease-out); }
@keyframes modalUp { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; font-size: 28px; line-height: 1; color: var(--ink-muted); border-radius: 50%; }
.modal__close:hover { color: var(--ink); background: var(--bg-3); }
.modal__box form { display: grid; gap: var(--space-4); }
@media (prefers-reduced-motion: reduce) { .modal.is-open, .modal__box { animation: none; } }

/* ─── COOKIE ────────────────────────────────────────────────────────────── */
.cookie { position: fixed; z-index: var(--z-bar); left: var(--gutter); right: var(--gutter); bottom: var(--gutter); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4); background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--fs-sm); box-shadow: var(--shadow); }
.cookie .btn { min-height: 40px; padding-inline: var(--space-4); }
@media (max-width: 768px) { .cookie { bottom: calc(var(--mobilebar-h) + 12px + env(safe-area-inset-bottom)); } }
