/* ── Storytelling bosh sahifa ── */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.is-dark,
body.theme-dark {
  --bg: #0b0b0b;
  --surface: #151515;
  --soft: #1f1f1f;
  --ink: #f5f4f2;
  --ink-2: #dcdad6;
  --muted: #9a9894;
  --line: #262626;
  --line-2: #3a3a3a;
}
body.story { transition: background-color .7s ease, color .7s ease; }
.is-dark { background: var(--bg); color: var(--ink); }
body.theme-dark .header { background: color-mix(in srgb, var(--bg) 80%, transparent); }
body.theme-dark .brand img,
.is-dark .brand img { filter: invert(1); mix-blend-mode: screen; }
.is-dark .btn, body.theme-dark .btn { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.is-dark .btn--ghost, body.theme-dark .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }

.ch { position: relative; padding: 140px 0; }
.kicker { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kicker::before { content: ""; display: inline-block; width: 24px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 10px; }
@media (max-width: 640px) { .ch { padding: 88px 0; } }

/* Progress + chapter indicator */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #8ea2ff, #f49bc8, #ffbf80); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.chapter-ind {
  position: fixed; left: 24px; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #fff; mix-blend-mode: difference; pointer-events: none;
  opacity: 0; transition: opacity .4s;
}
.chapter-ind.is-on { opacity: 1; }
.chapter-ind b { font-weight: 500; font-variant-numeric: tabular-nums; }
.chapter-ind b::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 10px; }
@media (max-width: 768px) { .chapter-ind { display: none; } }

/* 01 Hero */
.ch-hero { padding: 0; }
.ch-hero__pin { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 96px 0 72px; }
.ch-hero__copy { position: relative; z-index: 2; }
.display { font-size: clamp(46px, 8.6vw, 128px); line-height: .98; font-weight: 300; letter-spacing: -.05em; margin: 26px 0 28px; }
.display .line { display: block; overflow: hidden; padding-bottom: .06em; }
.display .line > span { display: inline-block; }
.display em {
  font-style: normal; font-weight: 400;
  background: linear-gradient(100deg, #5b6cff 0%, #d062a8 45%, #ff8a3d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ch-hero .lead { max-width: 560px; }
.ch-hero__orb { position: absolute; right: -6vw; top: 50%; width: min(52vw, 640px); aspect-ratio: 1; transform: translateY(-50%); z-index: 1; }
.ch-hero__orb .orb { inset: 0; }
.ch-hero__orb img { position: absolute; left: 19%; top: 19%; width: 62%; mix-blend-mode: multiply; opacity: .9; animation: float 6s ease-in-out infinite; }
.scroll-hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.scroll-hint span { width: 22px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
@media (max-width: 768px) {
  .ch-hero__pin { align-items: flex-start; padding-top: 48px; }
  .ch-hero__orb { position: relative; right: auto; top: auto; transform: none; width: 260px; margin: 0 auto 8px; }
  .ch-hero__pin { flex-direction: column-reverse; justify-content: flex-end; }
  .scroll-hint { display: none; }
}

/* 02 Manifest */
.manifest, .final-line { font-size: clamp(28px, 4.4vw, 60px); line-height: 1.12; font-weight: 300; letter-spacing: -.035em; margin: 0; max-width: 1080px; }
.manifest .w, .final-line .w { transition: opacity .2s; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 88px; }
.fact { border-top: 1px solid var(--line-2); padding-top: 20px; }
.fact b { display: block; font-size: clamp(36px, 4vw, 56px); font-weight: 300; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; }
.fact span { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; margin-top: 56px; } }

/* 03 Courses — horizontal track */
.ch-courses { padding: 0; }
.ch-courses__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 64px; overflow: hidden; }
.ch-courses__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.ch-courses__head .h2 { margin-bottom: 0; }
.ch-courses__head .lead { max-width: 380px; }
.track-wrap { overflow: hidden; }
.track { display: flex; gap: 16px; padding: 0 max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); width: max-content; will-change: transform; }
.track .course { width: min(380px, 80vw); flex: none; }
.track .course h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.track .course .course__actions { position: relative; z-index: 1; }
@media (max-width: 768px) {
  .ch-courses__pin { min-height: 0; padding: 88px 0 40px; }
  .track-wrap { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .track-wrap::-webkit-scrollbar { display: none; }
  .track { padding: 0 16px 8px; }
  .track .course { scroll-snap-align: center; width: 84vw; }
}

/* 04 App */
.ch-app__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.app-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; }
.app-steps li { padding: 16px 0 16px 20px; border-left: 2px solid var(--line); transition: border-color .4s, opacity .4s; opacity: .45; }
.app-steps li.is-active { border-color: var(--ink); opacity: 1; }
.app-steps b { display: block; font-weight: 500; font-size: 18px; }
.app-steps span { color: var(--muted); font-size: 15px; }
.is-dark .store, body.theme-dark .store { border-color: var(--line-2); color: var(--ink); }
.is-dark .store svg, body.theme-dark .store svg { fill: var(--ink); }
.phone { width: 300px; box-shadow: 0 60px 120px -40px rgba(140, 130, 255, .45); }
.phone__screen { position: relative; padding: 0; background: #fafaf9; --bg: #fafaf9; --surface: #fff; --soft: #f3f2f0; --ink: #0b0b0b; --muted: #6e6c69; --line: #e8e6e3; color: var(--ink); }
.screen { position: absolute; inset: 0; padding: 48px 16px 16px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .5s ease, transform .5s ease; }
.screen.is-active { opacity: 1; transform: none; }
.phone__card.ok b { color: #157f3d; }
.ring { position: relative; width: 140px; margin: 8px auto; }
.ring svg { width: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--soft); stroke-width: 10; }
.ring circle + circle { stroke: var(--ink); stroke-linecap: round; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 400; letter-spacing: -.03em; }
@media (max-width: 768px) { .ch-app__grid { grid-template-columns: 1fr; gap: 48px; } .app-steps li { opacity: 1; } }

/* 05 Internship path */
.path { list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; display: grid; gap: 36px; }
.path::before, .path::after { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.path::after { background: linear-gradient(#5b6cff, #d062a8, #ff8a3d); transform-origin: top; transform: scaleY(var(--p, 1)); }
.path li { position: relative; }
.path b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 4px; }
.path li > span:last-child { color: var(--muted); }
.path__dot { position: absolute; left: -44px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); z-index: 1; transition: .3s; }
.path li.is-on .path__dot { border-color: var(--ink); background: var(--ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ink) 10%, transparent); }

/* 06 Certificate */
.ch-cert__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.cert-stage { perspective: 1400px; }
.cert {
  position: relative; aspect-ratio: 1.414; padding: 8%; border-radius: 18px; color: #1a1a1a;
  background:
    radial-gradient(120% 80% at 100% 0%, #fde7d2 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 100%, #dfe4ff 0%, transparent 60%),
    #fffdf9;
  border: 1px solid #ece6dc;
  box-shadow: 0 50px 100px -40px rgba(60, 40, 120, .35), inset 0 0 0 10px #fffdf9, inset 0 0 0 11px #e9e0d2;
  display: flex; flex-direction: column; transform-style: preserve-3d;
}
.cert__top { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: clamp(12px, 1.3vw, 16px); }
.cert__top img { width: 28px; mix-blend-mode: multiply; }
.cert__top small { margin-left: auto; font-weight: 500; font-size: 11px; color: #8a8378; border: 1px solid #ddd5c8; border-radius: 99px; padding: 2px 8px; }
.cert__label { margin-top: auto; font-size: clamp(10px, 1vw, 12px); letter-spacing: .3em; text-transform: uppercase; color: #8a8378; }
.cert__name { font-size: clamp(24px, 3.4vw, 44px); font-weight: 300; letter-spacing: -.03em; margin: 6px 0 8px; }
.cert__course { font-size: clamp(11px, 1.1vw, 14px); color: #5c574f; max-width: 80%; }
.cert__foot { display: flex; justify-content: space-between; align-items: end; margin-top: auto; font-size: 12px; color: #8a8378; }
.cert__seal { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: #fff; background: conic-gradient(from 0deg, #5b6cff, #d062a8, #ff8a3d, #5b6cff); box-shadow: 0 6px 16px -6px rgba(208, 98, 168, .6); }
.partners { margin-top: 96px; }
.partners__label { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.partners .marquee { border-color: var(--line); background: transparent; }
.partners .marquee__track { gap: 64px; padding: 26px 0; animation-duration: 36s; }
.partner { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.partner img { height: 36px; width: auto; filter: grayscale(1); opacity: .8; transition: .2s; }
.partner:hover img { filter: none; opacity: 1; }
.partner small { font-size: 11px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; }
@media (max-width: 900px) { .ch-cert__grid { grid-template-columns: 1fr; gap: 48px; } }

/* 07 Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member { position: relative; }
.member__photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: linear-gradient(150deg, #e8ebff, #fbe9f3 55%, #fff1e3); display: grid; place-items: center; margin-bottom: 16px; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s, transform .6s; }
.member:hover .member__photo img { filter: none; transform: scale(1.04); }
.member__initials { font-size: 56px; font-weight: 300; letter-spacing: -.04em; color: #1a1a1a99; }
.member h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.member p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.member p + p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .team { grid-template-columns: repeat(2, 1fr); } }

/* 08 News */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; cursor: pointer; font: inherit; color: inherit; width: 100%; }
.news-card__img { aspect-ratio: 16 / 9; background: linear-gradient(130deg, #e8ebff, #fbe9f3 55%, #fff1e3); position: relative; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__img .chip { position: absolute; left: 14px; top: 14px; background: #ffffffe6; color: #111; }
.news-card__body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.news-card time { font-size: 13px; color: var(--muted); }
.news-card h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.news-card p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .more { font-size: 14px; font-weight: 500; margin-top: 4px; }
.news-card .more::after { content: " →"; transition: margin .2s; }
.news-card:hover .more::after { margin-left: 4px; }
.chip--accent { background: #111; color: #fff; }
@media (max-width: 1000px) { .news { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news { grid-template-columns: 1fr; } }
.news-dialog { border: 0; border-radius: 24px; padding: 0; width: min(680px, calc(100vw - 24px)); max-height: 88vh; box-shadow: 0 40px 100px -20px rgba(0,0,0,.4); background: #fff; color: #0b0b0b; }
.news-dialog::backdrop { background: rgba(10,10,10,.45); backdrop-filter: blur(4px); }
.news-dialog img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-dialog__body { padding: 28px 32px 36px; }
.news-dialog__body .h3 { font-size: 28px; font-weight: 400; letter-spacing: -.03em; margin: 14px 0 16px; }
.news-dialog__body #nd-text { color: #2a2a2a; white-space: pre-line; }
.news-dialog__x { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #ffffffd9; font-size: 24px; line-height: 1; cursor: pointer; z-index: 1; }

/* 09 Final */
.ch-final .final-line { margin-bottom: 64px; max-width: 900px; }
.ch-final .lead-box { background: var(--surface); border-color: var(--line); }
.ch-final .lead-box__info { background: linear-gradient(160deg, #1b1d33 0%, #2a1a2a 50%, #2b2117 100%); }
.ch-final .checks li::before { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ch-final .eyebrow { background: transparent; }
.ch-final .input:focus { box-shadow: 0 0 0 4px #ffffff14; }
.ch-final select.input option { background: #151515; color: #f5f4f2; }
.ch-final .seg input:checked + label { background: var(--soft); box-shadow: none; }

/* FAQ */
.ch-faq { padding-top: 120px; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }
.story .footer { margin-top: 0; }

/* Sayqallar */
.ch-app { padding: 96px 0 56px; min-height: 100svh; display: flex; align-items: center; }
.ch-app > .wrap { width: 100%; }
.app-steps { margin-top: 28px; }
.app-steps li { padding: 12px 0 12px 20px; }
.ch-app .stores { margin-top: 28px; }
.ch-courses__pin { padding-top: 96px; }
@media (min-width: 769px) and (max-width: 1100px) { .ch-hero__orb { width: 46vw; right: -12vw; } }
.news--single { grid-template-columns: 1fr; }
.news--single .news-card { display: grid; grid-template-columns: 1.1fr 1fr; }
.news--single .news-card__img { aspect-ratio: auto; min-height: 300px; }
.news--single .news-card__body { padding: 40px; align-content: center; }
.news--single .news-card h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 400; letter-spacing: -.03em; }
.news--single .news-card p { -webkit-line-clamp: 4; }
@media (max-width: 760px) { .news--single .news-card { grid-template-columns: 1fr; } .news--single .news-card__img { min-height: 0; aspect-ratio: 16 / 9; } .news--single .news-card__body { padding: 20px 22px 24px; } }
/* Featured kurs kartasi mavzudan qat'i nazar qora qoladi */
body .course.course--featured { background: #0b0b0b; color: #fff; border-color: #0b0b0b; }
body .course.course--featured p, body .course.course--featured .course__dur, body .course.course--featured .course__price span { color: #a7a5a2; }
body .course.course--featured .btn { background: #fff; color: #0b0b0b; border-color: #fff; }
body .course.course--featured .btn--ghost { background: transparent; color: #fff; border-color: #ffffff40; }
body.theme-dark .course.course--featured { border-color: #2a2a2a; }
