/* ============================================================================
   SEO Bot — design system (light-first, evidence-led).
   Светлая база по умолчанию; тёмная — :root[data-theme="dark"].
   Алиасы (--panel/--accent/--cyan/--warning/--danger) сохранены, чтобы
   внутренние страницы (compare/verify/cabinet/...) авто-перекрасились.
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #FAF9F6; --surface: #FFFFFF; --surface-2: #F4F2EC;
  --text: #15191F; --muted: #566069; --faint: #8A929E;
  --line: #E7E4DC; --line-2: #D9D5CA;
  --field: #FFFFFF; --field-border: #C4BEB0;
  --brand: #0C6E62; --brand-deep: #0A574E; --brand-tint: #E4F0EC;
  --amber: #8A6200; --amber-tint: #F6EAD2; --rose: #9B2C3A; --rose-tint: #F5E2E3;
  --btn-text: #FFFFFF;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  /* legacy aliases — keep old class names working on internal pages */
  --panel: var(--surface); --panel-2: var(--surface-2); --accent: var(--brand);
  --cyan: var(--brand); --warning: var(--amber); --danger: var(--rose);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E1218; --surface: #161C24; --surface-2: #1B222C;
  --text: #EAEDF2; --muted: #99A2AF; --faint: #6B7480;
  --line: rgba(255,255,255,.10); --line-2: rgba(255,255,255,.17);
  --field: #1F2832; --field-border: rgba(255,255,255,.26);
  --brand: #2FBFA6; --brand-deep: #7FE0CF; --brand-tint: rgba(47,191,166,.12);
  --amber: #E2B25A; --amber-tint: rgba(226,178,90,.13); --rose: #E78592; --rose-tint: rgba(231,133,146,.12);
  --btn-text: #08130F;
  --panel: var(--surface); --panel-2: var(--surface-2); --accent: var(--brand);
  --cyan: var(--brand); --warning: var(--amber); --danger: var(--rose);
}

/* ---- base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
a { color: inherit; }
img, svg { max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; margin-top: 0; letter-spacing: -.01em; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; margin-bottom: 20px; }
h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; margin-bottom: 16px; }
h3 { font-size: 20px; line-height: 1.2; margin-bottom: 10px; }
p { margin-bottom: 0; }

.eyebrow, .card-label {
  font-family: var(--font-mono);
  color: var(--brand);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lead { max-width: 62ch; color: var(--muted); font-size: 19px; line-height: 1.55; }
.muted, .small { color: var(--muted); }
.small { font-size: 14px; }

/* ---- layout containers ---- */
.site-header, .footer, .trust-bar, .section, .hero, .wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section > .eyebrow { margin-bottom: 10px; }
.section-head { max-width: 760px; margin-bottom: 28px; }

/* ---- header / nav ---- */
.site-header {
  display: flex; align-items: center; gap: 24px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-family: var(--font-display); }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand); color: #fff;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
}
.nav { display: flex; align-items: center; gap: 22px; margin-left: 8px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.nav a:hover { color: var(--text); }
.auth-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.auth-actions .secondary-button { padding: 9px 13px; font-size: 13.5px; }
.auth-user {
  max-width: 220px; color: var(--muted); font-size: 13px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- buttons / chips ---- */
button, .telegram-button, .secondary-button, .mobile-sticky-cta, .btn {
  border: 0; border-radius: 10px;
  padding: 13px 18px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .05s ease, color .15s ease;
}
button, .telegram-button, .mobile-sticky-cta {
  background: var(--brand); color: var(--btn-text);
}
button:hover, .telegram-button:hover, .mobile-sticky-cta:hover { background: var(--brand-deep); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: wait; }
.secondary-button {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-2);
}
.secondary-button:hover { border-color: var(--brand); color: var(--brand); }
.secondary-link { display: inline-flex; margin-top: 14px; color: var(--brand); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.secondary-link:hover { text-decoration: underline; }

.e-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 26px; padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--line-2);
}
.e-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.e-chip.ok { background: var(--brand-tint); color: var(--brand-deep); border-color: transparent; }
.e-chip.warn { background: var(--amber-tint); color: var(--amber); border-color: transparent; }
.e-chip.danger { background: var(--rose-tint); color: var(--rose); border-color: transparent; }

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 48px; align-items: center;
  padding: 64px 0 56px;
}
.hero-copy { min-width: 0; }
.hero .lead { margin-bottom: 18px; }
.disclaimer, .next-step {
  max-width: 64ch; color: var(--amber);
  background: var(--amber-tint);
  border: 1px solid color-mix(in srgb, var(--amber) 28%, transparent);
  border-radius: 10px; padding: 13px 15px; font-size: 14.5px; line-height: 1.5;
}
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ---- first-fact form ---- */
.domain-form {
  margin-top: 26px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 1px 2px rgba(21,25,31,.04);
}
.domain-form label { display: block; margin-bottom: 9px; color: var(--muted); font-size: 14px; font-weight: 500; }
.input-row { display: flex; gap: 10px; }
input, select, textarea {
  min-width: 0; width: 100%;
  border: 1px solid var(--field-border); background: var(--field);
  color: var(--text); border-radius: 10px; padding: 14px 14px;
  font: inherit; font-size: 15px;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-tint); border-color: var(--brand); }
.microcopy { margin: 11px 0 0; color: var(--muted); font-size: 13px; }
.form-message { min-height: 22px; margin: 10px 0 0; color: var(--rose); font-size: 14px; }
.form-hint { margin: -2px 0 2px; color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ---- fact / result card + states ---- */
.result-card {
  min-height: 520px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(21,25,31,.07);
}
.fact-meta { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 18px 0; }
.fact-meta div {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; background: var(--surface-2);
}
dt { color: var(--muted); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
dd { margin: 5px 0 0; font-weight: 600; font-size: 15px; }
.limitation { color: var(--muted); font-size: 14.5px; }
.blocked {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; background: var(--surface-2); margin-top: 16px;
}
.blocked p { margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.blocked ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.next-step { margin-top: 16px; }
.telegram-button { display: inline-flex; margin-top: 20px; }
/* ---- M1: counter / wall / quota states карточки first-fact ---- */
.counter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 16px; }
.counter-found { color: var(--muted); font-size: 16px; margin-top: 6px; }
.counter-state .btn, .wall-state .telegram-button { margin-top: 18px; }
/* [trust-proof] «Мы проверили ваш сайт» — спокойный блок узнаваемых фактов над счётчиком */
.site-facts {
  margin-bottom: 18px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--brand-tint);
}
.site-facts-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.site-facts-list li { color: var(--muted); font-size: 15px; }
.site-facts-list b { color: var(--text); font-weight: 600; word-break: break-word; }
/* [hotfix] поле ввода кода Telegram-входа: читаемое (белое в светлой, корректное в тёмной),
   код по центру; кнопка рядом (а не под полем во всю ширину). Те же --field/--field-border. */
.tg-login-step { margin-top: 14px; }
.tg-login-step .small { margin: 4px 0; color: var(--muted); font-size: 14px; }
.tg-login-confirm { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.tg-login-confirm input {
  flex: 1; width: auto; text-align: center; letter-spacing: 5px; font-size: 18px;
  background: var(--field); color: var(--text); border: 1px solid var(--field-border);
}
.tg-login-confirm input::placeholder { letter-spacing: 5px; color: var(--faint); }
.tg-login-confirm .btn { flex: 0 0 auto; margin-top: 0; }
.save-check-panel {
  margin-top: 18px; padding: 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--brand-tint);
}
.save-check-panel p { margin-bottom: 8px; font-size: 14.5px; }
.save-check-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.auth-inline-status { min-height: 20px; margin: 10px 0 0; color: var(--brand-deep); font-size: 13px; }

.hidden { display: none !important; }
.loading-state { display: grid; place-items: center; min-height: 360px; text-align: center; color: var(--muted); }
.loader {
  width: 40px; height: 40px;
  border: 4px solid var(--line-2); border-top-color: var(--brand);
  border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 18px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- trust strip (slim) ---- */
.trust-bar {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px; padding: 0 0 64px;
}
.trust-bar div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.trust-bar strong { display: block; color: var(--brand); margin-bottom: 4px; font-weight: 600; }
.trust-bar span, .section p, .steps p, .faq p { color: var(--muted); }

/* ---- two tools ---- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 18px; margin-top: 26px; }
.tool {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; background: var(--surface);
}
.tool.tool-primary { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 14px 36px rgba(12,110,98,.08); }
.tool .tool-kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--brand); }
.tool p { color: var(--muted); }
.tool .e-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.tool .btn, .tool .secondary-button { margin-top: auto; align-self: flex-start; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 26px; }
.steps article {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; background: var(--surface);
}
.steps span {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--brand-tint); color: var(--brand-deep);
  font-family: var(--font-mono); font-weight: 500; margin-bottom: 14px;
}
.steps h3 { font-size: 18px; }

/* ---- evidence section ---- */
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 14px; margin-top: 24px; }
.ev {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 20px; background: var(--surface);
}
.ev h3 { font-size: 17px; margin-bottom: 6px; }
.ev p { color: var(--muted); font-size: 14.5px; }
.lvl { display: inline-flex; gap: 5px; margin: 4px 0 10px; }
.lvl i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.lvl i.on { background: var(--brand); }
.ev .tag {
  display: inline-block; margin-top: 12px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-deep);
}
.ev.ev-need .lvl i.on { background: var(--amber); }
.ev.ev-need .tag { background: var(--amber-tint); color: var(--amber); }
.ev-wont {
  margin-top: 24px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr);
  gap: 28px; align-items: start;
  background: var(--rose-tint);
  border: 1px solid color-mix(in srgb, var(--rose) 24%, transparent);
  border-radius: 16px; padding: 26px;
}
.ev-wont ul { margin: 0; display: grid; gap: 9px; color: var(--text); padding-left: 18px; }
.ev-wont li::marker { color: var(--rose); }

/* ---- FAQ (slim accordion) ---- */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 22px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 500; font-size: 18px;
  padding: 18px 40px 18px 0; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); color: var(--brand); font-size: 22px; line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0 0 18px; color: var(--muted); max-width: 78ch; }

/* ---- final CTA ---- */
.final-cta {
  text-align: center; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 20px;
  padding: 56px 24px;
}
.final-cta .domain-form { max-width: 640px; margin: 24px auto 0; text-align: left; background: var(--surface); }

/* ---- footer ---- */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 96px; color: var(--muted); border-top: 1px solid var(--line);
  flex-wrap: wrap; font-size: 14.5px;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a, .footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--brand); }

/* ---- mobile sticky CTA ---- */
.mobile-sticky-cta { display: none; }

/* ============================================================================
   AUTH MODAL (рестайл; всё поведение и id из JS сохранены)
   ========================================================================== */
.auth-modal {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 20px;
  background: color-mix(in srgb, var(--text) 45%, transparent);
}
.auth-dialog {
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  position: relative;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); padding: 28px;
  box-shadow: 0 30px 80px rgba(21,25,31,.28);
}
.auth-close {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  background: transparent; color: var(--muted); border: 1px solid var(--line-2);
  border-radius: 9px; font-size: 18px;
}
.auth-close:hover { color: var(--text); border-color: var(--brand); }
/* ---- registration/login modal UI fix (batch B) ---- */
#authSubmit:disabled { cursor: not-allowed; }
#authSubmit.is-loading { cursor: wait; }
body.modal-open { overflow: hidden; }
.auth-copy { color: var(--muted); font-size: 14.5px; }
.auth-form { display: grid; gap: 11px; margin-top: 4px; }
.auth-form label { color: var(--muted); font-size: 14px; font-weight: 500; }
.auth-form button { margin-top: 4px; }
.auth-link {
  background: none; border: none; color: var(--brand);
  padding: 4px 0; font-size: 14px; width: auto; cursor: pointer;
  text-align: left; justify-self: start;
}
.auth-link:hover { text-decoration: underline; }
.consent-row { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.consent-row input { width: auto; margin-top: 2px; flex: none; }
.consent-row a { color: var(--brand); }
.reset-channel { display: flex; gap: 16px; font-size: 14px; color: var(--muted); }
.reset-channel label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.reset-channel input { width: auto; flex: none; }
.check-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.check-list li { padding-left: 24px; position: relative; color: var(--text); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ---- theme toggle (FLIP: light default, dark via data-theme="dark") ---- */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 8px 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); font-weight: 500; font-size: 13.5px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle:focus-visible { outline: 3px solid var(--brand-tint); outline-offset: 2px; }
.theme-toggle .theme-toggle-icon { font-size: 15px; line-height: 1; }
/* default = light active → show "switch to dark" label (.theme-on-light) */
.theme-toggle .theme-on-light { display: inline; }
.theme-toggle .theme-on-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-on-light { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-on-dark { display: inline; }

/* ============================================================================
   INTERNAL-PAGE CLASSES (Spec 2 — оставлены; авто-перекраска через токены)
   ========================================================================== */
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 80;
  padding: 10px 12px; border-radius: 10px; background: var(--brand);
  color: var(--btn-text); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.header { border-bottom: 1px solid var(--line); }
.header-bar { min-height: 72px; display: flex; align-items: center; }
.header .nav { width: 100%; justify-content: space-between; }
.nav-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-links a, .breadcrumb a, .footer-grid a { color: var(--muted); text-decoration: none; }
.nav-links a:hover, .breadcrumb a:hover, .footer-grid a:hover { color: var(--text); }
.header-cta { margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 18px; border-radius: 10px;
  border: 1px solid var(--brand); background: var(--brand); color: var(--btn-text);
  font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
a.btn, .btn { color: var(--btn-text); }
.breadcrumb { margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.page-hero { padding: 56px 0 34px; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card, .level-row, .note { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.card { padding: 18px; }
.card.acid { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); background: var(--brand-tint); }
.soft { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: minmax(160px, .35fr) 1fr; gap: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.kv dt, .kv dd { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--text); font-weight: 600; background: var(--surface-2); font-family: var(--font-sans); text-transform: none; font-size: 14px; }
.kv dd { color: var(--muted); }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.level-row, .note { padding: 16px; margin-bottom: 12px; }
/* internal-page CTA: консолидация повторяющегося центрированного CTA-блока
   (был инлайн на verify/methodology/compare/for-agencies/sample-report/privacy/terms).
   Значения 1:1 со старыми инлайн-стилями — рендер идентичен. */
.section.cta .wrap { text-align: center; }
.section.cta h2 { max-width: 720px; margin: 0 auto; }
.section.cta .lead { max-width: 620px; margin: 14px auto 22px; }
.footer .wrap { width: 100%; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; width: 100%; padding: 28px 0 20px; }
.footer-grid h4, .footer .footer-h { margin: 0 0 10px; color: var(--text); font-size: 15px; font-weight: 600; font-family: var(--font-sans); }
.footer-grid a { display: block; margin: 7px 0; font-size: 14px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 14px 0 22px; color: var(--muted); font-size: 14px; }

/* ---- comparison table .matrix (compare.php) ---- */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.matrix th, .matrix td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
.matrix th { background: var(--surface-2); font-weight: 600; color: var(--text); }
.matrix tr:last-child td { border-bottom: 0; }
.matrix td { color: var(--muted); }
.matrix b { color: var(--text); }
.matrix .hl, .matrix th.hl { background: color-mix(in srgb, var(--brand) 12%, transparent); }
.matrix th.hl { color: var(--text); }

/* ---- DQS upload widget (verify.php) ---- */
.dqs-form { display: grid; gap: 10px; max-width: 560px; }
.dqs-form select, .dqs-form input[type="file"] { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--field-border); background: var(--field); color: var(--text); }
.dqs-form select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23808a96' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; }
.dqs-form input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 12px; border-radius: 8px;
  border: 1px solid var(--field-border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.dqs-form label { font-weight: 600; font-size: 14px; }
.dqs-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.dqs-status { font-size: 14px; min-height: 1em; }
.dqs-status.ok { color: var(--brand); }
.dqs-status.warn { color: var(--amber); }
.dqs-verdict { border-left: 4px solid var(--line); }
.dqs-verdict.dqs-green { border-left-color: var(--brand); }
.dqs-verdict.dqs-yellow { border-left-color: var(--amber); }
.dqs-verdict.dqs-red { border-left-color: var(--rose); }
.dqs-verdict h3 { font-size: 17px; }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .nav { display: none; }
  .header .nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .ev-wont { grid-template-columns: 1fr; gap: 18px; }
  .trust-bar, .steps, .grid-3, .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 680px) {
  body { padding-bottom: 76px; }
  .input-row { flex-direction: column; }
  button, .telegram-button, .secondary-button { width: 100%; justify-content: center; }
  .trust-bar, .steps, .fact-meta, .grid-2, .grid-3, .footer-grid, .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; }
  .kv dd { padding-top: 0; }
  .header-bar { min-height: 64px; }
  .header-cta { margin-left: 0; width: 100%; }
  .header-cta .btn { width: 100%; }
  .site-header { min-height: 64px; gap: 12px; }
  .auth-actions { gap: 8px; }
  .auth-user { max-width: 150px; }
  .auth-actions .secondary-button { width: auto; padding: 9px 11px; }
  .hero { padding: 28px 0 36px; }
  h1 { font-size: 34px; }
  .save-check-actions { display: grid; }
  .final-cta { padding: 40px 20px; }
  .footer { justify-content: flex-start; }
  .mobile-sticky-cta {
    position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 20;
    display: flex; justify-content: center; box-shadow: 0 16px 42px rgba(21,25,31,.22);
  }
}
@media (max-width: 640px) {
  .matrix { font-size: 13px; }
  .matrix th, .matrix td { padding: 10px; }
}
