/* =========================================================================
   ГИПСМЕТА — премиальный лендинг гипсокартонных работ
   Стили страницы (калькулятор стилизуется внутри своего Shadow DOM).
   1. Шрифты и токены      5. Сцена и первый экран    9. Этапы
   2. Сброс и база         6. Цифры, услуги, марки   10. Работы, отзывы, FAQ
   3. Кнопки, иконки       7. Калькулятор             11. Контакты, подвал
   4. Шапка                8. ...                     12. Модалка, мобильное, cookie
   ========================================================================= */

/* ---------- 1. Шрифты (локальные, OFL) ---------------------------------- */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jbmono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/jbmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Цвета */
  --ink: #14181D;
  --ink-2: #1B2127;
  --ink-3: #232A31;
  --paper: #F4F1EA;
  --paper-2: #EFEAE0;
  --surface: #FBF8F2;
  --white: #FFFFFF;
  --line: #DED6C8;
  --line-soft: rgba(20, 24, 29, .08);
  --muted: #6E7379;
  --muted-dark: #9AA1A8;
  --amber: #F0B03F;
  --amber-deep: #C98A23;
  --amber-soft: #FBE7C2;
  --danger: #B3402F;
  --ok: #3E7D5A;

  /* Типографика */
  --font-body: 'Onest', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', 'Consolas', monospace;

  /* Сетка */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 9.5vw, 132px);
  --radius: 22px;
  --radius-lg: 28px;
  --scene-h: 340svh;

  --ease: cubic-bezier(.16, .84, .28, 1);
}

/* ---------- 2. Сброс и база --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.menu-open, body.modal-open { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; display: block; }

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--amber);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Типографика -------------------------------------------------- */
.h1 {
  font-size: clamp(32px, 3.85vw, 58px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 800;
  margin-bottom: 22px;
  max-width: 15ch;
}
.h2 {
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1.06;
  letter-spacing: -.032em;
  font-weight: 800;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__num {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9.5px;
  color: var(--amber-deep);
  letter-spacing: .08em;
}
.eyebrow--amber { color: var(--amber); }
.eyebrow--amber .eyebrow__num { border-color: rgba(240, 176, 63, .35); color: var(--amber); }
.eyebrow__dash {
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(24px, 5vw, 72px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .h2 { margin-top: 18px; }
.section-head__aside {
  max-width: 420px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--muted);
  padding-bottom: 4px;
}
.section-head--center { justify-content: center; text-align: center; }
.section-head--center > div { display: flex; flex-direction: column; align-items: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head__aside--center { max-width: 600px; margin-top: 20px; }
.section-head--left { justify-content: flex-start; margin-bottom: 0; }

/* ---------- 3. Кнопки, иконки, чипы ------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .25s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 18px; height: 18px; transition: transform .22s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--amber { background: var(--amber); color: var(--ink); box-shadow: 0 6px 18px rgba(240, 176, 63, .18); }
.btn--amber:hover { background: #F7BE58; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(240, 176, 63, .28); }
.btn--amber:active { transform: translateY(0); background: #E5A639; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-3); transform: translateY(-1px); }
.btn--ghost { background: rgba(255, 255, 255, .04); border: 1px solid rgba(244, 241, 234, .22); color: var(--paper); }
.btn--ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(244, 241, 234, .4); }
.btn--ghost-dark { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn--ghost-dark:hover { border-color: var(--ink); background: rgba(20, 24, 29, .04); }
.btn--sm { padding: 11px 17px; font-size: 13px; gap: 8px; }
.btn--sm .icon { width: 15px; height: 15px; }
.btn--lg { padding: 18px 30px; font-size: 16px; }
.btn--lg .icon { width: 20px; height: 20px; }
.btn--block { width: 100%; }
.tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  background: var(--amber-soft);
  border-radius: 999px;
  padding: 5px 10px 4px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: color .2s;
}
.link-arrow .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--amber-deep); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- 4. Шапка ----------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  color: var(--paper);
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(10, 13, 16, .72), rgba(10, 13, 16, 0));
  transition: background .3s, color .3s, padding .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  padding: 10px 0;
  background: rgba(12, 16, 20, .78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: rgba(244, 241, 234, .08);
}
.site-header.is-light { color: var(--ink); }
.site-header.is-light.is-solid {
  background: rgba(244, 241, 234, .9);
  border-bottom-color: rgba(20, 24, 29, .08);
}
.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: none;
}
.logo__mark { width: 40px; height: 40px; color: var(--amber); transition: transform .3s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-6deg); }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .08em;
}
.logo__text small {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .58;
  margin-top: 3px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  opacity: .78;
  transition: opacity .2s;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav a.is-current { opacity: 1; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 8px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s, color .2s;
  white-space: nowrap;
}
.header-phone .icon { width: 16px; height: 16px; }
.header-phone:hover { opacity: 1; color: var(--amber); }
.site-header.is-light .header-phone:hover { color: var(--amber-deep); }
.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, .18);
  background: transparent;
  cursor: pointer;
  color: inherit;
}
.site-header.is-light .burger { border-color: rgba(20, 24, 29, .16); }
.burger .icon { width: 20px; height: 20px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__menu { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: #0B0E12;
  color: var(--paper);
  padding: 104px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__nav a {
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 700;
  letter-spacing: -.03em;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(244, 241, 234, .08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu__nav a::after { content: '↗'; font-size: 18px; opacity: .35; }
.mobile-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.mobile-menu__phone { font-family: var(--font-mono); font-size: 16px; text-decoration: none; color: var(--amber); }

/* ---------- 5. Сцена ----------------------------------------------------- */
.scene {
  position: relative;
  height: var(--scene-h);
  background: #0F1317;
  color: var(--paper);
}
.scene__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 72% 18%, #232B33 0%, #171C22 38%, #0F1317 72%);
}
.scene__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.scene__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.scene__glow--1 {
  width: 46vw;
  height: 46vw;
  right: 4vw;
  top: -12vw;
  background: radial-gradient(circle, rgba(240, 176, 63, .16), rgba(240, 176, 63, 0) 68%);
}
.scene__glow--2 {
  width: 38vw;
  height: 38vw;
  left: 8vw;
  bottom: -16vw;
  background: radial-gradient(circle, rgba(110, 150, 175, .12), rgba(110, 150, 175, 0) 70%);
}
.scene__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 241, 234, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 234, .035) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(90% 80% at 62% 42%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(90% 80% at 62% 42%, #000 20%, transparent 78%);
}
.scene__art { position: absolute; inset: 0; z-index: 1; }
.scene__art svg { display: block; width: 100%; height: 100%; }
.scene__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(13, 17, 21, .97) 0%, rgba(13, 17, 21, .9) 26%, rgba(13, 17, 21, .42) 47%, rgba(13, 17, 21, 0) 64%),
    linear-gradient(0deg, rgba(10, 13, 17, .92) 0%, rgba(10, 13, 17, 0) 34%),
    radial-gradient(120% 100% at 50% 100%, rgba(10, 13, 17, 0) 60%, rgba(10, 13, 17, .5) 100%);
}
.scene__overlay {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.scene__copy {
  position: relative;
  width: min(45%, 640px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(96px, 12vh, 132px) 0 clamp(120px, 16vh, 170px);
  pointer-events: auto;
  will-change: opacity, transform;
}
.scene__copy .eyebrow { margin-bottom: 22px; }
.scene__lead {
  max-width: 44ch;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.62;
  color: rgba(244, 241, 234, .68);
  margin-bottom: 30px;
}
.scene__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.scene__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 241, 234, .12);
}
.scene__trust li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  letter-spacing: .01em;
  color: rgba(244, 241, 234, .62);
}
.scene__trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

/* этапы сцены */
.scene__steps {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(56px, 8vh, 92px);
  width: min(44%, 600px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 26px 16px 0;
  border-radius: 0 18px 18px 0;
  background: linear-gradient(90deg, rgba(10, 14, 18, .88) 0%, rgba(10, 14, 18, .62) 55%, rgba(10, 14, 18, 0) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.scene__steps.is-visible { opacity: 1; transform: none; }
.scene-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(244, 241, 234, .1);
  opacity: .34;
  transition: opacity .4s, border-color .4s;
}
.scene-step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(244, 241, 234, .55);
  padding-top: 3px;
  min-width: 22px;
  transition: color .4s;
}
.scene-step__body { display: flex; flex-direction: column; gap: 3px; }
.scene-step__body b {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--paper);
  letter-spacing: -.005em;
}
.scene-step__body span {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(244, 241, 234, .5);
  max-width: 42ch;
}
.scene-step.is-active { opacity: 1; border-top-color: rgba(240, 176, 63, .55); }
.scene-step.is-active .scene-step__num { color: var(--amber); }
.scene-step.is-done { opacity: .55; }
.scene-step.is-done .scene-step__num { color: rgba(240, 176, 63, .65); }

/* финальный CTA внутри сцены */
.scene__final {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(48px, 7vh, 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  pointer-events: none;
}
.scene__final.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.scene__final-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, .82);
  border: 1px solid rgba(244, 241, 234, .16);
  border-radius: 999px;
  background: rgba(12, 16, 20, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.scene__final-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7BC08D;
  box-shadow: 0 0 0 4px rgba(123, 192, 141, .14);
}
.scene__hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: rgba(244, 241, 234, .48);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  transition: color .2s, opacity .4s;
}
.scene__hint .icon { width: 16px; height: 16px; animation: hint-bounce 2.4s var(--ease) infinite; }
.scene__hint:hover { color: var(--amber); }
.scene__hint.is-hidden { opacity: 0; pointer-events: none; }
@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); opacity: .6; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ---------- 6. Цифры ---------------------------------------------------- */
.proof {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(40px, 5vw, 64px) 0;
  border-top: 1px solid rgba(244, 241, 234, .06);
}
.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.proof__item { padding-left: 22px; border-left: 1px solid rgba(244, 241, 234, .12); }
.proof__item:first-child { border-left: 0; padding-left: 0; }
.proof__item strong {
  display: block;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--paper);
}
.proof__item strong span { color: var(--amber); font-weight: 500; font-size: .55em; letter-spacing: -.01em; }
.proof__item p {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, .45);
}

/* ---------- Секции ------------------------------------------------------ */
.section { position: relative; padding: var(--section-y) 0; }
.section--paper { background: var(--paper); }
.section--surface { background: var(--surface); }
.section--calc {
  background:
    linear-gradient(180deg, rgba(240, 176, 63, .05), rgba(240, 176, 63, 0) 30%),
    var(--paper-2);
}
.section--calc::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 24, 29, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 24, 29, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.section--calc > .container { position: relative; }
.section--dark {
  background:
    radial-gradient(80% 60% at 85% 0%, rgba(240, 176, 63, .1), transparent 60%),
    radial-gradient(70% 60% at 10% 100%, rgba(110, 150, 175, .1), transparent 65%),
    var(--ink);
  color: var(--paper);
}
.section--dark .eyebrow__num { border-color: rgba(244, 241, 234, .18); }

/* ---------- Услуги ------------------------------------------------------ */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  min-height: 268px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 138, 35, .45);
  box-shadow: 0 18px 44px rgba(20, 24, 29, .09);
}
.service-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.service-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
}
.service-card__icon .icon { width: 22px; height: 22px; }
.service-card h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.service-card p { font-size: 14px; line-height: 1.58; color: var(--muted); }
.service-card__foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed var(--line);
}
.price {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.price b { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }

/* ---------- Марки ------------------------------------------------------- */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: rgba(244, 241, 234, .5);
  padding: 22px 0;
  border-top: 1px solid rgba(244, 241, 234, .06);
  border-bottom: 1px solid rgba(244, 241, 234, .06);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__track span {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .34em;
  white-space: nowrap;
}
.marquee__track i { width: 5px; height: 5px; transform: rotate(45deg); background: rgba(240, 176, 63, .55); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 7. Калькулятор (оболочка; внутри — Shadow DOM) --------------- */
.calc-shell { position: relative; margin-top: clamp(36px, 5vw, 64px); }
.calc-shell gk-calculator { display: block; width: 100%; }
.calc-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-meta li { display: inline-flex; align-items: center; gap: 8px; }
.calc-meta .icon { width: 14px; height: 14px; color: var(--amber-deep); }
.calc-noscript { text-align: center; color: var(--muted); }

/* ---------- 9. Этапы ---------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 2.4vw, 28px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.step {
  position: relative;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.step::before {
  content: '';
  position: absolute;
  top: -3.5px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--paper);
}
.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--amber-deep);
  margin-bottom: 12px;
}
.step h3 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 8px; }
.step p { font-size: 13.5px; line-height: 1.58; color: var(--muted); }

.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.why-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.why-card__icon { width: 28px; height: 28px; color: var(--amber-deep); margin-bottom: 18px; }
.why-card h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 7px; }
.why-card p { font-size: 13.5px; line-height: 1.58; color: var(--muted); }

/* ---------- 10. Работы -------------------------------------------------- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(20, 24, 29, .1); }
.case-card__media { aspect-ratio: 5 / 3; background: #12161A; overflow: hidden; }
.case-card__media svg { width: 100%; height: 100%; display: block; transition: transform .5s var(--ease); }
.case-card:hover .case-card__media svg { transform: scale(1.03); }
.case-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
}
.case-card__meta span { position: relative; }
.case-card__meta span + span::before {
  content: '·';
  position: absolute;
  left: -9px;
  color: var(--amber-deep);
}
.case-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.case-card p { font-size: 14px; line-height: 1.58; color: var(--muted); }
.case-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.case-card__tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
}
.cases__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.cases__cta p { max-width: 560px; font-size: 14.5px; color: var(--muted); }

/* ---------- Отзывы ------------------------------------------------------ */
.reviews-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; max-width: 300px; }
.reviews-summary__score { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.reviews-summary__stars { display: inline-flex; gap: 2px; color: var(--amber); }
.reviews-summary__stars .icon { width: 16px; height: 16px; }
.reviews-summary__note {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.review__stars { display: flex; gap: 2px; color: var(--amber); margin-bottom: 16px; }
.review__stars .icon { width: 15px; height: 15px; }
.review blockquote {
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: -.005em;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber-deep);
  font-weight: 700;
  font-size: 15px;
  flex: none;
}
.review figcaption b { display: block; font-size: 14px; font-weight: 650; line-height: 1.3; }
.review figcaption small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.reviews-note { margin-top: 24px; font-size: 11.5px; color: var(--muted); opacity: .8; }

/* ---------- FAQ --------------------------------------------------------- */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq-wrap .section-head__aside { margin-top: 18px; padding-bottom: 0; }
.faq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item[open] { border-color: rgba(201, 138, 35, .4); box-shadow: 0 12px 30px rgba(20, 24, 29, .06); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--amber-deep); }
.faq-item__icon {
  position: relative;
  width: 26px;
  height: 26px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background .25s, border-color .25s, transform .3s var(--ease);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background .25s;
}
.faq-item__icon::before { width: 10px; height: 1.5px; }
.faq-item__icon::after { width: 1.5px; height: 10px; }
.faq-item[open] .faq-item__icon { background: var(--amber); border-color: var(--amber); transform: rotate(90deg); }
.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item[open] .faq-item__icon::before { background: var(--ink); }
.faq-item__body { padding: 0 22px 22px; }
.faq-item__body p { font-size: 14.5px; line-height: 1.62; color: var(--muted); max-width: 68ch; }

/* ---------- 11. Контакты ------------------------------------------------ */
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contacts .h2 { margin: 18px 0 20px; }
.contacts__lead { max-width: 46ch; font-size: 15px; line-height: 1.65; color: rgba(244, 241, 234, .62); }
.contacts__list { margin: 32px 0 28px; }
.contacts__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(244, 241, 234, .1);
  text-decoration: none;
  color: var(--paper);
  transition: color .2s;
}
.contacts__row:last-child { border-bottom: 1px solid rgba(244, 241, 234, .1); }
.contacts__row:hover { color: var(--amber); }
.contacts__row--static { cursor: default; }
.contacts__row--static:hover { color: var(--paper); }
.contacts__row-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(244, 241, 234, .14);
  border-radius: 13px;
  color: var(--amber);
}
.contacts__row-icon .icon { width: 19px; height: 19px; }
.contacts__row-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contacts__row-body small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, .4);
}
.contacts__row-body b {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.3;
  word-break: break-word;
}
.contacts__messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.contacts__legal { margin-top: 24px; font-size: 11.5px; color: rgba(244, 241, 234, .36); }
.contacts__form-wrap { align-self: stretch; }

/* Формы */
.lead-form--card {
  background: var(--surface);
  color: var(--ink);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.lead-form__title { font-size: clamp(22px, 2.3vw, 27px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 8px; }
.lead-form__sub { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  min-height: 48px;
}
.input::placeholder { color: #A8A49B; }
.input:hover { border-color: #CFC5B3; }
.input:focus {
  outline: none;
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 3px rgba(240, 176, 63, .18);
}
.textarea { resize: vertical; min-height: 86px; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2314181D' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 6px 0 18px;
  cursor: pointer;
}
.checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: var(--amber-deep);
  cursor: pointer;
  margin-top: 1px;
}
.checkbox a { color: var(--ink); text-underline-offset: 2px; }
.req { color: var(--danger); font-weight: 600; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-note { margin-top: 12px; font-size: 11px; text-align: center; color: var(--muted); }
.form-error { margin-top: 12px; font-size: 12.5px; color: var(--danger); }

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px);
  background: var(--surface);
  color: var(--ink);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.form-success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber-deep);
  margin-bottom: 20px;
}
.form-success__icon .icon { width: 28px; height: 28px; }
.form-success h3 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.form-success p { max-width: 40ch; font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 22px; }
.form-success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Подвал ------------------------------------------------------ */
.site-footer {
  background: #0E1216;
  color: rgba(244, 241, 234, .72);
  padding: clamp(48px, 6vw, 80px) 0 28px;
  border-top: 1px solid rgba(244, 241, 234, .06);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
}
.logo--footer { color: var(--paper); margin-bottom: 18px; }
.logo--footer .logo__mark { color: var(--amber); }
.footer-brand__text { max-width: 34ch; font-size: 13.5px; line-height: 1.62; color: rgba(244, 241, 234, .48); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, .38);
  margin-bottom: 16px;
}
.footer-col a, .footer-col__link-btn {
  display: block;
  width: auto;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: 13.5px;
  color: rgba(244, 241, 234, .72);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s;
  cursor: pointer;
}
.footer-col a:hover, .footer-col__link-btn:hover { color: var(--amber); }
.footer-col__note { display: block; font-size: 12px; line-height: 1.6; color: rgba(244, 241, 234, .38); margin-top: 10px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid rgba(244, 241, 234, .08);
  font-size: 11.5px;
  color: rgba(244, 241, 234, .38);
}
.footer-bottom__app a { color: rgba(244, 241, 234, .62); text-underline-offset: 2px; }
.footer-bottom__app a:hover { color: var(--amber); }

/* ---------- 12. Модалка ------------------------------------------------- */
.lead-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 560px;
  width: calc(100% - 32px);
  color: var(--ink);
  margin: auto;
  max-height: calc(100dvh - 32px);
  overflow: visible;
}
.lead-modal::backdrop {
  background: rgba(8, 10, 12, .74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lead-modal__inner {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .5);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lead-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, transform .2s;
  z-index: 2;
}
.lead-modal__close:hover { background: var(--paper-2); transform: rotate(90deg); }
.lead-modal__close .icon { width: 16px; height: 16px; }
.lead-modal__title {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 10px 0 8px;
  padding-right: 40px;
}
.lead-modal .lead-form__sub { margin-bottom: 20px; }
.lead-calc {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px dashed rgba(201, 138, 35, .55);
  border-radius: 12px;
  background: rgba(240, 176, 63, .09);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: #5D5548;
  max-height: 200px;
  overflow-y: auto;
  white-space: pre-line;
}

/* ---------- Мобильная панель ------------------------------------------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 58;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 8px;
  background: rgba(12, 16, 20, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(244, 241, 234, .1);
}
.mobile-bar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(244, 241, 234, .8);
  font-size: 10.5px;
  font-family: var(--font-body);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-bar__btn .icon { width: 20px; height: 20px; }
.mobile-bar__btn--amber { background: var(--amber); color: var(--ink); font-weight: 650; }
body.modal-open .mobile-bar { display: none !important; }

/* ---------- Cookie ------------------------------------------------------ */
.cookie {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 70;
  width: min(400px, calc(100vw - 40px));
  padding: 18px;
  background: rgba(27, 33, 39, .98);
  border: 1px solid rgba(244, 241, 234, .12);
  border-radius: 16px;
  color: rgba(244, 241, 234, .72);
  font-size: 12px;
  line-height: 1.55;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.cookie a { color: var(--amber); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cookie .btn--ink { background: var(--amber); color: var(--ink); }
.cookie .btn--ghost-dark { color: rgba(244, 241, 234, .72); border-color: rgba(244, 241, 234, .2); }

/* ---------- Анимации появления ----------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Адаптив ----------------------------------------------------- */
@media (max-width: 1180px) {
  .scene__copy { width: min(46%, 600px); }
  .scene__steps { width: min(50%, 560px); }
  .proof__grid { gap: 16px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .reviews .review:last-child { grid-column: span 2; }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-col:last-child { grid-column: 2 / 4; }
}
@media (max-width: 1024px) {
  .nav { gap: 18px; }
  .header-phone span { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-head__aside { max-width: 620px; padding-bottom: 0; }
  .section-head--center { align-items: center; }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .section-head { margin-bottom: 8px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .contacts { grid-template-columns: 1fr; }
  .contacts__form-wrap { max-width: 620px; width: 100%; }
  .cases { grid-template-columns: 1fr 1fr; }
  .cases .case-card:last-child { grid-column: span 2; }
  .cases .case-card:last-child .case-card__media { aspect-ratio: 10 / 3; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col:last-child { grid-column: auto; }
}
@media (max-width: 860px) {
  :root { --scene-h: 280svh; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-actions { margin-left: auto; gap: 10px; }
  .header-actions .btn--amber { display: none; }
  .header-phone span { display: none; }
  .site-header { padding: 12px 0; }
  .site-header.is-solid { padding: 8px 0; }
  .logo__text strong { font-size: 15px; }
  .logo__mark { width: 34px; height: 34px; }

  .scene__copy {
    position: relative;
    width: 100%;
    height: auto;
    padding: 100px 0 0;
    justify-content: flex-start;
  }
  .scene__copy .eyebrow { font-size: 9.5px; letter-spacing: .11em; margin-bottom: 14px; }
  .scene__copy .eyebrow__dash { display: none; }
  .h1 { font-size: clamp(30px, 8.4vw, 42px); max-width: 20ch; margin-bottom: 14px; }
  .scene__lead { font-size: 14.5px; line-height: 1.55; margin-bottom: 20px; max-width: 48ch; }
  .scene__actions { gap: 9px; margin-bottom: 0; }
  .scene__actions .btn { padding: 14px 20px; font-size: 14px; }
  .scene__trust { display: none; }
  .scene__art { top: auto; bottom: 78px; height: 56svh; }
  .scene__vignette {
    background:
      linear-gradient(180deg, rgba(13, 17, 21, .96) 0%, rgba(13, 17, 21, .82) 34%, rgba(13, 17, 21, .15) 52%, rgba(13, 17, 21, 0) 62%),
      linear-gradient(0deg, rgba(10, 13, 17, .85) 0%, rgba(10, 13, 17, 0) 22%);
  }
  .scene__steps {
    display: flex;
    flex-direction: row;
    gap: 6px;
    width: auto;
    top: 96px;
    bottom: auto;
    left: var(--gutter);
    right: var(--gutter);
    justify-content: space-between;
    padding: 0;
    background: none;
    border-radius: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .scene-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    flex: 1;
    padding: 9px 8px;
    border: 1px solid rgba(244, 241, 234, .1);
    border-radius: 12px;
    background: rgba(12, 16, 20, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: .5;
  }
  .scene-step__num { font-size: 9px; padding: 0; }
  .scene-step__body b { font-size: 10.5px; line-height: 1.25; white-space: nowrap; }
  .scene-step__body span { display: none; }
  .scene-step.is-active { opacity: 1; border-color: rgba(240, 176, 63, .6); }
  .scene__final { left: var(--gutter); right: var(--gutter); top: 96px; bottom: auto; align-items: stretch; }
  .scene__final .btn { width: 100%; }
  .scene__final-badge { align-self: flex-start; }
  .scene__hint { display: none; }

  .proof__grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .proof__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof__item p { font-size: 10px; }

  .mobile-bar { display: grid; }
  body { padding-bottom: 72px; }
  .cookie { bottom: calc(80px + env(safe-area-inset-bottom)); left: 12px; right: 12px; width: auto; }

  .h2 { font-size: clamp(28px, 6.4vw, 40px); }
  .section-head { margin-bottom: 36px; }
  .services { grid-template-columns: 1fr; gap: 12px; }
  .service-card { min-height: 0; padding: 22px; }
  .cases { grid-template-columns: 1fr; }
  .cases .case-card:last-child { grid-column: auto; }
  .cases .case-card:last-child .case-card__media { aspect-ratio: 5 / 3; }
  .cases__cta { flex-direction: column; align-items: flex-start; }
  .reviews { grid-template-columns: 1fr; }
  .reviews .review:last-child { grid-column: auto; }
  .reviews-summary { max-width: none; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { border-top: 1px solid var(--line); padding: 20px 0 20px 0; }
  .step::before { display: none; }
  .step__num { margin-bottom: 6px; }
  .why { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-grid { gap: 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-col h4 { margin-bottom: 10px; }
  .footer-bottom { flex-direction: column; }
  .lead-modal { width: calc(100% - 20px); }
  .lead-modal__inner { padding: 24px 20px; }
  .section { padding: clamp(56px, 10vw, 80px) 0; }
}
@media (max-width: 560px) {
  .scene__actions .btn--ghost { display: none; }  .scene__lead { font-size: 13.5px; }
  .proof__item strong { font-size: 32px; }
  .logo__text small { display: none; }
  .contacts__row-body b { font-size: 17px; }
  .contacts__messengers .btn { flex: 1; }
  .lead-form--card { padding: 22px 18px; }
  .marquee { padding: 16px 0; }
  .marquee__track span { font-size: 12px; letter-spacing: .26em; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* Короткие экраны телефонов (iPhone SE и т.п.) */
@media (max-width: 860px) and (max-height: 740px) and (orientation: portrait) {
  .scene__copy { padding-top: 84px; }
  .scene__copy .eyebrow { margin-bottom: 10px; font-size: 9px; letter-spacing: .05em; }
  .h1 { font-size: clamp(26px, 7.8vw, 34px); margin-bottom: 12px; }
  .scene__lead { display: none; }
  .scene__actions .btn { padding: 12px 18px; font-size: 13.5px; }
  .scene__art { height: 52svh; bottom: 64px; }
}

/* ---------- Уменьшение анимаций ---------------------------------------- */
@media (max-width: 900px) and (max-height: 560px) and (orientation: landscape) {
  .scene__copy { padding-top: 74px; padding-bottom: 0; }
  .scene__copy .eyebrow { margin-bottom: 7px; font-size: 9px; }
  .h1 { font-size: clamp(22px, 3.6vw, 30px); max-width: 34ch; margin-bottom: 10px; }
  .scene__lead { display: none; }
  .scene__actions .btn { padding: 11px 16px; font-size: 13px; }
  .scene__actions { gap: 8px; }
  .scene__art { height: 52svh; bottom: 0; }
  .scene__steps { display: none !important; }
  .scene__final { top: 74px; left: var(--gutter); right: auto; }
  .scene__final-badge { display: none; }
  .scene__vignette {
    background:
      linear-gradient(90deg, rgba(13, 17, 21, .97) 0%, rgba(13, 17, 21, .9) 38%, rgba(13, 17, 21, .2) 62%, rgba(13, 17, 21, 0) 76%),
      linear-gradient(0deg, rgba(10, 13, 17, .9) 0%, rgba(10, 13, 17, 0) 30%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   НОВАЯ МОДЕЛЬ: смета по проекту, прорабам, пример сметы
   ========================================================================= */
.section--project {
  background:
    linear-gradient(180deg, rgba(240, 176, 63, .05), rgba(240, 176, 63, 0) 30%),
    var(--paper-2);
}
.section--project::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 24, 29, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 24, 29, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.section--project > .container { position: relative; }

.price--note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.exclusions {
  margin-top: clamp(24px, 3vw, 36px);
  padding: clamp(20px, 3vw, 28px);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.exclusions__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.exclusions__list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.exclusions__list li {
  position: relative;
  padding: 6px 11px 6px 25px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.exclusions__list li::before {
  content: '×';
  position: absolute;
  left: 11px;
  top: 5px;
  font-size: 14px;
  line-height: 1;
  color: var(--amber-deep);
}
.exclusions__note { max-width: 72ch; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* Смета по проекту */
.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.project__info { display: flex; flex-direction: column; gap: 28px; }
.benefit-list { display: flex; flex-direction: column; gap: 6px; }
.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.benefit-list li:last-child { border-bottom: 1px solid var(--line); }
.benefit-list__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
}
.benefit-list__icon .icon { width: 19px; height: 19px; }
.benefit-list b { display: block; font-size: 15px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 3px; }
.benefit-list span { display: block; font-size: 13px; line-height: 1.55; color: var(--muted); }
.benefit-list--compact li { padding: 10px 0; }
.benefit-list--compact .benefit-list__icon { width: 36px; height: 36px; border-radius: 10px; }

.project__mail {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}
.project__mail p { font-size: 13.5px; line-height: 1.6; color: rgba(244, 241, 234, .65); margin-bottom: 10px; }
.project__mail a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 650;
  color: var(--amber);
  text-decoration: none;
  word-break: break-word;
}
.project__mail a .icon { width: 20px; height: 20px; flex: none; }
.project__mail a:hover { color: #F7BE58; }
.project__mail .project__mail-note { margin: 12px 0 0; font-size: 11.5px; color: rgba(244, 241, 234, .4); }

.estimate-structure {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.estimate-structure .eyebrow { margin-bottom: 14px; }
.estimate-structure ul { display: flex; flex-direction: column; gap: 8px; }
.estimate-structure li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.estimate-structure li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}

/* Загрузка проекта */
.file-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  min-height: 48px;
  border: 1px dashed #CFC5B3;
  border-radius: 12px;
  background: var(--white);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.file-field:hover { border-color: var(--amber-deep); background: #FFFDF8; }
.file-field__icon { width: 18px; height: 18px; color: var(--amber-deep); flex: none; }
.file-field__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-field.has-file { border-style: solid; border-color: #8AA58A; color: var(--ink); }
.file-field.has-file .file-field__icon { color: var(--ok); }
.file-field__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Прорабам */
.partner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.partner__text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.partner__lead { max-width: 54ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-2); }
.partner__card {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}
.partner__card .eyebrow { color: var(--amber); margin-bottom: 20px; }
.partner__card .eyebrow__num { border-color: rgba(240, 176, 63, .35); color: var(--amber); }
.partner__list { display: flex; flex-direction: column; }
.partner__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(244, 241, 234, .12);
}
.partner__list b { font-size: 13px; font-weight: 500; color: rgba(244, 241, 234, .5); white-space: nowrap; }
.partner__list span { font-size: 13.5px; text-align: right; color: var(--paper); }
.partner__note { margin-top: 16px; font-size: 11.5px; line-height: 1.6; color: rgba(244, 241, 234, .42); }

/* Пример сметы */
.estimate {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.estimate__text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.estimate__text > p { max-width: 46ch; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.checklist { display: flex; flex-direction: column; gap: 9px; }
.checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber-deep);
  font-weight: 700;
}
.estimate__note { font-size: 11.5px; color: var(--muted); }

.estimate-table {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 18px 44px rgba(20, 24, 29, .07);
}
.estimate-table__head,
.estimate-table__row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 52px 62px;
  gap: 8px;
  align-items: start;
}
.estimate-table__head {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.estimate-table__row {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
}
.estimate-table__row span:first-child { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.estimate-table__row span:nth-child(3),
.estimate-table__row span:nth-child(4) { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.estimate-table__note { padding-top: 14px; font-size: 10.5px; line-height: 1.55; color: var(--muted); }

/* Шаги: 6 шагов в 3 колонки */
.steps { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }

@media (max-width: 1024px) {
  .project { grid-template-columns: 1fr; gap: 36px; }
  .partner { grid-template-columns: 1fr; gap: 32px; }
  .estimate { grid-template-columns: 1fr; gap: 32px; }
  .estimate-table { max-width: 620px; }
  .project__form { max-width: 620px; width: 100%; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .project__mail a { font-size: 16px; }
  .exclusions__list li { font-size: 11.5px; }
  .estimate-table { padding: 16px; }
  .estimate-table__head, .estimate-table__row { grid-template-columns: 26px minmax(0, 1fr) 42px 46px; gap: 6px; }
  .estimate-table__row { font-size: 11px; }
  .partner__list li { flex-direction: column; gap: 3px; }
  .partner__list span { text-align: left; }
}
@media (max-width: 560px) {
  .project__mail { padding: 18px; }
  .estimate-table { padding: 14px; }
  .estimate-table__head { font-size: 8.5px; }
  .estimate-table__row { font-size: 10.5px; }
  .estimate-table__row span:nth-child(4) { text-align: right; }
}

/* --- Исправления узких экранов --- */
.benefit-list li > div { min-width: 0; }
.benefit-list b,
.benefit-list span,
.project__mail a,
.estimate-structure li,
.checklist li,
.partner__list span { overflow-wrap: anywhere; }
.project__info,
.project__form,
.partner__text,
.partner__card,
.estimate__text,
.estimate-table { min-width: 0; }
@media (max-width: 1024px) {
  .project { grid-template-columns: minmax(0, 1fr); }
  .partner { grid-template-columns: minmax(0, 1fr); }
  .estimate { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .scene-step { min-width: 0; }
  .scene-step__body { min-width: 0; overflow: hidden; }
}
@media (max-width: 360px) {
  .scene-step { padding: 8px 5px; gap: 4px; }
  .scene-step__body b { font-size: 9px; }
  .scene-step__num { font-size: 8px; }
  .scene__steps { gap: 4px; }
}

/* Кнопки на очень узких экранах: разрешаем перенос, чтобы не было горизонтального скролла */
@media (max-width: 420px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  .btn--lg { padding: 16px 22px; }
  .scene__final .btn, .partner__text .btn { width: 100%; }
}

/* Подпись о временной отправке через почтовый клиент */
.form-note--left { text-align: left; margin-top: 4px; }
