/* PROKAT — site styles, aligned to the official brandbook.
   Type: Sora (headings/wordmark) · Manrope (body) · Space Mono (technical labels).
   Color: blue #2F62F4 · navy #0E2149 · gold #F4B73E (single accent) · bg #F4F7FB. */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&family=Manrope:wght@400;500;600;700;800&family=Golos+Text:wght@600;700;800;900&family=Space+Mono:wght@400;700&family=Roboto+Mono:wght@400;700&display=swap');

:root {
  --bg: #F4F7FB;
  --surface: #ffffff;
  --ink: #14181D;
  --muted: #5B6678;
  --border: #E1E7F0;
  --blue: #2F62F4;
  --blue-d: #0A57C9;
  --navy: #0E2149;
  --gold: #F4B73E;
  --green: #19C37D;
  --grad: linear-gradient(145deg, #2E90FF 0%, #1577EA 50%, #0A57C9 100%);
  --radius: 16px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(14,33,73,.05), 0 14px 40px rgba(14,33,73,.07);
  /* Sora & Space Mono have NO Cyrillic → per-glyph fallback to Montserrat / Roboto Mono
     (both cover Kazakh). Latin (PROKAT wordmark) stays Sora; Cyrillic headings = Montserrat. */
  --font-head: 'Sora', 'Golos Text', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'Space Mono', 'Roboto Mono', monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1120;
    --surface: #121A2C;
    --ink: #EAF0FE;
    --muted: #93A1BC;
    --border: #223049;
    --blue: #4D84FF;
    --blue-d: #2F6BFF;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 40px rgba(0,0,0,.4);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -.02em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* eyebrow / technical label — Space Mono */
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
}
.eyebrow.on-dark { color: #7FA6FF; }

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: none; display: block; }
.wordmark { font-family: var(--font-head); font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--ink); }
.wordmark i { color: var(--blue); font-style: normal; }
.on-navy .wordmark { color: #fff; }
.on-navy .wordmark i { color: #7FA6FF; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a.navlink { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav a.navlink:hover { color: var(--ink); text-decoration: none; }

/* Language switcher */
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang button {
  border: 0; background: transparent; color: var(--muted);
  padding: 6px 12px; font-family: var(--font-mono); font-weight: 700; font-size: 12px; cursor: pointer; line-height: 1;
}
.lang button.active { background: var(--blue); color: #fff; }

/* Hero — navy brand carrier with blueprint grid */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: #fff;
  padding: 84px 0 72px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 80% 90% at 30% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 30% 20%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { margin-bottom: 18px; display: inline-block; }
.hero h1 { font-size: clamp(32px, 5.5vw, 54px); line-height: 1.05; margin: 0 0 18px; color: #fff; font-weight: 800; }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: #B7C3DC; max-width: 600px; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head);
  font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 12px;
  cursor: pointer; border: 1px solid transparent; letter-spacing: -.01em;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { filter: brightness(1.05); text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { border-color: #fff; text-decoration: none; }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--surface); }
.section-head { margin-bottom: 34px; }
.section-head .eyebrow { display: block; margin-bottom: 10px; }
.section-title { font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 8px; font-weight: 700; }
.section-sub { color: var(--muted); margin: 0; font-size: 17px; max-width: 640px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .nav .navlink { display: none; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); }
.ic {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue);
  display: grid; place-items: center;
}
.ic svg { width: 26px; height: 26px; }

/* Category tiles with monoline pictograms */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px;
  transition: border-color .2s, transform .2s;
}
.cat:hover { border-color: var(--blue); transform: translateY(-2px); }
.cat svg { width: 40px; height: 40px; color: var(--navy); }
@media (prefers-color-scheme: dark) { .cat svg { color: var(--ink); } }
.cat .label { font-weight: 700; font-size: 15px; font-family: var(--font-head); }

.steps { display: grid; gap: 18px; max-width: 720px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step .n { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-family: var(--font-head); display: grid; place-items: center; }
.step h3 { margin: 5px 0 4px; font-size: 18px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); }

/* Gold accent statement strip */
.gold-strip { background: var(--gold); color: var(--navy); border-radius: var(--radius); padding: 28px 26px; }
.gold-strip .eyebrow { color: color-mix(in srgb, var(--navy) 60%, transparent); }
.gold-strip h3 { font-family: var(--font-head); font-weight: 800; font-size: 22px; margin: 6px 0 6px; }
.gold-strip p { margin: 0; color: color-mix(in srgb, var(--navy) 78%, transparent); }

/* Legal pages */
.legal { padding: 48px 0 72px; }
.legal .doc { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 6px; font-weight: 800; }
.legal .meta { color: var(--muted); font-family: var(--font-mono); font-size: 13px; margin: 0 0 8px; }
.legal .draft-note { background: color-mix(in srgb, var(--gold) 16%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 18px 0 28px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; padding-top: 8px; font-weight: 700; }
.legal h3 { font-size: 18px; margin: 22px 0 8px; font-weight: 700; }
.legal p, .legal li { color: var(--ink); }
.legal .placeholder { color: var(--blue-d); font-weight: 700; font-family: var(--font-mono); font-size: .95em; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg); font-family: var(--font-head); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 42px 0; color: var(--muted); font-size: 15px; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--font-head); font-weight: 600; }
.copyright { margin-top: 24px; font-size: 13px; font-family: var(--font-mono); }


/* Final legal document pages */
.legal .doc-subtitle { margin: 0 0 16px; color: var(--muted); font-size: 17px; font-weight: 600; }
.legal .document-content > p { margin: 11px 0; }
.legal .legal-bullet { padding-left: 20px; text-indent: -12px; margin: 7px 0; }
.related-docs { margin-bottom: 24px; font-family: var(--font-head); font-weight: 700; }
.legal-hub .hub-intro { color: var(--muted); font-size: 17px; max-width: 680px; }
.legal-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.legal-card-grid.one { grid-template-columns: minmax(0,1fr); }
.legal-card { display: flex; min-height: 145px; flex-direction: column; justify-content: space-between; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); transition: transform .18s ease, border-color .18s ease; }
.legal-card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--blue); }
.legal-card strong { font-family: var(--font-head); font-size: 18px; }
.legal-card span { color: var(--muted); margin-top: 16px; }
.legal .btn { margin: 8px 0; color: #fff; }
@media(max-width:680px){
  .legal { padding-top: 30px; }
  .legal-card-grid { grid-template-columns: 1fr; }
  .legal h2 { font-size: 20px; }
  .nav { gap: 10px; }
  .nav a.navlink:first-child { display: none; }
  .lang button { padding: 6px 9px; }
}

/* ---------------------------------------------------------------- */
/* Support page                                                     */
/* ---------------------------------------------------------------- */
.contact-card p { line-height: 1.7; }
.contact-card a { font-weight: 700; }
.contact-card .placeholder { color: var(--blue-d); font-weight: 700; font-family: var(--font-mono); font-size: .95em; }

a.card { display: block; color: inherit; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--blue); transform: translateY(-2px); text-decoration: none; }
a.card h3 { color: var(--ink); }

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0 18px;
}
.faq details[open] { border-color: color-mix(in srgb, var(--blue) 45%, var(--border)); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; padding: 15px 0;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; font-family: var(--font-mono); font-weight: 700;
  font-size: 20px; line-height: 1; color: var(--blue);
}
.faq details[open] summary::after { content: '–'; }
.faq details > p { margin: 0 0 16px; color: var(--muted); }

.card ul { margin: 10px 0 14px; padding-left: 20px; color: var(--muted); }
.card ul li { margin-bottom: 6px; }
