/* ==========================================================================
   A2-FORMA · Blueprint-Slab design system
   Тёмная база + сигнальная охра + чертёжная графика + дуотон-фотографии
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --void: #060709;
  --bg: #0b1220;
  --bg-2: #111a2b;
  --bg-3: #171b23;
  --ink: #eaf0f8;
  --ink-2: #9fb0c8;
  /* #79808b давал контраст 4.33 на самом светлом тёмном фоне (норма 4.5):
     Lighthouse ругался на 138 мелких подписей. 4.77 — с запасом. */
  --muted: #7f8795;
  /* Фирменный акцент А2-ФОРМА — оранжевый #2f7df6 (снят с макетов группы
     ВК в презентации). Раньше была жёлтая охра #e8b10a. */
  --amber: #2f7df6;
  --amber-hi: #5092f7;
  --amber-deep: #286cd4;
  --on-amber: #17120a;
  --amber-soft: rgba(47, 125, 246, 0.12);
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .055);
  --line-amber: rgba(47, 125, 246, 0.34);
  --shadow: 0 24px 70px rgba(0, 0, 0, .55);
  --shadow-amber: 0 18px 50px rgba(47, 125, 246, 0.28);
  --r: 4px;
  --r-sm: 2px;
  --r-lg: 8px;
  --disp: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
  --header-bg: rgba(10, 12, 15, .78);
  --grid-line: rgba(255, 255, 255, .045);
  --grid-line-2: rgba(255, 255, 255, .085);
  --tick: rgba(47, 125, 246, 0.5);
  /* ---- Unified photo grade (one tuning point for every photo on the site) ----
     brightness  — the actual darkening
     contrast    — keeps detail readable after the darkening
     saturate    — pulls 23 photos from 20 different sources toward one look
     sepia       — warm ochre shift, ties the set to the amber accent          */
  --ph-filter: brightness(.74) contrast(1.10) saturate(.82) sepia(.10);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #0b1220;
  --bg-2: #111a2b;
  --bg-3: #fbf9f4;
  --ink: #eaf0f8;
  --ink-2: #9fb0c8;
  /* #6f6858 проваливался на --bg-2 (4.17): тёмный текст должен темнить */
  --muted: #665f50;
  --amber-deep: #a34500;
  --on-amber: #17120a;
  --line: rgba(20, 18, 13, .14);
  --line-2: rgba(20, 18, 13, .07);
  --line-amber: rgba(163, 69, 0, .4);
  --shadow: 0 24px 60px rgba(40, 32, 12, .16);
  --header-bg: rgba(239, 233, 220, .82);
  --grid-line: rgba(20, 18, 13, .05);
  --grid-line-2: rgba(20, 18, 13, .09);
  --tick: rgba(163, 69, 0, .6);
  /* light theme: milder grade — photos must sit under ink-on-paper, not glow */
  --ph-filter: brightness(.90) contrast(1.02) saturate(.90) sepia(.06);
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}

body.no-scroll { overflow: hidden; }

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

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--amber-deep); border: 3px solid var(--void); }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

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

  /* ---------- 1a. WebP delivery ---------- Every photo is wrapped in <picture> so the
     browser takes the WebP and only falls back to JPEG on engines that lack it. The
     wrapper has to be transparent to layout: the selectors below target the <img>
     (including one that pulls it out of flow with position:absolute), so a real box
     here would collapse to zero and break the cover crops. */
  picture { display: contents; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; color: inherit; }
em { font-style: normal; color: var(--amber-hi); }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
.container--narrow { max-width: 900px; }

/* ---------- 1b. Unified photo grade ----------
   Every photograph on the site runs through one filter so photos shot on
   different days, cameras and weather read as a single set.

   --ph-filter  the look, in one place (:root / light theme)
   --ph-fix     per-photo exposure correction, multiplied on top.
                The source set spans mean luminance 47..127, so a single
                brightness cannot pull both ends together: whatever we pick,
                the darkest frame sinks into the #0a0c0f background and the
                brightest one outshouts the rest. --ph-fix closes that gap.

   Measured in-browser after the filter (probe_grade.js), dark theme band
   61..70 and light theme band 83..89, against a background of 12. */
.hero__bg img,
.manifest__bg img,
.bcell__photo img,
.pcard__media img,
.frame img,
.gal__item img { --ph-fix: 1; filter: var(--ph-filter) brightness(var(--ph-fix)); }

/* Hover lifts a little, correction included, so photos feel lit rather than flat. */
.gal__item:hover img,
.bcell:hover .bcell__photo img,
.pcard:hover .pcard__media img { filter: var(--ph-filter) brightness(calc(var(--ph-fix) * 1.14)); }

/* ---------- 2. Blueprint grid + grain (глобальные слои) ---------- */
.bp-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-line-2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-2) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px, 156px 156px, 156px 156px;
  mask-image: radial-gradient(1400px 900px at 50% 30%, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(1400px 900px at 50% 30%, #000 0%, rgba(0, 0, 0, .55) 55%, transparent 100%);
  opacity: .85;
}

.bp-grain {
  position: fixed;
  inset: -50%;
  z-index: 900;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  animation: grainShift 7s steps(6) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- 3. Типографика и утилиты ---------- */
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.mono--lg { font-size: 13px; letter-spacing: .1em; }
.tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 7px 14px;
  border: 1px solid var(--line-amber);
  background: var(--amber-soft);
}
.tagline::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(248, 112, 16, .18);
  animation: blip 2.2s ease-in-out infinite;
}
@keyframes blip {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(248, 112, 16, .18); }
  50% { opacity: .45; box-shadow: 0 0 0 7px rgba(248, 112, 16, 0); }
}

.section { position: relative; padding: 128px 0; z-index: 2; }
section[id], main[id] { scroll-margin-top: 96px; }
.section--dark { background: var(--bg-2); }
.section--void { background: var(--void); }

.sec-head { margin-bottom: 64px; }
.sec-head__top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 14px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.sec-head__idx {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--void);
  background: var(--amber);
  padding: 3px 9px;
  letter-spacing: .08em;
}
.sec-head__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.sec-head__rule { flex: 1; height: 1px; background: repeating-linear-gradient(to right, var(--line) 0 6px, transparent 6px 12px); }
.sec-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 24px 56px;
  align-items: end;
}
.sec-title {
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(27px, 3.5vw, 50px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.sec-lead { font-size: 16px; color: var(--muted); max-width: 46ch; }
.sec-lead b { color: var(--ink-2); font-weight: 700; }

/* ---------- 4. Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: none;
  font-family: var(--body);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .01em;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: color .3s ease, background .3s ease, border-color .3s ease, transform .25s cubic-bezier(.2, .8, .3, 1), box-shadow .3s ease;
}
.btn::after {
  content: '';
  position: absolute;
  inset: -60% -20%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .38) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .75s cubic-bezier(.3, .9, .3, 1);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }

.btn--solid {
  background: var(--amber);
  color: var(--on-amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 0 rgba(248, 112, 16, .5);
}
.btn--solid:hover { background: var(--amber-hi); border-color: var(--amber-hi); box-shadow: 0 14px 40px rgba(248, 112, 16, .34); }

.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); }

.btn--sm { padding: 10px 18px; font-size: 13px; }
.btn--lg { padding: 18px 34px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn svg { flex: none; }

.link-btn {
  background: none; border: 0;
  color: var(--amber); font-weight: 700; font-size: inherit;
  cursor: pointer; padding: 0;
  border-bottom: 1px solid var(--line-amber);
  transition: color .25s ease, border-color .25s ease;
}
.link-btn:hover { color: var(--amber-hi); border-color: var(--amber-hi); }

/* ---------- 5. Прелоадер ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  transition: opacity .7s ease, visibility .7s ease;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__stage {
  position: relative;
  height: 44vh;
  min-height: 260px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.preloader__stage svg { width: min(78vw, 420px); height: auto; }
.preloader__panel rect, .preloader__panel line, .preloader__panel path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: drawLine 1.9s cubic-bezier(.3, .8, .3, 1) forwards;
}
.preloader__panel line:nth-of-type(2) { animation-delay: .12s; }
.preloader__panel rect:nth-of-type(2) { animation-delay: .22s; }
.preloader__panel path:nth-of-type(1) { animation-delay: .34s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.preloader__panel .fillfill { fill: var(--amber); stroke: none; opacity: 0; animation: fillIn .6s ease 1.15s forwards; }
@keyframes fillIn { to { opacity: .18; } }

.preloader__body { padding: 26px 32px 32px; display: flex; flex-direction: column; gap: 18px; }
.preloader__row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.preloader__mark {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(26px, 4.6vw, 54px);
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1;
}
.preloader__mark em { color: var(--amber); }
.preloader__pct { font-family: var(--mono); font-size: clamp(28px, 4vw, 46px); font-weight: 700; color: var(--amber); line-height: 1; }
.preloader__bar { height: 2px; background: var(--line); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .2s linear; }
.preloader__note { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- 6. Курсор ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .3s ease;
}
.cursor.is-live { opacity: 1; }
.cursor__dot {
  position: fixed;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--amber);
  border-radius: 50%;
}
.cursor__ring {
  position: fixed;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid var(--amber);
  border-radius: 50%;
  transition: width .28s cubic-bezier(.3, .9, .3, 1), height .28s cubic-bezier(.3, .9, .3, 1), margin .28s cubic-bezier(.3, .9, .3, 1), background .28s ease, opacity .28s ease;
}
.cursor.is-hover .cursor__ring { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: rgba(248, 112, 16, .16); }
.cursor.is-down .cursor__ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.cursor__label {
  position: fixed;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-amber);
  opacity: 0;
  white-space: nowrap;
  transition: opacity .2s ease;
}
.cursor.is-label .cursor__ring { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: var(--amber); }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-label .cursor__label { opacity: 1; }

/* ---------- 7. Хедер ---------- */
.scrollbar-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.scrollbar-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber-deep), var(--amber-hi)); }

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 110;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform .45s cubic-bezier(.3, .9, .3, 1), background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.header.is-solid { background: var(--header-bg); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.header.is-hidden { transform: translateY(-104%); }
.header__inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 14px clamp(20px, 2.4vw, 40px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.3vw, 22px);
}
.logo { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.logo__glyph {
  width: 30px; height: 30px;
  border: 1px solid var(--line-amber);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: var(--amber-soft);
}
.logo__glyph svg { width: 19px; height: 19px; }
.logo__text { font-family: var(--disp); font-weight: 800; font-size: 15px; letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.logo__text em { color: var(--amber); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; min-width: 0; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px clamp(7px, .62vw, 12px);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: color .25s ease;
}
.nav__link i { font-style: normal; font-size: 9px; color: var(--amber); opacity: .55; }
.nav__link::after {
  content: '';
  position: absolute;
  left: clamp(7px, .62vw, 12px); right: clamp(7px, .62vw, 12px); bottom: 4px;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.3, .9, .3, 1);
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.header__right { display: flex; align-items: center; gap: clamp(8px, .7vw, 12px); flex: none; }
.header__phone { display: none; }
@media (min-width: 1500px) {
  .header__phone { display: inline-block; }
}
.header__phone {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink);
  padding: 8px 12px;
  border: 1px solid var(--line);
  transition: border-color .25s ease, color .25s ease;
}
.header__phone:hover { border-color: var(--amber); color: var(--amber); }

.theme-toggle {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--ink-2);
  transition: border-color .25s ease, color .25s ease, transform .35s ease;
}
.theme-toggle:hover { border-color: var(--amber); color: var(--amber); transform: rotate(20deg); }
.theme-toggle svg { width: 17px; height: 17px; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .3s ease, opacity .3s ease, top .3s ease; }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 24px; }
.burger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- 8. Hero ---------- */
.hero { position: relative; padding: 148px 0 0; overflow: hidden; z-index: 2; }
.hero__bg {
  position: absolute;
  inset: -6% 0 -4%;
  z-index: 0;
  pointer-events: none;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, var(--bg) 8%, rgba(10, 12, 15, .82) 38%, rgba(10, 12, 15, .35) 72%, rgba(10, 12, 15, .9) 100%),
    linear-gradient(to top, var(--bg) 2%, transparent 34%);
}
html[data-theme="light"] .hero__bg::after {
  background:
    linear-gradient(100deg, var(--bg) 8%, rgba(239, 233, 220, .88) 40%, rgba(239, 233, 220, .45) 74%, rgba(239, 233, 220, .92) 100%),
    linear-gradient(to top, var(--bg) 2%, transparent 34%);
}
.hero__ticks {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, var(--tick) 0 1px, transparent 1px 44px);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 80%, transparent);
  opacity: .22;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 40px 56px;
  align-items: center;
  min-height: calc(100vh - 200px);
  padding-bottom: 60px;
}
.hero__title {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(32px, 5.4vw, 74px);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--ink);
  margin: 22px 0 26px;
}
.hero__title em { position: relative; white-space: nowrap; }
.hero__title em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: .06em;
  height: .18em;
  background: var(--amber);
  opacity: .28;
  z-index: -1;
}
.hero__mark { color: var(--amber); }
.hero__sub { font-size: 17px; color: var(--ink-2); max-width: 52ch; margin-bottom: 34px; }
.hero__sub b { color: var(--amber-hi); font-weight: 700; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero__specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.hero__spec { background: var(--bg); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; transition: background .3s ease; }
.hero__spec:hover { background: var(--bg-2); }
.hero__spec dt { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero__spec dd { font-family: var(--disp); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.hero__spec dd small { font-family: var(--mono); font-size: 10px; color: var(--amber); letter-spacing: .1em; margin-left: 6px; }

.hero__visual { position: relative; }
.hero__panelwrap {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(248, 112, 16, .07), transparent 42%);
  padding: 22px;
}
.hero__panelwrap::before, .hero__panelwrap::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 1px solid var(--amber);
  opacity: .8;
}
.hero__panelwrap::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero__panelwrap::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hero__drawing { width: 100%; height: auto; overflow: visible; }
.hero__drawing .ln {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.4;
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
  animation: drawSvg 1.5s cubic-bezier(.25, .8, .3, 1) forwards;
  animation-delay: var(--dl, 0s);
}
.hero__drawing .ln--amber { stroke: var(--amber); }
.hero__drawing .ln--thin { stroke-width: .8; opacity: .55; }
.hero__drawing .fillf { fill: var(--amber); opacity: 0; animation: fillIn .7s ease var(--df, 1s) forwards; }
@keyframes drawSvg { to { stroke-dashoffset: 0; } }

.hero__chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.chip {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .35s cubic-bezier(.2, .9, .3, 1), border-color .3s ease, background .3s ease;
  will-change: transform;
}
.chip:hover { border-color: var(--line-amber); background: var(--bg-3); }
.chip b { font-family: var(--disp); font-weight: 700; font-size: 16px; color: var(--amber); }
.chip span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 3;
}
.hero__scroll i { display: block; width: 1px; height: 46px; background: linear-gradient(to bottom, var(--amber), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; top: -46px; left: 0; width: 1px; height: 46px; background: var(--amber-hi); animation: scrollCue 2.1s ease-in-out infinite; }
@keyframes scrollCue { 0% { top: -46px; } 60%, 100% { top: 46px; } }

/* ---------- 9. Бегущая строка ---------- */
.ticker {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 13px 0;
}
.ticker__track { display: flex; width: max-content; animation: slide 34s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 0 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.ticker__track i { color: var(--amber); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- 10. Манифест (цифры) ---------- */
.manifest { position: relative; padding: 92px 0; overflow: hidden; }
.manifest__bg { position: absolute; inset: 0; z-index: 0; }
.manifest__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .26; }
.manifest__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, var(--bg) 12%, rgba(10, 12, 15, .7) 55%, var(--bg) 100%); }
html[data-theme="light"] .manifest__bg::after { background: linear-gradient(100deg, var(--bg) 12%, rgba(239, 233, 220, .78) 55%, var(--bg) 100%); }
.manifest__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mstat { background: var(--bg); padding: 30px 26px 26px; display: flex; flex-direction: column; gap: 10px; }
.mstat__num { font-family: var(--disp); font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.mstat__num i { font-style: normal; color: var(--amber); }
.mstat__lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mstat__bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.mstat__bar i { position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.2, .9, .3, 1); }
.mstat.is-visible .mstat__bar i { transform: scaleX(1); }

/* ---------- 11. Фото-рамка с чертёжными метками ---------- */
.frame { position: relative; overflow: hidden; background: var(--bg-3); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2, .8, .3, 1), filter .6s ease; }
.frame--zoom:hover img { transform: scale(1.06); }
.frame__corner { position: absolute; width: 18px; height: 18px; border: 1px solid var(--amber); opacity: .75; z-index: 2; pointer-events: none; }
.frame__corner--tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.frame__corner--tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.frame__corner--bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.frame__corner--br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.frame__dim {
  position: absolute;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(6, 7, 9, .72);
  padding: 3px 7px;
  pointer-events: none;
}
.frame__dim--tl { top: 12px; left: 46px; }
.frame__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 26px 20px 16px;
  background: linear-gradient(to top, rgba(6, 7, 9, .9), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}
.frame__cap b { font-family: var(--disp); font-weight: 700; font-size: 15px; color: #fff; letter-spacing: -.01em; }
.frame__cap span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }

/* ---------- 12. Bento (преимущества) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.bcell {
  grid-column: span 2;
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  transition: border-color .35s ease, transform .4s cubic-bezier(.2, .9, .3, 1), background .35s ease;
}
.bcell:hover { border-color: var(--line-amber); transform: translateY(-4px); }
.bcell--wide { grid-column: span 3; padding: 0; }
.bcell--tall { grid-column: span 3; grid-row: span 2; padding: 0; }
.bcell--media { padding: 0; }
.bcell--span3 { grid-column: span 3; }
.bcell--span2 { grid-column: span 2; }
.bcell__idx { font-family: var(--mono); font-size: 11px; color: var(--amber); letter-spacing: .12em; }
.bcell__ico { width: 40px; height: 40px; border: 1px solid var(--line-amber); display: grid; place-items: center; color: var(--amber); background: var(--amber-soft); }
.bcell__ico svg { width: 19px; height: 19px; }
.bcell h3 { font-family: var(--disp); font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.25; }
.bcell p { font-size: 14.5px; color: var(--muted); }
.bcell__photo { position: relative; flex: 1 1 auto; height: auto; min-height: 240px; }
.bcell__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bcell__photo .frame__cap { padding: 30px 22px 18px; }
.bcell__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 7, 9, .92) 4%, rgba(6, 7, 9, .2) 46%, transparent 70%); }
.bcell__body { position: relative; z-index: 2; padding: 24px 26px 28px; background: var(--bg-2); }
.bcell--cta {
  grid-column: span 6;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  background:
    radial-gradient(600px 240px at 88% 50%, rgba(248, 112, 16, .16), transparent 70%),
    var(--bg-3);
}
.bcell--cta h3 { font-size: clamp(20px, 2.2vw, 28px); }
.bcell--cta p { max-width: 60ch; }

/* ---------- 13. Режимы (аренда / покупка) ---------- */
/* NB: the markup carries .modes__btn while the rules were written against
   .seg__btn, so every button fell back to the UA default grey button and the
   active label stayed --muted on top of the amber slider. Both class names are
   targeted here so the control cannot silently lose its styling again. */
.seg {
  position: relative;
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 2px;
  margin-bottom: 40px;
  max-width: 100%;
  flex-wrap: wrap;
}
.seg__btn,
.modes__btn {
  position: relative;
  z-index: 2;
  border: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  /* 230px control width = 2x the 115px it rendered at. Height target was half
     of 31px (15.5), but an 11px mono cap-height plus 2px inset per side
     cannot compress past ~19px without clipping the glyphs, so this is the
     floor for a readable label. Line-height:1 does the rest. */
  width: 112px;
  padding: 2px 0;
  line-height: 1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color .3s ease;
}
.seg__btn:hover,
.modes__btn:hover { color: var(--ink); }
.seg__btn.is-active,
.modes__btn.is-active {
  color: var(--on-amber);
  /* Фон той же охры, что и у .seg__slider: кнопка лежит на слайдере, но
     формально прозрачна — аудиты считают её фоном тёмную секцию и видят
     тёмный текст на тёмном (ratio 1). Визуально ничего не меняется:
     под кнопкой и так та же охра. */
  background: var(--amber);
  transition: color .3s ease, background .45s cubic-bezier(.3, .9, .3, 1);
}
.seg__slider {
  position: absolute;
  z-index: 1;
  top: 2px; left: 2px; bottom: 2px;
  width: var(--segw, 150px);
  transform: translateX(var(--segx, 0px));
  background: var(--amber);
  transition: transform .45s cubic-bezier(.3, .9, .3, 1), width .45s cubic-bezier(.3, .9, .3, 1);
}

.modes__panel { display: none; }
.modes__panel.is-active { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 46px; align-items: start; animation: fadeUp .55s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.modes__info h3 { font-family: var(--disp); font-weight: 700; font-size: clamp(21px, 2.3vw, 30px); line-height: 1.2; color: var(--ink); margin-bottom: 24px; }
.checklist { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.checklist li { position: relative; padding-left: 30px; font-size: 15px; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 15px; height: 15px;
  border: 1px solid var(--amber);
  background: var(--amber-soft);
}
.checklist li::after {
  content: '';
  position: absolute;
  left: 4.5px; top: 10px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--amber);
  border-bottom: 1.5px solid var(--amber);
  transform: rotate(-45deg);
}
.modes__price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 0;
  margin-bottom: 24px;
  border-top: 1px dashed var(--line-amber);
  border-bottom: 1px dashed var(--line-amber);
}
.modes__price b { font-family: var(--disp); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); color: var(--amber); letter-spacing: -.02em; }
.modes__price span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.passport { position: relative; display: grid; gap: 14px; }
.passport__card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 22px;
  overflow: hidden;
}
.passport__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, var(--line-2) 0 1px, transparent 1px 9px);
  opacity: .8;
  pointer-events: none;
}
.passport__card > * { position: relative; z-index: 2; }
.passport__card small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.passport__card b { display: block; font-family: var(--disp); font-weight: 700; font-size: 20px; color: var(--ink); margin-bottom: 6px; }
.passport__card span { display: block; font-size: 13.5px; color: var(--muted); }
.passport__card i { display: inline-block; margin-top: 12px; font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--amber); border: 1px solid var(--line-amber); padding: 4px 8px; }
.passport__card--back { background: linear-gradient(150deg, rgba(248, 112, 16, .12), transparent 55%), var(--bg-3); }
.passport__card--back b { color: var(--amber-hi); font-size: 26px; }
.passport__stamp {
  position: absolute;
  right: 18px; top: 18px;
  width: 74px; height: 74px;
  border: 1px solid var(--line-amber);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  text-align: center;
  transform: rotate(-11deg);
  animation: stampSpin 14s linear infinite;
  opacity: .85;
}
@keyframes stampSpin { to { transform: rotate(349deg); } }
.passport__stamp::before { content: ''; position: absolute; inset: 5px; border: 1px dashed var(--line-amber); border-radius: 50%; }

/* ---------- 14. Производство: закреплённая сборка ---------- */
.process { position: relative; overflow: clip; }
.process__wrap {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 60px;
  align-items: start;
  min-height: calc(100vh + 260px);
}
.process__sticky { position: sticky; top: 108px; height: calc(100vh - 150px); display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.process__viz { position: relative; border: 1px solid var(--line); background: radial-gradient(700px 320px at 50% 0%, rgba(248, 112, 16, .08), transparent 70%), var(--bg-2); padding: 26px; }
.process__viz svg { width: 100%; height: auto; overflow: visible; }
.process__viz .part { opacity: .12; transition: opacity .6s ease, transform .7s cubic-bezier(.2, .9, .3, 1); transform-box: fill-box; transform-origin: center; }
.process__viz .part.is-on { opacity: 1; }
.process__viz .part--shift { transform: translate(26px, 18px); }
.process__viz .part--shift.is-on { transform: none; }
.process__viz .ln { fill: none; stroke: var(--ink-2); stroke-width: 1.3; }
.process__viz .ln--amber { stroke: var(--amber); stroke-width: 1.8; }
.process__viz .fl { fill: var(--amber); opacity: 0; transition: opacity .6s ease .15s; }
.process__viz .fl.is-on { opacity: .2; }
.process__viz text { font-family: var(--mono); font-size: 9px; fill: var(--muted); letter-spacing: .1em; }
.process__viz text.t-amber { fill: var(--amber); }

.process__steps { list-style: none; display: flex; flex-direction: column; height: 100%; justify-content: space-between; }
.pstep {
  position: relative;
  padding: 30px 0 34px 78px;
  border-top: 1px solid var(--line);
  transition: opacity .5s ease;
  /* Раньше opacity:.42 приглушал неактивные шаги — аудиты считали
     смешанный с фоном текст (1.84 при норме 4.5). Приглушение теперь
     только цветом h3: читаемость в норме у всех элементов, активный шаг
     всё равно выделяется (белый заголовок + охряная нумерация). */
}
.pstep:last-child { border-bottom: 1px solid var(--line); }
.pstep:not(.is-on) h3 { color: var(--muted); }
.pstep.is-on { opacity: 1; }
.pstep__num {
  position: absolute;
  left: 0; top: 28px;
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-2);
  transition: border-color .4s ease, color .4s ease, background .4s ease, transform .5s cubic-bezier(.2, .9, .3, 1);
}
.pstep.is-on .pstep__num { border-color: var(--amber); color: var(--on-amber); background: var(--amber); transform: rotate(-4deg); }
.pstep h3 { font-family: var(--disp); font-weight: 700; font-size: clamp(19px, 2vw, 26px); color: var(--ink); margin-bottom: 8px; }
.pstep p { font-size: 15px; color: var(--muted); max-width: 52ch; }
.pstep__meta { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.pstep__meta span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 4px 9px; }
.pstep__meta span.is-accent { color: var(--amber); border-color: var(--line-amber); }
.process__bar { height: 3px; background: var(--line); position: relative; overflow: hidden; }
.process__bar i { position: absolute; inset: 0; background: var(--amber); transform: scaleX(0); transform-origin: left; }

/* ---------- 15. Каталог: горизонтальный рельс ---------- */
.cat__rail {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 12px;
  cursor: grab;
  scrollbar-color: var(--amber-deep) transparent;
}
.cat__rail::-webkit-scrollbar { height: 6px; }
.cat__rail::-webkit-scrollbar-thumb { background: var(--amber-deep); }
.cat__rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.cat__track { display: flex; gap: 16px; width: max-content; padding-right: 32px; }
.pcard {
  width: clamp(260px, 30vw, 400px);
  flex: none;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  transition: border-color .35s ease, transform .45s cubic-bezier(.2, .9, .3, 1);
}
.pcard:hover { border-color: var(--line-amber); transform: translateY(-5px); }
.pcard__media { position: relative; height: 230px; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .8, .3, 1); }
.pcard:hover .pcard__media img { transform: scale(1.07); }
.pcard__badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-amber);
  background: var(--amber);
  padding: 4px 8px;
}
.pcard__art { position: absolute; right: 10px; bottom: 10px; z-index: 3; width: 84px; opacity: .95; }
.pcard__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__body h3 { font-family: var(--disp); font-weight: 700; font-size: 17px; color: var(--ink); }
.pcard__body p { font-size: 14px; color: var(--muted); flex: 1; }
.pcard__spec { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 16px; }
.pcard__spec div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 5px; }
.pcard__spec b { color: var(--amber); font-weight: 600; }
.cat__nav { display: flex; align-items: center; gap: 10px; }
.cat__nav button {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.cat__nav button:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); }
.cat__nav svg { width: 16px; height: 16px; }
.cat__bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.cat__bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 22%; background: var(--amber); transform: translateX(var(--bx, 0)); transition: transform .2s linear; }
.cat__nav .mono { margin-left: 10px; color: var(--muted); }

/* ---------- 16. Калькулятор ---------- */
.calc__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: 44px; align-items: start; }
.calc__console { border: 1px solid var(--line); background: var(--bg-2); }
.calc__tabs { display: flex; border-bottom: 1px solid var(--line); }
.calc__tab {
  flex: 1;
  padding: 16px;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color .3s ease, background .3s ease;
}
.calc__tab + .calc__tab { border-left: 1px solid var(--line); }
.calc__tab.is-active { color: var(--amber); background: var(--amber-soft); }
.calc__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.calc__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.calc__select { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.calc__select-btn {
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.calc__select-btn:hover { border-color: var(--line-amber); color: var(--ink); }
.calc__select-btn.is-active { border-color: var(--amber); background: var(--amber-soft); color: var(--amber); }
.calc__input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 18px;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.calc__input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.calc__result { padding: 26px; border-top: 1px solid var(--line); background: var(--bg-3); position: relative; overflow: hidden; }
.calc__result::after { content: ''; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border: 1px dashed var(--line-amber); border-radius: 50%; }
.calc__result-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.calc__result-value { font-family: var(--disp); font-weight: 800; font-size: clamp(30px, 4vw, 48px); color: var(--amber); letter-spacing: -.03em; line-height: 1.1; margin: 6px 0 8px; }
.calc__result-value.is-bouncing { animation: bounceVal .5s cubic-bezier(.2, .9, .3, 1); }
@keyframes bounceVal { 0% { transform: scale(.94); opacity: .7; } 60% { transform: scale(1.02); } 100% { transform: none; opacity: 1; } }
.calc__result-note { font-size: 13px; color: var(--muted); }
.calc__foot { padding: 0 26px 26px; }
.calc__aside { display: flex; flex-direction: column; gap: 14px; }
.calc__aside-photo { position: relative; height: 220px; }
.calc__aside-item { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.calc__aside-item p { font-size: 14px; color: var(--muted); }
.calc__aside-item b { color: var(--ink); }
.calc__aside-ico { flex: none; width: 34px; height: 34px; border: 1px solid var(--line-amber); color: var(--amber); display: grid; place-items: center; background: var(--amber-soft); }
.calc__aside-ico svg { width: 16px; height: 16px; }
.calc__rates { border: 1px solid var(--line); background: var(--bg-2); }
.calc__rates-h { padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.calc__rates table { width: 100%; border-collapse: collapse; }
.calc__rates td { padding: 10px 16px; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.calc__rates tr:last-child td { border-bottom: 0; }
.calc__rates td:last-child { text-align: right; font-family: var(--mono); font-size: 12px; color: var(--amber); }

/* ---------- 17. Галерея «В работе» ---------- */
.gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.gal__item { position: relative; overflow: hidden; border: 1px solid var(--line); }
.gal__item--4 { grid-column: span 4; height: 300px; }
.gal__item--5 { grid-column: span 5; height: 380px; }
.gal__item--7 { grid-column: span 7; height: 380px; }
.gal__item--8 { grid-column: span 8; height: 320px; }
.gal__item--12 { grid-column: span 12; height: 340px; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .8, .3, 1); }
.gal__item:hover img { transform: scale(1.05); }
.gal__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 34px 20px 16px;
  background: linear-gradient(to top, rgba(6, 7, 9, .92), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.gal__item figcaption b { font-family: var(--disp); font-weight: 700; font-size: 15px; color: #fff; }
.gal__item figcaption span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }

/* ---------- 18. Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.review { border: 1px solid var(--line); background: var(--bg-2); padding: 26px; display: flex; flex-direction: column; gap: 16px; transition: border-color .35s ease, transform .4s cubic-bezier(.2, .9, .3, 1); }
.review:hover { border-color: var(--line-amber); transform: translateY(-4px); }
.review__head { display: flex; align-items: center; gap: 14px; }
.review__ava {
  width: 46px; height: 46px;
  flex: none;
  border: 1px solid var(--line-amber);
  background: var(--amber-soft);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--amber);
}
.review__head b { display: block; font-family: var(--disp); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.review__head span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.review p { font-size: 14.5px; color: var(--ink-2); }
.review__stars { display: flex; gap: 3px; color: var(--amber); font-size: 13px; }
.rating { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--amber); border: 1px solid var(--line-amber); padding: 9px 14px; background: var(--amber-soft); }
/* На охряной подложке (12% охры) --muted давал 4.49 при норме 4.5. */
.rating span { color: var(--ink-2); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 19. FAQ ---------- */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: color .3s ease;
}
.faq__q:hover { color: var(--amber-hi); }
.faq__q i { font-family: var(--mono); font-style: normal; font-size: 11px; color: var(--amber); flex: none; }
.faq__q b { flex: 1; font-family: var(--disp); font-weight: 600; font-size: clamp(15px, 1.5vw, 18px); color: var(--ink); font-weight: 600; }
.faq__sign { flex: none; width: 34px; height: 34px; border: 1px solid var(--line); position: relative; transition: border-color .3s ease, background .3s ease, transform .4s cubic-bezier(.3, .9, .3, 1); }
.faq__sign::before, .faq__sign::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--ink); transition: transform .4s cubic-bezier(.3, .9, .3, 1), background .3s ease; }
.faq__sign::before { width: 12px; height: 1.5px; transform: translate(-50%, -50%); }
.faq__sign::after { width: 1.5px; height: 12px; transform: translate(-50%, -50%); }
.faq__item.is-open .faq__sign { border-color: var(--amber); background: var(--amber); transform: rotate(90deg); }
.faq__item.is-open .faq__sign::before, .faq__item.is-open .faq__sign::after { background: var(--on-amber); }
.faq__item.is-open .faq__sign::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.3, .9, .3, 1); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 44px 26px 40px; font-size: 15px; color: var(--muted); max-width: 78ch; }

/* ---------- 20. Бронь + CTA + формы ---------- */
.booking__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.booking__note { font-size: 14px; color: var(--muted); }
.booking__note a { color: var(--amber); border-bottom: 1px solid var(--line-amber); }
[data-a2-rent] { min-height: 120px; }

.cta { position: relative; padding: 128px 0; overflow: hidden; border-top: 1px solid var(--line); }
.cta__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(420px 420px at var(--gx, 50%) var(--gy, 50%), rgba(248, 112, 16, .13), transparent 62%);
  pointer-events: none;
}
.cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 54px; align-items: center; }
.cta__title { font-family: var(--disp); font-weight: 800; font-size: clamp(28px, 3.8vw, 54px); line-height: 1.06; letter-spacing: -.025em; color: var(--ink); margin-bottom: 20px; }
.cta__sub { font-size: 16.5px; color: var(--ink-2); max-width: 48ch; margin-bottom: 32px; }
.cta__guar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cta__guar span { background: var(--bg); padding: 16px 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.cta__guar b { color: var(--amber); font-size: 10px; letter-spacing: .14em; }

.form { position: relative; z-index: 2; border: 1px solid var(--line); background: var(--bg-2); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.form__title { font-family: var(--disp); font-weight: 700; font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  border-radius: 0;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(135deg, var(--amber) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.form select option { background: var(--bg-2); color: var(--ink); }
.form .btn { margin-top: 6px; }
.form__note { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--muted); line-height: 1.6; }
/* consent link must read as a link even at 10px mono */
.form__note a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.form__note a:hover { color: var(--amber-hi); }

/* ---------- 21. Подвал ---------- */
.footer { position: relative; z-index: 2; background: var(--void); color: var(--ink-2); border-top: 1px solid var(--line); padding: 76px 0 34px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)); gap: 46px; padding-bottom: 44px; }
.footer__brand p { font-size: 14px; color: var(--muted); max-width: 42ch; margin-top: 16px; }
.footer .logo__text { font-size: 22px; }
.footer__req { font-family: var(--mono); font-size: 10.5px !important; letter-spacing: .1em; color: var(--muted) !important; margin-top: 8px !important; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col b { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.footer__col a { font-size: 14px; color: var(--ink-2); transition: color .25s ease; width: fit-content; border-bottom: 1px solid transparent; }
.footer__col a:hover { color: var(--amber); border-color: var(--line-amber); }
.footer__col span { font-size: 14px; color: var(--muted); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--muted); }
.footer__bottom a { border-bottom: 1px solid var(--line); }
.footer__bottom a:hover { color: var(--amber); }


/* ---------- 22. Липкий мобильный CTA ---------- */
.sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 105;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.3, .9, .3, 1);
}
.sticky.is-visible { transform: none; }
.sticky__call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.sticky__calc { flex: 1; }

/* ---------- 23. Модалка и тост ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .35s ease, visibility .35s ease; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__overlay { position: absolute; inset: 0; background: rgba(4, 5, 7, .82); backdrop-filter: blur(6px); }
.modal__box {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 34px;
  transform: translateY(26px) scale(.97);
  transition: transform .4s cubic-bezier(.2, .9, .3, 1);
}
.modal.is-open .modal__box { transform: none; }
.modal__box::before, .modal__box::after { content: ''; position: absolute; width: 18px; height: 18px; border: 1px solid var(--amber); }
.modal__box::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.modal__box::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.modal__close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; transition: color .25s ease; }
.modal__close:hover { color: var(--amber); }
.modal__title { font-family: var(--disp); font-weight: 700; font-size: 21px; color: var(--ink); margin-bottom: 8px; padding-right: 30px; }
.modal__sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 22px;
  background: var(--amber);
  color: var(--on-amber);
  font-size: 14px;
  font-weight: 600;
  transform: translate(-50%, 130%);
  transition: transform .45s cubic-bezier(.2, .9, .3, 1);
  max-width: min(560px, calc(100vw - 32px));
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast--error { background: #e0432f; color: #fff; }
.toast svg { flex: none; }

/* ---------- 24. Индекс секций (боковая навигация) ---------- */
.sidenav { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 100; display: none; flex-direction: column; gap: 12px; }
.sidenav button { width: 9px; height: 9px; padding: 0; border: 1px solid var(--line-amber); background: none; cursor: pointer; border-radius: 50%; transition: background .3s ease, transform .3s ease; position: relative; }
.sidenav button.is-active { background: var(--amber); transform: scale(1.35); }
.sidenav button span {
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--amber);
  background: rgba(6, 7, 9, .8);
  padding: 3px 8px;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.sidenav button:hover span { opacity: 1; }

/* ---------- 25. Reveal (появление при скролле) ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .85s cubic-bezier(.2, .8, .3, 1), transform .85s cubic-bezier(.2, .8, .3, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.2, .85, .3, 1); transition-delay: var(--d, 0s); }
.js .reveal-img.is-visible { clip-path: inset(0 0 0 0); }
.js .reveal-mask > * { opacity: 0; transform: translateY(110%); transition: transform .9s cubic-bezier(.2, .85, .3, 1), opacity .5s ease; transition-delay: var(--d, 0s); }
.js .reveal-mask.is-visible > * { opacity: 1; transform: none; }

/* ---------- 26. Заголовок по буквам ---------- */
.hero__title .hchar-word { display: inline-block; white-space: nowrap; }
.hero__title .hchar {
  display: inline-block;
  opacity: 0;
  transform: translateY(.32em) rotate(-5deg);
  animation: heroCharIn .52s cubic-bezier(.2, .75, .3, 1) forwards;
  animation-delay: calc(var(--i) * 24ms + .35s);
}
@keyframes heroCharIn {
  from { opacity: 0; transform: translateY(.32em) rotate(-5deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* ---------- 27. Адаптив ---------- */
@media (min-width: 1500px) {
  .sidenav { display: flex; }
}

@media (max-width: 1180px) {
  .hero__grid { grid-template-columns: 1fr; min-height: auto; gap: 34px; }
  .hero__visual { max-width: 620px; }
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bcell, .bcell--span2, .bcell--span3, .bcell--wide { grid-column: span 2; }
  .bcell--tall { grid-column: span 4; grid-row: auto; }
  .bcell--cta { grid-column: span 4; }
  .process__wrap { grid-template-columns: 1fr; gap: 34px; min-height: 0; }
  .process__sticky { position: relative; top: auto; height: auto; }
  .process__steps { height: auto; gap: 4px; }
  .calc__wrap, .cta__grid { grid-template-columns: 1fr; }
  .modes__panel.is-active { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    top: 0;
    margin: 0;
    padding: 110px 32px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background: var(--bg);
    z-index: 108;
  }
  .nav.is-open .nav__link { font-size: 20px; padding: 14px 0; }
  .burger { display: block; }
  .header__phone { display: none; }
  .sticky { display: flex; }
  body { padding-bottom: 0; }
}

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .section { padding: 92px 0; }
  .sec-head__grid { grid-template-columns: 1fr; gap: 18px; }
  .manifest__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bcell, .bcell--span3, .bcell--wide, .bcell--tall { grid-column: span 2; }
  .bcell--cta { grid-column: span 2; }
  .hero__specs { grid-template-columns: 1fr; }
  .hero__chips { grid-template-columns: 1fr; }
  .cta__guar { grid-template-columns: 1fr; }
  .gal__item--4, .gal__item--5, .gal__item--7, .gal__item--8, .gal__item--12 { grid-column: span 12; height: 260px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .cursor { display: none; }
  .calc__select { grid-template-columns: 1fr; }
  .form { padding: 22px; }
}

@media (max-width: 560px) {
  .manifest__grid { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .section { padding: 74px 0; }
  .sec-head { margin-bottom: 40px; }
  .faq__a p { padding: 0 10px 22px 0; }
  .modal__box { padding: 26px 20px; }
}

/* ---------- 28. Уважение к настройкам движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bp-grain, .passport__stamp, .ticker__track, .hero__scroll i::after, .tagline::before { animation: none !important; }
  .hero__title .hchar { animation: none; opacity: 1; transform: none; }
  .hero__drawing .ln, .preloader__panel rect, .preloader__panel line, .preloader__panel path { animation: none; stroke-dashoffset: 0; }
  .preloader__panel .fillfill, .hero__drawing .fillf { opacity: .2; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal-img { clip-path: none; }
  .js .reveal-mask > * { opacity: 1; transform: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
/* ---------- 29. Подсказки стороннего чата (доступность) ---------- */
/* Тултипы виджета SaaS-Service: белый текст на белой (Max) и голубой (Telegram)
   плашках давал контраст 1.0–3.9 при норме 4.5. Тёмный текст проходит на всех
   их трёх цветах (≥4.6) и читается лучше. */
.multi_button .multi_button-text { color: #14120d !important; }

/* ---------- 30. Форма брони (виджет прайса) в тёмной теме сайта ---------- */
/* CSS формы приезжает из crm/widget.js светлым — он встраивается и на чужие
   сайты, поэтому его не правим: ниже переопределение только для этой
   страницы. Селектор с body даёт бóльшую специфичность и побеждает
   позднюю инъекцию стилей виджета. Фон секции «Предварительная бронь» —
   var(--bg-2) (section--dark), значит форма сливается с фоном сайта. */
body .a2w { background: var(--bg-2); border-color: var(--line); color: var(--ink-2); }
body .a2w__h { background: var(--bg-3); border-bottom-color: var(--line); }
body .a2w__h b { color: var(--ink); }
body .a2w__h span,
body .a2w__r small,
body .a2w__m { color: var(--muted); }
body .a2w__r { border-bottom-color: var(--line-2); }
body .a2w__r b { color: var(--ink); font-weight: 600; }
body .a2w__r.is-out { opacity: .8; }
body .a2w__f input { background: var(--bg); border-color: var(--line); color: var(--ink); }
body .a2w__f input::placeholder { color: var(--muted); }
body .a2w__f button { background: var(--amber); color: var(--on-amber); }
body .a2w__f button:hover { background: var(--amber-hi); }
body .a2w__e { color: #ff6d6d; }
