/* ============================================================
   Публичная оферта — Бухарин В. А.
   ============================================================ */

:root {
  /* palette — light */
  --bg:            #f7f5f1;
  --bg-alt:        #efece5;
  --surface:       #ffffff;
  --surface-2:     #faf9f6;
  --border:        #e0dcd3;
  --border-strong: #cdc7ba;
  --text:          #1b1f27;
  --text-soft:     #414855;
  --muted:         #6b7280;
  --accent:        #1d3a5f;
  --accent-soft:   #2f5c92;
  --accent-wash:   #eaf0f7;
  --gold:          #a97c2f;
  --gold-wash:     #f7f0e2;
  --shadow-sm: 0 1px 2px rgba(20, 25, 35, .06), 0 2px 6px rgba(20, 25, 35, .04);
  --shadow-md: 0 4px 12px rgba(20, 25, 35, .07), 0 12px 32px rgba(20, 25, 35, .06);
  --shadow-lg: 0 10px 30px rgba(20, 25, 35, .10), 0 30px 60px rgba(20, 25, 35, .08);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Iowan Old Style", "Times New Roman", serif;

  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
}

[data-theme="dark"] {
  --bg:            #0d1017;
  --bg-alt:        #11151d;
  --surface:       #151a23;
  --surface-2:     #1a202b;
  --border:        #262d3a;
  --border-strong: #38414f;
  --text:          #e8ebf0;
  --text-soft:     #c2c9d4;
  --muted:         #8b95a4;
  --accent:        #7fb0e6;
  --accent-soft:   #a3c8f2;
  --accent-wash:   #182534;
  --gold:          #d5a75c;
  --gold-wash:     #241d10;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 14px rgba(0,0,0,.45);
  --shadow-lg: 0 16px 44px rgba(0,0,0,.55);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- progress bar ---------- */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  z-index: 200;
  transition: width .1s linear;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  flex: none;
}
[data-theme="dark"] .brand-mark { color: #0d1017; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text small { font-weight: 400; font-size: 12px; color: var(--muted); }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--text-soft);
  font-weight: 500;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--text); text-decoration: none; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  border-radius: 9px;
  cursor: pointer;
  flex: none;
  transition: border-color .15s, color .15s, transform .1s;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--text); }
.icon-btn:active { transform: scale(.95); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-dark-only { display: none; }
[data-theme="dark"] .theme-light-only { display: none; }
[data-theme="dark"] .theme-dark-only { display: block; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(900px 420px at 15% -10%, var(--accent-wash), transparent 65%),
    radial-gradient(700px 380px at 92% 10%, var(--gold-wash), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .28;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22a06b;
  box-shadow: 0 0 0 3px color-mix(in srgb, #22a06b 22%, transparent);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6.2vw, 66px);
  line-height: 1.06;
  letter-spacing: -.025em;
  margin: 24px 0 0;
  max-width: 16ch;
  font-weight: 700;
}
.hero .lede {
  margin: 22px 0 0;
  max-width: 62ch;
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--text-soft);
  line-height: 1.62;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.chip b { color: var(--text); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s, border-color .2s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}
[data-theme="dark"] .btn-primary { color: #0d1017; }
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head { max-width: 70ch; margin-bottom: 38px; }
.section-head .kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(27px, 3.4vw, 38px);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
}
.section-head p {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 16.5px;
}

/* ---------- documents ---------- */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.doc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.doc-card.is-featured { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.doc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-wash);
  color: var(--accent);
  margin-bottom: 20px;
}
.doc-icon svg { width: 24px; height: 24px; }
.doc-card h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  margin: 0 0 10px;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.doc-card p {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 14.8px;
  line-height: 1.6;
  flex: 1;
}
.doc-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.doc-meta .tag {
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: .03em;
}
.doc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.doc-actions .btn { padding: 11px 17px; font-size: 14px; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(202px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
  font-family: var(--font-serif);
}
[data-theme="dark"] .step::before { color: #0d1017; }
.step h4 { margin: 0 0 8px; font-size: 16.5px; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--text-soft); font-size: 14.5px; line-height: 1.6; }

/* ---------- offer layout ---------- */
.offer-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
}
.toc-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  padding-left: 13px;
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 7px 13px;
  border-left: 2px solid var(--border);
  font-size: 13.6px;
  line-height: 1.45;
  color: var(--muted);
  transition: color .15s, border-color .15s, background .15s;
}
.toc a:hover { color: var(--text); text-decoration: none; background: var(--bg-alt); }
.toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-wash);
  font-weight: 600;
}
.toc a .n {
  display: inline-block;
  min-width: 20px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.toc a.active .n { color: var(--accent); }

.offer-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 62px);
  box-shadow: var(--shadow-md);
  max-width: 78ch;
}
.offer-head {
  text-align: center;
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--border);
}
.offer-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.6vw, 34px);
  margin: 0;
  letter-spacing: .01em;
  line-height: 1.25;
}
.offer-head .sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-style: italic;
  font-family: var(--font-serif);
}

.offer-doc section { scroll-margin-top: 96px; }
.offer-doc h3 {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.2vw, 23px);
  letter-spacing: -.005em;
  line-height: 1.3;
  margin: 46px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.offer-doc section:first-of-type h3 { border-top: 0; padding-top: 0; margin-top: 0; }
.offer-doc h3 .sec-num {
  color: var(--gold);
  font-size: .82em;
  font-weight: 700;
  flex: none;
  font-variant-numeric: tabular-nums;
}

.offer-doc p {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.72;
  text-align: justify;
  hyphens: auto;
}
.offer-doc p .num {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.offer-doc p .term { color: var(--text); font-weight: 600; }

.preamble > p:first-child::first-letter {
  font-family: var(--font-serif);
  font-size: 3.1em;
  float: left;
  line-height: .86;
  padding: 4px 12px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.offer-doc ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.offer-doc ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 15.7px;
  line-height: 1.68;
}
.offer-doc ul li::before {
  content: "";
  position: absolute;
  left: 4px; top: .68em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.offer-doc ul.dash li::before {
  width: 10px; height: 2px;
  border-radius: 1px;
  top: .82em; left: 2px;
}

.callout {
  margin: 22px 0;
  padding: 20px 24px;
  background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: var(--radius-sm);
}
.callout p { margin: 0; color: var(--text); font-weight: 500; }
.callout p + p { margin-top: 10px; }

/* requisites */
.requisites {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-2);
}
.requisites dl { margin: 0; }
.req-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.req-row:last-child { border-bottom: 0; }
.req-row dt { color: var(--muted); font-size: 13.6px; padding-top: 2px; }
.req-row dd { margin: 0; color: var(--text); }
.req-row dd.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

.doc-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- contact / footer ---------- */
.cta-band {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}
/* в тёмной теме полоса тоже тёмная: на светлом фоне фирменные синие
   кнопки мессенджеров теряли контраст */
[data-theme="dark"] .cta-band {
  background: linear-gradient(160deg, #1e2b3d 0%, #141b26 100%);
  color: var(--text);
  border: 1px solid var(--border);
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.2vw, 34px);
  margin: 0 0 10px;
  letter-spacing: -.02em;
}
.cta-band p { margin: 0; opacity: .82; max-width: 52ch; font-size: 16px; }

/* приглашение написать — главная фраза блока, поэтому крупнее и с акцентом */
.cta-band .cta-lede {
  position: relative;
  margin-top: 16px;
  padding-left: 20px;
  max-width: 34ch;
  font-size: clamp(17px, 1.75vw, 20.5px);
  font-weight: 500;
  line-height: 1.52;
  letter-spacing: -.01em;
  opacity: 1;
}
/* полоса тёмная в обеих темах, поэтому золото здесь своё, светлое:
   переменная --gold в светлой теме на тёмно-синем выглядит грязной */
.cta-band .cta-lede::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  bottom: .3em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e3b97a, rgba(227, 185, 122, .15));
}
.cta-band .cta-lede mark {
  background: transparent;
  color: inherit;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 #e3b97a;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--accent);
}
[data-theme="dark"] .cta-band .btn-primary { background: #0d1017; color: var(--accent); }
.cta-band .btn-primary:hover { background: #f0f3f8; }

/* ---------- кнопки мессенджеров ---------- */
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 290px;
}

.btn-platform {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.005em;
  box-shadow: 0 2px 6px rgba(10, 20, 40, .18), 0 8px 22px rgba(10, 20, 40, .16);
  transition: transform .14s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-platform:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 4px 10px rgba(10, 20, 40, .22), 0 14px 30px rgba(10, 20, 40, .2);
}
.btn-platform:active { transform: translateY(0); }
.btn-platform:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.pf-icon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, .18);
}
.pf-icon svg { width: 20px; height: 20px; }
.pf-label { flex: 1; }
.pf-arrow {
  width: 18px;
  height: 18px;
  flex: none;
  opacity: .75;
  transition: transform .18s ease;
}
.btn-platform:hover .pf-arrow { transform: translateX(3px); }

/* фирменные цвета площадок */
.btn-telegram { background: linear-gradient(180deg, #2AABEE 0%, #229ED9 100%); }

/* Зелёный Авито (#04E061) — светлый, белый текст на нём даёт контраст 1.8:1,
   поэтому подпись тёмная: так получается 11:1. Плитка под знак белая,
   иначе разноцветные круги логотипа сливаются с фоном кнопки. */
.btn-avito {
  background: linear-gradient(180deg, #04E061 0%, #00CB55 100%);
  color: #05301b;
}
.btn-avito:hover { color: #05301b; }
.btn-avito .pf-icon { background: #fff; }
.btn-avito .pf-icon svg { width: 22px; height: 22px; }
.btn-avito:focus-visible { outline-color: #05301b; }

@media (max-width: 760px) {
  .cta-actions { min-width: 0; width: 100%; }
  /* на узком экране подписи должны умещаться в одну строку,
     иначе кнопки получаются разной высоты */
  .btn-platform { padding: 14px; gap: 12px; font-size: 15px; }
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 42px 0;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-soft); }

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.footer-phone:hover { color: var(--accent); text-decoration: none; }
.footer-phone svg { width: 15px; height: 15px; flex: none; color: var(--gold); }
/* телефон — отдельной строкой под копирайтом */
.footer-about { display: flex; flex-direction: column; align-items: flex-start; }

/* ---------- back to top ---------- */
#toTop {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 90;
}
#toTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#toTop svg { width: 19px; height: 19px; }

/* ---------- toast ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, transform .22s, visibility .22s;
  z-index: 300;
}
#toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- ссылка на фрагмент текста ---------- */
::selection {
  background: color-mix(in srgb, var(--gold) 30%, transparent);
  color: var(--text);
}

#selBar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
#selBar.show { opacity: 1; visibility: visible; transform: none; }

#selCopy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: border-color .15s, background .15s;
}
#selCopy:hover { background: var(--surface-2); border-color: var(--accent); }
#selCopy svg { width: 15px; height: 15px; flex: none; color: var(--gold); }

mark.hl-target {
  background: color-mix(in srgb, var(--gold) 30%, transparent);
  color: var(--text);          /* абзацы набраны приглушённым, подсветка — ярче */
  border-radius: 3px;
  padding: .06em 0;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 30%, transparent),
              inset 0 -1px 0 color-mix(in srgb, var(--gold) 70%, transparent);
}
mark.hl-target.hl-flash { animation: hlFlash 2.2s ease-out; }

@keyframes hlFlash {
  0%, 22%  { background: color-mix(in srgb, var(--gold) 78%, transparent); }
  100%     { background: color-mix(in srgb, var(--gold) 26%, transparent); }
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s cubic-bezier(.2,.7,.3,1), transform .55s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .offer-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc {
    position: static;
    max-height: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 20px;
  }
  .toc ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2px;
  }
  .toc a { border-left: 0; border-radius: 8px; }
  .toc a.active { border-left: 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 18px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 12px; font-size: 15.5px; }
  .brand-text small { display: none; }
  .hero { padding: 56px 0 52px; }
  .section { padding: 56px 0; }
  .req-row { grid-template-columns: 1fr; gap: 4px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .offer-doc p { text-align: left; }
  #toTop { right: 16px; bottom: 16px; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .hero-cta, .toc, #toTop, #progress, .cta-band, .site-footer,
  .doc-actions, #toast, #selBar, .section-alt .steps { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .offer-doc { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .offer-layout { display: block; }
  .offer-doc h3 { page-break-after: avoid; }
  .offer-doc p, .offer-doc li { page-break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
