:root {
  --bg: #f2efe7;
  --ink: #171512;
  --panel: #151413;
  --lime: #ddff1f;
  --cream: #f8f2e8;
  --muted: #ece5d9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2rem;
  color: white;
  background: rgba(15, 15, 14, 0.78);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 0.5rem;
  padding: 0.45rem 0.75rem;
  line-height: 1;
}

.brand-kritva {
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
}

.brand-carnival {
  font-weight: 700;
  font-style: italic;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.92rem;
}

.site-nav a,
.nav-cta {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.nav-cta:hover,
.hero-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.nav-cta,
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: var(--lime);
  color: #141414;
  font: inherit;
  font-weight: 800;
  padding: 0.9rem 1.45rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.hero-section {
  position: relative;
  min-height: 46rem;
  overflow: visible;
  background: #1d1b19;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(20, 19, 17, 0.82) 0%, rgba(20, 19, 17, 0.58) 45%, rgba(20, 19, 17, 0.15) 74%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.35) 100%),
    url('/images/hero-kritva.webp');
  background-position: center center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  padding: 5rem 2rem 9rem;
  margin-left: clamp(1rem, 3vw, 2.5rem);
  color: white;
}

.hero-kicker,
.hero-subtitle,
.scribble-copy,
.dark-band h2,
.competition-copy p,
.competition-copy h2,
.cta-header span,
.site-footer__tagline {
  font-family: 'Kalam', cursive;
}

.hero-kicker {
  margin: 0 0 0.65rem;
  font-size: clamp(2.8rem, 7vw, 4.7rem);
  line-height: 0.95;
}

.paint-swash {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.35rem 1.2rem 0.55rem;
  color: #111;
}

.paint-swash::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lime);
  border-radius: 1.25rem 3rem 1.5rem 2.6rem;
  transform: rotate(-4deg) skewX(-5deg);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.paint-swash h1 {
  position: relative;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1;
  font-family: 'Kalam', cursive;
}

.hero-subtitle {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1;
}

.hero-description {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  font-size: 1.3rem;
  line-height: 1.55;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.5rem;
  max-width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(15, 15, 14, 0.55);
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.icon {
  display: inline-flex;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--lime);
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.paper-tear {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  height: clamp(4.5rem, 8vw, 6.5rem);
  pointer-events: none;
  line-height: 0;
}

.paper-tear img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.intro-band {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  padding: 1.5rem 0 3rem;
  background: var(--cream);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.4fr;
  gap: 2rem;
  align-items: start;
}

.scribble-copy {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
}

.scribble-copy p {
  margin: 0;
}

.scribble-copy p:last-child {
  position: relative;
  display: inline-block;
}

.scribble-copy p:last-child::after {
  content: '';
  position: absolute;
  left: 0.1rem;
  right: -0.4rem;
  bottom: 0.05rem;
  height: 0.55rem;
  background: var(--lime);
  border-radius: 999px;
  transform: rotate(-4deg);
  opacity: 0.85;
  z-index: -1;
}

.intro-copy {
  display: grid;
  gap: 0.9rem;
  font-size: 1.15rem;
  line-height: 1.6;
}

.dark-band {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 4.5rem 0 5rem;
  color: white;
  background: #11100f;
  clip-path: polygon(
    0% 3.8%,
    1.2% 1.4%,
    2.4% 4.6%,
    3.8% 0.8%,
    5.1% 3.2%,
    6.6% 5.1%,
    8% 1.1%,
    9.5% 4%,
    11% 2%,
    12.6% 5.4%,
    14.2% 0.6%,
    15.8% 3.6%,
    17.4% 5%,
    19% 1.8%,
    20.6% 4.4%,
    22.2% 0.9%,
    23.8% 3%,
    25.5% 5.2%,
    27.2% 1.5%,
    28.8% 4.1%,
    30.5% 0.7%,
    32.2% 3.5%,
    33.8% 5.3%,
    35.5% 1.2%,
    37.2% 4.5%,
    38.8% 2.1%,
    40.5% 5%,
    42.2% 0.8%,
    43.8% 3.8%,
    45.5% 1.6%,
    47.2% 4.8%,
    48.8% 2.4%,
    50.5% 0.9%,
    52.2% 4.2%,
    53.8% 1.8%,
    55.5% 5.1%,
    57.2% 2.6%,
    58.8% 0.6%,
    60.5% 3.9%,
    62.2% 5.3%,
    63.8% 1.4%,
    65.5% 4.4%,
    67.2% 2%,
    68.8% 5%,
    70.5% 0.8%,
    72.2% 3.4%,
    73.8% 1.7%,
    75.5% 4.7%,
    77.2% 2.3%,
    78.8% 5.2%,
    80.5% 1%,
    82.2% 3.7%,
    83.8% 0.7%,
    85.5% 4.5%,
    87.2% 2.2%,
    88.8% 5%,
    90.5% 1.5%,
    92.2% 3.9%,
    93.8% 0.9%,
    95.5% 4.3%,
    97% 2%,
    98.5% 5.1%,
    100% 1.6%,
    100% 96.2%,
    98.6% 98.8%,
    97.2% 95.4%,
    95.6% 99%,
    94.2% 96.6%,
    92.6% 94.8%,
    91.1% 98.7%,
    89.5% 96%,
    87.9% 98%,
    86.3% 94.7%,
    84.7% 99.2%,
    83.1% 96.5%,
    81.5% 95%,
    79.9% 98.3%,
    78.3% 95.7%,
    76.7% 99%,
    75.1% 97%,
    73.5% 94.8%,
    71.8% 98.4%,
    70.2% 96%,
    68.5% 99.2%,
    66.8% 96.6%,
    65.2% 94.7%,
    63.5% 98.7%,
    61.8% 95.6%,
    60.2% 97.9%,
    58.5% 95%,
    56.8% 99.1%,
    55.2% 96.3%,
    53.5% 98.4%,
    51.8% 95.3%,
    50.2% 97.6%,
    48.5% 99%,
    46.8% 95.9%,
    45.2% 98.2%,
    43.5% 94.9%,
    41.8% 97.4%,
    40.2% 99.3%,
    38.5% 96.1%,
    36.8% 94.7%,
    35.2% 98.5%,
    33.5% 95.7%,
    31.8% 98%,
    30.2% 95%,
    28.5% 99.1%,
    26.8% 96.7%,
    25.2% 98.3%,
    23.5% 95.4%,
    21.8% 97.8%,
    20.2% 99.2%,
    18.5% 95.9%,
    16.8% 98.6%,
    15.2% 96%,
    13.5% 94.8%,
    11.8% 98.9%,
    10.2% 96.4%,
    8.5% 99.1%,
    6.8% 95.8%,
    5.2% 97.9%,
    3.5% 95.1%,
    2% 98.6%,
    0.8% 96.2%,
    0% 98.4%
  );
}

.dark-band h2 {
  margin: 0 0 1.6rem;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
}

.icon-card-grid,
.competition-grid,
.action-grid {
  display: grid;
  gap: 1rem;
}

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

.icon-card,
.action-card {
  display: grid;
  place-items: center;
  gap: 0.65rem;
  min-height: 8.7rem;
  text-align: center;
  padding: 1rem;
  border-radius: 1.35rem;
}

.icon-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon-card h3,
.action-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.audiences-panel {
  padding: 2rem 0 0.5rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.audience-card {
  position: relative;
  padding-bottom: 1.2rem;
}

.audience-image {
  min-height: 15rem;
  border-radius: 1.7rem;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.1);
}

.audience-card.athletes .audience-image {
  background-position: 42% 30%;
}

.audience-card.parents .audience-image {
  background-position: 35% 40%;
}

.audience-card.businesses .audience-image {
  background-position: 50% 35%;
}

.audience-label {
  position: absolute;
  left: 1rem;
  top: 10.4rem;
  display: inline-flex;
  flex-direction: column;
  padding: 0.45rem 0.9rem;
  border-radius: 1.2rem 1.6rem 1.2rem 1.4rem;
  background: var(--lime);
  color: #10100f;
  font-family: 'Kalam', cursive;
  transform: rotate(-5deg);
}

.audience-label span,
.audience-label strong {
  line-height: 1;
}

.audience-label span {
  font-size: 1.25rem;
}

.audience-label strong {
  font-size: 1.7rem;
}

.audience-card p,
.action-card p {
  margin: 0.95rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
}

.competition-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) 1.7fr;
  align-items: center;
  gap: 1.5rem;
}

.competition-copy {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.competition-copy .icon {
  width: 3.5rem;
  height: 3.5rem;
}

.competition-copy p,
.competition-copy h2 {
  margin: 0;
}

.competition-copy p {
  font-size: 1.4rem;
}

.competition-copy h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

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

.actions-panel {
  padding: 2.5rem 0 3rem;
}

.cta-header {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cta-header span {
  display: inline-flex;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  background: var(--lime);
  font-size: clamp(2rem, 4vw, 3rem);
  transform: rotate(-3deg);
}

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

.action-card {
  min-height: 11rem;
  padding: 1.35rem 1.1rem;
  background: #fffdfa;
  border: 1.5px solid rgba(168, 157, 125, 0.35);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
  color: inherit;
  font: inherit;
}

button.action-card {
  cursor: pointer;
  width: 100%;
}

.action-card.emphasized {
  border-width: 2px;
}

.register-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 2rem);
}

.register-modal::backdrop {
  background: rgba(12, 11, 10, 0.72);
  backdrop-filter: blur(4px);
}

.register-modal__panel {
  position: relative;
  width: min(24rem, 100%);
  margin: 0 auto;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: 1.6rem;
  background: #fffdfa;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.register-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6a6255;
  cursor: pointer;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
}

.register-modal h2 {
  margin: 0 0 0.55rem;
  font-family: 'Kalam', cursive;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
}

.register-modal__prompt {
  margin: 0 0 1.2rem;
  line-height: 1.45;
  font-size: 1.05rem;
}

.register-modal__qr {
  display: block;
  width: min(17.5rem, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 0.9rem;
  background: white;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.action-card p {
  margin-top: 0;
  color: #595347;
}

.site-footer {
  padding: 4rem 0 3.5rem;
  text-align: center;
  background: #151413;
}

.site-footer__tagline {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.site-footer__credit {
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.site-footer__credit a {
  color: var(--lime);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer__heart {
  display: inline-block;
  margin: 0 0.15rem;
  color: #ff5b6e;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }

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

  .audience-grid,
  .competition-layout,
  .intro-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: 1rem;
  }

  .hero-content {
    padding: 4rem 1.25rem 5rem;
    margin-left: 0;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .section-shell {
    width: min(100% - 1rem, 1200px);
  }

  .paper-tear {
    height: 4.25rem;
  }

  .dark-band {
    padding-top: 3.75rem;
    padding-bottom: 4rem;
  }

  .icon-card-grid,
  .competition-grid,
  .action-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .audience-image {
    min-height: 13.5rem;
  }

  .audience-label {
    top: 9.2rem;
  }

  .site-footer__tagline {
    line-height: 1.2;
  }
}
