/* ============================================================
   ПРО-ГАЗ — style.css
   Mobile-first. Breakpoint: 768px.
   Все значения из design.md токенов.
   ============================================================ */

/* 1. Self-hosted Manrope (variable font, subsets) */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Дизайн-токены */
:root {
  /* Цвета */
  --blue:      #1055a0;
  --blue-dark: #0b3d78;
  --red:       #d42b2b;
  --red-dark:  #b01e1e;
  --bg:        #f4f6fa;
  --surface:   #ffffff;
  --ink:       #1a1f2e;
  --ink-soft:  #5a6478;
  --line:      #dde2ed;
  --ok:        #16a34a;
  --err:       #dc2626;

  /* Типографика */
  --font: 'Manrope', system-ui, -apple-system, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --h3:        1.125rem;
  --h2:        clamp(1.375rem, 3.5vw + 0.5rem, 2rem);
  --h1:        clamp(1.75rem, 5vw + 0.5rem, 2.75rem);

  --leading-body:    1.6;
  --leading-heading: 1.2;

  /* Spacing 4px-сетка */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-12: 48px;
  --sp-16: 64px;

  /* Геометрия */
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 4px rgb(0 0 0 / .08), 0 1px 2px rgb(0 0 0 / .04);
  --shadow-2: 0 8px 24px -6px rgb(0 0 0 / .12);

  --container: 1200px;
}

/* 3. Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--bg);
  /* Предотвращаем горизонтальный overflow */
  overflow-x: clip;
  /* Отступ под sticky CTA bar (мобайл). Сбрасывается на десктопе */
  padding-bottom: 72px;
}

body.no-scroll { overflow: hidden; }

img, video { max-width: 100%; display: block; }

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

button { font: inherit; cursor: pointer; border: none; background: none; }

ul { list-style: none; }

/* 4. Утилиты */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.section {
  padding-block: var(--sp-12);
}

.section--alt {
  background: var(--bg);
}

/* Заголовки секций «Газовые заправки» и «Крупный заказ» — по центру */
#stations .section__header,
#contacts .section__header {
  text-align: center;
  margin-inline: auto;
}

.section__header {
  margin-bottom: var(--sp-8);
}

.section__title {
  font-size: var(--h2);
  font-weight: 800;
  line-height: var(--leading-heading);
  color: var(--ink);
}

.section__sub {
  font-size: var(--text-base);
  color: var(--ink-soft);
  margin-top: var(--sp-2);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 52px;
  padding-inline: var(--sp-6);
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: 700;
  transition: background 0.2s ease-out, color 0.2s ease-out,
              box-shadow 0.2s ease-out, transform 0.2s ease-out;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  background: var(--red-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  height: 48px;
}

.btn-secondary:hover {
  background: var(--blue);
  color: #fff;
}

.btn-secondary:active {
  background: var(--blue-dark);
  color: #fff;
}

.btn--full { width: 100%; }

/* Иконки-заглушки SVG */
.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--24 { width: 24px; height: 24px; }
.icon--32 { width: 32px; height: 32px; }

/* 5. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  height: 56px;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__flame { flex-shrink: 0; display: block; }

.logo__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
}

.logo__name {
  font-size: 19px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.logo__sub {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: .01em;
}

.header-spacer { flex: 1; }

/* Desktop nav — скрыт на мобиле */
.header-nav { display: none; }

/* Burger button */
.burger {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.burger:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* 6. Nav Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.drawer-overlay[hidden] { display: none; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  width: min(280px, 85vw);
  height: 100%;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  overflow-y: auto;
  /* Slide animation через aria-hidden */
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 56px;
  padding-inline: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.drawer-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border-radius: var(--radius-sm);
}

.drawer-close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.drawer-nav {
  padding: var(--sp-4) 0;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--sp-6);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}

.drawer-nav a:hover,
.drawer-nav a:focus-visible {
  background: var(--bg);
  color: var(--blue);
  outline: none;
}

/* 7. Hero */
.hero {
  background: var(--surface);
}

.hero__img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* SVG placeholder если нет фото */
.hero__img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #c7d3e8 0%, #9fb3d8 100%);
  color: var(--ink-soft);
  font-size: var(--text-sm);
  text-align: center;
  padding: var(--sp-4);
}

.hero__content {
  padding: var(--sp-6) var(--sp-4) 80px;
  background: var(--surface);
}

.hero__title {
  font-size: var(--h1);
  font-weight: 800;
  line-height: var(--leading-heading);
  color: var(--ink);
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero__sub {
  font-size: var(--text-base);
  color: var(--ink-soft);
  margin-top: var(--sp-3);
  max-width: 38ch;
}

.hero__cta {
  margin-top: var(--sp-6);
}

.hero__link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--blue);
  margin-top: var(--sp-3);
  min-height: 44px;
}

.hero__link:hover { text-decoration: underline; }

/* 8. Секция Районы */
#districts {
  background: var(--surface);
}

.districts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}

/* card-district: весь блок — ссылка-тап */
.card-district {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: var(--sp-4);
  min-height: 120px;
  min-width: 0; /* предотвращаем распирание flex/grid */
  text-decoration: none;
  transition: box-shadow 0.2s ease-out, transform 0.2s ease-out;
  -webkit-tap-highlight-color: transparent;
}

.card-district:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.card-district:hover {
  box-shadow: var(--shadow-2);
}

.card-district__region {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-soft);
  word-break: break-word;
  overflow-wrap: break-word;
  /* Предотвращаем переполнение длинных названий */
  hyphens: auto;
}

.card-district__phone {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--blue);
  margin-top: var(--sp-2);
  /* Перенос при необходимости (не обрезаем номер) */
  overflow-wrap: break-word;
}

.card-district__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  background: var(--red);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  height: 40px;
  border-radius: var(--radius-sm);
  padding-inline: var(--sp-3);
}

/* Последняя нечётная карточка — на всю ширину */
.card-district:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - var(--sp-3) / 2);
}

/* 9. Почему ПРО-ГАЗ */
#why {
  background: var(--bg);
}

.why-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.feature-icon {
  color: var(--blue);
  width: 32px;
  height: 32px;
}

.feature-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  line-height: var(--leading-heading);
}

.feature-text {
  font-size: var(--text-base);
  color: var(--ink-soft);
}

/* 10. Заправки */
#stations {
  background: var(--surface);
}

.stations-map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.stations-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.stations-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.card-station {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.card-station__icon {
  color: var(--blue);
  width: 24px;
  height: 24px;
}

.card-station__city {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  margin-top: var(--sp-1);
}

.card-station__address {
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.card-station__hours {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  font-style: italic;
}

.card-station .btn-secondary {
  margin-top: var(--sp-3);
  align-self: flex-start;
  height: 44px;
}

/* 11. Помощь фронту */
#frontline {
  background: var(--bg);
}

.frontline-intro {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  font-style: italic;
  margin-top: var(--sp-2);
}

/* Горизонтальный scroll-ряд */
.scroll-row {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  /* proximity, НЕ mandatory: mandatory на iOS при пинч-зуме силой дёргает
     вьюпорт к точкам привязки — вся страница «прыгает». proximity мягкий. */
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;   /* не «пробрасываем» скролл на страницу */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--sp-2);
  margin-inline: calc(-1 * var(--sp-4)); /* вырываемся за padding контейнера */
  padding-inline: var(--sp-4);
}

.scroll-row::-webkit-scrollbar { display: none; }

.help-photo {
  min-width: 260px;
  height: 195px;
  object-fit: cover;
  border-radius: var(--radius);
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Письма */
.letters-row {
  margin-top: var(--sp-6);
}

.letters-row .section__sub-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-3);
}

/* Коллаж благодарностей: сетка миниатюр. 2 колонки на мобильном,
   3 на десктопе. Тап по плитке открывает галерею-слайдер. */
.letters-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

@media (min-width: 768px) {
  .letters-collage { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
}

.letter-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  border: 1px solid rgb(255 255 255 / .09);
  box-shadow: var(--shadow-1);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.letter-thumb:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  border-color: rgb(98 168 245 / .4);
}

.letter-thumb:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.letter-thumb img {
  /* В коллаже миниатюра кропнута (ровный грид); документ целиком — в модалке */
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.frontline-note {
  margin-top: var(--sp-6);
  padding: var(--sp-4);
  background: rgba(16, 85, 160, 0.05);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

/* 12. Форма для юрлиц */
#contacts {
  background: var(--surface);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.form-label .required-star {
  color: var(--err);
  margin-left: 2px;
}

.form-input,
.form-textarea {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding-inline: var(--sp-4);
  font-size: 16px; /* 16px минимум — предотвращает iOS zoom */
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-textarea {
  height: auto;
  min-height: 96px;
  padding-block: var(--sp-3);
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ink-soft);
  opacity: 0.8;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(16, 85, 160, 0.1);
}

.form-input.is-error,
.form-textarea.is-error {
  border-color: var(--err);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--err);
  min-height: 1.2em;
}

/* Чекбокс согласия */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--blue);
  /* Кастомный стиль через accent-color для простоты */
}

.form-consent label {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  cursor: pointer;
}

.form-consent label a {
  color: var(--blue);
  text-decoration: underline;
}

.form-consent label a:hover { text-decoration: none; }

.form-consent .form-error {
  margin-top: var(--sp-1);
}

.form-submit-note {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: var(--sp-3);
}

/* Состояния кнопки */
.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Success state */
.form-success {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
}

.form-success:focus { outline: none; }

.form-success__icon {
  width: 48px;
  height: 48px;
  color: var(--ok);
  margin-inline: auto;
}

.form-success__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ok);
  margin-top: var(--sp-3);
}

.form-success__text {
  font-size: var(--text-base);
  color: var(--ink-soft);
  margin-top: var(--sp-2);
}

/* 13. Футер */
.site-footer {
  background: #1a1f2e;
  color: rgba(255, 255, 255, 0.85);
  padding: var(--sp-12) 0 var(--sp-6);
}

.footer-logo .logo__name { color: #fff; }
.footer-logo .logo__sub  { color: rgba(255,255,255,.5); }

.footer-sections {
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.footer-section__label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: var(--sp-3);
}

.footer-phones,
.footer-addresses {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-phone-row {
  display: flex;
  flex-direction: column;
}

.footer-phone-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
  margin-top: var(--sp-1);
}

/* Блочная ссылка-телефон — тач-таргет ≥ 44px */
.footer-phone-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-base);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.15s;
  letter-spacing: 0.01em;
}

.footer-phone-link:hover { color: #fff; text-decoration: underline; }

.footer-address {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s;
  padding-block: 4px;
}

.footer-nav a:hover { color: #fff; }

.footer-bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
}

.footer-bottom a:hover { color: rgba(255, 255, 255, 0.9); }

.footer-section { display: flex; flex-direction: column; }

/* 14. Sticky CTA Bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgb(0 0 0 / .08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  padding-bottom: calc(var(--sp-2) + env(safe-area-inset-bottom, 0px));
  /* Скрыт до прокрутки 100px */
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
  pointer-events: none;
}

.sticky-bar[hidden] {
  /* hidden через JS не нужен, управляем через visibility */
}

.sticky-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-bar .btn {
  height: 48px;
  font-size: 0.875rem;
}

/* 15. Анимации — fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Задержки для групп */
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }
.fade-up:nth-child(7) { transition-delay: 0.48s; }

/* 16. Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.lightbox[hidden] { display: none; }

.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  max-width: min(960px, 94vw);
}

.lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__caption {
  color: rgb(255 255 255 / .85);
  font-size: var(--text-sm);
  text-align: center;
  max-width: 46ch;
  line-height: 1.5;
}

.lightbox__counter {
  color: rgb(255 255 255 / .5);
  font-size: var(--text-xs);
  letter-spacing: .08em;
}

/* Стрелки навигации */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgb(255 255 255 / .1);
  border-radius: 50%;
  transition: background .15s;
}
.lightbox__nav:hover { background: rgb(255 255 255 / .22); }
.lightbox__nav:focus-visible { outline: 2px solid #fff; }
.lightbox__nav--prev { left: var(--sp-3); }
.lightbox__nav--next { right: var(--sp-3); }

@media (min-width: 768px) {
  .lightbox__nav--prev { left: var(--sp-6); }
  .lightbox__nav--next { right: var(--sp-6); }
}

.lightbox__close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  font-size: 20px;
  transition: background 0.15s;
}

.lightbox__close:hover { background: rgba(255,255,255,.2); }
.lightbox__close:focus-visible { outline: 2px solid #fff; }

/* 17. @media prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }

  .drawer {
    transition: none;
  }

  .sticky-bar {
    transition: none;
  }
}

/* ============================================================
   DESKTOP (≥ 768px)
   ============================================================ */
@media (min-width: 768px) {

  /* Header */
  .site-header { height: 72px; }

  .burger { display: none; }

  .header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .header-nav a {
    font-size: var(--text-base);
    color: var(--ink-soft);
    font-weight: 500;
    transition: color 0.15s;
    text-decoration: none;
    padding-block: var(--sp-2);
  }

  .header-nav a:hover { color: var(--blue); }

  /* Hero — полноэкранный с overlay */
  .hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
  }

  .hero__img-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  .hero__img {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    object-fit: cover;
    object-position: center 30%;
  }

  .hero__img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.7) 40%, rgba(0,0,0,.15) 100%);
  }

  .hero__content {
    position: relative;
    z-index: 2;
    padding: 96px 0 96px 64px;
    max-width: 620px;
    background: transparent;
  }

  .hero__title   { color: #fff; }
  .hero__sub     { color: rgba(255,255,255,.82); max-width: 42ch; }
  .hero__cta .btn { width: auto; min-width: 220px; }
  .hero__link    { color: rgba(255,255,255,.75); text-align: left; display: inline; }

  /* Секции */
  .section { padding-block: 96px; }

  /* Районы */
  .districts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-4);
    max-width: 900px;
    margin-inline: auto;
  }

  .card-district:last-child:nth-child(odd) {
    grid-column: unset;
    max-width: unset;
  }

  .card-district:hover {
    transform: translateY(-2px);
  }

  /* Почему */
  .why-grid {
    flex-direction: row;
    gap: var(--sp-8);
    text-align: center;
  }

  .why-grid .feature-item {
    flex: 1;
    align-items: center;
  }

  /* Заправки */
  .stations-map { height: 400px; }

  .stations-cards {
    flex-direction: row;
    gap: var(--sp-4);
    max-width: 800px;
    margin-inline: auto;
  }

  .card-station { flex: 1; }

  /* Помощь фронту */
  .scroll-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    overflow-x: visible; /* сброс мобильного auto */
    scroll-snap-type: unset;
    -webkit-overflow-scrolling: unset;
    gap: var(--sp-4);
    margin-inline: 0;
    padding-inline: 0;
    padding-bottom: 0;
  }

  .help-photo {
    min-width: unset;
    width: 100%;
    height: 240px;
  }

  .help-photos-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Видео-благодарности — остаётся горизонтальным слайдером и на десктопе
     (переопределяем grid у .scroll-row), карточки крупнее */
  .scroll-row.videos-slider {
    display: flex;
    overflow-x: auto;
    grid-template-columns: none;
  }
  .videos-slider .card-video { width: 340px; }

  /* Форма */
  .contact-form {
    max-width: 560px;
    margin-inline: auto;
  }

  /* Футер */
  .footer-sections {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--sp-8);
  }

  /* Телефоны — в две колонки */
  .footer-phones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--sp-6);
    row-gap: var(--sp-4);
  }

  /* Правая колонка «Меню» — к правому краю, вровень с навигацией хедера */
  .footer-section:last-child { align-items: flex-end; }
  .footer-section:last-child .footer-section__label { text-align: right; }
  .footer-section:last-child .footer-nav { justify-content: flex-end; text-align: right; }

  /* Sticky bar — скрыт на десктопе */
  .sticky-bar { display: none; }

  /* Сброс мобильного отступа под sticky bar */
  body { padding-bottom: 0; }
}

/* ============================================================
   Видео от военных (секция «Помощь фронту»)
   ============================================================ */
.videos-row { margin-top: var(--sp-8); }

.card-video {
  flex: 0 0 auto;
  width: 260px;
}

.card-video__play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  padding: 0;
}

.card-video__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-video__icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(16 85 160 / .92);
  color: #fff;
  box-shadow: var(--shadow-2);
  transition: transform .18s ease, background .18s ease;
}

.card-video__play:hover .card-video__icon,
.card-video__play:focus-visible .card-video__icon {
  transform: scale(1.08);
  background: var(--blue-dark);
}

.card-video__player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  background: #000;
  display: block;
}

.card-video__caption {
  margin-top: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .card-video__icon { transition: none; }
}


/* ============================================================
   ГЕРОЙ — покадровая scroll-анимация (5 сцен).
   Блок обязан быть последним по .hero: выше есть @media (min-width: 768px),
   который переопределяет .hero и .hero__*.

   Режим кино включает JS классом .is-cinema. Пока класса нет — виден
   только первый кадр, обычный статичный герой на весь экран.
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero {
  position: relative;
  display: block;
  overflow: visible;   /* overflow:hidden у предка ломает sticky целиком */
  min-height: 0;
  background: #070c16;
  isolation: isolate;
}

.hero__pin {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* Трек прокрутки. 240vh ≈ два с половиной экрана на всю сцену:
   дольше — и человек, которому нужен телефон прямо сейчас, устанет. */
.hero.is-cinema .hero__stage { height: 168vh; }

.hero.is-cinema .hero__pin {
  position: sticky;
  top: 0;                /* герой уходит ЗА шапку — кадр/небо продолжается под ней */
  height: 100vh;
  height: 100svh;
}

/* ── Слои сцены ─────────────────────────────────────────── */
.hero__media { position: absolute; inset: 0; z-index: 0; }

/* Зум-слой. Масштаб пишет main.js в --hero-zoom по позиции скролла.
   Дефолт 1.06 — лёгкий кроп, чтобы без JS кадр не был впритык к краям. */
.hero__zoom {
  position: absolute;
  inset: 0;
  transform: scale(var(--hero-zoom, 1.06));
  transform-origin: 46% 54%;   /* точка наезда — кабина и логотип на складе */
  will-change: transform;
}

.hero__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}

/* Затемнение снизу и слева — под текст */
.hero__grad {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top,   rgb(7 12 22 / .94) 0%, rgb(7 12 22 / .55) 34%, rgb(7 12 22 / 0) 68%),
    linear-gradient(to right, rgb(7 12 22 / .82) 0%, rgb(7 12 22 / .25) 46%, rgb(7 12 22 / 0) 78%);
}

.hero__vignette {
  position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 58% 48%, transparent 42%, rgb(0 0 0 / .42) 100%);
}

/* Плёночное зерно. SVG-шум инлайном — ни одного лишнего запроса. */
.hero__grain {
  position: absolute; inset: -50%; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05;
  mix-blend-mode: soft-light;
  pointer-events: none;
  animation: hero-grain 720ms steps(1) infinite;
}

@keyframes hero-grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(3%, 1%); }
}

/* ── Контент ────────────────────────────────────────────── */
.hero__inner {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--sp-4) calc(var(--sp-16) + 24px);
  color: #fff;
}

.hero__eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .62);
  margin-bottom: var(--sp-4);
}

.hero .hero__title {
  font-size: clamp(2rem, 8.5vw, 3rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}

.hero__accent { color: #7db8ff; }   /* 8.4:1 к #070c16 — читается поверх кадра */

.hero .hero__sub {
  margin-top: var(--sp-4);
  max-width: 34ch;
  font-size: var(--text-base);
  color: rgb(255 255 255 / .78);
}

.hero .hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.hero .hero__cta .btn { width: 100%; }

/* Призрачная вторичная кнопка — на фото рамка читается лучше заливки */
.btn-ghost {
  background: rgb(255 255 255 / .07);
  color: #fff;
  border: 1px solid rgb(255 255 255 / .28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover {
  background: rgb(255 255 255 / .15);
  border-color: rgb(255 255 255 / .5);
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-6);
  font-size: var(--text-sm);
  color: rgb(255 255 255 / .72);
}

.hero__badges li { display: flex; align-items: center; gap: var(--sp-2); }

.hero__badges li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* Строка охвата районов — динамика во время наезда.
   Города «загораются» по очереди: у каждого свой порог по --hero-reach.
   Вне кино-режима (нет --hero-reach) строка скрыта — незачем на статике. */
.hero__reach {
  display: none;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-3);
  margin-top: var(--sp-6);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .01em;
  color: #fff;
}

.hero.is-cinema .hero__reach { display: flex; }

.hero__reach span {
  position: relative;
  opacity: calc((var(--hero-reach, 0) * 8) - var(--i));
  transition: opacity .1s linear;
}

/* Порядковый номер каждого города — задаёт порог зажигания */
.hero__reach span:nth-child(1) { --i: 0; }
.hero__reach span:nth-child(2) { --i: 1; }
.hero__reach span:nth-child(3) { --i: 2; }
.hero__reach span:nth-child(4) { --i: 3; }
.hero__reach span:nth-child(5) { --i: 4; }
.hero__reach span:nth-child(6) { --i: 5; }
.hero__reach span:nth-child(7) { --i: 6; }
.hero__reach span:nth-child(8) { --i: 7; }

.hero__reach span + span::before {
  content: '·';
  position: absolute;
  left: calc(var(--sp-3) / -2);
  transform: translateX(-50%);
  color: var(--red);
}

.hero__place {
  position: absolute;
  z-index: 2;
  left: var(--sp-4);
  bottom: var(--sp-4);
  font-size: var(--text-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .42);
}

/* Индикатор прокрутки: гаснет, как только сцена тронулась (--hero-hint) */
.hero__scroll-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: var(--sp-4);
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgb(255 255 255 / .5);
  pointer-events: none;
  opacity: var(--hero-hint, 1);
}

.hero__scroll-hint svg { animation: hero-nudge 2.2s ease-in-out infinite; }

@keyframes hero-nudge {
  0%, 100% { transform: translateY(0);   opacity: .55; }
  50%      { transform: translateY(5px); opacity: 1; }
}

/* ── Хореография появления ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-reveal .85s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes hero-reveal { to { opacity: 1; transform: none; } }

/* ── Десктоп ────────────────────────────────────────────── */
@media (min-width: 768px) {
  .hero.is-cinema .hero__pin {
    top: 0;                /* герой ЗА шапкой и на десктопе */
    height: 100vh;
    height: 100svh;
  }

  /* Текст выровнен по контейнеру (та же линия, что и логотип в шапке),
     а не по краю вьюпорта — левый край заголовка совпадает с «ПРО-ГАЗ». */
  .hero__inner {
    top: 50%;
    bottom: auto;
    translate: 0 -50%;
    padding: 0 var(--sp-4);
  }

  .hero .hero__title { font-size: clamp(3rem, 5.2vw, 4.5rem); }
  .hero .hero__sub { font-size: var(--text-lg); max-width: 38ch; }

  .hero .hero__cta { flex-direction: row; align-items: center; }
  .hero .hero__cta .btn { width: auto; min-width: 240px; }
  .hero .hero__cta .btn-ghost { min-width: 0; }

  /* Служебные подписи — по тому же контейнеру, что и текст */
  .hero__place,
  .hero__scroll-hint { bottom: var(--sp-8); }
  .hero__place {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container);
    padding-inline: var(--sp-4);
  }
}

/* ── Уважение к настройке «меньше движения» ─────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__frames,
  .hero__grain,
  .hero__scroll-hint svg { animation: none; }

  .reveal { opacity: 1; transform: none; animation: none; }
}

/* ============================================================
   INDUSTRIAL DARK — единая арт-дирекция всего сайта.
   Раньше герой был кинематографичным, а дальше начинались белые
   карточки из конструктора: разрыв читался как «дёшево».
   Сайт целиком построен на токенах, поэтому дирекция меняется
   переопределением :root, а не заплатками по компонентам.
   Блок идёт последним: выше есть @media (min-width: 768px).
   ============================================================ */
:root {
  --bg:        #070c16;   /* фон страницы = низ героя, стык не виден */
  --surface:   #0e1726;   /* карточки и секции-подложки */
  --ink:       #eef3fa;
  --ink-soft:  #93a1b8;
  --line:      #1e2b40;

  /* Синий осветлён: #1055a0 на тёмном не читается (контраст 2.4:1) */
  --blue:      #62a8f5;
  --blue-dark: #8cc4ff;

  --shadow-1: 0 1px 3px rgb(0 0 0 / .5);
  --shadow-2: 0 16px 40px -12px rgb(0 0 0 / .75);
}

body { background: var(--bg); }

/* ── Шапка: над героем ПОЛНОСТЬЮ прозрачная — кадр продолжается сквозь неё
   без стыков. Когда герой ушёл с экрана, .scrolled делает её непрозрачной
   для контраста над контентом (переключает main.js по позиции героя). ── */
.site-header {
  /* Лёгкое прозрачное стекло с затемнением: сквозь него виден верх фото
     героя и зум, но полоса читается (не «пустая»). */
  background: rgb(7 12 22 / .3);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgb(255 255 255 / .06);
  text-shadow: 0 1px 12px rgb(0 0 0 / .5);
  transition: background-color .35s ease,
              -webkit-backdrop-filter .35s ease,
              backdrop-filter .35s ease,
              border-color .35s ease, text-shadow .35s ease;
}

/* Герой ушёл с экрана → непрозрачный тёмный для контраста */
.site-header.scrolled {
  background: var(--surface);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: var(--line);
  text-shadow: none;
}

.logo__name { color: #fff; }
.logo__sub  { color: rgb(255 255 255 / .5); }
.burger     { color: #fff; }
.header-nav a { color: rgb(255 255 255 / .72); }
.header-nav a:hover { color: #fff; }

.drawer { background: var(--surface); }
.drawer-close { color: var(--ink); }

/* ── Секции ─────────────────────────────────────────────── */
/* Явное чередование фонов по секциям (id важнее класса, поэтому задаёт ритм
   независимо от section--alt). Первая секция = цвет низа героя, стык не виден. */
#services  { background: var(--bg); }
#districts { background: var(--surface); }
#why       { background: var(--bg); }
#fleet     { background: var(--surface); }
#stations  { background: var(--bg); }
#frontline { background: var(--surface); }
#contacts  { background: var(--bg); }
.section--alt { background: var(--surface); }

/* ── Карточки: стекло с тонкой рамкой вместо белых плашек ── */
.card-district,
.card-station,
.feature-item {
  background: linear-gradient(180deg, rgb(255 255 255 / .045), rgb(255 255 255 / .015));
  border: 1px solid rgb(255 255 255 / .09);
  border-radius: var(--radius);
  transition: border-color .22s ease, transform .22s ease, background .22s ease;
}

.card-district:hover,
.card-station:hover {
  border-color: rgb(98 168 245 / .45);
  background: linear-gradient(180deg, rgb(98 168 245 / .10), rgb(255 255 255 / .02));
  transform: translateY(-2px);
}

.card-district__region { color: var(--ink); }
.card-district__phone  { color: var(--blue-dark); }
.card-station__city    { color: var(--ink); }
.card-station__address { color: var(--ink-soft); }
.card-station__hours   { color: var(--ink-soft); }
.feature-title         { color: var(--ink); }
.feature-text          { color: var(--ink-soft); }
.feature-icon          { color: var(--blue); }

/* ── Форма ──────────────────────────────────────────────── */
.form-input,
.form-textarea {
  background: rgb(255 255 255 / .04);
  border: 1px solid rgb(255 255 255 / .14);
  color: var(--ink);
}

.form-input::placeholder,
.form-textarea::placeholder { color: rgb(255 255 255 / .32); }

.form-input:focus,
.form-textarea:focus {
  background: rgb(255 255 255 / .07);
  border-color: var(--blue);
  outline: none;
}

.form-label   { color: var(--ink); }
.form-consent { color: var(--ink-soft); }
.form-consent a { color: var(--blue-dark); text-decoration: underline; }
.form-submit-note { color: var(--ink-soft); }
.form-success { background: var(--surface); border: 1px solid rgb(255 255 255 / .09); }
.form-success__title { color: var(--ink); }
.form-success__text  { color: var(--ink-soft); }

/* ── Помощь фронту ──────────────────────────────────────── */
.section__sub-label   { color: var(--ink); }
.frontline-intro      { color: var(--ink-soft); }
.help-photo { border-radius: var(--radius); }

/* ── Подвал и мобильная панель ──────────────────────────── */
.site-footer { background: #050912; border-top: 1px solid rgb(255 255 255 / .07); }

.sticky-bar {
  background: rgb(7 12 22 / .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgb(255 255 255 / .1);
}

/* Вторичная кнопка на тёмном: заливка вместо голой рамки */
.btn-secondary {
  background: rgb(255 255 255 / .06);
  border-color: rgb(98 168 245 / .5);
  color: var(--blue-dark);
}
.btn-secondary:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #06101f;
}

/* ── Районы: шум красного и выравнивание ────────────────── */
/* Красный оставляем ТОЛЬКО за главным действием (герой, отправка формы).
   Семь одинаковых красных кнопок подряд обесценивают акцент —
   карточка целиком и так является ссылкой tel:. */
.card-district__btn {
  background: rgb(255 255 255 / .06);
  border: 1px solid rgb(255 255 255 / .16);
  color: var(--ink);
  transition: background .22s ease, border-color .22s ease, color .22s ease;
}

.card-district:hover .card-district__btn {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

@media (min-width: 768px) {
  /* Сетка районов центрируется (max-width 900) — заголовок шёл слева,
     из-за чего блок читался как несобранный. */
  #districts .section__header { text-align: center; max-width: 900px; margin-inline: auto; }
}

/* Мобильный кадр вертикальный: фокус ниже центра, иначе полэкрана — пустое небо */
@media (max-width: 767px) {
  .hero__still,
  .hero__canvas { object-position: 50% 52%; }
}

/* ── Секция услуг ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
}

.card-service {
  background: linear-gradient(180deg, rgb(255 255 255 / .045), rgb(255 255 255 / .015));
  border: 1px solid rgb(255 255 255 / .09);
  border-radius: var(--radius);
  padding: var(--sp-6);
  transition: border-color .22s ease, transform .22s ease, background .22s ease;
}

.card-service:hover {
  border-color: rgb(98 168 245 / .45);
  background: linear-gradient(180deg, rgb(98 168 245 / .10), rgb(255 255 255 / .02));
  transform: translateY(-2px);
}

.card-service .feature-icon { color: var(--blue); margin-bottom: var(--sp-4); }

.card-service__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-2);
  line-height: 1.25;
}

.card-service__text {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ── Автопарк ───────────────────────────────────────────── */
.fleet-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 768px) {
  .fleet-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
}

.fleet-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / .015));
  border: 1px solid rgb(255 255 255 / .09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .22s ease, transform .22s ease;
}

.fleet-card:hover {
  border-color: rgb(98 168 245 / .4);
  transform: translateY(-3px);
}

.fleet-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a1220;
}

.fleet-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.fleet-card:hover .fleet-card__media img { transform: scale(1.04); }

.fleet-card__body {
  padding: var(--sp-4) var(--sp-5, 20px) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.fleet-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-1);
}

.fleet-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / .08);
  color: var(--ink-soft);
  white-space: nowrap;
}

.fleet-tag--accent {
  background: rgb(98 168 245 / .16);
  color: var(--blue-dark);
}

.fleet-card__title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.fleet-card__lead {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue-dark);
}

.fleet-card__text {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.5;
}

.fleet-card__specs {
  margin-top: auto;
  padding-top: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.fleet-card__specs li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--ink);
}

.fleet-card__specs li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ── Автопарк: лупа при наведении + кликабельность ──────── */
.fleet-card { cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.fleet-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.fleet-card__media { position: relative; }

.fleet-card__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(7 12 22 / 0);
  color: #fff;
  opacity: 0;
  transition: opacity .22s ease, background .22s ease;
}

.fleet-card__zoom svg {
  width: 46px;
  height: 46px;
  padding: 11px;
  border-radius: 50%;
  background: rgb(16 85 160 / .9);
  box-shadow: var(--shadow-2);
  transform: scale(.85);
  transition: transform .22s ease;
}

.fleet-card:hover .fleet-card__zoom,
.fleet-card:focus-visible .fleet-card__zoom {
  opacity: 1;
  background: rgb(7 12 22 / .35);
}
.fleet-card:hover .fleet-card__zoom svg,
.fleet-card:focus-visible .fleet-card__zoom svg { transform: scale(1); }

/* Тач-устройства hover нет — показываем лупу постоянно, приглушённо */
@media (hover: none) {
  .fleet-card__zoom { opacity: 1; }
  .fleet-card__zoom svg { background: rgb(7 12 22 / .55); transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .fleet-card__zoom, .fleet-card__zoom svg, .fleet-card__media img { transition: none; }
}
