/* sumqayitvet.az — saytın əsas stili (mobil-öncəlikli) */

/* ---------- Dizayn dəyişənləri ---------- */
/* Brend rəngləri (logodan) — bütün temalarda eynidir */
:root {
  --purple: #54065a;
  --purple-700: #44044c;
  --purple-900: #2f0036;
  --gold: #b18e42;
  --gold-600: #9c792d;
  --gold-700: #996606;

  --font-body: "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Montserrat", "Inter", system-ui, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Hər temada eyni qalan brend zolaqları (başlıq zolağı, statistika, CTA) */
  --btn-bg: var(--purple);
  --btn-bg-hover: var(--purple-700);
  --focus: #b18e42;
}

/* ---------- Temalar ----------
   Yalnız fon, səth, sərhəd və mətn tonları dəyişir; vurğu rəngləri logodandır.
   Kontrast WCAG AA üçün yoxlanılıb: node scripts/check-contrast.mjs */

/* Klassik — ağ fon (əsas) */
:root,
:root[data-theme="klassik"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #faf8fb;
  --card: #ffffff;
  --border: #e7e0ea;
  --input-border: #8a7d91;
  --text: #1f1a24;
  --text-muted: #5d5466;
  --heading: #2f0036;
  --accent: #54065a;
  --link: #54065a;
  --link-hover: #44044c;
  --gold-text: #7d5a0c;
  --icon-gold: #8c6a22;
  --tint: #f7f1f8;
  --tint-strong: #ede1ef;
  --badge-bg: #f6efe0;
  --badge-text: #5e4206;
  --badge-border: #e3cf9f;
  --header-bg: rgba(255, 255, 255, 0.97);
  --topbar-bg: #2f0036;
  --topbar-text: #f1e7f3;
  --footer-bg: #2f0036;
  --footer-text: #ece1ee;
  --footer-muted: #cdbdd1;
  --danger: #b3261e;
  --success-bg: #edf7ee;
  --success-border: #9fd3a6;
  --success-text: #1d5b27;
  --error-bg: #fdeeee;
  --error-border: #f0b4b0;
  --error-text: #8c1d18;
  --shadow-rgb: 47, 0, 54;
}

/* Krem — isti fil sümüyü fon */
:root[data-theme="krem"] {
  --bg: #fbf7ef;
  --surface: #f4ecdd;
  --card: #fffdf8;
  --border: #e6dac4;
  --input-border: #8c7f68;
  --text: #2a2118;
  --text-muted: #5f5345;
  --heading: #2f0036;
  --tint: #f3eadb;
  --tint-strong: #e6d6bc;
  --badge-bg: #f1e3c4;
  --badge-border: #dcc390;
  --header-bg: rgba(255, 253, 248, 0.97);
  --shadow-rgb: 74, 52, 20;
}

/* Lavanda — çox açıq bənövşəyi fon */
:root[data-theme="lavanda"] {
  --bg: #faf6fc;
  --surface: #f1e9f6;
  --card: #ffffff;
  --border: #e2d4ea;
  --input-border: #8a7a95;
  --text: #23182a;
  --text-muted: #5c4e66;
  --tint: #efe4f5;
  --tint-strong: #e0cdea;
  --header-bg: rgba(255, 255, 255, 0.97);
}

/* Sakit — soyuq açıq boz fon */
:root[data-theme="sakit"] {
  --bg: #f5f7f9;
  --surface: #eaeef2;
  --card: #ffffff;
  --border: #d7dde4;
  --input-border: #7c8792;
  --text: #1d232a;
  --text-muted: #4f5964;
  --tint: #e9edf2;
  --tint-strong: #d3dae3;
  --header-bg: rgba(255, 255, 255, 0.97);
  --shadow-rgb: 30, 40, 55;
}

/* Gecə — tünd bənövşəyi-qəhvəyi fon, açıq mətn */
:root[data-theme="gece"] {
  color-scheme: dark;
  --bg: #1b1320;
  --surface: #221828;
  --card: #2a1f30;
  --border: #3f3146;
  --input-border: #8e7d97;
  --text: #efe7f2;
  --text-muted: #bfb2c6;
  --heading: #f7eef9;
  --accent: #e2bfe8;
  --link: #e7c6ec;
  --link-hover: #ffffff;
  --gold-text: #dcbb75;
  --icon-gold: #c9a55a;
  --tint: #31243a;
  --tint-strong: #4a3854;
  --badge-bg: #3a2e1a;
  --badge-text: #f0d699;
  --badge-border: #6a5427;
  --header-bg: rgba(34, 24, 40, 0.97);
  --topbar-bg: #120b16;
  --topbar-text: #e9dfec;
  --footer-bg: #120b16;
  --footer-text: #e6dbe9;
  --footer-muted: #b9aabf;
  --danger: #ff9a92;
  --success-bg: #17301d;
  --success-border: #2f6b3b;
  --success-text: #b4e6bd;
  --error-bg: #3b1619;
  --error-border: #7a2f2a;
  --error-text: #ffbcb6;
  --shadow-rgb: 0, 0, 0;
}

:root {
  --shadow: 0 1px 2px rgba(var(--shadow-rgb), 0.06), 0 4px 16px rgba(var(--shadow-rgb), 0.07);
  --shadow-lg: 0 8px 32px rgba(var(--shadow-rgb), 0.16);
}
:root[data-theme="gece"] {
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Şrift ölçüsü (A- / A / A+) — rem əsaslı olduğu üçün hər şey miqyaslanır */
html.fs-sm { font-size: 90%; }
html.fs-lg { font-size: 115%; }

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--heading);
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
main { display: block; outline: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  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; left: 8px; top: -100px; z-index: 100;
  background: var(--purple); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; color: #fff; }
.icon { flex-shrink: 0; vertical-align: middle; }

/* ---------- Düymələr ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0.65em 1.4em;
  font: 600 1rem/1.2 var(--font-head);
  border: 2px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--btn-bg); color: #fff; }
.btn-primary:hover { background: var(--btn-bg-hover); color: #fff; }
.btn-gold { background: var(--gold); color: var(--purple-900); }
.btn-gold:hover { background: #c39f52; color: var(--purple-900); }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--purple-900); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.35em;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform 0.15s; }

/* ---------- Üst panel ---------- */
.topbar { background: var(--topbar-bg); color: var(--topbar-text); font-size: 0.875rem; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; flex-wrap: wrap;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-contacts { display: none; list-style: none; margin: 0; padding: 0; gap: 20px; }
.topbar-contacts a { display: inline-flex; align-items: center; gap: 6px; }
.topbar-contacts .icon { color: var(--gold); }
.topbar-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
@media (min-width: 640px) { .topbar-contacts { display: flex; } }
@media (max-width: 899px) { .hide-sm { display: none; } }

.social { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.social a {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; color: inherit;
}
.social a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.a11y-controls { display: flex; gap: 2px; border-left: 1px solid rgba(255, 255, 255, 0.2); padding-left: 10px; }
.a11y-controls button {
  min-width: 36px; height: 36px; padding: 0 6px;
  background: transparent; color: inherit; border: 1px solid transparent; border-radius: 6px;
  font: 600 0.875rem/1 var(--font-body); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.a11y-controls button[data-a11y="font-sm"] { font-size: 0.75rem; }
.a11y-controls button[data-a11y="font-lg"] { font-size: 1.05rem; }
.a11y-controls button:hover { background: rgba(255, 255, 255, 0.12); }
.a11y-controls button[aria-pressed="true"] { border-color: var(--gold); color: #fff; }

/* ---------- Tema seçimi ---------- */
.theme-picker { position: relative; }
html:not(.js) .theme-picker { display: none; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px;
  background: transparent; color: inherit; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
  font: 600 0.82rem/1 var(--font-body); cursor: pointer;
}
.theme-toggle:hover, .theme-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 479px) { .theme-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); } .theme-toggle { padding: 0 9px; } }
.theme-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  list-style: none; margin: 0; padding: 6px; min-width: 180px;
  background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.theme-menu.is-open { display: block; }
.theme-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px;
  background: none; border: 0; border-radius: 6px; color: var(--text); font: 500 0.95rem var(--font-body);
  text-align: left; cursor: pointer;
}
.theme-menu button:hover { background: var(--tint); }
.theme-menu button[aria-pressed="true"] { font-weight: 700; color: var(--accent); }
.theme-menu button[aria-pressed="true"]::after { content: "✓"; margin-left: auto; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gold); flex-shrink: 0; }
.swatch-klassik { background: #ffffff; }
.swatch-krem { background: #fbf7ef; }
.swatch-lavanda { background: #ece0f3; }
.swatch-sakit { background: #e3e8ee; }
.swatch-gece { background: #1b1320; }

/* Logo: Gecə temasında açıq variant */
.brand .logo-light { display: none; }
:root[data-theme="gece"]:not(.hc) .brand .logo-dark { display: none; }
:root[data-theme="gece"]:not(.hc) .brand .logo-light { display: block; }

/* ---------- Header və menyu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(var(--shadow-rgb), 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: block; flex-shrink: 0; padding-block: 8px; }
.brand img { height: 52px; width: auto; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  background: var(--tint); color: var(--accent);
  border: 1px solid var(--tint-strong); border-radius: 999px;
  font: 600 0.95rem var(--font-head); cursor: pointer;
}
.nav-toggle-close, .nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; text-decoration: none; color: var(--heading);
  font: 600 1rem/1.3 var(--font-head);
}
.nav-list a[aria-current="page"], .nav-list .is-current > a { color: var(--accent); }
.sub-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: none; border: 0; color: var(--accent); cursor: pointer; border-radius: 8px;
}
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-menu { list-style: none; margin: 0; padding: 0; }

/* Mobil menyu (JS varsa açılıb-bağlanır, JS yoxdursa həmişə görünür) */
@media (max-width: 1023px) {
  .header-inner { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; }
  .nav-toggle { display: none; }
  .main-nav { flex-basis: 100%; padding-bottom: 12px; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: block; }
  .nav-list > li { border-top: 1px solid var(--border); }
  .nav-list > li > a { padding: 12px 4px; }
  .has-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .has-sub > a { flex: 1; }
  .sub-menu { flex-basis: 100%; padding: 0 0 8px 16px; }
  .js .sub-menu { display: none; }
  .js .sub-menu.is-open { display: block; }
  .sub-menu a { padding: 8px 4px; font-weight: 500; }
}

/* Masaüstü menyu */
@media (min-width: 1024px) {
  .brand img { height: 60px; }
  .nav-toggle { display: none !important; }
  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list > li { position: relative; }
  .nav-list > li > a { padding: 10px 12px; border-radius: 8px; font-size: 0.95rem; }
  .nav-list > li > a:hover { background: var(--tint); }
  .nav-list > li > a[aria-current="page"], .nav-list > .is-current > a {
    box-shadow: inset 0 -3px 0 var(--gold);
    border-radius: 8px 8px 0 0;
  }
  .has-sub { display: flex; align-items: center; }
  .has-sub > a { padding-right: 2px !important; }
  .sub-toggle { width: 28px; height: 36px; }
  .sub-menu {
    position: absolute; top: 100%; left: 0; min-width: 240px;
    background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--gold);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow-lg);
    padding: 6px; display: none;
  }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .sub-menu.is-open { display: block; }
  .sub-menu a { padding: 10px 12px; border-radius: 6px; font-weight: 500; }
  .sub-menu a:hover, .sub-menu a[aria-current="page"] { background: var(--tint); }
}
@media (min-width: 1200px) {
  .nav-list > li > a { padding: 10px 14px; font-size: 1rem; }
}

/* ---------- Səhifə başlığı ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(177, 142, 66, 0.25), transparent 45%),
    linear-gradient(135deg, var(--purple-900), var(--purple) 70%);
  color: #fff;
  padding-block: clamp(28px, 5vw, 56px);
}
.page-hero h1 { color: #fff; margin-bottom: 0.3em; }
.page-hero .lead { color: #efe4f1; font-size: 1.1rem; max-width: 60ch; margin: 0; }
.page-hero-home { padding-block: clamp(48px, 9vw, 110px); }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 4px 0;
  list-style: none; margin: 0 0 12px; padding: 0;
  font-size: 0.875rem; color: #e5d5e8;
}
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-inline: 8px; color: var(--gold); }
.breadcrumbs a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Bölmələr ---------- */
.section { padding-block: clamp(40px, 7vw, 80px); }
.section-alt { background: var(--surface); }
.section-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.section-heading h2 { margin: 0; position: relative; padding-bottom: 12px; }
.section-heading h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 4px; border-radius: 2px; background: var(--gold);
}
.prose { max-width: 75ch; }
.prose ul { margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.empty-state {
  padding: 32px; text-align: center; color: var(--text-muted);
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}

/* ---------- Səhifələmə ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span {
  display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px;
  border-radius: 999px; border: 1px solid var(--border); text-decoration: none; font-weight: 600;
}
.pagination a:hover { border-color: var(--accent); }
.pagination span[aria-current="page"] { background: var(--btn-bg); color: #fff; border-color: var(--btn-bg); }
.pagination .gap { border: 0; }

/* ---------- Xəta səhifələri ---------- */
.error-page { padding-block: clamp(56px, 10vw, 120px); text-align: center; }
.error-page .actions { justify-content: center; }
.error-page .error-code {
  font: 700 clamp(4rem, 3rem + 8vw, 8rem)/1 var(--font-head);
  color: var(--gold); margin: 0 0 8px;
}
.error-page p:not(.error-code) { color: var(--text-muted); max-width: 48ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: auto; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid {
  display: grid; gap: 32px;
  padding-block: 48px 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; } }
.footer-brand img { height: 72px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 34ch; }
.footer-brand .social { margin-left: -8px; }
.footer-title {
  font-size: 1rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-links, .footer-contacts { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-contacts li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.footer-contacts .icon { color: var(--gold); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 18px; font-size: 0.85rem; color: var(--footer-muted); }

/* ---------- Köməkçi başlıq ölçüləri ---------- */
.h3 { font-size: 1.2rem; }
.h4 { font-size: 1.05rem; margin-bottom: 0.35em; }

/* ---------- Kartlar ---------- */
.card-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover, .card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media-empty { display: grid; place-items: center; }
.card-media-empty img { width: 96px; height: 96px; object-fit: contain; opacity: 0.35; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; flex: 1; }
.card-date, .card-meta, .card-kicker { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.card-kicker { color: var(--gold-text); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.78rem; }
.card-title { font-size: 1.1rem; margin: 0; }
.card-title a { color: var(--heading); text-decoration: none; }
.card-title a:hover { color: var(--accent); text-decoration: underline; }
.card-text { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.card .link-arrow { margin-top: auto; padding-top: 6px; color: var(--accent); }
/* Bütün kartı kliklənən edir (link başlıqdadır) */
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--radius); }

.badges { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--badge-bg); color: var(--badge-text); font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--badge-border);
}

/* ---------- Slayder ---------- */
.hero-slider { position: relative; background: var(--purple-900); }
.slides { position: relative; }
.slide { display: none; position: relative; }
.slide.is-active { display: block; }
.js .slide.is-active { animation: slide-in 0.5s ease; }
@keyframes slide-in { from { opacity: 0.4; } to { opacity: 1; } }
.slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 640px) { .slide img { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) { .slide img { aspect-ratio: auto; height: min(70vh, 600px); } }
.slide-caption {
  position: absolute; inset: auto 0 0 0;
  padding-block: 64px 72px;
  background: linear-gradient(to top, rgba(47, 0, 54, 0.92), rgba(47, 0, 54, 0.55) 60%, transparent);
  color: #fff;
}
.slide-title {
  font: 700 clamp(1.4rem, 1rem + 2.4vw, 2.6rem)/1.2 var(--font-head);
  margin: 0 0 0.3em; max-width: 24ch;
}
.slide-subtitle { font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem); margin: 0 0 1em; max-width: 60ch; color: #f1e7f3; }
.slider-controls {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: rgba(47, 0, 54, 0.6); padding: 4px 8px; border-radius: 999px;
}
.slider-btn {
  display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
  background: transparent; color: #fff; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 0.8rem var(--font-body);
}
.slider-btn:hover { background: rgba(255, 255, 255, 0.15); }
.slider-dots { display: flex; gap: 2px; }
.slider-dot {
  width: 28px; height: 40px; background: none; border: 0; cursor: pointer; position: relative;
}
.slider-dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px;
  transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 255, 255, 0.5);
}
.slider-dot[aria-current="true"]::before { background: var(--gold); width: 12px; height: 12px; }
html:not(.js) .slider-controls { display: none; }

/* ---------- Statistika ---------- */
.stats-band { background: var(--purple); color: #fff; padding-block: 32px; border-bottom: 4px solid var(--gold); }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats li { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font: 700 clamp(2rem, 1.5rem + 2vw, 3rem)/1 var(--font-head); color: var(--gold); }
.stat-label { font-size: 0.95rem; color: #f1e7f3; }
.stats-boxed { align-self: start; }
.stats-boxed li { background: var(--tint); border-radius: var(--radius); padding: 24px 12px; }
.stats-boxed .stat-label { color: var(--text-muted); }
.stats-boxed .stat-value { color: var(--accent); }

/* ---------- İstiqamətlər ---------- */
.direction-grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.direction-card {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 24px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--border); border-top: 4px solid var(--accent);
  box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.direction-card:hover, .direction-card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-top-color: var(--gold); }
.direction-num { font: 700 1.6rem/1 var(--font-head); color: var(--gold); }
.direction-card h3 { margin: 0; font-size: 1.1rem; }
.direction-card h3 a { color: var(--heading); text-decoration: none; }
.direction-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.direction-count { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--purple-900), var(--purple));
  color: #fff; padding-block: 48px;
}
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band p { margin: 0; color: #efe4f1; max-width: 60ch; }
.cta-band .actions { margin-top: 0; }

/* ---------- Məqalə / iki sütunlu səhifələr ---------- */
.article-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; } }
.article-date { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; }
.article-lead { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.article-lead img { width: 100%; height: auto; }
.article-gallery { margin-block: 32px; }
.article-aside { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 1024px) { .article-aside { position: sticky; top: 100px; align-self: start; } }
.card-stack { display: flex; flex-direction: column; gap: 12px; }
.mini-card { padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); background: var(--card); }
.mini-card-title { font-size: 0.98rem; margin: 0 0 4px; }
.mini-card-title a { color: var(--heading); text-decoration: none; }
.mini-card-title a:hover { text-decoration: underline; }
.mini-card time { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Şəkil şəbəkəsi ---------- */
.photo-grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
}
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; } }
.photo-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--tint); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s; }
.photo-grid a:hover img { transform: scale(1.04); }
.album-intro { margin-bottom: 28px; }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100dvh; background: rgba(15, 0, 18, 0.95); color: #fff;
}
.lightbox::backdrop { background: rgba(15, 0, 18, 0.95); }
.lightbox-figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 8px 16px; }
.lightbox-figure img { max-width: 100%; max-height: calc(100dvh - 120px); object-fit: contain; }
.lightbox-figure figcaption { margin-top: 10px; font-size: 0.9rem; text-align: center; color: #e8dceb; }
.lightbox-btn {
  position: absolute; display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer;
}
.lightbox-btn[hidden] { display: none; }
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-close { top: 8px; right: 8px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; top: 20px; left: 16px; font-size: 0.9rem; color: #e8dceb; }

/* ---------- İxtisas filtri ---------- */
.filter-bar {
  display: grid; gap: 12px 16px; align-items: end;
  padding: 20px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
@media (min-width: 768px) { .filter-bar { grid-template-columns: 1fr 1fr auto; } }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.result-count { color: var(--text-muted); margin-bottom: 28px; }
.specialty-group + .specialty-group { margin-top: 48px; }
.group-heading { margin-bottom: 20px; padding-left: 14px; border-left: 4px solid var(--gold); }
.group-heading h2 { margin-bottom: 0.2em; font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem); }
.group-heading p { margin: 0; color: var(--text-muted); }
.specialty-card .badges { margin-top: 2px; }

/* ---------- Məlumat kartları ---------- */
.info-card {
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.info-card > :last-child { margin-bottom: 0; }
.info-card-accent { background: var(--tint); border-color: var(--tint-strong); border-top: 4px solid var(--gold); }
.info-list { margin: 0 0 20px; display: grid; gap: 16px; }
.info-list dt { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.info-list dd { margin: 0; font-weight: 500; }
.info-note { font-size: 0.9rem; color: var(--text-muted); margin: 14px 0 0; }
.btn-block { width: 100%; }
.related h2 { margin-bottom: 12px; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { border-bottom: 1px solid var(--border); }
.related-list a { display: block; padding: 10px 0; text-decoration: none; font-weight: 500; }
.related-list a:hover { text-decoration: underline; }
.duration-links { list-style: none; margin: 0; padding: 0; }
.duration-links a {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border); text-decoration: none; font-weight: 600;
}
.duration-links .count { color: var(--text-muted); font-weight: 400; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plain-list li { display: flex; gap: 10px; align-items: flex-start; }
.plain-list .icon { color: var(--icon-gold); margin-top: 3px; }

/* ---------- Haqqımızda ---------- */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.about-grid .stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.about-figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.director { display: grid; gap: 28px; align-items: start; }
@media (min-width: 768px) { .director:has(.director-photo) { grid-template-columns: 260px minmax(0, 1fr); } }
.director-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border-bottom: 4px solid var(--gold); }
.director-text {
  margin: 0; padding: 28px; background: var(--card); border-radius: var(--radius);
  border-left: 4px solid var(--accent); box-shadow: var(--shadow); max-width: none;
}
.link-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.link-cards a {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; background: var(--card);
}
.link-cards a:hover { border-color: var(--accent); }
.link-cards strong { font-family: var(--font-head); color: var(--heading); }
.link-cards span { grid-column: 1; color: var(--text-muted); font-size: 0.92rem; }
.link-cards .icon { grid-column: 2; grid-row: 1 / span 2; color: var(--icon-gold); }

/* ---------- Əlaqə ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.contact-cards { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.contact-cards li {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.contact-cards .icon { color: var(--icon-gold); margin-top: 2px; }
.contact-cards p { margin: 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4 / 3; background: var(--tint); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-form-wrap { padding: clamp(20px, 4vw, 32px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); align-self: start; }

/* ---------- Formalar ---------- */
.form { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  font: inherit; color: var(--text); background: var(--card);
  border: 1px solid var(--input-border); border-radius: var(--radius-sm);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(177, 142, 66, 0.45); border-color: var(--accent); }
.has-error input, .has-error textarea { border-color: var(--danger); }
.field-error { margin: 0; color: var(--danger); font-size: 0.88rem; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { margin: 0; font-size: 0.88rem; color: var(--text-muted); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; }
.alert-success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
.alert-error { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }

/* ---------- Əlavə bölmələr ---------- */
.people-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.person-card, .story-card, .partner-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.person-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--tint); }
.person-initials { display: grid; place-items: center; font: 700 3rem var(--font-head); color: var(--accent); background: linear-gradient(135deg, var(--tint), var(--badge-bg)); }
.person-body { padding: 18px 20px 22px; }
.person-role { color: var(--gold-text); font-weight: 600; font-size: 0.92rem; margin: 0 0 8px; }
.person-work { font-size: 0.95rem; margin-bottom: 8px; }
.person-text { font-size: 0.95rem; color: var(--text-muted); }
.person-text p:last-child { margin-bottom: 0; }
.story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 768px) {
  .story-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
  .story-card .person-photo { height: 100%; aspect-ratio: auto; min-height: 240px; }
}
.partner-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.partner-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.partner-logo { height: 96px; display: grid; place-items: center; background: var(--surface); border-radius: var(--radius-sm); }
.partner-logo img { max-height: 72px; max-width: 80%; object-fit: contain; }
.partner-logo span { font: 700 1.8rem var(--font-head); color: var(--accent); }
.partner-card .link-arrow { margin-top: auto; }

/* ---------- Yüksək kontrast rejimi ----------
   Hər temanın üstündən işləyir: :root.hc seçicisi :root[data-theme] ilə eyni çəkidədir
   və sonra yazıldığı üçün qalib gəlir. */
:root.hc {
  color-scheme: dark;
  --bg: #000000;
  --surface: #000000;
  --card: #000000;
  --border: #ffffff;
  --input-border: #ffffff;
  --text: #ffffff;
  --text-muted: #ffffff;
  --heading: #ffffff;
  --accent: #ffeb3b;
  --link: #ffeb3b;
  --link-hover: #ffeb3b;
  --gold-text: #ffeb3b;
  --icon-gold: #ffeb3b;
  --tint: #000000;
  --tint-strong: #ffffff;
  --badge-bg: #000000;
  --badge-text: #ffffff;
  --badge-border: #ffffff;
  --header-bg: #000000;
  --topbar-bg: #000000;
  --topbar-text: #ffffff;
  --footer-bg: #000000;
  --footer-text: #ffffff;
  --footer-muted: #ffffff;
  --danger: #ff8a80;
  --success-bg: #000000;
  --success-border: #ffffff;
  --success-text: #ffffff;
  --error-bg: #000000;
  --error-border: #ff8a80;
  --error-text: #ff8a80;
  --focus: #00e5ff;
  --shadow: none;
  --shadow-lg: none;
}
html.hc body { background: #000; color: #fff; }
html.hc h1, html.hc h2, html.hc h3, html.hc h4 { color: #fff; }
html.hc a, html.hc a:hover { color: #ffeb3b; text-decoration: underline; }
html.hc .topbar, html.hc .site-header, html.hc .site-footer, html.hc .page-hero, html.hc .sub-menu {
  background: #000; color: #fff; border-color: #fff; box-shadow: none;
}
html.hc .site-header { border-bottom: 2px solid #fff; }
html.hc .brand .logo-dark { display: none; }
html.hc .brand .logo-light { display: block; }
html.hc .brand img, html.hc .footer-brand img { filter: none; }
html.hc .theme-menu { background: #000; color: #fff; border-color: #fff; }
html.hc .theme-menu button { color: #fff; }
html.hc .theme-menu button[aria-pressed="true"] { color: #ffeb3b; }
html.hc .nav-list a, html.hc .breadcrumbs, html.hc .page-hero .lead { color: #fff; }
html.hc .nav-list a[aria-current="page"] { color: #ffeb3b; }
html.hc .btn { background: #000 !important; color: #ffeb3b !important; border-color: #ffeb3b !important; }
html.hc .btn:hover { background: #ffeb3b !important; color: #000 !important; }
html.hc .nav-toggle, html.hc .sub-toggle { background: #000; color: #fff; border-color: #fff; }
html.hc .error-code, html.hc .footer-title, html.hc .footer-contacts .icon, html.hc .topbar-contacts .icon { color: #ffeb3b; }
html.hc .section-heading h2::after { background: #ffeb3b; }
html.hc .pagination span[aria-current="page"] { background: #ffeb3b; color: #000; }
html.hc .card, html.hc .direction-card, html.hc .info-card, html.hc .mini-card, html.hc .contact-cards li,
html.hc .contact-form-wrap, html.hc .filter-bar, html.hc .director-text, html.hc .link-cards a,
html.hc .person-card, html.hc .story-card, html.hc .partner-card, html.hc .stats-band, html.hc .cta-band,
html.hc .stats-boxed li, html.hc .partner-logo {
  background: #000; color: #fff; border-color: #fff; box-shadow: none;
}
html.hc .card-title a, html.hc .direction-card h3 a, html.hc .mini-card-title a, html.hc .link-cards strong { color: #ffeb3b; }
html.hc .card-text, html.hc .card-date, html.hc .card-kicker, html.hc .stat-label, html.hc .person-role { color: #fff; }
html.hc .stat-value, html.hc .direction-num, html.hc .direction-count { color: #ffeb3b; }
html.hc .badge { background: #000; color: #fff; border-color: #fff; }
html.hc .field input, html.hc .field select, html.hc .field textarea { background: #000; color: #fff; border-color: #fff; }
html.hc .slide-caption { background: rgba(0, 0, 0, 0.85); }
