/* ═══════════════════════════════════════════════════════
   PAYWAY — Design System
   Style: Air — midnight atmospheric canvas, ghost buttons,
   Haze light-card islands, compressed poster type, no fills
   ═══════════════════════════════════════════════════════ */

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

:root {
  --whiteout: #ffffff;
  --haze:     #f5f5f5;
  --ink:      #1b1b1b;
  --void:     #000000;
  --twilight: #426188;
  --signal:   #2b7fff;

  --mist:     rgba(255,255,255,0.55);
  --hairline: rgba(255,255,255,0.14);
  --hairline-ink: rgba(0,0,0,0.1);

  --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-compressed: 'Anton', sans-serif;
  --font-cursive: 'Caveat', cursive;

  --sp-4:4px; --sp-8:8px; --sp-12:12px; --sp-16:16px; --sp-20:20px;
  --sp-24:24px; --sp-32:32px; --sp-48:48px; --sp-52:52px; --sp-64:64px;
  --sp-80:80px; --sp-120:120px;

  --r-input:4px; --r-btn:8px; --r-img:11px; --r-card:12px; --r-pill:9999px;

  --nav-h: 72px;
  --max-w: 1150px;
}

html { scroll-scroll-behavior: smooth; scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--whiteout);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-32); }

/* ═══════════════════════════════════════
   LANGUAGE VISIBILITY (see main.js note)
═══════════════════════════════════════ */
.lang-ru { display: none; }
html.is-ru .lang-ky { display: none; }
html.is-ru .lang-ru { display: revert; }

/* ═══════════════════════════════════════
   ATMOSPHERIC BACKDROP (CSS-built, no photography)
═══════════════════════════════════════ */
.atmosphere { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.atmosphere::before, .atmosphere::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(90px);
}
.atmosphere::before { width: 520px; height: 520px; background: rgba(66,97,136,0.35); top: -160px; left: 8%; }
.atmosphere::after { width: 460px; height: 460px; background: rgba(43,127,255,0.14); bottom: -160px; right: 6%; }
.glass-shape {
  position: absolute; border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  background: linear-gradient(155deg, rgba(255,255,255,0.10), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(2px);
}

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-32);
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-24);
}
.nav-logo { display: flex; align-items: center; gap: var(--sp-8); text-decoration: none; flex-shrink: 0; }
.nav-logo svg { width: 30px; height: 30px; }
.nav-logo span { font-weight: 700; font-size: 18px; color: var(--whiteout); letter-spacing: -0.01em; }
.nav-logo img { height: 55px; width: auto; object-fit: contain; }

.nav-links { display: flex; gap: var(--sp-24); list-style: none; align-items: center; }
.nav-links a {
  font-weight: 500; font-size: 14px; color: var(--mist); text-decoration: none;
  padding: var(--sp-8) 2px; transition: color 0.2s;
}
.nav-links a:hover { color: var(--whiteout); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-12); flex-shrink: 0; }

.lang-toggle { display: flex; align-items: center; background: rgba(255,255,255,0.08); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.lang-btn {
  font-weight: 600; font-size: 12px; letter-spacing: 0.02em; color: var(--mist);
  background: transparent; border: none; border-radius: var(--r-pill); padding: 6px 13px; cursor: pointer; transition: all 0.2s;
}
.lang-btn.active { background: var(--whiteout); color: var(--ink); }

/* ═══════════════════════════════════════
   BUTTONS — ghost only, no fills
═══════════════════════════════════════ */
.btn-ghost {
  display: inline-flex; align-items: center; gap: var(--sp-8);
  background: transparent; border: 1px solid var(--whiteout); color: var(--whiteout);
  font-weight: 500; font-size: 14px; border-radius: var(--r-btn);
  padding: 10px 16px; text-decoration: none; cursor: pointer; transition: background 0.2s;
  white-space: nowrap;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

.btn-haze {
  display: inline-flex; align-items: center; gap: var(--sp-8);
  background: var(--haze); border: 1px solid var(--ink); color: var(--ink);
  font-weight: 500; font-size: 14px; border-radius: var(--r-btn);
  padding: 8px 16px; text-decoration: none; cursor: pointer; transition: background 0.2s;
  white-space: nowrap;
}
.btn-haze:hover { background: #e8e8e8; }

/* Underline link */
.link-underline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border-bottom: 2px solid currentColor; color: var(--signal);
  font-weight: 500; font-size: 14px; text-decoration: none; padding: 0 var(--sp-8) 2px;
}
.link-underline.on-light { color: var(--ink); }

/* Mobile burger */
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--whiteout); border-radius: 2px; transition: all 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--void); border-bottom: 1px solid var(--hairline);
  padding: var(--sp-16) var(--sp-24) var(--sp-24); z-index: 899;
  flex-direction: column; gap: 2px;
  transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-drawer.open { display: flex; transform: translateY(0); opacity: 1; pointer-events: all; }
.nav-drawer a {
  font-weight: 500; font-size: 16px; color: var(--whiteout); text-decoration: none;
  padding: var(--sp-16) 0; border-bottom: 1px solid var(--hairline);
}
.nav-drawer a:last-of-type { border: none; }
.nav-drawer .drawer-cta { margin-top: var(--sp-16); text-align: center; }
.nav-drawer .lang-toggle { margin-top: var(--sp-16); align-self: flex-start; }

/* ═══════════════════════════════════════
   SECTION / TYPOGRAPHY
═══════════════════════════════════════ */
.section { padding: var(--sp-120) var(--sp-32); position: relative; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto var(--sp-48); position: relative; z-index: 1; }

.eyebrow {
  font-weight: 500; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--twilight); margin-bottom: var(--sp-16);
}
.eyebrow.on-light { color: var(--signal); }

h1.headline {
  font-weight: 500; font-size: clamp(32px, 5vw, 56px); line-height: 1.05;
  color: var(--whiteout); letter-spacing: -0.01em;
}
h1.headline .cursive { font-family: var(--font-cursive); font-style: italic; font-weight: 500; font-size: 1.15em; color: var(--whiteout); }

h2.heading { font-weight: 500; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; color: var(--whiteout); letter-spacing: -0.01em; }
.subtext { font-weight: 400; font-size: 16px; line-height: 1.5; color: var(--mist); max-width: 560px; }
.subtext.center { margin: var(--sp-16) auto 0; text-align: center; }

/* ═══════════════════════════════════════
   COMPRESSED POSTER HEADLINE
═══════════════════════════════════════ */
.poster {
  padding: var(--sp-80) var(--sp-32);
  text-align: center;
  overflow: hidden;
}
.poster h2 {
  font-family: var(--font-compressed);
  font-weight: 400;
  font-size: clamp(56px, 13vw, 160px);
  line-height: 0.85;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--whiteout);
}
.poster p.tag {
  margin-top: var(--sp-24);
  font-family: var(--font);
  font-weight: 500; font-size: 16px; color: var(--mist);
}

/* ═══════════════════════════════════════
   HAZE CARD — light island on dark canvas
═══════════════════════════════════════ */
.haze-card {
  background: var(--haze); border-radius: var(--r-card); padding: var(--sp-20);
  color: var(--ink);
}

/* ═══════════════════════════════════════
   FEATURE GRID (services)
═══════════════════════════════════════ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-24); position: relative; z-index: 1; }
.feature-card { background: var(--haze); border-radius: var(--r-card); padding: var(--sp-32); color: var(--ink); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--r-btn); border: 1px solid var(--hairline-ink);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: var(--sp-20);
}
.feature-title { font-weight: 700; font-size: 19px; color: var(--ink); margin-bottom: var(--sp-12); }
.feature-desc { font-weight: 400; font-size: 14px; color: #4a4a4a; line-height: 1.55; }

/* ═══════════════════════════════════════
   ADVANTAGES — flat list on dark canvas
═══════════════════════════════════════ */
.accordion-list { display: flex; flex-direction: column; position: relative; z-index: 1; }
.accordion-item { display: flex; align-items: flex-start; gap: var(--sp-16); padding: var(--sp-24) 0; border-bottom: 1px solid var(--hairline); }
.accordion-item:first-child { border-top: 1px solid var(--hairline); }
.accordion-icon {
  width: 40px; height: 40px; border-radius: var(--r-btn); flex-shrink: 0;
  border: 1px solid var(--hairline); color: var(--whiteout);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.accordion-title { font-weight: 600; font-size: 18px; color: var(--whiteout); margin-bottom: var(--sp-8); }
.accordion-desc { font-weight: 400; font-size: 14px; color: var(--mist); line-height: 1.55; }

/* ═══════════════════════════════════════
   DOCUMENT CARDS (rules / offer)
═══════════════════════════════════════ */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-24); position: relative; z-index: 1; }
.doc-card { background: var(--haze); border-radius: var(--r-card); padding: var(--sp-32); color: var(--ink); }
.doc-title { font-weight: 700; font-size: 19px; color: var(--ink); margin-bottom: var(--sp-16); }
.doc-desc { font-weight: 400; font-size: 14px; color: #4a4a4a; line-height: 1.6; margin-bottom: var(--sp-20); }
.doc-list { display: flex; flex-direction: column; gap: var(--sp-8); margin-bottom: var(--sp-24); }
.doc-list-item { display: flex; align-items: flex-start; gap: var(--sp-8); font-size: 14px; color: var(--ink); font-weight: 500; }
.doc-list-item::before { content: '—'; color: var(--signal); flex-shrink: 0; }

/* Reports — pill list */
.report-list { display: flex; flex-wrap: wrap; gap: var(--sp-12); position: relative; z-index: 1; }
.report-pill {
  display: inline-flex; align-items: center; gap: var(--sp-8);
  background: rgba(255,255,255,0.08); border-radius: var(--r-pill);
  padding: 12px 20px; text-decoration: none; color: var(--whiteout);
  font-weight: 500; font-size: 14px; transition: background 0.2s;
}
.report-pill:hover { background: rgba(255,255,255,0.15); }

/* ═══════════════════════════════════════
   TRUST BAR (badges row on dark canvas)
═══════════════════════════════════════ */
.trust-bar { display: flex; justify-content: center; gap: var(--sp-48); flex-wrap: wrap; position: relative; z-index: 1; }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust-num { font-weight: 700; font-size: 32px; color: var(--whiteout); line-height: 1; }
.trust-label { margin-top: var(--sp-8); font-size: 13px; color: var(--mist); font-weight: 500; }

/* ═══════════════════════════════════════
   CONTACTS
═══════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-16); position: relative; z-index: 1; }
.info-card { background: var(--haze); border-radius: var(--r-card); padding: var(--sp-24); color: var(--ink); display: flex; gap: var(--sp-16); align-items: flex-start; }
.info-icon {
  width: 40px; height: 40px; border-radius: var(--r-btn); border: 1px solid var(--hairline-ink);
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0;
}
.info-label { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #6b6b6b; margin-bottom: var(--sp-4); }
.info-val { font-weight: 500; font-size: 14px; color: var(--ink); line-height: 1.5; }
.info-val a { color: var(--signal); text-decoration: none; }
.info-val a:hover { text-decoration: underline; }

.license-note { margin-top: var(--sp-24); position: relative; z-index: 1; }
.license-note p { font-size: 13px; color: var(--mist); line-height: 1.6; max-width: 640px; margin: 0 auto; text-align: center; }
.license-note p + p { margin-top: var(--sp-8); }

/* ═══════════════════════════════════════
   CTA (final)
═══════════════════════════════════════ */
.cta-final { text-align: center; position: relative; z-index: 1; }
.cta-final h2 { margin-bottom: var(--sp-16); }
.cta-final p { max-width: 480px; margin: 0 auto var(--sp-32); }
.cta-actions { display: flex; gap: var(--sp-16); justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer { background: var(--void); border-top: 1px solid var(--hairline); padding: var(--sp-64) var(--sp-32) var(--sp-24); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-32); padding-bottom: var(--sp-32); }
.footer-logo { display: flex; align-items: center; gap: var(--sp-8); margin-bottom: var(--sp-16); }
.footer-logo svg { width: 26px; height: 26px; }
.footer-logo span { font-weight: 700; font-size: 16px; color: var(--whiteout); }
.footer-brand p { font-size: 14px; color: var(--mist); line-height: 1.6; max-width: 260px; }
.footer-col h4 { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mist); margin-bottom: var(--sp-16); opacity: 0.7; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--sp-12); }
.footer-col a { font-weight: 500; font-size: 14px; color: var(--whiteout); text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--sp-24); border-top: 1px solid var(--hairline); flex-wrap: wrap; gap: var(--sp-12); }
.footer-bottom p { font-size: 12px; color: var(--mist); opacity: 0.6; }

/* ═══════════════════════════════════════
   FADE-UP + TOAST
═══════════════════════════════════════ */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(60px);
  background: var(--haze); color: var(--ink); padding: 12px 24px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 13px; z-index: 9000; opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ═══════════════════════════════════════
   RESPONSIVE — TABLET ≤ 1080px
═══════════════════════════════════════ */
@media (max-width: 1080px) {
  .nav-inner { padding: 0 var(--sp-24); }
  .nav-links { display: none; }
  .nav-actions .lang-toggle { display: none; }
  .nav-burger { display: flex; }
  .container { padding: 0 var(--sp-24); }
  .section { padding: var(--sp-80) var(--sp-24); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-24); }
  .poster h2 { font-size: clamp(48px, 16vw, 110px); }
}

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE ≤ 640px
═══════════════════════════════════════ */
@media (max-width: 640px) {
  .nav-inner { padding: 0 var(--sp-16); }
  .nav-actions .btn-ghost { display: none; }
  .container { padding: 0 var(--sp-16); }
  .section { padding: var(--sp-64) var(--sp-16); }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--sp-24); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; flex-direction: column; }
  .trust-bar { gap: var(--sp-24); }
  .report-list { flex-direction: column; }
  .report-pill { width: 100%; justify-content: center; }
  .info-card { flex-direction: column; }
}
