/* Home (landing) and "TOPIK гэж юу вэ" pages. Plain, static layout in the spirit of topikguide.com:
   a blue hero band, white cards, no motion. */
body[data-page="home"] .container,
body[data-page="about"] .container { max-width: 1120px; }
body[data-page="home"] { overflow-x: clip; }
body[data-page="home"] .container { padding-top: 0; } /* the hero band runs under the floating nav */

/* full-bleed band inside the centred container */
.band { margin: 0 calc(50% - 50vw); padding: 0 calc(50vw - 50%); }

.btn.lg { padding: 12px 22px; font-size: 16px; border-radius: 10px; }
.btn.white { background: #fff; color: #0f5fa6; } /* fixed: sits on the blue band in both themes */
.btn.white:hover { background: #f2f7fd; }
.btn.line { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .85); }
.btn.line:hover { background: rgba(255, 255, 255, .1); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand-deep); background: var(--brand-soft); border-radius: 999px; padding: 4px 12px; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero3 { background: linear-gradient(180deg, #1887e5, #3b97ea); color: #fff; }
.hero3-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: calc(var(--nav-space) + 36px) 0 56px; }
.hero3 .pill { color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); }
.hero3 h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.25; letter-spacing: -.01em; margin: 14px 0 12px; font-weight: 700; }
.hero3 .lead { font-size: 16px; line-height: 1.7; margin: 0 0 22px; color: rgba(255, 255, 255, .92); max-width: 560px; }
.hero3 .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero3 .note { margin: 16px 0 0; font-size: 14px; color: rgba(255, 255, 255, .85); }
/* live exam preview on the blue band (fixed light colours in both themes) */
.demo { position: relative; perspective: 1200px; }
.demo-card { position: relative; border-radius: 18px; padding: 18px; color: #142433; background: rgba(255, 255, 255, .96);
  transform: rotateY(-8deg) rotateX(4deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 30px 70px rgba(8, 40, 90, .35), 0 0 0 1px rgba(255, 255, 255, .6); }
.demo:hover .demo-card { transform: none; }
.demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 600; background: #eaf4fd; color: #0f5fa6; }
.chip.time { background: #f1f4f8; color: #142433; font-variant-numeric: tabular-nums; }
.player { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; margin-bottom: 12px; background: #f1f6fc; }
.play { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 12px; background: #1887e5; }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 28px; }
.wave i { flex: 1; border-radius: 3px; background: #1887e5; height: 30%; animation: wave 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * -0.09s); }
.demo-q { font: 600 15px/1.5 var(--kr); margin: 0 0 10px; }
.demo-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.demo-choices li { padding: 8px 12px; border-radius: 10px; font-size: 14px; border: 1px solid #e2e8f0; background: #fff; }
.demo-choices li.ok { animation: pick 8s infinite; }
.float-chip { position: absolute; padding: 9px 13px; border-radius: 14px; font-size: 13px; font-weight: 600; white-space: nowrap; color: #142433;
  background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 12px 30px rgba(8, 40, 90, .25); animation: float 6s ease-in-out infinite; }
.float-chip.a { right: 18px; bottom: -20px; color: #138a4f; }
.float-chip.b { right: -14px; top: -16px; animation-delay: -3s; }
.float-chip small { display: block; color: #5b6b7c; font-weight: 500; }
@keyframes wave { 0%, 100% { height: 22%; } 50% { height: 100%; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pick { 0%, 30% { border-color: #e2e8f0; background: #fff; } 36%, 100% { border-color: #138a4f; background: #e4f6ec; } }
@media (prefers-reduced-motion: reduce) {
  .wave i, .float-chip { animation: none; }
  .demo-choices li.ok { animation: none; border-color: #138a4f; background: #e4f6ec; }
}
#tests { scroll-margin-top: var(--nav-space); }

/* ── sections ─────────────────────────────────────────────────────────── */
.lp-section { padding: 56px 0 0; }
.lp-section > header { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.lp-section h2 { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.25; margin: 10px 0 8px; font-weight: 700; color: var(--ink); }
.lp-section > header p { color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature { position: relative; padding: 20px; border-radius: 14px; transition: border-color .2s; }
.feature:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.feature .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; font-size: 19px;
  margin-bottom: 12px; background: var(--brand-soft); }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.badge { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; border-radius: 999px; padding: 3px 9px; }
.badge.free { color: var(--ok); background: var(--ok-soft); }
.badge.pro { color: var(--brand-deep); background: var(--brand-soft); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 20px; border-radius: 14px; }
.step .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 700; font-size: 15px;
  color: #fff; background: var(--brand); margin-bottom: 10px; }
.step h3 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── test list: one full-width row per test, newest first ────────────── */
.tlist { display: grid; gap: 10px; }
.trow2 { display: grid; grid-template-columns: 170px 1fr 1fr auto; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 14px; transition: border-color .2s; }
.trow2:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.tname { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tnum { display: flex; align-items: baseline; gap: 3px; line-height: 1; }
.tnum b { font-size: 26px; font-weight: 800; color: var(--ink); }
.tnum span { font-size: 14px; font-weight: 700; color: var(--muted); }
.tname small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.tag2 { display: inline-block; margin-top: 3px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  color: #fff; background: var(--brand); }
.tsec2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px;
  background: var(--brand-soft); min-width: 0; }
.tsec2 .lbl { line-height: 1.2; min-width: 0; }
.tsec2 .lbl b { display: block; font-size: 15px; white-space: nowrap; }
.tsec2 .lbl small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.seg { display: flex; gap: 6px; flex: none; }
.seg a { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: var(--brand-deep); background: var(--card); border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); }
.seg a:first-child { color: #fff; background: var(--brand); border-color: var(--brand); }
.seg a:hover { filter: brightness(.95); }

/* closing call to action */
.lp-final { margin: 56px 0 0; padding: 40px 24px; border-radius: 16px; text-align: center; color: #fff;
  background: linear-gradient(180deg, #1887e5, #3b97ea); }
.lp-final h2 { margin: 0 0 8px; font-size: clamp(20px, 2.6vw, 26px); }
.lp-final p { margin: 0 auto 18px; max-width: 560px; color: rgba(255, 255, 255, .9); }

.footer { margin-top: 40px; padding: 20px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer a { color: var(--muted); }

/* ── about ────────────────────────────────────────────────────────────── */
.about { padding-top: 24px; }
.about h1 { font-size: clamp(26px, 3.4vw, 34px); margin: 12px 0 8px; font-weight: 700; }
.about > p.lead { color: var(--muted); max-width: 720px; margin: 0 0 22px; font-size: 16px; }
.about section { margin-bottom: 16px; border-radius: 14px; padding: 20px; }
.about h2 { font-size: 19px; margin: 0 0 10px; }
.about ul { margin: 0; padding-left: 20px; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 9px 10px; text-align: center; }
.tbl thead th { background: var(--brand-soft); color: var(--ink); }
.tbl tbody th { background: color-mix(in srgb, var(--brand-soft) 45%, var(--card)); }
.levels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.levels div { border-radius: 10px; padding: 10px 6px; text-align: center; background: var(--brand-soft); }
.levels div.ii { background: color-mix(in srgb, var(--brand) 16%, var(--card)); }
.levels b { display: block; font-size: 18px; }
.levels span { font-size: 13px; color: var(--muted); display: block; }
.levels em { font-style: normal; font-size: 14px; font-weight: 600; }
.fees { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fees div { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.fees b { font-size: 22px; display: block; }
.source { font-size: 13px; color: var(--muted); }

@media (max-width: 960px) {
  .hero3-inner { grid-template-columns: 1fr; gap: 36px; }
  .demo-card { transform: none; }
  .trow2 { grid-template-columns: 1fr 1fr; }
  .tname { grid-column: 1 / -1; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero3-inner { padding: calc(var(--nav-space) + 20px) 0 40px; }
  .demo { max-width: 440px; }
  .float-chip.b { right: -4px; }
  .trow2 { grid-template-columns: 1fr; }
  .features, .steps { grid-template-columns: 1fr; }
  .lp-section { padding-top: 44px; }
  .levels { grid-template-columns: repeat(3, 1fr); }
  .score-table { display: none; } /* the level cards show the same ranges */
}
@media (max-width: 380px) {
  .tsec2 .lbl small { display: none; }
}
