:root {
  color-scheme: light dark;
  --bg: #f6f7f2;
  --panel: #ffffff;
  --fg: #191b1f;
  --muted: #626b72;
  --line: #d8ded6;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --warm: #9a5b13;
  --soft: #eef4f1;
  --shadow: 0 18px 45px rgb(29 42 37 / 10%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

.site-header {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 22px 0;
}

.brand,
.back-link {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent-strong);
  font-size: 0.82rem;
  box-shadow: 0 8px 22px rgb(29 42 37 / 8%);
}

.shell {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 28px 0 72px;
}

.storefront-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: start;
}

.hero {
  grid-column: 1 / -1;
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 3.4rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.summary {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.order-builder,
.flow-panel,
.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.order-builder {
  display: grid;
  gap: 26px;
  padding: 24px;
}

.form-section {
  display: grid;
  gap: 14px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-label {
  display: grid;
  width: 26px;
  height: 26px;
  margin: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tariff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
  display: block;
  min-width: 0;
}

.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.choice-card {
  display: grid;
  min-height: 118px;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.tariff-card {
  min-height: 86px;
  align-content: center;
}

.choice input:checked + .choice-card {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent), 0 10px 26px rgb(15 118 110 / 12%);
}

.choice input:focus-visible + .choice-card {
  outline: 3px solid rgb(15 118 110 / 28%);
  outline-offset: 2px;
}

.choice-card:hover {
  transform: translateY(-1px);
}

.choice-title,
.tariff-cny {
  color: var(--fg);
  font-weight: 800;
}

.choice-summary {
  color: var(--muted);
  font-size: 0.94rem;
}

.tariff-cny {
  font-size: 1.05rem;
}

.tariff-rub {
  color: var(--warm);
  font-weight: 800;
}

.cta-row {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.primary-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.primary-button:hover {
  background: var(--accent-strong);
}

.cta-row p,
.next-step {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.flow-panel {
  padding: 24px;
}

.flow-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.flow-list li::marker {
  color: var(--accent);
  font-weight: 800;
}

.order-shell {
  max-width: 820px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-weight: 800;
}

.order-card {
  padding: 28px;
}

.order-card h1 {
  font-size: 2rem;
  word-break: break-all;
}

.order-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.order-summary div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.order-summary dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.order-summary dd {
  margin: 0;
  color: var(--fg);
  font-size: 1.05rem;
  font-weight: 800;
}

.state-code {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 860px) {
  .storefront-shell {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 16px;
  }

  .shell {
    width: min(100% - 24px, 1120px);
    padding-top: 18px;
  }

  h1 {
    font-size: 2rem;
  }

  .order-builder,
  .flow-panel,
  .order-card {
    padding: 18px;
  }

  .service-grid,
  .order-summary {
    grid-template-columns: 1fr;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111412;
    --panel: #191e1b;
    --fg: #f3f4f2;
    --muted: #b8c0bb;
    --line: #303832;
    --accent: #5eead4;
    --accent-strong: #99f6e4;
    --warm: #f8c471;
    --soft: #15221e;
    --shadow: 0 18px 45px rgb(0 0 0 / 24%);
  }
}
