@import url('https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --surface: #fffdf7;
  --ink: #20332d;
  --muted: #4d6157;
  --line: #cad5c8;
  --accent: #245447;
  --mast: #e6eee4;
  --focus: #98602e;
  --green: #245447;
  --hero-a: #edf2e8;
  --hero-b: #e7e8d8;
  --hero-c: #e9dcc8;
  --hero-line: #c4d3c2;
  --intro: #354f43;
  --route-line: #bd9868;
  --button-ink: #fffdf7;
  --support-a: #e4eee5;
  --support-b: #f1e7d7;
  --support-line: #c4d3c2;
  font: 16px/1.6 "Golos Text", "Segoe UI", Arial, sans-serif;
}

[dir="rtl"] { font-family: "Noto Sans Arabic", Tahoma, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--accent); text-underline-offset: .19em; }
a:hover { text-decoration-thickness: 2px; }
input, select, button { font: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.45rem); line-height: 1.23; letter-spacing: -.035em; }
h3 { font-size: 1.2rem; line-height: 1.42; }
[dir="rtl"] :is(h1,h2,h3) { letter-spacing: 0; line-height: 1.4; }
.wrap { width: min(1130px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; inset-inline-start: 12px; top: 10px; padding: 8px 12px; background: var(--surface); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { position: relative; z-index: 4; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 24px; }
.wordmark { color: var(--ink); font-size: 1.3rem; font-weight: 700; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.wordmark [lang="ar"] { color: var(--green); letter-spacing: 0; font-size: .95em; }
.wordmark .brand-sep { color: var(--muted); font-weight: 400; padding-inline: 3px; }
.header-row nav { display: flex; gap: 25px; }
.header-row nav a { display: inline-block; color: var(--ink); text-decoration: none; font-weight: 600; transition: color .22s ease, transform .22s ease; }
.header-row nav a:hover, .header-row nav a:focus-visible { color: var(--accent); transform: translateY(-2px); }
.support-nav { position: relative; }
.language { display: flex; direction: ltr; gap: 3px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.language button { min-height: 37px; padding: 4px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); }
.language button[aria-pressed="true"] { background: var(--accent); color: var(--button-ink); }
.hero { position: relative; background: linear-gradient(115deg, var(--hero-a) 0%, var(--hero-b) 58%, var(--hero-c) 100%); border-bottom: 1px solid var(--hero-line); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0 0 0 auto; width: 46%; background: url('geometry.svg') repeat; opacity: .14; mask-image: linear-gradient(to right, transparent, black 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(30px,6vw,82px); align-items: center; padding-block: clamp(42px,6vw,72px); }
h1 { font-family: "Golos Text", "Segoe UI", Arial, sans-serif; font-weight: 600; font-size: clamp(2.7rem,6vw,4.85rem); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
[dir="rtl"] h1 { font-family: inherit; font-size: clamp(2.45rem,5vw,4.55rem); }
.hero-flags { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--accent); font-size: .85rem; font-weight: 700; letter-spacing: .01em; }
.hero-flags img { width: 31px; height: 21px; object-fit: cover; border: 1px solid #40526155; border-radius: 2px; }
.hero-flags img + img { margin-inline-end: 7px; }
#intro { max-width: 38ch; margin-top: 18px; color: var(--intro); font-size: 1.12rem; }
.hero-aside { min-width: 0; display: grid; gap: 18px; }
.hero-photo { margin: 0; overflow: hidden; border: 1px solid var(--hero-line); border-radius: 6px; box-shadow: 0 15px 35px #14392a18; aspect-ratio: 16 / 8.2; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.search { position: relative; min-width: 0; }
.search label, .region-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.search-field { display: flex; gap: 5px; background: var(--surface); border-radius: 7px; border: 1px solid var(--accent); padding: 5px; }
.search-field input { min-width: 0; flex: 1; color: var(--ink); border: 0; padding: 8px 9px; background: transparent; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field button, .primary { border: 0; border-radius: 4px; padding: 8px 16px; background: var(--accent); color: var(--button-ink); font-weight: 600; }
#suggestions { position: absolute; z-index: 2; inset-inline: 0; list-style: none; margin: 3px 0 0; padding: 4px; background: var(--surface); border: 1px solid var(--accent); border-radius: 7px; box-shadow: 0 8px 16px #14392a24; }
#suggestions button { border: 0; border-radius: 4px; padding: 8px 11px; display: block; width: 100%; min-height: 44px; text-align: start; color: var(--accent); background: transparent; }
#suggestions button:hover, #suggestions button[aria-selected="true"] { background: var(--mast); }
#search-status, #guide-status { color: var(--muted); margin-top: 5px; }
#search-status:empty, #guide-status:empty { display: none; }
.secondary { padding: 6px 11px; margin-block: 7px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--accent); background: var(--surface); }
.routes { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 28px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.route { align-self: start; min-width: 0; border: 1px solid var(--line); border-inline-start: 3px solid var(--route-line); border-radius: 5px; padding: 10px 14px; background: var(--surface); }
.route summary { color: var(--accent); font-size: 1.12rem; font-weight: 650; min-height: 37px; }
.route, .guide, .questions details, .subguide { interpolate-size: allow-keywords; }
.route::details-content, .guide::details-content, .questions details::details-content, .subguide details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s ease; transition-behavior: allow-discrete; }
.route[open]::details-content, .guide[open]::details-content, .questions details[open]::details-content, .subguide details[open]::details-content { block-size: auto; }
summary { transition: color .2s ease, padding-inline-start .2s ease; }
summary:hover { color: var(--green); padding-inline-start: 4px; }
.route p, .section-top p, #about-body { color: var(--muted); max-width: 70ch; }
.route ul, .local-links { margin-block: 7px 0; padding-inline-start: 22px; }
.section { padding-block: 32px; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.topic-groups { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; margin-top: 20px; }
.topic-group h3 { margin-bottom: 8px; }
.topic-group ul { padding: 0; margin: 0; list-style: none; }
.topic-group a { display: block; border-top: 1px solid var(--line); padding-block: 9px; font-weight: 600; text-decoration: none; }
.topic-group a:hover { text-decoration: underline; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.section-top p { margin-top: 6px; }
.region-field select { min-width: 220px; max-width: 100%; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 5px; color: var(--ink); background: var(--surface); }
.region-field { min-width: 0; flex: 0 1 23rem; }
.regional-cash { margin-top: 23px; }
.regional-cash { border-block: 1px solid var(--line); padding-block: 9px; interpolate-size: allow-keywords; }
.regional-cash summary { color: var(--accent); font-size: 1.2rem; font-weight: 700; padding-block: 7px; }
.regional-cash::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s ease; transition-behavior: allow-discrete; }
.regional-cash[open]::details-content { block-size: auto; }
.regional-cash-body { padding-block: 8px 14px; }
#region-content > h3 { margin-top: 16px; }
.exchange-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-block: 12px; }
.exchange { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 15px; }
.exchange h4 { font-size: 1.07rem; }
.exchange small { font-size: .875rem; color: var(--muted); }
.exchange p + p { margin-top: 6px; }
.questions details, .guide { border-bottom: 1px solid var(--line); }
.questions summary, .guide summary { padding-block: 12px; font-weight: 600; color: var(--accent); }
.questions details p { padding-block: 0 12px; }
.guide summary { font-size: 1.12rem; }
.guide:target { border-inline-start: 3px solid var(--focus); padding-inline-start: 10px; }
.guide-body { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; padding-block: 0 18px; max-width: 87ch; }
.guide-body ul, .guide-body ol { margin: 0; padding-inline-start: 24px; }
.guide-body li + li { margin-top: 6px; }
.guide-body blockquote { margin: 0; padding-inline-start: 12px; border-inline-start: 2px solid var(--line); }
.guide-body .primary { justify-self: start; text-decoration: none; }
.table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; }
.guide-body table { border-collapse: collapse; width: 100%; }
.guide-body th, .guide-body td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: start; }
.guide-body th { vertical-align: top; }
.visa-country { display: inline-flex; align-items: center; gap: 9px; }
.visa-country img { flex: none; width: 28px; height: 19px; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; }
.guide-body caption { text-align: start; color: var(--muted); padding-block: 4px 8px; }
.rent-price { white-space: nowrap; }
.rent-table-all { min-width: 39rem; }
.subguide { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; border-block: 1px solid var(--line); padding-block: 14px; }
.subguide select { display: block; width: min(100%,24rem); max-width: 100%; padding: 8px 10px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.subguide details summary { min-height: 44px; }
.lookup { padding-block: 13px; }
.lookup small, .exchange .original, .source-note { color: var(--muted); }
.exchange .original { display: block; overflow-wrap: anywhere; text-align: start; }
.lookup ul { margin-block: 6px 0; padding-inline-start: 22px; }
.region-field select, .table-wrap, #region-content { overflow-wrap: anywhere; }
.site-footer { padding-block: 25px; color: var(--muted); }
.footer-flags { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-block: 23px; padding-block: 20px; border-block: 1px solid var(--line); }
.footer-flags img { display: block; width: 32px; height: 22px; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; background: #fff; }
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
.partner-logo { box-sizing: border-box; display: flex; align-items: center; justify-content: center; margin: 0; width: min(100%,310px); min-height: 160px; padding: 12px 20px; border: 1px solid #c5d1c2; border-radius: 6px; background: #e3e9de; color: #1d2721; }
.partner-logo img { display: block; max-width: 100%; object-fit: contain; }
.academy-logo img { width: 260px; height: 136px; object-fit: cover; }
.back-top { position: fixed; z-index: 5; right: max(16px,env(safe-area-inset-right)); bottom: max(18px,env(safe-area-inset-bottom)); display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--accent); box-shadow: 0 5px 18px #102b2833; opacity: 0; visibility: hidden; transform: translateY(10px); pointer-events: none; transition: opacity .22s ease, transform .22s ease, visibility .22s ease; }
.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.back-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .back-top { right: auto; left: max(16px,env(safe-area-inset-left)); }
::view-transition-old(root) { animation: .28s ease-in both language-fade-out; }
::view-transition-new(root) { animation: .28s ease-out both language-fade-in; }
@keyframes language-fade-out { to { opacity: 0; } }
@keyframes language-fade-in { from { opacity: 0; } }
.support { background: linear-gradient(90deg, var(--support-a), var(--support-b)); padding-inline: 23px; margin-block: 26px; border: 1px solid var(--support-line); border-radius: 8px; }
.support p { max-width: 70ch; margin-top: 6px; }
.support-placeholder { display: inline-block; margin-top: 16px; padding: 8px 15px; border: 1px solid var(--green); color: var(--green); border-radius: 4px; font-weight: 700; letter-spacing: .01em; }
.footer-row, #sources { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #111d19;
    --surface: #1b2a24;
    --ink: #f1f3e9;
    --muted: #bfcec1;
    --line: #40574a;
    --accent: #acd9b7;
    --mast: #284332;
    --focus: #e4bb7c;
    --green: #b5dfb9;
    --hero-a: #1c3027;
    --hero-b: #25382b;
    --hero-c: #3c3a2b;
    --hero-line: #445b49;
    --intro: #dbe6d7;
    --route-line: #bd9a64;
    --button-ink: #10241c;
    --support-a: #203a2d;
    --support-b: #393629;
    --support-line: #56694e;
  }
  .hero-photo img { filter: brightness(.82) saturate(.9); }
  .hero-flags img { border-color: #dce8d666; }
  .partner-logo { background: #b9c6b7; border-color: #829684; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .01ms !important; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 32px; }
  .topic-groups { gap: 16px; }
  .header-row nav { gap: 12px; }
}

@media (max-width: 520px) {
  .header-row { flex-wrap: wrap; gap: 8px; padding-block: 9px; }
  .header-row nav { order: 3; width: 100%; justify-content: space-between; padding-block: 3px; }
  .routes, .topic-groups, .exchange-list { grid-template-columns: 1fr; gap: 14px; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .section-top { align-items: stretch; flex-direction: column; gap: 10px; }
  .region-field { flex-basis: auto; }
  .region-field select { width: 100%; }
  .section { padding-block: 25px; }
  .footer-flags { gap: 7px; }
  .footer-flags img { width: 29px; height: 20px; }
  .partner-logo { width: 100%; }
}
