:root {
  color-scheme: light;
  --bg: #eff6fa;
  --surface: #fff;
  --surface-soft: #f7fbfd;
  --text: #2b414c;
  --muted: #5c7a88;
  --key: #28749a;
  --green: #237a57;
  --border: rgba(43, 65, 76, .14);
  --shadow: 0 18px 54px rgba(43, 65, 76, .10);
  --serif: Georgia, "Noto Serif", "Noto Serif SC", serif;
  --sans: Inter, "Noto Sans", "Noto Sans SC", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e2236;
    --surface: #13283d;
    --surface-soft: #0b1a2a;
    --text: #fffcf2;
    --muted: #a7bcce;
    --key: #ffe9a8;
    --green: #77d6a7;
    --border: rgba(255, 233, 168, .16);
    --shadow: 0 18px 54px rgba(0, 0, 0, .28);
  }
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  min-width: 0;
  margin: 0;
  background:
    radial-gradient(circle at 10% 0, color-mix(in srgb, var(--key) 17%, transparent), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.72;
}
a { color: var(--key); }
.shell { width: min(calc(100% - 36px), 880px); margin: 0 auto; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand { color: var(--text); font-weight: 900; letter-spacing: .12em; text-decoration: none; }
.lang { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.lang a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; }
.hero { padding: clamp(48px, 9vw, 88px) 0 38px; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; }
h1 { max-width: 16ch; margin: 0; font-size: clamp(42px, 8vw, 76px); }
.lede { max-width: 66ch; margin: 24px 0 0; color: var(--muted); font-size: clamp(18px, 2.5vw, 22px); }
.meta { margin-top: 18px; color: var(--muted); font-size: 13px; }
.article { display: grid; gap: 26px; padding-bottom: 70px; }
.card {
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  padding: clamp(22px, 5vw, 42px);
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 14px; font-size: clamp(27px, 4vw, 39px); }
.card h3 { margin: 28px 0 8px; font-size: 22px; }
.card p:last-child { margin-bottom: 0; }
.facts, .week, .steps, .related { display: grid; gap: 14px; }
.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact, .day, .step, .related a {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 18px;
}
.fact strong, .day strong, .step strong { display: block; margin-bottom: 6px; color: var(--key); }
.day { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 14px; }
.day-label { font-weight: 900; color: var(--green); }
.status { display: inline-flex; margin-top: 8px; border-radius: 999px; background: var(--surface); padding: 4px 9px; color: var(--muted); font-size: 12px; font-weight: 800; }
.status.live { color: var(--green); }
.steps { counter-reset: ime-step; }
.step { position: relative; padding-left: 64px; }
.step::before {
  counter-increment: ime-step;
  content: counter(ime-step);
  position: absolute;
  top: 18px;
  left: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--key);
  color: var(--surface);
  font-weight: 900;
}
.try-box { text-align: center; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--key);
  padding: 10px 20px;
  color: var(--surface);
  font-weight: 900;
  text-decoration: none;
}
.button.secondary { background: var(--surface-soft); color: var(--key); }
.related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related a { color: var(--text); font-weight: 800; text-decoration: none; }
.related small { display: block; margin-top: 5px; color: var(--muted); font-weight: 500; }
.faq details { border-top: 1px solid var(--border); padding: 16px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; color: var(--text); font-weight: 850; }
.faq details p { color: var(--muted); }
.contact { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; border-top: 1px solid var(--border); padding: 26px 0 42px; color: var(--muted); font-size: 14px; }
.contact a { min-height: 44px; display: inline-flex; align-items: center; }
.try-input { width: 100%; min-height: 52px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-soft); color: var(--text); padding: 12px 14px; font: inherit; }
.try-result { min-height: 1.5em; color: var(--green); font-weight: 900; }

@media (max-width: 600px) {
  .shell { width: min(calc(100% - 28px), 880px); }
  .topbar { align-items: flex-start; }
  .hero { padding-top: 34px; }
  .facts, .related { grid-template-columns: 1fr; }
  .day { grid-template-columns: 1fr; gap: 5px; }
  .card { border-radius: 22px; padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
