/* ============================================================
   Лейаут «tech» — тёмный инженерный стиль, bento-сетки,
   калькулятор сметы, горизонтальная галерея, sticky-этапы.
   Самодостаточен: подключается ВМЕСТО style.css.
   Акцент приходит из content.json → :root{--accent}
   ============================================================ */

:root {
  --accent: #d7f24a;
  --accent-dark: #bfd93a;
  --ink: #0b0d11;

  --bg: #0b0d11;
  --bg-2: #10141a;
  --bg-3: #161b22;
  --bg-4: #1d232c;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eceef2;
  --soft: #9aa3b1;
  --mute: #6c7583;
  --on-accent: #0b0d11;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Unbounded", var(--font);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --wrap: 1240px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .5);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; color: #fff; text-wrap: balance; }

.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.75rem); margin-bottom: 16px; }
.section__subtitle { font-size: 1.08rem; color: var(--soft); max-width: 620px; }

/* ---------- Кнопки, чипы, ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 15px 26px; border: 1px solid var(--accent); border-radius: 100px; cursor: pointer; text-align: center;
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s;
  position: relative; overflow: hidden;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn:active { transform: none; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn--lg { padding: 18px 32px; font-size: 1.06rem; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--ghost { background: transparent; color: #fff; border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); border-color: #fff; box-shadow: none; }
.btn__arrow { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.link { background: none; border: 0; color: #fff; font-weight: 600; font-size: .95rem; cursor: pointer; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { color: var(--accent); }
.chip { display: inline-flex; align-items: center; font-family: var(--mono); font-size: .8rem; font-weight: 500; padding: 7px 12px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--text); white-space: nowrap; }
.chip--accent { border-color: transparent; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.chip--glass { background: rgba(10, 12, 16, .55); border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: #fff; font-size: 1.15rem; cursor: pointer; transition: .18s; }
.round:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.round:disabled { opacity: .3; cursor: default; }
.round:disabled:hover { background: transparent; color: #fff; border-color: var(--line-2); }

/* Галочка-иконка для списков: одна маска, переиспользуется */
.hero__bullets li::before, .price__features li::before { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  -webkit-mask: no-repeat center/8px url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%224%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m5 13 4 4L19 7%22/%3E%3C/svg%3E"), linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: no-repeat center/8px url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%224%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m5 13 4 4L19 7%22/%3E%3C/svg%3E"), linear-gradient(#000 0 0);
  mask-composite: exclude; }

/* ---------- Прогресс скролла ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }

/* ---------- Шапка ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(11, 13, 17, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.header__logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: #fff; letter-spacing: -.01em; }
.header__mark { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); flex-shrink: 0; }
.header__nav { display: flex; gap: 4px; margin: 0 auto; }
.header__nav a { padding: 8px 12px; border-radius: 100px; font-size: .92rem; font-weight: 500; color: var(--soft); transition: .16s; }
.header__nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.header__contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.header__phone { font-weight: 600; color: #fff; white-space: nowrap; font-size: .98rem; }
.header__phone:hover { color: var(--accent); }
.header__hours { font-family: var(--mono); font-size: .7rem; color: var(--mute); margin-top: 3px; }
.header__burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; align-items: center; justify-content: center; }
.header__burger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
.header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.header__mobile { display: none; flex-direction: column; padding: 8px 24px 28px; background: rgba(11, 13, 17, .96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header__mobile a { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 1.05rem; }
.header__mobile-phone { color: var(--accent) !important; font-family: var(--display); font-weight: 700; border-bottom: 0 !important; }
.header__mobile-hours { font-family: var(--mono); font-size: .75rem; color: var(--mute); }

/* ---------- Первый экран ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 50% at 82% 12%, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(255, 255, 255, .05) 0%, transparent 70%);
}
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; opacity: .45;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 100%); mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 100%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); border: 1px solid var(--line-2); border-radius: 100px; padding: 8px 14px 8px 10px; margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero__title { font-size: clamp(2rem, 4.6vw, 3.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.06; margin-bottom: 22px; }
.hero__subtitle { font-size: 1.15rem; color: var(--soft); max-width: 44ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero__bullets { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__bullets li { font-size: .88rem; font-weight: 500; color: var(--text); padding: 8px 14px 8px 30px; border: 1px solid var(--line); border-radius: 100px; position: relative; background: rgba(255, 255, 255, .02); }
.hero__bullets li::before { left: 12px; top: 50%; margin-top: -6px; }
.hero__media { position: relative; }
.hero__frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: var(--bg-3); position: relative; }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 13, 17, .55) 100%); pointer-events: none; }
.hero__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.js .hero__frame.is-in .hero__img { transform: scale(1); }
.hero__img--placeholder { background: linear-gradient(135deg, var(--bg-3), var(--bg-4)); }
.hero__chip { position: absolute; display: flex; flex-direction: column; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(16, 20, 26, .72); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); animation: float 6s ease-in-out infinite; }
.hero__chip--a { top: 8%; left: -28px; }
.hero__chip--b { bottom: 10%; right: -28px; animation-delay: -3s; }
.hero__chip-value { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--accent); line-height: 1.1; }
.hero__chip-label { font-size: .78rem; color: var(--soft); margin-top: 2px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero__trust { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(40px, 6vw, 72px); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .02); }
.trust__item { padding: 24px 22px; border-right: 1px solid var(--line); }
.trust__item:last-child { border-right: 0; }
.trust__value { display: block; font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; color: #fff; line-height: 1.1; }
.trust__label { display: block; font-size: .84rem; color: var(--soft); margin-top: 6px; }

/* ---------- Бегущая строка ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 28px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--display); font-size: .95rem; font-weight: 500; color: var(--soft); white-space: nowrap; }
.marquee__sep { color: var(--accent); font-size: .6rem; align-self: center; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Калькулятор ---------- */
.calc { background: var(--bg); }
.calc__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: start; }
.calc__controls { display: grid; gap: 14px; }
.calc__row { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.calc__row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.calc__label { display: block; font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; }
.calc__row-head .calc__label { margin-bottom: 0; }
.calc__value { font-family: var(--display); font-size: 1.1rem; color: var(--soft); }
.calc__value b { font-size: 1.6rem; color: #fff; font-weight: 700; }
.calc__scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; color: var(--mute); margin-top: 10px; }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 100px; background: linear-gradient(90deg, var(--accent) var(--fill, 30%), var(--bg-4) var(--fill, 30%)); outline: none; cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); transition: transform .15s; cursor: grab; }
.range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range:active::-webkit-slider-thumb { cursor: grabbing; }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); box-shadow: 0 4px 14px rgba(0, 0, 0, .45); cursor: grab; }
.range::-moz-range-track { height: 6px; border-radius: 100px; background: var(--bg-4); }
.range::-moz-range-progress { height: 6px; border-radius: 100px; background: var(--accent); }
.range:focus-visible { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }

.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; }
.segmented__item input, .level input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.segmented__item { position: relative; }
.segmented__box { display: flex; flex-direction: column; padding: 14px 16px; border-radius: var(--radius-xs); border: 1px solid var(--line-2); background: var(--bg-3); cursor: pointer; transition: .16s; font-weight: 600; font-size: .96rem; }
.segmented__box small { font-weight: 400; font-size: .78rem; color: var(--mute); margin-top: 2px; }
.segmented__box:hover { border-color: #fff; }
.segmented__item input:checked + .segmented__box { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.segmented__item input:checked + .segmented__box small { color: rgba(0, 0, 0, .6); }
.segmented__item input:focus-visible + .segmented__box { outline: 3px solid #fff; outline-offset: 2px; }

.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.level { position: relative; }
.level__box { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 18px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-3); cursor: pointer; transition: .16s; }
.level__box:hover { border-color: #fff; }
.level__name { font-family: var(--display); font-weight: 700; font-size: .95rem; color: #fff; }
.level__rate { font-family: var(--mono); font-size: .8rem; color: var(--soft); }
.level__rate b { color: var(--accent); font-weight: 500; font-size: .95rem; }
.level__text { font-size: .82rem; color: var(--mute); line-height: 1.45; }
.level input:checked + .level__box { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg-3)); box-shadow: inset 0 0 0 1px var(--accent); }
.level input:focus-visible + .level__box { outline: 3px solid #fff; outline-offset: 2px; }

.extras { display: grid; gap: 4px; }
.switch { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; padding: 10px 0; cursor: pointer; border-bottom: 1px solid var(--line); }
.switch:last-child { border-bottom: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 44px; height: 26px; border-radius: 100px; background: var(--bg-4); position: relative; transition: .18s; border: 1px solid var(--line-2); }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .18s var(--ease); }
.switch input:checked + .switch__track { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch__track::after { transform: translateX(18px); background: var(--on-accent); }
.switch input:focus-visible + .switch__track { outline: 3px solid #fff; outline-offset: 2px; }
.switch__label { font-weight: 500; font-size: .96rem; }
.switch__price { font-family: var(--mono); font-size: .78rem; color: var(--soft); white-space: nowrap; }

.calc__result { position: sticky; top: calc(var(--header-h) + 16px); }
.calc__panel { border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.calc__panel::before { content: ""; position: absolute; top: -80px; right: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); pointer-events: none; }
.calc__panel-kicker { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.calc__total { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.15rem); color: #fff; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 8px; min-height: 1.2em; }
.calc__total.is-ticking { color: var(--accent); }
.calc__per { font-family: var(--mono); font-size: .82rem; color: var(--soft); margin-bottom: 20px; }
.calc__lines { display: grid; gap: 8px; margin-bottom: 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc__lines div { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.calc__lines dt { color: var(--soft); }
.calc__lines dd { font-family: var(--mono); color: #fff; }
.calc__note { font-size: .8rem; color: var(--mute); line-height: 1.45; margin-bottom: 20px; }
.calc__lead-title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: #fff; margin-bottom: 4px; }
.calc__lead-text { font-size: .88rem; color: var(--soft); margin-bottom: 14px; }
.calc__bonus { margin-top: 16px; font-size: .86rem; padding: 12px 14px; border-radius: var(--radius-xs); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); }

/* ---------- Карточки (общие) + spotlight ---------- */
.card { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s, transform .3s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 13%, transparent), transparent 45%); }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.card__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: var(--radius-xs); background: var(--bg-3); border: 1px solid var(--line); color: var(--accent); }
.card__icon svg { width: 24px; height: 24px; }
.card__num { font-family: var(--mono); font-size: .76rem; color: var(--mute); }
.card__title { font-size: 1.12rem; margin-bottom: 10px; position: relative; }
.card__text { color: var(--soft); font-size: .95rem; flex-grow: 1; position: relative; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; position: relative; }

/* ---------- Услуги: bento ---------- */
.services { background: var(--bg-2); }
.services .card { background: var(--bg); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bento__card:nth-child(1) { grid-column: span 2; }
.bento__card:nth-child(6) { grid-column: span 2; }
.bento__card:nth-child(1), .bento__card:nth-child(6) { background: linear-gradient(140deg, var(--bg-3), var(--bg)); }
.bento__card:nth-child(1) .card__title, .bento__card:nth-child(6) .card__title { font-size: 1.35rem; }

/* ---------- Объекты: горизонтальная галерея ---------- */
.cases { overflow: hidden; }
.cases__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cases__head .section__head { margin-bottom: 0; }
.cases__nav { display: flex; gap: 8px; flex-shrink: 0; padding-bottom: 6px; }
.cases__viewport { margin-top: clamp(28px, 4vw, 44px); }
.cases__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); cursor: grab; }
.cases__track::-webkit-scrollbar { display: none; }
.cases__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.cases__track.is-dragging .case { pointer-events: none; }
.case { flex: 0 0 clamp(300px, 44vw, 600px); scroll-snap-align: start; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.case__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 0; padding: 0; background: var(--bg-3); cursor: zoom-in; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.case__media:hover img { transform: scale(1.05); }
.case__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 13, 17, .7)); pointer-events: none; }
.case__ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg-3), var(--bg-4)); }
.case__zoom { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(10, 12, 16, .6); border: 1px solid rgba(255, 255, 255, .2); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; backdrop-filter: blur(8px); opacity: 0; transition: .2s; z-index: 1; }
.case__media:hover .case__zoom { opacity: 1; }
.case__chips { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 1; }
.case__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.case__title { font-size: 1.08rem; }
.case__params { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.case__params div { display: flex; flex-direction: column; gap: 2px; }
.case__params dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.case__params dd { font-weight: 600; font-size: .92rem; color: #fff; }
.case__text { color: var(--soft); font-size: .9rem; }
.cases__foot { display: flex; align-items: center; gap: 28px; margin-top: 28px; }
.cases__progress { flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.cases__progress span { display: block; height: 100%; width: 25%; background: var(--accent); transition: width .2s var(--ease); }

/* ---------- Этапы: sticky-счётчик ---------- */
.steps { background: var(--bg-2); }
.steps__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.steps__sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.steps__sticky .section__subtitle { margin-bottom: 0; }
.steps__counter { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 9vw, 7.5rem); line-height: 1; color: #fff; margin-top: 32px; letter-spacing: -.03em; display: flex; align-items: baseline; gap: 12px; }
.steps__counter-of { font-size: 1.1rem; font-family: var(--mono); font-weight: 500; color: var(--mute); letter-spacing: 0; }
.steps__list { list-style: none; display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 26px 28px 26px 22px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, background .3s; }
.step.is-active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--bg)); }
.step__num { font-family: var(--mono); font-size: .85rem; color: var(--mute); padding-top: 6px; transition: color .3s; }
.step.is-active .step__num { color: var(--accent); }
.step__title { font-size: 1.12rem; margin-bottom: 8px; }
.step__text { color: var(--soft); font-size: .95rem; }

/* ---------- Цены ---------- */
.pricing__hint { font-family: var(--mono); font-size: .78rem; color: var(--mute); max-width: 260px; text-align: right; }
.pricing__hint b { color: var(--accent); font-weight: 500; }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), border-color .2s; }
.price::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%); }
.price:hover { transform: translateY(-3px); border-color: var(--line-2); }
.price:hover::before { opacity: 1; }
.price--hl { border-color: transparent; background: linear-gradient(var(--bg-3), var(--bg-3)) padding-box, linear-gradient(160deg, var(--accent), transparent 60%, var(--accent)) border-box; }
.price__badge { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 6px 10px; border-radius: 100px; }
.price__name { font-size: 1.2rem; margin-bottom: 14px; }
.price__rate { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--accent); line-height: 1.1; }
.price__total { font-family: var(--mono); font-size: .8rem; color: var(--soft); margin-top: 8px; }
.price__total b { color: #fff; font-weight: 500; }
.price__features { list-style: none; display: grid; gap: 10px; margin: 22px 0 26px; flex-grow: 1; }
.price__features li { position: relative; padding-left: 24px; font-size: .92rem; color: var(--soft); }
.price__features li::before { left: 0; top: 7px; }
.price__btn { width: 100%; }
.pricing__note { margin-top: 22px; font-size: .86rem; color: var(--mute); max-width: 720px; }

/* ---------- Гарантии ---------- */
.guarantees { background: var(--bg-2); }
.guarantees .card { background: var(--bg); }
.guarantees__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ---------- Отзывы: бегущая лента ---------- */
.reviews { overflow: hidden; }
.reviews__marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reviews__track { display: flex; gap: 16px; width: max-content; animation: marquee 48s linear infinite; padding: 4px 0; }
.reviews__marquee:hover .reviews__track { animation-play-state: paused; }
.review { width: min(420px, 82vw); flex-shrink: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.review__stars { display: flex; gap: 2px; font-size: .95rem; color: var(--bg-4); }
.review__star.is-on { color: var(--accent); }
.review__text { font-style: normal; color: var(--text); font-size: .97rem; line-height: 1.55; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__author > span:last-child { display: flex; flex-direction: column; }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(from 180deg, var(--accent), var(--bg-4), var(--accent)); opacity: .9; }
.review__name { font-weight: 600; color: #fff; font-size: .95rem; }
.review__role { font-size: .8rem; color: var(--mute); }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-2); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__side .section__subtitle { margin-bottom: 22px; }
.faq__links { display: flex; gap: 8px; flex-wrap: wrap; }
.faq__list { display: grid; gap: 8px; }
.faq__item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .2s; }
.faq__item.is-open { border-color: var(--line-2); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 18px; text-align: left; padding: 20px 22px; background: none; border: 0; color: #fff; font-weight: 600; font-size: 1.02rem; cursor: pointer; }
.faq__q:hover { color: var(--accent); }
.faq__icon { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); flex-shrink: 0; transition: transform .3s var(--ease), background .2s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq__item.is-open .faq__icon { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: rotate(180deg); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a p { padding: 0 22px 22px; color: var(--soft); font-size: .95rem; }
.no-js .faq__a { grid-template-rows: 1fr; }

/* ---------- Финальный CTA ---------- */
.cta__panel { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: linear-gradient(var(--bg-3), var(--bg-3)) padding-box, linear-gradient(140deg, var(--accent), transparent 45%, transparent 55%, var(--accent)) border-box; border: 1px solid transparent; }
.cta__panel::before { content: ""; position: absolute; top: -140px; left: 30%; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%); pointer-events: none; }
.cta__title { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 14px; position: relative; }
.cta__text { color: var(--soft); max-width: 46ch; margin-bottom: 22px; position: relative; }
.cta__contacts { display: flex; flex-direction: column; gap: 2px; position: relative; }
.cta__contacts a { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: #fff; }
.cta__contacts a:hover { color: var(--accent); }
.cta__contacts span { font-family: var(--mono); font-size: .76rem; color: var(--mute); }
.cta__lead { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* ---------- Форма (общая для всех блоков) ---------- */
.lead { display: grid; gap: 10px; }
.lead__row { display: block; }
.lead__input { width: 100%; font-family: inherit; font-size: 1rem; padding: 15px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-xs); background: var(--bg-3); color: #fff; transition: border-color .16s, box-shadow .16s; }
.lead__input::placeholder { color: var(--mute); }
.lead__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.lead__input--area { resize: vertical; min-height: 56px; }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead__submit { width: 100%; margin-top: 4px; }
.lead__consent { display: flex; gap: 8px; font-size: .76rem; color: var(--mute); line-height: 1.4; }
.lead__consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.lead__consent a { color: var(--soft); text-decoration: underline; }
.lead__done { text-align: center; padding: 18px 0; }
.lead__done-title { font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.lead__done-text { color: var(--soft); font-size: .92rem; }
.lead.is-sent .lead__row, .lead.is-sent .lead__submit, .lead.is-sent .lead__consent, .lead.is-sent .calc__lead-title, .lead.is-sent .calc__lead-text { display: none; }
.lead.is-sent .lead__done { display: block !important; }
.lead.is-loading .lead__submit { opacity: .6; pointer-events: none; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .92rem; color: var(--soft); background: var(--bg); }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer__logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 12px; }
.site-footer__note { max-width: 44ch; font-size: .86rem; color: var(--mute); }
.site-footer__col a { display: block; padding: 3px 0; }
.site-footer__col a:hover { color: var(--accent); }
.site-footer__phone { font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: #fff !important; }
.site-footer__legal { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .74rem; color: var(--mute); }
.site-footer__top:hover { color: var(--accent); }

/* ---------- Модальное окно и лайтбокс ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(5, 6, 9, .72); backdrop-filter: blur(6px); }
.modal__box { position: relative; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 34px 28px 28px; width: 100%; max-width: 440px; box-shadow: var(--shadow); animation: modal-in .25s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--mute); cursor: pointer; }
.modal__close:hover { color: #fff; }
.modal__title { font-family: var(--display); font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.modal__subtitle { color: var(--soft); font-size: .92rem; margin-bottom: 18px; }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(5, 6, 9, .9); display: flex; align-items: center; justify-content: center; padding: 24px; animation: modal-in .2s var(--ease); }
.lightbox__close { position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox__fig { max-width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lightbox__img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line-2); }
.lightbox__cap { font-size: .9rem; color: var(--soft); text-align: center; }

/* ---------- Мобильная панель ---------- */
.mobile-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; background: rgba(16, 20, 26, .85); border: 1px solid var(--line-2); border-radius: 100px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.mobile-bar__call, .mobile-bar__calc { display: flex; align-items: center; justify-content: center; padding: 13px; border-radius: 100px; font-weight: 600; font-size: .95rem; border: 0; cursor: pointer; }
.mobile-bar__call { color: #fff; background: rgba(255, 255, 255, .06); }
.mobile-bar__calc { background: var(--accent); color: var(--on-accent); }

/* ---------- Спасибо / политика ---------- */
.thanks-page { min-height: 100vh; display: flex; align-items: center; }
.thanks { width: 100%; padding: 40px 20px; }
.thanks__box { max-width: 480px; margin: 0 auto; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 46px 34px; text-align: center; box-shadow: var(--shadow); }
.thanks__check { width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 2rem; display: flex; align-items: center; justify-content: center; }
.thanks__title { font-size: 1.6rem; margin-bottom: 10px; }
.thanks__text { color: var(--soft); margin-bottom: 26px; }

/* ---------- Появление при скролле ---------- */
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in, .js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
.js [data-reveal-group].is-in > *:nth-child(2) { transition-delay: .08s; }
.js [data-reveal-group].is-in > *:nth-child(3) { transition-delay: .16s; }
.js [data-reveal-group].is-in > *:nth-child(4) { transition-delay: .24s; }
.js [data-reveal-group].is-in > *:nth-child(5) { transition-delay: .32s; }
.js [data-reveal-group].is-in > *:nth-child(6) { transition-delay: .4s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .header__nav { display: none; }
  .header__contact { margin-left: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card:nth-child(1), .bento__card:nth-child(6) { grid-column: span 2; }
  .guarantees__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; }
  .hero__img { aspect-ratio: 4 / 3; }
  .hero__chip--a { left: 12px; top: 12px; }
  .hero__chip--b { right: 12px; bottom: 12px; }
  .hero__trust { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2n) { border-right: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .calc__grid { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .steps__grid, .faq__grid, .cta__panel { grid-template-columns: 1fr; }
  .steps__sticky { position: static; }
  .steps__counter { display: none; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 560px; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .pricing__hint { text-align: left; max-width: none; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .wrap { padding: 0 18px; }
  .header__contact, .header__cta { display: none; }
  .header__burger { display: flex; margin-left: auto; }
  .header__mobile:not([hidden]) { display: flex; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .bento__card:nth-child(1), .bento__card:nth-child(6) { grid-column: auto; }
  .guarantees__grid { grid-template-columns: 1fr; }
  .cases__head { flex-direction: column; align-items: flex-start; }
  .cases__nav { display: none; }
  .case { flex-basis: 84vw; }
  .cases__foot { flex-direction: column; align-items: stretch; }
  .step { grid-template-columns: 40px 1fr; padding: 20px 18px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__legal { flex-direction: column; align-items: flex-start; }
  .mobile-bar { display: grid; }
  .cta__lead { padding: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee__track, .reviews__track { animation: none !important; width: auto; flex-wrap: wrap; }
  .reviews__track { padding: 0 24px; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; }
}
