/* ============ TOKENS (och palitra) ============ */
:root {
  --bg: #fbfcfa;
  --bg-2: #f1f8f4;      /* yalpiz tint */
  --bg-3: #eef6ff;      /* osmon tint */
  --surface: #ffffff;
  --text: #1b2a24;
  --text-2: #3d5047;
  --muted: #6d7d75;
  --line: #e4ece7;
  --em: #22c58b;
  --em-2: #5ad7a8;
  --em-soft: #d8f5e8;
  --em-dark: #0f8a5f;
  --sky: #7cc4f5;
  --sky-soft: #e3f2fd;
  --peach: #ffd8b8;
  --lilac: #e7defc;
  --yellow: #fff1bf;
  --red: #f28b8b;
  --red-soft: #fde6e6;
  --amber: #f5c451;
  --amber-soft: #fff4d6;
  --radius: 24px;
  --shadow: 0 1px 2px rgba(27, 42, 36, .04), 0 10px 30px -14px rgba(27, 42, 36, .14);
  --shadow-lg: 0 30px 70px -32px rgba(27, 42, 36, .28);
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
p { margin: 0; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
::selection { background: var(--em-soft); color: var(--text); }

/* ============ ICONS (mask) ============ */
[class^="i-"] { display: inline-block; width: 1.1em; height: 1.1em; background: currentColor; flex: none; vertical-align: -.18em;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.i-arrow { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E"); }
.i-pin { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 1 0-14 0c0 5.8 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E"); }
.i-check { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m8 12.5 2.7 2.7L16 9.8'/%3E%3C/svg%3E"); }
.i-phone { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/%3E%3C/svg%3E"); }
.i-clock { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.i-search { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s; }
.btn .i-arrow { transition: transform .3s var(--ease); }
.btn:hover .i-arrow { transform: translate(2px, -2px); }
.btn:active { transform: scale(.97); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--em); color: #fff; box-shadow: 0 10px 26px -12px rgba(34, 197, 139, .8); }
.btn--primary:hover { background: #1db47e; transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(34, 197, 139, .9); }
.btn--ghost { color: var(--text); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--em-2), var(--shadow); }
.btn--dark { background: var(--text); color: #fff; }
.btn--dark:hover { background: #2c3f36; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.btn--light:hover { transform: translateY(-2px); }

/* ============ NAV ============ */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px 0; transition: background .35s, padding .35s, box-shadow .35s; }
.nav.is-scrolled { background: rgba(255, 255, 255, .82); backdrop-filter: blur(18px) saturate(160%); padding: 10px 0; box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand__mark { width: 40px; height: 40px; object-fit: contain; display: block; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-family: var(--display); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.brand__text small { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 3px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--line); }
.nav__links a { color: var(--text-2); font-size: 14px; font-weight: 600; padding: 8px 15px; border-radius: 999px; transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--em-dark); background: var(--em-soft); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.nav.is-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============ HERO ============ */
.hero { position: relative; background: linear-gradient(180deg, #ecfaf3 0%, #f4fbf8 55%, var(--bg) 100%); color: var(--text); padding: 150px 0 0; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.glow--1 { width: 560px; height: 560px; background: #b9f0d8; top: -180px; right: -120px; opacity: .8; animation: drift 14s ease-in-out infinite alternate; }
.glow--2 { width: 480px; height: 480px; background: #cfe8ff; bottom: -200px; left: -160px; opacity: .8; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.08); } }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(27,42,36,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(27,42,36,.05) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 60% 30%, #000 15%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 15%, transparent 65%); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-bottom: 90px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--em-dark); background: #fff; box-shadow: inset 0 0 0 1px #c9eedd, var(--shadow); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--em); box-shadow: 0 0 0 4px rgba(34,197,139,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34,197,139,0); } }
.hero__title { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 5.4vw, 68px); letter-spacing: -.035em; line-height: 1.07; margin: 26px 0 22px; }
.grad { background: linear-gradient(100deg, #18b97f 10%, #3fa9e8 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__meta { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--muted); font-weight: 600; }
.hero__meta li { display: flex; align-items: center; gap: 8px; }
.hero__meta i { color: var(--em); }

.hero__visual { position: relative; }
.dash { position: relative; border-radius: 26px; padding: 22px; background: rgba(255,255,255,.85); box-shadow: inset 0 0 0 1px #fff, 0 40px 90px -40px rgba(27,42,36,.35); backdrop-filter: blur(20px); transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); transition: transform .8s var(--ease); }
.hero__visual:hover .dash { transform: perspective(1200px) rotateY(0) rotateX(0); }
.dash__head { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dash__dots i:nth-child(1) { background: #ffc2b8; } .dash__dots i:nth-child(2) { background: #ffe39a; } .dash__dots i:nth-child(3) { background: #b8ecd3; }
.dash__title { font-weight: 700; color: var(--text-2); }
.badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge--live { color: var(--em-dark); background: var(--em-soft); }
.dash__body { display: flex; align-items: center; gap: 26px; margin: 22px 0; }
.ring { position: relative; width: 140px; height: 140px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: #e8f1ec; stroke-width: 11; }
.ring .ring__val { stroke: var(--em); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100); transition: stroke-dashoffset 1.4s var(--ease); }
.ring__label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__label b { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.ring__label small { font-size: 12px; color: var(--muted); }
.dash__stats { display: grid; gap: 10px; flex: 1; }
.dash__stats div { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 12px; background: var(--bg-2); font-size: 13px; }
.dash__stats small { color: var(--muted); }
.dash__stats b { font-weight: 800; }
.dash__bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; padding: 0 4px; }
.dash__bars span { flex: 1; height: calc(var(--h) * 1%); border-radius: 6px 6px 3px 3px; background: linear-gradient(to top, #c8f1df, var(--em-2)); transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.dash__bars span:nth-child(odd) { animation-delay: .1s; } .dash__bars span:nth-child(3n) { animation-delay: .2s; }
@keyframes grow { from { transform: scaleY(0); } }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: #fff; color: var(--text); box-shadow: var(--shadow-lg); animation: bob 6s ease-in-out infinite; }
.float-card b { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.float-card small { font-size: 12px; color: var(--muted); }
.fc__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-soft); font-size: 20px; }
.float-card--a .fc__icon { background: var(--sky-soft); }
.float-card--a { left: -34px; bottom: -24px; }
.float-card--b { right: -18px; top: -30px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.6); padding: 20px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--display); font-size: clamp(18px, 2.2vw, 24px); font-weight: 500; color: #a9bab1; padding: 0 30px; display: flex; align-items: center; gap: 30px; white-space: nowrap; letter-spacing: -.02em; }
.marquee__track span::after { content: "✦"; color: var(--em-2); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ STATS ============ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 56px 0 0; }
.stat { padding: 26px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.stat:nth-child(1) { background: linear-gradient(160deg, #fff, #effaf5); }
.stat:nth-child(2) { background: linear-gradient(160deg, #fff, #eef6ff); }
.stat:nth-child(3) { background: linear-gradient(160deg, #fff, #f5f0ff); }
.stat:nth-child(4) { background: linear-gradient(160deg, #fff, #fff6ea); }
.stat b { font-family: var(--display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; letter-spacing: -.04em; }
.stat span { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); color: var(--em); font-weight: 600; }
.stat p { color: var(--muted); font-size: 14px; margin-top: 4px; font-weight: 600; }

/* ============ SECTIONS ============ */
.section { padding: 110px 0; }
.section--tint { background: var(--bg-2); }
.section--dark { background: linear-gradient(180deg, #eef6ff 0%, #f1f9f5 100%); position: relative; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(124,196,245,.35), transparent 65%); right: -220px; top: -220px; filter: blur(30px); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 48px; flex-wrap: wrap; }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__note { max-width: 380px; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--em-dark); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--em-dark); }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.8vw, 48px); letter-spacing: -.035em; max-width: 640px; }
.h2 em { font-style: normal; color: var(--em); }
.muted { color: var(--muted); }
.muted-light { color: var(--text-2); font-size: 17px; margin-top: 18px; max-width: 480px; }

/* ============ TABS ============ */
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tab { padding: 9px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); transition: background .25s, color .25s; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--em); color: #fff; }

/* ============ COURSES (katta rasmli kartalar) ============ */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course { position: relative; display: flex; flex-direction: column; padding: 10px; border-radius: 28px; background: #fff; box-shadow: var(--shadow); cursor: pointer; text-align: left;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease); animation: fadeUp .5s var(--ease) both; }
.course:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(27,42,36,.35); }
.course__media { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--soft); }
.course__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.course:hover .course__media img { transform: scale(1.06); }
/* rasm bo'lmasa — chiroyli pastel muqova */
.cover { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.9), transparent 45%), radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--c) 30%, white), transparent 55%), var(--soft); }
.cover::before, .cover::after { content: ""; position: absolute; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--c) 35%, white); }
.cover::before { width: 70%; aspect-ratio: 1; animation: spin 60s linear infinite; }
.cover::after { width: 46%; aspect-ratio: 1; border-style: solid; border-color: rgba(255,255,255,.9); }
.cover__icon { position: relative; z-index: 1; width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center; color: var(--c); background: #fff; box-shadow: 0 20px 40px -18px color-mix(in srgb, var(--c) 70%, black); }
.cover__icon svg { width: 44px; height: 44px; }
.cover__hint { position: absolute; z-index: 1; bottom: 12px; font-size: 11.5px; font-weight: 700; color: color-mix(in srgb, var(--c) 60%, black); opacity: .55; }
@keyframes spin { to { transform: rotate(360deg); } }
.course__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; z-index: 2; }
.course__badges span { font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); color: var(--text); box-shadow: 0 4px 12px -6px rgba(0,0,0,.2); }
.course__badges .cat { color: color-mix(in srgb, var(--c) 70%, black); }
.course__body { display: flex; flex-direction: column; flex: 1; padding: 18px 14px 10px; }
.course h3 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.025em; }
.course__level { font-size: 13.5px; font-weight: 700; color: color-mix(in srgb, var(--c) 75%, black); margin-top: 6px; }
.course__desc { color: var(--muted); font-size: 14.5px; margin: 12px 0 16px; }
.course__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.course__tags span { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: var(--soft); color: color-mix(in srgb, var(--c) 55%, black); }
.course__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px dashed var(--line); }
.course__price b { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.course__price small { display: block; font-size: 12px; color: var(--muted); }
.course__go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: color-mix(in srgb, var(--c) 70%, black); transition: background .3s, color .3s, transform .4s var(--ease); }
.course:hover .course__go { background: var(--c); color: #fff; transform: rotate(45deg); }

/* ============ ATTENDANCE (tuzilma o'zgarmagan, och ranglarda) ============ */
.att { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.att__form { margin-top: 34px; }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.seg__btn { position: relative; z-index: 1; padding: 9px 24px; font-weight: 700; font-size: 14px; color: var(--muted); transition: color .3s; }
.seg__btn.is-active { color: #fff; }
.seg__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--em); transition: transform .4s var(--ease); }
.seg.is-teacher .seg__thumb { transform: translateX(100%); }
.att__field { display: flex; gap: 8px; margin-top: 16px; padding: 7px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow); transition: box-shadow .3s; max-width: 520px; }
.att__field:focus-within { box-shadow: inset 0 0 0 1.5px var(--em-2), 0 0 0 5px rgba(34,197,139,.14); }
.att__field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 18px; font-size: 17px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.att__field input::placeholder { color: #a6b4ad; text-transform: none; letter-spacing: 0; font-weight: 500; }
.att__field.is-error { animation: shake .4s; box-shadow: inset 0 0 0 1.5px var(--red); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.att__demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.att__demo small { color: var(--muted); font-size: 13px; margin-right: 4px; font-weight: 600; }
.chip { font-size: 13px; font-weight: 700; padding: 7px 13px; border-radius: 10px; color: var(--em-dark); background: #fff; box-shadow: inset 0 0 0 1px #c9eedd; transition: background .2s, transform .2s; font-family: ui-monospace, "Cascadia Code", monospace; }
.chip:hover { background: var(--em-soft); transform: translateY(-1px); }

.att__result { position: relative; min-height: 440px; border-radius: 28px; padding: 28px; background: rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px #fff, var(--shadow-lg); backdrop-filter: blur(20px); display: flex; flex-direction: column; }
.att__empty { margin: auto; text-align: center; max-width: 280px; color: var(--muted); }
.att__empty-icon { width: 76px; height: 76px; border-radius: 24px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--em-soft); font-size: 30px; color: var(--em-dark); }
.res { display: flex; flex-direction: column; flex: 1; animation: fadeUp .6s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.res__head { display: flex; align-items: center; gap: 14px; }
.res__av { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: var(--em-dark); background: linear-gradient(140deg, #e6fbf2, #c3f0dc); flex: none; }
.res__head b { font-size: 18px; display: block; }
.res__head small { color: var(--muted); font-size: 13px; }
.res__tag { margin-left: auto; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); color: var(--text-2); white-space: nowrap; }
.res__main { display: flex; align-items: center; gap: 26px; margin: 26px 0; }
.res__nums { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.res__nums div { padding: 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.res__nums small { display: block; font-size: 12px; color: var(--muted); }
.res__nums b { font-family: var(--display); font-size: 22px; font-weight: 600; }
.res__nums .ok { color: var(--em); } .res__nums .bad { color: #e06767; } .res__nums .warn { color: #d9a420; }
.res__label { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; font-weight: 600; }
.res__grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.res__grid span { aspect-ratio: 1; border-radius: 7px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; animation: pop .4s var(--ease) both; }
.res__grid .s1 { background: #c8f1df; color: #0f7a54; }
.res__grid .s0 { background: var(--red-soft); color: #c24848; }
.res__grid .s2 { background: var(--amber-soft); color: #a07610; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
.res__legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.res__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.res__msg { margin-top: 22px; padding: 14px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; background: var(--em-soft); color: #0f7a54; }
.res__msg.is-warn { background: var(--amber-soft); color: #8a650c; }
.res--error { margin: auto; text-align: center; color: var(--text-2); max-width: 300px; }
.res--error .att__empty-icon { color: #d05858; background: var(--red-soft); }

/* ============ TEACHERS (rasmli kartalar) ============ */
.teachers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.teacher { position: relative; border-radius: 28px; padding: 10px; background: #fff; box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.teacher:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -30px rgba(27,42,36,.35); }
.teacher__photo { position: relative; aspect-ratio: 4 / 4.6; border-radius: 20px; overflow: hidden; background: var(--soft); }
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .8s var(--ease); }
.teacher:hover .teacher__photo img { transform: scale(1.05); }
.teacher__ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.95), transparent 50%), linear-gradient(160deg, var(--soft), color-mix(in srgb, var(--c) 28%, white)); }
.teacher__ph span { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 38px; font-weight: 600; color: color-mix(in srgb, var(--c) 75%, black); background: #fff; box-shadow: 0 22px 40px -20px color-mix(in srgb, var(--c) 80%, black); }
.teacher__ph small { font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--c) 60%, black); opacity: .55; }
.teacher__exp { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.teacher__social { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: color-mix(in srgb, var(--c) 70%, black); box-shadow: 0 8px 18px -8px rgba(0,0,0,.3); transform: translateY(8px); opacity: 0; transition: .4s var(--ease); }
.teacher:hover .teacher__social { transform: none; opacity: 1; }
.teacher__info { padding: 16px 12px 8px; }
.teacher h4 { font-size: 18px; font-weight: 800; }
.teacher__role { font-size: 14px; font-weight: 700; color: color-mix(in srgb, var(--c) 75%, black); margin-top: 3px; }
.teacher__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.teacher__meta span { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: var(--soft); color: color-mix(in srgb, var(--c) 55%, black); }

.join { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 40px 44px; border-radius: 28px; color: var(--text); position: relative; overflow: hidden;
  background: radial-gradient(circle at 92% 0%, #cfe8ff, transparent 45%), radial-gradient(circle at 0% 100%, #d4f6e6, transparent 50%), #fff; box-shadow: var(--shadow); }
.join h3 { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.03em; }
.join p { color: var(--muted); margin-top: 8px; max-width: 480px; }
.join .btn--light { background: var(--em); color: #fff; box-shadow: 0 10px 26px -12px rgba(34, 197, 139, .8); }

/* ============ QUOTES ============ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { margin: 0; padding: 30px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 24px; }
.quote blockquote { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--text-2); font-weight: 500; }
.quote blockquote::before { content: "★★★★★"; display: block; color: var(--amber); letter-spacing: 3px; font-size: 14px; margin-bottom: 14px; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote figcaption small { display: block; color: var(--muted); font-size: 13px; }
.av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: color-mix(in srgb, var(--c) 75%, black); background: color-mix(in srgb, var(--c) 18%, white); flex: none; }

/* ============ FAQ ============ */
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; align-items: start; }
.faq .muted { margin-top: 18px; max-width: 380px; }
.acc { display: grid; gap: 12px; }
.acc__item { border-radius: 18px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.acc__item summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__item summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--em-dark); font-size: 20px; font-weight: 600; transition: transform .35s var(--ease), background .3s; }
.acc__item[open] summary::after { transform: rotate(45deg); background: var(--em); color: #fff; }
.acc__item p { padding: 0 26px 22px; color: var(--muted); }

/* ============ CONTACT ============ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.info { list-style: none; padding: 0; margin: 34px 0; display: grid; gap: 14px; }
.info li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.info__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--em-soft); color: var(--em-dark); font-size: 18px; flex: none; }
.info li:nth-child(2) .info__icon { background: var(--sky-soft); color: #2d84c4; }
.info li:nth-child(3) .info__icon { background: var(--amber-soft); color: #b8860b; }
.info small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.info b, .info a { font-weight: 700; font-size: 16px; }
.info a:hover { color: var(--em-dark); }
.contact__links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.contact__links .btn--dark { background: var(--em); box-shadow: 0 10px 26px -12px rgba(34, 197, 139, .8); }
.contact__links .btn--dark:hover { background: #1db47e; }
.icon-btn { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--text-2); box-shadow: var(--shadow); transition: transform .3s var(--ease), background .3s, color .3s; }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.icon-btn:hover { transform: translateY(-3px); background: var(--em-soft); color: var(--em-dark); }
.card { padding: 36px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg); }
.form h3 { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.form > .muted { margin: 8px 0 24px; font-size: 15px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); outline: 0; transition: border-color .25s, box-shadow .25s, background .25s; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--em-2); background: #fff; box-shadow: 0 0 0 4px rgba(34,197,139,.14); }
.field.is-error input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(242,139,139,.18); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d7d75' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }

/* ============ FOOTER ============ */
.footer { background: #fff; color: var(--muted); padding: 44px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a { font-weight: 700; font-size: 14px; color: var(--text-2); } .footer nav a:hover { color: var(--em-dark); }
.footer small { font-size: 13px; }
.brand--light { color: var(--text); }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; visibility: hidden; transition: visibility 0s .45s; }
.modal.is-open { visibility: visible; transition: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(226, 238, 232, .7); backdrop-filter: blur(8px); opacity: 0; transition: opacity .35s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__box { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 36px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .35s var(--ease), transform .45s var(--ease); }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-2); font-size: 14px; transition: background .2s; z-index: 3; }
.modal__x:hover { background: var(--line); }
.modal h3 { font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: -.025em; padding-right: 40px; }
.modal .muted { margin: 8px 0 24px; font-size: 15px; }
.modal__course { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 18px; background: var(--soft); margin-bottom: 22px; }
.modal__thumb { position: relative; width: 74px; height: 60px; border-radius: 12px; overflow: hidden; flex: none; background: #fff; }
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal__thumb .cover__icon { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.modal__thumb .cover__icon svg { width: 26px; height: 26px; }
.modal__course small { display: block; color: var(--muted); font-size: 13px; }
.success { text-align: center; padding: 10px 0; }
.success h3 { padding: 0; }
.success__icon { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--em-soft); color: var(--em-dark); font-size: 38px; animation: pop .5s var(--ease); }
.success .btn--dark { background: var(--em); }

/* ============ TOAST ============ */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 120; transform: translate(-50%, 160%); padding: 14px 22px; border-radius: 16px; background: #fff; color: var(--text); font-weight: 700; font-size: 14.5px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); transition: transform .45s var(--ease); max-width: calc(100% - 32px); }
.toast.is-show { transform: translate(-50%, 0); }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero__inner, .att, .faq, .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { max-width: 520px; margin: 0 auto 20px; width: 100%; }
  .courses, .teachers, .quotes { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links { position: fixed; top: 72px; left: 16px; right: 16px; flex-direction: column; margin: 0; padding: 10px; border-radius: 22px; background: rgba(255,255,255,.97); backdrop-filter: blur(18px); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open { background: rgba(255,255,255,.97); }
  .nav__links a { padding: 14px 18px; font-size: 16px; }
  .nav__cta { margin-left: auto; }
  .burger { display: block; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero { padding-top: 116px; }
  .hero__inner { padding-bottom: 70px; }
  .nav__cta { display: none; }
  .burger { margin-left: auto; }
  .hero__actions .btn { flex: 1 1 100%; }
  .courses, .teachers, .quotes { grid-template-columns: 1fr; }
  .stats { gap: 10px; padding-top: 36px; }
  .stat { padding: 18px; }
  .section { padding: 76px 0; }
  .section__head { margin-bottom: 32px; }
  .dash { transform: none; padding: 18px; }
  .dash__body { gap: 16px; }
  .ring { width: 108px; height: 108px; }
  .ring__label b { font-size: 23px; }
  .float-card { padding: 9px 14px 9px 9px; }
  .fc__icon { width: 34px; height: 34px; font-size: 16px; }
  .float-card b { font-size: 14px; }
  .float-card--a { left: -6px; bottom: -32px; }
  .float-card--b { right: -6px; top: -38px; }
  .att__field { flex-direction: column; border-radius: 22px; }
  .att__field input { padding: 12px 14px; }
  .att__result { padding: 22px; }
  .res__main { flex-direction: column; align-items: stretch; }
  .res__main .ring { margin: 0 auto; }
  .res__grid { grid-template-columns: repeat(8, 1fr); }
  .teacher__social { opacity: 1; transform: none; }
  .join { padding: 30px 24px; }
  .join .btn { width: 100%; }
  .card, .modal__box { padding: 26px 22px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
