/* Ясный договор — «Витрина»: юридическая помощь как понятные продукты.
   Палитра: бумага, графит, шалфей (основной), терракота (акцент), апельсин только как декор.
   Шрифты: Unbounded (дисплей, ось веса), Manrope (текст), JetBrains Mono (цены, сроки, расчёты). */

:root {
  --paper: #F8F7F2;
  --paper-2: #F1EFE6;
  --mist: #E8E6DE;
  --line: #D9D6CA;
  --ink: #1E1F1C;
  --ink-2: #464840;
  --ink-3: #62645B;
  --sage: #B8C6AE;
  --sage-100: #E4EBDD;
  --sage-200: #CCD8C2;
  --sage-600: #58774D;
  --sage-700: #3F5C3A;
  --sage-800: #2D4530;
  --sage-900: #22331F;
  --orange: #FF7A45;
  --terra: #B8512E;
  --terra-700: #9A4023;
  --terra-100: #F7DFD2;
  --g: #4C8A4A;
  --y: #F0B73A;
  --r: #C4412B;
  --g-soft: #E6F0E3;
  --y-soft: #FBF1D4;
  --r-soft: #F8E3DD;

  --font-display: "Unbounded", "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gut: clamp(16px, 4vw, 40px);
  --maxw: 1280px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 24px 50px -30px rgba(30, 31, 28, .4);

  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 clamp(16px, .94rem + .16vw, 17.5px)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 300; letter-spacing: -.028em; line-height: 1.1; text-wrap: balance; }
h1 b, h2 b, h3 b, .swell { font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sage-200); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gut)); margin-inline: auto; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-3); }

.sec { padding-block: clamp(56px, 7.5vw, 104px); position: relative; }
.sec--tight { padding-block: clamp(40px, 5vw, 72px); }
.sec--mist { background: var(--paper-2); }
.sec--deep { background: var(--sage-800); color: #F2F4EE; }
.sec--deep :focus-visible { outline-color: var(--orange); }

.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; }
.sec--deep .kicker { color: #D5DECB; }
h1.h1, .h1 { font-size: clamp(2rem, 1rem + 3.7vw, 3.8rem); line-height: 1.04; letter-spacing: -.035em; }
h2, .h2 { font-size: clamp(1.65rem, 1rem + 2.1vw, 2.65rem); line-height: 1.1; }
h3, .h3 { font-size: 1.12rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(16px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head > p { color: var(--ink-2); max-width: 54ch; }
.sec--deep .sec-head > p { color: #D5DECB; }
.stamp { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; font: 500 12px/1.4 var(--font-mono); color: var(--ink-3); }
.stamp span { display: inline-flex; align-items: center; gap: 8px; }
.stamp span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--sage-700); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 700 15px/1.1 var(--font-body); text-align: center;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(30, 31, 28, .55); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--primary:hover { --bg: var(--sage-800); }
.btn--accent { --bg: var(--terra); }
.btn--accent:hover { --bg: var(--terra-700); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--light:hover { --bg: #fff; }
.btn--outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { --bg: #fff; --fg: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--arrow::after { content: ""; width: 1.15em; height: 1.15em; background: currentColor; -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; transition: transform .25s var(--ease); }
.btn--arrow:hover::after { transform: translateX(4px); }
.link-btn { appearance: none; background: none; border: 0; padding: 10px 2px; min-height: 44px; font: inherit; font-weight: 700; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--orange); }
.link-btn:hover { text-decoration-color: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--sage-100); color: var(--sage-800); font: 600 12.5px/1.3 var(--font-body); }
.chip--line { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.chip--terra { background: var(--terra-100); color: var(--terra-700); }
.chip--mono { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .02em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
a.chip { min-height: 44px; padding-inline: 16px; text-decoration: none; }
a.chip:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 247, 242, .9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(30, 31, 28, .5); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; min-height: 44px; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__name { display: block; font: 600 1.02rem/1.1 var(--font-display); letter-spacing: -.035em; }
.brand__tag { display: block; font: 500 10.5px/1.3 var(--font-mono); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.nav { margin-inline: auto; display: flex; gap: 2px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font: 600 14.5px var(--font-body); text-decoration: none; color: var(--ink-2); transition: background .2s, color .2s; }
.nav a:hover { background: var(--sage-100); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.header-phone { appearance: none; background: none; border: 0; cursor: pointer; font: 600 13.5px var(--font-mono); color: var(--ink); padding: 0 6px; min-height: 44px; letter-spacing: -.01em; }
.header-phone:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--orange); }
.nav-toggle { display: none; appearance: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; position: relative; flex: none; }
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after { position: absolute; left: 14px; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle i { top: 22px; }
.nav-toggle i::before { left: 0; top: -6px; }
.nav-toggle i::after { left: 0; top: 6px; }
.nav-open .nav-toggle i { background: transparent; }
.nav-open .nav-toggle i::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle i::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: clamp(26px, 4.5vw, 60px) 0 clamp(54px, 7vw, 100px); position: relative; overflow: clip; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; right: -14vw; top: -16vw; width: 58vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--sage-100), rgba(228, 235, 221, 0) 72%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.hero__title { margin-bottom: clamp(16px, 2vw, 24px); }
.hero__lead { margin-bottom: clamp(20px, 2.4vw, 30px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: clamp(24px, 3vw, 38px); }
.status { display: inline-flex; align-items: center; gap: 9px; font: 500 12.5px/1.3 var(--font-mono); color: var(--ink-2); }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); flex: none; }
.status[data-state="open"]::before { background: var(--g); box-shadow: 0 0 0 4px rgba(76, 138, 74, .2); }
.status[data-state="closed"]::before { background: var(--terra); }
.need { border-top: 2px solid var(--ink); }
.need__h { font: 600 12px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); padding: 16px 0 8px; }
.need ul { list-style: none; }
.need a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 4px; border-bottom: 1px solid var(--line); font: 700 1.04rem/1.3 var(--font-body); color: var(--ink); text-decoration: none; transition: background .25s, padding .3s var(--ease); }
.need a::after { content: ""; flex: none; width: 22px; height: 22px; background: var(--terra); -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; transition: transform .3s var(--ease); }
.need a:hover { background: var(--sage-100); padding-inline: 14px; }
.need a:hover::after { transform: translateX(4px); }
.hero__media { position: relative; }
.hero__photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sage-100); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.sticker { position: absolute; z-index: 3; right: clamp(-14px, -1vw, 0px); top: clamp(-16px, -1.4vw, -4px); width: clamp(104px, 9vw, 128px); aspect-ratio: 1; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-content: center; text-align: center; text-decoration: none; font: 700 .72rem/1.25 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; transform: rotate(8deg); transition: transform .4s var(--ease); padding: 10px; }
.sticker b { display: block; font: 800 1.9rem/1 var(--font-display); letter-spacing: -.04em; margin-bottom: 2px; }
.sticker:hover { transform: rotate(-4deg) scale(1.05); }
.tl-card { position: absolute; z-index: 2; left: clamp(-48px, -3.4vw, -16px); bottom: -30px; width: min(344px, 90%); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px 16px 12px; box-shadow: 0 30px 60px -28px rgba(30, 31, 28, .5); }
.tl-card__h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.tl-card__h b { font: 600 .95rem var(--font-display); letter-spacing: -.03em; }
.tl-card__h span { font: 500 10.5px var(--font-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.tl-card ul { list-style: none; }
.tl-row { display: flex; align-items: center; gap: 12px; padding: 7px 4px; font: 600 14px/1.3 var(--font-body); }
.tl-row__st { margin-left: auto; font: 500 11px var(--font-mono); color: var(--ink-3); }
.tl-card__f { padding: 8px 4px 2px; font: 500 11px/1.4 var(--font-mono); color: var(--ink-3); border-top: 1px dashed var(--line); margin-top: 6px; }
.lamp { --c: var(--g); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); display: grid; place-items: center; color: #fff; }
.lamp--y { --c: var(--y); color: var(--ink); }
.lamp--r { --c: var(--r); }
.lamp svg { width: 62%; height: 62%; }
@keyframes lampOn { 0%, 6% { background: var(--mist); } 13%, 86% { background: var(--c); } 95%, 100% { background: var(--mist); } }
@media (prefers-reduced-motion: no-preference) {
  .tl-card .lamp { animation: lampOn 9s ease-in-out infinite both; animation-delay: calc(var(--i, 0) * .55s); }
  .swell-in { animation: swell 1.5s .45s var(--ease) both; }
}
@keyframes swell { from { font-weight: 200; } to { font-weight: 800; } }
@keyframes pop { 0% { font-weight: 300; transform: scale(.97); } 100% { font-weight: 800; transform: scale(1); } }

/* ---------- ticker ---------- */
.ticker { background: var(--sage-700); color: #fff; overflow: hidden; padding: 18px 0; --ml-gap: 0px; }
.ticker__row { display: flex; flex-wrap: wrap; gap: 6px 0; font: 300 clamp(1.05rem, .9rem + .9vw, 1.5rem)/1.2 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.ticker__row.ml-marquee { flex-wrap: nowrap; }
.ticker__row span { display: inline-flex; align-items: center; }
.ticker__row span::after { content: ""; width: .42em; height: .42em; border-radius: 50%; background: var(--orange); margin: 0 1.5em; }
.ticker__row .ml-marquee__track { gap: 0; padding-right: 0; align-items: center; }

/* ---------- shelf (service cards) ---------- */
.shelf__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); list-style: none; }
.shelf__item { display: flex; }
.card { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.3vw, 30px); position: relative; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .2s; }
.card:hover, .card:focus-within { transform: translateY(-5px); box-shadow: 0 22px 44px -26px rgba(30, 31, 28, .45); border-color: var(--sage); }
.card--base { background: var(--sage-100); border-color: var(--sage-200); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.card__ico { width: 64px; height: 64px; border-radius: 20px; background: var(--sage-100); display: grid; place-items: center; flex: none; }
.card--base .card__ico { background: #fff; }
.card__ico svg { width: 40px; height: 40px; }
.card__tag { font: 600 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); text-align: right; }
.card__title { margin-bottom: 10px; font-size: 1.2rem; }
.card__line { color: var(--ink-2); font-size: .98rem; line-height: 1.55; margin-bottom: 18px; }
.card__meta { margin: 0 0 20px; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 10px; margin-top: auto; }
.card__meta div { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: baseline; }
.card__meta dt { font: 500 11px/1.4 var(--font-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.card__meta dd { margin: 0; font-size: .92rem; line-height: 1.4; font-weight: 600; }
.price { display: flex; align-items: baseline; gap: .45em; font-family: var(--font-display); line-height: 1; color: var(--ink); }
.price__from { font: 500 .82rem var(--font-mono); color: var(--ink-3); }
.price__num { font-size: clamp(1.85rem, 1.4rem + 1.1vw, 2.5rem); font-weight: 400; letter-spacing: -.045em; transition: font-weight .5s var(--ease); }
.price__cur { font-size: 1.05rem; font-weight: 400; letter-spacing: 0; }
.card:hover .price__num, .card:focus-within .price__num { font-weight: 800; }
.card .price { margin-bottom: 18px; }
.card__act { display: flex; flex-wrap: wrap; gap: 8px; }
.card__act .btn { flex: 1 1 auto; }
.fineprint { margin-top: clamp(20px, 3vw, 32px); display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); font-size: .92rem; max-width: 92ch; }
.fineprint::before { content: "i"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 13px/24px var(--font-mono); text-align: center; margin-top: 2px; }

/* ---------- signal block ---------- */
.signal { border-radius: var(--r-xl); background: var(--sage-200); padding: clamp(24px, 4.5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 4vw, 64px); align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.signal::before { content: ""; position: absolute; z-index: -1; right: -12%; top: -50%; width: 52%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .32); }
.signal h2 { margin-bottom: 18px; font-size: clamp(1.55rem, 1rem + 1.7vw, 2.3rem); }
.signal p { color: var(--ink-2); max-width: 52ch; margin-bottom: 20px; }
.signal .chips { margin-bottom: 26px; }
.signal .chip { background: rgba(255, 255, 255, .7); color: var(--ink); }
.legend { list-style: none; display: grid; gap: 12px; }
.legend li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; background: #fff; border-radius: var(--r-md); padding: 16px 18px; box-shadow: 0 14px 30px -24px rgba(30, 31, 28, .5); }
.legend .lamp { width: 44px; height: 44px; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .14); }
.legend b { display: block; font: 600 .98rem var(--font-display); letter-spacing: -.02em; margin-bottom: 3px; }
.legend span { font-size: .93rem; color: var(--ink-2); line-height: 1.5; }
.signal .legend-note { margin: 16px 0 0; max-width: 60ch; font: 500 13px/1.55 var(--font-body); color: var(--ink-2); }

/* ---------- checks ---------- */
.checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); list-style: none; }
.checks__item { display: flex; }
.check-group { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2vw, 26px); }
.check-group h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 4px; }
.check-group > p { font: 500 11.5px/1.4 var(--font-mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
.check-group ul { list-style: none; display: grid; gap: 12px; }
.check-group li { position: relative; padding-left: 28px; font-size: .94rem; line-height: 1.5; color: var(--ink-2); }
.check-group li::before { content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--sage-700); -webkit-mask: var(--i-check) center / 62% no-repeat, linear-gradient(#000, #000); -webkit-mask-composite: xor; mask: var(--i-check) center / 62% no-repeat, linear-gradient(#000, #000); mask-composite: exclude; }
.check-group li b { color: var(--ink); font-weight: 700; }
.check-group .ref { display: block; margin-top: 3px; }
.ref { font: 500 11.5px/1.3 var(--font-mono); color: var(--terra-700); white-space: normal; }

/* ---------- document mockups ---------- */
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 44px); align-items: start; list-style: none; }
.docs__item { display: block; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 26px; box-shadow: var(--shadow); font: 500 11.5px/1.55 var(--font-mono); color: var(--ink-2); transition: transform .5s var(--ease); position: relative; }
.docs__item:nth-child(1) .doc { transform: rotate(-1.8deg); }
.docs__item:nth-child(2) .doc { transform: rotate(1.4deg) translateY(22px); }
.docs__item:nth-child(3) .doc { transform: rotate(-1deg); }
.docs__item .doc:hover { transform: rotate(0) translateY(-6px); }
.doc::before { content: "образец"; position: absolute; right: 14px; top: 12px; font: 600 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--terra-700); border: 1px solid var(--terra); border-radius: 4px; padding: 3px 6px; transform: rotate(4deg); }
.doc h3 { font: 700 12.5px/1.3 var(--font-mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); margin: 0 70px 14px 0; }
.doc__row { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--mist); }
.doc__row .lamp { width: 14px; height: 14px; margin-top: 3px; }
.doc__row b { color: var(--ink); font-weight: 700; }
.doc__foot { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--ink-3); }
.doc p { margin-bottom: 10px; }
.doc mark { background: linear-gradient(transparent 8%, rgba(255, 122, 69, .38) 8%, rgba(255, 122, 69, .38) 92%, transparent 92%); color: var(--ink); padding: 1px 2px; }
.doc__sign { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; }
.doc__sign span { flex: 1; border-top: 1px solid var(--ink-3); padding-top: 4px; color: var(--ink-3); font-size: 10.5px; }
.doc__todo { list-style: none; display: grid; gap: 4px; }
.doc__todo li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--mist); }
.doc__todo li::before { content: ""; flex: none; width: 15px; height: 15px; border: 1.5px solid var(--ink-3); border-radius: 4px; margin-top: 2px; }
.doc__todo li.is-done::before { background: var(--sage-700); border-color: var(--sage-700); -webkit-mask: var(--i-check) center / 80% no-repeat, linear-gradient(#000, #000); -webkit-mask-composite: xor; mask: var(--i-check) center / 80% no-repeat, linear-gradient(#000, #000); mask-composite: exclude; }
.doc__todo li.is-done { color: var(--ink); }
.docs__cap { margin-top: 36px; display: block; }
.docs__item:nth-child(2) .docs__cap { margin-top: 56px; }
.docs__cap b { display: block; font: 600 1rem var(--font-display); letter-spacing: -.02em; margin-bottom: 4px; }
.docs__cap span { color: var(--ink-2); font-size: .94rem; }

/* ---------- steps ---------- */
.steps-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.steps-wrap__side { position: sticky; top: 100px; }
.steps-wrap__side h2 { margin-bottom: 18px; }
.steps-wrap__side p { color: #D5DECB; margin-bottom: 24px; max-width: 48ch; }
.photo { border-radius: var(--r-lg); overflow: hidden; background: var(--sage-100); }
.photo img { width: 100%; height: auto; }
.need-docs { margin-top: 22px; }
.need-docs h3 { font: 600 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #D5DECB; margin-bottom: 12px; }
.need-docs .chip { background: rgba(255, 255, 255, .12); color: #fff; }
.steps { list-style: none; counter-reset: s; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; padding-bottom: clamp(24px, 3vw, 36px); position: relative; }
.step::before { counter-increment: s; content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--ink); font: 700 15px/1 var(--font-mono); display: grid; place-items: center; z-index: 1; }
.step::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: rgba(255, 255, 255, .25); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.2rem; font-weight: 500; margin: 6px 0 8px; }
.step p { color: #E1E8D9; font-size: .98rem; max-width: 56ch; }
.step__t { display: inline-block; margin-top: 10px; font: 500 12px var(--font-mono); color: #fff; background: rgba(255, 255, 255, .13); border-radius: 999px; padding: 4px 12px; }

/* ---------- line open ---------- */
.line { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(18px, 2.4vw, 32px); }
.line__people { background: var(--sage-100); border-radius: var(--r-xl); padding: clamp(22px, 3.2vw, 44px); }
.line__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; margin-bottom: 26px; }
.people { list-style: none; display: grid; gap: 14px; }
.person { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: center; background: #fff; border-radius: var(--r-md); padding: 14px 18px 14px 14px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font: 600 1.05rem var(--font-display); letter-spacing: -.04em; background: var(--sage); color: var(--sage-900); }
.person:nth-child(2) .avatar { background: var(--terra-100); color: var(--terra-700); }
.person:nth-child(3) .avatar { background: var(--mist); color: var(--ink); }
.person__t b { display: block; font: 600 1rem var(--font-display); letter-spacing: -.025em; }
.person__t span { font-size: .93rem; color: var(--ink-2); line-height: 1.45; display: block; margin-top: 2px; }
.line__note { margin-top: 18px; font-size: .92rem; color: var(--ink-2); }
.line__side { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.hours { list-style: none; display: grid; gap: 0; font: 500 .9rem var(--font-mono); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours li.is-today { color: var(--sage-700); font-weight: 700; }
.channels { display: grid; gap: 10px; }

/* ---------- guides & faq ---------- */
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; list-style: none; }
.guide, .qa { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s, box-shadow .3s; }
.guide[open], .qa[open] { border-color: var(--sage-600); box-shadow: 0 18px 40px -30px rgba(30, 31, 28, .5); }
.guide summary, .qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 16px; align-items: center; padding: clamp(18px, 2vw, 24px) clamp(18px, 2.4vw, 28px); min-height: 72px; }
.guide summary::-webkit-details-marker, .qa summary::-webkit-details-marker { display: none; }
.guide summary::after, .qa summary::after { content: ""; width: 40px; height: 40px; border-radius: 50%; background: var(--sage-100) var(--i-plus) center / 18px no-repeat; transition: transform .35s var(--ease), background-color .2s; }
.guide[open] summary::after, .qa[open] summary::after { transform: rotate(135deg); background-color: var(--orange); }
.guide summary:hover::after, .qa summary:hover::after { background-color: var(--sage-200); }
.guide__tag { display: block; font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.guide summary h3 { font-size: 1.06rem; font-weight: 500; }
.qa summary { font: 700 1.04rem/1.4 var(--font-body); }
.guide__body, .qa__body { padding: 0 clamp(18px, 2.4vw, 28px) clamp(18px, 2vw, 26px); color: var(--ink-2); font-size: .98rem; display: grid; gap: 12px; }
.guide__body ul { padding-left: 1.2em; display: grid; gap: 6px; }
.guide__body .chips { margin-top: 2px; }
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq-wrap > div:first-child { position: sticky; top: 100px; }
.faq-wrap p { color: var(--ink-2); margin-top: 16px; max-width: 38ch; }

/* ---------- contacts, map, form ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(18px, 2.4vw, 32px); }
.map { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #EFEDE3; border: 1px solid var(--line); min-height: 380px; display: flex; flex-direction: column; }
.map svg { width: 100%; height: auto; flex: 1; min-height: 300px; }
.map__badge { position: absolute; left: 16px; top: 16px; background: #fff; border-radius: 999px; padding: 9px 16px 9px 14px; box-shadow: 0 10px 24px -14px rgba(30, 31, 28, .5); }
.map__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border-top: 1px solid var(--line); }
.map__addr { font-weight: 700; }
.map__addr small { display: block; font: 500 11.5px var(--font-mono); color: var(--ink-3); font-weight: 500; }
.pin-pulse { transform-origin: center; transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) { .pin-pulse { animation: pulse 2.6s ease-out infinite; } }
@keyframes pulse { 0% { transform: scale(.4); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.info { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 38px); display: flex; flex-direction: column; gap: 4px; }
.info dl { margin: 0; display: grid; }
.info dl > div { padding: 14px 0; border-bottom: 1px dashed var(--line); display: grid; gap: 4px; }
.info dl > div:last-child { border: 0; }
.info dt { font: 600 11px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.info dd { margin: 0; font-weight: 600; line-height: 1.5; }
.info dd small { font-weight: 500; color: var(--ink-2); font-size: .9rem; display: block; }
.form-card { margin-top: clamp(18px, 2.4vw, 32px); background: var(--sage-200); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(22px, 4vw, 64px); align-items: start; }
.form-card h2 { margin-bottom: 16px; }
.form-card > div > p { color: var(--ink-2); max-width: 44ch; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > label, .field > .label { font: 700 14px var(--font-body); }
.field input[type="text"], .field input[type="tel"], .field textarea { width: 100%; min-height: 54px; padding: 12px 18px; border-radius: 16px; border: 1.5px solid transparent; background: #fff; font: 500 16px/1.4 var(--font-body); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--sage-600); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sage-700); box-shadow: 0 0 0 4px rgba(63, 92, 58, .22); }
.field .hint { font-size: 13px; color: var(--ink-2); }
.field .hint b { color: var(--terra-700); }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { position: relative; display: inline-flex; }
.radios input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radios span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px; background: #fff; border: 1.5px solid transparent; font: 700 14px var(--font-body); transition: background .2s, color .2s, border-color .2s; }
.radios input:hover + span { border-color: var(--sage-600); }
.radios input:checked + span { background: var(--sage-700); color: #fff; }
.radios input:focus-visible + span { outline: 3px solid var(--terra); outline-offset: 3px; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.consent input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--sage-700); cursor: pointer; }
.consent a { color: var(--ink); font-weight: 700; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.consent a:hover { text-decoration-color: currentColor; }
.next { list-style: none; counter-reset: n; margin-top: 28px; display: grid; gap: 14px; }
.next li { counter-increment: n; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.next li::before { content: counter(n); width: 34px; height: 34px; border-radius: 50%; background: #fff; font: 600 13px/34px var(--font-mono); text-align: center; color: var(--sage-800); }
.next b { color: var(--ink); }
.form__fine { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D9DBD3; padding: clamp(44px, 6vw, 80px) 0 clamp(28px, 4vw, 40px); }
.site-footer a { color: #fff; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.site-footer a:hover { text-decoration-color: var(--orange); }
.site-footer :focus-visible { outline-color: var(--orange); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.foot .brand__name { color: #fff; font-size: 1.15rem; }
.foot .brand__tag { color: #A6A99F; }
.foot h4 { font: 600 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #A6A99F; margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 0; }
.foot li a { display: inline-flex; align-items: center; min-height: 44px; }
.foot p { font-size: .92rem; line-height: 1.6; margin-bottom: 10px; }
.foot__legal { margin-top: clamp(28px, 4vw, 48px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 10px; font-size: .84rem; line-height: 1.6; color: #B5B8AE; }
.foot__legal strong { color: #fff; font-weight: 700; }

/* ---------- sticky mobile bar ---------- */
.mbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(248, 247, 242, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.mbar .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; font-size: 14px; min-height: 48px; }

/* =========================================================
   CHECK PAGE — «Светофор квартиры»
   ========================================================= */
.page-hero { padding: clamp(28px, 4.5vw, 64px) 0 clamp(32px, 4vw, 56px); position: relative; overflow: clip; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; right: -12vw; top: -20vw; width: 52vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--sage-100), rgba(228, 235, 221, 0) 72%); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.page-hero h1 { margin-bottom: 20px; }
.page-hero .lead { margin-bottom: 24px; }
.page-hero .photo { aspect-ratio: 4 / 3; border-radius: var(--r-xl); }
.page-hero .photo img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { display: flex; gap: 8px; align-items: center; font: 500 12px var(--font-mono); color: var(--ink-3); margin: -12px 0 10px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 2px; text-decoration-color: var(--orange); text-underline-offset: 3px; }

.test { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3.5vw, 56px); align-items: start; }
.test__qs { display: grid; gap: 18px; min-width: 0; }
.test__panel { position: sticky; top: 92px; max-height: calc(100vh - 108px); overflow: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(18px, 2vw, 28px); box-shadow: var(--shadow); scrollbar-width: thin; }
.tl-mini { display: none; }
.q { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 32px); transition: border-color .3s, box-shadow .3s; scroll-margin-top: 150px; }
.q.is-done { border-color: var(--sage-600); }
.q__head { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; margin-bottom: 14px; align-items: start; }
.q__n { width: 44px; height: 44px; border-radius: 50%; background: var(--sage-100); font: 600 .9rem/44px var(--font-mono); text-align: center; color: var(--sage-800); transition: background .3s, color .3s; }
.q.is-done .q__n { background: var(--sage-700); color: #fff; }
.q__t { font: 500 clamp(1.1rem, 1rem + .5vw, 1.35rem)/1.25 var(--font-display); letter-spacing: -.025em; margin: 2px 0 8px; }
.q__why { font-size: .94rem; color: var(--ink-2); line-height: 1.55; }
.q__why .ref { display: inline-block; margin-top: 6px; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.opt { --c: var(--ink-3); --c-soft: var(--paper-2); position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 64px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; background: #fff; font: 600 .96rem/1.4 var(--font-body); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.opt[data-level="g"] { --c: var(--g); --c-soft: var(--g-soft); }
.opt[data-level="y"] { --c: #C99413; --c-soft: var(--y-soft); }
.opt[data-level="r"] { --c: var(--r); --c-soft: var(--r-soft); }
.opt:hover { border-color: var(--c); transform: translateY(-1px); }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt__dot { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--c); background: #fff; transition: background .2s, box-shadow .2s; margin-top: 1px; display: grid; place-items: center; }
.opt[data-level="g"] .opt__dot { border-color: var(--g); }
.opt[data-level="y"] .opt__dot { border-color: var(--y); }
.opt:has(input:checked) { border-color: var(--c); background: var(--c-soft); }
.opt:has(input:checked) .opt__dot { background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.opt[data-level="y"]:has(input:checked) .opt__dot { background: var(--y); }
.opt[data-level="u"] .opt__dot { border-style: dashed; }
.opt:has(input:focus-visible) { outline: 3px solid var(--terra); outline-offset: 3px; }
.opt small { display: block; font-weight: 500; font-size: .85rem; color: var(--ink-2); margin-top: 2px; }
.q__out { margin-top: 16px; }
.q__expl { --c: var(--ink-3); --c-soft: var(--paper-2); border-left: 4px solid var(--c); background: var(--c-soft); padding: 14px 18px; border-radius: 0 var(--r-md) var(--r-md) 0; font-size: .95rem; line-height: 1.6; color: var(--ink); margin-top: 10px; }
.q__expl[data-for="g"] { --c: var(--g); --c-soft: var(--g-soft); }
.q__expl[data-for="y"] { --c: var(--y); --c-soft: var(--y-soft); }
.q__expl[data-for="r"] { --c: var(--r); --c-soft: var(--r-soft); }
.q__expl b { display: block; font: 700 12px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; color: var(--ink-2); }
.js .q__expl { display: none; }
.js .q__expl.is-on { display: block; animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.test__panel { display: flex; flex-direction: column; }
.test__panel > .result { order: 1; }
.test__panel > .rows { order: 2; margin-top: 4px; }
.test__panel > .panel__hint { order: 3; }
.test__panel > .panel__stamp { order: 4; }
.test__panel > p:last-child { order: 5; }
.panel__h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.panel__h h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.03em; }
.panel__h span { font: 600 12px var(--font-mono); color: var(--ink-2); }
.bar { height: 6px; border-radius: 99px; background: var(--mist); overflow: hidden; margin: 10px 0 14px; }
.bar i { display: block; height: 100%; width: 0; background: var(--sage-700); border-radius: 99px; transition: width .5s var(--ease); }
.tl-count { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.tl-count div { --c: var(--g); border-radius: 18px; padding: 10px 14px 12px; background: color-mix(in srgb, var(--c) 13%, #fff); border: 1.5px solid color-mix(in srgb, var(--c) 38%, #fff); }
.tl-count div:nth-child(2) { --c: var(--y); }
.tl-count div:nth-child(3) { --c: var(--r); }
.tl-count b { display: block; font: 400 2.1rem/1.05 var(--font-display); letter-spacing: -.05em; transform-origin: left bottom; }
.tl-count b.is-pop { animation: pop .7s var(--ease) both; }
.tl-count span { font: 700 12px var(--font-body); color: var(--ink-2); }
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows li { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font: 600 14.5px/1.3 var(--font-body); }
.rows .lamp { background: var(--mist); box-shadow: none; border: 2px dashed #B9B6A9; color: transparent; transition: background .35s, border-color .2s; }
.rows li[data-state] .lamp { border: 0; background: var(--c); animation: lampPop .5s var(--ease); }
.rows li[data-state="g"] .lamp { --c: var(--g); color: #fff; }
.rows li[data-state="y"] .lamp { --c: var(--y); color: var(--ink); }
.rows li[data-state="r"] .lamp { --c: var(--r); color: #fff; }
.rows li[data-state="u"] .lamp { --c: #8D8F85; color: #fff; }
.rows .st { margin-left: auto; font: 500 11.5px var(--font-mono); color: var(--ink-3); text-align: right; }
.rows li[data-state] .st { color: var(--ink); }
@keyframes lampPop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.result { margin: 4px 0 18px; border-radius: var(--r-lg); background: var(--ink); color: var(--paper); padding: clamp(18px, 2.2vw, 26px); }
.result[hidden] { display: none; }
.result:not([hidden]) { animation: fadeUp .6s var(--ease) both; }
.result__k { font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: #BDC0B5; margin-bottom: 10px; }
.result h3 { font: 600 1.15rem/1.2 var(--font-display); letter-spacing: -.03em; margin-bottom: 14px; color: #fff; }
.result .price { color: #fff; margin-bottom: 4px; }
.result .price__from { color: #BDC0B5; }
.result .price__num { font-size: 2.4rem; font-weight: 700; }
.result__term { font: 500 12.5px var(--font-mono); color: #BDC0B5; margin-bottom: 14px; }
.result ul { padding-left: 1.2em; display: grid; gap: 5px; font-size: .93rem; color: #E6E8E0; margin-bottom: 16px; }
.result__act { display: grid; gap: 8px; }
.result__pkg { display: block; font: 600 1.05rem/1.3 var(--font-display); letter-spacing: -.02em; color: #fff; margin-bottom: 10px; }
.result__sep { border: 0; border-top: 1px dashed rgba(255, 255, 255, .22); margin: 16px 0; }
.result__note { margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: #BDC0B5; }
.result__note b { color: #fff; }
.panel__hint { margin-top: 16px; font: 500 12px/1.55 var(--font-mono); color: var(--ink-3); }
.panel__stamp { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.not-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 40px); }
.box h3 { font: 500 1.3rem/1.2 var(--font-display); letter-spacing: -.03em; margin-bottom: 16px; }
.box ul { list-style: none; display: grid; gap: 12px; }
.box li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: .98rem; }
.box li::before { content: ""; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); }
.box--sage { background: var(--sage-100); border-color: var(--sage-200); }
.box--sage li::before { background: var(--sage-700); }
.box li b { color: var(--ink); }

/* =========================================================
   PRICES PAGE
   ========================================================= */
.plans { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.plans th, .plans td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .95rem; line-height: 1.45; }
.plans thead th { background: var(--paper-2); font: 600 1rem/1.25 var(--font-display); letter-spacing: -.02em; vertical-align: bottom; }
.plans thead th:first-child { font: 600 11px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.plans tbody th { font-weight: 600; color: var(--ink); width: 28%; }
.plans tbody th small { display: block; font: 500 11px var(--font-mono); color: var(--terra-700); margin-top: 3px; }
.plans td:nth-child(3), .plans thead th:nth-child(3) { background-color: var(--sage-100); }
.plans thead th:nth-child(3) { background-color: var(--sage-200); }
.plans tr:last-child th, .plans tr:last-child td { border-bottom: 0; }
.plans .row--price td, .plans .row--price th { background: var(--ink); color: #fff; border-bottom: 0; }
.plans .row--price .price { color: #fff; }
.plans .row--price .price__from { color: #BDC0B5; }
.plans .row--price .price { flex-wrap: nowrap; white-space: nowrap; gap: .35em; }
.plans .row--price .price__num { font-size: clamp(1.15rem, .7rem + 1vw, 1.65rem); font-weight: 600; }
.plans .row--price th small { color: #BDC0B5; }
.plans .row--price td:nth-child(3) { background: var(--sage-700); }
.plans .row--term td { font: 600 13px var(--font-mono); }
.yes, .no { display: inline-block; width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; }
.yes { background: var(--sage-700); -webkit-mask: var(--i-check) center / 62% no-repeat, linear-gradient(#000, #000); -webkit-mask-composite: xor; mask: var(--i-check) center / 62% no-repeat, linear-gradient(#000, #000); mask-composite: exclude; }
.no { position: relative; }
.no::before { content: ""; position: absolute; left: 6px; right: 6px; top: 11px; height: 2px; background: #B6B3A6; border-radius: 2px; }
.table-note { margin-top: 16px; font-size: .9rem; color: var(--ink-2); max-width: 92ch; }

.est { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 44px); background: var(--sage-100); border-radius: var(--r-xl); padding: clamp(20px, 3.6vw, 52px); align-items: start; }
.est__ctrl { display: grid; gap: 26px; min-width: 0; }
.est fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.est legend, .est .flabel { font: 700 14px var(--font-body); padding: 0; margin-bottom: 10px; display: block; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; background: #fff; padding: 5px; border-radius: 20px; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; text-align: center; min-height: 52px; padding: 6px 8px; border-radius: 15px; font: 700 13.5px/1.25 var(--font-body); transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--sage-700); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--terra); outline-offset: 2px; }
.range { display: grid; gap: 2px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range__top output { font: 600 1.05rem var(--font-display); letter-spacing: -.03em; }
.range small { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.range.is-off { opacity: .45; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; --p: 0%; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(to right, var(--sage-700) var(--p), #fff var(--p)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: #fff; }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--sage-700); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--terra); margin-top: -10px; box-shadow: 0 6px 14px -6px rgba(30, 31, 28, .6); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--terra); box-shadow: 0 6px 14px -6px rgba(30, 31, 28, .6); }
input[type="range"]:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 10px; }
.adds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.add { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; background: #fff; border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; border: 1.5px solid transparent; min-height: 64px; font-size: .92rem; line-height: 1.35; font-weight: 600; transition: border-color .2s; }
.add:hover { border-color: var(--sage-600); }
.add input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--sage-700); cursor: pointer; }
.add small { display: block; font: 500 11.5px var(--font-mono); color: var(--terra-700); margin-top: 3px; font-weight: 500; }
.add:has(input:checked) { border-color: var(--sage-700); }
.est__out { background: var(--ink); color: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); position: sticky; top: 96px; }
.est__k { font: 600 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: #BDC0B5; margin-bottom: 14px; }
.est__total { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3em .5em; font-family: var(--font-display); line-height: 1; margin-bottom: 8px; }
.est__total .price__from { color: #BDC0B5; font-size: 1rem; }
.est__num { font-size: clamp(2.5rem, 1.5rem + 3.2vw, 4.2rem); font-weight: 700; letter-spacing: -.055em; }
.est__num.is-pop { animation: pop .7s var(--ease) both; }
.est__cur { font-size: 1.4rem; }
.est__pct { font: 500 13px var(--font-mono); color: #BDC0B5; margin-bottom: 8px; }
.meter { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; margin-bottom: 6px; }
.meter i { display: block; height: 100%; width: 3%; background: var(--orange); border-radius: 99px; transition: width .6s var(--ease); }
.meter__lbl { display: flex; justify-content: space-between; font: 500 11px var(--font-mono); color: #9FA297; margin-bottom: 20px; }
.est__lines { list-style: none; display: grid; gap: 0; margin-bottom: 18px; border-top: 1px solid rgba(255, 255, 255, .16); }
.est__lines li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .16); font-size: .92rem; color: #E6E8E0; }
.est__lines li span:last-child { font: 500 13px var(--font-mono); color: #fff; white-space: nowrap; }
.est__side { font-size: .88rem; line-height: 1.55; color: #D2D5CA; margin-bottom: 18px; }
.est__side b { color: #fff; }
.est__note { margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: #BDC0B5; }

.product { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(18px, 3vw, 56px); padding: clamp(26px, 3.4vw, 44px) 0; border-top: 1.5px solid var(--ink); scroll-margin-top: 96px; }
.product:last-of-type { border-bottom: 1.5px solid var(--ink); }
.product__side { align-self: start; position: sticky; top: 100px; }
.product__side .card__ico { margin-bottom: 18px; }
.product__side h3 { font: 500 clamp(1.3rem, 1.1rem + .8vw, 1.7rem)/1.15 var(--font-display); margin-bottom: 14px; }
.product__side .price { margin-bottom: 8px; }
.product__side .price__num { font-weight: 600; }
.product__term { font: 500 12.5px var(--font-mono); color: var(--ink-2); margin-bottom: 18px; }
.product__act { display: grid; gap: 8px; max-width: 280px; }
.product__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px) clamp(20px, 3vw, 44px); }
.product__body p.sum { grid-column: 1 / -1; font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }
.product__body h4 { font: 600 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 12px; }
.product__body ul { list-style: none; display: grid; gap: 9px; }
.product__body li { position: relative; padding-left: 24px; font-size: .96rem; line-height: 1.5; }
.product__body li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--sage-700); -webkit-mask: var(--i-check) center / 66% no-repeat, linear-gradient(#000, #000); -webkit-mask-composite: xor; mask: var(--i-check) center / 66% no-repeat, linear-gradient(#000, #000); mask-composite: exclude; }
.product__body .is-factor li::before { background: var(--orange); -webkit-mask: none; mask: none; width: 9px; height: 9px; top: 8px; left: 3px; }
.product__body .is-out li::before { background: #B6B3A6; -webkit-mask: none; mask: none; width: 12px; height: 2px; top: 11px; left: 1px; border-radius: 2px; }
.fees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); list-style: none; }
.fee { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.2vw, 28px); height: 100%; }
.fee b { display: block; font: 600 1.02rem var(--font-display); letter-spacing: -.02em; margin-bottom: 10px; }
.fee .price__num { font-size: 1.7rem; font-weight: 600; }
.fee p { margin-top: 10px; font-size: .92rem; color: var(--ink-2); line-height: 1.55; }
.services { width: 100%; border-collapse: collapse; }
.services th, .services td { text-align: left; padding: 18px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.services thead th { font: 600 11px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); border-bottom: 2px solid var(--ink); }
.services tbody th { font-weight: 700; width: 38%; }
.services td:last-child { text-align: right; vertical-align: top; white-space: nowrap; font: 600 1rem var(--font-mono); }
.services small { display: block; margin-top: 3px; font-weight: 500; color: var(--ink-2); font-size: .9rem; line-height: 1.5; max-width: 52ch; }
.work { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(22px, 4vw, 64px); align-items: center; }
.work__steps { list-style: none; display: grid; gap: 14px; counter-reset: w; }
.work__steps li { counter-increment: w; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px 16px 16px; }
.work__steps li::before { content: counter(w); width: 40px; height: 40px; border-radius: 50%; background: var(--sage-100); font: 600 14px/40px var(--font-mono); text-align: center; color: var(--sage-800); }
.work__steps b { display: block; margin-bottom: 2px; }
.work__steps span { color: var(--ink-2); font-size: .94rem; }
.cta-band { background: var(--sage-700); color: #fff; border-radius: var(--r-xl); padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; }
.cta-band h2 { max-width: 20ch; }
.cta-band p { color: #D5DECB; margin-top: 14px; max-width: 52ch; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal { padding: clamp(30px, 5vw, 72px) 0 clamp(60px, 8vw, 110px); }
.legal__box { max-width: 860px; }
.legal h1 { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.8rem); margin-bottom: 14px; }
.legal .demo-note { background: var(--terra-100); border-radius: var(--r-md); padding: 14px 18px; font-size: .92rem; color: var(--terra-700); font-weight: 600; margin: 22px 0 32px; }
.legal h2 { font: 600 1.15rem/1.3 var(--font-display); letter-spacing: -.02em; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 1.3em; display: grid; gap: 6px; margin-bottom: 12px; }
.legal dl { margin: 0 0 12px; display: grid; gap: 0; }
.legal dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.legal dt { font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.legal dd { margin: 0; color: var(--ink); font-weight: 600; }
.legal a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--orange); font-weight: 700; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .shelf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand__tag { display: none; }
}
@media (max-width: 1080px) {
  .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav { flex-wrap: wrap; order: 5; width: 100%; margin: 0 0 10px; }
  .js .nav { display: none; }
  .js .nav-open .nav { display: flex; flex-direction: column; gap: 2px; padding-bottom: 8px; }
  .js .nav-open .nav a { min-height: 52px; font-size: 16px; border-radius: 14px; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 960px) {
  .hero__grid, .page-hero__grid, .signal, .steps-wrap, .line, .contact, .form-card, .test, .est, .product, .work, .faq-wrap, .foot, .not-box, .cta-band, .sec-head { grid-template-columns: minmax(0, 1fr); }
  .hero__media { max-width: 560px; margin-inline: auto; width: 100%; padding-bottom: 36px; }
  .tl-card { left: 12px; bottom: 0; width: calc(100% - 24px); max-width: 360px; }
  .sticker { right: 6px; top: 6px; }
  .steps-wrap__side, .faq-wrap > div:first-child, .product__side { position: static; }
  .test__panel { position: static; max-height: none; order: 2; }
  .tl-mini { display: flex; position: sticky; top: 72px; z-index: 40; gap: 10px; align-items: center; background: rgba(248, 247, 242, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; margin-bottom: 16px; font: 600 12px var(--font-mono); }
  .tl-mini .lamp { width: 20px; height: 20px; background: var(--mist); border: 2px dashed #B9B6A9; box-shadow: none; }
  .tl-mini .lamp[data-state] { border: 0; background: var(--c); }
  .tl-mini .lamp[data-state="g"] { --c: var(--g); }
  .tl-mini .lamp[data-state="y"] { --c: var(--y); }
  .tl-mini .lamp[data-state="r"] { --c: var(--r); }
  .tl-mini .lamp[data-state="u"] { --c: #8D8F85; }
  .tl-mini span.cnt { margin-left: auto; color: var(--ink-2); }
  .est__out { position: static; }
  .docs { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; gap: 8px; }
  .docs__item:nth-child(n) .doc { transform: rotate(0); }
  .docs__item:nth-child(n) .docs__cap { margin-top: 20px; margin-bottom: 28px; }
  .guides { grid-template-columns: minmax(0, 1fr); }
  .fees { grid-template-columns: minmax(0, 1fr); }
  .product__body { grid-template-columns: minmax(0, 1fr); }
  .cta-band .btns { justify-content: flex-start; }
  .mbar { display: flex; }
  body { padding-bottom: 76px; }
}
@media (max-width: 860px) {
  .plans, .plans tbody, .plans tr, .plans th, .plans td { display: block; }
  .plans thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .plans tr { padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .plans tr:last-child { border-bottom: 0; }
  .plans tbody th { width: auto; padding: 0 0 8px; border: 0; background: none; }
  .plans td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 7px 0; border: 0; background: none !important; }
  .plans td::before { content: attr(data-label); color: var(--ink-3); font: 500 12px var(--font-mono); }
  .plans .row--price td, .plans .row--price th { background: none; color: #fff; }
  .plans .row--price { background: var(--ink); }
  .plans .row--price td:nth-child(3) { background: none; }
  .plans .row--price td::before { color: #BDC0B5; }
  .plans td:nth-child(3)::before { color: var(--sage-700); font-weight: 700; }
  .plans .row--price td:nth-child(3)::before { color: var(--sage); }
}
@media (max-width: 720px) {
  .opts, .adds { grid-template-columns: minmax(0, 1fr); }
  .shelf__grid, .checks { grid-template-columns: minmax(0, 1fr); }
  .services thead { display: none; }
  .services, .services tbody, .services tr, .services th, .services td { display: block; width: auto; }
  .services tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .services th, .services td { border: 0; padding: 0; }
  .services tbody th { width: auto; margin-bottom: 6px; }
  .services td:last-child { text-align: left; margin-top: 8px; }
  .legal dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .seg span { font-size: 12.5px; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand__name { font-size: .98rem; }
  .brand__mark { width: 38px; height: 38px; }
  .site-header .wrap { min-height: 64px; }
  .card__meta div { grid-template-columns: 66px 1fr; }
  .person { grid-template-columns: 52px minmax(0, 1fr); gap: 14px; }
  .avatar { width: 52px; height: 52px; font-size: .95rem; }
  .step { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
  .step::before { width: 38px; height: 38px; }
  .step::after { left: 18px; top: 42px; }
  .tl-count b { font-size: 1.7rem; }
  .map { min-height: 0; }
}

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

@media print {
  .nx-ribbon, .site-header, .mbar, .site-footer, .tl-mini, .skip, .page-hero, .test__qs, .not-box, .cta-band, .sec--mist { display: none !important; }
  body { background: #fff; padding: 0; }
  .test { display: block; }
  .test__panel { position: static; max-height: none; box-shadow: none; border: 0; }
  .sec { padding: 12px 0; }
  .result { background: #fff; color: #000; border: 1px solid #000; }
  .result h3, .result .price, .result .price__num, .result__note b { color: #000; }
  .result__k, .result__term, .result ul, .result__note, .result .price__from { color: #333; }
  .result__act { display: none; }
}
