:root {
  --paper: #f1eee7;
  --paper-2: #e7e3da;
  --paper-3: #fbfaf7;
  --ink: #0e0e0d;
  --ink-2: #45443f;
  --muted: #8b8880;
  --line: #d8d3c8;
  --line-2: #c9c3b6;
  --line-hard: #0e0e0d;
  --accent: #22306a;
  --accent-deep: #16204a;
  --accent-soft: rgba(34, 48, 106, 0.08);
  --clay: #d8654a;
  --f-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --f-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --sec: clamp(40px, 4.4vw, 76px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
textarea,
button {
  font: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 40px);
}

.section {
  padding: var(--sec) 0;
}

.section--tight {
  padding: calc(var(--sec) * 0.5) 0;
}

.bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ── ТИПОГРАФИКА: крупный формат ── */
.dsp {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.h1 {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  font-size: clamp(38px, 7vw, 100px);
}

.h2 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.96;
  font-size: clamp(30px, 5vw, 72px);
}

.h3 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(20px, 2.3vw, 30px);
}

.h4 {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.4;
  color: var(--ink-2);
  letter-spacing: -0.015em;
}

.prose {
  max-width: 660px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.prose + .prose {
  margin-top: 16px;
}

.lbl {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.mono {
  font-family: var(--f-mono);
}

.nowrap {
  white-space: nowrap;
}

/* ссылка внутри заголовка */
.ilink {
  color: var(--accent);
  text-decoration: none;
  box-shadow: inset 0 -0.09em 0 var(--accent);
  transition: 0.15s;
}

.ilink:hover {
  background: var(--accent);
  color: var(--paper);
  box-shadow: none;
}

/* SEO-зоны */
.seo {
  padding: calc(var(--sec) * 0.5) 0;
}

.seo .prose {
  border-left: 2px solid var(--line-hard);
  padding-left: 26px;
  color: var(--ink-2);
  max-width: 900px;
  font-size: clamp(17px, 1.35vw, 19.5px);
  line-height: 1.55;
}

/* ── ХЕДЕР ── */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1.5px solid var(--line-hard);
}

.hdr-in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 70px;
}

.logo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.05em;
}

.logo sup {
  color: var(--accent);
  font-size: 0.5em;
  vertical-align: super;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: 14px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

.nav a:hover,
.nav a.is-active {
  color: var(--accent);
}

.hdr-r {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.hdr-phone {
  font-family: var(--f-mono);
  font-size: 14px;
  white-space: nowrap;
}

/* ── КНОПКИ: острые углы, толстая рамка ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line-hard);
  background: transparent;
  color: var(--ink);
  padding: 13px 24px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: 0.16s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn--acc {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--acc:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn--lg {
  padding: 18px 28px;
  min-height: 58px;
  font-size: 16px;
}

.btn .plus {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
}

.btn--inv {
  border-color: var(--paper);
  color: var(--paper);
}

.btn--inv:hover {
  background: var(--paper);
  color: var(--ink);
}

/* ── ГЕРОЙ ── */
.hero {
  padding: clamp(24px, 3vw, 48px) 0 0;
}

.hero .h1 {
  margin: 22px 0 0;
  max-width: 16ch;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.years {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.hero-band {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  border-top: 1.5px solid var(--line-hard);
  margin-top: clamp(26px, 3vw, 44px);
  padding-top: clamp(22px, 2.4vw, 32px);
}

.hero-band .lead {
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.45;
  max-width: 32ch;
}

.hero-band .stat {
  border-top: none;
  padding-top: 0;
  text-align: right;
}

.hero-band .stat .num {
  font-size: clamp(52px, 6.4vw, 104px);
}

.hero-band .stat .cap {
  margin-left: auto;
}

.hero-cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* строка-форма */
.herocard {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 1px 0 rgba(14, 14, 13, 0.04);
  padding: clamp(22px, 2.4vw, 32px);
  margin-top: clamp(26px, 2.8vw, 40px);
  position: relative;
}

.herocard::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.herocard .cardcap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.herocard .cardcap .t {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.herocard .cardcap .s {
  font-size: 14px;
  color: var(--muted);
}

.heroform {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: clamp(14px, 1.6vw, 22px);
  align-items: end;
}

.heroform .field {
  margin: 0;
}

.herocard .heroform .field input {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16.5px;
}

.herocard .heroform .field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.herocard .heroform .field label {
  margin-bottom: 8px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-trust .tl {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-trust .exp {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.hero-trust .exp .n {
  font-size: 14px;
  font-weight: 600;
}

.hero-trust .exp .r {
  font-size: 12.5px;
  color: var(--muted);
}

.hero-consent {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}

.hero-consent a {
  color: var(--accent);
  text-decoration: underline;
}

/* Большое число как контент */
.stat {
  border-top: 1.5px solid var(--line-hard);
  padding-top: 18px;
}

.stat .num {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  font-size: clamp(56px, 8vw, 124px);
}

.stat .cap {
  font-size: 16px;
  color: var(--ink-2);
  margin-top: 14px;
  max-width: 22ch;
}

.stat--acc .num {
  color: var(--accent);
}

/* ── БЕГУЩАЯ СТРОКА ── */
.marquee {
  overflow: hidden;
  border-top: 1.5px solid var(--line-hard);
  border-bottom: 1.5px solid var(--line-hard);
  padding: 22px 0;
  background: var(--paper);
  margin: clamp(40px, 5vw, 80px) 0;
}

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: run 34s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes run {
  to {
    transform: translateX(-50%);
  }
}

.marquee span {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(18px, 2.1vw, 30px);
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
}

.marquee em {
  font-style: normal;
  color: var(--accent);
  font-size: 0.7em;
}

/* ── ЗАГОЛОВОК СЕКЦИИ: индекс контуром ── */
.shead {
  border-top: 1.5px solid var(--line-hard);
  padding-top: 14px;
  margin-bottom: clamp(20px, 2.4vw, 34px);
}

.shead .top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.shead .idx {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.14em;
}

.shead .idx::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 12px;
}

.shead p {
  margin-top: 14px;
  max-width: 640px;
  color: var(--ink-2);
  font-size: 17px;
}

/* ── КРУПНЫЕ СТРОКИ-ССЫЛКИ ── */
.rows {
  border-top: 1.5px solid var(--line-hard);
}

.row {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: clamp(12px, 2vw, 32px);
  align-items: center;
  padding: clamp(18px, 2.2vw, 30px) 0;
  border-bottom: 1px solid var(--line);
  transition: 0.18s ease;
  position: relative;
}

.row .n {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.row .t {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(20px, 2.6vw, 38px);
}

.row .d {
  font-size: 15px;
  color: var(--muted);
  max-width: 36ch;
  justify-self: end;
  text-align: right;
  line-height: 1.4;
}

.rows--reveal .row {
  grid-template-columns: 76px 1fr;
  row-gap: 0;
}

.rows--reveal .row .n {
  grid-row: 1/3;
}

.rows--reveal .row .t {
  grid-column: 2;
  grid-row: 1;
}

.rows--reveal .row .d {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  text-align: left;
  max-width: 60ch;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  margin-top: 0;
  transition:
    max-height 0.32s ease,
    opacity 0.26s ease,
    transform 0.32s ease,
    margin-top 0.32s ease;
}

@media (hover: hover) {
  .rows--reveal .row:hover .d {
    max-height: 200px;
    opacity: 1;
    transform: none;
    margin-top: 10px;
  }

  .rows--reveal .row:hover .t {
    color: var(--accent);
  }

  .rows--reveal .row:hover {
    border-bottom-color: var(--accent);
  }
}

@media (hover: none) {
  .rows--reveal .row .d {
    max-height: 200px;
    opacity: 1;
    transform: none;
    margin-top: 10px;
  }
}

.row .go {
  font-size: 26px;
  line-height: 1;
  color: var(--line);
  transition: 0.18s;
  justify-self: end;
}

a.row:hover {
  border-bottom-color: var(--accent);
}

a.row:hover .t {
  color: var(--accent);
  transform: translateX(10px);
}

a.row .t {
  transition: 0.18s;
}

a.row:hover .go {
  color: var(--accent);
  transform: translateX(8px);
}

.row--plain .go {
  display: none;
}

/* ── ПОЛОСА ЦВЕТА (акцентный блок) ── */
.band {
  background: var(--accent);
  color: #fff;
  padding: clamp(40px, 5vw, 72px) 0;
}

.band .lbl {
  color: rgba(255, 255, 255, 0.6);
}

.band-in {
  display: block;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
}

.band .specs {
  display: flex;
  gap: clamp(24px, 4vw, 64px);
  flex-wrap: wrap;
  margin-top: clamp(26px, 3vw, 40px);
  padding-top: clamp(20px, 2.2vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.price {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  font-size: clamp(52px, 11vw, 150px);
  white-space: nowrap;
}

.price-sub {
  margin-top: 16px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
}

.specs {
  display: flex;
  gap: clamp(20px, 3vw, 52px);
  flex-wrap: wrap;
}

.spec .k {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.spec .v {
  font-size: 19px;
  font-weight: 600;
}

/* ── ТЁМНАЯ ПОЛОСА (риски) ── */
.dark {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(36px, 4.4vw, 64px) 0;
}

.dark .lbl {
  color: var(--muted);
}

.dark .h2 {
  color: var(--paper);
}

.dark .risk {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.dark .risk .n {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--clay);
  letter-spacing: 0.1em;
}

.dark .risk .t {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.dark .risk p {
  color: #a8a69e;
  font-size: 16px;
  max-width: 60ch;
}

/* ── ЭТАПЫ: гигантские номера ── */
.steps {
  border-top: 1.5px solid var(--line-hard);
}

.step {
  display: grid;
  grid-template-columns: clamp(80px, 11vw, 180px) 1fr;
  gap: clamp(16px, 3vw, 48px);
  padding: clamp(20px, 2.4vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.step .n {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}

.step--last .n {
  -webkit-text-stroke: 0;
  color: var(--accent);
}

.step .t {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 30px);
  letter-spacing: -0.03em;
}

.step p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 8px;
  max-width: 52ch;
}

/* ── ТЕГИ ── */
.whofits {
  font-size: clamp(20px, 2.1vw, 32px);
  line-height: 1.32;
  letter-spacing: -0.022em;
  color: var(--ink);
  max-width: min(94%, 1000px);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  border: 1.5px solid var(--line-hard);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.15s;
}

a.tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── ФОРМА ── */
.form {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-3);
  padding: clamp(24px, 2.4vw, 34px);
}

.form .h3 {
  margin-bottom: 10px;
}

.form .sub {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 22px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 22px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line-hard);
  border-radius: 0;
  padding: 12px 2px;
  font-size: 17px;
  min-height: 48px;
  color: var(--ink);
}

.field textarea {
  min-height: 80px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.alt {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.alt .phone {
  font-family: var(--f-mono);
  font-weight: 600;
  color: var(--ink);
}

.chip {
  border: 1.5px solid var(--line-hard);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
}

.chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.expert {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: center;
}

.ava {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line-hard);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 800;
  flex: none;
}

.expert .n {
  font-size: 14.5px;
  font-weight: 600;
}

.expert .r {
  font-size: 13px;
  color: var(--muted);
}

.consent {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.consent a {
  color: var(--accent);
  text-decoration: underline;
}

/* ── РЕЕСТР ── */
.defs {
  border-top: 1.5px solid var(--line-hard);
}

.def {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.def dt {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.def dd {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(18px, 1.9vw, 26px);
  letter-spacing: -0.03em;
}

/* ── ТАБЛИЦА ── */
.tscroll {
  overflow-x: auto;
}

table.tar {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

table.tar th,
table.tar td {
  text-align: left;
  padding: 20px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

table.tar thead th {
  border-bottom: 1.5px solid var(--line-hard);
  vertical-align: bottom;
}

table.tar thead .cap {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}

table.tar thead .p {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

table.tar th:first-child {
  width: 36%;
}

table.tar td.c {
  text-align: center;
  font-size: 18px;
}

table.tar td.yes {
  color: var(--accent);
  font-weight: 700;
}

table.tar td.no {
  color: var(--line);
}

table.tar .best {
  background: rgba(27, 43, 235, 0.055);
}

table.tar tbody tr:last-child td {
  border-bottom: none;
}

/* ── FAQ ── */
.faq {
  border-top: 1.5px solid var(--line-hard);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: clamp(20px, 2.2vw, 30px) 0;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.1;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 26px;
  color: var(--muted);
  flex: none;
  transition: 0.2s;
  line-height: 1;
}

.faq details[open] summary {
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "–";
  color: var(--accent);
}

.faq .a {
  padding: 0 0 28px;
  max-width: 660px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}

/* ── ФУТЕР ── */
.ftr {
  background: var(--ink);
  color: #a8a69e;
  padding: clamp(48px, 6vw, 90px) 0 32px;
  margin-top: var(--sec);
}

.ftr .big {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.88;
  font-size: clamp(40px, 7.5vw, 104px);
  color: var(--paper);
  margin-bottom: 26px;
}

.ftr-top {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.ftr .big {
  margin-bottom: 0;
}

.ftr-form {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.ftr-form input {
  flex: 1 1 240px;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 17px;
  padding: 13px 2px;
  min-height: 48px;
}

.ftr-form input::placeholder {
  color: var(--muted);
}

.ftr-form input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.ftr-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.ftr p {
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 320px;
}

.ftr h4 {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 400;
}

.ftr-col a {
  display: block;
  font-size: 15px;
  color: var(--paper);
  margin-bottom: 10px;
}

.ftr-col a:hover {
  color: var(--accent);
}

.ftr-phone {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--f-mono);
  color: var(--paper);
  font-size: 15px;
}

.ftr-bot {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

/* ── КРОШКИ ── */
.crumbs {
  padding: 22px 0 0;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.crumbs a:hover {
  color: var(--accent);
}

.crumbs .sep {
  margin: 0 8px;
  color: var(--line);
}

/* ── АДАПТИВ ── */
@media (max-width: 1024px) {
  .hero-band {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .hero-band .stat {
    text-align: left;
  }

  .hero-band .stat .cap {
    margin-left: 0;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .heroform {
    grid-template-columns: 1fr;
  }

  .heroform .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust .exp {
    margin-left: 0;
  }

  .ftr-top {
    grid-template-columns: 1fr;
  }

  .band-in {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .ftr-grid {
    grid-template-columns: 1fr 1fr;
  }

  .def {
    grid-template-columns: 200px 1fr;
  }
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .row {
    grid-template-columns: 44px 1fr auto;
    row-gap: 8px;
  }

  .row .d {
    grid-column: 2/4;
    justify-self: start;
    text-align: left;
    max-width: none;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .step .n {
    font-size: clamp(38px, 13vw, 64px);
  }

  .shead {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .def {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .dark .risk {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .hdr-cta .txt {
    display: none;
  }

  .hdr-cta::after {
    content: "Заявка";
  }

  .hdr-cta {
    padding: 12px 16px;
  }

  .hdr-in {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hdr-phone {
    display: none;
  }

  .ftr-grid {
    grid-template-columns: 1fr;
  }

  .specs {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

.marquee-track em {
  font-style: normal;
  color: var(--muted);
  margin: 0 0.55em;
  font-family: var(--f-mono);
}

/* Shared utility classes extracted from inline page styles */
.band-in--split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.band--spaced {
  margin-top: clamp(32px, 3.4vw, 56px);
}

.band-title {
  margin-top: 20px;
  max-width: 20ch;
}

.band-cta {
  margin-top: 8px;
}

.dark-title {
  margin: 18px 0 40px;
}

.dark-title--narrow {
  max-width: 16ch;
}

.hero-band--single {
  grid-template-columns: 1fr;
}

.wrap--form {
  max-width: 640px;
}

.tags--spaced {
  margin-top: 18px;
}

.tags--block-gap {
  margin-bottom: 36px;
}

.prose--statement {
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.45;
  max-width: 840px;
  color: var(--ink);
}

.prose--note {
  margin-top: 18px;
  border-left: 2px solid var(--line-hard);
  padding-left: 24px;
}

.tick {
  font-family: var(--f-mono);
  font-style: normal;
  color: var(--ink);
}

.map-placeholder {
  border: 1.5px dashed var(--line-hard);
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
}

.ftr-form .ftr-form__control {
  flex: 1 1 100%;
}

.ftr-form .ftr-form__button {
  flex: 1 1 100%;
  justify-content: center;
}

.page-note {
  padding-top: 14px;
  padding-bottom: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* Component-library demo helpers */
.demo-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.demo-swatch {
  height: 88px;
  border: 1.5px solid var(--line-hard);
}

.demo-swatch--paper {
  background: #f1eee7;
}

.demo-swatch--paper-3 {
  background: #fbfaf7;
}

.demo-swatch--ink {
  background: #0e0e0d;
}

.demo-swatch--ink-2 {
  background: #45443f;
}

.demo-swatch--muted {
  background: #8b8880;
}

.demo-swatch--line {
  background: #d8d3c8;
}

.demo-swatch--accent {
  background: #1b2beb;
}

.demo-swatch--clay {
  background: #c2472e;
}

.demo-token-title {
  margin-top: 10px;
  font-weight: 700;
  font-size: 14px;
}

.demo-token-code {
  font-size: 11px;
  color: var(--muted);
}

.demo-type-scale {
  border-top: 1.5px solid var(--line-hard);
  padding-top: 28px;
}

.demo-type-caption {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 36px;
}

.demo-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.demo-form-wrap {
  max-width: 560px;
}

/* ==========================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   Добавлено 22.07.2026. Держать в конце файла — правила
   перебивают базовые за счёт порядка следования.
   ========================================================== */

/* --- Базовое --- */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  max-width: 100%;
}

/* Фикс отрисовки липкой шапки в iOS Safari */
.hdr {
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* --- Шапка: кнопка не обрезается --- */
@media (max-width: 900px) {
  .hdr-in {
    gap: 12px;
    min-height: 60px;
    flex-wrap: nowrap;
  }

  .logo {
    min-width: 0;
    font-size: 16px;
    line-height: 1.12;
    letter-spacing: -0.04em;
  }

  .hdr-r {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 10px;
  }

  .hdr-r .btn,
  .hdr-cta {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 400px) {
  .wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .logo {
    font-size: 13.5px;
  }

  .hdr-in {
    gap: 8px;
  }

  .hdr .btn,
  .hdr-cta {
    padding: 9px 14px;
    min-height: 40px;
    font-size: 13.5px;
    gap: 6px;
  }
}

/* --- Ничто не вылезает за экран --- */
@media (max-width: 900px) {
  .wrap > *,
  .hdr-in > *,
  .row > *,
  .step > *,
  .hero-band > *,
  .band-in > *,
  .band-in--split > *,
  .price-row > *,
  .specs > *,
  .spec > *,
  .hero-trust > *,
  .heroform > *,
  .herocard > *,
  .shead > *,
  .shead .top > *,
  .dark .risk > *,
  .def > *,
  .form > *,
  .alt > *,
  .expert > *,
  .trust > *,
  .ftr-top > *,
  .ftr-grid > *,
  .ftr-form > *,
  .ftr-bot > *,
  .tags > *,
  .faq summary > * {
    min-width: 0;
  }

  .price {
    white-space: normal;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  li,
  dt,
  dd,
  a,
  summary,
  label,
  .h1,
  .h2,
  .h3,
  .h4,
  .dsp,
  .lead,
  .prose,
  .price,
  .logo,
  .row .t,
  .row .d,
  .step .t,
  .whofits,
  .ftr .big,
  .stat .num,
  .stat .cap,
  .def dd,
  .dark .risk .t,
  .expert .n,
  .alt .phone,
  .spec .v {
    overflow-wrap: break-word;
    word-break: normal;
  }

  img,
  svg,
  video,
  canvas {
    max-width: 100%;
    height: auto;
  }

  iframe {
    max-width: 100%;
  }

  .bleed {
    max-width: 100vw;
    overflow-x: clip;
  }

  .btn {
    max-width: 100%;
    min-width: 0;
  }
}

/* --- Мобильная типографика: снимаем десктопные «полы» clamp() --- */
@media (max-width: 560px) {
  .h1 {
    font-size: clamp(24px, 7.5vw, 34px);
  }

  .h2 {
    font-size: clamp(21px, 6.5vw, 28px);
  }

  .h3 {
    font-size: clamp(17px, 5vw, 22px);
  }

  .h4 {
    font-size: 16px;
  }

  .lead {
    font-size: clamp(16px, 4.4vw, 19px);
  }

  .hero-band .lead {
    font-size: clamp(17px, 4.8vw, 21px);
  }

  .prose {
    font-size: 16px;
  }

  .prose--statement {
    font-size: clamp(16px, 4.5vw, 21px);
  }

  .price {
    font-size: clamp(28px, 10vw, 44px);
    line-height: 0.95;
  }

  .stat .num {
    font-size: clamp(34px, 12vw, 56px);
  }

  .hero-band .stat .num {
    font-size: clamp(34px, 12vw, 56px);
  }

  .step .n {
    font-size: clamp(28px, 10vw, 48px);
  }

  .ftr .big {
    font-size: clamp(26px, 8.5vw, 40px);
  }

  .row .t {
    font-size: clamp(17px, 5vw, 24px);
  }

  .step .t {
    font-size: clamp(17px, 5vw, 22px);
  }

  .faq summary {
    font-size: clamp(16px, 4.8vw, 20px);
    line-height: 1.25;
  }

  .def dd {
    font-size: clamp(16px, 4.6vw, 20px);
  }

  .dark .risk .t {
    font-size: clamp(16px, 4.8vw, 21px);
  }

  .whofits {
    font-size: clamp(17px, 5vw, 24px);
    line-height: 1.35;
  }

  .marquee span {
    font-size: clamp(15px, 4.4vw, 20px);
  }

  table.tar thead .p {
    font-size: clamp(17px, 5vw, 22px);
  }
}

/* --- Раскрывающиеся описания: видимы и не обрезаны --- */
@media (max-width: 900px) {
  .rows--reveal .row .d {
    max-height: none !important;
    overflow: visible !important;
    opacity: 1 !important;
    transform: none !important;
    margin-top: 8px !important;
    transition: none !important;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
  }
}

@media (max-width: 640px) {
  .rows--reveal .row {
    grid-template-columns: 1fr;
    row-gap: 2px;
    padding: 18px 0;
  }

  .rows--reveal .row .n {
    grid-row: auto;
    grid-column: 1;
    margin-bottom: 6px;
  }

  .rows--reveal .row .t {
    grid-row: auto;
    grid-column: 1;
  }

  .rows--reveal .row .d {
    grid-row: auto;
    grid-column: 1;
    max-width: none;
  }
}

/* --- Блоки: воздух и раскладка --- */
@media (max-width: 820px) {
  .price-row {
    align-items: flex-start;
    gap: 20px;
  }

  .specs,
  .band .specs {
    gap: 18px 26px;
  }

  .spec {
    min-width: 130px;
  }

  .herocard {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .herocard::before {
    top: 16px;
    bottom: 16px;
  }

  .hero-trust {
    gap: 14px;
  }

  .hero-trust .exp {
    margin-left: 0;
  }

  .form {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .def {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .faq summary {
    gap: 12px;
  }

  .seo .prose,
  .prose--note {
    padding-left: 16px;
  }

  .map-placeholder {
    height: 240px;
  }

  .tscroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .marquee {
    padding: 16px 0;
  }

  .marquee-track {
    gap: 32px;
  }

  .ftr-form input {
    flex: 1 1 100%;
  }

  .ftr-form .btn {
    width: 100%;
    justify-content: center;
  }

  .ftr-bot {
    gap: 10px;
  }
}

/* --- Формы: без автозума на iPhone (минимум 16px) --- */
@media (max-width: 900px) {
  .field input,
  .field textarea,
  .herocard .heroform .field input,
  .ftr-form input {
    font-size: 16px;
  }

  .heroform {
    grid-template-columns: 1fr;
  }

  .heroform .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Блок «Или позвоните»: номер строкой, мессенджеры под ним --- */
@media (max-width: 640px) {
  .alt {
    row-gap: 14px;
    column-gap: 10px;
    align-items: center;
  }

  .alt > .phone,
  .alt > *:has(.phone) {
    flex: 1 0 100% !important;
    font-size: 17px;
    letter-spacing: -0.01em;
  }

  .alt .chip {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
  }
}

/* Исправление сгенерированных страниц услуг */
.single-post main:has(.aisw-page) > .hero:first-child {
  display: none;
}

.single-post main:has(.aisw-page) > .section {
  padding: 0;
}

.single-post main:has(.aisw-page) > .section > .wrap {
  width: 100%;
  max-width: none;
  padding: 0;
}

.single-post .prose:has(.aisw-page) {
  width: 100%;
  max-width: none;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.single-post .aisw-page .band,
.single-post .aisw-page .dark {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Подзаголовок растянут до блока с цифрой */
.aisw-page .hero-band {
  grid-template-columns: minmax(0, 1fr) max-content !important;
  column-gap: clamp(32px, 4vw, 64px);
  align-items: center;
}

.aisw-page .hero-band .lead {
  width: 100% !important;
  max-width: none !important;
}

.aisw-page .hero-band .stat {
  width: max-content;
  min-width: 120px;
  justify-self: end;
}
@media (max-width: 1024px) {
  .aisw-page .hero-band {
    grid-template-columns: 1fr !important;
  }

  .aisw-page .hero-band .stat {
    justify-self: start;
    text-align: left;
  }
}
grid-template-columns: minmax(0, 1fr) max-content;