/* finera — макет A «Годовой отчёт» (editorial-report) */
:root {
  --bg: #ffffff;
  --surface: #f2f3f6;
  --surface-2: #e7e8ee;
  --ink: #1e1530;
  --muted: #4b4560;
  --accent: #2bd9a5;
  --accent-ink: #1e1530;
  --accent-text: #0f8a6a;
  --field: #1e1530;
  --field-ink: #ffffff;
  --field-muted: #c9c4d6;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* пять ступеней */
  --step-small: 0.875rem;                           /* 14 */
  --step-body: 1.125rem;                            /* 18 */
  --step-lead: clamp(1.25rem, 1rem + 0.55vw, 1.5rem); /* 20–24 */
  --step-head: clamp(2.25rem, 1.2rem + 3vw, 4rem);  /* 36–64 */
  --step-display: clamp(5.5rem, 12.5vw, 12rem);     /* имя */

  --margin: clamp(1rem, 2.4vw, 2.25rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(6rem, 13vw, 13rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:target { scroll-margin-top: 1rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; letter-spacing: -0.02em; }
p { max-width: 62ch; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nums { font-variant-numeric: tabular-nums; }

.head { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.035em; }
.lead { font-size: var(--step-lead); line-height: 1.35; }
.small { font-size: var(--step-small); line-height: 1.45; }

.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; background: var(--ink); color: #fff; font-weight: 700; font-size: var(--step-body); text-decoration: none; border-radius: var(--radius); white-space: nowrap; transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.button:active { transform: scale(0.97); }
.button--accent { background: var(--accent); color: var(--accent-ink); }
.link { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; transition: color 180ms ease, text-decoration-color 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #3a2d57; }
  .button--accent:hover { background: #5be6bb; }
  .link:hover { color: var(--accent-text); }
}

/* логотип */
.lo { font-weight: 800; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.lo .i { position: relative; display: inline-block; width: 0.16em; height: 0.53em; background: currentColor; border-radius: 0.03em; margin: 0 0.05em 0 0.1em; }
.lo .dot { position: absolute; left: 50%; top: -0.205em; width: 0.129em; height: 0.11em; max-width: none; transform: translateX(-50%); overflow: visible; }

/* ---------- первый экран: доска 2×2 ---------- */
.board { position: relative; z-index: 1; background: var(--bg); display: grid; grid-template-rows: 60px minmax(0, 1fr); gap: 8px; padding: 8px; min-height: 100svh; height: 100svh; max-height: 1100px; }
.t { border-radius: var(--radius); overflow: hidden; position: relative; }
.b-top { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 8px; }
.t-logo { background: var(--ink); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 1.75rem; }
.t-logo .lo { font-size: 1.4rem; }
.t-nav { background: var(--surface); display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); padding-left: calc(50% - 68px); font-size: var(--step-small); font-weight: 600; }
.t-nav a { text-decoration: none; }
.t-nav a:hover { color: var(--accent-text); }
.t-act { background: var(--ink); color: #fff; display: flex; align-items: center; padding: 0 1.5rem; font-weight: 700; font-size: var(--step-small); text-decoration: none; transition: background-color 180ms ease; }
.t-act:hover { background: #3a2d57; }
.t-act:active { transform: scale(0.98); }
.b-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; min-height: 0; }
.t-name { background: var(--surface); padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; }
.t-name h1 { font-size: var(--step-display); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; margin-left: -0.04em; }
.t-name p { font-size: var(--step-lead); line-height: 1.3; font-weight: 600; max-width: 26ch; }
.t-photo { background: var(--surface-2); }
.t-photo img { width: 100%; height: 100%; object-fit: cover; }
.t-founder { background: #d9dbe2; }
.t-founder img { object-fit: contain; object-position: 70% 100%; filter: grayscale(1) contrast(1.05); }
.t-founder figcaption { position: absolute; left: 24px; top: 24px; font-size: var(--step-small); font-weight: 600; max-width: 18ch; }
.t-arch img { animation: drift 18s var(--ease-soft) infinite alternate; transform-origin: 30% 60%; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08); } }
.t-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-height: 0; }
.t-dark, .t-accent { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; font-size: var(--step-lead); line-height: 1.3; font-weight: 600; }
.t-dark { background: var(--ink); color: #fff; }
.t-accent { background: var(--accent); color: var(--accent-ink); }
.t-accent .button { align-self: flex-start; }

/* ---------- общие секции ---------- */
main { position: relative; z-index: 1; background: var(--bg); }
.sec { padding-block: calc(var(--section) * 0.62) calc(var(--section) * 0.55); }
.axis { grid-column: 6 / -1; }

/* боли */
.intro .head { grid-column: 1 / 7; }
.intro .note { grid-column: 9 / -1; align-self: end; }
.pains { margin-top: clamp(4rem, 8vw, 7.5rem); align-items: start; }
.pains ul { grid-column: 1 / 8; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem var(--gutter); }
.pains h3 { font-size: var(--step-lead); line-height: 1.25; margin-bottom: 0.6rem; }
.pains figure { grid-column: 9 / -1; }
.pains figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
figcaption { font-size: var(--step-small); margin-top: 0.75rem; color: var(--muted); }

/* услуги: раскрывающиеся заголовки на тёмном поле */
.services { background: var(--field); color: var(--field-ink); }
.services h2 { grid-column: 1 / -1; font-size: var(--step-head); font-weight: 800; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.services .blocks { grid-column: 1 / -1; display: grid; gap: 6px; }
.svc { background: #2a2140; padding-inline: clamp(1.25rem, 3vw, 2.75rem); }
.svc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: clamp(1.25rem, 2vw, 1.75rem); }
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after { content: "+"; color: var(--accent); font-size: 2.5rem; line-height: 1; font-weight: 400; flex: none; transition: transform 0.25s ease; }
.svc[open] summary::after { transform: rotate(45deg); }
.svc summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.svc h3 { font-size: clamp(1.4rem, 3vw, 2.75rem); font-weight: 800; line-height: 1.15; }
.svc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 3rem; padding-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.svc p { color: var(--field-ink); max-width: 36em; }
.svc ul { display: grid; gap: 0.6rem; align-content: start; }
.svc li { color: var(--field-muted); padding-left: 1.1rem; position: relative; }
.svc li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.45rem; height: 0.45rem; background: var(--accent); }

/* отчёты: оглавление + лист */
.reports .grid { align-items: start; }
.reports .index { grid-column: 1 / 6; }
.reports .index h2 { margin-bottom: 2.5rem; }
.reports .names { display: grid; gap: 0.25rem; }
.reports .names button { font-size: var(--step-head); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; color: #8a849b; text-align: left; transition: color 180ms ease, transform 140ms var(--ease-out); }
.reports .names button[aria-pressed="true"] { color: var(--ink); }
.reports .names button:hover { color: #4b4560; }
.reports .names button[aria-pressed="true"] { box-shadow: inset 4px 0 0 var(--accent); padding-left: 0.6em; }
.reports .names button:active { transform: translateX(4px); }
.reports .hint { margin-top: 2rem; max-width: 34ch; }
.stage { grid-column: 7 / -1; background: var(--surface); display: grid; align-items: start; overflow: hidden; position: relative; padding: 64px 0 64px 64px; }
.sheet { width: 560px; background: #fff; color: var(--ink); padding: 32px 36px 48px; font-size: 15px; line-height: 1.45; }
.js .sheet { display: none; }
.js .sheet.is-on { display: block; animation: sheet-in 200ms ease; }
@keyframes sheet-in { from { opacity: 0; } to { opacity: 1; } }
html:not(.js) .sheet + .sheet { margin-top: 24px; }
.sheet header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.sheet header b { font-size: 19px; letter-spacing: -0.01em; }
.sheet header span { color: var(--muted); font-size: 14px; }
.sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet td { padding: 7px 0; border-bottom: 1px solid #e6e7ec; vertical-align: top; }
.sheet td:last-child { text-align: right; white-space: nowrap; padding-left: 1rem; }
.sheet tr.sub td { padding-left: 14px; color: var(--muted); }
.sheet tr.sub td:last-child { color: var(--ink); }
.sheet tr.tot td { font-weight: 700; border-bottom: 2px solid var(--ink); }
.sheet tr.hl td { background: #e3f9f1; font-weight: 700; padding-inline: 8px; }
.sheet .neg { color: #b42318; }
.sheet .pos { color: #0a6b51; }
.sheet .foot { margin-top: 1rem; color: var(--muted); font-size: 13px; }
.sheet .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.sheet .kpi { background: #f4f5f8; padding: 12px; }
.sheet .kpi span { display: block; font-size: 13px; color: var(--muted); }
.sheet .kpi b { font-size: 20px; letter-spacing: -0.02em; }
.sheet .kpi small { display: block; font-size: 13px; color: #0a6b51; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 190px; position: relative; padding-top: 28px; }
.bars .bar { position: relative; height: 100%; }
.bars .bar i { position: absolute; left: 0; right: 0; background: #cfd2dc; }
.bars .bar.now i { background: var(--accent); }
.bars .bar em { position: absolute; left: 0; right: 0; font-style: normal; font-size: 12.5px; text-align: center; }
.bars-x { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; font-size: 13px; color: var(--muted); text-align: center; margin-top: 26px; }
.bars .zero { position: absolute; left: 0; right: 0; height: 1px; background: #9a96a8; } /* taste-skill-ignore: нулевая линия графика внутри data-ui */
.sheet.tg { width: 400px; background: #e7ebef; padding: 20px; }
.tg .chat-h { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; font-size: 14px; }
.tg .ava { width: 36px; height: 36px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; border-radius: 50%; }
.tg .msg { background: #fff; padding: 12px 14px; border-radius: 12px 12px 12px 4px; margin-bottom: 10px; max-width: 330px; }
.tg .msg p + p { margin-top: 0.5em; }
.tg .msg time { display: block; text-align: right; font-size: 12.5px; color: var(--muted); }
.tg .me { background: #d6f5e9; margin-left: auto; border-radius: 12px 12px 4px 12px; max-width: 200px; }

/* цифры на мятном поле */
.facts { background: var(--accent); color: var(--accent-ink); }
.facts h2 { grid-column: 1 / 10; }
.facts .lead { grid-column: 1 / 8; margin-top: 1.5rem; }
.facts dl { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.facts dl > div { background: var(--field); color: var(--field-ink); padding: clamp(1.5rem, 2.4vw, 2.25rem); }
.facts dt { font-size: clamp(1.9rem, 2.8vw, 2.7rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; color: var(--accent); }
.facts dd { font-size: 1.05rem; line-height: 1.45; margin-top: 1rem; font-weight: 500; }
.facts .gets { grid-column: 1 / -1; margin-top: clamp(2rem, 3.5vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: 1rem 6px; font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.facts .gets li { padding-left: 1.2rem; position: relative; }
.facts .gets li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.45rem; height: 0.45rem; background: var(--ink); }

/* как работаем: много в одно */
.process h2 { grid-column: 1 / 8; }
.process .lead { grid-column: 9 / -1; align-self: end; max-width: 40ch; }
.process svg { grid-column: 1 / -1; width: 100%; height: auto; margin-top: clamp(3rem, 6vw, 5rem); }
.steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: 2rem; }
.steps h3 { font-size: var(--step-lead); margin-bottom: 0.5rem; }

/* цена: большая таблица */
.pricing { background: var(--surface); }
.ptable { width: 100%; border-collapse: collapse; font-size: var(--step-lead); }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 20px 20px; }
.ptable thead th { padding-top: 28px; padding-bottom: 28px; }
.ptable th:first-child, .ptable td:first-child { width: 34%; padding-left: 0; }
.ptable thead th:first-child { padding-left: 0; }
.ptable .plan { font-size: var(--step-head); letter-spacing: -0.035em; line-height: 1.05; display: block; }
.ptable .price { font-weight: 400; display: block; font-size: var(--step-lead); margin-top: 0.4rem; }
.ptable .rec { background: var(--accent); }
.ptable tbody tr:nth-child(odd):not(.last) td:not(.rec), .ptable tbody tr:nth-child(odd):not(.last) th { background: #e9eaef; }
.ptable tbody th { font-weight: 400; color: var(--muted); }
.ptable td:first-child, .ptable th:first-child { padding-left: 16px; }
.incl { margin-top: clamp(4rem, 7vw, 6rem); }
.incl h3 { grid-column: 1 / 5; font-size: var(--step-lead); }
.incl ul { grid-column: 5 / -1; columns: 2; column-gap: var(--gutter); }
.incl li { break-inside: avoid; margin-bottom: 0.8rem; padding-left: 1.1rem; position: relative; }
.incl li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.45rem; height: 0.45rem; background: var(--accent-text); }
.incl p { grid-column: 5 / -1; margin-top: 1.5rem; color: var(--muted); }

/* вопросы: текстом */
.faq h2 { grid-column: 1 / 5; }
.faq .text { grid-column: 6 / -1; max-width: 46em; font-size: 1.0625rem; line-height: 1.55; }
.faq .text p { break-inside: avoid; margin-bottom: 20px; }
.faq .text b { font-weight: 700; }

/* заявка */
.lead-sec { background: var(--bg); }
.lead-sec .grid { align-items: start; }
.lead-sec .say { grid-column: 1 / 6; }
.pains ul, .services ul { list-style: none; padding: 0; margin: 0; }
.process .dia-v { display: none; }
.lead-sec .say p { margin-top: 1.5rem; }
.who { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1.5rem; margin-top: 3rem; align-items: start; }
.who img { width: 160px; height: 160px; object-fit: cover; object-position: 50% 30%; background: var(--surface-2); filter: grayscale(1); }
.who b { display: block; font-weight: 700; margin-bottom: 0.75rem; }
.who .links { display: grid; gap: 0.35rem; }
.who .small { color: var(--muted); margin-top: 0.75rem; }
.form { grid-column: 7 / -1; background: var(--surface); padding: clamp(1.5rem, 3vw, 3rem); display: grid; gap: 1.25rem; }
.form label.f { display: grid; gap: 0.4rem; font-weight: 600; font-size: var(--step-small); }
.form input[type=text] { width: 100%; min-height: 3.25rem; padding: 0.75rem 1rem; background: #fff; border: 0; border-radius: var(--radius); font-size: 1.0625rem; }
.form input[type=text]::placeholder { color: #6f6a80; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; font-size: var(--step-small); align-items: start; }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink); }
.form .button { width: 100%; white-space: normal; text-align: center; padding-block: 0.6rem; }
.form { grid-template-columns: minmax(0, 1fr); }
.form .msg { font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* подвал-занавес */
.footer { min-height: 70svh; background: var(--ink); color: #fff; display: grid; grid-template-rows: auto 1fr auto; padding: 40px var(--margin) 20px; }
.footer .cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); font-size: 1rem; }
.footer .cols div { display: grid; gap: 0.35rem; align-content: start; color: var(--field-muted); }
.footer .cols div > :first-child { color: #fff; font-weight: 700; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer .mark { align-self: end; font-size: 33.6vw; color: #fff; margin-left: -0.03em; line-height: 0.82; }
.footer .legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 13px; color: var(--field-muted); margin-top: 20px; }

/* ---------- движение ---------- */
.shutter { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .shutter[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter[data-reveal] img { transform: scale(1.12); transition: transform 1500ms var(--ease-soft); }
  .js .shutter[data-reveal].is-in { clip-path: inset(0); }
  .js .shutter[data-reveal].is-in img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .t-arch img { animation: none; }
}

/* ---------- планшет и телефон ---------- */
@media (max-width: 1024px) {
  .t-nav { padding-left: 1.25rem; gap: 1rem; }
  .t-nav a:nth-child(n+4) { display: none; }
  .intro .head { grid-column: 1 / -1; }
  .intro .note { grid-column: 1 / 9; margin-top: 1.5rem; }
  .pains ul { grid-column: 1 / -1; }
  .pains figure { grid-column: 1 / 9; margin-top: 4rem; }
  .services h2 { grid-column: 1 / -1; position: static; margin-bottom: 4rem; }
  .services .blocks { grid-column: 1 / -1; }
  .reports .index { grid-column: 1 / -1; }
  .stage { grid-column: 1 / -1; margin-top: 2.5rem; }
  .facts h2, .facts .lead { grid-column: 1 / -1; }
  .facts dl { grid-template-columns: 1fr 1fr; }
  .process h2, .process .lead { grid-column: 1 / -1; }
  .process .lead { margin-top: 1.5rem; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .incl h3, .incl ul, .incl p { grid-column: 1 / -1; }
  .incl ul { margin-top: 1.5rem; }
  .faq h2 { grid-column: 1 / -1; margin-bottom: 2rem; }
  .faq .text { grid-column: 1 / -1; }
  .lead-sec .say, .form { grid-column: 1 / -1; }
  .form { margin-top: 3rem; }
}
@media (max-width: 760px) {
  .board { height: auto; max-height: none; min-height: 0; gap: 6px; padding: 6px; grid-template-rows: auto auto; }
  .b-top { grid-template-columns: 112px minmax(0, 1fr); gap: 6px; height: 56px; }
  .t-nav { display: none; }
  .t-act { justify-content: center; padding: 0 1rem; }
  .b-grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 6px; }
  .t-name { min-height: 34svh; padding: 20px; }
  .t-name h1 { font-size: 22vw; }
  .t-founder { aspect-ratio: 4 / 3; }
  .t-arch { display: none; }
  .t-split { grid-template-columns: 1fr 1fr; gap: 6px; }
  .t-dark, .t-accent { aspect-ratio: 1; padding: 16px; font-size: 1rem; }
  .t-accent .button { min-height: 2.75rem; padding: 0 1rem; font-size: 1rem; }
  .sec { padding-block: 5.5rem 5rem; }
  .pains ul { grid-template-columns: 1fr; gap: 2.25rem; }
  .pains figure { grid-column: 1 / -1; }
  .svc-body { grid-template-columns: 1fr; }
  .services h2 { margin-bottom: 2rem; }
  .reports .names { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
  .reports .names button { font-size: 1.375rem; white-space: nowrap; }
  .reports .index h2 { margin-bottom: 1.5rem; }
  .stage { height: auto; min-height: 0; max-height: none; padding: 12px; margin-inline: calc(var(--margin) * -1); }
  .js .sheet, .sheet, .sheet.tg { position: static; width: 100%; padding: 20px 16px 24px; font-size: 14px; }
  .js .sheet { display: none; }
  .js .sheet.is-on { display: block; }
  .sheet header { flex-wrap: wrap; gap: 0.25rem 1rem; }
  .sheet .kpis { gap: 6px; }
  .sheet .kpi { padding: 10px 8px; }
  .sheet .kpi b { font-size: 16px; }
  .facts dl { grid-template-columns: 1fr; }
  .facts .gets { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  .steps { grid-template-columns: 1fr; }
  .ptable, .ptable tbody, .ptable tr, .ptable td, .ptable th, .ptable thead { display: block; width: 100% !important; }
  .ptable thead tr { display: grid; grid-template-columns: 1fr 1fr; }
  .ptable thead th:first-child { grid-column: 1 / -1; padding-bottom: 0.5rem; }
  .ptable .plan { font-size: 1.75rem; }
  .ptable tbody tr { display: grid; grid-template-columns: 1fr 1fr; }
  .ptable tbody th { grid-column: 1 / -1; padding: 16px 16px 4px !important; font-size: 1rem; }
  .ptable tbody td { font-size: 1.0625rem; padding: 4px 16px 16px; }
  .ptable tbody td.rec { padding-top: 8px; }
  .ptable .last th { display: none; }
  .incl ul { columns: 1; }
  .faq .text { columns: 1; }
  .who { grid-template-columns: 96px minmax(0, 1fr); }
  .who img { width: 96px; height: 96px; }
  .footer .cols { grid-template-columns: 1fr 1fr; row-gap: 2rem; font-size: 0.9375rem; }
  .footer .mark { font-size: 33vw; }
  .footer { min-height: 0; grid-template-rows: auto 18svh auto; }
  .intro .note, .pains figure { grid-column: 1 / -1; }
  .process .dia-h { display: none; }
  .process .dia-v { display: none; }
}

/* редактор текстов (?edit=…) */
.editable-on { outline: 1px dashed var(--accent); outline-offset: 3px; cursor: text; }
.editable-on:focus { outline: 2px solid var(--accent); }
.edit-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 12px 16px; background: var(--field); color: #fff; font-size: 15px; }
.edit-bar button { min-height: 44px; padding: 0 20px; font: inherit; font-weight: 700; cursor: pointer; }
.edit-bar__save { background: var(--accent); color: var(--ink); }
.edit-bar__exit { background: transparent; color: #fff; outline: 1px solid #fff; }

/* правки после impeccable, 2026-10-30 */
p, li, dd, figcaption { text-wrap: pretty; }
.form .opt { font-weight: 400; color: var(--muted); }
.form .err { color: #b42318; font-weight: 600; font-size: 0.875rem; }
.form [aria-invalid="true"] { outline: 2px solid #b42318; outline-offset: -2px; }
.consent .err { grid-column: 2; }

/* страницы политики и согласия */
.legal-board { height: auto; min-height: 0; max-height: none; grid-template-rows: 60px; }
.legal { max-width: 52rem; padding-block: clamp(3rem, 6vw, 5rem); }
.legal h1 { font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 1rem; }
.legal h2 { font-size: var(--step-lead); margin: 2.5rem 0 0.75rem; }
.legal p, .legal li { margin-bottom: 0.75rem; }
.legal ul { padding-left: 1.25rem; }
.legal a { color: var(--accent-text); }
.legal .legal__date { color: var(--muted); }
.legal-foot { padding-block: 2rem 3rem; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .legal-board .t-nav { display: none; } }
.cta-sm { display: none; }
@media (max-width: 1100px) { .cta-lg { display: none; } .cta-sm { display: inline; } }

/* Тарифы (вариант А, 06.11.2026) */

/* общие для вариантов */
.ta-name { font-size: var(--step-lead); font-weight: 700; letter-spacing: -0.02em; }
.ta-price { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; white-space: nowrap; }
.ta-price span { font-size: var(--step-body); font-weight: 400; letter-spacing: 0; margin-left: 0.15em; }
.ta-no { color: var(--muted); font-size: var(--step-small); }
/* A */
.ta-top h2 { grid-column: 1 / 7; }
.ta-top .lead { grid-column: 8 / -1; align-self: end; max-width: 36ch; }
.ta-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(2.5rem, 5vw, 4rem); }
.ta-card { background: var(--bg); padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; position: relative; }
.ta-rec { background: var(--accent); }
.ta-tag { position: absolute; top: 0; right: 0; background: var(--ink); color: #fff; font-size: var(--step-small); font-weight: 700; padding: 0.35rem 0.8rem; }
.ta-sub { color: var(--muted); }
.ta-rec .ta-sub, .ta-rec .ta-no { color: var(--ink); }
.ta-list { display: grid; gap: 0.6rem; flex: 1; align-content: start; }
.ta-list li { padding-left: 1.1rem; position: relative; }
.ta-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.45rem; height: 0.45rem; background: var(--accent-text); }
.ta-rec .ta-list li::before { background: var(--ink); }
.ta-card .button { align-self: flex-start; }
@media (max-width: 760px) {
  .ta-top h2, .ta-top .lead { grid-column: 1 / -1; }
  .ta-top .lead { margin-top: 1rem; }
  .ta-cards { grid-template-columns: minmax(0, 1fr); }
  .ta-card .button { align-self: stretch; white-space: normal; text-align: center; }
}

/* Что вы наконец сможете посчитать (09.11.2026) */
.metrics { background: var(--surface); }
.metrics .head { grid-column: 1 / 8; }
.metrics .note2 { grid-column: 9 / -1; align-self: end; color: var(--muted); }
.metrics ul { grid-column: 1 / -1; list-style: none; padding: 0; margin: clamp(2.5rem, 5vw, 4rem) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.metrics li { background: var(--bg); padding: clamp(1.25rem, 2.5vw, 2rem); display: grid; gap: 0.75rem; align-content: start; }
.metrics li b { font-size: var(--step-lead); line-height: 1.2; }
.metrics li b::before { content: ""; display: block; width: 0.6rem; height: 0.6rem; background: var(--accent); margin-bottom: 1rem; }
.metrics li span { color: var(--muted); }
@media (max-width: 760px) {
  .metrics .head, .metrics .note2 { grid-column: 1 / -1; }
  .metrics .note2 { margin-top: 1rem; }
  .metrics ul { grid-template-columns: minmax(0, 1fr); }
}
