/* BPD — Sprint S2 stylesheet (hand-written: the host has no Node/Vite build) */

/* Self-hosted fonts (OFL 1.1) — no third-party CDN dependency */
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF, U+200C-200E;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+0300-036F, U+1E00-1EFF, U+2000-206F;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+0300-036F, U+1E00-1EFF, U+2000-206F;
}

:root {
  --brand-500: #FA0000;
  --brand-600: #D40000;
  --brand-700: #B00000;
  --brand-100: #FFDEDE;
  --brand-50:  #FFF3F3;

  --ink-950: #080B10;
  --ink-900: #0E1116;
  --ink-700: #232B36;
  --ink-500: #5A6473;
  --ink-400: #7C8797;
  --ink-200: #CBD2DB;
  --ink-100: #E5E9EF;
  --ink-50:  #F4F6F9;
  --white: #FFFFFF;

  --navy-900: #0A1A2F;
  --navy-700: #12345B;
  --tech-500: #00A3B8;
  --danger-600: #C0141C;
  --danger-700: #8E0F15;
  --danger-100: #FDE4E5;
  --success-600: #0F7A57;
  --success-100: #DFF5EC;

  --bg: var(--white);
  --bg-subtle: var(--ink-50);
  --surface: var(--white);
  --border: var(--ink-100);
  --border-strong: var(--ink-200);
  --border-control: #7C8797;
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-subtle: var(--ink-400);
  --link: var(--brand-700);
  --focus-ring: var(--brand-600);

  --font-latin: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-arabic: "Vazirmatn", "Noto Naskh Arabic", "Segoe UI", Tahoma, "Iranian Sans", sans-serif;
  --font-cyrillic: "Inter", "Noto Sans", "Segoe UI", Tahoma, sans-serif;
  --font-armenian: "Noto Sans Armenian", "Segoe UI", Arial, sans-serif;
  --font-body: var(--font-latin);

  --text-2xs: .6875rem; --text-xs: .75rem; --text-sm: .875rem; --text-md: 1rem;
  --text-lg: 1.125rem; --text-xl: 1.25rem; --text-2xl: 1.5rem; --text-3xl: 1.875rem;
  --text-4xl: 2.25rem; --text-5xl: 3rem;

  --leading-tight: 1.22; --leading-body: 1.65; --leading-arabic: 1.85;

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px; --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(8,11,16,.06);
  --shadow-sm: 0 1px 3px rgba(8,11,16,.08), 0 1px 2px rgba(8,11,16,.04);
  --shadow-md: 0 6px 16px rgba(8,11,16,.08), 0 2px 4px rgba(8,11,16,.04);
  --shadow-lg: 0 18px 40px rgba(8,11,16,.12);
  --shadow-brand: 0 10px 24px rgba(212,0,0,.24);

  --dur-fast: 120ms; --dur-base: 200ms;
  --ease: cubic-bezier(.2,.8,.2,1);

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 72px;
  --z-header: 100;
}

:root:lang(fa), :root:lang(ar), :root:lang(ckb), :root:lang(ps) {
  --font-body: var(--font-arabic);
  --leading-body: var(--leading-arabic);
}
:root:lang(ru), :root:lang(tg) { --font-body: var(--font-cyrillic); }
:root:lang(hy) { --font-body: var(--font-armenian); }

[data-theme="dark"] {
  --bg: var(--ink-950);
  --bg-subtle: #0B1017;
  --surface: #11171F;
  --border: #222C38;
  --border-strong: #2E3A49;
  --border-control: #6B7A8C;
  --text: #E9EDF2;
  --text-muted: #A7B0BD;
  --text-subtle: #7C8797;
  --link: #FF8A8A;
  --focus-ring: #FF8A8A;
  --shadow-md: 0 6px 16px rgba(0,0,0,.55);
  --shadow-lg: 0 18px 40px rgba(0,0,0,.6);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--text-md); line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: var(--leading-tight); letter-spacing: -.015em; font-weight: 700; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; inset-block-start: -100px; inset-inline-start: var(--space-4);
  background: var(--brand-600); color: #fff; padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm); z-index: 500; text-decoration: none;
}
.skip:focus { inset-block-start: var(--space-2); }

.build-banner {
  background: #1F2937; color: #F3F4F6; font-size: var(--text-xs);
  padding-block: var(--space-2);
}
.build-banner strong { color: #FDE68A; margin-inline-end: var(--space-2); }

.topbar {
  position: sticky; inset-block-start: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--border);
}
.topbar__inner { display: flex; align-items: center; gap: var(--space-6); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--text); }
.brand__mark {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--brand-600); color: #fff; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; box-shadow: var(--shadow-brand);
}
.brand__name { display: block; font-size: var(--text-md); font-weight: 700; }
.brand__sub { display: block; font-size: var(--text-2xs); color: var(--text-muted); letter-spacing: .02em; }

.nav { display: flex; gap: var(--space-5); margin-inline-start: auto; }
.nav a { color: var(--text-muted); text-decoration: none; font-size: var(--text-sm); font-weight: 500; }
.nav a:hover { color: var(--text); }

.tools { display: flex; align-items: center; gap: var(--space-2); }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--surface); color: var(--text); font-size: var(--text-sm);
}
.icon-btn:hover { background: var(--bg-subtle); }

.langmenu { position: relative; }
.langmenu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 40px; padding-inline: var(--space-3); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); font-size: var(--text-sm); background: var(--surface);
}
.langmenu > summary::-webkit-details-marker { display: none; }
.langmenu ul {
  position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 6px);
  min-width: 240px; margin: 0; padding: var(--space-2); list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); z-index: var(--z-header);
  max-height: 70vh; overflow: auto;
}
.langmenu a {
  display: flex; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-size: var(--text-sm);
}
.langmenu a:hover { background: var(--bg-subtle); }
.langmenu a.is-current { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
[data-theme="dark"] .langmenu a.is-current { background: #1F1214; color: #FFB4B4; }
.langmenu .code { color: var(--text-subtle); font-size: var(--text-2xs); text-transform: uppercase; }

.hero { display: grid; gap: var(--space-10); grid-template-columns: 1.15fr .85fr; align-items: center; padding-block: var(--space-20); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-block: var(--space-12); } }
.hero h1 { font-size: clamp(2rem, 4.2vw, var(--text-5xl)); }
.lead { color: var(--text-muted); font-size: var(--text-lg); margin-block: var(--space-4) var(--space-8); max-width: 48ch; }
.eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-700); margin-block-end: var(--space-3); }
[data-theme="dark"] .eyebrow { color: #FF8A8A; }
.note { font-size: var(--text-xs); color: var(--text-muted); margin-block-start: var(--space-6); max-width: 52ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding-inline: var(--space-5); border-radius: var(--radius-md);
  border: 1px solid transparent; font: inherit; font-size: var(--text-sm); font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:focus-visible, .icon-btn:focus-visible, .langmenu > summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: 2px;
}
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-xs); }
.btn--primary:hover { background: var(--brand-700); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-control); }
.btn--ghost:hover { background: var(--bg-subtle); }

.hero__panel {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff; border-radius: var(--radius-xl); padding: var(--space-8); box-shadow: var(--shadow-lg);
}
.hero__panel .k { font-size: var(--text-2xs); letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.tick-list { margin: var(--space-5) 0 0; padding: 0; list-style: none; color: #DCE4EE; font-size: var(--text-sm); }
.tick-list li { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-2); border-block-end: 1px solid rgba(255,255,255,.12); }
.tick-list li:last-child { border-block-end: 0; }
.tick-list .muted { opacity: .55; font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .08em; }

.section { padding-block: var(--space-16); border-block-start: 1px solid var(--border); }
.section--tint { background: var(--bg-subtle); border-radius: var(--radius-xl); }
.section__title { font-size: var(--text-3xl); margin-block-end: var(--space-2); }
.section__sub { color: var(--text-muted); font-size: var(--text-sm); max-width: 64ch; margin-block-end: var(--space-8); }

.grid { display: grid; gap: var(--space-6); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6); box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { font-size: var(--text-lg); margin-block-end: var(--space-2); }
.card p { color: var(--text-muted); font-size: var(--text-sm); }
.card__meta { display: flex; align-items: center; gap: var(--space-2); margin-block-end: var(--space-4); min-height: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); }
.card--market { border-inline-start: 3px solid var(--brand-500); }

.chip {
  display: inline-flex; align-items: center; padding: 2px var(--space-2);
  border-radius: var(--radius-pill); font-size: var(--text-2xs); font-weight: 700;
  background: var(--brand-100); color: var(--brand-700);
}
.chip--warn { background: #FDF0D9; color: #8A5300; }
[data-theme="dark"] .chip { background: #2A1416; color: #FFB4B4; }
[data-theme="dark"] .chip--warn { background: #2B2008; color: #F5C97A; }

.prose { max-width: 68ch; display: grid; gap: var(--space-4); color: var(--text-muted); }

.site-footer { border-block-start: 1px solid var(--border); margin-block-start: var(--space-16); padding-block-start: var(--space-12); background: var(--bg-subtle); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--space-8); padding-block-end: var(--space-8); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-weight: 700; }
.footer-title { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-subtle); margin-block-end: var(--space-3); }
.footer-meta { color: var(--text-muted); font-size: var(--text-sm); }
.lang-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  padding-block: var(--space-5); border-block-start: 1px solid var(--border);
  font-size: var(--text-xs); color: var(--text-muted);
}

/* ---------- S2: logo, page hero, breadcrumb, linked cards ---------- */
.brand__logo { display: block; width: 44px; height: 44px; }
.brand__logo img { display: block; width: 44px; height: 44px; object-fit: contain; }

.page-hero { padding-block: var(--space-12) var(--space-8); }
.page-hero h1 { font-size: clamp(1.75rem, 3.6vw, var(--text-4xl)); max-width: 22ch; }
.page-hero .lead { margin-block: var(--space-4) 0; }
.page-hero__split { display: grid; grid-template-columns: 1.25fr .75fr; gap: var(--space-10); align-items: start; }
@media (max-width: 900px) { .page-hero__split { grid-template-columns: 1fr; } }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); color: var(--text-muted); margin-block-end: var(--space-6);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--link); text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-block-start: var(--space-6); }
.chip--muted { background: var(--ink-100); color: var(--ink-600); font-weight: 600; }

.card--link {
  text-decoration: none; color: inherit; display: block; position: relative;
}
.card--link:hover h3 { color: var(--link); }
.card__more {
  position: absolute; inset-block-end: var(--space-5); inset-inline-end: var(--space-5);
  color: var(--brand-600); font-weight: 700; opacity: 0; transform: translateX(-4px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
[dir="rtl"] .card__more { transform: translateX(4px) scaleX(-1); }
.card--link:hover .card__more, .card--link:focus-visible .card__more { opacity: 1; transform: translateX(0); }

.side-panel {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff; border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow-md);
}
.side-panel .k { font-size: var(--text-2xs); letter-spacing: .16em; text-transform: uppercase; opacity: .75; }

/* ---------- S3: request form, alerts, reference box ---------- */
.form { display: grid; gap: var(--space-8); max-width: 760px; }
.form-step {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6); background: var(--surface); box-shadow: var(--shadow-xs);
}
.form-step legend { padding-inline: var(--space-2); font-weight: 700; font-size: var(--text-sm); color: var(--text-muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--space-2); align-content: start; }
.field label { font-size: var(--text-sm); font-weight: 600; }
.req { color: var(--brand-600); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: var(--space-3) var(--space-4);
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-control); border-radius: var(--radius-md);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: 2px;
}
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger-600); }
.err { font-size: var(--text-xs); color: var(--danger-600); font-weight: 600; }
.check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--text-muted); max-width: 760px; }
.check input { inline-size: 18px; block-size: 18px; margin-block-start: 3px; accent-color: var(--brand-600); }
.hp { position: absolute; inset-inline-start: -9999px; opacity: 0; block-size: 0; overflow: hidden; }

.alert { border-radius: var(--radius-md); padding: var(--space-4); font-size: var(--text-sm); }
.alert--error { background: var(--danger-100); color: var(--danger-700); border: 1px solid var(--danger-600); margin-block-end: var(--space-6); }
.alert ul { margin: var(--space-2) 0 0; padding-inline-start: var(--space-5); }

.ref-box {
  margin-block-start: var(--space-6); padding: var(--space-4) var(--space-5);
  border: 1px dashed var(--border-control); border-radius: var(--radius-md);
  display: inline-grid; gap: var(--space-1); background: var(--bg-subtle);
}
.ref-box .k { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-subtle); }
.ref { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: var(--text-lg); font-weight: 700; letter-spacing: .06em; }
.chip--ok { background: var(--success-100); color: var(--success-600); }
[data-theme="dark"] .chip--ok { background: #0D2A22; color: #7FE3BC; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }
table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
caption { text-align: start; padding: var(--space-4); color: var(--text-muted); font-size: var(--text-xs); }
th, td { padding: var(--space-3) var(--space-4); text-align: start; border-block-end: 1px solid var(--border); vertical-align: top; }
th[scope="row"] { inline-size: 38%; color: var(--text-muted); font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-block-end: 0; }

/* ---------- S5: FAQ accordion, contact list ---------- */
.faq-group { margin-block-end: var(--space-10); }
.faq {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); margin-block-end: var(--space-3);
  padding: var(--space-4) var(--space-5);
}
.faq[open] { border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.faq > summary {
  cursor: pointer; font-weight: 600; font-size: var(--text-md);
  list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); align-items: center;
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::after {
  content: "+"; color: var(--brand-600); font-weight: 700; font-size: var(--text-lg); flex: none;
}
.faq[open] > summary::after { content: "−"; }
.faq__body { margin-block-start: var(--space-3); color: var(--text-muted); font-size: var(--text-sm); line-height: var(--leading-body); }

.contact-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-3); font-size: var(--text-sm); }
.contact-list strong { color: var(--text); }
.alert p { margin-block-start: var(--space-2); }

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; gap: var(--space-3); }
}

/* ---------- S7: knowledge centre ---------- */
.article { max-width: 68ch; }
.article p { font-size: var(--text-lg); line-height: 1.8; color: var(--text); }
.article p + p { margin-block-start: var(--space-5); }
.pager { display: flex; gap: var(--space-3); align-items: center; justify-content: center; margin-block-start: var(--space-8); font-size: var(--text-sm); }
a.chip { text-decoration: none; }
a.chip:hover { background: var(--brand-200); }

/* ---------- S8: customer area ---------- */
.thread { display: grid; gap: var(--space-3); max-width: 760px; }
.bubble { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); background: var(--surface); }
.bubble--in { border-inline-start: 3px solid var(--brand-500); }
.bubble--out { background: var(--bg-subtle); }
.bubble__meta { font-size: var(--text-2xs); color: var(--text-subtle); text-transform: uppercase; letter-spacing: .08em; margin-block-end: var(--space-2); }
.bubble p { font-size: var(--text-sm); white-space: pre-line; }

/* ---------- S11: header search ---------- */
.topsearch { display: flex; align-items: center; gap: 0; }
.topsearch input {
  width: 150px; min-height: 40px; padding-inline: var(--space-3);
  border: 1px solid var(--border-control); border-start-start-radius: var(--radius-md);
  border-end-start-radius: var(--radius-md); border-inline-end: 0;
  font: inherit; font-size: var(--text-sm); background: var(--surface); color: var(--text);
}
.topsearch input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.topsearch button {
  min-height: 40px; padding-inline: var(--space-3); cursor: pointer;
  border: 1px solid var(--border-control); border-start-end-radius: var(--radius-md);
  border-end-end-radius: var(--radius-md); background: var(--bg-subtle); color: var(--text); font-size: var(--text-md);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (max-width: 1100px) { .topsearch { display: none; } }

/* ---------- S16: cookie consent banner ---------- */
.consent {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 450;
  background: var(--surface); border-block-start: 1px solid var(--border-strong);
  box-shadow: 0 -8px 24px rgba(8, 11, 16, .12);
}
.consent__inner { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; padding-block: var(--space-4); }
.consent__text { font-size: var(--text-sm); color: var(--text-muted); max-width: 70ch; }
.consent__text strong { color: var(--text); margin-inline-end: var(--space-2); }
.consent__text a { margin-inline-start: var(--space-2); }
.consent__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- S21: per-page hero slider ---------- */
.slider { position: relative; background: var(--ink-900); }
.slider__track {
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track:focus-visible { outline: 2px solid var(--brand-500); outline-offset: -2px; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.slider--hero .slide { aspect-ratio: 16 / 9; max-height: min(76vh, 640px); }
.slider--band .slide { aspect-ratio: 21 / 9; max-height: 360px; }
.slide > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide__body {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  gap: clamp(.4rem, 1vw, .9rem);
  padding: clamp(1rem, 4vw, 3.25rem);
  background: linear-gradient(to top, rgba(8,11,16,.88), rgba(8,11,16,.38) 48%, rgba(8,11,16,.04));
  color: #fff;
}
.slide--light .slide__body {
  background: linear-gradient(to top, rgba(255,255,255,.96), rgba(255,255,255,.6) 50%, rgba(255,255,255,.12));
  color: var(--ink-900);
}
.slide__title { font-size: clamp(1.3rem, 3vw, 2.6rem); line-height: 1.2; max-width: 26ch; margin: 0; }
.slider--band .slide__title { font-size: clamp(1.1rem, 2vw, 1.75rem); }
.slide__sub { font-size: clamp(.9rem, 1.25vw, 1.05rem); max-width: 58ch; margin: 0; opacity: .96; }
.slider--band .slide__sub { display: none; }
.slide__cta { margin-block-start: clamp(.4rem, 1.2vw, .9rem); }
.slider__nav {
  position: absolute; inset-block-end: clamp(.7rem, 1.6vw, 1.2rem); inset-inline-end: clamp(.7rem, 2vw, 2rem);
  display: flex; align-items: center; gap: .5rem;
}
.slider__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55);
  background: rgba(8,11,16,.45); color: #fff; font-size: 1.3rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  transition: background var(--dur-fast) var(--ease);
}
.slider__btn:hover { background: rgba(8,11,16,.75); }
.slider__dots { display: flex; gap: .4rem; padding-inline: .25rem; }
.slider__dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255,255,255,.5); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.slider__dot.is-active { background: var(--brand-500); transform: scale(1.3); }
.slider__btn:focus-visible, .slider__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 640px) {
  .slider--hero .slide { aspect-ratio: 4 / 5; max-height: none; }
  .slider--band .slide { aspect-ratio: 3 / 2; max-height: none; }
  .slide__body { padding-block-end: 4.25rem; }
  .slider__nav { inset-inline: 0; justify-content: center; }
}

/* ---------- S21: mobile navigation ---------- */
.mobilenav { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .mobilenav { display: block; margin-inline-start: auto; position: relative; }
  .mobilenav > summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
    min-height: 40px; padding-inline: var(--space-3); border: 1px solid var(--border-control);
    border-radius: var(--radius-md); font-size: var(--text-sm); background: var(--surface);
  }
  .mobilenav > summary::-webkit-details-marker { display: none; }
  .mobilenav ul {
    position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 6px);
    min-width: 220px; margin: 0; padding: var(--space-2); list-style: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); z-index: var(--z-header);
  }
  .mobilenav a { display: block; padding: var(--space-3); color: var(--text); text-decoration: none; font-size: var(--text-sm); border-radius: var(--radius-sm); }
  .mobilenav a:hover { background: var(--bg-subtle); }
  .brand__sub { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-block: var(--space-10); }
  .topbar__inner { gap: var(--space-3); }
  .tools .langmenu > summary span:last-child { display: none; }
  .section { padding-block: var(--space-10); }
  .page-hero { padding-block: var(--space-8) var(--space-6); }
  .footer-grid { gap: var(--space-6); }
}

/* ==========================================================================
   S22 — header hardening (long words, sticky bar), footer, editor, media
   ========================================================================== */

/* ---------- header ---------- */
.topbar {
  position: sticky; inset-block-start: 0; z-index: var(--z-header);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-block-end: 1px solid var(--border);
}
.brand { min-width: 0; }
.brand__text { min-width: 0; }
.brand__name { letter-spacing: .02em; }
.brand__sub { max-width: 28ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav { flex-wrap: wrap; justify-content: flex-end; min-width: 0; row-gap: var(--space-1); }
.nav a { white-space: nowrap; }

/* Cyrillic and Armenian labels are physically longer: one step smaller. */
html[lang="ru"] .nav a,
html[lang="tg"] .nav a,
html[lang="hy"] .nav a,
html[lang="tk"] .nav a { font-size: var(--text-2xs); letter-spacing: 0; }
html[lang="ru"] .brand__sub,
html[lang="tg"] .brand__sub,
html[lang="hy"] .brand__sub { display: none; }

@media (max-width: 1180px) {
  .nav { gap: var(--space-3); }
  .nav a { font-size: var(--text-2xs); }
}
@media (max-width: 1000px) {
  .topsearch input { width: 110px; }
}

/* ---------- footer ---------- */
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; }
.footer-text { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.7; margin-block: var(--space-3); max-width: 42ch; }
.footer-text p { margin: 0 0 var(--space-2); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.footer-legal a { color: var(--text-muted); text-decoration: none; }
.footer-legal a:hover { color: var(--text); text-decoration: underline; }
.footer-status { color: var(--text-subtle); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- rich content (what the editor produces) ---------- */
.prose h2 { font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--text); margin-block-start: var(--space-6); }
.prose h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text); margin-block-start: var(--space-5); }
.prose ul, .prose ol { margin: 0; padding-inline-start: 1.4rem; display: grid; gap: var(--space-2); }
.prose li { line-height: 1.7; }
.prose blockquote {
  margin: 0; padding: var(--space-3) var(--space-5); border-inline-start: 3px solid var(--brand-500);
  background: var(--bg-subtle); border-radius: var(--radius-md); color: var(--text);
}
.prose img, .prose video, .prose iframe { max-width: 100%; height: auto; border-radius: var(--radius-md); display: block; }
.prose figure { margin: 0; display: grid; gap: var(--space-2); }
.prose figcaption { font-size: var(--text-sm); color: var(--text-subtle); }
.prose a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
.prose code { font-size: .9em; background: var(--bg-subtle); padding: 1px 5px; border-radius: 4px; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.prose th, .prose td { border: 1px solid var(--border); padding: var(--space-2) var(--space-3); text-align: start; }
.prose hr { border: 0; border-block-start: 1px solid var(--border); margin-block: var(--space-6); }
.prose .align-center { text-align: center; }
.prose .align-right { text-align: right; }
.prose .align-left { text-align: left; }
.prose .align-justify { text-align: justify; }
.prose [dir="rtl"] { text-align: right; }
.prose [dir="ltr"] { text-align: left; }

/* Images follow the paragraph/figure alignment too. */
.prose p .align-center,
.prose p.align-center img,
.prose figure.align-center img { margin-inline: auto; }
.prose p.align-right img,
.prose figure.align-right img { margin-inline-start: auto; margin-inline-end: 0; }
.prose p.align-left img,
.prose figure.align-left img { margin-inline-end: auto; margin-inline-start: 0; }
.prose figure.align-center { margin-inline: auto; }
.prose figure.align-right { margin-inline-start: auto; margin-inline-end: 0; }
.prose figure.align-left { margin-inline-end: auto; margin-inline-start: 0; }
.prose figure { max-width: 100%; }
.prose figure img { margin-block-end: var(--space-2); }

/* ---------- media library ---------- */
.media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--space-4);
}
.media-card {
  margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden; display: flex; flex-direction: column;
}
.media-card__thumb {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: var(--bg-subtle); overflow: hidden;
}
.media-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-card__ext { font-weight: 700; font-size: var(--text-sm); color: var(--text-subtle); letter-spacing: .08em; }
.media-card figcaption { padding: var(--space-3); display: grid; gap: var(--space-2); font-size: var(--text-xs); }
.media-card__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card__meta { color: var(--text-subtle); }
.media-card__more { display: grid; gap: var(--space-2); }
.media-card__more summary { cursor: pointer; color: var(--text-muted); font-size: var(--text-xs); }
.media-card__more form { display: grid; gap: var(--space-2); }
.btn--sm { padding: 4px var(--space-3); font-size: var(--text-xs); min-height: 32px; }

/* ---------- editor ---------- */
.editor {
  border: 1px solid var(--border-control); border-radius: var(--radius-md);
  background: var(--surface); overflow: hidden;
}
.editor:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.editor__bar {
  display: flex; flex-wrap: wrap; gap: 2px; padding: var(--space-2);
  border-block-end: 1px solid var(--border); background: var(--bg-subtle);
  position: sticky; inset-block-start: 0; z-index: 2;
}
.editor__group { display: flex; gap: 2px; padding-inline-end: var(--space-2); margin-inline-end: var(--space-1); border-inline-end: 1px solid var(--border); }
.editor__group:last-child { border-inline-end: 0; }
.editor__btn {
  min-width: 32px; min-height: 32px; padding: 0 6px; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: transparent; color: var(--text); font-size: var(--text-sm); line-height: 1;
}
.editor__btn:hover { background: var(--surface); border-color: var(--border); }
.editor__btn.is-active { background: var(--brand-100); color: var(--brand-700); }
.editor__btn--wide { min-width: 44px; font-size: var(--text-2xs); letter-spacing: .04em; }
.editor__canvas {
  min-height: 260px; max-height: 70vh; overflow: auto; padding: var(--space-4);
  outline: none;
}
.editor__canvas.is-empty::before {
  content: attr(data-placeholder); color: var(--text-subtle); pointer-events: none;
}
.editor__canvas p { margin: 0 0 var(--space-3); }
.editor__source {
  width: 100%; min-height: 260px; border: 0; padding: var(--space-4);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--text-xs);
  background: var(--bg-subtle); color: var(--text); resize: vertical;
}
.editor__modal {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: rgba(8, 11, 16, .6); padding: var(--space-4);
}
.editor__modal-inner {
  position: relative; width: min(980px, 96vw); height: min(760px, 88vh);
  background: var(--bg); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.editor__modal-inner iframe { width: 100%; height: 100%; border: 0; }
.editor__modal-close {
  position: absolute; inset-block-start: 8px; inset-inline-end: 8px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; font-size: var(--text-md);
}
.preview-footer { border: 1px dashed var(--border); border-radius: var(--radius-md); padding: var(--space-4); background: var(--bg-subtle); }
.progress { height: 6px; border-radius: 999px; background: var(--bg-subtle); border: 1px solid var(--border); overflow: hidden; margin-block-start: 6px; max-width: 220px; }
.progress span { display: block; height: 100%; background: var(--brand-500); }
.form textarea[dir="rtl"], textarea[dir="rtl"] { text-align: right; }

/* ==========================================================================
   S24 — premium corporate layer: icons, facts, service cards, process,
   markets, capability band and the closing call to action.
   ========================================================================== */

.icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: -.2em; }
.icon--brand { color: var(--brand-600); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.chip--brand { background: var(--brand-600); color: #fff; }
.chip--outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-muted); }
.btn--lg { min-height: 52px; padding-inline: var(--space-6); font-size: var(--text-md); gap: .5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn .icon { width: 18px; height: 18px; }
html[dir="rtl"] .btn .icon, html[dir="rtl"] .link-arrow .icon, html[dir="rtl"] .svc-card__meta .icon { transform: scaleX(-1); }

/* ---------- hero (no-slider fallback and shared display type) ---------- */
.hero2 {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
  background:
    radial-gradient(60rem 30rem at 15% -10%, rgba(250, 0, 0, .10), transparent 60%),
    radial-gradient(50rem 30rem at 95% 10%, rgba(0, 163, 184, .10), transparent 60%);
}
.hero2__copy { max-width: 56rem; }
.hero2__title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin-block: var(--space-4) var(--space-5);
  max-width: 24ch;
}
html[lang="fa"] .hero2__title, html[lang="ar"] .hero2__title, html[lang="ckb"] .hero2__title, html[lang="ps"] .hero2__title { letter-spacing: 0; max-width: 26ch; }

/* ---------- facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  margin-block-start: calc(var(--space-8) * -1);
  position: relative;
  z-index: 2;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: var(--space-1);
  text-align: center;
}
.fact__value { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--text); line-height: 1; }
.fact__label { font-size: var(--text-xs); color: var(--text-subtle); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block-start: var(--space-6); } }

/* ---------- two-column section ---------- */
.section--split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: start;
}
@media (max-width: 900px) { .section--split { grid-template-columns: 1fr; } }

.tick-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.tick-cards li {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-4); border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--surface);
  font-size: var(--text-sm); color: var(--text-muted);
}
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem; margin-block-start: var(--space-5);
  font-weight: 600; color: var(--brand-700); text-decoration: none; font-size: var(--text-sm);
}
.link-arrow:hover { gap: .6rem; }

/* ---------- services ---------- */
.svc-grid {
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-block-start: var(--space-8);
}
.svc-card {
  display: grid; gap: var(--space-2); align-content: start;
  padding: var(--space-5); border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface);
  text-decoration: none; color: var(--text);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.svc-card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600); margin-block-end: var(--space-2);
}
.svc-card:hover .svc-card__icon { background: var(--brand-100); }
.svc-card h3 { font-size: var(--text-lg); }
.svc-card p { color: var(--text-muted); font-size: var(--text-sm); }
.svc-card__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-block-start: var(--space-2); color: var(--brand-600); }

/* ---------- bands ---------- */
.band { border-block: 1px solid var(--border); }
.band--soft { background: var(--bg-subtle); }
.band--dark {
  background: linear-gradient(160deg, #0A1A2F 0%, #08111F 55%, #050A12 100%);
  color: #E9EDF2; border-block: 0;
}
.band--dark .eyebrow { color: #FF9C9C; }
.band--dark .section__title, .band--dark .section__sub { color: #F2F5F9; }
.band--dark .section__sub { opacity: .85; }

.sol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin-block-start: var(--space-8); }
@media (max-width: 900px) { .sol-grid { grid-template-columns: 1fr; } }
.sol { padding: var(--space-5); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-lg); background: rgba(255,255,255,.03); }
.sol__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(250,0,0,.16); color: #FF9C9C; margin-block-end: var(--space-3); }
.sol h3 { color: #fff; font-size: var(--text-lg); margin-block-end: var(--space-2); }
.sol p { color: rgba(233,237,242,.78); font-size: var(--text-sm); }

/* ---------- markets ---------- */
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--space-4); margin-block-start: var(--space-8); }
.market-card {
  display: grid; gap: var(--space-2); align-content: start;
  padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); text-decoration: none; color: var(--text);
  border-inline-start: 3px solid var(--brand-500);
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.market-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.market-card h3 { font-size: var(--text-lg); }
.market-card p { color: var(--text-muted); font-size: var(--text-sm); }
.market-card__link { color: var(--brand-700); font-size: var(--text-xs); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }

/* ---------- process ---------- */
.steps { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.step__num {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-600); color: #fff; font-weight: 700; font-size: var(--text-sm);
  margin-block-end: var(--space-3);
}
.step h3 { font-size: var(--text-md); margin-block-end: var(--space-2); }
.step p { color: var(--text-muted); font-size: var(--text-sm); }

/* ---------- capabilities ---------- */
.chips-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips-grid .chip { font-size: var(--text-sm); padding: 6px var(--space-3); }

/* ---------- faq grid ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-block-start: var(--space-6); }
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- closing CTA ---------- */
.cta-band {
  margin-block-start: var(--space-16);
  padding-block: clamp(var(--space-10), 6vw, var(--space-16));
  background:
    radial-gradient(40rem 20rem at 10% 0%, rgba(250,0,0,.35), transparent 65%),
    linear-gradient(140deg, #0A1A2F, #060D18 70%);
  color: #fff;
}
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); color: #fff; max-width: 22ch; }
.cta-band p { color: rgba(233,237,242,.82); max-width: 52ch; margin-block-start: var(--space-2); }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.08); }
.cta-band__note { margin-block-start: var(--space-6); font-size: var(--text-xs); color: rgba(233,237,242,.55); }

[data-theme="dark"] .fact,
[data-theme="dark"] .svc-card,
[data-theme="dark"] .market-card,
[data-theme="dark"] .step,
[data-theme="dark"] .tick-cards li { background: var(--surface); }
[data-theme="dark"] .svc-card__icon { background: rgba(250,0,0,.14); color: #FF9C9C; }
[data-theme="dark"] .band--soft { background: #0B1017; }

/* ==========================================================================
   S27 — Hero rebuild: readable contrast, balanced two-column layout,
   prominent primary action, header rhythm and cookie-banner spacing.
   ========================================================================== */

/* ---------- 1. slider contrast (root cause: the scrim painted over the text) ---------- */
.slider { border-block-end: 1px solid rgba(255,255,255,.08); }

/* The scrim belongs *behind* the copy, so it is drawn by the body itself and
   the text layer is lifted above every overlay. */
.slide::after,
html[dir="rtl"] .slide::after,
.slider--band .slide::after,
html[dir="rtl"] .slider--band .slide::after { content: none; background: none; }

.slide__body {
  z-index: 2;
  background:
    linear-gradient(to top, rgba(5,9,16,.94) 0%, rgba(5,9,16,.62) 42%, rgba(5,9,16,.10) 82%, rgba(5,9,16,0) 100%),
    linear-gradient(to right, rgba(5,9,16,.82) 0%, rgba(5,9,16,.45) 38%, rgba(5,9,16,0) 68%);
  color: #fff;
}
html[dir="rtl"] .slide__body {
  background:
    linear-gradient(to top, rgba(5,9,16,.94) 0%, rgba(5,9,16,.62) 42%, rgba(5,9,16,.10) 82%, rgba(5,9,16,0) 100%),
    linear-gradient(to left, rgba(5,9,16,.82) 0%, rgba(5,9,16,.45) 38%, rgba(5,9,16,0) 68%);
}
.slide--light .slide__body {
  background:
    linear-gradient(to top, rgba(255,255,255,.97) 0%, rgba(255,255,255,.72) 45%, rgba(255,255,255,.1) 85%),
    linear-gradient(to right, rgba(255,255,255,.9), rgba(255,255,255,0) 66%);
  color: var(--ink-900);
}
html[dir="rtl"] .slide--light .slide__body {
  background:
    linear-gradient(to top, rgba(255,255,255,.97) 0%, rgba(255,255,255,.72) 45%, rgba(255,255,255,.1) 85%),
    linear-gradient(to left, rgba(255,255,255,.9), rgba(255,255,255,0) 66%);
}
.slider--band .slide__body {
  background:
    linear-gradient(to top, rgba(5,9,16,.9) 0%, rgba(5,9,16,.5) 60%, rgba(5,9,16,.12) 100%),
    linear-gradient(to right, rgba(5,9,16,.7), rgba(5,9,16,0) 62%);
}
html[dir="rtl"] .slider--band .slide__body {
  background:
    linear-gradient(to top, rgba(5,9,16,.9) 0%, rgba(5,9,16,.5) 60%, rgba(5,9,16,.12) 100%),
    linear-gradient(to left, rgba(5,9,16,.7), rgba(5,9,16,0) 62%);
}
.slider--hero .slide__title {
  font-size: clamp(1.55rem, 3.2vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -.01em;
  max-width: 24ch;
  text-shadow: none;
  color: #fff;
}
.slider--band .slide__title { text-shadow: none; }
.slider--hero .slide__sub { max-width: 46ch; font-size: clamp(.9rem, 1.2vw, 1.02rem); opacity: 1; color: rgba(255,255,255,.94); }
.slider--hero .slide__cta .btn { box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.slider__nav { background: none; border: 0; }

/* ---------- 2. static two-column hero ---------- */
.hero3 {
  position: relative;
  padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(48rem 24rem at 8% -10%, rgba(250,0,0,.10), transparent 62%),
    radial-gradient(42rem 22rem at 92% 0%, rgba(0,163,184,.10), transparent 60%),
    var(--bg);
  overflow: clip;
}
.hero3__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.hero3__copy { max-width: 37rem; }
.hero3__eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .75rem; border-radius: var(--radius-pill);
  background: var(--brand-50); color: var(--brand-700);
  border: 1px solid var(--brand-100);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .02em;
}
.hero3__eyebrow .dot { width: 7px; height: 7px; }
.hero3__title {
  font-size: clamp(1.75rem, 3.4vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -.015em;
  color: var(--text);
  margin-block: var(--space-4) var(--space-3);
  max-width: 22ch;
  text-wrap: balance;
}
html[lang="fa"] .hero3__title,
html[lang="ar"] .hero3__title,
html[lang="ckb"] .hero3__title,
html[lang="ps"] .hero3__title { letter-spacing: 0; line-height: 1.45; max-width: 26ch; }
.hero3__lead {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0;
}
.hero3__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-block-start: var(--space-6); }
.hero3__proof {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  margin-block-start: var(--space-6);
  padding: 0; list-style: none;
  font-size: var(--text-sm); color: var(--text-muted);
}
.hero3__proof li { display: inline-flex; align-items: center; gap: .4rem; }
.hero3__proof .icon { width: 16px; height: 16px; color: var(--success-600); }
.hero3__art {
  position: relative;
  display: grid; place-items: center;
  min-height: 250px;
}
.hero3__art img { width: 100%; height: auto; max-width: 560px; display: block; }
.hero3__art::before {
  content: "";
  position: absolute; inset: 6% 4%; z-index: -1;
  background: radial-gradient(closest-side, rgba(18,52,91,.14), transparent 72%);
  filter: blur(6px);
}
@media (max-width: 980px) {
  .hero3__inner { grid-template-columns: 1fr; }
  .hero3__copy { max-width: none; }
  .hero3__art { order: 2; min-height: 0; margin-block-start: var(--space-2); }
  .hero3__art img { max-width: 460px; }
}
@media (max-width: 560px) {
  .hero3 { padding-block: var(--space-5) var(--space-8); }
  .hero3__title { max-width: none; }
  .hero3__actions .btn { width: 100%; }
  .hero3__actions { gap: var(--space-2); }
  .hero3__art img { max-width: 100%; }
}

/* ---------- 3. prominent primary action ---------- */
.btn--hero {
  min-height: 54px;
  padding-inline: clamp(1.1rem, 2.2vw, 1.75rem);
  font-size: 1.0625rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: var(--brand-600);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 12px 26px rgba(212,0,0,.30);
  gap: .55rem;
  transition: background var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.btn--hero:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(212,0,0,.34); }
.btn--hero:active { transform: translateY(0); }
.btn--hero:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.btn--hero .icon { width: 19px; height: 19px; }
html[dir="rtl"] .btn--hero .icon { transform: scaleX(-1); }
.btn--outline-strong {
  min-height: 54px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong); background: transparent; color: var(--text);
  font-weight: 600; padding-inline: var(--space-5);
}
.btn--outline-strong:hover { border-color: var(--text); background: var(--bg-subtle); }

/* ---------- 4. header rhythm ---------- */
.topbar__inner { gap: var(--space-4); min-height: 68px; }
.brand__logo, .brand__logo img { width: 40px; height: 40px; }
.brand__name { font-size: 1.0625rem; }
.brand { gap: var(--space-2); }
.nav { gap: var(--space-2) var(--space-4); }
.topsearch input { width: 132px; }
.langmenu > summary { padding-inline: .5rem; }
@media (max-width: 1280px) {
  .nav { gap: .3rem .7rem; }
  .nav a { font-size: var(--text-2xs); }
  .brand__sub { display: none; }
}
@media (max-width: 1200px) { .topsearch { display: none; } }
@media (max-width: 640px) { .topbar__inner { min-height: 60px; } .brand__logo, .brand__logo img { width: 36px; height: 36px; } }

/* ---------- 5. cookie banner must never cover content ---------- */
body.has-consent { padding-block-end: clamp(96px, 11vh, 124px); }
.consent { padding-block-end: env(safe-area-inset-bottom, 0); }
.consent__inner { padding-block: var(--space-3); }
.consent__text { font-size: var(--text-xs); line-height: 1.5; }
@media (max-width: 700px) {
  body.has-consent { padding-block-end: 148px; }
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1 1 auto; }
}

/* ---------- 6. facts strip sits under the two-column hero ---------- */
.hero3 + .facts { margin-block-start: 0; }
.facts { margin-block-start: calc(var(--space-6) * -1); }
@media (max-width: 860px) { .facts { margin-block-start: var(--space-4); } }

/* ---------- 7. highlights band (the existing slides stay, just smaller) ---------- */
.highlights { padding-block: clamp(1.5rem, 3vw, 2.25rem); }
.highlights__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-block-end: var(--space-3); }
.highlights__title { font-size: var(--text-md); color: var(--text); font-weight: 700; margin: 0; }
.highlights__link { font-size: var(--text-sm); color: var(--brand-700); text-decoration: none; font-weight: 600; }
.highlights__link:hover { text-decoration: underline; }
@media (max-width: 640px) { .highlights__head { flex-direction: column; gap: 0; } }

/* ---------- 8. dark mode ---------- */
[data-theme="dark"] .hero3 {
  background:
    radial-gradient(48rem 24rem at 8% -10%, rgba(250,0,0,.16), transparent 62%),
    radial-gradient(42rem 22rem at 92% 0%, rgba(0,163,184,.14), transparent 60%),
    var(--bg);
}
[data-theme="dark"] .hero3__eyebrow { background: rgba(250,0,0,.14); border-color: rgba(250,0,0,.28); color: #FFB4B4; }
[data-theme="dark"] .hero3__art::before { background: radial-gradient(closest-side, rgba(0,163,184,.16), transparent 72%); }
[data-theme="dark"] .hero3__art img { filter: brightness(.96) contrast(1.02); }




