:root {
  --red: #c20e1a;
  --red-dark: #8f0710;
  --ink: #111317;
  --graphite: #24272d;
  --muted: #626873;
  --line: #d6d9de;
  --panel: #ffffff;
  --soft: #f5f6f8;
  --soft-strong: #e8ebf0;
  --white: #ffffff;
  --silver: #c9cdd3;
  --deep-black: #070708;
  --shadow: 0 18px 46px rgba(7, 9, 12, 0.11);
  --shadow-hover: 0 24px 58px rgba(7, 9, 12, 0.16);
  --radius: 8px;
  --hero-banner-height: clamp(520px, 34vw, 650px);
  --page-hero-height: var(--hero-banner-height);
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
  --motion-fast: 180ms;
  --motion-base: 420ms;
  --motion-slow: 720ms;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
  line-height: 1.55;
  overflow-x: hidden;
}

#main {
  min-height: 60vh;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
  will-change: opacity, transform;
}

#main.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

#main.is-entering {
  opacity: 0;
  transform: translateY(14px);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--red);
  color: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.98), rgba(10, 11, 13, 0.96)),
    var(--deep-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.34);
  transition: transform 220ms ease, box-shadow 220ms ease;
  will-change: transform;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 14, 26, 0.82), transparent);
  pointer-events: none;
}

.site-header-hidden {
  transform: translateY(-100%);
}

.topbar {
  color: #cdd3db;
  background: rgba(2, 2, 3, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.topbar-inner {
  width: min(1280px, calc(100% - 40px));
  min-height: 34px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-note {
  color: #f1f3f6;
  font-weight: 700;
}

.topbar-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.topbar span,
.topbar a {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.topbar a {
  color: #e8ebf0;
  transition: color 160ms ease;
}

.topbar-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.topbar a:hover {
  color: var(--white);
}

.nav-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 11px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 178px;
  position: relative;
  padding: 5px 0;
}

.brand-banner {
  display: none;
}

.brand-wordmark {
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

.brand-subline {
  margin-top: 4px;
  color: #aeb5bf;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.main-nav a,
.nav-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #e8ebf0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-menu-trigger {
  gap: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-menu-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.78;
}

.main-nav a:hover,
.nav-menu-trigger:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.main-nav a[aria-current="page"],
.nav-group.active > .nav-menu-trigger,
.nav-menu-trigger[aria-current="page"] {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(194, 14, 26, 0.98), rgba(143, 7, 16, 0.98));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(194, 14, 26, 0.16);
}

.nav-group {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 45;
  width: min(650px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(19, 21, 25, 0.98), rgba(5, 5, 6, 0.98)),
    #0a0a0a;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-dropdown::before {
  content: "";
  position: absolute;
  right: 24px;
  top: -12px;
  width: 100%;
  height: 12px;
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 12px;
  border-radius: 6px;
  color: #e7ebf0;
  line-height: 1.24;
  white-space: normal;
  background: rgba(255, 255, 255, 0.035);
}

.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
  background: rgba(194, 14, 26, 0.2);
  border-color: rgba(194, 14, 26, 0.24);
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 9px 12px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: var(--hero-banner-height);
  color: var(--white);
  background-color: #030303;
  background-position: center right;
  background-size: cover;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.93) 0%, rgba(0, 0, 0, 0.82) 34%, rgba(0, 0, 0, 0.42) 56%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.hero::after,
.page-hero::after,
.page-hero-fit::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 14, 26, 0.9), transparent);
  opacity: 0;
  transform: scaleX(0.2);
  transform-origin: center;
  pointer-events: none;
}

.hero-motion::after {
  animation: premium-accent-line 900ms var(--ease-premium) 180ms both;
}

.hero-image {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: currentColor;
}

.hero .eyebrow {
  color: #ff4a55;
}

.hero h1 {
  max-width: 620px;
  margin: 14px 0 16px;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: normal;
  hyphens: none;
}

.hero-copy {
  max-width: 600px;
  margin: 0 0 28px;
}

.hero p {
  max-width: 600px;
  margin: 0 0 12px;
  color: #eef1f5;
  font-size: 18px;
}

.hero p:first-child {
  font-size: 20px;
  font-weight: 700;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    color var(--motion-fast) ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(180deg, #d31321 0%, #a80b15 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #c20e1a 0%, var(--red-dark) 100%);
  box-shadow: 0 14px 32px rgba(194, 14, 26, 0.26);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(214, 217, 222, 0.52);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.section {
  padding: 68px 20px;
  background: var(--soft);
}

.section-muted {
  background: linear-gradient(180deg, #eef1f5 0%, var(--soft) 100%);
}

.section-dark {
  color: var(--white);
  background:
    linear-gradient(180deg, #181b20 0%, var(--ink) 100%);
}

.container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.motion-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--motion-slow) var(--ease-premium),
    transform var(--motion-slow) var(--ease-premium);
  transition-delay: calc(var(--motion-index, 0) * 38ms);
  will-change: opacity, transform;
}

.motion-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.page-copy h2 {
  margin: 8px 0 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.home-about {
  background:
    linear-gradient(180deg, #f8f9fb 0%, #eceff3 100%);
}

.home-about-lead {
  max-width: 920px;
  padding: 34px;
  border-left: 4px solid var(--red);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  box-shadow: var(--shadow);
  transition:
    transform var(--motion-base) var(--ease-premium),
    box-shadow var(--motion-base) ease;
}

.home-about-lead:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.home-about-lead h3,
.home-about-card h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: 0;
}

.home-about-lead p,
.home-about-card p {
  margin: 0 0 14px;
  color: var(--graphite);
}

.home-about-lead .btn {
  margin-top: 10px;
}

.home-about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.home-about-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 249, 251, 0.94) 100%);
  transition:
    transform var(--motion-base) var(--ease-premium),
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) ease,
    background var(--motion-base) ease;
}

.home-about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(194, 14, 26, 0.26);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform var(--motion-base) var(--ease-premium),
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(194, 14, 26, 0.26);
  box-shadow: var(--shadow-hover);
}

.card-media {
  height: 178px;
  background: var(--soft-strong);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card h3,
.event h3,
.news-item h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.card p,
.event p,
.news-item p {
  margin: 0;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 16px;
  color: var(--red);
  font-weight: 800;
  transition:
    color var(--motion-fast) ease,
    transform var(--motion-fast) var(--ease-standard);
}

.card-link::after {
  content: "→";
  transform: translateX(0);
  transition: transform var(--motion-fast) var(--ease-standard);
}

.card-link:hover {
  color: var(--red-dark);
  transform: translateX(1px);
}

.card-link:hover::after {
  transform: translateX(4px);
}

.page-copy p a,
.home-about p a,
.legal-copy p a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.notice-band {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius);
  border-left: 5px solid var(--red);
  background: var(--white);
  box-shadow: var(--shadow);
}

.notice-band h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.notice-band p {
  margin: 0;
  color: var(--graphite);
}

.page-hero {
  min-height: var(--page-hero-height);
  padding: 0 20px;
  color: var(--white);
  background-color: #030303;
  background-position: center right;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.93) 0%, rgba(0, 0, 0, 0.82) 34%, rgba(0, 0, 0, 0.42) 56%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.34));
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero-fit {
  min-height: var(--page-hero-height);
  width: 100%;
  background-color: #030303;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.page-hero-fit::before {
  display: block;
}

.page-hero-fit-image {
  display: none;
}

.page-hero-fit .container {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  padding: 0;
}

.page-hero-fit h1,
.page-hero-fit p {
  max-width: 620px;
}

.page-hero h1 {
  max-width: 820px;
  margin: 10px 0 12px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

.page-hero p {
  max-width: 600px;
  color: #eef1f5;
  font-size: 18px;
}

.page-hero-actions {
  margin-top: 26px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 340px;
  gap: 30px;
  align-items: start;
}

.page-copy {
  display: grid;
  gap: 22px;
}

.copy-block {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.copy-block p {
  color: var(--graphite);
}

.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--graphite);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 2px;
}

.side-panel {
  position: sticky;
  top: 118px;
  padding: 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #1b1e24 0%, var(--ink) 100%);
  color: var(--white);
  border: 1px solid rgba(214, 217, 222, 0.12);
  transition:
    transform var(--motion-base) var(--ease-premium),
    box-shadow var(--motion-base) ease;
}

.side-panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.side-panel p {
  color: #e2e6eb;
}

.side-panel .btn {
  width: 100%;
}

.warning-note {
  padding: 18px;
  border-left: 5px solid var(--red);
  background: #f8f1f2;
  color: var(--graphite);
}

.terms-layout {
  display: grid;
  gap: 30px;
}

.terms-intro {
  max-width: 920px;
}

.terms-intro .copy-block {
  padding-bottom: 0;
  border-bottom: 0;
}

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

.terms-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  padding: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #191c21 0%, var(--ink) 62%, #090a0c 100%);
  color: var(--white);
  border: 1px solid rgba(214, 217, 222, 0.12);
  transition:
    transform var(--motion-base) var(--ease-premium),
    box-shadow var(--motion-base) ease;
}

.terms-contact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.terms-contact h2,
.terms-contact p {
  margin: 0;
}

.terms-contact p {
  color: #e2e6eb;
}

.terms-contact .btn {
  grid-row: span 2;
  white-space: nowrap;
}

.terms-contact-meta {
  font-weight: 800;
}

.event,
.news-item {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  transition:
    transform var(--motion-base) var(--ease-premium),
    border-color var(--motion-base) ease,
    box-shadow var(--motion-base) ease;
}

.event::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red) 0%, rgba(194, 14, 26, 0.18) 100%);
  opacity: 0.82;
}

.event {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event:hover,
.news-item:hover {
  transform: translateY(-4px);
  border-color: rgba(194, 14, 26, 0.28);
  box-shadow: var(--shadow);
}

.event-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.event-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f1f3f6 0%, #e5e8ed 100%);
  color: var(--graphite);
  font-size: 12px;
  font-weight: 800;
}

.status-dark {
  background: linear-gradient(180deg, #2a2d34 0%, var(--ink) 100%);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.event .card-link {
  margin-top: auto;
  padding-top: 4px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
  gap: 28px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.checkbox {
  color: var(--graphite);
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  color: var(--ink);
  transition:
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease,
    background var(--motion-fast) ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(194, 14, 26, 0.72);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(194, 14, 26, 0.1), 0 10px 24px rgba(7, 9, 12, 0.06);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-hint,
.upload-status {
  color: var(--muted);
  font-size: 13px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  min-height: 44px;
  padding-left: 34px;
  font-weight: 400;
}

.checkbox input {
  position: absolute;
  left: -10px;
  top: -8px;
  width: 44px;
  height: 44px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.checkbox span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.checkbox input:checked + span::before {
  border-color: var(--red);
  background:
    linear-gradient(135deg, transparent 0 44%, var(--white) 44% 56%, transparent 56%),
    linear-gradient(180deg, #d31321 0%, #a80b15 100%);
}

.checkbox input:focus-visible + span::before {
  outline: 3px solid rgba(194, 14, 26, 0.18);
  outline-offset: 2px;
}

.form-status {
  min-height: 24px;
  color: var(--graphite);
  font-weight: 700;
}

.legal-copy {
  max-width: 860px;
}

.legal-copy p {
  color: var(--graphite);
}

.site-footer {
  position: relative;
  padding: 0 20px;
  color: #eef1f5;
  background:
    linear-gradient(180deg, #15171b 0%, #090a0c 58%, #040405 100%);
  border-top: 1px solid rgba(214, 217, 222, 0.12);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 14, 26, 0.86), transparent);
}

.footer-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 50px 0 26px;
}

.footer-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: none;
}

.footer-brand img {
  width: 258px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.42));
}

.footer-lead-copy strong {
  display: block;
  color: var(--white);
  font-size: 24px;
  line-height: 1.15;
}

.footer-lead-copy p {
  margin: 7px 0 0;
  color: #c9cdd3;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 6px;
  color: var(--white);
  background: linear-gradient(180deg, #d31321 0%, #990812 100%);
  font-weight: 800;
  box-shadow: 0 16px 32px rgba(194, 14, 26, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.footer-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(194, 14, 26, 0.24);
}

.footer-grid {
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.18fr 0.75fr;
  gap: 30px;
}

.footer-grid section {
  min-width: 0;
}

.footer-grid p,
.footer-contact {
  margin: 0;
  color: #c9cdd3;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-grid a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #eef1f5;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-grid a:hover,
.footer-contact a:hover {
  color: var(--white);
  transform: translateX(2px);
}

.footer-contact {
  display: grid;
  gap: 8px;
  font-style: normal;
}

.footer-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #aeb5bf;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 800;
}

.footer-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--red);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #aeb5bf;
  font-size: 13px;
}

.admin-body {
  background: #eef1f5;
}

.admin-header {
  background:
    linear-gradient(180deg, #181b20 0%, var(--ink) 100%);
  color: var(--white);
  padding: 16px 20px;
}

.admin-header-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 28px auto 60px;
}

.login-panel,
.admin-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-panel {
  width: min(440px, calc(100% - 40px));
  margin: 70px auto;
  padding: 26px;
}

.admin-panel {
  padding: 24px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 800;
}

.tab-button.active {
  color: var(--white);
  border-color: var(--red);
  background: linear-gradient(180deg, #d31321 0%, #a80b15 100%);
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

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

.editor-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--white);
}

.editor-card h3 {
  margin: 0 0 12px;
}

.image-preview {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--soft-strong);
}

.drop-zone {
  display: grid;
  gap: 4px;
  place-items: center;
  min-height: 112px;
  padding: 18px;
  border: 1.5px dashed #aeb5bf;
  border-radius: 6px;
  color: var(--graphite);
  background: var(--soft);
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease;
}

.drop-zone span {
  color: var(--muted);
  font-size: 13px;
}

.drop-zone:hover,
.drop-zone.drag-over,
.drop-zone:focus {
  border-color: var(--red);
  background: #fff7f8;
  outline: none;
}

.file-input {
  display: none;
}

.page-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 420px) auto;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}

.page-selector {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.array-list {
  display: grid;
  gap: 12px;
}

.mini-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.danger {
  color: #9b0b14;
}

.json-editor {
  width: 100%;
  min-height: 520px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.message-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px;
  background: var(--white);
}

.message-item pre {
  white-space: pre-wrap;
  margin: 8px 0 0;
  font-family: inherit;
}

.hidden {
  display: none !important;
}

@keyframes premium-accent-line {
  0% {
    opacity: 0;
    transform: scaleX(0.2);
  }

  35% {
    opacity: 0.88;
  }

  100% {
    opacity: 0.38;
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  #main,
  #main.is-leaving,
  #main.is-entering,
  .motion-item,
  .motion-item.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
  }

  .topbar-contact {
    justify-content: flex-start;
  }

  .nav-shell {
    align-items: flex-start;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    justify-content: flex-start;
    padding-top: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-shell {
    flex-wrap: wrap;
  }

  .main-nav a,
  .nav-menu-trigger {
    width: 100%;
    min-height: 44px;
    justify-content: flex-start;
  }

  .nav-group {
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 6px 0 6px 14px;
    border: 0;
    border-left: 1px solid rgba(194, 14, 26, 0.42);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav-dropdown a {
    min-height: 44px;
    background: rgba(255, 255, 255, 0.04);
  }

  .hero,
  .page-hero,
  .page-hero-fit {
    min-height: min(650px, 78vh);
    background-position: 64% center;
  }

  .hero h1 {
    font-size: 34px;
  }

  .grid-3,
  .grid-2,
  .home-about-grid,
  .terms-grid,
  .notice-band,
  .page-layout,
  .contact-layout,
  .footer-grid,
  .editor-grid,
  .page-toolbar {
    grid-template-columns: 1fr;
  }

  .home-about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-lead {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-cta {
    width: 100%;
  }

  .side-panel {
    position: static;
  }

  .terms-contact {
    grid-template-columns: 1fr;
  }

  .terms-contact .btn {
    grid-row: auto;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .topbar-inner {
    justify-content: flex-start;
    gap: 8px 14px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .hero-inner {
    width: auto;
    max-width: 360px;
    margin-left: 14px;
    margin-right: 14px;
    padding: 0;
  }

  .container,
  .page-hero-fit .container {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .nav-shell,
  .topbar-inner,
  .footer-shell,
  .admin-shell {
    width: calc(100% - 28px);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .nav-shell {
    padding-left: 0;
    padding-right: 0;
  }

  .brand-wordmark {
    font-size: 18px;
  }

  .brand-subline {
    font-size: 11px;
  }

  .footer-shell {
    padding-top: 38px;
  }

  .footer-lead-copy strong {
    font-size: 21px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1 {
    font-size: 27px;
    line-height: 1.16;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .page-hero h1 {
    max-width: 330px;
    font-size: 24px;
    line-height: 1.18;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .hero p,
  .page-hero p,
  .section-head p {
    overflow-wrap: anywhere;
  }

  .page-hero-fit-image {
    display: none;
  }

  .page-hero-fit h1,
  .page-hero-fit p {
    max-width: none;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero p,
  .page-hero p {
    font-size: 17px;
  }

  .section {
    padding: 48px 14px;
  }

  .section-head {
    display: block;
  }

  .section-head h2,
  .page-copy h2 {
    font-size: 28px;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .notice-band {
    padding: 22px;
  }

  .home-about-lead,
  .home-about-card {
    padding: 22px;
  }

  .admin-shell {
    width: min(100% - 24px, 1180px);
  }
}
