:root {
  color-scheme: light;
  color: #14233b;
  background: #f5f7fa;
  font: 16px/1.55 system-ui, sans-serif;
  --ink: #14233b;
  --muted: #4c5e76;
  --line: #d7e0ec;
  --accent: #164bc3;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #3067ed; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.top, .footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 20px; }
.top { border-bottom: 1px solid var(--line); }
.top nav { display: flex; gap: 26px; }
.top nav a, .brand { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 750; font-size: 1.2rem; }
.brand-mark { width: 23px; height: 23px; border: 6px solid var(--accent); border-radius: 7px 11px 11px 11px; transform: rotate(-18deg); }
.button { display: inline-block; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; font-weight: 650; }
.ghost { color: var(--accent); border-color: var(--line); background: white; }
.primary { color: white; background: var(--accent); }
.primary:hover { background: #103a9c; }
.hero { min-width: 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(48px, 9vw, 112px); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.8rem, 5.6vw, 4.8rem); line-height: 1.03; letter-spacing: -.065em; max-width: 13ch; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.55rem); line-height: 1.12; letter-spacing: -.035em; }
h3 { font-size: 1.19rem; }
.intro > p { max-width: 41ch; margin: 21px 0 26px; color: var(--muted); font-size: 1.09rem; }
.preview { padding: clamp(14px, 2.5vw, 25px); border-radius: 20px; color: #f7fbff; background: #17263e; box-shadow: 0 22px 48px #263e6b23; }
.preview-header { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.preview-header span { color: #bad3e0; font-size: .83rem; white-space: nowrap; }
.preview-header i { display: inline-block; width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; background: #73e2ac; }
.participants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.participants div { min-height: 140px; display: grid; place-content: center; gap: 8px; justify-items: center; background: #233b61; border-radius: 12px; }
.participants div + div { background: #244a4d; }
.participants b { display: grid; place-items: center; width: 53px; height: 53px; border-radius: 50%; background: #cbdafe; color: #203963; }
.participants div + div b { background: #b8e3d9; color: #174546; }
.participants span { color: #e4f0ff; font-size: .88rem; }
.controls { display: flex; justify-content: center; gap: 10px; margin-top: 17px; }
.controls span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 8px; background: #30415b; }
.controls span:last-child { background: #ad3a4f; }
.features, .questions { border-top: 1px solid var(--line); padding-block: 35px 52px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 23px; }
.feature-grid article { padding: clamp(15px, 2.3vw, 28px); background: white; border: 1px solid var(--line); border-radius: 14px; }
.feature-grid p, details p { color: var(--muted); margin-top: 9px; }
.symbol { display: block; font-size: 1.4rem; color: var(--accent); margin-bottom: 7px; }
.questions { display: grid; grid-template-columns: .75fr 1fr; gap: 24px; }
details { border-bottom: 1px solid var(--line); padding: 13px 0; }
summary { cursor: pointer; font-weight: 650; }
.footer { border-top: 1px solid var(--line); }
dialog { width: min(440px, calc(100% - 26px)); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); padding: 24px; }
dialog::backdrop { background: #14233baa; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.close { border: none; padding: 1px 8px; border-radius: 5px; background: #eaf0f8; font-size: 1.4rem; }
.notice { color: var(--muted); margin-top: 12px; }
form { display: grid; gap: 14px; margin-top: 15px; }
label { display: grid; gap: 4px; }
input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; color: var(--ink); }
.form-error { color: #9e2035; }
.missing { min-height: 50vh; padding-block: 65px; }
.missing p { margin: 20px 0; color: var(--muted); }
@media (max-width: 720px) {
  .hero, .questions, .feature-grid { grid-template-columns: 1fr; }
  .top nav { display: none; }
}
@media (max-width: 430px) { .wrap { width: calc(100% - 30px); } }
