:root {
  --blue: #123f78;
  --blue-dark: #08264a;
  --orange: #f28c28;
  --cream: #fff7ec;
  --text: #172033;
  --muted: #5f6b7a;
  --line: #e6eaf0;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(8, 38, 74, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #f5f7fb;
  line-height: 1.5;
}

a {
  color: var(--blue);
}

.hero {
  min-height: 100svh;
  padding: 18px 18px 42px;
  color: white;
  background:
    radial-gradient(circle at 12% 15%, rgba(242, 140, 40, 0.45), transparent 34%),
    linear-gradient(145deg, rgba(18, 63, 120, 0.98), rgba(8, 38, 74, 0.98));
  display: flex;
  flex-direction: column;
}

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

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--orange);
  color: white;
  font-weight: 900;
}

.top-link {
  color: white;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  font-size: 0.95rem;
}

.hero-content {
  width: min(920px, 100%);
  margin: auto;
  padding: 42px 0 0;
}

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

.hero .eyebrow {
  color: #ffd3a3;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 12vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 7vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  margin: 12px 0 8px;
  font-size: 1.2rem;
}

.lead {
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 4.5vw, 1.35rem);
  color: rgba(255,255,255,0.88);
}

.event-card {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.11);
  backdrop-filter: blur(12px);
}

.event-card div {
  display: grid;
  gap: 2px;
}

.event-card span {
  color: rgba(255,255,255,0.78);
}

.event-card.light {
  background: var(--cream);
  color: var(--text);
  border-color: transparent;
}

.event-card.light span {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}

.button.primary {
  background: var(--orange);
  color: white;
  box-shadow: 0 16px 36px rgba(242, 140, 40, 0.28);
}

.button.full {
  width: 100%;
}

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

.section-compact {
  padding: 24px 0 0;
}

.section-title {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 16px;
}

.card,
.contact-card,
.registration-form,
.message-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 22px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--cream);
  color: var(--orange);
  font-weight: 900;
}

.split {
  display: grid;
  gap: 24px;
}

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

.check-list li {
  padding: 16px 16px 16px 46px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 17px;
  top: 15px;
  color: var(--orange);
  font-weight: 900;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-grid span {
  padding: 12px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 700;
}

.poster-section {
  padding-top: 28px;
}

.poster-grid {
  display: grid;
  gap: 16px;
}

.poster-grid img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: white;
}

.form-section {
  scroll-margin-top: 14px;
}

.registration-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.field-row {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 780;
}

input,
textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #ccd4df;
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(242, 140, 40, 0.26);
  border-color: var(--orange);
}

.checkbox {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.42;
}

.checkbox input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin-top: 2px;
  accent-color: var(--orange);
}

.contact-section {
  display: grid;
  gap: 24px;
}

.contact-card {
  padding: 24px;
  font-size: 1.08rem;
}

.contact-card p {
  color: var(--muted);
}

footer {
  padding: 30px 18px 42px;
  text-align: center;
  color: var(--muted);
}

.flash {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
}

.flash.error {
  background: #fff1f1;
  color: #9b1c1c;
}

.plain-page,
.thanks-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at top left, rgba(242, 140, 40, 0.18), transparent 36%),
    #f5f7fb;
}

.privacy-container,
.thanks-card {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 52px;
}

.privacy-container h1,
.thanks-card h1 {
  color: var(--blue-dark);
  font-size: clamp(2rem, 8vw, 4rem);
}

.privacy-container h2 {
  margin-top: 32px;
  font-size: clamp(1.28rem, 5vw, 2rem);
}

.privacy-container p,
.thanks-card p {
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  margin-bottom: 26px;
  text-decoration: none;
  font-weight: 800;
}

.thanks-card {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.small-note {
  font-size: 0.95rem;
}

@media (min-width: 720px) {
  .hero {
    padding: 24px 28px 54px;
  }

  .event-card {
    grid-template-columns: 1fr 1fr;
    padding: 20px;
  }

  .section {
    padding: 76px 0;
  }

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

  .split,
  .contact-section {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .poster-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .registration-form {
    padding: 28px;
  }

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

@media (min-width: 1060px) {
  .hero-content {
    padding-top: 68px;
  }

  .lead {
    max-width: 740px;
  }

  .registration-form {
    width: min(780px, 100%);
  }
}
