/* =========================================================================
   Noir — Corporate / merchant site
   Премиум-fintech эстетика: near-black ink, тёплая бумага, один глубокий
   акцент, editorial-заголовки (Fraunces). Без anti-censorship лексики.
   ========================================================================= */

:root {
  --bg:        #ffffff;
  --paper:     #f6f5f2;   /* тёплый off-white для секций */
  --paper-2:   #efede8;
  --ink:       #0a0c10;   /* near-black */
  --ink-2:     #14171d;
  --ink-soft:  #3b4250;
  --muted:     #6b7280;
  --line:      #e8e6e1;
  --line-2:    #dcd9d2;
  --line-dark: #20242c;
  --accent:    #2649d6;   /* глубокий синий — доверие, не «кричащий» */
  --accent-ink:#1a36a8;
  --accent-soft:#eef1fd;
  --on-dark:   #e9eaec;
  --on-dark-mut:#9aa0ab;
  --gold:      #c2a25a;   /* микро-акцент премиум, очень дозированно */
  --radius:    14px;
  --radius-lg: 20px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(10,12,16,.05);
  --shadow:    0 10px 30px -12px rgba(10,12,16,.18);
  --shadow-lg: 0 30px 60px -20px rgba(10,12,16,.30);
  --max: 1120px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ============================ Typography ============================ */
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3 { font-size: 1.12rem; line-height: 1.35; }
h4 { font-size: 1rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
p.lead { font-size: clamp(1.02rem, .96rem + .4vw, 1.18rem); color: var(--ink-soft); line-height: 1.65; }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--accent); opacity: .6;
}

/* ============================ Header ============================ */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; font-size: 1.18rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand .dot { color: var(--accent); }
.brand-sub { font-family: var(--mono); font-size: .64rem; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-left: 9px; transform: translateY(-1px); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a { color: var(--ink-soft); font-size: .92rem; font-weight: 500; transition: color .15s; }
.nav-links > a:hover { color: var(--ink); }

/* CTA в шапке — высокая специфичность, чтобы текст всегда был виден (фикс бага) */
.nav-links a.nav-cta,
a.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: #fff;
  padding: 9px 16px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; letter-spacing: -0.01em;
  transition: background .15s, transform .15s;
}
.nav-links a.nav-cta:hover,
a.nav-cta:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.nav-cta svg { width: 15px; height: 15px; }

.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ============================ Buttons ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-size: .96rem; font-weight: 500; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); color: var(--ink); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.5); }

/* ============================ Sections ============================ */
.section { padding: clamp(64px, 4vw + 40px, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.soft { background: var(--paper); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================ Hero (dark, premium) ============================ */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(72px, 6vw + 40px, 128px) 0 clamp(64px, 5vw, 104px);
}
.hero::before { /* мягкое холодное свечение */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(38,73,214,.30), transparent 60%),
    radial-gradient(700px 500px at 8% 110%, rgba(38,73,214,.12), transparent 55%);
  pointer-events: none;
}
.hero::after { /* тонкая сетка-текстура */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  pointer-events: none; opacity: .6;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: #aeb9ff; }
.hero .eyebrow::before { background: #aeb9ff; }
.hero h1 { color: #fff; }
.hero h1 .accent { color: #aeb9ff; font-style: italic; }
.hero p.lead { color: var(--on-dark-mut); max-width: 520px; margin: 22px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: .85rem; color: var(--on-dark-mut); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.18); }
.hero-trust svg { width: 15px; height: 15px; color: #7e8aa8; }

/* Hero card */
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hero-card .card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.hero-card .pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #cdd3e6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 5px 10px; border-radius: 999px; }
.hero-card .price { color: #fff; font-family: var(--serif); font-size: 1.5rem; }
.hero-card .price small { font-family: var(--sans); font-size: .8rem; color: var(--on-dark-mut); font-weight: 400; }
.hero-card dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0; }
.hero-card dt, .hero-card dd { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .92rem; }
.hero-card dt { color: var(--on-dark-mut); }
.hero-card dd { margin: 0; color: #fff; font-weight: 500; text-align: right; }

/* ============================ Stat strip ============================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.stat { padding: 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--serif); font-size: 1.9rem; line-height: 1; color: var(--ink); }
.stat .l { margin-top: 8px; font-size: .85rem; color: var(--muted); }

/* ============================ Feature grid ============================ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feat .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feat .ico svg { width: 22px; height: 22px; }
.feat h3 { margin-bottom: 8px; }
.feat p { margin: 0; font-size: .94rem; }

/* ============================ Steps ============================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.step .num { font-family: var(--mono); font-size: .8rem; color: var(--accent); letter-spacing: .1em; }
.step h3 { margin: 12px 0 8px; }
.step p { margin: 0; font-size: .94rem; }

/* ============================ Pricing ============================ */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tier { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; transition: transform .18s, box-shadow .18s; }
.tier:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tier.recommended { border-color: var(--ink); box-shadow: var(--shadow); position: relative; }
.tier-badge { position: absolute; top: -11px; left: 22px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; padding: 5px 11px; border-radius: 999px; }
.tier-name { font-size: .9rem; color: var(--muted); }
.tier-price { font-family: var(--serif); font-size: 2.2rem; line-height: 1; margin: 10px 0 4px; color: var(--ink); }
.tier-price .per { font-family: var(--sans); font-size: .82rem; color: var(--muted); font-weight: 400; }
.tier-total { font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.tier ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.tier li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: .9rem; color: var(--ink-soft); }
.tier li svg { position: absolute; left: 0; top: 3px; width: 15px; height: 15px; color: var(--accent); }
.pay-note { margin-top: 22px; font-size: .85rem; color: var(--muted); }

/* ============================ Dark trust section ============================ */
.section.dark { background: var(--ink); color: var(--on-dark); }
.section.dark .eyebrow { color: #aeb9ff; }
.section.dark .eyebrow::before { background: #aeb9ff; }
.section.dark h2 { color: #fff; }
.section.dark p { color: var(--on-dark-mut); }
.section.dark .feat { background: rgba(255,255,255,.04); border-color: var(--line-dark); }
.section.dark .feat:hover { border-color: rgba(255,255,255,.2); box-shadow: none; }
.section.dark .feat h3 { color: #fff; }
.section.dark .feat p { color: var(--on-dark-mut); }
.section.dark .feat .ico { background: rgba(174,185,255,.12); color: #aeb9ff; }

/* ============================ FAQ ============================ */
.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 22px 40px 22px 0; font-size: 1.04rem; font-weight: 500; color: var(--ink); position: relative; font-family: var(--sans); }
.faq-q::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--muted); font-weight: 400; }
.faq-q[aria-expanded="true"]::after { content: "–"; color: var(--accent); }
.faq-a { display: none; padding: 0 0 22px; color: var(--ink-soft); font-size: .98rem; }
.faq-item.open .faq-a { display: block; }

/* ============================ CTA band ============================ */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { max-width: 560px; margin: 0 auto 26px; }

/* ============================ Footer ============================ */
.footer { background: var(--ink); color: var(--on-dark-mut); padding: 64px 0 34px; }
.footer a { color: var(--on-dark-mut); }
.footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer h4 { color: #fff; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.foot-col a { display: block; margin-bottom: 9px; font-size: .9rem; }
.foot-brand .brand { color: #fff; }
.foot-brand p { color: var(--on-dark-mut); font-size: .9rem; max-width: 300px; margin-top: 14px; }
.foot-bottom { border-top: 1px solid var(--line-dark); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .84rem; color: #6b7280; }
.foot-disc { margin-top: 14px; font-size: .78rem; color: #5b616c; line-height: 1.6; }

/* ============================ Doc / legal pages ============================ */
.doc { padding: clamp(48px, 4vw, 80px) 0 clamp(64px, 5vw, 96px); }
.doc .wrap { max-width: 820px; }
.doc-meta { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-bottom: 18px; letter-spacing: .02em; }
.doc h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); margin-bottom: .4em; }
.doc h2 { font-family: var(--sans); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; margin: 40px 0 12px; padding-top: 6px; }
.doc h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.doc p, .doc li { font-size: .98rem; line-height: 1.72; color: var(--ink-soft); }
.doc strong { color: var(--ink); }
.doc section + section { margin-top: 8px; }

.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 26px 0 36px; }
.toc h4 { margin: 0 0 10px; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 6px; font-size: .9rem; }
.toc a { color: var(--ink-soft); }
.toc a:hover { color: var(--accent); }

.kv-table { width: 100%; border-collapse: collapse; margin: 18px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .94rem; }
.kv-table th, .kv-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.kv-table th { background: var(--paper); font-weight: 500; color: var(--muted); width: 34%; }
.kv-table tr:last-child th, .kv-table tr:last-child td { border-bottom: 0; }

.doc table:not(.kv-table) { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
.doc table:not(.kv-table) th, .doc table:not(.kv-table) td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
.doc table:not(.kv-table) th { background: var(--paper); font-weight: 600; }

/* ============================ Responsive ============================ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 460px; }
  .feat-grid, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 18px; background: #fff; border-bottom: 1px solid var(--line); padding: 22px 24px; display: none; }
  .nav-links.open { display: flex; }
  .burger { display: block; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
