/* Reprice — основные стили */

:root {
  --bg: #f2f4f8;
  --paper: #ffffff;
  --ink: #0d1526;
  --ink-2: #3a4357;
  --muted: #6b7489;
  --line: #dde2ec;
  --line-2: #eaedf3;
  --forest: #0b1736;
  --forest-2: #13224a;
  --forest-3: #1d3166;
  --lime: #3a62c4;
  --lime-dark: #2f52a8;
  --sky: #a3b6d9;
  --link: #2d55b5;
  --green: #138a55;
  --red: #e0442f;
  --radius: 12px;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .75, .2, 1);
}

/* переход между страницами: только мягкое затухание, без сдвигов; шапки остаются на месте */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; animation-timing-function: ease; }
::view-transition-old(root) { animation-name: vt-fade-out; }
::view-transition-new(root) { animation-name: vt-fade-in; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
header.site { view-transition-name: hdr-site; }
.cab-head { view-transition-name: hdr-cab; }
.doc-nav { view-transition-name: doc-nav; }
::view-transition-group(hdr-site), ::view-transition-group(hdr-cab), ::view-transition-group(doc-nav) { animation: none; }
@keyframes fadeIn { from { opacity: 0; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.025em; }
p { margin: 0 0 1em; }
.num { font-variant-numeric: tabular-nums; }
::selection { background: var(--lime); color: #fff; }

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

.hl {
  background: var(--lime);
  color: #fff;
  padding: 0 .18em;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* полоса прогресса прокрутки */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(0); z-index: 50; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--lime); color: #fff; }
.btn-primary:hover { background: var(--lime-dark); transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(47, 82, 168, .4); }
.btn-primary::after { content: "→"; transition: transform .2s var(--ease); }
.btn-primary:hover::after { transform: translateX(3px); }
.btn-small::after, .btn-noarrow::after { content: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(15, 26, 23, .25); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-3); transform: translateY(-2px); }
.btn-small { padding: 9px 16px; font-size: 14px; }

/* ---------- шапка ---------- */
.top-note {
  background: var(--forest);
  color: #aab6d0;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.top-note a { color: #fff; font-weight: 500; }

header.site {
  background: rgba(11, 23, 54, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  position: sticky; top: 0; z-index: 30;
  transition: box-shadow .3s, background .3s;
}
header.site.scrolled { background: rgba(11, 23, 54, .97); box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .5); }
header.site .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
header.site .logo { color: #fff; }
.logo:hover { text-decoration: none; }
.logo svg { flex: none; transition: transform .4s var(--ease); }
.logo:hover svg { transform: rotate(-8deg) scale(1.06); }
nav.main { display: flex; gap: 4px; font-size: 15px; }
nav.main a { color: #b9c4dc; padding: 7px 12px; border-radius: 999px; transition: background .2s, color .2s; }
nav.main a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
header.site .right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
header.site .phone { color: #fff; font-weight: 600; }
header.site .login-link { color: #b9c4dc; }
header.site .login-link:hover { color: #fff; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: #fff; }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
header.site.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.site.open .burger span:nth-child(2) { opacity: 0; }
header.site.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- первый экран ---------- */
.hero {
  background-color: var(--forest);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  color: #fff;
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: 54px; line-height: 1.05; margin-bottom: 24px; letter-spacing: -0.035em; }
.hero .lead { font-size: 19px; color: #aab6d0; max-width: 520px; }
.hero .actions { display: flex; gap: 12px; margin: 32px 0 14px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero .btn-ghost:hover { background: #fff; color: var(--forest); border-color: #fff; }
.hero .small { font-size: 13px; color: #7f8cab; }
.hero ul.facts { list-style: none; padding: 28px 0 0; margin: 40px 0 0; display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero ul.facts b { display: block; font-size: 30px; letter-spacing: -0.03em; color: var(--sky); }
.hero ul.facts span { font-size: 13px; color: #7f8cab; }

/* макет интерфейса */
.mock {
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  font-size: 13px;
  overflow: hidden;
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transition: transform .8s var(--ease);
}
.mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); background: #f7f8fb; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9dee8; }
.mock-bar span { margin-left: 10px; color: var(--muted); font-size: 12px; }
.mock-head { padding: 16px 18px 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mock-head b { font-size: 14px; }
.mock-head small { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.mock-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(19, 138, 85, .5); } 70% { box-shadow: 0 0 0 7px rgba(19, 138, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(19, 138, 85, 0); } }
.mock table { width: 100%; border-collapse: collapse; }
.mock th, .mock td { padding: 9px 18px; text-align: left; border-top: 1px solid var(--line-2); white-space: nowrap; transition: background .6s; }
.mock th { font-weight: 500; color: var(--muted); font-size: 12px; }
.mock td.r, .mock th.r { text-align: right; }
.mock tr.me td { background: #eef3ff; }
.mock tr.flash td { background: #fff3d6; }
.mock td .tick { display: inline-block; animation: tick .5s var(--ease); }
@keyframes tick { from { transform: translateY(-60%); opacity: 0; } }
.src { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); margin-right: 6px; }
.src.wb { border-color: #d7b6e3; color: #7a2f99; background: #faf3fd; }
.src.oz { border-color: #b3c7f0; color: #1f4fbf; background: #f3f6fe; }
.src.ym { border-color: #ecd99a; color: #7e6200; background: #fffbea; }
.src.site { border-color: #a8d8bd; color: #11704a; background: #f0faf4; }
.up { color: var(--red); }
.down { color: var(--green); }
.mock-foot { padding: 14px 18px; border-top: 1px solid var(--line-2); background: var(--forest); color: #aab6d0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mock-foot .rule { color: #aab6d0; }
.mock-foot .new { margin-left: 4px; font-weight: 700; color: #fff; background: var(--lime); padding: 3px 9px; border-radius: 999px; display: inline-block; }
.mock-foot .new.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.15); } }
.mock-note { font-size: 12px; color: #7f8cab; margin-top: 18px; padding-left: 4px; }

/* ---------- площадки (бегущая строка) ---------- */
.platforms { padding: 36px 0 44px; border-bottom: 1px solid var(--line); }
.platforms p { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .chips { flex-wrap: nowrap; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .chips { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip { border: 1px solid var(--line); background: var(--paper); padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.chip.ours { border-color: var(--forest); background: var(--forest); color: #fff; font-weight: 600; }
.chip.ours::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); margin-right: 8px; vertical-align: middle; }

/* ---------- секции ---------- */
section.block { padding: 96px 0; border-top: 1px solid var(--line); scroll-margin-top: 68px; }
section.block.white { background: var(--paper); }
section.block.dark { background: var(--forest); color: #fff; border-top: 0; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--link);
  background: rgba(58, 98, 196, .1);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--link); }
.dark .kicker { background: rgba(163, 182, 217, .12); color: var(--sky); }
.dark .kicker::before { background: var(--sky); }
.sec-head h2 { font-size: 42px; line-height: 1.08; margin-bottom: 16px; }
.sec-head p { color: var(--ink-2); font-size: 18px; }
.dark .sec-head p { color: #aab6d0; }

/* преимущество: сайты */
.sites { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.sites h2 { font-size: 42px; line-height: 1.08; margin-bottom: 20px; }
.sites .text p { font-size: 17px; color: var(--ink-2); }
.sites ol { list-style: none; padding: 0; margin: 24px 0; counter-reset: s; }
.sites ol li { counter-increment: s; position: relative; padding: 0 0 14px 44px; margin-bottom: 4px; }
.sites ol li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--forest); color: var(--sky); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { background: #f7f8fb; font-size: 13px; color: var(--muted); font-weight: 500; }
.cmp thead th.us { color: var(--sky); font-weight: 700; background: var(--forest); }
.cmp td.us { background: #eef3ff; font-weight: 600; color: var(--forest); }
.cmp td.us::before { content: "✓ "; color: var(--green); }
.cmp .no { color: var(--muted); }
.cmp tbody tr { transition: background .2s; }
.cmp tbody tr:hover td:not(.us) { background: #f8f9fc; }
.cmp-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* свой сайт vs маркетплейс */
.own { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.own h2 { font-size: 42px; line-height: 1.08; margin-bottom: 20px; }
.own .text p { font-size: 17px; color: var(--ink-2); }
.calc { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -35px rgba(11, 23, 54, .45); overflow: hidden; }
.calc-head { padding: 16px 20px; font-weight: 600; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.calc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.calc th, .calc td { padding: 12px 20px; border-bottom: 1px solid var(--line-2); text-align: left; }
.calc th { font-size: 13px; color: var(--muted); font-weight: 500; }
.calc th.us { color: var(--forest); font-weight: 700; }
.calc .r { text-align: right; white-space: nowrap; }
.calc .us { background: #eef3ff; }
.calc .minus { color: var(--red); }
.calc tr.total td { font-weight: 700; font-size: 18px; border-bottom: 0; border-top: 2px solid var(--forest); }
.calc-foot { padding: 16px 20px; background: var(--forest); color: #aab6d0; font-size: 15px; }
.calc-foot b { color: #fff; }
.calc-foot b.plus { color: #fff; background: var(--lime); padding: 1px 8px; border-radius: 999px; }
.own-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.own-points > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .3s var(--ease), box-shadow .3s; }
.own-points > div:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -25px rgba(11, 23, 54, .4); }
.own-points h3 { font-size: 18px; margin-bottom: 8px; }
.own-points p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* как работает */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.step { padding: 28px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); position: relative; transition: transform .3s var(--ease), border-color .3s; }
.step:hover { transform: translateY(-4px); border-color: var(--forest); }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; margin-bottom: 26px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 47px; left: 76px; right: -16px; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* возможности */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid transparent; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.feature:hover { background: var(--paper); border-color: var(--line); transform: translateY(-3px); }
.feature h3 { font-size: 18px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; }
.feature h3 svg { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--forest); stroke: var(--sky); transition: transform .4s var(--ease); }
.feature:hover h3 svg { transform: rotate(-8deg); }
.feature p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* стратегии */
.strategies { display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
.strategies .tabs { display: flex; flex-direction: column; gap: 6px; }
.strategies .tabs button {
  display: block; width: 100%; text-align: left; padding: 16px 20px; background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius);
  font: inherit; font-size: 15px; cursor: pointer; color: #aab6d0; transition: background .25s, color .25s, border-color .25s;
}
.strategies .tabs button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.strategies .tabs button.active { background: var(--lime); color: #fff; font-weight: 600; border-color: var(--sky); }
.strategies .panes { background: var(--paper); color: var(--ink); border-radius: 16px; min-height: 290px; }
.strategies .pane { padding: 34px 38px; display: none; }
.strategies .pane.active { display: block; animation: paneIn .45s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } }
.strategies .pane h3 { font-size: 24px; margin-bottom: 10px; }
.strategies .pane p { color: var(--ink-2); }
.rule-box { margin-top: 20px; border-radius: 10px; padding: 18px 20px; font-size: 14px; background: var(--forest); color: #aab6d0; }
.rule-box code { font-family: "JetBrains Mono", Menlo, Consolas, monospace; font-size: 13px; background: rgba(163, 182, 217, .14); color: var(--sky); padding: 2px 7px; border-radius: 5px; }
.rule-box div + div { margin-top: 8px; }

/* отзывы */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.quote { background: var(--bg); padding: 28px; border-radius: 16px; display: flex; flex-direction: column; transition: transform .3s var(--ease); }
.quote:hover { transform: translateY(-4px); }
.quote::before { content: "“"; font-size: 64px; line-height: .6; height: 26px; color: var(--lime-dark); font-weight: 800; }
.quote p { font-size: 15px; flex: 1; }
.quote.big { background: var(--forest); color: #fff; }
.quote.big p { font-size: 19px; }
.quote.big .who small { color: #7f8cab; }
.quote.big .ava { background: var(--lime); color: #fff; }
.quote .who { display: flex; gap: 12px; align-items: center; margin-top: 10px; font-size: 14px; }
.quote .ava { width: 42px; height: 42px; border-radius: 50%; background: #dfe4ee; display: grid; place-items: center; font-weight: 700; color: var(--ink-2); flex: none; }
.quote .who small { display: block; color: var(--muted); }

/* тарифы */
.period { display: inline-flex; position: relative; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 32px; background: var(--paper); }
.period .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--forest); transition: transform .35s var(--ease), width .35s var(--ease); }
.period button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 18px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink-2); border-radius: 999px; transition: color .3s; }
.period button.active { color: #fff; }
.period small { color: var(--green); font-weight: 700; }
.period button.active small { color: var(--sky); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(11, 23, 54, .45); }
.plan.main { background: var(--forest); color: #fff; border-color: var(--forest); position: relative; }
.plan.main .tag { position: absolute; top: 24px; right: 24px; background: var(--lime); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.plan.main .for { color: #7f8cab; }
.plan .price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.plan .price span { display: inline-block; }
.plan .price span.swap { animation: tick .45s var(--ease); }
.plan .price small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan.main .price small { color: #7f8cab; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; font-size: 15px; flex: 1; }
.plan li { padding: 8px 0 8px 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.plan.main li::before { border-color: var(--sky); }
.plan li.off { color: #a3aab8; text-decoration: line-through; }
.plan li.off::before { border: 0; height: 2px; background: #c9cfdb; transform: none; top: 18px; }
.plan.main .btn-primary { width: 100%; }
.plan .btn { width: 100%; }
.plans-note { margin-top: 22px; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: hidden; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq summary { padding: 22px 48px 22px 0; cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; position: relative; transition: color .2s; }
.faq summary:hover { color: var(--link); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px;
  border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 20px; font-weight: 400;
  transition: transform .3s var(--ease), background .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--lime); color: #fff; }
.faq details p { color: var(--ink-2); padding-right: 48px; }

/* финальный CTA */
.final { background: var(--lime); color: #fff; padding: 80px 0; }
.final .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.final h2 { font-size: 44px; line-height: 1.05; margin-bottom: 14px; letter-spacing: -0.035em; }
.final p { color: rgba(255, 255, 255, .85); font-size: 17px; }
.quick { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: 0 20px 40px -25px rgba(11, 23, 54, .5); }
.quick input { flex: 1; min-width: 0; padding: 12px 18px; border: 0; background: transparent; color: var(--ink); font: inherit; outline: none; }
.quick .btn-primary { background: var(--forest); color: #fff; }
.quick .btn-primary:hover { background: var(--forest-3); box-shadow: none; }
.final .small { font-size: 13px; color: rgba(255, 255, 255, .75); margin-top: 12px; padding-left: 18px; }
.final .small a { color: inherit; text-decoration: underline; }

/* подвал */
footer.site { padding: 56px 0 36px; font-size: 14px; color: #7f8cab; background: var(--forest); }
footer.site .logo { color: #fff; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
footer.site h4 { margin: 0 0 14px; color: #fff; font-size: 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: #aab6d0; transition: color .2s; }
footer.site a:hover { color: var(--sky); }
footer.site .legal { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* ---------- появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }


/* ---------- формы (регистрация / вход) ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background-color: var(--forest);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  color: #aab6d0; padding: 40px 56px; display: flex; flex-direction: column;
}
.auth-side .logo { color: #fff; }
.auth-side h2 { color: #fff; font-size: 36px; line-height: 1.1; margin: auto 0 26px; max-width: 460px; letter-spacing: -0.03em; animation: fadeIn .25s ease both; }
.auth-side ul { list-style: none; padding: 0; margin: 0 0 auto; max-width: 440px; }
.auth-side li { margin-bottom: 14px; padding-left: 30px; position: relative; animation: fadeIn .25s ease both; }
.auth-side li:nth-child(1) { animation-delay: .2s; } .auth-side li:nth-child(2) { animation-delay: .28s; }
.auth-side li:nth-child(3) { animation-delay: .36s; } .auth-side li:nth-child(4) { animation-delay: .44s; }
.auth-side li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); }
.auth-side li::after { content: ""; position: absolute; left: 5px; top: 9px; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.auth-side .foot { font-size: 13px; color: #7f8cab; margin-top: 40px; }
.auth-main { padding: 40px 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-box { width: 100%; max-width: 440px; margin: 0 auto; animation: fadeIn .25s ease both; }
.auth-box h1 { font-size: 34px; margin-bottom: 6px; letter-spacing: -0.03em; }
.auth-box .sub { color: var(--muted); margin-bottom: 28px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field label .opt { color: var(--muted); font-weight: 400; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=password], .field input[type=url] {
  width: 100%; padding: 13px 15px; border: 1px solid #cfd5e2; border-radius: 10px; font: inherit; background: var(--paper); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:hover { border-color: #aeb6c8; }
.field input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(58, 98, 196, .22); }
.field.err input { border-color: var(--red); }
.field.err { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.field .msg { font-size: 13px; color: var(--red); margin-top: 5px; display: none; }
.field.err .msg { display: block; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 5px; }
.pw { position: relative; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 4px 6px; }

.radios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.radios label { margin: 0; border: 1px solid #cfd5e2; border-radius: 10px; padding: 11px 12px; font-size: 14px; font-weight: 500; cursor: pointer; background: var(--paper); line-height: 1.3; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.radios label:hover { border-color: var(--forest); }
.radios input { position: absolute; opacity: 0; pointer-events: none; }
.radios label:has(input:checked) { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); background: #eef3ff; }
.radios label small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; font-weight: 400; }
.field.err .radios label { border-color: var(--red); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); font-weight: 400 !important; }
.check input { margin-top: 3px; accent-color: var(--forest); }
.form-error { background: #fdecea; color: #8c2318; border: 1px solid #f2c2bc; padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; display: none; }
.form-error.show { display: block; animation: paneIn .3s var(--ease); }
.auth-box .btn { width: 100%; padding: 15px; margin-top: 8px; }
.auth-box .btn:disabled { opacity: .7; cursor: wait; }
.auth-box .alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- кабинет ---------- */
.cab-head { background: var(--forest); }
.cab-head .logo { color: #fff; }
.cab-head .wrap { display: flex; align-items: center; height: 64px; gap: 20px; }
.cab-head .right { margin-left: auto; display: flex; gap: 14px; align-items: center; font-size: 14px; color: #aab6d0; }
.cab-head .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.cab-head .btn-ghost:hover { background: #fff; color: var(--forest); }
.cab { padding: 48px 0 80px; }
.cab h1 { font-size: 34px; margin-bottom: 6px; }
.cab .sub { color: var(--muted); margin-bottom: 32px; }
.onb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.onb .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; animation: fadeIn .25s ease both; transition: transform .3s var(--ease), border-color .3s; }
.onb .card:hover { transform: translateY(-4px); border-color: var(--forest); }
.onb .card:nth-child(2) { animation-delay: .08s; } .onb .card:nth-child(3) { animation-delay: .16s; }
.onb .card .n { display: inline-block; font-size: 12px; color: #fff; background: var(--lime); font-weight: 700; margin-bottom: 14px; padding: 3px 10px; border-radius: 999px; }
.onb .card h3 { font-size: 17px; margin-bottom: 6px; }
.onb .card p { font-size: 14px; color: var(--ink-2); }

/* ---------- юридические страницы ---------- */
.doc { padding: 48px 0 80px; }
.doc-grid { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.doc-toc { position: sticky; top: 24px; font-size: 14px; }
.doc-toc-title { font-weight: 700; margin-bottom: 12px; }
.doc-toc ol { padding-left: 20px; margin: 0; color: var(--muted); }
.doc-toc li { margin-bottom: 8px; }
.doc-toc a { color: var(--ink-2); }
.doc-toc a:hover { color: var(--link); }
.doc-body { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 44px 52px; max-width: 820px; font-size: 16px; animation: fadeIn .25s ease both; }
.doc-body h1 { font-size: 34px; line-height: 1.12; margin-bottom: 10px; }
.doc-body h2 { font-size: 21px; margin: 36px 0 14px; scroll-margin-top: 24px; }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body ul { padding-left: 22px; margin: 0 0 1em; }
.doc-body li { margin-bottom: 6px; }
.doc-meta { color: var(--muted) !important; font-size: 14px; margin-bottom: 28px; }
.doc-draft { background: #fff7e0; border: 1px solid #f0dc9c; color: #6b5300; border-radius: 10px; padding: 12px 16px; font-size: 14px; margin-bottom: 28px; }
mark.ph { background: #fff1b8; color: inherit; padding: 0 3px; border-radius: 3px; }
.doc-req { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc-req td { padding: 10px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.doc-req td:first-child { color: var(--muted); width: 40%; padding-right: 16px; }
.cab-head .doc-switch { color: #b9c4dc; }
.cab-head .doc-switch:hover { color: #fff; }
footer.site .legal:only-child { border-top: 0; padding-top: 0; }
@media (max-width: 1000px) {
  .doc-grid { grid-template-columns: 1fr; gap: 24px; }
  .doc-toc { position: static; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
}
@media (max-width: 640px) {
  .doc { padding: 24px 0 56px; }
  .doc-body { padding: 26px 20px; }
  .doc-body h1 { font-size: 26px; }
  .cab-head .doc-switch { display: none; }
}

/* ---------- Telegram: кабинет ---------- */
.tg-card { margin-top: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px; animation: fadeIn .25s ease both; }
.tg-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.tg-icon { width: 48px; height: 48px; border-radius: 14px; background: #2aa3df; display: grid; place-items: center; flex: none; }
.tg-head h2 { font-size: 22px; margin-bottom: 2px; }
.tg-head .muted { color: var(--muted); margin: 0; font-size: 15px; }
.tg-note { color: var(--muted); font-size: 14px; }
.tg-note code { background: var(--bg); padding: 1px 6px; border-radius: 4px; }
.tg-perks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 15px; color: var(--ink-2); }
.tg-perks li { padding-left: 22px; position: relative; }
.tg-perks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.tg-wait { margin-top: 14px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--lime); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tg-settings { border-top: 1px solid var(--line-2); }
.tg-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.tg-row b { display: block; font-size: 15px; }
.tg-row small { color: var(--muted); font-size: 13px; }
.tg-inline { display: flex; align-items: center; gap: 10px; color: var(--muted); flex-wrap: wrap; justify-content: flex-end; }
.tg-settings select, .tg-settings input[type=time] { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid #cfd5e2; border-radius: 8px; background: var(--paper); color: var(--ink); }
.tg-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #cfd5e2; transition: background .25s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--lime); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--forest); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); }

/* ---------- Telegram: лендинг ---------- */
.tgp { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tgp h2 { font-size: 42px; line-height: 1.08; margin-bottom: 18px; }
.tgp .text > p { font-size: 17px; color: var(--ink-2); }
.tgp-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 14px; }
.tgp-list li { display: flex; gap: 14px; }
.tgp-list i { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--forest); color: var(--sky); display: grid; place-items: center; font-style: normal; font-size: 15px; }
.tgp-list b { display: block; }
.tgp-list span { color: var(--ink-2); font-size: 15px; }
.chat { background: #c9d6e6; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 18px 18px; border-radius: 22px; padding: 0 0 18px; max-width: 420px; margin-left: auto; box-shadow: 0 40px 70px -40px rgba(11, 23, 54, .6); overflow: hidden; }
.chat-top { background: #fff; display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 16px; }
.chat-top .ava { width: 38px; height: 38px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; flex: none; }
.chat-top b { display: block; font-size: 15px; }
.chat-top small { color: #3a8ad6; font-size: 12px; }
.bubble { background: #fff; border-radius: 14px 14px 14px 4px; margin: 0 16px 6px; padding: 10px 13px 8px; font-size: 14px; line-height: 1.45; max-width: 330px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bubble .t { display: block; text-align: right; font-size: 11px; color: #9aa3b3; margin-top: 2px; }
.bubble .st { display: none; margin-top: 8px; font-weight: 600; color: var(--green); }
.ibtns { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 16px 14px; max-width: 330px; }
.ibtns span { background: rgba(37, 60, 97, .35); color: #fff; font-size: 13px; font-weight: 500; text-align: center; padding: 9px 6px; border-radius: 8px; backdrop-filter: blur(4px); transition: background .2s, transform .2s; }
.ibtns span.full { grid-column: 1 / -1; }
.chat.done .ibtns.act { display: none; }
.chat.done .bubble .st { display: block; animation: paneIn .4s var(--ease); }
.ibtns span.press { background: rgba(37, 60, 97, .6); transform: scale(.96); }

@media (max-width: 1000px) {
  .tgp { grid-template-columns: 1fr; }
  .chat { margin: 0 auto; }
  .tg-perks { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tgp h2 { font-size: 29px; }
  .tg-card { padding: 22px 18px; }
  .tg-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tg-inline { justify-content: flex-start; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .burger { display: block; }
  nav.main {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--forest); padding: 8px 16px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08);
    clip-path: inset(0 0 100% 0); transition: clip-path .35s var(--ease); pointer-events: none;
  }
  nav.main a { padding: 13px 8px; border-radius: 8px; font-size: 16px; }
  header.site.open nav.main { clip-path: inset(0 0 0 0); pointer-events: auto; }
  header.site .right { margin-left: auto; }
  .hero .wrap, .sites, .own, .final .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 42px; }
  .mock, .mock:hover { transform: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 480px; }
  .strategies { grid-template-columns: 1fr; }
  .strategies .tabs { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .strategies .tabs button { white-space: nowrap; width: auto; flex: none; }
  .own-points { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .onb { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  header.site .wrap { gap: 12px; }
  header.site .phone, header.site .login-link { display: none; }
  .hero { padding: 44px 0 56px; }
  .hero h1 { font-size: 33px; }
  .hero .lead { font-size: 17px; }
  .hero ul.facts { gap: 24px; }
  .hero ul.facts b { font-size: 24px; }
  .mock { font-size: 12px; }
  .mock th, .mock td { padding: 8px 10px; }
  .mock .hide-sm { display: none; }
  section.block { padding: 64px 0; }
  .sec-head h2, .sites h2, .own h2 { font-size: 29px; }
  .final h2 { font-size: 32px; }
  .steps, .features { grid-template-columns: 1fr; }
  .cmp { font-size: 13px; }
  .cmp th, .cmp td { padding: 10px 9px; }
  .calc table { font-size: 14px; }
  .calc th, .calc td { padding: 10px 12px; }
  .quick { flex-direction: column; border-radius: 16px; }
  .quick input { padding: 12px; }
  footer.site .cols { grid-template-columns: 1fr; }
  .auth-main { padding: 28px 16px; }
  .radios { grid-template-columns: 1fr; }
  .strategies .pane { padding: 24px 20px; }
  .plan .price { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee .chips { flex-wrap: wrap; width: auto; }
  @view-transition { navigation: none; }
}
.tg-wait[hidden] { display: none; }
.tgp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.chat-top small a { color: inherit; }

/* ---------- навигация и таблицы юридических страниц ---------- */
.doc-nav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.doc-nav .wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; }
.doc-nav a { white-space: nowrap; font-size: 14px; color: var(--ink-2); padding: 7px 12px; border-radius: 999px; }
.doc-nav a:hover { background: var(--bg); text-decoration: none; }
.doc-nav a.active { background: var(--forest); color: #fff; }
.doc-toc { top: 72px; }
.doc-scroll { overflow-x: auto; margin: 0 0 1em; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; text-align: left; }
.doc-table th { background: var(--bg); font-weight: 600; font-size: 13px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.contact-cards div { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.contact-cards span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.contact-cards b { display: block; font-size: 16px; margin-bottom: 4px; word-break: break-word; }
.contact-cards small { color: var(--muted); font-size: 13px; }
@media (max-width: 800px) { .contact-cards { grid-template-columns: 1fr; } }
