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

:root {
  --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 {
  --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);
}

/* --- база -------------------------------------------------------------- */
body { background: var(--surface-2); color: var(--text); }

/* Сетка и контейнер объявлены в 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); color: #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; }

/* --- макет чата -------------------------------------------------------- */
.phone {
  margin: 0 auto; width: 100%; max-width: 370px; border-radius: 1.75rem;
  border: 1px solid var(--line); background: var(--surface); padding: .625rem; box-shadow: var(--shadow);
}
.phone-screen { overflow: hidden; border-radius: 1.25rem; background: var(--chat-bg); }
.chat-head { display: flex; align-items: center; gap: .75rem; background: var(--surface); padding: .75rem .875rem; }
.chat-head-main { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.chat-avatar {
  display: grid; place-items: center; flex: 0 0 auto; width: 2.25rem; height: 2.25rem;
  border-radius: 999px; background: linear-gradient(135deg, #3fbaf7, #126c9e);
  color: #fff; font-size: .8rem; font-weight: 700;
}
.chat-name { display: block; font-size: .875rem; font-weight: 600; }
.chat-status { font-size: .75rem; color: var(--text-muted); }
.chat-body { display: flex; flex-direction: column; gap: .625rem; padding: 1rem .75rem; }
.chat-note {
  align-self: center; border-radius: 999px; background: rgba(15, 23, 42, .06);
  padding: .2rem .7rem; font-size: .68rem; color: var(--chat-meta);
}
.dark .chat-note { background: rgba(255, 255, 255, .08); }

.bubble {
  position: relative; max-width: 87%; border-radius: 1rem; padding: .6rem .8rem;
  font-size: .84rem; line-height: 1.35; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.bubble-in { background: var(--chat-in); border-bottom-left-radius: .35rem; }
.bubble-out { background: var(--chat-out); margin-left: auto; border-bottom-right-radius: .35rem; }
.dark .bubble { color: #e6edf3; }
.bubble-time { display: block; margin-top: .25rem; text-align: right; font-size: .68rem; color: var(--chat-meta); }
.bubble-muted { color: var(--text-muted); text-decoration: line-through; }
.bubble-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .3rem; }
.bubble-title { font-size: .8rem; font-weight: 700; }

.badge {
  display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px;
  padding: .1rem .5rem; font-size: .68rem; font-weight: 700; white-space: nowrap;
}
.badge-deleted { background: #ffe4e6; color: #be123c; }
.badge-edited { background: #fef3c7; color: #92400e; }
.badge-onetime { background: #ffedd5; color: #c2410c; }
.badge-ok { background: #d1fae5; color: #047857; }
.dark .badge-deleted { background: rgba(190, 18, 60, .25); color: #fda4af; }
.dark .badge-edited { background: rgba(146, 64, 14, .3); color: #fcd34d; }
.dark .badge-onetime { background: rgba(194, 65, 12, .3); color: #fdba74; }
.dark .badge-ok { background: rgba(4, 120, 87, .3); color: #6ee7b7; }

.diff-del { border-radius: .25rem; background: #ffe4e6; color: #be123c; padding: 0 .2rem; text-decoration: line-through; }
.diff-add { border-radius: .25rem; background: #d1fae5; color: #047857; padding: 0 .2rem; text-decoration: underline; }
.dark .diff-del { background: rgba(190, 18, 60, .3); color: #fda4af; }
.dark .diff-add { background: rgba(4, 120, 87, .3); color: #6ee7b7; }

/* --- шаги подключения -------------------------------------------------- */
.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); color: #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; }

/* --- таймлайн «архив работает только вперёд» --------------------------- */
.timeline { position: relative; display: grid; gap: 1rem; }
@media (min-width: 640px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tl-item {
  position: relative; border-radius: 1rem; border: 1px solid var(--line);
  background: var(--surface); padding: 1rem 1rem 1.1rem;
}
.tl-item::before {
  content: ""; position: absolute; left: 1rem; top: -.55rem; width: .7rem; height: .7rem;
  border-radius: 999px; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.tl-item.is-muted { background: var(--surface-2); border-style: dashed; }
.tl-item.is-muted::before { background: var(--text-muted); box-shadow: 0 0 0 4px var(--surface-2); }
.tl-item.is-key { border-color: var(--brand); }
.tl-step { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.tl-title { margin-top: .35rem; font-weight: 600; font-size: .95rem; }
.tl-text { margin-top: .35rem; font-size: .85rem; color: var(--text-soft); line-height: 1.5; }

/* --- прочее ------------------------------------------------------------ */
.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); color: #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); color: #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; }
.review-text { margin-top: .75rem; font-size: .9rem; line-height: 1.65; color: var(--text); }
.review-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; font-size: .78rem; color: var(--text-muted); }
.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; }
.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; }
}
