/* ========== STYLE: joylashuv va komponentlar ========== */

/* ---------- Bo'limlar ---------- */
.section {
  position: relative;
  padding-block: var(--space-16);
}
.section h2 { margin-bottom: var(--space-3); }
.section h3 { margin-top: var(--space-8); margin-bottom: var(--space-4); }
.section__sub { color: var(--color-text-muted); max-width: 60ch; margin-bottom: var(--space-8); }
.section__note { margin-top: var(--space-8); color: var(--color-text-muted); font-size: .875rem; }

/* Sariq fon + yumshoq oq dog'lar (mobilda 2 ta) */
.section--spots {
  background-color: var(--color-brand);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.80) 0, rgba(255,255,255,0) 38%),
    radial-gradient(circle at 88% 85%, rgba(255,255,255,.70) 0, rgba(255,255,255,0) 40%);
}
.section--spots .section__sub,
.section--spots .section__note { color: #2b2b2b; }

@media (min-width: 640px) {
  .section--spots {
    background-image:
      radial-gradient(circle at 15% 25%, rgba(255,255,255,.85) 0, rgba(255,255,255,0) 32%),
      radial-gradient(circle at 80% 15%, rgba(255,255,255,.70) 0, rgba(255,255,255,0) 28%),
      radial-gradient(circle at 70% 80%, rgba(255,255,255,.80) 0, rgba(255,255,255,0) 35%),
      radial-gradient(circle at 25% 90%, rgba(255,255,255,.60) 0, rgba(255,255,255,0) 22%);
  }
}
@media (min-width: 1024px) {
  .section { padding-block: var(--space-24); }
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(8px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 72px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}
.header__logo img { width: 48px; height: 48px; object-fit: contain; }
.header__logo span { display: none; }

.header__actions { display: flex; align-items: center; gap: var(--space-3); }
.header__cta { display: none; min-height: 44px; }

.lang-select {
  min-height: 44px;
  padding: 0 var(--space-3);
  background: #fff;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-btn);
  font-weight: 700;
  cursor: pointer;
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 11px;
  background: none;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-btn);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--color-text);
  transition: transform .2s, opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menyu: mobilda tepadan ochiladi (JS .is-open qo'shadi) */
.nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  flex-direction: column;
  padding: var(--space-4) 20px var(--space-6);
  background: #fff;
  border-bottom: 1px solid var(--color-line);
}
.nav.is-open { display: flex; }
.nav a {
  padding: var(--space-3) 0;
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--color-line);
}
.nav a:hover { color: var(--color-blue); }

@media (min-width: 640px) {
  .header__logo span { display: inline; }
}
@media (min-width: 1024px) {
  .burger { display: none; }
  .header__cta { display: inline-flex; }
  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: var(--space-6);
    padding: 0;
    background: none;
    border: 0;
  }
  .nav a { padding: var(--space-2) 0; border: 0; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding-top: var(--space-12); }
.hero__grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-4);
  padding: 6px 14px;
  background: rgba(255,255,255,.75);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
}
.lead { margin-top: var(--space-4); max-width: 52ch; font-size: 1.125rem; color: #1f1f1f; }
.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero__visual { display: flex; justify-content: center; }
.hero__visual img { width: min(320px, 70vw); filter: drop-shadow(0 12px 24px rgba(0,0,0,.12)); }

@media (min-width: 640px) {
  .hero__buttons { flex-direction: row; }
}
@media (min-width: 1024px) {
  .hero { padding-top: var(--space-16); }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: var(--space-12); }
  .hero__visual img { width: 420px; }
}

/* ---------- Raqamlar ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding: var(--space-6);
  background: rgba(255,255,255,.85);
  border-radius: var(--radius-card);
  text-align: center;
}
.stats__value { display: block; font-size: 2rem; font-weight: 700; line-height: 1.1; }
.stats__label { display: block; margin-top: var(--space-1); font-size: .875rem; color: var(--color-text-muted); }

/* ---------- Kurs kartalari ---------- */
.cards {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.card--featured { border: 3px solid var(--color-text); }
.card__badge {
  position: absolute;
  top: -14px; left: var(--space-6);
  padding: 4px 12px;
  background: var(--color-red);
  color: #fff;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 700;
}
.card__name { font-size: var(--fs-h3); font-weight: 700; }
.card__price { margin-top: var(--space-3); font-size: 1.75rem; font-weight: 700; }
.card__period { font-size: 1rem; font-weight: 400; color: var(--color-text-muted); }
.card__features { flex: 1; margin-block: var(--space-6); display: grid; gap: var(--space-3); }
.card__features li { position: relative; padding-left: 28px; }
.card__features li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  font-weight: 700;
}
.card__cta { width: 100%; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .card--featured { transform: translateY(-8px); }
}

/* ---------- «1+3» dasturi ---------- */
.program__intro { max-width: 70ch; margin-bottom: var(--space-4); }

.steps { display: grid; gap: var(--space-4); }
.steps li {
  position: relative;
  padding: var(--space-6);
  background: #fff;
  border-radius: var(--radius-card);
}
.steps__label {
  display: inline-block;
  margin-bottom: var(--space-2);
  padding: 4px 12px;
  background: var(--color-text);
  color: #fff;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
}
.steps__place { display: block; font-size: var(--fs-h3); font-weight: 700; margin-bottom: var(--space-2); }
.steps__text { color: var(--color-text-muted); }

@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
  .steps li:first-child::after {
    content: "→";
    position: absolute;
    right: -26px; top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    font-size: 2rem; font-weight: 700;
  }
}

/* Belgili ro'yxat */
.checklist { display: grid; gap: var(--space-3); }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  font-weight: 700;
}

/* Ochiladigan bloklar */
.accordion { margin-top: var(--space-8); display: grid; gap: var(--space-3); }
.accordion details {
  background: #fff;
  border-radius: var(--radius-btn);
  overflow: hidden;
}
.accordion summary {
  position: relative;
  padding: var(--space-4) 56px var(--space-4) var(--space-6);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+";
  position: absolute; right: var(--space-6); top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400;
}
.accordion details[open] summary::after { content: "−"; }
.accordion details > :not(summary) { padding-inline: var(--space-6); }
.accordion details > :last-child { padding-bottom: var(--space-6); }
.accordion details > p { margin-bottom: var(--space-4); }

.program__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.partner-link { color: var(--color-text); font-weight: 600; }

/* ---------- Natijalar ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.gallery__item {
  padding: 0;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-btn);
  overflow: hidden;
  cursor: zoom-in;
}
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

/* Lightbox */
.lightbox {
  max-width: min(92vw, 900px);
  padding: var(--space-3);
  border: 0;
  border-radius: var(--radius-card);
}
.lightbox::backdrop { background: rgba(0,0,0,.75); }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px;
  background: var(--color-text);
  color: #fff;
  border: 0; border-radius: 50%;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
}

/* ---------- Biz haqimizda ---------- */
.about { max-width: 780px; }
.about p { margin-top: var(--space-4); color: var(--color-text-muted); }

/* ---------- Aloqa ---------- */
.contact { display: grid; gap: var(--space-8); }
.contact__buttons { display: grid; gap: var(--space-3); max-width: 420px; }
.contact__info {
  padding: var(--space-6);
  background: rgba(255,255,255,.85);
  border-radius: var(--radius-card);
}
.contact__info h3 { margin-top: 0; margin-bottom: var(--space-2); font-size: 1rem; }
.contact__info p + h3 { margin-top: var(--space-6); }

@media (min-width: 1024px) {
  .contact { grid-template-columns: 1.2fr .8fr; align-items: start; gap: var(--space-12); }
}

/* ---------- Footer ---------- */
.footer {
  padding-block: var(--space-12);
  background: var(--color-text);
  color: #fff;
}
.footer__inner { display: grid; gap: var(--space-6); }
.footer__brand { display: flex; align-items: center; gap: var(--space-3); font-weight: 700; }
.footer__brand img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.footer__nav a { color: #fff; text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__copy { font-size: .875rem; color: #bdbdbd; }

@media (min-width: 1024px) {
  .footer__inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer__nav { justify-content: center; }
}

/* ---------- Mobil yopishqoq tugma ---------- */
.sticky-cta {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transform: translateY(150%);
  transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }

@media (min-width: 1024px) {
  .sticky-cta { display: none; }
}
