/* webinar.humoline.uz — Koreya vebinari. Tungi ko'k + taeguk qizil/ko'k aksentlar */
:root {
  color-scheme: light;
  --navy: #0b1530;
  --navy-2: #12204a;
  --red: #e0263c;
  --red-hover: #c51d31;
  --blue: #2563eb;
  --green: #00a845;
  --background: #ffffff;
  --surface: #f6f7fb;
  --card: #ffffff;
  --foreground: #0d1220;
  --muted: #5d6475;
  --border: #e4e7ef;
  --input: #d7dbe6;
  --radius: 14px;
  --shadow-lg: 0 30px 60px -30px rgb(11 21 48 / 0.45);
  --display: Unbounded, Inter, ui-sans-serif, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #070c1c;
    --surface: #0c1329;
    --card: #101a36;
    --foreground: #eef1f8;
    --muted: #9aa3b8;
    --border: rgb(255 255 255 / 0.09);
    --input: rgb(255 255 255 / 0.16);
    --red: #f0384d;
    --red-hover: #ff5468;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 15px/1 Inter, sans-serif; border-radius: 999px; border: 1px solid transparent;
  padding: .8rem 1.3rem; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .6rem 1rem; font-size: 14px; }
.btn-lg { padding: 1rem 1.6rem; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgb(224 38 60 / .7); }
.btn-primary:hover { background: var(--red-hover); }
.btn-outline { border-color: var(--border); background: transparent; color: var(--foreground); }
.btn-outline:hover { background: var(--surface); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef1f8; }
.btn[disabled] { opacity: .7; cursor: progress; }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navigatsiya ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgb(11 21 48 / .82); backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / .07); color: #fff;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: .55rem; min-width: 0; font-size: 14px; }
.brand img { width: 46px; height: auto; background: #fff; border-radius: 8px; padding: 3px 5px; }
.brand-text { white-space: nowrap; opacity: .92; }
.brand-text b { font-weight: 700; }
.brand-x { opacity: .45; }
@media (max-width: 720px) { .brand-text, .brand-x { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 48px 0 72px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.taeguk {
  position: absolute; width: 760px; height: 760px; right: -220px; top: -260px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--red) 0 50%, var(--blue) 50% 100%);
  filter: blur(110px); opacity: .38;
}
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.hero-grid > * { min-width: 0; }
@media (min-width: 980px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
}
.pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); font-size: 14px; font-weight: 600;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgb(224 38 60 / .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgb(224 38 60 / 0); } 100% { box-shadow: 0 0 0 0 rgb(224 38 60 / 0); } }
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(30px, 6.2vw, 56px);
  margin: 20px 0 18px; letter-spacing: -0.03em; text-wrap: balance;
}
.hero h1 .flag { font-family: Inter, sans-serif; }
.accent {
  background: linear-gradient(90deg, #ff5a6e, #7aa2ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 17px; color: rgb(255 255 255 / .78); max-width: 560px; }

.event-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0 0; max-width: 600px; }
.event-meta div:last-child { grid-column: 1 / -1; }
@media (min-width: 640px) { .event-meta { grid-template-columns: 1fr 1fr 1.4fr; } .event-meta div:last-child { grid-column: auto; } }
.event-meta div { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); border-radius: 12px; padding: 12px 14px; }
.event-meta dt { font-size: 12.5px; color: rgb(255 255 255 / .6); }
.event-meta dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 76px)); gap: 10px; margin-top: 18px; }
.countdown div { text-align: center; padding: 10px 6px; border-radius: 12px; background: rgb(0 0 0 / .25); border: 1px solid rgb(255 255 255 / .08); }
.countdown b { display: block; font: 700 26px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.countdown small { font-size: 12px; color: rgb(255 255 255 / .6); }

/* ---------- Forma ---------- */
.form-card {
  position: relative; overflow: hidden; background: var(--card); color: var(--foreground); border-radius: 20px;
  padding: 24px; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
@media (min-width: 640px) { .form-card { padding: 32px; } }
.form-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--red), var(--blue));
}
.form-head h2 { font: 700 22px/1.25 var(--display); letter-spacing: -0.02em; }
.form-head p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
form { margin-top: 20px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 0; }
fieldset.field legend { margin-bottom: 6px; }
.field input[type=text], .field input[type=tel] {
  width: 100%; font: 16px Inter, sans-serif; color: var(--foreground); background: var(--background);
  border: 1px solid var(--input); border-radius: 12px; padding: .8rem .95rem; transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(37 99 235 / .15); }
.field input[aria-invalid=true] { border-color: var(--red); }
.err { color: var(--red); font-size: 13px; min-height: 0; }
.err:empty { display: none; }
.err-all { text-align: center; }

.goals { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.goal { position: relative; cursor: pointer; }
.goal input { position: absolute; opacity: 0; pointer-events: none; }
.goal-box {
  display: grid; gap: 2px; height: 100%; padding: 14px; border-radius: 14px; border: 1.5px solid var(--input);
  background: var(--background); transition: border-color .15s, background .15s, box-shadow .15s;
}
.goal-icon { font-size: 24px; line-height: 1.2; }
.goal-box b { font-size: 15.5px; }
.goal-box small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.goal:hover .goal-box { border-color: var(--blue); }
.goal input:checked + .goal-box { border-color: var(--blue); background: rgb(37 99 235 / .07); box-shadow: 0 0 0 3px rgb(37 99 235 / .15); }
.goal input:focus-visible + .goal-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { text-align: center; padding: 16px 0 4px; display: grid; justify-items: center; gap: 10px; }
.done[hidden] { display: none; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff; background: var(--green); box-shadow: 0 10px 30px -10px rgb(0 168 69 / .8); }
.done h3 { font: 700 22px var(--display); }
.done p { color: var(--muted); max-width: 360px; }
.done-meta { font-weight: 600; padding: 8px 14px; background: var(--surface); border-radius: 999px; font-size: 14px; }

/* ---------- Raqamlar ---------- */
.stats { background: var(--navy-2); color: #fff; border-top: 1px solid rgb(255 255 255 / .06); }
.stats-grid { display: grid; gap: 1px; background: rgb(255 255 255 / .08); }
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--navy-2); padding: 26px 8px; display: grid; gap: 4px; }
@media (min-width: 760px) { .stat { padding: 32px 24px; } }
.stat b { font: 700 28px/1.1 var(--display); background: linear-gradient(90deg, #ff6b7d, #8fb0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: rgb(255 255 255 / .72); font-size: 14.5px; }

/* ---------- Bo'limlar ---------- */
.section { padding: 72px 0; }
@media (min-width: 980px) { .section { padding: 96px 0; } }
.section-alt { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin-top: 10px; }
.eyebrow { display: inline-block; color: var(--red); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.section h2 { font: 700 clamp(24px, 4vw, 36px)/1.2 var(--display); letter-spacing: -0.025em; text-wrap: balance; }

.perks { display: grid; gap: 16px; }
@media (min-width: 760px) { .perks { grid-template-columns: repeat(3, 1fr); } }
.perk { padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); }
.perk-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; font-size: 24px; background: var(--surface); margin-bottom: 16px; }
.perk h3 { font-size: 18px; margin-bottom: 6px; }
.perk p { color: var(--muted); font-size: 15px; }

.tracks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.track { position: relative; padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); overflow: hidden; }
.track-n { font: 700 13px var(--display); color: var(--blue); }
.track h3 { font-size: 18px; margin: 10px 0 4px; }
.track p { color: var(--muted); font-size: 14.5px; }
.track-wide { background: linear-gradient(135deg, var(--navy), #1b2c66); color: #fff; border-color: transparent; }
.track-wide .track-n { color: #ff7b8b; }
.track-wide p { color: rgb(255 255 255 / .72); }

.agenda-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .agenda-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } }
.agenda-grid .muted { margin-top: 10px; }
.hot { display: flex; gap: 12px; margin-top: 24px; padding: 18px; border-radius: 16px; background: rgb(224 38 60 / .08); border: 1px solid rgb(224 38 60 / .2); }
.hot > span { font-size: 22px; }
.hot p { font-size: 15px; }
.agenda { list-style: none; margin: 0; padding: 0; counter-reset: a; display: grid; gap: 10px; }
.agenda li { counter-increment: a; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); }
.agenda li::before { content: counter(a); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--display); background: var(--navy); color: #fff; }
.agenda b { font-size: 16px; }
.agenda span { color: var(--muted); font-size: 14.5px; }

.final { background: linear-gradient(120deg, #b51c30, var(--navy) 55%, #1e3fa8); color: #fff; padding: 72px 0; text-align: center; }
.final-inner { display: grid; justify-items: center; gap: 14px; }
.final h2 { font: 700 clamp(24px, 4.4vw, 40px)/1.2 var(--display); max-width: 760px; text-wrap: balance; }
.final p { color: rgb(255 255 255 / .78); }
.final .btn { margin-top: 8px; }

.footer { padding: 28px 0 96px; border-top: 1px solid var(--border); font-size: 14.5px; }
@media (min-width: 760px) { .footer { padding-bottom: 28px; } }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-contacts a { text-decoration: none; font-weight: 600; }

/* Telefonda pastki tugma */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50;
  transition: transform .25s, opacity .25s;
}
.sticky-cta.hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (min-width: 760px) { .sticky-cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot, .spinner { animation: none; }
}
