/* Layout: «документы на столе» — холодная бумага, листы-карточки только там, где это документ или инструмент;
   синие чернила как рабочий цвет, жёлтый маркер — единственный яркий акцент (то, что можно вернуть); суммы и даты — моноширинным. */
:root {
  --paper: #f2f4f8;
  --sheet: #ffffff;
  --sheet-2: #f7f8fb;
  --ink: #121833;
  --ink-2: #4a5270;
  --ink-3: #747b97;
  --rule: #dde2ee;
  --rule-strong: #c5cbdc;
  --pen: #2a3ee0;
  --pen-hover: #1f30c4;
  --pen-soft: #e7eaff;
  --on-pen: #ffffff;
  --marker: #ffe14a;
  --marker-soft: #fff4b8;
  --on-marker: #1b1a0e;
  --money: #0a8a57;
  --money-soft: #dcf4e9;
  --warn: #9a6400;
  --warn-soft: #fff0cc;
  --stop: #cf3338;
  --stop-soft: #fde3e3;
  --overlay: rgba(10, 14, 32, 0.55);
  --logo-bg: #121833;
  --logo-mark: #ffe14a;
  --shadow-1: 0 1px 2px rgba(18, 24, 51, 0.06), 0 4px 14px -6px rgba(18, 24, 51, 0.12);
  --shadow-2: 0 2px 4px rgba(18, 24, 51, 0.05), 0 24px 48px -20px rgba(18, 24, 51, 0.28);

  --font-display: 'Unbounded', 'Arial Black', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Golos Text', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, 'Liberation Mono', monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-h3: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --fs-h2: clamp(1.625rem, 1.25rem + 1.6vw, 2.5rem);
  --fs-h1: clamp(2rem, 1.35rem + 2.9vw, 3.75rem);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --wrap: 1180px;
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0c1021;
    --sheet: #151a31;
    --sheet-2: #1a2039;
    --ink: #eceef8;
    --ink-2: #aab0c9;
    --ink-3: #7f87a5;
    --rule: #272f50;
    --rule-strong: #364070;
    --pen: #8f9cff;
    --pen-hover: #a9b3ff;
    --pen-soft: #222a57;
    --on-pen: #0c1021;
    --marker: #ffd93a;
    --marker-soft: #3b3415;
    --on-marker: #1b1a0e;
    --money: #3ed39a;
    --money-soft: #0f3529;
    --warn: #f2b84d;
    --warn-soft: #3a2d10;
    --stop: #ff7276;
    --stop-soft: #3e1a1e;
    --overlay: rgba(0, 0, 0, 0.65);
    --logo-bg: #262f63;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px -8px rgba(0, 0, 0, 0.6);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 28px 56px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #0c1021;
  --sheet: #151a31;
  --sheet-2: #1a2039;
  --ink: #eceef8;
  --ink-2: #aab0c9;
  --ink-3: #7f87a5;
  --rule: #272f50;
  --rule-strong: #364070;
  --pen: #8f9cff;
  --pen-hover: #a9b3ff;
  --pen-soft: #222a57;
  --on-pen: #0c1021;
  --marker: #ffd93a;
  --marker-soft: #3b3415;
  --on-marker: #1b1a0e;
  --money: #3ed39a;
  --money-soft: #0f3529;
  --warn: #f2b84d;
  --warn-soft: #3a2d10;
  --stop: #ff7276;
  --stop-soft: #3e1a1e;
  --overlay: rgba(0, 0, 0, 0.65);
  --logo-bg: #262f63;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px -8px rgba(0, 0, 0, 0.6);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 28px 56px -24px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ───────── база ───────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--paper);
}
img,
svg {
  max-width: 100%;
}
img {
  height: auto;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--pen);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--pen-hover);
}
:focus-visible {
  outline: 3px solid var(--pen);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: var(--marker);
  color: var(--on-marker);
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 {
  font-size: var(--fs-h1);
  line-height: 1.08;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
.mono,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.nowrap {
  white-space: nowrap;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * 32px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.section {
  padding-block: clamp(56px, 7vw, 104px);
}
.section-tight {
  padding-block: clamp(40px, 5vw, 72px);
}
.section-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pen);
}
.lead-text {
  font-size: var(--fs-lg);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 62ch;
}
.muted {
  color: var(--ink-2);
}
.small {
  font-size: var(--fs-sm);
}
.tiny {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

/* Маркер: подсветка ключевых слов как жёлтым текстовыделителем */
.hl {
  background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 88%, transparent 88%);
  color: var(--on-marker);
  padding-inline: 0.12em;
  margin-inline: -0.06em;
  border-radius: 0.12em 0.3em 0.2em 0.35em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl-anim {
  background-image: linear-gradient(var(--marker), var(--marker));
  background-repeat: no-repeat;
  background-size: 100% 76%;
  background-position: 0 60%;
  color: var(--on-marker);
  padding-inline: 0.12em;
  margin-inline: -0.06em;
  border-radius: 0.12em 0.3em 0.2em 0.35em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: marker-sweep 0.9s cubic-bezier(0.6, 0, 0.2, 1) 0.25s both;
}
@keyframes marker-sweep {
  from {
    background-size: 0% 76%;
  }
  to {
    background-size: 100% 76%;
  }
}

/* ───────── кнопки ───────── */
.btn {
  --btn-bg: var(--pen);
  --btn-fg: var(--on-pen);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 var(--fs-md) / 1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
  text-wrap: balance;
  min-width: 0;
}
.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}
.btn:active {
  transform: translateY(0);
}
.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}
.btn-marker {
  --btn-bg: var(--marker);
  --btn-fg: var(--on-marker);
}
.btn-marker:hover {
  box-shadow: 0 10px 24px -10px rgba(170, 140, 0, 0.55);
}
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--rule-strong);
}
.btn-ghost:hover {
  --btn-bd: var(--ink-2);
}
.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: var(--fs-sm);
  border-radius: 10px;
}
.btn-block {
  width: 100%;
}
.btn .arrow {
  transition: transform 0.2s ease;
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--pen);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ───────── шапка ───────── */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--rule);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo:hover {
  color: var(--ink);
}
.logo svg {
  width: 34px;
  height: 34px;
  flex: none;
}
.nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
}
.nav a:hover {
  color: var(--ink);
  background: var(--sheet);
}
.header-cta {
  display: none;
}
.menu-btn {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
@media (min-width: 1000px) {
  .nav {
    display: flex;
  }
  .header-cta {
    display: inline-flex;
  }
  .menu-btn {
    display: none;
  }
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--overlay);
  display: flex;
  justify-content: flex-end;
}
.mobile-menu-panel {
  width: min(360px, 100%);
  height: 100%;
  background: var(--paper);
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  animation: slide-in 0.22s ease both;
}
@keyframes slide-in {
  from {
    transform: translateX(24px);
    opacity: 0.4;
  }
}
.mobile-menu-panel a:not(.btn) {
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
}
.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

/* ───────── герой ───────── */
.hero {
  padding-block: clamp(28px, 5vw, 64px) clamp(48px, 6vw, 88px);
  overflow-x: clip;
}
main {
  overflow-x: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}
.hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.hero-copy .lead-text {
  max-width: 54ch;
}
.quick {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: var(--shadow-1);
  max-width: 600px;
}
@media (min-width: 560px) {
  .quick {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
}
.quick label {
  display: grid;
  gap: 4px;
  padding: 6px 10px 4px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  border-radius: 10px;
}
.quick label:focus-within {
  background: var(--sheet-2);
}
.quick input {
  border: 0;
  background: transparent;
  padding: 0;
  font: 500 1.0625rem/1.4 var(--font-mono);
  color: var(--ink);
  width: 100%;
  min-width: 0;
  outline: none;
}
.quick .btn {
  min-height: 54px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
  gap: 18px 28px;
  padding-top: 8px;
  max-width: 640px;
}
.fact {
  display: grid;
  gap: 4px;
  align-content: start;
}
.fact b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.fact span {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.45;
}

/* Лист договора в герое */
.doc-stage {
  position: relative;
  min-width: 0;
  padding: 8px 6px 72px;
}
.doc {
  position: relative;
  background: var(--sheet);
  border-radius: 6px;
  box-shadow: var(--shadow-2);
  padding: clamp(20px, 3vw, 32px) clamp(18px, 3vw, 30px) clamp(24px, 3vw, 34px);
  transform: rotate(-1.2deg);
  max-width: 520px;
  margin-inline: auto;
  border: 1px solid var(--rule);
}
.doc::before {
  content: '';
  position: absolute;
  inset: 10px -10px -10px 10px;
  background: var(--sheet-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  z-index: -1;
  transform: rotate(2.6deg);
}
.doc-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 8px;
}
.doc-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
}
.doc-title small {
  display: block;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  text-transform: none;
}
.doc-tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid var(--rule-strong);
  color: var(--ink-3);
}
.doc-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 0.9375rem;
}
.doc-row .what {
  min-width: 0;
}
.doc-row .what small {
  display: block;
  color: var(--ink-3);
  font-size: 0.75rem;
}
.doc-row .sum {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  white-space: nowrap;
}
.doc-row.extra .what,
.doc-row.extra .sum {
  position: relative;
  z-index: 1;
}
.doc-row.extra::before {
  content: '';
  position: absolute;
  left: -6px;
  right: -6px;
  top: 5px;
  bottom: 5px;
  background: var(--marker);
  opacity: 0.85;
  border-radius: 3px 7px 4px 6px;
  transform-origin: left center;
  transform: scaleX(1);
  animation: row-mark 0.5s cubic-bezier(0.6, 0, 0.2, 1) both;
  animation-delay: calc(0.7s + var(--i, 0) * 0.28s);
}
.doc-row.extra .what,
.doc-row.extra .sum {
  color: var(--on-marker);
  animation: row-ink 0.01s step-end both;
  animation-delay: calc(0.7s + var(--i, 0) * 0.28s);
}
.doc-row.extra .what small {
  color: color-mix(in srgb, var(--on-marker) 65%, transparent);
}
@keyframes row-ink {
  from {
    color: var(--ink);
  }
  to {
    color: var(--on-marker);
  }
}
.doc-row.extra .sum s {
  text-decoration-thickness: 2px;
  text-decoration-color: var(--stop);
}
@keyframes row-mark {
  from {
    transform: scaleX(0);
  }
}
.doc-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.doc-total b {
  color: var(--ink);
}
.stamp {
  position: absolute;
  right: clamp(-6px, 2vw, 18px);
  bottom: -62px;
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 12px 18px;
  border: 3px solid var(--money);
  border-radius: 12px;
  color: var(--money);
  background: color-mix(in srgb, var(--sheet) 88%, transparent);
  transform: rotate(-7deg);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.6875rem;
  font-weight: 600;
  animation: stamp 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) 2.2s both;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--money) 25%, transparent) inset;
}
.stamp b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-transform: none;
}
@media (max-width: 560px) {
  .stamp {
    bottom: -78px;
    padding: 10px 14px;
  }
  .stamp b {
    font-size: 1.25rem;
  }
}
@keyframes stamp {
  from {
    transform: rotate(-7deg) scale(1.6);
    opacity: 0;
  }
  to {
    transform: rotate(-7deg) scale(1);
    opacity: 1;
  }
}
.deadline-chip {
  position: absolute;
  left: clamp(-4px, 1vw, 8px);
  top: -6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 600;
  transform: rotate(2deg);
  box-shadow: var(--shadow-1);
  z-index: 2;
}
.deadline-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--marker);
  box-shadow: 0 0 0 0 var(--marker);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--marker) 80%, transparent);
  }
  100% {
    box-shadow: 0 0 0 10px transparent;
  }
}

/* ───────── полоса доверия ───────── */
.trust {
  border-block: 1px solid var(--rule);
  background: var(--sheet);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 0;
}
.trust-item {
  display: grid;
  gap: 4px;
  padding: 20px 20px 20px 0;
}
.trust-item + .trust-item {
  border-top: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .trust-item + .trust-item {
    border-top: 0;
    border-left: 1px solid var(--rule);
    padding-left: 24px;
  }
}
.trust-item .mono {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.trust-item b {
  font-weight: 600;
}

/* ───────── прайс-лист допов (с отточием, как в документе) ───────── */
.price-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--ink);
}
@media (min-width: 900px) {
  .price-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
  }
}
.pl-item {
  display: grid;
  gap: 6px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
}
a.pl-item:hover .pl-name {
  color: var(--pen);
}
.pl-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pl-name {
  font-weight: 600;
  font-size: 1.0625rem;
  transition: color 0.15s ease;
}
.pl-dots {
  flex: 1;
  min-width: 24px;
  border-bottom: 2px dotted var(--rule-strong);
  transform: translateY(-4px);
}
.pl-sum {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  white-space: nowrap;
  color: var(--ink-2);
}
.pl-desc {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  max-width: 60ch;
}
.pl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--sheet-2);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  white-space: nowrap;
}
.tag.ok {
  background: var(--money-soft);
  border-color: transparent;
  color: var(--money);
}
.tag.warn {
  background: var(--warn-soft);
  border-color: transparent;
  color: var(--warn);
}
.tag.stop {
  background: var(--stop-soft);
  border-color: transparent;
  color: var(--stop);
}
.tag.pen {
  background: var(--pen-soft);
  border-color: transparent;
  color: var(--pen);
}

/* ───────── шаги ───────── */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px 0 0;
  border-top: 1.5px solid var(--ink);
}
.step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--pen);
  letter-spacing: 0.06em;
}
.step p {
  color: var(--ink-2);
  font-size: var(--fs-sm);
}
.step .when {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

/* ───────── формы ───────── */
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field > span,
.field > label,
.label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
}
.hint,
.field > span.hint {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.45;
}
.input,
.select,
.textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--rule-strong);
  background: var(--sheet);
  color: var(--ink);
  font: 400 var(--fs-md) / 1.4 var(--font-body);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}
.input.num,
.input[type='date'] {
  font-family: var(--font-mono);
  font-size: 1rem;
}
.textarea {
  min-height: 96px;
  resize: vertical;
}
.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--ink-3);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--pen);
  box-shadow: 0 0 0 4px var(--pen-soft);
}
.input[aria-invalid='true'] {
  border-color: var(--stop);
  box-shadow: 0 0 0 4px var(--stop-soft);
}
.input-suffix {
  position: relative;
}
.input-suffix .input {
  padding-right: 40px;
}
.input-suffix > span {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-family: var(--font-mono);
  pointer-events: none;
}
.grid-2 {
  display: grid;
  gap: 14px;
}
@media (min-width: 600px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.grid-3 {
  display: grid;
  gap: 14px;
}
@media (min-width: 760px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--sheet-2);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg label {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  user-select: none;
}
.seg input:checked + label {
  background: var(--sheet);
  color: var(--ink);
  box-shadow: var(--shadow-1);
  font-weight: 600;
}
.seg input:focus-visible + label {
  outline: 3px solid var(--pen);
  outline-offset: 1px;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--pen);
  cursor: pointer;
}

/* ───────── калькулятор ───────── */
.calc-section {
  background: var(--sheet);
  border-block: 1px solid var(--rule);
}
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (min-width: 1040px) {
  .calc {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
    gap: 40px;
  }
}
.calc-form {
  display: grid;
  gap: 28px;
  min-width: 0;
}
.calc-block {
  display: grid;
  gap: 14px;
}
.calc-block-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.calc-block-head .step-num {
  min-width: 2.2em;
}
.calc-block-head h3 {
  font-size: 1.125rem;
}
.example-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--pen-soft);
  color: var(--pen);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.svc-list {
  display: grid;
  gap: 8px;
}
.svc {
  border: 1.5px solid var(--rule);
  border-radius: var(--r);
  background: var(--paper);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.svc.on {
  border-color: var(--pen);
  background: var(--sheet);
}
.svc-top {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
}
.svc-top input {
  flex: none;
  width: 22px;
  height: 22px;
  accent-color: var(--pen);
  margin: 0;
  cursor: pointer;
}
.svc-name {
  display: grid;
  min-width: 0;
  flex: 1;
}
.svc-name b {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}
.svc-name small {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  line-height: 1.35;
}
.svc-typical {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  white-space: nowrap;
}
@media (max-width: 520px) {
  .svc-typical {
    display: none;
  }
}
.svc-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 12px;
  padding: 0 14px 14px 48px;
}
@media (max-width: 520px) {
  .svc-body {
    padding-left: 14px;
  }
}
.svc-body .input {
  min-height: 44px;
}

.result {
  position: relative;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--rule);
  min-width: 0;
}
@media (min-width: 1040px) {
  .result {
    position: sticky;
    top: calc(var(--header-h) + 20px + env(safe-area-inset-top, 0px));
  }
}
.result-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.result-sum {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--money);
}
.result-range {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.deadline {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--sheet);
  border: 1px solid var(--rule);
}
.deadline .big {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.deadline .txt {
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.deadline.urgent {
  background: var(--stop-soft);
  border-color: transparent;
}
.deadline.urgent .big {
  color: var(--stop);
}
.deadline.past {
  background: var(--sheet-2);
}
.verdict {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  align-items: start;
}
.verdict .lamp {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 4px;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent);
}
.verdict b {
  display: block;
  margin-bottom: 2px;
}
.verdict p {
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.verdict.green {
  background: var(--money-soft);
}
.verdict.green .lamp {
  color: var(--money);
}
.verdict.yellow {
  background: var(--warn-soft);
}
.verdict.yellow .lamp {
  color: var(--warn);
}
.verdict.red {
  background: var(--stop-soft);
}
.verdict.red .lamp {
  color: var(--stop);
}
.breakdown {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.breakdown th {
  text-align: left;
  font-weight: 600;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  padding: 0 0 6px;
}
.breakdown td {
  padding: 8px 0;
  border-top: 1px dashed var(--rule-strong);
  vertical-align: top;
}
.breakdown td:last-child,
.breakdown th:last-child {
  text-align: right;
  white-space: nowrap;
  padding-left: 12px;
}
.breakdown .basis {
  display: block;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.notes {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: var(--fs-sm);
}
.notes li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  color: var(--ink-2);
}
.notes li::before {
  content: '!';
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 700;
  font-size: 0.75rem;
}
.result-actions {
  display: grid;
  gap: 10px;
}

/* ───────── скидка: таймлайн решений ───────── */
.court-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (min-width: 980px) {
  .court-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-left: 2px solid var(--rule-strong);
}
.tl-item {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 0 0 26px 24px;
}
.tl-item:last-child {
  padding-bottom: 0;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--pen);
}
.tl-item.key::before {
  background: var(--marker);
  border-color: var(--on-marker);
}
.tl-date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.tl-item p {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.lights {
  display: grid;
  gap: 12px;
}
.light-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r);
  background: var(--sheet);
  border: 1px solid var(--rule);
}
.light-card .lamp {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-top: 4px;
}
.light-card.green .lamp {
  background: var(--money);
}
.light-card.yellow .lamp {
  background: var(--warn);
}
.light-card.red .lamp {
  background: var(--stop);
}
.light-card p {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  margin-top: 4px;
}

/* ───────── тарифы ───────── */
.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}
.plan {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  padding: 26px 24px 24px;
  border-radius: var(--r-lg);
  background: var(--sheet);
  border: 1px solid var(--rule);
}
.plan.featured {
  border: 2px solid var(--pen);
  box-shadow: var(--shadow-2);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 22px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--pen);
  color: var(--on-pen);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-price b {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-price s {
  color: var(--ink-3);
  font-family: var(--font-mono);
}
.plan-price span {
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.35;
}
.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: var(--fs-sm);
}
.plan li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
}
.plan li::before {
  content: '';
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--money-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%230a8a57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}
.addon {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--rule-strong);
}
.addon > div {
  display: grid;
  gap: 4px;
  max-width: 70ch;
}

/* ───────── генератор документов ───────── */
.gen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (min-width: 1100px) {
  .gen {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 40px;
  }
}
.gen-form {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.gen-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.gen-form legend {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0;
  margin-bottom: 4px;
}
.doc-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 8px;
}
.doc-type {
  position: relative;
}
.doc-type input {
  position: absolute;
  opacity: 0;
}
.doc-type label {
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--rule);
  background: var(--sheet);
  cursor: pointer;
  font-size: var(--fs-sm);
  transition: border-color 0.15s ease;
}
.doc-type label b {
  font-size: 0.9375rem;
}
.doc-type label small {
  color: var(--ink-3);
  font-size: var(--fs-xs);
  line-height: 1.4;
}
.doc-type input:checked + label {
  border-color: var(--pen);
  box-shadow: 0 0 0 3px var(--pen-soft);
}
.doc-type input:focus-visible + label {
  outline: 3px solid var(--pen);
  outline-offset: 2px;
}
.company-line {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.company-line .field {
  flex: 1;
}
.company-status {
  font-size: var(--fs-xs);
  padding: 8px 12px;
  border-radius: 10px;
}
.company-status.ok {
  background: var(--money-soft);
  color: var(--money);
}
.company-status.bad {
  background: var(--stop-soft);
  color: var(--stop);
}
.paper-wrap {
  min-width: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 1100px) {
  .paper-wrap {
    position: sticky;
    top: calc(var(--header-h) + 20px + env(safe-area-inset-top, 0px));
  }
}
.paper-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.paper-scroll {
  max-height: min(78vh, 900px);
  overflow: auto;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--sheet-2);
  padding: clamp(10px, 2vw, 20px);
}
.paper {
  background: #fff;
  color: #111;
  width: 100%;
  max-width: 700px;
  margin-inline: auto;
  padding: clamp(22px, 4vw, 52px) clamp(18px, 4vw, 56px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 12px 30px -16px rgba(0, 0, 0, 0.3);
  font-family: 'Times New Roman', Times, 'Liberation Serif', serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.paper .to {
  margin-left: auto;
  max-width: 62%;
  margin-bottom: 26px;
}
@media (max-width: 560px) {
  .paper .to {
    max-width: 100%;
  }
}
.paper h4 {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  margin: 18px 0 14px;
  font-family: inherit;
  letter-spacing: 0;
}
.paper p {
  margin: 0 0 10px;
  text-align: justify;
  text-indent: 2em;
}
.paper p.noindent {
  text-indent: 0;
}
.paper ol {
  margin: 0 0 10px;
  padding-left: 2.2em;
}
.paper .sign {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
}
.paper .blank {
  background: #fff3a6;
  padding: 0 3px;
  border-radius: 2px;
  color: #6b5a00;
}
.paper-note {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

/* ───────── FAQ ───────── */
.faq {
  display: grid;
  border-top: 1.5px solid var(--ink);
  max-width: 900px;
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--rule-strong);
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--marker);
  border-color: var(--marker);
  background-image: linear-gradient(var(--on-marker), var(--on-marker)), linear-gradient(var(--on-marker), var(--on-marker));
}
.faq summary:hover {
  color: var(--pen);
}
.faq .answer {
  display: grid;
  gap: 10px;
  padding: 0 44px 22px 0;
  color: var(--ink-2);
  max-width: 72ch;
}

/* ───────── заявка ───────── */
.lead-section {
  background: var(--ink);
  color: var(--paper);
}
.lead-section .eyebrow {
  color: var(--marker);
}
.lead-section .lead-text {
  color: color-mix(in srgb, var(--paper) 78%, transparent);
}
.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
@media (min-width: 980px) {
  .lead-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
  }
}
.lead-side {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.lead-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.lead-points li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  color: color-mix(in srgb, var(--paper) 85%, transparent);
}
.lead-points li b {
  color: var(--paper);
}
.lead-points .n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--marker);
  color: var(--on-marker);
  font: 600 0.8125rem/1 var(--font-mono);
}
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.lead-section .btn-ghost {
  --btn-fg: var(--paper);
  --btn-bd: color-mix(in srgb, var(--paper) 35%, transparent);
}
.lead-card {
  background: var(--sheet);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  display: grid;
  gap: 18px;
  min-width: 0;
  box-shadow: var(--shadow-2);
}
.lead-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
}
.dropzone {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  padding: 22px 16px;
  border-radius: 14px;
  border: 2px dashed var(--rule-strong);
  background: var(--sheet-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dropzone:hover,
.dropzone.drag {
  border-color: var(--pen);
  background: var(--pen-soft);
}
.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.dropzone b {
  font-size: 0.9375rem;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(72px, 100%), 1fr));
  gap: 8px;
}
.thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sheet-2);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-3);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: var(--overlay);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.form-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--stop-soft);
  color: var(--stop);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.success {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.success .id {
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--marker);
  color: var(--on-marker);
  font-weight: 600;
}
.calc-attached {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--money-soft);
  color: var(--money);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

/* ───────── статьи (страницы по видам допов) ───────── */
.article-hero {
  padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--rule);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  margin-bottom: 18px;
}
.crumbs a {
  color: var(--ink-3);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-block: clamp(32px, 5vw, 64px);
}
@media (min-width: 1000px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
  }
}
.prose {
  min-width: 0;
  max-width: 72ch;
  display: grid;
  gap: 16px;
}
.prose h2 {
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  margin-top: 20px;
}
.prose h3 {
  margin-top: 8px;
}
.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 8px;
}
.prose li::marker {
  color: var(--pen);
}
.prose .callout {
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--sheet);
  border: 1px solid var(--rule);
}
.prose .callout.warn {
  background: var(--warn-soft);
  border-color: transparent;
}
.prose .callout.ok {
  background: var(--money-soft);
  border-color: transparent;
}
.prose .law {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--pen-soft);
  color: var(--pen);
  white-space: nowrap;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: var(--r);
  background: var(--sheet);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 520px;
}
.table th,
.table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.table th {
  font-size: var(--fs-xs);
  color: var(--ink-3);
  font-weight: 600;
  background: var(--sheet-2);
}
.table tr:last-child td {
  border-bottom: 0;
}
.aside {
  display: grid;
  gap: 16px;
  align-content: start;
}
@media (min-width: 1000px) {
  .aside {
    position: sticky;
    top: calc(var(--header-h) + 20px + env(safe-area-inset-top, 0px));
  }
}
.aside-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--sheet);
  border: 1px solid var(--rule);
}
.aside-card h3 {
  font-size: 1.0625rem;
}
.aside-links {
  display: grid;
  gap: 2px;
  font-size: var(--fs-sm);
}
.aside-links a {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}
.aside-links a:hover {
  color: var(--pen);
}
.aside-links a[aria-current='page'] {
  color: var(--pen);
  font-weight: 600;
}

/* ───────── юридические страницы ───────── */
.legal {
  max-width: 820px;
  padding-block: clamp(32px, 5vw, 64px);
  display: grid;
  gap: 14px;
}
.legal h1 {
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  margin-bottom: 8px;
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 18px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}
.legal ol,
.legal ul {
  margin: 0;
  padding-left: 1.4em;
  display: grid;
  gap: 6px;
}
.fill {
  background: var(--warn-soft);
  color: var(--warn);
  padding: 0 4px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ───────── подвал ───────── */
.site-footer {
  padding-block: 48px calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rule);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.footer-col {
  display: grid;
  gap: 8px;
  align-content: start;
}
.footer-col h4 {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.footer-col a {
  color: var(--ink-2);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--pen);
}
.footer-bottom {
  display: grid;
  gap: 10px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

/* ───────── плавающие элементы ───────── */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 10px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky-cta.show {
  transform: translateY(0);
}
.sticky-cta .btn {
  flex: 1 1 0;
  padding-inline: 12px;
}
.sticky-cta .btn:last-child {
  flex-grow: 1.4;
}
@media (max-width: 360px) {
  .sticky-cta .btn {
    font-size: var(--fs-sm);
  }
}
@media (min-width: 1000px) {
  .sticky-cta {
    display: none;
  }
}
.cookie {
  position: fixed;
  z-index: 80;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-2);
}
.cookie a {
  color: var(--marker);
}
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie .btn-ghost {
  --btn-fg: var(--paper);
  --btn-bd: color-mix(in srgb, var(--paper) 35%, transparent);
}
.toast {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-sm);
  font-weight: 500;
  box-shadow: var(--shadow-2);
  max-width: calc(100% - 32px);
}

/* ───────── 404 ───────── */
.notfound {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding-block: clamp(64px, 10vw, 140px);
  max-width: 640px;
}
.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 600;
  line-height: 1;
}

/* Одноколоночные сетки не растягиваются под содержимое: колонка всегда по ширине контейнера */
.hero-copy,
.calc-form,
.calc-block,
.gen-form,
.gen-form fieldset,
.lead-side,
.lead-card,
.lead-card form > div,
.result,
.paper-wrap,
.prose,
.aside,
.aside-card,
.section-head,
.field,
.success,
.legal,
.fact,
.step,
.plan,
.pl-item,
.trust-item,
.lights,
.footer-col {
  grid-template-columns: minmax(0, 1fr);
}

/* ───────── печать документа ───────── */
@media print {
  body.printing-doc > *:not(.print-area) {
    display: none !important;
  }
  body.printing-doc .print-area {
    display: block !important;
  }
  .print-area .paper {
    box-shadow: none;
    padding: 0;
    max-width: none;
  }
  @page {
    margin: 20mm 18mm;
  }
}
.print-area {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto;
  }
}
