:root {
  --navy: #22244e;
  --blue: #336aea;
  --teal: #17d1c6;
  --coral: #ff7d6a;
  --white: #ffffff;

  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes softPulse {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-1px) scale(1.01);
  }
}

@keyframes orbDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(14px, -10px, 0) scale(1.02);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes accentGlow {
  0%,
  100% {
    text-shadow: 0 0 18px rgba(23, 209, 198, 0.28), 0 0 35px rgba(23, 209, 198, 0.35);
  }
  50% {
    text-shadow: 0 0 24px rgba(23, 209, 198, 0.42), 0 0 48px rgba(23, 209, 198, 0.48);
  }
}

@keyframes btnEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes btnShine {
  0% {
    transform: translateX(-140%) skewX(-20deg);
  }
  100% {
    transform: translateX(140%) skewX(-20deg);
  }
}

@keyframes activeBreath {
  0%,
  100% {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(255, 125, 106, 0.2);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26), 0 0 0 3px rgba(255, 125, 106, 0.35);
    transform: translateY(-1px);
  }
}

@keyframes pageIndexIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pageYutuqlarIn {
  from {
    opacity: 0;
    transform: translateY(12px) rotateX(6deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

@keyframes pageContactIn {
  from {
    opacity: 0;
    transform: translateX(-10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes pageFilialIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

* {
  box-sizing: border-box;
}

html {
  /* iOS Safari matnni ixtiyoriy kattalashtirmasligi */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1100px 600px at 10% 10%, rgba(51, 106, 234, 0.35), transparent 60%),
    radial-gradient(900px 500px at 70% 15%, rgba(23, 209, 198, 0.25), transparent 55%),
    radial-gradient(900px 550px at 80% 70%, rgba(255, 125, 106, 0.2), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0f1639 40%, #0a1026 100%);
  overflow-x: hidden;
}

body.is-preloading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(900px 520px at 20% 30%, rgba(51, 106, 234, 0.22), transparent 60%),
    radial-gradient(780px 520px at 70% 25%, rgba(23, 209, 198, 0.18), transparent 60%),
    radial-gradient(860px 560px at 75% 75%, rgba(255, 125, 106, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0f1639 40%, #0a1026 100%);
  backdrop-filter: blur(10px);
}

.preloader video {
  width: min(560px, calc(100% - 40px));
  height: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: var(--shadow);
}

.preloader.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

/* About (AMALIY MUHIT / PEDAGOGLARIMIZ) modal */
.nav-panel-action {
  width: 100%;
  text-align: left;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 850;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.nav-panel-action:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 16, 38, 0.68);
  backdrop-filter: blur(10px);
}

.about-modal.is-open {
  display: flex;
}

.about-modal-card {
  width: min(1120px, 100%);
  background: rgba(12, 18, 45, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: auto;
  max-height: 84vh;
  padding: 18px;
}

.about-modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.about-modal-title {
  margin: 0;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.about-modal-close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  flex: 0 0 auto;
}

.about-modal-close:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
}

.about-modal-content {
  color: var(--text);
}

.about-image-grid {
  display: grid;
  /* 4 ustun = 7 ta rasm odatda 2 qator bo'lib tushadi */
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.img-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  color: var(--muted);
  font-weight: 750;
  font-size: 13.5px;
}

.about-image {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 12px;
}

/* Tadbirlar sahifasi uchun kattaroq galereya */
.tadbir-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.tadbir-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease;
}

.tadbir-image:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.26);
}

@media (max-width: 980px) {
  .tadbir-gallery {
    grid-template-columns: 1fr;
  }
}

.teacher-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px;
}

.teacher-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  object-fit: cover;
  object-position: center 42%;
  display: block;
  margin-bottom: 10px;
}

.teacher-name {
  font-weight: 900;
  margin: 0 0 6px;
}

.teacher-role {
  display: inline-block;
  margin: 0 0 8px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(23, 209, 198, 0.35);
  background: rgba(23, 209, 198, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.teacher-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13.5px;
}

@media (max-width: 980px) {
  .about-image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .teachers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .about-image-grid {
    grid-template-columns: 1fr;
  }
}

/* Home banner (yashil bo'lim o'rniga) */
.home-banner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 16px;
  align-items: stretch;
}

.home-banner-frame {
  border-radius: 18px;
  border: 2px solid rgba(255, 125, 106, 0.78);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 195px;
}

.home-banner-frame::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    rgba(51, 106, 234, 0.45),
    rgba(23, 209, 198, 0.30),
    rgba(255, 125, 106, 0.28)
  );
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.home-banner-image {
  position: relative;
  z-index: 1;
  width: 100%;
  object-fit: cover;
  display: block;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

.home-banner-image-top,
.home-banner-image-bottom {
  flex: 0 0 25%;
}

.home-prose {
  color: var(--text);
}

.home-prose-title {
  margin: 0 0 12px;
  font-size: 32px;
  letter-spacing: -0.02em;
  font-weight: 950;
  line-height: 1.08;
}

.home-prose p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
  font-size: 17.5px;
  font-weight: 700;
  margin: 12px 0 0;
}

.home-prose strong {
  color: #ffffff;
}

.home-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 16px;
  font-weight: 650;
}

.directions-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.direction-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.direction-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.direction-title {
  font-weight: 950;
  font-size: 16px;
}

.direction-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  font-weight: 650;
}

@media (max-width: 680px) {
  .directions-grid {
    grid-template-columns: 1fr;
  }
}

.home-checklist {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.home-checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15.5px;
  font-weight: 650;
}

.home-checklist li::before {
  content: "✔";
  color: var(--teal);
  font-weight: 900;
  margin-top: 2px;
  flex: 0 0 auto;
}

.home-simple-bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15.5px;
  font-weight: 650;
}

.home-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 900;
}

@media (max-width: 980px) {
  .home-banner {
    grid-template-columns: 1fr;
  }
  .home-banner-frame {
    min-height: 175px;
  }
  .home-banner-image-top,
  .home-banner-image-bottom {
    flex-basis: 22%;
  }
}

/* Fullscreen image viewer (rasmni bosganda) */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox-card {
  width: min(1200px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 18, 45, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.image-lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
}

.image-lightbox-img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.35);
}

body.is-preloading .bg-orbs,
body.is-preloading .accent,
body.is-preloading .btn,
body.is-preloading .site-header,
body.is-preloading .hero h1,
body.is-preloading .lead,
body.is-preloading .section-head,
body.is-preloading .card,
body.is-preloading .contact-card,
body.is-preloading .contact-side,
body.is-preloading .location-card,
body.is-preloading .nav-link:nth-child(1),
body.is-preloading .nav-link:nth-child(2),
body.is-preloading .nav-link:nth-child(3),
body.is-preloading .nav-link:nth-child(4),
body.is-preloading .nav-link[aria-current="page"],
body.is-preloading .cards .card,
body.is-preloading #onlayn-darslar,
body.is-preloading #natijalarimiz,
body.is-preloading #aloqa {
  animation: none !important;
  transition: none !important;
}

.bg-orbs {
  position: fixed;
  inset: -200px;
  pointer-events: none;
  opacity: 0.8;
  background:
    radial-gradient(280px 280px at 12% 30%, rgba(51, 106, 234, 0.45), transparent 65%),
    radial-gradient(340px 340px at 50% 15%, rgba(23, 209, 198, 0.35), transparent 66%),
    radial-gradient(360px 360px at 85% 45%, rgba(255, 125, 106, 0.3), transparent 70%);
  filter: blur(10px);
  animation: orbDrift 14s ease-in-out infinite;
}

.site-header,
.hero h1,
.lead,
.section-head,
.card,
.contact-card,
.contact-side,
.location-card {
  animation: fadeUp 520ms ease both;
}

.hero h1 {
  animation-delay: 40ms;
}

.lead {
  animation-delay: 90ms;
}

.section-head {
  animation-delay: 60ms;
}

.card {
  animation-delay: 90ms;
}

.nav-link:nth-child(1) {
  animation: fadeUp 520ms ease both;
  animation-delay: 60ms;
}

.nav-link:nth-child(2) {
  animation: fadeUp 520ms ease both;
  animation-delay: 90ms;
}

.nav-link:nth-child(3) {
  animation: fadeUp 520ms ease both;
  animation-delay: 120ms;
}

.nav-link:nth-child(4) {
  animation: fadeUp 520ms ease both;
  animation-delay: 150ms;
}

.card-animated:hover {
  transform: translateY(-2px);
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(12, 18, 45, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.site-nav {
  display: flex;
  gap: 8px;
  row-gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}

.lang-switch {
  margin-left: 6px;
}

.lang-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

.lang-caret {
  opacity: 0.75;
  font-size: 12px;
}

.lang-menu {
  min-width: 220px;
}

.lang-btn {
  width: 100%;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 650;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    rgba(51, 106, 234, 0.28),
    rgba(23, 209, 198, 0.22),
    rgba(255, 125, 106, 0.18)
  );
  opacity: 0;
  transform: translateX(-16%);
  transition: opacity 180ms ease, transform 240ms ease;
  pointer-events: none;
}

.nav-link:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.nav-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.nav-link[aria-current="page"] {
  color: #ffffff;
  font-weight: 900;
  background: rgba(255, 125, 106, 0.28);
  border: 2px solid rgba(255, 125, 106, 0.92);
  text-shadow: 0 0 10px rgba(255, 125, 106, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(255, 125, 106, 0.2);
  animation: activeBreath 2.6s ease-in-out infinite;
}

.nav-link[aria-current="page"]::after {
  opacity: 1;
  transform: translateX(0);
}

.nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 209, 198, 0.25), 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* Dropdown menyu (details/summary) */
details.nav-dropdown {
  position: relative;
  flex: 0 0 auto;
}

details.nav-dropdown > summary.nav-link {
  cursor: pointer;
  list-style: none;
}

/* Chromium/Safari marker'ni yashiramiz */
details.nav-dropdown > summary.nav-link::-webkit-details-marker {
  display: none;
}

.nav-panel {
  transform-origin: top center;
}

.nav-panel {
  /* Animatsiya "drop" ko'rinishida bo'lishi uchun boshlang'ich holat */
  will-change: max-height, opacity, transform;
}

@keyframes navDropIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scaleY(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

.nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 360px;
  max-width: 520px;
  background: rgba(12, 18, 45, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  z-index: 20;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px) scaleY(0.98);
  overflow: hidden;
  pointer-events: none;
  transition:
    max-height 260ms ease,
    opacity 200ms ease,
    transform 240ms ease;
}

details.nav-dropdown[open] .nav-panel {
  max-height: 520px;
  opacity: 1;
  transform: translateY(0) scaleY(1);
  pointer-events: auto;
  animation: navDropIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.nav-panel-grid {
  display: grid;
  gap: 10px;
}

.nav-panel-item h4 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.nav-panel-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.nav-panel-link {
  display: inline-block;
  margin-top: 12px;
  text-decoration: none;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 140ms ease, transform 140ms ease, border-color 140ms ease;
}

.nav-panel-link:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark-img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 820;
  letter-spacing: 0.2px;
  font-size: 18px;
  line-height: 1.1;
}

.brand-subtitle {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
}

.hero {
  padding: 46px 0 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  /* Planshet/kichik ekran: pastki chegarani pasaytiramiz; katta ekranda avvalgidek */
  font-size: clamp(26px, 4vw + 0.65rem, 56px);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--teal);
  text-shadow: 0 0 35px rgba(23, 209, 198, 0.35);
  animation: accentGlow 3.2s ease-in-out infinite;
}

.lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: btnEnter 650ms ease both;
  touch-action: manipulation;
}

.btn-lg {
  padding: 18px 26px;
  font-size: 16.5px;
  font-weight: 800;
}

.yutuq-links {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.yutuq-links .btn {
  width: 100%;
}

@media (max-width: 680px) {
  .yutuq-links {
    grid-template-columns: 1fr;
  }
}

.btn::before {
  content: "";
  position: absolute;
  inset: -40% 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}

.btn:hover::before {
  opacity: 1;
  animation: btnShine 900ms ease both;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  animation: softPulse 280ms ease-in-out alternate 2;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-badges {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.panel-card {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.panel-card::before {
  content: "";
  position: absolute;
  inset: -60px -60px auto -60px;
  height: 160px;
  background: radial-gradient(circle at 30% 20%, rgba(51, 106, 234, 0.55), transparent 60%),
    radial-gradient(circle at 70% 35%, rgba(23, 209, 198, 0.35), transparent 65%);
  filter: blur(6px);
  pointer-events: none;
}

.panel-top {
  position: relative;
}

.panel-kicker {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-title {
  margin-top: 8px;
  font-weight: 850;
  font-size: 20px;
}

.panel-body {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  position: relative;
}

.stat-num {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13.5px;
}

.stat-divider {
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.16);
}

.panel-foot {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}

.chip {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12.5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.chip-teal {
  border-color: rgba(23, 209, 198, 0.35);
  background: rgba(23, 209, 198, 0.12);
}

.section {
  padding: 26px 0 12px;
  scroll-margin-top: 96px;
}

#onlayn-darslar {
  animation: pageIndexIn 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

#natijalarimiz {
  animation: pageYutuqlarIn 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

#aloqa {
  animation: pageContactIn 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

#rasmiy-sahifalar {
  animation: pageIndexIn 720ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.branch-section {
  animation: pageFilialIn 740ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.branch-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.branch-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 16px;
}

.branch-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.branch-meta {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.branch-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.branch-social {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 750;
  font-size: 13.5px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.branch-social-ico {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 7px;
}

.branch-social-ico svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branch-social:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
}

.branch-map-title {
  margin: 0 0 10px;
}

.branch-map-wrap {
  margin-top: 0;
  border-top: 0;
  border-radius: 12px;
  overflow: hidden;
}

.officials-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.official-card {
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 14px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  min-height: 118px;
  display: flex;
  flex-direction: column;
}

.official-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.official-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(
    135deg,
    rgba(51, 106, 234, 0.35),
    rgba(23, 209, 198, 0.25)
  );
  display: grid;
  place-items: center;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.official-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.official-title {
  margin-top: 10px;
  font-weight: 900;
  font-size: 16px;
}

.official-sub {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13.5px;
}

.branch-team {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.branch-team-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px;
}

.branch-team-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.branch-team-role {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.branch-team-name {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 850;
}

.branch-team-desc {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* Contact sahifasida bo'limlarni ajratish */
.section-split {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: 18px;
  padding-top: 34px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title-reset {
  margin: 0;
}

.section h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.section-sub {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.55;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  min-height: 172px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.cards .card {
  /* Kirish animatsiyasi + yumshoq float harakati */
  animation: fadeUp 520ms ease both, cardFloat 4.6s ease-in-out infinite;
}

.card h3 {
  margin: 12px 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.card-icon::after {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 55%);
}

.card-icon-navy {
  background: rgba(34, 36, 78, 0.35);
}

.card-icon-blue {
  background: rgba(51, 106, 234, 0.28);
}

.card-icon-teal {
  background: rgba(23, 209, 198, 0.22);
}

.cta {
  padding: 18px 0 54px;
}

.cta-inner {
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(51, 106, 234, 0.18), rgba(23, 209, 198, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lead-sm {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  justify-content: flex-end;
}

.site-footer {
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 18, 45, 0.22);
  backdrop-filter: blur(10px);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-title {
  font-weight: 860;
  font-size: 16px;
}

.footer-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13.5px;
}

.footer-meta {
  color: var(--muted);
  font-size: 13.5px;
}

.meta-line {
  margin-top: 6px;
}

@media (max-width: 980px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 16px;
    padding: 12px 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    justify-content: flex-start;
  }

  /* Mobilda dropdown panelni pastga ochamiz */
  .nav-panel {
    position: relative;
    top: auto;
    right: auto;
    min-width: 0;
    max-width: 100%;
    margin-top: 10px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .officials-grid {
    grid-template-columns: 1fr;
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cta-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 16px;
  align-items: start;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 13.5px;
}

.phone-group {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.phone-prefix {
  flex: 0 0 94px;
  text-align: center;
}

.phone-digits {
  flex: 1 1 auto;
}

.form-row input,
.contact-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row input:focus,
.contact-form textarea:focus {
  border-color: rgba(23, 209, 198, 0.55);
  box-shadow: 0 0 0 3px rgba(23, 209, 198, 0.18);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  animation: fadeUp 620ms ease both;
}

.contact-side {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  padding: 16px;
}

.side-item + .side-item {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.side-title {
  font-weight: 850;
  color: rgba(255, 255, 255, 0.9);
}

.side-text {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13.5px;
}

.location-wrap {
  margin-top: 16px;
}

.location-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.location-head {
  padding: 16px 16px 0;
}

.location-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.location-sub {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.map-frame {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  height: 320px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .branch-layout {
    grid-template-columns: 1fr;
  }

  .branch-team {
    grid-template-columns: 1fr;
  }
}

/* Telefon: shrift va bo‘shliqlar kompyuterga nisbatan ixchamroq */
@media (max-width: 640px) {
  body {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  .container {
    width: min(1120px, calc(100% - 22px));
  }

  .header-inner {
    padding: 10px 0;
    gap: 10px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .lang-menu {
    min-width: min(220px, calc(100vw - 28px));
  }

  .nav-link {
    font-size: 14px;
    padding: 10px 12px;
  }

  .hero {
    padding: 26px 0 8px;
  }

  .hero h1 {
    font-size: clamp(21px, 6.2vw + 0.35rem, 32px);
    line-height: 1.07;
  }

  .lead {
    font-size: 14.5px;
    margin-top: 12px;
  }

  .hero-actions {
    margin-top: 16px;
    gap: 10px;
  }

  .btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  .btn-lg {
    padding: 14px 18px;
    font-size: 15px;
  }

  .hero-badges {
    margin-top: 14px;
    gap: 8px;
  }

  .badge {
    padding: 6px 10px;
    font-size: 12px;
  }

  .panel-card {
    padding: 14px;
  }

  .panel-title {
    font-size: 17px;
  }

  .stat-num {
    font-size: 22px;
  }

  .stat-label {
    font-size: 12.5px;
  }

  .stat-divider {
    height: 48px;
  }

  .chip {
    font-size: 11.5px;
    padding: 7px 9px;
  }

  .section {
    padding: 18px 0 8px;
    scroll-margin-top: 76px;
  }

  .section-split {
    margin-top: 14px;
    padding-top: 24px;
  }

  .section h2 {
    font-size: 21px;
  }

  .section-sub {
    font-size: 14px;
    line-height: 1.5;
  }

  .home-prose-title {
    font-size: 23px;
  }

  .home-prose p {
    font-size: 15px;
    line-height: 1.65;
  }

  .home-list,
  .home-simple-bullets,
  .home-checklist li {
    font-size: 14px;
  }

  .direction-btn {
    padding: 12px;
  }

  .direction-title {
    font-size: 14px;
  }

  .direction-sub {
    font-size: 12.5px;
  }

  .home-banner-frame {
    min-height: 160px;
  }

  .card {
    padding: 14px;
    min-height: 0;
  }

  .card h3 {
    font-size: 15px;
  }

  .card p {
    font-size: 14px;
  }

  .official-card {
    padding: 12px;
    min-height: 0;
  }

  .official-icon {
    width: 40px;
    height: 40px;
  }

  .official-title {
    font-size: 14px;
  }

  .official-sub {
    font-size: 12.5px;
  }

  .contact-card,
  .contact-side {
    padding: 14px;
  }

  .form-row label {
    font-size: 13px;
  }

  .form-row input,
  .contact-form textarea {
    padding: 11px 12px;
    font-size: 16px;
  }

  .form-note {
    font-size: 12px;
  }

  .site-footer {
    padding: 18px 0 calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .footer-title {
    font-size: 15px;
  }

  .footer-sub,
  .footer-meta {
    font-size: 12.5px;
  }

  .map-frame {
    height: 220px;
  }

  .location-title {
    font-size: 16px;
  }

  .preloader video {
    width: min(100%, calc(100vw - 24px));
    max-height: 38vh;
    border-radius: 16px;
  }

  .about-modal-card {
    padding: 12px 12px 16px;
    max-height: 90vh;
    border-radius: 16px;
  }

  .about-modal-title {
    font-size: 17px;
  }

  .about-modal-close {
    width: 38px;
    height: 38px;
  }

  .image-lightbox-top {
    padding: 10px;
  }

  .branch-card,
  .branch-team-card {
    padding: 14px;
  }

  .branch-team-name {
    font-size: 16px;
  }
}

/* Katta ekran: biroz “desktop” qulayligi */
@media (min-width: 1100px) {
  .hero h1 {
    font-size: clamp(40px, 3.6vw + 1rem, 56px);
  }

  .lead {
    font-size: 17px;
  }

  .section h2 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  /* Dropdown uchun animatsiyani ko'rinarli qilish */
  details.nav-dropdown[open] .nav-panel {
    animation-duration: 220ms !important;
  }

  .nav-panel {
    transition-duration: 260ms !important;
  }
}

