/* ============================================================
   eSIM2Go — Core design system
   Shared foundation for every page: tokens, reset, shell,
   typography, controls, overlays, motion, RTL, responsive.
   Page-specific styles live in home.css / country.css / editorial.css
   ============================================================ */

:root {
  color-scheme: light;

  /* Surfaces */
  --canvas: #f3f1eb;
  --canvas-2: #ebe8e0;
  --surface: #faf9f5;
  --surface-solid: #ffffff;

  /* Ink */
  --ink: #101114;
  --ink-soft: #4f5157;
  --ink-faint: #74767c;

  /* Structure */
  --line: rgba(16, 17, 20, .16);
  --line-strong: rgba(16, 17, 20, .34);

  /* Accents */
  --blue: #2458ff;
  --blue-dark: #1642d7;
  --blue-tint: rgba(36, 88, 255, .09);
  --orange: #ff5d3d;
  --acid: #c9ff45;
  --green: #168b62;
  --danger: #cf3852;

  /* Dark constants (used inside inverted sections in both themes) */
  --dark: #111923;
  --dark-2: #17222f;
  --on-dark: #f4f6f8;
  --on-dark-soft: #9ba7b2;
  --on-dark-faint: #7f8c99;
  --on-dark-line: rgba(255, 255, 255, .2);

  /* Effects */
  --glass: rgba(243, 241, 235, .88);
  --shadow: 0 28px 90px rgba(16, 17, 20, .13);
  --shadow-soft: 0 14px 44px rgba(16, 17, 20, .08);

  /* Type */
  --sans: "Onest", "Noto Sans SC", "Noto Sans Arabic", "Manrope", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --nav-h: 88px;
  --nav-h-scrolled: 76px;
  --gutter: 64px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0c1219;
  --canvas-2: #101923;
  --surface: #131d27;
  --surface-solid: #17222d;
  --ink: #f3f1eb;
  --ink-soft: #b2b7be;
  --ink-faint: #858d96;
  --line: rgba(243, 241, 235, .14);
  --line-strong: rgba(243, 241, 235, .29);
  --blue: #5b7fff;
  --blue-dark: #3259e6;
  --blue-tint: rgba(91, 127, 255, .13);
  --orange: #ff765b;
  --acid: #c9ff45;
  --green: #55d3a3;
  --dark: #060b10;
  --dark-2: #0b1219;
  --glass: rgba(12, 18, 25, .88);
  --shadow: 0 28px 100px rgba(0, 0, 0, .35);
  --shadow-soft: 0 14px 44px rgba(0, 0, 0, .3);
}

/* ---------- Reset ---------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 94px; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { color: #fff; background: var(--blue); }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[lang="ar"] body { font-family: "Noto Sans Arabic", var(--sans); }
[lang="zh"] body { font-family: "Noto Sans SC", var(--sans); }

/* ---------- Layout primitives ---------- */

.page-grid { width: min(1480px, calc(100% - var(--gutter))); margin-inline: auto; }
.section { position: relative; padding: 150px 0; }
.section-sm { padding: 96px 0; }
.section-index { color: var(--ink-faint); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.section-index.light { color: var(--on-dark-faint); }
.rule { height: 1px; border: 0; margin: 0; background: var(--line); }

.skip-link { position: fixed; z-index: 1000; top: -80px; left: 20px; padding: 12px 18px; color: var(--canvas); background: var(--ink); font-size: 12px; font-weight: 800; }
.skip-link:focus { top: 20px; }

/* Editorial display type, shared by every page heading */
.display { margin: 0; font-size: clamp(52px, 5.4vw, 92px); font-weight: 700; line-height: .94; letter-spacing: -.07em; }
.display em { color: var(--blue); font-style: normal; }
.display-sm { margin: 0; font-size: clamp(38px, 3.7vw, 60px); font-weight: 700; line-height: 1; letter-spacing: -.06em; }
.display-sm em { color: var(--blue); font-style: normal; }
.lead { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }

/* ---------- Top bar ---------- */

.topbar { position: absolute; z-index: 100; top: 0; right: 0; left: 0; height: var(--nav-h); border-bottom: 1px solid rgba(255, 255, 255, .18); color: #fff; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.topbar.scrolled { position: fixed; height: var(--nav-h-scrolled); color: var(--ink); border-color: var(--line); background: var(--glass); backdrop-filter: blur(20px); }
/* Pages without a dark hero start in solid mode straight away */
.topbar.topbar-solid { position: sticky; height: var(--nav-h-scrolled); color: var(--ink); border-color: var(--line); background: var(--glass); backdrop-filter: blur(20px); }
.nav-shell { height: 100%; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 900; letter-spacing: -.06em; }
.brand-sigil { position: relative; width: 37px; height: 37px; display: grid; place-items: center; overflow: hidden; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg,#1557ff,#635bff); box-shadow: 0 8px 24px rgba(21,88,255,.24); }
.brand-sigil i { display: none; }
.brand-sigil b { position: relative; font-size: 17px; }
.desktop-nav { display: flex; align-items: center; gap: 29px; margin-left: auto; }
.desktop-nav a { position: relative; font-size: 11px; font-weight: 700; }
.desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .2s ease; }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.round-control, .menu-button { height: 42px; border: 1px solid currentColor; color: inherit; background: transparent; cursor: pointer; }
.round-control { min-width: 42px; display: grid; place-items: center; border-radius: 50%; font-size: 9px; font-weight: 800; }
.theme-toggle { width: 66px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--surface-solid); cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.theme-toggle:hover { border-color: color-mix(in srgb, var(--blue) 42%, var(--line)); box-shadow: 0 8px 22px rgba(21,87,255,.12); }
.theme-toggle-track { position: relative; width: 54px; height: 30px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; border-radius: 999px; background: var(--canvas-2); }
.theme-toggle-thumb { position: absolute; z-index: 1; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 3px 10px rgba(11,16,32,.18); transition: transform .28s cubic-bezier(.2,.8,.2,1), background .2s ease; }
.theme-glyph { position: relative; z-index: 2; width: 14px; height: 14px; color: #687386; }
.theme-sun { border: 2px solid currentColor; border-radius: 50%; transform: scale(.52); box-shadow: 0 -12px 0 -5px currentColor, 0 12px 0 -5px currentColor, 12px 0 0 -5px currentColor, -12px 0 0 -5px currentColor, 8px 8px 0 -5px currentColor, -8px -8px 0 -5px currentColor, 8px -8px 0 -5px currentColor, -8px 8px 0 -5px currentColor; }
.theme-moon::before { content: ""; position: absolute; inset: 1px; border-radius: 50%; background: currentColor; }
.theme-moon::after { content: ""; position: absolute; top: -1px; left: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--canvas-2); }
[data-theme="dark"] .theme-toggle-thumb { background: #c9ff45; transform: translateX(24px); }
[data-theme="dark"] .theme-moon { color: #0b1020; }
[data-theme="dark"] .theme-sun { color: #8792a4; }
.telegram-nav { min-height: 42px; display: flex; align-items: center; gap: 24px; padding: 0 17px; color: #111; background: #fff; font-size: 10px; font-weight: 800; }
.topbar.scrolled .telegram-nav, .topbar.topbar-solid .telegram-nav { color: #fff; background: var(--blue); }
.telegram-nav b { font-size: 13px; }

.language-picker { position: relative; }
.language-menu { position: absolute; top: 52px; right: 0; width: 190px; padding: 8px; color: var(--ink); border: 1px solid var(--line); background: var(--surface-solid); box-shadow: var(--shadow); }
.language-menu[hidden] { display: none; }
.language-menu button { width: 100%; padding: 10px 11px; border: 0; color: var(--ink-soft); background: transparent; cursor: pointer; text-align: left; font-size: 11px; }
.language-menu button:hover, .language-menu button.active { color: var(--ink); background: var(--canvas-2); }

.menu-button { display: none; width: 42px; padding: 0 11px; border-radius: 50%; }
.menu-button span { display: block; height: 1px; margin: 6px 0; background: currentColor; }
.mobile-nav { position: fixed; z-index: 99; top: var(--nav-h-scrolled); right: 0; left: 0; padding: 18px 32px 26px; color: var(--ink); border-bottom: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(20px); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 700; }

/* ---------- Actions ---------- */

.action-primary, .action-invert, .action-ghost {
  min-height: 58px; display: inline-flex; align-items: center; justify-content: space-between; gap: 34px;
  padding: 0 23px; font-size: 11px; font-weight: 800; border: 0; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.action-primary { min-width: 260px; color: #fff; background: var(--blue); }
.action-primary:hover { background: #3568ff; }
.action-invert { min-width: 210px; color: #101114; background: var(--acid); }
.action-ghost { color: var(--ink); border: 1px solid var(--line-strong); background: transparent; }
.action-ghost:hover { color: #fff; border-color: var(--blue); background: var(--blue); }
.action-primary:hover, .action-invert:hover, .action-ghost:hover { transform: translateY(-3px); }
.action-primary b, .action-invert b, .action-ghost b { font-size: 15px; }
.action-text { display: inline-flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 800; }
.action-text i { font-style: normal; }

/* Sticky mobile Telegram bar — the conversion anchor on inner pages */
.telegram-dock { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; display: none; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(20px); }
.telegram-dock > div { min-width: 0; }
.telegram-dock small { display: block; color: var(--ink-faint); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.telegram-dock b { display: block; margin-top: 2px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.telegram-dock a { flex: 0 0 auto; min-height: 44px; display: inline-flex; align-items: center; gap: 12px; padding: 0 18px; color: #fff; background: var(--blue); font-size: 10px; font-weight: 800; }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--ink-faint); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs i { font-style: normal; opacity: .55; }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ---------- Data table (shared: ledgers, article tables) ---------- */

.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table thead th { color: var(--ink-faint); border-bottom: 1px solid var(--line-strong); font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.data-table tbody tr:hover { background: var(--surface-solid); }

/* ---------- FAQ disclosure ---------- */

.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { position: relative; padding: 28px 60px 28px 0; list-style: none; cursor: pointer; font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; top: 21px; right: 0; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 18px; transition: transform .2s ease, color .2s ease; }
.faq-list details[open] summary::after { color: var(--blue); transform: rotate(45deg); }
.faq-list p { max-width: 720px; margin: -2px 60px 28px 0; color: var(--ink-soft); font-size: 12px; line-height: 1.75; }

/* ---------- Footer ---------- */

.site-footer { padding: 42px 0 28px; color: var(--ink-soft); background: var(--surface-solid); }
.footer-shell { display: grid; grid-template-columns: minmax(300px,.9fr) minmax(0,1.1fr); gap: clamp(48px,8vw,130px); padding-top: 42px; border-top: 1px solid var(--line); }
.footer-lead { min-height: 235px; display: flex; align-items: flex-start; justify-content: space-between; flex-direction: column; gap: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 42px; }
.footer-brand .brand { color: var(--ink); }
.footer-brand p { max-width: 320px; margin-top: 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.footer-grid > div > b { display: block; margin-bottom: 24px; color: var(--blue); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div > a:not(.brand) { display: block; margin-top: 16px; color: var(--ink-soft); font-size: 13px; }
.footer-grid > div > a:hover { color: var(--ink); }
.footer-telegram { width: min(320px,100%); min-height: 58px; display: flex !important; align-items: center; justify-content: space-between; gap: 30px; padding: 0 19px; border: 1px solid var(--blue); border-radius: 15px; color: #fff !important; background: var(--blue); font-size: 13px !important; font-weight: 850; transition: transform .2s ease, background .2s ease; }
.footer-telegram:hover { color: #fff !important; background: #2458ff; transform: translateY(-2px); }
.footer-destinations { padding-top: 34px; }
.footer-destinations-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-top: 30px; border-top: 1px solid var(--line); }
.footer-destinations-head b { color: var(--ink); font-size: 18px; letter-spacing: -.025em; }
.footer-destinations-head span { color: var(--ink-faint); font-size: 11px; }
.footer-destination-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-top: 18px; }
.footer-destination-grid a { min-width: 0; min-height: 52px; display: grid; grid-template-columns: 25px minmax(0,1fr) 14px; gap: 9px; align-items: center; padding: 10px 13px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink-soft); background: color-mix(in srgb,var(--surface-solid) 82%,var(--surface)); transition: color .2s,border-color .2s,background .2s,transform .2s; }
.footer-destination-grid a:hover { color: var(--ink); border-color: color-mix(in srgb,var(--blue) 32%,var(--line)); background: var(--surface-solid); transform: translateY(-2px); }
.footer-destination-grid a > span { font-size: 18px; }
.footer-destination-grid strong { overflow: hidden; font-size: 11px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.footer-destination-grid a > b { color: var(--blue); font-size: 11px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 10px; letter-spacing: .1em; }
.footer-bottom i { width: 5px; height: 5px; display: inline-block; margin: 0 7px; border-radius: 50%; background: var(--blue); }
:root[data-theme="dark"] .site-footer { color: #c4cbd1; background: #08111f; }
:root[data-theme="dark"] .footer-shell,
:root[data-theme="dark"] .footer-bottom { border-color: rgba(255,255,255,.12); }
:root[data-theme="dark"] .footer-brand .brand { color: #fff; }
:root[data-theme="dark"] .footer-brand p { color: #9aa5b1; }
:root[data-theme="dark"] .footer-grid > div > b { color: #c9ff45; }
:root[data-theme="dark"] .footer-grid > div > a:not(.brand) { color: #a7b1bc; }
:root[data-theme="dark"] .footer-grid > div > a:hover { color: #fff; }
:root[data-theme="dark"] .footer-telegram { color: #0b1020 !important; border-color: #c9ff45; background: #c9ff45; }
:root[data-theme="dark"] .footer-destinations-head { border-color: rgba(255,255,255,.12); }
:root[data-theme="dark"] .footer-destinations-head b { color: #fff; }
:root[data-theme="dark"] .footer-destination-grid a { color: #a7b1bc; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.035); }
:root[data-theme="dark"] .footer-destination-grid a:hover { color: #fff; border-color: rgba(201,255,69,.38); background: rgba(255,255,255,.06); }
:root[data-theme="dark"] .footer-destination-grid a > b { color: #c9ff45; }
:root[data-theme="dark"] .footer-bottom { color: #71808d; }
:root[data-theme="dark"] .footer-bottom i { background: #c9ff45; }

/* ---------- Checkout modal ---------- */

.modal-backdrop { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(5, 8, 11, .8); backdrop-filter: blur(13px); }
.modal-backdrop[hidden] { display: none; }
.checkout-modal { position: relative; width: min(560px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 38px; color: var(--ink); border: 1px solid var(--line-strong); background: var(--surface-solid); box-shadow: 0 40px 120px rgba(0, 0, 0, .4); }
.modal-close { position: absolute; top: 15px; right: 15px; width: 38px; height: 38px; border: 1px solid var(--line-strong); color: var(--ink); background: transparent; cursor: pointer; font-size: 20px; }
.modal-number { color: var(--orange); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.checkout-provider { display: grid; grid-template-columns: 46px 1fr 28px; gap: 12px; align-items: center; padding-right: 48px; }
.checkout-provider > span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: #ff8a20; font-size: 11px; font-weight: 900; letter-spacing: -.04em; }
.checkout-provider small,
.checkout-provider strong { display: block; }
.checkout-provider small { color: var(--ink-faint); font-size: 7px; font-weight: 850; letter-spacing: .12em; }
.checkout-provider strong { margin-top: 3px; font-size: 12px; }
.checkout-provider > i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: #0d805b; background: #dcf7ed; font-size: 10px; font-style: normal; font-weight: 900; }
.checkout-modal h2 { margin: 28px 0 10px; font-size: 36px; line-height: 1.02; letter-spacing: -.06em; }
.checkout-lead { max-width: 430px; margin: 0 0 22px; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }
.order-summary { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; padding: 18px; border: 1px solid var(--line); background: var(--canvas); font-size: 11px; }
.order-summary span { color: var(--ink-faint); }
.order-summary b { text-align: right; }
.order-summary span:last-of-type,
.order-summary b:last-of-type { padding-top: 12px; border-top: 1px solid var(--line); }
.order-summary b:last-of-type { color: var(--blue); font-size: 18px; letter-spacing: -.04em; }
.checkout-contact { display: grid; gap: 7px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); background: var(--canvas); }
.checkout-contact > span { color: var(--ink); font-size: 9px; font-weight: 820; }
.checkout-contact input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); background: var(--surface-solid); outline: 0; font: inherit; font-size: 11px; }
.checkout-contact input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,92,255,.12); }
.checkout-contact input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 13%, transparent); }
.checkout-contact small { color: var(--ink-faint); font-size: 7px; line-height: 1.45; }
.checkout-contact .checkout-field-error { color: var(--danger); font-size: 8px; font-weight: 760; }
.checkout-field-error:empty { display: none; }
.modal-note { color: var(--ink-soft); font-size: 10px; line-height: 1.65; }
.modal-telegram { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 0 20px; color: #fff; background: var(--blue); font-size: 10px; font-weight: 800; transition: background .2s ease; }
.modal-telegram:hover { background: #3568ff; }
.modal-telegram b { font-size: 15px; }
.modal-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0 4px; color: var(--ink-faint); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.modal-divider::before, .modal-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.checkout-guarantees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.checkout-guarantees > span { min-height: 58px; display: flex; align-items: center; gap: 7px; padding: 9px; border: 1px solid var(--line); color: var(--ink-soft); background: var(--surface-solid); font-size: 7px; font-weight: 720; line-height: 1.3; }
.checkout-guarantees i { width: 20px; height: 20px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; color: #0d805b; background: #dcf7ed; font-size: 8px; font-style: normal; font-weight: 900; }
.modal-pay { width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 0 12px 0 18px; color: #fff; border: 0; border-radius: 15px; background: #0b1020; cursor: pointer; font-size: 10px; font-weight: 800; box-shadow: 0 16px 34px rgba(11,16,32,.2); transition: transform .2s ease, box-shadow .2s ease; }
.modal-pay > span { text-align: left; }
.modal-pay small,
.modal-pay strong { display: block; }
.modal-pay small { color: rgba(255,255,255,.52); font-size: 7px; font-weight: 750; }
.modal-pay strong { margin-top: 2px; font-size: 12px; }
.modal-pay > b { min-width: 94px; height: 42px; display: grid; place-items: center; padding: 0 10px; border-radius: 11px; color: #0b1020; background: #ff8a20; font-size: 11px; }
.modal-pay:hover:not(:disabled) { box-shadow: 0 20px 42px rgba(11,16,32,.26); transform: translateY(-2px); }
.modal-pay:disabled { opacity: .6; cursor: wait; }
.modal-pay.loading { position: relative; }
.modal-pay.loading > span,
.modal-pay.loading > b { visibility: hidden; }
.modal-pay.loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -12px 0 0 -12px; border: 2px solid rgba(255,255,255,.34); border-top-color: #fff; border-radius: 50%; animation: checkout-spin .7s linear infinite; }
.checkout-redirect-note { margin: 12px 0 0; text-align: center; }
.text-button { display: block; margin: 15px auto 0; border: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: 10px; }
.modal-error { min-height: 15px; margin: 10px 0 0; color: var(--danger); text-align: center; font-size: 10px; }
@keyframes checkout-spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .checkout-modal { padding: 28px 20px 22px; }
  .checkout-modal h2 { font-size: 31px; }
  .checkout-guarantees { grid-template-columns: 1fr; }
  .checkout-guarantees > span { min-height: 42px; }
}

.toast { position: fixed; z-index: 400; bottom: 24px; left: 50%; max-width: calc(100% - 30px); padding: 13px 18px; color: #101114; border: 1px solid #101114; background: var(--acid); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .2s ease, transform .2s ease; font-size: 10px; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion ---------- */

.reveal { opacity: 1; transform: none; }
.reveal.reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.reveal-ready.visible, .reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.skeleton-line { height: 44px; margin: 5px 0; background: linear-gradient(100deg, var(--canvas-2), var(--surface-solid), var(--canvas-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- RTL ---------- */

[dir="rtl"] .language-menu { right: auto; left: 0; }
[dir="rtl"] .language-menu button { text-align: right; }
[dir="rtl"] .faq-list summary { padding-right: 0; padding-left: 60px; }
[dir="rtl"] .faq-list summary::after { right: auto; left: 0; }
[dir="rtl"] .faq-list p { margin-right: 0; margin-left: 60px; }
[dir="rtl"] .modal-close { right: auto; left: 15px; }
[dir="rtl"] .data-table th, [dir="rtl"] .data-table td { text-align: right; }
[dir="rtl"] .order-summary b { text-align: left; }

/* ---------- Responsive shell ---------- */

@media (max-width: 1180px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
}

@media (max-width: 850px) {
  :root { --gutter: 36px; }
  .section { padding: 105px 0; }
  .section-sm { padding: 70px 0; }
  .telegram-nav { display: none; }
  .topbar { height: 74px; }
  .telegram-dock { display: flex; }
  body.has-dock { padding-bottom: 76px; }
  .footer-shell { grid-template-columns: 1fr; gap: 44px; }
  .footer-lead { min-height: 0; }
  .footer-grid { grid-template-columns: repeat(2,1fr); gap: 38px 26px; }
  .footer-destination-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 520px) {
  :root { --gutter: 24px; }
  .section { padding: 82px 0; }
  .nav-shell { justify-content: space-between; gap: 10px; }
  .brand { flex: 0 0 auto; gap: 8px; font-size: 16px; }
  .brand-sigil { width: 34px; height: 34px; }
  .nav-actions { flex: 0 0 auto; gap: 6px; }
  .theme-toggle { width: 56px; }
  .theme-toggle-track { width: 48px; }
  [data-theme="dark"] .theme-toggle-thumb { transform: translateX(18px); }
  .round-control, .menu-button { width: 38px; min-width: 38px; height: 38px; }
  .display { font-size: clamp(42px, 12vw, 60px); }
  .display-sm { font-size: clamp(30px, 9vw, 42px); }
  .faq-list summary { padding-right: 48px; font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-destinations-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .footer-destination-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .checkout-modal { padding: 28px 20px; }
  .action-primary { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .mobile-nav, .telegram-dock, .site-footer, .modal-backdrop, .toast { display: none !important; }
  body { color: #000; background: #fff; }
}
/* ---------- Tariff detail dialog ---------- */
.plan-info-open { overflow: hidden; }
.plan-info-backdrop { position: fixed; z-index: 1200; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(7, 12, 25, .58); backdrop-filter: blur(12px); }
.plan-info-backdrop[hidden] { display: none; }
.plan-info-dialog { position: relative; width: min(470px, 100%); overflow: hidden; padding: 34px; border: 1px solid var(--line, rgba(128,145,180,.25)); border-radius: 30px; color: var(--ink, #0b1020); background: var(--canvas, #fff); box-shadow: 0 42px 110px rgba(5, 12, 31, .28); }
.plan-info-dialog::after { content: ""; position: absolute; z-index: 0; top: -110px; right: -105px; width: 260px; height: 260px; border: 1px solid rgba(21,87,255,.16); border-radius: 50%; box-shadow: 0 0 0 38px rgba(21,87,255,.035); pointer-events: none; }
.plan-info-close { position: absolute; z-index: 3; top: 20px; right: 20px; width: 44px; height: 44px; border: 1px solid var(--line, #dce2ed); border-radius: 14px; color: var(--ink, #0b1020); background: var(--surface, #f5f7fb); cursor: pointer; font-size: 24px; line-height: 1; }
.plan-info-symbol { position: relative; z-index: 1; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 21px; color: #fff; background: linear-gradient(145deg, #1557ff, #744cff); box-shadow: 0 16px 34px rgba(40,79,220,.24); font-size: 27px; font-weight: 900; }
.plan-info-dialog[data-kind="premium"] .plan-info-symbol { background: linear-gradient(145deg, #6844ff, #9b4dff); }
.plan-info-dialog[data-kind="speed"] .plan-info-symbol { color: #743c00; background: linear-gradient(145deg, #ffd588, #ffad42); }
.plan-info-dialog[data-kind="local"] .plan-info-symbol { color: #08755f; background: linear-gradient(145deg, #bff5e5, #73dfbf); }
.plan-info-copy { position: relative; z-index: 1; margin-top: 28px; }
.plan-info-copy > span { color: #1557ff; font-size: 10px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.plan-info-copy h2 { margin: 10px 58px 0 0; color: inherit; font-size: clamp(28px, 5vw, 38px); line-height: 1.02; letter-spacing: -.055em; }
.plan-info-copy p { margin: 18px 0 0; color: var(--ink-soft, #6f788b); font-size: 16px; line-height: 1.65; }
.plan-info-confirm { position: relative; z-index: 1; width: 100%; min-height: 56px; margin-top: 28px; border: 0; border-radius: 16px; color: #0b1020; background: #c9ff45; cursor: pointer; font-size: 14px; font-weight: 850; }
[data-theme="dark"] .plan-info-dialog { color: #f5f7fb; background: #111827; }
[data-theme="dark"] .plan-info-close { color: #fff; background: #192235; }
@media (max-width: 520px) {
  .plan-info-backdrop { align-items: end; padding: 10px; }
  .plan-info-dialog { padding: 27px 22px 22px; border-radius: 26px; }
  .plan-info-symbol { width: 58px; height: 58px; border-radius: 18px; }
  .plan-info-copy h2 { font-size: 29px; }
}

/* ============================================================
   SEO internal linking
   Catalog rows are server-rendered links (see partials/catalog.html)
   and every country page links to its travel guide, and back.
   ============================================================ */

.footer-destination-all strong { color: var(--blue); }

/* Server-rendered catalog rows are links until the JS catalog hydrates. */
a.country-row { text-decoration: none; }

.guide-country-link { padding: 0 0 96px; }
.guide-country-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 24px;
  padding: 30px 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.guide-country-card span { grid-column: 1; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.guide-country-card b { grid-column: 1; font-size: clamp(20px, 2.1vw, 28px); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
.guide-country-card i { grid-column: 1; color: var(--ink-soft); font-style: normal; font-size: 14px; }
.guide-country-card em {
  grid-column: 2; grid-row: 1 / -1;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--line); border-radius: 50%;
  font-style: normal; font-size: 18px;
}
.guide-country-card:hover,
.guide-country-card:focus-visible { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-soft); }

@media (max-width: 720px) {
  .guide-country-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-country-card { transition: none; }
  .guide-country-card:hover { transform: none; }
}
