@font-face {
  font-family: "InterLocal";
  src: local("Inter"), local("Segoe UI");
}

:root {
  --bg: #07101f;
  --bg-soft: #0b1729;
  --card: rgba(13, 28, 50, 0.74);
  --card-strong: rgba(12, 27, 49, 0.94);
  --line: rgba(150, 170, 205, 0.18);
  --line-strong: rgba(150, 170, 205, 0.32);
  --text: #f4f7fb;
  --text-muted: #b8c2d4;
  --text-soft: #7f8da5;
  --purple: #8b5cf6;
  --purple-dark: #6d42da;
  --blue: #3b82f6;
  --cyan: #39c7d7;
  --green: #4fc174;
  --red: #fb7185;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1340px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: InterLocal, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 8%, rgba(91, 80, 180, 0.18), transparent 36%),
    radial-gradient(circle at 18% 25%, rgba(45, 112, 199, 0.13), transparent 34%),
    linear-gradient(180deg, #050b16 0%, var(--bg) 47%, #050b14 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.45;
}

.bg-orb-one {
  top: 70px;
  right: 120px;
  background: rgba(80, 92, 180, 0.32);
}

.bg-orb-two {
  bottom: 160px;
  left: 100px;
  background: rgba(37, 99, 235, 0.18);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 68%, transparent);
}

.container {
  width: min(var(--container), calc(100% - 72px));
  margin: 0 auto;
}

.section {
  padding: 64px 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 22, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(150, 170, 205, 0.08);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 850;
  letter-spacing: 0.01em;
  font-size: 20px;
  white-space: nowrap;
}

.logo span {
  color: var(--text);
}

.logo strong {
  color: #48d0c5;
}

.nav {
  display: flex;
  align-items: center;
  gap: 42px;
  margin-left: auto;
  margin-right: 22px;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
}

.nav a {
  opacity: 0.86;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  color: #d6e4ff;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c4ddf, #6145c6);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(93, 64, 213, 0.25);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  border-radius: 999px;
}

/* Hero */

.hero {
  padding-top: 88px;
  padding-bottom: 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 58px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #6fd2d1;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero h1 span {
  background: linear-gradient(135deg, #48d0c5 0%, #74c37f 45%, #7b5ce6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 640px;
  margin: 34px 0 0;
  color: #e2e8f0;
  line-height: 1.75;
  font-size: 18px;
  font-weight: 520;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  min-height: 64px;
  padding: 0 32px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid transparent;
  color: var(--text);
  font-weight: 850;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #8f4fe9, #5e66e6);
  box-shadow: 0 18px 42px rgba(112, 78, 220, 0.28);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(220, 230, 255, 0.42);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: min(100%, 720px);
  display: block;
  filter: drop-shadow(0 32px 80px rgba(58, 73, 165, 0.22));
}

/* Features */

.features {
  padding: 16px 0 48px;
}

.feature-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding: 30px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(18, 33, 57, 0.86), rgba(9, 22, 42, 0.86));
  box-shadow: var(--shadow);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.feature-icon {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.04);
}

.feature-icon.purple {
  background: linear-gradient(135deg, #8f46da, #4f2a91);
}

.feature-icon.blue {
  background: linear-gradient(135deg, #2b8bf4, #173a7e);
}

.feature-icon.green {
  background: linear-gradient(135deg, #34a853, #15572f);
}

.feature-icon.violet {
  background: linear-gradient(135deg, #6846d7, #34206e);
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.feature-item p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
  font-size: 14px;
}

/* Events */

.events {
  padding-top: 54px;
}

.section-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 44px;
}

.section-title h2,
.form-card h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -0.045em;
  line-height: 1.1;
  text-align: center;
}

.dots {
  position: absolute;
  width: 108px;
  height: 54px;
  background-image: radial-gradient(circle, rgba(80, 130, 240, 0.65) 2px, transparent 2.5px);
  background-size: 18px 18px;
  opacity: 0.82;
}

.dots-left {
  left: 58px;
}

.dots-right {
  right: 58px;
  background-image: radial-gradient(circle, rgba(136, 92, 246, 0.65) 2px, transparent 2.5px);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.event-card {
  min-height: 520px;
  position: relative;
  padding: 52px 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 50% 18%, rgba(85, 108, 180, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(16, 32, 56, 0.88), rgba(9, 22, 42, 0.9));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 22%, transparent);
}

.event-card.is-selected {
  border-color: rgba(139, 92, 246, 0.75);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2), 0 22px 70px rgba(83, 66, 174, 0.28);
}

.event-number {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: white;
}

.purple {
  background: linear-gradient(135deg, #9957ff, #6c3bd3);
}

.blue {
  background: linear-gradient(135deg, #43a0ff, #2e67c7);
}

.green {
  background: linear-gradient(135deg, #45ce79, #1e874c);
}

.event-icon {
  width: 104px;
  height: 104px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 8px 0 42px;
  font-size: 48px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.purple-line {
  background: rgba(118, 60, 196, 0.22);
  color: #c19bff;
}

.blue-line {
  background: rgba(59, 130, 246, 0.18);
  color: #77b7ff;
}

.green-line {
  background: rgba(34, 197, 94, 0.18);
  color: #77df9b;
}

.event-card time {
  font-weight: 850;
  color: #f8fbff;
  font-size: 16px;
  margin-bottom: 14px;
}

.event-type {
  margin: 0 0 22px;
  font-weight: 850;
}

.purple-text {
  color: #b789ff;
}

.blue-text {
  color: #4bb3ff;
}

.green-text {
  color: #54d982;
}

.event-card h3 {
  margin: 0;
  min-height: 124px;
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.event-select {
  width: 100%;
  min-height: 74px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 0 20px;
  text-align: left;
  font-weight: 850;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.event-select:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.045);
}

.event-select span {
  color: #9b7bf6;
  font-size: 25px;
}

.events-note {
  margin: 26px 0 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 14px;
}

/* Form */

.registration {
  padding-top: 50px;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 0%, rgba(45, 112, 199, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(14, 30, 54, 0.92), rgba(8, 21, 40, 0.94));
  box-shadow: var(--shadow);
  padding: 42px 40px 54px;
}

.registration-form {
  margin-top: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 36px;
}

.field {
  display: block;
}

.field span,
.radio-group p,
.choice-title {
  display: block;
  margin: 0 0 10px;
  color: #dbe8ff;
  font-size: 15px;
  font-weight: 800;
}

b {
  color: var(--red);
  font-weight: 900;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(150, 170, 205, 0.22);
  border-radius: 11px;
  background: rgba(5, 14, 28, 0.45);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

input::placeholder {
  color: #7f8ba0;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
  border-color: rgba(95, 138, 222, 0.74);
  background: rgba(6, 17, 34, 0.72);
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.radio-group p {
  width: 100%;
  margin-bottom: 0;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
}

input[type="radio"],
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--purple);
}

.leader {
  grid-column: 1;
}

.event-choice {
  margin-top: 34px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.choice-card {
  position: relative;
  min-height: 168px;
  border: 1px solid rgba(150, 170, 205, 0.22);
  border-radius: 14px;
  background: rgba(7, 18, 35, 0.54);
  padding: 22px 18px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.choice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(150, 170, 205, 0.38);
}

.choice-card input {
  position: absolute;
  top: 16px;
  right: 16px;
  opacity: 0;
}

.choice-card.is-checked {
  border-color: rgba(139, 92, 246, 0.78);
  background: rgba(38, 36, 76, 0.45);
}

.choice-card.is-checked::after {
  content: "✓";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #7450d7;
  color: white;
  font-weight: 900;
}

.choice-badge {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  margin-right: 12px;
  vertical-align: top;
}

.choice-date {
  display: inline-block;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.25;
}

.choice-date small {
  color: var(--text-soft);
}

.choice-card strong {
  display: block;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.45;
}

.consent {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

.consent a {
  color: #ac83ff;
}

.submit-row {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.btn-submit {
  width: min(520px, 100%);
  border: 0;
  background: linear-gradient(135deg, #8c45df, #5c62df);
  box-shadow: 0 18px 44px rgba(112, 78, 220, 0.28);
}

.form-message {
  min-height: 24px;
  margin: 24px 0 0;
  text-align: center;
  color: #79dda0;
  font-weight: 800;
}

/* Footer */

.footer {
  border-top: 1px solid rgba(150, 170, 205, 0.12);
  background: rgba(4, 10, 20, 0.54);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.2fr 0.85fr 150px;
  gap: 44px;
  padding: 42px 0 32px;
}

.footer-brand p,
.footer-contacts p,
.footer-links a {
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 15px;
}

.footer-brand p {
  max-width: 330px;
  margin: 18px 0 22px;
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  color: #dbe8ff;
  font-size: 12px;
  font-weight: 850;
}

.footer h3 {
  margin: 0 0 18px;
  font-size: 16px;
}

.footer-contacts p {
  margin: 10px 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  margin: 0 0 9px;
}

.qr-box {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.qr-box img {
  width: 126px;
  height: 126px;
  border-radius: 12px;
  background: white;
}

.footer-bottom {
  border-top: 1px solid rgba(150, 170, 205, 0.1);
  color: var(--text-soft);
  text-align: center;
  padding: 18px;
  font-size: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Responsive */

@media (max-width: 1180px) {
  .container {
    width: min(100% - 42px, var(--container));
  }

  .nav {
    display: none;
  }

  .burger {
    display: inline-block;
  }

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

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

  .feature-panel,
  .event-grid,
  .choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .qr-box {
    justify-content: flex-start;
  }

  .dots {
    display: none;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 42px 0;
  }

  .header-btn {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions {
    gap: 14px;
  }

  .btn {
    width: 100%;
    min-height: 58px;
  }

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

  .feature-panel,
  .event-grid,
  .choice-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-panel,
  .form-card {
    padding: 26px 20px;
  }

  .feature-item {
    align-items: flex-start;
  }

  .event-card {
    min-height: auto;
  }

  .event-card h3 {
    min-height: auto;
    margin-bottom: 38px;
  }

  .radio-group {
    gap: 22px;
  }

  .leader {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .logo {
    font-size: 17px;
  }

  .hero h1 {
    letter-spacing: -0.05em;
  }

  .event-icon {
    width: 86px;
    height: 86px;
    font-size: 38px;
  }
}
