/* ==========================================================================
   ApsnyVisa — lightweight stylesheet (no frameworks, no web fonts)
   Colours inspired by the flag of Abkhazia: green · white · red
   Uses CSS logical properties → RTL (Arabic) works automatically.
   ========================================================================== */

:root {
  --green-950: #04261a;
  --green-900: #063a22;
  --green-800: #08532f;
  --green-700: #0a6b37;
  --green-600: #0b7a3e;
  --green-500: #13924c;
  --green-200: #bfe5cc;
  --green-100: #dcf2e3;
  --green-50: #eff8f2;
  --red-700: #a10d25;
  --red-600: #c8102e;
  --red-500: #dc2a46;
  --red-50: #fdeef0;
  --amber-50: #fff7e6;
  --amber-600: #b26a00;
  --ink: #102119;
  --ink-2: #2e4038;
  --muted: #5d6e66;
  --line: #e1e9e4;
  --line-2: #cfdcd4;
  --bg: #ffffff;
  --bg-soft: #f6faf7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(6, 58, 34, .06), 0 1px 3px rgba(6, 58, 34, .08);
  --shadow: 0 10px 30px -12px rgba(6, 58, 34, .25), 0 4px 10px -6px rgba(6, 58, 34, .12);
  --shadow-lg: 0 30px 60px -20px rgba(6, 58, 34, .35);
  --container: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-ar: "Segoe UI", "Noto Sans Arabic", Tahoma, "Geeza Pro", "Arial", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:lang(ar) body, body:lang(ar) { font-family: var(--font-ar); line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--green-900); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--ink); }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.25rem); font-weight: 750; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.tiny { font-size: .8rem; line-height: 1.5; }
.center { text-align: center; }
.strong { font-weight: 700; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1.05em; height: 1.05em; }
.icon-xs { width: .95em; height: .95em; }
.flip { transform: scaleX(-1); }
[dir="rtl"] .flip { transform: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: 820px; }

.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--green-900); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- demo bar ---------- */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 16px; background: var(--green-950); color: #e6f4ea; font-size: .82rem; text-align: center; }
.demo-bar .icon { width: 1em; height: 1em; color: #ffd2d8; }

/* ---------- buttons ---------- */
.btn { --bg: var(--green-600); --fg: #fff; --bd: transparent; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 10px 20px; border: 1.5px solid var(--bd); border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 650; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { --bg: var(--green-600); box-shadow: 0 6px 16px -8px rgba(11, 122, 62, .7); }
.btn-primary:hover { --bg: var(--green-700); }
.btn-accent { --bg: var(--red-600); box-shadow: 0 6px 16px -8px rgba(200, 16, 46, .7); }
.btn-accent:hover { --bg: var(--red-700); }
.btn-outline { --bg: #fff; --fg: var(--green-700); --bd: var(--green-200); }
.btn-outline:hover { --bd: var(--green-600); --bg: var(--green-50); }
.btn-ghost { --bg: transparent; --fg: var(--ink-2); --bd: var(--line-2); }
.btn-ghost:hover { --bg: var(--bg-soft); --fg: var(--ink); }
.btn-white { --bg: #fff; --fg: var(--green-800); }
.btn-white:hover { --bg: var(--green-50); }
.btn-stripe { --bg: #533afd; box-shadow: 0 8px 20px -10px rgba(83, 58, 253, .8); }
.btn-stripe:hover { --bg: #4329e0; }
.btn-sm { min-height: 38px; padding: 7px 16px; font-size: .9rem; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn-loading { display: inline-flex; align-items: center; gap: .6em; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: .85rem; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--red-600); }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover .icon { transform: scaleX(-1) translateX(3px); }
.spinner { width: 1.1em; height: 1.1em; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; display: inline-block; }
.spinner-dark { border-color: var(--line-2); border-top-color: var(--green-600); }
@keyframes spin { to { transform: rotate(360deg); } }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
:lang(ar) .badge { text-transform: none; letter-spacing: 0; }
.badge-red { background: var(--red-50); color: var(--red-700); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px -12px rgba(6, 58, 34, .3); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.flag-stripe { height: 4px; background: repeating-linear-gradient(90deg, var(--green-600) 0 44px, #fff 44px 52px); position: relative; }
.flag-stripe::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 120px; background: var(--red-600); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.logo-text strong::first-letter { color: var(--green-700); }
.logo-text small { font-size: .7rem; color: var(--muted); font-weight: 500; }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .logo-text strong::first-letter { color: #fff; }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 550; font-size: .94rem; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--green-50); color: var(--green-800); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-menu { position: relative; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; list-style: none; font-weight: 600; font-size: .85rem; color: var(--ink-2); user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: var(--green-500); }
.lang-menu[open] summary .icon-sm { transform: rotate(180deg); }
.lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 200px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); z-index: 60; }
.lang-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.lang-list a span { font-size: .72rem; color: var(--muted); font-weight: 700; }
.lang-list a:hover { background: var(--green-50); }
.lang-list a[aria-current="true"] { background: var(--green-600); color: #fff; }
.lang-list a[aria-current="true"] span { color: #d8f0e0; }

.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; background: radial-gradient(1000px 500px at 85% -10%, var(--green-100), transparent 60%), radial-gradient(700px 380px at -10% 110%, var(--red-50), transparent 60%), var(--bg-soft); }
[dir="rtl"] .hero { background: radial-gradient(1000px 500px at 15% -10%, var(--green-100), transparent 60%), radial-gradient(700px 380px at 110% 110%, var(--red-50), transparent 60%), var(--bg-soft); }
.hero::after { content: ""; position: absolute; inset-inline-end: -120px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; background: repeating-linear-gradient(0deg, rgba(11, 122, 62, .07) 0 22px, transparent 22px 44px); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--green-200); color: var(--green-800); font-size: .85rem; font-weight: 650; box-shadow: var(--shadow-sm); }
.eyebrow .icon { color: var(--red-600); }
.hero h1 { margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.lead-sm { color: var(--ink-2); }
.hero-points { display: grid; gap: 10px; margin: 26px 0 30px; padding: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 10px; font-weight: 550; color: var(--ink-2); }
.hero-points .icon { color: var(--green-600); background: var(--green-100); padding: 6px; width: 32px; height: 32px; border-radius: 50%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- card & checker ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.checker { padding: 26px; border-top: 5px solid var(--red-600); position: relative; }
.checker-head h2 { font-size: 1.45rem; margin-bottom: 2px; }
.checker-head p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.checker-form { display: grid; gap: 14px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checker-disclaimer { margin: 14px 0 0; }
.checker-result:empty { display: none; }
.checker-result { margin-top: 18px; }

.result { border-radius: 12px; padding: 18px; border: 1px solid; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result-head { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.05rem; margin-bottom: 8px; }
.result-head .icon { width: 26px; height: 26px; }
.result p { margin-bottom: 10px; font-size: .95rem; }
.result-free { background: var(--green-50); border-color: var(--green-200); }
.result-free .result-head { color: var(--green-800); }
.result-required { background: #fff; border-color: var(--red-600); border-inline-start-width: 5px; }
.result-required .result-head { color: var(--red-700); }
.result-special { background: var(--amber-50); border-color: #f1d49a; }
.result-special .result-head { color: var(--amber-600); }
.facts { display: grid; gap: 8px; margin: 12px 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; background: var(--bg-soft); border-radius: 8px; font-size: .9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: end; }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.note .icon { margin-top: 2px; }
.note-ok { background: var(--green-50); color: var(--green-800); }
.note-warn { background: var(--amber-50); color: #7a4a00; }
.result .btn { margin-top: 4px; white-space: normal; text-align: center; }

/* ---------- form fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field > .label { font-weight: 600; font-size: .92rem; color: var(--ink-2); display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.req { color: var(--red-600); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: .82rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input:not([type]), select, textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235d6e66' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 40px; }
[dir="rtl"] select { background-position: left 14px center; }
input:hover, select:hover, textarea:hover { border-color: #b3c6ba; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(19, 146, 76, .15); }
input[type="date"] { min-height: 48px; }
input::placeholder, textarea::placeholder { color: #9aaba2; }
.help { margin: 0; font-size: .8rem; color: var(--muted); }
.help a { color: var(--muted); }
.error { margin: 0; font-size: .82rem; color: var(--red-600); font-weight: 600; min-height: 0; }
.error:empty { display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red-600); background: #fffafa; }
.field.invalid .seg, .field.invalid .dropzone { border-color: var(--red-600); }
.form-alert { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--red-50); color: var(--red-700); font-size: .9rem; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { position: relative; flex: 1 1 0; min-width: 90px; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: all .15s; background: #fff; }
.seg input:checked + span { border-color: var(--green-600); background: var(--green-50); color: var(--green-800); box-shadow: inset 0 0 0 1px var(--green-600); }
.seg input:focus-visible + span { outline: 3px solid var(--green-500); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .95rem; line-height: 1.5; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green-600); cursor: pointer; }
.field.invalid .check { color: var(--red-700); }

/* dropzone */
.dropzone { border: 2px dashed var(--line-2); border-radius: var(--radius); background: var(--bg-soft); transition: all .15s; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--green-500); background: var(--green-50); }
.dropzone:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(19, 146, 76, .15); }
.dz-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 16px; text-align: center; cursor: pointer; color: var(--muted); font-size: .92rem; }
.dz-empty u { color: var(--green-700); font-weight: 650; }
.dz-icon { width: 34px; height: 34px; color: var(--green-600); background: #fff; padding: 7px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.dz-file { display: flex; align-items: center; gap: 14px; padding: 12px 14px; }
.dz-thumb { width: 56px; height: 56px; flex: none; border-radius: 8px; background: #fff center/cover no-repeat; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--red-600); font-weight: 800; font-size: .75rem; }
.dz-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dz-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.dz-size { color: var(--muted); }
.dz-remove { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.dz-remove:hover { border-color: var(--red-600); color: var(--red-600); }
.file-plain { padding: 10px; border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--bg-soft); width: 100%; }

/* ---------- trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 24px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--green-50); color: var(--green-700); }
.trust-item strong { display: block; font-size: .95rem; }
.trust-item span { display: block; font-size: .83rem; color: var(--muted); line-height: 1.45; }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section-tint { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; text-align: start; max-width: none; }

/* prices */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.price-card.is-popular { border: 2px solid var(--red-600); box-shadow: var(--shadow); }
.price-card .badge { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--red-600); color: #fff; }
.pc-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--green-50); color: var(--green-700); margin-bottom: 16px; }
.pc-icon .icon { width: 26px; height: 26px; }
.pc-desc { color: var(--muted); font-size: .93rem; min-height: 3em; }
.pc-price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 20px; }
.pc-price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--green-800); }
.pc-price .per { color: var(--muted); font-size: .88rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.checklist .icon { color: var(--green-600); margin-top: 3px; width: 18px; height: 18px; }
.price-note { display: flex; gap: 8px; align-items: flex-start; justify-content: center; max-width: 760px; margin: 30px auto 0; color: var(--muted); font-size: .88rem; text-align: center; }
.price-note .icon { margin-top: 3px; }

/* steps */
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.step-card { position: relative; padding: 28px 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.step-num { position: absolute; top: 18px; inset-inline-end: 18px; font-size: 2.4rem; font-weight: 800; color: var(--green-100); line-height: 1; }
.step-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--green-600); color: #fff; margin-bottom: 18px; box-shadow: 0 0 0 6px var(--green-50); }
.step-card:nth-child(4) .step-icon { background: var(--red-600); box-shadow: 0 0 0 6px var(--red-50); }
.step-card h3 { font-size: 1.08rem; }
.step-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* documents */
.docs-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.docs-list { list-style: none; margin: 0; padding: 28px; display: grid; gap: 14px; background: linear-gradient(135deg, var(--green-50), #fff); border: 1px solid var(--green-100); border-radius: 18px; }
.docs-list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); font-weight: 550; }
.docs-icon { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--green-600); color: #fff; }
.docs-list li:last-child .docs-icon { background: var(--red-600); }

/* faq */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .2s, border-color .2s; }
.faq-item[open] { border-color: var(--green-200); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 650; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { color: var(--green-600); transition: transform .2s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 22px 18px; color: var(--ink-2); }
.faq-answer p { margin: 0; }

/* posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-grid-2 { grid-template-columns: repeat(2, 1fr); }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--green-50); }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.12rem; }
.post-body h3 a { color: var(--ink); text-decoration: none; }
.post-body h3 a:hover { color: var(--green-700); }
.post-body p { color: var(--muted); font-size: .93rem; }
.post-body .link-arrow { margin-top: auto; }
.post-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem !important; margin-bottom: 8px !important; }

/* cta band */
.cta-band { position: relative; overflow: hidden; background: var(--green-700); color: #fff; padding: 56px 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .06) 0 26px, transparent 26px 52px); }
.cta-band::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 10px; background: var(--red-600); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #d4efdd; font-size: 1.08rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-950); color: #b9d3c3; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 56px 36px; }
.footer-brand p { margin: 16px 0 0; max-width: 46ch; }
.footer-disclaimer { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: #8fb39e; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; }
.footer-disclaimer .icon { margin-top: 3px; }
.footer-title { color: #fff; font-size: .95rem; font-weight: 700; margin: 6px 0 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #d6e9dd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 9px; align-items: center; }
.footer-contact .icon { color: #6fbf8d; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.pay-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pb-label { margin-inline-end: 4px; }
.pb { padding: 3px 9px; border-radius: 6px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); font-weight: 700; font-size: .74rem; color: #e6f2ea; letter-spacing: .02em; }
.pay-badges-sm { justify-content: center; margin: 14px 0 0; }
.pay-badges-sm .pb { background: var(--bg-soft); border-color: var(--line); color: var(--muted); }

/* ---------- inner pages ---------- */
.page-hero { padding: 40px 0 36px; background: linear-gradient(180deg, var(--bg-soft), #fff); border-bottom: 1px solid var(--line); }
.page-hero-sm h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
.page-hero .lead { margin: 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; font-size: .85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line-2); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-700); text-decoration: underline; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; font-size: .92rem; margin: 0 0 24px; }
.notice p { margin: 0; }
.notice .icon { margin-top: 2px; }
.notice-info { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); }
.notice-warn { background: var(--amber-50); color: #7a4a00; border: 1px solid #f1d49a; }

/* ---------- apply ---------- */
.section-apply { padding: 36px 0 80px; background: var(--bg-soft); }
.progress { display: flex; gap: 6px; list-style: none; margin: 0 0 10px; padding: 0; counter-reset: p; }
.progress li { flex: 1; }
.progress button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 6px; border: 0; background: none; cursor: default; color: var(--muted); font-weight: 600; font-size: .88rem; text-align: start; }
.progress button:not([disabled]) { cursor: pointer; }
.progress button:not([disabled]):hover .p-label { text-decoration: underline; }
.p-num { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); font-size: .85rem; font-weight: 750; transition: all .2s; }
.progress .is-current .p-num { border-color: var(--green-600); background: var(--green-600); color: #fff; box-shadow: 0 0 0 4px var(--green-100); }
.progress .is-current button { color: var(--ink); }
.progress .is-done .p-num { border-color: var(--green-600); color: var(--green-700); background: var(--green-50); }
.progress .is-done button { color: var(--green-800); }
.progress-bar { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 26px; }
.progress-bar span { display: block; height: 100%; width: 16.6%; background: linear-gradient(90deg, var(--green-600), var(--green-500)); border-radius: 99px; transition: width .35s ease; }

.apply-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.apply-form, .pay-panel { padding: 32px; grid-column: 1; grid-row: 1; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-head { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.step-head h2 { font-size: 1.45rem; margin: 0; outline: none; }
.step-of { margin: 0; font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
:lang(ar) .step-of { text-transform: none; letter-spacing: 0; }
.step-badge { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--green-50); color: var(--green-700); flex: none; }
.step-hint { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: var(--green-50); border-radius: 10px; color: var(--green-800); font-size: .88rem; margin-bottom: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.span-2 { grid-column: 1 / -1; }
.step > .field { margin-bottom: 22px; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.step-alert { margin-top: 16px; }

.visa-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.visa-option { position: relative; cursor: pointer; }
.visa-option input { position: absolute; opacity: 0; inset: 0; }
.vo-card { position: relative; height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; transition: all .15s; }
.vo-card:hover { border-color: var(--green-500); }
.vo-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--bg-soft); color: var(--green-700); }
.vo-text strong { display: block; font-size: .98rem; }
.vo-text small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; margin-top: 2px; }
.vo-price { font-weight: 800; font-size: 1.3rem; color: var(--green-800); margin-top: auto; }
.vo-check { position: absolute; top: 12px; inset-inline-end: 12px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.visa-option input:checked + .vo-card { border-color: var(--green-600); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-600); }
.visa-option input:checked + .vo-card .vo-icon { background: var(--green-600); color: #fff; }
.visa-option input:checked + .vo-card .vo-check { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.visa-option input:focus-visible + .vo-card { outline: 3px solid var(--green-500); outline-offset: 2px; }

.sponsor-block { margin-top: 28px; padding: 22px; border: 1.5px solid var(--red-600); border-radius: 14px; background: linear-gradient(180deg, var(--red-50), #fff 120px); }
.sponsor-block h3 { display: flex; align-items: center; gap: 8px; color: var(--red-700); font-size: 1.08rem; }
.sponsor-block .step-hint { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }

.review { display: grid; gap: 14px; margin-bottom: 24px; }
.review-section { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.review-section header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.review-section h3 { margin: 0; font-size: .98rem; }
.review-section .link-btn { color: var(--green-700); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; text-decoration: none; }
.review-section dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.review-section dl div { padding: 9px 16px; border-bottom: 1px solid var(--line); }
.review-section dl div:nth-last-child(-n+2) { border-bottom: 0; }
.review-section dt { font-size: .78rem; color: var(--muted); }
.review-section dd { margin: 0; font-weight: 600; font-size: .93rem; overflow-wrap: anywhere; }
.declarations { display: grid; gap: 14px; padding: 18px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 16px; }
.cf-turnstile { margin-bottom: 16px; }

.apply-aside { position: sticky; top: 100px; display: grid; gap: 16px; grid-column: 2; grid-row: 1; }
.summary { padding: 22px; }
.summary h2 { font-size: 1.1rem; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: .92rem; }
.sum-row span { color: var(--muted); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 0 6px; }
.sum-total span { font-weight: 700; }
.sum-total strong { font-size: 1.8rem; color: var(--green-800); letter-spacing: -.02em; }
.sum-secure { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.sum-secure .icon { color: var(--green-600); margin-top: 2px; }
.sum-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); min-height: 34px; }
.draft-status { font-size: .8rem; color: var(--green-700); display: inline-flex; align-items: center; gap: 5px; }
.aside-help { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: .9rem; }
.aside-help .icon { color: var(--green-600); }
.aside-help p { margin: 0; }

.pay-panel { text-align: center; }
.pay-panel > * { max-width: 540px; margin-inline: auto; }
.pay-check .icon, .success-icon .icon { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--green-600); background: var(--green-50); border-radius: 50%; padding: 12px; }
.pay-panel .facts { text-align: start; margin: 22px 0; }
.pay-panel .facts dd { font-size: 1rem; }
.pay-methods { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
.pay-redirect { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); }

.modal { border: 0; padding: 0; border-radius: 18px; max-width: 460px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(4, 38, 26, .55); backdrop-filter: blur(3px); }
.modal-body { padding: 28px; }
.modal-body h2 { font-size: 1.4rem; margin-top: 12px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }

/* success */
.success { padding: 40px; text-align: center; }
.success h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); }
.success .lead { margin-inline: auto; }
.success h2 { margin-top: 30px; }
.timeline { list-style: none; padding: 0; margin: 18px auto 0; max-width: 520px; display: grid; gap: 4px; text-align: start; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; position: relative; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 15px; top: 44px; bottom: -6px; width: 2px; background: var(--green-100); }
.tl-dot { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--green-600); color: #fff; font-weight: 800; font-size: .88rem; }
.timeline p { margin: 4px 0 0; }
.success-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.email-preview { margin: 32px auto 0; max-width: 560px; text-align: start; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft); }
.email-preview summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; font-weight: 650; font-size: .9rem; color: var(--green-800); }
.email-mock { margin: 0 14px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: .92rem; }
.em-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.em-head p { margin: 2px 0; }
.em-head span:first-child { display: inline-block; min-width: 60px; color: var(--muted); }
.em-body { padding: 18px; }
.em-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--green-800); }
.em-stripe { width: 28px; height: 18px; border-radius: 3px; background: linear-gradient(var(--green-600) 0 33%, #fff 33% 66%, var(--green-600) 66%); box-shadow: inset 10px 0 0 var(--red-600), 0 0 0 1px var(--line); }
.em-body ol { padding-inline-start: 20px; color: var(--ink-2); }

/* support */
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.support-card { padding: 32px; }
.ticket-form .grid-2 { margin-bottom: 22px; }
.ticket-done { text-align: center; padding: 20px 0; }
.support-aside { display: grid; gap: 16px; position: sticky; top: 100px; }
.info-card { padding: 24px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .icon { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--green-50); color: var(--green-700); }
.info-list strong, .info-list span, .info-list a { display: block; font-size: .92rem; }
.info-list span { color: var(--muted); }
.faq-link { display: flex; align-items: center; gap: 12px; padding: 18px 20px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem; }
.faq-link .icon:first-child { color: var(--red-600); }
.faq-link:hover { border-color: var(--green-500); color: var(--green-800); }

/* blog article & legal prose */
.article-hero { border: 0; padding-bottom: 20px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin: 0; }
.article-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; margin-bottom: 30px; box-shadow: var(--shadow); }
.prose { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--green-600); }
.prose .intro { font-size: 1.18rem; color: var(--ink); }
.prose strong { color: var(--ink); }
.section-legal { padding-top: 40px; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 44px 0 70px; padding: 26px 28px; border-radius: 16px; background: var(--green-50); border: 1px solid var(--green-100); border-inline-start: 6px solid var(--red-600); }
.article-cta p { margin: 0; color: var(--ink-2); }

/* 404 + root */
.big-404 { font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 900; line-height: 1; margin: 0; background: linear-gradient(var(--green-600) 0 33%, var(--red-600) 33% 66%, var(--green-600) 66%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lang-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 30px 0 0; }
.lang-chips a { display: block; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; }
.lang-chips a:hover { border-color: var(--green-600); background: var(--green-50); }
.page-root { min-height: 100vh; display: grid; place-items: center; background: var(--bg-soft); }
.root-picker { text-align: center; padding: 40px 20px; }
.root-picker .logo { margin-bottom: 30px; text-align: start; }
.lang-chips-lg { max-width: 560px; }
.lang-chips-lg a { padding: 12px 22px; font-size: 1.05rem; font-weight: 600; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 9px; font-size: .9rem; }
  .logo-text small { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; inset-inline: 0; top: 100%; margin: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px 20px 18px; display: none; }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 10px; font-size: 1rem; }
  .header-actions { margin-inline-start: auto; }
  .hero-grid, .docs-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 36px 0 48px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 30px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .apply-grid, .support-grid { grid-template-columns: 1fr; }
  .apply-aside, .support-aside { position: static; grid-column: 1; grid-row: auto; }
  .apply-aside { grid-row: 1; }
  .apply-form, .pay-panel { grid-row: 2; }
  .apply-aside .aside-help, .sum-row:nth-of-type(2) { display: none; }
  .summary { padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; }
  .summary h2, .summary .sum-secure, .summary .pay-badges, .summary .sum-footer { grid-column: 1 / -1; }
  .summary h2 { display: none; }
  .sum-row { border: 0; padding: 0; flex-direction: column; gap: 0; }
  .sum-total { padding: 0; }
  .summary .pay-badges { display: none; }
  .sum-footer { margin-top: 6px; padding-top: 8px; }
  .section { padding: 60px 0; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .header-inner { min-height: 62px; gap: 10px; }
  .header-cta { display: none; }
  .logo-text strong { font-size: 1.05rem; }
  .lang-menu summary .lang-code { display: none; }
  .checker { padding: 20px; }
  .row-2, .grid-2 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 14px; }
  .steps-grid, .post-grid, .post-grid-2 { grid-template-columns: 1fr; }
  .visa-options { grid-template-columns: 1fr; }
  .vo-card { flex-direction: row; align-items: center; padding: 14px; padding-inline-end: 48px; }
  .vo-text { flex: 1; }
  .vo-price { margin: 0; font-size: 1.15rem; }
  .vo-check { top: 50%; transform: translateY(-50%); }
  .apply-form, .pay-panel, .support-card, .success { padding: 20px; }
  .progress .p-label { display: none; }
  .progress { justify-content: space-between; }
  .progress li { flex: none; }
  .step-nav .btn { flex: 1; }
  .step-nav span:empty { display: none; }
  .review-section dl { grid-template-columns: 1fr; }
  .review-section dl div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-inner, .article-cta { flex-direction: column; align-items: flex-start; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { flex: 1; }
  .modal-actions .btn { flex: 1; }
}

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

@media print {
  .site-header, .site-footer, .demo-bar, .apply-aside, .step-nav { display: none !important; }
}
