/* Только системные шрифты и локальные ресурсы: никаких внешних CDN. */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --text: #14192b;
  --muted: #5b6478;
  --line: #e1e5ef;
  --accent: #1f4fd1;
  --accent-ink: #ffffff;
  --warn-bg: #fff7e6;
  --warn-line: #f0b84d;
  --todo: #b42318;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1320; --bg-alt: #161b2c; --text: #e8ebf3; --muted: #9aa3b8;
    --line: #262d44; --accent: #5b82ff; --warn-bg: #2b2414; --warn-line: #b8862b; --todo: #ff8a80;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; font-size: 16px; }
a { color: var(--accent); }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.todo { color: var(--todo); font-weight: 600; background: rgba(180, 35, 24, .08); padding: 0 4px; border-radius: 4px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-tagline { font-size: 12px; font-weight: 400; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--accent); }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink) !important; padding: 12px 20px;
  border-radius: 10px; text-decoration: none; font-weight: 600; border: 1px solid var(--accent); text-align: center; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent) !important; }
.btn-small { padding: 7px 14px; font-size: 14px; }
button.btn { font: inherit; font-weight: 600; cursor: pointer; }
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; }

/* Личный кабинет */
.cab-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.cab-head h1 { margin: 0 0 4px; }
.cab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 40px; }
.cab-grid .card h2 { font-size: 20px; margin: 0 0 12px; }
.cab-grid .card h3 { margin: 16px 0 6px; font-size: 16px; }
.cab-grid .card p { margin: 0 0 10px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--bg-alt); border: 1px solid var(--line); }
.badge-ok { background: rgba(22, 163, 74, .12); border-color: rgba(22, 163, 74, .5); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 24px; }
.sub-url { display: block; overflow-wrap: anywhere; font-size: 13px; padding: 8px 10px; border-radius: 8px;
  background: var(--bg-alt); border: 1px solid var(--line); user-select: all; }
.pay-form { display: flex; flex-direction: column; gap: 10px; }
.notice-ok { background: rgba(22, 163, 74, .10); border: 1px solid rgba(22, 163, 74, .45); margin: 12px 0; }
.notice-error { background: rgba(180, 35, 24, .08); border: 1px solid rgba(180, 35, 24, .45); margin: 12px 0; }
@media (max-width: 960px) { .cab-grid { grid-template-columns: 1fr; } }

.hero { padding: 64px 0 48px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; margin: 0 0 8px; }
h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.hero-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 20px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; }
.hc-row { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hc-row:last-child { border-bottom: 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: 8px; }
.dot.ok { background: #22a06b; }

.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
h2 { font-size: 28px; margin: 0 0 20px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.steps { padding-left: 20px; }
.steps li { margin-bottom: 10px; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; margin: 20px 0; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { font-size: 32px; font-weight: 700; }
.plan .period { color: var(--muted); }
.plan-note { margin: 0; font-size: 14px; color: var(--muted); }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-trial { grid-column: span 1; }

.notice { border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.notice-warn { background: var(--warn-bg); border: 1px solid var(--warn-line); }

details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }

.doc { max-width: 860px; padding-top: 40px; padding-bottom: 56px; }
.doc h2 { font-size: 21px; margin: 32px 0 10px; }
.doc p, .doc li { overflow-wrap: anywhere; }
.table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.table th, .table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.table thead th { background: var(--bg-alt); }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 24px; }
.footer-title { font-weight: 700; margin-bottom: 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.requisites { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; overflow-wrap: anywhere; }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-grid, .cards, .plans, .footer-grid { grid-template-columns: 1fr; }
  .nav { gap: 12px; }
  .nav a { font-size: 14px; }
  .hero { padding: 40px 0 32px; }
}
