/* Bosh sahifa: menyu → birinchi ekran → narxlar → CTA → footer. Avval telefon (390), keyin kompyuter (1280).
   Ranglar va shrift — tokens.css. 360–1440 px oralig'ida buzilmaydi. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.home {
  --pad: 16px; --sp: 56px; --h2: 30px;
  margin: 0;
  background: var(--krem);
  color: var(--toq-kok);
  font-family: var(--font-plex);
  font-size: 16px;
  line-height: 1.5;
}
.home a { color: inherit; text-decoration: none; }
.home a:focus-visible, .home button:focus-visible { outline: 3px solid var(--feruza); outline-offset: 2px; }
.grad { background: linear-gradient(90deg, var(--lojuvard), var(--feruza) 55%, var(--oltin)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- tugmalar ---------- */
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 14px 24px; border: 0; border-radius: 999px;
  font: 500 16px/20px var(--font-plex); cursor: pointer;
}
.home .hm-b1 { background: var(--lojuvard); color: #fff; }
.home .hm-b2 { background: #fff; color: var(--toq-kok); border: 1px solid var(--chiziq); }
.home .hm-b3 { background: var(--krem); color: var(--toq-kok); }
.hm-sm { min-height: 44px; padding: 10px 18px; }

/* ---------- 1. menyu ---------- */
.hm-nav { position: sticky; top: 0; z-index: 50; background: var(--krem); border-bottom: 1px solid var(--chiziq); }
.hm-nav-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1280px; height: var(--nav-h); margin: 0 auto; padding: 0 var(--pad); }
.hm-nav .brand { flex: 0 1 auto; }
.hm-actions { display: flex; align-items: center; gap: 10px; }
.hm-burger { display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 12px; border: 1px solid var(--chiziq); background: transparent; cursor: pointer; }
.hm-burger b { width: 18px; height: 2px; background: var(--toq-kok); border-radius: 2px; transition: transform .2s, opacity .2s; }
.hm-nav.open .hm-burger b:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hm-nav.open .hm-burger b:nth-child(2) { opacity: 0; }
.hm-nav.open .hm-burger b:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* telefon: havolalar burger bosilganda panel bo'lib ochiladi */
.hm-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; padding: 8px var(--pad) 16px; background: var(--krem); border-bottom: 1px solid var(--chiziq); box-shadow: 0 14px 30px rgba(11, 27, 74, .1); }
.hm-nav.open .hm-links { display: flex; }
.hm-links a { padding: 14px 4px; font-size: 17px; font-weight: 500; color: var(--matn-2); border-bottom: 1px solid var(--chiziq); }
.hm-links a:last-child { border-bottom: 0; }

/* ---------- 2. birinchi ekran ---------- */
#pin { position: relative; height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); }
.js #pin { height: 300vh; }
#stage { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); overflow: hidden; }
#art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-copy { position: absolute; z-index: 2; left: 0; right: 0; top: 0; pointer-events: none; will-change: transform, opacity; }
.hm-wrap { max-width: 1280px; margin: 0 auto; padding: clamp(20px, 5vh, 56px) var(--pad) 0; }
.hm-copy-in { max-width: 540px; pointer-events: auto; }
.hm-toprow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hm-tag { min-width: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 22px; background: rgba(255, 255, 255, .78); border: 1px solid #fff; font-size: clamp(12.5px, 3.5vw, 14px); line-height: 1.3; font-weight: 500; }
.hm-dot { flex: none; }
.hm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--feruza); }
.hm-lead { margin: 16px 0 0; font-size: clamp(18px, 4.9vw, 22px); font-weight: 500; line-height: 1.45; letter-spacing: -.01em; color: var(--toq-kok); max-width: 480px; text-wrap: pretty; }
.hm-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hm-finish { position: absolute; z-index: 2; left: 0; right: 0; bottom: 6vh; padding: 0 var(--pad); text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.hm-finish-box { display: inline-block; max-width: 100%; padding: 22px 26px; border-radius: 24px; background: rgba(255, 255, 255, .95); box-shadow: 0 14px 44px rgba(11, 27, 74, .18); }
.hm-finish h2 { margin: 0 0 4px; font-size: clamp(22px, 6vw, 30px); letter-spacing: -.03em; }
.hm-finish p { margin: 0 0 14px; color: var(--matn-2); }
.hm-hint { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .78); font-size: 13px; color: var(--matn-2); white-space: nowrap; transition: opacity .3s; }
.lab { transition: transform .35s; }
.lab.on { transform: scale(1.18); }
.lab.on rect { fill: var(--oltin); }
@keyframes hm-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.bn { animation: hm-bounce 1.1s ease-in-out infinite; animation-play-state: paused; transform-box: fill-box; transform-origin: bottom center; }
#crowd { opacity: 0; transition: opacity .4s; }
#crowd.on .bn { animation-play-state: running; }

/* ---------- 3. narxlar ---------- */
.hm-sec { max-width: 1280px; margin: 0 auto; padding: var(--sp) var(--pad) 0; scroll-margin-top: calc(var(--nav-h) + 8px); }
.hm-h2 { margin: 0; font-weight: 600; font-size: var(--h2); line-height: 1.12; letter-spacing: -.03em; }
.hm-sub { margin: 12px 0 0; font-size: 17px; line-height: 26px; color: var(--matn-2); }
.hm-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 32px; align-items: stretch; }
.hm-card { position: relative; display: flex; flex-direction: column; padding: 24px; background: #fff; border: 1px solid var(--chiziq); border-radius: 20px; }
.hm-card.hot { border: 2px solid var(--lojuvard); box-shadow: 0 18px 44px rgba(29, 78, 216, .18); }
.hm-badge { position: absolute; top: -13px; left: 24px; padding: 5px 12px; border-radius: 999px; background: var(--oltin); color: var(--toq-kok); font-size: 13px; font-weight: 600; }
.hm-nm { margin: 0; font-size: 18px; font-weight: 600; }
.hm-pr { margin-top: 8px; font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.hm-pr small { font-size: 18px; font-weight: 500; }
.hm-old { margin-left: 8px; font-size: 15px; font-weight: 400; color: var(--matn-2); text-decoration: line-through; letter-spacing: 0; }
.hm-once { margin-top: 2px; font-size: 14px; color: var(--matn-2); }
.hm-card ul { flex: 1; display: grid; gap: 12px; margin: 20px 0 24px; padding: 0; list-style: none; align-content: start; }
.hm-card li { position: relative; padding-left: 28px; font-size: 15px; line-height: 22px; }
.hm-card li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--feruza); }
.hm-card li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.hm-note { margin: 20px 0 0; font-size: 15px; color: var(--matn-2); }

/* ---------- 4. harakatga chaqiruv ---------- */
.hm-cta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; grid-template-areas: "text" "steps" "btn"; width: calc(100% - 2 * var(--pad)); max-width: 1184px; margin: var(--sp) auto 0; padding: 28px 22px; border-radius: 28px; background: var(--toq-kok); color: #fff; }
.hm-cta-text { grid-area: text; }
.hm-cta h2 { margin: 0; font-weight: 600; font-size: var(--h2); line-height: 1.12; letter-spacing: -.03em; }
.hm-cta h2 em { font-style: normal; color: var(--oltin-och); }
.hm-cta p { margin: 12px 0 0; font-size: 17px; line-height: 26px; color: #C9D3F2; }
.hm-steps { grid-area: steps; display: flex; align-items: flex-end; gap: 10px; height: 120px; margin: 28px 0; }
.hm-steps .st { flex: 1; display: flex; align-items: flex-start; padding: 12px 8px; border-radius: 12px 12px 0 0; color: var(--toq-kok); font-size: 15px; font-weight: 600; }
.hm-steps .st small { display: block; font-size: 13px; font-weight: 400; opacity: .8; }
.st1 { height: 34%; min-height: 64px; background: var(--oltin-och); }
.st2 { height: 56%; background: var(--zina-2); }
.st3 { height: 78%; background: var(--zina-3); }
.st4 { height: 100%; background: #fff; }
.hm-cta-btn { grid-area: btn; width: 100%; }

.home .sf { margin-top: var(--sp); }

/* ---------- kompyuter ---------- */
@media (min-width: 640px) {
  .hm-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  body.home { --pad: 48px; --sp: 96px; --h2: 48px; }
  .hm-burger { display: none; }
  .hm-links { display: flex; position: static; flex-direction: row; flex: 1; justify-content: space-evenly; max-width: 560px; margin: 0 24px; padding: 0; background: none; border: 0; box-shadow: none; }
  .hm-links a { padding: 0; border: 0; font-size: 16px; }
  .hm-links a:hover { color: var(--lojuvard); }
  .hm-sm { padding: 10px 22px; }
  .hm-lead { font-size: 24px; max-width: 520px; }
  .hm-cta { grid-template-columns: 1.1fr 1fr; grid-template-areas: "text steps" "btn steps"; grid-template-rows: auto 1fr; column-gap: 48px; align-items: start; padding: 56px; }
  .hm-steps { margin: 0; height: 240px; align-self: end; }
  .hm-cta-btn { width: auto; justify-self: start; align-self: start; padding: 16px 36px; margin-top: 28px; }
}
@media (min-width: 1100px) {
  .hm-cards { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- harakat kamaytirilgan / JS yo'q: animatsiyasiz oddiy variant ---------- */
@media (prefers-reduced-motion: reduce) {
  .js #pin { height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); }
  #stage { position: relative; top: 0; }
  .hm-finish, .hm-hint { display: none; }
  .bn { animation: none; }
  #crowd { transition: none; }
  .lab { transition: none; }
}
