:root {
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --surface-2: #E9EDF4;
  --text: #17202E;
  --muted: #5B6577;
  --border: #D9DFEA;
  --accent: #2F4BD8;
  --accent-ink: #FFFFFF;
  --accent-soft: #E4E9FB;
  --ok: #1F8F4E;
  --ok-soft: #DDF3E6;
  --warn: #B45A08;
  --warn-soft: #FBEBD6;
  --bad: #C92A2A;
  --bad-soft: #FADEDE;
  --code-bg: #101623;
  --code-text: #E6EAF2;
  --code-muted: #8B96AD;
  --shadow: 0 1px 2px rgba(23,32,46,.06), 0 8px 24px -12px rgba(23,32,46,.18);
  --radius: 10px;
  --font-display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1220; --surface: #151C2C; --surface-2: #1C2538; --text: #E8ECF4; --muted: #98A3B8;
    --border: #27324A; --accent: #8AA0FF; --accent-ink: #0D1220; --accent-soft: #23305A;
    --ok: #4CC27C; --ok-soft: #173327; --warn: #F0A44A; --warn-soft: #3A2A12; --bad: #F07070; --bad-soft: #3D1C1C;
    --code-bg: #0B0F1A; --code-text: #E6EAF2; --code-muted: #7F8BA3;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1220; --surface: #151C2C; --surface-2: #1C2538; --text: #E8ECF4; --muted: #98A3B8;
  --border: #27324A; --accent: #8AA0FF; --accent-ink: #0D1220; --accent-soft: #23305A;
  --ok: #4CC27C; --ok-soft: #173327; --warn: #F0A44A; --warn-soft: #3A2A12; --bad: #F07070; --bad-soft: #3D1C1C;
  --code-bg: #0B0F1A; --code-text: #E6EAF2; --code-muted: #7F8BA3;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 15.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
code, pre, .mono { font-family: var(--font-mono); }
code { font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.shell > div { min-width: 0; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--border); background: var(--surface);
  padding: 22px 18px; display: flex; flex-direction: column; gap: 18px;
}
.brand { display: flex; flex-direction: column; gap: 4px; }
.brand .name { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.brand .domain { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  color: var(--text); font-weight: 500; font-size: 14.5px;
}
.nav a .k { font-family: var(--font-mono); font-size: 11px; color: var(--muted); width: 22px; }
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.nav a.active .k { color: var(--accent); }
.side-progress { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.side-progress .lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.side-progress .lbl b { color: var(--text); font-variant-numeric: tabular-nums; }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.auth { border-top: 1px solid var(--border); padding-top: 12px; }
.auth-form { display: flex; flex-direction: column; gap: 6px; }
.auth-form input { font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); min-width: 0; }
.auth-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.auth-msg { font-size: 12.5px; color: var(--bad); min-height: 1em; }
.auth-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.auth-user { font-family: var(--font-mono); font-weight: 600; }
.sync-status { color: var(--muted); font-size: 12.5px; }
.sync-status.ok { color: var(--ok); }
.sync-status.bad { color: var(--bad); }
.auth-footer { border-top: 0; padding-top: 0; width: 100%; }
.auth-footer .auth-form { flex-direction: row; flex-wrap: wrap; align-items: center; }
.auth-footer .auth-form input { flex: 1 1 140px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  font-size: 13.5px; font-weight: 500; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.small { padding: 5px 9px; font-size: 12.5px; }

.main { padding: 28px clamp(16px, 4vw, 48px) 80px; max-width: 1180px; width: 100%; min-width: 0; }
.topbar { display: none; }

/* ---------- common ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.section { padding-top: 56px; scroll-margin-top: 16px; }
.section-head { display: flex; flex-direction: column; gap: 8px; max-width: 70ch; margin-bottom: 22px; }
.section-head p { color: var(--muted); }
.lead { color: var(--muted); max-width: 66ch; }
.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; }
.badge.E { background: var(--ok-soft); color: var(--ok); }
.badge.M { background: var(--warn-soft); color: var(--warn); }
.badge.H { background: var(--bad-soft); color: var(--bad); }
.badge.prem { background: var(--surface-2); color: var(--muted); }
.meter { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; width: 0; transition: width .4s ease; }
.meter.ok > i { background: var(--ok); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); gap: 28px; align-items: center; padding-top: 6px; }
h1 .arr { color: var(--accent); font-weight: 800; }
.judge { background: var(--code-bg); color: var(--code-text); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.06); }
.judge-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); }
.judge-bar .wd { width: 10px; height: 10px; border-radius: 50%; }
.judge-bar .wd.r { background: #F07070; } .judge-bar .wd.y { background: #F0A44A; } .judge-bar .wd.g { background: #4CC27C; }
.judge-title { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--code-muted); }
.judge-body { margin: 0; padding: 16px 18px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75; overflow-x: auto; white-space: pre; font-variant-numeric: tabular-nums; }
.judge-body .pr { color: #4CC27C; }
.judge-body .k { color: #8AA0FF; }
.judge-body .dim { color: var(--code-muted); }
.judge-body .bar { display: inline-block; width: 160px; max-width: 40vw; height: 9px; background: rgba(255,255,255,.12); border-radius: 3px; vertical-align: middle; overflow: hidden; }
.judge-body .bar i { display: block; height: 100%; width: 0; background: #8AA0FF; transition: width .4s ease; }
.judge-body .rk { color: #F0A44A; font-weight: 600; }
.judge-body .vd { font-weight: 700; padding: 1px 8px; border-radius: 4px; }
.judge-body .vd.pending { background: rgba(240,164,74,.18); color: #F0A44A; }
.judge-body .vd.ac { background: rgba(76,194,124,.18); color: #4CC27C; }
.hero .title { display: flex; flex-direction: column; gap: 14px; }
.hero .goal { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat .v { font-family: var(--font-display); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.stat .l { font-size: 12.5px; color: var(--muted); }
.stat.wide { grid-column: 1 / -1; gap: 8px; }
.stat.wide .row { display: flex; justify-content: space-between; align-items: baseline; }
.diffs { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.diffs b { color: var(--text); }

/* ---------- 3D yo'l ---------- */
.path3d { margin-top: 26px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.path3d-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.path3d-wrap { position: relative; height: 440px; border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #141B2E 0%, #0B0F1A 70%); border: 1px solid rgba(255,255,255,.06); }
.path3d-wrap canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.tip3d { position: absolute; pointer-events: none; transform: translate(14px, 14px); background: rgba(11,15,26,.94); color: #E6EAF2; border: 1px solid rgba(255,255,255,.14); padding: 6px 9px; border-radius: 6px; font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; z-index: 2; }
.legend3d { position: absolute; left: 12px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 12px; color: #98A3B8; pointer-events: none; }
.legend3d i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
@media (max-width: 960px) { .path3d-wrap { height: 340px; } }

/* ---------- bugun ---------- */
.today { margin-top: 26px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.today-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.today-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1.2fr) minmax(160px,.6fr); gap: 18px; }
.today-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.today-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.today-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.today-list li .id { color: var(--muted); font-size: 12.5px; min-width: 38px; }
.today-list li a { color: var(--text); font-weight: 500; }
.today-list li a:hover { color: var(--accent); }
.today .big { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.badge.due { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 960px) { .today-grid { grid-template-columns: 1fr; } }

/* ---------- roadmap ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.phase { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 0 16px; position: relative; padding-bottom: 26px; }
.phase .rail { position: relative; }
.phase .rail::before { content: ""; position: absolute; left: 27px; top: 34px; bottom: -8px; width: 2px; background: var(--border); }
.phase:last-child .rail::before { display: none; }
.phase .num { width: 56px; height: 34px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-weight: 600; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.phase .body { display: flex; flex-direction: column; gap: 12px; }
.phase .body .head { display: flex; flex-direction: column; gap: 4px; }
.phase .body .head .w { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.phase .body p { color: var(--muted); max-width: 70ch; }
.weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.week { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; text-align: left; }
.week:hover { border-color: var(--accent); }
.week .t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.week .t .n { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.week .t .c { font-family: var(--font-mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.week h4 { font-size: 14px; font-weight: 700; font-family: var(--font-body); line-height: 1.3; }
.week.done { border-color: var(--ok); }
.routine { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.routine .card { padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.routine .card .d { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.routine .card .x { font-size: 14px; }

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.skill { display: flex; flex-direction: column; gap: 10px; }
.skill .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.skill .head .cnt { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.skill .note { font-size: 13.5px; color: var(--muted); }
.skill ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.skill li { border-top: 1px solid var(--border); }
.skill label { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 10px; padding: 9px 0; cursor: pointer; align-items: start; }
.skill label input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--accent); }
.skill label .t { font-weight: 500; font-size: 14px; }
.skill label .s { font-size: 12.5px; color: var(--muted); }
.skill label.on .t { color: var(--muted); text-decoration: line-through; }

/* ---------- problems ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar input[type="search"], .toolbar select, .row-status select {
  font: inherit; font-size: 13.5px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
}
.toolbar input[type="search"] { min-width: 200px; flex: 1 1 200px; }
.toolbar .count { margin-left: auto; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.problems { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
table.problems th { text-align: left; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); position: sticky; top: 0; }
table.problems td { padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.problems tr:last-child td { border-bottom: 0; }
table.problems td.id { font-family: var(--font-mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; width: 64px; }
table.problems td.nm a { font-weight: 500; color: var(--text); }
table.problems td.nm a:hover { color: var(--accent); }
table.problems td.pt { color: var(--muted); font-size: 13px; }
table.problems td.wk { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
table.problems tr.ac td.nm a, table.problems tr.done td.nm a { color: var(--muted); }
table.problems tr.done td.nm a { text-decoration: line-through; }
.row-status select { padding: 4px 8px; font-size: 12.5px; }
.row-status select.ac { border-color: var(--ok); color: var(--ok); }
.row-status select.r7, .row-status select.r30 { border-color: var(--warn); color: var(--warn); }
.row-status select.done { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.week-anchor { scroll-margin-top: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- templates ---------- */
.tpl { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 8px; overflow: hidden; }
.tpl summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }
.tpl summary::-webkit-details-marker { display: none; }
.tpl summary .tag { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); font-weight: 500; }
.tpl summary .arrow { width: 16px; color: var(--muted); transition: transform .2s; }
.tpl[open] summary .arrow { transform: rotate(90deg); }
.tpl .code { position: relative; background: var(--code-bg); color: var(--code-text); }
.tpl pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
.tpl .copy { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.08); color: var(--code-text); border: 1px solid rgba(255,255,255,.14); }
.tpl .copy:hover { background: rgba(255,255,255,.16); }

/* ---------- interview ---------- */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 8px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.step .m { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.step .t { font-weight: 700; font-size: 14px; font-family: var(--font-display); }
.step .x { font-size: 12.5px; color: var(--muted); }
.plain { width: 100%; border-collapse: collapse; font-size: 14px; }
.plain th { text-align: left; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.plain td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.plain tr:last-child td { border-bottom: 0; }
.quote { border-left: 3px solid var(--accent); padding: 10px 14px; background: var(--surface); border-radius: 0 8px 8px 0; color: var(--text); font-size: 14.5px; }
.list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.res { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.res a.card { display: flex; flex-direction: column; gap: 4px; color: var(--text); padding: 14px; }
.res a.card:hover { text-decoration: none; border-color: var(--accent); }
.res a.card .h { font-weight: 600; }
.res a.card .u { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.res a.card .x { font-size: 13px; color: var(--muted); }
footer { margin-top: 60px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 9px 14px; border-radius: 8px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50; }
.toast.show { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px; gap: 10px; align-items: center; }
  .topbar .brand { flex: 0 0 auto; }
  .topbar .nav { flex-direction: row; overflow-x: auto; gap: 4px; flex: 1 1 auto; scrollbar-width: none; }
  .topbar .nav::-webkit-scrollbar { display: none; }
  .topbar .nav a { white-space: nowrap; padding: 6px 9px; font-size: 13.5px; }
  .topbar .nav a .k { display: none; }
  .hero { grid-template-columns: 1fr; }
  .judge-body { font-size: 12.5px; padding: 14px; }
  .skills, .two, .grid.c2, .grid.c3 { grid-template-columns: 1fr; }
  .main { padding-top: 18px; }
  .section { padding-top: 40px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats { grid-template-columns: 1fr 1fr; }
  .phase { grid-template-columns: 44px minmax(0,1fr); }
  .phase .num { width: 44px; }
  .phase .rail::before { left: 21px; }
  .grid.c4 { grid-template-columns: 1fr; }
}
