/* =========================================================
   Промстрой · обработка АКП на ЧПУ
   Свой стиль направления: светлый фон, узкие заглавные заголовки,
   всё содержимое — в блоках со скруглёнными краями, без линий-разделителей.
   Общий с основным сайтом только знак и оранжевый.
   ========================================================= */

:root {
  /* Вид на Сочи: чёрно-белым за заголовком первого экрана и в цвете в подвале */
  --city-img: url(/akp/img/city.jpg?v=1);
  --bg: #E8EBED;
  --white: #FFFFFF;
  --soft: #F0F2F3;       /* блоки на белом фоне */
  --alu: #D5DADE;
  --ink: #11161A;
  --ink-2: #1B2228;      /* блоки на тёмном фоне */
  --ink-3: #263038;

  --muted: #56616A;
  --line: rgba(17, 22, 26, .16);
  --on-dark: #EEF1F3;
  --on-dark-muted: rgba(238, 241, 243, .64);

  --accent: #FF5A1F;
  --accent-hover: #FF7240;
  --accent-ink: #D9420A; /* оранжевый для текста на светлом */

  --r-s: 10px;
  --r: 14px;
  --r-l: 24px;
  /* Скругление низа последней секции перед подвалом — пологое: по горизонтали заметно шире, чем по высоте */
  --r-sec: clamp(22px, 2.8vw, 40px);
  --r-sec-x: clamp(48px, 8vw, 120px);
  --gap: clamp(12px, 1.4vw, 20px);
  --pad: clamp(16px, 4vw, 48px);
  --maxw: 1360px;
  --sec-y: clamp(72px, 9vw, 136px);
  --top-h: 78px;         /* место под шапку: полоса 68 (на телефоне 62) + зазор */

  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sofia Sans Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
html.menu-open { overflow: hidden; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-s);
  background: var(--accent); color: var(--ink); font-weight: 600;
  transform: translateY(-200%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Иконка в плитке: наполняет карточки. Цвет плитки зависит от фона карточки */
.ico {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg); color: var(--accent-ink);
}
.ico .i { width: 22px; height: 22px; }

/* Заголовочный шрифт: узкий, в духе чертёжного DIN */
.d {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: .002em;
}

.link { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.link:hover { color: var(--accent-ink); }
.head__lead .link { white-space: nowrap; } /* телефон не рвётся по дефису */
.sec--dark .link:hover { color: var(--accent); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 24px;
  border-radius: var(--r);
  font-size: 16px; font-weight: 600;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn .i { transition: transform .3s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn--line:hover .i { transform: none; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--line { background: var(--white); }
.btn--line:hover { box-shadow: 0 0 0 2px var(--ink) inset; }
.btn--sm { height: 44px; padding: 0 18px; font-size: 15px; border-radius: var(--r-s); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Шапка: стеклянная полоса во всю ширину ----------
   Прижата к верху окна, скруглены только нижние углы. Фон под ней размывается,
   а в Chromium ещё и преломляется по краям, как в линзе (фильтр #akp-glass собирает скрипт).
   Над тёмными блоками стекло темнеет. Тени нет. */
.top { position: fixed; inset: 0 0 auto; z-index: 50; pointer-events: none; }
.top__bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 24px;
  height: 68px;
  /* содержимое стоит по ширине макета */
  padding-inline: max(var(--pad), calc((100% - var(--maxw)) / 2 + var(--pad)));
  border-radius: 0 0 24px 24px;
  background: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .28));
  -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .55); /* блик по нижней кромке стекла */
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
html.glass-refract .top__bar {
  -webkit-backdrop-filter: url(#akp-glass) blur(5px) saturate(1.6); backdrop-filter: url(#akp-glass) blur(5px) saturate(1.6);
}
.top.is-dark .top__bar {
  color: var(--on-dark);
  background: linear-gradient(rgba(17, 22, 26, .42), rgba(17, 22, 26, .58));
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .14);
}

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
/* Знак в тёмной плитке, как на сайте аренды. Плитка концентрична плашке шапки:
   отступ 8 px сверху, снизу и слева, скругление 20 − 8 = 12. Текст ниже плитки по высоте */
.logo__tile {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--ink); color: var(--on-dark);
  transition: background-color .35s var(--ease);
}
.top.is-dark .logo__tile { background: rgba(255, 255, 255, .14); }
.logo__mark { height: 24px; width: auto; }
.logo__text { display: flex; flex-direction: column; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: .9; text-transform: uppercase; letter-spacing: .02em; }
.logo__text small { margin-top: 5px; font: 500 9.5px/1 var(--mono); letter-spacing: .1em; color: var(--muted); transition: color .35s; }
.top.is-dark .logo__text small { color: var(--on-dark-muted); }

.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a {
  padding: 9px 14px; border-radius: 12px;
  font-size: 15px; font-weight: 500; color: var(--ink-3);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .4); }
.nav a.is-current { color: var(--ink); background: rgba(255, 255, 255, .75); }
.top.is-dark .nav a { color: var(--on-dark-muted); }
.top.is-dark .nav a:hover { color: var(--on-dark); background: rgba(255, 255, 255, .08); }
.top.is-dark .nav a.is-current { color: var(--on-dark); background: rgba(255, 255, 255, .16); }

.top__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav + .top__actions { margin-left: 0; }
.top__phone { font: 500 15px var(--mono); letter-spacing: -.01em; white-space: nowrap; }
.top__phone:hover { color: var(--accent-ink); }
.top.is-dark .top__phone:hover { color: var(--accent); }
.top__cta { border-radius: 14px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .6); position: relative; transition: background-color .35s; }
.top.is-dark .burger { background: rgba(255, 255, 255, .14); }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
html.menu-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
html.menu-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: calc(var(--top-h) + 8px) var(--pad) calc(24px + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
html.menu-open .menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu__nav { display: grid; gap: 8px; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 20px; border-radius: var(--r);
  background: var(--white);
  font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; text-transform: uppercase;
}
.menu__nav span { font: 500 12px var(--mono); color: var(--accent-ink); }
.menu__foot { display: grid; gap: 16px; }
.menu__phone { font: 500 20px var(--mono); }

/* ---------- Первый экран ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: calc(var(--top-h) + clamp(28px, 4.5vw, 64px)) 0 clamp(48px, 6vw, 88px);
  background: var(--bg);
}
/* Фон первого экрана, как на главной: картинка за заголовком, чёрно-белая (тот же кадр в цвете стоит в подвале).
   Приглушена прозрачностью, чтобы текст читался; снизу длинным плавным переходом уходит в фон страницы,
   не доходя до фото со станком. Сама картинка задаётся одной переменной --city-img в :root */
.hero--city::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: -1;
  height: clamp(560px, 58vw, 920px);
  background: var(--city-img) var(--city-hero-pos, 50% 30%) / cover no-repeat;
  opacity: .6; filter: grayscale(1);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .9) 30%, rgba(0, 0, 0, .45) 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .9) 30%, rgba(0, 0, 0, .45) 62%, transparent 100%);
  pointer-events: none;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: clamp(16px, 2vw, 28px);
  padding: 9px 14px 9px 12px; border-radius: 999px;
  background: var(--white);
  font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero__title { font-size: clamp(46px, 7.3vw, 106px); text-wrap: balance; }
.hero__tag {
  /* без overflow: hidden — он сдвигает строчный блок с базовой линии текста. Холст обрезает себя сам */
  position: relative; isolation: isolate;
  display: inline-block; padding: .06em .18em .02em;
  background: var(--accent); color: var(--ink);
  border-radius: .12em;
}
/* Пиксельный «дым» внутри плашки: холст в 3 раза мельче плашки, растянут без сглаживания */
.hero__tag .dither {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; max-width: none;
  border-radius: inherit;
  image-rendering: pixelated; pointer-events: none;
  opacity: .24;
}
.hero__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px clamp(24px, 4vw, 64px);
  margin-top: clamp(20px, 2.4vw, 32px);
}
.hero__lead { flex: 1 1 420px; max-width: 58ch; font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-3); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Лист: фото в пропорции рабочего поля, размеры нанесены поверх.
   Две размерные линии сходятся в один угол, на свободных концах — засечки.
   Все отступы целые, чтобы линии были чёткими */
.sheet {
  --inset: 28px;
  position: relative; overflow: hidden;
  margin-top: clamp(28px, 3.4vw, 48px);
  border-radius: var(--r-l);
}
.sheet .shot { aspect-ratio: 4 / 1; }
.sheet__dim { position: absolute; background: var(--accent); }
.sheet__dim::before { content: ""; position: absolute; background: var(--accent); }
.sheet__dim b {
  position: absolute; left: 50%; top: 50%;
  padding: 7px 12px; border-radius: 999px;
  background: var(--ink); color: var(--on-dark);
  font: 500 12px/1 var(--mono); letter-spacing: .06em; white-space: nowrap;
  transform: translate(-50%, -50%);
}
.sheet__dim--x { left: var(--inset); right: var(--inset); top: var(--inset); height: 2px; }
.sheet__dim--x::before { left: 0; top: -6px; width: 2px; height: 14px; }
.sheet__dim--y { right: var(--inset); top: var(--inset); bottom: var(--inset); width: 2px; }
.sheet__dim--y::before { left: -6px; bottom: 0; width: 14px; height: 2px; }
.sheet__dim--y b { transform: translate(-50%, -50%) rotate(-90deg); }
.sheet__tag {
  position: absolute; left: var(--inset); bottom: var(--inset);
  padding: 9px 14px; border-radius: 999px;
  background: var(--ink); color: var(--on-dark);
  font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}

/* Место под фото: пока файла нет, видна подпись с именем файла */
.shot { position: relative; overflow: hidden; background: var(--alu); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot__ph {
  position: absolute; inset: 0; display: none; place-content: center; padding: 12px;
  text-align: center; font: 500 12px/1.7 var(--mono); letter-spacing: .04em; color: var(--muted);
}
.shot.is-empty img { display: none; }
.shot.is-empty .shot__ph { display: grid; }

/* Характеристики под листом */
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.specs > li {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: clamp(18px, 2vw, 26px);
  border-radius: var(--r-l); background: var(--white);
}
.specs .ico { margin-bottom: clamp(14px, 2vw, 30px); }
.specs b, .modes__list b { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px .16em; white-space: nowrap; }
.specs b { font-size: clamp(30px, 3.4vw, 50px); }
.specs b small { font: 500 13px var(--mono); letter-spacing: .04em; text-transform: none; color: var(--muted); }
.specs b i { font-style: normal; color: var(--accent-ink); margin: 0 .06em; }
.specs li > span:last-child { font-size: 15px; line-height: 1.35; color: var(--muted); }

/* ---------- Секции ---------- */
/* Секции идут встык, без скруглений. Единственное исключение — последняя тёмная секция:
   у неё скруглены нижние углы, и она наезжает на подвал */
.sec { position: relative; padding: var(--sec-y) 0; background: var(--bg); }
.sec--white { background: var(--white); }
.sec--dark { color: var(--on-dark); background: var(--ink); }
.request {
  z-index: 1;
  margin-bottom: calc(-1 * var(--r-sec));
  border-radius: 0 0 var(--r-sec-x) var(--r-sec-x) / 0 0 var(--r-sec) var(--r-sec);
}

.head { display: grid; gap: 18px; margin-bottom: clamp(28px, 4vw, 56px); }
.head__idx {
  display: flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.head__idx::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.sec--dark .head__idx { color: var(--on-dark-muted); }
.head__title { margin-top: 18px; font-size: clamp(38px, 5.6vw, 84px); text-wrap: balance; }
.head__lead { max-width: 46ch; font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); text-wrap: pretty; }
.head--split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; gap: clamp(20px, 4vw, 64px); }

/* ---------- Услуги ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.svc {
  display: flex; flex-direction: column;
  padding: 10px; border-radius: var(--r-l);
  background: var(--soft);
}
.svc__pic { display: grid; place-items: center; padding: 20px 16px; border-radius: var(--r); background: var(--white); }
.svc__pic svg { width: min(300px, 100%); height: auto; }
.svc__pic g.svc__tool { transition: transform .5s var(--ease); }
.svc:hover .svc__pic g.svc__tool { transform: translateY(4px); }
.svc__body { padding: clamp(16px, 1.6vw, 22px) clamp(10px, 1.2vw, 16px) clamp(12px, 1.4vw, 18px); }
.svc__num { font: 500 12px var(--mono); letter-spacing: .08em; color: var(--accent-ink); }
.svc h3 { margin: 8px 0 8px; font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.svc p { color: var(--muted); font-size: 16px; text-wrap: pretty; }

.svc--photo { position: relative; padding: 0; overflow: hidden; }
.svc--photo .shot { flex: 1; min-height: 280px; }
.svc--photo figcaption {
  position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px);
  padding: 9px 14px; border-radius: 999px;
  background: var(--ink); color: var(--on-dark);
  font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Технология ---------- */
.sec--dark .head__lead { color: var(--on-dark-muted); }

.fold { display: grid; gap: var(--gap); }
.fold__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.fold__steps li { padding: clamp(16px, 2vw, 28px); border-radius: var(--r-l); background: var(--ink-2); }
.fold__steps svg { width: min(300px, 100%); height: auto; margin: 0 auto 18px; }
.fold__steps text { font: 800 19px var(--display); fill: var(--on-dark); text-anchor: middle; }
.fold__steps span { font: 500 12px var(--mono); letter-spacing: .08em; color: var(--accent); }
.fold__steps p { margin-top: 6px; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; line-height: 1.3; text-wrap: balance; }
.fold__kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.fold__kinds li {
  display: flex; align-items: center; gap: clamp(16px, 2vw, 28px);
  padding: clamp(16px, 2vw, 28px); border-radius: var(--r-l);
  background: var(--ink-2); color: var(--on-dark-muted); font-size: 16px; line-height: 1.4;
}
.fold__kinds b { flex: none; font-size: clamp(30px, 3vw, 44px); color: var(--on-dark); }

/* Режимы обработки: оранжевый блок — единственное яркое пятно секции */
.modes {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: clamp(20px, 3vw, 48px);
  margin-top: var(--gap); padding: clamp(20px, 2.6vw, 36px);
  border-radius: var(--r-l); background: var(--accent); color: var(--ink);
}
.modes__intro { display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: clamp(0px, .6vw, 8px); }
.modes__intro h3 { font-size: clamp(38px, 4.2vw, 62px); }
.modes__intro p { max-width: 30ch; font-weight: 500; line-height: 1.45; color: rgba(17, 22, 26, .82); text-wrap: pretty; }
.modes__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.modes__list > li {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: clamp(14px, 1.5vw, 20px); border-radius: var(--r);
  background: rgba(255, 255, 255, .22);
}
.modes__list .i { width: 22px; height: 22px; margin-bottom: clamp(10px, 1.4vw, 22px); }
.modes__list b { font-size: clamp(28px, 3vw, 44px); }
.modes__list b small { font: 500 12px var(--mono); letter-spacing: .04em; text-transform: none; color: rgba(17, 22, 26, .72); }
.modes__list li > span:last-child { font-size: 15px; font-weight: 500; line-height: 1.3; color: rgba(17, 22, 26, .82); }

/* ---------- Материал ---------- */
.material__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.material__text { align-self: center; }
.material__text .head { margin-bottom: clamp(20px, 2.6vw, 32px); }
.layers { display: grid; place-items: center; padding: clamp(20px, 3vw, 48px); border-radius: var(--r-l); background: var(--white); }
.layers svg { width: min(480px, 100%); height: auto; overflow: visible; }
/* Слои «дышат»: сходятся в панель и расходятся. Анимация стоит на паузе и идёт,
   пока курсор над блоком: класс is-live ставит скрипт и снимает его в конце круга,
   чтобы слои вернулись на место. На тач-экранах идёт всегда, медленнее */
.ly { animation: 2.8s ease-in-out infinite paused; }
.ly--2 { transform: translateY(54px); animation-name: ly-2; }
.ly--3 { transform: translateY(134px); animation-name: ly-3; }
.layers.is-live .ly { animation-play-state: running; }
@media (hover: none) { .ly { animation-play-state: running; animation-duration: 4.5s; } }
@keyframes ly-2 { 0%, 100% { transform: translateY(54px); } 50% { transform: translateY(14px); } }
@keyframes ly-3 { 0%, 100% { transform: translateY(134px); } 50% { transform: translateY(54px); } }
.ly__lead { stroke: var(--ink); stroke-width: 1; }
.ly__dot { fill: var(--white); stroke: var(--ink); stroke-width: 1; }
.ly text { font: 500 13px var(--mono); text-anchor: middle; fill: var(--ink); }

.legend { display: grid; gap: 8px; }
.legend li { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--r); background: var(--white); }
.legend span { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-dark); font: 500 13px var(--mono); }
.legend div { color: var(--muted); font-size: 15px; line-height: 1.4; }
.legend b { display: block; color: var(--ink); font-weight: 600; font-size: 17px; }
.pluses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-top: 24px; }
.pluses li { display: flex; gap: 14px; align-items: center; font-size: 16px; line-height: 1.35; }
.pluses .ico { background: var(--white); }

/* ---------- Применение ---------- */
.use-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.use {
  /* колонка minmax(0, 1fr): длинное слово в заголовке не может распереть карточку */
  display: grid; grid-row: span 3; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); row-gap: 0;
  min-width: 0;
  padding: 10px 10px 22px; border-radius: var(--r-l);
  background: var(--soft);
}
.use .shot { aspect-ratio: 4 / 3; border-radius: var(--r); }
.use .shot img { transition: transform .9s var(--ease); }
.use:hover .shot img { transform: scale(1.04); }
.use h3 { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 20px 12px 16px; font-size: clamp(22px, 2vw, 30px); }
.use .ico { width: 40px; height: 40px; background: var(--white); }
.use ul { display: grid; gap: 10px; align-content: start; margin: 0 12px; }
.use li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.35; color: var(--ink-3); }
.use li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Этапы ---------- */
.formats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.formats li { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--white); font: 500 13px var(--mono); letter-spacing: .06em; }
.formats .i { width: 16px; height: 16px; color: var(--accent-ink); }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.steps li { padding: clamp(18px, 1.8vw, 24px); border-radius: var(--r-l); background: var(--white); }
.steps__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.steps__n { display: inline-grid; place-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--bg); font: 500 12px var(--mono); letter-spacing: .08em; color: var(--accent-ink); }
.steps h3 { margin: clamp(28px, 4vw, 56px) 0 10px; font-size: clamp(26px, 2.4vw, 34px); }
.steps p { color: var(--muted); font-size: 16px; line-height: 1.45; text-wrap: pretty; }

.band { position: relative; margin-top: var(--gap); border-radius: var(--r-l); overflow: hidden; }
.band .shot { aspect-ratio: 16 / 6; min-height: 280px; width: 100%; background: var(--ink-3); }
.band .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 22, 26, .78), rgba(17, 22, 26, .1) 70%); }
.band .shot__ph { z-index: 1; place-content: end; justify-content: end; padding: 24px; text-align: right; color: var(--on-dark-muted); }
.band figcaption {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px;
  padding: clamp(20px, 4vw, 56px); color: var(--on-dark);
}
.band figcaption p { max-width: 14ch; font-size: clamp(32px, 4.4vw, 64px); }

/* ---------- Вопросы ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq__grid .head { margin-bottom: 0; position: sticky; top: calc(var(--top-h) + 24px); }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: var(--r-l); background: var(--soft); transition: background-color .25s; }
.faq details:hover, .faq details[open] { background: #E9ECEE; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 18px 18px clamp(18px, 2vw, 26px); cursor: pointer; list-style: none;
  border-radius: var(--r-l);
  font-size: clamp(17px, 1.4vw, 20px); font-weight: 600; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--accent-ink); transition: transform .35s var(--ease), background-color .25s, color .25s; }
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--ink); color: var(--white); }
.faq details p { padding: 0 clamp(18px, 2vw, 26px) 22px; margin-right: 44px; color: var(--muted); max-width: 62ch; text-wrap: pretty; }

/* ---------- Заявка ---------- */
.request__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.request__lead { margin-top: 20px; max-width: 44ch; font-size: clamp(17px, 1.3vw, 19px); color: var(--on-dark-muted); }
.factors { margin-top: clamp(24px, 3vw, 40px); padding: clamp(18px, 2vw, 26px); border-radius: var(--r-l); background: var(--ink-2); }
.factors__title { margin-bottom: 14px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.factors ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.factors li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--ink-3); font-size: 16px; line-height: 1.3; }
.factors .i { color: var(--accent); }
.request__mail { margin-top: 20px; color: var(--on-dark-muted); font-size: 16px; }
.request__mail .link { color: var(--on-dark); white-space: nowrap; }

.form {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
  padding: clamp(20px, 3vw, 36px);
  background: var(--white); color: var(--ink);
  border-radius: var(--r-l);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.field label, .field legend, .field__label { padding: 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.field legend { margin-bottom: 8px; }
.req { color: var(--accent-ink); }
.opt { margin-left: 6px; font: 400 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 0 16px; height: 54px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: var(--soft); border: 0; border-radius: var(--r);
  transition: box-shadow .2s, background-color .2s;
}
.field textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #8B949B; }
.field input[type="text"]:hover, .field input[type="tel"]:hover, .field textarea:hover { box-shadow: 0 0 0 1px var(--line) inset; }
.field input[type="text"]:focus, .field input[type="tel"]:focus, .field textarea:focus { outline: 0; box-shadow: 0 0 0 2px var(--ink) inset; background: var(--white); }
.field__error { display: none; font-size: 14px; color: #C4320A; }
.field.is-invalid input[type="tel"] { box-shadow: 0 0 0 2px #C4320A inset; }
.field.is-invalid .field__error { display: block; }

/* Файл с макетом: вся плашка — кнопка выбора, на неё же можно перетащить файл */
.file { display: flex; gap: 8px; min-width: 0; }
.field .file__pick {
  position: relative; flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 8px 16px;
  border: 1.5px dashed var(--line); border-radius: var(--r);
  font-size: 16px; color: var(--ink); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.field .file__pick:hover, .field .file__pick.is-over { border-color: var(--ink); background: var(--soft); }
.file__pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.file__pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file__pick .i { color: var(--accent-ink); }
.file__name { min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__hint { margin-left: auto; flex: none; font: 400 12px var(--mono); letter-spacing: .02em; color: var(--muted); }
.field.has-file .file__pick { border-style: solid; border-color: transparent; background: var(--soft); }
.file__clear { flex: none; display: grid; place-items: center; width: 54px; border-radius: var(--r); background: var(--soft); transition: background-color .2s, color .2s; }
.file__clear[hidden] { display: none; }
.file__clear:hover { background: var(--ink); color: var(--white); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
  display: inline-flex; align-items: center; height: 42px; padding: 0 16px;
  border-radius: 999px; background: var(--soft);
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: background-color .2s, color .2s;
}
.chip:hover span { background: #E2E6E8; }
.chip input:checked + span { background: var(--ink); color: var(--on-dark); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form__status { padding: 12px 14px; border-radius: var(--r); background: #FDECE6; color: #8A2A0A; font-size: 15px; }
.form__status a { font-weight: 600; white-space: nowrap; text-decoration: underline; }
.form__note { font-size: 13px; color: var(--muted); }
.form__note a { text-decoration: underline; text-underline-offset: 3px; }
.form.is-sending { pointer-events: none; }
.form__success {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  padding: 24px; text-align: center;
  background: var(--white); border-radius: var(--r-l);
}
.form__success[hidden] { display: none; }
.form__success-icon { display: grid; place-items: center; width: 64px; height: 64px; background: var(--accent); border-radius: 50%; }
.form__success-icon .i { width: 30px; height: 30px; stroke-width: 2.25; }
.form__success h3 { font-size: 40px; }
.form__success p { color: var(--muted); max-width: 30ch; }

.contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(40px, 5vw, 72px); }
.contacts > div { padding: clamp(18px, 2vw, 26px); border-radius: var(--r-l); background: var(--ink-2); }
.contacts .ico { background: var(--ink-3); color: var(--accent); }
.contacts dt { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.contacts dd { font-size: clamp(16px, 1.25vw, 18px); font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.contacts dd a:hover { color: var(--accent); }
.contacts dd span, .contacts__route { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--on-dark-muted); }
.contacts__route { width: fit-content; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- Подвал ---------- */
/* Подвал без своих скруглений: он лежит под последней секцией, у которой скруглены нижние углы */
.foot {
  background: var(--white);
  padding: calc(clamp(28px, 3.6vw, 52px) + var(--r-sec)) 0 calc(clamp(24px, 3vw, 40px) + env(safe-area-inset-bottom));
}
/* Подвал с картинкой в цвете (тот же кадр, что чёрно-белым за заголовком первого экрана).
   Картинка лежит полосой под текстом подвала (в его нижнем отступе). Полоса высокая и начинается с неба:
   небо светлое и само сливается с белым, поэтому переход идёт только по небу, длинный и плавный,
   а к линии горизонта картинка уже в полную силу. Переход по морю или городу выглядел бы белой дымкой */
.foot--city { --city-h: clamp(260px, 34vw, 560px); position: relative; isolation: isolate; padding-bottom: calc(var(--city-h) + env(safe-area-inset-bottom)); }
.foot--city::before {
  content: ""; position: absolute; inset: auto 0 0; z-index: -1;
  height: calc(var(--city-h) + env(safe-area-inset-bottom));
  background: var(--city-img) var(--city-foot-pos, 50% 32%) / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .06) 6%, rgba(0, 0, 0, .2) 12%, rgba(0, 0, 0, .44) 19%, rgba(0, 0, 0, .72) 26%, rgba(0, 0, 0, .92) 32%, #000 38%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .06) 6%, rgba(0, 0, 0, .2) 12%, rgba(0, 0, 0, .44) 19%, rgba(0, 0, 0, .72) 26%, rgba(0, 0, 0, .92) 32%, #000 38%);
  pointer-events: none;
}
.foot__top { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--muted); }
.foot__nav a:hover { color: var(--ink); }
.foot__cross { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-size: 15px; font-weight: 500; }
.foot__cross .i { color: var(--accent-ink); transition: transform .3s var(--ease); }
.foot__cross:hover .i { transform: translateX(4px); }
.foot__bottom { display: grid; gap: 6px; margin-top: clamp(24px, 3vw, 40px); font-size: 13px; color: var(--muted); }
.foot__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.foot__bottom a:hover { color: var(--ink); }

/* ---------- Появление при прокрутке ---------- */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
/* Узкий экран компьютера: меню, телефон и кнопка в шапке стоят плотнее, чтобы поместиться в строку */
@media (min-width: 1181px) and (max-width: 1320px) {
  .top__bar { gap: 12px; }
  .top__actions { gap: 12px; }
  .nav a { padding-inline: 9px; }
}

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: block; }
  .nav + .top__actions { margin-left: auto; } /* меню скрыто: кнопки уходят к правому краю */
  .use-grid, .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .use h3 { font-size: clamp(26px, 3.6vw, 34px); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps h3 { margin-top: 28px; }
}

@media (max-width: 900px) {
  .head--split, .material__grid, .faq__grid, .request__grid { grid-template-columns: minmax(0, 1fr); }
  .faq__grid .head { position: static; }
  .formats { justify-content: flex-start; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes { grid-template-columns: minmax(0, 1fr); }
  .sheet .shot { aspect-ratio: 5 / 2; }
  .foot__cross { margin-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top__phone, .top__cta { display: none; }
  .top__bar { height: 62px; border-radius: 0 0 20px 20px; }
  .hero__actions, .hero__actions .btn { width: 100%; }
  .sheet { --inset: 16px; }
  .sheet .shot { aspect-ratio: 4 / 3; }
  .sheet__dim b { padding: 6px 10px; font-size: 11px; }
  /* Характеристики в одну колонку: значок слева, цифра и подпись справа */
  .specs { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 10px; }
  .specs > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; align-items: center; padding: 16px 18px; }
  .specs .ico { grid-row: span 2; margin-bottom: 0; }
  .specs b { align-self: end; font-size: 30px; }
  .specs li > span:last-child { align-self: start; }
  /* Форматы макетов в одну строку: четыре равные плашки на всю ширину */
  .formats { flex-wrap: nowrap; gap: 6px; }
  .formats li { flex: 1 1 0; min-width: 0; justify-content: center; gap: 6px; padding: 0 6px; }
  .modes__list b { font-size: clamp(22px, 7.4vw, 30px); }
  .svc-grid, .use-grid, .steps, .fold__steps, .fold__kinds { grid-template-columns: minmax(0, 1fr); }
  .fold__steps li { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 16px; align-items: center; }
  .fold__steps svg { grid-row: span 2; margin-bottom: 0; }
  .fold__steps span { align-self: end; }
  .fold__steps p { align-self: start; margin-top: 0; }
  .modes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fold__kinds li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fold__steps p { font-size: 16px; }
  .pluses { grid-template-columns: minmax(0, 1fr); }
  .steps h3 { margin-top: 18px; }
  .factors ul { grid-template-columns: minmax(0, 1fr); }
  .contacts { grid-template-columns: minmax(0, 1fr); }
  .band .shot { aspect-ratio: auto; height: 360px; }
  .faq details p { margin-right: 0; }
  .field .file__pick { flex-wrap: wrap; gap: 2px 12px; }
  .file__name { flex: 1; }
  .file__hint { margin-left: 32px; flex-basis: 100%; }
}

/* Самые узкие телефоны: длинное слово в заголовке должно помещаться в строку */
@media (max-width: 360px) {
  .hero__title { font-size: 13.4vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
}
