/* =========================================================
   ILHOM jamoat fondi — zamonaviy dizayn tizimi
   ========================================================= */
:root {
  --bg: #f7f4ee;
  --bg-2: #efe9de;
  --surface: #ffffff;
  --ink: #141826;
  --ink-2: #2b3145;
  --muted: #5d6275;
  --line: #e4ddd0;
  --primary: #1c2a56;
  --primary-2: #2c3f7a;
  --accent: #c4842a;
  --accent-2: #e0a24a;
  --accent-soft: #f6e9d3;
  --teal: #1d7a70;
  --teal-soft: #dcefeb;
  --danger: #b3412f;
  --on-primary: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20, 24, 38, .06), 0 2px 8px rgba(20, 24, 38, .05);
  --shadow: 0 10px 30px -12px rgba(20, 24, 38, .22);
  --shadow-lg: 0 30px 60px -20px rgba(20, 24, 38, .35);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1240px;
  --header-h: 76px;
  --fs: 16px;
  /* Fon naqshi (romb) — butun sayt bo'ylab */
  --naqsh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23c4842a' stroke-opacity='.09' stroke-width='1'%3E%3Cpath d='M40 0l40 40-40 40L0 40z'/%3E%3Cpath d='M40 16l24 24-24 24-24-24z'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e111b; --bg-2: #141827; --surface: #171c2c; --ink: #eeebe4; --ink-2: #d4d2cc;
    --muted: #9ba1b4; --line: #272d42; --primary: #9fb3ff; --primary-2: #b9c7ff; --accent: #e3a650;
    --accent-2: #f0bb6c; --accent-soft: #2e2617; --teal: #5cc2b5; --teal-soft: #15302d; --on-primary: #0e111b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 10px 30px -12px rgba(0,0,0,.6); --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e111b; --bg-2: #141827; --surface: #171c2c; --ink: #eeebe4; --ink-2: #d4d2cc;
  --muted: #9ba1b4; --line: #272d42; --primary: #9fb3ff; --primary-2: #b9c7ff; --accent: #e3a650;
  --accent-2: #f0bb6c; --accent-soft: #2e2617; --teal: #5cc2b5; --teal-soft: #15302d; --on-primary: #0e111b;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 10px 30px -12px rgba(0,0,0,.6); --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* Maxsus imkoniyatlar (ko'rish qobiliyati zaiflar uchun) */
:root[data-a11y="large"] { --fs: 19px; }
/* Yuqori kontrast: faqat matn va chegaralar tiniqlashadi — rasmlar rangli qoladi */
:root[data-contrast="high"] { --muted: var(--ink); --ink-2: var(--ink); --line: var(--ink); }
:root[data-contrast="high"] a:not(.btn):not(.brand):not(.icon-btn) { text-decoration: underline; text-underline-offset: 3px; }
:root[data-contrast="high"] .decor { opacity: .25 !important; }
.topbar-tools button[aria-pressed="true"] { background: rgba(255,255,255,.22); color: #F6C46A; opacity: 1; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: var(--fs); }
body {
  margin: 0; background: var(--naqsh) 0 0 / 80px 80px, var(--bg); color: var(--ink);
  font-family: var(--font-body); line-height: 1.65; font-size: 1rem;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip-link:focus { left: 8px; }
.shot .reveal { opacity: 1 !important; transform: none !important; }
.shot *, .shot *::before, .shot *::after { animation: none !important; transition: none !important; }
.shot .site-header { position: static; }
.shot .to-top, .shot .toast { display: none !important; }
.nw { white-space: nowrap; } /* chiziqchali so'z qator oxirida bo'linmasin */
.meta span.nw-wrap, .meta span.nw, span.nw-wrap { display: inline; gap: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* botlar uchun tuzoq maydon */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.4em; border-radius: 999px;
  border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; transition: transform .2s, background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: #1c2a56; }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--primary); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.topbar { background: var(--primary); color: var(--on-primary); font-size: .82rem; }
:root[data-theme="dark"] .topbar { background: #0a0d16; color: var(--ink-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar { background: #0a0d16; color: var(--ink-2); } }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar-info { display: flex; gap: 22px; opacity: .9; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; white-space: nowrap; }
@media (max-width: 1100px) { .topbar-info .hide-sm { display: none; } }
.topbar-info a:hover { color: #F6C46A; }
.topbar-info svg { width: 14px; height: 14px; }
.topbar-tools { display: flex; align-items: center; gap: 4px; }
.topbar-tools button, .topbar-tools a { background: none; border: 0; padding: 6px 10px; border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; opacity: .9; }
.topbar-tools button:hover, .topbar-tools a:hover { background: rgba(255,255,255,.12); opacity: 1; }
.topbar-tools svg { width: 15px; height: 15px; }
.topbar-social { display: flex; align-items: center; gap: 2px; }
.topbar-social a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-weight: 600; opacity: .92; transition: background .2s, opacity .2s, color .2s; }
.topbar-social a:hover { background: rgba(255,255,255,.14); opacity: 1; color: #F6C46A; }
.topbar-social svg { width: 15px; height: 15px; }
@media (max-width: 760px) { .topbar-info .hide-sm { display: none; } }
@media (max-width: 1000px) { .topbar-social span { display: none; } .topbar-social a { padding: 6px 9px; } }
@media (max-width: 520px) { .topbar-info { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
:root { --logo-arch: #1C2A56; --logo-ink: #1C2A56; }
:root[data-theme="dark"] { --logo-arch: #F4EFE6; --logo-ink: #F4EFE6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --logo-arch: #F4EFE6; --logo-ink: #F4EFE6; } }
.brand-mark { width: 50px; height: 50px; flex: none; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.brand:hover .brand-mark { transform: translateY(-2px) scale(1.04); }
.brand-word { display: block; height: 20px; width: auto; color: var(--logo-ink); }
.brand-text small { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .04em; margin-top: 6px; line-height: 1.3; white-space: nowrap; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a, .main-nav .nav-btn { white-space: nowrap; }
@media (max-width: 1340px) { .main-nav a, .main-nav .nav-btn { padding: 9px 9px !important; font-size: .88rem !important; } .header-inner { gap: 12px; } }
.main-nav a, .main-nav .nav-btn {
  display: inline-flex; align-items: center; gap: 4px; padding: 9px 13px; border-radius: 999px; font-weight: 600; font-size: .93rem;
  background: none; border: 0; color: var(--ink-2); transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav .nav-btn:hover, .main-nav li:focus-within > .nav-btn { background: var(--bg-2); color: var(--ink); }
.main-nav a.active, .main-nav .nav-btn.active { color: var(--accent); }
.nav-btn svg { width: 14px; height: 14px; transition: transform .2s; }
.has-drop { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px); min-width: 260px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: .2s; list-style: none; margin: 0;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-drop:hover .nav-btn svg { transform: rotate(180deg); }
.dropdown a { display: flex; flex-direction: column; align-items: flex-start; gap: 0; border-radius: 10px; padding: 10px 12px; width: 100%; }
.dropdown a small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  display: inline-grid; place-items: center; transition: .2s; flex: none;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }
@media (max-width: 1120px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions .btn { display: none; }
}
@media (max-width: 420px) { .brand-text small { display: none; } }

/* Mobil menyu */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(10, 12, 20, .5); opacity: 0; transition: opacity .3s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 88vw); background: var(--surface);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); padding: 20px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
}
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary, .drawer .d-link { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-weight: 700; font-size: 1.05rem; cursor: pointer; border-bottom: 1px solid var(--line); }
.drawer details summary { border-bottom: 0; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary svg { width: 18px; transition: transform .2s; }
.drawer details[open] summary svg { transform: rotate(180deg); }
.drawer details a { display: block; padding: 9px 14px; color: var(--muted); font-weight: 600; }
.drawer details a:hover { color: var(--ink); }
.drawer .btn { margin-top: 16px; justify-content: center; }

/* Qidiruv */
.search-overlay { position: fixed; inset: 0; z-index: 160; display: none; background: rgba(10, 12, 20, .55); backdrop-filter: blur(6px); padding: 10vh 16px 16px; }
.search-overlay.open { display: block; }
.search-box { max-width: 720px; margin: 0 auto; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.search-field { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.search-field svg { width: 22px; color: var(--muted); flex: none; }
.search-field input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.15rem; color: var(--ink); outline: none; }
.search-field kbd { font-size: .75rem; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--muted); }
.search-results { max-height: 60vh; overflow-y: auto; padding: 8px; }
.search-results a { display: block; padding: 12px 14px; border-radius: 12px; }
.search-results a:hover, .search-results a:focus { background: var(--bg-2); outline: none; }
.search-results .r-type { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.search-results .r-title { display: block; font-weight: 700; }
.search-results .r-snippet { display: block; color: var(--muted); font-size: .88rem; }
.search-results mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-empty { padding: 28px; text-align: center; color: var(--muted); }

/* ---------- Bo'limlar ---------- */
section { padding: 88px 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 64px); }
@media (max-width: 760px) { section { padding: 60px 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0; }
.section-head h2 { margin-bottom: 8px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.bg-alt { background: var(--naqsh) 0 0 / 80px 80px, var(--bg-2); }
/* Naqsh endi body'da — butun sahifa bo'ylab; bu sinf faqat joylashuv uchun qoldi */
.pattern-bg { position: relative; isolation: isolate; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero .lead { max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.hero-badge b { background: var(--teal); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .75rem; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 560px; justify-self: end; width: 100%; }
.hero-visual .hv { position: absolute; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-2); }
.hero-visual .hv img { width: 100%; height: 100%; object-fit: cover; }
.hv-1 { inset: 0 22% 26% 0; }
.hv-2 { right: 0; top: 14%; width: 40%; aspect-ratio: 3/4; }
.hv-3 { left: 16%; bottom: 0; width: 46%; aspect-ratio: 4/3; border: 6px solid var(--bg); }
.hero-float {
  position: absolute; right: 2%; bottom: 6%; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; max-width: 250px; z-index: 2; animation: float 6s ease-in-out infinite;
}
.hero-float .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.hero-float .ic svg { width: 22px; }
.hero-float strong { display: block; font-size: .95rem; line-height: 1.3; }
.hero-float small { color: var(--muted); font-size: .8rem; }
.hero-ornament { position: absolute; left: -40px; top: -30px; width: 140px; color: var(--accent); opacity: .5; z-index: -1; animation: spin 60s linear infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { justify-self: center; max-width: 480px; }
}

/* Statistika */
.stats { padding: 0; margin-top: -10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 30px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; line-height: 1; color: var(--primary); }
.stat-num sup { color: var(--accent); font-size: .5em; }
.stat p { margin: 8px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 420px) { .stat { padding: 22px 18px; } }

/* ---------- Milliy naqshli buyumlar (orqa fon animatsiyasi) ---------- */
.decor { position: absolute; display: block; pointer-events: none; z-index: -1; }
.decor svg { display: block; width: 100%; height: auto; overflow: visible; }
.decor .spin { transform-box: fill-box; transform-origin: center; animation: spin var(--spin, 90s) linear infinite; }
.decor.rev .spin { animation-direction: reverse; }
.decor.float { animation: decorFloat var(--float, 11s) ease-in-out infinite; }
.decor.drift { animation: decorDrift var(--float, 16s) ease-in-out infinite; }
.decor.shadow svg { filter: drop-shadow(0 18px 26px rgba(10, 15, 40, .28)); }
@keyframes decorFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes decorDrift { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(12px, -18px) rotate(8deg); } 66% { transform: translate(-10px, -6px) rotate(-6deg); } }
.decor-host { position: relative; overflow: hidden; isolation: isolate; }
.cta-band { isolation: isolate; }
@media (max-width: 960px) { .decor.hide-mobile { display: none; } }
/* Telefonda: katta buyumlar kichikroq, mayda shaklchalarning yarmi yashiriladi (matn tiniq qolsin) */
@media (max-width: 760px) {
  [data-scatter] > .decor.shadow { width: 150px !important; opacity: .4 !important; }
  [data-scatter] > .decor.mayda:nth-of-type(2n) { display: none; }
  [data-scatter] > .decor.mayda { opacity: .5 !important; }
}
.hero-lagan { left: -80px; top: -60px; width: 250px; --spin: 70s; }
.page-hero .container { position: relative; z-index: 1; }
.page-decor { right: 5%; top: 50%; width: 190px; margin-top: -95px; --spin: 80s; }
@media (max-width: 1200px) { .page-decor { opacity: .45; right: -30px; } }
@media (max-width: 760px) { .page-decor { width: 130px; margin-top: -65px; opacity: .3; right: -40px; } .hero-lagan { width: 170px; left: -40px; top: -40px; } }

/* ---------- Kartalar ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s; display: flex; flex-direction: column; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.18rem; margin: 0; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-body p { color: var(--muted); margin: 0; font-size: .94rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .82rem; font-weight: 600; align-items: center; }
.meta span { display: inline-flex; gap: 5px; align-items: center; }
.meta svg { width: 14px; height: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .04em; background: var(--accent-soft); color: var(--accent); }
.tag.teal { background: var(--teal-soft); color: var(--teal); }
.tag.gray { background: var(--bg-2); color: var(--muted); }
.tag.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.card-media .tag { position: absolute; left: 14px; top: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.hero-badge { max-width: 100%; }
.hero-grid > * { min-width: 0; }   /* uzun «Yangi» sarlavhasi ustunni kengaytirib yubormasin (telefonda) */

/* ---------- Telefon: tartibli ko'rinish ---------- */
@media (max-width: 700px) {
  /* Mayda harakatlanuvchi shakllar tor ekranda matn ustiga tushadi — yashiramiz */
  .decor.float, .decor.mayda { display: none !important; }
  /* Katta naqshli buyumlar orqa fonda xiraroq turadi */
  [data-scatter] > .decor.drift.shadow, .decor-host > .decor.drift, .hero > .decor.drift, .cta-band > .decor { opacity: .22 !important; }
  /* Yuqoridagi rasmlar: uchinchisi «5 ta ijodiy tashkilot» kartasi ostida qolib ketmasin */
  .hv-3 { display: none; }
  .hero-float { right: 0; bottom: 4%; }
  /* Fotogalereya — 2 ustun */
  section .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}
.hero-badge b { flex: none; }
.hero-badge .line-clamp-1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Yangiliklar — asosiy blok */
.news-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.news-featured .card-media { aspect-ratio: 16 / 11; }
.news-featured .card-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-row { flex-direction: row; }
.news-row .card-media { aspect-ratio: auto; width: 150px; flex: none; }
.news-row .card-body { padding: 16px 18px; }
.news-row .card-body h3 { font-size: 1.02rem; }
@media (max-width: 960px) { .news-layout { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .news-row .card-media { width: 110px; } }

/* Uyushmalar */
.org-card { padding: 28px; gap: 14px; }
.org-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.org-icon svg { width: 28px; height: 28px; }
.org-card:nth-child(3n+2) .org-icon { background: var(--teal-soft); color: var(--teal); }
.org-card:nth-child(3n) .org-icon { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.org-card h3 { font-size: 1.2rem; margin: 0; }
.org-card h3 a::after { content: ""; position: absolute; inset: 0; }
.org-card p { color: var(--muted); margin: 0; font-size: .94rem; flex: 1; }
.org-card .org-num { position: absolute; right: 24px; top: 22px; font-family: var(--font-display); font-size: 2.4rem; color: var(--line); font-weight: 600; line-height: 1; }
.org-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .85rem; color: var(--muted); font-weight: 600; }

.org-intro { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; margin-bottom: 40px; }
.org-intro .org-icon { width: 84px; height: 84px; border-radius: 24px; }
.org-intro .org-icon svg { width: 40px; height: 40px; }
@media (max-width: 600px) { .org-intro { grid-template-columns: 1fr; } .org-intro .org-icon { width: 64px; height: 64px; } }
.org-source { font-size: .85rem; color: var(--muted); font-style: italic; }
/* Uyushma logotiplari */
.org-card .org-icon.org-logo { width: 72px; height: 72px; }
.org-icon.org-logo, .org-card:nth-child(n) .org-icon.org-logo { background: #fff; padding: 0; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.org-icon.org-logo img { width: 100%; height: 100%; object-fit: cover; }
.org-logo-full { width: 200px; max-width: 100%; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.org-logo-full img { width: 100%; height: auto; display: block; }
@media (max-width: 600px) { .org-logo-full { width: 160px; } }

/* Jarayon (qadamlar) */
.steps { counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--accent); display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--accent); margin-bottom: 18px; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--muted); margin: 0; font-size: .93rem; }

/* Grant kartasi */
.grant-card { padding: 26px; gap: 14px; }
.grant-card h3 { margin: 0; font-size: 1.2rem; }
.grant-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.grant-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0; }
.grant-facts div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.grant-facts small { display: block; color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.grant-facts b { font-size: .95rem; }
.progress { height: 6px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 99px; }

/* CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(36px, 6vw, 72px); background: radial-gradient(120% 140% at 100% 0%, #3a4f93 0%, #1c2a56 55%, #121b3a 100%); color: #fff; }
.cta-band h2 { color: #fff; max-width: 640px; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 560px; }
.cta-band .orn { position: absolute; right: -60px; bottom: -80px; width: 340px; color: var(--accent-2); opacity: .25; }
.cta-band .hero-cta { position: relative; }

/* ---------- Sahifa sarlavhasi ---------- */
.page-hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); background: var(--naqsh) 0 0 / 80px 80px, linear-gradient(180deg, var(--bg-2), var(--bg)); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); max-width: 860px; }
.page-hero .lead { max-width: 720px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a:hover { color: var(--accent); }

/* Ichki navigatsiya (tablar) */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.subnav a:hover { color: var(--ink); background: var(--bg-2); }
.subnav a.active { background: var(--primary); color: var(--on-primary); }

/* Filtr chiplari */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .88rem; transition: .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip .count { opacity: .6; margin-left: 4px; font-weight: 600; }

/* Prose (maqola matni) */
.prose { font-size: 1.08rem; line-height: 1.8; color: var(--ink-2); }
.prose p:first-of-type::first-letter { font-family: var(--font-display); float: left; font-size: 3.6em; line-height: .85; padding: 6px 10px 0 0; color: var(--accent); font-weight: 600; }
.prose blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-family: var(--font-display); font-size: 1.4rem; font-style: italic; color: var(--ink); line-height: 1.45; }
.prose ul { padding-left: 1.2em; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.article-cover { border-radius: 24px; overflow: hidden; margin-bottom: 36px; aspect-ratio: 16 / 9; background: var(--bg-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.aside-box h3 { font-size: 1.1rem; }
.mini-news { display: flex; flex-direction: column; gap: 14px; }
.mini-news a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; }
.mini-news img { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; }
.mini-news strong { font-size: .9rem; line-height: 1.35; display: block; }
.mini-news small { color: var(--muted); font-size: .78rem; }
.mini-news a:hover strong { color: var(--accent); }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .aside-sticky { position: static; } }

/* Galereya */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery button { padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-2); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.06); }
.album { cursor: pointer; text-align: left; }
.album .card-media { aspect-ratio: 4 / 3; }
.album-count { position: absolute; right: 14px; bottom: 14px; background: rgba(10,12,20,.7); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.album-count svg { width: 14px; }

/* Video kartasi (Telegram'dagi videoga havola) */
.video-card { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0a0d16; border: 0; padding: 0; cursor: pointer; }
.video-card img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s, opacity .3s; }
.video-card:hover img { transform: scale(1.04); opacity: 1; }
.video-card .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.92); color: #1c2a56; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .2s; }
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.video-card .play svg { width: 28px; height: 28px; }
.video-card .video-label { position: absolute; left: 16px; bottom: 14px; color: #fff; font-weight: 700; font-size: .9rem; background: rgba(10,12,20,.65); padding: 6px 12px; border-radius: 999px; }
.card .video-card { position: relative; z-index: 1; }
.video-card video { width: 100%; height: 100%; display: block; background: #000; object-fit: contain; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 180; background: rgba(6, 8, 14, .94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 82vh; max-width: min(1200px, 100%); border-radius: 12px; object-fit: contain; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-btn svg { width: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-weight: 700; font-size: .9rem; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }

/* Rahbariyat */
.leader { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; }
.leader-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; } /* kvadrat portret: odam va bayroq ko'rinadi */
.leader h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 6px; }
.leader .role { color: var(--accent); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.info-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; flex: none; color: var(--accent); }
.info-list .ic svg { width: 18px; }
.info-list small { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 860px) { .leader { grid-template-columns: 1fr; gap: 24px; } .leader-photo { max-width: 360px; } }
/* Direktor tarjimai holi: qisqasi + «Batafsil» */
.bio { color: var(--ink-2); }
.bio p { margin: 0 0 10px; }
.bio-title { font-family: var(--font-body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 10px; }
.bio-more { animation: bioIn .35s ease; }
@keyframes bioIn { from { opacity: 0; transform: translateY(-6px); } }
.bio-steps { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); display: grid; gap: 14px; }
.bio-steps li { position: relative; display: grid; gap: 2px; font-size: .95rem; line-height: 1.5; }
.bio-steps li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.bio-steps b { color: var(--accent); font-size: .85rem; letter-spacing: .03em; }
.bio-steps li:last-child span { font-weight: 700; color: var(--ink); }
.bio-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* Tuzilma (org chart) */
.org-chart { display: flex; flex-direction: column; align-items: center; gap: 0; }
.oc-node { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; text-align: center; font-weight: 700; box-shadow: var(--shadow-sm); min-width: 200px; }
.oc-node small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }
.oc-node.top { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.oc-node.top small { color: inherit; opacity: .8; }
.oc-node.mid { border-color: var(--accent); }
.oc-line { width: 2px; height: 28px; background: var(--line); }
.oc-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; width: 100%; position: relative; padding-top: 28px; }
.oc-row::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 2px; background: var(--line); }
.oc-row .oc-node { position: relative; min-width: 0; font-size: .92rem; }
.oc-row .oc-node::before { content: ""; position: absolute; top: -29px; left: 50%; width: 2px; height: 28px; background: var(--line); }
@media (max-width: 900px) {
  .oc-row { grid-template-columns: 1fr; padding-top: 0; gap: 10px; }
  .oc-row::before, .oc-row .oc-node::before { display: none; }
}

/* Hujjatlar */
.doc-list { display: grid; gap: 12px; }
.doc { display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: .2s; }
.doc:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.doc-ic { width: 48px; height: 56px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: .72rem; font-weight: 800; flex: none; }
.doc-info { flex: 1; min-width: 0; }
.doc-info strong { display: block; }
.doc-info small { color: var(--muted); }
@media (max-width: 560px) { .doc { flex-wrap: wrap; } .doc .btn { width: 100%; justify-content: center; } }

/* Timeline */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 32px; }
.tl-item::before { content: ""; position: absolute; left: -36px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.tl-year { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--accent); }
.tl-item p { color: var(--muted); margin: 4px 0 0; }

/* Qadriyatlar */
.value { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.value .org-icon { margin-bottom: 16px; }
.value p { color: var(--muted); margin: 0; font-size: .94rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.quote-card { border-radius: 28px; padding: 40px; background: var(--primary); color: var(--on-primary); position: relative; overflow: hidden; }
.quote-card p { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.4; font-style: italic; margin: 0; }
.quote-card .orn { position: absolute; right: -40px; top: -40px; width: 200px; opacity: .15; color: var(--accent-2); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* Forma */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 7px; }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg);
  font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .8rem; font-weight: 600; margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field .hint { color: var(--muted); font-size: .8rem; margin-top: 6px; }
.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chips input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chips label { margin: 0; padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .88rem; transition: .2s; background: var(--bg); }
.radio-chips input:checked + label { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.radio-chips input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.dropzone { border: 2px dashed var(--line); border-radius: 14px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: .2s; background: var(--bg); }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); color: var(--ink); }
.dropzone svg { width: 28px; margin: 0 auto 6px; color: var(--accent); }
.dropzone input { display: none; }
.field .check, .check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); margin-top: 2px; flex: none; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: .2s; }
a.contact-card:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-card .org-icon { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.contact-card .org-icon svg { width: 22px; height: 22px; }
.contact-card small { display: block; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.contact-card strong { font-size: 1.02rem; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 200%); visibility: hidden; background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: 14px; font-weight: 600; z-index: 190; transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility .35s; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); display: flex; gap: 10px; align-items: center; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast svg { width: 20px; color: var(--accent-2); flex: none; }

/* Bo'sh holat */
.empty { text-align: center; padding: 56px 20px; border: 2px dashed var(--line); border-radius: 24px; color: var(--muted); }
.empty svg { width: 48px; color: var(--accent); margin: 0 auto 12px; }
.empty h3 { color: var(--ink); }

/* Namuna belgisi — haqiqiy ma'lumot bilan almashtirilishi kerak bo'lgan joylar */
.sample-tag { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: repeating-linear-gradient(45deg, #fff3cd, #fff3cd 6px, #ffe9a8 6px, #ffe9a8 12px); color: #7a5600; border: 1px solid #e6c766; vertical-align: middle; }
:root[data-samples="off"] .sample-tag { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: #10162d; color: #c9cddc; padding: 72px 0 28px; }
:root[data-theme="dark"] .site-footer { background: #0a0d16; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--accent-2); }
.site-footer { --logo-arch: #F4EFE6; --logo-ink: #F4EFE6; }
.site-footer .brand-text small { color: #8d93a8; }
.footer-about { margin: 18px 0; font-size: .93rem; color: #9aa0b6; max-width: 340px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.subscribe { display: flex; gap: 8px; margin-top: 12px; }
.subscribe input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; font: inherit; }
.subscribe input::placeholder { color: #8d93a8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #8d93a8; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; background: var(--primary); color: var(--on-primary); border: 0; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* Animatsiya */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
