/* ==========================================================================
   Тарасов и партнёры — «Витрина»: банкротство граждан
   Бумага · Графит · Апельсин · Шалфей · Туман.
   Unbounded (вес меняется) · Manrope · JetBrains Mono.
   Мотив страницы — смета: цветная полоса из четырёх частей (услуги, управляющий,
   пошлина, публикации) повторяется в герое, конструкторе и графике платежей.
   Структура: 1 токены · 2 база · 3 типографика · 4 кнопки · 5 шапка · 6 герой ·
   7 процедуры · 8 тест · 9 смета · 10 этапы · 11 «после» · 12 линия · 13 вопросы ·
   14 связь · 15 подвал · 16 документы · 17 утилиты
   ========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
  --paper: #F8F7F2;
  --card: #FFFEFB;
  --ink: #1E1F1C;
  --ink-2: #5A5B54;
  --orange: #FF7A45;
  --orange-deep: #B33A10;
  --sage: #B8C6AE;
  --sage-soft: #DCE4D5;
  --sage-deep: #4C6344;
  --fog: #E8E6DE;
  --line: rgba(30, 31, 28, .12);
  --line-strong: rgba(30, 31, 28, .3);

  /* части сметы: меняются на оранжевой панели */
  --c-serv: var(--ink);
  --c-fm: var(--orange);
  --c-fee: var(--sage-deep);
  --c-pub: var(--sage);

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

  --fs-xs: .75rem;
  --fs-s: .875rem;
  --fs-body: 1rem;
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fs-h3: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  --fs-h2: clamp(1.55rem, .85rem + 2.3vw, 2.85rem);
  --fs-hero: clamp(1.5rem, .78rem + 2.6vw, 3.2rem);

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 26px;
  --pill: 999px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec-y: clamp(56px, 8vw, 112px);
  --header-h: 68px;

  --shadow-1: 0 1px 0 rgba(30, 31, 28, .04), 0 14px 34px -18px rgba(30, 31, 28, .25);
  --shadow-2: 0 2px 0 rgba(30, 31, 28, .05), 0 28px 56px -26px rgba(30, 31, 28, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 14px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-body)/1.6 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, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange-deep); outline-offset: 3px; border-radius: 4px; }
.cta :focus-visible, .site-footer :focus-visible, .result :focus-visible, .ticker :focus-visible { outline-color: var(--orange); }
.result :focus-visible { outline-color: var(--ink); }
::selection { background: var(--orange); color: var(--ink); }
[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--pill); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 20px; height: 20px; flex: none; }
.mono { font-family: var(--font-mono); }
.small { font-size: var(--fs-s); line-height: 1.5; color: var(--ink-2); }
.nojs-only, .nojs-h { display: none; }
.no-js .nojs-only, .no-js .nojs-h { display: block; }

/* ---------- 3. Типографика ---------- */
.h2 { font: 400 var(--fs-h2)/1.1 var(--font-display); letter-spacing: -.018em; max-width: 24ch; text-wrap: balance; }
.h2 em { font-style: normal; font-weight: 800; background: linear-gradient(transparent 64%, rgba(255, 122, 69, .6) 64% 93%, transparent 93%); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding-inline: .04em; }
.h3 { font: 600 var(--fs-h3)/1.25 var(--font-display); letter-spacing: -.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 58ch; margin-top: 18px; }
.kicker { display: flex; align-items: center; gap: 10px; font: 500 var(--fs-xs)/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: clamp(16px, 2.4vw, 26px); }
.kicker__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: none; box-shadow: 0 0 0 4px rgba(255, 122, 69, .22); }

.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: var(--pill); font: 600 var(--fs-xs)/1.3 var(--font-mono); letter-spacing: .02em; }
.tag--sage { background: var(--sage); color: var(--ink); }
.tag--orange { background: var(--orange); color: var(--ink); }
.tag--ink { background: var(--ink); color: var(--paper); }
.tag--fog { background: var(--fog); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }

.stamp { display: flex; flex-wrap: wrap; gap: 6px 8px; font: 500 var(--fs-xs)/1.3 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.stamp span { border: 1px solid var(--line-strong); padding: 5px 10px; border-radius: var(--pill); background: rgba(255, 254, 251, .7); }
.stamp--s { margin-top: 14px; }

/* ---------- 4. Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--pill); border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 700 .9375rem/1.1 var(--font-body); text-decoration: none; text-align: center; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--orange); }
.btn--primary:hover { background: var(--ink); color: var(--paper); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--paper); color: var(--ink); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: transparent; color: var(--paper); border-color: rgba(248, 247, 242, .6); }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .875rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1rem; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.link-btn { appearance: none; background: none; border: 0; padding: 0; min-height: 44px; min-width: 44px; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; color: inherit; }
.link-btn:hover { text-decoration-thickness: 2px; }
.link-btn--light { color: var(--paper); font-size: 1.15rem; font-weight: 600; }

/* ---------- 5. Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 247, 242, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-stuck { border-bottom-color: var(--line-strong); box-shadow: 0 10px 30px -22px rgba(30, 31, 28, .5); }
.site-header__in { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; flex: none; }
.brand__mark { width: 44px; height: 30px; color: var(--ink); flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font: 700 .9375rem/1.15 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.brand__sub { font: 500 .6875rem/1.3 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.nav { display: none; }
.site-header__end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-phone { display: none; background: none; border: 0; font: 600 .8125rem/1 var(--font-mono); letter-spacing: .01em; min-height: 44px; padding: 0 4px; text-decoration: none; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; }
.site-header__end .btn { display: none; }
@media (max-width: 419px) { .brand__sub { font-size: .625rem; letter-spacing: .02em; } .brand { gap: 10px; } .site-header__in { gap: 12px; } }
.nav-toggle { margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; position: relative; flex: none; }
.site-header__end + .nav-toggle { margin-left: 0; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), top .25s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 27px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* мобильное меню */
.nav-open .nav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line-strong); padding: 8px var(--gutter) 22px; box-shadow: 0 30px 40px -30px rgba(30, 31, 28, .5); max-height: calc(100vh - var(--header-h) - 20px); overflow: auto; }
.nav > a { display: flex; align-items: center; min-height: 52px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav > a[aria-current="true"] { color: var(--orange-deep); }
.nav__extra { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.nav__extra .btn { width: 100%; }

@media (min-width: 600px) { .site-header__end .btn { display: inline-flex; } }
@media (min-width: 1120px) {
  .nav { display: flex; align-items: center; gap: clamp(6px, 1.2vw, 18px); margin-left: auto; }
  .nav > a { min-height: 44px; padding-inline: 6px; border: 0; font-weight: 600; font-size: .9375rem; position: relative; }
  .nav > a::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav > a:hover::after, .nav > a[aria-current="true"]::after { transform: scaleX(1); }
  .nav > a[aria-current="true"] { color: var(--ink); }
  .nav__extra { display: none; }
  .nav-toggle { display: none; }
  .site-header__end { margin-left: 0; }
}
@media (min-width: 1240px) { .header-phone { display: inline-flex; align-items: center; } }

/* ---------- 6. Герой ---------- */
.hero { padding-top: clamp(22px, 3.2vw, 44px); }
.hero__grid { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); align-items: end; }
.hero__main { min-width: 0; }
.hero__title { font-family: var(--font-display); font-weight: 300; font-size: var(--fs-hero); line-height: 1.12; letter-spacing: -.022em; margin: 0 0 clamp(20px, 2.6vw, 30px); }
.hero__title > span { display: block; }
.hero__l1, .hero__l3 { font-weight: 300; }
.hero__key { position: relative; isolation: isolate; width: fit-content; max-width: 100%; font-size: 1.3em; font-weight: 800; line-height: 1.04; margin: .1em 0 .14em; white-space: nowrap; }
.hero__key::before { content: ""; position: absolute; z-index: -1; left: -.05em; right: -.05em; bottom: .06em; height: .44em; background: var(--orange); border-radius: 4px; transform-origin: left center; }
.swell { display: inline-block; }
.swell__c { display: inline-block; font-weight: 800; will-change: font-weight; }
.hero__lead { margin-top: 0; max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 32px); }
.hero__note { margin-top: 18px; font-size: var(--fs-xs); line-height: 1.55; letter-spacing: .02em; color: var(--ink-2); max-width: 52ch; }

@media (min-width: 640px) { .hero__key { font-size: 1.36em; } }
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); }
  .hero__key { font-size: 1.5em; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__title > span { animation: rise .95s var(--ease) both; }
  .hero__title > .hero__key { animation-delay: .12s; }
  .hero__title > .hero__l3 { animation-delay: .26s; }
  .hero__key::before { animation: mark 1s .55s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } }
@keyframes mark { from { transform: scaleX(0); } }

.needs { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-l); padding: clamp(18px, 2.2vw, 26px); box-shadow: var(--shadow-1); }
.needs__h { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.need { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 64px; padding: 10px 6px; border-top: 1px solid var(--line); text-decoration: none; border-radius: 12px; transition: background .2s, padding .25s var(--ease); }
.need__n { font-size: var(--fs-xs); color: var(--orange-deep); font-weight: 700; }
.need__t { font-weight: 700; line-height: 1.35; }
.need__a { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--orange); color: var(--ink); transition: transform .25s var(--ease), background .2s; }
.need:hover, .need:focus-visible { background: var(--sage-soft); padding-inline: 12px; }
.need:hover .need__a { transform: translateX(3px); background: var(--ink); color: var(--paper); }

/* полоса сметы в герое */
.costbar { display: block; margin-top: clamp(30px, 4vw, 48px); border: 1px solid var(--line-strong); border-radius: var(--radius-l); background: var(--card); padding: clamp(18px, 2.4vw, 30px); text-decoration: none; box-shadow: var(--shadow-1); transition: box-shadow .3s, transform .3s var(--ease); position: relative; }
.costbar:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.costbar__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.costbar__cap { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); max-width: 52ch; }
.costbar__sum { display: flex; align-items: baseline; gap: 10px; }
.costbar__sum .mono { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.costbar__sum b { font: 700 clamp(1.3rem, 1rem + 1.6vw, 2.2rem)/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.costbar__bar, .result__bar { display: flex; gap: 3px; height: 22px; margin: clamp(16px, 2vw, 22px) 0; }
.costbar__bar span, .result__bar span { flex: var(--v) 1 0%; min-width: 7px; border-radius: 6px; transform-origin: left center; transition: flex-grow .6s var(--ease); }
.seg-serv, .lg--serv .lg__sw, .row--serv .row__sw, .who__ico.lg--serv { background: var(--c-serv); }
.seg-fm, .lg--fm .lg__sw, .row--fm .row__sw, .who__ico.lg--fm { background: var(--c-fm); }
.seg-fee, .lg--fee .lg__sw, .row--fee .row__sw, .who__ico.lg--fee { background: var(--c-fee); }
.seg-pub, .lg--pub .lg__sw, .row--pub .row__sw, .who__ico.lg--pub { background: var(--c-pub); }
@media (prefers-reduced-motion: no-preference) {
  .costbar__bar span { animation: grow .9s var(--ease) both; }
  .costbar__bar span:nth-child(2) { animation-delay: .12s; }
  .costbar__bar span:nth-child(3) { animation-delay: .24s; }
  .costbar__bar span:nth-child(4) { animation-delay: .32s; }
}
@keyframes grow { from { transform: scaleX(0); } }

.costbar__legend { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.lg { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-areas: "sw t v" "sw w v"; column-gap: 12px; align-items: baseline; }
.lg__sw { grid-area: sw; align-self: start; margin-top: .42em; width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(30, 31, 28, .18); }
.lg__t { grid-area: t; font-weight: 700; line-height: 1.3; }
.lg__v { grid-area: v; font-size: .9375rem; font-weight: 700; white-space: nowrap; text-align: right; }
.lg__w { grid-area: w; font-size: var(--fs-s); color: var(--ink-2); line-height: 1.35; }
.costbar__go { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 700; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.costbar__go .i { transition: transform .25s var(--ease); }
.costbar:hover .costbar__go .i { transform: translateX(4px); }
@media (min-width: 760px) {
  .costbar__legend { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .lg { grid-template-columns: 14px minmax(0, 1fr); grid-template-areas: "sw t" "v v" "w w"; row-gap: 4px; }
  .lg__v { text-align: left; font-size: 1.0625rem; }
  .costbar__go { position: absolute; right: clamp(18px, 2.4vw, 30px); bottom: clamp(18px, 2.4vw, 30px); margin-top: 0; }
  .costbar { padding-bottom: clamp(60px, 6vw, 72px); }
}

/* бегущая строка */
.ticker { margin-top: clamp(40px, 6vw, 76px); background: var(--orange); color: var(--ink); border-block: 2px solid var(--ink); overflow: hidden; }
.ticker__row { gap: 2.2rem; padding-block: 14px; font: 600 .8125rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.ticker__row > span, .ticker__row .ml-marquee__track > span { white-space: nowrap; }
.ticker i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--ink); align-self: center; flex: none; }
.ticker .ml-marquee__track { align-items: center; gap: 2.2rem; padding-right: 2.2rem; }

/* ---------- раскладка секций ---------- */
.sec { padding-block: var(--sec-y); position: relative; }
.sec--tight { padding-block: clamp(44px, 6vw, 84px); }
.sec--sage { background: var(--sage-soft); }
.sec--fog { background: var(--fog); }
.sh { margin-bottom: clamp(26px, 4vw, 48px); }
.sh__rule { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; border-top: 2px solid var(--ink); padding-top: 11px; margin-bottom: clamp(20px, 3vw, 34px); font: 500 var(--fs-xs)/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.sh__rule .sh__r { color: var(--ink-2); text-transform: none; letter-spacing: .02em; }
.sh .h2 + .lead { margin-top: 18px; }
.quiz-wrap .sh, .sec--sage .sh { margin-bottom: clamp(20px, 3vw, 36px); }

/* ---------- 7. Процедуры ---------- */
.shelf { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.prod { height: 100%; display: flex; flex-direction: column; border-radius: var(--radius-l); padding: clamp(22px, 2.8vw, 38px); border: 1px solid var(--line-strong); position: relative; overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease); }
.prod:hover, .prod:focus-within { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.prod--mfc { background: var(--sage-soft); }
.prod--court { background: var(--card); }
.prod--court::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--orange); }
.prod--mfc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--sage-deep); }
.prod__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.prod__ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line-strong); }
.prod--court .prod__ico { background: var(--sage-soft); }
.prod__ico .i { width: 26px; height: 26px; }
.prod__title { font: 700 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.15 var(--font-display); letter-spacing: -.015em; margin-top: 22px; }
.prod__plain { margin-top: 12px; color: var(--ink-2); max-width: 46ch; }
.price { margin-top: 22px; }
.price__lab { display: block; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 4px; }
.price__row { display: flex; align-items: baseline; gap: .35em; }
.price__from { font: 400 1.1rem var(--font-display); }
.price__num { font: 300 clamp(2.2rem, 1.4rem + 2.8vw, 3.5rem)/1 var(--font-display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; transition: font-weight .55s var(--ease); white-space: nowrap; }
.price__cur { font: 400 1.3rem var(--font-display); }
.price__sub { display: block; margin-top: 6px; font-size: var(--fs-s); color: var(--ink-2); }
.prod:hover .price__num, .prod:focus-within .price__num { font-weight: 800; }
.facts { margin-top: 22px; }
.facts > div { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line-strong); }
.facts dt { font: 600 var(--fs-xs)/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { font-size: .9375rem; line-height: 1.5; }
.prod__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
@media (min-width: 560px) { .facts > div { grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; } }
@media (min-width: 900px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } .facts > div { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; } }
@media (min-width: 1100px) { .facts > div { grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; } }

.who { margin-top: clamp(30px, 4vw, 52px); border-top: 2px solid var(--ink); padding-top: 14px; }
.who__h { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.who__list { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
.who__list li { display: grid; gap: 6px; align-content: start; }
.who__ico { display: block; width: 52px; height: 10px; border-radius: 5px; margin-bottom: 4px; }
.who__list b { font: 600 1rem/1.3 var(--font-display); letter-spacing: -.01em; }
.who__list span:not(.who__ico) { font-size: var(--fs-s); color: var(--ink-2); line-height: 1.5; max-width: 34ch; }
@media (min-width: 560px) { .who__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .who__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }

/* ---------- 8. Тест ---------- */
.quiz-wrap { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.quiz-side .h2 { max-width: 14ch; }
.ticks { display: grid; gap: 10px; margin: 24px 0; max-width: 46ch; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: .9375rem; line-height: 1.5; }
.ticks .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--sage-deep); color: var(--paper); margin-top: 1px; }
@media (min-width: 980px) {
  .quiz-wrap { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(36px, 5vw, 72px); align-items: start; }
  .quiz-side { position: sticky; top: calc(var(--header-h) + 24px); }
}

.quiz { scroll-margin-top: calc(var(--header-h) + 20px); background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 38px); box-shadow: var(--shadow-2); min-height: 480px; display: flex; flex-direction: column; }
.quiz__head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: clamp(18px, 2.4vw, 28px); }
.quiz__count { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.quiz__prog { display: flex; gap: 5px; flex: 1 1 140px; min-width: 120px; }
.quiz__prog li { flex: 1; height: 7px; border-radius: 4px; background: var(--fog); transition: background .35s; }
.quiz__prog li.is-done { background: var(--ink); }
.quiz__prog li.is-now { background: var(--orange); }
.quiz__body { flex: 1; }
.q { border: 0; padding: 0; margin: 0; min-width: 0; }
.q__t { padding: 0; font: 500 clamp(1.15rem, 1rem + .85vw, 1.55rem)/1.28 var(--font-display); letter-spacing: -.012em; margin-bottom: 8px; }
.q__t:focus { outline: none; }
.q__h { font-size: var(--fs-s); color: var(--ink-2); line-height: 1.5; max-width: 60ch; }
.opts { display: grid; gap: 10px; margin-top: 18px; }
.opt { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; min-height: 58px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.opt:hover { border-color: var(--ink); transform: translateX(3px); }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt__r { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink); background: var(--card); display: grid; place-items: center; margin-top: 1px; transition: background .2s; }
.opt__r::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .25s var(--ease); }
.opt input:checked + .opt__r { background: var(--orange); }
.opt input:checked + .opt__r::after { transform: scale(1); }
.opt:has(input:checked) { background: var(--sage-soft); border-color: var(--ink); }
.opt:has(input:focus-visible) { outline: 3px solid var(--orange-deep); outline-offset: 3px; }
.opt__t { font-weight: 700; line-height: 1.4; }
.opt__t small { display: block; font-weight: 500; font-size: var(--fs-s); color: var(--ink-2); margin-top: 2px; }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.quiz.is-result .quiz__nav { display: none; }
@media (prefers-reduced-motion: no-preference) { .q { animation: slidein .45s var(--ease) both; } }
@keyframes slidein { from { opacity: 0; transform: translate3d(18px, 0, 0); } }

/* результат теста */
.res { animation: slidein .5s var(--ease) both; }
.res__k { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.res__h { font: 600 clamp(1.3rem, 1rem + 1.2vw, 1.85rem)/1.2 var(--font-display); letter-spacing: -.015em; margin-top: 8px; outline: none; }
.res__sum { margin-top: 12px; color: var(--ink-2); max-width: 60ch; }
.var { margin-top: 16px; border: 1px solid var(--line-strong); border-radius: 18px; padding: clamp(16px, 2vw, 22px); border-left-width: 8px; background: var(--card); }
.var--mfc { border-left-color: var(--sage-deep); }
.var--court { border-left-color: var(--orange); }
.var__head { display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; align-items: center; }
.var__t { font: 600 1.05rem/1.25 var(--font-display); }
.conds { display: grid; gap: 8px; margin-top: 14px; }
.cond { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; font-size: .9375rem; line-height: 1.5; }
.cond__m { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 .75rem var(--font-mono); margin-top: 1px; }
.cond__m .i { width: 14px; height: 14px; }
.cond--ok .cond__m { background: var(--sage-deep); color: var(--paper); }
.cond--chk .cond__m { background: var(--fog); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cond--no .cond__m { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.cond small { display: block; color: var(--ink-2); font-size: var(--fs-s); }
.var__cost { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.var__cost b { font: 700 1rem var(--font-mono); }
.res__list { margin-top: 20px; }
.res__list h4 { font: 600 var(--fs-xs)/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.res__list ul { display: grid; gap: 8px; }
.res__list li { position: relative; padding-left: 20px; font-size: .9375rem; line-height: 1.5; }
.res__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 2px; background: var(--orange); }
.res__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.res__foot { margin-top: 18px; }

/* ---------- 9. Смета ---------- */
.est { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.panel { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-l); padding: clamp(20px, 2.8vw, 34px); box-shadow: var(--shadow-1); }
.fld { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.fld:last-child { margin-bottom: 0; }
.fld__l { display: block; padding: 0; margin-bottom: 10px; font: 600 var(--fs-xs)/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.fld__hint { margin-top: 4px; font-size: var(--fs-s); line-height: 1.5; color: var(--ink-2); }

.seg { display: grid; gap: 8px; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.seg--2 { --n: 2; }
.seg--4 { --n: 4; }
.seg__o { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 66px; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--card); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.seg__o input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg__o:hover { border-color: var(--ink); }
.seg__t { font-weight: 700; font-size: .9375rem; line-height: 1.25; }
.seg__h { font: 500 var(--fs-xs)/1.35 var(--font-mono); color: var(--ink-2); }
.seg__o:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg__o:has(input:checked) .seg__h { color: rgba(248, 247, 242, .72); }
.seg__o:has(input:focus-visible) { outline: 3px solid var(--orange-deep); outline-offset: 3px; }
.seg__o--s { min-height: 48px; align-items: center; text-align: center; padding: 8px 6px; }

.slider__top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.slider__top .fld__l { margin-bottom: 0; }
.slider__val { font: 700 1.5rem/1 var(--font-mono); }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 4px 0 0; background: transparent; cursor: pointer; --p: 50%; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) var(--p), var(--fog) var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--orange); border: 3px solid var(--ink); box-shadow: 0 4px 10px -3px rgba(30, 31, 28, .5); transition: transform .2s var(--ease); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range::-moz-range-track { height: 8px; border-radius: 4px; background: var(--fog); }
.range::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--ink); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--orange); border: 3px solid var(--ink); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--orange-deep); outline-offset: 3px; }
.range:focus-visible::-moz-range-thumb { outline: 3px solid var(--orange-deep); outline-offset: 3px; }

.check { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start; cursor: pointer; padding: 6px 0; min-height: 44px; }
.check input { position: absolute; opacity: 0; width: 26px; height: 26px; left: 0; top: 6px; margin: 0; cursor: pointer; }
.check__box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--ink); background: var(--card); display: grid; place-items: center; transition: background .2s; margin-top: 1px; }
.check__box .i { width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--ease); }
.check input:checked + .check__box { background: var(--orange); }
.check input:checked + .check__box .i { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid var(--orange-deep); outline-offset: 3px; }
.check__t { font-weight: 700; line-height: 1.4; }
.check__t small { display: block; font-weight: 500; font-size: var(--fs-s); color: var(--ink-2); margin-top: 1px; }
.check--s .check__t { font-weight: 600; font-size: .9375rem; }
.check--s { gap: 12px; }

.result { background: var(--orange); color: var(--ink); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 38px); box-shadow: var(--shadow-2);
  --c-serv: var(--ink); --c-fm: var(--paper); --c-fee: var(--sage-deep); --c-pub: var(--sage); }
.result__cap { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; }
.result__total { display: flex; align-items: baseline; gap: .28em; margin: 8px 0 0; font-family: var(--font-display); }
.result__from, .result__cur { font-size: clamp(1.1rem, .9rem + 1vw, 1.8rem); font-weight: 400; }
.result__num { font-size: clamp(2.2rem, 1.2rem + 4.8vw, 5rem); font-weight: var(--w, 500); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; transition: font-weight .6s var(--ease); white-space: nowrap; }
.result__bar { margin-block: 18px 6px; height: 24px; }
.result__bar span { box-shadow: inset 0 0 0 1.5px rgba(30, 31, 28, .85); }
.rows { margin-top: 10px; }
.row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 0; border-top: 1px solid rgba(30, 31, 28, .28); }
.row__sw { width: 16px; height: 16px; border-radius: 5px; margin-top: .25em; box-shadow: inset 0 0 0 1.5px var(--ink); }
.row__t { font-weight: 700; line-height: 1.3; }
.row__t small { display: block; font-weight: 500; font-size: var(--fs-s); opacity: .88; margin-top: 1px; }
.row__v { font-size: .9375rem; font-weight: 700; text-align: right; white-space: nowrap; }
.row.is-zero { opacity: .55; }
.month { margin-top: 18px; padding-top: 20px; border-top: 2px solid var(--ink); }
.month__cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.month__cap .mono { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; }
.month__v { font-size: .9375rem; }
.month__v b { font: 700 clamp(1.3rem, 1.05rem + 1vw, 1.9rem)/1.1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 16px 6px; margin-top: 26px; }
.tiles li { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 66px; padding: 8px 8px 9px; border-radius: 10px; background: rgba(248, 247, 242, .6); }
.tiles .t-m { font: 600 .625rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.tiles .t-a { font: 700 .75rem/1 var(--font-mono); white-space: nowrap; }
.tiles .t-s { display: block; height: 7px; border-radius: 4px; background: var(--g, var(--ink)); box-shadow: inset 0 0 0 1px rgba(30, 31, 28, .55); }
.tiles li.is-flag { outline: 2px solid var(--ink); outline-offset: -2px; }
.tiles li.is-flag::after { content: "подача"; position: absolute; top: -11px; left: 6px; padding: 3px 7px 4px; border-radius: 6px; background: var(--ink); color: var(--paper); font: 600 .5625rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
@media (prefers-reduced-motion: no-preference) { .tiles li.pop { animation: pop .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.month__note { margin-top: 12px; font-size: var(--fs-s); line-height: 1.5; }
.result__send { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(30, 31, 28, .28); }
.result__send-h { font-weight: 700; margin-bottom: 10px; }
.result__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.notes { margin-top: 20px; }
.notes__list { display: grid; gap: 8px; margin-top: 14px; }
.notes__list li { position: relative; padding-left: 18px; font-size: var(--fs-s); line-height: 1.55; color: var(--ink-2); }
.notes__list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--sage-deep); }
@media (min-width: 980px) {
  .est { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 32px; align-items: start; }
  .est__ctrl { position: sticky; top: calc(var(--header-h) + 20px); }
}

.est-strip { display: none; }
@media (max-width: 759px) {
  .est-strip { position: fixed; left: 12px; right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 44; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--orange); border: 2px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-2); transform: translateY(160%); opacity: 0; transition: transform .35s var(--ease), opacity .25s; pointer-events: none; }
  .est-strip.is-on { transform: none; opacity: 1; }
  .est-strip .mono { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; }
  .est-strip b { font: 700 1.1rem/1.1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
  .est-strip__m { font: 600 .75rem/1.2 var(--font-mono); white-space: nowrap; }
}
@media (max-width: 429px) { .est-strip .mono { display: none; } .est-strip { justify-content: space-between; } }

/* ---------- 10. Этапы ---------- */
.steps-grid { display: grid; gap: 30px; grid-template-columns: minmax(0, 1fr); }
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--pill); margin-bottom: 26px; }
.no-js .tabs { display: none; }
.tab { min-height: 46px; padding: 0 24px; border: 0; border-radius: var(--pill); background: transparent; font: 700 .9375rem/1 var(--font-body); transition: background .25s, color .25s; }
.tab:hover { background: var(--fog); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tabpanel:focus-visible { outline-offset: 8px; }
.no-js .tabpanel[hidden] { display: block !important; margin-top: 30px; }
.nojs-h { margin-bottom: 18px; }
.timeline { display: grid; }
.tl { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; padding-bottom: 18px; }
.tl:not(:last-child)::before { content: ""; position: absolute; left: 22px; top: 48px; bottom: 2px; width: 2px; background: var(--ink); opacity: .22; }
.tl__n { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); font: 700 1rem var(--font-mono); position: relative; z-index: 1; transition: background .25s; }
.tl:hover .tl__n { background: var(--orange); }
.tl__b { background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px 20px 18px; }
.tl__t { font: 600 1.0625rem/1.3 var(--font-display); letter-spacing: -.01em; }
.tl__b p:not(.tl__m) { margin-top: 6px; color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }
.tl__m { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: var(--pill); background: var(--fog); font-size: var(--fs-xs); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-strong); }
.docs__ph { border-radius: var(--radius-l) var(--radius-l) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--sage-soft); }
.docs__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.docs__box { background: var(--card); border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 var(--radius-l) var(--radius-l); padding: clamp(18px, 2.4vw, 28px); }
.docs__sub { margin: 6px 0 14px; color: var(--ink-2); font-size: var(--fs-s); line-height: 1.5; }
.checks { display: grid; }
.checks li { border-top: 1px solid var(--line); }
.docs__count { margin-top: 12px; font-size: var(--fs-s); font-weight: 600; }
@media (min-width: 980px) {
  .steps-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 4vw, 60px); align-items: start; }
  .docs { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- 11. После банкротства ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.after-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.tile { position: relative; height: 100%; display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 20px; padding: 30px 24px 22px; overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease); }
.tile:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); }
.tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--tc); }
.tile--sage { --tc: var(--sage); }
.tile--orange { --tc: var(--orange); }
.tile--ink { --tc: var(--ink); }
.tile--fog { --tc: var(--fog); }
.tile--fog::before { box-shadow: inset 0 -1px 0 var(--line-strong); }
.tile__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tc); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(30, 31, 28, .15); }
.tile--ink .tile__ico { color: var(--paper); }
.tile__ico .i { width: 24px; height: 24px; }
.tile__t { font: 600 1.1rem/1.25 var(--font-display); letter-spacing: -.01em; margin-top: 4px; }
.tile p:not(.tile__ref) { font-size: .9375rem; line-height: 1.6; color: var(--ink-2); }
.tile__ref { margin-top: auto; padding-top: 8px; font-size: var(--fs-xs); letter-spacing: .02em; color: var(--ink); opacity: .8; }
@media (min-width: 700px) { .after-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .after-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* ---------- 12. Линия открыта ---------- */
.line { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); }
.line__intro .h2 { max-width: 14ch; }
.hours-card { margin-top: 26px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 20px; padding: clamp(16px, 2vw, 24px); max-width: 460px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: var(--pill); background: var(--fog); font-weight: 700; font-size: .875rem; line-height: 1.3; }
.badge__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink-2); flex: none; }
.badge[data-state="open"] { background: var(--sage); }
.badge[data-state="open"] .badge__dot { background: var(--sage-deep); box-shadow: 0 0 0 0 rgba(76, 99, 68, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(76, 99, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 99, 68, 0); } }
.hours { margin-top: 14px; }
.hours > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 6px; border-top: 1px solid var(--line); font-size: .9375rem; border-radius: 6px; }
.hours dd { font-family: var(--font-mono); font-size: .875rem; }
.hours .is-today { background: var(--sage-soft); font-weight: 800; border-top-color: transparent; }
.people { display: grid; gap: 12px; }
.person { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 18px; align-items: start; background: var(--card); border: 1px solid var(--line-strong); border-radius: 20px; padding: 18px 20px; }
.avatar { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font: 600 1.05rem var(--font-display); letter-spacing: -.02em; border: 2px solid var(--ink); }
.avatar--orange { background: var(--orange); }
.avatar--sage { background: var(--sage); }
.avatar--fog { background: var(--fog); }
.person__name { font: 600 1.05rem/1.25 var(--font-display); letter-spacing: -.01em; }
.person__role { font: 600 var(--fs-xs)/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--orange-deep); margin-top: 3px; }
.person__meta { margin-top: 6px; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.begin { display: grid; gap: 16px; margin-top: 30px; }
.begin li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; align-items: start; }
.begin__n { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); border: 2px solid var(--ink); font-weight: 700; }
.begin__t { font: 600 1.0625rem/1.3 var(--font-display); letter-spacing: -.01em; }
.begin li p { margin-top: 4px; color: var(--ink-2); font-size: .9375rem; line-height: 1.55; max-width: 52ch; }
@media (min-width: 960px) { .line { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 72px); align-items: start; } .line__intro { position: sticky; top: calc(var(--header-h) + 24px); } }

/* ---------- 13. Вопросы ---------- */
.faq { max-width: 900px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { position: relative; list-style: none; cursor: pointer; min-height: 56px; padding: 20px 60px 20px 0; font: 500 clamp(1rem, .94rem + .4vw, 1.2rem)/1.35 var(--font-display); letter-spacing: -.01em; transition: font-weight .35s var(--ease), color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; border: 2px solid var(--ink); background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat; transition: transform .3s var(--ease), background-color .2s; }
.faq summary:hover { color: var(--orange-deep); }
.faq details[open] summary { font-weight: 700; }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--orange); }
.faq__a { padding: 0 0 24px; max-width: 68ch; color: var(--ink-2); line-height: 1.65; }
.faq__a a { color: var(--orange-deep); font-weight: 700; }
.faq__a a, .consent a, .prose a:not(.btn), .res__sum a { padding-block: 13px; }

/* ---------- 14. Связь ---------- */
.cta { position: relative; isolation: isolate; background: var(--ink); color: var(--paper); overflow: hidden; margin-top: clamp(20px, 4vw, 48px); }
.cta__deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.cta__deco span { position: absolute; top: var(--t); right: var(--r); width: var(--w); height: clamp(30px, 4vw, 56px); border-radius: var(--pill);
  background: linear-gradient(90deg,
    rgba(248, 247, 242, .2) 0 calc(var(--a) - 3px), transparent 0 var(--a),
    var(--orange) var(--a) calc(var(--b) - 3px), transparent 0 var(--b),
    var(--sage-deep) var(--b) calc(var(--c) - 3px), transparent 0 var(--c),
    var(--sage) var(--c) 100%); }
.cta__in { padding-block: clamp(56px, 9vw, 120px); }
.cta__box { max-width: 640px; }
.cta__k { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin-bottom: 18px; }
.cta .h2 { color: var(--paper); }
.cta .h2 em { background: none; color: var(--orange); }
.cta .lead { color: rgba(248, 247, 242, .82); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta__tel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 18px; color: rgba(248, 247, 242, .7); font-size: var(--fs-s); }
.cta .btn--primary:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta .btn--primary { border-color: var(--orange); }
@media (max-width: 700px) { .cta__deco { opacity: .6; } .cta__deco span:nth-child(n+3) { display: none; } .cta__deco span { height: 16px; top: 22px !important; width: 66% !important; right: -10% !important; } .cta__deco span:nth-child(2) { top: 44px !important; width: 44% !important; right: 6% !important; } .cta__in { padding-top: 96px; } }

.sec--contacts { padding-top: clamp(40px, 6vw, 80px); }
.sr-head .h2 { position: absolute; }
.contacts { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.map-card { background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--radius-l); overflow: hidden; display: flex; flex-direction: column; }
.map { aspect-ratio: 16 / 10; background: #ECEAE2; }
.map svg { width: 100%; height: 100%; }
.map-card__body { display: grid; gap: 14px; justify-items: start; padding: clamp(18px, 2.4vw, 28px); }
.addr { font: 600 1.15rem/1.35 var(--font-display); letter-spacing: -.01em; }
.addr small { display: block; font: 500 var(--fs-xs)/1.4 var(--font-mono); color: var(--ink-2); margin-top: 4px; letter-spacing: .02em; }
.form .h3 { margin-bottom: 20px; max-width: 28ch; }
.field { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.field > label, .field > legend { display: block; padding: 0; margin-bottom: 6px; font-weight: 700; font-size: .875rem; }
.field .optional { font-weight: 500; color: var(--ink-2); font-size: var(--fs-xs); margin-left: 6px; }
.input { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.5; }
.input:hover { border-color: var(--ink); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 122, 69, .35); }
.form__warn { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: var(--fs-s); font-weight: 700; color: var(--orange-deep); line-height: 1.4; }
.form__warn .count { font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.consent { margin-bottom: 20px; }
.consent a { color: var(--orange-deep); font-weight: 700; }
.form .btn--lg { width: 100%; }
.form__demo { margin-top: 12px; }
@media (min-width: 560px) { .form .btn--lg { width: auto; } }
@media (max-width: 479px) { .seg--4 { --n: 2; } .seg--stack { --n: 1; } }
@media (min-width: 980px) { .contacts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; } }

.req { margin-top: clamp(26px, 4vw, 44px); display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
.requisites > div { display: grid; gap: 2px; padding: 11px 0; border-top: 1px solid var(--line-strong); }
.requisites dt { font: 600 var(--fs-xs)/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.requisites dd { font-size: .9375rem; line-height: 1.5; }
.nope { background: var(--sage-soft); border-radius: 20px; padding: clamp(18px, 2.4vw, 26px); align-self: start; }
.nope__h { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--sage-deep); font-weight: 700; margin-bottom: 10px; }
.nope ul { display: grid; gap: 8px; }
.nope li { position: relative; padding-left: 20px; font-size: .9375rem; line-height: 1.5; }
.nope li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border-radius: 2px; background: var(--sage-deep); }
@media (min-width: 560px) { .requisites > div { grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; } }
@media (min-width: 900px) { .req { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 60px); } }

/* ---------- 15. Подвал и док ---------- */
.site-footer { background: var(--ink); color: rgba(248, 247, 242, .86); padding: clamp(44px, 6vw, 72px) 0 28px; }
.site-footer a { color: inherit; }
.site-footer .small, .site-footer .footer__brand .small { color: rgba(248, 247, 242, .66); }
.brand--light { color: var(--paper); }
.brand--light .brand__mark { color: var(--paper); }
.brand--light .brand__sub { color: rgba(248, 247, 242, .62); }
.footer__grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.footer__brand { display: grid; gap: 14px; align-content: start; max-width: 38ch; }
.footer__h { font: 600 var(--fs-xs)/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin-bottom: 8px; }
.footer__list { display: grid; }
.footer__list a, .footer__list .link-btn { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; }
.footer__bottom a { display: inline-block; padding: 14px 4px; margin: -14px -4px; }
.footer__legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(248, 247, 242, .2); display: grid; gap: 8px; font-size: var(--fs-s); line-height: 1.6; color: rgba(248, 247, 242, .7); max-width: 100ch; }
.footer__legal b { color: var(--paper); }
.footer__bottom { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 24px; font: 500 var(--fs-xs)/1.5 var(--font-mono); color: rgba(248, 247, 242, .55); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; } .footer__brand { grid-column: auto; } }

.dock { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(248, 247, 242, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line-strong); }
.dock .btn { min-height: 48px; padding: 0 10px; font-size: .875rem; }
@media (max-width: 759px) { body { padding-bottom: 72px; } }
@media (min-width: 760px) { .dock { display: none; } }

/* ---------- 16. Страницы-документы ---------- */
.page-head { padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 34px); border-bottom: 1px solid var(--line-strong); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 var(--fs-xs)/1.4 var(--font-mono); letter-spacing: .04em; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
.h1 { font: 700 clamp(1.7rem, 1rem + 2.8vw, 3rem)/1.12 var(--font-display); letter-spacing: -.02em; max-width: 22ch; text-wrap: balance; }
.prose { max-width: 78ch; padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.prose h2 { font: 600 clamp(1.15rem, 1.05rem + .5vw, 1.45rem)/1.25 var(--font-display); letter-spacing: -.01em; margin: 34px 0 10px; }
.prose p, .prose li { line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.prose ul { display: grid; gap: 8px; margin: 12px 0 0; padding-left: 0; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .7em; width: 9px; height: 9px; border-radius: 2px; background: var(--orange); }
.prose a { color: var(--orange-deep); font-weight: 700; }
.notice { background: var(--sage-soft); border-radius: 14px; padding: 14px 18px; font-size: var(--fs-s); line-height: 1.6; }
.back-link { margin-top: 28px; }

/* ---------- 17. Утилиты и «без движения» ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .costbar:hover, .prod:hover, .tile:hover, .btn:hover { transform: none; }
}
