/* ==========================================================================
   Beshariq tuman Madaniyat bo‘limi — ommaviy sayt uslublari (v2.4, rasmiy uslub)
   Tashqi kutubxona va CDN ishlatilmaydi.
   Shrift Sozlamalar → Dizayn da tanlanadi (<html data-font="…">):
     arial — Arial (kompyuterda o‘rnatilgan; u yo‘q qurilmalarda o‘lchamdosh «Beshariq Sans»);
     inter — Inter (zamonaviy);
     times — sarlavha va matnlar Times New Roman («Beshariq Times»), menyu va tugmalar Inter.
   Litsenziyalar: fonts/OFL.txt
   ========================================================================== */

@font-face { font-family: "Beshariq Sans"; font-style: normal; font-weight: 400; font-display: swap; src: local("Liberation Sans"), local("LiberationSans"), url("../fonts/sans-400.woff") format("woff"); }
@font-face { font-family: "Beshariq Sans"; font-style: normal; font-weight: 700; font-display: swap; src: local("Liberation Sans Bold"), local("LiberationSans-Bold"), url("../fonts/sans-700.woff") format("woff"); }
@font-face { font-family: "Beshariq Times"; font-style: normal; font-weight: 400; font-display: swap; src: local("Liberation Serif"), local("LiberationSerif"), url("../fonts/times-400.woff") format("woff"); }
@font-face { font-family: "Beshariq Times"; font-style: normal; font-weight: 700; font-display: swap; src: local("Liberation Serif Bold"), local("LiberationSerif-Bold"), url("../fonts/times-700.woff") format("woff"); }
@font-face { font-family: "Beshariq Times"; font-style: italic; font-weight: 400; font-display: swap; src: local("Liberation Serif Italic"), local("LiberationSerif-Italic"), url("../fonts/times-400i.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-800.woff") format("woff"); }
/* Qozoq, qirg‘iz, tojik, qoraqalpoq va ozarbayjon harflari — faqat sahifada uchraganda yuklanadi */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-ext-400.woff") format("woff"); unicode-range: U+018F, U+0259, U+01F4-01F5, U+04A2-04A3, U+04AE-04B1, U+04B6-04B7, U+04BA-04BB, U+04D8-04D9, U+04E2-04E3, U+04E8-04E9, U+04EE-04EF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-ext-600.woff") format("woff"); unicode-range: U+018F, U+0259, U+01F4-01F5, U+04A2-04A3, U+04AE-04B1, U+04B6-04B7, U+04BA-04BB, U+04D8-04D9, U+04E2-04E3, U+04E8-04E9, U+04EE-04EF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-ext-700.woff") format("woff"); unicode-range: U+018F, U+0259, U+01F4-01F5, U+04A2-04A3, U+04AE-04B1, U+04B6-04B7, U+04BA-04BB, U+04D8-04D9, U+04E2-04E3, U+04E8-04E9, U+04EE-04EF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-ext-800.woff") format("woff"); unicode-range: U+018F, U+0259, U+01F4-01F5, U+04A2-04A3, U+04AE-04B1, U+04B6-04B7, U+04BA-04BB, U+04D8-04D9, U+04E2-04E3, U+04E8-04E9, U+04EE-04EF; }

:root {
  --primary: #0f2c4c;
  --accent: #c9a45c;
  --primary-rgb: 15, 44, 76;
  --primary-dark: #0c223b;
  --primary-deep: #091b2f;
  --primary-deep-rgb: 9, 27, 47;
  --primary-soft: #eceef1;
  --primary-tint: #b7c0c9;
  --primary-bright: #173f68;
  --accent-rgb: 201, 164, 92;
  --accent-dark: #a1834a;
  --accent-soft: #f7f2e8;
  --accent-tint: #eadcc1;
  --accent-light: #cfaf70;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cfd8e3;
  --text: #13233a;
  --text-soft: #3b4b61;
  --muted: #64748b;
  --success: #1f8a5b;
  --danger: #c0392b;
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 35, 64, .05);
  --shadow: 0 2px 10px -2px rgba(15, 35, 64, .12);
  --shadow-lg: 0 14px 34px -14px rgba(15, 35, 64, .30);
  --shadow-hover: 0 20px 38px -18px rgba(var(--primary-rgb), .55), 0 4px 10px -2px rgba(15, 35, 64, .10);
  --font: Arial, "Beshariq Sans", "Liberation Sans", "Helvetica Neue", Helvetica, sans-serif;
  --font-head: var(--font);
  --font-text: var(--font);
  /* O‘zbekiston bayrog‘i ranglari — faqat yuqoridagi chiziqda */
  --flag-blue: #0099b5;
  --flag-red: #ce1126;
  --flag-green: #1eb53a;
  --container: 1440px;
  --header-h: 92px;
  --fs-base: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: var(--fs-base); }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-head); font-weight: 700; line-height: 1.22; letter-spacing: 0; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--primary-deep); }

.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--accent); color: var(--primary-deep); padding: 10px 16px; border-radius: 4px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ------------------------------ Tugmalar ------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 44px; padding: .65em 1.3em; border-radius: 4px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2; transition: background-color .2s ease, border-color .2s ease, color .2s ease; white-space: nowrap; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); }
/* «Asosiy harakat» tugmasi: oq fonda — to‘q ko‘k, to‘q fonda — oq (pastda) */
.btn--accent { background: var(--primary); color: #fff; }
.btn--accent:hover { background: var(--primary-dark); }
.btn--ghost { background: var(--surface); color: var(--primary); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--primary); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn--light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn--lg { min-height: 50px; padding: .8em 1.6em; font-size: 1rem; border-radius: 4px; }
.btn--sm { min-height: 38px; padding: .5em 1em; font-size: .88rem; border-radius: 4px; }
.btn--block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--primary); font-size: .95rem; white-space: nowrap; text-decoration: underline; text-decoration-color: rgba(var(--primary-rgb), .25); text-underline-offset: 4px; }
.link-more:hover { color: var(--primary-dark); text-decoration-color: currentColor; }
.link-more .icon { display: none; }

.badge { display: inline-flex; align-items: center; gap: .35em; padding: .28em .6em; border-radius: 3px; font-size: .74rem; font-weight: 600; letter-spacing: .01em; background: var(--primary-soft); color: var(--primary); }
.badge--accent { background: var(--primary-soft); color: var(--primary); }
.badge--light { background: rgba(9, 27, 47, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
/* Sarlavha ustidagi kichik yozuvlar rasmiy uslubda ko‘rsatilmaydi — sarlavhaning o‘zi yetarli */
.eyebrow { display: none; }

/* ------------------------------ Yuqori panel ------------------------------ */
.topbar { background: var(--primary-deep); color: rgba(255, 255, 255, .82); font-size: .82rem; position: relative; z-index: 60; }
/* Davlat bayrog‘i ranglaridagi ingichka chiziq: ko‘k, oq (qizil hoshiyali), yashil */
.topbar::before { content: ""; display: block; height: 10px; background: linear-gradient(180deg, var(--flag-blue) 0 3px, var(--flag-red) 3px 4px, #fff 4px 6px, var(--flag-red) 6px 7px, var(--flag-green) 7px 10px); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: .5em; }
.topbar__item .icon { color: rgba(255, 255, 255, .55); }
.topbar__btn { display: inline-flex; align-items: center; gap: .5em; background: transparent; border: 1px solid rgba(255, 255, 255, .22); color: #fff; padding: .36em .8em; border-radius: 3px; font-size: .8rem; font-weight: 500; }
.topbar__btn:hover, .topbar__btn[aria-expanded="true"] { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45); }
.topbar__region-short { display: none; }

/* Til tanlagich */
.lang-switch, .lang-float { position: relative; }
.lang-switch > summary, .lang-float > summary { list-style: none; cursor: pointer; user-select: none; }
.lang-switch > summary::-webkit-details-marker, .lang-float > summary::-webkit-details-marker { display: none; }
.lang-switch__short { display: none; font-size: .74rem; letter-spacing: .03em; }
.lang-switch__chev { width: .95em; height: .95em; transition: transform .2s; }
.lang-switch[open] > .topbar__btn { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .45); }
.lang-switch[open] .lang-switch__chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 5; min-width: 236px; max-height: min(70vh, 470px); overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow-lg); font-size: .9rem; }
.lang-menu a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 4px; color: var(--text); font-weight: 600; text-decoration: none; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--primary-soft); color: var(--primary); }
.lang-menu a.is-active { background: var(--primary-soft); color: var(--primary); }
.lang-menu__code { flex: none; display: inline-grid; place-items: center; min-width: 32px; height: 24px; padding: 0 5px; border-radius: 3px; background: var(--bg); border: 1px solid var(--border); color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .03em; }
.lang-menu a.is-active .lang-menu__code { background: var(--primary); border-color: var(--primary); color: #fff; }
.lang-menu .icon { margin-left: auto; width: 17px; height: 17px; color: var(--primary); }
.lang-float { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 80; }
.lang-float > summary { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 9px 11px; background: var(--primary); color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-right: 0; border-radius: 6px 0 0 6px; box-shadow: var(--shadow); font-size: .72rem; font-weight: 700; letter-spacing: .04em; transition: background .2s, color .2s; }
.lang-float > summary .icon { width: 20px; height: 20px; }
.lang-float > summary:hover, .lang-float[open] > summary { background: var(--primary-bright); color: #fff; }
.lang-float .lang-menu { right: calc(100% + 10px); top: 50%; transform: translateY(-50%); }

/* Tarjima ogohlantirishi */
.tr-notice { background: var(--accent-soft); border-bottom: 1px solid var(--accent-tint); color: var(--text-soft); font-size: .86rem; }
.tr-notice--pending { background: var(--primary-soft); border-color: var(--primary-tint); }
.tr-notice__inner { display: flex; align-items: center; gap: 10px; padding-block: 9px; }
.tr-notice__inner > span { flex: 1; min-width: 0; line-height: 1.45; }
.tr-notice__inner > .icon { color: var(--accent-dark); flex: none; }
.tr-notice--pending .tr-notice__inner > .icon { color: var(--primary); }
.tr-notice a { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.tr-notice a .icon { width: 15px; height: 15px; }

/* Xitoy va koreys tillari: tizim shriftlari, harflar orasidagi siqish olib tashlanadi */
html[lang|="zh"] { --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif; --font-head: var(--font); --font-text: var(--font); }
html[lang|="ko"] { --font: "Inter", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Sans KR", "Source Han Sans KR", system-ui, sans-serif; --font-head: var(--font); --font-text: var(--font); }
html[lang|="zh"] *, html[lang|="ko"] * { letter-spacing: normal !important; }
html[lang|="zh"] body, html[lang|="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }

.topbar__social { display: flex; gap: 6px; }
.topbar__social a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: rgba(255, 255, 255, .85); }
.topbar__social a:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.a11y-panel { background: #fff; color: var(--text); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
.a11y-panel__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-block: 14px; }
.a11y-group { display: flex; align-items: center; gap: 8px; }
.a11y-group__label { font-size: .82rem; font-weight: 700; color: var(--muted); margin-right: 4px; }
.a11y-btn { min-width: 42px; height: 38px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--border-strong); background: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.a11y-btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.a11y-btn--contrast { background: #000; color: #ff0; border-color: #000; }
.a11y-reset { margin-left: auto; }

/* ------------------------------ Sarlavha (header) ------------------------------ */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand__emblem { width: 58px; height: auto; }
.brand__text { display: flex; flex-direction: column; min-width: 0; padding-left: 16px; border-left: 1px solid var(--border-strong); }
.brand__name { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--primary); line-height: 1.18; letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.brand__tagline { margin-top: 4px; font-size: .84rem; font-weight: 500; letter-spacing: .01em; color: var(--muted); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.header-contact { display: flex; align-items: center; gap: 10px; padding-right: 6px; }
.header-contact__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); }
.header-contact small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.header-contact strong { display: block; font-size: .98rem; color: var(--primary); white-space: nowrap; }
.header-search { position: relative; display: flex; }
.header-search input { width: 240px; height: 44px; padding: 0 46px 0 14px; border-radius: 4px; border: 1px solid var(--border-strong); background: var(--bg); outline: none; transition: border-color .2s, box-shadow .2s, width .25s; }
.header-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); background: #fff; width: 280px; }
.header-search button { position: absolute; right: 3px; top: 3px; width: 38px; height: 38px; border: 0; border-radius: 3px; background: transparent; color: var(--primary); display: grid; place-items: center; }
.header-search button:hover { background: var(--primary-soft); }
.nav-toggle, .search-toggle { display: none; width: 44px; height: 44px; border-radius: 4px; border: 1px solid var(--border-strong); background: #fff; color: var(--primary); place-items: center; }
.nav-toggle .icon, .search-toggle .icon { width: 22px; height: 22px; }

/* ------------------------------ Menyu ------------------------------ */
.site-nav { background: var(--primary); position: sticky; top: 0; z-index: 45; box-shadow: 0 6px 18px -10px rgba(10, 25, 45, .6); }
.site-nav__inner { display: flex; align-items: center; }
.site-nav__head { display: none; }
.menu { list-style: none; display: flex; align-items: stretch; flex-wrap: wrap; width: 100%; }
.menu__item { position: relative; display: flex; align-items: center; }
.menu__link { display: flex; align-items: center; gap: .4em; padding: 0 16px; min-height: 52px; color: rgba(255, 255, 255, .92); font-weight: 600; font-size: .95rem; position: relative; white-space: nowrap; }
.menu__link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transition: transform .2s ease; }
.menu__item:hover > .menu__link, .menu__item.is-active > .menu__link, .menu__link:focus-visible { color: #fff; }
.menu__item:hover > .menu__link::after, .menu__item.is-active > .menu__link::after { transform: scaleX(1); }
.menu__home .icon { width: 1.2em; height: 1.2em; }
.menu__toggle { display: none; }
.menu__home-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.quicklinks--flat { margin-top: 36px; }
.menu__chev { width: .9em; height: .9em; opacity: .7; transition: transform .2s; }
.menu__item:hover .menu__chev { transform: rotate(180deg); }
.submenu { list-style: none; position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; border-radius: 0 0 4px 4px; box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s; border-top: 2px solid var(--accent); z-index: 10; }
.menu__item:hover > .submenu, .menu__item:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 3px; color: var(--text); font-weight: 500; font-size: .93rem; }
.submenu a .icon { color: var(--primary); opacity: .75; }
.submenu a:hover, .submenu a.is-active { background: var(--primary-soft); color: var(--primary); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(8, 20, 38, .55); z-index: 90; opacity: 0; transition: opacity .25s; }
html.nav-open .nav-backdrop { opacity: 1; }

/* ------------------------------ Slayder ------------------------------ */
.hero { position: relative; background: var(--primary-deep); color: #fff; overflow: hidden; isolation: isolate; }
.hero__slides { position: relative; min-height: 560px; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero__slide.is-active { opacity: 1; visibility: visible; position: relative; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--primary-deep-rgb), .93) 0%, rgba(var(--primary-deep-rgb), .80) 45%, rgba(var(--primary-deep-rgb), .40) 100%), linear-gradient(0deg, rgba(var(--primary-deep-rgb), .55), transparent 40%); }
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: 560px; padding-top: 40px; padding-bottom: 120px; max-width: var(--container); }
.hero__kicker { display: inline-flex; align-self: flex-start; align-items: center; padding: 2px 0 2px 14px; border-left: 3px solid var(--accent); font-size: .95rem; font-weight: 500; letter-spacing: .01em; color: rgba(255, 255, 255, .85); margin-bottom: 18px; }
.hero__title { font-size: clamp(1.9rem, 3.5vw, 2.85rem); font-weight: 700; color: #fff; max-width: 22ch; letter-spacing: 0; line-height: 1.12; margin-bottom: 16px; text-wrap: balance; }
.hero__text { font-family: var(--font-text); font-size: clamp(1rem, 1.3vw, 1.12rem); color: rgba(255, 255, 255, .88); max-width: 58ch; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 96px; }
.hero__controls .container { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.hero__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); }
.hero__arrow:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 34px; height: 4px; border-radius: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.hero__dot[aria-current="true"] { background: rgba(255, 255, 255, .45); }
.hero__dot[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dotFill var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__dot[aria-current="true"]::after { animation-play-state: paused; }
.hero .btn--accent { background: #fff; color: var(--primary); }
.hero .btn--accent:hover { background: var(--primary-soft); }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ------------------------------ Tezkor havolalar ------------------------------ */
.quicklinks { position: relative; z-index: 5; margin-top: -72px; }
.quicklinks__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border); }
.quicklink { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 20px; border-right: 1px solid var(--border); transition: background-color .2s; position: relative; }
.quicklink:last-child { border-right: 0; }
.quicklink:hover { background: var(--primary-soft); }
.quicklink__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); transition: background-color .2s, color .2s; }
.quicklink:hover .quicklink__icon { background: var(--primary); color: #fff; }
.quicklink__icon .icon { width: 24px; height: 24px; }
.quicklink__label { font-weight: 600; font-size: .95rem; color: var(--primary); line-height: 1.25; }
.quicklink__desc { font-size: .8rem; color: var(--muted); line-height: 1.35; }

/* ------------------------------ Bo‘lim bloklari ------------------------------ */
.section { padding-block: 84px; }
.section--tight { padding-block: 60px; }
.section--alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--first { padding-top: 64px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; padding-bottom: 14px; border-bottom: 1px solid var(--border-strong); }
.section__title { font-size: clamp(1.55rem, 2.3vw, 2rem); font-weight: 700; margin: 0; letter-spacing: 0; }
.section__lead { font-family: var(--font-text); font-size: 1rem; color: var(--muted); margin: 8px 0 0; max-width: 60ch; }

/* Yangiliklar */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
.news-feature { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 24px; }
.news-feature__media { position: relative; min-height: 330px; background: var(--primary-soft); overflow: hidden; }
.news-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-feature__body { padding: 30px 30px 28px; display: flex; flex-direction: column; gap: 12px; }
.news-feature__title { font-size: 1.42rem; font-weight: 700; margin: 0; line-height: 1.22; }
.news-feature__title a:hover { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(var(--primary-rgb), .4); text-underline-offset: 4px; }
.news-feature__text { font-family: var(--font-text); font-size: 1rem; line-height: 1.6; color: var(--text-soft); margin: 0; }
.news-feature .link-more { margin-top: auto; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: .84rem; font-weight: 500; }
.meta-row span { display: inline-flex; align-items: center; gap: .4em; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* Bosh sahifada 6 ta material chiqadi: keng ekranda 3 ustun, qolgan holatda 4 tasi (2 ustun) */
.news-grid > .card:nth-child(n+5) { display: none; }
@media (min-width: 1360px) {
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news-grid > .card:nth-child(n+5) { display: flex; }
}
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .25s ease, border-color .2s; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.card__media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--primary-soft), #fff); overflow: hidden; display: block; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--primary-tint); background: radial-gradient(circle at 30% 20%, #fff, var(--primary-soft)); }
.card__placeholder .icon { width: 44px; height: 44px; stroke-width: 1.3; }
.card__placeholder img { width: 64px; height: auto; opacity: .35; object-fit: contain; }
.news-feature__media .card__placeholder img { position: static; width: 96px; height: auto; }
.card__badge { position: absolute; left: 14px; top: 14px; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card__title { font-size: 1.07rem; font-weight: 700; line-height: 1.28; margin: 0; }
.card__title a:hover { color: var(--primary); }
.card__text { font-family: var(--font-text); color: var(--text-soft); font-size: .94rem; line-height: 1.55; margin: 0; }
.card__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stretched::after { content: ""; position: absolute; inset: 0; }
.card--link { position: relative; }

.news-aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 76px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--border); }
.panel__title { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 700; margin: 0; }
.panel__title .icon { color: var(--primary); }
.panel__body { padding: 18px 22px 22px; }
.notice-list { list-style: none; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 14px 22px; border-bottom: 1px solid var(--border); transition: background-color .2s; }
.notice-list li:last-child .notice { border-bottom: 0; }
.notice:hover { background: var(--primary-soft); }
.notice__date { flex: none; width: 54px; text-align: center; border-radius: 4px; background: var(--primary); color: #fff; padding: 7px 4px 6px; line-height: 1.05; }
.notice__date b { display: block; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; }
.notice__date small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .75); font-weight: 600; margin-top: 3px; }
.notice__title { font-family: var(--font-text); font-weight: 600; font-size: .93rem; line-height: 1.32; }
.notice:hover .notice__title { color: var(--primary); }
.panel__empty { padding: 22px; color: var(--muted); font-size: .92rem; }
.cta-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 26px; color: #fff; background: var(--primary); }
.cta-card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.cta-card .btn--accent { background: #fff; color: var(--primary); }
.cta-card .btn--accent:hover { background: var(--primary-soft); }
.cta-card p { font-family: var(--font-text); color: rgba(255, 255, 255, .85); font-size: .94rem; }
.cta-card__icon { position: absolute; right: -10px; bottom: -14px; width: 110px; height: 110px; opacity: .07; }

.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 24px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); color: var(--muted); }
.empty-state .icon { width: 42px; height: 42px; color: var(--primary-tint); stroke-width: 1.4; }
.empty-state strong { color: var(--text); font-size: 1.05rem; }

/* Yo‘nalishlar */
.directions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.direction { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; padding: 26px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; isolation: isolate; box-shadow: var(--shadow); background: linear-gradient(160deg, var(--primary-bright), var(--primary-deep)); transition: transform .25s ease, box-shadow .25s; }
.direction:hover { box-shadow: var(--shadow-lg); }
.direction__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.direction::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--primary-deep-rgb), .15) 0%, rgba(var(--primary-deep-rgb), .92) 78%); }
.direction--plain { background: var(--primary-deep); border: 1px solid rgba(255, 255, 255, .08); }
.direction__icon { position: absolute; top: 24px; left: 24px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 4px; background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.direction__icon .icon { width: 26px; height: 26px; }
.direction__count { position: absolute; top: 26px; right: 24px; font-size: .78rem; font-weight: 600; padding: .3em .7em; border-radius: 3px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }
.direction__title { color: #fff; font-size: 1.3rem; font-weight: 700; margin: 0 0 8px; }
.direction__text { font-family: var(--font-text); color: rgba(255, 255, 255, .85); font-size: .92rem; margin: 0 0 14px; }
.direction__more { display: inline-flex; align-items: center; gap: .45em; color: #fff; font-weight: 600; font-size: .9rem; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 4px; }

/* Statistika */
.stats-band { background: var(--primary-deep); color: #fff; padding-block: 52px; border-top: 3px solid var(--accent); }
.stats-band__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat { display: flex; align-items: center; gap: 16px; padding: 10px 6px; }
.stat__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 4px; background: rgba(255, 255, 255, .06); color: #fff; flex: none; border: 1px solid rgba(255, 255, 255, .18); }
.stat__icon .icon { width: 26px; height: 26px; }
.stat__num { display: block; font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; line-height: 1; color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.stat__label { display: block; margin-top: 6px; color: rgba(255, 255, 255, .78); font-size: .9rem; font-weight: 500; }

/* Tadbirlar */
.events { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.event { display: flex; gap: 18px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.event:hover { box-shadow: var(--shadow); border-color: var(--primary-tint); }
.event__date { flex: none; width: 76px; height: 82px; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; color: var(--muted); border: 1px solid var(--border-strong); border-top: 4px solid var(--primary); }
.event__date b { font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--primary); font-variant-numeric: lining-nums; }
.event__date small { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 5px; }
.event__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.event:hover .event__title { color: var(--primary); }

/* Mediateka */
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.media-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--primary-deep); color: #fff; display: block; box-shadow: var(--shadow-sm); }
.media-tile--wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.media-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.media-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5, 15, 30, .85)); }
.media-tile__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 16px 18px; }
.media-tile__title { color: #fff; font-size: 1.04rem; font-weight: 700; margin: 6px 0 0; line-height: 1.28; }
.media-tile--wide .media-tile__title { font-size: 1.35rem; }
.media-tile__play { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--primary); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s; }
.media-tile:hover .media-tile__play { transform: translate(-50%, -50%) scale(1.08); }
.media-tile__play .icon { width: 24px; height: 24px; fill: currentColor; margin-left: 3px; }

/* Foydali havolalar */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ulink { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, transform .2s; }
.ulink:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.ulink__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); flex: none; }
.ulink__text { min-width: 0; display: flex; flex-direction: column; }
.ulink__text strong { font-size: .88rem; line-height: 1.3; font-weight: 700; }
.ulink__text small { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.ulink > .icon { margin-left: auto; color: var(--muted); }

/* ------------------------------ Pastki qism ------------------------------ */
.site-footer { background: var(--primary-deep); color: rgba(255, 255, 255, .78); margin-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: 40px; padding-block: 64px 44px; }
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__logo { display: flex; align-items: center; gap: 14px; }
.footer__logo img { width: 56px; }
.footer__logo strong { font-family: var(--font-head); color: #fff; font-size: 1.02rem; font-weight: 700; line-height: 1.22; letter-spacing: .01em; text-transform: uppercase; }
.footer__about { font-family: var(--font-text); font-size: .92rem; line-height: 1.55; margin: 0; }
.footer__title { font-family: var(--font); color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 16px; letter-spacing: .01em; }
.footer__list { list-style: none; display: grid; gap: 10px; }
.footer__list a { display: inline-flex; align-items: center; gap: .5em; font-size: .92rem; transition: color .2s; }
.footer__list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__contact { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; margin-bottom: 14px; }
.footer__contact .icon { color: rgba(255, 255, 255, .55); margin-top: 3px; }
.site-footer .btn--accent { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.site-footer .btn--accent:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.footer__contact a:hover { color: #fff; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .12); transition: background-color .2s, transform .2s; }
.social a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 20px; font-size: .84rem; }
.footer__bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.footer__bottom a:hover { color: #fff; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }

/* ------------------------------ Ichki sahifalar ------------------------------ */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--primary-deep); padding-block: 40px 46px; border-bottom: 3px solid var(--accent); }
.page-hero::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 380px; height: 380px; background: url("../img/emblem-192.png") center / contain no-repeat; opacity: .07; pointer-events: none; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 700; margin: 14px 0 0; max-width: 30ch; letter-spacing: 0; line-height: 1.15; text-wrap: balance; }
.page-hero__lead { font-family: var(--font-text); color: rgba(255, 255, 255, .85); max-width: 70ch; margin: 12px 0 0; font-size: 1.04rem; }
.page-hero .meta-row { color: rgba(255, 255, 255, .78); margin-top: 16px; }
.page-hero .meta-row .icon { color: rgba(255, 255, 255, .6); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .72); list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; margin-right: 4px; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.breadcrumbs [aria-current] { color: #fff; font-weight: 600; }

.page-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 48px 84px; }
.page-body.has-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
.page-sidebar { display: flex; flex-direction: column; gap: 22px; }
.page-sidebar .panel { position: relative; }
.side-nav { list-style: none; padding: 10px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 3px; font-weight: 500; font-size: .94rem; color: var(--text-soft); }
.side-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.side-nav a.is-active { background: var(--primary); color: #fff; }
.side-nav a .icon { opacity: .6; }
.mini-list { list-style: none; }
.mini-item { display: flex; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--border); align-items: center; }
.mini-list li:last-child .mini-item { border-bottom: 0; }
.mini-item__thumb { width: 64px; height: 52px; border-radius: 4px; overflow: hidden; flex: none; background: var(--primary-soft); }
.mini-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-item__title { font-family: var(--font-text); font-size: .9rem; font-weight: 600; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-item:hover .mini-item__title { color: var(--primary); }
.mini-item time { display: block; font-size: .76rem; color: var(--muted); margin-top: 3px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.toolbar__info { color: var(--muted); font-size: .92rem; }
.select-inline { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.select-inline select { height: 42px; border-radius: 4px; border: 1px solid var(--border-strong); background: #fff; padding: 0 34px 0 12px; font-weight: 600; color: var(--text); }

.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-body.has-sidebar .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Guruh (container) bo‘limlari */
.child-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-bottom: 44px; }
.child-tile { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.child-tile:hover { box-shadow: var(--shadow); border-color: var(--primary-tint); }
.child-tile__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); }
.child-tile:hover .child-tile__icon { background: var(--primary); color: #fff; }
.child-tile__icon .icon { width: 24px; height: 24px; }
.child-tile strong { font-size: 1.05rem; color: var(--text); }
.child-tile span { color: var(--muted); font-size: .86rem; }
.subhead { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; margin: 0 0 20px; }

/* Muassasa kartochkalari */
.org-card .card__media { aspect-ratio: 4 / 3; }
.org-card__type { font-size: .78rem; font-weight: 600; letter-spacing: .01em; color: var(--muted); }
.org-facts { list-style: none; display: grid; gap: 7px; font-size: .88rem; color: var(--text-soft); }
.org-facts li { display: flex; gap: 8px; align-items: flex-start; }
.org-facts .icon { color: var(--primary); margin-top: 3px; }

/* Rahbariyat */
.people { display: grid; gap: 22px; }
.person { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.person__photo { aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, var(--primary-soft), #fff); display: grid; place-items: center; color: var(--primary-tint); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__photo .icon { width: 64px; height: 64px; stroke-width: 1.2; }
.person__position { color: var(--primary); font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.person__name { font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; }
.person__facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin-bottom: 16px; }
.person__facts li { display: flex; gap: 10px; font-size: .92rem; }
.person__facts .icon { color: var(--primary); margin-top: 3px; }
.person__facts small { display: block; color: var(--muted); font-size: .76rem; font-weight: 600; }

/* Hujjatlar */
.doc-list { display: grid; gap: 12px; }
.doc { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.doc:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.doc__icon { display: grid; place-items: center; width: 50px; height: 56px; border-radius: 4px; background: #fdecec; color: #c0392b; flex: none; position: relative; }
.doc__icon .icon { width: 24px; height: 24px; }
.doc__ext { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); font-size: .6rem; font-weight: 700; background: #c0392b; color: #fff; padding: 1px 6px; border-radius: 4px; letter-spacing: .04em; }
.doc__body { min-width: 0; flex: 1; }
.doc__title { font-family: var(--font-text); font-weight: 600; font-size: 1rem; margin: 0 0 4px; line-height: 1.3; }
.doc__title a:hover { color: var(--primary); }
.doc__actions { display: flex; gap: 8px; flex: none; }

/* Fotogalereya / video */
.album .card__media { aspect-ratio: 4 / 3; }
.album__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: .35em .75em; border-radius: 4px; background: rgba(8, 20, 38, .72); color: #fff; font-size: .78rem; font-weight: 700; backdrop-filter: blur(4px); }
.video-card .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 15, 30, .45)); }
.video-card .media-tile__play { width: 56px; height: 56px; }

/* Audio */
.audio-list { display: grid; gap: 14px; }
.audio-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.audio-item__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); }
.audio-item h3 { font-size: 1rem; margin: 0 0 8px; }
.audio-item audio, .embed-audio { width: 100%; height: 40px; }

/* Savol-javob */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--primary); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--primary); flex: none; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .prose { padding: 0 22px 20px; }

/* ------------------------------ Material sahifasi ------------------------------ */
.post { min-width: 0; }
.post__cover { margin: 0 0 30px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--primary-soft); }
.post__cover img { width: 100%; max-height: 620px; object-fit: cover; }
.post__lead { font-family: var(--font-text); font-size: 1.15rem; line-height: 1.5; color: var(--text-soft); font-weight: 400; border-left: 3px solid var(--primary); padding: 4px 0 4px 18px; margin: 0 0 26px; }
.prose { font-family: var(--font-text); font-size: 1.06rem; line-height: 1.7; color: var(--text); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.05em; }
/* Matn rasm bilan bir xil kenglikda; keng ekranda harf biroz kattaroq — uzun qator o‘qishga qulay bo‘lsin */
@media (min-width: 1280px) { .post .prose { font-size: 1.12rem; line-height: 1.8; } }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .2em; font-weight: 700; }
.prose h3 { font-size: 1.25rem; margin: 1.4em 0 .2em; font-weight: 700; }
.prose h4 { font-size: 1.1rem; margin: 1.2em 0 .2em; }
.prose a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(var(--primary-rgb), .35); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--primary-dark); text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--primary); font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px 18px 26px; background: var(--primary-soft); border-left: 3px solid var(--primary); border-radius: 0 4px 4px 0; font-size: 1.08rem; color: var(--text-soft); font-style: italic; }
.prose figure { margin: 1.8em 0; }
.prose figure img, .prose > img, .prose p img { border-radius: 4px; box-shadow: var(--shadow-sm); margin-inline: auto; }
.prose figcaption { text-align: center; font-size: .88rem; color: var(--muted); margin-top: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border-strong); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--primary-soft); font-weight: 700; }
.prose tr:nth-child(even) td { background: #fafbfd; }
.prose hr { border: 0; height: 1px; background: var(--border-strong); margin: 2em 0; }
.prose code { background: var(--primary-soft); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
.prose mark { background: var(--accent-soft); padding: 0 .2em; border-radius: 3px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.fact { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--surface); }
.fact .icon { color: var(--primary); margin-top: 3px; width: 20px; height: 20px; }
.fact small { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fact strong { display: block; font-size: .98rem; font-weight: 600; overflow-wrap: anywhere; }
.fact a { color: var(--primary); }

.event-box { display: flex; flex-wrap: wrap; gap: 14px 30px; padding: 18px 22px; border-radius: var(--radius); background: var(--primary-soft); border: 1px solid var(--primary-tint); margin-bottom: 26px; }
.event-box div { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary); }
.event-box .icon { color: var(--primary); width: 22px; height: 22px; }

.embed-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow); margin-bottom: 28px; }
.embed-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-file-video { width: 100%; border-radius: var(--radius-lg); background: #000; margin-bottom: 28px; }
.embed-audio { margin-bottom: 26px; }

.block-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin: 40px 0 18px; }
.block-title .icon { color: var(--primary); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery__item { position: relative; display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--primary-soft); cursor: zoom-in; border: 0; padding: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .3s; }
.gallery__item:hover img { filter: brightness(.88); }
.gallery__item .icon { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--primary); opacity: 0; transition: opacity .2s; }
.gallery__item:hover .icon { opacity: 1; }
.gallery--album { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

.files { display: grid; gap: 10px; }
.file { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); transition: border-color .2s, background-color .2s; }
.file:hover { border-color: var(--primary); background: var(--primary-soft); }
.file__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); flex: none; }
.file:hover .file__icon { background: var(--primary); color: #fff; }
.file__name { display: block; font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.file__meta { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.file > .icon { margin-left: auto; color: var(--primary); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.share__label { font-weight: 700; color: var(--muted); font-size: .9rem; margin-right: 6px; }
.share a, .share button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--border-strong); background: #fff; font-weight: 600; font-size: .88rem; color: var(--text-soft); transition: all .2s; }
.share a:hover, .share button:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.share .share--tg:hover { background: #229ed9; border-color: #229ed9; color: #fff; }
.share .share--fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }

.draft-banner { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 4px; background: #fff7e6; border: 1px solid #f3d38a; color: #7a5300; font-weight: 600; margin-bottom: 24px; }
.edit-link { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--primary); font-weight: 600; }

/* ------------------------------ Aloqa va formalar ------------------------------ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 40px; }
.contact-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); flex: none; }
.contact-card small { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; margin-bottom: 4px; }
.contact-card strong, .contact-card a { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--primary); }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 34px; }
.form-card__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.form-card__head .contact-card__icon { width: 56px; height: 56px; }
.form-card h2 { font-size: 1.5rem; margin: 0 0 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; }
.field .req { color: var(--danger); }
.input, .field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="search"], .field input[type="number"], .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 4px; background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; font-size: 1rem; }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-soft); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.captcha { display: flex; align-items: center; gap: 12px; }
.captcha__q { font-weight: 700; font-size: 1.1rem; background: var(--primary-soft); color: var(--primary); padding: 10px 16px; border-radius: 4px; white-space: nowrap; }
.captcha input { max-width: 140px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-top: 32px; aspect-ratio: 16 / 7; background: var(--primary-soft); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 4px; margin-bottom: 22px; font-weight: 500; }
.alert .icon { margin-top: 2px; width: 20px; height: 20px; }
.alert--success { background: #e9f7ef; color: #135c3c; border: 1px solid #b7e2c8; }
.alert--error { background: #fdeceb; color: #8b2419; border: 1px solid #f3c1bb; }
.alert--info { background: var(--primary-soft); color: var(--primary); border: 1px solid var(--primary-tint); }

/* Qidiruv */
.search-hero-form { display: flex; gap: 10px; margin-top: 22px; max-width: 760px; }
.search-hero-form input { flex: 1; height: 56px; border-radius: 4px; border: 0; padding: 0 20px; font-size: 1.05rem; outline: none; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.search-hero-form select { height: 56px; border-radius: 4px; border: 0; padding: 0 14px; font-weight: 600; max-width: 220px; }
.search-result { padding: 22px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; align-items: start; }
.search-result:first-child { padding-top: 0; }
.search-result__thumb { border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--primary-soft); }
.search-result__thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.search-result h3 a:hover { color: var(--primary); text-decoration: underline; }
.search-result p { font-family: var(--font-text); color: var(--text-soft); margin: 0; font-size: .96rem; }
.search-result mark { background: var(--accent-soft); color: inherit; padding: 0 .15em; border-radius: 3px; font-weight: 600; }

/* Arxiv */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .5em .95em; border-radius: 4px; border: 1px solid var(--border-strong); background: #fff; font-weight: 600; font-size: .86rem; color: var(--text-soft); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip small { opacity: .7; }

/* Sayt xaritasi */
.sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.sitemap__group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.sitemap__group h2 { font-size: 1.1rem; margin: 0 0 12px; display: flex; gap: 10px; align-items: center; }
.sitemap__group h2 .icon { color: var(--primary); }
.sitemap__group ul { list-style: none; display: grid; gap: 8px; }
.sitemap__group a { color: var(--text-soft); font-size: .93rem; }
.sitemap__group a:hover { color: var(--primary); text-decoration: underline; }

/* Sahifalash */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.pg-nums { display: flex; gap: 6px; flex-wrap: wrap; }
.pg-num, .pg-step, .pg-gap { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--border-strong); background: #fff; font-weight: 700; font-size: .92rem; color: var(--text-soft); }
.pg-gap { border-color: transparent; background: transparent; }
.pg-num:hover, .pg-step:hover { border-color: var(--primary); color: var(--primary); }
.pg-num.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pg-step.is-disabled { opacity: .45; pointer-events: none; }

/* Davlat ramzlari va 404 */
.error-page { text-align: center; padding: 70px 0 90px; }
.error-page__code { font-family: var(--font-head); font-size: clamp(5rem, 14vw, 8.5rem); font-weight: 700; line-height: 1; color: var(--primary); letter-spacing: 0; font-variant-numeric: lining-nums; }
.error-page h1 { font-size: 1.8rem; margin: 10px 0 12px; }
.error-page p { color: var(--muted); max-width: 52ch; margin: 0 auto 26px; }
.error-page form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto 26px; }
.error-page form input { flex: 1; height: 50px; border-radius: 4px; border: 1px solid var(--border-strong); padding: 0 16px; }

/* ------------------------------ Rasm kattalashtirgich ------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 12, 24, .94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox figcaption { color: rgba(255, 255, 255, .85); font-size: .92rem; text-align: center; }
.lightbox__btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.lightbox__btn .icon { width: 24px; height: 24px; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 28px; left: 24px; color: rgba(255, 255, 255, .75); font-weight: 600; font-size: .9rem; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--primary-deep); color: #fff; padding: 12px 20px; border-radius: 4px; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .25s, transform .25s; z-index: 300; pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 4px; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s; z-index: 40; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary-dark); color: #fff; }

/* ------------------------------ Ko‘zi ojizlar rejimi ------------------------------ */
html.a11y-fs-1 { --fs-base: 18px; }
html.a11y-fs-2 { --fs-base: 20px; }
html.a11y-fs-3 { --fs-base: 22px; }
html.a11y-gray body { filter: grayscale(1); }
html.a11y-noimg img:not(.brand__emblem):not(.footer__logo img), html.a11y-noimg .hero__media, html.a11y-noimg .direction__bg { visibility: hidden !important; }
html.a11y-contrast { --primary: #000 !important; --accent: #ffde00 !important; --bg: #000; --surface: #000; --text: #fff; --text-soft: #fff; --muted: #ffde00; --border: #ffde00; --border-strong: #ffde00; --primary-soft: #1a1a1a; --accent-soft: #333; --primary-dark: #000; --primary-deep: #000; --primary-deep-rgb: 0, 0, 0; --accent-rgb: 255, 222, 0; --primary-tint: #555; }
html.a11y-contrast body, html.a11y-contrast .site-header, html.a11y-contrast .card, html.a11y-contrast .panel, html.a11y-contrast .quicklinks__grid, html.a11y-contrast .contact-card, html.a11y-contrast .form-card, html.a11y-contrast .doc, html.a11y-contrast .file, html.a11y-contrast .event, html.a11y-contrast .ulink, html.a11y-contrast .child-tile, html.a11y-contrast .person, html.a11y-contrast .faq details, html.a11y-contrast .submenu, html.a11y-contrast .a11y-panel { background: #000 !important; color: #fff !important; border-color: #ffde00 !important; box-shadow: none !important; }
html.a11y-contrast a, html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3, html.a11y-contrast h4, html.a11y-contrast strong, html.a11y-contrast .brand__name, html.a11y-contrast .quicklink__label { color: #ffde00 !important; }
html.a11y-contrast .hero__media::after, html.a11y-contrast .direction::before { background: rgba(0, 0, 0, .82) !important; }
html.a11y-contrast input, html.a11y-contrast select, html.a11y-contrast textarea { background: #000 !important; color: #fff !important; border-color: #ffde00 !important; }
html.a11y-contrast .btn--accent, html.a11y-contrast .btn--primary { background: #ffde00 !important; color: #000 !important; }

/* ------------------------------ Sichqoncha ustida (kartalar) ------------------------------ */
/* Karta biroz ko‘tariladi, soyasi chuqurlashadi, pastida oltin chiziq chiqadi, sarlavha tagiga chiziladi.
   Faqat sichqonchali qurilmalarda — telefonda bosilgandan keyin «osilib» qolmaydi. */
.news-feature, .event { position: relative; }
.card::after, .news-feature::after, .event::after, .child-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .25s ease; pointer-events: none; z-index: 2; }
.child-tile { position: relative; overflow: hidden; }
.card, .news-feature, .event, .ulink, .child-tile, .doc, .direction, .media-tile { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card__media img, .news-feature__media img, .media-tile img { transition: transform .45s ease; }
@media (hover: hover) and (pointer: fine) {
  .card:hover, .news-feature:hover, .event:hover, .ulink:hover, .child-tile:hover, .doc:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(var(--primary-rgb), .32); }
  .direction:hover, .media-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
  .card:hover::after, .news-feature:hover::after, .event:hover::after, .child-tile:hover::after { transform: scaleX(1); }
  .card:hover .card__media img, .news-feature:hover .news-feature__media img, .media-tile:hover img, .direction:hover .direction__bg { transform: scale(1.04); }
  .news-feature:hover .news-feature__media .card__placeholder img { transform: none; }
  .card:hover .card__title a, .news-feature:hover .news-feature__title a, .doc:hover .doc__title a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(var(--primary-rgb), .35); text-underline-offset: 4px; text-decoration-thickness: 1px; }
}
.card:focus-within::after, .news-feature:focus-within::after, .event:focus-visible::after, .child-tile:focus-visible::after { transform: scaleX(1); }

/* ------------------------------ Moslashuvchan dizayn ------------------------------ */
@media (max-width: 1180px) {
  .header-contact { display: none; }
  .menu__link { padding: 0 12px; font-size: .9rem; }
  .menu__link::after { left: 12px; right: 12px; }
  .quicklinks__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quicklink:nth-child(3n) { border-right: 0; }
  .quicklink:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
  .news-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .news-feature { grid-template-columns: minmax(0, 1fr); }
  .news-feature__media { min-height: 0; aspect-ratio: 16 / 9; }
  .directions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .media-tile--wide { grid-column: span 3; aspect-ratio: 21 / 9; grid-row: auto; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
  :root { --header-h: 76px; }
  .topbar__item--date { display: none; }
  .header-search { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: grid; }
  .search-toggle { display: grid; }
  .site-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); z-index: 100; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .3s ease; overflow-y: auto; overscroll-behavior: contain; }
  html.nav-open .site-nav { transform: none; }
  html.nav-open { overflow: hidden; }
  .site-nav__inner { flex-direction: column; align-items: stretch; padding: 0; }
  .site-nav__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: #fff; z-index: 2; }
  .site-nav__head strong { color: var(--primary); font-size: 1.05rem; }
  .site-nav__close { width: 42px; height: 42px; border-radius: 4px; border: 1px solid var(--border-strong); background: #fff; color: var(--primary); display: grid; place-items: center; }
  .menu { flex-direction: column; padding: 10px 12px 30px; }
  .menu__item { flex-wrap: wrap; border-bottom: 1px solid var(--border); }
  .menu__link { flex: 1; min-height: 54px; color: var(--text); padding: 0 8px; font-size: 1rem; }
  .menu__link::after { display: none; }
  .menu__item.is-active > .menu__link { color: var(--primary); }
  .menu__chev { display: none; }
  .menu__toggle { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 4px; border: 0; background: var(--primary-soft); color: var(--primary); }
  .menu__toggle .icon { transition: transform .2s; }
  .menu__item.is-open > .menu__toggle .icon { transform: rotate(180deg); }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 6px; min-width: 0; width: 100%; padding: 0 0 10px 8px; display: none; background: transparent; }
  .menu__item.is-open > .submenu { display: block; }
  .menu__item:hover > .submenu { display: none; }
  .menu__item.is-open:hover > .submenu { display: block; }
  .site-nav .search-mobile { display: flex; margin: 14px 20px 0; }
  .menu__home-label { position: static; width: auto; height: auto; clip: auto; }
  html.no-js .site-nav { position: static; transform: none; width: auto; box-shadow: none; }
  .hero__slides, .hero__content { min-height: 500px; }
  .news-layout { grid-template-columns: minmax(0, 1fr); }
  .news-aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-body.has-sidebar { grid-template-columns: minmax(0, 1fr); }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events { grid-template-columns: minmax(0, 1fr); }
}
.search-mobile { display: none; position: relative; }
.search-mobile input { width: 100%; height: 48px; border-radius: 4px; border: 1px solid var(--border-strong); background: var(--bg); padding: 0 48px 0 14px; outline: none; }
.search-mobile button { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--primary); display: grid; place-items: center; }
.search-drop { display: none; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 0; }
html.search-open .search-drop { display: block; }
.search-drop form { position: relative; }
.search-drop input { width: 100%; height: 50px; border-radius: 4px; border: 1px solid var(--border-strong); background: var(--bg); padding: 0 50px 0 16px; outline: none; font-size: 1rem; }
.search-drop button { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--primary); display: grid; place-items: center; }

@media (max-width: 700px) {
  .container { padding-inline: 16px; }
  .topbar__inner { min-height: 40px; }
  .topbar__region-full { display: none; }
  .topbar__region-short { display: inline; }
  .topbar__btn span { display: none; }
  .topbar__right { gap: 10px; }
  .lang-switch__short { display: inline; }
  .lang-switch__chev { display: none; }
  .lang-float { top: auto; bottom: 18px; left: 16px; right: auto; transform: none; }
  .lang-float > summary { flex-direction: row; gap: 6px; height: 46px; padding: 0 13px; border-radius: 6px; border-right: 1px solid rgba(255, 255, 255, .2); }
  .lang-float .lang-menu { right: auto; left: 0; top: auto; bottom: calc(100% + 10px); transform: none; }
  .lang-menu { min-width: 220px; max-height: 62vh; }
  .tr-notice { font-size: .78rem; }
  .tr-notice__inner { align-items: flex-start; padding-block: 8px; gap: 8px; }
  .tr-notice__inner > .icon { margin-top: 2px; }
  .lang-float > summary { height: 42px; padding: 0 11px; }
  .topbar__btn { padding: .45em .6em; }
  .topbar__social { display: none; }
  .brand__emblem { width: 44px; }
  .brand__text { padding-left: 12px; }
  .brand__name { font-size: .9rem; }
  .brand__tagline { font-size: .74rem; letter-spacing: 0; margin-top: 3px; }
  .header-tools { gap: 8px; }
  .nav-toggle, .search-toggle { width: 42px; height: 42px; }
  .hero__slides, .hero__content { min-height: 520px; }
  .hero__content { justify-content: flex-end; padding-bottom: 150px; }
  .hero__media::after { background: linear-gradient(0deg, rgba(var(--primary-deep-rgb), .96) 10%, rgba(var(--primary-deep-rgb), .55) 55%, rgba(var(--primary-deep-rgb), .25)); }
  .hero__title { font-size: 2rem; }
  .hero__text { font-size: 1rem; margin-bottom: 22px; }
  .hero__controls { bottom: 90px; }
  .quicklinks { margin-top: -64px; }
  .quicklinks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 6px; }
  .quicklink:nth-child(3n) { border-right: 1px solid var(--border); }
  .quicklink:nth-child(2n) { border-right: 0; }
  .quicklink:nth-child(-n+4) { border-bottom: 1px solid var(--border); }
  .quicklink__desc { display: none; }
  .compact-m { gap: 12px !important; }
  .compact-m .card { flex-direction: row; }
  .compact-m .card__media { width: 118px; flex: none; aspect-ratio: auto; min-height: 104px; }
  .compact-m .card__badge { display: none; }
  .compact-m .card__body { padding: 12px 14px; gap: 6px; }
  .compact-m .card__title { font-size: .96rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .compact-m .card__text { display: none; }
  .compact-m .meta-row { font-size: .78rem; gap: 4px 10px; }
  .compact-m .card__placeholder img { width: 38px; }
  .quicklink { flex-direction: row; align-items: center; gap: 10px; padding: 14px 12px; }
  .quicklink__icon { width: 38px; height: 38px; border-radius: 4px; }
  .quicklink__icon .icon { width: 20px; height: 20px; }
  .quicklink__label { font-size: .86rem; }
  .section { padding-block: 56px; }
  .section__head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
  .news-feature__body { padding: 22px; }
  .news-feature__title { font-size: 1.2rem; }
  .news-grid, .grid-cards, .grid-cards--2, .page-body.has-sidebar .grid-cards { grid-template-columns: minmax(0, 1fr); }
  .news-aside { grid-template-columns: minmax(0, 1fr); }
  .directions { grid-template-columns: minmax(0, 1fr); }
  .direction { min-height: 260px; }
  .stats-band__grid { gap: 10px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stat__num { font-size: 1.7rem; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-tile--wide { grid-column: span 2; aspect-ratio: 16 / 10; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 48px 32px; }
  .page-hero { padding-block: 30px 36px; }
  .page-body { padding-block: 30px 60px; }
  .person { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; }
  .person__photo { max-width: 220px; }
  .person__facts { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 22px 18px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .search-hero-form { flex-wrap: wrap; }
  .search-hero-form select { max-width: none; flex: 1; }
  .search-result { grid-template-columns: minmax(0, 1fr); }
  .search-result__thumb { display: none; }
  .doc { flex-wrap: wrap; }
  .doc__actions { width: 100%; }
  .doc__actions .btn { flex: 1; }
  .lightbox { padding: 60px 10px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .map-embed { aspect-ratio: 4 / 3; }
  .share a span, .share button span { display: none; }
}

/* ------------------------------ Times New Roman tanlanganda ------------------------------ */
/* Times bir xil o‘lchamda ko‘zga kichikroq ko‘rinadi — sarlavha va matnlar biroz kattaroq. */
html[data-font="times"] .brand__name { font-size: 1.34rem; }
html[data-font="times"] .hero__title { font-size: clamp(2.05rem, 3.9vw, 3.15rem); }
html[data-font="times"] .hero__text { font-size: clamp(1.08rem, 1.45vw, 1.24rem); }
html[data-font="times"] .section__title { font-size: clamp(1.7rem, 2.5vw, 2.2rem); }
html[data-font="times"] .section__lead { font-size: 1.1rem; }
html[data-font="times"] .news-feature__title { font-size: 1.6rem; }
html[data-font="times"] .news-feature__text { font-size: 1.1rem; }
html[data-font="times"] .card__title { font-size: 1.22rem; }
html[data-font="times"] .card__text { font-size: 1.05rem; }
html[data-font="times"] .panel__title { font-size: 1.25rem; }
html[data-font="times"] .notice__title { font-size: 1.04rem; }
html[data-font="times"] .cta-card p { font-size: 1.05rem; }
html[data-font="times"] .direction__title { font-size: 1.45rem; }
html[data-font="times"] .direction__text { font-size: 1.02rem; }
html[data-font="times"] .event__title { font-size: 1.2rem; }
html[data-font="times"] .media-tile__title { font-size: 1.15rem; }
html[data-font="times"] .footer__logo strong { font-size: 1.15rem; }
html[data-font="times"] .footer__about { font-size: 1.02rem; }
html[data-font="times"] .page-hero h1 { font-size: clamp(1.85rem, 3.3vw, 2.6rem); }
html[data-font="times"] .page-hero__lead { font-size: 1.15rem; }
html[data-font="times"] .mini-item__title { font-size: 1rem; }
html[data-font="times"] .subhead { font-size: 1.55rem; }
html[data-font="times"] .person__name { font-size: 1.6rem; }
html[data-font="times"] .doc__title { font-size: 1.12rem; }
html[data-font="times"] .post__lead { font-size: 1.3rem; }
html[data-font="times"] .prose { font-size: 1.2rem; }
html[data-font="times"] .prose h2 { font-size: 1.75rem; }
html[data-font="times"] .prose h3 { font-size: 1.42rem; }
html[data-font="times"] .block-title { font-size: 1.38rem; }
html[data-font="times"] .search-result p { font-size: 1.08rem; }
html[data-font="times"] .notice__title, html[data-font="times"] .mini-item__title, html[data-font="times"] .doc__title { font-weight: 700; }
@media (max-width: 700px) {
  html[data-font="times"] .hero__title { font-size: 2.15rem; }
  html[data-font="times"] .compact-m .card__title { font-size: 1.08rem; }
  html[data-font="times"] .news-feature__title { font-size: 1.38rem; }
  html[data-font="times"] .brand__name { font-size: .94rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .site-header, .site-nav, .site-footer, .page-sidebar, .share, .back-to-top, .nav-backdrop, .hero__controls, .lang-float { display: none !important; }
  .tr-notice a { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .page-hero { background: none; color: #000; padding: 0 0 12pt; }
  .page-hero h1, .page-hero .meta-row, .breadcrumbs { color: #000; }
  .page-body, .page-body.has-sidebar { display: block; padding: 0; }
  .prose a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
