/*
 * Общие стили. Направление: точный, инженерный, спокойный.
 * Графитовая шкала нейтралей, один акцент (голубой из полосы M в логотипе),
 * IBM Plex Sans для интерфейса и IBM Plex Mono для кодов кузовов, моторов и цифр.
 * Сетка отступов 4px. Одна кривая анимации.
 */
:root {
  /* Нейтрали: графит с лёгким стальным оттенком */
  --bg-deep: #0c0d0f;
  --bg: #111214;
  --surface: #18191c;
  --raised: #212226;
  --line: rgba(236, 237, 239, .08);
  --line-strong: rgba(236, 237, 239, .16);
  --text: #ecedef;
  --text-2: #b6b9bf;
  --text-3: #989ba2;

  /* Акцент: только выбор, текущая эпоха и цифра прироста */
  --accent: #3aa6e0;

  /* Цвета бренда — только в логотипе и заставке */
  --m-light: #1c9ad6;
  --m-dark: #1d3c8f;
  --m-red: #e22718;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 160ms;
  --t-enter: 400ms;

  --header-h: 84px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
/* Документ не скроллится: скроллится только контейнер .snap.
   Так на iOS/Android адресная строка не «прыгает» и каждая секция ровно = экран. */
body { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.code { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: scale(.98); }
/* Главное действие: светлая кнопка с тёмным текстом */
.btn--primary { background: var(--text); color: var(--bg); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.btn--primary:hover { background: #ffffff; }
/* Второстепенное: приподнятая поверхность с тонкой линией */
.btn--ghost { background: rgba(33, 34, 38, .72); border: 1px solid var(--line-strong); color: var(--text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--raised); border-color: rgba(236,237,239,.28); }
.btn--lg { height: 48px; padding: 0 24px; font-size: 17px; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn--wide { width: 100%; }

/* ---------- Интро (анимация логотипа — по запросу владельца) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--bg-deep);
  display: grid; place-items: center; align-content: center; gap: 28px;
  transition: opacity 700ms var(--ease), visibility 700ms;
}
.intro__logo { position: relative; width: min(62vw, 440px); overflow: hidden; }
.intro__logo img { display: block; width: 100%; height: auto; }
/* Проявление логотипа слева направо: шторка цвета фона уезжает (transform — плавно, на видеокарте) */
.intro__logo::after {
  content: ""; position: absolute; inset: 0; background: var(--bg-deep);
  transform-origin: right center;
  animation: logoReveal 1.1s cubic-bezier(.7,0,.2,1) .15s forwards;
}
.intro__shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%); mix-blend-mode: overlay;
  animation: shine 1s ease 1.2s forwards;
}
.intro__stripes { display: flex; gap: 8px; }
.intro__stripes i { display: block; width: 48px; height: 4px; transform: scaleX(0); animation: stripe .5s var(--ease) forwards; }
.intro__stripes i:nth-child(1) { background: var(--m-light); animation-delay: .9s; }
.intro__stripes i:nth-child(2) { background: var(--m-dark); animation-delay: 1s; }
.intro__stripes i:nth-child(3) { background: var(--m-red); animation-delay: 1.1s; }
.intro.is-done { opacity: 0; visibility: hidden; }

@keyframes logoReveal { to { transform: scaleX(0); } }
@keyframes shine { to { transform: translateX(120%); } }
@keyframes stripe { to { transform: scaleX(1); } }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: var(--header-h);
  padding: env(safe-area-inset-top, 0px) clamp(16px, 4vw, 48px) 0;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(rgba(12,13,15,.8), rgba(12,13,15,0));
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header__logo { display: block; line-height: 0; }
.header__logo img { height: 44px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); }
.header__actions { display: flex; gap: 8px; }
.header .btn { height: 40px; padding: 0 16px; font-size: 15px; }
.header__link { display: inline-flex; align-items: center; height: 40px; padding: 0 12px; font-size: 15px; font-weight: 500; color: var(--text-2); transition: color var(--t-fast) var(--ease); }
.header__link:hover, .header__link[aria-current="page"] { color: var(--text); }

/* ---------- Скролл-контейнер ---------- */
.snap {
  position: fixed; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.snap::-webkit-scrollbar { display: none; }

.panel {
  position: relative; height: 100%; width: 100%;
  scroll-snap-align: start; scroll-snap-stop: always;
  overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 16px) clamp(20px, 6vw, 96px) calc(clamp(40px, 9vh, 96px) + var(--safe-b));
}

.panel__bg { position: absolute; inset: 0; z-index: -2; }
.panel__bg img { width: 100%; height: 100%; object-fit: cover; }
.panel__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(12,13,15,.92) 0%, rgba(12,13,15,.56) 40%, rgba(12,13,15,0) 72%),
    linear-gradient(to right, rgba(12,13,15,.6), rgba(12,13,15,0) 60%);
}

/* ---------- Hero ---------- */
/* Фон — главный специалист в цехе. Компьютер: текст слева на пустой части цеха, Марат справа.
   Телефон и планшет стоя (фото 9:16, Марат по центру): текст внизу, на куртке, лицо остаётся открытым */
.hero { justify-content: flex-start; padding-top: calc(var(--header-h) + clamp(48px, 10vh, 112px)); }
.hero__stage {
  position: absolute; inset: 0; z-index: -2;
  perspective: 1200px; overflow: hidden;
  touch-action: pan-y; /* горизонтальный свайп крутит, вертикальный — скроллит */
  cursor: grab;
}
.hero__stage.is-dragging { cursor: grabbing; }
.hero__img, .hero__img img { width: 100%; height: 100%; }
.hero__img { display: block; transform: scale(1.06); will-change: transform; backface-visibility: hidden; }
/* Кадрирование держит лицо в кадре на любых экранах: справа и выше центра */
.hero__img img { object-fit: cover; object-position: 64% 20%; user-select: none; -webkit-user-drag: none; }
.panel__shade--hero {
  background:
    linear-gradient(to right, rgba(12,13,15,.86) 0%, rgba(12,13,15,.6) 34%, rgba(12,13,15,0) 58%),
    linear-gradient(to bottom, rgba(12,13,15,.6) 0%, rgba(12,13,15,0) 40%, rgba(12,13,15,0) 70%, rgba(12,13,15,.6) 100%);
  pointer-events: none;
}
.hero__content { max-width: 640px; }
.kicker { font-size: 16px; color: var(--text-2); margin-bottom: 16px; }
.hero__title { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; font-weight: 500; letter-spacing: -.03em; white-space: pre-line; }
/* Слова главного специалиста */
.hero__quote { margin: 24px 0 0; max-width: 30rem; padding-left: 18px; border-left: 2px solid var(--accent); }
.hero__quote p { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; color: var(--text-2); }
.hero__quote p::before { content: "«"; }
.hero__quote p::after { content: "»"; }
.hero__quote figcaption { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 15px; color: var(--text-3); }
.hero__quote figcaption b { font-weight: 500; color: var(--text); }
.hero__q-short { display: none; }
.hero__btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: calc(24px + var(--safe-b)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; color: var(--text);
  transition: color var(--t-fast) var(--ease);
}
.scroll-cue:hover { color: #fff; }
.scroll-cue__arrow { width: 12px; height: 12px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }

/* ---------- Эпоха на главной ---------- */
.epoch__inner { max-width: 640px; }
.epoch__num { font-size: 15px; color: var(--text-2); }
.epoch__years {
  font-size: clamp(48px, 8vw, 112px); font-weight: 500; line-height: 1; letter-spacing: -.03em;
  margin: 8px 0;
}
.epoch__title { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; line-height: 1.25; }
.epoch__series { margin-top: 8px; font-family: var(--mono); font-size: 15px; color: var(--text-2); }
.epoch__invite { margin-top: 16px; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.55; color: var(--text-2); max-width: 32rem; }
.epoch__cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Карусель услуг эпохи: следующая карточка видна краем — понятно, что можно листать */
.esvc { position: relative; margin-top: 28px; max-width: 1180px; }
.esvc__track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-bottom: 2px;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
}
.esvc.is-end .esvc__track { -webkit-mask-image: none; mask-image: none; }
.esvc__track::-webkit-scrollbar { display: none; }
.esvc__card {
  flex: none; width: 248px; min-height: 152px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(24, 25, 28, .84);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.esvc__card:hover { border-color: var(--line-strong); background: rgba(33, 34, 38, .92); }
.esvc__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.esvc__cat { font-size: 13px; color: var(--text-3); }
.esvc__card b { font-size: 16px; font-weight: 500; line-height: 1.3; }
.esvc__text { font-size: 14px; line-height: 1.45; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.esvc__price { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 500; }
.esvc__card--chip .esvc__price { color: var(--accent); font-family: var(--mono); }
.esvc__card--all { width: 180px; justify-content: center; align-items: flex-start; }
.esvc__count { font-family: var(--mono); font-size: 14px; color: var(--text-3); }
.esvc__card--all i { font-style: normal; font-size: 20px; color: var(--accent); }
.esvc__nav {
  position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%;
  background: var(--raised); border: 1px solid var(--line-strong); color: var(--text);
  display: grid; place-items: center; transition: background-color var(--t-fast) var(--ease);
}
.esvc__nav[hidden] { display: none; }
.esvc__nav:hover { background: #2b2c31; }
.esvc__nav::before { content: ""; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin-left: -3px; }
.esvc__nav--prev { left: -20px; }
.esvc__nav--prev::before { transform: rotate(135deg); margin: 0 -3px 0 0; }
.esvc__nav--next { right: -20px; }
@media (hover: none) { .esvc__nav { display: none; } }
/* Невысокий экран компьютера: прячем вводный абзац, чтобы карусель помещалась */
@media (max-height: 820px) and (min-width: 761px) {
  .epoch .epoch__invite { display: none; }
  .epoch__years { font-size: clamp(48px, 7vw, 88px); }
}

/* Одно появление при входе в секцию: короткий подъём с небольшой задержкой */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--t-enter) var(--ease), transform var(--t-enter) var(--ease); }
.panel.is-active .reveal { opacity: 1; transform: none; }
.panel.is-active .reveal:nth-child(2) { transition-delay: 50ms; }
.panel.is-active .reveal:nth-child(3) { transition-delay: 100ms; }
.panel.is-active .reveal:nth-child(4) { transition-delay: 150ms; }
.panel.is-active .reveal:nth-child(5) { transition-delay: 200ms; }
.panel.is-active .reveal:nth-child(6) { transition-delay: 250ms; }

/* Заголовок «Выбери свою эпоху BMW» над первой эпохой */
.epoch__intro {
  position: absolute; top: calc(var(--header-h) + 16px); left: clamp(20px, 6vw, 96px);
  font-size: 17px; font-weight: 500; color: var(--text);
}

/* ---------- Точки навигации ---------- */
.dots {
  position: fixed; right: clamp(12px, 2vw, 28px); top: 50%; transform: translateY(-50%);
  z-index: 15; display: flex; flex-direction: column; gap: 12px;
}
.dots button { display: flex; align-items: center; justify-content: flex-end; gap: 12px; height: 20px; }
.dots span { font-size: 14px; color: var(--text-2); opacity: 0; transition: opacity var(--t-fast) var(--ease); white-space: nowrap; }
.dots i { display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(236,237,239,.36); transition: background-color var(--t-fast) var(--ease); }
.dots button:hover span, .dots button.is-active span { opacity: 1; }
.dots button.is-active span { color: var(--text); }
.dots button.is-active i { background: var(--accent); }

/* ---------- Нижняя панель (мобильные) ---------- */
/* ---------- Кнопка «Связаться» и окно контактов ---------- */
.contact-fab {
  position: fixed; right: 20px; bottom: calc(20px + var(--safe-b)); z-index: 30;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text); color: var(--bg); box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: transform var(--t-fast) var(--ease);
}
.contact-fab:active { transform: scale(.94); }
.contact-fab svg, .book-bar__call svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }

.modal--contact { width: min(440px, 100vw - 24px); }
.contact { padding: 24px 24px calc(24px + var(--safe-b)); }
.contact h2 { font-size: 22px; font-weight: 500; padding-right: 48px; }
.contact > p { margin-top: 4px; font-size: 15px; color: var(--text-3); }
.contact__list { display: grid; gap: 8px; margin-top: 20px; }
.contact__item {
  display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 8px 16px 8px 8px;
  border-radius: 16px; background: var(--raised); border: 1px solid var(--line);
  transition: border-color var(--t-fast) var(--ease);
}
.contact__item:hover { border-color: var(--line-strong); }
.contact__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--bg-deep); }
.contact__icon svg { width: 24px; height: 24px; }
.contact__icon--wa { background: #1f9e55; }
.contact__icon--tg { background: #2a8fd0; }
.contact__icon--max { background: #5b4fe0; font: 600 13px/1 var(--font); letter-spacing: .02em; }
.contact__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact__text b { font-size: 17px; font-weight: 500; }
.contact__text span { font-size: 15px; color: var(--text-2); }
.contact__arrow { margin-left: auto; color: var(--text-3); }

/* ---------- Модалки ---------- */
.modal {
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--text);
  width: min(920px, 100vw - 24px); max-height: calc(100% - 24px);
}
.modal::backdrop { background: rgba(0,0,0,.64); }
.modal[open] .modal__box { animation: modalIn var(--t-enter) var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px); } }
.modal__box { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 24px; }
.modal__head h2 { font-size: 20px; font-weight: 500; }
.modal__addr { margin-top: 4px; color: var(--text-2); }
.modal__hours { margin-top: 4px; font-size: 14px; color: var(--text-3); }
.modal__close {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 10px; background: var(--raised);
  font-size: 24px; line-height: 1; color: var(--text-2);
  transition: color var(--t-fast) var(--ease);
}
.modal__close:hover { color: var(--text); }
.modal__map { height: min(60vh, 480px); background: var(--raised); }
.modal__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__foot { display: flex; gap: 12px; padding: 16px 24px calc(16px + var(--safe-b)); flex-wrap: wrap; }
/* Окно-шторка: на компьютере по центру, на телефоне снизу */
.modal--sheet { width: min(560px, 100vw - 24px); }
.modal__close--abs { position: absolute; top: 16px; right: 16px; z-index: 1; }
.modal--sheet .modal__box { position: relative; max-height: calc(100dvh - 24px); overflow-y: auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .hide-sm { display: none; }
  .header__logo img { height: 31px; }
  .header .btn { width: 40px; padding: 0; }
  .header .btn--primary { display: none; } /* звонок — в окне «Связаться» */

  .panel { padding-bottom: calc(96px + var(--safe-b)); }
  .panel__shade {
    background: linear-gradient(to top, rgba(12,13,15,.96) 0%, rgba(12,13,15,.72) 44%, rgba(12,13,15,.12) 76%, rgba(12,13,15,.36) 100%);
  }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .panel__shade--hero { background: linear-gradient(to bottom, rgba(12,13,15,.7) 0%, rgba(12,13,15,.2) 45%, rgba(12,13,15,0) 60%, rgba(12,13,15,.6) 100%); }
  .hero__title { font-size: 40px; }
  .hero__quote p { font-size: 16px; }
  .hero__btns { margin-top: 24px; } /* звонок и карта — в нижней панели */
  .hero__btns .btn--primary { width: 100%; }
  .scroll-cue { bottom: calc(88px + var(--safe-b)); white-space: nowrap; }

  .epoch__invite { font-size: 16px; }
  .epoch__series { font-size: 14px; }
  .epoch__cta .btn { flex: 1; }
  /* Телефон: карусель до края экрана, абзац прячем — место под карточки */
  .epoch .epoch__invite { display: none; }
  .epoch__years { font-size: 52px; }
  .esvc { margin: 20px calc(-1 * clamp(20px, 6vw, 96px)) 0; }
  .esvc__track { padding: 0 clamp(20px, 6vw, 96px); scroll-padding-inline: clamp(20px, 6vw, 96px); gap: 10px; }
  .esvc__card { width: 72vw; max-width: 280px; min-height: 140px; }
  .esvc__card--all { width: 150px; }

  .dots { right: 8px; gap: 8px; }
  .dots span { display: none; }

  .contact-fab { right: 16px; bottom: calc(16px + var(--safe-b)); }

  .modal { width: 100vw; max-width: 100vw; max-height: 100%; margin: auto 0 0; }
  .modal__box { border-radius: 20px 20px 0 0; }
  .modal--sheet .modal__box { max-height: 92dvh; }
  .modal__map { height: 55vh; }
  .modal__foot .btn { flex: 1; }
}

@media (max-height: 640px) and (max-width: 760px) {
  .epoch__invite { display: none; }
  .epoch__years { font-size: 40px; }
}

/* ---------- Телефон: крупнее подписи и карточки, чтобы читалось с руки ---------- */
@media (max-width: 760px) {
  html, body { font-size: 17px; }
  .kicker, .epoch__num, .epoch__series { font-size: 16px; }
  .epoch__invite { font-size: 17px; }
  .scroll-cue { font-size: 16px; }
  .modal__hours { font-size: 15px; }
}

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

/* Окно «Как добраться»: маршрут в навигаторе */
.modal__foot { flex-direction: column; align-items: stretch; gap: 10px; }
.route__note { margin: 0; padding: 10px 14px; border-left: 2px solid var(--accent); background: var(--raised); border-radius: 0 10px 10px 0; color: var(--text-2); font-size: 15px; }
.route__label { margin: 0; font-size: 14px; color: var(--text-3); }
.route__apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.route__app { justify-content: center; gap: 10px; }
.route__app i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.route__app--yandex i { background: #fc3f1d; }
.route__app--2gis i { background: #19aa1e; }
.route__app--google i { background: #4285f4; }
.route__more { display: flex; gap: 10px; flex-wrap: wrap; }
.route__more .btn { flex: 1; }
@media (max-width: 720px) { #mapModal .modal__map { height: 36vh; } .route__app { padding-left: 8px; padding-right: 8px; gap: 8px; } }
@media (max-width: 330px) { .route__apps { grid-template-columns: 1fr; } }

/* ---------- Hero стоя (телефон, планшет): фото 9:16, Марат по центру — текст вниз ----------
   Стоит в конце файла: перекрывает правила hero из блока телефона выше */
@media (orientation: portrait) {
  .hero { justify-content: flex-end; padding-top: calc(var(--header-h) + 16px); padding-bottom: calc(164px + var(--safe-b)); }
  /* Экран телефона уже фото 9:16 — фото вписывается по высоте и само выше не сдвигается.
     Делаем его на 14% выше экрана и поднимаем: уходит часть потолка, голова выше, текст ложится на куртку, а не на шею */
  .hero__img { position: relative; top: -14%; height: 114%; }
  .hero__img img { object-position: 50% 0; }
  .panel__shade--hero {
    background: linear-gradient(to bottom, rgba(12,13,15,.55) 0%, rgba(12,13,15,0) 16%, rgba(12,13,15,0) 42%, rgba(12,13,15,.82) 64%, rgba(12,13,15,.96) 100%);
  }
  .hero .kicker { display: none; } /* название уже в шапке; экономим высоту, чтобы текст не закрыл лицо */
  .hero__title { font-size: clamp(32px, 8.4vw, 48px); }
  .hero__quote { margin-top: 16px; }
}
/* Невысокие телефоны: короткая цитата, чтобы текст не наезжал на лицо */
@media (orientation: portrait) and (max-height: 800px) {
  .hero__q-full { display: none; }
  .hero__q-short { display: inline; }
}
/* Совсем невысокие (iPhone SE и т. п.): ещё компактнее */
@media (orientation: portrait) and (max-height: 720px) {
  .hero { padding-bottom: calc(148px + var(--safe-b)); }
  .hero__title { font-size: 30px; }
  .hero__quote { padding-left: 14px; }
  .hero__quote p { font-size: 15px; line-height: 1.45; }
}
