:root {
  --sand: #fff6e8;
  --sand-dark: #f4dfbb;
  --sea: #1d8fa3;
  --sea-dark: #0f6070;
  --coral: #ff6b4a;
  --ink: #14323a;
  --muted: #64757a;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(20, 50, 58, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}

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

.hero {
  min-height: 82vh;
  background:
    linear-gradient(90deg, rgba(14, 28, 32, 0.82) 0%, rgba(14, 28, 32, 0.60) 42%, rgba(14, 28, 32, 0.20) 100%),
    url("assets/hero.png");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 24px;
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.spots-info {
  margin: 12px 0 24px;
  font-weight: 700;
  color: #f6b66a;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 130px 0 80px;
}

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

.hero .eyebrow {
  color: #ffd3c7;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  line-height: 1.08;
  margin: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  letter-spacing: -0.07em;
}

.title-kicker {
  display: block;
  font-size: 0.5em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2em;
  color: #f6b66a;
}

.title-sub {
  color: #f6b66a;
}

.title-main {
  display: block;
}

.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 34px 0 28px;
  font-weight: 800;
  color: #ffffff;
}

.hero-actions {
  margin-top: 8px;
}

.title-sub {
  display: block;
  font-size: 0.5em;
  margin-top: 0.2em;

  letter-spacing: 0.01em; /* o 0.04em */
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.subtitle {
  max-width: 620px;
  margin: 24px 0 34px;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions,
.grid-two {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(255, 107, 74, 0.28);
}

.btn-secondary {
  background: rgba(20, 32, 34, 0.72);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-full {
  width: 100%;
  font-size: 1rem;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px;
}

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

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

.card,
.payment-card,
.form,
.notice,
details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 28px;
}

.card-icon {
  font-size: 2rem;
}

.card p,
.form-intro p,
.payment-card p,
details p {
  color: var(--muted);
}

.section-highlight {
  max-width: none;
  background: var(--sea-dark);
  color: var(--white);
}

.section-highlight .split {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

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

.steps li {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  color: rgba(255, 255, 255, 0.78);
}

.form-wrapper {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  align-items: start;
}

.form-intro {
  position: sticky;
  top: 24px;
}

.notice {
  margin-top: 22px;
  padding: 18px;
  border-left: 6px solid var(--coral);
}

.form {
  padding: 28px;
}

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

legend {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8e1e3;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--ink);
  background: #fbfdfe;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(29, 143, 163, 0.18);
  border-color: var(--sea);
}

.grid-two > label {
  flex: 1 1 230px;
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 600;
}

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

.form-note,
.small {
  color: var(--muted);
  font-size: 0.92rem;
}


.section-registered .section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.registration-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.registration-summary span {
  background: var(--white);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(20, 50, 58, 0.08);
}

.registration-summary .summary-highlight {
  background: #fff3d8;
  color: #8a5a00;
}

.registered-teams {
  display: grid;
  gap: 12px;
}

.team-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid #e3e3e3;
  box-shadow: 0 10px 28px rgba(20, 50, 58, 0.08);
}

.team-name {
  font-weight: 800;
}

.team-status {
  font-size: 0.9rem;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.team-card.confirmed .team-status {
  background: #e6f7ec;
  color: #1f7a3a;
}

.team-card.pending .team-status {
  background: #fff3d8;
  color: #8a5a00;
}

.team-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f3440;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.poster-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}


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

.poster-image {
  width: 100%;
  max-width: 350px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.poster-image:hover {
  transform: scale(1.02);
}

.poster-content h3 {
  margin-bottom: 1rem;
}

.poster-details {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.poster-details li {
  margin-bottom: 0.75rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .poster-card {
    grid-template-columns: 1fr;
  }

  .poster-image {
    max-width: 360px;
    margin: 0 auto;
  }
}

.section-payment {
  padding-top: 20px;
}

.payment-card {
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 74, 0.16), transparent 35%),
    var(--white);
}

.bizum-box {
  display: inline-grid;
  gap: 4px;
  margin: 24px 0 6px;
  padding: 18px 28px;
  border-radius: 18px;
  background: var(--sand);
}

.bizum-box span {
  color: var(--muted);
  font-weight: 700;
}

.bizum-box strong {
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.faq {
  padding-top: 20px;
}

details {
  padding: 20px 24px;
  margin-bottom: 14px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.footer {
  text-align: center;
  padding: 34px 24px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 50, 58, 0.62);
  z-index: 20;
}

.modal[hidden] {
  display: none !important;
}

.modal-card {
  position: relative;
  max-width: 480px;
  width: 100%;
  border-radius: var(--radius);
  background: var(--white);
  padding: 30px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  border: 0;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
}

.modal-bizum {
  padding: 14px;
  border-radius: 14px;
  background: var(--sand);
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--sea-dark);
  font-weight: 800;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .cards,
  .form-wrapper,
  .section-highlight .split {
    grid-template-columns: 1fr;
  }

@media (max-width: 620px) {
  h1 {
    font-size: 3rem;
    line-height: 1;
  }

  .hero-content {
    padding: 60px 0 40px;
  }
}

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

  .form-intro {
    position: static;
  }
}

@media (max-width: 650px) {
  .team-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(
        90deg,
        rgba(14, 28, 32, 0.82) 0%,
        rgba(14, 28, 32, 0.60) 42%,
        rgba(14, 28, 32, 0.20) 100%
      ),
      url("assets/hero-phone.png");

    background-position: center;
    background-size: cover;
  }
}

  .nav {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
  }

  .hero-content {
    padding: 90px 0 60px;
  }

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