:root {
  --primary: #ff6f61;
  --secondary: #4db6ac;
  --dark: #263238;
  --light: #f7f9fc;
  --accent: #ffd54f;
  --text: #37474f;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', Arial, sans-serif;
  color: var(--text);

  /* ── Весёлый минималистичный фон ──
     Светлая база + SVG-паттерн: звёздочки, кружочки, конфетти-палочки
     Все элементы еле заметны (opacity ~0.18), чтобы не мешать контенту */
  background-color: #fffef9;
  background-image:
    /* пятиконечные звёздочки */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg opacity='.18'%3E%3C!-- звезда 1 --%3E%3Cpolygon points='28,6 31,18 43,18 33,25 37,37 28,30 19,37 23,25 13,18 25,18' fill='%23ff6f61'/%3E%3C!-- кружок 1 --%3E%3Ccircle cx='120' cy='22' r='7' fill='%234db6ac'/%3E%3C!-- конфетти-палочка 1 --%3E%3Crect x='155' y='10' width='5' height='18' rx='2.5' fill='%23ffd54f' transform='rotate(25 157 19)'/%3E%3C!-- звезда 2 (маленькая) --%3E%3Cpolygon points='80,48 82,55 89,55 83,59 86,66 80,62 74,66 77,59 71,55 78,55' fill='%23ffb74d'/%3E%3C!-- кружок 2 (маленький) --%3E%3Ccircle cx='160' cy='70' r='5' fill='%23ff6f61'/%3E%3C!-- конфетти-палочка 2 --%3E%3Crect x='10' y='90' width='4' height='14' rx='2' fill='%234db6ac' transform='rotate(-18 12 97)'/%3E%3C!-- звезда 3 --%3E%3Cpolygon points='140,100 143,112 155,112 145,119 149,131 140,124 131,131 135,119 125,112 137,112' fill='%23ff6f61'/%3E%3C!-- кружок 3 --%3E%3Ccircle cx='50' cy='140' r='8' fill='%23ffd54f'/%3E%3C!-- конфетти-палочка 3 --%3E%3Crect x='100' y='150' width='5' height='20' rx='2.5' fill='%23ff6f61' transform='rotate(40 102 160)'/%3E%3C!-- маленький ромбик --%3E%3Cpolygon points='170,130 175,138 170,146 165,138' fill='%234db6ac'/%3E%3C!-- кружок крошечный --%3E%3Ccircle cx='90' cy='168' r='4' fill='%23ffb74d'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px;
}

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

/* Лёгкий градиент поверх паттерна в зоне hero — плавный переход к белому сверху */
main::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 520px;
  pointer-events: none;
  z-index: 0;
}

main { position: relative; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  /* плавное скрытие/появление */
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

header.header--hidden {
  transform: translateY(-110%);
}

/* небольшой отступ body, чтобы контент не уходил под fixed-шапку */
body {
  padding-top: 88px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 64px;
  width: auto;
  display: block;
  /* прозрачный PNG — фильтр не нужен */
}

.menu {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.menu a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--dark);
  transition: background 0.2s ease, color 0.2s ease;
}

.menu a:hover,
.menu a.active {
  background: var(--primary);
  color: var(--white);
}

/* ── Hero ── */
.hero { padding: 70px 0 50px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-family: 'Fredoka One', Arial, sans-serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--dark);
}

.hero p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 26px;
  max-width: 650px;
}

.btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow);
}

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

.btn-primary { background: var(--primary); color: var(--white); }
.btn-secondary {
  background: var(--white);
  color: var(--dark);
  border: 2px solid rgba(0, 0, 0, 0.08);
}

.hero-card {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.hero-card .caption {
  padding: 18px 20px;
  background: linear-gradient(90deg, rgba(255,111,97,0.08), rgba(77,182,172,0.08));
  font-weight: 700;
  color: var(--dark);
}

/* ── Features ── */
.features { padding: 20px 0 70px; }

.section-title {
  font-family: 'Fredoka One', Arial, sans-serif;
  font-size: 34px;
  margin: 0 0 22px;
  color: var(--dark);
  text-align: center;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 14px;
  background: rgba(255, 111, 97, 0.12);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-family: 'Fredoka One', Arial, sans-serif;
  color: var(--dark);
}

.card p { margin: 0; line-height: 1.7; }

/* ── Info ── */
.info { padding: 0 0 70px; }

.info-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: linear-gradient(135deg, #fff 0%, #fff9ec 100%);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  align-items: center;
}

.info-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
  font-size: 17px;
}

.info-image {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.info-image img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  display: block;
}

/* ── Contact ── */
.contact { padding: 0 0 70px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-card {
  background: var(--dark);
  color: var(--white);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-top: 0;
  font-family: 'Fredoka One', Arial, sans-serif;
  font-size: 26px;
}

.contact-card p {
  line-height: 1.8;
  margin: 0 0 10px;
}

.contact-card-accent {
  background: linear-gradient(135deg, #ff6f61 0%, #ffb74d 100%);
}

.contact-card-accent a {
  text-decoration: underline;
  color: #fff;
}

/* ── Footer ── */
footer {
  background: #f7f9fc;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  color: #607d8b;
  padding: 28px 0 36px;
  text-align: center;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 64px;
  width: auto;
  opacity: 0.75;
}

.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(38, 50, 56, 0.07);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-socials svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: var(--dark);
  transition: fill 0.2s ease;
}

.footer-socials a:hover svg {
  fill: #fff;
}

.footer-copy { color: #90a4ae; }

/* ══════════════════════════════
   ── Страница аттракционов ──
   ══════════════════════════════ */

.hero-banner {
  background: linear-gradient(135deg, rgba(255,111,97,0.12), rgba(77,182,172,0.12));
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.hero-banner h1 {
  font-family: 'Fredoka One', Arial, sans-serif;
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  color: var(--dark);
  line-height: 1.1;
}

.hero-banner p {
  margin: 0;
  max-width: 850px;
  line-height: 1.7;
  font-size: 17px;
}

.attractions { padding: 20px 0 60px; }

.section-title-left {
  font-family: 'Fredoka One', Arial, sans-serif;
  font-size: 34px;
  margin: 0 0 28px;
  color: var(--dark);
}

.attraction {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.attraction:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.attraction-img-wrap {
  overflow: hidden;
  min-height: 340px;
}

.attraction-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.attraction:hover .attraction-img-wrap img {
  transform: scale(1.04);
}

.attraction-content {
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
}

.attraction-content h2 {
  font-family: 'Fredoka One', Arial, sans-serif;
  margin: 0 0 10px;
  font-size: 30px;
  color: var(--dark);
  line-height: 1.15;
}

.badge {
  display: inline-block;
  background: rgba(255, 111, 97, 0.12);
  color: #c0392b;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.description {
  margin: 0 0 18px;
  line-height: 1.7;
  flex-grow: 1;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 18px;
}

.spec {
  background: #f4f7fa;
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(0,0,0,0.05);
  font-size: 14px;
  line-height: 1.5;
}

.spec b {
  display: block;
  margin-bottom: 4px;
  color: var(--dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rules {
  background: linear-gradient(135deg, #fff9e8 0%, #f0fbff 100%);
  border-radius: 18px;
  padding: 16px 20px;
  border: 1px solid rgba(0,0,0,0.05);
}

.rules h3 {
  font-family: 'Fredoka One', Arial, sans-serif;
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 18px;
}

.rules ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.85;
  font-size: 14px;
}

.general { padding: 0 0 70px; }

.general-box {
  background: var(--dark);
  color: var(--white);
  border-radius: 28px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.general-box h2 {
  font-family: 'Fredoka One', Arial, sans-serif;
  margin-top: 0;
  font-size: 30px;
}

.general-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.general-card {
  background: rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 20px;
  line-height: 1.75;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.06);
}

.general-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--accent);
  font-family: 'Fredoka One', Arial, sans-serif;
  font-weight: 400;
}

/* ── Responsive ── */
@media (max-width: 920px) {
  .hero-grid,
  .cards,
  .info-box,
  .contact-grid,
  .general-grid { grid-template-columns: 1fr; }

  .hero-card img,
  .info-image img { height: 280px; }

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

  .attraction-img-wrap {
    min-height: 260px;
    max-height: 300px;
  }

  .attraction-content {
    padding: 24px;
  }

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

/* ── Ticket button ── */
.btn-ticket {
  background: #ffff0f;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.35);
}

.btn-ticket:hover {
  background: #1b5e20;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27, 94, 32, 0.45);
  color: #ffffff;
}

/* ── Burger button ── */
.burger-btn {
  display: none;
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 200;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.burger-btn:hover { background: #e55a4c; transform: scale(1.07); }

.burger-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Анимация × когда меню открыто */
.burger-btn.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger-btn.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 600px) {
  /* Хедер скрыт по умолчанию на мобильных */
  header {
    transform: translateY(-110%);
  }

  /* Когда меню открыто — показываем */
  header.mobile-open {
    transform: translateY(0) !important;
  }

  .burger-btn {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-img { height: 48px; }

  .menu { width: 100%; }
  .menu a { width: 100%; text-align: center; }
  .menu .btn-ticket { width: 100%; text-align: center; display: block; box-sizing: border-box; }

  .hero { padding-top: 20px; }

  body { padding-top: 76px; }
}
