/* ============================================================
   חדר מורים · Shared Stylesheet
   Hebrew RTL-first · Heebo + Frank Ruhl Libre
   ============================================================ */

/* ─── Reset & Tokens ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1f6fb8;
  --blue-deep:  #164a85;
  --blue-soft:  #eaf1f8;
  --blue-mist:  #f3f7fb;
  --gold:       #d4a64a;
  --gold-deep:  #b58432;
  --gold-soft:  #f4ecdc;
  --gold-mist:  #faf5ea;
  --ink:        #1a2942;
  --ink-2:      #38476a;
  --ink-3:      #6b7896;
  --line:       #e3dccc;
  --line-2:     #ede6d6;
  --bg:         #fbf8f3;
  --bg-2:       #f7f2e8;
  --paper:      #ffffff;

  --f-main:  "Heebo", system-ui, sans-serif;
  --f-edit:  "Frank Ruhl Libre", "Heebo", serif;
  --f-ar:    "Noto Naskh Arabic", "Heebo", serif;
  --f-mono:  ui-monospace, monospace;

  --r-s:  6px;
  --r-m:  12px;
  --r-l:  18px;
  --r-xl: 28px;

  --sh-1: 0 1px 4px rgba(22,41,80,.05), 0 2px 8px rgba(22,41,80,.04);
  --sh-2: 0 6px 20px rgba(22,41,80,.08), 0 2px 6px rgba(22,41,80,.04);
  --sh-3: 0 24px 64px rgba(22,41,80,.12);

  --max-w: 1280px;
  --section-pad: 96px 24px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--f-main);
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── Container ─── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 40px;
}

/* ─── Photo Placeholders ─── */
.photo-placeholder {
  background: repeating-linear-gradient(
    -45deg, #efe6d3 0 16px, #e4d7ba 16px 32px
  );
  display: flex; align-items: center; justify-content: center;
  color: #8b7a4f; font-family: var(--f-mono); font-size: 12px;
  text-align: center; padding: 12px;
  overflow: hidden; position: relative;
}
.photo-placeholder.ph-blue {
  background: repeating-linear-gradient(
    -45deg, #d8e6f3 0 16px, #c4d8ec 16px 32px
  );
  color: #3a5c82;
}
.photo-placeholder span {
  background: rgba(255,255,255,.75); padding: 6px 12px;
  border-radius: 6px; border: 1px solid rgba(0,0,0,.06);
  max-width: 80%; line-height: 1.4; position: relative; z-index: 1;
}
/* SVG illustrations fill placeholder */
.photo-placeholder img.svg-fill {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.photo-placeholder img.svg-fill + span { display: none; }
.ratio-4-5 { aspect-ratio: 4/5; }
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-4-3 { aspect-ratio: 4/3; }

/* ─── Header ─── */
.site-header {
  background: rgba(251,248,243,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
  z-index: 100;
}
.site-header.sticky { position: sticky; top: 0; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 76px;
}
.brand-logo { height: 52px; width: auto; }
.main-nav {
  display: flex; align-items: center; gap: 4px; flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 16px; font-weight: 500; color: var(--ink);
  padding: 8px 14px; border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap; cursor: pointer;
}
.nav-link:hover, .nav-item:hover .nav-link { color: var(--blue-deep); background: var(--blue-soft); }
.nav-link.active { color: var(--blue-deep); font-weight: 700; }
.nav-link.active::after {
  /* underline handled via border below */
}
.caret { font-size: 10px; opacity: .6; }

.nav-item { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; right: 0;
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-l); box-shadow: var(--sh-2);
  padding: 10px; min-width: 200px; z-index: 200;
}
.nav-item:hover .dropdown { display: flex; flex-direction: column; gap: 2px; }
.dropdown a {
  padding: 10px 14px; border-radius: 10px; font-size: 15px;
  color: var(--ink-2); display: block;
  transition: background .15s, color .15s;
}
.dropdown a:hover { background: var(--blue-soft); color: var(--blue-deep); }

.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.lang-switch {
  display: inline-flex; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px; background: var(--paper);
}
.lang-btn {
  padding: 6px 12px; border-radius: 999px; font-size: 13px;
  font-weight: 600; color: var(--ink-3); background: transparent;
  border: none; cursor: pointer; font-family: inherit;
  transition: background .15s, color .15s;
}
.lang-btn.active { background: var(--blue-deep); color: white; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: .3s;
}

/* ─── Mobile menu ─── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: var(--ink); color: white; padding: 80px 32px 32px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu .lang-switch { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.mobile-menu .lang-btn { color: rgba(255,255,255,.6); }
.mobile-menu .lang-btn.active { background: var(--blue-deep); color: white; }
.mob-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: 20px; font-weight: 600; color: white;
}
.mob-link.has-arrow::after { content: "‹"; color: var(--gold); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-main); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { font-size: 17px; padding: 15px 28px; }
.btn-primary { background: var(--blue-deep); color: white; border-color: var(--blue-deep); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-ghost-white { background: transparent; color: white; border-color: rgba(255,255,255,.4); }
.btn-ghost-white:hover { background: rgba(255,255,255,.1); }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-deep); color: white; border-color: var(--gold-deep); }
.btn-link {
  font-size: 15px; font-weight: 600; color: var(--blue-deep);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.btn-link:hover { gap: 10px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ─── Typography helpers ─── */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--gold); }
.eyebrow.light { color: rgba(255,255,255,.85); }
.eyebrow.light::before { background: var(--gold); }
.eyebrow.gold { color: var(--gold); }
.eyebrow.gold::before { background: var(--gold); }
.section-title {
  font-size: clamp(32px, 4vw, 52px); font-weight: 800;
  line-height: 1.1; letter-spacing: -.02em; color: var(--ink); margin-bottom: 18px;
}
.section-lede {
  font-size: clamp(17px, 2vw, 21px); line-height: 1.6;
  color: var(--ink-2); max-width: 680px; margin-bottom: 16px;
}
.body-text { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.cat-tag {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px;
}
.meta-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-3);
}
.meta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}
.c-blue-light { color: #60b3f0; }

/* ─── Cards ─── */
.card {
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-xl); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-body.sm { padding: 16px; }
.card-title { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.card-title.sm { font-size: 17px; }
.card-title.lg { font-size: 24px; }
.card-desc { font-size: 15px; color: var(--ink-2); line-height: 1.6; flex: 1; }

/* ─── Sections ─── */
.section { padding: var(--section-pad); }
.bg-mist { background: var(--blue-mist); }
.bg-gold-mist { background: var(--gold-mist); }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 40px; gap: 24px;
}
.mt-sm { margin-top: 20px; }
.mt-md { margin-top: 40px; }
.mb-sm { margin-bottom: 24px; }

/* ─── Grid helpers ─── */
.cards-grid-4 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.cards-grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.cards-grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.two-col {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px;
  align-items: center;
}
.two-col.reverse { grid-template-columns: 1.2fr 1fr; }

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 82vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg .photo-placeholder span { display: none; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11,22,47,.72) 0%,
    rgba(22,74,133,.55) 45%,
    rgba(22,74,133,.18) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  padding-top: 60px; padding-bottom: 80px;
  max-width: 820px;
}
.hero-title {
  font-size: clamp(52px, 7vw, 88px); font-weight: 900;
  line-height: 1.0; letter-spacing: -.025em; color: white;
  margin-bottom: 24px;
}
.hero-lede {
  font-size: clamp(17px, 2vw, 22px); color: rgba(255,255,255,.88);
  line-height: 1.55; max-width: 640px; margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: .12em;
}
.scroll-arrow { font-size: 18px; animation: bounce 2s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ─── Stats bar ─── */
.stats-bar { background: var(--paper); border-bottom: 1px solid var(--line-2); }
.stats-grid {
  display: flex; align-items: center; gap: 0;
  padding-top: 36px; padding-bottom: 36px;
}
.stat-item { flex: 1; text-align: center; padding: 0 16px; }
.stat-num {
  font-size: clamp(36px, 4vw, 52px); font-weight: 900;
  color: var(--blue-deep); letter-spacing: -.03em; line-height: 1;
  font-feature-settings: "tnum";
}
.stat-plus { font-size: .55em; color: var(--gold-deep); }
.stat-unit { font-size: .45em; color: var(--gold-deep); font-weight: 700; }
.stat-label { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.stat-divider { width: 1px; height: 48px; background: var(--line-2); flex-shrink: 0; }

/* ─── Centers grid ─── */
.centers-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px;
}
.centers-sub-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.center-card { display: flex; flex-direction: column; }
.center-card--featured .card-title { font-size: 28px; }

/* ─── Articles+Gallery split ─── */
.articles-gallery-split {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px;
}
.article-featured { flex-direction: column; }
.gallery-mini-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 160px 160px 160px; gap: 10px;
}

/* ─── Quote section ─── */
.quote-section {
  background: var(--ink); padding: 96px 24px; text-align: center;
}
.big-quote {
  font-family: var(--f-edit); font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.45; color: white; font-style: italic;
  max-width: 900px; margin: 0 auto 18px; font-weight: 500;
  quotes: none;
}
.quote-mark { color: var(--gold); font-size: 1.3em; line-height: .5; }
.quote-mark.close { }
.quote-source { color: var(--gold); font-size: 14px; letter-spacing: .1em; }

/* ─── CTA blocks ─── */
.cta-block {
  border-radius: var(--r-xl); padding: 72px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
  align-items: center; position: relative; overflow: hidden;
}
.cta-block.dark { background: var(--ink); }
.cta-block.light-gold { background: var(--gold-mist); border: 1px solid var(--gold); }
.cta-block::before {
  content: ""; position: absolute; left: -80px; bottom: -80px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  opacity: .15; pointer-events: none;
}
.cta-title { font-size: clamp(26px, 3.5vw, 44px); font-weight: 800; line-height: 1.1; color: white; margin-bottom: 12px; }
.cta-title.dark { color: var(--ink); }
.cta-desc { font-size: 17px; color: rgba(255,255,255,.75); line-height: 1.6; }
.cta-desc.dark { color: var(--ink-2); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; position: relative; }

/* ─── Testimonials ─── */
.testimonial-card {
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-xl); padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
}
.testimonial-card.featured-test { background: var(--blue-deep); border-color: var(--blue-deep); }
.big-quote-icon {
  font-size: 80px; line-height: .8; color: var(--gold);
  font-family: var(--f-edit);
}
.test-body {
  font-family: var(--f-edit); font-style: italic;
  font-size: 20px; line-height: 1.5; color: var(--ink);
  flex: 1;
}
.featured-test .test-body { color: white; }
.test-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold-soft); border: 2px solid var(--gold);
  display: grid; place-items: center; font-weight: 700;
  color: var(--gold-deep); font-size: 14px; flex-shrink: 0;
}
.author-avatar.gold { background: var(--gold); color: var(--ink); border-color: var(--gold-deep); }
.author-name { font-weight: 600; font-size: 15px; }
.author-meta { font-size: 13px; color: var(--ink-3); }
.featured-test .author-name { color: white; }
.featured-test .author-meta { color: rgba(255,255,255,.6); }

/* ─── Footer ─── */
.site-footer {
  background: #11203c; color: #c8d3e6;
  padding: 72px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer-logo { height: 52px; width: auto; margin-bottom: 16px; }
.footer-desc { font-size: 14px; line-height: 1.7; color: #a9b6cf; max-width: 300px; margin-bottom: 18px; }
.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; font-size: 13px;
  color: #c8d3e6; transition: border-color .2s, color .2s;
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); }
.footer-heading {
  color: white; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-link {
  display: block; font-size: 14px; color: #a9b6cf;
  padding: 5px 0; transition: color .15s;
}
.footer-link:hover { color: var(--gold); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 13px; color: #6a7d9c;
}
.footer-legal-links a { color: #6a7d9c; margin-inline: 4px; }
.footer-legal-links a:hover { color: var(--gold); }

/* ─── Breadcrumb ─── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-3); margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--blue-deep); }
.breadcrumb-sep { font-size: 10px; opacity: .5; }

/* ─── Page hero (inner pages) ─── */
.page-hero { padding: 72px 0 56px; }
.page-hero.tinted { background: var(--blue-mist); }
.page-hero.gold-tinted { background: var(--gold-mist); }
.page-hero-title {
  font-size: clamp(44px, 6vw, 80px); font-weight: 900;
  line-height: 1.0; letter-spacing: -.025em; color: var(--ink); margin-bottom: 18px;
}
.page-hero-title span { color: var(--blue-deep); }

/* ─── Filter chips ─── */
.filters {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line-2); margin-bottom: 40px;
}
.filter-label { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-inline-end: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; white-space: nowrap; font-family: var(--f-main);
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { background: var(--blue-soft); color: var(--blue-deep); border-color: var(--blue-deep); }
.chip.on { background: var(--blue-deep); color: white; border-color: var(--blue-deep); }
.chip.gold { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-deep); }
.chip .count { font-size: 12px; opacity: .7; }

/* ─── Search ─── */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 6px 6px 18px;
  max-width: 440px;
}
.search-bar input {
  flex: 1; border: none; background: transparent; font: inherit;
  font-size: 15px; color: var(--ink); text-align: right; outline: none;
  direction: rtl;
}
.search-bar input::placeholder { color: var(--ink-3); }

/* ─── Form ─── */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: span 2; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px;
  padding: 13px 16px; border-radius: var(--r-m);
  border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink);
  text-align: right; direction: rtl;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.field textarea { resize: vertical; min-height: 140px; }

/* ─── Article body ─── */
.article-content {
  font-family: var(--f-edit); font-size: 20px; line-height: 1.85;
  color: var(--ink); max-width: 760px;
}
.article-content p { margin-bottom: 1.4em; }
.article-content h2 {
  font-family: var(--f-main); font-size: 30px; font-weight: 800;
  margin: 1.8em 0 .6em; line-height: 1.2;
}
.article-content blockquote {
  margin: 2em -32px; padding: 28px 32px;
  background: var(--gold-mist); border-inline-start: 4px solid var(--gold);
  font-size: 24px; font-style: italic; line-height: 1.5; color: var(--ink);
  border-radius: 0 var(--r-l) var(--r-l) 0;
}
.drop-cap::first-letter {
  float: right; font-size: 5.2em; font-weight: 900; line-height: .78;
  margin-inline-start: 14px; margin-top: 8px;
  color: var(--blue-deep); font-family: var(--f-edit);
}

/* ─── Gallery grid ─── */
.gallery-masonry {
  columns: 3; column-gap: 20px;
}
.gallery-masonry .gal-card {
  display: inline-block; width: 100%; margin-bottom: 20px; break-inside: avoid;
}
.lightbox-hint {
  position: absolute; inset: 0; background: rgba(11,22,47,.5);
  display: grid; place-items: center; opacity: 0; transition: opacity .25s;
  color: white; font-size: 28px;
}
.gal-card:hover .lightbox-hint { opacity: 1; }
.gal-thumb { position: relative; overflow: hidden; }

/* ─── Timeline ─── */
.timeline { position: relative; padding-inline-start: 40px; }
.timeline::before {
  content: ""; position: absolute; right: 16px; top: 8px; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--gold) 0%, var(--blue) 100%);
}
.tl-item { position: relative; padding-bottom: 40px; }
.tl-dot {
  position: absolute; right: -31px; top: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--bg);
}
.tl-year {
  font-family: var(--f-edit); font-size: 28px; font-weight: 700;
  color: var(--blue-deep); margin-bottom: 4px;
}
.tl-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.tl-body { font-size: 16px; color: var(--ink-2); line-height: 1.7; max-width: 680px; }

/* ─── Pagination ─── */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 64px; align-items: center;
}
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  border: 1px solid var(--line); background: var(--paper);
  color: var(--ink-2); cursor: pointer;
  font-family: var(--f-main); transition: background .15s;
}
.pg-btn.on { background: var(--blue-deep); color: white; border-color: var(--blue-deep); }
.pg-btn:hover:not(.on) { background: var(--blue-soft); }
.pg-dots { color: var(--ink-3); padding: 0 6px; }
.pg-prev-next {
  padding: 8px 18px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-2);
  cursor: pointer; font-family: var(--f-main); font-weight: 600;
  transition: background .15s;
}
.pg-prev-next:hover { background: var(--blue-soft); color: var(--blue-deep); }

/* ─── Map placeholder ─── */
.map-placeholder {
  background: #e8e0c8;
  background-image:
    linear-gradient(rgba(212,166,74,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,166,74,.09) 1px, transparent 1px),
    linear-gradient(rgba(31,111,184,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,111,184,.06) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  border-radius: var(--r-xl); overflow: hidden;
  position: relative; aspect-ratio: 4/3;
}
.map-pin {
  position: absolute; transform: translate(50%, -100%);
}
.map-pin-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue-deep); border: 3px solid white;
  box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.map-pin-label {
  position: absolute; bottom: 20px; right: 50%;
  transform: translateX(50%); background: white;
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
  font-weight: 600; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .cards-grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .articles-gallery-split { grid-template-columns: 1fr; }
  .centers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --section-pad: 64px 20px; }
  .container { padding-inline: 20px; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-actions .btn-primary { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .cards-grid-3, .cards-grid-2 { grid-template-columns: 1fr; }
  .cta-block { grid-template-columns: 1fr; padding: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 2; }
  .stats-grid { flex-wrap: wrap; }
  .stat-item { flex: 0 0 calc(50% - 1px); }
  .stat-divider:nth-child(4), .stat-divider:nth-child(8) { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: 1; }
}
@media (max-width: 480px) {
  .gallery-masonry { columns: 1; }
  .hero-title { font-size: 42px; }
  .centers-sub-grid { grid-template-columns: 1fr; }
}
