/* ==========================================================================
   ВидитBot — лендинг. Чистый CSS (без сборки, без @apply).
   Светлая/тёмная тема, адаптив от 360px.
   ========================================================================== */

:root {
  color-scheme: light;
  --brand: #2aabee;
  --brand-dark: #1587c4;
  --brand-soft: #eff9ff;
  --brand-soft-2: #dbf1ff;
  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #1e293b;
  --text-soft: #64748b;
  --text-muted: #94a3b8;
  --chat-bg: #e7edf3;
  --chat-in: #ffffff;
  --chat-out: #eefdd7;
  --chat-meta: #8a9aa8;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 12px 32px -18px rgba(16, 24, 40, .28);
}

html.dark {
  color-scheme: dark;
  --brand-soft: rgba(42, 171, 238, .12);
  --brand-soft-2: rgba(42, 171, 238, .2);
  --line: #1e293b;
  --line-soft: #172033;
  --surface: #0f172a;
  --surface-2: #0b1220;
  --text: #e2e8f0;
  --text-soft: #94a3b8;
  --text-muted: #64748b;
  --chat-bg: #17212b;
  --chat-in: #212d3a;
  --chat-out: #2b3b4a;
  --chat-meta: #7d8f9e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 36px -20px rgba(0, 0, 0, .7);
}

/* --- база -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--surface-2); color: var(--text); font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img, svg { max-width: 100%; vertical-align: middle; }
button, summary, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-160%); padding: 12px 18px; background: var(--brand-dark); border-radius: 12px; color: white; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Сетка и контейнер объявлены в CSS, а не только утилитами Tailwind:
   если CDN недоступен, страница остаётся читаемой и адаптивной. */
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-side { grid-template-columns: minmax(0, 1fr) 20rem; }
}
.side-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .side-layout { grid-template-columns: minmax(0, 1fr) 17rem; } }
.stack > * + * { margin-top: 1rem; }
.section { padding: 3rem 0; }
@media (min-width: 768px) { .section { padding: 4rem 0; } }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.between { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.centered { text-align: center; }
.nowrap { white-space: nowrap; }
.sticky-side { position: sticky; top: 6rem; align-self: start; }
@media (max-width: 1023px) { .sticky-side { position: static; } }

.hero-glow {
  background:
    radial-gradient(60% 60% at 15% 10%, rgba(42, 171, 238, .18), transparent 60%),
    radial-gradient(50% 50% at 85% 0%, rgba(129, 140, 248, .16), transparent 60%);
}
.dark .hero-glow {
  background:
    radial-gradient(60% 60% at 15% 10%, rgba(42, 171, 238, .22), transparent 60%),
    radial-gradient(50% 50% at 85% 0%, rgba(99, 102, 241, .18), transparent 60%);
}

.section-title { font-size: 1.5rem; line-height: 2rem; font-weight: 700; letter-spacing: -.02em; color: inherit; }
@media (min-width: 640px) { .section-title { font-size: 1.875rem; line-height: 2.25rem; } }
.section-lead { margin-top: .75rem; max-width: 42rem; color: var(--text-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  border-radius: 999px; background: var(--brand-soft);
  padding: .25rem .75rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--brand-dark);
}
.dark .eyebrow { color: #7fd3ff; }

/* --- карточки ---------------------------------------------------------- */
.card, .tile {
  border-radius: 1rem; border: 1px solid var(--line);
  background: var(--surface); box-shadow: var(--shadow);
}
.card { padding: 1.5rem; }
.tile { padding: 1.25rem; }
.card-hover { transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-2px); border-color: var(--brand); }

/* --- кнопки ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: .85rem; padding: .75rem 1.25rem; font-size: .875rem;
  font-weight: 600; line-height: 1.2; transition: background .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--brand-button, var(--brand)); color: var(--brand-button-text, #fff); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--brand-soft); border-color: var(--brand); }
.btn-ghost { color: var(--brand-dark); }
.btn-ghost:hover { background: var(--brand-soft); }
.dark .btn-ghost { color: #7fd3ff; }
.btn-sm { padding: .5rem .875rem; font-size: .78rem; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

/* --- формы ------------------------------------------------------------- */
.field {
  width: 100%; border-radius: .85rem; border: 1px solid var(--line);
  background: var(--surface); padding: .65rem .875rem; font-size: .9rem;
  color: var(--text); transition: border-color .15s ease, box-shadow .15s ease;
}
.field::placeholder { color: var(--text-muted); }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(42, 171, 238, .25); }
.field-label { display: block; margin-bottom: .375rem; font-size: .875rem; font-weight: 500; color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- аккордеон --------------------------------------------------------- */
.acc { border-radius: 1rem; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.acc + .acc { margin-top: .75rem; }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; cursor: pointer; list-style: none;
  font-size: .95rem; font-weight: 600; color: inherit;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; display: grid; place-items: center; flex: 0 0 auto;
  width: 1.75rem; height: 1.75rem; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 1rem; font-weight: 400; color: var(--text-soft);
}
.acc[open] summary::after { content: "–"; background: var(--brand-soft-2); color: var(--brand-dark); border-color: transparent; }
.acc .acc-body { border-top: 1px solid var(--line-soft); padding: 1rem 1.25rem; }
.acc .acc-body > * + * { margin-top: .75rem; }
.acc .acc-body ul { list-style: disc; padding-left: 1.25rem; }
.acc .acc-body ol { list-style: decimal; padding-left: 1.25rem; }
.acc .acc-body li + li { margin-top: .375rem; }
.acc .acc-body a { color: var(--brand-dark); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.dark .acc .acc-body a { color: #7fd3ff; }

/* --- шаги подключения -------------------------------------------------- */
.steps { display: grid; gap: 1rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { border-radius: 1rem; border: 1px solid var(--line); background: var(--surface); padding: 1.25rem; }
.step-num {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .6rem;
  background: var(--brand-button, var(--brand)); color: var(--brand-button-text, #fff); font-size: .85rem; font-weight: 700;
}
.step-art { margin-top: 1rem; display: grid; gap: .375rem; border-radius: .85rem; background: var(--surface-2); padding: .75rem; border: 1px solid var(--line-soft); }
.step-row {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  border-radius: .6rem; background: var(--surface); padding: .5rem .625rem;
  font-size: .75rem; font-weight: 500; color: var(--text-soft); border: 1px solid transparent;
}
.step-row-active { background: var(--brand-soft-2); color: var(--brand-dark); border-color: var(--brand); }
.dark .step-row-active { color: #b9e6ff; }

/* --- таблица сравнения ------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 520px; }
.compare th, .compare td { border-bottom: 1px solid var(--line); padding: .75rem; text-align: left; }
.compare thead th {
  background: var(--surface-2); font-size: .7rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted);
  position: sticky; top: 0; z-index: 1;
}
.compare tbody tr:hover { background: var(--brand-soft); }
.compare td.yes { font-weight: 600; color: #059669; }
.compare td.no { color: var(--text-muted); }
.dark .compare td.yes { color: #34d399; }

/* --- статья ------------------------------------------------------------ */
.prose-site { font-size: .95rem; line-height: 1.75; color: var(--text); }
.prose-site h2 { margin: 2.25rem 0 .75rem; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; scroll-margin-top: 5rem; }
.prose-site h3 { margin: 1.75rem 0 .5rem; font-size: 1.1rem; font-weight: 600; scroll-margin-top: 5rem; }
.prose-site p { margin: 1rem 0; }
.prose-site ul { margin: 1rem 0; list-style: disc; padding-left: 1.5rem; }
.prose-site ol { margin: 1rem 0; list-style: decimal; padding-left: 1.5rem; }
.prose-site li + li { margin-top: .4rem; }
.prose-site a { color: var(--brand-dark); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.dark .prose-site a { color: #7fd3ff; }
.prose-site strong { font-weight: 650; color: inherit; }
.prose-site code {
  border-radius: .35rem; background: var(--surface-2); border: 1px solid var(--line-soft);
  padding: .1rem .35rem; font-size: .85em;
}
.prose-site blockquote {
  margin: 1.25rem 0; border-left: 4px solid var(--brand); background: var(--brand-soft);
  padding: .6rem 1rem; border-radius: 0 .5rem .5rem 0;
}
.table-wrap table, .prose-site table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .85rem; }
.prose-site th, .prose-site td { border: 1px solid var(--line); padding: .5rem .625rem; text-align: left; }
.prose-site thead th { background: var(--surface-2); font-weight: 600; }
.prose-site hr { margin: 2rem 0; border: 0; border-top: 1px solid var(--line); }

/* --- оглавление -------------------------------------------------------- */
.toc { display: grid; gap: .25rem; font-size: .875rem; }
.toc a {
  display: block; border-radius: .6rem; padding: .375rem .625rem;
  color: var(--text-soft); text-decoration: none; transition: background .15s ease, color .15s ease;
}
.toc a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.toc a.toc-3 { padding-left: 1.5rem; font-size: .82rem; }
.toc a.is-active { background: var(--brand-soft-2); color: var(--brand-dark); font-weight: 600; }

/* --- статусы ----------------------------------------------------------- */
.check, .cross {
  display: grid; place-items: center; flex: 0 0 auto; width: 1.25rem; height: 1.25rem;
  border-radius: 999px; font-size: .7rem; font-weight: 700;
}
.check { background: #d1fae5; color: #047857; }
.cross { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--line); }
.dark .check { background: rgba(4, 120, 87, .3); color: #6ee7b7; }

.pill {
  display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line);
  padding: .25rem .75rem; font-size: .75rem; font-weight: 500; color: var(--text-soft);
  text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
a.pill:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }
.pill-active { background: var(--brand-soft-2); border-color: var(--brand); color: var(--brand-dark); }

.alert { border-radius: .85rem; border: 1px solid var(--line); padding: .75rem 1rem; font-size: .875rem; }
.alert-ok { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.alert-err { border-color: #fecdd3; background: #fff1f2; color: #9f1239; }
.dark .alert-ok { background: rgba(6, 95, 70, .25); border-color: rgba(167, 243, 208, .3); color: #a7f3d0; }
.dark .alert-err { background: rgba(159, 18, 57, .25); border-color: rgba(254, 205, 211, .3); color: #fecdd3; }

.legal { margin-top: 2rem; }
.acc-extra { margin-top: .75rem; font-size: .875rem; }
.acc-extra a { color: var(--brand-dark); font-weight: 500; text-decoration: underline; }
.dark .acc-extra a { color: #7fd3ff; }
.legal h2 { margin: 2rem 0 .75rem; font-size: 1.1rem; font-weight: 700; }
.legal p, .legal li { font-size: .9rem; line-height: 1.75; color: var(--text-soft); }
.legal ul { margin: .9rem 0; list-style: disc; padding-left: 1.4rem; }
.legal ol { margin: .9rem 0; list-style: decimal; padding-left: 1.4rem; }
.legal li + li { margin-top: .35rem; }
.legal a { color: var(--brand-dark); font-weight: 500; text-decoration: underline; }
.dark .legal a { color: #7fd3ff; }

/* --- прочее ------------------------------------------------------------ */
.price-old { color: var(--text-muted); text-decoration: line-through; font-size: .9rem; }
.cta-panel {
  border-radius: 1.5rem; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow); padding: 2rem;
}
.dark .cta-panel { background: linear-gradient(160deg, #0f172a, #0b1220); }
.stat-num { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; }
.muted { color: var(--text-soft); }
.muted-sm { color: var(--text-muted); font-size: .8rem; }

/* --- каркас страницы: шапка, hero, подвал ----------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--surface); } }
.header-inner { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.05rem; text-decoration: none; color: inherit; white-space: nowrap; }
.brand-mark {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .85rem;
  background: var(--brand-button, var(--brand)); color: var(--brand-button-text, #fff); font-size: 1.05rem; box-shadow: var(--shadow);
}
.nav { display: none; align-items: center; gap: .25rem; margin-left: 1rem; font-size: .875rem; font-weight: 500; }
.nav a { border-radius: .6rem; padding: .5rem .7rem; color: var(--text-soft); text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .5rem; margin-left: auto; }
.header-actions .btn { white-space: nowrap; }
/* На узких экранах оставляем только одну кнопку: остальное — в мобильном меню */
@media (max-width: 719px) { .actions-desktop { display: none; } }
/* 360px: экономим место в шапке, чтобы не появлялось переполнение по ширине */
@media (max-width: 400px) {
  .header-inner { gap: .5rem; }
  .header-actions { gap: .35rem; }
  .brand { font-size: .98rem; gap: .4rem; }
  .brand-mark { width: 2rem; height: 2rem; border-radius: .7rem; font-size: .95rem; }
  .header-actions .btn { padding: .5rem .7rem; font-size: .75rem; }
  .icon-btn { width: 2.1rem; height: 2.1rem; }
  .wrap { padding-left: .85rem; padding-right: .85rem; }
}
.icon-btn {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: .6rem;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-soft);
  cursor: pointer; font-size: 1rem;
}
.icon-btn:hover { background: var(--brand-soft); }
.mobile-nav { display: grid; gap: .25rem; padding: .5rem 0 1rem; font-size: .9rem; }
.mobile-nav a { border-radius: .6rem; padding: .55rem .7rem; text-decoration: none; color: inherit; }
.mobile-nav a:hover { background: var(--brand-soft); }
@media (min-width: 900px) { .nav { display: flex; } .menu-btn, .mobile-nav { display: none; } }
.mobile-nav[hidden] { display: none; }

.hero { padding: 3rem 0; }
@media (min-width: 1024px) { .hero { padding: 5rem 0; } }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero h1 { font-size: 2rem; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
@media (min-width: 640px) { .hero h1 { font-size: 2.5rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3rem; } }
.hero-lead { margin-top: 1.15rem; font-size: 1.1rem; color: var(--text-soft); }
.hero-list { display: grid; gap: .6rem; margin-top: 1.5rem; font-size: .92rem; }
@media (min-width: 640px) { .hero-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero-list li { display: flex; align-items: flex-start; gap: .5rem; list-style: none; }
.hero-cta { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
@media (min-width: 640px) { .hero-cta { flex-direction: row; } }
.hero-note { margin-top: 1rem; font-size: .875rem; color: var(--text-soft); }

.site-footer { margin-top: 5rem; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-title { font-weight: 600; }
.footer-links { margin-top: .75rem; display: grid; gap: .5rem; font-size: .875rem; }
.footer-links a { color: var(--text-soft); text-decoration: none; }
.footer-links a:hover { color: var(--brand-dark); text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--line); padding: 1.5rem 0; text-align: center; font-size: .78rem; color: var(--text-muted); }

.crumbs { padding-top: 1rem; font-size: .875rem; color: var(--text-muted); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; list-style: none; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--brand-dark); }
.crumb-current { color: var(--text); }
.crumb-sep { color: var(--text-muted); margin-left: .4rem; }

/* --- карточки тарифов / мета-строки ----------------------------------- */
.plan-features { margin-top: 1.25rem; display: grid; gap: .6rem; font-size: .88rem; }
.plan-features li { display: flex; align-items: flex-start; gap: .6rem; list-style: none; }
.plan-card { position: relative; display: flex; flex-direction: column; }
.plan-card-featured { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.plan-flag {
  position: absolute; top: -0.75rem; left: 1.5rem; border-radius: 999px;
  background: var(--brand-button, var(--brand)); color: var(--brand-button-text, #fff); padding: .2rem .7rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.plan-title { font-size: 1.15rem; font-weight: 700; }
.plan-cta { margin-top: 1.5rem; display: grid; gap: .5rem; }
.plan-note { margin-top: .75rem; font-size: .75rem; line-height: 1.5; color: var(--text-muted); }
.plan-note-ok { color: #059669; margin-top: .35rem; }
.dark .plan-note-ok { color: #34d399; }
.price-old { color: var(--text-muted); text-decoration: line-through; font-size: .9rem; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem; margin-top: 1rem; }
.plan-price .amount { font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em; }
.plan-period { font-size: .85rem; color: var(--text-soft); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .78rem; color: var(--text-muted); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; margin-top: 2.5rem; }

/* --- блоки контента ---------------------------------------------------- */
.tile-icon { font-size: 1.5rem; line-height: 1; }
.tile-title { margin-top: .75rem; font-weight: 600; font-size: 1rem; }
.tile-text { margin-top: .5rem; font-size: .9rem; line-height: 1.6; color: var(--text-soft); }
.stat-icon { font-size: 1.5rem; line-height: 1; flex: 0 0 auto; }
.block-strong { display: block; font-weight: 600; color: var(--text); margin-bottom: .2rem; }
.card-title { font-size: 1.2rem; font-weight: 700; }
.check-list { display: grid; gap: .75rem; margin-top: 1rem; font-size: .9rem; }
.check-list li { display: flex; align-items: flex-start; gap: .6rem; list-style: none; }
.step-title { margin-top: .75rem; font-weight: 600; }
.step-text { margin-top: .35rem; font-size: .875rem; color: var(--text-soft); }
.stars { color: #f59e0b; letter-spacing: .1em; }
.text-link { color: var(--brand-dark); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.dark .text-link { color: #7fd3ff; }
.cta-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
@media (min-width: 640px) { .cta-title { font-size: 1.85rem; } }
.cta-lead { margin: .9rem auto 0; max-width: 42rem; color: var(--text-soft); }
.cta-actions { display: flex; flex-direction: column; justify-content: center; gap: .75rem; margin-top: 1.75rem; }
@media (min-width: 640px) { .cta-actions { flex-direction: row; } }
.note-box { margin-top: 1.5rem; font-size: .9rem; color: var(--text-soft); }
.field-note { margin-top: .4rem; font-size: .78rem; color: var(--text-muted); }
.form-grid { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.required { color: #e11d48; }
.lead-form-title { font-size: 1.2rem; font-weight: 700; }
.hero-title-lg { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: .75rem; }
@media (min-width: 640px) { .hero-title-lg { font-size: 2.4rem; } }
.plan-group-title { font-size: 1.1rem; font-weight: 600; }
.compare .row-head { font-weight: 400; }
.comparison-term { display: block; margin-top: .35rem; font-weight: 400; text-transform: none; letter-spacing: normal; white-space: nowrap; }
.compare th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 140px; }
.compare thead th:first-child { background: var(--surface-2); z-index: 2; }
.calc { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .calc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc-scale { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .75rem; color: var(--text-muted); }
.calc-results { display: grid; align-content: start; gap: 1rem; }
.stat-num-danger { color: #e11d48; }
.dark .stat-num-danger { color: #fb7185; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- дополнительные сетки страниц -------------------------------------- */
.contact-list { display: grid; gap: 1rem; margin-top: .75rem; font-size: .9rem; }
.contact-list li { list-style: none; }
.contact-list a { color: var(--brand-dark); font-weight: 500; }
.dark .contact-list a { color: #7fd3ff; }
.aside-layout { display: grid; gap: 1.25rem; align-content: start; }
.support-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .support-layout { grid-template-columns: minmax(0, 1fr) 20rem; } }
.legal-layout { max-width: 48rem; margin: 0 auto; padding: 3rem 1rem; }
.doc-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.article-card { display: flex; flex-direction: column; }
.article-card .tile-text { flex: 1 1 auto; }
.article-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-soft);
  font-size: .78rem; color: var(--text-muted);
}
.tag-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tag-row .pill { font-size: .7rem; }
.article-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .78rem; color: var(--text-muted); }
.article-title { margin-top: .9rem; font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
@media (min-width: 640px) { .article-title { font-size: 2.3rem; } }
.article-lead { margin-top: 1rem; font-size: 1.05rem; color: var(--text-soft); }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; font-size: .875rem; color: var(--text-muted); }
.not-prose { margin-top: 3rem; }
.breadcrumb-caption { margin-top: .35rem; font-size: .78rem; color: var(--text-muted); }
.anchor-block { scroll-margin-top: 5.5rem; }
.anchor-gap { margin-top: 3.5rem; }
.group-title { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.prose-site h2[id], .prose-site h3[id] { scroll-margin-top: 5.5rem; }
.measure { max-width: 48rem; margin-left: auto; margin-right: auto; }
.state-icon {
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto 1.25rem;
  border-radius: 999px; font-size: 1.7rem;
}
.state-icon-ok { background: #d1fae5; }
.state-icon-warn { background: #ffe4e6; }
.dark .state-icon-ok { background: rgba(4, 120, 87, .35); }
.dark .state-icon-warn { background: rgba(190, 18, 60, .35); }
.article-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 16.5rem; } }
.article-card-title { margin-top: .75rem; font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.article-card-title a { color: inherit; text-decoration: none; }
.article-card-title a:hover { color: var(--brand-dark); }
.dark .article-card-title a:hover { color: #7fd3ff; }
.toc-card-title { font-size: .9rem; font-weight: 600; }
.side-links { display: grid; gap: .8rem; margin-top: .75rem; font-size: .875rem; }
.side-links li { list-style: none; }
.side-links a { color: inherit; font-weight: 500; text-decoration: none; }
.side-links a:hover { color: var(--brand-dark); text-decoration: underline; }
@media (max-width: 1023px) { .toc-card { display: none; } }

@media (max-width: 420px) {
  .compare { font-size: .8rem; min-width: 440px; }
  .bubble { max-width: 94%; }
  .card { padding: 1.15rem; }
  .hero h1 { font-size: 1.75rem; }
}
@media print {
  header, footer, .no-print { display: none !important; }
  body { background: #fff; }
}

/* A consistent visual rhythm for every public page. */
:root { --brand: #167bc1; --brand-dark: #11639d; --brand-soft: #eaf5fc; --text-muted: #66768a; --shadow: 0 8px 32px -20px rgba(20,49,77,.26); }
.dark { --text-muted: #9aaac0; --brand-soft: rgba(42,171,238,.12); }
.site-header { backdrop-filter: blur(16px); }
.brand { letter-spacing: -.03em; }
.brand-mark { font: 800 22px/1 system-ui; background: linear-gradient(135deg,#167bc1,#42bdd5); color: white; border-radius: 12px; box-shadow: 0 4px 14px #167bc130; }
.nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.hero-glow { background: radial-gradient(ellipse at 85% 15%,rgba(42,171,238,.13),transparent 55%), var(--surface-2); }
.hero h1 { font-size: clamp(2.4rem,4.4vw,4.1rem); line-height: 1.08; letter-spacing: -.055em; max-width: 650px; }
.hero-lead { max-width: 540px; line-height: 1.75; }
.eyebrow { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 750; }
.hero .eyebrow { margin-bottom: 1.25rem; }
.btn { min-height: 44px; border-radius: 12px; font-weight: 650; }
.btn-sm { min-height: 38px; }
.btn-primary { box-shadow: 0 5px 16px -8px #167bc1aa; }
.hero-cta .btn { padding: 1rem 1.4rem; }
.section-title { letter-spacing: -.035em; }
.card, .tile { border-radius: 18px; }
.field-label { display: block; margin-bottom: .5rem; }
.field { min-height: 46px; }
.field:disabled { opacity: .6; }
.field[type="range"] { accent-color: var(--brand); }
.table-wrap { overscroll-behavior-inline: contain; }
.prose li { margin-left: 1.4rem; }
.footer-links a:hover { color: var(--brand); }
@media (max-width: 899px) { .header-inner { gap: .5rem; } .hero { padding-top: 2.5rem; } .hero-grid { gap: 2rem; } }
@media (max-width: 480px) { .header-actions > .btn-primary { display: none; } .hero h1 { font-size: 2.5rem; } .hero-cta .btn { width: 100%; } .wrap { padding-inline: 20px; } .section { padding-block: 2.5rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Public experience: one clear route from understanding to connection. */
.home-hero { background: radial-gradient(ellipse at 85% 30%, #dceefc 0, transparent 55%),var(--surface-2); border-bottom: 1px solid var(--line); }
.dark .home-hero { background: radial-gradient(ellipse at 85% 30%,#142b43 0,transparent 55%),var(--surface-2); }
.hero-copy { padding-block: 1rem; }
.hero h1 { font-size: clamp(2.3rem,4.6vw,3.8rem); letter-spacing: -.055em; line-height: 1.12; }
.accent-text { color: var(--brand); }
.hero-trust { display: flex; gap: .7rem 1rem; flex-wrap: wrap; margin-top: 1.4rem; font-size: .78rem; color: var(--text-soft); }
.hero-trust span::before { content: '✓'; color: var(--brand); margin-right: .4rem; font-weight: 700; }
.archive-preview { border: 1px solid var(--line); background: var(--surface); padding: 1.5rem; border-radius: 24px; box-shadow: 0 24px 60px -26px #1c436b44; max-width: 500px; width:100%; justify-self: end; }
.preview-toolbar,.preview-chat { display: flex; align-items: center; gap: .75rem; }
.preview-toolbar { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line-soft); }
.preview-toolbar div,.preview-chat div { display: flex; flex-direction: column; }
.preview-toolbar strong { font-size: .95rem; }.preview-toolbar div span,.preview-chat div span { color: var(--text-soft); font-size: .75rem; }
.preview-logo { background: var(--brand); color: white; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-weight: 800; }
.preview-status { margin-left: auto; font-size: .65rem; color: #16725d; background: #e5f6ef; border-radius: 20px; padding: .35rem .6rem; }
.dark .preview-status { background: #123f36; color: #92dcc2; }
.preview-chat { margin-block: 1.25rem; }.preview-chat strong { font-size: .85rem; }
.preview-avatar { background: var(--brand-soft); color: var(--brand); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; }
.preview-count { margin-left: auto; font-size: .7rem; color: var(--text-soft); }
.preview-message { border: 1px solid var(--line-soft); border-radius: 14px; padding: 1rem; margin-top: .75rem; background: var(--surface-2); }
.preview-message-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: .65rem; }
.event-label { font-size: .65rem; font-weight: 700; padding: .25rem .5rem; border-radius: 6px; }
.event-deleted { color: #a1344a; background: #faeaf0; }.event-edited { color: #916522; background: #faf0d9; }
.dark .event-deleted { color: #f5aec0; background: #4a2633; }.dark .event-edited { color: #ecc890; background: #453920; }
.preview-message time,.preview-caption { color: var(--text-soft); font-size: .68rem; }.preview-message p { font-size: .875rem; line-height: 1.7; }.preview-caption { display: block; margin-top: .65rem; }
.preview-message del { color: #a1344a; background: #faeaf0; border-radius: 4px; padding-inline: 3px; }.preview-message ins { color: #16725d; background: #e5f6ef; border-radius: 4px; padding-inline: 3px; text-decoration: none; }
.preview-bottom { display: flex; justify-content: space-between; font-size: .7rem; color: var(--text-soft); margin-top: 1rem; }
.preview-disclaimer { font-size: .65rem; color: var(--text-muted); margin-top: 1.25rem; text-align: center; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }.section-heading .section-lead { max-width: 390px; margin: 0; font-size: .95rem; }
.section-title { font-size: clamp(1.65rem,2.6vw,2.4rem); line-height: 1.2; font-weight: 750; max-width: 640px; margin-top: .7rem; }
.feature-card { padding: 1.5rem; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; display: flex; flex-direction: column; gap: .8rem; }.feature-card h3 { font-size: 1.1rem; line-height: 1.35; letter-spacing: -.02em; }.feature-card p { font-size: .9rem; color: var(--text-soft); }.feature-number { font-size: .75rem; color: var(--brand); font-weight: 750; }.feature-note { font-size: .72rem; margin-top: auto; padding-top: .7rem; color: var(--text-soft); border-top: 1px solid var(--line-soft); }
.inline-notice { display: flex; align-items: flex-start; gap: .75rem; background: var(--brand-soft); border-radius: 12px; padding: 1rem 1.25rem; margin-top: 1.5rem; }.inline-notice p { font-size: .78rem; color: var(--text-soft); }.notice-symbol { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border: 1px solid var(--brand); border-radius: 50%; color: var(--brand); font-weight: 700; font-size: .75rem; }
.soft-band { background: var(--surface); border-block: 1px solid var(--line-soft); }
.connection-section,.home-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }.connection-section .text-link,.home-faq > div > .text-link { display: inline-block; margin-top: 1.25rem; }.connection-section .section-lead { font-size: .95rem; }
.connection-list { list-style: none; display: grid; gap: 1.5rem; }.connection-list li { display: flex; gap: 1rem; }.connection-list li > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; background: var(--brand-soft); border-radius: 10px; color: var(--brand); font-size: .8rem; font-weight: 750; }.connection-list h3 { font-size: 1rem; margin-bottom: .35rem; }.connection-list p { font-size: .85rem; color: var(--text-soft); }
.home-plans { align-items: stretch; }.free-card > .tile-text { margin-top: 1rem; }.free-card .plan-title { margin-top: .75rem; }.badge-neutral { color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--line); }.section-footnote { color: var(--text-soft); font-size: .85rem; margin-top: 1.5rem; text-align: center; }.faq-help { color: var(--text-soft); font-size: .85rem; margin-top: 1.25rem; }
.closing-cta { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem 2.5rem; background: var(--brand-soft); border: 1px solid var(--line); border-radius: 20px; }.closing-cta h2 { font-size: 1.65rem; letter-spacing: -.035em; }.closing-cta p { color: var(--text-soft); font-size: .9rem; margin-top: .4rem; }
.hero-title-lg { font-size: clamp(2rem,3.4vw,3rem); line-height:1.14; letter-spacing: -.045em; }.hero-glow > .section { padding-block: 3rem; }.hero-glow .section-lead { max-width: 690px; font-size: 1rem; }.article-card { display: flex; flex-direction: column; }.article-card > .btn { align-self: flex-start; }.article-foot { margin-top: auto; padding-top: 1.1rem; }.article-card .tile-text { font-size: .9rem; }.legal-layout { max-width: 54rem; }.legal { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 2rem; margin-top: 1.5rem; }.legal h2 { margin-top: 1.8rem; }.legal h2:first-child { margin-top: 0; }.legal p,.legal li { font-size: .95rem; }.field-label { font-size: .85rem; font-weight: 600; }.form-grid { gap: 1.1rem; }
@media (max-width: 900px) { .section-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }.section-heading .section-lead { max-width: 580px; }.connection-section,.home-faq { grid-template-columns: 1fr; gap: 2rem; }.archive-preview { justify-self: center; }.closing-cta { flex-direction: column; align-items: flex-start; }.header-actions .actions-desktop { display: none; } }
@media (max-width: 480px) { .hero h1 { font-size: 2.5rem; }.archive-preview { padding: 1rem; border-radius: 18px; }.hero-trust { font-size: .72rem; }.section-heading { margin-bottom: 1.5rem; }.feature-card { padding: 1.25rem; }.closing-cta { padding: 1.5rem; }.closing-cta .btn { width: 100%; }.legal { padding: 1.25rem; }.hero-glow > .section { padding-block: 2rem; } }

/* Functional navigation. */
.faq-search { max-width: 38rem; margin-top: 1.5rem; }
.pill.is-active { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.period-switch { display: inline-flex; gap: .4rem; padding: .35rem; background: var(--surface-2); border-radius: 14px; margin-bottom: 1.5rem; }
.period-switch [aria-pressed="true"] { background: var(--brand); color: white; border-color: var(--brand); }
[data-plan-group] .grid { max-width: 56rem; }
.pricing-intro > .section { padding-bottom: 1rem; }
.pricing-cards { padding-top: 1.25rem; }
.pricing-catalog { display: grid; gap: 1.25rem; align-items: start; }
.pricing-free, .pricing-paid { min-width: 0; }
.pricing-free { align-content: start; }
.pricing-paid [data-plan-group] .grid { max-width: none; }
@media (min-width: 960px) {
  .pricing-catalog-mixed { grid-template-columns: minmax(0,1fr) minmax(0,2fr); }
}
@media (max-width: 480px) { .period-switch { display: flex; }.period-switch .btn { flex: 1; padding-inline: .7rem; } }

/* Общая с панелью тема: спокойные поверхности и читаемые акценты. */
html[data-theme="light"] {
  --surface: #ffffff; --surface-2: #f5f7fb; --text: #182436; --text-soft: #53647b; --text-muted: #53647b;
  --brand: #245bc6; --brand-dark: #194ba9; --brand-soft: #eaf0ff; --brand-soft-2: #dbe6ff;
  --brand-button: #245bc6; --brand-button-hover: #194ba9; --brand-button-text: #ffffff;
  --line: #d9e2ed; --line-soft: #e9eef5; --chat-meta: #53647b;
}
html[data-theme="dark"] {
  --surface: #121e30; --surface-2: #0b1220; --text: #edf3fc; --text-soft: #b0bfd3; --text-muted: #b0bfd3;
  --brand: #9bbcff; --brand-dark: #bdd3ff; --brand-soft: #24395c; --brand-soft-2: #2d456d;
  --brand-button: #9bbcff; --brand-button-hover: #bdd3ff; --brand-button-text: #10223e;
  --line: #2d405c; --line-soft: #24354c; --chat-meta: #b0bfd3;
}
.btn-primary, .brand-mark, .preview-logo, .step-num, .plan-badge, .period-switch [aria-pressed="true"] { background: var(--brand-button); color: var(--brand-button-text); }
.btn-primary:hover { background: var(--brand-button-hover); }
[data-theme-toggle].icon-btn { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 78px; min-height: 36px; padding: .45rem .65rem; gap: .35rem; white-space: nowrap; }
[data-theme-label] { font-size: .75rem; font-weight: 600; }
.compare td.yes, .plan-note-ok { color: #137052; }
.dark .preview-message del { color: #ffa2b0; background: #472735; }
.dark .preview-message ins { color: #7fdbb5; background: #193d35; }
.dark .required { color: #ffa2b0; }
