/* ============================================================
   CryptoSafe for Word — лендинг ТехКонсалт Автоматизация
   Светлая корпоративная тема: белый фон, золото, «окна блоков»
   ============================================================ */

:root {
  --gold: #ca8a04;
  --gold-dark: #a16207;
  --gold-light: #eab308;
  --gold-pale: #fdf6e3;
  --ink: #1c1917;
  --muted: #6b6257;
  --muted-2: #8a8175;
  --line: #ece5d8;
  --warm: #faf8f3;
  --warm-2: #f4efe4;
  --white: #ffffff;
  --green: #15803d;
  --red: #b91c1c;
  --shadow: 0 18px 50px rgba(28, 25, 23, 0.07);
  --shadow-sm: 0 6px 22px rgba(28, 25, 23, 0.06);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold-dark); }
img { max-width: 100%; display: block; }
svg { display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(28, 25, 23, 0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { height: 30px; width: auto; max-width: 280px; }
.brand-copy strong { display: block; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.brand-gold { color: var(--gold); }
.brand-copy small { display: block; font-size: 10px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 1px; }

.main-nav { display: flex; align-items: center; gap: 1px; }
.main-nav a {
  color: #4b453d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 8px;
  border-radius: 10px;
  transition: 0.18s;
  white-space: nowrap;
}
.header-actions .btn-small { padding: 9px 12px; font-size: 13px; }
.main-nav a:hover { background: var(--warm-2); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 600;
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  padding: 13px 20px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(135deg, #f2bb2e, var(--gold));
  color: #1c1917;
  box-shadow: 0 8px 22px rgba(202, 138, 4, 0.22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(202, 138, 4, 0.3); }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #d9cdb7; background: var(--warm); }
.btn-small { padding: 10px 15px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 54px 0 10px; }
.hero-grid { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 44px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-pale);
  border: 1px solid #f3e3b6;
  padding: 6px 11px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; }
.accent { color: var(--gold-dark); }
.hero-lead { font-size: 18px; color: var(--muted); margin-top: 20px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; font-size: 13px; color: var(--muted-2); }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 15px; height: 15px; color: var(--gold); }

/* Document mock */
.doc-mock {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.doc-bar { display: flex; align-items: center; gap: 8px; padding: 11px 15px; background: var(--warm); border-bottom: 1px solid var(--line); }
.doc-dots { display: flex; gap: 5px; }
.doc-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ddd0b8; display: block; }
.doc-title { font-size: 12px; color: var(--muted); margin-left: 6px; }
.doc-body { padding: 22px 22px 24px; font-size: 13.5px; color: #3f3a33; line-height: 1.75; }
.doc-body p { margin-bottom: 10px; }
.doc-body .hl {
  background: #fff3c4;
  border-bottom: 2px solid var(--gold-light);
  padding: 1px 3px;
  border-radius: 3px;
}
.doc-token {
  display: inline-block;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12.5px;
  background: var(--ink);
  color: #fde68a;
  padding: 2px 7px;
  border-radius: 6px;
}
.doc-pane {
  margin: 18px 0 0;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.doc-pane-badge {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--gold-pale);
  border: 1px solid #f0dfae;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dark);
  flex-shrink: 0;
}
.doc-pane-badge svg { width: 19px; height: 19px; }
.doc-pane-text strong { display: block; font-size: 13px; color: var(--ink); }
.doc-pane-text span { font-size: 12px; color: var(--muted-2); }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 34px 0 6px; }
.metric {
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px;
}
.metric b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.metric span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ---------- Windows / sections ---------- */
.section { padding: 22px 0; }
.win {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--warm);
}
.win-ico {
  width: 22px; height: 22px; border-radius: 7px;
  background: #fbecc4;
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.win-ico svg { width: 13px; height: 13px; }
.win-name { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.win-name span { color: var(--muted-2); font-weight: 500; }
.win-dots { display: flex; gap: 4px; margin-left: auto; }
.win-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d8ccb6; display: block; }
.win-body { padding: 30px 32px; }

.section-head { max-width: 720px; margin-bottom: 26px; }
.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); line-height: 1.14; letter-spacing: -0.025em; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.step-num {
  width: 30px; height: 30px; border-radius: 9px;
  background: #fbecc4; color: var(--gold-dark);
  font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--muted); }

/* Split cards */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card {
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card h3 svg { width: 18px; height: 18px; color: var(--gold); }
.card ul { list-style: none; display: grid; gap: 8px; }
.card li { display: flex; gap: 9px; font-size: 14px; color: #4b453d; }
.card li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; }
.card li.ok svg { color: var(--green); }
.card li.no svg { color: var(--red); }
.card-note { font-size: 13px; color: var(--muted-2); margin-top: 12px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--white);
  transition: 0.18s;
}
.feature:hover { border-color: #e2d4ba; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.feature-ico {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gold-pale); border: 1px solid #f1e0b4;
  color: var(--gold-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.feature-ico svg { width: 18px; height: 18px; }
.feature h3 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.feature p { font-size: 13.5px; color: var(--muted); }

/* Security */
.security-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin-top: 18px; }
.security-list div { display: flex; gap: 9px; font-size: 14px; color: #4b453d; }
.security-list svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--gold); }
.callout {
  margin-top: 20px;
  border-left: 3px solid var(--gold);
  background: var(--gold-pale);
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  font-size: 14px;
  color: #4b453d;
}

/* Pricing */
.plans { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 22px; align-items: start; }
.plan-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.plan-tab {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 11px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s;
  text-align: left;
}
.plan-tab small { display: block; font-size: 11.5px; color: var(--muted-2); font-weight: 500; margin-top: 2px; }
.plan-tab:hover { border-color: #e0d2b6; }
.plan-tab.active { border-color: var(--gold); background: var(--gold-pale); box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.08); }
.plan-tab.active small { color: var(--gold-dark); }

.plan-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--warm);
  padding: 22px;
}
.plan-price-row { display: flex; align-items: baseline; gap: 8px; }
.plan-price { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan-price small { font-size: 18px; font-weight: 700; }
.plan-period { font-size: 14px; color: var(--muted); margin-top: 4px; }
.plan-save { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--green); background: #ecfdf3; border: 1px solid #bbf7d0; border-radius: 999px; padding: 3px 9px; }
.plan-features { list-style: none; display: grid; gap: 8px; margin: 16px 0 18px; }
.plan-features li { display: flex; gap: 9px; font-size: 14px; color: #4b453d; }
.plan-features svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.plan-note { font-size: 12.5px; color: var(--muted-2); margin-top: 12px; line-height: 1.5; }

/* Install */
.install-steps { list-style: none; display: grid; gap: 12px; counter-reset: n; }
.install-steps li { display: flex; gap: 13px; align-items: flex-start; }
.install-steps li::before {
  counter-increment: n; content: counter(n);
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid #e6d7b8; background: var(--gold-pale); color: var(--gold-dark);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.install-steps b { color: var(--ink); }
.install-steps span { color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { display: grid; gap: 9px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 16px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { width: 17px; height: 17px; color: var(--gold-dark); transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item p { padding: 0 16px 15px; font-size: 14px; color: var(--muted); }

/* CTA band */
.cta-band {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fffaf0, #fdf0cf);
  border: 1px solid #f0dfae;
  padding: 34px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.15; }
.cta-band p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }

/* Footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--warm); padding: 34px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand strong { display: block; font-size: 14px; font-weight: 800; }
.footer-brand small { display: block; font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.07em; }
.footer-p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 10px; font-weight: 700; }
.footer-col ul { list-style: none; display: grid; gap: 7px; }
.footer-col a, .footer-col li { font-size: 13.5px; color: #4b453d; text-decoration: none; }
.footer-col a:hover { color: var(--gold-dark); }
.footer-req { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted-2); }

/* ---------- Legal pages ---------- */
.legal-page { max-width: 860px; margin: 34px auto 50px; padding: 0 24px; }
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.legal-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.legal-brand img { height: 28px; width: auto; }
.legal-brand strong { display: block; font-size: 13px; font-weight: 800; line-height: 1.1; }
.legal-brand small { display: block; font-size: 10px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.07em; }
.legal-back { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.legal-back:hover { color: var(--gold-dark); }
.legal-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); padding: 28px 30px; }
.legal-page h1 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; line-height: 1.18; margin-bottom: 10px; }
.legal-page h2 { font-size: 1.12rem; letter-spacing: -0.01em; margin: 24px 0 8px; color: var(--ink); }
.legal-page h3 { font-size: 1rem; margin: 18px 0 6px; color: var(--ink); }
.legal-page p { color: var(--muted); margin-bottom: 12px; font-size: 15px; }
.legal-page ul, .legal-page ol { margin: 0 0 14px 1.25rem; color: var(--muted); font-size: 15px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--gold-dark); }
.legal-page .legal-meta { font-size: 12.5px; color: var(--muted-2); margin-bottom: 20px; }
.legal-page .legal-box { background: var(--warm); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: 14px; color: var(--muted); }
.legal-page .legal-box p:last-child { margin-bottom: 0; }
.legal-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted-2); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1120px) {
  .brand-copy { display: none; }
  .brand img { height: 26px; max-width: 220px; }
  .main-nav {
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 11px 12px; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-ghost { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner { gap: 10px; }
  .brand img { height: 22px; max-width: 190px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-small { padding: 9px 10px; }
  .footer-brand img { height: 24px; max-width: 200px; }
  .hero { padding-top: 34px; }
  .hero-lead { font-size: 16px; }
  .win-body { padding: 20px 18px; }
  .steps, .split, .features, .security-list { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .brand img { height: 34px; }
  .brand-copy strong { font-size: 14px; }
}
