/* Safekom Design System v2.1 - 2026-07-28 */
/* Inter — самостоятельно размещённый шрифт (public_html/fonts/), без
   обращений к внешним доменам (fonts.googleapis.com/gstatic.com). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

:root {
  --bg: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --panel: #FFFFFF;
  --ink: #0F172A;
  --ink-soft: #64748B;
  --line: #E2E8F0;
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-light: #C7D2FE;
  --accent-ink: #312E81;
  --accent-sky: #0EA5E9;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 32px rgba(15, 23, 42, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="dark"] {
  --bg: #0B1120;
  --bg-secondary: #111A2E;
  --panel: #111A2E;
  --ink: #F1F5F9;
  --ink-soft: #94A3B8;
  --line: #1E293B;
  --accent: #818CF8;
  --accent-hover: #A5B4FC;
  --accent-light: #4338CA;
  --accent-ink: #C7D2FE;
  --accent-sky: #38BDF8;
  --success: #34D399;
  --warning: #FBBF24;
  --danger: #F87171;
}
:root[data-theme="light"] {
  --bg: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --panel: #FFFFFF;
  --ink: #0F172A;
  --ink-soft: #64748B;
  --line: #E2E8F0;
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-light: #C7D2FE;
  --accent-ink: #312E81;
  --accent-sky: #0EA5E9;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
}

* { box-sizing: border-box; }
.hidden { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400; line-height: 1.6; font-size: 15px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
h1, h2, h3, h4, h5, h6 { font-weight: 600; margin: 0; }
h1 { font-size: 32px; line-height: 1.3; }
h2 { font-size: 24px; line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.4; }
h1 .accent, .brand .accent { color: var(--accent); }
a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); text-decoration: underline; }
strong { color: var(--ink); font-weight: 600; }

/* --- Карточка гостевой ссылки (share.html) — та же структура, что
   .auth-card в app/css/app.css, но этот файл её не наследует напрямую. --- */
.screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  padding: 32px; width: 360px; max-width: calc(100vw - 32px);
}
.tagline { color: var(--ink-soft); font-size: 14px; margin: 6px 0 20px; }
.auth-card .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.auth-card .field-label { font-size: 12px; color: var(--ink-soft); }
.auth-card .field-value { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.auth-card .field-value input {
  flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg); color: var(--ink); font: inherit;
}

button, .btn {
  font: inherit; font-weight: 500; line-height: 1.2; cursor: pointer;
  padding: 10px 18px; border-radius: var(--radius-md); border: 1px solid var(--accent);
  background: var(--accent); color: white; text-decoration: none;
  display: inline-block; vertical-align: middle; margin: 0;
  transition: all var(--transition-fast); box-shadow: var(--shadow-sm);
}
button:hover:not(:disabled), .btn:hover:not(:disabled) {
  background: var(--accent-hover); box-shadow: var(--shadow-md); transform: translateY(-1px);
}
button:active:not(:disabled), .btn:active:not(:disabled) { transform: translateY(0); }
button:disabled, .btn:disabled { opacity: 0.5; cursor: not-allowed; }
button:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

button.ghost, .btn.ghost {
  background: transparent; color: var(--ink-soft); border-color: var(--line);
  box-shadow: none;
}
button.ghost:hover, .btn.ghost:hover { background: var(--bg-secondary); border-color: var(--ink-soft); }

button.secondary, .btn.secondary {
  background: var(--bg-secondary); color: var(--accent);
  border-color: var(--line); box-shadow: none;
}
button.secondary:hover, .btn.secondary:hover { background: var(--line); border-color: var(--accent); }

button.danger, .btn.danger { background: var(--danger); border-color: var(--danger); }
button.danger:hover, .btn.danger:hover { background: #DC2626; border-color: #DC2626; }

button.small, .btn.small { padding: 6px 12px; font-size: 13px; }
.btn.lg { padding: 14px 28px; font-size: 16px; }

/* Лендинг */
.landing-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
  background: var(--panel); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 100;
}
.brand {
  font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none;
  letter-spacing: -0.5px;
}
.landing-nav { display: flex; align-items: center; gap: 16px; }
.nav-link { color: var(--ink-soft); font-size: 14px; font-weight: 500; }
.nav-link:hover { color: var(--ink); }

.landing { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Hero: тёмно-синий градиент с сеткой-безопасности */
.hero {
  position: relative; overflow: hidden;
  text-align: center; padding: 96px 0 80px;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(79, 70, 229, 0.35) 0%, transparent 60%),
    linear-gradient(160deg, #0F172A 0%, #1E1B4B 55%, #0B1120 100%);
  color: #F1F5F9;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background-image:
    linear-gradient(rgba(129,140,248,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129,140,248,.35) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero h1 { font-size: 52px; max-width: 820px; margin: 0 auto 20px; color: #F8FAFC; position: relative; }
.hero h1 .grad {
  background: linear-gradient(90deg, #818CF8, #38BDF8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 18px; color: #CBD5E1; max-width: 700px; margin: 0 auto 32px; line-height: 1.6; position: relative; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.hero .btn { border: none; }
.hero .btn.ghost { background: rgba(148,163,184,.12); color: #E2E8F0; border: 1px solid rgba(148,163,184,.35); box-shadow: none; }
.hero .btn.ghost:hover { background: rgba(148,163,184,.22); }

/* Бейдж над заголовком hero */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  color: #C7D2FE; background: rgba(129,140,248,.14);
  border: 1px solid rgba(129,140,248,.35); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 24px; position: relative;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; }

/* Мокап продукта в hero */
.hero-mock {
  position: relative; margin: 48px auto 0; max-width: 880px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(148,163,184,.25);
  border-radius: var(--radius-lg); padding: 24px; text-align: left;
  backdrop-filter: blur(6px); box-shadow: var(--shadow-lg);
}
.hero-mock .mock-top {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(148,163,184,.2); padding-bottom: 14px; margin-bottom: 16px;
}
.hero-mock .mock-dots { display: flex; gap: 6px; }
.hero-mock .mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(148,163,184,.4); }
.hero-mock .mock-title { font-size: 13px; color: #94A3B8; margin-left: 8px; }
.hero-mock .mock-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
.mock-side {
  background: rgba(255,255,255,.03); border: 1px solid rgba(148,163,184,.15);
  border-radius: var(--radius-md); padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.mock-side .mi {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: #CBD5E1;
  padding: 6px 8px; border-radius: 6px;
}
.mock-side .mi.active { background: rgba(129,140,248,.18); color: #E0E7FF; }
.mock-side .mi svg { flex-shrink: 0; }
.mock-rows { display: flex; flex-direction: column; gap: 10px; }
.mock-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(148,163,184,.15);
  border-radius: var(--radius-md); padding: 12px 14px;
}
.mock-row .mr-ic { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(129,140,248,.18); }
.mock-row .mr-name { flex: 1; }
.mock-row .mr-name b { display: block; font-size: 14px; color: #F1F5F9; font-weight: 600; }
.mock-row .mr-name span { font-size: 12px; color: #94A3B8; }
.mock-row .mr-chip { font-size: 11px; color: #34D399; border: 1px solid rgba(52,211,153,.35); border-radius: 999px; padding: 2px 8px; }

@media (max-width: 768px) {
  .hero-mock .mock-grid { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}

/* ZK схема */
.zk { text-align: center; padding: 60px 0; }
.zk h2 { margin-bottom: 12px; }
.zk-sub { color: var(--ink-soft); max-width: 700px; margin: 0 auto 32px; font-size: 16px; line-height: 1.6; }
.zk-diagram {
  width: 100%; max-width: 960px; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel); box-shadow: var(--shadow-md);
}
.zk-note { font-size: 13px; color: var(--ink-soft); max-width: 700px; margin: 20px auto 0; }

/* Почему доверять */
.trust { padding: 60px 0; }
.trust h2 { text-align: center; margin-bottom: 32px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.trust-item {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}
.trust-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--accent-light); }
.trust-icon {
  width: 46px; height: 46px; border-radius: 12px; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-light), var(--bg-secondary));
  margin-bottom: 14px;
}
.trust-icon svg { flex-shrink: 0; }
.trust-item h3 { margin: 0 0 10px; font-size: 18px; }
.trust-item p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* Персональные данные / ФЗ */
.pd { padding: 60px 0; background: var(--bg-secondary); }
.pd h2 { text-align: center; margin-bottom: 28px; }
.pd-card {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm); max-width: 900px; margin: 0 auto;
}
.pd-card ul { margin: 16px 0; padding-left: 24px; }
.pd-card li { font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; line-height: 1.6; }
.pd-card p { line-height: 1.6; }
.pd-foot { font-size: 12px; color: var(--ink-soft); font-style: italic; margin: 16px 0 0; }

/* FAQ */
.faq { padding: 60px 0; }
.faq h2 { text-align: center; margin-bottom: 32px; }
.faq details {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 0 20px; margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 15px;
  transition: color var(--transition-fast);
}
.faq summary:hover { color: var(--accent); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { font-size: 14px; color: var(--ink-soft); padding: 16px 0; margin: 0; line-height: 1.6; }

.how { padding: 60px 0; text-align: center; background: var(--bg-secondary); }
.how h2 { margin-bottom: 32px; }
.steps { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 240px; max-width: 320px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px; text-align: left;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: white; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; margin-bottom: 12px;
}
.step p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

.cta {
  text-align: center; padding: 60px 24px;
  background: linear-gradient(135deg, #4F46E5 0%, #2563EB 100%);
  color: white; border-radius: var(--radius-lg); margin: 40px 0;
}
.cta h2 { color: white; margin-bottom: 24px; }
.cta .btn { background: white; color: #4338CA; border-color: white; }
.cta .btn:hover { background: var(--bg); color: #4338CA; }

.landing-footer {
  border-top: 1px solid var(--line); padding: 40px 24px; text-align: center;
  font-size: 13px; color: var(--ink-soft); background: var(--bg-secondary);
}
.landing-footer p { margin: 8px 0; }
.landing-footer-links { margin: 16px 0 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.landing-footer-links a { color: var(--ink-soft); font-weight: 500; }
.landing-footer-links a:hover { color: var(--accent); }

/* Тарифные карточки (pricing.html) */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.pricing-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px; position: relative;
}
.pricing-badge {
  align-self: flex-start; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em; color: var(--ink-soft); background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.pricing-badge-live { color: var(--accent-ink); border-color: var(--accent); }
.pricing-card h3 { font-size: 20px; margin: 4px 0 0; }
.pricing-price { font-size: 28px; font-weight: 700; }
.pricing-price-unit { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.pricing-annual-note { text-align: center; font-size: 13px; color: var(--ink-soft); margin: -8px 0 0; }
.pricing-desc { color: var(--ink-soft); font-size: 14px; margin: 0; }
.pricing-annual-discount { font-size: 12px; color: var(--accent); margin: 4px 0 0; font-weight: 500; }
.pricing-note { font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 8px; }
.pricing-features li { font-size: 13px; color: var(--ink-soft); padding-left: 20px; position: relative; }
/* Статусы фич: ok — работает, wip — в разработке, soon — обсуждается/план */
.pricing-features li.feat-ok::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pricing-features li.feat-wip::before { content: "🚧"; position: absolute; left: 0; }
.pricing-features li.feat-soon::before { content: "○"; position: absolute; left: 0; color: var(--ink-soft); }
.pricing-features li.feat-wip, .pricing-features li.feat-soon { opacity: 0.92; }
.pricing-legend { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; font-size: 12px; color: var(--ink-soft); margin: 20px 0 0; }
.pricing-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pricing-status-note { font-size: 12px; color: var(--ink-soft); font-style: italic; margin: 10px 0 0; }
.pricing-card .btn { margin-top: auto; text-align: center; }
.pricing-card .btn:disabled { cursor: not-allowed; opacity: 0.6; }

/* Юридические страницы (privacy.html, terms.html) */
.legal-hero { padding: 48px 0 24px; }
.legal .pd-card { text-align: left; }
.legal .pd-card h2 { font-size: 18px; margin: 24px 0 8px; }
.legal .pd-card h2:first-child { margin-top: 0; }
.legal .pd-card p { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.6; }
.legal .pd-card code { background: var(--bg); border-radius: 3px; padding: 1px 5px; font-size: 13px; }
.legal .pd-card ul { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* Таблица крипто-примитивов (security.html) */
.crypto-table-wrap { overflow-x: auto; margin: 0 0 16px; }
.crypto-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.crypto-table th, .crypto-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.crypto-table th { color: var(--ink-soft); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.02em; }
.crypto-table td { color: var(--ink); }
.crypto-table code { background: var(--bg); border-radius: 3px; padding: 1px 5px; font-size: 12px; }

@media (max-width: 768px) {
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }

  .landing-header { flex-direction: column; gap: 12px; padding: 12px 16px; }
  .landing-nav { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .landing-nav .btn { white-space: nowrap; }

  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 36px; }
  .lead { font-size: 16px; }
  .hero-actions { gap: 10px; }

  .hero-actions .btn { padding: 12px 20px; font-size: 14px; }
  .hero-actions .btn.lg { padding: 12px 20px; font-size: 14px; }

  .trust-grid { grid-template-columns: 1fr; }
  .steps { gap: 14px; }
  .step { min-width: auto; max-width: none; }

  .trust, .how, .pd, .faq, .cta { padding: 40px 0; }
  .pd-card { padding: 20px; }
  .cta { margin: 30px 0; padding: 40px 20px; }

  .landing { padding: 0 16px; }
}
