/* =========================================================
   ParsianExport — main stylesheet
   ---------------------------------------------------------
   - One stylesheet for ALL languages.
   - Uses logical properties (margin-inline, padding-inline,
     inset-inline) so the same CSS works for RTL (fa, ar)
     and LTR (en, ru, tr, zh). Direction comes from <html dir>.
   - To change brand colors, edit the variables in :root.
   ========================================================= */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Cyrillic letters (Russian): Vazirmatn has none, so these characters come from Inter (OFL).
   unicode-range means this file only downloads on pages that contain Cyrillic text. */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Inter-cyrillic-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  /* Brand colors */
  --ink: #13213a;        /* deep navy: header, headings, dark sections */
  --lapis: #1e4c8a;      /* Persian blue: links, accents */
  --saffron: #d4961c;    /* saffron: primary buttons, highlights */
  --saffron-dark: #b67e12;
  --paper: #f5f7fa;      /* light section background */
  --white: #ffffff;
  --line: #dce2ea;
  --text: #2e3a4d;
  --muted: #5b6778;
  --ok: #1f7a4d;
  --err: #b3261e;

  /* Type */
  --font: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
  --fs-body: 1.0625rem;
  --lh-body: 1.9;         /* Persian script needs generous line height */

  /* Layout */
  --wrap: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius-s: 6px;
  --radius-m: 12px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--white);
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--lapis); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.45; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 850; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; }
p  { margin: 0 0 1em; max-width: 68ch; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -4rem;
  background: var(--ink); color: var(--white); padding: .5rem 1rem; z-index: 100;
  border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.4;
  padding: .8rem 1.4rem; border-radius: var(--radius-s);
  border: 2px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--saffron); color: var(--ink); }
.btn-primary:hover { background: var(--saffron-dark); color: var(--ink); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.on-dark .btn-ghost { color: var(--white); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 72px; }

.logo {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 850; font-size: 1.3rem; color: var(--ink); text-decoration: none;
  direction: ltr; /* brand name is always Latin, left-to-right */
}
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo span b { color: var(--lapis); font-weight: 850; }

.main-nav { margin-inline-start: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .15rem; }
.main-nav a {
  display: block; padding: .45rem .6rem; border-radius: var(--radius-s);
  color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 550;
}
.main-nav a:hover { background: var(--paper); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--lapis); font-weight: 750; box-shadow: inset 0 -2px 0 var(--saffron); border-radius: 0; }

.header-cta { flex: none; }
.header-cta .btn { padding: .55rem 1rem; font-size: .92rem; }

/* Language switcher */
.lang-bar { background: var(--ink); color: #c9d3e2; font-size: .82rem; }
.lang-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 34px; }
.lang-switch { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; direction: ltr; }
.lang-switch a, .lang-switch span {
  display: block; padding: .1rem .5rem; border-radius: 4px; text-decoration: none; color: #c9d3e2; font-weight: 600;
}
.lang-switch a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.lang-switch [aria-current="true"] { background: var(--saffron); color: var(--ink); }
.lang-switch .soon { opacity: .45; cursor: not-allowed; }
.lang-bar .contact-mini { direction: ltr; }
.lang-bar .contact-mini a { color: #c9d3e2; text-decoration: none; }
.lang-bar .contact-mini a:hover { color: var(--white); }

.nav-toggle {
  display: none; margin-inline-start: auto;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-s);
  width: 44px; height: 44px; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { margin: auto; }

@media (max-width: 1080px) {
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .main-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: .7rem .5rem; font-size: 1rem; }
  .main-nav .mobile-cta { display: block; margin-top: .5rem; }
}
.main-nav .mobile-cta { display: none; }
@media (max-width: 1080px) { .main-nav .mobile-cta { display: block; } }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #dbe3ef; position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { color: var(--white); }
.hero .lead { font-size: 1.15rem; color: #dbe3ef; max-width: 36em; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.75rem; padding: 0; list-style: none; font-size: .95rem; color: #b9c6d8; }
.hero-proof li::before { content: "✓"; color: var(--saffron); font-weight: 800; margin-inline-end: .4rem; }

/* HERO IMAGE: replace the route diagram with your ChatGPT image if you prefer.
   Put the image in /assets/img/hero.webp and use:
   <img class="hero-img" src="../assets/img/hero.webp" alt="..." width="1200" height="900">  */
.hero-visual { position: relative; }
.hero-img { border-radius: var(--radius-m); object-fit: cover; width: 100%; aspect-ratio: 4 / 3; }
.route-map text { font-family: var(--font); }
.route-line { stroke-dasharray: 5 7; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
}

/* Small page hero (inner pages) */
.page-hero { background: var(--ink); color: #dbe3ef; }
.page-hero .wrap { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.page-hero p { font-size: 1.1rem; }
.breadcrumb { font-size: .88rem; color: #9fb0c6; margin-bottom: .75rem; }
.breadcrumb a { color: #c9d3e2; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-alt { background: var(--paper); }
.section-dark { background: var(--ink); color: #dbe3ef; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #b9c6d8; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Problem list (pain points) */
.pain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.pain-list li {
  padding: 1rem 1.15rem; background: var(--white); border: 1px solid var(--line);
  border-inline-start: 4px solid var(--err); border-radius: var(--radius-s);
}
.gain-list li { border-inline-start-color: var(--ok); }

/* Services list — rows, not identical cards */
.service-rows { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 56px 1fr 1.3fr; gap: 1.25rem;
  padding-block: 1.5rem; border-bottom: 1px solid var(--line); align-items: start;
}
.service-row .ico {
  width: 48px; height: 48px; border-radius: 50%; background: var(--paper);
  display: grid; place-items: center; color: var(--lapis);
}
.service-row h3 { margin: .3rem 0 0; }
.service-row p { margin: 0; color: var(--muted); }
.service-row ul { margin: .5rem 0 0; padding-inline-start: 1.2rem; color: var(--muted); font-size: .97rem; }
@media (max-width: 760px) {
  .service-row { grid-template-columns: 48px 1fr; }
  .service-row > div:last-child { grid-column: 1 / -1; }
}

/* Steps — a real sequence, so numbers are appropriate */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding-inline-start: 4rem; padding-bottom: 1.9rem;
}
.steps li::before {
  content: counter(step, persian);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: var(--saffron); color: var(--ink);
}
:lang(en) .steps li::before, :lang(ru) .steps li::before, :lang(tr) .steps li::before, :lang(zh) .steps li::before { content: counter(step); }
:lang(ar) .steps li::before { content: counter(step); }
.steps li::after {
  content: ""; position: absolute; inset-inline-start: 1.25rem; top: 2.8rem; bottom: .3rem;
  width: 2px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--muted); }
.section-dark .steps p { color: #b9c6d8; }
.section-dark .steps li::after { background: rgba(255,255,255,.15); }

/* Markets strip */
.markets { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 0; }
.markets li {
  padding: .45rem 1rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); font-weight: 600; color: var(--ink); font-size: .95rem;
}

/* Audience split (manufacturer vs buyer) */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.audience > div { padding: 2rem; border-radius: var(--radius-m); }
.audience .for-maker { background: var(--ink); color: #dbe3ef; }
.audience .for-maker h3 { color: var(--white); }
.audience .for-buyer { background: var(--white); border: 2px solid var(--ink); }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } }

/* Fact grid (simple, used sparingly) */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.facts h3 { margin-bottom: .3rem; }
.facts p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* Case studies */
.case {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.75rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
.case:first-of-type { border-top: 1px solid var(--line); }
.case .tag { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--lapis); background: #e8eef7; padding: .15rem .6rem; border-radius: 4px; margin-bottom: .5rem; }
.case dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.case dt { font-weight: 700; color: var(--ink); }
.case dd { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .case { grid-template-columns: 1fr; gap: .5rem; } }

.note {
  padding: 1rem 1.2rem; background: #fff8e6; border: 1px solid #f0d38e;
  border-radius: var(--radius-s); font-size: .95rem; color: #5a4410;
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; padding: 1.75rem;
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white);
}
.plan.featured { border: 2px solid var(--saffron); position: relative; }
.plan .badge {
  position: absolute; top: -.85rem; inset-inline-start: 1.5rem;
  background: var(--saffron); color: var(--ink); font-size: .8rem; font-weight: 800;
  padding: .15rem .7rem; border-radius: 4px;
}
.plan .price { font-size: 1.5rem; font-weight: 850; color: var(--ink); margin: .25rem 0 .1rem; }
.plan .price-note { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; }
.plan li { padding-inline-start: 1.5rem; position: relative; font-size: .97rem; }
.plan li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: 800; }
.plan .btn { margin-top: auto; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--lapis); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .75rem 0 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--lapis); color: var(--white); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; padding-block: 2.75rem; }
.cta-band h2 { color: var(--white); margin: 0 0 .25rem; }
.cta-band p { margin: 0; color: #dce6f5; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(1.25rem, 3vw, 2rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 650; color: var(--ink); margin-bottom: .3rem; font-size: .95rem; }
.field .req { color: var(--err); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: .7rem .85rem; border: 1px solid #c3ccd8; border-radius: var(--radius-s); background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lapis); box-shadow: 0 0 0 3px rgba(30,76,138,.18); }
.field input[type="email"], .field input[type="tel"], .field input[type="url"] { direction: ltr; text-align: start; }
[dir="rtl"] .field input[type="email"], [dir="rtl"] .field input[type="tel"], [dir="rtl"] .field input[type="url"] { text-align: right; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.checks label { font-weight: 500; white-space: nowrap; display: flex; align-items: center; gap: .4rem; }
.hp { display: none !important; } /* spam honeypot — keep hidden */
.form-status { margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius-s); display: none; }
.form-status.ok { display: block; background: #e7f4ec; color: var(--ok); border: 1px solid #b7dcc6; }
.form-status.err { display: block; background: #fbeaea; color: var(--err); border: 1px solid #efc2bf; }
.form-privacy { font-size: .85rem; color: var(--muted); margin-top: .75rem; }

/* Contact channels */
.channels { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.channels a {
  display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; color: var(--ink); background: var(--white);
}
.channels a:hover { border-color: var(--lapis); }
.channels .ch-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--white); flex: none; }
.ch-wa { background: #1f9d55; } .ch-tg { background: #2a8bd1; } .ch-wc { background: #2a9d3f; } .ch-em { background: var(--lapis); } .ch-ph { background: var(--ink); }
.channels small { display: block; color: var(--muted); direction: ltr; text-align: start; }
[dir="rtl"] .channels small { text-align: right; }

/* Floating WhatsApp button */
.wa-float {
  position: fixed; bottom: 1.25rem; inset-inline-end: 1.25rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #1f9d55; color: var(--white);
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(19,33,58,.28);
}
.wa-float:hover { background: #17824a; color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: #0e1a2e; color: #aebbd0; font-size: .95rem; }
.site-footer .wrap { padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer a { color: #cfd9e8; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .logo { color: var(--white); margin-bottom: .75rem; }
.site-footer .ltr { direction: ltr; unicode-bidi: isolate; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Utilities */
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }

/* "At a glance" fact list (About page) — short, quotable facts */
.glance { display: grid; grid-template-columns: 11rem 1fr; margin: 0; border-top: 1px solid var(--line); }
.glance dt, .glance dd { padding: .9rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.glance dt { font-weight: 750; color: var(--ink); padding-inline-end: 1rem; }
.glance dd { color: var(--text); }
@media (max-width: 640px) {
  .glance { grid-template-columns: 1fr; }
  .glance dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- Photos ---------- */
.hero-visual { margin: 0; }
.hero-visual figcaption .photo-credit { margin-top: .4rem; }
.photo-credit { font-size: .75rem; color: #9fb0c6; margin: .75rem 0 0; }
.photo-credit a { color: #c9d3e2; }

/* Inner page hero with photo: navy overlay keeps text readable */
.page-hero.has-photo {
  background-color: var(--ink);
  background-image: linear-gradient(90deg, rgba(19,33,58,.72) 0%, rgba(19,33,58,.94) 55%), var(--bg);
  background-size: cover; background-position: center, var(--pos, center);
}
[dir="ltr"] .page-hero.has-photo {
  background-image: linear-gradient(270deg, rgba(19,33,58,.72) 0%, rgba(19,33,58,.94) 55%), var(--bg);
}
.page-hero.has-photo .wrap { padding-block: clamp(3.5rem, 8vw, 6rem); }

.markets-split { align-items: center; }

/* Latin-script languages need less line height than Persian/Arabic */
:lang(en) body, :lang(ru) body, :lang(tr) body, :lang(fr) body, :lang(es) body { line-height: 1.7; }
:lang(en) h1, :lang(ru) h1, :lang(tr) h1, :lang(fr) h1, :lang(es) h1 { line-height: 1.2; }
:lang(en) h2, :lang(ru) h2, :lang(tr) h2, :lang(fr) h2, :lang(es) h2, :lang(en) h3, :lang(ru) h3, :lang(tr) h3, :lang(fr) h3, :lang(es) h3 { line-height: 1.3; }

/* Long menu words (Russian, and later Spanish/French): keep the header on one line */
.main-nav a { white-space: nowrap; }
:lang(ru) .main-nav a, :lang(es) .main-nav a, :lang(fr) .main-nav a, :lang(tr) .main-nav a { padding-inline: .45rem; font-size: .9rem; }
:lang(ru) h1 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
@media (max-width: 1240px) {
  :lang(ru) .nav-toggle, :lang(es) .nav-toggle, :lang(fr) .nav-toggle, :lang(tr) .nav-toggle { display: grid; }
  :lang(ru) .header-cta, :lang(es) .header-cta, :lang(fr) .header-cta, :lang(tr) .header-cta { display: none; }
  :lang(ru) .main-nav, :lang(es) .main-nav, :lang(fr) .main-nav, :lang(tr) .main-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem;
  }
  :lang(ru) .main-nav.open, :lang(es) .main-nav.open, :lang(fr) .main-nav.open, :lang(tr) .main-nav.open { display: block; }
  :lang(ru) .main-nav ul, :lang(es) .main-nav ul, :lang(fr) .main-nav ul, :lang(tr) .main-nav ul { flex-direction: column; }
  :lang(ru) .main-nav .mobile-cta, :lang(es) .main-nav .mobile-cta, :lang(fr) .main-nav .mobile-cta, :lang(tr) .main-nav .mobile-cta { display: block; margin-top: .5rem; }
}

/* Chinese: Vazirmatn covers Latin/numbers; Chinese characters use the visitor's system Chinese font (no large download). */
html:lang(zh) { --font: "Vazirmatn", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif; }
:lang(zh) body { line-height: 1.8; }
:lang(zh) h1 { line-height: 1.3; letter-spacing: 0; }
:lang(zh) h2, :lang(zh) h3 { line-height: 1.4; }
:lang(zh) .steps li::before { content: counter(step); }
.wc-float { text-decoration: none; background: #07c160; width: auto; min-width: 56px; padding-inline: .9rem; border-radius: 28px; }
.wc-float:hover { background: #06a553; }
.channels li:target a { border-color: #07c160; box-shadow: 0 0 0 3px rgba(7,193,96,.25); }

/* ---------- Language menu (globe + language names) ---------- */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem;
  padding: .15rem .6rem; border-radius: 4px; color: #e6ecf5; font-weight: 600; font-size: .85rem;
  border: 1px solid rgba(255,255,255,.25);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: rgba(255,255,255,.1); }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 80;
  list-style: none; margin: 0; padding: .35rem; min-width: 160px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: 0 10px 28px rgba(19,33,58,.18);
}
.lang-menu li a { display: block; padding: .45rem .75rem; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.lang-menu li a:hover { background: var(--paper); }
.lang-menu li a[aria-current="true"] { background: var(--saffron); font-weight: 700; }
.lang-menu li a { unicode-bidi: isolate; text-align: start; }
[dir="rtl"] .lang-menu li a { text-align: right; }
[dir="ltr"] .lang-menu li a { text-align: left; }

/* ---------- Markets: regions with country names ---------- */
.regions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; }
.regions li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.regions strong { display: block; color: var(--ink); font-size: 1rem; }
.regions span { color: var(--muted); font-size: .92rem; }
@media (max-width: 640px) { .regions { grid-template-columns: 1fr; } }

/* ---------- Visible language bar (all 8 languages always shown) ---------- */
.lang-bar .wrap { flex-wrap: wrap; gap: .25rem 1rem; padding-block: .3rem; }
.lang-list { display: flex; align-items: center; gap: .5rem; }
.lang-globe { color: #c9d3e2; display: inline-flex; }
.lang-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.lang-list a {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
  color: #e6ecf5; text-decoration: none; border: 1px solid rgba(255,255,255,.22); line-height: 1.5;
  unicode-bidi: isolate;
}
.lang-list a:hover { background: rgba(255,255,255,.12); color: #fff; }
.lang-list a[aria-current="true"] { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
@media (max-width: 700px) {
  .lang-bar .contact-mini, .lang-globe { display: none; }
  .lang-bar .wrap { justify-content: center; }
  .lang-list { flex-wrap: nowrap; }
  .lang-list ul { justify-content: center; }
  .lang-list a { font-size: .82rem; padding: .25rem .55rem; }   /* ≥ 30px tall tap target */
}

/* ---------- Consent checkbox under forms ---------- */
.consent { margin-top: 1rem; font-size: .92rem; color: var(--text); }
.consent label { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; line-height: 1.6; }
.consent input { width: 20px; height: 20px; margin-top: .2rem; flex: none; accent-color: var(--lapis); }
.consent a { font-weight: 600; }

/* ---------- Footer legal links + legal pages ---------- */
.legal-links a { color: #cfd9e8; }
.legal-text { max-width: 760px; }
.legal-text h2 { font-size: 1.25rem; margin-top: 2rem; }

/* ---------- Mobile / tablet safety ---------- */
html, body { overflow-x: hidden; }
input, select, textarea, button { font-size: 16px; }  /* stops iPhone Safari from zooming into fields */
.nav-toggle { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (max-width: 1080px) {
  .main-nav { max-height: calc(100vh - 110px); overflow-y: auto; -webkit-overflow-scrolling: touch; box-shadow: 0 12px 24px rgba(19,33,58,.12); }
  .main-nav a { min-height: 44px; display: flex; align-items: center; }  /* Apple minimum tap size */
}
.h-captcha { margin-top: 1rem; }
.thanks { padding-block: 3rem; }
.thanks h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- Mobile polish (v25) ---------- */
/* Service rows: on small screens the description always takes the full width (it can be a <p> or a <div>) */
@media (max-width: 760px) {
  .service-row { grid-template-columns: 48px 1fr; align-items: center; row-gap: .5rem; }
  .service-row > :nth-child(3) { grid-column: 1 / -1; }
  .service-row h3 { margin: 0; }
}
/* Market checkboxes: tidy grid, long names wrap instead of overlapping */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem 1rem; }
.checks label { white-space: normal; align-items: flex-start; line-height: 1.5; }
.checks input { width: 18px; height: 18px; margin-top: .2rem; flex: none; accent-color: var(--lapis); }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }
/* Case studies: stacked cleanly on phones */
@media (max-width: 700px) { .case dl { grid-template-columns: 1fr; } .case dt { margin-top: .4rem; } }
/* Glance list and FAQ spacing on phones */
@media (max-width: 520px) { .faq summary { font-size: .98rem; } .plan { padding: 1.35rem; } }
