/* =========================================================================
   Kokand Xalqaro Maktabi — dizayn
   Uslub: andrewsosborne.org (navy #041C2C / green #719949)
   Fonts: Lora (sarlavha), Source Sans Pro (matn)
   ========================================================================= */

:root {
  --navy:   #041c2c;
  --navy-2: #0a2b3f;
  --green:  #719949;
  --green-2:#5d8640;
  --slate:  #445662;
  --grey:   #eff1f3;
  --grey-2: #b3babf;
  --white:  #ffffff;
  --body-font: 'Source Sans Pro', -apple-system, 'Segoe UI', sans-serif;
  --heading-font: 'Lora', Georgia, serif;
  --shadow: 0 18px 45px rgba(4,28,44,.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  font-size: 20px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  letter-spacing: -0.2px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color .25s; }
a:hover { color: var(--navy); }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.full-width { width: 100%; }

/* Sarlavhalar */
h1, h2, h3, h4 { font-family: var(--heading-font); font-weight: 400; line-height: 1.15; color: var(--navy); }

/* ===== Buttons (namunadagidek: uppercase, letter-spacing) ====== */
.btn {
  display: inline-block;
  padding: 15px 34px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  transition: all .3s;
  cursor: pointer;
}
.btn:hover { background: var(--green-2); border-color: var(--green-2); color: #fff; }
.btn.btn-solid { background: var(--green); border-color: var(--green); }
.btn.btn-solid:hover { background: var(--green-2); border-color: var(--green-2); }
.btn.btn-outline-navy { background: transparent; border-color: rgba(4,28,44,.4); color: var(--navy); }
.btn.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px 3vw;
  transition: all .4s;
}
.site-header.fixed-animate {
  background: rgba(4,28,44,.96);
  padding: 10px 3vw;
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo a { display: flex; align-items: center; gap: 12px; }
.logo img { max-height: 60px; width: auto; transition: all .4s; }
.logo .logo-text { color: #fff; font-family: var(--heading-font); font-size: 26px; line-height: 1.05; }
.logo .logo-sub { display:block; font-family: var(--body-font); font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: rgba(255,255,255,.75); }

.header-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.header-links a {
  color: rgba(255,255,255,.9);
  font-size: 14px;
  letter-spacing: 1px;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
}
.header-links a:hover { color: #fff; border-bottom-color: var(--green); }

.header-menu-btn {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 12px 8px;
  display: none;
  flex-direction: column;
  gap: 5px;
}
.header-menu-btn span { width: 26px; height: 3px; background: #fff; display: block; transition: all .3s; }

/* ===== Mega menu ===== */
.mega-menu {
  position: absolute;
  top: 100%; right: 0; left: 0;
  background: #fff;
  box-shadow: var(--shadow);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all .35s ease;
}
body.menu-open .mega-menu { max-height: 78vh; opacity: 1; overflow: auto; }
.mega-menu-inner { display: flex; flex-wrap: wrap; gap: 30px; padding: 44px 5vw; }
.mega-col { flex: 1 1 160px; min-width: 150px; }
.mega-col h4 { font-size: 15px; letter-spacing: 3px; text-transform: uppercase; color: var(--green-2); margin-bottom: 14px; font-family: var(--body-font); font-weight: 700; }
.mega-col a { display: block; font-size: 17px; color: var(--navy); padding: 5px 0; }
.mega-col a:hover { color: var(--green); padding-left: 6px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 82vh;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: .62; }
.hero:before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #03121c 0%, rgba(3,18,28,0) 55%);
  opacity: .55;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 8vh;
}
.hero-welcome {
  color: #fff; font-family: var(--body-font);
  letter-spacing: 3px; font-size: 1rem; font-weight: 600;
  text-transform: uppercase; text-shadow: 0 2px 15px rgba(0,0,0,.55);
  margin-bottom: 14px;
}
.hero-title {
  color: #fff; font-size: clamp(40px, 7vw, 76px);
  text-shadow: 0 0 18px rgba(0,0,0,.5);
}
.hero-subtitle { color: rgba(255,255,255,.92); font-size: clamp(16px,2vw,20px); margin: 14px 0 30px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-dots { position: absolute; bottom: 24px; left: 0; right: 0; z-index: 2; display: flex; gap: 10px; justify-content: center; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; }
.hero-dots button.active { background: var(--green); }

/* ===== Intro ===== */
.intro { background: var(--white); padding: 90px 0 70px; }
.intro-row { display: flex; align-items: center; gap: 60px; }
.intro-text { flex: 1 1 55%; text-align: center; position: relative; }
.intro-text:before {
  content: ''; position: absolute; inset: 0;
  background: url(''), no-repeat center 40%;
  background-size: 100%;
  opacity: .12;
  pointer-events: none;
}
.intro h2 { color: var(--navy); font-size: clamp(30px, 4vw, 46px); margin-bottom: 26px; position: relative; }
.intro p { color: var(--slate); font-size: 18px; font-weight: 300; max-width: 620px; margin: 0 auto 30px; position: relative; }
.intro-photo { flex: 1 1 45%; position: relative; top: -30px; }
.intro-photo img { border-radius: 4px; box-shadow: 0 30px 60px rgba(4,28,44,.18); width: 100%; }

/* ===== Tiles (yo'nalishlar) ===== */
.tiles { background: var(--white); padding: 20px 0 60px; }
.tiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.tile {
  position: relative;
  min-height: 320px;
  background: var(--navy);
  overflow: hidden;
  display: block;
}
.tile .tile-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .55; transition: all .5s; }
.tile:hover .tile-bg { opacity: 1; transform: scale(1.04); }
.tile:before { content: ''; position: absolute; inset: 12%; border: 1px solid rgba(255,255,255,.4); z-index: 1; pointer-events: none; }
.tile-label {
  position: absolute; left: 0; bottom: 7%;
  width: 60%; padding: 12px 18px;
  background: rgba(113,153,73,.88);
  color: #fff; font-family: var(--body-font);
  font-size: 18px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  z-index: 2; transition: all .35s;
}
.tile:hover .tile-label { background: var(--green-2); width: 70%; }

/* ===== Stats ===== */
.stats { background: var(--grey); padding: 80px 0; }
.stats-container { max-width: 1100px; margin: 0 auto; text-align: center; }
.stats h3 { color: var(--navy); font-size: clamp(24px,3vw,34px); margin-bottom: 40px; }
.stats-track { overflow: hidden; }
.stats-slides { display: flex; transition: transform .7s ease; }
.stats-slide { flex: 0 0 100%; padding: 10px 20px; }
.stats-number {
  font-family: var(--heading-font); color: var(--navy);
  font-size: clamp(42px, 6vw, 62px); font-weight: 400;
}
.stats-label {
  color: var(--slate); font-size: 16px; font-weight: 300;
  text-transform: uppercase; letter-spacing: 2px;
}
.stats-label:before { content: ''; display: block; width: 48px; height: 2px; background: var(--green); margin: 14px auto; }
.stats-arrows { display: flex; gap: 16px; justify-content: center; margin-top: 30px; }
.stats-arrows button {
  background: transparent; border: 1px solid var(--navy);
  color: var(--navy); width: 48px; height: 48px; font-size: 22px; cursor: pointer;
}
.stats-arrows button:hover { background: var(--green); border-color: var(--green); color: #fff; }
.stats-counter { color: var(--grey-2); text-align: center; margin-top: 16px; font-size: 14px; letter-spacing: 2px; }

/* ===== Zigzag separator ===== */
.zigzag { background: var(--grey); height: 100px; position: relative; overflow: hidden; }
.zigzag:before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  border-top: 100px solid var(--navy);
  border-left: 50vw solid transparent;
  border-right: 50vw solid transparent;
}

/* ===== News ===== */
.news { background: var(--white); padding: 90px 6vw; }
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.news-head h2 { font-size: clamp(26px,3vw,40px); }
.news-head a { font-size: 16px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.news-card {
  background: #fff; box-shadow: var(--shadow);
  border-radius: 6px; overflow: hidden;
  transition: transform .3s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-6px); }
.news-card .thumb { height: 200px; background-size: cover; background-position: center; background-color: var(--grey); }
.news-card .body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; }
.news-card .date { color: var(--grey-2); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.news-card h3 { font-size: 22px; margin: 8px 0 10px; }
.news-card h3 a { color: var(--navy); }
.news-card h3 a:hover { color: var(--green); }
.news-card p { font-size: 15px; color: var(--slate); flex: 1; }
.news-card .more { margin-top: 14px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }

/* ===== CTA ===== */
.cta { position: relative; min-height: 46vh; display: flex; align-items: flex-end; justify-content: center; background: var(--grey); overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; }
.cta:before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(255,255,255,.7)); z-index: 1; }
.cta-content { position: relative; z-index: 2; text-align: center; padding: 60px 24px; }
.cta-content h2 { color: var(--navy); font-size: clamp(30px,4.5vw,52px); margin-bottom: 30px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Page header (bo'lim sahifalari) ===== */
.page-hero {
  position: relative; min-height: 46vh;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center;
}
.page-hero:after { content:''; position:absolute; inset:0; background: rgba(4,28,44,.6); }
.page-hero h1 { position: relative; z-index: 2; color: #fff; font-size: clamp(32px,5vw,60px); text-align: center; padding: 100px 24px 0; }
.page-body { background: #fff; padding: 70px 0; }
.page-body .container { max-width: 920px; }
.page-intro { font-size: 22px; color: var(--navy); font-family: var(--heading-font); margin-bottom: 30px; }
.page-body h2 { font-size: 28px; margin: 34px 0 14px; }
.page-body p { margin-bottom: 16px; }
.page-body ul, .page-body ol { margin: 0 0 20px 24px; }

/* ===== Post page ===== */
.post-hero { position: relative; min-height: 40vh; background: var(--navy); background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.post-hero:after { content:''; position:absolute; inset:0; background: linear-gradient(transparent, rgba(4,28,44,.85)); }
.post-hero .container { position: relative; z-index: 2; padding-bottom: 40px; }
.post-hero h1 { color:#fff; font-size: clamp(28px,4vw,48px); }
.post-hero .date { color: rgba(255,255,255,.8); letter-spacing: 2px; text-transform: uppercase; font-size: 14px; margin-bottom: 10px; }
.post-content { padding: 50px 0; background: #fff; }
.post-media { margin: 26px 0; }
.post-media video, .post-media audio { width: 100%; }

/* ===== News listing ===== */
.news-listing { padding: 30px 0 80px; }
.news-listing .post-item { display: flex; gap: 30px; align-items: flex-start; margin-bottom: 40px; }
.post-item .thumb { flex: 0 0 260px; height: 180px; background-size: cover; background-position: center; border-radius: 6px; }
.news-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.news-cats a { padding: 9px 18px; border: 1px solid #ccd4d9; border-radius: 24px; font-size: 14px; font-weight: 600; color: var(--slate); text-transform: uppercase; letter-spacing: 1px; }
.news-cats a.active, .news-cats a:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ===== Teachers (o'qituvchilar) ===== */
.teachers-section { max-width: 1200px; margin: 0 auto; background: #f5f7f8; }
.teachers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.teacher-card { background: #fff; border: 1px solid #e3e7ea; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.teacher-avatar { display: block; width: 100%; height: 240px; background-size: cover; background-position: center top; }
.teacher-card-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.teacher-card h3 { font-family: var(--heading-font); font-size: 22px; margin: 0; }
.teacher-card h3 a { color: var(--navy); }
.teacher-card h3 a:hover { color: var(--green); }
.t-pos { font-size: 15px; font-weight: 600; color: var(--green); letter-spacing: 1px; text-transform: uppercase; }
.t-sub { font-size: 15px; color: #66777f; }
.t-exp { font-size: 14px; color: #66777f; }
.ach-list { margin: 8px 0 0; padding-left: 18px; color: #44555d; font-size: 14px; line-height: 1.6; }
.ach-list li { margin-bottom: 4px; }
.ach-list.small { font-size: 13px; }
.teacher-card .more { margin-top: auto; padding-top: 12px; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; color: var(--green); }
.teacher-detail { padding: 30px 0 80px; }
.teacher-detail-card { background: #fff; border: 1px solid #e3e7ea; border-radius: 8px; padding: 32px; }
.teacher-detail-card .teacher-photo { max-width: 260px; border-radius: 8px; margin: 0 0 18px; }
.teacher-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 18px; }
.meta-line { font-size: 15px; color: #44555d; margin: 0; }
.meta-line b { color: var(--navy); }
.teacher-detail h2 { font-family: var(--heading-font); font-size: 26px; color: var(--navy); margin: 22px 0 8px; }
.teacher-detail p { color: #44555d; line-height: 1.7; }
@media (max-width: 992px) { .teachers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .teachers-grid { grid-template-columns: 1fr; } }

/* ===== Bitiruvchilar (graduates) ===== */
.grad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grad-card { background: #fff; border: 1px solid #e3e7ea; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.grad-photo { position: relative; }
.grad-photo img { width: 100%; height: 240px; object-fit: cover; display: block; }
.grad-award { position: absolute; right: 12px; bottom: 12px; width: 90px; height: 66px; border: 3px solid #fff; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.25); overflow: hidden; display: block; background: #fff; }
.grad-award img { width: 100%; height: 100%; object-fit: cover; display: block; }
.award-zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(4,28,44,.45); color: #fff; font-size: 22px; font-weight: 700; opacity: 0; transition: opacity .2s; }
.grad-award:hover .award-zoom { opacity: 1; }
.grad-card-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.grad-card h3 { font-family: var(--heading-font); font-size: 21px; margin: 0; color: var(--navy); }
.grad-card h3 { color: inherit; }
.g-dob, .g-date { font-size: 14px; color: #66777f; margin: 0; }
.g-dob em, .g-date em, .grad-tutor em { color: var(--navy); font-style: normal; font-weight: 600; }
.grad-tutor { font-size: 15px; margin: 2px 0 0; color: #44555d; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tutor-link { color: var(--green); font-weight: 700; text-decoration: underline; cursor: pointer; }
.tutor-link:hover { color: var(--navy); }
.tutor-pos { font-size: 13px; color: #8899a2; }
.grad-ach { font-size: 14px; line-height: 1.65; color: #44555d; margin: 8px 0 0; }
.tutor-modal { position: fixed; inset: 0; background: rgba(4,28,44,.55); display: flex; align-items: center; justify-content: center; z-index: 999; padding: 20px; }
.tutor-modal[hidden] { display: none; }
.tutor-modal-box { background: #fff; border-radius: 10px; padding: 30px; max-width: 460px; width: 100%; text-align: center; position: relative; box-shadow: var(--shadow); }
.tutor-modal-box h3 { font-family: var(--heading-font); font-size: 24px; color: var(--navy); margin: 14px 0 6px; }
.tutor-modal-box p { color: #66777f; margin: 0 0 8px; }
.tutor-modal-box .tutor-ach { color: #44555d; font-size: 14px; line-height: 1.6; text-align: left; white-space: pre-line; margin: 10px 0 18px; }
.tutor-avatar { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; display: block; margin: 0 auto; }
.tutor-close { position: absolute; top: 12px; right: 16px; font-size: 26px; line-height: 1; background: none; border: 0; color: #8899a2; cursor: pointer; }
.tutor-close:hover { color: var(--navy); }
@media (max-width: 992px) { .grad-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grad-grid { grid-template-columns: 1fr; } }
body.theme-dark .grad-card { background: var(--navy-2); border-color: #1d3548; }
body.theme-dark .grad-card h3 { color: #e7eef2; }
body.theme-dark .g-dob, body.theme-dark .g-date, body.theme-dark .grad-tutor { color: #cdd8de; }
body.theme-dark .g-dob em, body.theme-dark .g-date em, body.theme-dark .grad-tutor em { color: #e7eef2; }
body.theme-dark .grad-ach { color: #d5e0e6; }
body.theme-dark .tutor-modal-box { background: var(--navy-2); color: #d5e0e6; }
body.theme-dark .tutor-modal-box h3 { color: #e7eef2; }
body.theme-dark .tutor-modal-box p, body.theme-dark .tutor-modal-box .tutor-ach { color: #cdd8de; }

/* ===== Aloqa sahifasi ===== */
.contact-info h2 { font-family: var(--heading-font); font-size: 22px; color: var(--navy); margin: 26px 0 8px; }
.contact-info p { color: #44555d; line-height: 1.7; }
.phone-link { font-size: 20px; font-weight: 700; color: var(--navy); }
.phone-link:hover { color: var(--green); }
.phone-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }
body.theme-dark .contact-info h2 { color: #e7eef2; }
body.theme-dark .contact-info p { color: #cdd8de; }
body.theme-dark .phone-link { color: #e7eef2; }
body.theme-dark .phone-link:hover { color: var(--green-2); }

/* ===== Form (so'rov) ===== */
.form-box { background: #fff; border: 1px solid #e3e7ea; border-radius: 8px; padding: 28px; }
.form-box label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin: 0 0 6px; }
.form-box input[type=text], .form-box input[type=tel], .form-box select, .form-box textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #ccd4d9; border-radius: 6px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--navy);
}
.form-box textarea { resize: vertical; }
.form-box input:focus, .form-box select:focus, .form-box textarea:focus { outline: 2px solid rgba(113,153,73,.4); border-color: var(--green); }
.hidden { display: none !important; }

/* ===== Footer ===== */
.site-footer { background: var(--grey); padding: 60px 0 0; color: var(--slate); }
.footer-top { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.footer-col h4 { color: var(--navy); font-family: var(--body-font); font-size: 14px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-col p { font-size: 15px; line-height: 1.7; }
.footer-col a { display: block; color: var(--navy); font-size: 15px; padding: 4px 0; opacity: .75; }
.footer-col a:hover { color: var(--green); opacity: 1; }
.footer-logo img { max-height: 56px; margin-bottom: 14px; }
.footer-about { background: rgba(4,28,44,.05); padding: 26px 0; font-style: italic; font-size: 16px; text-align: center; color: var(--grey-2); }
.footer-bottom { padding: 22px 0; border-top: 1px solid #d4dade; font-size: 14px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: var(--navy); }

/* ===== Media ===== */
@media (min-width: 1201px) { .header-menu-btn { display: none; } }
@media (max-width: 1200px) {
  .header-links a { font-size: 13px; padding: 8px 8px; letter-spacing: 0; }
}
@media (max-width: 992px) {
  .tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-row { flex-direction: column; gap: 30px; }
  .intro-photo { top: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .header-links { display: none; }
  .header-menu-btn { display: flex; }
  .site-header { padding: 16px 20px; }
  body { font-size: 17px; }
  .hero { min-height: 72vh; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .tiles-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .news-listing .post-item { flex-direction: column; }
  .post-item .thumb { flex: auto; width: 100%; }
  .logo-text { font-size: 18px; letter-spacing: 0; }
  .logo-sub { display: none; }
  .hero-content { padding: 60px 18px 6vh; }
  .hero-buttons .btn { width: 100%; padding: 14px; font-size: 13px; }
  .btn { padding: 13px 20px; font-size: 13px; letter-spacing: 2px; }
  .intro { padding: 56px 0 40px; }
  .news-head { flex-direction: column; align-items: flex-start; }
  .stats { padding: 56px 0; }
  .cta-content { padding: 44px 18px; }
  .page-body { padding: 48px 0; }
  .page-hero h1 { padding: 90px 18px 0; font-size: 30px; }
  .news-listing { padding: 20px 0 60px; }
  .form-box { padding: 20px; }
  .form-grid, form .form-grid { grid-template-columns: 1fr !important; }
  .mega-menu-inner { flex-direction: column; gap: 18px; padding: 30px 20px; }
  .mega-col { flex: 1 1 auto; min-width: 0; }
  .mega-col a { font-size: 18px; padding: 8px 0; }
}

/* ===== Saytning yangi elementlari: lang switcher, tema, sorov wizard, map ===== */
.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 4px; background: rgba(255,255,255,.14); border-radius: 30px; padding: 3px; }
.lang-btn { color: rgba(255,255,255,.85); font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 5px 10px; border-radius: 24px; }
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--green); color: #fff; }
.theme-toggle {
  background: rgba(255,255,255,.14);
  border: 0; border-radius: 50%; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; transition: background .3s;
}
.theme-toggle:hover { background: rgba(255,255,255,.28); }
.theme-toggle .icon-sun { display: none; }
body.theme-dark .theme-toggle .icon-moon { display: none; }
body.theme-dark .theme-toggle .icon-sun { display: inline; }

/* Sorov wizard */
.wprog { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.wdot { width: 12px; height: 12px; border-radius: 50%; background: var(--grey-2); }
.wdot.active { background: var(--green); }
.wstep-title { font-size: 24px; margin-bottom: 18px; }

/* Aloqa */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.map-embed { margin-top: 30px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }

/* ===== Tungi rejim (default: kunduzgi) ===== */
:root { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;
  --navy:   #041c2c;
  --navy-2: #0e3146;
  --green:  #8cb26b;
  --green-2:#71994f;
  --slate:  #cfd9de;
  --grey:   #111e28;
  --grey-2: #55677a;
  --white:  #0a1621;
  --shadow: 0 18px 45px rgba(0,0,0,.5);
}
body.theme-dark { background: var(--navy); color: var(--slate); }
body.theme-dark h1, body.theme-dark h2, body.theme-dark h3, body.theme-dark h4 { color: #e7eef2; }
body.theme-dark a { color: var(--green); }
body.theme-dark a:hover { color: #cfe3b8; }
body.theme-dark .mega-menu { background: var(--white); }
body.theme-dark .mega-col h4 { color: var(--green-2); }
body.theme-dark .mega-col a { color: #d5dfe4; }
body.theme-dark .tiles { background: var(--white); }
body.theme-dark .news { background: var(--white); }
body.theme-dark .news-card { background: var(--navy-2); }
body.theme-dark .news-card h3 a { color: #e7eef2; }
body.theme-dark .news-card h3 a:hover { color: var(--green); }
body.theme-dark .news-card p { color: var(--slate); }
body.theme-dark .page-body, body.theme-dark .post-content { background: var(--white); }
body.theme-dark .page-intro { color: #e2eaee; }
body.theme-dark .form-box { background: var(--navy-2); border-color: #1d3548; }
body.theme-dark .form-box label { color: #d5dfe4; }
body.theme-dark .form-box input[type=text],
body.theme-dark .form-box input[type=tel],
body.theme-dark .form-box select,
body.theme-dark .form-box textarea { background: #0c1c29; color: #e7eef2; border-color: #1d3548; }
body.theme-dark .teacher-card { background: var(--navy-2); border-color: #1d3548; }
body.theme-dark .teacher-card h3 a { color: #e7eef2; }
body.theme-dark .teacher-card h3 a:hover { color: var(--green); }
body.theme-dark .teachers-section { background: var(--navy-2); }
body.theme-dark .teacher-card .t-sub { color: #cdd8de; }
body.theme-dark .teacher-card .t-exp { color: #cdd8de; }
body.theme-dark .teacher-card .ach-list { color: #d5e0e6; }
body.theme-dark .teacher-detail-card { background: var(--navy-2); border-color: #1d3548; }
body.theme-dark .teacher-detail-card .meta-line { color: #d5e0e6; }
body.theme-dark .teacher-detail-card .meta-line b { color: #e7eef2; }
body.theme-dark .teacher-detail h2 { color: #e7eef2; }
body.theme-dark .teacher-detail p { color: #d5e0e6; line-height: 1.7; }
body.theme-dark .teacher-detail .ach-list { color: #d5e0e6; }
body.theme-dark .zigzag { background: #0c1c29; }
body.theme-dark .tile-label { background: rgba(113,153,73,.9); }
body.theme-dark .news-cats a { border-color: #1d3548; color: var(--slate); }
body.theme-dark .news-cats a.active, body.theme-dark .news-cats a:hover { background: var(--green); border-color: var(--green); color: #fff; }
body.theme-dark .news-listing .post-item a.thumb { background-color: var(--navy-2); }
body.theme-dark .page-body h2 { color: #e7eef2; }
body.theme-dark .page-body p { color: var(--slate); }
body.theme-dark .page-body a.more { color: var(--green); }
body.theme-dark .btn.btn-outline-navy { border-color: rgba(255,255,255,.5); color: #fff; }
body.theme-dark .btn.btn-outline-navy:hover { background: var(--navy-2); }
body.theme-dark .btn { color: #fff; background: var(--green-2); border-color: var(--green-2); }
body.theme-dark .btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
body.theme-dark .site-footer, body.theme-dark .intro, body.theme-dark .stats, body.theme-dark .cta, body.theme-dark .hero { background: var(--navy); }
body.theme-dark .stats h3 { color: #e7eef2; }
body.theme-dark .stats-number { color: #fff; }
body.theme-dark .stats-label { color: rgba(255,255,255,.82); }
body.theme-dark .stats-arrows button { border-color: rgba(255,255,255,.35); color: #fff; }
body.theme-dark .stats-counter { color: rgba(255,255,255,.6); }
body.theme-dark .intro h2 { color: #fff; }
body.theme-dark .intro p { color: rgba(255,255,255,.88); }
body.theme-dark .intro-photo img { box-shadow: 0 30px 60px rgba(0,0,0,.6); }
body.theme-dark .cta-content h2 { color: #fff; }
body.theme-dark .cta-bg { opacity: .5; }
body.theme-dark .cta:before { background: linear-gradient(transparent, rgba(3,18,28,.85)); }
body.theme-dark .footer-col h4 { color: #fff; }
body.theme-dark .footer-col p { color: rgba(255,255,255,.75); }
body.theme-dark .footer-col a { color: rgba(255,255,255,.65); }
body.theme-dark .footer-col a:hover { color: #fff; }
body.theme-dark .footer-about { color: rgba(255,255,255,.55); }
body.theme-dark .footer-bottom { border-top-color: rgba(255,255,255,.12); }
body.theme-dark .footer-bottom a { color: rgba(255,255,255,.75); }
body.theme-dark .header-menu-btn span { background: #fff; }