/*
  Excavation Atlanta: дизайн-система (вся стилистика сайта).
  Без внешних запросов. Текст: системные шрифты. Заголовки: Barlow Condensed (OFL), self-host из assets/fonts/ (font-display: swap).

  Контраст пар (WCAG, расчёт по формуле относительной яркости):
    ink    #15130F на paper #FAF6EE   17.21:1   ink на sand #EDE3D0   14.58:1   ink на white   18.55:1
    muted  #5C5448 на paper            6.92:1   muted на sand         5.86:1   muted на white  7.46:1
    clay-deep #8F3E1E на paper         6.77:1   на sand               5.74:1   на white        7.30:1
    clay   #B5532B на paper            4.60:1   (допустимо и для обычного текста, но для текста берём clay-deep)
    paper  на ink                     17.21:1   paper на ink-2 #211D17 15.55:1
    muted-dark #C9BFAE на ink         10.20:1   на ink-2               9.22:1
    amber  #F5A800 на ink              9.26:1   на ink-2               8.37:1   (текст кнопки ink на amber 9.26:1)
    paper  на clay-deep                6.77:1   paper на clay          4.60:1
    danger #B3261E на white            6.54:1   на paper               6.06:1   danger-dark #FF9C94 на ink-2 8.33:1
    focus  #1F6FEB на paper            4.30:1   на sand 3.64:1   #FFD166 на ink 12.87:1  (кольцо: нетекстовый элемент, нужно >= 3:1)
  Все пары для обычного текста не ниже 4.5:1.

  Брейкпоинты: 640, 960, 1200 (+1400 для горизонтального меню в шапке).
*/

/* Barlow Condensed 600/700: файлы лежат в public/assets/fonts/. Нет файла, и заголовки идут запасным стеком (Arial Narrow и системные) без правок CSS. */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}

:root {
  --ink: #15130f;
  --ink-2: #211d17;
  --paper: #faf6ee;
  --sand: #ede3d0;
  --clay: #b5532b;
  --clay-deep: #8f3e1e;
  --amber: #f5a800;
  --amber-press: #b97f00;
  --muted: #5c5448;
  --muted-dark: #c9bfae;
  --focus: #1f6feb;
  --danger: #b3261e;
  --white: #ffffff;
  --line: rgba(21, 19, 15, 0.14);
  --line-dark: rgba(250, 246, 238, 0.16);

  --r-s: 6px;
  --r-m: 12px;
  --r-l: 20px;

  --font: ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow-1: 0 1px 2px rgba(21, 19, 15, 0.06), 0 6px 18px rgba(21, 19, 15, 0.07);
  --shadow-2: 0 2px 4px rgba(21, 19, 15, 0.08), 0 18px 40px rgba(21, 19, 15, 0.16);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 68px;
}

/* ---------- reset и база ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-padding-bottom: 96px; /* закреплённая панель звонка на ширине < 960px */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-synthesis: none;
  line-height: 1;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1, h2 { text-transform: uppercase; }
h1 { font-size: clamp(2.8rem, 7.2vw, 5rem); line-height: 0.96; letter-spacing: 0; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1; }
h3 { font-size: clamp(1.4rem, 2.3vw, 1.8rem); line-height: 1.08; font-weight: 600; letter-spacing: 0.01em; }
h4 { font-size: 1.1875rem; letter-spacing: 0.02em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

a {
  color: var(--clay-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s;
}
a:hover { color: var(--ink); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--amber); color: var(--ink); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--r-s);
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; outline: 3px solid var(--ink); outline-offset: 2px; }

/* на тёмном кольцо фокуса светлое */
.site-header, .site-footer, .section--dark, .hero, .cta-band, .callbar {
  --focus: #ffd166;
}
.cta-band :focus-visible { outline-color: var(--ink); }

/* ---------- раскладка ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 640px) { .container { padding-inline: 32px; } }

.section { padding-block: clamp(56px, 9vw, 112px); position: relative; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark a { color: var(--amber); }
.section--dark a:hover { color: var(--paper); }
.section--dark .muted, .section--dark p { color: inherit; }
.section--sand { background: var(--sand); }

.section__head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 52px); }
.section__head h2 { margin-bottom: 0.35em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); }
.section--dark .lead, .hero .lead { color: var(--muted-dark); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay-deep);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 36px; height: 4px;
  background: currentColor;
  border-radius: 2px;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--amber); }

.grid-2, .grid-3 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .grid-2 { gap: 32px; }
}
.grid-2 > *, .grid-3 > * { min-width: 0; }

/* текст + иллюстрация */
.split { display: grid; gap: 32px; align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--reverse > :first-child { order: 2; }
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  font: inherit;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--r-s);
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s, color 0.18s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.btn__icon { flex: none; }
.btn--primary {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--amber-press), 0 10px 22px rgba(245, 168, 0, 0.25);
}
.btn--primary:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 0 var(--amber-press), 0 14px 28px rgba(245, 168, 0, 0.32); }
.btn--primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--amber-press); }
.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .callbar .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero .btn--ghost, .section--dark .btn--ghost { color: var(--paper); }
.section--dark a.btn--primary, .hero a.btn--primary { color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 #000; }
.btn--dark:hover { color: var(--paper); background: var(--ink-2); transform: translateY(-2px); }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; transform: none; }

/* ---------- шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--paper); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--amber);
  color: var(--ink);
  border-radius: var(--r-s);
  transform: rotate(-4deg);
  transition: transform 0.3s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(3deg) scale(1.06); }
.brand__text { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.brand__sub { color: var(--amber); text-transform: uppercase; font-size: 1.5rem; letter-spacing: 0.02em; margin-left: 2px; }

.btn--call { flex: none; white-space: nowrap; min-height: 44px; padding: 0 14px; font-size: 1.0625rem; gap: 6px; }
@media (max-width: 639px) {
  .site-header__inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__text { font-size: 1.0625rem; }
  .brand__sub { font-size: 1.0625rem; letter-spacing: 0.02em; }
}
.btn__num { display: none; }
/* до 960px кнопка звонка в шапке сжата до иконки 44x44 (подпись остаётся для скринридера); номер есть в нижней панели */
@media (max-width: 959px) {
  .btn--call { width: 44px; padding: 0; justify-content: center; }
  .btn--call .btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 960px) {
  .btn--call { padding: 0 20px; }
  .btn__num { display: inline; }
}

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  color: var(--paper);
  background: transparent;
  border: 2px solid var(--line-dark);
  border-radius: var(--r-s);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.nav-toggle:hover { border-color: var(--amber); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block;
  width: 22px; height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), background-color 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* меню: без JS всегда раскрыто под шапкой; с JS сворачивается */
.site-nav {
  order: 5;
  flex-basis: 100%;
  padding-bottom: 12px;
}
.site-header__inner { flex-wrap: wrap; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; animation: nav-drop 0.25s var(--ease); }
@keyframes nav-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.site-nav__list { list-style: none; margin: 0; padding: 0; display: grid; }
.site-nav__list li { margin: 0; }
.site-nav__link {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid var(--line-dark);
  position: relative;
  transition: color 0.2s, padding-left 0.2s var(--ease);
}
.site-nav__link:hover { color: var(--amber); padding-left: 10px; }
.site-nav__link[aria-current="page"] { color: var(--amber); }
.site-nav__link[aria-current="page"]::after {
  content: "";
  margin-left: 10px;
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
}

@media (min-width: 1400px) {
  .site-header .container { max-width: 1400px; padding-inline: 24px; }
  .site-header__inner { flex-wrap: nowrap; gap: 18px; }
  .nav-toggle { display: none; }
  /* в разметке бургер и кнопка звонка идут раньше меню (порядок Tab на мобильном); на широком экране возвращаем визуальный порядок */
  .btn--call { order: 2; }
  .site-nav, .js .site-nav { display: block; order: 0; flex-basis: auto; padding: 0; margin-left: auto; }
  .brand { margin-right: 0; }
  .site-nav__list { display: flex; gap: 2px; }
  .site-nav__link {
    min-height: 44px;
    padding: 0 8px;
    letter-spacing: 0.02em;
    font-size: 1rem;
    border-top: 0;
    border-radius: var(--r-s);
    white-space: nowrap;
  }
  .site-nav__link:hover { padding-left: 8px; background: rgba(250, 246, 238, 0.07); }
  .site-nav__link[aria-current="page"]::after { display: none; }
  .site-nav__link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--amber); border-radius: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(181, 83, 43, 0.35), transparent 60%),
    var(--ink);
  color: var(--paper);
  padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px);
}
/* контурные линии рельефа */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    repeating-radial-gradient(ellipse at 15% 110%, transparent 0 26px, rgba(237, 227, 208, 0.07) 26px 27.5px),
    repeating-radial-gradient(ellipse at 95% 0%, transparent 0 34px, rgba(237, 227, 208, 0.05) 34px 35.5px);
  pointer-events: none;
  animation: topo-drift 36s linear infinite alternate;
}
@keyframes topo-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-3%, 2%, 0); } }
/* «опасная» полоса внизу */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, var(--ink) 14px 28px);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; }
.hero__inner > * { min-width: 0; }
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
}
.hero h1 { color: var(--paper); margin-bottom: 0.4em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--muted-dark); max-width: 36rem; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; }
.hero--page { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); }
.hero--page h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }

/* ---------- карточки ---------- */
.card {
  position: relative;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--clay), var(--amber));
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(245, 168, 0, 0.13), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(181, 83, 43, 0.4); }
.card:hover::before { transform: scaleX(1); }
.card:hover::after { opacity: 1; }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.45em; }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 18px;
  background: var(--sand);
  color: var(--clay-deep);
  border-radius: var(--r-m);
  font-weight: 800;
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.08); background: var(--amber); color: var(--ink); }
.card--flat { box-shadow: none; }
.card--dark a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.card--dark a:hover { color: var(--paper); }
.section--dark .card, .card--dark { background: var(--ink-2); border-color: var(--line-dark); color: var(--paper); box-shadow: none; }
.section--dark .card:hover, .card--dark:hover { border-color: var(--amber); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.section--dark .card__icon { background: rgba(245, 168, 0, 0.14); color: var(--amber); }
.card--link { text-decoration: none; color: inherit; display: block; }

/* ---------- чек-лист ---------- */
.checklist { list-style: none; margin: 0 0 1.2em; padding: 0; }
.checklist li {
  position: relative;
  margin: 0 0 0.7em;
  padding-left: 38px;
  line-height: 1.5;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.12em;
  width: 24px; height: 24px;
  background: var(--clay-deep);
  border-radius: 6px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l5 5L20 6.5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.section--dark .checklist li::before, .hero .checklist li::before { background: var(--amber); }

/* ---------- рамка иллюстрации ---------- */
.media-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-2);
}
.media-frame img {
  display: block;
  width: 100%;
  height: auto;
  /* заполнитель в тон иллюстрации (земля), пока файл грузится; место держит aspect-ratio из width/height */
  background: linear-gradient(160deg, #3a2f24 0%, #4a3626 55%, #5a3b26 100%);
  animation: media-in .45s ease-out both;
}
@keyframes media-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .media-frame img { animation: none; } }
.media-frame__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dark);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}
.media-frame__tag::before { content: ""; width: 8px; height: 8px; background: var(--amber); border-radius: 50%; }
.media-frame--float { animation: float-y 7s ease-in-out infinite; }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- бегущая строка ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  background: var(--amber);
  color: var(--ink);
  border-block: 3px solid var(--ink);
}
.marquee__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin: 0;
  padding: 14px 20px;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marquee__track li { display: inline-flex; align-items: center; margin: 0; white-space: nowrap; }
.marquee__track li::after { content: ""; width: 10px; height: 10px; margin: 0 22px; background: var(--ink); transform: rotate(45deg); }
.marquee.is-ready { display: flex; align-items: center; }
.marquee__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.marquee.is-ready .marquee__track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  padding: 14px 0;
  animation: marquee 38s linear infinite;
}
.marquee.is-ready:hover .marquee__track, .marquee.is-ready:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
.marquee__toggle {
  flex: none;
  margin: 4px 10px 4px 6px;
  min-width: 64px;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--amber);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
}
.marquee__toggle:hover { background: var(--ink-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA-полоса ---------- */
.cta-band { background: var(--amber); color: var(--ink); padding-block: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(circle at 100% 100%, transparent 0 30px, rgba(21, 19, 15, 0.07) 30px 32px);
  pointer-events: none;
}
.cta-band__inner { position: relative; display: grid; gap: 24px; align-items: center; }
@media (min-width: 960px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: 48px; } }
.cta-band__title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 0.25em; }
.cta-band__text { margin: 0; font-size: 1.125rem; font-weight: 600; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band a { color: inherit; }
.cta-band .btn--dark { color: var(--paper); }
.cta-band .btn--ghost-dark { color: var(--ink); }
.cta-band .btn--ghost-dark:hover { color: var(--paper); }

/* ---------- callout ---------- */
.callout {
  padding: 24px 26px;
  background: var(--sand);
  border: 1px solid var(--line);
  border-top: 5px solid var(--clay);
  border-radius: var(--r-m);
  font-size: 1.0625rem;
}
.callout > :last-child { margin-bottom: 0; }
.callout strong { color: var(--clay-deep); }
.section--sand .callout { background: var(--paper); }
.section--dark .callout { background: var(--ink-2); border-color: var(--line-dark); border-top-color: var(--amber); }
.section--dark .callout strong { color: var(--amber); }

/* ---------- строка-ссылка вместо повторного callout ---------- */
.quote-line { margin: 1.2rem 0 0; font-size: 1rem; font-weight: 600; line-height: 1.5; }
.quote-line .btn__icon { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; color: var(--clay-deep); }
.section--dark .quote-line .btn__icon { color: var(--amber); }
.quote-line a { font-weight: 700; }

/* ---------- плитка списка (без номеров) ---------- */
.tile { display: flex; align-items: center; gap: 16px; min-height: 104px; padding: 22px 26px; }
.tile h3 { margin: 0; }
.tile > h3::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 14px; background: var(--clay); transform: rotate(45deg) translateY(-0.12em); }

/* ---------- три услуги: один ряд широких карточек ---------- */
.svc-trio { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: stretch; }
.svc-card { display: flex; flex-direction: column; padding: 0; }
.svc-card__media { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); flex: none; }
.svc-card__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: repeating-linear-gradient(-45deg, var(--amber) 0 12px, var(--ink) 12px 24px); }
.svc-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 28px; }
.svc-card__body > .quote-line { margin-top: auto; padding-top: 1rem; }
.svc-card__body > p:not(.quote-line):not(.eyebrow) { margin-bottom: 0; }
.svc-card__title { font-size: clamp(1.9rem, 2.6vw, 2.3rem); margin-bottom: 0.45em; text-wrap: balance; }
.svc-card .eyebrow { margin-bottom: 0.7rem; }
@media (min-width: 640px) and (max-width: 959px) {
  .svc-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-card:first-child { grid-column: 1 / -1; flex-direction: row; }
  .svc-card:first-child .svc-card__media { width: 46%; aspect-ratio: auto; min-height: 100%; }
}
@media (min-width: 960px) { .svc-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }

/* ---------- «почему мы»: 3 + 2, нижний ряд растянут ---------- */
.why-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.why-card { display: flex; flex-direction: column; gap: 18px; padding: 28px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--r-m); }
.why-card p { margin: 0; font-size: 1.1875rem; font-weight: 600; line-height: 1.4; color: var(--paper); }
.why-card__icon { flex: none; width: 44px; height: 44px; padding: 8px; color: var(--ink); background: var(--amber); border-radius: var(--r-s); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .why-card:last-child { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .why-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
  .why-card { grid-column: span 2; }
  .why-card:nth-child(n + 4) { grid-column: span 3; flex-direction: row; align-items: center; }
  .why-card:nth-child(n + 4) p { font-size: 1.375rem; }
}

/* ---------- общая пометка про concept art (над подвалом) ---------- */
.concept-note { background: var(--ink); border-top: 1px solid var(--line-dark); color: var(--muted-dark); }
.concept-note__text { margin: 0; padding-block: 14px; font-size: 0.875rem; letter-spacing: 0.04em; text-align: center; }

/* ---------- блок оценки и форма ---------- */
.estimate-section { background: var(--ink); overflow: hidden; }
.estimate-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(ellipse at 100% 100%, transparent 0 28px, rgba(237, 227, 208, 0.05) 28px 29.5px);
  pointer-events: none;
}
.estimate-section__grid { position: relative; display: grid; gap: 40px; align-items: start; }
.estimate-section__grid > * { min-width: 0; }
@media (min-width: 960px) { .estimate-section__grid { grid-template-columns: 0.9fr 1.1fr; gap: 72px; } }
.estimate-section__copy h2 { color: var(--paper); }
.estimate-section__areas { color: var(--muted-dark); font-size: 0.9375rem; }
.contact-list { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.contact-list li { margin: 0 0 0.3rem; }
.contact-list__link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--amber);
  text-decoration: none;
  min-height: 44px;
}
.contact-list__link--small { font-family: var(--font); font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.25rem); letter-spacing: 0; overflow-wrap: anywhere; color: var(--paper); text-decoration: underline; text-decoration-color: var(--amber); }
.section--dark .contact-list__link:hover { color: var(--paper); }
.estimate-section__card {
  padding: clamp(22px, 4vw, 36px);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-l);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  --focus: #1f6feb;
}
.estimate-section__card a { color: var(--clay-deep); }
.estimate-section__card :focus-visible { outline-color: var(--focus); }

.estimate { display: grid; gap: 16px; }
.estimate[data-variant="full"] { grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) {
  .estimate[data-variant="full"] { grid-template-columns: 1fr 1fr; }
  .estimate[data-variant="full"] > .field:has(textarea),
  .estimate[data-variant="full"] > .field--consent,
  .estimate[data-variant="full"] > .btn,
  .estimate[data-variant="full"] > .form-status,
  .estimate[data-variant="full"] > .estimate__alt { grid-column: 1 / -1; }
}
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.9375rem; font-weight: 700; }
.field__opt { font-weight: 500; color: var(--muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 2px solid #b9ae9a;
  border-radius: var(--r-s);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7' fill='none' stroke='%2315130F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--clay); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field--consent {
  grid-template-columns: 44px 1fr;
  align-items: start;
  column-gap: 4px;
}
/* область касания 44x44, рисунок квадрата прежний 24x24 (фоном) */
.field--consent input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 44px; height: 44px; margin: -10px 0 -10px;
  padding: 0;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1.5' y='1.5' width='21' height='21' rx='4' fill='%23fff' stroke='%23706656' stroke-width='2'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
}
.field--consent input[type="checkbox"]:hover { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1.5' y='1.5' width='21' height='21' rx='4' fill='%23fff' stroke='%23B5532B' stroke-width='2'/%3E%3C/svg%3E"); }
.field--consent input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1' y='1' width='22' height='22' rx='4.5' fill='%238F3E1E'/%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.field--consent input[type="checkbox"][aria-invalid="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='1.5' y='1.5' width='21' height='21' rx='4' fill='%23fff' stroke='%23B3261E' stroke-width='2.4'/%3E%3C/svg%3E"); }
.field--consent input[type="checkbox"]:focus-visible { outline: 3px solid var(--focus); outline-offset: -4px; border-radius: 8px; }
.field--consent label { font-weight: 500; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); padding-block: 0; min-height: 44px; }
.field--consent .field-error { grid-column: 1 / -1; }
.field-error { margin: 0; font-size: 0.875rem; font-weight: 700; color: var(--danger); }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.14); }
.form-status { font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 12px 14px; color: var(--danger); background: #fdecea; border-radius: var(--r-s); }
.form-status.is-success { padding: 12px 14px; color: var(--ink); background: #e7f2e3; border-radius: var(--r-s); }
.estimate__alt { margin: 0; font-size: 0.9375rem; text-align: center; color: var(--muted); }
.estimate__alt a { font-weight: 800; display: inline-flex; align-items: center; min-height: 44px; }
.estimate-done { padding: 8px 0; }
.estimate-done h3 { color: var(--clay-deep); }

/* honeypot */
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- подвал ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); padding-block: clamp(48px, 7vw, 80px) 28px; border-top: 6px solid var(--amber); }
.site-footer a { color: var(--paper); text-decoration-color: rgba(250, 246, 238, 0.3); }
.site-footer a:hover { color: var(--amber); }
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 48px; } }
.site-footer__grid > * { min-width: 0; }
.site-footer__lead { margin-top: 16px; max-width: 24rem; }
.site-footer__title { margin: 0 0 14px; font-size: 1.125rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin: 0; }
.site-footer__list a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.site-footer__phone { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; }
.site-footer__areas { margin: 0; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 0.9375rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- закреплённая панель звонка (телефон) ---------- */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(21, 19, 15, 0.96);
  border-top: 1px solid var(--line-dark);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
}
.callbar .btn { min-height: 48px; padding-inline: 12px; font-size: 0.9375rem; }
.callbar .btn--ghost { color: var(--paper); }
body { padding-bottom: 76px; }
@media (min-width: 960px) {
  html { scroll-padding-bottom: 0; }
  .callbar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- телефон (до 640px): один главный призыв, панель не мешает форме, ссылки не мельче 44px ---------- */
.callbar.is-form-visible { grid-template-columns: 1fr; }
.callbar.is-form-visible .btn--ghost { display: none; }
.field, .estimate__alt { scroll-margin-block: 96px; }
/* до 960px в hero нет второго звонка: номер в шапке (иконка) и в нижней панели */
@media (max-width: 959px) {
  .hero__actions .btn--ghost[href^="tel:"] { display: none; }
}
@media (max-width: 640px) {
  .estimate-section { padding-bottom: 104px; }
}
/* ссылки в тексте: область касания не меньше 44px по высоте, вид и строки не меняются (inline-padding не двигает строку) */
main p a:not(.btn), main li a:not(.btn), .site-footer p a, .field--consent label a { padding-block: 14px; }
.site-footer__bottom a { padding-block: 0; }
.estimate__alt a { padding-block: 0; }

/* ---------- прочее ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.7rem, 3vw, 2.3rem); text-transform: none; }
.prose h3 { margin-top: 1.4em; }
.placeholder-flag { padding: 1px 6px; font-weight: 700; color: var(--ink); background: #fbe3a4; border-radius: 4px; }
.tag { display: inline-block; padding: 4px 12px; font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--sand); color: var(--clay-deep); border-radius: 999px; }

/* ---------- появление при прокрутке (без JS всё видно) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1 { --d: 1; }

/* =====================================================================
   F3: AI-картинки (concept art) и моушен
   Один язык: золотой час, красная глина, янтарь. Всё движение отключается
   блоком reduce-motion в конце файла (@media и html[data-motion="reduce"]).
   ===================================================================== */

/* ---------- слой картинки: параллакс и медленный zoom ---------- */
.ai-layer { display: block; width: 100%; height: 100%; }
.ai-layer img { width: 100%; height: 100%; object-fit: cover; }
.js .ai-layer { transform: scale(1.14); will-change: transform; }

.ai-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
}
.ai-frame > .media-frame__tag,
.hero__tag,
.scene__tag {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(21, 19, 15, 0.86);
  border: 1px solid rgba(250, 246, 238, 0.16);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ai-frame > .media-frame__tag { left: 14px; bottom: 14px; }
.ai-frame > .media-frame__tag::before,
.hero__tag::before,
.scene__tag::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--amber); border-radius: 50%; }

/* «шторка»: занавес стягивается и открывает кадр (clip-path); без JS занавеса нет */
.hero .ai-frame::after,
.reveal-shutter::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(180deg, var(--ink-2), var(--clay-deep));
  clip-path: inset(0 0 0 0);
  pointer-events: none;
}
.hero .ai-frame::after { animation: curtain-open 1.25s 0.15s var(--ease) both; }
.js .reveal-shutter::after { transition: clip-path 1.1s var(--ease); }
.js .reveal-shutter.is-visible::after { clip-path: inset(0 0 100% 0); }
html:not(.js) .reveal-shutter::after { display: none; }
@keyframes curtain-open { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }

/* медленный zoom кадра (Ken Burns) */
@keyframes kenburns {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.13) translate3d(-1.6%, -1%, 0); }
}
.hero .ai-layer img, .hero__bg img, .scene__shot.is-top img { animation: kenburns 26s ease-in-out infinite alternate; }

/* ---------- hero главной: кинематографичный ---------- */
.hero--cinematic {
  display: grid;
  align-items: center;
  min-height: min(90svh, 840px);
  padding: 0;
  isolation: isolate;
}
.hero--cinematic::before { display: none; }
/* до 960px hero занимает первый экран целиком (минус шапка): бегущая строка с кнопкой паузы начинается ниже нижней панели, а не под ней */
@media (max-width: 959px) {
  .hero--cinematic { min-height: calc(100svh - 69px); align-items: start; }
}

.hero__bg {
  position: absolute;
  inset: -14% 0 0 0;
  z-index: -3;
  will-change: transform;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 58%; transform-origin: 62% 55%; }
/* на телефоне видно около трети кадра: смещаем к ковшу и траншее (кадр hero-excavator), а не к одной стреле */
@media (max-width: 959px) {
  /* кадр сверху, над текстом, без сильной обрезки: видны ковш, стрела и траншея, а не одна стрела; низ растворяется в тёмный фон */
  .hero--cinematic .hero__bg { inset: 0 0 auto 0; height: 372px; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%); mask-image: linear-gradient(180deg, #000 62%, transparent 100%); }
  .hero__bg img { object-position: 84% 50%; }
}
/* видео-петля: только от 960px (скрипт даже не запрашивает файл на узких экранах); поверх неподвижного кадра-постера */
.hero__video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 58%;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}
@media (min-width: 960px) {
  .hero__video { display: block; transition: opacity 0.6s ease; }
  .hero.has-video .hero__video { opacity: 1; }
  .hero.has-video .hero__video.is-ending { opacity: 0; }
  /* пока играет видео, кадр под ним стоит на месте: на стыке петли постер совпадает с первым кадром */
  .hero.has-video .hero__bg img { animation: none; transform: none; }
}
/*
  Затемнение под текст. Контраст считался по самому яркому пикселю кадра под текстом:
  на широком экране колонка текста (до 55% ширины) лежит под слоем не менее .74: по самому яркому
  пикселю кадра (98-й процентиль) текст lead не ниже 5.2:1; янтарный eyebrow стоит в левой колонке
  (слой .84-.9, больше 7:1), янтарное em в h1 крупное (нужно 3:1, на краю колонки 3.7:1). Расчёт сделан в браузере.
  На узком экране текст начинается ниже верхней трети, где слой уже .86.
*/
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(0deg, rgba(21, 19, 15, 0.78) 0%, rgba(21, 19, 15, 0) 34%),
    linear-gradient(180deg, rgba(21, 19, 15, 0.1) 0, rgba(21, 19, 15, 0.3) 150px, rgba(21, 19, 15, 0.86) 270px, rgba(21, 19, 15, 0.92) 100%);
}
@media (min-width: 960px) {
  .hero__scrim {
    background:
      linear-gradient(0deg, rgba(21, 19, 15, 0.7) 0%, rgba(21, 19, 15, 0) 30%),
      linear-gradient(90deg, rgba(21, 19, 15, 0.9) 0%, rgba(21, 19, 15, 0.84) 40%, rgba(21, 19, 15, 0.74) 56%, rgba(21, 19, 15, 0.3) 78%, rgba(21, 19, 15, 0.08) 100%);
  }
}
.hero--cinematic .hero__inner {
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(226px, 52vw, 300px) 64px; /* нижняя панель (около 70px) не должна налезать на кнопку: запас над ней не меньше 16px */
}
@media (min-width: 640px) { .hero--cinematic .hero__inner { padding-block: 330px 72px; } }
@media (min-width: 960px) { .hero--cinematic .hero__inner { padding-block: clamp(72px, 9vw, 120px) clamp(88px, 10vw, 136px); } }
.hero--cinematic .hero__copy { max-width: 44rem; text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5); }
.hero--cinematic h1 { font-size: clamp(3rem, 8vw, 6.2rem); line-height: 0.94; letter-spacing: 0.005em; max-width: 14ch; }
.hero--cinematic .hero__lead { color: #e2d9c7; }
.hero__tag { top: 14px; right: 14px; }
@media (min-width: 960px) { .hero__tag { top: 22px; right: 28px; } }

/* входная раскадровка текста */
.hero--cinematic .hero__copy > * { animation: hero-rise 0.5s var(--ease) both; }
.hero--cinematic .hero__copy > :nth-child(2) { animation-delay: 0.03s; }
.hero--cinematic .hero__copy > :nth-child(3) { animation-delay: 0.1s; }
.hero--cinematic .hero__copy > :nth-child(4) { animation-delay: 0.16s; }
@keyframes hero-rise { from { opacity: 0.001; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* закат темнеет при прокрутке: --dusk (0..1) выставляет site.js; при reduce-motion переменной нет и слои скрыты */
.hero__dusk, .hero__wire { display: none; }
@media (min-width: 960px) {
  .hero__dusk {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: calc(var(--dusk, 0) * 0.85);
    background: linear-gradient(180deg, rgba(12, 16, 34, 0.92), rgba(34, 18, 42, 0.6) 55%, rgba(8, 6, 6, 0.88));
    mix-blend-mode: multiply;
  }
  .hero__wire {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: max(0, calc((var(--dusk, 0) - 0.2) * 0.9));
    background:
      repeating-linear-gradient(0deg, rgba(245, 168, 0, 0.5) 0 1px, transparent 1px 34px),
      repeating-linear-gradient(90deg, rgba(245, 168, 0, 0.5) 0 1px, transparent 1px 34px);
    -webkit-mask: radial-gradient(34% 46% at 68% 54%, #000 28%, transparent 78%);
    mask: radial-gradient(34% 46% at 68% 54%, #000 28%, transparent 78%);
  }
  .hero__label {
    position: absolute;
    padding: 7px 11px;
    border: 1px solid rgba(245, 168, 0, 0.55);
    border-radius: 9px;
    background: rgba(21, 19, 15, 0.6);
    backdrop-filter: blur(8px);
    color: var(--amber);
    font: 600 12px/1.2 'Cascadia Mono', Consolas, monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .hero__label.is-on { opacity: 1; transform: none; }
  .hero__label--1 { left: 60%; top: 46%; }
  .hero__label--2 { left: 72%; top: 68%; }
}
html[data-motion="reduce"] .hero__dusk, html[data-motion="reduce"] .hero__wire { display: none; }

/* указатель прокрутки */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: none;
  width: 2px;
  height: 48px;
  background: linear-gradient(180deg, rgba(250, 246, 238, 0.6), transparent);
  transform-origin: top;
  animation: cue 2.2s ease-in-out infinite;
}
@media (min-width: 960px) { .hero__cue { display: block; } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* частицы пыли: чистый CSS, только transform и opacity */
.dust { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.dust i {
  position: absolute;
  bottom: -12px;
  left: calc(var(--n, 1) * 6.2%);
  width: var(--s, 4px);
  height: var(--s, 4px);
  background: radial-gradient(circle, rgba(255, 214, 150, 0.95), rgba(245, 168, 0, 0));
  border-radius: 50%;
  opacity: 0;
  animation: dust-rise var(--t, 14s) linear var(--dl, 0s) infinite;
}
@keyframes dust-rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 0.85; }
  100% { transform: translate3d(var(--dx, 40px), -78vh, 0); opacity: 0; }
}
.dust i:nth-child(1) { --n: 1; --s: 3px; --t: 13s; --dl: -2s; --dx: 30px; }
.dust i:nth-child(2) { --n: 2; --s: 5px; --t: 17s; --dl: -9s; --dx: -20px; }
.dust i:nth-child(3) { --n: 3; --s: 2px; --t: 11s; --dl: -5s; --dx: 50px; }
.dust i:nth-child(4) { --n: 4; --s: 6px; --t: 19s; --dl: -12s; --dx: 24px; }
.dust i:nth-child(5) { --n: 5; --s: 3px; --t: 14s; --dl: -1s; --dx: -36px; }
.dust i:nth-child(6) { --n: 6; --s: 4px; --t: 16s; --dl: -7s; --dx: 60px; }
.dust i:nth-child(7) { --n: 7; --s: 2px; --t: 12s; --dl: -10s; --dx: -16px; }
.dust i:nth-child(8) { --n: 8; --s: 5px; --t: 18s; --dl: -4s; --dx: 36px; }
.dust i:nth-child(9) { --n: 9; --s: 3px; --t: 15s; --dl: -13s; --dx: -44px; }
.dust i:nth-child(10) { --n: 10; --s: 6px; --t: 20s; --dl: -6s; --dx: 20px; }
.dust i:nth-child(11) { --n: 11; --s: 2px; --t: 12s; --dl: -3s; --dx: 56px; }
.dust i:nth-child(12) { --n: 12; --s: 4px; --t: 16s; --dl: -11s; --dx: -28px; }
.dust i:nth-child(13) { --n: 13; --s: 3px; --t: 14s; --dl: -8s; --dx: 40px; }
.dust i:nth-child(14) { --n: 14; --s: 5px; --t: 18s; --dl: -15s; --dx: -52px; }
.dust i:nth-child(15) { --n: 15; --s: 2px; --t: 13s; --dl: -14s; --dx: 18px; }
@media (max-width: 639px) { .dust i:nth-child(n + 9) { display: none; } }
.hero.is-paused .dust i, .hero.is-paused .ai-layer img, .hero.is-paused .hero__cue, .hero.is-user-paused .dust i, .hero.is-user-paused .hero__cue { animation-play-state: paused; }
.hero.is-user-paused .hero__bg img { animation: none; transform: none; }

/* ---------- hero страниц услуг: одна система, четыре композиции ---------- */
.hero--ai { --glow: rgba(245, 168, 0, 0.22); background: radial-gradient(900px 520px at 88% -8%, var(--glow), transparent 62%), var(--ink); }
.hero--ai .hero__media { position: relative; }
.hero--ai .ai-frame { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }

/* residential: рамка с метками съёмки по углам */
.hero--residential .hero__media::before,
.hero--residential .hero__media::after {
  content: "";
  position: absolute;
  z-index: 6;
  width: 44px;
  height: 44px;
  border: 0 solid var(--amber);
  pointer-events: none;
}
.hero--residential .hero__media::before { left: -12px; top: -12px; border-width: 4px 0 0 4px; border-top-left-radius: 14px; }
.hero--residential .hero__media::after { right: -12px; bottom: -12px; border-width: 0 4px 4px 0; border-bottom-right-radius: 14px; }

/* basement: высокий кадр и линейка глубины */
.hero--basement { --glow: rgba(181, 83, 43, 0.5); }
.hero--basement .ai-frame { aspect-ratio: 4 / 5; max-height: 640px; margin-inline: auto; width: 100%; }
.hero--basement .ai-layer img { object-position: 36% 50%; }
@media (min-width: 960px) {
  .hero--basement .hero__media { padding-left: 38px; }
  .hero--basement .hero__media::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 22px;
    background:
      repeating-linear-gradient(180deg, var(--amber) 0 3px, transparent 3px 104px) left / 22px 100% no-repeat,
      repeating-linear-gradient(180deg, rgba(245, 168, 0, 0.7) 0 2px, transparent 2px 26px) left / 12px 100% no-repeat;
    opacity: 0.9;
  }
  .hero--basement .hero__media::after {
    content: "";
    position: absolute;
    left: 24px; top: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent var(--amber);
    animation: depth-marker 9s ease-in-out infinite alternate;
  }
}
@keyframes depth-marker { from { transform: translateY(0); } to { transform: translateY(min(560px, 80vh)); } }

/* driveway: панорама под текстом, бегущая разметка дороги */
.hero--driveway { --glow: rgba(237, 227, 208, 0.2); }
@media (min-width: 960px) {
  .hero--driveway .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero--driveway .hero__copy { max-width: 52rem; }
}
.hero--driveway .ai-frame { aspect-ratio: 16 / 9; }
@media (min-width: 640px) { .hero--driveway .ai-frame { aspect-ratio: 21 / 9; } }
.hero--driveway .hero__media::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 7px;
  z-index: 6;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 26px, transparent 26px 50px);
  border-radius: 3px;
  animation: road-dash 2.4s linear infinite;
  pointer-events: none;
}
@keyframes road-dash { to { background-position: 50px 0; } }

/* concrete: рубленый угол кадра и янтарный разлом */
.hero--concrete { --glow: rgba(201, 191, 174, 0.2); }
.hero--concrete .ai-frame { aspect-ratio: 5 / 4; border-radius: 0 var(--r-l) var(--r-l) var(--r-l); }
.hero--concrete .ai-layer img { object-position: 34% 50%; }
.hero--concrete .hero__media::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  z-index: 6;
  width: 22%;
  aspect-ratio: 1;
  background: linear-gradient(to bottom right, var(--ink) 0 calc(50% - 5px), var(--amber) calc(50% - 5px) 50%, transparent 50%);
  pointer-events: none;
}

/* ---------- scroll-сцена «Our Services» ---------- */
.scene { position: relative; }
.scene__stage { display: none; }
.scene__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(40px, 7vw, 72px); }
.scene__step { margin: 0; min-width: 0; }
.scene__thumb { position: relative; aspect-ratio: 16 / 9; margin: 0 0 22px; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line-dark); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4); }
.scene__thumb img { transition: transform 0.9s var(--ease); }
.scene__step:hover .scene__thumb img { transform: scale(1.04); }
.scene__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.scene__num {
  font-size: clamp(2.6rem, 4.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--amber);
  transition: color 0.5s var(--ease);
}
.scene__cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .scene:not(.is-live) .scene__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* карточки-ссылки на тёмном: стрелка и подъём */
.section--dark .card--link { background: rgba(33, 29, 23, 0.82); }
.card--link h3 { margin-bottom: 0; }
.card--link h3::after {
  content: "→";
  content: "→" / "";
  display: inline-block;
  margin-left: 0.4em;
  color: var(--clay);
  transform: translateX(0);
  transition: transform 0.3s var(--ease), color 0.3s;
}
.section--dark .card--link h3::after { color: var(--amber); }
.card--link:hover h3::after { transform: translateX(8px); }

/* живая сцена: только широкий экран, JS и без reduced-motion (класс ставит site.js) */
.scene.is-live {
  --stage-h: min(72vh, 640px);
  --step-h: clamp(232px, 28vh, 260px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
/* карточка закреплена по центру окна; список шагов имеет отступы так, что центр шага N совпадает с центром карточки при прокрутке N*шаг */
.scene.is-live .scene__stage { position: sticky; top: max(calc(var(--header-h) + 12px), calc((100vh - var(--stage-h)) / 2)); display: block; height: var(--stage-h); }
.scene.is-live .scene__thumb { display: none; }
.scene.is-live .scene__steps { gap: 0; padding-block: calc((var(--stage-h) - var(--step-h)) / 2); }
.scene.is-live .scene__step { display: flex; flex-direction: column; justify-content: center; min-height: var(--step-h); padding: 14px 0 14px 22px; border-left: 3px solid var(--line-dark); opacity: 0.72; transition: opacity 0.5s var(--ease), border-color 0.5s var(--ease); }
.scene.is-live .scene__step.is-active { opacity: 1; border-left-color: var(--amber); }
.scene.is-live .scene__step.is-active .scene__num { color: var(--amber); }
.scene.is-live .scene__kicker { margin-bottom: 12px; }
.scene.is-live .scene__cards { gap: 10px; }
.scene.is-live .card--link { display: flex; align-items: center; gap: 14px; padding: 12px 16px; }
.scene.is-live .card__icon { flex: none; width: 38px; height: 38px; margin: 0; font-size: 0.8125rem; }
.scene.is-live .card--link h3 { font-size: 1.3rem; line-height: 1.15; }

.scene__frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-l);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}
.scene__shot { position: absolute; inset: 0; margin: 0; z-index: 1; clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease); }
.scene__shot:nth-child(1) { z-index: 1; clip-path: inset(0); }
.scene__shot:nth-child(2) { z-index: 2; }
.scene__shot:nth-child(3) { z-index: 3; }
.scene__shot:nth-child(4) { z-index: 4; }
.scene[data-active="2"] .scene__shot:nth-child(-n + 2),
.scene[data-active="3"] .scene__shot:nth-child(-n + 3),
.scene[data-active="4"] .scene__shot:nth-child(-n + 4) { clip-path: inset(0); }
.scene__shot .ai-layer { transform: none; }
.scene__shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.8s var(--ease); }
.scene__shot.is-top img { transform: scale(1); }
.scene__shot:nth-child(1) img { object-position: 30% 50%; }
.scene__shot:nth-child(2) img { object-position: 32% 50%; }
.scene__shot:nth-child(3) img { object-position: 34% 50%; }
.scene__shot:nth-child(4) img { object-position: 32% 50%; }
.scene__cap {
  position: absolute;
  left: 22px; right: 22px; bottom: 54px;
  z-index: 2;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--paper);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
/* подложка под подпись кадра: контраст подписи не зависит от фото */
.scene__shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: 1; background: linear-gradient(to top, rgba(21, 19, 15, 0.88) 0%, rgba(21, 19, 15, 0.7) 45%, rgba(21, 19, 15, 0) 100%); pointer-events: none; }
.scene__cap span { margin-right: 10px; color: var(--amber); font-size: 0.75em; letter-spacing: 0.1em; }
.scene__dots { position: absolute; left: 22px; bottom: 22px; z-index: 6; display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.scene__dots li { width: 34px; height: 4px; margin: 0; background: rgba(250, 246, 238, 0.3); border-radius: 2px; transition: background-color 0.4s; }
.scene[data-active="1"] .scene__dots li:nth-child(-n + 1),
.scene[data-active="2"] .scene__dots li:nth-child(-n + 2),
.scene[data-active="3"] .scene__dots li:nth-child(-n + 3),
.scene[data-active="4"] .scene__dots li:nth-child(-n + 4) { background: var(--amber); }
.scene__tag { top: 14px; left: 14px; }

.ai-frame .crop-trench { object-position: 86% 62%; }

/* ---------- полоса прогресса прокрутки ---------- */
.scroll-progress { position: fixed; left: 0; top: 0; right: 0; z-index: 300; height: 3px; background: transparent; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--clay), var(--amber)); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 12px rgba(245, 168, 0, 0.6); }

/* ---------- микровзаимодействия ---------- */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  z-index: -1;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: transform 0.7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(520%) skewX(-18deg); }
.btn--ghost { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: left bottom; background-size: 0 3px; }
.btn--ghost:hover { background-size: 100% 3px; }
.card--link:active { transform: translateY(-1px) scale(0.99); }
.hero--ai .hero__actions .btn, .hero--cinematic .hero__actions .btn { min-height: 52px; }

/* ---------- reduced motion: всё движение выключено ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .marquee.is-ready .marquee__track { animation: none; }
  .btn:hover, .card:hover { transform: none; }
  .hero__bg, .hero__bg img, .ai-layer, .ai-layer img, .scene__shot img { transform: none !important; }
  .dust, .hero__cue, .scroll-progress, .hero--driveway .hero__media::after, .hero--basement .hero__media::after { display: none !important; }
  .hero .ai-frame::after, .reveal-shutter::after { display: none !important; }
  .scene .scene__stage { display: none !important; }
  .scene .scene__thumb { display: block !important; }
  .scene.is-live { display: block !important; }
  .scene.is-live .scene__step { min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 1 !important; }
  .scene.is-live .scene__steps { gap: clamp(40px, 7vw, 72px) !important; padding-block: 0 !important; }
  .btn--primary::after { display: none !important; }
  .hero__video { display: none !important; }
}
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after {
  animation: none !important;
  transition: none !important;
}
html[data-motion="reduce"] .js .reveal, html[data-motion="reduce"].js .reveal { opacity: 1; transform: none; }
html[data-motion="reduce"] .hero__bg, html[data-motion="reduce"] .hero__bg img, html[data-motion="reduce"] .ai-layer, html[data-motion="reduce"] .ai-layer img, html[data-motion="reduce"] .scene__shot img { transform: none !important; }
html[data-motion="reduce"] .dust, html[data-motion="reduce"] .hero__cue, html[data-motion="reduce"] .scroll-progress, html[data-motion="reduce"] .hero--driveway .hero__media::after, html[data-motion="reduce"] .hero--basement .hero__media::after { display: none !important; }
html[data-motion="reduce"] .hero .ai-frame::after, html[data-motion="reduce"] .reveal-shutter::after { display: none !important; }
html[data-motion="reduce"] .scene .scene__stage { display: none !important; }
html[data-motion="reduce"] .scene .scene__thumb { display: block !important; }
html[data-motion="reduce"] .scene.is-live { display: block !important; }
html[data-motion="reduce"] .scene.is-live .scene__step { min-height: 0 !important; padding: 0 !important; border: 0 !important; opacity: 1 !important; }
html[data-motion="reduce"] .scene.is-live .scene__steps { gap: clamp(40px, 7vw, 72px) !important; padding-block: 0 !important; }
html[data-motion="reduce"] .btn--primary::after { display: none !important; }
html[data-motion="reduce"] .hero__video { display: none !important; }

@media print {
  .site-header, .callbar, .nav-toggle, .cta-band, .scroll-progress, .dust { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- пауза видео-hero (WCAG 2.2.2): кнопка только там, где играет видео (от 960px, без reduce-motion) ---------- */
.hero__pause {
  position: absolute;
  right: 28px; bottom: 24px;
  z-index: 3;
  min-width: 88px; min-height: 44px;
  padding: 0 18px;
  font: inherit;
  font-family: var(--font-display);
  font-size: 1.0625rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  color: var(--paper);
  background: rgba(21, 19, 15, 0.72);
  border: 2px solid rgba(250, 246, 238, 0.5);
  border-radius: 999px;
  cursor: pointer;
}
.hero__pause:hover { background: var(--ink); border-color: var(--amber); }
.hero__pause:focus-visible { outline: 3px solid #FFD166; outline-offset: 3px; }
.hero__pause[hidden] { display: none; }
@media (max-width: 959px) { .hero__pause { display: none; } }
html[data-motion="reduce"] .hero__pause { display: none; }
@media (prefers-reduced-motion: reduce) { .hero__pause { display: none; } }
