/* Претензия за 5 минут. Направление «продукт работает на странице»: графит и сигнальный оранжевый,
   один шрифт Onest (кириллица), фрагменты документа — бумага на графите. Углы прямые. */
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/static/fonts/onest-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/static/fonts/onest-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/static/fonts/onest-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #18191b; --deep: #0f1011; --surface: #222427; --surface-2: #2c2e32;
  --ink: #eff0f1; --muted: #a6a8ad;
  --accent: #ff4a1f; --accent-hi: #ff6b45; --accent-ink: #18191b;
  --field-1: #eff0f1; --field-1-ink: #18191b; --field-1-muted: #55575c; --field-1-step: #e2e3e5;
  --paper: #fafafa; --paper-ink: #1c1d1f; --paper-muted: #5d6066; --paper-mark: #ffe3d9;
  --m: clamp(16px, 2.8vw, 40px);
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.15vw, 1.125rem);
  --step-lead: clamp(1.25rem, 1.05rem + 0.75vw, 1.75rem);
  --step-head: clamp(2.4rem, 1rem + 4.6vw, 5rem);
  --step-fig: clamp(7rem, 2rem + 17vw, 20rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 "Onest", system-ui, sans-serif; font-feature-settings: "tnum" 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; margin: 0; }
p { margin: 0 0 0.8em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
main > section { overflow-x: clip; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.topbar { height: 8px; background: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; padding: 22px var(--m); }
.wordmark { font-weight: 750; font-size: 1.3rem; letter-spacing: -0.04em; text-decoration: none; margin-right: auto; }
.wordmark span { color: var(--muted); }
.nav nav { display: flex; gap: 26px; }
.nav nav a { text-decoration: none; font-size: 16px; color: var(--muted); transition: color .15s; }
.nav nav a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); color: var(--accent-ink); font: 600 18px/1.1 "Onest", sans-serif; padding: 18px 28px; border: 0; border-radius: 0; text-decoration: none; cursor: pointer; transition: background-color .15s, transform .12s var(--ease); }
.btn:hover { background: var(--accent-hi); }
.btn:active { transform: translateY(2px); }
.btn-s { padding: 12px 18px; font-size: 16px; }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: #393b40; }
.btn-ink { background: var(--accent-ink); color: var(--ink); }
.btn-ink:hover { background: #000; }

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: 1060px; padding: 0 var(--m); overflow: hidden; }
.hero-copy { max-width: min(640px, 48vw); padding-top: clamp(48px, 8vh, 100px); }
.hero h1 { font-size: clamp(3.25rem, 1.2rem + 4.4vw, 5rem); letter-spacing: -0.045em; line-height: 0.92; margin-bottom: 28px; }
.hero-sub { font-size: 18px; max-width: 40ch; color: var(--ink); margin-bottom: 28px; }
.stage { position: absolute; left: calc(var(--m) + (100% - 2 * var(--m)) * 4 / 12); right: 0; top: 470px; bottom: 0; background: var(--accent); clip-path: polygon(144px 0, 100% 0, 100% 100%, 0 100%, 0 144px); animation: shutter 1.1s var(--ease) both .15s; }
.stage .sheet { animation: settle 1.1s var(--ease) both .15s; transform-origin: 0 0; }
.hero-copy > * { animation: rise .7s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes shutter { from { clip-path: polygon(144px 0, 144px 0, 144px 100%, 0 100%, 0 144px); } to { clip-path: polygon(144px 0, 100% 0, 100% 100%, 0 100%, 0 144px); } }
@keyframes settle { from { transform: scale(1.12); opacity: .2; } to { transform: none; opacity: 1; } }

.sheet { background: var(--paper); color: var(--paper-ink); width: 620px; max-width: calc(100% - 56px); margin: 56px 0 0 56px; padding: 34px 40px 40px; font-size: 15px; line-height: 1.55; }
.sheet input { font: inherit; color: inherit; background: var(--paper-mark); border: 0; border-bottom: 2px solid var(--accent); padding: 0 4px; margin: 0 1px; width: 15ch; border-radius: 0; }
.sheet input.w-l { width: 19ch; } .sheet input.w-s { width: 7ch; text-align: right; }
.sheet input:focus { outline: none; background: #ffd2c2; }
.sheet-head { margin-left: 46%; margin-bottom: 18px; font-size: 14px; }
.sheet-head p { margin: 0 0 4px; }
.sheet-head input { width: 100%; max-width: 22ch; }
.sheet-title { text-align: center; font-weight: 700; font-size: 16px; margin: 0; }
.sheet-sub { text-align: center; color: var(--paper-muted); margin-bottom: 14px; font-size: 14px; }
.sheet-p { text-indent: 2em; text-align: justify; }
.sheet-note { background: var(--field-1-step); padding: 10px 14px; margin: 14px 0 18px; }

/* ---------- Витрина фрагментов ---------- */
.show { position: relative; background: var(--deep); min-height: 96svh; display: flex; flex-direction: column; justify-content: center; }
.show-row { display: flex; align-items: center; gap: 26vw; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12vh calc(50% - clamp(150px, 15vw, 220px)); scrollbar-width: none; cursor: grab; }
.show-row::-webkit-scrollbar { display: none; }
.panel { position: relative; flex: 0 0 clamp(300px, 30vw, 440px); margin: 0; scroll-snap-align: center; }
.paper { background: var(--surface-2); color: var(--ink); padding: 26px 28px; font-size: 15px; line-height: 1.5; transition: background-color .35s, color .35s, transform .35s var(--ease); }
.panel.lit .paper { background: var(--paper); color: var(--paper-ink); transform: scale(1.03); }
.paper p { margin: 0 0 10px; }
.ui-r { margin-left: 34%; } .ui-c { text-align: center; }
.ui-t { width: 100%; border-collapse: collapse; margin-top: 6px; }
.ui-t td { padding: 6px 0; border-bottom: 1px solid #d8d9dc; } .ui-t td + td { text-align: right; font-variant-numeric: tabular-nums; }
.ui-mail-h { font-weight: 650; }
.ui-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ui-b { background: #e6e7e9; color: var(--paper-ink); padding: 8px 12px; font-size: 14px; }
.ui-b-on { background: var(--accent); color: var(--accent-ink); }
.show-cap { position: absolute; left: calc(50% + clamp(150px, 15vw, 220px) + 4vw); top: calc(50% - 130px); width: 24ch; }
.show-name { font-size: var(--step-lead); font-weight: 400; margin-bottom: 8px; }
.show-text { font-size: var(--step-body); color: var(--ink); }

/* ---------- Как это работает ---------- */
.steps { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(76svh, auto) auto; }
.steps-l { background: var(--field-1); color: var(--field-1-ink); padding: clamp(40px, 7vh, 80px) var(--m); }
.steps-clause { font-size: var(--step-head); transition: opacity .2s; }
.steps-r { background: var(--surface); position: relative; display: grid; place-items: center; padding: 48px var(--m); overflow: hidden; }
.st-frag { grid-area: 1 / 1; width: min(440px, 100%); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.st-frag.on { opacity: 1; visibility: visible; }
.st-frag[data-ui] { background: var(--paper); color: var(--paper-ink); padding: 28px; font-size: 15px; }
.ui-q { font-weight: 650; margin: 14px 0 6px; } .ui-q:first-child { margin-top: 0; }
.ui-in { border: 1px solid #cfd0d3; padding: 10px 12px; margin: 0; } /* taste-skill-ignore: поле анкеты внутри фрагмента data-ui */
.ui-opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ui-opts span { border: 1px solid #cfd0d3; padding: 8px 12px; font-size: 14px; } /* taste-skill-ignore: вариант ответа внутри фрагмента data-ui */
.ui-opts .ui-on { border-color: var(--accent); background: var(--paper-mark); }
.ui-file { display: flex; justify-content: space-between; gap: 12px; background: #eeeff1; padding: 12px 14px; margin: 0 0 8px; font-size: 14px; }
.ui-file span + span { color: var(--paper-muted); }
.ui-hint { color: var(--paper-muted); font-size: 14px; margin: 10px 0 0; }
.st-photo { width: min(560px, 100%); margin: 0; }
.st-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: grayscale(.35); animation: drift 18s ease-in-out infinite alternate; }
.st-photo { overflow: hidden; }
.st-photo figcaption { font-size: 16px; color: var(--ink); margin-top: 12px; max-width: 46ch; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-1.5%); } }
.steps-ctl { grid-column: 1 / -1; background: var(--bg); padding: 28px var(--m) 32px; }
.steps-ctl input[type=range] { width: 100%; appearance: none; -webkit-appearance: none; background: transparent; height: 40px; margin: 0; cursor: pointer; }
.steps-ctl .track { position: relative; }
.steps-ctl .track::before { content: ""; position: absolute; left: 0; top: 16px; height: 8px; width: calc((100% - 32px) * var(--p, 0)); background: var(--ink); pointer-events: none; z-index: 1; transition: width .2s var(--ease); }
.steps-ctl input[type=range]::-webkit-slider-runnable-track { height: 8px; background: var(--surface-2); }
.steps-ctl input[type=range]::-moz-range-track { height: 8px; background: var(--surface-2); }
.steps-ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; background: var(--accent); border: 0; margin-top: -12px; border-radius: 0; transition: transform .12s; }
.steps-ctl input[type=range]::-moz-range-thumb { width: 32px; height: 32px; background: var(--accent); border: 0; border-radius: 0; }
.steps-ctl input[type=range]:active::-webkit-slider-thumb { transform: scale(1.12); }
.steps-names { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 10px 0 0; padding: 0; }
.steps-names li { font-size: 16px; color: var(--muted); cursor: pointer; transition: color .15s; }
.steps-names li:nth-child(2) { text-align: center; text-align: left; padding-left: 8%; } .steps-names li:nth-child(3) { padding-left: 16%; } .steps-names li:last-child { text-align: right; }
.steps-names li.on { color: var(--ink); }

/* ---------- Ситуации ---------- */
.list { padding: clamp(100px, 14vh, 180px) var(--m); }
.list-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 56px; }
.list-top h2 { font-size: var(--step-head); }
.list-top h2 span { display: block; color: var(--muted); }
.list-body { display: grid; grid-template-columns: 170px 1fr; gap: 40px; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tab { width: 170px; height: 64px; background: var(--surface); color: var(--ink); border: 0; text-align: left; padding: 10px 16px; font: 600 16px/1.2 "Onest", sans-serif; cursor: pointer; display: flex; flex-direction: column; justify-content: center; transition: background-color .15s; }
.tab small { font-weight: 400; font-size: 14px; color: var(--muted); }
.tab:hover { background: var(--surface-2); }
.tab.on { background: var(--ink); color: var(--bg); } .tab.on small { color: var(--field-1-muted); }
.bands { display: grid; gap: 4px; align-content: start; }
.js .bands:not(.on) { display: none; }
.band { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 20px; min-height: 80px; padding: 12px 22px; background: var(--surface); text-decoration: none; transition: background-color .15s, transform .15s var(--ease); }
.band:nth-child(even) { background: var(--surface-2); }
.band:hover { background: #393b40; transform: translateX(6px); }
.b-art { font-size: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
.b-t b { display: block; font-size: 18px; font-weight: 600; }
.b-t small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.b-r { font-size: 16px; color: var(--ink); white-space: nowrap; }

/* ---------- Калькулятор неустойки ---------- */
.calc { background: var(--field-1); color: var(--field-1-ink); min-height: 92svh; padding: clamp(80px, 12vh, 140px) var(--m) var(--m); display: grid; grid-template-columns: 1fr minmax(0, 32ch); grid-template-rows: auto auto 1fr; column-gap: 40px; }
.calc h2 { grid-column: 1 / -1; font-size: var(--step-head); margin-bottom: 28px; }
.calc-ui { grid-column: 1; grid-row: 2; } .calc-fig { grid-column: 1; grid-row: 3; } .calc-how { grid-column: 2; grid-row: 3; }
.calc-ui { width: min(440px, 100%); background: #fff; padding: 22px; font-size: 16px; display: grid; gap: 16px; }
.calc-ui label { display: grid; gap: 6px; font-weight: 600; }
.calc-ui input[name=p] { font: 600 var(--step-lead) "Onest", sans-serif; border: 1px solid #c9cacd; /* taste-skill-ignore: поле ввода */ padding: 8px 12px; width: 100%; border-radius: 0; font-variant-numeric: tabular-nums; }
.calc-ui fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.calc-ui legend { font-weight: 600; margin-bottom: 6px; }
.calc-ui fieldset label { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.calc-ui input[type=radio] { accent-color: var(--accent); width: 18px; height: 18px; }
.calc-ui input[type=range] { accent-color: var(--accent); width: 100%; height: 32px; }
.calc-fig { align-self: end; margin: 0; font-size: min(var(--step-fig), calc((100vw - 2 * var(--m) - 40ch) / (var(--n, 6) * 0.6))); font-weight: 800; letter-spacing: -0.06em; line-height: 0.8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-fig small { font-size: 0.22em; letter-spacing: 0; margin-left: 0.15em; }
.calc-how { align-self: end; font-size: var(--step-body); max-width: 32ch; margin: 0 0 0.6em; }

/* ---------- Цены ---------- */
.price { padding: clamp(100px, 14vh, 180px) var(--m); overflow-x: auto; }
.ptable { width: 100%; min-width: 880px; border-collapse: collapse; font-size: var(--step-body); }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 20px 18px; }
.ptable thead th { font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; padding-bottom: 28px; }
.ptable thead img { width: 100%; max-width: 220px; aspect-ratio: 909 / 980; object-fit: cover; object-position: top; margin-top: 18px; }
.ptable thead th span { display: block; font-weight: 400; margin-top: 8px; font-variant-numeric: tabular-nums; }
.ptable thead th#price-h { font-size: var(--step-lead); color: var(--muted); font-weight: 600; }
.ptable tbody th { font-weight: 400; color: var(--muted); width: 22%; }
.ptable tbody tr:nth-child(odd) { background: var(--surface); }
.ptable .rec { background: var(--accent); color: var(--accent-ink); }
.ptable tbody tr:nth-child(odd) .rec { background: #f2421a; }
.ptable tbody th:first-child { position: sticky; left: 0; background: inherit; }

/* ---------- Вопросы ---------- */
.faq { background: var(--field-1); color: var(--field-1-ink); padding: clamp(100px, 14vh, 180px) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.faq-list { grid-column: 1 / 6; }
.faq-list h2 { font-size: 18px; letter-spacing: 0; font-weight: 600; color: var(--field-1-muted); margin-bottom: 22px; line-height: 1.4; }
.fq { margin-bottom: 18px; }
.fq-q { display: flex; gap: 14px; align-items: baseline; background: none; border: 0; padding: 0; text-align: left; font: 400 18px/1.4 "Onest", sans-serif; color: var(--field-1-muted); cursor: pointer; transition: color .15s; }
.fq-q i { flex: 0 0 8px; height: 8px; background: var(--field-1-muted); border-radius: 50%; transform: translateY(-2px); transition: background-color .15s, transform .15s; }
.fq-q:hover, .fq.on .fq-q { color: var(--field-1-ink); }
.fq.on .fq-q i { background: var(--accent); transform: translateY(-2px) scale(1.4); }
.fq-a { padding: 8px 0 0 22px; font-size: var(--step-body); }
.faq-pane { display: none; }
.js .faq-pane { display: block; grid-column: 7 / -1; position: sticky; top: 120px; align-self: start; }
.js .faq-pane p { font-size: var(--step-lead); line-height: 1.32; max-width: 30ch; transition: opacity .15s; }
@media (min-width: 900px) { .js .fq-a { display: none; } }

/* ---------- Подвал ---------- */
.foot { padding: 8px; }
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.tile { padding: 24px; min-height: 220px; display: flex; flex-direction: column; text-decoration: none; }
.t-state { grid-column: 1 / 5; background: var(--surface); justify-content: space-between; }
.t-big { font-size: var(--step-lead); line-height: 1.3; }
.t-legal { font-size: 14px; color: var(--muted); margin: 0; }
.t-nav { grid-column: 5 / 8; background: var(--surface-2); gap: 8px; }
.t-nav a { font-size: var(--step-body); text-decoration: none; } .t-nav a:hover { color: var(--accent); }
.t-time { grid-column: 8 / 10; background: var(--surface); font-size: var(--step-body); }
.t-mail { grid-column: 10 / -1; background: var(--surface-2); justify-content: flex-end; }
.t-mail p { color: var(--muted); font-size: var(--step-body); } .t-mail a { font-size: var(--step-body); word-break: break-all; }
.t-word { grid-column: 1 / 9; background: var(--ink); color: var(--bg); min-height: 320px; justify-content: center; align-items: center; font-weight: 800; font-size: clamp(3rem, 1rem + 7vw, 8.5rem); letter-spacing: -0.05em; line-height: 1; text-align: center; }
.t-go { grid-column: 9 / -1; background: var(--accent); color: var(--accent-ink); min-height: 320px; justify-content: space-between; font-size: 28px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.t-go svg { align-self: flex-end; transition: transform .25s var(--ease); }
.t-go:hover svg { transform: translate(6px, -6px); }

/* ---------- Внутренние страницы ---------- */
.doc-page { padding: clamp(48px, 8vh, 96px) var(--m) 120px; max-width: 1100px; }
.doc-page h1 { font-size: var(--step-head); margin-bottom: 24px; }
.doc-page > p, .doc-page h2, .doc-page h3, .doc-page .lead, .doc-page dl, .doc-page .paper-inline { max-width: 70ch; }
.doc-page h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; margin: 48px 0 14px; }
.doc-page h3 { font-size: var(--step-body); letter-spacing: 0; line-height: 1.4; margin: 24px 0 6px; }
.lead { font-size: var(--step-lead); line-height: 1.35; margin-bottom: 28px; }
.crumbs { font-size: 15px; color: var(--muted); } .crumbs a { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin: 40px 0 0; }
.facts div { background: var(--surface); padding: 16px 18px; }
.facts dt { font-size: 14px; color: var(--muted); } .facts dd { margin: 4px 0 0; font-weight: 600; }
.paper-inline { background: var(--paper); color: var(--paper-ink); padding: 24px 28px; }
.cta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 48px; }
.cta-line span { color: var(--muted); }
.sit-list { display: grid; gap: 4px; margin-top: 32px; }
.list-more { margin-top: 40px; max-width: 110ch; color: var(--muted); font-size: var(--step-body); } .list-more a { color: var(--ink); }
.doc-page .doc { margin: 24px 0; }
.doc-page .sit-list + h2 { margin-top: 56px; }
.sit-list .band { grid-template-columns: 1fr auto; }
.legal p { max-width: 75ch; }
.legal a { color: var(--accent-hi); }

/* ---------- Анкета ---------- */
.wiz { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 48px; padding: clamp(32px, 6vh, 72px) var(--m) 120px; align-items: start; }
.wiz-doc { font-size: var(--step-lead); font-weight: 650; margin-bottom: 18px; }
.wiz-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 4px; }
.wiz-steps li { padding: 12px 16px; background: var(--surface); color: var(--muted); font-size: 15px; }
.wiz-steps li.done { color: var(--ink); } .wiz-steps li.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.wiz-note { font-size: 14px; color: var(--muted); }
.wiz-form { background: var(--paper); color: var(--paper-ink); padding: clamp(22px, 4vw, 44px); }
.wiz-form h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 22px; }
.fld { margin-bottom: 22px; }
.fld > label, .fld > legend { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; padding: 0; }
.fld fieldset { border: 0; padding: 0; margin: 0; }
.fld .hint { font-size: 14px; color: var(--paper-muted); margin: 6px 0 0; }
.fld input[type=text], .fld input[type=email], .fld input[type=date], .fld input[inputmode], .fld select, .fld textarea { width: 100%; font: 400 17px/1.4 "Onest", sans-serif; color: var(--paper-ink); background: #fff; /* taste-skill-ignore: поля формы */ border: 1px solid #c4c5c9; border-radius: 0; padding: 12px 14px; }
.fld textarea { min-height: 150px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.opts { display: grid; gap: 6px; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; background: #fff; /* taste-skill-ignore: варианты ответа формы */ border: 1px solid #c4c5c9; cursor: pointer; font-size: 16px; transition: border-color .12s, background-color .12s; }
.opt:hover { border-color: #8d8f94; }
.opt input { accent-color: var(--accent); width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 18px; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--paper-mark); }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.case-opt { display: block; text-align: left; padding: 18px; background: #fff; /* taste-skill-ignore: варианты ответа формы */ border: 1px solid #c4c5c9; cursor: pointer; font: inherit; color: inherit; transition: border-color .12s, transform .12s var(--ease); }
.case-opt:hover { border-color: var(--accent); transform: translateY(-2px); }
.case-opt b { display: block; font-size: 17px; margin-bottom: 4px; } .case-opt span { font-size: 14px; color: var(--paper-muted); }
.fld.bad input, .fld.bad select, .fld.bad textarea, .fld.bad .opt { border-color: #d22; }
.fld .msg { color: #c41; font-size: 14px; margin: 6px 0 0; }
.wiz-err { color: #c41; min-height: 1em; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.wiz-form .btn-ghost { background: #e3e4e6; color: var(--paper-ink); }
.wiz-consent { font-size: 14px; color: var(--paper-muted); margin-top: 16px; } .wiz-consent a { color: var(--paper-ink); }
.wiz-busy { opacity: .6; pointer-events: none; }

/* ---------- Дело и документ ---------- */
.case { padding: clamp(32px, 6vh, 72px) var(--m) 120px; max-width: 1000px; }
.case h1 { font-size: var(--step-head); margin-bottom: 20px; }
.case h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 18px; }
.case-doc { margin-top: 64px; }
.case-link { font-size: 14px; color: var(--muted); } .case-link span { color: var(--ink); word-break: break-all; }
.ok { background: var(--accent); color: var(--accent-ink); padding: 16px 20px; font-weight: 600; }
.warn { background: var(--surface); border-left: 6px solid var(--accent); padding: 18px 22px; margin: 20px 0; font-size: 16px; }
.warn a { color: var(--accent-hi); }
.doc { background: var(--paper); color: var(--paper-ink); padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 64px); font-size: 15px; line-height: 1.55; max-width: 820px; }
.doc-head { margin-left: 46%; margin-bottom: 26px; font-size: 14px; display: grid; gap: 12px; }
.doc-title { text-align: center; font-size: 20px; letter-spacing: 0.02em; line-height: 1.2; margin: 18px 0 2px; }
.doc-sub { text-align: center; margin-bottom: 20px; }
.doc > p { text-indent: 2em; text-align: justify; }
.doc > p.doc-sub { text-indent: 0; text-align: center; }
.doc-di { font-weight: 650; text-indent: 2em; }
.doc-ol { margin: 0 0 14px; padding-left: 2.2em; } .doc-ol li { margin-bottom: 6px; text-align: justify; }
.doc-sign { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.skel { display: grid; gap: 9px; margin: 6px 0 16px; }
.skel i { display: block; height: 11px; background: #e3e3e1; }
.skel i:nth-child(3n) { width: 86%; } .skel i:nth-child(4n) { width: 93%; } .skel i:last-child { width: 58%; }
.lockline { margin: 18px 0 8px; } .lockline span { background: var(--paper-mark); padding: 6px 10px; font-size: 14px; font-weight: 600; }
.doc-lock .doc { position: relative; }
.pay { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; background: var(--surface); padding: 22px; max-width: 820px; }
.pay span { font-size: 14px; color: var(--muted); flex-basis: 100%; } .pay .mode { color: var(--ink); font-weight: 600; }
.dl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.next-doc { background: var(--surface); padding: 24px; max-width: 820px; }
.case-send { margin-top: 72px; max-width: 820px; }
.plain { padding-left: 1.3em; } .plain li { margin-bottom: 10px; }
.sent-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); padding: 20px; margin-top: 20px; }
.sent-form label { display: grid; gap: 6px; font-size: 15px; }
.sent-form input, .sent-form select { font: 16px "Onest", sans-serif; padding: 10px 12px; border: 0; border-radius: 0; background: var(--paper); color: var(--paper-ink); }
.print-page { background: #fff; padding: 24px; } .print-page .doc { margin: 0 auto; }
.pay-go { display: grid; place-items: center; min-height: 100svh; text-align: center; }

/* ---------- Админка ---------- */
.admin { padding: 24px; font-size: 15px; }
.admin h1 { font-size: 28px; margin-bottom: 12px; } .admin h2 { font-size: 22px; margin: 32px 0 12px; }
.adm { border-collapse: collapse; width: 100%; } .adm th, .adm td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #333; } /* taste-skill-ignore: настоящая таблица админки */
.adm-prices { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; } .adm-prices label { display: grid; gap: 4px; } .adm-prices input { padding: 8px; width: 120px; }

/* ---------- Движение при появлении ---------- */
.js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-rise].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-rise] { opacity: 1; transform: none; }
}

/* ---------- Телефон и планшет ---------- */
@media (max-width: 1100px) {
  .show-cap { position: static; width: auto; padding: 0 var(--m) 48px; }
  .show-row { padding-block: 8vh 32px; }
}
@media (max-width: 899px) {
  .nav nav { display: none; }
  .hero { min-height: 0; padding-bottom: 0; }
  .hero-copy { max-width: none; padding-top: 28px; }
  .hero h1 { font-size: 10.5vw; }
  .hero-sub { font-size: 16px; }
  .stage { position: relative; left: auto; top: auto; margin: 40px calc(-1 * var(--m)) 0; height: auto; padding: 64px 0 40px; clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 72px); }
  @keyframes shutter { from { clip-path: polygon(72px 0, 72px 0, 72px 100%, 0 100%, 0 72px); } to { clip-path: polygon(72px 0, 100% 0, 100% 100%, 0 100%, 0 72px); } }
  .sheet { width: auto; max-width: none; margin: 0 16px; padding: 22px 18px; font-size: 14px; }
  .sheet-head { margin-left: 0; }
  .sheet-p { text-align: left; }
  .show { min-height: 0; }
  .show-row { gap: 7vw; padding-inline: 7vw; }
  .panel { flex-basis: 86vw; }
  .steps { grid-template-columns: 1fr; grid-template-rows: auto; }
  .steps-r { order: 1; min-height: 46svh; } .steps-ctl { order: 2; } .steps-l { order: 3; padding-bottom: 56px; }
  .steps-clause { font-size: 9vw; }
  .steps-ctl input[type=range]::-webkit-slider-thumb { width: 40px; height: 40px; margin-top: -16px; }
  .steps-names { grid-template-columns: 1fr 1fr; gap: 6px; } .steps-names li { padding: 0 !important; text-align: left !important; font-size: 15px; }
  .list-top { flex-direction: column; align-items: stretch; } .list-top .btn { width: 100%; }
  .list-body { grid-template-columns: 1fr; gap: 16px; }
  .tabs { flex-direction: row; position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 6px 0; }
  .tab { flex: 1; width: auto; height: 58px; padding: 8px 10px; font-size: 15px; }
  .band { grid-template-columns: 1fr; gap: 4px; padding: 16px; }
  .calc { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 84svh; } .calc-ui, .calc-fig, .calc-how { grid-column: 1; grid-row: auto; }
  .calc h2 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
  .calc-fig { font-size: 30vw; margin-top: 56px; } .calc-fig small { display: block; font-size: 20px; margin: 10px 0 0; }
  .calc-how { font-size: 15px; margin-top: 16px; }
  .faq { display: block; } .faq-pane { display: none !important; }
  .js .fq-a { display: none; } .js .fq.on .fq-a { display: block; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 6px; }
  .t-word { grid-column: 1 / -1; order: -2; min-height: 160px; font-size: 13vw; }
  .t-go { grid-column: 1 / -1; order: -1; min-height: 160px; font-size: 24px; }
  .t-nav { grid-column: 1; } .t-mail { grid-column: 2; } .t-time { grid-column: 1; } .t-state { grid-column: 2; }
  .tile { padding: 20px; min-height: 160px; }
  .t-state { grid-column: 1 / -1; } .t-big { font-size: 18px; }
  .wiz { grid-template-columns: 1fr; gap: 16px; }
  .wiz-steps { display: flex; overflow-x: auto; } .wiz-steps li { white-space: nowrap; padding: 10px 12px; }
  .doc-head { margin-left: 0; }
}
@media print {
  body { background: #fff; color: #000; } .topbar, .nav, .foot, .dl, .pay { display: none !important; }
  .doc { max-width: none; padding: 0; font-size: 12pt; }
}
/* На телефоне документ без выключки по ширине: узкая колонка даёт дыры между словами. */
@media (max-width: 599px) {
  .doc > p, .doc-ol li, .sheet-p { text-align: left; }
  .doc-head { margin-left: 0; }
}
