/* Menyular */
.header {
  z-index: 30;
  overflow: visible;
}

.header-actions {
  position: relative;
  z-index: 40;
}

.language-picker {
  position: relative;
  z-index: 50;
}

.language-panel {
  z-index: 100;
  pointer-events: none;
}

.language-picker.is-open .language-panel:not([hidden]) {
  display: block;
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Kometalar */
.comet-flight,
.scene-comet,
.orbit-head,
.orbit-tail {
  display: none !important;
}

/* Fanlar */
.subject-object {
  scale: var(--art-scale, 1);
}

.hero:not([data-subject="matematika"]) h1 {
  white-space: nowrap;
}

.title-depth {
  white-space: nowrap;
}

/* Huquq sarlavhasi */
.hero[data-subject="huquq"] h1 {
  font-size: clamp(32px, 4.8vw, 82px);
}

#site .hero[data-subject="huquq"] h1,
#site .hero[data-subject="huquq"] .title-depth {
  scale: 1 1.15 !important;
  transform-origin: center;
}

/* Boshlang‘ich ta’lim sarlavhasi */
#site .hero[data-subject="boshlangich"] h1 {
  font-size: clamp(30px, 4.5vw, 76px);
}

#site .hero[data-subject="boshlangich"] h1,
#site .hero[data-subject="boshlangich"] .title-depth {
  scale: 1 1 !important;
  line-height: 1.18;
  transform-origin: center;
}

/* Prezident maktabi sarlavhasi */
#site .hero[data-subject="prezident"] h1 {
  font-size: clamp(28px, 4.3vw, 72px);
}

#site .hero[data-subject="prezident"] h1,
#site .hero[data-subject="prezident"] .title-depth {
  scale: 1 1.15 !important;
  line-height: 1.18;
  transform-origin: center;
}

/* Ikki uzun sarlavhaning paneli */
#site .hero[data-subject="boshlangich"] .title-stage,
#site .hero[data-subject="prezident"] .title-stage {
  padding: 24px 22px !important;
}

/* Kattalashtirilgan obyektlar */
#site .hero[data-subject="musiqa"] .subject-object,
#site .hero[data-subject="huquq"] .subject-object,
#site .hero[data-subject="geografiya"] .subject-object,
#site .hero[data-subject="prezident"] .subject-object {
  height: min(64svh, 650px) !important;
  max-height: none !important;
  scale: 1.08 !important;
  object-fit: contain;
}

/* Fon va hero almashishi */
.incoming-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.incoming-hero {
  position: absolute !important;
  z-index: 3;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
}

/* Matnlarning bir xil joylashuvi */
.hero-copy.layout-locked {
  height: var(--copy-height);
}

.layout-locked > .hero-intro,
.layout-locked > .title-stage,
.layout-locked > .hero-description,
.layout-locked > .start-button {
  position: absolute;
  left: 0;
  margin: 0;
}

.layout-locked > .hero-intro {
  top: var(--intro-top);
}

.layout-locked > .title-stage {
  top: var(--stage-top);
}

.layout-locked > .hero-description {
  top: var(--description-top);
  width: 100%;
}

.layout-locked > .start-button {
  top: var(--button-top);
}

/* Menyu ranglari fon bilan birga almashadi */
.theme-blending .nav-indicator {
  transition-property: transform, width, height !important;
}

.theme-blending .nav-item,
.theme-blending .register {
  transition-property: transform, box-shadow !important;
}

.language-option,
.subject-panel button {
  transition: none;
}

/* Telefon ekrani */
@media (max-width: 700px) {
  .layout-locked > .hero-intro {
    width: 100%;
  }

  .layout-locked > .title-stage,
  .layout-locked > .start-button {
    left: 50%;
    transform: translateX(-50%);
  }
}
