/* ============ базовые переменные и сброс ============ */
:root {
  /* палитра в духе dhost: тёмно-синий фон, васильковый акцент, крупные радиусы */
  --bg: #070a2b;
  --bg-soft: #0a0d33;
  --panel: #13163f;
  --panel-2: #1b1f4f;
  --surface-2: #232252;
  --border: rgba(255, 255, 255, .10);
  --border-soft: rgba(255, 255, 255, .06);
  --text: #eef1ff;
  --muted: #98a2d2;
  --dim: #6f7aae;
  --accent: #4f7bff;
  --accent-strong: #1849d2;
  --accent-hover: #1f57ee;
  --accent-2: #35d399;
  --link-hover: #cddcff;
  --warn: #f5b301;
  --danger: #f87171;
  --ok: #22c55e;
  --field: #0c0f36;
  --code-bg: #090c2c;
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1240px;
  --shadow: 0 18px 50px rgba(3, 6, 30, .45);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(120% 60% at 50% -10%, #131c60 0%, #0a0e38 42%, var(--bg) 100%);
  background-repeat: no-repeat;
  background-color: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Единый стиль ссылок: подчёркивания нет, при наведении меняется цвет. */
a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
a:hover, a:focus-visible { color: var(--link-hover); text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(30px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }
code { font-family: var(--mono); font-size: .92em; background: var(--code-bg); border: 1px solid var(--border-soft); padding: 2px 6px; border-radius: 6px; }
pre { background: var(--code-bg); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; }
pre code { border: 0; padding: 0; background: none; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 8px; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 28px; } .mt4 { margin-top: 48px; }
.mb0 { margin-bottom: 0; } .mb2 { margin-bottom: 16px; } .mb3 { margin-bottom: 28px; }
.nowrap { white-space: nowrap; }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }

/* ============ шапка ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 44, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
/* логотип */
.logo-img { display: block; width: 32px; height: 32px; flex: none; }
.logo-img--lg { width: 38px; height: 38px; }
.site-footer .logo-img { width: 28px; height: 28px; }
.logo-word { font-weight: 800; letter-spacing: -.03em; font-size: 19px; line-height: 1; color: var(--text); }
.logo-accent { color: #a4c2ff; }
.site-footer .logo-word { font-size: 17px; }

.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-size: 18px; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #05121b; font-weight: 900; font-size: 15px;
}
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ============ кнопки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--panel); color: var(--text);
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--panel-2); border-color: rgba(111,140,255,.35); color: var(--text); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-strong); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(24, 73, 210, .35); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 10px 30px rgba(31, 87, 238, .45); }
.btn-ghost { background: transparent; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-danger { border-color: rgba(248, 113, 113, .35); color: #ffb4b4; background: rgba(248, 113, 113, .10); }
.btn-danger:hover { background: #24151b; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }

/* ============ карточки и сетки ============ */
.card {
  background: linear-gradient(180deg, var(--panel), #10133a);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card-tight { padding: 16px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }

/* ============ hero ============ */
.hero { padding: 76px 0 48px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 20% auto -10%; height: 620px;
  background: radial-gradient(closest-side, rgba(79, 123, 255, .30), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--accent-2); border: 1px solid #1c3a33; background: #0a1a16;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 18px; background-image: linear-gradient(180deg, #ffffff 0%, #cfd9ff 55%, #8fa8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  font-size: 13px; color: var(--muted); border: 1px solid var(--border-soft);
  background: #0b0e33; padding: 6px 11px; border-radius: 8px;
}
.terminal { background: #090c2c; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.terminal-bar { display: flex; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); background: #080a2a; }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.terminal-body { padding: 16px 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.85; }
.terminal-body .k { color: var(--accent-2); }
.terminal-body .c { color: var(--dim); }
.terminal-body .v { color: #cfe0ff; }

/* ============ статистика и шаги ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-soft); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-soft); }
.stat { background: var(--bg-soft); padding: 20px 22px; }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13.5px; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding-left: 44px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: #13163f; border: 1px solid rgba(255,255,255,.12); color: var(--accent);
}
.step h4 { margin-bottom: 4px; }

/* ============ тарифы ============ */
.plan-card { display: flex; flex-direction: column; }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.plan-name { font-weight: 700; font-size: 17px; }
.plan-price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan-specs { list-style: none; padding: 0; margin: 0 0 18px; }
.plan-specs li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border-soft); font-size: 14.5px; }
.plan-specs li:last-child { border-bottom: 0; }
.plan-specs .val { color: var(--text); font-weight: 600; }
.plan-specs .key { color: var(--muted); }
.plan-flags { font-size: 18px; letter-spacing: 2px; margin-bottom: 14px; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 9px; border-radius: 7px; }
.badge-pop { background: #10233d; color: #9dc4ff; border: 1px solid #22406b; }
.badge-ok { background: rgba(53, 211, 153, .12); color: var(--accent-2); border: 1px solid rgba(53, 211, 153, .35); }
.badge-warn { background: rgba(245, 179, 1, .12); color: var(--warn); border: 1px solid rgba(245, 179, 1, .35); }
.badge-err { background: rgba(248, 113, 113, .12); color: #ffb4b4; border: 1px solid rgba(248, 113, 113, .35); }

/* ============ таблицы ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); font-weight: 600; background: #0a0d33; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.04); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ============ формы ============ */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.input, select, textarea {
  width: 100%; height: 44px; padding: 0 13px; font: inherit; font-size: 15px;
  color: var(--text); background: #0c0f36; border: 1px solid var(--border);
  border-radius: var(--radius-sm); outline: none;
}
textarea { height: auto; min-height: 90px; padding: 11px 13px; }
.input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 123, 255, .18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 12.5px; color: var(--dim); margin-top: 6px; }

/* ============ оповещения ============ */
.flash { padding: 13px 16px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 18px; border: 1px solid; }
.flash-ok { background: rgba(53, 211, 153, .10); border-color: rgba(53, 211, 153, .32); color: #b6f2d8; }
.flash-err { background: rgba(248, 113, 113, .10); border-color: rgba(248, 113, 113, .35); color: #ffc0c0; }
.flash-info { background: rgba(79, 123, 255, .12); border-color: rgba(79, 123, 255, .35); color: #cddcff; }

/* ============ формы входа и регистрации ============ */
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--dim); font-size: 12.5px; text-transform: lowercase;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border-soft);
}
.tg-widget { display: flex; justify-content: center; min-height: 44px; }

/* ============ кабинет ============ */
.side { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; align-items: start; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a { padding: 10px 13px; border-radius: 9px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.side-nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.side-nav a.active { background: var(--panel-2); color: var(--text); }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px 18px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.secret { font-family: var(--mono); background: #090c2c; border: 1px solid var(--border-soft); border-radius: 8px; padding: 5px 9px; }
.reveal { cursor: pointer; color: var(--accent); border-bottom: 1px dashed; }

/* ============ прочее ============ */
.divider { height: 1px; background: var(--border-soft); margin: 28px 0; }
.faq details { border-bottom: 1px solid var(--border-soft); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border-soft); margin-top: 72px; padding: 34px 0 46px; color: var(--dim); font-size: 13.5px; }
.footer-grid { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a {
  color: var(--muted); text-decoration: none;
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--link-hover); text-decoration: none; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: none; }

.empty { text-align: center; padding: 54px 20px; color: var(--muted); }
.empty h3 { color: var(--text); }

.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #0d1622; border: 1px solid var(--border-soft); color: var(--muted); }

.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  background: #0e1a26; border: 1px solid #21405e; color: #cfe4ff;
  padding: 13px 18px; border-radius: 12px; font-size: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  transition: opacity .3s ease;
}

@media (max-width: 980px) {
  .hero-grid, .split, .side { grid-template-columns: 1fr; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats, .steps, .form-row { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .kv { grid-template-columns: 1fr; gap: 4px 0; }
  .kv dt { margin-top: 10px; }
}

/* ============ кнопка Google ============ */
.google-btn {
  background: #ffffff; color: #1f1f1f; border-color: #dadce0;
  justify-content: center; font-weight: 600;
}
.google-btn:hover { background: #f8f9fa; border-color: #c9cdd2; color: #1f1f1f; text-decoration: none; }
.google-btn svg { flex: 0 0 auto; }
/* ============ компактные таблицы админки ============ */
.table-wrap table.compact { table-layout: fixed; }
.table-wrap table.compact th,
.table-wrap table.compact td { padding: 10px; }
.table-wrap table.compact th { font-size: 11.5px; letter-spacing: .03em; }
.cell-form { display: flex; flex-direction: column; gap: 6px; }
.cell-form .input { width: 100%; height: 32px; font-size: 13px; padding: 0 9px; }
.cell-form .btn { width: 100%; height: 32px; font-size: 13px; padding: 0 10px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
th.center, td.center { text-align: center; }
/* таблица админки в одну строку на запись */
.table-wrap table.oneline { table-layout: fixed; }
.table-wrap table.oneline th,
.table-wrap table.oneline td {
  padding: 8px 8px;
  white-space: nowrap;
  vertical-align: middle;
}
.table-wrap table.oneline td .ellipsis { display: block; max-width: 100%; }
.row-form { display: flex; gap: 5px; align-items: center; flex-wrap: nowrap; }
.row-form .input {
  height: 32px; font-size: 13px; padding: 0 8px;
  min-width: 0; flex: 1 1 auto; width: 100%;
}
.row-form .btn {
  height: 32px; font-size: 13px; padding: 0 10px; flex: 0 0 auto;
}
/* ============ карточки базы знаний ============ */
.kb-card {
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.kb-card:hover,
.kb-card:focus-visible {
  text-decoration: none;
  border-color: rgba(111,140,255,.45);
  box-shadow: 0 0 0 1px rgba(111,140,255,.45), 0 10px 26px rgba(0, 0, 0, .28);
  background: linear-gradient(180deg, #14202f, #101827);
  outline: none;
}
.kb-card:hover .kb-card__title { color: var(--link-hover); text-decoration: none; }
.kb-card__title { font-weight: 600; }
.kb-card:hover .kb-card__arrow { color: var(--accent); }
.kb-card__arrow { transition: color .15s ease; }
/* ============ блоки кода с кнопкой «Копировать» ============ */
.code-block { position: relative; margin: 14px 0; }
.code-block pre { margin: 0; padding-right: 116px; }
.code-copy {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  height: 28px; padding: 0 10px; border-radius: 8px;
  font: inherit; font-size: 12px; font-weight: 600; line-height: 1;
  color: var(--muted); background: #0d1724; border: 1px solid var(--border);
  cursor: pointer; opacity: .9; transition: color .15s, border-color .15s, opacity .15s;
}
.code-copy:hover { color: var(--text); border-color: rgba(111,140,255,.45); opacity: 1; }
.code-copy:active { transform: translateY(1px); }
.code-copy.done { color: var(--accent-2); border-color: #235a45; opacity: 1; }
@media (max-width: 620px) {
  .code-block pre { padding-right: 14px; padding-top: 38px; }
  .code-copy { top: 6px; right: 6px; }
}
/* ============ компактная сетка тарифов (как у dhost: 5 в ряд) ============ */
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 18px 18px 16px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.plan:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 140, 255, .45);
  box-shadow: var(--shadow);
}
.plan__name { font-size: 20px; font-weight: 700; color: var(--accent); margin-bottom: 10px; letter-spacing: -.01em; }
.plan__flags { font-size: 15px; letter-spacing: 2px; margin-bottom: 10px; }
.plan__row {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 8px; align-items: baseline;
  font-size: 13.5px; margin-bottom: 5px; white-space: nowrap;
}
.plan__label { font-size: 12px; color: var(--dim); }
.plan__row b { color: var(--text); font-size: 14.5px; font-weight: 600; }
.plan__price {
  margin-top: auto; padding: 10px 8px; background: var(--surface-2);
  border-radius: 12px; text-align: center; font-size: 17px; font-weight: 700;
}
.plan__price small { font-size: 12px; font-weight: 400; color: var(--muted); }
.plan__btn { margin-top: 10px; height: 38px; font-size: 14px; }
@media (max-width: 1240px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .plans { grid-template-columns: 1fr; } }

/* на главной — чуть плотнее, чтобы карточки не были «воздушными» */
.plan-specs li { padding: 7px 0; font-size: 14px; }
/* ============ компактные локации ============ */
.locs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.loc-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 16px 14px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: inherit; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.loc-card:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 140, 255, .45);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.loc-flag { font-size: 26px; line-height: 1.1; }
.loc-name { font-weight: 700; font-size: 16px; }
.loc-meta { font-size: 12.5px; color: var(--dim); }
.loc-bottom {
  margin-top: auto; padding-top: 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.loc-price { font-weight: 700; font-size: 15px; }
.loc-bottom .badge { font-size: 10.5px; padding: 3px 7px; }
.locs-info { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) {
  .locs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .locs-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .locs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .locs-info { grid-template-columns: 1fr; }
}
/* ============ страницы входа и регистрации ============ */
.auth { padding: 52px 20px 72px; display: flex; justify-content: center; }
.auth-box {
  width: min(448px, 100%);
  background: linear-gradient(180deg, #141838, #101331);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 26px 22px;
  box-shadow: 0 24px 60px rgba(3, 6, 30, .55);
}
.auth-logo {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none; margin-bottom: 4px;
}
.auth-logo:hover { text-decoration: none; }
.auth-logo img { width: 38px; height: 38px; }
.auth-logo .logo-word { font-size: 22px; }
.auth-lead { text-align: center; color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  background: #0b0e2e; border: 1px solid var(--border); border-radius: 13px; margin-bottom: 20px;
}
.auth-tab {
  text-align: center; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none;
  transition: color .15s, background .15s;
}
.auth-tab:hover { color: var(--text); text-decoration: none; }
.auth-tab.is-active {
  background: var(--accent-strong); color: #fff;
  box-shadow: 0 6px 18px rgba(24, 73, 210, .38);
}
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.auth-input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px;
  background: var(--field); border: 1px solid var(--border); color: var(--text); font-size: 15px;
}
.auth-input::placeholder { color: var(--dim); }
.auth-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 123, 255, .18);
}
.auth-submit { width: 100%; height: 46px; border-radius: 12px; font-size: 15.5px; font-weight: 700; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.auth-note { font-size: 12px; color: var(--dim); text-align: center; margin-top: 14px; }
.auth-note a { color: var(--muted); }
.auth-box .auth-divider { margin: 18px 0; }
.auth-box .hint { font-size: 12px; color: var(--dim); margin-top: 6px; }
.auth-box .check { font-size: 13px; align-items: flex-start; }
@media (max-width: 420px) {
  .auth { padding: 28px 12px 48px; }
  .auth-box { padding: 20px 16px 18px; border-radius: 16px; }
}
/* ============ оживление главной ============ */
.js [data-reveal] { opacity: 0; transform: translateY(16px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1);
}

.term-live { min-height: 208px; }
.term-gap { height: 10px; }
.caret {
  display: inline-block; width: 8px; height: 15px; margin-left: 2px;
  background: #9dc0ff; vertical-align: -2px;
  animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.loc-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.loc-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px;
  background: #12163c; border: 1px solid var(--border);
  color: var(--muted); font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
.loc-pill:hover { color: var(--text); border-color: rgba(111, 140, 255, .5); text-decoration: none; transform: translateY(-1px); }
.loc-pill.is-active {
  background: var(--accent-strong); border-color: transparent; color: #fff;
  box-shadow: 0 8px 22px rgba(24, 73, 210, .38);
}
.loc-pill__count {
  font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: inherit; opacity: .9;
}
[data-plans] { transition: opacity .2s ease; }

@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
/* ============ сетка узлов в hero ============ */
.hero-net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  color: #6f8cff; pointer-events: none;
  opacity: .55; z-index: 0;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 35%, transparent 78%);
}
.hero-net line { opacity: .22; }
.hero-net circle { opacity: .75; animation: net-pulse 5.5s ease-in-out infinite; }
@keyframes net-pulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}
.hero .wrap { position: relative; z-index: 1; }

/* ============ микро-анимации ============ */
.btn { transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary:hover { transform: translateY(-1px); }

.step { transition: transform .2s ease, color .2s; }
.step:hover { transform: translateY(-2px); }
.step:hover::before { background: var(--accent-strong); color: #fff; }
.step::before { transition: background .2s, color .2s; }

.chip { transition: border-color .15s, color .15s, transform .15s; }
.chip:hover { transform: translateY(-1px); border-color: rgba(111, 140, 255, .45); color: var(--text); }

.why-card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.why-card:hover { transform: translateY(-2px); border-color: rgba(111, 140, 255, .38); box-shadow: var(--shadow); }

.faq details { transition: border-color .2s; }
.faq details:hover { border-color: rgba(111, 140, 255, .35); }

@media (prefers-reduced-motion: reduce) {
  .hero-net circle { animation: none; }
  .btn:hover, .step:hover, .chip:hover, .why-card:hover { transform: none; }
}
/* FAQ: аккордеон */
.faq details > p { animation: faq-fade .22s ease; }
@keyframes faq-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq summary { user-select: none; }
.faq details[open] summary { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .faq details > p { animation: none; } }
/* список документов (страница контактов) */
.doc-links { list-style: none; margin: 0; padding: 0; }
.doc-links li { margin: 0; }
.doc-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--border-soft);
  transition: color .15s ease;
}
.doc-links li:last-child a { border-bottom: 0; padding-bottom: 0; }
.doc-links li:first-child a { padding-top: 2px; }
.doc-links a::after {
  content: "→"; color: var(--dim);
  transition: color .15s ease, transform .15s ease;
}
.doc-links a:hover { color: var(--link-hover); text-decoration: none; }
.doc-links a:hover::after { color: var(--accent); transform: translateX(2px); }
/* иконка у кнопки «Копировать» в статьях */
.code-copy { display: inline-flex; align-items: center; gap: 6px; }
.code-copy svg { width: 14px; height: 14px; flex: none; }
.code-copy__check { display: none; }
.code-copy.done .code-copy__icon { display: none; }
.code-copy.done .code-copy__check { display: block; }
.code-copy.done { color: var(--accent-2); border-color: rgba(53, 211, 153, .45); }