/* =====================================================================
   Alimlər Portalı — ictimai tərəf üslubları
   Fraunces (başlıqlar) + Inter (mətn). Açıq / tünd mövzu dəyişənlərlə.
   ===================================================================== */

:root {
	--bg: #f6f3ec;
	--bg-tint: #efeadf;
	--surface: #ffffff;
	--surface-2: #faf8f3;
	--ink: #15212c;
	--ink-2: #43515e;
	--muted: #75828e;
	--line: #e3ddce;
	--brand: #0e2a3d;
	--brand-2: #16405c;
	--brand-3: #1d5679;
	--accent: #cf8a2e;
	--accent-2: #e5a24c;
	--accent-ink: #7a470c;
	--accent-soft: #f8e9d1;
	--teal: #1f7a80;
	--danger: #b5382e;
	--ok: #1f7a4d;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(20, 33, 44, .06), 0 2px 8px rgba(20, 33, 44, .05);
	--shadow: 0 8px 30px rgba(20, 33, 44, .10);
	--shadow-lg: 0 24px 60px rgba(14, 42, 61, .22);
	--header-h: 68px;
	--font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #0b1520;
	--bg-tint: #0f1c29;
	--surface: #13222f;
	--surface-2: #172937;
	--ink: #e8edf1;
	--ink-2: #b6c1cb;
	--muted: #8493a0;
	--line: #223444;
	--brand: #08182a;
	--accent: #e3a24e;
	--accent-ink: #f0c98a;
	--accent-soft: #35270f;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
	--shadow: 0 8px 30px rgba(0, 0, 0, .35);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); margin-inline: auto; }
.narrow-2 { width: min(900px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.skip-link { position: fixed; left: 12px; top: -60px; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; transition: top .2s; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	* { animation: none !important; }
}

.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); z-index: 60; transition: width .1s linear; }

/* =====================================================================
   Header
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px rgba(20, 33, 44, .06); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); }
[data-theme="dark"] .brand { color: var(--ink); }
.brand-mark { display: grid; place-items: center; color: var(--brand); }
[data-theme="dark"] .brand-mark { color: #cfe0ee; }
.brand-logo { display: block; height: 40px; width: auto; }
.logo-on-dark, [data-theme="dark"] .logo-on-light { display: none; }
[data-theme="dark"] .logo-on-dark { display: block; }
.brand:has(.brand-logo) .brand-text { padding-left: 12px; border-left: 1px solid var(--line); }
.brand-light:has(.brand-logo) .brand-text { border-left-color: rgba(255, 255, 255, .25); }
@media (max-width: 480px) { .brand-logo { height: 32px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; }
.brand-text small { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a, .nav-drop-btn { padding: 8px 14px; border-radius: 999px; font-size: .94rem; font-weight: 500; color: var(--ink-2); background: none; border: 0; transition: background .15s, color .15s; }
.main-nav > a:hover, .nav-drop-btn:hover, .nav-drop.is-open .nav-drop-btn { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.main-nav > a.is-active { color: var(--ink); background: var(--accent-soft); }
.nav-drop { position: relative; }
.nav-drop-btn i { font-size: .7rem; margin-left: 2px; transition: transform .2s; }
.nav-drop.is-open .nav-drop-btn i { transform: rotate(180deg); }
.nav-drop-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav-drop.is-open .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: .92rem; color: var(--ink-2); }
.nav-drop-menu a i { color: var(--accent); font-size: 1.05rem; }
.nav-drop-menu a:hover { background: var(--bg-tint); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 1.05rem; transition: .15s; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav-burger { display: none; }

/* Axtarış dialoqu */
.search-dialog { width: min(680px, 92vw); margin: 12vh auto auto; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.search-dialog::backdrop { background: rgba(8, 24, 42, .55); backdrop-filter: blur(4px); }
.search-dialog-form { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-bottom: 2px solid var(--accent); }
.search-dialog-form i { font-size: 1.3rem; color: var(--accent); }
.search-dialog-form input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1.2rem; padding: 10px 0; }
.kbd { border: 1px solid var(--line); background: var(--bg-tint); border-radius: 6px; padding: 3px 8px; font-size: .75rem; color: var(--muted); }
.search-hint { margin: 14px 8px 0; color: var(--muted); font-size: .9rem; }

/* =====================================================================
   Düymələr, çiplər, bölmə başlıqları
   ===================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2; transition: transform .15s, box-shadow .15s, background .15s, color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(14, 42, 61, .25); }
.btn-primary:hover { background: var(--brand-2); }
[data-theme="dark"] .btn-primary { background: var(--accent); color: #1c1207; box-shadow: none; }
.btn-accent { background: var(--accent); color: #23140a; box-shadow: 0 6px 18px rgba(207, 138, 46, .35); }
.btn-accent:hover { background: var(--accent-2); }
.btn-quiet { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.btn-quiet:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; font-weight: 500; color: var(--ink-2); transition: .15s; }
.chip i { color: var(--accent); }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.is-active i { color: var(--accent-2); }
[data-theme="dark"] .chip.is-active { background: var(--accent); border-color: var(--accent); color: #1c1207; }
.chip-light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); color: #f0e6d6; }
.chip-light:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px; }
.eyebrow-dark { color: var(--accent-ink); }
[data-theme="dark"] .eyebrow-dark { color: var(--accent); }
.section { padding: clamp(56px, 8vw, 96px) 0; position: relative; }
/* Alt menyudan keçəndə bölmənin öz yuxarı boşluğu (padding) əlavə məsafə yaratmasın: məzmun sabit başlığın (header + subnav) altında ~28px məsafədə dayansın */
.section[id] { scroll-margin-top: calc(28px - clamp(56px, 8vw, 96px)); }
.section-tight { padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.section-tint { background: var(--bg-tint); }
.section-dark { background: linear-gradient(160deg, var(--brand), #0b2337); color: #dbe6ef; }
.section-dark h2 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 4vw, 40px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head-center { justify-content: center; text-align: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-ink); }
[data-theme="dark"] .link-arrow { color: var(--accent); }
.link-arrow i { transition: transform .2s; }
.link-arrow:hover i { transform: translateX(4px); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.empty { color: var(--muted); padding: 24px 0; text-align: center; }

/* =====================================================================
   Ana səhifə — hero
   ===================================================================== */
.hero { position: relative; color: #e4edf4; background: linear-gradient(155deg, #0a2233 0%, #0f3350 55%, #12405f 100%); overflow: hidden; margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); }
.hero-bg { position: absolute; inset: 0; background:
	radial-gradient(900px 500px at 88% 8%, rgba(229, 162, 76, .30), transparent 60%),
	radial-gradient(700px 500px at 5% 100%, rgba(31, 122, 128, .35), transparent 60%),
	radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 26px 26px;
	mask-image: linear-gradient(180deg, #000 60%, transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 9vw, 110px); }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: 20px; }
.hero .lead { color: #c3d3df; font-size: 1.16rem; margin-bottom: 30px; }
.hero-search { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; background: #fff; border-radius: 999px; box-shadow: 0 18px 44px rgba(0, 0, 0, .28); max-width: 620px; }
.hero-search i { color: var(--accent); font-size: 1.15rem; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; padding: 12px 4px; font-size: 1.02rem; color: #15212c; }
.hero-search input::placeholder { color: #7b8893; }
.hero-search-light { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-top: 24px; }
.hero-search-light input { color: var(--ink); }
.hero-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .86rem; color: #9fb4c4; }
.hero-quick .chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #dbe6ef; }
.hero-quick .chip:hover { background: rgba(255, 255, 255, .16); }
.hero-totals { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px clamp(20px, 3vw, 44px); margin: 44px 0 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-totals dt { font-family: var(--font-serif); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; color: #fff; line-height: 1; }
.hero-totals dd { margin: 6px 0 0; font-size: .8rem; color: #9fb4c4; }

.hero-feature { position: relative; }
.feature-card { position: relative; z-index: 2; display: block; background: var(--surface); color: var(--ink); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(1.2deg); transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.feature-card:hover { transform: rotate(0) translateY(-6px); }
.feature-photo { position: relative; aspect-ratio: 3 / 2.1; overflow: hidden; background: #cdd6dd; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s; }
.feature-card:hover .feature-photo img { transform: scale(1.04); }
.feature-badge { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 34, 51, .78); backdrop-filter: blur(6px); color: #fff; font-size: .76rem; font-weight: 600; }
.feature-badge i { color: var(--accent-2); margin-right: 4px; }
.feature-body { padding: 22px 24px 24px; }
.feature-years { font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: var(--accent-ink); }
.feature-body h2 { font-size: 1.55rem; margin: 6px 0 8px; }
.feature-body p { color: var(--ink-2); font-size: .95rem; margin-bottom: 14px; }
.feature-link { font-weight: 600; color: var(--brand); display: inline-flex; gap: 6px; align-items: center; }
[data-theme="dark"] .feature-link { color: var(--accent); }
.feature-orb { position: absolute; border-radius: 50%; z-index: 1; }
.feature-orb-1 { width: 220px; height: 220px; right: -60px; top: -50px; background: radial-gradient(circle at 30% 30%, rgba(229, 162, 76, .55), transparent 70%); }
.feature-orb-2 { width: 160px; height: 160px; left: -50px; bottom: -40px; background: radial-gradient(circle at 60% 40%, rgba(31, 122, 128, .6), transparent 70%); }

/* Sahələr */
.field-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.field-tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.field-tile::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: var(--accent-soft); opacity: 0; transition: opacity .3s; }
.field-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.field-tile:hover::after { opacity: .9; }
.field-tile > * { position: relative; z-index: 1; }
.field-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--brand); color: var(--accent-2); font-size: 1.3rem; }
.field-tile h3 { margin: 8px 0 0; font-size: 1.1rem; }
.field-tile p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1; }
.field-count { font-size: .8rem; font-weight: 600; color: var(--accent-ink); }
[data-theme="dark"] .field-count { color: var(--accent); }

/* Spotlight */
.spotlight { background: linear-gradient(140deg, #0c2a40, #113a57); color: #d3e0ea; position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0; }
.spotlight::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 100% 0, rgba(229, 162, 76, .22), transparent 60%); }
.spotlight-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.spotlight h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.spotlight-text p { color: #c3d3df; font-size: 1.06rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.tag-row li { padding: 6px 13px; border-radius: 999px; font-size: .84rem; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); color: #e6eef4; }
.tag-row-dark li { background: var(--bg-tint); border-color: var(--line); color: var(--ink-2); }
.spotlight-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.spotlight-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); backdrop-filter: blur(6px); }
.stat b { display: block; font-family: var(--font-serif); font-size: 2.4rem; font-weight: 600; color: var(--accent-2); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-size: .88rem; color: #b9cad7; }
.spot-quote { grid-column: 1 / -1; margin: 0; padding: 22px 24px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(229, 162, 76, .22), rgba(229, 162, 76, .06)); border: 1px solid rgba(229, 162, 76, .35); }
.spot-quote blockquote { margin: 0 0 10px; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.35; color: #fff; }
.spot-quote figcaption { font-size: .85rem; color: #d9c29a; }

/* Xüsusiyyətlər / CTA */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { padding: 28px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.feature-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; background: var(--accent-soft); color: var(--accent-ink); font-size: 1.5rem; margin-bottom: 18px; }
[data-theme="dark"] .feature-ico { color: var(--accent); }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.cta { padding: clamp(40px, 6vw, 72px) 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: linear-gradient(120deg, var(--brand), var(--brand-3)); color: #d3e0ea; position: relative; overflow: hidden; }
.cta-inner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(229, 162, 76, .4), transparent 70%); }
.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { margin: 0; max-width: 52ch; }
.cta-inner > * { position: relative; z-index: 1; }

/* =====================================================================
   Kartlar, siyahı səhifəsi
   ===================================================================== */
.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(16px, 3vw, 28px); background: linear-gradient(180deg, var(--bg-tint), transparent); }
.page-head h1 { margin: 10px 0 12px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs i { font-size: .65rem; }
.crumbs-light { color: #9fb4c4; }
.crumbs-light a:hover { color: #fff; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.sci-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s; }
.sci-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.sci-card-media { position: relative; aspect-ratio: 3 / 2.1; background: linear-gradient(135deg, var(--brand), var(--brand-3)); overflow: hidden; }
.sci-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: grayscale(.15); transition: transform .6s, filter .4s; }
.sci-card:hover .sci-card-media img { transform: scale(1.05); filter: none; }
.sci-card-initials { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-serif); font-size: 4rem; color: rgba(255, 255, 255, .55); }
.sci-card-field { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: rgba(10, 34, 51, .78); color: #fff; backdrop-filter: blur(6px); }
.sci-card-field i { color: var(--accent-2); }
.sci-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.sci-card-years { font-size: .78rem; font-weight: 600; letter-spacing: .14em; color: var(--accent-ink); }
[data-theme="dark"] .sci-card-years { color: var(--accent); }
.sci-card-body h3 { font-size: 1.32rem; margin: 6px 0 8px; }
.sci-card-body p { font-size: .92rem; color: var(--ink-2); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sci-card-stats { list-style: none; padding: 12px 0 0; margin: auto 0 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--muted); }
.sci-card-stats b { color: var(--ink); }
.sci-card-stats i { color: var(--accent); margin-right: 2px; }
.sci-card-more { font-size: .9rem; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
[data-theme="dark"] .sci-card-more { color: var(--accent); }
.sci-card-more i { transition: transform .2s; }
.sci-card:hover .sci-card-more i { transform: translateX(5px); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.filter-search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--bg); border-radius: 999px; border: 1px solid var(--line); }
.filter-search i { color: var(--accent); }
.filter-search input { flex: 1; border: 0; background: none; outline: none; padding: 11px 0; min-width: 0; }
.filter-select select, .mini-select { appearance: none; padding: 11px 38px 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2375828e' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 15px center; cursor: pointer; }
.result-count { margin: 22px 0 18px; color: var(--muted); font-size: .95rem; }
.result-count b { color: var(--ink); }
.empty-state { text-align: center; padding: 64px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: 20px; }
.empty-state i { font-size: 2.6rem; color: var(--accent); }
.empty-state h3 { margin-top: 12px; }
.empty-state p { color: var(--muted); }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager-btn { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; transition: .15s; }
a.pager-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.pager-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
[data-theme="dark"] .pager-btn.is-active { background: var(--accent); border-color: var(--accent); color: #1c1207; }
.pager-btn.is-disabled { opacity: .4; }
.pager-gap { color: var(--muted); padding: 0 4px; }

/* Axtarış nəticələri */
.result-h { margin: 40px 0 16px; display: flex; align-items: center; gap: 10px; font-size: 1.4rem; }
.result-h span { font-family: var(--font-sans); font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.result-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.result-list p { margin: 0 0 6px; font-size: .95rem; }
.result-list a { font-size: .85rem; color: var(--accent-ink); font-weight: 600; }
[data-theme="dark"] .result-list a { color: var(--accent); }

.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; background: var(--bg-tint); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.badge-lang { background: transparent; color: var(--muted); }
.badge-doctor, .badge-patent { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.badge-candidate, .badge-book { background: #e1eef0; border-color: transparent; color: #175c62; }
.badge-memoir { background: #ece6f5; border-color: transparent; color: #56417d; }
.badge-interview { background: #e0ecf7; border-color: transparent; color: #24507c; }
.badge-essay, .badge-article, .badge-about, .badge-edited, .badge-other_book { background: var(--bg-tint); }
[data-theme="dark"] .badge-candidate, [data-theme="dark"] .badge-book { background: #12383b; color: #8fd0d5; }
[data-theme="dark"] .badge-memoir { background: #2a2140; color: #c6b3ee; }
[data-theme="dark"] .badge-interview { background: #172f47; color: #9cc4ec; }

/* =====================================================================
   Alim profili
   ===================================================================== */
.profile-hero { position: relative; margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h); color: #d3e0ea; background: linear-gradient(155deg, #0a2233, #103550 60%, #14435f); overflow: hidden; }
.profile-hero-bg { position: absolute; inset: 0; background: radial-gradient(700px 420px at 92% 0, rgba(229, 162, 76, .28), transparent 62%), radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 24px 24px; }
.profile-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 72px); }
.profile-hero h1 { color: #fff; margin: 16px 0 10px; font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
.profile-years { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--accent-2); font-weight: 600; letter-spacing: .06em; margin-bottom: 14px; }
.profile-years i { margin-right: 4px; }
.profile-titles { color: #b8cad8; font-size: 1.02rem; max-width: 60ch; margin-bottom: 26px; }
.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin: 0; max-width: 560px; }
.profile-stats > div { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.profile-stats dt { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600; line-height: 1; color: #fff; }
.profile-stats dd { margin: 6px 0 0; font-size: .78rem; color: #a9bccb; line-height: 1.3; }
.profile-portrait { margin: 0; position: relative; }
.portrait-frame { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .18); aspect-ratio: 3 / 2.05; background: #1a3b52; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(6, 20, 32, .5)); pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.profile-portrait::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border: 2px solid var(--accent); border-radius: 26px; opacity: .55; z-index: 0; }
.portrait-frame { z-index: 1; }
.profile-portrait figcaption { position: relative; z-index: 2; margin-top: 18px; font-size: .82rem; color: #9fb4c4; text-align: right; }

.subnav { position: sticky; top: var(--header-h); z-index: 40; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav-inner { overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-links { display: flex; gap: 4px; min-width: max-content; }
.subnav-links a { position: relative; padding: 16px 16px; font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: color .15s; }
.subnav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transform: scaleX(0); transition: transform .25s; }
.subnav-links a:hover { color: var(--ink); }
.subnav-links a.is-active { color: var(--ink); font-weight: 600; }
.subnav-links a.is-active::after { transform: scaleX(1); }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-side { position: sticky; top: calc(var(--header-h) + 72px); display: grid; gap: 16px; }
.facts-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.facts-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.facts-card dl { margin: 0; display: grid; gap: 14px; }
.facts-card dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.facts-card dd { margin: 0; font-weight: 500; }
.facts-card .tag-row { margin: 0; }

/* Mətn (prose) */
.prose { color: var(--ink-2); font-size: 1.04rem; line-height: 1.78; }
.prose p { margin-bottom: 1.1em; }
.prose h3 { color: var(--ink); margin-top: 1.6em; font-size: 1.35rem; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose-lg { font-size: 1.1rem; }
.lead-prose { font-size: 1.22rem; color: var(--ink); line-height: 1.65; padding-bottom: 8px; margin-bottom: 20px; border-bottom: 1px solid var(--line); font-family: var(--font-serif); font-weight: 400; }
.prose-drop > p:first-of-type::first-letter { float: left; font-family: var(--font-serif); font-size: 4rem; line-height: .82; padding: 8px 12px 0 0; color: var(--accent); font-weight: 600; }
.collapsible { position: relative; transition: max-height .5s ease; }
.collapsible[data-collapsed="true"] { max-height: 430px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.expand-btn { margin-top: 10px; }
.prose ul.checks, .prose ul { list-style: none; padding: 0; display: grid; gap: 8px; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1px; color: var(--accent); }
.prose ol { padding-left: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; margin: 0 0 1.2em; }
.prose ol li { counter-increment: st; position: relative; padding: 12px 16px 12px 58px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.prose ol li::before { content: counter(st); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; }
[data-theme="dark"] .prose ol li::before { background: var(--accent); color: #1c1207; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 14px 14px 0; font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink); }

/* Xronologiya */
.mini-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; min-width: 240px; }
.mini-search i { color: var(--accent); }
.mini-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 10px 0; font-size: .92rem; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 221px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--line) 12%, var(--line) 88%, transparent); }
.tl-item { position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 0 44px; padding-bottom: 22px; }
.tl-date { text-align: right; padding-top: 16px; font-family: var(--font-serif); font-size: 1.08rem; font-weight: 600; color: var(--accent-ink); line-height: 1.25; }
[data-theme="dark"] .tl-date { color: var(--accent); }
.tl-card { position: relative; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); transition: transform .2s, border-color .2s; }
.tl-card::before { content: ""; position: absolute; left: -30px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.tl-item:hover .tl-card { transform: translateX(4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.tl-card p { margin: 0 0 .5em; font-size: .97rem; color: var(--ink-2); }
.tl-card p:last-child { margin: 0; }
.tl-card p + p { padding-top: .5em; border-top: 1px dashed var(--line); }

/* Tablar */
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab-list-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.tab-list-scroll::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .92rem; color: var(--ink-2); white-space: nowrap; transition: .15s; }
.tab i { color: var(--accent); }
.tab:hover { border-color: var(--accent); }
.tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
[data-theme="dark"] .tab.is-active { background: var(--accent); border-color: var(--accent); color: #1c1207; }
.tab.is-active i { color: var(--accent-2); }
[data-theme="dark"] .tab.is-active i { color: #1c1207; }
.tab-count { padding: 1px 8px; border-radius: 999px; background: rgba(127, 127, 127, .16); font-size: .75rem; }
.tab-panel { display: none; animation: fadeUp .35s ease; }
.tab-panel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-lead { font-size: 1.1rem; color: var(--ink-2); max-width: 78ch; margin-bottom: 22px; }
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.act-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--accent); }
.act-card-state { border-top-color: var(--teal); }
.act-year { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .78rem; font-weight: 700; margin-bottom: 10px; }
.act-card-state .act-year { background: #dcefef; color: #175c62; }
[data-theme="dark"] .act-card-state .act-year { background: #12383b; color: #8fd0d5; }
.act-card h3 { font-size: 1.12rem; }
.act-card p { font-size: .93rem; color: var(--ink-2); margin: 0 0 .5em; }
.focus-box { margin-top: 28px; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* Təltiflər */
.award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.award-card { position: relative; padding: 26px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; }
.award-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.award-icon { position: absolute; right: 16px; top: 14px; font-size: 3.2rem; color: var(--accent); opacity: .16; transition: .3s; }
.award-card:hover .award-icon { opacity: .35; transform: rotate(-8deg) scale(1.1); }
.award-year { display: block; font-family: var(--font-serif); font-size: 2rem; font-weight: 600; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.award-card h3 { font-size: 1.12rem; }
.award-card p { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* Əsərlər */
.list-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.mini-btn { display: inline-flex; align-items: center; gap: 8px; padding-right: 16px; background-image: none; }
.mini-btn i { color: var(--accent); }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.book-card { display: flex; gap: 18px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: .25s; }
.book-card:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.book-cover { flex: 0 0 96px; align-self: flex-start; padding: 0; border: 0; border-radius: 6px 10px 10px 6px; overflow: hidden; box-shadow: 4px 6px 16px rgba(20, 33, 44, .3), inset 3px 0 0 rgba(255, 255, 255, .25); background: var(--bg-tint); transition: transform .3s; }
.book-cover:hover { transform: rotate(-2deg) scale(1.05); }
.book-cover img { width: 96px; aspect-ratio: 200 / 290; object-fit: cover; }
.book-cover-empty { height: 130px; display: grid; place-items: center; color: var(--muted); font-size: 2rem; }
.book-info p { font-size: .9rem; color: var(--ink-2); margin: 8px 0 0; line-height: 1.5; }
.book-meta { display: flex; gap: 6px; }
.pub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pub-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: start; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: .2s; }
.pub-item:hover { border-color: var(--accent); }
.pub-year { font-family: var(--font-serif); font-weight: 600; color: var(--accent-ink); font-size: 1.05rem; }
[data-theme="dark"] .pub-year { color: var(--accent); }
.pub-item p { margin: 0; font-size: .92rem; color: var(--ink-2); line-height: 1.55; }
.pub-note { margin-top: 6px !important; font-size: .84rem !important; color: var(--muted) !important; }
.load-more-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.load-status { color: var(--muted); font-size: .85rem; }

/* Dissertasiyalar */
.pill-stats { display: flex; gap: 10px; }
.pill-stats span { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.pill-stats b { color: var(--accent-ink); font-family: var(--font-serif); font-size: 1.15rem; margin-right: 4px; }
[data-theme="dark"] .pill-stats b { color: var(--accent); }
.dis-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.dis-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: start; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: .2s; }
.dis-item:hover { border-color: var(--accent); transform: translateX(3px); }
.dis-year { font-family: var(--font-serif); font-weight: 600; color: var(--accent-ink); }
[data-theme="dark"] .dis-year { color: var(--accent); }
.dis-main h3 { font-size: 1rem; font-family: var(--font-sans); font-weight: 650; margin: 0 0 3px; }
.dis-main p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.dis-main details { margin-top: 6px; font-size: .82rem; color: var(--muted); }
.dis-main summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; }
.dis-main details p { margin-top: 6px; color: var(--muted); }

/* Fikirlər */
.quote-grid { columns: 3 300px; column-gap: 20px; }
.quote-card { break-inside: avoid; margin: 0 0 20px; padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); position: relative; }
.quote-mark { position: absolute; right: 18px; top: 8px; font-size: 3.4rem; color: var(--accent); opacity: .35; }
.quote-card blockquote { margin: 0 0 14px; font-family: var(--font-serif); font-size: 1.32rem; line-height: 1.35; color: #fff; padding-right: 30px; }
.quote-body p { font-size: .93rem; color: #b9cad7; margin: 0 0 .7em; }
.quote-card figcaption { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; color: #dbe6ef; }
.quote-card figcaption span { color: var(--accent-2); font-weight: 600; }

/* Xatirələr */
.material-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.material-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; transition: .3s; }
.material-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.material-card .badge { align-self: flex-start; }
.material-card h3 { font-size: 1.4rem; margin: 6px 0 0; }
.material-card p { color: var(--ink-2); font-size: .95rem; margin: 0; flex: 1; }
.material-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .86rem; color: var(--muted); }
.read-more { color: var(--accent-ink); font-weight: 700; }
[data-theme="dark"] .read-more { color: var(--accent); }
.material-card:hover .read-more i { transform: translateX(4px); }
.read-more i { display: inline-block; transition: transform .2s; }

/* Oxu səhifəsi */
.page-head-reader { text-align: left; }
.byline { color: var(--ink-2); }
.reader { font-size: 1.14rem; line-height: 1.85; }
.reader p { margin-bottom: 1.25em; }
.reader.is-interview .qa-q { position: relative; margin-top: 2em; padding-left: 20px; font-weight: 650; color: var(--ink); border-left: 4px solid var(--accent); }
.reader.is-interview .qa-a { padding-left: 24px; }
.reader-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Qalereya + lightbox */
.gallery { columns: 4 230px; column-gap: 14px; }
.gallery-item { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; break-inside: avoid; position: relative; background: var(--bg-tint); cursor: zoom-in; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; transition: transform .5s, filter .3s; filter: saturate(.92); }
.gallery-item::after { content: "\F52A"; font-family: "bootstrap-icons"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: #fff; background: rgba(8, 24, 42, .45); opacity: 0; transition: opacity .25s; }
.gallery-item:hover img { transform: scale(1.06); filter: none; }
.gallery-item:hover::after { opacity: 1; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: rgba(5, 14, 24, .94); color: #fff; }
.lightbox::backdrop { background: rgba(5, 14, 24, .9); }
.lightbox[open] { display: grid; grid-template-columns: 88px minmax(0, 1fr) 88px; align-items: center; }
.lb-figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; padding: 20px 0; }
.lb-figure img { max-width: 100%; max-height: calc(100dvh - 110px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); object-fit: contain; }
.lb-figure figcaption { display: flex; gap: 14px; align-items: center; font-size: .92rem; color: #c9d6e0; text-align: center; max-width: 80ch; }
.lb-figure figcaption em { font-style: normal; color: var(--accent-2); font-weight: 600; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; font-size: 1.15rem; justify-self: center; transition: .15s; }
.lb-btn:hover { background: var(--accent); border-color: var(--accent); color: #1c1207; }
.lb-close { position: fixed; right: 20px; top: 20px; z-index: 3; }

/* Haqqında, əlaqə */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 40px; }
.stat-strip > div { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.stat-strip b { display: block; font-family: var(--font-serif); font-size: 2.2rem; color: var(--accent); line-height: 1; }
.stat-strip span { font-size: .85rem; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.form-card, .info-card { padding: clamp(22px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 1.3rem; margin-bottom: 18px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > i { flex: 0 0 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 1.1rem; }
.contact-list small { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.info-note { margin: 22px 0 0; font-size: .85rem; color: var(--muted); }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-size: .94rem; }
.alert i { margin-top: 3px; }
.alert-success { background: #e2f4ea; color: #175c39; border: 1px solid #b6e0c8; }
.alert-danger { background: #fbe8e5; color: #8e2a21; border: 1px solid #f0bdb6; }
[data-theme="dark"] .alert-success { background: #12341f; color: #9fe0bc; border-color: #1f5a37; }
[data-theme="dark"] .alert-danger { background: #3a1613; color: #f4b1a9; border-color: #6a2a24; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { margin-top: 0; background: #08202f; color: #a9bccb; padding-top: clamp(40px, 6vw, 64px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.brand-light, .brand-light .brand-mark { color: #fff; }
.footer-about p { margin-top: 14px; font-size: .92rem; max-width: 40ch; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .92rem; }
.site-footer a:hover { color: var(--accent-2); }
.site-footer .contact-list li > i { flex: none; width: auto; height: auto; background: none; color: var(--accent-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }

.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; z-index: 45; }
[data-theme="dark"] .to-top { background: var(--accent); color: #1c1207; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }

/* =====================================================================
   Responsiv
   ===================================================================== */
@media (max-width: 1024px) {
	.hero-grid, .profile-hero-grid, .spotlight-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
	.hero-feature { max-width: 520px; }
	.about-side { position: static; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.tl::before { left: 12px; }
	.tl-item { grid-template-columns: 1fr; gap: 6px; padding-left: 40px; }
	.tl-date { text-align: left; padding: 0; }
	.tl-card::before { left: -36px; top: -20px; }
}
@media (max-width: 860px) {
	.nav-burger { display: grid; }
	.main-nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .2s; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
	.main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.main-nav > a, .nav-drop-btn { padding: 14px 12px; border-radius: 12px; text-align: left; width: 100%; }
	.nav-drop-menu { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; padding: 0 0 0 10px; }
	.nav-drop.is-open .nav-drop-menu { display: block; }
	.header-actions { margin-left: auto; }
	.hero-totals { grid-template-columns: repeat(2, auto); }
	.form-row { grid-template-columns: 1fr; }
	.pub-item, .dis-item { grid-template-columns: 52px 1fr; }
	.pub-item .badge-lang, .dis-item > .badge { grid-column: 2; justify-self: start; }
	.lightbox[open] { grid-template-columns: 1fr; }
	.lb-prev, .lb-next { position: fixed; bottom: 18px; z-index: 3; }
	.lb-prev { left: 18px; } .lb-next { right: 18px; }
}
@media (max-width: 560px) {
	.container, .narrow, .narrow-2 { width: calc(100% - 32px); }
	.footer-grid { grid-template-columns: 1fr; }
	.book-grid { grid-template-columns: 1fr; }
	.card-grid { grid-template-columns: 1fr; }
	.spotlight-stats { grid-template-columns: 1fr 1fr; }
	.hero-search { padding-left: 14px; }
	.hero-search .btn { padding-inline: 16px; }
	.mini-search { min-width: 0; width: 100%; }
}

@media print {
	.site-header, .subnav, .site-footer, .to-top, .read-progress, .hero-search, .list-tools, .lightbox { display: none !important; }
	body { background: #fff; color: #000; }
	.section { padding: 20px 0; }
	.tab-panel { display: block !important; }
	.collapsible[data-collapsed="true"] { max-height: none; -webkit-mask-image: none; mask-image: none; }
}

/* Rəsmi sənədlər */
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.doc-link { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.doc-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.doc-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 1.3rem; }
.doc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.doc-text b { font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.doc-text small { color: var(--muted); font-size: .82rem; }
.doc-go { flex: none; color: var(--muted); }
.doc-link:hover .doc-go { color: var(--accent-ink); }

/* Şəkilli nəşr/patent sətri: klikləyəndə şəkil açılır */
.pub-item.has-img { cursor: zoom-in; }
.pub-item.has-img:hover, .pub-item.has-img:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); }
.pub-img-hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .82rem; font-weight: 600; color: var(--accent-ink); }
