/* ============================================================
   RMAB — Republika maxsus aloqa bog'lamasi
   Theme: Gold + Dark (brand-true)
   ============================================================ */

:root {
  /* Palette adapted from parliament.gov.uz — deep blue + amber accent */
  --dark:      #004387;  /* primary navy (header bars, footer, icons) */
  --dark-2:    #0a4aa8;  /* mid blue */
  --dark-3:    #0d5bbf;  /* brighter blue (gradient ends) */
  --gold:      #ffc107;  /* amber accent (parliament accent) */
  --gold-d:    #e0a800;
  --gold-soft: #fff8e1;
  --bg:        #ffffff;
  --bg-soft:   #f3f6fb;  /* cool light-blue gray */
  --text:      #1a2230;
  --muted:     #5b6472;
  --border:    #dde4ee;
  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 6px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.14);
  --maxw:      1200px;
  --t:         .25s ease;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4 { margin: 0; line-height: 1.2; font-weight: 800; }
p { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }
.text-gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: var(--t);
  white-space: nowrap;
}
.btn--lg { padding: .9rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: #1a2230; }
.btn--gold:hover { background: var(--gold-d); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,193,7,.35); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: var(--dark-3); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn--ghost-dark { background: transparent; color: var(--dark); border-color: var(--border); }
.btn--ghost-dark:hover { border-color: var(--gold); color: var(--gold-d); }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark); color: #cfcfcf; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar__contacts { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; color: #cfcfcf; transition: color var(--t); }
.topbar__item:hover { color: var(--gold); }
.topbar__tools { display: flex; align-items: center; gap: 14px; }
.a11y, .lang { display: flex; align-items: center; gap: 4px; }
.a11y__btn, .lang__btn {
  background: var(--dark-3); color: #ddd; border: none; cursor: pointer;
  padding: 3px 8px; border-radius: 6px; font-size: .78rem; font-weight: 600; transition: var(--t);
}
.a11y__btn--lg { font-size: .9rem; }
.a11y__btn:hover, .lang__btn:hover { background: var(--gold); color: var(--dark); }
.lang__btn.is-active { background: var(--gold); color: var(--dark); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--border); transition: box-shadow var(--t);
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { display: block; height: 48px; width: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.15rem; letter-spacing: .5px; }
.brand__text small { font-size: .72rem; color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: .55rem .7rem;
  border-radius: 8px; font-weight: 600; font-size: .9rem; color: #333; transition: var(--t);
  white-space: nowrap;
}
.nav__link:hover { color: var(--gold-d); background: var(--gold-soft); }
.nav__link.is-active { color: var(--gold-d); }
.caret { width: 16px; height: 16px; fill: currentColor; }
.nav__item { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--t); z-index: 60;
}
.nav__item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__link { display: block; padding: .55rem .7rem; border-radius: 8px; font-size: .88rem; color: #333; transition: var(--t); }
.dropdown__link:hover { background: var(--gold-soft); color: var(--gold-d); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--bg-soft); border: none; cursor: pointer; color: var(--dark); transition: var(--t);
}
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn:hover { background: var(--gold); }

.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border-radius: 10px;
  background: var(--bg-soft); border: none; cursor: pointer; align-items: center; justify-content: center; }
.burger span { width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--t); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.searchbar { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 14px 0; }
.searchbar__form { display: flex; gap: 10px; }
.searchbar__form input { flex: 1; padding: .7rem 1rem; border: 1px solid var(--border); border-radius: 999px; font-size: .95rem; }
.searchbar__form input:focus { outline: none; border-color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__slides { position: relative; min-height: 520px; }
.hero__slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(120deg, var(--g1), var(--g2));
  opacity: 0; visibility: hidden; transition: opacity .7s ease;
}
.hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(255,193,7,.15), transparent 55%);
}
.hero__slide.is-active { opacity: 1; visibility: visible; position: relative; }
.hero__content { position: relative; z-index: 2; max-width: 680px; color: #fff; padding: 80px 20px; }
.hero__eyebrow { display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; font-size: .8rem; margin-bottom: 14px; }
.hero__title { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 18px; }
.hero__lead { font-size: clamp(1rem, 2vw, 1.2rem); color: #e6e6e6; margin-bottom: 28px; max-width: 560px; }
.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero__dot { width: 12px; height: 12px; border-radius: 999px; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: var(--t); }
.hero__dot.is-active { background: var(--gold); width: 30px; }

/* ---------- Features strip ---------- */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: -50px; position: relative; z-index: 10;
}
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow); transition: var(--t);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature__ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px;
  background: var(--gold-soft); color: var(--gold-d); flex: none; }
.feature__ico svg { width: 28px; height: 28px; fill: currentColor; }
.feature h3 { font-size: 1.15rem; margin-bottom: 4px; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; gap: 20px; }
.section__kicker { display: inline-block; color: var(--gold-d); font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; font-size: .8rem; margin-bottom: 10px; }
.section__title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.section__sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

.grid { display: grid; gap: 22px; }

/* ---------- Services ---------- */
.services-grid { grid-template-columns: repeat(4, 1fr); }
.service {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px;
  transition: var(--t); position: relative; overflow: hidden;
}
.service::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--gold); transition: width .3s ease; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::before { width: 100%; }
.service__ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px;
  background: var(--dark); color: var(--gold); margin-bottom: 18px; transition: var(--t); }
.service:hover .service__ico { background: var(--gold); color: var(--dark); }
.service__ico svg { width: 30px; height: 30px; fill: currentColor; }
.service h3 { font-size: 1.05rem; margin-bottom: 8px; }
.service p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.about__media {
  position: relative; min-height: 360px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--dark), var(--dark-3));
  display: grid; place-items: center; overflow: hidden;
}
.about__media::after { content: "RMAB"; font-size: 5rem; font-weight: 800; color: rgba(255,193,7,.12); letter-spacing: 4px; }
.about__badge {
  position: absolute; bottom: 24px; right: 24px; background: var(--gold); color: var(--dark);
  border-radius: var(--radius-sm); padding: 16px 22px; text-align: center; box-shadow: var(--shadow);
}
.about__badge strong { display: block; font-size: 2rem; line-height: 1; }
.about__badge span { font-size: .82rem; font-weight: 600; }
.about__body h2 { margin-bottom: 16px; }
.about__list { margin: 20px 0 28px; display: grid; gap: 12px; }
.about__list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.about__list .ico { color: var(--gold-d); font-size: 1.2rem; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(135deg, #0b4aa8, #002b5c); color: #fff; padding: 60px 0; position: relative; overflow: hidden; }
.stats::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(255,193,7,.14), transparent 55%); pointer-events: none; }
.stats__grid { position: relative; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { display: block; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: var(--gold); }
.stat__label { color: #cfcfcf; font-size: .95rem; }

/* ---------- News ---------- */
.news-grid { grid-template-columns: repeat(3, 1fr); }
.news-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: var(--t); display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card__img { height: 180px; background: linear-gradient(135deg, var(--g1,#0b4aa8), var(--g2,#002b5c)); position: relative; }
.news-card__date { position: absolute; left: 14px; bottom: 14px; background: var(--gold); color: var(--dark);
  font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 6px; }
.news-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-card__tag { color: var(--gold-d); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.news-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.news-card p { font-size: .88rem; color: var(--muted); margin: 0 0 16px; }
.news-card__more { margin-top: auto; color: var(--dark); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; transition: var(--t); }
.news-card__more:hover { color: var(--gold-d); gap: 10px; }

/* ---------- Branches ---------- */
.branches-grid { grid-template-columns: repeat(4, 1fr); }
.branch {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px;
  display: flex; align-items: center; gap: 12px; transition: var(--t);
}
.branch:hover { border-color: var(--gold); transform: translateX(4px); }
.branch__pin { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--gold-soft); color: var(--gold-d); flex: none; }
.branch__pin svg { width: 22px; height: 22px; fill: currentColor; }
.branch strong { display: block; font-size: .95rem; }
.branch span { font-size: .8rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact__list { margin: 22px 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact__list .ico { color: var(--gold-d); font-size: 1.3rem; }
.contact__hot { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: .9rem; }
.contact__hot strong { color: var(--text); }
.contact__form { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .95rem; background: #fff; transition: var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,193,7,.18); }
.field textarea { resize: vertical; }
.form-note { color: #1a7a3c; font-weight: 600; text-align: center; margin: 14px 0 0; }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, #06346b, #001f3f); color: #c4d0e0; padding: 60px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: #9a9a9a; }
.footer__desc { margin-top: 14px; font-size: .9rem; color: #9a9a9a; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; color: #b5b5b5; font-size: .9rem; margin: 0 0 10px; transition: var(--t); }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #8a8a8a; }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold); color: var(--dark); border: none; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--t); z-index: 40;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.totop svg { width: 24px; height: 24px; fill: currentColor; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Page banner (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--dark), var(--dark-3));
  color: #fff; padding: 60px 0; position: relative; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255,193,7,.16), transparent 55%); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: #c9c9c9; }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: #777; }

/* ---------- Service detail cards ---------- */
.service-list { display: grid; gap: 24px; }
.service-detail {
  display: grid; grid-template-columns: 88px 1fr; gap: 24px; align-items: start;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; scroll-margin-top: 130px; transition: var(--t);
}
.service-detail:hover { box-shadow: var(--shadow-lg); }
.service-detail:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,193,7,.25); }
.service-detail__ico { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 18px;
  background: var(--dark); color: var(--gold); }
.service-detail__ico svg { width: 44px; height: 44px; fill: currentColor; }
.service-detail h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-detail p { color: var(--muted); margin-bottom: 14px; }
.service-detail__points { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-soft);
  color: var(--gold-d); font-weight: 600; font-size: .82rem; padding: 6px 12px; border-radius: 999px; }
.tag-pill::before { content: "✓"; font-weight: 800; }

/* ---------- Single service (detail) page ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.detail-main__ico { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 18px;
  background: var(--dark); color: var(--gold); margin-bottom: 22px; }
.detail-main__ico svg { width: 42px; height: 42px; fill: currentColor; }
.detail-main h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 16px; }
.detail-main p { color: #444; font-size: 1.05rem; }
.detail-points { display: grid; gap: 12px; margin: 24px 0 32px; }
.detail-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.detail-points .ico { color: var(--gold-d); font-size: 1.3rem; }
.detail-why { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; margin-top: 32px; }
.detail-why h3 { margin-bottom: 16px; }
.detail-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.detail-why-grid .feature__ico { margin-bottom: 10px; }
.detail-why-grid h4 { font-size: 1rem; margin-bottom: 4px; }
.detail-why-grid p { font-size: .88rem; color: var(--muted); margin: 0; }

.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; }
.side-card h4 { font-size: 1.05rem; margin-bottom: 14px; }
.side-list a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  font-size: .9rem; color: #333; transition: var(--t); }
.side-list a:hover { background: var(--gold-soft); color: var(--gold-d); }
.side-list a.is-active { background: var(--dark); color: var(--gold); font-weight: 600; }
.side-list a .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.side-cta { background: linear-gradient(135deg, var(--dark), var(--dark-3)); color: #fff; text-align: center; }
.side-cta h4 { color: #fff; }
.side-cta p { color: #c9c9c9; font-size: .9rem; margin-bottom: 16px; }

/* ---------- About page blocks ---------- */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.info-card .feature__ico { margin-bottom: 16px; }
.info-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.info-card p { color: var(--muted); margin: 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ============================================================
   News / announcement detail (news-detail.html)
   ============================================================ */
.article { background: #fff; }
.article__cover { height: 320px; border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--g1,#0b4aa8), var(--g2,#002b5c)); margin-bottom: 22px; }
.article__tag { position: absolute; left: 18px; bottom: 18px; background: var(--gold); color: var(--dark);
  padding: 6px 14px; border-radius: 6px; font-size: .8rem; }
.article__meta { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.article__date { display: inline-flex; align-items: center; gap: 7px; }
.article__date .ico { color: var(--gold-d); font-size: 1.1rem; }
.article__cat { background: var(--gold-soft); color: var(--gold-d); font-weight: 700; padding: 3px 12px; border-radius: 999px; font-size: .78rem; }
.article__title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 18px; }
.article__lead { font-size: 1.12rem; font-weight: 600; color: var(--text); line-height: 1.6; margin-bottom: 20px;
  padding-left: 18px; border-left: 4px solid var(--gold); }
.article__body p { font-size: 1.02rem; color: #3a4252; line-height: 1.8; margin: 0 0 18px; }
.article__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); }
.article__share { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.article__share a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-soft); border: 1px solid var(--border); font-weight: 700; font-size: .78rem; color: var(--dark); transition: var(--t); }
.article__share a:hover { background: var(--dark); color: var(--gold); border-color: var(--dark); }

.side-news { display: flex; flex-direction: column; gap: 12px; }
.side-news .news-row { padding: 10px; }
.side-news .news-row__thumb { width: 64px; height: 64px; }

/* ============================================================
   Home portal (parliament.gov.uz-style layout)
   ============================================================ */
.section--tight { padding: 48px 0; }
.section__title--bar { position: relative; padding-left: 16px; }
.section__title--bar::before { content: ""; position: absolute; left: 0; top: .12em; bottom: .12em;
  width: 5px; border-radius: 3px; background: var(--gold); }
.link-more { color: var(--dark); font-weight: 700; font-size: .9rem; white-space: nowrap; transition: var(--t); }
.link-more:hover { color: var(--gold-d); }

/* ----- Hero portal ----- */
.portal-hero { padding: 32px 0 8px; }
.portal-hero__grid { display: grid; grid-template-columns: 1.85fr 1fr; gap: 24px; align-items: stretch; }

.feature-card {
  position: relative; min-height: 460px; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background: linear-gradient(135deg, var(--g1,#0b4aa8), var(--g2,#002b5c)); transition: var(--t);
}
.feature-card::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,20,50,.05) 30%, rgba(0,15,40,.88) 100%); }
.feature-card:hover { box-shadow: var(--shadow-lg); }
.feature-card:hover .feature-card__title { color: var(--gold); }
.feature-card__date { position: absolute; top: 18px; left: 18px; z-index: 2; background: var(--gold);
  color: var(--dark); font-weight: 700; font-size: .82rem; padding: 5px 12px; border-radius: 6px; }
.feature-card__body { position: relative; z-index: 2; padding: 32px; }
.feature-card__title { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 10px 0 12px; transition: var(--t); }
.feature-card__text { color: #d7e2f2; font-size: 1rem; margin: 0 0 16px; max-width: 90%; }
.feature-card__more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold); }

.hero-side { display: flex; flex-direction: column; gap: 16px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quick-card {
  background: linear-gradient(140deg, var(--dark-2), var(--dark)); color: #fff; border-radius: var(--radius);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 116px; transition: var(--t);
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quick-card:hover .quick-card__t { color: var(--gold); }
.quick-card__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: rgba(255,255,255,.14); color: var(--gold); }
.quick-card__ico svg { width: 24px; height: 24px; fill: currentColor; }
.quick-card__t { font-weight: 600; font-size: .92rem; line-height: 1.3; transition: var(--t); }

.find-box { display: flex; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow); }
.find-box input { flex: 1; border: none; padding: .6rem .8rem; font-family: inherit; font-size: .92rem; background: transparent; }
.find-box input:focus { outline: none; }
.find-box button { flex: none; width: 46px; border: none; border-radius: var(--radius-sm); background: var(--gold);
  color: var(--dark); cursor: pointer; display: grid; place-items: center; transition: var(--t); }
.find-box button:hover { background: var(--gold-d); }
.find-box button svg { width: 22px; height: 22px; fill: currentColor; }

.hero-live { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, #06346b, #001f3f);
  color: #e6eefb; border-radius: var(--radius); padding: 14px 16px; transition: var(--t); }
.hero-live:hover { box-shadow: var(--shadow-lg); }
.hero-live__badge { display: inline-flex; align-items: center; gap: 6px; flex: none; background: var(--gold);
  color: var(--dark); font-weight: 800; font-size: .72rem; letter-spacing: .5px; padding: 4px 9px; border-radius: 6px; }
.hero-live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dark); animation: livePulse 1.4s infinite; }
.hero-live__text { font-size: .86rem; line-height: 1.35; }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ----- News portal (grid + sidebar) ----- */
.news-portal { display: grid; grid-template-columns: 1fr 330px; gap: 28px; align-items: start; }
.news-portal .news-grid { grid-template-columns: repeat(3, 1fr); }
.news-portal .news-card__img { height: 150px; }
.news-side { display: flex; flex-direction: column; gap: 12px; }
.news-row { display: flex; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; transition: var(--t); }
.news-row:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.news-row__thumb { flex: none; width: 76px; height: 76px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--g1,#0b4aa8), var(--g2,#002b5c)); }
.news-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.news-row__tag { color: var(--gold-d); font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .5px; }
.news-row__body strong { font-size: .9rem; line-height: 1.3; color: var(--text); }
.news-row__date { font-size: .78rem; color: var(--muted); margin-top: auto; }

/* ----- Banner row ----- */
.banner-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.banner-card { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, var(--dark-2), var(--dark));
  color: #fff; border-radius: var(--radius); padding: 22px 24px; font-weight: 600; min-height: 92px; transition: var(--t); }
.banner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.banner-card svg { width: 30px; height: 30px; fill: var(--gold); flex: none; }
.banner-card--dark { background: linear-gradient(135deg, #06346b, #001f3f); flex-wrap: wrap; }
.banner-card__lead { font-weight: 500; color: #b9c8de; font-size: .85rem; width: 100%; }
.banner-card--dark strong { font-size: 1.15rem; color: var(--gold); }
.banner-card--dark svg { position: absolute; }

/* ----- Branches map ----- */
.maptabs { display: flex; gap: 8px; flex-wrap: wrap; }
.maptabs__btn { background: #fff; border: 1px solid var(--border); color: var(--muted); cursor: pointer;
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .85rem; transition: var(--t); }
.maptabs__btn:hover { border-color: var(--gold); color: var(--gold-d); }
.maptabs__btn.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }

.branch-portal { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: stretch; }
.branch-portal__map { border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, #0b4aa8, #001f3f); position: relative; min-height: 380px; }
.map-stage { position: absolute; inset: 0; }
.map-stage::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(255,255,255,.10), transparent 60%); }
.map-pin { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 6px rgba(255,193,7,.22); }
.map-pin--main { width: 20px; height: 20px; box-shadow: 0 0 0 8px rgba(255,193,7,.28); animation: livePulse 1.8s infinite; }
.map-stage__label { position: absolute; left: 28px; bottom: 26px; color: #fff; }
.map-stage__label strong { display: block; font-size: 3rem; line-height: 1; color: var(--gold); }
.map-stage__label span { font-size: .95rem; color: #cfe0f5; }
.branch-portal__panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.branch-portal__panel h3 { font-size: 1.1rem; margin-bottom: 16px; }
.branch-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.branch-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 500; transition: var(--t); }
.branch-row:hover { background: var(--gold-soft); color: var(--gold-d); }
.branch-row__pin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--gold-soft); color: var(--gold-d); flex: none; }
.branch-row__pin svg { width: 16px; height: 16px; fill: currentColor; }

/* ----- Branches: tab panels ----- */
.map-tabpanel[hidden] { display: none; }

/* reception points (Қабул пунктлари) */
.points-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.point-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; transition: var(--t); }
.point-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.point-card__pin { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
  background: var(--gold-soft); color: var(--gold-d); flex: none; }
.point-card__pin svg { width: 22px; height: 22px; fill: currentColor; }
.point-card__tag { color: var(--gold-d); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .5px; }
.point-card__body h4 { font-size: 1rem; margin: 2px 0 4px; }
.point-card__body a { font-size: .88rem; color: var(--muted); transition: var(--t); }
.point-card__body a:hover { color: var(--gold-d); }

/* logistics cards (Логистика) */
.logistics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ----- Interactive Uzbekistan map ----- */
.map-section { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: center; }
.map-bg { width: 100%; }
.map-bg svg { width: 100%; height: auto; display: block; overflow: visible; }
/* region shapes: presentation-attribute fills are overridden by these CSS rules */
#uzMap .regions { cursor: pointer; }
#uzMap .regions > path:first-child { transition: fill .2s ease; }
#uzMap .regions:hover > path:first-child { fill: var(--dark-3); }
#uzMap .regions.active > path:first-child { fill: var(--dark); }

.region-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); }
.region-card__kicker { display: block; color: var(--gold-d); font-weight: 700; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .6px; }
.region-card__name { font-size: 1.3rem; margin: 6px 0 18px; }
.region-card .mapInfo { display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; align-items: center; }
.region-card .mapInfo__lbl { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.region-card .mapInfo__lbl svg { width: 20px; height: 20px; fill: var(--dark); flex: none; }
.region-card .mapInfo__val { font-size: .92rem; font-weight: 500; min-width: 0; word-break: break-word; }
.region-card .mapInfo__val a { color: var(--text); transition: var(--t); }
.region-card .mapInfo__val a:hover { color: var(--gold-d); }
.region-card__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
  font-weight: 700; font-size: .9rem; color: var(--dark); transition: var(--t); }
.region-card__all:hover { color: var(--gold-d); gap: 10px; }

/* ----- Mediateka ----- */
.media-portal { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: stretch; }
.media-feature { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--g1), var(--g2)); transition: var(--t); }
.media-feature::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,15,40,.85)); }
.media-feature:hover { box-shadow: var(--shadow-lg); }
.media-feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.media-feature:hover .media-feature__img { transform: scale(1.04); }
.media-feature__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 70px; height: 70px; border-radius: 50%; background: rgba(255,193,7,.95); color: var(--dark);
  display: grid; place-items: center; transition: var(--t); }
.media-feature:hover .media-feature__play { transform: translate(-50%,-50%) scale(1.08); }
.media-feature__play svg { width: 34px; height: 34px; fill: currentColor; }
.media-feature__cap { position: relative; z-index: 2; padding: 26px; color: #fff; }
.media-feature__cap h3 { font-size: 1.2rem; margin-top: 8px; }
.media-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.media-thumb { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 158px;
  background: linear-gradient(135deg, var(--g1), var(--g2)); transition: var(--t); }
.media-thumb:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.media-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.media-thumb:hover img { transform: scale(1.06); }

/* Photo surfaces (real images set via inline background-image; gradient is the fallback) */
.feature-card, .news-card__img, .news-row__thumb, .article__cover {
  background-size: cover; background-position: center; background-repeat: no-repeat;
}

/* ----- Useful links ----- */
.links-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.link-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 14px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: var(--t); }
.link-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.link-card__emblem { width: 52px; height: 52px; border-radius: 50%; margin-bottom: 8px;
  background: radial-gradient(circle at 35% 30%, var(--dark-3), var(--dark)); position: relative; }
.link-card__emblem::after { content: "UZ"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--gold); font-weight: 800; font-size: .8rem; }
.link-card strong { font-size: .9rem; line-height: 1.3; }
.link-card span { font-size: .78rem; color: var(--muted); }

/* ----- Home portal responsive ----- */
@media (max-width: 992px) {
  .portal-hero__grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 360px; }
  .news-portal { grid-template-columns: 1fr; }
  .news-side { flex-direction: row; flex-wrap: wrap; }
  .news-side .news-row { flex: 1 1 280px; }
  .map-section { grid-template-columns: 1fr; }
  .logistics-grid { grid-template-columns: 1fr 1fr; }
  .branch-portal, .media-portal { grid-template-columns: 1fr; }
  .banner-row { grid-template-columns: 1fr 1fr; }
  .links-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .news-portal .news-grid { grid-template-columns: 1fr; }
  .banner-row { grid-template-columns: 1fr; }
  .branch-list { grid-template-columns: 1fr; }
  .media-thumbs { grid-template-columns: 1fr 1fr; }
  .links-row { grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .logistics-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .services-grid, .branches-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .about, .contact__inner, .cols-2 { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .detail-why-grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header__cta { display: none; }
  .burger { display: flex; }
  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(82vw, 340px);
    background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 80px 20px 20px;
    box-shadow: -10px 0 40px rgba(0,0,0,.18); transform: translateX(100%); transition: transform .3s ease; z-index: 55; overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { padding: .9rem .6rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav__item { width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; border-bottom: 1px solid var(--border); border-radius: 0; padding: 0 0 8px 12px; display: none; }
  .nav__item.is-open .dropdown { display: block; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: var(--t); z-index: 54; }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; margin-top: -30px; }
  .news-grid, .branches-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail__ico { width: 64px; height: 64px; }
  .service-detail__ico svg { width: 32px; height: 32px; }
  .section { padding: 56px 0; }
  .section__head--row { flex-direction: column; align-items: flex-start; }
  .topbar__tools { gap: 8px; }
  .footer__grid { grid-template-columns: 1fr; }
}
