:root {
  --event-bg: #fff9f0;
  --event-text: #2f3542;
  --event-primary: #ff4757;
  --event-secondary: #ffa502;
  --event-accent: #2e96ff;
  --event-radius: 34px;
}

/* ---------- Base layout ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "Segoe UI Rounded",
    Roboto,
    "Noto Sans",
    Arial,
    sans-serif;
  color: var(--event-text);

  /* фон страницы */
  background:
    radial-gradient(
      1000px 700px at 15% -10%,
      rgba(255, 71, 87, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 700px at 95% 10%,
      rgba(46, 150, 255, 0.1),
      transparent 55%
    ),
    linear-gradient(180deg, var(--event-bg) 0%, #fff1e0 100%);

  /* чтобы z-index работал предсказуемо */
  position: relative;
  min-height: 100vh;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

header,
main,
footer,
.event-hero {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  backdrop-filter: saturate(1.2) blur(6px);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo {
  height: 42px;
  width: auto;
  display: block;
}

.brand-title {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  line-height: 1.1;
}

.brand-title strong {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  line-height: 1.1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
  user-select: none;
}

.btn-primary {
  background: #ffffff;
  color: var(--event-text);
}

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

.btn:focus-visible {
  outline: 3px solid rgba(46, 150, 255, 0.45);
  outline-offset: 2px;
}

.topbar--event {
  background: rgba(255, 249, 240, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.topbar--event .btn {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.7);
  color: var(--event-text);
}
.topbar--event .btn:hover {
  border-color: rgba(255, 71, 87, 0.35);
  background: rgba(255, 71, 87, 0.1);
}

.bubble {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;

  background: radial-gradient(
    circle at 30% 30%,
    #ffffff 0%,
    rgba(255, 111, 183, 0.55) 30%,
    rgba(122, 167, 255, 0.55) 55%,
    rgba(94, 230, 198, 0.45) 70%,
    rgba(255, 211, 106, 0.45) 85%,
    rgba(255, 255, 255, 0.9) 100%
  );

  opacity: 1;

  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: bubble-drift 20s ease-in-out infinite;
}

.bubble::after {
  content: "";
  position: absolute;
  left: 18%;
  top: 14%;
  width: 30%;
  height: 26%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  transform: rotate(-20deg);
}

.b1 {
  left: -60px;
  top: 10%;
  width: 300px;
  height: 300px;
  animation-duration: 22s;
}
.b2 {
  left: 78%;
  top: 6%;
  width: 180px;
  height: 180px;
  animation-duration: 20s;
  animation-delay: 1.5s;
  opacity: 0.55;
}
.b3 {
  left: 72%;
  top: 48%;
  width: 340px;
  height: 340px;
  animation-duration: 26s;
  animation-delay: 2.3s;
  opacity: 0.5;
}
.b4 {
  left: 8%;
  top: 78%;
  width: 210px;
  height: 210px;
  animation-duration: 21s;
  animation-delay: 0.8s;
}
.b5 {
  left: 42%;
  top: 26%;
  width: 260px;
  height: 260px;
  animation-duration: 24s;
  animation-delay: 3.2s;
  opacity: 0.45;
}
.b6 {
  left: 55%;
  top: 72%;
  width: 170px;
  height: 170px;
  animation-duration: 19s;
  animation-delay: 4.1s;
  opacity: 0.5;
}

@keyframes bubble-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(34px, -46px, 0) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble {
    animation: none;
  }
}

/* ---------- Hero ---------- */
.event-hero {
  padding: 92px 0 74px;
  text-align: center;
  background: linear-gradient(135deg, #e74689 0%, #ff9f43 100%);
  border-bottom-left-radius: 90px;
  border-bottom-right-radius: 90px;
  box-shadow: 0 18px 44px rgba(255, 71, 87, 0.22);
}

.event-hero-inner {
  padding: 0 10px;
}

.event-title {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  color: #fff;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.12);
}

.event-subtitle {
  margin: 12px 0 0;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
}

.event-cta {
  margin-top: 28px;
}

.event-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 16px 34px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(to right, #c5133f, var(--event-secondary));
  box-shadow: 0 14px 28px rgba(255, 71, 87, 0.28);
  border: 0;
  transition: transform 0.2s ease;
}

.event-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.event-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

.event-btn--alt {
  background: linear-gradient(to right, var(--event-accent), #28c5ff);
}

/* ---------- Content cards ---------- */
.event-main {
  margin-top: -56px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin: 0 0 36px;
}

.event-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--event-radius);
  padding: 32px 26px;
  text-align: center;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.07);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease;
}

.event-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 165, 2, 0.55);
}

.event-icon {
  font-size: 56px;
  display: block;
  margin-bottom: 14px;
}

.event-card h3 {
  margin: 0 0 8px;
}

.event-price {
  margin-top: 12px;
  font-size: 1.2rem;
  color: var(--event-primary);
  font-weight: 800;
}

/* ---------- Contact block ---------- */
.event-contact {
  margin: 24px 0 10px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 60px;
  padding: 54px 18px;
  text-align: center;
  border: 2px dashed rgba(255, 71, 87, 0.45);
}

.event-contact h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.event-contact p {
  margin: 10px 0 0;
  font-size: 1.15rem;
}

.event-contact-actions {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.center-row {
  display: flex;
  justify-content: center;
  margin: 34px 0 34px;
}

/* ---------- Footer ---------- */
.footer-copy {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer--event {
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 22px 0;
}

.footer--event .tiny {
  opacity: 0.75;
  margin: 6px 0 0;
}

.footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer-links a {
  text-decoration: none;
  color: inherit;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links .sep {
  opacity: 0.5;
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 720px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 0;
  }

  .topbar-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .event-hero {
    padding: 76px 0 62px;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
  }

  .event-main {
    margin-top: -42px;
  }
}
