/* ==========================================================
   Buxoro viloyati Kelajak markazi — asosiy uslublar
   Ranglar logotiplardan olingan:
   - Kelajak binafsha:  #5236B4
   - Kengash ko'k:      #1B2A9B
   - Kengash sariq:     #FDB515
   ========================================================== */

:root {
  --primary: #5236b4;
  --primary-600: #4429a0;
  --primary-50: #f3f0fc;
  --primary-100: #e7e1f8;
  --navy: #1b2a9b;
  --navy-50: #eef0fb;
  --accent: #fdb515;
  --text: #16142b;
  --text-2: #4b4a63;
  --muted: #7b7a92;
  --line: #e8e7f0;
  --soft: #f8f8fc;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 20, 43, .06);
  --shadow: 0 6px 24px rgba(40, 30, 100, .08);
  --shadow-lg: 0 18px 48px rgba(40, 30, 100, .14);
  --container: 1240px;
  --header-h: 76px;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-head: "Montserrat", var(--ff-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #ffffff;              /* fon doimo oq */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-head); line-height: 1.25; color: var(--text); }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
svg { width: 18px; height: 18px; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-600); box-shadow: 0 8px 20px rgba(82, 54, 180, .3); transform: translateY(-1px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #14207c; }
.btn--ghost { background: #fff; color: var(--primary); border-color: var(--primary-100); }
.btn--ghost:hover { border-color: var(--primary); background: var(--primary-50); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 14px; }
.link svg { width: 15px; height: 15px; transition: transform .2s; }
.link:hover svg { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary); color: rgba(255,255,255,.9); font-size: 13.5px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; }
.topbar__info { display: flex; gap: 24px; align-items: center; }
.topbar__info a, .topbar__info span { display: inline-flex; align-items: center; gap: 7px; }
.topbar__info svg { width: 15px; height: 15px; opacity: .85; }
.topbar__info a:hover { color: #fff; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; background: rgba(255,255,255,.12); border-radius: 8px; padding: 3px; }
.lang button { background: none; border: 0; color: rgba(255,255,255,.85); padding: 3px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; }
.lang button.is-active, .lang button:hover { background: #fff; color: var(--primary); }

.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--primary-50); color: var(--primary); transition: .2s; }
.socials a:hover { background: var(--primary); color: #fff; }
.socials--sm a { width: 28px; height: 28px; background: transparent; color: rgba(255,255,255,.85); }
.socials--sm a:hover { background: rgba(255,255,255,.15); color: #fff; }
.socials--sm svg { width: 15px; height: 15px; }
.socials--dark a { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand__logo { height: 44px; width: auto; }
.brand__divider { width: 1px; height: 34px; background: var(--line); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--ff-head); font-size: 15px; color: var(--navy); }
.brand__text small { font-size: 13px; color: var(--muted); font-weight: 500; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__list > li { position: relative; }
.nav__list > li > a {
  display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--text-2); transition: .2s; white-space: nowrap;
}
.nav__list > li > a svg { width: 14px; height: 14px; }
.nav__list > li > a:hover, .nav__list > li > a.is-active { color: var(--primary); background: var(--primary-50); }
.drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.drop a:hover { background: var(--primary-50); color: var(--primary); }
.nav__cta-mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text-2); transition: .2s; }
.icon-btn:hover { color: var(--primary); border-color: var(--primary-100); background: var(--primary-50); }
.burger { display: none; }

.search { max-height: 0; overflow: hidden; transition: max-height .3s ease; border-top: 0 solid var(--line); }
.search.is-open { max-height: 100px; border-top-width: 1px; }
.search__form { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.search__form svg { color: var(--muted); }
.search__form input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 8px 0; background: transparent; }

/* ---------- Ticker ---------- */
.ticker { border-bottom: 1px solid var(--line); background: #fff; }
.ticker__inner { display: flex; align-items: center; gap: 18px; height: 48px; }
.ticker__label {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-size: 13px; font-weight: 700; color: #fff; background: var(--navy);
  padding: 6px 12px; border-radius: 6px; text-transform: uppercase; letter-spacing: .3px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
.ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__move { display: flex; gap: 48px; width: max-content; animation: ticker 45s linear infinite; }
.ticker__move:hover { animation-play-state: paused; }
.ticker__move a { font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; position: relative; }
.ticker__move a::before { content: ""; position: absolute; left: -26px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); transform: translateY(-50%); }
.ticker__move a:hover { color: var(--primary); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Placeholder rasmlar (haqiqiy foto bilan almashtiring) ---------- */
.ph { position: relative; display: grid; place-items: center; overflow: hidden; color: rgba(255,255,255,.35); }
.ph > svg { width: 30%; height: 30%; max-width: 140px; max-height: 140px; stroke-width: 1; }
.ph--1 { background: linear-gradient(135deg, #5236b4 0%, #7b5ce0 100%); }
.ph--2 { background: linear-gradient(135deg, #1b2a9b 0%, #3f55d6 100%); }
.ph--3 { background: linear-gradient(135deg, #2f1f7a 0%, #5236b4 60%, #9a6fe8 100%); }
.ph--4 { background: linear-gradient(135deg, #f3f0fc 0%, #e7e1f8 100%); }
.ph--5 { background: linear-gradient(135deg, #e89a00 0%, #fdb515 100%); }

/* ---------- Tag & meta ---------- */
.tag { display: inline-block; padding: 5px 11px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--primary); color: #fff; letter-spacing: .2px; }
.tag--light { background: var(--accent); color: #1b1640; }
.meta { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { width: 14px; height: 14px; }
.meta--light { color: rgba(255,255,255,.85); }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 8px; }
.hero__grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; }

.slider { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; background: var(--primary); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide .ph { position: absolute; inset: 0; }
.slide .ph > svg { width: 220px; height: 220px; max-width: none; max-height: none; transform: translate(25%, -15%); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(14, 10, 40, .78) 100%); }
.slide__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 36px 84px; z-index: 2; }
.slide__body h1 { color: #fff; font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; margin: 14px 0 14px; max-width: 760px; }
.slide__body h1 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.slider__nav { position: absolute; left: 36px; right: 36px; bottom: 26px; z-index: 3; display: flex; align-items: center; gap: 14px; }
.slider__btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(6px); transition: .2s; }
.slider__btn:hover { background: #fff; color: var(--primary); }
.slider__btn svg { width: 16px; height: 16px; }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 26px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,255,255,.4); transition: .3s; }
.slider__dots button.is-active { width: 44px; background: var(--accent); }

.latest { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; background: #fff; }
.latest__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 2px solid var(--primary); margin-bottom: 4px; }
.latest__head h2 { font-size: 18px; }
.latest__list li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.latest__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.latest__list time { flex-shrink: 0; width: 46px; font-size: 13px; font-weight: 700; color: var(--primary); padding-top: 1px; }
.latest__list a { font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--text); }
.latest__list a:hover { color: var(--primary); }

/* ---------- Quick links ---------- */
.quick { padding: 24px 0 8px; }
.quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick__item { display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .25s; }
.quick__item:hover { border-color: var(--primary-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.quick__item strong { display: block; font-size: 15px; font-weight: 700; }
.quick__item small { color: var(--muted); font-size: 13px; }
.quick__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-50); color: var(--primary); flex-shrink: 0; transition: .25s; }
.quick__icon svg { width: 22px; height: 22px; }
.quick__item:hover .quick__icon { background: var(--primary); color: #fff; }

/* ---------- Stats ---------- */
.stats { padding: 40px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat { padding: 30px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--ff-head); font-size: 40px; font-weight: 800; color: var(--primary); line-height: 1.1; }
.stat span { font-size: 14.5px; color: var(--text-2); font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section__head--tight { margin-bottom: 24px; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; gap: 0; }
.section__note { color: var(--muted); max-width: 360px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
.title { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.3px; }
.accent { color: var(--primary); }
.lead { font-size: 17px; color: var(--text-2); margin-top: 18px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__media { position: relative; }
.about__img { aspect-ratio: 5 / 4; border-radius: 20px; }
.about__logo { width: 70%; }
.about__badge { position: absolute; right: -18px; bottom: -18px; background: #fff; border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.about__badge strong { display: block; font-family: var(--ff-head); font-size: 28px; color: var(--navy); line-height: 1; }
.about__badge span { font-size: 13px; color: var(--muted); }
.checklist { margin-top: 22px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checklist svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--primary-50); color: var(--primary); margin-top: 1px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); padding: 5px; border-radius: 12px; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); transition: .2s; }
.tabs button:hover { color: var(--primary); }
.tabs button.is-active { background: var(--primary); color: #fff; }

/* ---------- Courses ---------- */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .25s; display: flex; flex-direction: column; }
.course:hover { box-shadow: var(--shadow); border-color: var(--primary-100); transform: translateY(-3px); }
.course.is-hidden { display: none; }
.course__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.course__icon svg { width: 24px; height: 24px; }
.c1 { background: var(--primary-50); color: var(--primary); }
.c2 { background: var(--navy-50); color: var(--navy); }
.c3 { background: #fff6e0; color: #b57a00; }
.c4 { background: #e8f7ef; color: #1a8a50; }
.c5 { background: #fdecee; color: #c2334a; }
.course h3 { font-size: 18px; margin-bottom: 8px; }
.course p { color: var(--text-2); font-size: 15px; flex: 1; }
.course__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.course__meta span { font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--soft); border: 1px solid var(--line); padding: 4px 10px; border-radius: 20px; }

/* ---------- News cards ---------- */
.news { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card__media { aspect-ratio: 16 / 10; }
.card__media .tag { position: absolute; left: 14px; top: 14px; background: #fff; color: var(--primary); }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 16px; line-height: 1.4; font-weight: 700; }
.card h3 a:hover { color: var(--primary); }
.card p { font-size: 14px; color: var(--text-2); flex: 1; }

/* ---------- Events ---------- */
.events { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.event { display: flex; align-items: center; gap: 20px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; transition: .25s; }
.event:hover { border-color: var(--primary-100); box-shadow: var(--shadow); }
.event__date { width: 72px; flex-shrink: 0; text-align: center; border-radius: 12px; background: var(--primary-50); padding: 10px 0; }
.event__date strong { display: block; font-family: var(--ff-head); font-size: 26px; color: var(--primary); line-height: 1.05; }
.event__date span { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; }
.event__info { flex: 1; }
.event__info h3 { font-size: 16.5px; margin-bottom: 6px; }
.event__info p { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); }
.event__info svg { width: 14px; height: 14px; }

.council { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.council__logo { width: 220px; margin: -6px 0 10px -10px; }
.council h3 { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.council p { font-size: 14.5px; color: var(--text-2); }
.council__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0; }
.council__nums li { background: var(--navy-50); border-radius: 10px; padding: 12px 6px; text-align: center; }
.council__nums strong { display: block; font-family: var(--ff-head); font-size: 22px; color: var(--navy); line-height: 1.1; }
.council__nums span { font-size: 11.5px; color: var(--text-2); font-weight: 500; }

/* ---------- Leaders ---------- */
.leaders { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.leader { text-align: center; padding: 28px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .25s; }
.leader:hover { box-shadow: var(--shadow); }
.leader__photo { width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--primary-100); }
.leader__photo svg { width: 44px; height: 44px; }
.leader h3 { font-size: 17px; }
.leader__role { display: block; font-size: 13.5px; color: var(--primary); font-weight: 600; margin: 6px 0 12px; }
.leader p { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.leader a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.leader a svg { width: 14px; height: 14px; color: var(--primary); }
.leader a:hover { color: var(--primary); }

/* ---------- Branches ---------- */
.branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.branch { display: flex; align-items: center; gap: 10px; padding: 15px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 15px; transition: .2s; }
.branch svg { color: var(--primary); }
.branch:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }

/* ---------- Register + FAQ ---------- */
.reg { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.reg__form-wrap { border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); background: #fff; }
.reg__form-wrap .muted { margin-top: 8px; }
.form { display: grid; gap: 16px; margin-top: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.form input, .form select {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--text); width: 100%;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: .2s;
}
.form input:focus, .form select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.form .is-invalid { border-color: #d64545; }
.form__msg { font-size: 14px; font-weight: 600; min-height: 20px; text-align: center; }
.form__msg.ok { color: #1a8a50; }
.form__msg.err { color: #d64545; }

.faq .title { margin-bottom: 22px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #fff; transition: .2s; }
.faq details[open] { border-color: var(--primary-100); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 20px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--primary); transition: transform .25s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 20px 18px; color: var(--text-2); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: stretch; }
.contact__list { display: grid; gap: 18px; margin: 28px 0; }
.contact__list li { display: flex; gap: 14px; align-items: center; }
.contact__list small { display: block; color: var(--muted); font-size: 13px; }
.contact__list strong { font-size: 15.5px; font-weight: 600; }
.contact__list a:hover { color: var(--primary); }
.contact__map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: #fff; }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer { background: #fff; color: var(--text-2); padding-top: 64px; font-size: 14.5px; border-top: 4px solid var(--primary); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer__brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer__brand p { margin-bottom: 20px; max-width: 320px; }
.footer h4 { color: var(--text); font-size: 16px; margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a:hover { color: var(--primary); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 16px; height: 16px; color: var(--primary); margin-top: 3px; }
.footer__bottom { border-top: 1px solid var(--line); padding: 20px 0; font-size: 13px; color: var(--muted); }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- To top ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 12px; border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; z-index: 40; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-600); }

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

/* ==========================================================
   Moslashuvchan dizayn
   ========================================================== */
@media (max-width: 1360px) {
  .header__inner { gap: 16px; }
  .nav__list > li > a { padding: 10px 10px; }
}
@media (max-width: 1200px) {
  .nav__list > li > a { padding: 10px 9px; font-size: 14px; }
  .brand__divider, .brand__text { display: none; }
}

@media (max-width: 1180px) {
  .hide-md { display: none !important; }
  .burger { display: grid; position: relative; z-index: 110; }
  .brand__divider, .brand__text { display: flex; }
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 86vw); background: #fff; z-index: 100;
    padding: 80px 20px 24px; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .3s ease;
    display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__list > li > a { padding: 13px 14px; font-size: 16px; justify-content: space-between; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav__cta-mobile { display: flex; }
  .overlay { position: fixed; inset: 0; background: rgba(20, 16, 50, .4); z-index: 45; opacity: 0; visibility: hidden; transition: .3s; }
  .overlay.is-open { opacity: 1; visibility: visible; }

  .hero__grid, .events, .reg, .contact, .about { grid-template-columns: 1fr; }
  .about { gap: 48px; }
  .council { position: static; }
  .news { grid-template-columns: repeat(2, 1fr); }
  .courses { grid-template-columns: repeat(2, 1fr); }
  .leaders { grid-template-columns: repeat(2, 1fr); }
  .quick__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .container { padding: 0 16px; }
  .hide-sm { display: none !important; }
  .topbar__info { gap: 14px; }
  .socials--sm { display: none; }
  .brand__logo { height: 36px; }
  .brand__divider { display: none; }
  .brand__text strong { font-size: 13px; }
  .brand__text small { font-size: 12px; }
  .header__inner { gap: 10px; }
  .section { padding: 52px 0; }
  .slider { min-height: 380px; }
  .slide__body { padding: 24px 20px 76px; }
  .slider__nav { left: 20px; right: 20px; bottom: 20px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat strong { font-size: 30px; }
  .stat { padding: 22px 12px; }
  .news, .courses, .leaders, .quick__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .reg__form-wrap { padding: 24px 18px; }
  .event { flex-wrap: wrap; }
  .event .btn { width: 100%; }
  .about__badge { right: 12px; bottom: -16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tabs button { white-space: nowrap; }
}
