/* =========================================================
   ANDIJON SHAHAR 50-UMUMTA'LIM MAKTABI — SAYT USLUBI
   ========================================================= */

:root{
  --navy-900:#0c2a54;
  --navy-800:#123a72;
  --navy-700:#18488c;
  --blue-600:#1d5fc4;
  --blue-500:#2f74e0;
  --blue-50:#eef4ff;
  --gold-400:#f6b93b;
  --gold-500:#eea72b;
  --green-600:#1fa855;
  --green-50:#e7f8ee;
  --red-500:#e0463f;
  --red-50:#fdeceb;
  --ink-900:#16202f;
  --ink-600:#4d5b70;
  --ink-400:#8592a3;
  --line:#e6ebf2;
  --bg:#f4f7fb;
  --white:#ffffff;
  --radius-s:8px;
  --radius-m:14px;
  --radius-l:20px;
  --shadow-s:0 1px 3px rgba(16,38,73,.06);
  --shadow-m:0 8px 24px rgba(16,38,73,.08);
  --font-display:'Manrope',sans-serif;
  --font-body:'Inter',sans-serif;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth; font-size:100%;}

/* ---------------------------------------------------------
   ERISHUVCHANLIK: QORONG'I VA SEPIYA REJIMLAR
   Yuqoridagi CSS o'zgaruvchilarini qayta belgilash orqali
   butun sayt avtomatik ravishda yangi rang sxemasiga o'tadi.
--------------------------------------------------------- */
body[data-color-theme="dark"]{
  --bg:#0f1720;
  --white:#182430;
  --ink-900:#eef2f8;
  --ink-600:#c3ccda;
  --ink-400:#94a1b5;
  --line:#2a3644;
  --blue-50:#1c2b40;
  --green-50:#123425;
  --red-50:#3a1f1d;
  --shadow-s:0 1px 3px rgba(0,0,0,.35);
  --shadow-m:0 8px 24px rgba(0,0,0,.5);
}
body[data-color-theme="sepia"]{
  --bg:#f4ecd8;
  --white:#fbf3e0;
  --ink-900:#3b2f22;
  --ink-600:#5c4d3a;
  --ink-400:#8a7860;
  --line:#e3d5b8;
  --blue-50:#eee2c8;
  --green-50:#e6ecd0;
  --red-50:#f5ded2;
}
/* Joriy tanlangan rangni belgilaydigan "aktiv" halqa */
.a11y__dot.is-active{outline:2px solid var(--gold-400); outline-offset:2px;}

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink-900);
  background:var(--bg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
ul{list-style:none; margin:0; padding:0;}
button{font-family:inherit; cursor:pointer;}
h1,h2,h3,h4{font-family:var(--font-display); margin:0; color:var(--navy-900);}

.container{
  max-width:1280px;
  margin-inline:auto;
  padding-inline:24px;
}

:focus-visible{outline:3px solid var(--gold-400); outline-offset:2px;}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; transition-duration:.001ms !important;}
}

/* ---------------------------------------------------------
   TOP BAR
--------------------------------------------------------- */
.topbar{
  background:var(--navy-900);
  color:#c9d6ec;
  font-size:.8rem;
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  height:38px; gap:16px;
}
.topbar__brand{
  font-weight:600; color:#fff; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis;
  font-size:.78rem; opacity:.9;
}
.topbar__tools{display:flex; align-items:center; gap:14px;}

.a11y{display:flex; align-items:center; gap:4px; padding-inline:6px; border-inline-end:1px solid rgba(255,255,255,.15);}
.a11y__btn{
  background:transparent; border:1px solid rgba(255,255,255,.25); color:#c9d6ec;
  border-radius:5px; width:24px; height:22px; font-size:.72rem; line-height:1;
}
.a11y__btn:hover{background:rgba(255,255,255,.12); color:#fff;}
.a11y__dot{width:14px; height:14px; border-radius:50%; border:1px solid rgba(255,255,255,.4); padding:0;}
.a11y__dot--normal{background:#fff;}
.a11y__dot--dark{background:#0c1420;}
.a11y__dot--sepia{background:var(--gold-400); border-color:var(--gold-400);}

.topbar__search{display:flex; align-items:center; background:rgba(255,255,255,.08); border-radius:20px; padding:3px 4px 3px 12px;}
.topbar__search input{
  background:transparent; border:0; color:#fff; font-size:.78rem; width:130px; outline:0;
}
.topbar__search input::placeholder{color:#93a3bd;}
.topbar__search button{background:var(--blue-600); color:#fff; border:0; width:22px; height:22px; border-radius:50%; display:grid; place-items:center;}

.topbar__lang{position:relative;}
.topbar__lang-btn{background:transparent; border:0; color:#fff; font-weight:600; font-size:.78rem; display:flex; align-items:center; gap:4px;}
.topbar__lang-menu{
  position:absolute; right:0; top:calc(100% + 8px); background:var(--white); color:var(--ink-900);
  border-radius:var(--radius-s); box-shadow:var(--shadow-m); min-width:150px; padding:6px; display:none; z-index:60;
}
.topbar__lang-menu.is-open{display:block;}
.topbar__lang-menu li a{display:block; padding:8px 10px; border-radius:6px; font-size:.85rem;}
.topbar__lang-menu li a:hover{background:var(--blue-50);}
.topbar__lang-menu li a.is-active{background:var(--blue-600); color:#fff; font-weight:700;}

/* ---------------------------------------------------------
   ASOSIY HEADER
--------------------------------------------------------- */
.site-header{
  background:var(--white);
  box-shadow:var(--shadow-s);
  position:sticky; top:0; z-index:50;
}
.site-header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding-block:12px;
}
.logo{display:flex; align-items:center; gap:12px;}
.logo__badge{
  flex:none; width:52px; height:52px; border-radius:50%;
  background:linear-gradient(155deg,var(--gold-400),var(--gold-500));
  color:var(--navy-900); font-family:var(--font-display); font-weight:800;
  font-size:1.05rem; display:flex; flex-direction:column; align-items:center; justify-content:center;
  line-height:1; box-shadow:0 4px 10px rgba(238,167,43,.4);
}
.logo__badge small{font-size:.5rem; font-weight:700; letter-spacing:.03em;}
.logo__text{display:flex; flex-direction:column; font-size:.72rem; color:var(--blue-600); font-weight:600; letter-spacing:.02em;}
.logo__text strong{font-family:var(--font-display); font-size:.95rem; color:var(--navy-900); font-weight:800; letter-spacing:.01em;}

.nav-toggle{display:none; flex-direction:column; gap:5px; background:none; border:0; padding:6px;}
.nav-toggle span{width:24px; height:2px; background:var(--navy-900); border-radius:2px;}

.main-nav ul{display:flex; gap:6px;}
.main-nav a{
  display:block; padding:10px 16px; border-radius:20px; font-weight:600; font-size:.92rem; color:var(--ink-600);
  transition:background .15s, color .15s;
}
.main-nav a:hover{background:var(--blue-50); color:var(--blue-600);}
.main-nav li.active a{background:var(--blue-600); color:#fff;}

/* Breadcrumbs (ichki sahifalarda) */
.breadcrumbs{background:var(--white); border-top:1px solid var(--line);}
.breadcrumbs__inner{display:flex; gap:8px; font-size:.85rem; color:var(--ink-400); padding-block:12px;}
.breadcrumbs a:hover{color:var(--blue-600);}
.breadcrumbs__current{color:var(--navy-900); font-weight:600;}

/* ---------------------------------------------------------
   HERO SLAYDER
--------------------------------------------------------- */
.hero{padding-block:24px 8px;}
.hero__slider{
  position:relative; border-radius:var(--radius-l); overflow:hidden; min-height:340px;
  background:var(--navy-900);
}
.hero__slide{
  position:absolute; inset:0; display:none;
  background-size:cover; background-position:center;
}
.hero__slide.is-active{display:block;}
.hero__slide::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(9,22,46,.88) 0%, rgba(9,22,46,.55) 45%, rgba(9,22,46,.1) 80%);
}
.hero__content{
  position:relative; z-index:2; max-width:560px; height:100%;
  padding:48px 40px; display:flex; flex-direction:column; justify-content:center; gap:16px;
}
.hero__content h1{color:#fff; font-size:2rem; font-weight:800; line-height:1.18;}
.hero__content p{color:#d7e1f3; font-size:1rem; max-width:440px;}
.btn{
  display:inline-flex; align-items:center; gap:8px; width:fit-content;
  background:var(--blue-600); color:#fff; font-weight:700; font-size:.92rem;
  padding:12px 24px; border-radius:10px; border:0; transition:background .15s, transform .15s;
}
.btn:hover{background:var(--navy-700); transform:translateY(-1px);}
.btn--outline{background:transparent; border:1.5px solid var(--blue-600); color:var(--blue-600);}
.btn--outline:hover{background:var(--blue-50);}

.hero__nav{
  position:absolute; top:50%; translate:0 -50%; z-index:3;
  width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.16);
  color:#fff; border:0; display:grid; place-items:center; font-size:1.1rem;
  backdrop-filter:blur(4px);
}
.hero__nav:hover{background:rgba(255,255,255,.3);}
.hero__nav--prev{left:20px;}
.hero__nav--next{right:20px;}

.hero__dots{position:absolute; bottom:18px; left:40px; z-index:3; display:flex; gap:8px;}
.hero__dot{width:9px; height:9px; border-radius:50%; background:rgba(255,255,255,.4); border:0; padding:0;}
.hero__dot.is-active{background:var(--gold-400); width:22px; border-radius:5px;}

/* ---------------------------------------------------------
   BO'LIM SARLAVHASI (umumiy)
--------------------------------------------------------- */
.section{padding-block:36px;}
.section__head{display:flex; align-items:baseline; justify-content:space-between; margin-bottom:18px;}
.section__title{
  font-size:1.15rem; font-weight:800; letter-spacing:.04em; color:var(--navy-900);
  position:relative; padding-left:16px;
}
.section__title::before{
  content:""; position:absolute; left:0; top:2px; bottom:2px; width:5px; border-radius:4px;
  background:var(--gold-400);
}
.section__more{font-size:.85rem; font-weight:700; color:var(--blue-600); display:flex; align-items:center; gap:4px;}
.section__more:hover{text-decoration:underline;}

/* ---------------------------------------------------------
   KARTALAR — Yangiliklar / E'lonlar
--------------------------------------------------------- */
.card-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.card-grid--4{grid-template-columns:repeat(4,1fr);}
.card{
  background:var(--white); border-radius:var(--radius-m); overflow:hidden; box-shadow:var(--shadow-s);
  transition:transform .18s, box-shadow .18s; display:flex; flex-direction:column;
}
.card:hover{transform:translateY(-4px); box-shadow:var(--shadow-m);}
.card__media{aspect-ratio:16/10; overflow:hidden; background:var(--blue-50);}
.card__media img{width:100%; height:100%; object-fit:cover;}
.card__body{padding:14px 16px 18px; display:flex; flex-direction:column; gap:8px; flex:1;}
.card__meta{display:flex; align-items:center; gap:14px; font-size:.75rem; color:var(--ink-400);}
.card__meta span{display:inline-flex; align-items:center; gap:4px;}
.card__title{font-size:.98rem; font-weight:700; color:var(--navy-900); line-height:1.35;}
.card__title a:hover{color:var(--blue-600);}
.card__excerpt{font-size:.85rem; color:var(--ink-600); flex:1;}

/* E'lon kartasi — birinchi kartaga "DIQQAT" belgisi */
.announce-badge{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; background:linear-gradient(155deg,var(--red-500),#c73832); color:#fff; text-align:center;
}
.announce-badge__icon{font-size:2rem;}
.announce-badge__text{font-weight:800; letter-spacing:.03em; font-size:1.05rem;}
.card__media--announce{position:relative;}

/* ---------------------------------------------------------
   ENG FAOL O'QUVCHILAR
--------------------------------------------------------- */
.students{position:relative;}
.students__track{
  display:flex; gap:18px; overflow-x:auto; scroll-behavior:smooth; padding-bottom:6px;
  scrollbar-width:none;
}
.students__track::-webkit-scrollbar{display:none;}
.student-card{
  flex:0 0 200px; background:var(--white); border-radius:var(--radius-m); box-shadow:var(--shadow-s);
  padding:18px 16px; text-align:center; position:relative;
}
.student-card__rank{
  position:absolute; top:12px; left:12px; background:var(--navy-900); color:#fff;
  font-size:.7rem; font-weight:800; width:22px; height:22px; border-radius:50%; display:grid; place-items:center;
}
.student-card__photo{
  width:88px; height:88px; border-radius:50%; overflow:hidden; margin:0 auto 12px; border:3px solid var(--blue-50);
}
.student-card__photo img{width:100%; height:100%; object-fit:cover;}
.student-card__name{font-weight:700; font-size:.9rem; color:var(--navy-900);}
.student-card__class{font-size:.78rem; color:var(--ink-400); margin-top:2px;}
.student-card__score{
  margin-top:10px; font-size:.78rem; font-weight:700; color:var(--green-600);
  background:var(--green-50); border-radius:20px; padding:4px 10px; display:inline-block;
}
.students__arrow{
  position:absolute; top:50%; translate:0 -50%; z-index:2; width:34px; height:34px; border-radius:50%;
  background:var(--white); box-shadow:var(--shadow-m); border:0; display:grid; place-items:center; color:var(--navy-900);
}
.students__arrow--prev{left:-14px;}
.students__arrow--next{right:-14px;}

/* ---------------------------------------------------------
   DARS JADVALI SAHIFASI
--------------------------------------------------------- */
.schedule-page__title{
  text-align:center; font-size:1.6rem; font-weight:800; letter-spacing:.04em;
  margin-block:8px 24px;
}
.letters{
  display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-bottom:18px;
}
.letters a{
  width:34px; height:34px; display:grid; place-items:center; border-radius:8px;
  background:var(--white); box-shadow:var(--shadow-s); font-weight:700; font-size:.85rem; color:var(--ink-600);
  transition:background .15s,color .15s,transform .15s;
}
.letters a:hover{transform:translateY(-2px); color:var(--blue-600);}
.letters a.is-active{background:var(--blue-600); color:#fff; box-shadow:0 6px 16px rgba(29,95,196,.35);}

.class-buttons{
  display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:32px;
}
.class-buttons a{
  padding:10px 18px; border-radius:10px; background:var(--white); box-shadow:var(--shadow-s);
  font-weight:700; font-size:.88rem; color:var(--ink-600); transition:background .15s,color .15s;
}
.class-buttons a:hover{color:var(--blue-600);}
.class-buttons a.is-active{background:var(--navy-900); color:#fff;}

.schedule-card{background:var(--white); border-radius:var(--radius-l); box-shadow:var(--shadow-s); padding:26px; margin-bottom:36px;}
.schedule-card__head{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:18px;
}
.schedule-card__title{font-size:1.05rem; font-weight:800; color:var(--navy-900);}
.schedule-card__meta{font-size:.82rem; color:var(--ink-400);}

.schedule-table-wrap{overflow-x:auto;}
.schedule-table{width:100%; border-collapse:separate; border-spacing:0; min-width:760px;}
.schedule-table th,.schedule-table td{
  padding:12px 14px; text-align:left; font-size:.85rem; border-bottom:1px solid var(--line);
}
.schedule-table thead th{
  background:var(--navy-900); color:#fff; font-weight:700; font-size:.78rem; letter-spacing:.02em;
  text-transform:uppercase; position:sticky; top:0;
}
.schedule-table thead th:first-child{border-top-left-radius:10px;}
.schedule-table thead th:last-child{border-top-right-radius:10px;}
.schedule-table tbody tr:nth-child(even){background:#fafcff;}
.schedule-table td.col-num{font-weight:700; color:var(--ink-400); text-align:center; width:36px;}
.schedule-table td.col-time{font-weight:700; color:var(--navy-900); white-space:nowrap;}
.subject-pill{
  display:inline-block; padding:5px 10px; border-radius:7px; font-weight:600; font-size:.82rem;
}
.schedule-empty{padding:40px 20px; text-align:center; color:var(--ink-400); font-size:.9rem;}

/* Fanlar bo'yicha izchil pastel ranglar */
.sub-1{background:#eef4ff; color:#1d5fc4;}
.sub-2{background:#fdf1e6; color:#c07a1f;}
.sub-3{background:#e7f8ee; color:#1b8f4d;}
.sub-4{background:#fdeceb; color:#c9433c;}
.sub-5{background:#f2ecfb; color:#6d43c9;}
.sub-6{background:#e6f7f9; color:#1b8fa0;}
.sub-7{background:#fdf5e0; color:#a98211;}
.sub-8{background:#eef0fb; color:#3d4fc9;}
.sub-9{background:#fbeaf3; color:#c93d8f;}
.sub-10{background:#eafaf0; color:#159a5b;}
.sub-11{background:#f5f0ea; color:#8a5a2b;}
.sub-12{background:#e9f2fb; color:#2472b8;}

/* ---------------------------------------------------------
   SAHIFALASH (pagination)
--------------------------------------------------------- */
.pagination{display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:28px;}
.pagination__num,.pagination__btn{
  min-width:38px; height:38px; padding:0 12px; border-radius:9px; background:var(--white); box-shadow:var(--shadow-s);
  display:grid; place-items:center; font-weight:700; font-size:.85rem; color:var(--ink-600);
}
.pagination__num:hover,.pagination__btn:hover{color:var(--blue-600);}
.pagination__num.is-active{background:var(--blue-600); color:#fff;}

/* ---------------------------------------------------------
   ICHKI SAHIFA — sarlavha bannder (Maktab haqida, To'garaklar va h.k.)
--------------------------------------------------------- */
.page-banner{
  background:linear-gradient(120deg,var(--navy-900),var(--navy-700));
  border-radius:var(--radius-l); padding:40px 36px; margin-bottom:32px; color:#fff; position:relative; overflow:hidden;
}
.page-banner::after{
  content:""; position:absolute; right:-40px; top:-40px; width:220px; height:220px; border-radius:50%;
  background:radial-gradient(circle, rgba(246,185,59,.25), transparent 70%);
}
.page-banner h1{color:#fff; font-size:1.7rem; position:relative; z-index:1;}
.page-banner p{color:#c9d6ec; margin-top:8px; max-width:640px; position:relative; z-index:1;}

/* ---------------------------------------------------------
   MAKTAB HAQIDA
--------------------------------------------------------- */
.about-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:36px; align-items:center; margin-bottom:40px;}
.about-grid img{border-radius:var(--radius-l); box-shadow:var(--shadow-m);}
.about-grid h2{font-size:1.3rem; margin-bottom:12px;}
.about-grid p{color:var(--ink-600); margin-bottom:12px;}
.stat-strip{display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:40px;}
.stat-box{background:var(--white); border-radius:var(--radius-m); box-shadow:var(--shadow-s); padding:22px 16px; text-align:center;}
.stat-box strong{display:block; font-family:var(--font-display); font-size:1.6rem; color:var(--blue-600);}
.stat-box span{font-size:.8rem; color:var(--ink-400);}
.values-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.value-card{background:var(--white); border-radius:var(--radius-m); box-shadow:var(--shadow-s); padding:24px;}
.value-card__icon{font-size:1.8rem; margin-bottom:10px;}
.value-card h3{font-size:1rem; margin-bottom:6px;}
.value-card p{font-size:.85rem; color:var(--ink-600);}

/* ---------------------------------------------------------
   TO'GARAKLAR
--------------------------------------------------------- */
.clubs-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.club-card{background:var(--white); border-radius:var(--radius-m); box-shadow:var(--shadow-s); padding:26px 20px; text-align:center; transition:transform .15s,box-shadow .15s;}
.club-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-m);}
.club-card__icon{
  width:60px; height:60px; border-radius:50%; background:var(--blue-50); display:grid; place-items:center;
  font-size:1.6rem; margin:0 auto 14px;
}
.club-card h3{font-size:.98rem; margin-bottom:6px;}
.club-card p{font-size:.82rem; color:var(--ink-600); margin-bottom:10px;}
.club-card__teacher{font-size:.78rem; color:var(--ink-400); border-top:1px solid var(--line); padding-top:10px;}
.club-card__schedule{font-size:.76rem; color:var(--blue-600); font-weight:600; margin-top:4px;}

/* ---------------------------------------------------------
   RAHBARIYAT
--------------------------------------------------------- */
.director-card{
  background:var(--white); border-radius:var(--radius-l); box-shadow:var(--shadow-s); padding:28px;
  display:flex; gap:24px; align-items:center; margin-bottom:24px;
}
.director-card img{width:130px; height:130px; border-radius:var(--radius-m); object-fit:cover; flex:none;}
.director-card h2{font-size:1.2rem;}
.director-card__role{color:var(--blue-600); font-weight:700; font-size:.85rem; margin:4px 0 10px;}
.director-card__contact{font-size:.85rem; color:var(--ink-600); display:flex; flex-direction:column; gap:4px;}
.director-card__contact a:hover{color:var(--blue-600);}
.leaders-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.leader-card{background:var(--white); border-radius:var(--radius-m); box-shadow:var(--shadow-s); padding:22px; text-align:center;}
.leader-card img{width:96px; height:96px; border-radius:50%; object-fit:cover; margin:0 auto 12px;}
.leader-card h3{font-size:.95rem;}
.leader-card__role{font-size:.78rem; color:var(--ink-400); margin:4px 0 10px; min-height:32px;}
.leader-card__email{font-size:.8rem; color:var(--blue-600);}

/* ---------------------------------------------------------
   ALOQA
--------------------------------------------------------- */
.contact-grid{display:grid; grid-template-columns:.9fr 1.1fr; gap:32px;}
.contact-info__item{display:flex; gap:14px; align-items:flex-start; background:var(--white); border-radius:var(--radius-m); box-shadow:var(--shadow-s); padding:18px; margin-bottom:14px;}
.contact-info__icon{width:42px; height:42px; border-radius:10px; background:var(--blue-50); display:grid; place-items:center; font-size:1.1rem; flex:none;}
.contact-info__item h3{font-size:.9rem; margin-bottom:4px;}
.contact-info__item p,.contact-info__item a{font-size:.85rem; color:var(--ink-600);}
.contact-info__item a:hover{color:var(--blue-600);}
.contact-map{border-radius:var(--radius-m); overflow:hidden; box-shadow:var(--shadow-s); margin-top:6px; min-height:220px;}
.contact-form{background:var(--white); border-radius:var(--radius-l); box-shadow:var(--shadow-s); padding:28px;}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px;}
.form-field{display:flex; flex-direction:column; gap:6px;}
.form-field label{font-size:.82rem; font-weight:700; color:var(--ink-600);}
.form-field input,.form-field textarea{
  border:1.5px solid var(--line); border-radius:9px; padding:11px 13px; font-size:.88rem; font-family:inherit; outline:0;
  transition:border-color .15s;
}
.form-field input:focus,.form-field textarea:focus{border-color:var(--blue-600);}
.form-alert{padding:12px 16px; border-radius:9px; font-size:.85rem; margin-bottom:16px;}
.form-alert--success{background:var(--green-50); color:var(--green-600);}
.form-alert--error{background:var(--red-50); color:var(--red-500);}

/* ---------------------------------------------------------
   YANGILIK / E'LON — bitta sahifa
--------------------------------------------------------- */
.article{background:var(--white); border-radius:var(--radius-l); box-shadow:var(--shadow-s); overflow:hidden; margin-bottom:28px;}
.article__media img{width:100%; max-height:420px; object-fit:cover;}
.article__body{padding:30px 32px;}
.article__meta{display:flex; gap:16px; font-size:.8rem; color:var(--ink-400); margin-bottom:12px;}
.article__title{font-size:1.4rem; margin-bottom:16px;}
.article__content{color:var(--ink-600); font-size:.95rem; line-height:1.8;}
.article__content p{margin-bottom:14px;}
.related-title{font-size:1rem; font-weight:800; margin-bottom:14px; color:var(--navy-900);}

@media (max-width: 1024px){
  .about-grid{grid-template-columns:1fr;}
  .stat-strip{grid-template-columns:repeat(2,1fr);}
  .values-grid{grid-template-columns:repeat(2,1fr);}
  .clubs-grid{grid-template-columns:repeat(2,1fr);}
  .leaders-grid{grid-template-columns:repeat(2,1fr);}
  .contact-grid{grid-template-columns:1fr;}
  .director-card{flex-direction:column; text-align:center;}
}
@media (max-width: 640px){
  .stat-strip,.values-grid,.clubs-grid,.leaders-grid{grid-template-columns:1fr;}
  .form-row{grid-template-columns:1fr;}
  .page-banner{padding:28px 22px;}
}

@media (max-width: 640px){
  .letters a{width:30px; height:30px; font-size:.78rem;}
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */
.site-footer{background:var(--navy-900); color:#c9d6ec; margin-top:40px;}
.footer-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:32px; padding-block:44px 30px;
}
.footer-col__title{color:#fff; font-size:.95rem; margin-bottom:16px; letter-spacing:.02em;}
.footer-links li,.footer-social li{margin-bottom:10px; font-size:.85rem;}
.footer-links a:hover,.footer-social a:hover{color:var(--gold-400);}
.footer-social a{display:flex; align-items:center; gap:10px;}
.footer-social__icon{
  width:26px; height:26px; border-radius:7px; display:grid; place-items:center; font-size:.8rem; font-weight:700;
  background:rgba(255,255,255,.1); color:#fff;
}
.footer-address{font-style:normal; font-size:.85rem; line-height:1.9;}
.footer-address a:hover{color:var(--gold-400);}
.footer-map{display:inline-flex; align-items:center; gap:6px; margin-top:12px; font-size:.82rem; font-weight:600; color:var(--gold-400);}
.footer-stats{font-size:.85rem;}
.footer-stats li{display:flex; justify-content:space-between; padding:6px 0; border-bottom:1px dashed rgba(255,255,255,.12);}
.footer-stats strong{color:#fff;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12); padding-block:16px; font-size:.78rem; color:#8fa0c2; text-align:center;}

/* ---------------------------------------------------------
   AI CHATBOT VIDJETI
--------------------------------------------------------- */
.chatbot{position:fixed; right:22px; bottom:22px; z-index:100;}
.chatbot__toggle{
  width:56px; height:56px; border-radius:50%; background:var(--blue-600); border:0; color:#fff;
  font-size:1.5rem; box-shadow:0 10px 24px rgba(29,95,196,.4); display:grid; place-items:center;
}
.chatbot__toggle:hover{background:var(--navy-700);}
.chatbot__panel{
  position:absolute; bottom:70px; right:0; width:300px; max-height:400px; background:var(--white);
  border-radius:var(--radius-m); box-shadow:var(--shadow-m); display:flex; flex-direction:column; overflow:hidden;
}
/* MUHIM: yuqoridagi qoida "display:flex"ni har doim majburlaydi, shuning
   uchun HTML'dagi "hidden" atributi buzilib, panel yopilmay qolardi.
   Quyidagi qoida "hidden" holatida panelni majburan yashiradi. */
.chatbot__panel[hidden]{display:none !important;}
.chatbot__header{
  background:var(--navy-900); color:#fff; padding:12px 14px; font-weight:700; font-size:.85rem;
  display:flex; align-items:center; gap:8px;
}
.chatbot__close{margin-left:auto; background:none; border:0; color:#fff; font-size:1.1rem;}
.chatbot__body{flex:1; padding:14px; overflow-y:auto; font-size:.85rem; display:flex; flex-direction:column; gap:10px; min-height:140px;}
.chatbot__msg{max-width:85%; padding:9px 12px; border-radius:12px; line-height:1.4;}
.chatbot__msg--bot{background:var(--blue-50); color:var(--ink-900); border-bottom-left-radius:2px;}
.chatbot__msg--user{background:var(--blue-600); color:#fff; align-self:flex-end; border-bottom-right-radius:2px;}
.chatbot__form{display:flex; border-top:1px solid var(--line);}
.chatbot__form input{flex:1; border:0; padding:12px 14px; font-size:.85rem; outline:0;}
.chatbot__form button{background:var(--blue-600); color:#fff; border:0; width:44px;}

/* ---------------------------------------------------------
   RESPONSIV
--------------------------------------------------------- */
@media (max-width: 1024px){
  .card-grid,.card-grid--4{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:repeat(2,1fr);}
}

@media (max-width: 860px){
  .topbar__tools{gap:8px;}
  .topbar__search{display:none;}
  .nav-toggle{display:flex;}
  .main-nav{
    position:fixed; inset:0 0 0 30%; background:var(--white); padding:90px 24px 24px; transform:translateX(100%);
    transition:transform .25s ease; z-index:40; box-shadow:-8px 0 24px rgba(0,0,0,.1);
  }
  .main-nav.is-open{transform:translateX(0);}
  .main-nav ul{flex-direction:column; gap:4px;}
  .main-nav a{padding:14px 16px;}
  .hero__content{padding:32px 24px; max-width:100%;}
  .hero__content h1{font-size:1.5rem;}
}

@media (max-width: 640px){
  .card-grid,.card-grid--4{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr; text-align:left;}
  .section__head{flex-direction:column; align-items:flex-start; gap:6px;}
  .chatbot__panel{width:88vw; right:-10px;}
}

/* ---------------------------------------------------------
   E'TIROF (yutuqlar) SAHIFASI
--------------------------------------------------------- */
.achievements-hero{
  background:linear-gradient(120deg,var(--navy-900),var(--navy-700));
  border-radius:var(--radius-l); padding:44px 40px; margin-bottom:30px; color:#fff;
  display:grid; grid-template-columns:1.3fr .7fr; gap:24px; align-items:center; position:relative; overflow:hidden;
}
.achievements-hero::after{
  content:""; position:absolute; right:-60px; top:-60px; width:260px; height:260px; border-radius:50%;
  background:radial-gradient(circle, rgba(246,185,59,.28), transparent 70%);
}
.achievements-hero__label{
  display:inline-flex; align-items:center; gap:8px; color:var(--gold-400); font-weight:800; font-size:.8rem;
  letter-spacing:.06em; margin-bottom:10px; position:relative; z-index:1;
}
.achievements-hero h1{
  color:#fff; font-size:2.4rem; font-weight:800; letter-spacing:.02em; margin-bottom:14px; position:relative; z-index:1;
}
.achievements-hero p{color:#d7e1f3; font-size:.95rem; max-width:520px; position:relative; z-index:1;}
.achievements-hero__art{
  display:flex; align-items:center; justify-content:center; position:relative; z-index:1;
}
.achievements-hero__art svg{width:100%; max-width:220px; height:auto;}

.category-tabs{display:flex; flex-wrap:wrap; gap:10px; margin-bottom:26px;}
.category-tabs a{
  padding:10px 20px; border-radius:999px; background:#fff; box-shadow:var(--shadow-s);
  font-weight:700; font-size:.85rem; color:var(--ink-600); display:inline-flex; align-items:center; gap:6px;
}
.category-tabs a:hover{color:var(--blue-600);}
.category-tabs a.is-active{background:var(--blue-600); color:#fff;}

.achievement-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.achievement-card{
  background:#fff; border-radius:var(--radius-m); box-shadow:var(--shadow-s); overflow:hidden;
  display:flex; flex-direction:column; transition:transform .18s, box-shadow .18s;
}
.achievement-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-m);}
.achievement-card__media{display:flex; gap:2px; aspect-ratio:16/11; background:var(--blue-50); overflow:hidden;}
.achievement-card__media img{width:100%; height:100%; object-fit:cover; flex:1 1 0; min-width:0; min-height:0; display:block; cursor:zoom-in; transition:opacity .15s;}
.achievement-card__media img:hover{opacity:.88;}
.achievement-card__media--single img{width:100%;}
.achievement-card__body{padding:16px; display:flex; flex-direction:column; gap:8px; flex:1;}
.achievement-card__cat{
  display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:20px; font-size:.75rem;
  font-weight:700; width:fit-content;
}
.achievement-card__name{font-size:.98rem; font-weight:800; color:var(--navy-900);}
.achievement-card__class{font-size:.78rem; color:var(--ink-400); margin-top:-4px;}
.achievement-card__desc{font-size:.85rem; color:var(--ink-600); flex:1;}
.achievement-card__foot{display:flex; align-items:center; justify-content:space-between; font-size:.78rem; color:var(--ink-400); margin-top:4px;}
.achievement-card__arrow{
  width:28px; height:28px; border-radius:50%; background:var(--blue-50); color:var(--blue-600);
  display:grid; place-items:center; font-size:.85rem;
}

/* Kategoriya ranglari */
.cat-olympiad{background:#fdf1e6; color:#c07a1f;}
.cat-contest{background:#e7f8ee; color:#1b8f4d;}
.cat-sport{background:#f2ecfb; color:#6d43c9;}
.cat-social{background:#e6f7f9; color:#1b8fa0;}
.cat-other{background:#fbeaf3; color:#c93d8f;}

@media (max-width: 1024px){
  .achievements-hero{grid-template-columns:1fr; text-align:left;}
  .achievements-hero__art{display:none;}
  .achievement-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width: 640px){
  .achievements-hero h1{font-size:1.8rem;}
  .achievement-grid{grid-template-columns:1fr;}
  .category-tabs{overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px;}
}

/* ---------------------------------------------------------
   LIGHTBOX — rasmlarni katta ko'rish
--------------------------------------------------------- */
.lightbox{
  position:fixed; inset:0; z-index:200; background:rgba(10,16,30,.92);
  display:flex; align-items:center; justify-content:center; padding:40px;
  animation:lightboxFade .18s ease;
}
.lightbox[hidden]{display:none !important;}
@keyframes lightboxFade{from{opacity:0;} to{opacity:1;}}
.lightbox__img{
  max-width:min(90vw, 900px); max-height:88vh; border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.5); object-fit:contain; background:#111;
}
.lightbox__close{
  position:absolute; top:22px; right:26px; width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.12); color:#fff; border:0; font-size:1.6rem; line-height:1;
  display:grid; place-items:center; backdrop-filter:blur(4px);
}
.lightbox__close:hover{background:rgba(255,255,255,.25);}
.lightbox__nav{
  position:absolute; top:50%; translate:0 -50%; width:52px; height:52px; border-radius:50%;
  background:rgba(255,255,255,.12); color:#fff; border:0; font-size:1.6rem; display:grid; place-items:center;
  backdrop-filter:blur(4px);
}
.lightbox__nav:hover{background:rgba(255,255,255,.25);}
.lightbox__nav--prev{left:22px;}
.lightbox__nav--next{right:22px;}

@media (max-width: 640px){
  .lightbox{padding:16px;}
  .lightbox__close{top:12px; right:12px; width:38px; height:38px; font-size:1.3rem;}
  .lightbox__nav{width:42px; height:42px; font-size:1.3rem;}
  .lightbox__nav--prev{left:8px;}
  .lightbox__nav--next{right:8px;}
}