/* ============================================================
   КОРАБЛЕВ · КРОВЛЯ ГАРАЖЕЙ
   Дизайн-токены, ресет, утилиты, общие компоненты
   ============================================================ */

:root {
  /* — палитра — */
  --bg:           #0B1620;   /* основной тёмный фон */
  --bg-2:         #0F1D2C;
  --surface:      #15273A;   /* поверхность карточек */
  --surface-2:    #1A2F47;   /* подсветка */
  --line:         rgba(255,255,255,.08);
  --line-2:       rgba(255,255,255,.14);

  --ink:          #F5F1EA;   /* основной текст (тёплый off-white) */
  --ink-soft:     #C8CFD8;
  --ink-mute:     #93A4B8;

  --accent:       #E8923C;   /* медь/амбер — основной CTA */
  --accent-2:     #F4A856;   /* hover */
  --accent-deep:  #C97326;   /* нажатие */
  --accent-glow:  rgba(232,146,60,.35);

  --max:          #6B4EFF;   /* фирменный фиолет MAX (приближение) */
  --max-2:        #8970FF;

  --ok:           #5BB573;
  --warn:         #F4A856;
  --err:          #E8675F;

  /* — типографика — */
  --ff-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --ff-body:    'Manrope', system-ui, -apple-system, sans-serif;

  --fs-h1: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  --fs-h2: clamp(1.875rem, 1.2rem + 2.4vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 1rem + .8vw, 1.625rem);
  --fs-lede: clamp(1rem, .9rem + .4vw, 1.125rem);
  --fs-body: clamp(.95rem, .9rem + .15vw, 1rem);
  --fs-small: .8125rem;

  /* — лейаут — */
  --container: 1240px;
  --pad-x: clamp(1rem, .5rem + 2vw, 2rem);
  --section-y: clamp(4rem, 3rem + 4vw, 7rem);
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  /* — тени — */
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 12px 32px -8px rgba(0,0,0,.55), 0 2px 4px rgba(0,0,0,.4);
  --shadow-3: 0 24px 60px -16px rgba(0,0,0,.6), 0 4px 8px rgba(0,0,0,.45);
  --shadow-glow: 0 8px 32px var(--accent-glow);

  /* — анимация — */
  --ease: cubic-bezier(.4,.14,.3,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur: .4s;
}

/* ============== RESET ============== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-display); line-height: 1.05; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ============== ФОН-АТМОСФЕРА ============== */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(232,146,60,.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(107,78,255,.06), transparent 60%);
}

/* ============== УТИЛИТЫ ============== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  font-family: var(--ff-display);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-eyebrow::before {
  content: ''; width: 32px; height: 1px; background: currentColor;
}
.section-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin: .75rem 0 1rem;
  letter-spacing: -.02em;
}
.section-lede {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  max-width: 60ch;
}
.section-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head .section-lede { margin-top: .5rem; }

/* ============== КНОПКИ ============== */
.btn {
  --btn-bg: var(--accent);
  --btn-bg-h: var(--accent-2);
  --btn-fg: #1A0F00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .85rem 1.4rem;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .01em;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: transform .25s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease);
  white-space: nowrap;
  text-align: center;
  position: relative;
  isolation: isolate;
}
.btn:hover { background: var(--btn-bg-h); transform: translateY(-1px); box-shadow: var(--shadow-glow); }
.btn:active { transform: translateY(0); }

.btn--primary { box-shadow: 0 6px 18px -4px rgba(232,146,60,.4); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-h: rgba(255,255,255,.06);
  --btn-fg: var(--ink);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--max {
  --btn-bg: var(--max);
  --btn-bg-h: var(--max-2);
  --btn-fg: #fff;
  box-shadow: 0 6px 18px -4px rgba(107,78,255,.4);
}

.btn--lg { padding: 1.05rem 1.7rem; font-size: 1rem; }
.btn--sm { padding: .55rem 1rem; font-size: .8125rem; }
.btn--block { display: flex; width: 100%; }

/* ============== ПОЛЯ ============== */
.field { display: block; }
.field__label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: .4rem;
  letter-spacing: .02em;
}
.field input[type="text"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="email"] {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:hover { border-color: var(--line-2); }
.field input:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232,146,60,.15);
}
.field input::placeholder { color: var(--ink-mute); opacity: .7; }

.field__range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-top: .8rem;
  cursor: pointer;
}
.field__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  cursor: grab;
}
.field__range::-moz-range-thumb {
  width: 18px; height: 18px; border: 2px solid var(--bg);
  border-radius: 50%; background: var(--accent); cursor: grab;
}

.form-policy {
  font-size: .75rem; color: var(--ink-mute);
  margin-top: .65rem; line-height: 1.45;
}
.form-policy a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); text-underline-offset: 2px; }
.form-policy a:hover { color: var(--accent); }

/* ============== РАДИО (как карточки) ============== */
.radio { position: relative; display: block; cursor: pointer; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio__box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.radio__name { font-weight: 600; }
.radio__name em { color: var(--accent); font-style: normal; font-size: .85em; font-weight: 600; }
.radio__price { font-family: var(--ff-display); font-weight: 700; color: var(--ink-soft); }
.radio:hover .radio__box { border-color: var(--line-2); }
.radio input:checked + .radio__box {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(232,146,60,.10), rgba(232,146,60,.04));
  box-shadow: inset 0 0 0 1px var(--accent), 0 4px 14px -4px rgba(232,146,60,.25);
}
.radio input:checked + .radio__box .radio__price { color: var(--accent); }

/* ============== ЧИПЫ-ФИЛЬТР ============== */
.chip {
  padding: .55rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--ink-soft);
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--ink-mute); }
.chip.is-active {
  background: var(--accent);
  color: #1A0F00;
  border-color: var(--accent);
}

/* ============== БЕЙДЖИ ============== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .35rem .75rem;
  font-size: .8125rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

/* ============================================================
   ВЕРХНЯЯ ПЛАШКА И ШАПКА
   ============================================================ */
.topbar {
  position: relative; z-index: 50;
  background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,.2));
  border-bottom: 1px solid var(--line);
  font-size: .8125rem;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .55rem; padding-bottom: .55rem; gap: 1rem;
}
.topbar__pill {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--ink-soft); letter-spacing: .01em;
}
.topbar__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(91,181,115,.7);
  animation: pulse 2.5s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(91,181,115,.5); }
  70%  { box-shadow: 0 0 0 10px rgba(91,181,115,0); }
  100% { box-shadow: 0 0 0 0 rgba(91,181,115,0); }
}
.topbar__contacts { display: flex; align-items: center; gap: 1.25rem; }
.topbar__phone, .topbar__max {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600;
}
.topbar__phone:hover, .topbar__max:hover { color: var(--accent); }
.topbar__max { color: var(--max-2); }
.topbar__max:hover { color: #fff; }

/* ── ШАПКА ── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,22,32,.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11,22,32,.92);
}
.header__inner {
  display: flex; align-items: center; gap: 2rem;
  padding-top: .9rem; padding-bottom: .9rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .65rem;
  flex: 0 0 auto;
  color: var(--ink);
}
.logo__mark {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  color: var(--accent);
  filter: drop-shadow(0 4px 12px var(--accent-glow));
}
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.01em;
}
.logo__sub {
  font-size: .7rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-top: .2rem;
}

.nav { display: flex; align-items: center; gap: 1.6rem; flex: 1 1 auto; justify-content: center; }
.nav a {
  font-size: .9375rem; font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: .25rem 0;
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .3s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.header__cta { flex: 0 0 auto; }

.burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
}
.burger span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu[hidden] { display: none !important; }
.mobile-menu {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.25rem var(--pad-x) 1.5rem;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.mobile-menu a { font-weight: 600; padding: .5rem 0; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .btn { margin-top: .25rem; align-self: flex-start; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(640px, 95svh, 920px);
  display: flex; align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem);
  isolation: isolate;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.1);
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1.08) translateY(0); }
  to   { transform: scale(1.18) translateY(-30px); }
}
.hero__bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 30%, rgba(232,146,60,.15), transparent 65%),
    linear-gradient(180deg, rgba(11,22,32,.78) 0%, rgba(11,22,32,.55) 40%, rgba(11,22,32,.96) 100%),
    linear-gradient(90deg, rgba(11,22,32,.85) 0%, rgba(11,22,32,.45) 60%, rgba(11,22,32,.2) 100%);
}
.hero__bg-grain {
  position: absolute; inset: 0; opacity: .25; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px;
}

.hero__inner { position: relative; z-index: 2; }
.hero__copy { max-width: 760px; }

.hero__pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem 1rem;
  font-size: .8125rem; font-weight: 600;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-soft);
  backdrop-filter: blur(6px);
  margin-bottom: 1.75rem;
  animation: floatIn .9s var(--ease-out) both;
}
.hero__pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(91,181,115,.7);
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.025em;
  margin: 0 0 1.5rem;
  color: var(--ink);
}
.hero__title-line { display: block; }
.hero__title-line--top {
  font-size: .55em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
  margin-bottom: .35em;
  animation: fadeUp .8s .1s var(--ease-out) both;
}
.hero__title-line--big {
  font-size: 1.4em;
  background: linear-gradient(180deg, #fff 0%, #C8CFD8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.4));
  animation: fadeUp .8s .25s var(--ease-out) both;
}
.hero__title-line--sub {
  font-family: var(--ff-body);
  font-size: .42em;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink-soft);
  margin-top: .8em;
  animation: fadeUp .8s .4s var(--ease-out) both;
}

.hero__lede {
  font-size: var(--fs-lede);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 2rem;
  animation: fadeUp .8s .55s var(--ease-out) both;
}
.hero__lede b { color: var(--ink); font-weight: 700; }

.hero__price {
  display: inline-flex; align-items: flex-end; gap: .8rem;
  padding: 1rem 1.4rem 1rem 1.1rem;
  background: linear-gradient(135deg, rgba(232,146,60,.12), rgba(232,146,60,.04));
  border: 1px solid rgba(232,146,60,.4);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  animation: fadeUp .8s .7s var(--ease-out) both;
}
.hero__price-label {
  font-family: var(--ff-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent);
  font-size: .75rem;
  align-self: flex-start;
  margin-top: .5rem;
}
.hero__price-value {
  font-family: var(--ff-display); font-weight: 900;
  font-size: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  line-height: .9; color: var(--ink);
}
.hero__price-value span { color: var(--accent); margin-left: .1em; }
.hero__price-unit {
  font-size: .8125rem; color: var(--ink-soft);
  line-height: 1.3; padding-bottom: .35rem;
}
.hero__price-unit i { font-style: normal; color: var(--ink-mute); font-size: .75rem; }

.hero__ctas {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-bottom: 2.25rem;
  animation: fadeUp .8s .85s var(--ease-out) both;
}

.hero__trust {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .8rem 1.25rem;
  font-size: .875rem; color: var(--ink-soft);
  animation: fadeUp .8s 1s var(--ease-out) both;
}
.hero__trust b { color: var(--ink); font-weight: 700; }
.hero__trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-mute); }

/* — летающий купон — */
.hero__coupon {
  position: absolute;
  top: clamp(8%, 14vh, 22%);
  right: clamp(2rem, 6vw, 8rem);
  z-index: 3;
  animation: floatY 6s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes floatY {
  from { transform: translate3d(0, -8px, 0) rotate(8deg); }
  to   { transform: translate3d(0, 8px, 0) rotate(11deg); }
}
.coupon {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.4rem 1.6rem;
  width: 230px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #1A0F00;
  border-radius: 14px;
  text-align: center;
  font-family: var(--ff-display);
  box-shadow:
    0 24px 48px -12px rgba(232,146,60,.5),
    0 6px 16px rgba(0,0,0,.4),
    inset 0 0 0 2px rgba(255,255,255,.18);
  transform: rotate(10deg);
}
.coupon::before, .coupon::after {
  content: ''; position: absolute;
  width: 22px; height: 22px;
  background: var(--bg);
  border-radius: 50%;
}
.coupon::before { left: -11px; top: 50%; transform: translateY(-50%); }
.coupon::after  { right: -11px; top: 50%; transform: translateY(-50%); }

.coupon__perforation {
  position: absolute; left: 11px; right: 11px; top: 50%;
  height: 1px; transform: translateY(-50%);
  background-image: linear-gradient(90deg, rgba(0,0,0,.25) 50%, transparent 50%);
  background-size: 8px 1px;
}
.coupon__top {
  font-size: .7rem; font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; opacity: .8;
}
.coupon__amount {
  font-size: 2.4rem; font-weight: 900; line-height: 1;
  margin: .3rem 0 .55rem;
  letter-spacing: -.03em;
}
.coupon__amount i { font-style: normal; font-size: .55em; margin-left: .1em; vertical-align: top; opacity: .85; }
.coupon__bottom {
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; opacity: .7;
}

/* — индикатор скролла — */
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid var(--ink-mute);
  border-radius: 14px;
  display: grid; place-items: center;
  opacity: .6; transition: opacity .2s var(--ease);
}
.hero__scroll:hover { opacity: 1; border-color: var(--accent); }
.hero__scroll span {
  width: 3px; height: 8px;
  background: var(--ink-soft);
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0%, 100% { transform: translateY(-6px); opacity: 0; }
  50%      { transform: translateY(4px); opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translate3d(0, -8px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ============================================================
   ПОКАЗАТЕЛИ (СЧЁТЧИКИ)
   ============================================================ */
.stats {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.02) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 2.5rem);
}
.stat {
  display: flex; flex-direction: column; gap: .65rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
}
.stat__num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
  line-height: 1; letter-spacing: -.03em;
  color: var(--ink);
}
.stat__label {
  font-size: .9375rem;
  color: var(--ink-soft);
  line-height: 1.3;
}


/* ============================================================
   ПОЧЕМУ Я
   ============================================================ */
.why { padding: var(--section-y) 0; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.why-card {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .35s var(--ease-out), border-color .25s var(--ease), background .25s var(--ease);
  overflow: hidden;
}
.why-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, rgba(232,146,60,.10), transparent 55%);
  opacity: 0; transition: opacity .35s var(--ease);
  pointer-events: none;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,146,60,.4);
  background: var(--surface-2);
}
.why-card:hover::before { opacity: 1; }
.why-card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232,146,60,.18), rgba(232,146,60,.05));
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: transform .35s var(--ease);
}
.why-card:hover .why-card__icon { transform: scale(1.1) rotate(-4deg); }
.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .55rem;
  letter-spacing: -.01em;
}
.why-card p { color: var(--ink-soft); font-size: .9375rem; line-height: 1.55; }

/* ============================================================
   ПОРТФОЛИО
   ============================================================ */
.works { padding: var(--section-y) 0; background: linear-gradient(180deg, transparent, rgba(255,255,255,.015)); }
.works__filter {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin-bottom: 2rem;
}
.works__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.work {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
  transition: transform .35s var(--ease-out);
}
.work img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out), filter .35s var(--ease);
  filter: saturate(.85) brightness(.85);
}
.work::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(11,22,32,.95) 100%);
  z-index: 1;
}
.work:hover img { transform: scale(1.06); filter: saturate(1) brightness(.95); }
.work:hover { transform: translateY(-4px); }

.work__meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: .15rem;
  transform: translateY(8px);
  transition: transform .35s var(--ease-out);
}
.work:hover .work__meta { transform: translateY(0); }
.work__loc {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.work__mat {
  font-size: .75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .02em;
}

/* hidden работы при фильтрации */
.work.is-hidden { display: none; }

/* ============================================================
   МАТЕРИАЛЫ / УСЛУГИ
   ============================================================ */
.materials { padding: var(--section-y) 0; }
.materials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.mat {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), border-color .25s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}
.mat::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--mat-color, rgba(255,255,255,.15));
  transition: height .3s var(--ease);
}
.mat--econom   { --mat-color: #6B7785; }
.mat--smart    { --mat-color: #5BB573; }
.mat--reco     { --mat-color: var(--accent); }
.mat--premium  { --mat-color: #B68F4A; }

.mat:hover { transform: translateY(-4px); border-color: var(--mat-color); }
.mat:hover::before { height: 6px; }

.mat.is-featured {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-color: rgba(232,146,60,.45);
  box-shadow: 0 16px 40px -16px var(--accent-glow);
  transform: translateY(-6px);
}
.mat.is-featured::before { height: 6px; }
.mat__ribbon {
  position: absolute; top: 14px; right: -32px;
  background: var(--accent);
  color: #1A0F00;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 2.5rem;
  transform: rotate(35deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.mat__head { margin-bottom: 1.25rem; }
.mat__tag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mat-color);
  margin-bottom: .5rem;
}
.mat__name {
  font-size: 1.3rem; font-weight: 800;
  letter-spacing: -.01em;
}
.mat__sub {
  display: block;
  font-size: .8125rem;
  color: var(--ink-mute);
  margin-top: .35rem;
  font-weight: 500;
}
.mat__specs {
  display: flex; flex-direction: column; gap: .55rem;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.mat__specs li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: .8rem;
  font-size: .8125rem;
}
.mat__specs li span { color: var(--ink-mute); }
.mat__specs li b { color: var(--ink); font-weight: 600; text-align: right; }

.mat__price {
  display: flex; align-items: baseline; gap: .35rem;
  margin-bottom: 1.25rem;
}
.mat__price-num {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.mat__price-unit { font-size: .8125rem; color: var(--ink-mute); font-weight: 600; }
.mat .btn { margin-top: auto; }

/* ============================================================
   КАЛЬКУЛЯТОР
   ============================================================ */
.calc {
  padding: var(--section-y) 0;
  background:
    radial-gradient(ellipse 50% 60% at 0% 50%, rgba(232,146,60,.08), transparent 60%),
    var(--bg);
  position: relative;
}
.calc::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  opacity: .35;
}
.calc__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  position: relative;
}
.calc__copy { position: sticky; top: 100px; }
.calc__copy .section-title { margin-bottom: 1rem; }
.calc__hint {
  display: flex; gap: .8rem; align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: rgba(232,146,60,.08);
  border: 1px solid rgba(232,146,60,.2);
  border-radius: var(--radius-sm);
}
.calc__hint svg { color: var(--accent); flex: 0 0 auto; margin-top: 1px; }
.calc__hint p { font-size: .875rem; color: var(--ink-soft); }
.calc__hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.calc__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex; flex-direction: column; gap: 1.5rem;
  position: relative;
}

/* визуализация прямоугольника */
.calc__visual {
  position: relative;
  height: 140px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  overflow: hidden;
}
.calc__rect {
  background:
    repeating-linear-gradient(45deg, var(--accent) 0 4px, transparent 4px 14px),
    rgba(232,146,60,.18);
  border: 2px solid var(--accent);
  border-radius: 4px;
  transition: width .4s var(--ease-out), height .4s var(--ease-out);
  width: 60%; height: 60%;
  box-shadow: 0 4px 18px var(--accent-glow);
}
.calc__rect-w, .calc__rect-h {
  position: absolute;
  font-family: var(--ff-display); font-weight: 700;
  font-size: .8125rem; color: var(--accent);
  letter-spacing: .04em;
}
.calc__rect-w { bottom: 6px; left: 50%; transform: translateX(-50%); }
.calc__rect-h { top: 50%; right: 8px; transform: translateY(-50%) rotate(90deg); transform-origin: center; }

.calc__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

.calc__materials { padding: 0; margin: 0; border: 0; }
.calc__materials legend {
  font-size: .8125rem; font-weight: 600; color: var(--ink-mute);
  margin-bottom: .65rem;
  letter-spacing: .02em;
}
.calc__materials .radio + .radio { margin-top: .5rem; }

.calc__result {
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: .35rem;
}
.calc__result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.calc__result-row b { font-weight: 600; color: var(--ink); }
.calc__result-row--coupon { color: var(--accent); }
.calc__result-row--coupon b { color: var(--accent); }
.calc__result-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: .5rem;
  padding-top: .65rem;
  border-top: 1px dashed var(--line-2);
}
.calc__result-total span { color: var(--ink); font-weight: 600; }
.calc__result-total b {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -.02em;
}

.calc__lead {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
.calc__lead .btn { grid-column: 1 / -1; }
.calc__lead .form-policy { grid-column: 1 / -1; margin-top: -.5rem; }


/* ============================================================
   ПРОЦЕСС
   ============================================================ */
.process { padding: var(--section-y) 0; }
.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
}
.process__steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 5%; right: 5%;
  height: 2px;
  background-image: linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px);
  background-size: 16px 2px;
  background-repeat: repeat-x;
  opacity: .35;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  display: flex; flex-direction: column;
}
.step__num {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px;
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #1A0F00;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 50%;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 22px -8px var(--accent-glow);
  position: relative; z-index: 2;
}
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--ink-soft); font-size: .9375rem; line-height: 1.55; }

/* ============================================================
   ГАРАНТИЯ
   ============================================================ */
.guarantee {
  padding: var(--section-y) 0;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232,146,60,.06), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.guarantee::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(232,146,60,.08) 1px, transparent 1px);
  background-size: 30px 30px;
  mask: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 70%);
  -webkit-mask: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 70%);
  opacity: .5;
}
.guarantee__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  position: relative;
}
.guarantee__copy { position: relative; }

.stamp {
  position: absolute;
  top: -16px; right: 0;
  display: flex; flex-direction: column; align-items: center;
  width: 200px; height: 200px;
  border: 4px solid var(--accent);
  border-radius: 50%;
  padding: 1.4rem 1rem;
  color: var(--accent);
  font-family: var(--ff-display);
  text-align: center;
  letter-spacing: .04em;
  transform: rotate(-12deg);
  background: rgba(232,146,60,.04);
  filter: drop-shadow(0 8px 24px var(--accent-glow));
  opacity: .92;
}
.stamp::before {
  content: '';
  position: absolute; inset: 8px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  opacity: .5;
}
.stamp__top, .stamp__bottom {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  opacity: .8;
}
.stamp__top { margin-bottom: .35rem; }
.stamp__bottom { margin-top: .35rem; }
.stamp__big {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.guarantee__copy .section-title { margin-top: 4.5rem; }

.callback-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.callback-form h3 { font-size: 1.35rem; }
.callback-form p { color: var(--ink-soft); font-size: .9375rem; margin: -.4rem 0 .4rem; }

/* ============================================================
   ОБО МНЕ
   ============================================================ */
.about { padding: var(--section-y) 0; }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about__photo {
  position: relative;
  aspect-ratio: 3/4;
  max-width: 480px;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.about__photo picture {
  display: block;
  width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.about__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.95);
}
.about__photo::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, transparent 50%, rgba(11,22,32,.4) 100%);
  z-index: 1;
  pointer-events: none;
}
.about__photo-frame {
  position: absolute;
  top: 16px; left: 16px;
  width: 100%; height: 100%;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: .8;
}
.about__signature {
  position: absolute;
  bottom: -18px; right: -8px;
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--accent);
  background: var(--bg);
  padding: .25rem .8rem;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  transform: rotate(-4deg);
  letter-spacing: -.02em;
  z-index: 2;
}

.about__copy h2 { margin-bottom: 1.25rem; }
.about__copy p { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.65; margin-bottom: 1rem; }
.about__copy p b { color: var(--ink); font-weight: 700; }

.about__badges {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin: 1.75rem 0;
}
.about__cta {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: 1rem;
}

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer {
  background: #07111B;
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem;
  margin-top: 0;
  position: relative;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.footer__col h4 {
  font-size: .8125rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 1rem;
  font-family: var(--ff-body);
}
.footer__col a {
  display: block;
  font-size: .9375rem;
  color: var(--ink-soft);
  padding: .25rem 0;
}
.footer__col a:hover { color: var(--accent); }
.footer__col p { font-size: .875rem; color: var(--ink-mute); }
.footer__about { margin-top: 1rem; max-width: 36ch; line-height: 1.55; }
.footer__phone {
  font-family: var(--ff-display);
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  margin-bottom: .25rem !important;
}
.footer__max { color: var(--max-2) !important; font-weight: 600; }
.footer__legal { line-height: 1.5; }
.logo--footer .logo__mark { color: var(--accent); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--ink-mute);
}

/* ============================================================
   FAB MAX
   ============================================================ */
.fab {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  z-index: 60;
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .75rem 1.1rem .75rem .85rem;
  background: var(--max);
  color: #fff;
  border-radius: 999px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: .9375rem;
  box-shadow: 0 12px 28px -8px rgba(107,78,255,.55), 0 4px 12px rgba(0,0,0,.3);
  transition: transform .25s var(--ease), background .2s var(--ease);
}
.fab:hover { transform: translateY(-2px); background: var(--max-2); }
.fab__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid var(--max);
  opacity: 0;
  animation: fabPulse 2.5s ease-out infinite;
}
@keyframes fabPulse {
  0%   { transform: scale(.95); opacity: .7; }
  80%  { transform: scale(1.18); opacity: 0; }
  100% { opacity: 0; }
}
.fab__icon {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

/* ============================================================
   TOAST (уведомление от Степана)
   ============================================================ */
.toast {
  position: fixed;
  left: 1.25rem; bottom: 1.25rem;
  z-index: 55;
  display: flex; align-items: center; gap: .85rem;
  max-width: 380px;
  padding: .85rem .9rem .85rem .85rem;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: var(--shadow-3);
  animation: toastIn .5s var(--ease-out) both;
}
.toast[hidden] { display: none; }
@keyframes toastIn {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.toast__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  border: 2px solid var(--ok);
  position: relative;
}
.toast__avatar::after {
  content: '';
  position: absolute; bottom: -2px; right: -2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid var(--surface-2);
}
.toast__avatar img { width: 100%; height: 100%; object-fit: cover; }
.toast__body { display: flex; flex-direction: column; line-height: 1.2; }
.toast__body b { font-size: .9375rem; }
.toast__body span { font-size: .8125rem; color: var(--ink-soft); margin-top: .15rem; }
.toast__cta {
  padding: .5rem .9rem;
  font-size: .8125rem;
  font-weight: 700;
  background: var(--max);
  color: #fff;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s var(--ease);
}
.toast__cta:hover { background: var(--max-2); }
.toast__close {
  position: absolute;
  top: 4px; right: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--ink-mute);
  display: grid; place-items: center;
  line-height: 1;
}
.toast__close:hover { color: var(--ink); }

/* ============================================================
   ЛАЙТБОКС
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(7,17,27,.95);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 2rem 4rem;
  animation: fadeIn .25s var(--ease) both;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 300;
  display: grid; place-items: center;
  transition: background .2s var(--ease);
}
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__prev { left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; line-height: 1; padding-bottom: 4px; }
.lightbox__next { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; line-height: 1; padding-bottom: 4px; }
.lightbox button:hover { background: var(--accent); color: #1A0F00; }
.lightbox__figure { max-width: min(1100px, 90vw); margin: 0; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.lightbox__figure img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
}
.lightbox__figure figcaption {
  display: flex; flex-direction: column; gap: .25rem; align-items: center;
  font-family: var(--ff-display);
  text-align: center;
}

/* ============================================================
   COOKIE
   ============================================================ */
.cookie {
  position: fixed;
  left: 1.25rem; bottom: 1.25rem;
  z-index: 70;
  display: flex; align-items: center; gap: 1rem;
  max-width: 540px;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  animation: toastIn .4s var(--ease-out) both;
}
.cookie[hidden] { display: none; }
.cookie p { font-size: .8125rem; color: var(--ink-soft); margin: 0; }
.cookie a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie .btn { flex: 0 0 auto; }

/* ============================================================
   REVEAL (анимация при скролле)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
/* стаггер для соседей */
.why__grid > [data-reveal]:nth-child(1).is-revealed,
.materials__grid > [data-reveal]:nth-child(1).is-revealed,
.process__steps > [data-reveal]:nth-child(1).is-revealed { transition-delay: 0s; }
.why__grid > [data-reveal]:nth-child(2).is-revealed,
.materials__grid > [data-reveal]:nth-child(2).is-revealed,
.process__steps > [data-reveal]:nth-child(2).is-revealed { transition-delay: .12s; }
.why__grid > [data-reveal]:nth-child(3).is-revealed,
.materials__grid > [data-reveal]:nth-child(3).is-revealed,
.process__steps > [data-reveal]:nth-child(3).is-revealed { transition-delay: .24s; }
.why__grid > [data-reveal]:nth-child(4).is-revealed,
.materials__grid > [data-reveal]:nth-child(4).is-revealed { transition-delay: .36s; }
.why__grid > [data-reveal]:nth-child(5).is-revealed { transition-delay: .48s; }
.why__grid > [data-reveal]:nth-child(6).is-revealed { transition-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__bg img { animation: none; transform: scale(1.05); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .why__grid, .materials__grid, .works__grid { grid-template-columns: repeat(3, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .calc__inner { grid-template-columns: 1fr; }
  .calc__copy { position: static; }
  .guarantee__inner { grid-template-columns: 1fr; }
  .stamp { position: static; transform: rotate(-10deg); margin: 0 auto 1.5rem; }
  .guarantee__copy .section-title { margin-top: 0; }
  .about__inner { grid-template-columns: 1fr; }
  .about__photo { margin: 0 auto; }
  .hero__coupon { display: none; }
  .topbar__pill { display: none; }
  .works__grid, .materials__grid, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: 1fr; }
  .process__steps::before { display: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 540px) {
  .works__grid, .materials__grid, .why__grid { grid-template-columns: 1fr; }
  .calc__row, .calc__lead { grid-template-columns: 1fr; }
  .hero__price { width: 100%; }
  .toast, .cookie { left: .75rem; right: .75rem; max-width: none; bottom: .75rem; }
  .fab__label { display: none; }
  .fab { padding: .85rem; }
  .lightbox { padding: 1rem .5rem; }
  .lightbox__prev, .lightbox__next { left: .5rem; right: .5rem; }
  .lightbox__next { left: auto; }
}
@media (max-width: 540px) {
  .toast { bottom: 5rem; }
  .cookie { bottom: 5rem; }
}

/* убираем стрелки у number-полей */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ═══════════════════════════════════════════════════════════
   ОБНОВЛЕНИЯ И НОВЫЕ СЕКЦИИ ДЛЯ САЙТА МЯГКОЙ КРОВЛИ
   ═══════════════════════════════════════════════════════════ */

/* Скрываем элементы старого hero (купон, центр-layout, scroll) */
.hero__coupon, .hero__scroll, .hero__bg { display: none !important; }

/* ── HERO SPLIT ─────────────────────────────────────────── */
.hero--split {
  min-height: auto;
  padding: clamp(2.5rem, 4vw, 4.5rem) 0 clamp(3rem, 5vw, 5.5rem);
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(232,146,60,.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(107,78,255,.05), transparent 60%),
    var(--bg);
  isolation: isolate;
  overflow: visible;
  align-items: stretch;
}
.hero--split .hero__bg-decor {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
  opacity: .25;
}
.hero__split-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero--split .hero__copy { max-width: none; }
.hero--split .hero__title-line--big {
  font-size: 1.2em;
  background: linear-gradient(180deg, #fff 0%, #C8CFD8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.4));
}
.hero--split .hero__lede { margin-bottom: 1.5rem; animation: fadeUp .8s .55s var(--ease-out) both; }

.hero__types {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin-bottom: 2rem;
  animation: fadeUp .8s .65s var(--ease-out) both;
}
.hero__type {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-2);
  color: var(--ink-soft);
}
.hero__type svg { color: var(--accent); flex: 0 0 auto; }

/* ── HERO PHOTO ──────────────────────────────────────────── */
.hero__photo {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  animation: fadeUp 1s .3s var(--ease-out) both;
}
.hero__photo picture {
  display: block;
  width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-3);
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05);
}
.hero__photo-frame {
  position: absolute;
  top: 18px; left: 18px;
  width: 100%; height: 100%;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: 1;
  opacity: .8;
}
.hero__photo-card {
  position: absolute;
  bottom: -28px; left: -32px;
  z-index: 3;
  display: flex; align-items: center; gap: .8rem;
  padding: .9rem 1.2rem .9rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow-3);
  animation: floatY 5s ease-in-out infinite alternate;
  max-width: 280px;
}
.hero__photo-card-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(91,181,115,.2), rgba(91,181,115,.05));
  color: var(--ok);
  flex: 0 0 auto;
}
.hero__photo-card-body { display: flex; flex-direction: column; line-height: 1.25; }
.hero__photo-card-body b { font-size: 1rem; }
.hero__photo-card-body span { font-size: .8125rem; color: var(--ink-soft); margin-top: .15rem; }

/* ── СТАТЫ — формат hours/percent ────────────────────────── */
/* (форматирование делается в JS) */

/* ── УСЛУГИ ─────────────────────────────────────────────── */
.services { padding: var(--section-y) 0; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.service {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), border-color .25s var(--ease), box-shadow .35s var(--ease);
  overflow: hidden;
}
.service::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--accent);
  transition: height .3s var(--ease);
  opacity: .8;
}
.service:hover { transform: translateY(-4px); border-color: rgba(232,146,60,.45); }
.service:hover::before { height: 6px; opacity: 1; }
.service--featured {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border-color: rgba(232,146,60,.45);
  box-shadow: 0 16px 40px -16px var(--accent-glow);
  transform: translateY(-6px);
}
.service--featured::before { height: 6px; }
.service__ribbon {
  position: absolute; top: 14px; right: -36px;
  background: var(--accent);
  color: #1A0F00;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 2.5rem;
  transform: rotate(35deg);
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
.service__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(232,146,60,.18), rgba(232,146,60,.05));
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: transform .35s var(--ease);
}
.service:hover .service__icon { transform: scale(1.08) rotate(-4deg); }
.service__title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: .55rem;
  letter-spacing: -.01em;
}
.service__desc {
  color: var(--ink-soft);
  font-size: .9375rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.service__pros {
  display: flex; flex-direction: column; gap: .55rem;
  margin: 0 0 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.service__pros li {
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.45;
  padding-left: 1.5rem;
  position: relative;
}
.service__pros li::before {
  content: '';
  position: absolute;
  left: 0; top: .45rem;
  width: 14px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.service__pros b { color: var(--ink); font-weight: 700; }
.service__price {
  display: flex; flex-direction: column;
  margin-bottom: 1.25rem;
  padding: .75rem 1rem;
  background: rgba(0,0,0,.2);
  border-radius: var(--radius-sm);
}
.service__price-label {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-mute);
}
.service__price-value {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 600;
  margin-top: .2rem;
}
.service__price-value b {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
}
.service__price-value i { font-style: normal; color: var(--ink-mute); font-size: .85em; }
.service .btn { margin-top: auto; }

/* ── ESTIMATE FORM ──────────────────────────────────────── */
.estimate {
  padding: var(--section-y) 0;
  background: var(--bg);
  position: relative;
}
.estimate__inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.estimate__copy { position: sticky; top: 100px; }
.estimate__copy .section-title { margin-bottom: 1rem; }
.estimate__hint {
  display: flex; gap: .8rem; align-items: flex-start;
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  background: rgba(232,146,60,.08);
  border: 1px solid rgba(232,146,60,.2);
  border-radius: var(--radius-sm);
}
.estimate__hint svg { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.estimate__hint p { font-size: .875rem; color: var(--ink-soft); }

.estimate__contacts-block {
  display: flex; flex-direction: column; gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.estimate__contacts-item { display: flex; flex-direction: column; line-height: 1.2; }
.estimate__contacts-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-mute);
  margin-bottom: .25rem;
}
.estimate__contacts-value {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}
.estimate__contacts-value:hover { color: var(--accent); }

.estimate__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.estimate__type, .estimate__extras {
  border: 0; padding: 0; margin: 0;
}
.estimate__type legend, .estimate__extras legend {
  font-size: .8125rem; font-weight: 600; color: var(--ink-mute);
  margin-bottom: .8rem; letter-spacing: .02em;
}
.estimate__type { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.estimate__type legend { grid-column: 1 / -1; }
.estimate__extras { display: flex; flex-direction: column; gap: .55rem; }
.estimate__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* check (чекбокс как карточка) */
.check { position: relative; display: block; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span {
  display: flex; align-items: center; gap: .85rem;
  padding: .8rem 1rem;
  background: rgba(0,0,0,.15);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), background .2s var(--ease);
  font-size: .9375rem;
}
.check span::before {
  content: '';
  width: 20px; height: 20px;
  border: 2px solid var(--line-2);
  border-radius: 6px;
  flex: 0 0 auto;
  transition: all .2s var(--ease);
  position: relative;
}
.check input:checked + span {
  border-color: var(--accent);
  background: rgba(232,146,60,.08);
}
.check input:checked + span::before {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%231A0F00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 10l3 3 7-7'/%3E%3C/svg%3E");
  background-size: contain;
}
.check b { color: var(--ink); font-weight: 700; }

/* ── PROCESS — 4 шага ────────────────────────────────────── */
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* ── FOOTER — обновления ─────────────────────────────────── */
.footer__email { color: var(--ink-soft) !important; font-weight: 600; }
.footer__email:hover { color: var(--accent) !important; }
.footer__addr {
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.footer__addr b {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: .25rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .services__grid { grid-template-columns: 1fr; gap: 1rem; }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .estimate__type { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero__split-inner { grid-template-columns: 1fr; }
  .hero__photo { max-width: 380px; margin: 0 auto; }
  .hero__photo-card { left: -16px; }
  .estimate__inner { grid-template-columns: 1fr; }
  .estimate__copy { position: static; }
}
@media (max-width: 540px) {
  .estimate__row { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .hero__photo-card { position: static; margin-top: 1.5rem; max-width: none; }
  .hero__photo { aspect-ratio: 3/4; }
}
