/* hr.superayiq.uz — вид SUPER AYIQ: тёмно-синий, синий, оранжевый. Шрифт Montserrat (есть кириллица: ў қ ғ ҳ). */
:root {
  --navy: #0d2557;
  --navy-deep: #081a40;
  --blue: #1f5fe0;
  --orange: #ff7a00;
  --orange-deep: #e86a00;
  --paper: #ffffff;
  --ink: #12224a;
  --muted: #5b6b8c;
  --line: #dfe6f3;
  --soft: #f3f6fc;
  --good: #15803d;
  --bad: #c0262d;
  --radius: 18px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -10%, #1b3a80 0%, var(--navy) 45%, var(--navy-deep) 100%) fixed;
  color: var(--ink);
  font: 500 17px/1.55 var(--font);
}
#app { max-width: 560px; margin: 0 auto; padding: 0 16px 28px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }

/* шапка */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 2px 12px; }
.wordmark { width: 132px; height: auto; }
.script { display: inline-flex; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 3px; }
.script button { border: 0; background: transparent; color: #dbe4ff; font: 600 14px/1 var(--font); padding: 9px 13px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.script button.on { background: #fff; color: var(--navy); }

/* путь как уровни игры */
.path { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 14px; padding: 0; position: relative; }
.path li { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #a9b8e0; font-size: 12px; font-weight: 600; text-align: center; position: relative; }
.path li + li::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 3px; background: rgba(255, 255, 255, .16); z-index: 0; }
.path li.done + li::before, .path li.done + li.now::before { background: var(--orange); }
.path .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #23407f; color: #c9d5f5; font-weight: 800; font-size: 15px; position: relative; z-index: 1; border: 2px solid rgba(255, 255, 255, .18); }
.path li.done .dot { background: var(--orange); color: #fff; border-color: var(--orange); }
.path li.now .dot { background: #fff; color: var(--navy); border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 122, 0, .28); }
.path li.now { color: #fff; }

/* карточка */
.card { background: var(--paper); border-radius: var(--radius); padding: 20px 18px 22px; box-shadow: 0 18px 50px rgba(3, 10, 30, .45); outline: none; }
h1 { font-size: 27px; line-height: 1.2; margin: 6px 0 10px; color: var(--navy); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 22px; line-height: 1.28; margin: 4px 0 14px; color: var(--navy); font-weight: 800; }
h2.situation { font-size: 19px; font-weight: 700; line-height: 1.42; }
h3 { font-size: 17px; margin: 0 0 4px; color: var(--navy); font-weight: 800; }
p { margin: 0 0 12px; }
.lead { font-size: 17px; color: var(--ink); }
.small { font-size: 14px; color: var(--muted); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 8px; }
.chip { display: inline-block; background: #fff1e5; color: var(--orange-deep); font-weight: 700; font-size: 13px; padding: 6px 11px; border-radius: 999px; margin: 14px 0 2px; }
.hero, .pic { margin: -20px -18px 14px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: #dfe6f3; }
.hero img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bar { height: 6px; background: var(--soft); border-radius: 999px; overflow: hidden; margin: 0 0 16px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #ffad55); border-radius: 999px; transition: width .3s ease; }

.steps { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--soft); border-radius: 14px; padding: 12px; }
.steps .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.note { background: #fff7ef; border-left: 4px solid var(--orange); border-radius: 10px; padding: 12px 14px; font-size: 15px; }

/* варианты ответа */
.label { display: block; font-weight: 700; color: var(--navy); margin: 14px 0 8px; font-size: 15px; }
.options { display: grid; gap: 10px; margin-bottom: 6px; }
.options.grid { grid-template-columns: 1fr 1fr; }
.opt { width: 100%; text-align: left; border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 14px; padding: 14px 14px; font: 600 16px/1.4 var(--font); cursor: pointer; min-height: 54px; transition: border-color .15s, background .15s, transform .08s; }
.opt:active { transform: scale(.985); }
.opt.on { border-color: var(--blue); background: #eef3ff; box-shadow: inset 0 0 0 1px var(--blue); }
.opt.answer { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.opt .letter { flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--soft); color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 14px; margin-top: 1px; }
.opt.answer.on .letter { background: var(--blue); color: #fff; }
@media (hover: hover) { .opt:hover { border-color: #b9c8ea; } .opt.on:hover { border-color: var(--blue); } }
.text { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 14px; font: 500 17px/1.3 var(--font); color: var(--ink); background: #fff; min-height: 54px; }
.text:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 95, 224, .15); }
.phone { display: flex; align-items: stretch; gap: 8px; }
.phone span { display: grid; place-items: center; padding: 0 14px; background: var(--soft); border-radius: 14px; font-weight: 800; color: var(--navy); border: 2px solid var(--line); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 6px; font-size: 15px; cursor: pointer; }
.consent input { width: 24px; height: 24px; flex: none; margin-top: 1px; accent-color: var(--blue); }
.err { color: var(--bad); font-weight: 700; font-size: 15px; margin: 10px 0 0; }

/* уроки */
.block { margin: 0 0 14px; }
.list { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.keys { background: #eef3ff; border-radius: 14px; padding: 12px 14px; margin: 18px 0 4px; }
.keys ul { margin: 6px 0 0; padding-left: 20px; }

/* кнопки */
.btn { display: block; width: 100%; text-align: center; border: 0; border-radius: 14px; padding: 16px 18px; font: 800 17px/1.2 var(--font); cursor: pointer; text-decoration: none; min-height: 56px; }
.btn.primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 0, .35); margin-top: 16px; }
.btn.primary:active { background: var(--orange-deep); }
.btn.primary:disabled { opacity: .6; }
.btn.ghost { background: var(--soft); color: var(--navy); margin-top: 16px; }
.nav { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; }
.nav .btn { margin-top: 18px; }
.nav.column { grid-template-columns: 1fr; }
.nav.column .btn { margin-top: 10px; }

/* «Yutuq ochildi!» — как всплывашки в ролике */
.toast { position: fixed; left: 50%; top: 14px; transform: translate(-50%, -140%); background: var(--navy); color: #fff; border: 2px solid #ffd27a; border-radius: 14px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; z-index: 10; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); max-width: calc(100vw - 32px); font-size: 15px; }
.toast.show { transform: translate(-50%, 0); }
.toast b { color: #ffd27a; text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.toast .star { width: 34px; height: 34px; border-radius: 50%; background: #ffb21e; color: var(--navy); display: grid; place-items: center; font-size: 20px; flex: none; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #9fb0da; font-size: 13px; padding: 16px 4px 0; }
.foot a { color: #dbe4ff; }
.preview { background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 10px; font-size: 12px; overflow-x: auto; margin-top: 14px; }

@media (max-width: 360px) {
  body { font-size: 16px; }
  .options.grid { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
