:root {
  --red: #ed1f24;
  --red-dark: #c4181c;
  --red-tint: #fef2f2;
  --ink: #111111;
  --grey: #555555;
  --grey-light: #8a8a8a;
  --line: #e5e5e5;
  --surface: #ffffff;
  --surface-alt: #f5f5f5;
  --ok: #1a7f37;
  --radius: 10px;
  --font: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1, h2 { font-style: italic; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
[hidden] { display: none !important; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(680px, 100% - 32px); }
.muted { color: var(--grey); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.mock-banner {
  background: #fff4cc; color: #5c4400; text-align: center;
  font-size: 0.9rem; padding: 8px 16px; border-bottom: 1px solid #f0d97a;
}

/* Header */
.site-header { background: var(--ink); color: #fff; }
.site-header .wrap { display: flex; align-items: center; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; letter-spacing: 0.08em; font-size: 1.05rem; }
.brand img { width: 32px; height: auto; }
.brand strong { color: var(--red); font-weight: 600; }

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px;
  background: var(--red); opacity: 0.9; clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(-12deg);
}
@media (max-width: 760px) {
  .hero::after { width: 240px; height: 240px; right: -110px; bottom: -120px; }
}
.hero .wrap { position: relative; z-index: 1; }
.kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; color: var(--red); font-weight: 600; margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: #d4d4d4; max-width: 34em; margin: 0 0 28px; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0; margin: 36px 0 0; color: #d4d4d4; font-size: 0.95rem; }
.steps li { display: flex; align-items: center; gap: 10px; }
.steps span {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--red); color: #fff; font-weight: 600; font-size: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  border-radius: var(--radius); border: 2px solid transparent; padding: 13px 24px; min-height: 48px;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(237, 31, 36, 0.35); outline-offset: 2px; }
.btn-block { width: 100%; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

.notice { border-radius: var(--radius); padding: 14px 16px; margin: 0 0 20px; background: var(--red-tint); border: 1px solid #fde3e3; }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 24px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.plan:hover { border-color: #d4d4d4; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); }
.plan.popular { border-color: var(--red); }
.plan.selected { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.badge {
  position: absolute; top: -12px; left: 20px; background: var(--red); color: #fff;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.plan-meta { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey-light); margin: 0; }
.plan h3 { margin: 0; }
.price { font-size: 2rem; font-weight: 600; line-height: 1.1; margin: 8px 0 0; }
.price-note { color: var(--grey); font-size: 0.9rem; margin: 0; }
.plan ul { list-style: none; padding: 0; margin: 12px 0 16px; font-size: 0.95rem; color: var(--grey); flex: 1; }
.plan li { padding-left: 22px; position: relative; margin: 4px 0; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 10px; height: 6px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }

/* Form */
.selected-plan {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 24px;
}
.selected-plan strong { display: block; }
.selected-plan button { background: none; border: 0; color: var(--red); font: inherit; font-weight: 600; cursor: pointer; padding: 6px 0; text-decoration: underline; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 0.95rem; }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--surface);
  border: 1.5px solid #d4d4d4; border-radius: var(--radius); padding: 11px 12px; min-height: 48px; width: 100%;
}
.field.inline select { width: auto; min-width: 220px; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }
.phone { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.radios { display: flex; gap: 20px; font-weight: 400; min-height: 48px; align-items: center; }
.radios label, .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.radios input, .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.hint { font-weight: 400; color: var(--grey); font-size: 0.85rem; }
.error-text { color: var(--red-dark); font-weight: 500; font-size: 0.85rem; min-height: 0; }
.error-text:empty { display: none; }
.form-error { background: var(--red-tint); border: 1px solid #fde3e3; color: var(--red-dark); border-radius: var(--radius); padding: 12px 14px; font-weight: 500; }
.form-actions { margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.secure-note { text-align: center; color: var(--grey); font-size: 0.85rem; margin: 0; }
#bot-check { min-height: 65px; }

/* Status pages (success, mock checkout) */
.status-card {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 32px 24px; margin: 48px auto; text-align: center;
}
.status-card h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.status-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; text-align: left; margin: 24px auto; max-width: 420px; }
.status-card dt { color: var(--grey); }
.status-card dd { margin: 0; font-weight: 500; }
.reference { font-size: 2rem; font-weight: 700; letter-spacing: 0.06em; color: var(--red); margin: 8px 0; }
.spinner {
  width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 20px;
  border: 4px solid var(--line); border-top-color: var(--red); animation: spin 0.9s linear infinite;
}
.tick {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px; background: var(--ok);
  display: grid; place-items: center; color: #fff; font-size: 1.8rem; font-weight: 700;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } html { scroll-behavior: auto; } }

footer { background: var(--ink); color: #8a8a8a; font-size: 0.85rem; padding: 28px 0; }
footer a { color: #d4d4d4; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
