:root {
  --bg: #f7efe2;
  --ink: #1c120c;
  --muted: #5e4c3c;
  --card: #fffaf3;
  --line: #e2d0b8;
  --orange: #fd7310;
  --orange-ink: #1c120c;
  --red: #fe0018;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: linear-gradient(rgb(247 239 226 / 84%), rgb(247 239 226 / 84%)), url("assets/pattern.png");
  background-repeat: repeat;
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.45;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.band {
  height: 22px;
  background: repeating-linear-gradient(
    to bottom,
    var(--red) 0 7px,
    #fff 7px 14px
  );
  border-block: 2px solid var(--ink);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0 18px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img.word { height: 34px; width: auto; }
nav { display: flex; gap: 8px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
}
.btn.primary { background: var(--orange); color: var(--orange-ink); border-color: var(--ink); }
.btn.ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.hero {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(240px, 420px);
  gap: 22px;
  align-items: end;
  padding: 36px 0 12px;
}
.hero-character {
  width: 100%;
  height: auto;
  justify-self: end;
}
.rail {
  border-radius: 9px;
  background: repeating-linear-gradient(
    to bottom,
    var(--red) 0 8px,
    #fff 8px 16px
  );
  border: 2px solid var(--ink);
}
h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.lede {
  margin: 18px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 20px;
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
section { padding: 42px 0; }
h2 {
  margin: 0 0 10px;
  max-width: 18ch;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sub { margin: 0; color: var(--muted); font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 18px 18px 20px;
}
.card h3 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.03em; line-height: 1.05; }
.card p, .step p { margin: 6px 0 0; color: var(--muted); }
.striped {
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    repeating-linear-gradient(to bottom, var(--red) 0 6px, #fff 6px 12px) border-box;
  border: 8px solid transparent;
}
.steps { display: grid; gap: 18px; margin-top: 22px; }
.step { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
.num {
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(to bottom, var(--red) 0 8px, #fff 8px 16px);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
}
.step strong { display: block; font-size: 22px; letter-spacing: -0.03em; }
.plans { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; margin-top: 22px; }
.plan ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 17px; }
.plan li + li { margin-top: 8px; }
.plan .actions { margin-top: 18px; }
details {
  border-top: 2px solid var(--line);
  padding: 14px 0;
}
details:last-of-type { border-bottom: 2px solid var(--line); }
summary { cursor: pointer; font-size: 18px; font-weight: 700; }
details p { margin: 8px 0 0; color: var(--muted); }
.close {
  padding: 8px 0 48px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 36px;
  color: var(--muted);
  font-size: 14px;
}
.success-main { padding: 28px 0 12px; }
.ref { margin-top: 16px; color: var(--muted); }
.hw-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 14px; margin-top: 22px; }
.hw-result { min-height: 180px; }
.verdict { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.03em; line-height: 1.05; }
.verdict.ok { color: #1f7a4d; }
.verdict.tight { color: #8a4b12; }
.verdict.no { color: var(--red); }
.hw-list { margin: 12px 0 0; padding: 0; list-style: none; }
.hw-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.hw-list span { color: var(--muted); }
.reqs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.reqs h3 { margin: 0 0 8px; }
.reqs ul { margin: 0; padding-left: 18px; color: var(--muted); }
.reqs li + li { margin-top: 6px; }
@media (max-width: 800px) {
  .grid, .plans, .hw-grid, .reqs { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-character { max-width: 420px; justify-self: center; }
  .rail { height: 16px; }
  header { align-items: flex-start; flex-direction: column; }
  .brand img.word { height: 26px; }
  .step { grid-template-columns: 56px minmax(0, 1fr); }
}
