/* Фестиваль мороженого — Обнинск 2027 */

* {
  box-sizing: border-box;
}

:root {
  --lav-1: #f3e9ff;
  --lav-2: #e7d6ff;
  --lav-3: #d9c0ff;
  --grape: #6b4bb5;
  --grape-deep: #4a2f8c;
  --pink: #ff8fc8;
  --mint: #7fdec4;
  --lemon: #ffd97a;
  --ink: #3b2a63;
  --card: rgba(255, 255, 255, 0.72);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(175deg, #f6edff 0%, #ecdcff 35%, #e2ccff 70%, #f1e6ff 100%);
}

/* фоновые мороженые */
.bg-sprinkles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.scoop {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50% 50% 46% 54% / 55% 48% 52% 45%;
  filter: blur(2px);
  opacity: 0.5;
  animation: floaty 14s ease-in-out infinite;
}

.scoop--1 { top: 6%; left: -60px; background: radial-gradient(circle at 32% 28%, #ffd0ec, #ff9fd0); }
.scoop--2 { top: 40%; right: -70px; background: radial-gradient(circle at 32% 28%, #d4fff2, #8fe3c8); animation-delay: -3s; }
.scoop--3 { top: 72%; left: -50px; background: radial-gradient(circle at 32% 28%, #fff3c9, #ffe9a8); animation-delay: -6s; }
.scoop--4 { bottom: -60px; right: 18%; background: radial-gradient(circle at 32% 28%, #e4d4ff, #c0a4ff); animation-delay: -9s; }
.scoop--5 { top: 18%; right: 24%; width: 130px; height: 130px; background: radial-gradient(circle at 32% 28%, #ffd0ec, #ff9fd0); animation-delay: -5s; opacity: .45; }
.scoop--6 { top: 58%; left: 22%; width: 150px; height: 150px; background: radial-gradient(circle at 32% 28%, #d4fff2, #8fe3c8); animation-delay: -8s; opacity: .4; }

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-34px) rotate(12deg); }
}

.cone {
  position: absolute;
  font-size: 64px;
  opacity: 0.35;
  animation: floaty 16s ease-in-out infinite;
}

.cone--1 { top: 12%; right: 8%; }
.cone--2 { top: 46%; left: 6%; animation-delay: -4s; font-size: 52px; }
.cone--3 { bottom: 16%; right: 12%; animation-delay: -7s; }
.cone--4 { top: 78%; left: 14%; animation-delay: -10s; font-size: 48px; }
.cone--5 { top: 30%; left: 40%; animation-delay: -12s; font-size: 40px; opacity: .25; }

/* HERO */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem 3.5rem;
}

.hero__badge {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid var(--lav-3);
  color: var(--grape);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__cone {
  margin: 1.4rem 0 0.4rem;
  animation: floaty 7s ease-in-out infinite;
}

.hero__kicker {
  margin: 0.6rem 0 0;
  font-family: "Comfortaa", cursive;
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--pink);
  text-shadow: 0 2px 0 #fff;
}

.hero__title {
  margin: 0.2rem 0 0;
  font-family: "Comfortaa", cursive;
  font-weight: 700;
  font-size: clamp(2.6rem, 10vw, 5.4rem);
  line-height: 1;
  color: var(--grape-deep);
  letter-spacing: 0.03em;
}

.hero__title span {
  background: linear-gradient(90deg, var(--pink), var(--grape));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
  padding: 0.7rem 1.3rem;
  border-radius: 18px;
  background: var(--card);
  border: 2px dashed var(--lav-3);
  font-size: clamp(1rem, 3.4vw, 1.35rem);
  font-weight: 800;
  color: var(--grape);
}

.hero__dates i {
  font-style: normal;
  color: var(--pink);
}

.hero__dates b {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--grape);
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 34rem;
  margin: 1.3rem auto 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #5a4690;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1.8rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.btn--primary {
  background: linear-gradient(90deg, var(--pink), #c76bff);
  color: #fff;
  box-shadow: 0 8px 20px rgba(215, 110, 200, 0.45);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--grape);
  border: 2px solid var(--lav-3);
}

/* бегущая строка */
.marquee {
  overflow: hidden;
  background: linear-gradient(90deg, var(--grape), var(--pink));
  color: #fff;
  padding: 0.85rem 0;
  transform: rotate(-1deg);
  box-shadow: 0 6px 18px rgba(107, 75, 181, 0.3);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 26s linear infinite;
  font-family: "Comfortaa", cursive;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* секции */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}

.section--alt {
  max-width: none;
}

.section--alt .section__head,
.section--alt .program {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.section__head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.6rem;
}

.section__eyebrow {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--pink);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section__title {
  margin: 0.7rem 0 0;
  font-family: "Comfortaa", cursive;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  color: var(--grape-deep);
}

.section__sub {
  margin: 0.8rem 0 0;
  line-height: 1.6;
  color: #5a4690;
}

/* ЛАЙНАП */
.lineup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.artist {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.2rem 1.3rem 1.8rem;
  border-radius: 26px;
  background: var(--card);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(120, 84, 200, 0.18);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease;
}

.artist:hover {
  transform: translateY(-7px) rotate(-0.6deg);
}

.artist--headliner {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(255, 175, 216, 0.9), rgba(203, 171, 255, 0.92));
}

@media (min-width: 760px) {
  .artist--headliner {
    grid-column: span 2;
  }
}

.artist__date {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: var(--grape);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.artist__art {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.artist__name {
  margin: 0;
  font-family: "Comfortaa", cursive;
  font-size: 1.35rem;
  color: var(--grape-deep);
}

.artist__tag {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  color: #6a56a3;
}

.artist--headliner .artist__name {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
}

/* КОНКУРСЫ */
.contests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}

.contest {
  position: relative;
  padding: 2rem 1.5rem 1.6rem;
  border-radius: 26px;
  background: var(--card);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(120, 84, 200, 0.18);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.contest:hover {
  transform: translateY(-7px) rotate(-0.6deg);
}

.contest__icon {
  font-size: 2.6rem;
  line-height: 1;
}

.contest__when {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(107, 75, 181, 0.12);
  color: var(--grape);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contest h3 {
  margin: 0.8rem 0 0.4rem;
  font-family: "Comfortaa", cursive;
  font-size: 1.15rem;
  color: var(--grape-deep);
}

.contest p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
  color: #5a4690;
}

.contest__prize {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lemon), #ffb86b);
  color: #5c3a00;
  font-size: 0.82rem;
  font-weight: 800;
}

/* БИЛЕТЫ */
.tickets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 1.7rem;
  border-radius: 26px;
  background: var(--card);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(120, 84, 200, 0.18);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease;
}

.ticket:hover {
  transform: translateY(-7px);
}

.ticket--best {
  background: linear-gradient(150deg, rgba(255, 175, 216, 0.92), rgba(203, 171, 255, 0.95));
  border-color: #fff;
  box-shadow: 0 20px 44px rgba(107, 75, 181, 0.32);
}

.ticket__ribbon {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: var(--grape);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ticket__name {
  font-family: "Comfortaa", cursive;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--grape);
}

.ticket__price {
  margin: 0.6rem 0 0.9rem;
  font-family: "Comfortaa", cursive;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--grape-deep);
}

.ticket--best .ticket__price {
  font-size: 2.5rem;
}

.ticket__perks {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.ticket__perks li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.6rem;
  font-size: 0.95rem;
  color: #5a4690;
  border-bottom: 1px dashed rgba(107, 75, 181, 0.18);
}

.ticket__perks li::before {
  content: "🍦";
  position: absolute;
  left: 0;
  top: 0.35rem;
  font-size: 0.85rem;
}

.ticket__btn {
  border: none;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  text-align: center;
}

.tickets__note {
  margin: 1.8rem auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: 0.92rem;
  color: #6a56a3;
}

/* модальное окно покупки */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(58, 37, 110, 0.55);
  backdrop-filter: blur(4px);
}

.modal.is-open {
  display: flex;
}

.modal__box {
  width: 100%;
  max-width: 430px;
  padding: 2rem 1.7rem;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(40, 20, 90, 0.45);
  text-align: center;
  animation: pop-in 0.3s ease;
}

@keyframes pop-in {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal__icon {
  font-size: 3rem;
}

.modal__title {
  margin: 0.6rem 0 0.3rem;
  font-family: "Comfortaa", cursive;
  font-size: 1.3rem;
  color: var(--grape-deep);
}

.modal__text {
  margin: 0 0 1.2rem;
  line-height: 1.6;
  color: #5a4690;
  font-size: 0.97rem;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: left;
}

.modal__form label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--grape);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal__form input,
.modal__form select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  border: 2px solid var(--lav-3);
  font-family: "Nunito", sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--lav-1);
}

.modal__form input:focus,
.modal__form select:focus {
  outline: none;
  border-color: var(--grape);
}

.modal__row {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.modal__row .btn {
  flex: 1;
  border: none;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
}

.modal__ok {
  display: none;
}

.modal__ok.is-visible {
  display: block;
}

.modal__form.is-hidden {
  display: none;
}

/* КОНКУРСЫ */
.contests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}

.contest {
  display: flex;
  flex-direction: column;
  padding: 1.8rem 1.5rem;
  border-radius: 24px;
  background: var(--card);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-top: 6px solid var(--pink);
  box-shadow: 0 12px 30px rgba(120, 84, 200, 0.14);
  transition: transform 0.2s ease;
}

.contest:hover {
  transform: translateY(-6px) rotate(-0.5deg);
}

.contest__icon {
  font-size: 2.4rem;
}

.contest__when {
  align-self: flex-start;
  margin-top: 0.8rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: var(--lav-2);
  color: var(--grape);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contest h3 {
  margin: 0.7rem 0 0.4rem;
  font-family: "Comfortaa", cursive;
  font-size: 1.12rem;
  color: var(--grape-deep);
}

.contest p {
  margin: 0;
  flex: 1;
  line-height: 1.6;
  font-size: 0.96rem;
  color: #5a4690;
}

.contest__prize {
  margin-top: 1rem;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 143, 200, 0.22), rgba(199, 107, 255, 0.22));
  color: var(--grape-deep);
  font-size: 0.88rem;
  font-weight: 800;
}peat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.program__card {
  padding: 1.8rem 1.5rem;
  border-radius: 24px;
  background: var(--card);
  border-bottom: 6px solid var(--lav-3);
  box-shadow: 0 12px 30px rgba(120, 84, 200, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.program__card:hover {
  transform: translateY(-6px);
  border-bottom-color: var(--pink);
}

.program__icon {
  font-size: 2.4rem;
}

.program__card h3 {
  margin: 0.7rem 0 0.4rem;
  font-family: "Comfortaa", cursive;
  font-size: 1.15rem;
  color: var(--grape-deep);
}

.program__card p {
  margin: 0;
  line-height: 1.6;
  color: #5a4690;
  font-size: 0.97rem;
}

/* ОТСЧЁТ */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 2.6rem clamp(1.4rem, 5vw, 3rem);
  border-radius: 34px;
  background: linear-gradient(135deg, var(--grape-deep), var(--grape) 60%, #9a63e8);
  color: #fff;
  box-shadow: 0 22px 50px rgba(74, 47, 140, 0.4);
}

.cta__text {
  flex: 1 1 320px;
}

.cta__text h2 {
  margin: 0;
  font-family: "Comfortaa", cursive;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
}

.cta__text p {
  margin: 0.8rem 0 0;
  line-height: 1.6;
  color: #eadcff;
}

.cta__count {
  display: flex;
  gap: 1rem;
}

.cta__count > div {
  min-width: 88px;
  padding: 1rem 0.6rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.3);
  text-align: center;
}

.cta__count b {
  display: block;
  font-family: "Comfortaa", cursive;
  font-size: 2rem;
  line-height: 1;
}

.cta__count span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d9c8ff;
}

/* ФУТЕР */
.footer {
  text-align: center;
  padding: 3rem 1.25rem 3.4rem;
  color: var(--grape);
}

.footer__scoops {
  font-size: 2rem;
  letter-spacing: 0.5rem;
  margin-bottom: 0.9rem;
}

.footer p {
  margin: 0.25rem 0;
  font-weight: 700;
}

.footer__small {
  font-weight: 400;
  font-size: 0.9rem;
  color: #6a56a3;
}

/* появление при скролле */
.reveal-ready {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-ready.reveal-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}
