:root {
  --green: #149447;
  --green-dark: #0b5f31;
  --red: #e23b2f;
  --ink: #15201a;
  --muted: #647066;
  --line: #dfe8e1;
  --soft: #f5f8f4;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(21, 32, 26, 0.12);
}

* {
  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.5;
}

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

.hero {
  min-height: 92vh;
  padding: 24px clamp(18px, 4vw, 56px) 48px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 244, 0.92)),
    repeating-linear-gradient(45deg, rgba(20, 148, 71, 0.08) 0 2px, transparent 2px 46px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  box-shadow: 8px 8px 0 rgba(226, 59, 47, 0.14);
}

.brand strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.nav-cta,
.button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.nav-cta {
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  max-width: 1180px;
  margin: 70px auto 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

h1,
h2,
legend {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  font-size: clamp(56px, 11vw, 136px);
  color: var(--green);
  text-transform: uppercase;
}

.lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  padding: 13px 20px;
}

.button.primary {
  background: var(--red);
  color: var(--white);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.sport-visual {
  position: relative;
  min-height: 380px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.sport-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(20, 148, 71, 0.05));
  pointer-events: none;
}

.sport-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.info-band {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: var(--line);
}

.info-grid article {
  padding: 30px;
  background: var(--white);
}

.number {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--red);
  font-weight: 800;
}

.info-grid h2,
.section-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.info-grid p {
  margin: 14px 0 0;
  color: var(--muted);
}

.registration-section {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 80px) clamp(18px, 4vw, 36px) 80px;
}

.section-heading {
  margin-bottom: 24px;
}

.registration-form {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

fieldset {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 24px;
  font-weight: 800;
  color: var(--green-dark);
}

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

label span {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cbd8ce;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(20, 148, 71, 0.18);
  border-color: var(--green);
}

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

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

.choice-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafffb;
}

.choice-card input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
}

.choice-card span {
  margin: 0;
  font-weight: 700;
}

.team-section {
  display: none;
  padding: 20px;
  border: 1px solid rgba(20, 148, 71, 0.26);
  border-radius: 8px;
  background: #f5fff7;
}

.team-section.is-visible {
  display: block;
}

.players-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.reserve {
  padding-top: 14px;
  border-top: 1px dashed #bad1c0;
}

.confirm {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.confirm input {
  width: 20px;
  min-height: 20px;
  margin-top: 3px;
}

.confirm span {
  margin: 0;
  font-weight: 400;
}

.submit-button {
  width: 100%;
  min-height: 54px;
  background: var(--green);
  color: var(--white);
  font-size: 18px;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.notice.success {
  background: #e8f8ed;
  color: #0b5f31;
}

.notice.warning {
  background: #fff6df;
  color: #795200;
}

.notice.error,
.field-error {
  color: #b42318;
}

.notice.error {
  background: #fff0ee;
}

.field-error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .info-grid,
  .form-grid,
  .player-row,
  .choice-grid,
  .choice-grid.compact {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    margin-top: 44px;
  }

  .sport-visual {
    min-height: 280px;
  }

  .sport-visual img {
    min-height: 280px;
  }

  .info-grid article {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
  }

  .brand small {
    display: none;
  }

  .nav-cta {
    padding: 9px 12px;
    font-size: 14px;
  }

  h1 {
    font-size: 54px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .registration-form {
    padding: 18px;
  }
}
