/* ==========================================================================
   Arkan Academy — Homepage (static revamp, Phase 1)

   Brand reference: arkanacademy.com Elementor kit
     primary  #1A62A4 (Arkan blue)   accent #CD4022 (Arkan red-orange)
     font     Tajawal
   Layout uses logical properties (inline-start/end) so the same stylesheet
   serves the Arabic (rtl) and English (ltr) pages.
   ========================================================================== */

:root {
  --navy: #0e2a47;
  --navy-2: #133a63;
  --blue: #1a62a4;
  --blue-light: #4ea0d8;
  --blue-soft: #eef6fb;
  --blue-tint: #dcebf6;
  --accent: #cd4022;
  --accent-hover: #b0361c;
  --text: #0e2a47;
  --text-2: #4f5b6b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --whatsapp: #118241;

  --font: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  --fs-h1: clamp(2rem, 4.4vw, 3.5rem);
  --fs-h2: clamp(1.625rem, 2.8vw, 2.375rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.0625rem, 1.4vw, 1.25rem);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(14, 42, 71, .05), 0 10px 30px rgba(14, 42, 71, .07);
  --shadow-hover: 0 2px 4px rgba(14, 42, 71, .06), 0 20px 44px rgba(14, 42, 71, .13);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.3; font-weight: 800; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--navy); color: #fff; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 16px 32px; margin-block-end: clamp(28px, 4vw, 44px);
}
.section-head__text { max-width: 640px; }
.eyebrow {
  display: inline-block; margin-block-end: 10px;
  font-size: .875rem; font-weight: 700; color: var(--blue); letter-spacing: .02em;
}
.section-title { font-size: var(--fs-h2); color: var(--navy); }
.section-lead { margin-block-start: 10px; color: var(--text-2); font-size: 1.0625rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 24px; border-radius: var(--pill);
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--navy-2); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--blue-soft); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }

.icon { width: 1.1em; height: 1.1em; flex: none; }
[dir="rtl"] .icon--dir { transform: scaleX(-1); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-weight: 700; text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

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

.topbar { background: linear-gradient(90deg, var(--navy-2), var(--blue)); color: #fff; font-size: .875rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; }
.topbar__item .icon { opacity: .8; }

.social { display: flex; gap: 6px; }
.social a {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); transition: background-color .2s;
}
.social a:hover { background: rgba(255, 255, 255, .3); }
.social svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Header ---------- */

.site-header {
  /* No backdrop-filter here: it would become the containing block for the fixed mobile drawer. */
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-block-end: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 6px 24px rgba(14, 42, 71, .06); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand__logo { width: 64px; height: 64px; object-fit: contain; }
.brand__years {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-inline-start: 14px; border-inline-start: 1px solid var(--border);
  color: var(--blue); line-height: 1.05; font-weight: 800;
}
.brand__years strong { font-size: 1.5rem; }
.brand__years span { font-size: .75rem; color: var(--text-2); font-weight: 700; }

.nav { margin-inline-start: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: block; padding: 10px 14px; border-radius: var(--pill);
  font-weight: 700; color: var(--navy); text-decoration: none; transition: background-color .2s, color .2s;
}
.nav__link:hover { background: var(--blue-soft); color: var(--blue); }
.nav__link[aria-current="page"] { color: var(--blue); background: var(--blue-soft); }

/* Dropdown (Our Coaches › Version 1 / Version 2) */
.nav__item--sub { position: relative; }
.nav__sub-toggle {
  display: flex; align-items: center; gap: 6px; border: 0; background: none;
  font: inherit; font-weight: 700; line-height: inherit; cursor: pointer;
}
.nav__sub-toggle.is-current { color: var(--blue); background: var(--blue-soft); }
.nav__caret { width: .75em; height: .75em; transition: transform .2s var(--ease); }
.nav__sub-toggle[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
.nav__sub {
  display: none; position: absolute; top: calc(100% + 8px); inset-inline-start: 0; z-index: 5;
  min-width: 240px; padding: 8px; gap: 2px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-hover);
}
.nav__sub::before { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 10px; }
.nav__item--sub.is-open .nav__sub { display: grid; }
.nav__sublink {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm); line-height: 1.35;
  font-weight: 700; color: var(--navy); text-decoration: none;
}
.nav__sublink small { display: block; margin-block-start: 2px; font-size: .8125rem; font-weight: 500; color: var(--text-2); }
.nav__sublink:hover, .nav__sublink[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }
@media (hover: hover) and (min-width: 1101px) {
  .nav__item--sub:hover .nav__sub { display: grid; }
}
/* Keep every menu item on one line just above the drawer breakpoint. */
@media (min-width: 1101px) and (max-width: 1280px) {
  .header__inner { gap: 16px; }
  .nav__list { gap: 0; }
  .nav__link { padding-inline: 10px; white-space: nowrap; }
}

.header__actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px;
  border: 1px solid var(--border); border-radius: var(--pill);
  font-weight: 700; color: var(--navy); text-decoration: none;
}
.lang-switch:hover { border-color: var(--blue); color: var(--blue); }

.nav-toggle {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav__mobile-extra { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(78, 160, 216, .35), transparent 60%),
    linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 70%);
}
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.hero__video.is-ready { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 42, 71, .55) 0%, rgba(14, 42, 71, .82) 100%);
}
.hero__inner { padding-block: clamp(72px, 11vw, 150px); max-width: 820px; }
.hero__title { font-size: var(--fs-h1); font-weight: 800; }
.hero__title span { display: block; margin-block-start: 8px; font-size: .58em; font-weight: 700; color: #cfe6f6; }
.hero__lead { margin-block-start: 22px; font-size: var(--fs-lead); color: #e3eef7; max-width: 680px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 34px; }
.hero__fields { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 34px; }
.hero__fields li {
  padding: 6px 14px; border-radius: var(--pill); font-size: .875rem; font-weight: 700;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
}

/* ---------- Partners marquee ---------- */

.partners { padding-block: clamp(40px, 5vw, 64px); border-block-end: 1px solid var(--border); }
.partners__title { text-align: center; font-size: 1.25rem; color: var(--navy); margin-block-end: 26px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 140s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; gap: clamp(28px, 4vw, 48px); padding-inline-end: clamp(28px, 4vw, 48px); }
.marquee__list li { flex: none; }
.marquee__list img {
  height: 64px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s;
}
.marquee__list li:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Cards rail (courses, news, testimonials) ---------- */

.rail {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rail-controls { display: none; gap: 8px; }
.rail-controls button {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--navy); cursor: pointer;
}
.rail-controls button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.rail-controls button:disabled { opacity: .4; cursor: default; }

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.course__media { aspect-ratio: 16 / 10; background: var(--blue-soft); overflow: hidden; }
.course__media img { width: 100%; height: 100%; object-fit: cover; }
.course__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 4px 12px; border-radius: var(--pill); font-size: .8125rem; font-weight: 700;
  background: var(--blue-soft); color: var(--blue);
}
.chip--accent { background: #fdece8; color: var(--accent-hover); }
.card__title { font-size: var(--fs-h3); color: var(--navy); }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__text {
  color: var(--text-2); font-size: .9375rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__foot { margin-block-start: auto; padding-block-start: 6px; }
.card__foot .link-arrow { position: relative; z-index: 1; }

.courses__all { display: flex; justify-content: center; margin-block-start: 36px; }

.news__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px; border-block-start: 4px solid var(--blue); }
.news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text-2); font-size: .875rem; }

/* ---------- About + stats ---------- */

.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__media { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.about__slides { position: relative; aspect-ratio: 515 / 597; }
.about__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  object-position: bottom; opacity: 0; transition: opacity 1s var(--ease);
}
.about__slides img.is-active { opacity: 1; }
.about__text { margin-block-start: 16px; color: var(--text-2); font-size: 1.0625rem; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block-start: 32px; }
.stat {
  display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius);
  background: var(--blue-soft); border: 1px solid var(--blue-tint);
}
.stat:nth-child(1), .stat:nth-child(4) { background: linear-gradient(160deg, var(--blue-light), var(--blue)); border-color: transparent; color: #fff; }
.stat__icon {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255, 255, 255, .7); color: var(--blue);
}
.stat:nth-child(1) .stat__icon, .stat:nth-child(4) .stat__icon { background: rgba(255, 255, 255, .18); color: #fff; }
.stat__icon svg { width: 24px; height: 24px; }
.stat__num { display: block; font-size: clamp(1.625rem, 2.6vw, 2.125rem); font-weight: 800; line-height: 1.1; direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .stat__num { text-align: end; }
.stat__label { display: block; margin-block-start: 4px; font-size: .9375rem; font-weight: 500; }

/* ---------- CTA band ---------- */

.cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 24px;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(160deg, var(--blue-light) 0%, var(--blue) 70%);
}
.cta__title { font-size: var(--fs-h2); }
.cta__text { margin-block-start: 12px; color: #eaf4fb; font-size: 1.0625rem; }
.cta .btn { margin-block-start: 24px; }
.cta__art { justify-self: center; max-width: 260px; }

/* ---------- Accreditations ---------- */

.accr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.accr li {
  display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 18px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  transition: box-shadow .25s var(--ease), border-color .25s;
}
.accr li:hover { border-color: var(--blue-tint); box-shadow: var(--shadow); }
.accr img { max-height: 84px; width: auto; object-fit: contain; }

/* ---------- Testimonials ---------- */

.quote { padding: 28px; gap: 16px; }
.quote__mark { width: 36px; height: 36px; color: var(--blue-light); }
.quote__text { font-size: 1.0625rem; color: var(--text); }

/* ---------- Newsletter ---------- */

.newsletter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: center;
  padding: clamp(28px, 5vw, 52px); border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 80%);
}
.newsletter__title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.newsletter__text { margin-block-start: 10px; color: #d5e4f1; }
.newsletter__form { display: flex; gap: 10px; }
.newsletter__form input {
  flex: 1; min-width: 0; min-height: 52px; padding: 10px 20px; border-radius: var(--pill);
  border: 2px solid transparent; font: inherit; color: var(--text); background: #fff;
}
.newsletter__form input:focus { outline: none; border-color: var(--blue-light); }
.newsletter__form .btn { min-height: 52px; }
.form-status { grid-column: 1 / -1; min-height: 1.5em; font-size: .9375rem; color: #ffd9cf; }
.form-status.is-ok { color: #c9f2d8; }

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

.faq { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.faq__list { display: grid; gap: 10px; margin-block-start: 28px; }
.faq__list li {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-weight: 700; color: var(--navy);
}
.faq__list li .icon { color: var(--blue); }
.faq__more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-block-start: 24px; color: var(--text-2); }

.collage {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; height: 560px; overflow: hidden;
  border-radius: var(--radius-lg);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
}
.collage__col { display: flex; flex-direction: column; gap: 10px; animation: col-up 40s linear infinite; }
.collage__col--down { animation-name: col-down; }
.collage__col img { width: 100%; border-radius: 12px; }
@keyframes col-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes col-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }

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

.site-footer { background: var(--navy); color: #c9d6e3; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr 1.2fr; gap: 40px; padding-block: 64px 48px; }
.footer__brand img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 16px; padding: 6px; }
.footer__tagline { margin-block: 16px 18px; color: #fff; font-weight: 700; font-size: 1.125rem; }
.footer__title { margin-block-end: 16px; color: #fff; font-size: 1.0625rem; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { display: inline-block; padding-block: 4px; text-decoration: none; }
.footer__links a:hover { color: #fff; text-decoration: underline; }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer__contact .icon { margin-block-start: .3em; color: var(--blue-light); }
.footer__map {
  display: block; text-decoration: none; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .15);
  aspect-ratio: 4 / 3; background: var(--navy-2);
}
.footer__map iframe { width: 100%; height: 100%; border: 0; }
.footer__bar { border-block-start: 1px solid rgba(255, 255, 255, .12); }
.footer__bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; font-size: .875rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer__bar a { display: inline-block; padding-block: 4px; text-decoration: none; }
.footer__bar a:hover { color: #fff; text-decoration: underline; }

/* ---------- Small helpers ---------- */

.section--flush-top { padding-block-start: 0; }
.icon--fill { fill: currentColor; }
.chip--link { position: relative; z-index: 1; text-decoration: none; }
.chip--link:hover { text-decoration: underline; }
/* i-chev points right; flip so "previous" points to the inline-start side */
.chev-prev { transform: scaleX(-1); }
[dir="rtl"] .chev-prev { transform: none; }
[dir="rtl"] .chev-next, [dir="rtl"] .chev-end { transform: scaleX(-1); }
.rail--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quote__text { margin: 0; }
.footer__map-inner { display: grid; place-items: center; align-content: center; height: 100%; gap: 8px; padding: 16px; text-align: center; color: #fff; font-weight: 700; }
.footer__map-inner .icon { width: 36px; height: 36px; color: var(--blue-light); }
.footer__map:hover { border-color: var(--blue-light); }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 1100px) {
  .topbar__address { display: none; }
  .nav-toggle { display: grid; }
  .header__actions .btn, .header__actions .lang-switch { display: none; }
  .header__actions { margin-inline-start: auto; }
  /* Drawer is display:none while closed so it never adds horizontal scroll. */
  .nav {
    display: none; position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 60; width: min(340px, 86vw);
    padding: 88px 24px 32px; background: #fff; box-shadow: var(--shadow-hover);
    overflow-y: auto;
  }
  .nav.is-open { display: block; animation: drawer-in .3s var(--ease); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { padding: 14px 16px; font-size: 1.0625rem; }
  .nav__sub-toggle { width: 100%; justify-content: space-between; text-align: start; }
  .nav__sub { position: static; min-width: 0; padding: 4px 0 4px; padding-inline-start: 12px; border: 0; box-shadow: none; }
  .nav__sub::before { display: none; }
  .nav__mobile-extra { display: grid; gap: 12px; margin-block-start: 24px; padding-block-start: 24px; border-block-start: 1px solid var(--border); }
  .nav__mobile-extra .lang-switch { justify-content: center; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(14, 42, 71, .4); }
  .nav-close { position: absolute; top: 20px; inset-inline-end: 20px; }
  .nav-toggle.nav-close { display: grid; }
  .accr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .rail {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(280px, 46%);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-block: 4px 16px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
  .rail-controls { display: flex; }

  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 340px; }
  .cta { grid-template-columns: 1fr; }
  .cta__art { display: none; }
  .newsletter { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .collage { height: 340px; order: 2; }
}

@keyframes drawer-in { from { transform: translateX(100%); } }
[dir="rtl"] .nav.is-open { animation-name: drawer-in-rtl; }
@keyframes drawer-in-rtl { from { transform: translateX(-100%); } }

@media (max-width: 640px) {
  .topbar__inner { justify-content: center; }
  .topbar__contact .topbar__item--email { display: none; }
  .header__inner { min-height: 68px; gap: 12px; }
  .brand__logo { width: 52px; height: 52px; }
  .brand__years strong { font-size: 1.25rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .rail { grid-auto-columns: 86%; }
  .stats { gap: 12px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .accr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter__form { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .section-head { align-items: start; }
}

@media (max-width: 400px) {
  .topbar .social { display: none; }
  .stat__label { font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee__list { flex-wrap: wrap; justify-content: center; row-gap: 24px; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .collage__col { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
