/* ============================================================
   АВТОСЕРВИС РЕЯ — style.css
   Дизайн-система: «приборная панель / сервис-мануал»
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  /* палитра */
  --bg: #0B0C0F;            /* обсидиан */
  --bg-raised: #101216;     /* антрацит */
  --bg-card: #0F1115;
  --line: rgba(235, 240, 255, 0.08);
  --line-strong: rgba(235, 240, 255, 0.14);
  --text: #F2EFE9;          /* тёплый белый */
  --muted: #A7ACB6;
  --muted-2: #7C818C;
  --amber: #E39A3B;         /* янтарь приборной подсветки */
  --amber-hot: #F0B254;
  --amber-dim: rgba(227, 154, 59, 0.14);
  --redline: #C4452D;       /* только там, где красная зона у прибора */
  --error: #E5715A;
  --on-amber: #17120A;

  /* шрифты */
  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* геометрия */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 16px;
  --radius-sm: 12px;

  /* движение */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.65s;
  --dur-fast: 0.2s;

  /* слои */
  --z-header: 60;
  --z-menu: 50;
  --z-bar: 40;
  --z-noise: 80;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 17px; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
em { font-style: normal; }

::selection { background: var(--amber); color: var(--on-amber); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* плёночное зерно поверх всего — материальность экрана */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-noise);
  pointer-events: none;
  opacity: 0.05;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--amber);
  color: var(--on-amber);
  font-weight: 600;
  border-radius: 10px;
  transform: translateY(-200%);
  transition: transform var(--dur-fast) ease;
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- Типографика ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(227, 154, 59, 0.8);
  flex: none;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.65rem, 2.6vw + 0.5rem, 2.55rem);
  line-height: 1.14;
  letter-spacing: -0.005em;
  margin-top: 18px;
  max-width: 21ch;
}
.section__sub {
  color: var(--muted);
  max-width: 56ch;
  margin-top: 16px;
}
.section__head { margin-bottom: clamp(40px, 6vw, 64px); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  position: relative;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              box-shadow 0.3s ease,
              color var(--dur-fast) ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(180deg, var(--amber-hot), var(--amber));
  color: var(--on-amber);
  box-shadow: 0 8px 28px -10px rgba(227, 154, 59, 0.45);
}
.btn--primary:hover {
  box-shadow: 0 12px 36px -10px rgba(227, 154, 59, 0.65);
  transform: translateY(-1px);
}
.btn--primary:active { transform: scale(0.97); }

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover { border-color: rgba(227, 154, 59, 0.55); background: var(--amber-dim); }

.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 14px; }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}
.header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.header.is-scrolled {
  background: rgba(11, 12, 15, 0.75);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}
.header.is-scrolled::after { opacity: 1; }

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 78px;
  transition: height 0.35s var(--ease-out);
}
.header.is-scrolled .header__inner { height: 64px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-height: 44px;
}
.brand__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.06em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand__text small {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.nav { display: flex; gap: 4px; }
.nav__link {
  position: relative;
  padding: 12px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--dur-fast) ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 1.5px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 0;
  transition: color var(--dur-fast) ease;
  font-variant-numeric: tabular-nums;
}
.header__phone:hover { color: var(--amber); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  position: relative;
  z-index: calc(var(--z-menu) + 2);
}
.burger__line {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.8px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.burger__line:nth-child(1) { top: 18px; }
.burger__line:nth-child(2) { top: 25px; }
.burger.is-open .burger__line:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open .burger__line:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Мобильное меню ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: rgba(11, 12, 15, 0.97);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px var(--gutter) 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 6.5vw, 34px);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color var(--dur-fast) ease;
}
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu__link:hover { color: var(--amber); }
.mobile-menu__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.1em;
}
.mobile-menu__footer {
  margin-top: 48px;
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
}
.mobile-menu.is-open .mobile-menu__footer { opacity: 1; }
.mobile-menu__phone {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.mobile-menu__addr { color: var(--muted-2); font-size: 14px; margin-top: 8px; }

body.menu-open { overflow: hidden; }

/* ---------- Хиро: скролл-сцена ----------
   Изображение раскрывается из «кадра» до полного экрана по мере
   прокрутки. Ведётся одной переменной --p (0..1), которую пишет JS;
   вся геометрия — производные calc() от неё. */
.shero {
  --p: 0;
  --ip: calc(1 - var(--p));
  /* геометрия кадра; JS уточняет по реальному свободному месту под текстом */
  --bt: 54%;
  --bx: 13%;
  --bb: 7%;
  position: relative;
  height: 100dvh; /* без JS — статичная композиция */
}
.js .shero { height: calc(100dvh + 1250px); }

.shero__stage {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

.shero__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 18%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 18%, black 0%, transparent 70%);
  opacity: calc(0.55 * var(--ip));
}

.eyebrow--center { justify-content: center; }

.shero__flow {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(78px + 3vh) var(--gutter) 106px; /* снизу — место под подсказку «листайте» */
  pointer-events: none;
}
.shero__text {
  width: min(94vw, 880px);
  text-align: center;
  transform: translateY(calc(var(--p) * -54px));
  opacity: calc(1 - var(--p) * 2.3);
  pointer-events: auto;
}
.shero__slot {
  flex: 1 1 auto;
  align-self: stretch;
  min-height: 150px;
  margin-top: clamp(22px, 4vh, 44px);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 2.6vw + 0.8rem, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-top: 24px;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero__line > span { display: block; }

.hero__sub {
  color: var(--muted);
  font-size: clamp(16px, 1vw + 10px, 18px);
  max-width: 52ch;
  margin: 20px auto 0;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.hero__cta .btn--ghost { font-family: var(--font-mono); font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }

.shero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(
    calc(var(--bt) * var(--ip))
    calc(var(--bx) * var(--ip))
    calc(var(--bb) * var(--ip))
    calc(var(--bx) * var(--ip))
    round calc(22px * var(--ip))
  );
}
.shero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  transform: scale(calc(1 + 0.14 * var(--ip)));
  transform-origin: 50% 72%;
}
.shero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 15, 0.42), transparent 32%, transparent 60%, rgba(11, 12, 15, 0.82));
  opacity: var(--p);
}
.shero__caption {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 239, 233, 0.8);
  opacity: clamp(0, calc(var(--p) * 4 - 3), 1);
}

.shero__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.shero__hint-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: calc(1 - var(--p) * 3.5);
}
.shero__hint-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.shero__hint-line {
  position: relative;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(227, 154, 59, 0.7), transparent);
  overflow: hidden;
}
.shero__hint-line::after {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: var(--amber);
}
@media (prefers-reduced-motion: no-preference) {
  .shero__hint-line::after { animation: hintDrop 2.1s var(--ease-inout) infinite; }
}
@keyframes hintDrop {
  0% { transform: translateY(-12px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(48px); opacity: 0; }
}

/* последовательность появления при загрузке */
.js [data-load] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.js .hero__line { transform: none; opacity: 1; }
.js .hero__line > span {
  transform: translateY(115%);
  transition: transform 0.9s var(--ease-out);
}
body.is-loaded [data-load] { opacity: 1; transform: translateY(0); }
body.is-loaded .hero__line > span { transform: translateY(0); }
[data-load="1"], .hero__line[data-load="2"] > span { transition-delay: 0.08s; }
.hero__line[data-load="3"] > span { transition-delay: 0.2s; }
[data-load="4"] { transition-delay: 0.36s; }
[data-load="5"] { transition-delay: 0.5s; }
[data-load="6"] { transition-delay: 0.64s; }
[data-load="7"] { transition-delay: 1s; }

/* ---------- Бегущая строка ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
  overflow: hidden;
  padding: 15px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 42s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee__group span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 0 22px;
  white-space: nowrap;
}
.marquee__group i {
  font-style: normal;
  color: var(--amber);
  font-size: 13px;
}

/* ---------- Секции ---------- */
.section { padding-block: clamp(84px, 11vw, 140px); position: relative; }
.section--tinted {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* появление при скролле */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.js [data-reveal].in-view { opacity: 1; transform: translateY(0); }

/* ---------- Услуги ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card), rgba(15, 17, 21, 0.6));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, background-color 0.35s ease;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(227, 154, 59, 0.11), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
@media (hover: hover) {
  .service-card:hover { transform: translateY(-5px); border-color: rgba(227, 154, 59, 0.32); }
  .service-card:hover::after { opacity: 1; }
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
}
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid rgba(227, 154, 59, 0.2);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: 999px;
}
.service-card__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.002em;
  line-height: 1.3;
}
.service-card__text {
  color: var(--muted);
  font-size: 15px;
  margin-top: 10px;
  line-height: 1.6;
}
.service-card__tags {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

/* ---------- Процесс ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
}
.process-step { position: relative; padding-top: 26px; }
.process-step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--line) 110%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-inout) calc(var(--rd, 0ms) + 150ms);
}
.process-step.in-view::before { transform: scaleX(1); }
.process-step::after {
  content: "";
  position: absolute;
  top: -3.5px; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(227, 154, 59, 0.7);
  opacity: 0;
  transition: opacity 0.4s ease calc(var(--rd, 0ms) + 150ms);
}
.process-step.in-view::after { opacity: 1; }
.process-step__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--amber);
  letter-spacing: 0.06em;
}
.process-step__title {
  font-size: 19px;
  font-weight: 600;
  margin-top: 12px;
}
.process-step__text {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
}

/* ---------- Запись ---------- */
/* ---------- Блок записи (без формы) ---------- */
.callto {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, rgba(227, 154, 59, 0.07), transparent 70%),
    linear-gradient(180deg, var(--bg-card), rgba(15, 17, 21, 0.5));
}
.callto__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw + 0.5rem, 2.35rem);
  line-height: 1.16;
  margin-top: 18px;
}
.callto__sub {
  color: var(--muted);
  max-width: 52ch;
  margin: 16px auto 0;
}
.callto__phone {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(26px, 4.4vw, 40px);
  letter-spacing: 0.01em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  margin-top: clamp(26px, 4vw, 38px);
  transition: color var(--dur-fast) ease;
}
.callto__phone:hover { color: var(--amber-hot); }

.callto__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.callto__item dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.callto__item dd {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
  text-wrap: balance;
}
.callto__note {
  color: var(--muted-2);
  font-size: 13.5px;
  margin-top: 22px;
}
.callto__note a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(227, 154, 59, 0.45);
  transition: color var(--dur-fast) ease;
}
.callto__note a:hover { color: var(--amber); }

.map-frame__note {
  position: absolute;
  bottom: 18px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  pointer-events: none;
}

.callto__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 38px);
}

/* ---------- Контакты ---------- */
.contacts {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: stretch;
}
.contacts__list { display: flex; flex-direction: column; }
.contacts__item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: baseline;
}
.contacts__item:last-child { border-bottom: 1px solid var(--line); }
.contacts__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contacts__value {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
}
.contacts__value a {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  transition: color var(--dur-fast) ease;
}
.contacts__value a:hover { color: var(--amber); }
.contacts__hint {
  display: block;
  color: var(--muted-2);
  font-size: 13.5px;
  font-weight: 400;
  margin-top: 3px;
}
.contacts__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.map-frame {
  position: relative;
  min-height: 320px;
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(227, 154, 59, 0.05), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  background-color: var(--bg-raised);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) hue-rotate(185deg) contrast(0.92) brightness(0.9);
}
.map-frame__load { gap: 10px; }
.map-frame__load {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  background: rgba(11, 12, 15, 0.6);
  transition: border-color var(--dur-fast) ease, background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.map-frame__load:hover { border-color: rgba(227, 154, 59, 0.55); background: var(--amber-dim); }
.map-frame__load:active { transform: scale(0.97); }
.map-frame__load svg { color: var(--amber); }

/* ---------- Подвал ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.06em;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer__brand small {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.footer__meta { color: var(--muted); font-size: 14px; }
.footer__meta a {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  transition: color var(--dur-fast) ease;
}
.footer__meta a:hover { color: var(--amber); }
.footer__copy { color: var(--muted-2); font-size: 13px; }

.footer__legal {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.footer__requisites { color: var(--muted-2); font-size: 12.5px; }
.footer__nodata { color: var(--muted-2); font-size: 12.5px; max-width: 62ch; }


/* ---------- Мобильная панель действий ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-bar);
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 12, 15, 0.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  transform: translateY(0);
  transition: transform 0.4s var(--ease-out), opacity 0.3s ease;
}
.mobile-bar.is-hidden {
  transform: translateY(115%);
  opacity: 0;
  pointer-events: none;
}
.mobile-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform var(--dur-fast) var(--ease-out);
}
.mobile-bar__btn:active { transform: scale(0.97); }
.mobile-bar__btn--call {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.mobile-bar__btn--call svg { color: var(--amber); }
.mobile-bar__btn--book {
  background: linear-gradient(180deg, var(--amber-hot), var(--amber));
  color: var(--on-amber);
}

/* ============================================================
   Адаптивность
   ============================================================ */
@media (max-width: 1120px) {
  .header__phone { display: none; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .burger { display: block; }
  .header .btn--sm { display: none; }

  .services { grid-template-columns: repeat(2, 1fr); }

  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }

  .contacts { grid-template-columns: 1fr; }
  .map-frame { min-height: 380px; height: auto; aspect-ratio: 16 / 11; }
}

/* ---------- Мобильная проработка ---------- */
@media (max-width: 980px) {
  .mobile-bar { display: grid; }
  body { padding-bottom: 78px; }
  .footer { padding-bottom: 20px; }

  /* хиро: короче путь раскрытия, ниже точка фокуса; подсказку заменяет нижняя панель */
  .js .shero { height: calc(100dvh + 900px); }
  .shero__hint { display: none; }
  .shero__flow { padding-top: calc(72px + 2vh); padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
  .shero__img { object-position: 62% 58%; }
  .shero__caption { display: none; } /* на мобильных угол кадра занят нижней панелью */
}

@media (max-width: 640px) {
  .section { padding-block: 72px; }
  .section__head { margin-bottom: 36px; }

  .services { grid-template-columns: 1fr; gap: 14px; }
  .service-card { padding: 26px 22px 24px; }
  .service-card__top { margin-bottom: 28px; }

  /* процесс: вертикальная рейка с точками вместо горизонтальных линий */
  .process { grid-template-columns: 1fr; position: relative; padding-left: 26px; row-gap: 34px; }
  .process::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(180deg, var(--amber) 0%, var(--line) 96%);
  }
  .process-step { padding-top: 0; }
  .process-step::before { display: none; }
  .process-step::after { left: -26.5px; top: 7px; }

  .contacts__item { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .contacts__actions .btn { flex: 1 1 100%; }
  .map-frame { aspect-ratio: 4 / 5; min-height: 0; }

  .hero__cta { gap: 10px; }
  .hero__cta .btn { width: min(100%, 340px); }
  .hero__title { font-size: clamp(1.5rem, 6.7vw, 1.72rem); } /* две ровные строки на узких экранах */

  .callto { padding: 30px 20px; }
  .callto__phone { font-size: clamp(23px, 7.4vw, 30px); }
  .callto__actions .btn { width: 100%; }


  .footer__inner { flex-direction: column; align-items: flex-start; gap: 8px; }

  .mobile-menu__link { font-size: clamp(24px, 6vw, 30px); }
}

/* ============================================================
   Reduced motion — уважение к настройкам системы
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-load], .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__line > span { transform: none; }
  .js .shero { height: 100dvh; } /* без «мёртвой» прокрутки — статичная сцена */
  .shero__hint { display: none; }
  .marquee__track { animation: none !important; }
}
