:root {
  --red: #e10600;
  --red-hot: #ff2a22;
  --ink: #e8e8ea;
  --dim: #9a9aa3;
  --bg: #0a0a0c;
  --panel: #141418;
  --line: #2c2c33;
  --font: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --mono: "Cascadia Code", "Consolas", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.6; }
a { color: var(--red-hot); text-decoration: none; }
a:hover { color: #fff; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
img { max-width: 100%; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,10,12,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: -0.03em; }
.brand img { height: 72px; width: auto; display: block; }
.site-menu { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-links a { color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 6px; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: #1f1f24; }
.menu-btn { display: none; background: #1f1f24; color: #fff; border: 1px solid var(--line); width: 42px; height: 42px; border-radius: 8px; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff !important; font-weight: 800;
  border: 0; border-radius: 6px; padding: 12px 20px; cursor: pointer;
  letter-spacing: 0.02em;
}
.btn:hover { background: var(--red-hot); }
.btn-ghost { background: transparent; color: #fff !important; border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--red); color: #fff !important; }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }

.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(225,6,0,0.22), transparent 55%),
    linear-gradient(180deg, #101014, var(--bg));
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner { position: relative; }
.kicker {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red-hot); font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.045em;
  margin: 14px 0 16px; max-width: 14ch; color: #fff;
}
.hero p.lead { font-size: 1.15rem; color: var(--dim); max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

section { padding: 80px 0; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.03em; color: #fff; margin: 0 0 12px; }
h3 { margin: 0 0 8px; color: #fff; }
.muted { color: var(--dim); }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px;
}
.card:hover { border-color: #4a1a18; }
.idx {
  font-family: var(--mono); color: var(--red); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
}
.page-hero { padding: 56px 0 12px; border-bottom: 1px solid var(--line); background: #101014; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; color: #fff; margin: 8px 0; }
.cta-band {
  background: linear-gradient(120deg, #8a0c08, var(--red));
  border-radius: 16px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.cta-band h2, .cta-band p { color: #fff; }

form { display: grid; gap: 12px; }
label { font-weight: 700; font-size: 0.88rem; }
input, select, textarea {
  width: 100%; background: #0d0d10; color: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px; font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notice { padding: 12px; border-radius: 8px; font-weight: 600; }
.notice.ok { background: #12301c; color: #86efac; }
.notice.err { background: #3a1010; color: #fca5a5; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 24px; color: var(--dim); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 24px; }
.foot-brand { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 800; }
.foot-brand img { height: 36px; }
.legal { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.82rem; }

@media (max-width: 900px) {
  .grid-3, .grid-2, .foot-grid, .form-row, .cta-band { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .menu-btn { display: grid; place-items: center; }
  .site-menu { display: none; flex: 1 0 100%; flex-direction: column; align-items: stretch; padding: 8px 0 16px; border-top: 1px solid var(--line); }
  .site-menu.open { display: flex; }
  .nav-links { flex-direction: column; }
  .brand img { height: 58px; }
  .nav-row { min-height: 80px; }
}
