:root {
  color-scheme: dark;
  --bg: #151216;
  --panel: #201b20;
  --text: #fff7f2;
  --muted: #cdbfc6;
  --line: #41353f;
  --red: #ff9a9a;
  --button: #b52c47;
  font: 16px/1.65 Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--red); text-underline-offset: .22em; }
a:focus-visible, button:focus-visible { outline: 3px solid #ffb0aa; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.site-header, .site-footer { border-block-end: 1px solid var(--line); }
.site-header > div, .site-footer > div { display: flex; gap: 1rem 1.8rem; align-items: center; justify-content: space-between; padding-block: .95rem; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: .35rem 1.15rem; align-items: center; }
.site-header nav a, .site-footer nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current], .site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: .62rem; color: var(--text); font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .5rem; background: var(--button); color: white; font: 700 1.24rem/1 Georgia, serif; }
.site-footer { margin-top: auto; border: 0; border-block-start: 1px solid var(--line); font-size: .9rem; }
main { padding-block: clamp(2rem, 6vw, 5rem); }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1, h2 { margin: 0 0 .65em; letter-spacing: -.035em; }
h1 { font-size: clamp(2.15rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { margin: 0 0 .5em; }
p { margin: 0 0 1em; }
p, li { overflow-wrap: anywhere; }
.muted, .intro { color: var(--muted); }
.intro { max-width: 54ch; font-size: 1.12rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(16rem, .7fr); align-items: center; gap: clamp(2rem, 8vw, 6rem); padding-block: clamp(1rem, 5vw, 4rem); }
.hero h1 { font-size: clamp(3rem, 8vw, 6.35rem); margin-bottom: .2em; }
.hero h1 span { color: #ff9299; }
.eyebrow { color: var(--red); font-weight: 700; }
.route-card { position: relative; padding: clamp(1.25rem, 4vw, 2.25rem); border: 1px solid #774958; border-radius: 1.25rem; background: radial-gradient(ellipse at top right, #552638, transparent 75%), var(--panel); }
.route-card h2 { font-size: 1.2rem; }
.route { list-style: none; margin: 0; padding: 0; }
.route li { display: grid; grid-template-columns: 1rem 1fr; gap: .65rem; align-items: center; padding: .62rem 0; color: var(--muted); }
.route li::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #ff9299; box-shadow: 0 0 0 .19rem #733143; }
.route li + li { border-block-start: 1px solid #634350; }
.buttons { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; margin-block: 1.25rem; }
.button, button, .option { padding: .65rem 1rem; display: inline-block; color: white; background: var(--button); border: 1px solid transparent; border-radius: .58rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.button:hover, button:hover, .option:hover { background: #9e1d39; }
.button.secondary, button.secondary, .option { border-color: var(--line); background: transparent; color: var(--text); }
.button.secondary:hover, button.secondary:hover, .option:hover { border-color: var(--red); background: #331e2a; }
.home-section { margin-top: clamp(2rem, 6vw, 5rem); scroll-margin-top: 1.5rem; }
.steps, .plans { display: grid; gap: .85rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: steps; }
.steps li, .panel, .tariff-group { background: var(--panel); border: 1px solid var(--line); border-radius: .9rem; padding: clamp(1rem, 3vw, 1.65rem); }
.steps li::before { counter-increment: steps; content: counter(steps); display: inline-block; color: var(--red); font-weight: 750; margin-bottom: .55rem; }
.steps p, .panel p:last-child { margin-bottom: 0; }
.narrow { max-width: 760px; }
.notice { color: var(--muted); border-left: 3px solid var(--red); padding-left: 1rem; }
.tariff-group { margin-top: .85rem; }
.tariff-group h2 { font-size: 1.25rem; }
.option { white-space: normal; }
.option strong, .option span { display: block; }
.option span { color: var(--muted); font-size: .92rem; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 16rem); align-items: start; gap: clamp(1.2rem, 5vw, 4rem); }
.doc-text { max-width: 72ch; min-width: 0; }
.doc-text h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
.doc-heading p { color: var(--muted); }
.doc-text h2 { font-size: clamp(1.2rem, 3.2vw, 1.65rem); margin: 1.75em 0 .6em; scroll-margin-top: 1.5rem; }
.doc-layout article > h2:first-child { margin-top: .3em; }
.doc-text ul { padding-inline-start: 1.3rem; }
.doc-text li + li { margin-top: .6em; }
.toc { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
.toc h2 { font-size: 1rem; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li + li { margin-top: .4em; }
.toc a { color: var(--muted); font-size: .9rem; }
code { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .site-header > div, .site-footer > div { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .hero, .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; order: -1; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 2rem); }
  .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .site-header nav { gap: .25rem .75rem; font-size: .93rem; }
}
