@import url('fonts.css');

/* Дело в плане — тетрадь в клетку, синяя ручка, лист документа.
   Бумага и чернила вместо «интерфейса»: человек заполняет анкету, как бланк, и получает документ. */
:root {
  --paper: #f1f3ef;
  --grid: rgba(33, 64, 184, 0.055);
  --sheet: #fffffd;
  --ink: #1d2230;
  --ink-2: #4f5666;
  --ink-3: #8a91a0;
  --rule: #d9dde4;
  --pen: #2140b8;
  --pen-deep: #172f8c;
  --pen-soft: #e5eafb;
  --marker: #ffe24f;
  --margin: #e9a3a3;
  --ok: #1f6f48;
  --ok-soft: #e3f1e8;
  --warn: #8a5a00;
  --warn-soft: #fff4d6;
  --err: #b3261e;

  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'PT Serif', Georgia, 'Times New Roman', serif;

  --wrap: 1180px;
  --r-sm: 3px;
  --r: 12px;
  --shadow-sheet: 0 1px 1px rgba(29, 34, 48, 0.06), 0 2px 6px rgba(29, 34, 48, 0.05), 0 30px 60px -36px rgba(29, 34, 48, 0.5);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  font: 400 18px/1.55 var(--sans);
  font-feature-settings: 'tnum' 0;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--pen); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--pen-deep); }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--sheet); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3 { margin: 0; font-family: var(--sans); color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(42px, 6.4vw, 82px); font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 750; line-height: 1.05; letter-spacing: -0.03em; }
h3 { font-size: 22px; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
h1 .nw { white-space: nowrap; }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; line-height: 1.5; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: var(--r);
  background: var(--pen); color: #fff;
  font: 600 18px/1 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 var(--pen-deep), 0 8px 18px -10px rgba(33, 64, 184, 0.7);
  transition: background-color .15s, transform .15s;
}
.btn:hover { background: var(--pen-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: var(--ink-3); box-shadow: none; cursor: not-allowed; }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn--ghost:hover { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.btn--block { width: 100%; }
.linkbtn { text-align: left; background: none; border: 0; padding: 8px 0; font: 500 17px var(--sans); color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.linkbtn:hover { color: var(--ink); }

/* ---------- шапка ---------- */
.top { position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 20px; letter-spacing: -0.02em; }
.brand svg { width: 18px; height: 34px; color: var(--pen); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 16px; }
.nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* ---------- лист документа ---------- */
.sheet {
  position: relative;
  background: var(--sheet);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sheet);
}
.clip { position: absolute; top: -18px; left: 34px; width: 22px; height: 64px; color: #9aa3b5; z-index: 2; pointer-events: none; }

/* ---------- первый экран ---------- */
.hero { padding: 40px 0 112px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 20px; }
.hero__note { font-size: 15px; color: var(--ink-2); max-width: 44ch; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 16px 0 80px; }
}

.example { position: relative; }
.example__pick { margin: 0 0 22px 6px; padding: 0; border: 0; }
.example__pick legend { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none; border: 1.5px solid var(--rule); background: var(--sheet); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font: 500 15px/1.2 var(--sans); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--pen-soft); border-color: var(--pen); color: var(--pen-deep); }

.demo-doc { padding: 46px 44px 34px; transform: rotate(-0.7deg); font-family: var(--serif); }
.demo-doc__kind { font: 500 13px/1 var(--sans); color: var(--ink-3); margin-bottom: 14px; }
.demo-doc__title { font: 700 27px/1.15 var(--serif); margin: 0 0 6px; letter-spacing: -0.005em; }
.demo-doc__meta { font-size: 15px; color: var(--ink-2); margin-bottom: 26px; }
.demo-doc h4 { font: 700 16px/1.3 var(--serif); margin: 0 0 10px; }
.leaders { list-style: none; margin: 0 0 6px; padding: 0; font-size: 16px; }
.leaders li { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; }
.leaders li::after { content: none; }
.leaders .dots { flex: 1; border-bottom: 1.5px dotted #b9c0cc; transform: translateY(-4px); min-width: 20px; }
.leaders .v { font-variant-numeric: tabular-nums; white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1.5px solid var(--ink); margin-top: 8px; padding-top: 8px; font-weight: 700; font-size: 17px; }
.mark { position: relative; z-index: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mark::before {
  content: ''; position: absolute; z-index: -1; left: -6px; right: -6px; top: 8%; bottom: 4%;
  background: var(--marker); border-radius: 3px 8px 4px 9px; transform: rotate(-1.2deg) scaleX(var(--mx, 1)); transform-origin: left center;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.demo-doc__figures { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule); }
.fig b { display: block; font: 700 24px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.fig span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.demo-doc__foot { margin-top: 22px; font: 400 13px/1.4 var(--sans); color: var(--ink-3); }
@media (max-width: 560px) { .demo-doc { padding: 38px 22px 26px; transform: none; } .demo-doc__title { font-size: 23px; } }

/* ---------- секции ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head p { margin-top: 18px; color: var(--ink-2); font-size: 19px; max-width: 58ch; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 86px; }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: -2px; font: 800 72px/1 var(--sans); color: var(--pen); letter-spacing: -0.05em;
}
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--ink-2); margin: 0; max-width: 34ch; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 36px; } .steps li { padding-top: 0; padding-left: 64px; } .steps li::before { font-size: 48px; } }

.inside { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.inside__text h2 { margin-bottom: 22px; }
.inside__text p { color: var(--ink-2); font-size: 19px; max-width: 42ch; }
.toc { padding: 38px 40px 30px; font-family: var(--serif); }
.toc h3 { font: 700 20px/1.2 var(--serif); margin-bottom: 18px; text-align: center; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.toc li { counter-increment: t; display: flex; align-items: baseline; gap: 10px; padding: 7px 0; font-size: 17px; }
.toc li::before { content: counter(t) '.'; min-width: 1.6em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toc .dots { flex: 1; border-bottom: 1.5px dotted #c3c9d3; transform: translateY(-5px); }
.toc .state { font: 500 13px/1.2 var(--sans); white-space: nowrap; color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; }
.toc .state--open { color: var(--ok); }
.toc .state svg { width: 12px; height: 12px; }
@media (max-width: 960px) { .inside { grid-template-columns: 1fr; gap: 36px; } .toc { padding: 30px 22px 22px; } }

.compare { width: 100%; border-collapse: collapse; font-size: 17px; background: var(--sheet); box-shadow: var(--shadow-sheet); border-radius: var(--r-sm); overflow: hidden; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid var(--rule); }
.compare thead th { font: 650 16px/1.3 var(--sans); color: var(--ink-2); background: #f7f8fa; }
.compare thead th:last-child { color: var(--pen-deep); background: var(--pen-soft); }
.compare tbody th { font-weight: 600; width: 22%; }
.compare td:last-child { background: #fafbff; }
.compare tr:last-child > * { border-bottom: 0; }
@media (max-width: 720px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 16px 18px; border-bottom: 1px solid var(--rule); }
  .compare th, .compare td { padding: 4px 0; border: 0; background: none !important; }
  .compare td::before { display: block; font: 500 13px var(--sans); color: var(--ink-3); content: attr(data-h); }
}

/* квитанция с ценой */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: center; }
.receipt {
  position: relative; background: var(--sheet); padding: 36px 34px 46px; box-shadow: var(--shadow-sheet);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/18px 51% repeat-x, linear-gradient(#000 0 0) top/100% calc(100% - 9px) no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/18px 51% repeat-x, linear-gradient(#000 0 0) top/100% calc(100% - 9px) no-repeat;
}
.receipt__sum { font: 800 64px/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin: 6px 0 4px; }
.receipt__once { color: var(--ink-2); margin-bottom: 22px; }
.receipt ul { list-style: none; padding: 0; margin: 0 0 26px; border-top: 1.5px dashed var(--rule); }
.receipt li { padding: 10px 0 10px 28px; border-bottom: 1.5px dashed var(--rule); position: relative; font-size: 17px; }
.receipt li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 12px; height: 7px; border-left: 2.5px solid var(--pen); border-bottom: 2.5px solid var(--pen); transform: rotate(-45deg); }
.receipt__fine { font-size: 14px; color: var(--ink-2); margin: 14px 0 0; }
@media (max-width: 960px) { .price { grid-template-columns: 1fr; gap: 36px; } }

.faq { max-width: 820px; }
.faq details { border-bottom: 1.5px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 600 20px/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 30px; width: 12px; height: 12px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 36px; }
.faq details > div { padding: 0 0 24px; color: var(--ink-2); max-width: 66ch; }
.faq details > div p:last-child { margin: 0; }

.cta-band { padding: 88px 0 112px; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.cta-band h2 { max-width: 16ch; }

/* ---------- подвал ---------- */
.foot { border-top: 1.5px solid var(--rule); padding: 40px 0 56px; font-size: 14px; color: var(--ink-2); background: rgba(241, 243, 239, 0.85); }
.foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.foot p { margin: 0 0 8px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot nav a { color: var(--ink-2); }
.foot__disclaimer { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 20px; max-width: 90ch; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }

/* ---------- анкета ---------- */
.form-page { padding: 8px 0 80px; }
.form-sheet {
  max-width: 760px; margin: 0 auto; padding: 44px 56px 40px 88px; min-height: 560px;
  background-image: linear-gradient(90deg, transparent 63px, var(--margin) 63px, var(--margin) 65px, transparent 65px);
}
@media (max-width: 640px) { .form-sheet { padding: 30px 20px 28px 40px; background-image: linear-gradient(90deg, transparent 24px, var(--margin) 24px, var(--margin) 26px, transparent 26px); } }
.progress { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; font-size: 15px; color: var(--ink-2); }
.progress__bar { flex: 1; height: 4px; background: var(--rule); border-radius: 4px; overflow: hidden; }
.progress__bar i { display: block; height: 100%; width: 0; background: var(--pen); border-radius: 4px; transition: width .35s ease; }
.q { display: none; }
.q.is-active { display: block; animation: qin .28s ease both; }
@keyframes qin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .q.is-active { animation: none; } .progress__bar i, .mark::before { transition: none; } }
.q h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 12px; }
.q__hint { color: var(--ink-2); margin-bottom: 28px; max-width: 54ch; }
.field { margin-bottom: 26px; }
.field label, .field .label { display: block; font-size: 15px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.input, .textarea, .select {
  width: 100%; border: 0; border-bottom: 2px solid #b6bdc9; background: transparent; border-radius: 0;
  font: 400 21px/1.4 var(--sans); color: var(--ink); padding: 8px 2px 10px;
}
.textarea { font: 400 19px/1.6 var(--serif); resize: vertical; min-height: 200px; border: 2px solid #b6bdc9; border-radius: 6px; padding: 14px 16px;
  background-image: repeating-linear-gradient(transparent, transparent 29.4px, #eceff3 29.4px, #eceff3 30.4px); background-attachment: local; background-position: 0 14px; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--pen); }
.input::placeholder, .textarea::placeholder { color: #a9afbb; }
.counter { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.counter.is-ok { color: var(--ok); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; gap: 0; } }

.options { display: grid; gap: 10px; margin-bottom: 26px; }
.option { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--sheet); cursor: pointer; transition: border-color .15s, background-color .15s; }
.option:hover { border-color: var(--ink-3); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .dot { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 2px solid #9aa2b1; display: grid; place-items: center; }
.option b { display: block; font-weight: 600; font-size: 18px; }
.option span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.option:has(input:checked) { border-color: var(--pen); background: var(--pen-soft); }
.option:has(input:checked) .dot { border-color: var(--pen); }
.option:has(input:checked) .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--pen); }
.option:has(input:focus-visible) { outline: 3px solid var(--pen); outline-offset: 2px; }
.seg { display: inline-flex; border: 1.5px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--sheet); }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 10px 18px; font-size: 16px; color: var(--ink); cursor: pointer; border-right: 1.5px solid var(--rule); }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--pen-soft); color: var(--pen-deep); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--pen); outline-offset: -3px; }

.smeta { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.smeta th { text-align: left; font: 500 14px var(--sans); color: var(--ink-2); padding: 0 6px 6px 0; }
.smeta td { padding: 4px 6px 4px 0; vertical-align: bottom; }
.smeta .input { font-size: 18px; padding: 6px 2px 8px; }
.smeta td:nth-child(2) { width: 70px; }
.smeta td:nth-child(3) { width: 130px; }
.smeta td:last-child { width: 36px; }
.smeta .del { border: 0; background: none; color: var(--ink-3); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.smeta .del:hover { color: var(--err); background: #fbecec; }
@media (max-width: 560px) {
  .smeta thead { display: none; }
  .smeta tr { display: grid; grid-template-columns: 1fr 64px 110px 30px; gap: 0 6px; padding: 6px 0; border-bottom: 1px dashed var(--rule); }
  .smeta td { padding: 0; width: auto !important; }
  .smeta td:first-child { grid-column: 1 / -1; }
}
.meter { margin: 22px 0 8px; }
.meter__bar { height: 10px; background: #e7eaef; border-radius: 6px; overflow: hidden; }
.meter__bar i { display: block; height: 100%; background: var(--pen); width: 0; transition: width .3s; border-radius: 6px; }
.meter__bar i.over { background: var(--err); }
.meter__text { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink-2); margin-top: 8px; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.meter__text b { color: var(--ink); }
.calc { margin-top: 8px; padding: 18px 20px; border-radius: 10px; background: var(--pen-soft); color: var(--pen-deep); font-size: 17px; }
.calc b { font-variant-numeric: tabular-nums; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 16px; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--pen); }
.trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.err { color: var(--err); font-size: 15px; margin-top: 8px; min-height: 0; }
.err:empty { display: none; }
.formnav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 38px; padding-top: 24px; border-top: 1.5px solid var(--rule); }
.formnav .btn { min-width: 180px; }
.saved { font-size: 14px; color: var(--ink-3); text-align: center; margin-top: 18px; }

/* ---------- заказ: ожидание, предпросмотр, полный план ---------- */
.order-page { padding: 8px 0 120px; }
.state { display: none; }
.state.is-on { display: block; }
.wait { max-width: 640px; margin: 24px auto 0; padding: 48px 48px 40px; }
.wait h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 14px; }
.wait ol { list-style: none; padding: 0; margin: 30px 0 18px; }
.wait li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--rule); color: var(--ink-3); font-size: 18px; }
.wait li i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; position: relative; }
.wait li.is-now { color: var(--ink); font-weight: 600; }
.wait li.is-now i { border-color: var(--pen); border-right-color: transparent; animation: spin .9s linear infinite; }
.wait li.is-done { color: var(--ok); }
.wait li.is-done i { border-color: var(--ok); background: var(--ok); }
.wait li.is-done i::after { content: ''; position: absolute; left: 6px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wait li.is-now i { animation: none; border-right-color: var(--pen); } }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
@media (max-width: 1040px) { .layout { grid-template-columns: minmax(0, 1fr); } }
.doc { padding: 64px 72px 72px; font: 400 17px/1.7 var(--serif); }
@media (max-width: 640px) { .doc { padding: 36px 22px 44px; font-size: 16px; } }
.doc__cover { text-align: center; padding: 20px 0 40px; margin-bottom: 40px; border-bottom: 1.5px solid var(--rule); }
.doc__cover .k { font: 700 15px/1 var(--sans); letter-spacing: 0.02em; color: var(--ink-2); margin-bottom: 18px; }
.doc__cover h1 { font: 700 clamp(26px, 3vw, 34px)/1.15 var(--serif); letter-spacing: -0.01em; margin-bottom: 30px; }
.doc__cover dl { text-align: left; max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 16px; }
.doc__cover dt { color: var(--ink-2); }
.doc__cover dd { margin: 0; }
@media (max-width: 560px) { .doc__cover dl { grid-template-columns: 1fr; gap: 0; } .doc__cover dt { margin-top: 10px; font-size: 14px; } .doc__cover h1 { font-size: 24px; } }
.doc section { margin-bottom: 38px; }
.doc h2 { font: 700 22px/1.25 var(--serif); letter-spacing: -0.005em; margin-bottom: 14px; }
.doc h3 { font: 700 17px/1.3 var(--serif); margin: 20px 0 10px; }
.doc p { text-align: left; hyphens: auto; max-width: 70ch; }
.doc table { width: 100%; border-collapse: collapse; font: 400 14.5px/1.4 var(--sans); margin: 8px 0 18px; }
.doc th, .doc td { border: 1px solid #c9ced8; padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: #f2f4f8; font-weight: 600; }
.doc td.r, .doc th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc tfoot td { font-weight: 700; background: #f7f8fb; }
.doc .tablewrap { overflow-x: auto; }
.doc .kv { display: grid; gap: 6px; margin: 10px 0 16px; }
.doc .kv div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px dotted #c3c9d3; padding: 4px 0; }
.doc .kv b { font-variant-numeric: tabular-nums; white-space: nowrap; }

.locked { position: relative; }
.locked__text { filter: blur(5.5px); user-select: none; pointer-events: none; color: #4a5160; }
.locked__text p { margin-bottom: .8em; }
.locked__tag {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--sheet); border: 1.5px solid var(--rule); border-radius: 999px; padding: 8px 16px;
  font: 500 14px/1 var(--sans); color: var(--ink-2); box-shadow: 0 6px 16px -10px rgba(29, 34, 48, .5);
}
.locked__tag svg { width: 14px; height: 14px; }
.blurcell { filter: blur(4px); user-select: none; color: #555c6b; }

.buy { position: sticky; top: 24px; padding: 30px 28px 26px; }
.buy h2 { font-size: 26px; margin-bottom: 6px; }
.buy__sum { font: 800 48px/1 var(--sans); letter-spacing: -0.04em; margin: 16px 0 4px; font-variant-numeric: tabular-nums; }
.buy ul { padding: 0 0 0 20px; margin: 14px 0 20px; color: var(--ink-2); font-size: 16px; }
.buy li { margin-bottom: 6px; }
.buy .check { font-size: 15px; }
.buy__fine { font-size: 13.5px; color: var(--ink-2); margin: 14px 0 0; line-height: 1.45; }
.buy-bar { display: none; }
@media (max-width: 1040px) {
  .buy { position: static; }
  .buy-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--sheet); box-shadow: 0 -8px 24px -12px rgba(29, 34, 48, .4); }
  .buy-bar b { font-size: 20px; font-variant-numeric: tabular-nums; }
  .buy-bar span { display: block; font-size: 13px; color: var(--ink-2); }
}

.note { padding: 18px 20px; border-radius: 10px; margin-bottom: 24px; font-size: 16px; }
.note--warn { background: var(--warn-soft); color: #5a3d00; }
.note--ok { background: var(--ok-soft); color: #134d31; }
.note b { display: block; margin-bottom: 4px; }
.paidbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }

/* ---------- правовые страницы ---------- */
.legal { max-width: 860px; margin: 8px auto 96px; padding: 56px 64px 64px; font: 400 17px/1.7 var(--serif); }
@media (max-width: 640px) { .legal { padding: 32px 20px 40px; font-size: 16px; } }
.legal h1 { font: 750 clamp(28px, 3.4vw, 40px)/1.1 var(--sans); letter-spacing: -0.03em; margin-bottom: 10px; }
.legal .rev { font: 400 15px var(--sans); color: var(--ink-2); margin-bottom: 36px; }
.legal h2 { font: 700 20px/1.3 var(--serif); margin: 34px 0 12px; letter-spacing: 0; }
.legal ol, .legal ul { padding-left: 1.4em; }
.legal li { margin-bottom: .4em; }
.legal table { border-collapse: collapse; width: 100%; font: 400 15px/1.45 var(--sans); }
.legal td { border: 1px solid #c9ced8; padding: 8px 12px; vertical-align: top; }
.legal td:first-child { width: 38%; color: var(--ink-2); }

/* ---------- плашка о файлах cookie ---------- */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 40; max-width: 460px;
  background: var(--sheet); border-radius: 10px; padding: 18px 20px; box-shadow: 0 18px 40px -18px rgba(29, 34, 48, .55), 0 0 0 1px var(--rule);
  font-size: 15px; line-height: 1.45;
}
.cookie p { margin: 0 0 12px; }
.cookie div { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { min-height: 42px; font-size: 15px; padding: 0 16px; }
@media (max-width: 1040px) { .has-buybar .cookie { bottom: 92px; } }
@media (max-width: 520px) { .cookie { left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; font-size: 13.5px; } .cookie p { margin-bottom: 10px; } .cookie div { flex-wrap: nowrap; } .cookie .btn { min-height: 40px; padding: 0 12px; font-size: 14px; } }

/* ---------- печать: только документ ---------- */
@media print {
  body { background: #fff; font-size: 12pt; }
  .top, .foot, .buy, .buy-bar, .paidbar, .cookie, .note { display: none !important; }
  .layout { display: block; }
  .sheet { box-shadow: none; }
  .doc { padding: 0; font-size: 12pt; }
  .doc section { break-inside: auto; }
  .doc h2 { break-after: avoid; }
  .doc__cover { break-after: page; border: 0; min-height: 90vh; display: flex; flex-direction: column; justify-content: center; }
}
