/* جمعية رواد الإبداع — الأنماط المشتركة */
:root {
  --green-950: #0b2e27;
  --green-900: #0f3d33;
  --green-800: #154b3f;
  --green-700: #1d5c4d;
  --teal: #3f8a80;
  --gold: #f2cf4a;
  --gold-600: #dcb52c;
  --cream: #f7f5ee;
  --paper: #ffffff;
  --ink: #14231f;
  --muted: #5b6b66;
  --line: #e3e6df;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 46, 39, .06), 0 8px 24px rgba(11, 46, 39, .07);
  --shadow-lg: 0 2px 4px rgba(11, 46, 39, .08), 0 18px 40px rgba(11, 46, 39, .12);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* انتقال ناعم واحترافي بين الصفحات مع ثبات تام للشريط العلوي والسفلي */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
.site-header { view-transition-name: site-header; }
.bottom-bar { view-transition-name: bottom-bar; }
.contact-fab { view-transition-name: contact-fab; }
main { view-transition-name: page-main; }
::view-transition-old(topbar), ::view-transition-new(topbar),
::view-transition-old(site-header), ::view-transition-new(site-header),
::view-transition-old(bottom-bar), ::view-transition-new(bottom-bar),
::view-transition-old(contact-fab), ::view-transition-new(contact-fab),
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(page-main) { animation: none; mix-blend-mode: normal; }
::view-transition-new(page-main) { animation: vt-in .22s var(--ease) both; mix-blend-mode: normal; }
@keyframes vt-in {
  from { opacity: 0; transform: translateY(6px); }
}
/* بديل سلس للمتصفحات التي لا تدعم View Transitions */
main.is-entering { animation: vt-in .22s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(page-main), main.is-entering { animation: none; }
}
html {
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: clip;
  direction: rtl;
  scroll-behavior: smooth;
  font-family: "Amiri", "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream);
}
/* شريط التمرير العمودي على اليسار في العربية وعلى اليمين في الفرنسية والإنجليزية */
html.is-ltr body { direction: ltr; }
@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--green-800);
  }
}
body::-webkit-scrollbar { width: 12px; }
body::-webkit-scrollbar-track { background: var(--green-950); }
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--green-700) 0%, var(--gold) 50%, var(--green-700) 100%);
  border-radius: 999px;
  border: 2px solid var(--green-950);
}
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-600) 100%);
}
@media (max-width: 768px) {
  html, body { height: auto; width: 100%; overflow-x: hidden; overflow-x: clip; overflow-y: visible; max-width: 100%; }
  main, section, .wrap, .page-hero, .story-section { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
  body { scrollbar-width: none; }
  body::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
/* إخفاء الصفحة لحظياً أثناء تطبيق الترجمة المحلية عند التحميل حتى لا يظهر أي نص عربي */
html.is-ltr:not(.gt-ready) body { opacity: 0; }
html.is-ltr body { transition: opacity .15s var(--ease); }
img { max-width: 100%; display: block; }
img[loading="lazy"] { background: rgba(29, 92, 77, .06); }
.archive-post, .cert { content-visibility: auto; contain-intrinsic-size: 1px 420px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 46, 39, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 46px; height: 46px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; gap: 4px; line-height: 1.15; }
.brand-text strong { font-size: 21px; white-space: nowrap; }
.brand-text small { font-family: system-ui, sans-serif; font-size: 10.5px; letter-spacing: .08em; opacity: .7; direction: ltr; text-align: right; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 8px 14px; border-radius: 10px;
  font-size: 18px; color: rgba(255, 255, 255, .82); transition: color .2s, background .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.main-nav a[aria-current="page"] { color: var(--gold); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; background: var(--gold); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .18);
  background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

.lang-switch { display: flex; gap: 6px; }
.lang-switch button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: transparent;
  color: rgba(255, 255, 255, .85); font: 700 14px/1 system-ui, sans-serif; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s var(--ease);
}
.lang-switch button[lang="ar"] { font-family: "Amiri", serif; font-size: 18px; }
.lang-switch button:hover { border-color: var(--gold); color: #fff; transform: translateY(-1px); }
.lang-switch button[aria-pressed="true"],
html[data-lang-active="fr"] .lang-switch button[data-lang="fr"],
html[data-lang-active="en"] .lang-switch button[data-lang="en"] { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
html[data-lang-active="fr"] .lang-switch button[data-lang="ar"],
html[data-lang-active="en"] .lang-switch button[data-lang="ar"] { background: transparent; border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .85); }

/* إخفاء شريط خدمة الترجمة والإبقاء على أزرارنا فقط */
.goog-te-banner-frame, iframe.skiptranslate, #goog-gt-tt, .goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
body { top: 0 !important; }
font[style] { background: none !important; box-shadow: none !important; }
.is-ltr .lb-close { left: auto; right: 20px; }
.is-ltr .link-arrow svg { transform: scaleX(-1); }
.is-ltr .link-arrow:hover svg { transform: scaleX(-1) translateX(-4px); }
.is-ltr .brand-text small { text-align: left; font-family: "Amiri", serif; font-size: 13.5px; letter-spacing: 0; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--green-950); color: #fff; padding: 24px var(--gutter) 120px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { font-size: 24px; padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mobile-menu a[aria-current="page"] { color: var(--gold); }
.mobile-menu .btn { margin-top: 20px; justify-content: center; border-bottom: 0; }

/* Bottom bar (phones) */
.bottom-bar {
  display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  background: var(--green-950); border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottom-bar ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.bottom-bar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center;
  font-size: 14px; color: rgba(255, 255, 255, .7); border-radius: 10px;
}
.bottom-bar a svg { width: 22px; height: 22px; }
.bottom-bar a[aria-current="page"] { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font-family: inherit; font-size: 18px; font-weight: 700; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .18s var(--ease), box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-gold { background: var(--gold); color: var(--green-950); box-shadow: 0 6px 20px rgba(242, 207, 74, .25); }
.btn-gold:hover { background: #f7da64; box-shadow: 0 10px 26px rgba(242, 207, 74, .35); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-green { background: var(--green-800); color: #fff; }
.btn-green:hover { background: var(--green-700); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 16px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-700);
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 2px;
  transition: background-size .3s var(--ease);
  min-height: 44px;
}
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(-4px); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-white { background: var(--paper); }
.section-dark { background: var(--green-900); color: #fff; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--teal); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.h2 { font-size: clamp(32px, 4.2vw, 48px); }
.lead { font-size: clamp(19px, 1.6vw, 21px); color: var(--muted); }
.section-dark .lead { color: rgba(255, 255, 255, .75); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 15% 30%, rgba(63, 138, 128, .45), transparent 60%),
    radial-gradient(600px 400px at 90% 90%, rgba(242, 207, 74, .10), transparent 60%),
    linear-gradient(160deg, var(--green-900), var(--green-950));
  min-height: calc(100svh - var(--header-h));
  display: flex; align-items: center;
  padding-block: 56px;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.25; margin-bottom: 20px; }
.hero h1 .accent { color: var(--gold); }
.hero .lead { color: rgba(255, 255, 255, .78); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; padding: 10px 18px 10px 12px;
  border: 1px solid rgba(242, 207, 74, .3); border-radius: 999px; background: rgba(242, 207, 74, .07);
  font-size: 16px; color: rgba(255, 255, 255, .9); transition: background .2s, transform .2s var(--ease);
}
.hero-badge:hover { background: rgba(242, 207, 74, .14); transform: translateY(-2px); }
.hero-badge .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--green-950); display: grid; place-items: center; flex: none; }
.hero-badge .dot svg { width: 18px; height: 18px; }

/* فسيفساء حية في الواجهة: ثلاث خانات تتبدل صورها بتوقيت متتابع */
.mosaic {
  position: relative; aspect-ratio: 1 / 1.02;
  display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px;
  grid-template-areas: "main top" "main bottom";
}
.mosaic::before {
  content: ""; position: absolute; inset: 8% -6% -4% 10%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(242, 207, 74, .22), transparent); filter: blur(30px);
}
.tile {
  position: relative; overflow: hidden; border-radius: 22px; background: var(--green-800);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .1);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 32px 60px rgba(0, 0, 0, .45); }
.t-main { grid-area: main; border-radius: 28px; }
.t-top { grid-area: top; }
.t-bottom { grid-area: bottom; }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(5, 20, 17, .55), transparent 45%);
}
.shot {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s;
}
.shot.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.2s var(--ease), visibility 0s; }
.shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.shot.is-active img { animation: ss-zoom 7.5s linear both; }
.shot-cta {
  position: absolute; z-index: 3; bottom: 14px; inset-inline-start: 14px;
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: #fff;
  font-size: 15px; font-weight: 700; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease), background .2s, color .2s;
}
.tile:hover .shot.is-active .shot-cta, .shot:focus-visible .shot-cta { opacity: 1; transform: none; }
.shot-cta:hover { background: var(--gold); color: var(--green-950); border-color: var(--gold); }
@media (hover: none) { .t-main .shot.is-active .shot-cta { opacity: 1; transform: none; } }
.mosaic-card {
  position: absolute; z-index: 4; left: -18px; bottom: 26px;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 18px;
  background: rgba(11, 46, 39, .72); border: 1px solid rgba(242, 207, 74, .35); color: #fff;
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4); transition: transform .25s var(--ease), border-color .25s;
}
.mosaic-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.mosaic-card img { width: 46px; height: 46px; border-radius: 12px; }
.mosaic-card strong { display: block; color: var(--gold); font-size: 21px; line-height: 1.2; }
.mosaic-card small { display: block; font-size: 14px; color: rgba(255, 255, 255, .8); line-height: 1.4; }
.mosaic-card svg { width: 18px; height: 18px; color: var(--gold); transition: transform .2s var(--ease); }
.mosaic-card:hover svg { transform: translateX(-4px); }
.is-ltr .mosaic-card svg { transform: scaleX(-1); }
@media (max-width: 680px) {
  .mosaic { gap: 10px; aspect-ratio: 1 / 1.08; }
  .tile { border-radius: 18px; }
  .t-main { border-radius: 22px; }
  .mosaic-card { left: 0; right: 0; margin-inline: auto; width: max-content; bottom: -22px; white-space: nowrap; }
  .shot-cta { font-size: 13px; min-height: 30px; padding: 0 10px; bottom: 10px; inset-inline-start: 10px; }
}

/* Hero entrance */
[data-enter] > * { animation: enter .8s var(--ease) backwards; }
[data-enter] > *:nth-child(2) { animation-delay: .12s; }
[data-enter] > *:nth-child(3) { animation-delay: .24s; }
[data-enter] > *:nth-child(4) { animation-delay: .36s; }
[data-enter] > *:nth-child(5) { animation-delay: .48s; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, var(--green-900), var(--green-950));
  padding-block: clamp(72px, 10vw, 128px) clamp(56px, 8vw, 96px);
}
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11, 46, 39, .2), rgba(11, 46, 39, .95) 70%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 64px); margin-bottom: 14px; }
.page-hero .lead { color: rgba(255, 255, 255, .8); max-width: 620px; margin: 0; }
.crumbs { display: flex; gap: 8px; font-size: 16px; color: rgba(255, 255, 255, .6); margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold); }

/* ---------- Stats ---------- */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 36px 16px; text-align: center; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat-icon { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 14px; background: var(--green-900); color: var(--gold); display: grid; place-items: center; }
.stat-icon svg { width: 24px; height: 24px; }
.stat-num { font-size: 40px; font-weight: 700; color: var(--green-900); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 17px; color: var(--muted); }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.split-media:hover img { transform: scale(1.03); }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 6px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2e27' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.section-dark .check-list li { color: rgba(255, 255, 255, .88); }

/* ---------- Cards ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s;
}
a.card:hover, .card.lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--green-900); color: var(--gold); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 25px; margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; font-size: 18px; }

.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-card .body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card .body p { margin-bottom: 14px; }
.post-card .body .link-arrow { margin-top: auto; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 16px; color: var(--teal); font-weight: 700; margin-bottom: 8px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 16px; height: 16px; }
.tag { display: inline-block; font-size: 15px; font-weight: 700; padding: 2px 12px; border-radius: 999px; background: rgba(63, 138, 128, .12); color: var(--green-700); }
.tag-gold { background: rgba(242, 207, 74, .22); color: #7a5d00; }

/* ---------- Banner ---------- */
.banner { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.banner img { width: 100%; aspect-ratio: 960 / 355; object-fit: cover; transition: transform .7s var(--ease); }
.banner:hover img { transform: scale(1.02); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; }
.cta-row h2 { margin: 0; }

/* ---------- Gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery button {
  padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--line);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 20, 17, .92); display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: min(1100px, 100%); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lightbox button svg { width: 22px; height: 22px; }
.lb-close { top: 20px; left: 20px; }
.lb-prev { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { left: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Activity article ---------- */
.activity { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.activity + .activity { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); }
.activity h2 { font-size: clamp(30px, 3.6vw, 42px); }
.activity .text p { color: #33443f; }
.partners { margin-top: 20px; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--cream); border: 1px solid var(--line); }
.partners h3 { font-size: 20px; margin-bottom: 8px; }
.partners ul { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 17px; }
.activity .gallery { grid-template-columns: 1fr 1fr; position: sticky; top: calc(var(--header-h) + 24px); }
.activity .gallery button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
blockquote.slogan {
  margin: 0 0 20px; padding: 14px 20px; border-inline-start: 4px solid var(--gold); background: rgba(242, 207, 74, .12);
  border-radius: 0 12px 12px 0; font-size: 21px; font-weight: 700; color: var(--green-900);
}

/* ---------- Training article ---------- */
.training-intro, .training-closing { align-items: start; }
.training-closing { margin-top: clamp(56px, 7vw, 88px); }
.training-intro p, .training-closing p { color: #33443f; }
button.split-media { padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 1; background: var(--line); }
.workshops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.workshop { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.workshop .poster { padding: 0; border: 0; cursor: zoom-in; aspect-ratio: 1; overflow: hidden; background: var(--green-900); }
.workshop .poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.workshop .poster:hover img { transform: scale(1.03); }
.workshop .body { padding: 22px 24px 26px; }
.workshop h4 { font-size: 23px; margin: 0 0 2px; }
.workshop .trainer { color: var(--teal); font-weight: 700; margin-bottom: 10px; }
.workshop p { font-size: 17.5px; color: var(--muted); margin: 0; }
.workshop p.trainer { color: var(--teal); margin-bottom: 10px; }
.gallery-4 { grid-template-columns: repeat(4, 1fr); }
.card .card-title { font-size: 23px; margin-bottom: 6px; }

/* نشاط موسّع (عدة أيام) داخل قائمة الأنشطة: نفس الفاصل العلوي */
.activity + .activity-wide, .activity-wide + .activity {
  margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line);
}

/* نشاط قصير: النص فوق والصور الثلاث في صف واحد تحته */
.activity.compact { grid-template-columns: 1fr; gap: 24px; }
.activity.compact .text { max-width: 820px; }
.activity.compact .gallery { position: static; grid-template-columns: repeat(3, 1fr); }
.activity.compact .gallery button,
.activity.compact .gallery button:first-child { grid-column: auto; aspect-ratio: 1; }
.activity.compact .gallery.g2 { grid-template-columns: repeat(2, 1fr); }
.activity.compact .gallery.g2 button { aspect-ratio: 16 / 11; }
@media (max-width: 680px) { .activity.compact .gallery { gap: 8px; } }

/* روابط الانتقال السريع بين الأنشطة */
.jump-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.jump-bar ul {
  list-style: none; margin: 0; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 8px;
}
.jump-bar a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--cream); font-size: 17px; font-weight: 700; color: var(--green-800);
  transition: background .2s, border-color .2s, color .2s, transform .18s var(--ease);
}
.jump-bar a:hover { background: var(--green-900); border-color: var(--green-900); color: var(--gold); transform: translateY(-2px); }
.jump-bar ul + ul { padding-top: 0; }
.jump-year {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--green-900); color: var(--gold); font-weight: 700; font-size: 17px;
}
article[id], section[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
@media (max-width: 680px) {
  .jump-bar ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .jump-bar ul::-webkit-scrollbar { display: none; }
  .jump-bar a { white-space: nowrap; font-size: 16px; }
}
.gallery-sq button { aspect-ratio: 1; }
.gallery-4 button { aspect-ratio: 1; }

/* ---------- عرض الصور المتتالي (Slideshow) ---------- */
.slideshow {
  --interval: 5500ms;
  position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--radius); overflow: hidden;
  background: var(--green-950); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); isolation: isolate;
}
.slideshow .slides { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; padding: 0; border: 0; margin: 0; background: transparent; cursor: zoom-in;
  opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s;
}
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 1.1s var(--ease), visibility 0s; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.slide.is-active img:not(.slide-bg) { animation: ss-zoom calc(var(--interval) + 1.2s) linear both; }
.slide img.fit { z-index: 1; object-fit: contain; transform: none; padding: 3%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.slide.is-active img.fit { animation: ss-rise calc(var(--interval) + 1.2s) var(--ease) both; }
.slide img.slide-bg { filter: blur(26px) saturate(1.2); transform: scale(1.25); opacity: .7; }
@keyframes ss-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes ss-rise { from { transform: scale(.96); } to { transform: scale(1); } }
.slideshow::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(5, 20, 17, .78), transparent);
}
.ss-controls {
  position: absolute; z-index: 3; inset-inline: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.ss-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(11, 46, 39, .45); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s, transform .15s var(--ease);
}
.ss-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--green-950); transform: translateY(-2px); }
.ss-btn:active { transform: scale(.94); }
.ss-btn svg { width: 20px; height: 20px; }
.ss-toggle .i-play, .slideshow.user-paused .ss-toggle .i-pause { display: none; }
.slideshow.user-paused .ss-toggle .i-play { display: block; }
.ss-dots { flex: 1; display: flex; gap: 6px; }
.ss-dot {
  flex: 1; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative;
}
.ss-dot::before, .ss-dot span {
  content: ""; position: absolute; inset-inline: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px;
}
.ss-dot::before { background: rgba(255, 255, 255, .3); transition: background .2s; }
.ss-dot:hover::before { background: rgba(255, 255, 255, .55); }
.ss-dot span { background: var(--gold); transform-origin: right; transform: scaleX(0); }
.ss-dot.is-done span { transform: scaleX(1); }
.ss-dot.is-active span { animation: ss-progress var(--interval) linear forwards; }
.slideshow.paused .ss-dot.is-active span,
.slideshow.paused .slide.is-active img { animation-play-state: paused; }
@keyframes ss-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ss-count {
  position: absolute; z-index: 3; top: 14px; inset-inline-end: 14px; padding: 4px 12px; border-radius: 999px;
  background: rgba(11, 46, 39, .55); color: rgba(255, 255, 255, .85); font: 600 13px/1.6 system-ui, sans-serif;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); direction: ltr;
}
.ss-count b { color: var(--gold); }
.is-ltr .ss-dot span { transform-origin: left; }
@media (max-width: 900px) { .slideshow { aspect-ratio: 4 / 3.6; } }
@media (max-width: 680px) { .slideshow { aspect-ratio: 4 / 4.2; } .ss-controls { inset-inline: 10px; bottom: 8px; gap: 6px; } }

/* ---------- شركاؤنا: شريط متحرك بلا نهاية ---------- */
.partners-section { overflow: hidden; }
.partners-section .section-head { margin-bottom: 36px; }
.marquee {
  --speed: 110s;
  position: relative; overflow: hidden; padding-block: 8px;
  /* الشريط يبدأ من الحافة اليسرى حتى يغطي العرض كله طوال الحركة (الصفحة من اليمين لليسار) */
  direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
/* الحركة من اليمين إلى اليسار بلا توقف، حتى عند المرور بالفأرة */
.marquee-track {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; width: max-content;
  direction: ltr; animation: marquee var(--speed) linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
.partner {
  direction: rtl; flex: none; display: inline-flex; align-items: center; gap: 14px;
  min-height: 76px; padding: 12px 22px 12px 26px; border-radius: 16px;
  background: var(--cream); border: 1px solid var(--line);
  font-size: 18px; font-weight: 700; color: var(--green-900); white-space: nowrap;
  filter: grayscale(.35); opacity: .88;
  transition: filter .3s, opacity .3s, transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.partner:hover { filter: none; opacity: 1; transform: translateY(-2px); box-shadow: var(--shadow); border-color: rgba(63, 138, 128, .4); }
.partner bdi { font-family: system-ui, sans-serif; font-size: 14px; letter-spacing: .04em; color: var(--teal); }
.p-ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--green-900) center / 22px no-repeat;
}
.p-ic.gov { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2cf4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10l9-6 9 6M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 21h18'/%3E%3C/svg%3E"); }
.p-ic.health { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2cf4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s6 6.5 6 11a6 6 0 01-12 0c0-4.5 6-11 6-11z'/%3E%3Cpath d='M12 11v6M9 14h6'/%3E%3C/svg%3E"); }
.p-ic.edu { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2cf4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9l10-5 10 5-10 5z'/%3E%3Cpath d='M6 11v5c3 2 9 2 12 0v-5'/%3E%3C/svg%3E"); }
.p-ic.found { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2cf4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.6 5.3 5.9.9-4.3 4.1 1 5.8L12 16.4l-5.2 2.7 1-5.8L3.5 9.2l5.9-.9z'/%3E%3C/svg%3E"); }
.p-ic.assoc { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2cf4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0113 0M16 4.5a3.5 3.5 0 010 7M21.5 20a6.5 6.5 0 00-4-6'/%3E%3C/svg%3E"); }
.p-ic.env { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2cf4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c9 0 14-5 14-14-9 0-14 5-14 14z'/%3E%3Cpath d='M5 19l8-8'/%3E%3C/svg%3E"); }
@media (max-width: 680px) {
  .marquee { --speed: 85s; }
  .partner { min-height: 64px; font-size: 16px; padding: 10px 16px 10px 20px; }
  .p-ic { width: 38px; height: 38px; background-size: 19px; }
}
/* الشريط يتحرك دائماً، حتى في الأجهزة المضبوطة على تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: marquee var(--speed) linear infinite !important; }
}

/* ---------- زر الصعود والنزول العائم (أسفل اليسار) ---------- */
.scroll-fab {
  position: fixed; left: 20px; bottom: 24px; z-index: 55;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgba(15, 61, 51, .38);
  border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 10px 28px rgba(11, 46, 39, .25);
  transition: background .25s, color .25s, border-color .25s, transform .2s var(--ease), opacity .3s, visibility .3s;
}
.scroll-fab svg { width: 22px; height: 22px; transition: transform .35s var(--ease); }
.scroll-fab.up svg { transform: rotate(180deg); }
.scroll-fab:hover { background: var(--gold); border-color: var(--gold); color: var(--green-950); transform: translateY(-3px); }
.scroll-fab:active { transform: scale(.94); }
.scroll-fab.is-hidden { opacity: 0; visibility: hidden; }
@media (max-width: 680px) {
  /* فوق الشريط السفلي على الجوال */
  .scroll-fab { left: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); width: 46px; height: 46px; }
}
@media print { .scroll-fab { display: none; } }

/* ---------- Project feature ---------- */
.award-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 22px 26px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(242, 207, 74, .16), rgba(242, 207, 74, .04)); border: 1px solid rgba(242, 207, 74, .35);
  margin-bottom: 28px;
}
.award-strip .trophy { width: 56px; height: 56px; border-radius: 16px; background: var(--gold); color: var(--green-950); display: grid; place-items: center; flex: none; }
.award-strip .trophy svg { width: 28px; height: 28px; }
.award-strip strong { display: block; font-size: 21px; color: #fff; }
.award-strip span { color: rgba(255, 255, 255, .72); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s, transform .2s var(--ease); }
.feature:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(242, 207, 74, .15); color: var(--gold); display: grid; place-items: center; flex: none; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 20px; margin: 0 0 2px; }
.feature p { font-size: 16px; color: rgba(255, 255, 255, .68); margin: 0; line-height: 1.7; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 11px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-inline-start: 44px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--cream); }
.timeline .year { font-weight: 700; color: var(--teal); font-size: 18px; }
.timeline h3 { font-size: 23px; margin: 0 0 4px; }
.timeline p { color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.contact-item .card-icon { margin: 0; width: 52px; height: 52px; flex: none; }
.contact-item small { display: block; color: var(--muted); font-size: 15px; }
.contact-item strong { font-size: 20px; word-break: break-word; }
.contact-item .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 18px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--cream); color: var(--ink); transition: border-color .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.field .err { color: #b3261e; font-size: 15px; margin-top: 4px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #b3261e; }
.field.invalid .err { display: block; }
.form-note { font-size: 15px; color: var(--muted); margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: rgba(255, 255, 255, .75); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.site-footer h3 { color: #fff; font-size: 21px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer ul a { display: inline-block; padding: 4px 0; transition: color .2s; }
.site-footer ul a:hover { color: var(--gold); }
.footer-about p { font-size: 17px; margin: 14px 0 18px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .06); display: grid; place-items: center;
  color: #fff; transition: background .2s, transform .2s var(--ease);
}
.socials a:hover { background: var(--gold); color: var(--green-950); transform: translateY(-2px); }
.socials svg { width: 20px; height: 20px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.footer-contact .ltr { direction: ltr; unicode-bidi: isolate; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 22px; font-size: 15px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-inline-start: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .hero-grid, .split, .activity, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-media { max-width: 600px; width: 100%; margin-inline: auto; }
  .activity .gallery { position: static; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .split.reverse-mobile .split-media { order: -1; }
  .workshops { grid-template-columns: 1fr; max-width: 620px; }
  .gallery-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  :root { --header-h: 64px; }
  body { font-size: 18px; }
  .site-footer { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .bottom-bar { display: block; border-top: 0; }
  .brand img { width: 40px; height: 40px; }
  .brand-text strong { font-size: 18px; }
  .brand-text small { display: none; }
  .brand { gap: 8px; }
  .lang-switch { gap: 4px; }
  .lang-switch button { width: 34px; height: 34px; font-size: 12px; }
  .header-actions { gap: 8px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-inline-start: 0 !important; border-top: 1px solid var(--line); padding: 26px 10px; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(odd) { border-inline-end: 1px solid var(--line); }
  .stat:last-child { grid-column: 1 / -1; border-inline-end: 0; }
  .cards-4, .cards-3, .cards-2, .feature-grid, .form .row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn, .form-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
}
