/* =====================================================================
   Urug‘chilikni rivojlantirish markazi — dizayn tizimi
   Tuzilma: davlat organlari saytlarining yagona modeli (digital.uz).
   Ko‘rinish: agroilm.uz uslubi, qishloq xo‘jaligiga mos yashil palitra.
   Ranglar faqat shu blokda o‘zgartiriladi.
   ===================================================================== */
:root {
  --primary:     #17803D;   /* tugmalar, havolalar, faol menyu */
  --primary-700: #0F5A2B;   /* hover, to‘q fon */
  --primary-300: #4CBF6B;   /* gradientlarning yorqin uchi */
  --heading:     #0F5A2B;   /* bo‘lim sarlavhalari */
  --title:       #12301C;   /* karta sarlavhalari */
  --footer:      #0B3B1F;
  --accent-date: #17803D;
  --wheat:       #E0A100;   /* bug‘doy-oltin urg‘u */
  --tint:        #E7F2EA;   /* och yashil fon */
  --nav-bg:      #FFFFFF;
  --grey-50:     #F6F8F7;
  --grey-100:    #F2F7F3;
  --line:        #E3ECE5;
  --input-line:  #CED4DA;
  --text:        #000000;
  --muted:       #56655A;
  --muted-2:     #7E7E7E;
  --bg:          #FFFFFF;
  --danger:      #B42318;
  --success:     #1B7F3B;
  --focus:       #E0A100;

  --radius:      10px;
  --radius-lg:   14px;
  --radius-btn:  8px;
  --shadow:      0 2px 10px rgba(18, 48, 28, .06);
  --shadow-lg:   0 14px 30px rgba(18, 48, 28, .12);
  --lift:        translateY(-5px);
  --container:   1440px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-base: 16px;
  --transition: 200ms ease;
}
html.fs-1 { --fs-base: 18px; }
html.fs-2 { --fs-base: 20px; }
html.fs--1 { --fs-base: 14px; }
html.contrast { --primary: #000; --primary-700: #000; --heading: #000; --footer: #000; --accent-date: #000; --grey-50: #fff; --grey-100: #fff; --line: #000; --muted: #000; --muted-2: #000; }
html.contrast img { filter: grayscale(1) contrast(1.2); }
html.contrast .btn, html.contrast .card, html.contrast .chip { border: 2px solid #000 !important; }
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs-base); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--text); -webkit-font-smoothing: antialiased; }
body.lang-fade main { animation: fadeIn 250ms ease; }
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--focus); color: #000; padding: 10px 16px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.icon { flex-shrink: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ---------------- Buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 24px; border-radius: var(--radius-btn); border: 1px solid transparent; font: inherit; font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary, .btn-digital { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover, .btn-digital:hover { background: var(--primary-700); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--grey-100); color: var(--primary); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .875rem; }
.btn-block { width: 100%; }
.link-arrow, .details-link { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; color: rgba(0,0,0,.8); text-decoration: none; white-space: nowrap; }
.link-arrow:hover, .details-link:hover { color: var(--primary); text-decoration: none; }
.link-arrow .icon, .details-link .icon { transition: transform var(--transition); }
.link-arrow:hover .icon, .details-link:hover .icon { transform: translateX(3px); }

/* ---------------- Header ---------------- */

/* Asosiy menyu: kulrang panel, katta harflar, ochilganda ko‘k */

/* Qidiruv paneli */
.search-form { position: relative; display: flex; gap: 0; }
.search-form input { flex: 1; }
.search-form .btn { border-radius: 0; min-width: 50px; padding: 0 14px; }

/* Drawer (to‘liq menyu) */
.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(92vw, 420px); background: var(--primary); color: #fff; overflow-y: auto; padding: 16px; animation: slideIn 250ms ease; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; text-transform: uppercase; }
.drawer-head .icon-btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.drawer details { border-bottom: 1px solid rgba(255,255,255,.2); }
.drawer summary { list-style: none; padding: 14px 4px; font-weight: 600; text-transform: uppercase; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details[open] summary .icon { transform: rotate(180deg); }
.drawer details a { display: block; padding: 10px 12px; color: #fff; text-decoration: none; }
.drawer details a:hover { background: rgba(255,255,255,.15); }
.drawer .btn-digital { background: #fff; color: var(--primary); }
.drawer .lang-switch { display: flex; width: max-content; margin: 16px 0; border: 1px solid rgba(255,255,255,.5); }
.drawer .lang-switch a { padding: 6px 12px; color: #fff; font-size: .85rem; }
.drawer .lang-switch a[aria-current="true"] { background: #fff; color: var(--primary); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; color: #000; cursor: pointer; }

/* ---------------- Bloklar (bosh sahifa) ---------------- */
.home-main { display: block; }
.block { padding: 32px 0; }
.block-tight { padding: 8px 0; }
.block-grey { margin: 24px 0; padding: 40px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.sec-title, .section-head h2 { margin: 0; font-size: 1.5rem; font-weight: 700; line-height: 1.55; color: var(--heading); text-transform: uppercase; }
@media (max-width: 599px) {
  .sec-title, .section-head h2 { font-size: 1.2rem; }
}
.center-link { display: flex; justify-content: center; margin-top: 20px; }
.cols-2-1 { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .cols-2-1 { grid-template-columns: 2fr 1fr; }
}
.cols-2-1 > *, .news-layout > *, .map-grid > *, .car-track { min-width: 0; }
.sec-title { overflow-wrap: anywhere; }

/* Link-box: chegarali karta, chapda ko‘k chiziq, o‘ngda doira ichida strelka */
p > .icon, .small > .icon, .meta .icon, .kv .icon { display: inline-block; vertical-align: -2px; }

/* Sana bloklari (30 / SEN) */
.date-badge { display: inline-flex; flex-direction: column; align-items: center; flex-shrink: 0; min-width: 48px; color: var(--accent-date); line-height: 1.1; }
.date-badge b { font-size: 1.5rem; font-weight: 700; }
.date-badge small { font-size: .85rem; font-weight: 700; text-transform: uppercase; }

/* Yangiliklar: 2 katta karta + yon ro‘yxat */
.news-layout { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .news-layout { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .news-layout { grid-template-columns: 1fr 1fr 1fr; }
}
.news-big { position: relative; display: flex; flex-direction: column; }
.nb-img { display: block; aspect-ratio: 16 / 10; background: var(--grey-100); overflow: hidden; }
.nb-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.news-big:hover .nb-img img { transform: scale(1.03); }
.nb-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.nb-body { position: relative; margin: -72px 24px 0; background: #fff; border: 1px solid var(--line); padding: 16px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nb-head { display: flex; gap: 16px; align-items: flex-start; }
.nb-date { display: flex; flex-direction: column; align-items: center; color: var(--muted-2); line-height: 1.1; min-width: 56px; }
.nb-date b { font-size: 1.5rem; font-weight: 400; }
.nb-date small { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: #000; }
.nb-head h3 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-head h3 a { color: #000; }
.nb-head h3 a:hover { color: var(--primary); }
.nb-lead { color: var(--muted); font-size: .9rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-foot { display: flex; justify-content: space-between; gap: 8px; font-size: .875rem; margin-top: auto; }
.nb-foot a { color: var(--heading); }
.news-side-list { display: flex; flex-direction: column; }
@media (min-width: 768px) and (max-width: 1099px) {
  .news-side-list { grid-column: 1 / -1; }
}
.news-side { display: flex; align-items: center; gap: 24px; min-height: 80px; color: #000; text-decoration: none; }
.news-side:hover { text-decoration: none; }
.news-side:hover .ns-title { color: var(--primary); }
.ns-title { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Hujjat / vakansiya kartasi */

/* So‘rovnoma */

/* Loyihalar karuseli */
.car-track { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; }
.car-track::-webkit-scrollbar { display: none; }

/* E-urug‘ banneri */
.eurug-banner { color: #fff; padding: 32px; display: grid; gap: 24px; position: relative; overflow: hidden; }
.eurug-banner::after { content: ""; position: absolute; right: -60px; top: -90px; width: 300px; height: 300px; border-radius: 50%; border: 44px solid rgba(255,255,255,.06); }
.eurug-banner h2 { color: #fff; font-size: 1.6rem; margin: 4px 0 0; }
.eurug-banner .kicker { font-weight: 700; letter-spacing: .12em; font-size: .85rem; color: #C4E6CC; }
.eurug-features { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; list-style: none; padding: 0; }
.eurug-features li { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); padding: 8px 14px; font-weight: 500; font-size: .9rem; }
.banner-actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 1024px) {
  .eurug-banner { grid-template-columns: 1fr auto; align-items: center; padding: 40px 48px; }
}

/* Murojaat bloki */
.appeal-box { border: 1px solid var(--line); padding: 24px; }
.appeal-box p { color: var(--muted); }

/* Hududlar xaritasi + panel */
.map-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .map-grid { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
}
.region-map { display: grid; grid-template-columns: repeat(8, 1fr); grid-auto-rows: minmax(64px, auto); gap: 4px; }
.region-tile { border: 1px solid #fff; padding: 8px; font-size: .72rem; font-weight: 600; cursor: pointer; text-align: left; font-family: inherit; line-height: 1.25; transition: background var(--transition), color var(--transition); display: flex; align-items: flex-end; }
@media (max-width: 639px) {
  .region-map { grid-template-columns: repeat(2, 1fr); }
  .region-tile { grid-column: auto !important; grid-row: auto !important; min-height: 52px; }
}
.map-panel, .region-panel { border-bottom: 1px solid var(--heading); }
@media (max-width: 599px) {
  .map-panel, .region-panel { padding: 24px; }
}
.map-panel .sec-title { margin-bottom: 16px; }
.map-panel h3 { color: var(--heading); font-weight: 600; }
.kv { display: grid; margin: 0; }
.kv dt { color: var(--heading); display: flex; gap: 6px; }
.kv dd { margin: 0; border-left: 1px solid var(--heading); }
.na { color: #8A8A8A; font-style: italic; font-weight: 400; }

/* Davlat havolalari va footer */
.site-footer { color: #fff; padding: 32px 0 24px; }
.site-footer a { color: #fff; }
.footer-cols { display: grid; gap: 28px 32px; padding: 8px 0 28px; }
@media (min-width: 700px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .footer-cols { grid-template-columns: 1.15fr 1fr 1.2fr 1fr; }
}
.footer-brand { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 1rem; line-height: 1.35; text-transform: uppercase; text-decoration: none; max-width: 340px; }
.footer-brand img { flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.footer-copy { margin: 28px 0 0; font-size: .9rem; color: rgba(255,255,255,.75); line-height: 1.6; }
.footer-h { margin: 0 0 18px; font-size: 1.15rem; font-weight: 600; color: #fff; text-transform: none; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-list a, .footer-line { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; line-height: 1.45; text-decoration: none; color: #fff; overflow-wrap: anywhere; }
.footer-list a:hover { text-decoration: underline; }
.footer-list .icon { flex: 0 0 20px; margin-top: 1px; opacity: .85; }
.footer-na { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-note { margin: 0; font-size: .85rem; line-height: 1.55; color: rgba(255,255,255,.7); max-width: 300px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }
.socials-grey a { background: #BCBCBC; color: #fff; }
.socials-grey a:hover { background: var(--primary); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 28px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 16px; font-size: .85rem; }
.scroll-top { position: fixed; right: 24px; bottom: 120px; z-index: 110; width: 48px; height: 112px; border: 0; background: var(--primary); color: #fff; cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.scroll-top.show { display: flex; }
@media (max-width: 599px) {
  .scroll-top { height: 48px; right: 16px; bottom: 88px; }
}

/* ---------------- Ichki sahifalar: oq panel + o‘ng menyu ---------------- */
.inner { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 16px; align-items: start; }
@media (min-width: 1100px) {
  .inner.has-menu { grid-template-columns: minmax(0, 1fr) 310px; }
}
.inner-panel { background: #fff; padding: 40px 80px; min-width: 0; }
@media (max-width: 1279px) {
  .inner-panel { padding: 28px 40px; }
}
@media (max-width: 599px) {
  .inner-panel { padding: 20px; }
}
.inner-panel .container { max-width: none; padding: 0; }
.inner-panel .section { padding: 16px 0; }
.inner-panel .section-alt { background: transparent; }
.right-menu { position: sticky; top: 220px; }
.right-menu-title { font-weight: 700; text-transform: uppercase; }
.right-menu a { display: flex; align-items: center; gap: 10px; line-height: 1.4; text-decoration: none; }
@media (max-width: 1099px) {
  .right-menu { position: static; }
}
.has-menu .inner-panel .split-1-2 > aside { display: none; }
@media (min-width: 1024px) {
  .has-menu .inner-panel .split-1-2 { grid-template-columns: 1fr; }
}

/* Sahifa sarlavhasi (breadcrumb + nom) */
.page-hero { background: transparent; padding: 0 0 8px; }
.page-hero h1 { margin: 12px 0 8px; font-size: 1.5rem; font-weight: 700; line-height: 1.55; color: var(--heading); text-transform: uppercase; }
.page-hero.digital, .page-hero.digital h1, .page-hero.digital .lead { background: transparent; color: var(--heading); }
.page-hero .lead { color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; font-size: .75rem; color: #666; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #000; font-size: 1rem; line-height: 1; }
.breadcrumb a { color: var(--heading); font-weight: 700; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------------- Umumiy komponentlar ---------------- */
.section { padding: 32px 0; }
.section-alt { background: transparent; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 75ch; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.split { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
  .split-2-1 { grid-template-columns: 2fr 1fr; align-items: start; }
  .split-1-2 { grid-template-columns: 280px 1fr; align-items: start; }
}
.card { background: #fff; border: 1px solid var(--line); padding: 24px; position: relative; transition: border-color var(--transition), box-shadow var(--transition); }
a.card { text-decoration: none; color: inherit; }
a.card:hover, .card.hoverable:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 8px; font-size: 1rem; font-weight: 700; }
.card h3 a { color: #000; }
.card h3 a:hover { color: var(--primary); }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); border: 1px solid var(--line); margin-bottom: 16px; }
.card-icon.digital { color: var(--primary); }
.card-foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-num { font-size: .8rem; font-weight: 700; color: var(--heading); }
.stretched::after { content: ""; position: absolute; inset: 0; }
.service-card { display: flex; flex-direction: column; }
.service-card h3 { text-transform: uppercase; }
.service-card.is-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.service-card.is-primary p, .service-card.is-primary h3 { color: #fff; }
.service-card.is-primary .card-icon { color: #fff; border-color: rgba(255,255,255,.4); }

/* Yangilik kartasi (ro‘yxat sahifalari) */
.news-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; border: 0; }
.news-cover { aspect-ratio: 16 / 10; background: var(--grey-100); overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.news-card:hover .news-cover img { transform: scale(1.03); }
.news-cover.placeholder { display: flex; align-items: center; justify-content: center; color: #B5B5B5; }
.news-body { position: relative; margin: -40px 16px 0; background: #fff; border: 1px solid var(--line); padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body h3 { font-size: .95rem; font-weight: 600; margin: 0; }
.news-body h3 a { color: #000; text-decoration: none; }
.news-body h3 a:hover { color: var(--primary); }
.news-card:hover { box-shadow: none; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .8125rem; color: var(--muted); }
.meta .icon { color: var(--heading); }
.news-grid { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Chip / badge */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: .75rem; font-weight: 600; background: #fff; color: var(--heading); border: 1px solid var(--line); text-decoration: none; border-radius: 0; }
a.chip:hover { border-color: var(--primary); text-decoration: none; }
.chip-gold { background: #FFF6DD; color: #6B4A0E; border-color: #F1DDB2; }
.chip-blue { background: #E7F2EA; color: var(--primary); border-color: #C6E2CD; }
.chip-gray { background: var(--grey-100); color: var(--muted); }
.chip-red { background: #FDECEA; color: var(--danger); border-color: #F7C9C4; }

/* `hidden` atributi har doim `display` dan ustun turishi kerak */
[hidden] { display: none !important; }
.badge-demo { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; background: #FFF6DD; color: #6B4A0E; border: 1px dashed #D9A441; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; font-size: .72rem; font-weight: 700; background: #E6F4EA; color: var(--success); }
.badge-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .chip { padding: 6px 14px; font-size: .85rem; cursor: pointer; font-family: inherit; }
.filters .chip[aria-current="true"], .filters .chip[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Statistika */
.stat-card { position: relative; display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: 4px; padding: 24px; box-shadow: 0 1px 2px rgba(11,59,31,.04); transition: box-shadow var(--transition), transform var(--transition); }
.stat-card:hover { box-shadow: 0 8px 24px rgba(11,59,31,.10); transform: translateY(-2px); }
.stat-card .stat-ico { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #E8F4EB; color: var(--primary); flex: 0 0 48px; }
.stat-card .stat-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.stat-card.is-empty { border-top-color: #CFCFCF; }
.stat-card.is-empty .stat-ico { background: #F0F0F0; color: #9A9A9A; }
.stat-value { font-size: 2.25rem; font-weight: 700; color: var(--heading); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-value.na { color: #B0B0B0; }
.stat-label { font-weight: 600; text-transform: uppercase; font-size: .8rem; letter-spacing: .03em; color: var(--muted); order: -1; }
.stat-desc { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.stat-card .data-source { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; }
.data-source { font-size: .75rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: auto; }
.data-source span { display: block; }

/* Prose, timeline, side-nav */
.prose { max-width: 80ch; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { margin-top: 1.6em; color: var(--heading); }
.side-nav { background: var(--grey-100); padding: 8px 0; position: sticky; top: 220px; }
.side-nav a { display: block; padding: 10px 16px; color: #6B6B6B; text-decoration: none; }
.side-nav a[aria-current="page"] { background: var(--primary); color: #fff; }
.side-nav a:not([aria-current="page"]):hover { color: var(--primary); }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 28px 44px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.timeline .year { font-weight: 700; color: var(--heading); font-size: 1.1rem; }

/* Hujjatlar ro‘yxati */
.doc-item { display: grid; gap: 12px; padding: 24px; background: #fff; border: 1px solid var(--line); }
.doc-item + .doc-item { margin-top: 16px; }
.doc-item h3 { font-size: 1rem; margin: 0; }
.doc-item h3 a { color: #000; text-decoration: none; }
.doc-item h3 a:hover { color: var(--primary); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 768px) {
  .doc-item { grid-template-columns: 48px 1fr auto; align-items: center; }
}
.doc-icon { width: 48px; height: 48px; color: #9A9A9A; display: none; align-items: center; justify-content: center; }
@media (min-width: 768px) {
  .doc-icon { display: flex; }
}

/* Jadvallar */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--grey-100); font-weight: 700; color: var(--heading); white-space: nowrap; font-size: .78rem; text-transform: uppercase; }
table.data tbody tr:hover { background: var(--grey-50); }
table.data tr:last-child td { border-bottom: 0; }
@media (max-width: 767px) {
  table.responsive thead { display: none; }
  table.responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  table.responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 16px; }
  table.responsive td::before { content: attr(data-label); font-weight: 600; color: var(--muted); }
}

/* Formalar */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 768px) {
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: span 2; }
}
.field label { display: block; font-size: .875rem; margin-bottom: 6px; }
.field .req { color: var(--danger); }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field .error { font-size: .85rem; color: var(--danger); margin-top: 4px; font-weight: 500; }
input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--input-line); border-radius: 0; background: #fff; font: inherit; font-size: .875rem; color: #000; transition: border-color var(--transition), box-shadow var(--transition); }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(23, 128, 61, .15); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.filter-panel { background: transparent; border: 0; padding: 0; margin-bottom: 24px; }
.filter-panel .form-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .filter-panel .form-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .filter-panel .form-grid { grid-template-columns: repeat(4, 1fr); }
}
.filter-actions { display: flex; gap: 8px; align-items: end; }
.hp { position: absolute; left: -10000px; }

/* Ogohlantirishlar va holatlar */
.alert { display: flex; gap: 12px; padding: 16px; border: 1px solid; border-left-width: 3px; margin-bottom: 20px; }
.alert-info { background: #EEF6F0; border-color: var(--primary); color: var(--primary-700); }
.alert-warn { background: #FFF6DD; border-color: #D9A441; color: #6B4A0E; }
.alert-error { background: #FDECEA; border-color: var(--danger); color: var(--danger); }
.alert-success { background: #E6F4EA; border-color: var(--success); color: #13532A; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); }
.empty-state .icon { margin: 0 auto 12px; color: #C4C4C4; }
.skeleton { background: linear-gradient(90deg, #EEE 25%, #F7F7F7 50%, #EEE 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; min-height: 20px; }
.offline-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 500; background: var(--danger); color: #fff; text-align: center; padding: 8px; font-weight: 600; display: none; }
.offline .offline-banner { display: block; }

/* Sahifalash */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); background: #fff; color: #000; text-decoration: none; font-weight: 500; }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination [aria-current="page"] { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Akkordeon (FAQ) */
.accordion { border: 1px solid var(--line); background: #fff; }
.accordion details + details { border-top: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-left: 3px solid transparent; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--grey-50); }
.accordion details[open] summary { color: var(--primary); border-left-color: var(--primary); }
.accordion details[open] summary .icon { transform: rotate(180deg); }
.accordion .acc-body { padding: 0 20px 20px 23px; color: var(--muted); }

/* Tablar */
.tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 24px; scrollbar-width: thin; }
.tabs a, .tabs button { padding: 12px 18px; white-space: nowrap; color: #000; text-decoration: none; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; text-transform: uppercase; }
.tabs a:hover, .tabs button:hover { color: var(--primary); }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { background: var(--primary); color: #fff; }

/* Urug‘chilik jarayoni */
.journey { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .journey { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .journey { grid-template-columns: repeat(6, 1fr); }
}
.journey-step { position: relative; text-align: left; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--primary); padding: 16px; cursor: pointer; font: inherit; color: #000; transition: all var(--transition); opacity: 0; transform: translateY(12px); }
.journey-step.visible { opacity: 1; transform: none; }
.journey-step .n { font-size: .75rem; font-weight: 700; color: var(--heading); }
.journey-step strong { display: block; font-size: .9rem; margin-top: 4px; text-transform: uppercase; font-weight: 600; }
.journey-step[aria-expanded="true"], .journey-step:hover { background: var(--primary); color: #fff; }
.journey-step[aria-expanded="true"] .n, .journey-step:hover .n { color: #fff; }
.journey-step.hl { background: #EEF6F0; }
.journey-detail { margin-top: 16px; padding: 20px; background: var(--grey-50); border-top: 1px solid var(--heading); border-bottom: 1px solid var(--heading); min-height: 72px; }
.journey-detail strong { color: var(--heading); }

/* Grafiklar */
.chart-card { background: #fff; border: 1px solid var(--line); padding: 24px; }
.chart { width: 100%; min-height: 280px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 70px; gap: 12px; align-items: center; font-size: .82rem; margin-bottom: 6px; }
.bar-track { background: var(--grey-100); height: 18px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); width: 0; transition: width 700ms cubic-bezier(.2,.7,.2,1); }
.chart.demo .bar-fill { background: repeating-linear-gradient(45deg, #9DCBA9, #9DCBA9 6px, #C0DEC8 6px, #C0DEC8 12px); }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.donut-wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.legend { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.legend li { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.legend i { width: 12px; height: 12px; display: inline-block; }

/* Taqvim */
.calendar { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.calendar th { font-size: .75rem; color: var(--muted); font-weight: 600; padding: 4px; text-transform: uppercase; }
.calendar td { background: #fff; border: 1px solid var(--line); height: 72px; vertical-align: top; padding: 6px; font-size: .8rem; }
.calendar td.empty { background: transparent; border: 0; }
.calendar td.today { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.calendar td.has-event { background: #EEF6F0; }
.calendar .day { font-weight: 700; }
.calendar .ev { display: block; margin-top: 4px; font-size: .7rem; background: var(--primary); color: #fff; padding: 2px 6px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 639px) {
  .calendar td { height: 48px; }
  .calendar .ev { display: none; }
  .calendar td.has-event .day::after { content: "•"; color: var(--primary); margin-left: 2px; }
}
.event-item { display: flex; gap: 24px; align-items: center; padding: 16px 24px; background: #fff; border: 1px solid var(--line); }
.event-item + .event-item { margin-top: 12px; }
.event-date { flex-shrink: 0; width: 56px; text-align: center; color: var(--accent-date); line-height: 1.1; }
.event-date b { display: block; font-size: 1.5rem; }
.event-date small { font-size: .7rem; font-weight: 700; }
.event-item h3 a { color: #000; }

/* So‘rovnoma (ichki sahifa) */
.survey-option { display: block; margin-bottom: 12px; }
.progress { height: 10px; background: var(--grey-100); overflow: hidden; margin-top: 6px; }
.progress span { display: block; height: 100%; background: var(--primary); }

/* Media */
.media-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) {
  .media-grid { grid-template-columns: repeat(4, 1fr); }
}
.media-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey-100); display: block; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(23, 128, 61, .25); }
.video-frame { aspect-ratio: 16 / 9; width: 100%; border: 0; background: #000; }

/* Tashkiliy tuzilma */
.org { display: flex; flex-direction: column; align-items: center; gap: 0; }
.org-node { background: #fff; border: 2px solid var(--primary); padding: 14px 20px; font-weight: 600; text-align: center; max-width: 420px; text-transform: uppercase; font-size: .9rem; }
.org-node.top, .org-node.main { background: var(--primary); color: #fff; }
.org-line { width: 2px; height: 28px; background: var(--primary); }
.org-children { display: grid; gap: 12px; width: 100%; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 8px; }
.org-children a, .org-children div { display: block; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--primary); padding: 12px 14px; text-decoration: none; color: #000; font-size: .9rem; }
.org-children a:hover { border-color: var(--primary); color: var(--primary); }

/* Rahbar kartasi */
.person { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .person { grid-template-columns: 220px 1fr; }
}
.person-photo { aspect-ratio: 3 / 4; background: var(--grey-100); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #B5B5B5; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { color: var(--heading); font-size: 1.3rem; font-weight: 600; }

/* Hamkorlar */
.partners { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) {
  .partners { grid-template-columns: repeat(5, 1fr); }
}
.partner { display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 16px; background: #fff; border: 1px solid var(--line); text-align: center; font-size: .8rem; color: var(--heading); text-transform: uppercase; text-decoration: none; }
.partner img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .8; transition: all var(--transition); }
.partner:hover img { filter: none; opacity: 1; }

/* Eski murojaat CTA (ichki sahifalarda) */

/* Maxsus imkoniyatlar paneli, cookie, yordam vidjeti */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 24px; z-index: 150; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 16px; display: none; gap: 12px; align-items: center; font-size: .88rem; max-width: 720px; margin: 0 auto; }
.cookie.show { display: flex; flex-wrap: wrap; }
.help-fab { position: fixed; right: 24px; bottom: 24px; z-index: 120; }
@media (max-width: 599px) {
  .help-fab { right: 16px; bottom: 16px; }
}
.help-fab > button { border-radius: 24px; box-shadow: var(--shadow-lg); }
.help-box { position: absolute; right: 0; bottom: 56px; width: min(92vw, 360px); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; overflow: hidden; }
.help-box.open { display: block; animation: slideUp 200ms ease; }
.help-head { background: var(--primary); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.help-head .icon-btn { width: 32px; height: 32px; background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.help-body { padding: 16px; max-height: 380px; overflow-y: auto; font-size: .88rem; }
.help-body .opt { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--primary); margin-bottom: 8px; text-decoration: none; color: #000; }
.help-body .opt:hover { border-color: var(--primary); }
.msg { padding: 10px 12px; margin: 8px 0; }
.msg.me { background: #EEF6F0; margin-left: 32px; }
.msg.bot { background: var(--grey-100); margin-right: 32px; }
.msg.bot a { word-break: break-word; }
.help-form { display: flex; gap: 8px; border-top: 1px solid var(--line); padding: 12px; }

/* 404 */
.error-page { text-align: center; padding: 64px 16px; }
.error-code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; color: var(--grey-100); line-height: 1; -webkit-text-stroke: 2px var(--primary); }

/* Yordamchi klasslar */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.small { font-size: .85rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal, .no-js .journey-step { opacity: 1; transform: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulse { 50% { opacity: .35; } }
@media print {
  .site-header, .help-fab, .cookie, .site-footer, .gov-links, .right-menu, .scroll-top, .no-print { display: none !important; }
  body { background: #fff; padding: 0; }
  .inner-panel { box-shadow: none; padding: 0; }
  a { color: #000; }
}

/* ---------------- Urug‘chilik xaritasi ---------------- */
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; font-size: .85rem; }
.heat-scale { display: inline-flex; }
.heat-scale i, .heat-none i { display: inline-block; width: 28px; height: 14px; }
.heat-none { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.seed-map .region-tile, .heat-scale i, .heat-none i { transition: background var(--transition); }
.seed-map .region-tile { align-items: stretch; }
.seed-map .region-tile > span { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; width: 100%; }
.tile-value { font-size: .78rem; font-weight: 700; }
.heat-0 { background: #E4E4E4; color: #555; }
.heat-1 { background: #DDEEE1; color: #0C2E18; }
.heat-2 { background: #9ED0AA; color: #0C2E18; }
.heat-3 { background: #4E9E62; color: #fff; }
.heat-4 { background: #17803D; color: #fff; }
.seed-map .region-tile:hover { filter: brightness(.95); }
.seed-map .region-tile[aria-pressed="true"] { outline: 3px solid var(--focus); outline-offset: -3px; }
.zone-group { margin: 10px 0 14px; }
.zone-badge { display: inline-block; padding: 3px 10px; font-size: .75rem; font-weight: 700; border-left: 3px solid; background: #fff; }
.zone-recommended .zone-badge, .zone-badge.zone-recommended { border-color: var(--success); color: var(--success); }
.zone-conditional .zone-badge, .zone-badge.zone-conditional { border-color: #B7791F; color: #8A5A12; }
.zone-not_recommended .zone-badge, .zone-badge.zone-not_recommended { border-color: var(--danger); color: var(--danger); }
.zone-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.zone-list li { padding: 6px 10px; background: #fff; border: 1px solid var(--line); }
.zone-list small { color: var(--muted); }

/* ---------------- O‘simlik urug‘lari katalogi ---------------- */
.variety-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .variety-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .variety-grid { grid-template-columns: repeat(3, 1fr); }
}
.variety-card { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--line); border-left: 3px solid var(--primary); background: #fff; color: #000; text-decoration: none; min-width: 0; }
.variety-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); text-decoration: none; }
.vc-img { width: 88px; height: 88px; flex-shrink: 0; background: var(--grey-100); display: flex; align-items: center; justify-content: center; color: #9DB8A4; overflow: hidden; }
.vc-img img { width: 100%; height: 100%; object-fit: cover; }
.vc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vc-crop { color: var(--muted); font-size: .75rem; text-transform: uppercase; }
.vc-name { color: var(--heading); font-size: 1.05rem; }
.vc-facts { display: flex; gap: 18px; font-size: .85rem; }
.vc-facts small { display: block; color: var(--muted); font-size: .72rem; }
.vc-rating { font-size: .8rem; }
.vc-regions { display: flex; flex-wrap: wrap; gap: 4px; }
.vc-regions i { font-style: normal; font-size: .7rem; padding: 1px 6px; background: #E6F4EA; color: var(--success); }
.stars { color: #E0A100; letter-spacing: 1px; }
.variety-head { display: grid; gap: 24px; align-items: start; }
@media (min-width: 768px) {
  .variety-head { grid-template-columns: 240px 1fr; }
}
.vh-img { aspect-ratio: 1; background: var(--grey-100); display: flex; align-items: center; justify-content: center; color: #9DB8A4; overflow: hidden; }
.vh-img img { width: 100%; height: 100%; object-fit: cover; }
.review { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--primary); margin-bottom: 10px; background: #fff; }

/* =====================================================================
   Interaktiv statistika paneli (dashboard)
   Ma’lumot bir marta olinadi, yil/ko‘rinish/saralash brauzerda almashadi.
   ===================================================================== */
.dash-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--primary); padding: 20px 24px 24px; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dash-title h3 { margin: 0; color: var(--heading); font-size: 1rem; text-transform: uppercase; letter-spacing: .02em; }
.dash-hint { margin: 6px 0 0; font-size: .8rem; color: var(--muted); max-width: 46ch; }
.dash-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dash-tools-2 { justify-content: space-between; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }

/* Segmentli tugmalar */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--input-line); background: #fff; }
.seg-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; font: inherit; font-size: .82rem; font-weight: 600; color: var(--heading); background: transparent; border: 0; border-right: 1px solid var(--input-line); cursor: pointer; }
.seg-btn:last-child { border-right: 0; }
.seg-btn:hover { background: var(--grey-50); }
.seg-btn[aria-pressed="true"] { background: var(--primary); color: #fff; }
.seg-btn .icon { opacity: .85; }
.seg-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.dash-sort { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.dash-sort select { font: inherit; font-size: .82rem; padding: 6px 10px; border: 1px solid var(--input-line); background: #fff; color: var(--text); }

/* KPI plitalari */
.dash-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 18px; }
@media (min-width: 720px) {
  .dash-kpis { grid-template-columns: repeat(4, 1fr); }
}
.kpi { background: #fff; padding: 14px 16px; min-width: 0; }
.kpi-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.kpi-value { display: block; font-size: 1.45rem; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-sub { display: block; font-size: .75rem; color: var(--muted-2); margin-top: 2px; }
.kpi-trend { font-weight: 600; }
.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--danger); }

/* Grafik maydoni */
.dash-body { display: grid; gap: 20px; margin-top: 20px; align-items: start; }
@media (min-width: 980px) {
  .dash-body.has-aside { grid-template-columns: 1fr 280px; }
}
.dash-plot { min-height: 320px; position: relative; }
.dash-plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.dash-plot .bar { fill: var(--primary); transition: fill 150ms, opacity 150ms; cursor: pointer; }
.dash-plot .bar:hover, .dash-plot .bar:focus-visible { fill: var(--footer); outline: none; }
.dash-plot .bar.dim { opacity: .3; }
.dash-plot .bar.on { fill: var(--focus); }
.dash-demo .bar { fill: url(#dashHatch); }
.dash-demo .bar.on { fill: var(--focus); }
.dash-plot .grid-line { stroke: var(--line); stroke-width: 1; }
.dash-plot .axis-text { font-size: 11px; fill: var(--muted); }
.dash-plot .val-text { font-size: 11px; font-weight: 700; fill: var(--heading); font-variant-numeric: tabular-nums; }
.dash-plot .hit { fill: transparent; cursor: pointer; }
.dash-plot .slice { cursor: pointer; transition: opacity 150ms; }
.dash-plot .slice:hover, .dash-plot .slice.on { opacity: .82; }
.dash-plot .line-path { fill: none; stroke: var(--primary); stroke-width: 2.5; }
.dash-plot .line-area { fill: var(--tint); opacity: .55; }
.dash-plot .dot { fill: #fff; stroke: var(--primary); stroke-width: 2.5; }

/* Tooltip */
.dash-tip { position: absolute; z-index: 5; pointer-events: none; background: #fff; border: 1px solid var(--primary); box-shadow: var(--shadow-lg); padding: 8px 11px; font-size: .8rem; color: var(--text); max-width: 230px; transform: translate(-50%, -100%); }
.dash-tip b { display: block; color: var(--heading); margin-bottom: 2px; }
.dash-tip span { color: var(--muted); }

/* Yon panel: tanlangan hudud */
.dash-aside { border: 1px solid var(--line); padding: 14px 16px; background: var(--grey-50); }
.dash-aside h4 { margin: 0 0 2px; font-size: .95rem; color: var(--heading); }
.dash-aside dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 12px 0 0; font-size: .82rem; }
.dash-aside dt { color: var(--muted); }
.dash-aside dd { margin: 0; font-weight: 700; color: var(--heading); font-variant-numeric: tabular-nums; }
.dash-aside .spark { margin-top: 12px; }
.dash-clear { margin-top: 12px; font-size: .78rem; background: none; border: 0; padding: 0; color: var(--primary); cursor: pointer; font-family: inherit; text-decoration: underline; }

/* Jadval ko‘rinishi */
.dash-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.dash-table th, .dash-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.dash-table th { background: var(--grey-50); color: var(--heading); font-size: .75rem; text-transform: uppercase; }
.dash-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.dash-table tr.on td { background: #FFF6DD; }
.dash-source { margin-top: 16px; }
.dash-compact .dash-kpis { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) {
  .dash-compact .dash-kpis { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .dash-plot .bar, .dash-plot .slice { transition: none; }
}
html.contrast .seg, html.contrast .kpi, html.contrast .dash-aside { border: 2px solid #000 !important; }
.dash-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.dash-scroll svg { max-width: none; }
@media (max-width: 560px) {
  .kpi { padding: 10px 11px; }
  .kpi-value { font-size: 1.1rem; }
  .kpi-label { font-size: .66rem; }
  .dash-card { padding: 16px 14px 20px; }
  .dash-tools-2 { gap: 12px; }
}

/* ---------------- Logotip animatsiyasi: halqa chiziladi, belgi o‘sib chiqadi, nom ketma-ket paydo bo‘ladi ---------------- */
@property --logo-reveal { syntax: "<angle>"; inherits: false; initial-value: 360deg; }
@keyframes logo-draw { from { --logo-reveal: 0deg; } to { --logo-reveal: 360deg; } }
@keyframes logo-grow { from { transform: scale(.82) rotate(-8deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes logo-text { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .site-header .brand-logo { -webkit-mask-image: conic-gradient(#000 var(--logo-reveal), transparent calc(var(--logo-reveal) + 1deg)); mask-image: conic-gradient(#000 var(--logo-reveal), transparent calc(var(--logo-reveal) + 1deg)); animation: logo-grow .7s cubic-bezier(.2,.8,.2,1) both, logo-draw 1.3s cubic-bezier(.45,0,.2,1) .1s both; }
  .site-header .brand-name { animation: logo-text .6s ease-out 1s both; }
}

/* ---------------- Hududlar xaritasi (SVG, haqiqiy chegaralar) ---------------- */
.uzmap { --uzmap-land: #D5E6D8; --uzmap-edge: #fff; --uzmap-hover: #9FCFAA; --uzmap-active: var(--primary); --uzmap-cap: #f2b134; --uzmap-cap-edge: #8a5a0d; --uzmap-text: #14261A; --uzmap-halo: #fff; --uzmap-focus: #b45f17; width: 100%; }
.uzmap svg { display: block; width: 100%; height: auto; }
.uzmap .uzmap-rg { fill: var(--uzmap-land); stroke: var(--uzmap-edge); stroke-width: 1.2; cursor: pointer; transition: fill .14s ease; }
.uzmap .uzmap-rg:hover { fill: var(--uzmap-hover); }
.uzmap svg :focus, .uzmap svg :focus-visible { outline: none; }
.uzmap .uzmap-rg:focus-visible { stroke: var(--uzmap-focus); stroke-width: 2.2; }
.uzmap .uzmap-rg.is-active { fill: var(--uzmap-active); }
.uzmap .uzmap-cap { fill: var(--uzmap-cap); stroke: var(--uzmap-cap-edge); stroke-width: 1.2; pointer-events: none; }
.uzmap .uzmap-cap-label { font: 600 13px/1 var(--font, "Montserrat", Arial, sans-serif); fill: var(--uzmap-text); pointer-events: none; paint-order: stroke; stroke: var(--uzmap-halo); stroke-width: 3.5px; stroke-linejoin: round; }
@media (max-width: 700px) {
  .uzmap .uzmap-cap-label { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .uzmap .uzmap-rg { transition: none; }
}
.media-thumb img[src*="ytimg.com"] { transform: scale(1.34); } /* YouTube hqdefault: qora yo‘laklarni kesib tashlaydi */

/* =====================================================================
   Yorqin mavzu (agroilm.uz uslubi): yumaloq burchaklar, yengil soyalar,
   hover’da ko‘tarilish. Tuzilma digital.uz bo‘yicha.
   ===================================================================== */
body { background: #FBFDFB; }

/* Header va menyu */

/* Tugmalar */
.btn { transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition); }
.btn-primary:hover, .btn-digital:hover { box-shadow: 0 8px 18px rgba(23, 128, 61, .28); transform: translateY(-1px); }
.btn-light { border-color: #F0F0F0; }

/* Bo‘lim sarlavhalari: ostida rangli chiziq */
.sec-title, .page-hero h1 { position: relative; padding-bottom: 8px; }
.sec-title::after, .page-hero h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--primary), #4CBF6B); }
.block-grey { background: var(--grey-50); }

/* Kartalar: oq, yumaloq, soya, hover’da ko‘tariladi */
.card, .appeal-box, .accordion, .nb-body { border-color: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card, .news-big, .media-thumb { transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease; }
a.card:hover, .card.hoverable:hover { transform: var(--lift); box-shadow: var(--shadow-lg); border-color: rgba(23, 128, 61, .35); }
.card h3 a, .nb-head h3 a, .ns-title { color: var(--title); }
.accordion { overflow: hidden; }

/* Yangiliklar */
.nb-img { border-radius: var(--radius) var(--radius) 0 0; position: relative; }
.nb-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(18,48,28,.35)); pointer-events: none; }
.nb-ph { background: linear-gradient(135deg, #E4F3E8, #F6F8F7); color: #9CCBA8; }
.news-big:hover { transform: var(--lift); }
.news-big:hover .nb-body { box-shadow: var(--shadow-lg); }
.nb-date b, .date-badge b { color: var(--primary); }
.news-side { padding: 10px 12px; border-radius: var(--radius); transition: background var(--transition); }
.news-side:hover { background: var(--grey-100); }

/* Foto/video */
.media-thumb { border-radius: var(--radius); }
.media-thumb:hover { transform: var(--lift); box-shadow: var(--shadow-lg); }

/* E-urug‘ banneri */
.eurug-banner { border-radius: var(--radius-lg); background: linear-gradient(115deg, #0F5A2B 0%, #17803D 55%, #4CBF6B 100%); box-shadow: 0 16px 36px rgba(23, 128, 61, .25); }

/* Xarita va panel */
.region-tile { background: #DDEEE1; color: var(--title); border-radius: 6px; }
.region-tile:hover { background: #C2E3CA; }
.region-tile.city { background: #CFE8D5; }
.region-tile[aria-pressed="true"] { background: var(--primary); color: #fff; }
.map-panel, .region-panel { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Ichki sahifalar */
.inner-panel { border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* Foydali havolalar va footer */
.site-footer { background: linear-gradient(135deg, #12301C 0%, #0F5A2B 55%, #17803D 100%); }
.scroll-top { border-radius: 24px; }

/* Yuqori kontrast rejimida yorqin effektlarni o‘chirish */
html.contrast { --shadow: none; --shadow-lg: none; --lift: none; --nav-bg: #fff; }
html.contrast .site-footer, html.contrast .eurug-banner, html.contrast .right-menu a.active { background: #000; }
html.contrast .nb-img::after, html.contrast .sec-title::after, html.contrast .page-hero h1::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  :root { --lift: none; }
}

/* Hududiy boshqarma paneli: yorliq tepada, qiymat pastda — tor joyda ham chiroyli (2026-10-16) */
.map-panel, .region-panel { padding: 28px; min-width: 0; }
.map-panel .sec-title { font-size: 1.25rem; }
.map-panel h3 { font-size: 1.2rem; margin-bottom: 12px; }
.map-panel .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
.map-panel .kv dt { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.map-panel .kv dt:first-of-type { border-top: 0; padding-top: 0; }
.map-panel .kv dt .icon { color: var(--primary); }
.map-panel .kv dd { padding: 4px 0 12px 20px; border-left: 0; color: var(--title); font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.kv dd a[href^="tel:"] { white-space: nowrap; }
@media (min-width: 1024px) {
  .inner-panel .map-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
}

/* Kalit–qiymat ro‘yxatlari (.kv): yorliq ustuni panel kengligining 42% idan oshmaydi,
   qiymat qolgan joyni oladi — tor kartalarda ham matn so‘zma-so‘z sinmaydi (2026-10-16) */
.kv { grid-template-columns: fit-content(42%) minmax(0, 1fr); gap: 10px 16px; align-items: start; }
.kv dt { align-items: flex-start; line-height: 1.45; overflow-wrap: break-word; }
.kv dt .icon { margin-top: 3px; }
.kv dd { padding-left: 16px; line-height: 1.45; overflow-wrap: break-word; min-width: 0; }
.kv dd a[href^="mailto:"] { overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .kv:not(.map-panel .kv) { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv:not(.map-panel .kv) dd { padding-left: 0; border-left: 0; margin-bottom: 10px; }
}

/* O‘ng menyu (agroilm.uz uslubi): ko‘k sarlavha, yumaloq bandlar, faol band to‘q ko‘k */
.right-menu { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 0 10px; box-shadow: var(--shadow-lg); overflow: hidden; }
.right-menu-title { margin: 0 0 8px; padding: 16px 20px; background: linear-gradient(135deg, #17803D 0%, #0F5A2B 100%); color: #fff; font-size: .85rem; letter-spacing: .02em; }
.right-menu a { margin: 2px 8px; padding: 9px 12px; border-radius: 10px; color: #344238; font-size: .95rem; transition: background var(--transition), color var(--transition); }
.right-menu a .icon { color: #8A9A8E; transition: transform var(--transition), color var(--transition); }
.right-menu a:hover { background: var(--grey-100); color: var(--primary); text-decoration: none; }
.right-menu a:hover .icon { color: var(--primary); transform: translateX(2px); }
.right-menu a.active { background: linear-gradient(90deg, #0F5A2B, #1B8A42); color: #fff; font-weight: 700; box-shadow: 0 6px 14px rgba(15, 90, 43, .25); }
.right-menu a.active .icon { color: #fff; }
html.contrast .right-menu-title, html.contrast .right-menu a.active { background: #000; }

/* =====================================================================
   Header (agroilm.uz uslubi): yuqori panel, asosiy qator, menyu
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 14px rgba(18, 48, 28, .08); }

/* 1. Yuqori panel */
.topbar { border-bottom: 1px solid var(--line); font-size: .9rem; }
.topbar-in { display: flex; align-items: stretch; min-height: 56px; }
.gov-orgs { position: relative; display: flex; }
.gov-orgs-btn { display: inline-flex; align-items: center; gap: 14px; padding: 0 22px; border: 0; background: var(--primary-700); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gov-orgs-btn:hover { background: var(--footer); }
.gov-orgs-arrow { display: inline-flex; width: 28px; height: 28px; border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 50%; align-items: center; justify-content: center; transition: transform var(--transition); }
.gov-orgs-btn[aria-expanded="true"] .gov-orgs-arrow { transform: rotate(90deg); }
.gov-orgs-list { position: absolute; left: 0; top: 100%; z-index: 90; width: 360px; display: none; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); }
.gov-orgs-list.open { display: grid; gap: 2px; }
.gov-orgs-list a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-btn); color: var(--title); font-size: .88rem; line-height: 1.35; text-decoration: none; }
.gov-orgs-list a:hover { background: var(--grey-100); color: var(--primary); }
.gov-orgs-list img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.topbar-portal { display: flex; align-items: center; gap: 12px; padding: 0 22px; border-right: 1px solid var(--line); color: var(--title); line-height: 1.25; text-decoration: none; max-width: 300px; }
.topbar-portal span:not(.sr-only) { padding-left: 12px; border-left: 3px solid; border-image: linear-gradient(#1EB4E7 0 33%, #fff 33% 66%, var(--success) 66%) 1; }
.topbar-portal:hover { color: var(--primary); text-decoration: none; }
.topbar-portal img { width: 36px; height: 28px; object-fit: contain; }
.topbar-right { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.topbar-phone { display: flex; align-items: center; gap: 10px; color: var(--primary); }
.topbar-phone small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.2; }
.topbar-phone a { font-weight: 700; color: var(--title); white-space: nowrap; }
.topbar-clock { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 190px; }
.lang-menu { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: #fff; color: var(--title); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.lang-btn:hover { border-color: var(--primary); color: var(--primary); }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 90; display: none; min-width: 110px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-btn); box-shadow: var(--shadow-lg); }
.lang-list.open { display: block; }
.lang-list a { display: block; padding: 7px 12px; border-radius: 6px; color: var(--title); font-size: .9rem; }
.lang-list a:hover { background: var(--grey-100); text-decoration: none; }
.lang-list a[aria-current="true"] { color: var(--primary); font-weight: 700; }

/* 2. Asosiy qator */
.header-main { display: flex; align-items: center; gap: 20px; min-height: 96px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--heading); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 64px; height: 64px; flex-shrink: 0; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--primary); }
.brand-name { max-width: 360px; font-size: 1.12rem; font-weight: 800; line-height: 1.2; text-transform: uppercase; color: var(--heading); }
.header-search { position: relative; display: flex; align-items: center; gap: 10px; width: 280px; height: 46px; margin-left: auto; padding: 0 10px 0 16px; border: 1px solid var(--line); border-radius: 24px; background: #fff; color: var(--muted); transition: border-color var(--transition), box-shadow var(--transition); }
.header-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(23, 128, 61, .12); }
.header-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: .92rem; outline: none; color: var(--title); }
.header-search kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: .8rem; color: var(--muted); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70; display: none; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.suggest.open { display: block; }
.suggest a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; color: var(--title); text-decoration: none; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--grey-100); }
.suggest small { color: var(--muted); white-space: nowrap; }
.header-socials { display: flex; gap: 10px; }
.header-socials a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--tint); color: var(--primary-700); transition: background var(--transition), color var(--transition), transform var(--transition); }
.header-socials a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.a11y-wrap { position: relative; }
.a11y-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border: 2px solid var(--primary-700); border-radius: 24px; background: #fff; color: var(--primary-700); font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background var(--transition), color var(--transition); }
.a11y-btn:hover, .a11y-btn[aria-expanded="true"] { background: var(--primary-700); color: #fff; }
.a11y-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; display: none; width: 260px; padding: 12px; background: #fff; color: #000; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.a11y-panel.open { display: grid; gap: 8px; }
.a11y-panel button { justify-content: flex-start; width: 100%; }
.tool-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--tint); color: var(--primary-700); cursor: pointer; }
.search-link, .menu-toggle { display: none; }

/* 3. Asosiy menyu: yashil panel, oq yozuv, faol band oq fonda */
.main-nav { display: none; background: linear-gradient(90deg, var(--footer) 0%, var(--primary-700) 45%, var(--primary) 100%); }
.nav-bar { display: flex; align-items: center; gap: 8px; min-height: 56px; }
.nav-home { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; }
.nav-home:hover { background: #fff; color: var(--primary-700); }
.nav-list { display: flex; flex: 1; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 22px; background: none; color: #fff; font: inherit; font-size: .84rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; cursor: pointer; line-height: 1.4; transition: background var(--transition), color var(--transition); }
.nav-link::after { content: ""; margin-top: 2px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; transition: transform var(--transition); }
.nav-link:hover { background: rgba(255, 255, 255, .14); }
.nav-item.open > .nav-link, .nav-item.current > .nav-link { background: #fff; color: var(--primary-700); }
.nav-item.open > .nav-link::after { transform: rotate(180deg); }
.dropdown { position: absolute; left: 0; top: calc(100% + 8px); z-index: 60; display: none; width: 320px; padding: 8px; background: #fff; border-top: 3px solid var(--primary); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.nav-item.open > .dropdown { display: block; animation: slideUp 160ms ease; }
.dropdown a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius-btn); color: var(--title); font-size: .95rem; text-decoration: none; }
.dropdown a .icon { color: #9AA59D; transition: transform var(--transition), color var(--transition); }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--grey-100); color: var(--primary); }
.dropdown a:hover .icon { color: var(--primary); transform: translateX(2px); }
.nav-eurug { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 22px; background: var(--wheat); color: #2B2100; font-size: .84rem; font-weight: 800; white-space: nowrap; text-decoration: none; }
.nav-eurug:hover { background: #F2B526; color: #2B2100; text-decoration: none; }

@media (min-width: 1100px) { .main-nav { display: block; } }
@media (max-width: 1399px) { .topbar-clock { display: none; } .header-socials { display: none; } }
@media (max-width: 1099px) {
  .topbar-portal, .topbar-phone { display: none; }
  .header-search { display: none; }
  .search-link, .menu-toggle { display: inline-flex; }
  .a11y-btn { width: 42px; height: 42px; padding: 0; justify-content: center; border-width: 0; background: var(--tint); }
  .a11y-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .header-main { gap: 10px; min-height: 76px; }
  .brand-logo { width: 52px; height: 52px; }
  .brand-name { font-size: .95rem; }
}
@media (max-width: 599px) {
  .topbar-in { min-height: 44px; }
  .gov-orgs-btn { padding: 0 14px; font-size: .82rem; gap: 10px; }
  .gov-orgs-arrow { width: 24px; height: 24px; }
  .gov-orgs-list { width: min(92vw, 360px); }
  .brand-kicker { font-size: .6rem; }
  .brand-name { font-size: .78rem; }
  .brand-logo { width: 44px; height: 44px; }
  .tool-btn, .a11y-btn { width: 38px; height: 38px; }
}

/* =====================================================================
   Foydali havolalar (agroilm.uz uslubi): ikonka, nom, domen, strelka
   ===================================================================== */
.gov-links { margin-top: 40px; padding: 48px 0; background: var(--grey-50); }
.gov-links .sec-head { gap: 24px; margin-bottom: 28px; }
.gov-links .sec-title { display: flex; flex: 1; align-items: center; gap: 24px; padding-bottom: 0; font-size: 1.9rem; }
.gov-links .sec-title::after { position: static; order: 2; flex: 1; width: auto; height: 1px; background: var(--line); }
.gov-links .sec-title::before { content: ""; order: 1; flex-shrink: 0; width: 9px; height: 9px; margin-left: -12px; border-radius: 50%; background: var(--primary-300); }
.gov-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .gov-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .gov-grid { grid-template-columns: repeat(3, 1fr); } }
.gov-card { display: flex; align-items: center; gap: 20px; min-height: 140px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--title); text-decoration: none; transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease; }
.gov-card:hover { transform: var(--lift); box-shadow: var(--shadow-lg); border-color: rgba(23, 128, 61, .35); text-decoration: none; }
.gov-ico { display: flex; flex: 0 0 96px; width: 96px; height: 96px; align-items: center; justify-content: center; border-radius: 14px; background: var(--grey-100); }
.gov-ico img { width: 64px; height: 56px; object-fit: contain; }
.gov-text { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.gov-text strong { font-size: 1.12rem; font-weight: 700; line-height: 1.35; color: var(--heading); }
.gov-text small { font-size: .95rem; font-weight: 500; color: var(--primary); }
.gov-arrow { flex-shrink: 0; color: #9AA59D; transition: color var(--transition), transform var(--transition); }
.gov-card:hover .gov-arrow { color: var(--primary); transform: translate(2px, -2px); }
@media (max-width: 599px) {
  .gov-links .sec-title { font-size: 1.3rem; }
  .gov-card { min-height: 0; padding: 16px; gap: 14px; }
  .gov-ico { flex-basis: 64px; width: 64px; height: 64px; }
  .gov-ico img { width: 44px; height: 40px; }
  .gov-text strong { font-size: .98rem; }
}
html.contrast .main-nav, html.contrast .gov-orgs-btn { background: #000; }
