:root {
  --ink: #0c0c0e;
  --ink-soft: #3a3a40;
  --muted: #6e6e76;
  --bg: #f4f4f5;
  --surface: #ffffff;
  --line: #e3e3e7;
  --line-strong: #c7c7ce;

  --brand: #b2122e;
  --brand-deep: #70091d;
  --brand-bright: #e3173c;
  --brand-ink: #ffffff;

  --dark: #0e0e11;
  --dark-soft: #1a1a1f;
  --on-dark: #ececee;
  --muted-dark: #93979f;

  --ok: #15803d;
  --danger: #b3261e;

  --golden: 1.618;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(14, 14, 17, 0.06), 0 1px 1px rgba(14, 14, 17, 0.04);
  --shadow-md: 0 8px 28px rgba(14, 14, 17, 0.1), 0 2px 6px rgba(14, 14, 17, 0.06);
  --shadow-lg: 0 24px 56px rgba(14, 14, 17, 0.2), 0 6px 16px rgba(14, 14, 17, 0.08);
  --red-glow: 0 0 0 1px rgba(227, 23, 60, 0.4), 0 10px 28px rgba(227, 23, 60, 0.32);
  --gradient-hero:
    radial-gradient(58rem 30rem at 76% -22%, rgba(227, 23, 60, 0.4), transparent 60%),
    radial-gradient(40rem 24rem at -12% 110%, rgba(227, 23, 60, 0.18), transparent 55%),
    linear-gradient(165deg, var(--dark-soft), var(--dark));
  --header-h: 64px;
  --touch: 44px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); }
a:hover { color: var(--brand-bright); }

h1, h2, h3, h4 {
  line-height: 1.18;
  margin: 0 0 0.6em;
  color: var(--ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

ul { margin-top: 0; }

:focus-visible { outline: 3px solid rgba(227, 23, 60, 0.55); outline-offset: 2px; }
::selection { background: var(--brand-bright); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  background: var(--brand-bright);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 120;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0.75rem; }

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: center;
}
.site-header .wrap, .info-list, .split form { text-align: left; }

section { padding: 3.25rem 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.section-head h2 { margin-bottom: 0; }

.section-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
  white-space: nowrap;
}
.section-link:hover { color: var(--brand-bright); }
.section-link .arrow { transition: transform 0.18s ease; display: inline-block; }
.section-link:hover .arrow { transform: translateX(3px); }

.tag {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--brand);
}

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.button, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  min-height: var(--touch);
  padding: 0.62rem 1.35rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  background: linear-gradient(180deg, #d01336, var(--brand));
  color: var(--brand-ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease, background 0.16s ease;
}
.button:hover { filter: brightness(1.07); box-shadow: var(--red-glow); transform: translateY(-1px); color: #fff; }
.button:active { transform: translateY(0); }

.button.secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.button.secondary:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-md); filter: none; }

.button.ghost { background: transparent; color: var(--on-dark); border: 1px solid rgba(255, 255, 255, 0.35); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); box-shadow: none; filter: none; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.card {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-bright), var(--brand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.card:hover::before { transform: scaleX(1); }
.card h3 { margin-bottom: 0.4rem; color: var(--ink); }
.cards .card h3.tag { font-size: 1.05rem; color: var(--brand); margin-bottom: 0.35rem; }
.card p { margin-bottom: 0; font-size: 0.94rem; color: var(--muted); }

.card ul { list-style: none; padding: 0; margin: 0.6rem 0 0; }
.card ul li { padding: 0.22rem 0; }
.card ul a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.14s ease, transform 0.14s ease;
}
.card ul a::before { content: "→"; color: var(--brand); font-weight: 700; }
.card ul a:hover { color: var(--brand); transform: translateX(2px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(14, 14, 17, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); }
.site-header .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  min-height: var(--header-h);
  position: relative;
}

.brand {
  grid-column: 2;
  justify-self: center;
font-size: 3rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.2s ease, letter-spacing 0.2s ease, text-shadow 0.2s ease;
}
.brand:hover {
  transform: scale(1.06);
  letter-spacing: 0.05em;
  text-shadow: 0 6px 22px rgba(227, 23, 60, 0.55);
}
.brand span {
  background: linear-gradient(100deg, var(--brand-bright), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand img {
  height: 3.5rem;
  width: auto;
  display: block;
}
/* Home: header floats transparent over the hero (no grey bar) — the
   hero gradient runs uninterrupted behind the logo. */
body.home .site-header {
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.home .hero {
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(clamp(3.25rem, 9vw, 6rem) + var(--header-h));
}

.nav-toggle { position: relative; min-width: 0; justify-self: end; }
.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  min-width: var(--touch);
  text-align: center;
  transition: background 0.15s ease;
}
.nav-toggle summary:hover { background: rgba(255, 255, 255, 0.18); }
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle[open] summary { background: rgba(255, 255, 255, 0.22); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 18px;
  vertical-align: middle;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-toggle[open] .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[open] .hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle[open] .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 90;
  display: none;
  flex-direction: column;
  background: var(--dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem 1rem 1rem;
  overflow: hidden;
}
.nav-toggle[open] .site-nav { display: flex; }
.site-nav a {
  color: var(--on-dark);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: var(--touch);
  display: flex;
  align-items: center;
  transition: color 0.14s ease, padding-left 0.14s ease;
}
.site-nav a:hover { color: var(--brand-bright); padding-left: 4px; }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--gradient-hero);
  padding: clamp(3.25rem, 9vw, 6.5rem) 0 3rem;
  border-bottom: 0;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 0.5em; max-width: 16em; margin-inline: auto; }
.hero .text-brand {
  background: linear-gradient(100deg, #ff5f7c, var(--brand-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .tagline { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted-dark); max-width: 46em; }
.hero .chip {
  background: rgba(227, 23, 60, 0.14);
  border-color: rgba(227, 23, 60, 0.45);
  color: #ffb9c4;
  box-shadow: none;
}
.hero { text-align: center; }
.hero .wrap { text-align: center; }
.hero h1 { text-align: center; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin: 0 0 1.6rem; }
.hero .tagline { margin-left: auto; margin-right: auto; }
.hero-stats { text-align: center; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 54rem;
  margin-inline: auto;
}
.hero-stats .stat {
  background: rgba(14, 14, 17, 0.72);
  padding: 1.05rem 1.2rem;
  display: grid;
  gap: 0.15rem;
}
.hero-stats .stat strong { font-size: 1.5rem; font-weight: 800; color: #fff; }
.hero-stats .stat span { font-size: 0.86rem; color: var(--muted-dark); }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: grid;
  gap: 0.35rem;
}
.step .step-num {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, var(--brand-bright), var(--brand));
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--red-glow);
}
.step h3 { margin-bottom: 0.15rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

.page-dark {
  background: var(--gradient-hero);
  color: var(--on-dark);
}

.page-dark h1,
.page-dark h2 { color: #fff; }
.page-dark a:not(.button):not(.card) { color: var(--brand-bright); }
.page-dark a:not(.button):not(.card):hover { color: #ff8da3; }

.page-dark .section-head h2 { color: #fff; }
.page-dark .section-link { color: var(--brand-bright); }
.page-dark .section-link:hover { color: #ff8da3; }
.page-dark .muted { color: var(--muted-dark); }
.page-dark .info-list li { color: var(--on-dark); }
.page-dark .info-list li::before { background: var(--brand); color: #fff; }

.page-dark .card,
.page-dark .step {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}
.page-dark .card h3 { color: #fff; }
.page-dark .card h3.tag { color: #fff; }
.page-dark .card p { color: var(--muted-dark); }
.page-dark .card ul a:link,
.page-dark .card ul a:visited { color: #fff; }
.page-dark .card ul a::before { color: #fff; }
.page-dark .card ul a:hover { color: rgba(255, 255, 255, 0.75); }
.page-dark .step h3 { color: #fff; }
.page-dark .step p { color: var(--muted-dark); }

.page-hero {
  color: var(--on-dark);
  background: var(--gradient-hero);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2.25rem;
}
.page-hero h1 { color: #fff; margin: 0 0 0.45rem; font-size: clamp(1.9rem, 5vw, 2.8rem); }
.page-hero p, .page-hero .muted { color: var(--muted-dark); }
.page-hero a:not(.button) { color: var(--brand-bright); }

.cta-section { background: var(--dark); border-bottom: 0; }
.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 6vw, 4rem);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(46rem 26rem at 88% -30%, rgba(255, 95, 124, 0.45), transparent 60%),
    radial-gradient(30rem 20rem at -8% 130%, rgba(227, 23, 60, 0.3), transparent 55%),
    linear-gradient(150deg, #c81436, var(--brand-deep));
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.cta p { color: rgba(255, 255, 255, 0.85); max-width: 40em; margin-right: auto; margin-left: auto; }
.cta .button { background: #fff; color: var(--brand); box-shadow: var(--shadow-md); }
.cta .button:hover { color: var(--brand-deep); filter: none; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.cta .breadcrumb { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 1.4rem; }

.site-footer {
  background: var(--dark);
  color: var(--muted-dark);
  padding: 2.5rem 0 3rem;
  font-size: 0.92rem;
  border-top: 3px solid var(--brand);
}
.site-footer .cols { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.site-footer strong { color: #fff; }
.site-footer a { color: #c8ccd3; text-decoration: none; line-height: 1.9; }
.site-footer a:hover { color: var(--brand-bright); }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.stack { display: grid; gap: 1rem; align-content: start; }

.mt-1 { margin-top: 1.2rem; }
.mt-2 { margin-top: 2.6rem; }
.mt-3 { margin-top: 3.6rem; }

.wrap > h2 + .cards { margin-top: 1rem; }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.info-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--ink-soft);
}
.info-list li::before {
  content: "✓";
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 0.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(227, 23, 60, 0.1);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.82rem;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.3rem, 3vw, 2rem);
}

label { display: block; font-weight: 700; margin: 0.95rem 0 0.32rem; color: var(--ink-soft); }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0 0.85rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="password"], textarea, select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #f6f6f8;
  min-height: var(--touch);
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
input:hover, textarea:hover, select:hover { border-color: #afafb8; }
input:focus, textarea:focus, select:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(227, 23, 60, 0.16);
}
textarea { min-height: 9rem; resize: vertical; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e6e76' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
}

.field-required::after { content: " *"; color: var(--danger); }
.hint { font-size: 0.84rem; color: var(--muted); font-weight: 400; }

.form-actions { margin-top: 1.4rem; }
.form-actions .button { width: 100%; }

.alert { padding: 0.85rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 500; }
.alert.ok { background: #e7f6ec; color: var(--ok); border: 1px solid #bcddc7; }
.alert.err { background: #fdecea; color: var(--danger); border: 1px solid #f3c3be; }

.has-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.has-js .reveal.in { opacity: 1; transform: none; }

@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .site-footer .cols { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
  .wrap { text-align: left; }
  .hero-cta { justify-content: center; }
}

@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .nav-toggle summary { display: none; }
  .nav-toggle .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.1rem 1.35rem;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }
  .nav-toggle .site-nav a {
    border-bottom: 0;
    padding: 0.3rem 0;
    min-height: auto;
    position: relative;
  }
  .nav-toggle .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-bright), var(--brand));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
  }
  .nav-toggle .site-nav a:hover::after, .nav-toggle .site-nav a:focus-visible::after { transform: scaleX(1); }
  .nav-toggle .site-nav a:hover { color: #fff; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .has-js .reveal { opacity: 1; transform: none; }
}