/* web/static/css/site.css
   Стили публичных страниц consents (из макета landing v6). Шрифты — со своего сервера: Onest (текст), Unbounded (заголовки).
   Файлы шрифтов: web/static/fonts/*.woff2, подмножества кириллица + латиница. */

@font-face { font-family: Onest; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/onest-400.woff2) format("woff2"); }
@font-face { font-family: Onest; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/onest-500.woff2) format("woff2"); }
@font-face { font-family: Onest; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/onest-600.woff2) format("woff2"); }
@font-face { font-family: Unbounded; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/unbounded-400.woff2) format("woff2"); }
@font-face { font-family: Unbounded; font-style: normal; font-weight: 500; font-display: swap; src: url(/static/fonts/unbounded-500.woff2) format("woff2"); }

/* ---------- токены ---------- */
:root {
  --ink: #17181A; --ink-hover: #2B2C30; --paper: #FFFFFF; --fog: #F4F5F6;
  --text2: #55585E; --muted: #8E9197; --line: #E6E7EA; --line-fog: #DFE1E4; --dot: #CBCED3;
  --on-dark: #B5B8BD; --on-dark-2: #8A8D93; --on-dark-line: rgba(255, 255, 255, .14);
  --lime: #D8F26A; --lime-hover: #CCE957; --ring: rgba(216, 242, 106, .55);
  --bad: #D9533F; --ok: #8DB021; --ok-ink: #56690F;
  --display: Unbounded, Onest, system-ui, sans-serif;
  --sans: Onest, -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r-ui: 14px; --r-paper: 16px; --r-panel: 28px;
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--dot); text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hero :focus-visible, .studio :focus-visible { outline-color: var(--lime); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- типографика ---------- */
.h2 { font: 500 42px/1.1 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.h3 { font: 500 20px/1.3 var(--display); letter-spacing: -0.015em; }
.lead { margin-top: 18px; max-width: 36em; font-size: 18px; color: var(--text2); text-wrap: pretty; }
.lead + .lead { margin-top: 14px; }
.note { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.head { max-width: 760px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.btn:hover { background: var(--ink-hover); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-hover); }
.btn--ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--dot); }
.btn--ghost:hover { background: none; box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- первый экран ---------- */
.hero { position: relative; overflow: hidden; padding-bottom: 128px; background: var(--ink); color: #fff; }
.hero::before { content: ''; position: absolute; left: 50%; bottom: -300px; width: 1200px; height: 560px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(216, 242, 106, .26), rgba(216, 242, 106, 0)); pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }
.topbar { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; color: #fff; font: 500 25px/1 var(--display); letter-spacing: -0.045em; text-decoration: none; white-space: nowrap; }
.logo--ink { color: var(--ink); font-size: 20px; }
.logo__tog { display: inline-block; width: 1.16em; height: .68em; margin: 0 .04em; transform: translateY(.05em); }
.logo__tog svg { display: block; width: 100%; height: 100%; }
.topbar__nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.topbar__link { color: var(--on-dark); text-decoration: none; }
.topbar__link:hover { color: #fff; }
.topbar__login { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); color: #fff; font-size: 15px; text-decoration: none; transition: box-shadow .15s; }
.topbar__login:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.hero__body { max-width: 900px; margin: 0 auto; padding-top: 96px; text-align: center; }
.hero__title { font: 500 clamp(40px, 5vw, 60px)/1.04 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.hero__lead { max-width: 33em; margin: 24px auto 0; font-size: 19px; line-height: 1.55; color: var(--on-dark); text-wrap: pretty; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--on-dark-2); }
.hero__caption { margin-top: 72px; font-size: 14px; color: var(--on-dark-2); }

/* парящие картинки вокруг заголовка — места под 3D-иллюстрации */
.floaty { position: absolute; z-index: 0; display: grid; place-items: center; border-radius: 28px; pointer-events: none; animation: floaty 7s ease-in-out infinite; }
.floaty--ph { background: radial-gradient(70% 70% at 35% 30%, var(--c1), var(--c2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px rgba(0, 0, 0, .35); }
.floaty__label { padding: 4px 9px; border-radius: 999px; background: rgba(23, 24, 26, .55); color: #fff; font: 500 11.5px/1.2 var(--sans); white-space: nowrap; }
.floaty img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.floaty--1 { left: calc(50% - 690px); top: 100px; width: 220px; height: 220px; border-radius: 40px; --r: -12deg; --c1: #EDFAB0; --c2: #9DBF2E; }
.floaty--2 { left: calc(50% - 790px); top: 390px; width: 190px; height: 190px; border-radius: 50%; --r: 0deg; --c1: #FBE0CF; --c2: #E39A73; animation-delay: -3s; }
.floaty--3 { right: calc(50% - 720px); top: 160px; width: 260px; height: 260px; border-radius: 48px; --r: 9deg; --c1: #E3F1FA; --c2: #5A9BC2; animation-delay: -1.5s; }
.floaty--4 { right: calc(50% - 580px); top: 450px; width: 120px; height: 120px; border-radius: 30px; --r: -16deg; --c1: #EFE9F8; --c2: #A99BF2; animation-delay: -5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-14px) rotate(var(--r)); } }

/* поле проверки */
.scan { --frame: var(--line); display: flex; gap: 6px; max-width: 540px; margin: 36px auto 0; padding: 6px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--frame); transition: box-shadow .15s; }
.scan:focus-within { box-shadow: inset 0 0 0 1px var(--frame), 0 0 0 4px var(--ring); }
.scan__input { flex: 1; min-width: 0; height: 48px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--ink); font-size: 16px; outline: 0; }
.scan__input::placeholder { color: var(--muted); }

/* чеки последних проверок — заходят на чёрный экран снизу */
.feed { position: relative; z-index: 1; margin-top: -108px; }
.feed__row { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; gap: 20px; }
.feed__note { max-width: 620px; margin: 28px auto 0; text-align: center; }

/* ---------- документ: бумага с линией отрыва ---------- */
.paper { display: flex; flex-direction: column; filter: drop-shadow(0 1px 1px rgba(23, 24, 26, .05)) drop-shadow(0 18px 30px rgba(23, 24, 26, .09)); }
.paper__sheet {
  --t: 72px;
  position: relative; display: flex; flex: 1; flex-direction: column; border-radius: var(--r-paper); background: #fff;
  -webkit-mask: radial-gradient(circle 9px at 0 var(--t), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% var(--t), #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 var(--t), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% var(--t), #0000 98%, #000) right / 51% 100% no-repeat;
}
.paper__sheet::before { content: ''; position: absolute; left: 18px; right: 18px; top: var(--t); border-top: 1.5px dashed var(--dot); }
.paper__head { min-height: var(--t); padding: 16px 20px 0; }
.paper__body { display: flex; flex: 1; flex-direction: column; padding: 14px 20px 20px; }

.receipt__when { font-size: 13px; color: var(--muted); }
.receipt__site { margin-top: 2px; font: 500 17px/1.3 var(--display); letter-spacing: -0.01em; }
.receipt__lines { margin-bottom: 12px; }
.receipt__line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; font-size: 14px; line-height: 1.4; color: var(--text2); }
.receipt__sum { flex: none; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt__sum--ok { color: var(--ok-ink); }
.receipt__total { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1.5px solid var(--ink); font-size: 14px; color: var(--muted); }
.receipt__amount { font: 400 20px/1.1 var(--display); letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; background: linear-gradient(transparent 56%, var(--lime) 56% 94%, transparent 94%); }
.receipt__amount--zero { background: none; color: var(--ok-ink); }

/* ---------- разделы ---------- */
.section { padding: 112px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section + .section--fog, .section--fog + .section, .section + .section--panel, .section--panel + .section { border-top: 0; }
.section--fog { background: var(--fog); }
.section--panel { padding: 16px 0; }
.feed + .section { padding-top: 104px; }

/* ---------- интерфейсные фрагменты ---------- */
.ui { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-ui); background: #fff; }
.field { margin-bottom: 14px; }
.field__label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.field__box { display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--fog); font-size: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; }
.check + .check { margin-top: 10px; }
.check__box { position: relative; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--dot); }
.check--on .check__box { background: var(--ink); box-shadow: none; }
.check--on .check__box::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check__link { text-decoration: underline; text-decoration-color: var(--dot); text-underline-offset: 3px; }
.cookie { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-ui); background: #fff; font-size: 13px; line-height: 1.4; color: var(--text2); }
.cookie__actions { display: flex; flex: none; gap: 6px; }
.cookie__btn { padding: 7px 12px; border-radius: 999px; background: var(--fog); color: var(--ink); font-size: 12.5px; font-weight: 500; }
.file { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-ui); background: #fff; }
.file__icon { flex: none; display: grid; place-items: center; width: 40px; height: 48px; border-radius: 8px; background: var(--fog); font: 600 11px/1 var(--sans); }
.file__info { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.file__name { display: block; font-size: 14px; font-weight: 500; color: var(--ink); }
.file__btn { flex: none; padding: 7px 13px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; }
.stack { display: grid; gap: 10px; }

.code { padding: 18px 20px; border-radius: var(--r-ui); background: var(--ink); color: #DCDDE0; font: 13px/1.7 var(--mono); white-space: pre; overflow-x: auto; }
.code__str { color: #BFDDEE; } .code__key { color: #fff; } .code__muted { color: #7E8187; }

/* ---------- закон ---------- */
.law__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.law__head .lead { margin-top: 0; }

/* «так нельзя / так правильно»: строки двух карточек выровнены через subgrid */
.verdicts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); column-gap: 20px; margin-top: 56px; }
.verdict { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding: 32px; border-radius: var(--r-panel); }
.verdict--bad { background: #FBEAE6; }
.verdict--good { background: #EFF7D1; }
.verdict__head { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.verdict__icon { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; }
.verdict--bad .verdict__icon { background: var(--bad); }
.verdict--bad .verdict__icon::before, .verdict--bad .verdict__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 2.5px; margin: -1.25px 0 0 -9px; border-radius: 2px; background: #fff; transform: rotate(45deg); }
.verdict--bad .verdict__icon::after { transform: rotate(-45deg); }
.verdict--good .verdict__icon { background: var(--ink); }
.verdict--good .verdict__icon::after { content: ''; position: absolute; left: 16px; top: 11px; width: 9px; height: 17px; border: solid var(--lime); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.verdict__title { font: 500 24px/1.2 var(--display); letter-spacing: -0.02em; }
.verdict__list { margin-top: 22px; }
.verdict__item { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; font-size: 15px; line-height: 1.45; }
.verdict__result { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1.5px solid var(--ink); font-size: 14px; color: var(--text2); }
.verdict__sum { font: 400 24px/1.1 var(--display); letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.verdict--bad .verdict__sum { color: #A8392A; }

/* форма внутри карточки и пометки прямо на ней */
.form { padding: 24px; border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(23, 24, 26, .05), 0 14px 30px rgba(23, 24, 26, .07); }
.form__title { margin-bottom: 18px; font: 500 17px/1.3 var(--display); letter-spacing: -0.01em; }
.form__checks { margin: 18px 0 20px; }
.form__checks .check { line-height: 1.6; }
.form__submit { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; }
.form .check__box--bad { box-shadow: 0 0 0 4px rgba(217, 83, 63, .28); }
.form .check__box--good { box-shadow: inset 0 0 0 1.5px var(--ink), 0 0 0 4px var(--lime); }
.check__wavy { text-decoration-line: underline; text-decoration-style: wavy; text-decoration-color: var(--bad); text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-skip-ink: none; }
.check__link--mark { background: linear-gradient(transparent 55%, var(--lime) 55% 95%, transparent 95%); text-decoration-color: var(--ink); }
.pin { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; font: 600 11.5px/1 var(--sans); }
.pin--bad { background: var(--bad); color: #fff; }
.pin--good { background: var(--ink); color: var(--lime); }
.pin--corner { position: absolute; z-index: 1; top: -12px; right: -14px; box-shadow: 0 0 0 2px #fff; }
.pin--inline { margin-left: 6px; vertical-align: 1px; }

.fines { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; margin-top: 96px; }
.fines__sub { margin-top: 8px; max-width: 22em; font-size: 15px; color: var(--text2); }
.fines__note { margin-top: 16px; }
.ledger { border-top: 1.5px solid var(--ink); }
.ledger__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px dotted var(--dot); }
.ledger__name { font-size: 16px; line-height: 1.45; }
.ledger__ref { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.ledger__value { font: 400 22px/1.2 var(--display); letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- как работает ---------- */
.steps { margin-top: 48px; border-top: 1.5px solid var(--ink); }
.step { display: grid; grid-template-columns: 88px minmax(0, 1fr) 380px; gap: 32px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line-fog); }
.step__num { font: 400 64px/0.9 var(--display); letter-spacing: -0.05em; color: #C4C7CC; }
.step__desc { margin-top: 8px; max-width: 30em; color: var(--text2); }

/* ---------- журнал ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: start; }
.points { margin-top: 28px; border-top: 1px solid var(--line); }
.points__item { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text2); }
.points__item b { font-weight: 500; color: var(--ink); }
.journal__why { margin-top: 20px; font-weight: 500; }
.proof .paper__sheet { --t: 84px; }
.proof__title { font: 500 18px/1.3 var(--display); letter-spacing: -0.01em; }
.proof__sub { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.proof__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dotted var(--dot); font-size: 14px; }
.proof__key { flex: none; color: var(--muted); }
.proof__value { text-align: right; overflow-wrap: anywhere; }
.proof__hash { font: 12.5px/1.6 var(--mono); color: var(--text2); }
.proof__route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 22px; }
.proof__step { font-size: 12.5px; color: var(--text2); }
.proof__step::before { content: ''; display: block; height: 3px; margin-bottom: 8px; border-radius: 2px; background: var(--ink); }
.proof__step--done { color: var(--ink); font-weight: 500; }
.proof__step--done::before { background: var(--lime); }

/* ---------- для людей ---------- */
.panel { padding: 64px; border-radius: var(--r-panel); background: var(--fog); }
.people { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 56px; align-items: center; }
.cabinet { max-width: 460px; border: 1px solid var(--line); border-radius: 20px; background: #fff; overflow: hidden; }
.cabinet__head { padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.cabinet__title { display: block; margin-top: 2px; font: 500 17px/1.3 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.cabinet__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.cabinet__row:last-child { border-bottom: 0; }
.cabinet__site { grid-column: 1; grid-row: 1; font-size: 15px; font-weight: 500; }
.cabinet__what { grid-column: 1; grid-row: 2; font-size: 13.5px; color: var(--muted); }
.cabinet__btn { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--dot); font-size: 13.5px; }
.cabinet__btn--done { background: var(--fog); box-shadow: none; color: var(--muted); }

/* ---------- API ---------- */
.dev { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips__item { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--text2); }
.dev__link { display: inline-block; margin-top: 22px; font-weight: 500; }

/* ---------- тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1.5px solid var(--ink); }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 28px 0 0; }
.plan + .plan { padding-left: 28px; border-left: 1px solid var(--line); }
.plan--main::before { content: ''; position: absolute; left: 0; right: 0; top: -1.5px; height: 4px; background: var(--lime); }
.plan__name { font: 500 20px/1.3 var(--display); letter-spacing: -0.015em; }
.plan__price { margin-top: 12px; font: 400 34px/1.1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.plan__per { font: 400 14px/1 var(--sans); letter-spacing: 0; color: var(--muted); }
.plan__for { margin-top: 10px; font-size: 15px; color: var(--text2); }
.plan__rows { flex: 1; margin-top: 18px; }
.plan__row { padding: 9px 0; border-bottom: 1px dotted var(--dot); font-size: 15px; }
.plan__action { margin-top: 24px; }
@media (max-width: 1100px) and (min-width: 721px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:nth-child(3) { padding-left: 0; border-left: 0; }
  .plan:nth-child(n+3) { margin-top: 28px; border-top: 1px solid var(--line); }
}
.plans__note { margin-top: 32px; max-width: 46em; font-size: 15px; color: var(--text2); }

/* ---------- студиям ---------- */
.studio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; padding: 56px; border-radius: var(--r-panel); background: var(--ink); color: #fff; }
.studio .h2 { font-size: 34px; }
.studio__text { margin-top: 14px; max-width: 30em; font-size: 17px; color: var(--on-dark); }
.studio__action { margin-top: 28px; }
.perks__item { padding: 16px 0; border-bottom: 1px solid var(--on-dark-line); }
.perks__item:first-child { border-top: 1px solid var(--on-dark-line); }
.perks__title { font-weight: 500; }
.perks__text { margin-top: 2px; font-size: 15px; color: var(--on-dark); }

/* ---------- вопросы ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.faq__list { border-top: 1.5px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-size: 17px; font-weight: 500; line-height: 1.4; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--fog); transition: transform .2s, background-color .2s; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: var(--ink); transition: background-color .2s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--ink); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: #fff; }
.faq__a { max-width: 42em; padding: 0 54px 22px 0; color: var(--text2); }

/* ---------- финал и подвал ---------- */
.final { padding: 120px 0; border-top: 1px solid var(--line); text-align: center; }
.final__title { font: 500 46px/1.08 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.final__text { margin-top: 14px; font-size: 18px; color: var(--text2); }
.final .scan { --frame: var(--dot); }
.footer { border-top: 1px solid var(--line); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.footer__spacer { flex: 1; }
.footer__link { color: var(--text2); text-decoration: none; }
.footer__link:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .topbar__login, .scan, .faq__icon, .faq__icon::before, .faq__icon::after { transition: none; }
  .floaty { animation: none; transform: rotate(var(--r)); }
}

/* ---------- узкий десктоп: картинки меньше и ближе к краям ---------- */
@media (max-width: 1180px) {
  .floaty--1 { left: -40px; top: 120px; width: 150px; height: 150px; }
  .floaty--2 { display: none; }
  .floaty--3 { right: -50px; top: 110px; width: 170px; height: 170px; }
  .floaty--4 { right: 30px; top: 470px; width: 90px; height: 90px; }
  .floaty__label { display: none; }
}

/* ---------- планшет ---------- */
@media (max-width: 1000px) {
  .topbar__nav { display: none; }
  .topbar__login { margin-left: auto; }
  .law__head, .fines, .split, .people, .dev, .studio, .faq { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .law__head { gap: 18px; }
  .verdict { padding: 24px; }
  .fines { gap: 20px; margin-top: 72px; }
  .faq { gap: 28px; }
  .proof { max-width: 520px; }
  .step { grid-template-columns: 64px minmax(0, 1fr); gap: 18px 24px; }
  .step__art { grid-column: 2; }
  .step__num { font-size: 44px; }
  .panel, .studio { padding: 44px 36px; }
}

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section--panel { padding: 8px 0; }
  .feed + .section { padding-top: 72px; }
  .h2 { font-size: clamp(26px, 7.2vw, 34px); }
  .lead { font-size: 17px; }

  .hero { padding-bottom: 100px; }
  .hero__body { padding-top: 48px; }
  .hero__title { font-size: clamp(30px, 8.6vw, 40px); }
  .floaty { display: none; }
  .hero__lead { font-size: 17px; }
  .hero__caption { margin-top: 56px; }

  /* поле и кнопка — отдельно */
  .scan { flex-direction: column; gap: 10px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .scan:focus-within { box-shadow: none; }
  .scan__input { flex: none; height: 52px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--frame); }
  .scan__input:focus { box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 4px var(--ring); }
  .scan .btn { height: 52px; border-radius: 14px; }

  /* чеки — лентой с прокруткой, следующий выглядывает */
  .feed { margin-top: -80px; }
  .feed__row { display: flex; gap: 12px; margin: 0 -20px; padding: 0 20px 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; }
  .feed__row::-webkit-scrollbar { display: none; }
  .feed__row > .paper { flex: 0 0 min(82%, 300px); scroll-snap-align: start; }
  .feed__note { margin-top: 0; text-align: left; }

  .verdicts { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 16px; margin-top: 40px; }
  .verdict { display: flex; flex-direction: column; grid-row: auto; padding: 22px; border-radius: 22px; }
  .verdict__title { font-size: 20px; }
  .form { padding: 20px; }
  .ledger__row { grid-template-columns: minmax(0, 1fr); }
  .ledger__value { font-size: 20px; }
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 14px 16px; padding: 28px 0; }
  .step__num { font-size: 32px; }
  .step__art { grid-column: 1 / -1; }
  .cookie { flex-direction: column; align-items: flex-start; }
  .proof__row { flex-direction: column; gap: 2px; }
  .proof__value { text-align: left; }
  .panel, .studio { padding: 32px 22px; border-radius: 22px; }
  .studio .h2 { font-size: 28px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan, .plan + .plan { padding: 24px 0 28px; border-left: 0; }
  .plan + .plan { border-top: 1px solid var(--line); }
  .faq__q { font-size: 16px; }
  .faq__a { padding-right: 0; }
  .final { padding: 80px 0; }
  .final__title { font-size: clamp(26px, 7.4vw, 36px); }
  .footer__spacer { display: none; }
}

/* ---------- шапка сайта: общая для лендингов ---------- */
.sh { position: relative; z-index: 5; display: flex; align-items: center; gap: 20px; height: 76px; }
.sh__docs { display: flex; gap: 2px; margin-left: 14px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.sh__doc { padding: 8px 15px; border-radius: 999px; color: var(--on-dark); font: 400 14.5px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.sh__doc:hover { color: #fff; }
.sh__doc--on { background: #fff; color: var(--ink); font-weight: 500; }
.sh__doc--on:hover { color: var(--ink); }
.sh__links { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14.5px; }
.sh__link { color: var(--on-dark); text-decoration: none; white-space: nowrap; }
.sh__link:hover, .sh__link--on { color: #fff; }
.sh__login { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); color: #fff; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.sh__login:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.sh__menu { display: none; margin-left: auto; }
.sh__burger { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); cursor: pointer; list-style: none; }
.sh__burger::-webkit-details-marker { display: none; }
.sh__burger i, .sh__burger i::before, .sh__burger i::after { display: block; width: 18px; height: 2px; border-radius: 1px; background: #fff; transition: transform .2s, opacity .2s; }
.sh__burger i { position: relative; }
.sh__burger i::before, .sh__burger i::after { content: ''; position: absolute; left: 0; }
.sh__burger i::before { top: -6px; } .sh__burger i::after { top: 6px; }
.sh__menu[open] .sh__burger i { background: transparent; }
.sh__menu[open] .sh__burger i::before { transform: translateY(6px) rotate(45deg); }
.sh__menu[open] .sh__burger i::after { transform: translateY(-6px) rotate(-45deg); }
.sh__panel { position: absolute; right: 0; top: 66px; width: min(340px, calc(100vw - 32px)); padding: 10px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .45); text-align: left; }
.sh__group { padding: 10px 12px 4px; color: var(--muted); font-size: 13px; }
.sh__item { display: block; padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.sh__item:hover { background: var(--fog); }
.sh__item b { display: block; font-weight: 500; font-size: 15.5px; }
.sh__item span { display: block; color: var(--muted); font-size: 13.5px; }
.sh__item--on { background: var(--fog); }
.sh__item--on b::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgba(23, 24, 26, .15); vertical-align: 2px; }
.sh__sep { height: 1px; margin: 6px 12px; background: var(--line); }
.sh__panel .sh__cta { display: flex; justify-content: center; margin: 8px 2px 2px; height: 46px; align-items: center; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; text-decoration: none; }
@media (max-width: 1060px) { .sh__link--wide { display: none; } }
@media (max-width: 960px) {
  .sh__docs, .sh__links { display: none; }
  .sh__menu { display: block; }
}

/* ---------- подвал сайта ---------- */
.sf { border-top: 1px solid var(--line); }
.sf__grid { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 32px; padding: 48px 0 32px; }
.sf__brand .logo { color: var(--ink); font-size: 22px; }
.sf__about { margin-top: 12px; max-width: 22em; color: var(--muted); font-size: 14px; }
.sf__title { margin-bottom: 10px; font: 500 14px/1.3 var(--display); }
.sf__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.sf__list a { color: var(--text2); text-decoration: none; }
.sf__list a:hover { color: var(--ink); }
.sf__cookie { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; text-decoration: underline; text-decoration-color: var(--dot); text-underline-offset: 4px; cursor: pointer; }
.sf__cookie:hover { color: var(--ink); }
.sf__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .sf__grid { grid-template-columns: 1fr 1fr; } .sf__brand { grid-column: 1 / -1; } }

/* ---------- проверка сайта: ход проверки прямо под формой ---------- */
.scan__error { max-width: 540px; margin: 10px auto 0; color: #F07A66; font-size: 14px; }
.scan__error:empty { display: none; }
.final .scan__error { color: #B23A27; }
.pipe { --p-bg: #1E1F22; --p-line: rgba(255, 255, 255, .12); --p-text: #fff; --p-muted: #8A8D93; --p-soft: #B5B8BD; --p-wait: rgba(255, 255, 255, .22);
        max-width: 600px; margin: 22px auto 0; border-radius: 22px; background: var(--p-bg); color: var(--p-text); text-align: left; overflow: hidden; animation: pipe-in .35s ease; }
.final .pipe { --p-bg: #fff; --p-line: var(--line); --p-text: var(--ink); --p-muted: var(--muted); --p-soft: var(--text2); --p-wait: var(--dot); box-shadow: 0 0 0 1px var(--line); }
.pipe[hidden] { display: none; }
@keyframes pipe-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pipe__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.pipe__site { font: 500 18px/1.25 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pipe__count { color: var(--p-muted); font-size: 14px; white-space: nowrap; }
.pipe__bar { height: 3px; margin: 16px 24px 0; border-radius: 2px; background: var(--p-line); overflow: hidden; }
.pipe__fill { width: 0; height: 100%; background: var(--lime); transition: width .5s ease; }
.final .pipe__fill { background: var(--ink); }
.pipe__steps { margin: 0; padding: 6px 24px 4px; list-style: none; }
.ps { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 0; border-bottom: 1px dashed var(--p-line); }
.ps:last-child { border-bottom: 0; }
.ps__icon { position: relative; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--p-wait); }
.ps__title { font-size: 15px; font-weight: 500; line-height: 1.35; color: var(--p-muted); }
.ps__text { margin-top: 1px; color: var(--p-muted); font-size: 13.5px; line-height: 1.4; }
.ps__tag { padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; visibility: hidden; }
.ps--run .ps__title, .ps--ok .ps__title, .ps--bad .ps__title, .ps--warn .ps__title { color: var(--p-text); }
.ps--run .ps__text, .ps--ok .ps__text, .ps--bad .ps__text, .ps--warn .ps__text { color: var(--p-soft); }
.ps--run .ps__icon { box-shadow: none; border: 2px solid var(--p-line); border-top-color: var(--lime); animation: pipe-spin .8s linear infinite; }
.final .ps--run .ps__icon { border-top-color: var(--ink); }
.ps--ok .ps__icon { background: var(--lime); box-shadow: none; }
.ps--ok .ps__icon::after { content: ''; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ps--bad .ps__icon { background: #E5604B; box-shadow: none; }
.ps--bad .ps__icon::after { content: '!'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.ps--warn .ps__icon { background: #F2C46B; box-shadow: none; }
.ps--warn .ps__icon::after { content: '?'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-size: 12px; font-weight: 700; }
.ps--ok .ps__tag { visibility: visible; background: rgba(216, 242, 106, .14); color: var(--lime); }
.ps--bad .ps__tag { visibility: visible; background: rgba(229, 96, 75, .16); color: #F49381; }
.ps--warn .ps__tag { visibility: visible; background: rgba(242, 196, 107, .16); color: #F2C46B; }
.final .ps--ok .ps__tag { background: #F1F6DD; color: #56690F; }
.final .ps--bad .ps__tag { background: #FBECE9; color: #B23A27; }
.final .ps--warn .ps__tag { background: #FBF3E3; color: #8A5A10; }
@keyframes pipe-spin { to { transform: rotate(360deg); } }
.pipe__log { margin: 4px 24px 0; padding: 9px 12px; border-radius: 10px; background: rgba(0, 0, 0, .28); color: var(--p-muted); font: 12.5px/1.5 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.final .pipe__log { background: var(--fog); }
.pipe__err { margin: 4px 24px 0; padding: 12px 14px; border-radius: 12px; background: rgba(229, 96, 75, .16); color: #F49381; font-size: 14.5px; }
.final .pipe__err { background: #FBECE9; color: #B23A27; }
.pipe__err[hidden], .pipe__result[hidden], .pipe__log[hidden], .pipe__demo[hidden] { display: none; }
.pipe__result { margin: 8px 24px 0; padding-top: 16px; border-top: 1px dashed var(--p-line); }
.pipe__sum { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.pipe__found { font: 500 20px/1.3 var(--display); letter-spacing: -0.02em; }
.pipe__found em { font-style: normal; color: #F49381; }
.final .pipe__found em { color: #B23A27; }
.pipe__fine { font: 400 20px/1.2 var(--display); letter-spacing: -0.02em; white-space: nowrap; background: linear-gradient(transparent 58%, rgba(216, 242, 106, .35) 58%); }
.pipe__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pipe__actions .btn { height: 46px; }
.pipe__ghost { box-shadow: inset 0 0 0 1px var(--p-line); color: var(--p-text); background: none; }
.pipe__note { margin-top: 12px; color: var(--p-muted); font-size: 12.5px; }
.pipe__foot { padding: 14px 24px 20px; }
.pipe__demo { display: inline-block; padding: 3px 9px; border-radius: 999px; background: rgba(242, 196, 107, .16); color: #F2C46B; font-size: 12px; }
.final .pipe__demo { background: #FBF3E3; color: #8A5A10; }
@media (max-width: 560px) {
  .pipe { border-radius: 18px; }
  .pipe__head, .pipe__foot { padding-left: 16px; padding-right: 16px; }
  .pipe__bar, .pipe__log, .pipe__err, .pipe__result { margin-left: 16px; margin-right: 16px; }
  .pipe__steps { padding-left: 16px; padding-right: 16px; }
  .ps { grid-template-columns: 20px minmax(0, 1fr); }
  .ps__tag { grid-column: 2; justify-self: start; margin-top: 4px; }
  .pipe__actions .btn { flex: 1; }
}
/* компактнее: шаги в две колонки, лента «за последний час» прячется, пока идёт своя проверка */
@media (min-width: 761px) {
  .pipe { max-width: 760px; }
  .pipe__steps { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .ps:nth-last-child(2) { border-bottom: 0; }
}
.hero--scanning { padding-bottom: 72px; }
.hero--scanning .hero__caption, .hero--scanning .hero__note { display: none; }
body:has(.hero--scanning) .feed { display: none; }
body:has(.hero--scanning) .feed + .section { padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { .pipe { animation: none; } .ps--run .ps__icon { animation-duration: 2s; } .pipe__fill { transition: none; } }

/* ---------- ответ проверки в реестре РКН (web/ts/registry.ts): /rkn/reestr, /rkn, гайды ---------- */
.rres-slot { max-width: 600px; margin: 16px auto 0; text-align: left; }
.rres-slot:empty { display: none; }
.rres { padding: 20px 22px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); font-size: 15px; line-height: 1.5; animation: pipe-in .3s ease; }
.rres__head { display: flex; align-items: flex-start; gap: 12px; }
.rres__dot { flex: none; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--dot); }
.rres--ok .rres__dot { background: var(--ok); }
.rres--bad .rres__dot { background: var(--bad); }
.rres--wait .rres__dot { background: #E8A93A; }
.rres__title { font: 500 18px/1.3 var(--display); letter-spacing: -0.015em; }
.rres__body { margin-top: 10px; padding-left: 24px; }
.rres__text { margin: 0; color: var(--text2); }
.rres__fine { margin: 10px 0 0; color: var(--bad); font-weight: 500; }
.rres__note { margin: 10px 0 0; color: var(--muted); font-size: 13.5px; }
.rres__rows { display: grid; gap: 6px; margin: 0; }
.rres__row { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.rres__row dt { color: var(--muted); }
.rres__row dd { margin: 0; font-weight: 500; text-align: right; }
.rres__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; padding-left: 24px; }
.rres__btn { height: 40px; padding: 0 18px; font-size: 14px; }
.rres .btn--ghost { color: var(--ink); }
.rres__link { color: var(--text2); font-size: 14px; }
.rres--load, .rres--msg { display: flex; align-items: center; gap: 12px; }
.rres__spin { flex: none; width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: rres-spin .8s linear infinite; }
@keyframes rres-spin { to { transform: rotate(360deg); } }
.gtool .rres-slot { max-width: none; margin-left: 0; }
@media (max-width: 640px) {
  .rres__body, .rres__acts { padding-left: 0; }
  .rres__row { flex-direction: column; gap: 0; }
  .rres__row dd { text-align: left; }
}
