:root {
  --ink: #17211d;
  --muted: #5d6b64;
  --paper: #f7f4ec;
  --white: #ffffff;
  --field: #1c8c58;
  --field-dark: #0f5f45;
  --line: #dce5dc;
  --accent: #f05a3c;
  --accent-dark: #bd3d27;
  --sky: #d9eef8;
  --shadow: 0 18px 45px rgba(23, 33, 29, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 244, 236, 0.94);
  border-bottom: 1px solid rgba(23, 33, 29, 0.08);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(15, 95, 69, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: rgba(28, 140, 88, 0.1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--field-dark);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 52px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 42px;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.hero-copy,
.page-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

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

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

.hero-visual {
  align-self: stretch;
  display: flex;
  align-items: center;
  min-height: 420px;
}

.hero-visual img {
  width: 100%;
  filter: drop-shadow(0 24px 32px rgba(23, 33, 29, 0.18));
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.intro-grid,
.insurance-grid,
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article,
.insurance-grid article,
.values article,
.panel,
.notice {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(23, 33, 29, 0.06);
}

.intro-grid article {
  padding: 0;
  overflow: hidden;
}

.intro-card-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #f7f8f3;
}

.intro-card-image-logos {
  object-fit: cover;
  object-position: center;
}

.intro-card-body {
  padding: 26px;
}

.intro-card-link {
  margin-top: 20px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: var(--white);
  background: var(--field);
  font-weight: 800;
}

.schedule-band {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 36px;
  align-items: start;
  padding: 44px;
  margin-bottom: 72px;
  border-radius: 8px;
  color: var(--white);
  background: var(--field-dark);
}

.schedule-band .eyebrow {
  color: #ffd1c7;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.timeline span {
  color: rgba(255, 255, 255, 0.82);
}

.page-hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 42px;
}

.page-hero.compact {
  padding-bottom: 20px;
}

.contact-hero {
  padding-bottom: 0;
}

.contact-hero p:not(.eyebrow) {
  color: var(--ink);
}

.inscription-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 42px;
}

.inscription-hero-image {
  width: 280px;
  aspect-ratio: 1;
  border: 10px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.split,
.kids-layout,
.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.contact-section {
  padding-top: 44px;
}

.signup-section {
  padding-top: 44px;
}

.signup-main p {
  max-width: 680px;
  color: var(--muted);
}

.signup-actions {
  margin-top: 24px;
}

.payment-card {
  color: var(--white);
  background: var(--field-dark);
}

.payment-card .eyebrow,
.payment-card p {
  color: rgba(255, 255, 255, 0.82);
}

.iban {
  margin: 22px 0 0;
  padding: 18px;
  border-radius: 8px;
  color: var(--ink) !important;
  background: var(--white);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-form-section {
  padding-top: 0;
}

.check-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.values {
  padding-top: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.sponsors-section {
  padding-top: 0;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.sponsor-card {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(23, 33, 29, 0.06);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.sponsor-card:hover,
.sponsor-card:focus-visible {
  border-color: rgba(28, 140, 88, 0.55);
  box-shadow: 0 16px 34px rgba(23, 33, 29, 0.12);
  transform: translateY(-2px);
}

.sponsor-card:focus-visible,
.sponsor-modal-close:focus-visible,
.sponsor-modal-nav:focus-visible {
  outline: 3px solid rgba(240, 90, 60, 0.32);
  outline-offset: 3px;
}

.sponsor-card img {
  width: 100%;
  max-width: 170px;
  height: 86px;
  object-fit: contain;
}

body.modal-open {
  overflow: hidden;
}

.sponsor-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.sponsor-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.sponsor-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 33, 29, 0.76);
}

.sponsor-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 54px minmax(0, 760px) 54px;
  align-items: center;
  gap: 16px;
  width: min(100%, 980px);
  transform: translateY(16px) scale(0.98);
  transition: transform 220ms ease;
}

.sponsor-modal.open .sponsor-modal-dialog {
  transform: translateY(0) scale(1);
}

.sponsor-modal-content {
  display: grid;
  place-items: center;
  min-height: min(68vh, 620px);
  margin: 0;
  padding: 34px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sponsor-modal-content img {
  width: 100%;
  max-height: min(54vh, 460px);
  object-fit: contain;
  transition: opacity 180ms ease, transform 220ms ease;
}

.sponsor-modal-content img.slide-out-left {
  opacity: 0;
  transform: translateX(-42px);
}

.sponsor-modal-content img.slide-out-right {
  opacity: 0;
  transform: translateX(42px);
}

.sponsor-modal-content img.slide-in-left {
  opacity: 0;
  transform: translateX(-42px);
}

.sponsor-modal-content img.slide-in-right {
  opacity: 0;
  transform: translateX(42px);
}

.sponsor-modal-close,
.sponsor-modal-nav {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--field-dark);
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.24);
  cursor: pointer;
}

.sponsor-modal-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sponsor-modal-nav:disabled:hover {
  background: var(--field-dark);
}

.sponsor-modal-close {
  position: absolute;
  top: -58px;
  right: 70px;
  width: 46px;
  height: 46px;
  font-size: 1.75rem;
  line-height: 1;
}

.sponsor-modal-nav {
  width: 54px;
  height: 54px;
  font-size: 2rem;
  line-height: 1;
}

.sponsor-modal-close:hover,
.sponsor-modal-nav:hover {
  background: var(--accent);
}

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

.notice {
  margin-bottom: 72px;
  background: #fff8e7;
}

.highlight {
  background: var(--field-dark);
  color: var(--white);
}

.highlight .check-list li::before {
  background: #ffd05d;
}

.age-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 16px;
}

.tab {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  color: var(--white);
  border-color: var(--field-dark);
  background: var(--field-dark);
}

.tab-panel {
  display: none;
  padding: 22px;
  border-left: 4px solid var(--accent);
  background: var(--white);
}

.tab-panel.active {
  display: block;
}

.form-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(23, 33, 29, 0.06);
}

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

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfbf8;
  font: inherit;
  font-weight: 600;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(28, 140, 88, 0.18);
  border-color: var(--field);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
}

.form-message {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--field-dark);
  font-weight: 800;
}

.signup-aside {
  position: sticky;
  top: 100px;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.steps strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--white);
  background: var(--field);
}

.contact-section .steps div {
  align-items: center;
}

.contact-section .steps span {
  display: flex;
  align-items: center;
  min-height: 36px;
  line-height: 1.35;
}

.aside-note {
  margin: 22px 0 0;
  color: var(--muted);
}

.footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.8fr);
  gap: 28px;
  align-items: start;
  padding: 34px max(16px, calc((100% - 1120px) / 2));
  color: rgba(255, 255, 255, 0.78);
  background: var(--ink);
}

.footer p,
.footer strong {
  margin: 0;
}

.footer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 1.05rem;
}

.footer a {
  color: var(--white);
  font-weight: 700;
}

.footer a:hover {
  color: #ffd1c7;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--white);
}

.footer-info {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

@media (max-width: 820px) {
  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 38px;
    gap: 20px;
  }

  .hero-visual {
    min-height: 250px;
  }

  .inscription-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .inscription-hero-image {
    width: min(100%, 260px);
  }

  .intro-grid,
  .insurance-grid,
  .values,
  .split,
  .kids-layout,
  .signup-layout,
  .schedule-band {
    grid-template-columns: 1fr;
  }

  .signup-aside {
    position: static;
  }

  .section {
    padding: 44px 0;
  }

  .sponsors-section {
    padding-top: 0;
  }

  .sponsor-modal-dialog {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 10px;
  }

  .sponsor-modal-content {
    min-height: min(66vh, 520px);
    padding: 24px;
  }

  .sponsor-modal-close {
    right: 58px;
  }

  .schedule-band {
    padding: 28px;
    margin-bottom: 44px;
  }

  .page-hero {
    padding-top: 56px;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-info {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .timeline div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .insurance-grid article,
  .values article,
  .panel,
  .notice,
  .form-card {
    padding: 22px;
  }

  .intro-card-body {
    padding: 22px;
  }

  .intro-card-image {
    height: 180px;
  }

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

  .sponsor-card {
    min-height: 112px;
    padding: 14px;
  }

  .sponsor-card img {
    height: 72px;
  }

  .sponsor-modal {
    padding: 14px;
  }

  .sponsor-modal-dialog {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .sponsor-modal-content {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: min(62vh, 440px);
    padding: 20px;
  }

  .sponsor-modal-content img {
    max-height: min(45vh, 340px);
  }

  .sponsor-modal-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    color: var(--ink);
    background: var(--white);
  }

  .sponsor-modal-nav {
    grid-row: 2;
    width: 100%;
    height: 48px;
  }

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

  .footer-brand {
    align-items: flex-start;
  }

  .footer-brand img {
    width: 74px;
    height: 74px;
  }

}
