/* ============================================================
   Океанаріум «Аквамарин» — загальні стилі
   ============================================================ */

:root {
  --abyss:   #03101c;
  --deep:    #072a45;
  --deep-2:  #0a3a5c;
  --mid:     #0d5478;
  --aqua:    #38bdf8;
  --teal:    #2dd4bf;
  --coral:   #ff8a65;
  --sand:    #fcd9a1;
  --gold:    #ffc13d;
  --foam:    #eaf6fb;
  --muted:   #9ec4d8;
  --line:    rgba(56, 189, 248, .18);
  --card:    rgba(255, 255, 255, .045);
  --card-2:  rgba(255, 255, 255, .08);

  --radius:   18px;
  --radius-sm: 12px;
  --shadow:  0 18px 50px rgba(0, 0, 0, .45);
  --wrap:    1180px;
  --header-h: 74px;

  --font: "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* атрибут hidden має перемагати display з класів (.animal тощо) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--foam);
  background: var(--abyss);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Тло-океан на всіх сторінках */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 12% -10%, #0b4a6f 0%, transparent 60%),
    radial-gradient(900px 600px at 88% 0%, #0c6b7a 0%, transparent 55%),
    linear-gradient(180deg, #062033 0%, #041624 45%, #020b13 100%);
}

img { max-width: 100%; display: block; }

a { color: var(--aqua); text-decoration: none; }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { margin: 0 0 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding: clamp(40px, 5.2vw, 72px) 0; }
.section--tight { padding: clamp(30px, 3.6vw, 48px) 0; }

.section-head {
  max-width: 660px;
  margin-bottom: clamp(22px, 2.8vw, 36px);
  margin-inline: auto;
  text-align: center;
}
/* лишається для сумісності зі старою розміткою — тепер це поведінка за замовчуванням */
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.lead { font-size: 1.08rem; color: var(--muted); }

/* ---------------- Кнопки ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.btn--primary {
  background: linear-gradient(135deg, #22a7e0, #17a99b);
  color: #01161d;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(23, 169, 155, .22);
}
.btn--primary:hover {
  color: #01161d;
  background: linear-gradient(135deg, #38bdf8, #2dd4bf);
  box-shadow: 0 14px 30px rgba(45, 212, 191, .3);
}

.btn--ghost {
  background: rgba(255, 255, 255, .06);
  color: var(--foam);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn--block { width: 100%; }

/* ---------------- Хедер ---------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 20, 33, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.header.is-scrolled { background: rgba(3, 14, 24, .93); }

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--foam);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  margin-right: auto;
}
.logo:hover { color: #fff; }
.logo svg { flex: none; }
.logo span small {
  display: block;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  /* flex:1 + center — весь блок пунктів центрується в просторі між лого й краєм,
     з одним помірним інтервалом; space-between розтягував їх на всю ширину. */
  flex: 1;
  justify-content: center;
  gap: clamp(8px, 1.1vw, 18px);
  list-style: none;
  margin: 0;
  padding: 0;
}
/* :not(.btn) — щоб ці правила не перебивали колір і фон кнопки-CTA */
.nav-links a:not(.btn) {
  display: block;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
  transition: color .18s, background .18s;
}
.nav-links a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-links a:not(.btn).is-active { color: #fff; background: rgba(56, 189, 248, .16); }

.nav-cta { margin-left: 14px; padding: 11px 22px; font-size: .92rem; }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  width: 18px; height: 2px;
  background: var(--foam);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: block; }
  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 16px 22px 26px;
    background: #04121e;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
    transform: translateY(-130%);
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a:not(.btn) { padding: 14px 16px; font-size: 1.02rem; border-radius: var(--radius-sm); }
  .nav-links .nav-cta { margin: 10px 0 0; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 100px 0 120px;
  overflow: hidden;
  /* Фото — Unsplash; градієнт зверху тримає контраст тексту */
  background-image:
    radial-gradient(80% 65% at 50% 48%, rgba(2, 13, 22, .88) 0%, rgba(2, 13, 22, .55) 72%, rgba(2, 13, 22, .45) 100%),
    url("https://images.unsplash.com/photo-1769234428281-c108a6053cd3?auto=format&fit=crop&w=1800&q=75");
  background-size: cover;
  background-position: center;
}
@media (max-width: 700px) {
  /* На телефоні великі відступи з’їдають перший екран */
  .hero { padding: 64px 0 76px; }
}
@media (max-width: 800px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(2, 13, 22, .72) 0%, rgba(2, 13, 22, .88) 100%),
      url("https://images.unsplash.com/photo-1769234428281-c108a6053cd3?auto=format&fit=crop&w=1000&q=70");
  }
}
/* Плавний перехід у наступну секцію — без різкого зрізу відео */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(3, 15, 25, 0) 0%, rgba(3, 15, 25, .55) 55%, rgba(3, 15, 25, .92) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.hero h1 { margin-bottom: 20px; text-wrap: balance; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--aqua), var(--teal), var(--sand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { font-size: 1.14rem; color: #c6e2ee; max-width: 580px; margin-inline: auto; }
.hero .eyebrow { justify-content: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; justify-content: center; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px clamp(16px, 2.6vw, 30px);
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero__stats b {
  display: block;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.hero__stats span { font-size: .86rem; color: var(--muted); }
@media (min-width: 780px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------- Живий відеофон ---------------- */
/* Фіксований шар під усім вмістом: те саме відео тунелю, сильно притемнене,
   щоб між секціями фон «жив», але текст лишався читабельним. */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
/* Запасне фото: видно на мобільних, без JS і поки вантажиться перший ролик */
.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1583212292454-1fe6229603b7?auto=format&fit=crop&w=1280&q=45") center/cover no-repeat;
  filter: blur(3px) saturate(1.1) brightness(.88);
  transform: scale(1.06);
}
/* Ролики плейлиста змінюють один одного з плавним переходом */
.site-bg__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.1) brightness(.88);
  transform: scale(1.06);
  opacity: 1;
  transition: opacity .8s ease;
}
.site-bg__video.is-switching { opacity: 0; }
.site-bg__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 800px at 15% 0%, rgba(6, 40, 62, .4), transparent 65%),
    linear-gradient(180deg, rgba(3, 15, 25, .78) 0%, rgba(2, 11, 19, .86) 100%);
}

/* Відео вмикає JS лише на широких екранах і без prefers-reduced-motion.
   Доки (або якщо) воно не завантажилось — видно фото-постер і фон секції. */
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.bg-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
/* Текст по центру — тому й затемнення симетричне, найщільніше в середині */
.hero .bg-scrim {
  background:
    radial-gradient(80% 65% at 50% 48%, rgba(2, 13, 22, .86) 0%, rgba(2, 13, 22, .52) 72%, rgba(2, 13, 22, .42) 100%),
    linear-gradient(180deg, rgba(2, 13, 22, .5) 0%, rgba(2, 13, 22, .34) 100%);
}
.page-head .bg-scrim {
  background: linear-gradient(100deg, rgba(3, 16, 27, .95) 0%, rgba(3, 16, 27, .84) 50%, rgba(3, 16, 27, .58) 100%);
}
.page-head .wrap { position: relative; z-index: 2; }

.bg-toggle {
  position: absolute;
  right: 20px;
  bottom: 18px;
  z-index: 3;
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(3, 16, 27, .62);
  backdrop-filter: blur(6px);
  color: var(--foam);
  cursor: pointer;
  transition: background .18s, transform .18s;
}
.bg-toggle:hover { background: rgba(3, 16, 27, .85); transform: translateY(-2px); }
.bg-toggle:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.bg-toggle .i-play { display: none; }
.bg-toggle.is-paused .i-pause { display: none; }
.bg-toggle.is-paused .i-play { display: block; }

/* Промені світла + бульбашки */
.rays {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(178deg, rgba(120, 220, 255, .1) 0 3%, transparent 3.6%) 8% 0/22% 100% no-repeat,
    linear-gradient(174deg, rgba(120, 220, 255, .07) 0 2%, transparent 2.6%) 34% 0/26% 100% no-repeat,
    linear-gradient(183deg, rgba(120, 220, 255, .09) 0 2.4%, transparent 3%) 68% 0/24% 100% no-repeat;
  filter: blur(2px);
  animation: sway 14s ease-in-out infinite alternate;
}
@keyframes sway {
  from { transform: translateX(-14px) skewX(-1deg); }
  to   { transform: translateX(18px) skewX(1.5deg); }
}

.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.bubbles i {
  position: absolute;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .85), rgba(160, 230, 255, .12) 55%, transparent 70%);
  border: 1px solid rgba(255, 255, 255, .16);
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translate3d(0, 0, 0) scale(.7); opacity: 0; }
  12%  { opacity: .85; }
  100% { transform: translate3d(30px, -110vh, 0) scale(1.15); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rays, .bubbles i { animation: none; }
  .bubbles { display: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------------- Картки / сітки ---------------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(8px);
  /* тонкий світлий кант зверху — картка виглядає як скло, а не як прямокутник */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, .45);
  background: var(--card-2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 22px 44px rgba(0, 0, 0, .4),
    0 0 0 1px rgba(125, 211, 252, .12);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .96rem; }

.card__icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background:
    linear-gradient(150deg, rgba(125, 211, 252, .2) 0%, rgba(45, 212, 191, .07) 55%, rgba(255, 255, 255, .02) 100%);
  border: 1px solid rgba(125, 211, 252, .26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 10px 22px rgba(2, 18, 30, .35);
  margin-bottom: 20px;
  transition: border-color .22s ease, transform .22s ease;
}
.card:hover .card__icon {
  border-color: rgba(125, 211, 252, .5);
  transform: translateY(-2px);
}
/* Тонка лінія на дрібних деталях не «пливе» лише з рівними краями */
.card__icon svg { shape-rendering: geometricPrecision; }

/* ---------------- Особливі програми (акцентний колір задається через --accent у style=) ---------------- */
.experience {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.experience::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 12% -10%, var(--accent-soft), transparent 62%);
  pointer-events: none;
}
.experience:hover {
  transform: translateY(-5px);
  border-color: var(--accent-line);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .38), 0 0 0 1px var(--accent-soft);
}

.experience__top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.experience__icon {
  width: 52px; height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  box-shadow: 0 8px 20px var(--accent-shadow);
}
.experience__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.experience__badge::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.experience h3 { position: relative; margin-bottom: .5em; }
.experience p { position: relative; color: var(--muted); font-size: .95rem; margin-bottom: 22px; flex: 1; }
.experience__footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.experience__price { font-size: 1.28rem; font-weight: 800; color: #fff; line-height: 1.1; }
.experience__price span { display: block; margin-top: 4px; font-size: .78rem; font-weight: 500; color: var(--muted); }
.experience__link {
  font-size: .88rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: color .18s ease;
}
.experience__link:hover { color: #fff; }

/* Картка мешканця */
.animal {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.animal__art {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #0a4a6b, #062a41);
  overflow: hidden;
}
/* Затемнення знизу — щоб фото стикувалося з тілом картки */
.animal__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 20, 33, 0) 40%, rgba(6, 24, 38, .75) 100%);
}
.animal__art svg { width: 62%; height: auto; position: relative; z-index: 1; transition: transform .35s ease; }
.animal:hover .animal__art svg { transform: scale(1.08) rotate(-3deg); }

/* Фото мешканця */
.animal__art img,
.animal__art .bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.animal:hover .animal__art img,
.animal:hover .animal__art .bg-video { transform: scale(1.06); }

.animal__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.animal__lat { font-size: .8rem; font-style: italic; color: var(--teal); margin: -6px 0 10px; }
/* Опис росте на всю вільну висоту картки, тому список фактів завжди
   пришвартований до низу — рядки з різною довжиною тексту вирівнюються по факт-блоку. */
.animal__body > p:not(.animal__lat) { flex: 1; }
.animal__facts {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  font-size: .87rem;
  color: var(--muted);
  display: grid;
  gap: 6px;
}
.animal__facts li { display: flex; justify-content: space-between; gap: 12px; }
.animal__facts b { color: var(--foam); font-weight: 600; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(45, 212, 191, .16);
  color: var(--teal);
  border: 1px solid rgba(45, 212, 191, .3);
}
.tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.tag--warn { background: rgba(255, 138, 101, .16); color: var(--coral); border-color: rgba(255, 138, 101, .34); }
.tag--sand { background: rgba(252, 217, 161, .14); color: var(--sand); border-color: rgba(252, 217, 161, .3); }

/* ---------------- Фільтри ---------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
/* Довгий список — тримаємо фільтри під рукою при прокрутці.
   width: fit-content + margin-inline: auto — овал стискається до вмісту
   й лишається по центру, замість розтягуватися на всю ширину з порожнечею. */
.filters--sticky {
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 20;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  justify-content: center;
  padding: 12px;
  border-radius: 999px;
  background: rgba(6, 24, 38, .8);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .3);
}
@media (max-width: 700px) {
  .filters--sticky { border-radius: var(--radius); }
}
.filter {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
  font: inherit;
  font-size: .92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s ease;
}
.filter:hover { color: #fff; border-color: rgba(56, 189, 248, .5); }
.filter.is-active {
  background: linear-gradient(135deg, var(--aqua), var(--teal));
  color: #03212e;
  font-weight: 700;
  border-color: transparent;
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* ---------------- Таблиця розкладу ---------------- */
/* Щільніший фон + розмиття, щоб блок не зливався з рухомим фоном сторінки */
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(56, 189, 248, .3);
  background: rgba(10, 36, 56, .88);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .35);
}
table { width: 100%; border-collapse: collapse; min-width: 620px; background: transparent; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th {
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #7fe3d8;
  background: rgba(45, 212, 191, .14);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, .028); }
tbody tr:hover { background: rgba(56, 189, 248, .1); }
td time { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

/* ---------------- Форми ---------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--foam); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(2, 14, 24, .6);
  color: var(--foam);
  font: inherit;
  font-size: .96rem;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .16);
}
.field input::placeholder, .field textarea::placeholder { color: #6d93a8; }
.field select option { background: #082638; color: var(--foam); }
.field small { font-size: .78rem; color: var(--muted); }
.field .error { font-size: .8rem; color: var(--coral); min-height: 1em; }
.field.has-error input,
.field.has-error select { border-color: var(--coral); }

.row-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.checkline { display: flex; align-items: flex-start; gap: 11px; font-size: .9rem; color: var(--muted); }
.checkline input { width: 18px; height: 18px; accent-color: var(--teal); flex: none; margin-top: 3px; }

.notice {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(45, 212, 191, .12);
  border: 1px solid rgba(45, 212, 191, .35);
  color: #d3fbf4;
  font-size: .94rem;
}
.notice[hidden] { display: none; }

/* ---------------- Тарифи ----------------
   Акцентний колір рівня задається через --tier / --tier-soft / --tier-line
   в атрибуті style= кожної картки (той самий прийом, що й для .experience). */
.price {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Непрозорий океанічний фон — картка не зливається з рухомим відео позаду */
  background: linear-gradient(165deg, rgba(9, 37, 55, .95) 0%, rgba(4, 15, 24, .97) 100%);
  border-color: rgba(56, 189, 248, .16);
}
/* Кольорова смуга рівня зверху картки */
.price::before {
  content: "";
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, var(--tier, var(--teal)), transparent);
}
/* Ледь помітна «підводна» пляма в кутку, у колір рівня */
.price::after {
  content: "";
  position: absolute;
  right: -34px; bottom: -34px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tier, var(--teal)) 0%, transparent 70%);
  opacity: .12;
  pointer-events: none;
}
.price--featured {
  border-color: rgba(45, 212, 191, .55);
  background: linear-gradient(165deg, rgba(12, 62, 78, .97) 0%, rgba(4, 18, 28, .98) 100%);
  box-shadow:
    0 26px 60px rgba(2, 20, 34, .5),
    0 0 0 1px rgba(45, 212, 191, .3),
    0 0 46px rgba(45, 212, 191, .14);
}
.price--featured:hover {
  box-shadow:
    0 30px 70px rgba(2, 20, 34, .55),
    0 0 0 1px rgba(45, 212, 191, .45),
    0 0 60px rgba(45, 212, 191, .2);
}
.price__badge {
  position: absolute;
  top: 18px; right: 18px;
  background: linear-gradient(135deg, var(--aqua), var(--teal));
  color: #032430;
  border-color: transparent;
  font-weight: 800;
}
.price__badge::before { background: #032430; }

.price h3 { position: relative; }
/* inline-flex + align-items:baseline — цифра і значок ₴ рівняються по одній лінії
   незалежно від розміру шрифту; сирий <sup> тут «розповзався», бо vertical-align:super
   з браузера рахує зсув від font-size батька й на 2.7rem його зносило вгору. */
.price__amount {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 2.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin: 12px 0 0;
}
.price__amount sup { font-size: .92rem; font-weight: 700; color: var(--tier, var(--teal)); }
.price__unit { position: relative; margin: 5px 0 0; font-size: .8rem; color: var(--muted); }
.price ul {
  position: relative;
  list-style: none;
  margin: 20px 0 26px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
  display: grid;
  gap: 12px;
  font-size: .93rem;
  color: var(--muted);
  flex: 1;
}
.price li { display: flex; gap: 10px; align-items: flex-start; }
.price li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: var(--tier-soft, rgba(45, 212, 191, .18));
  border: 1px solid var(--tier-line, rgba(45, 212, 191, .4));
  background-image: linear-gradient(45deg, transparent 42%, var(--tier, var(--teal)) 42%, var(--tier, var(--teal)) 58%, transparent 58%),
                    linear-gradient(-45deg, transparent 42%, var(--tier, var(--teal)) 42%, var(--tier, var(--teal)) 58%, transparent 58%);
  background-size: 8px 8px, 8px 8px;
  background-position: 4px 7px, 8px 5px;
  background-repeat: no-repeat;
}

.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, .1);
  border: 1px solid var(--line);
}
.total span { color: var(--muted); font-size: .92rem; }
.total b { font-size: 1.7rem; color: #fff; }

/* ---------------- Відгуки та зірки ---------------- */
/* .stars — це <p>, а правило .card p (0,1,1) специфічніше за самотній .stars (0,1,0),
   тому колір усередині карток перебивався приглушеним --muted. .card .stars перемагає. */
.stars,
.card .stars {
  color: var(--gold);
  font-size: 1.05rem;
  letter-spacing: 3px;
  line-height: 1;
  margin: 0;
  text-shadow: 0 0 12px rgba(255, 193, 61, .35);
}
.stars__empty,
.card .stars__empty { color: rgba(255, 193, 61, .26); text-shadow: none; }

.review { display: flex; flex-direction: column; margin: 0; }
.review .stars { margin-bottom: 14px; }
.review__text {
  color: var(--foam);
  font-size: 1.02rem;
  margin: 0;
  flex: 1;
}
.review__author {
  margin-top: 18px;
  color: var(--teal);
  font-size: .86rem;
}

.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 18px 0 0;
}
.rating b { font-size: 2rem; color: #fff; line-height: 1; }
.rating .stars { font-size: 1.2rem; }
.rating__count { color: var(--muted); font-size: .9rem; }

/* ---------------- Відеоогляд ---------------- */
.tour {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, .3);
  background: #04121e;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .45);
}
.tour__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #04121e;
  object-fit: cover;
}

.tour__chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
  margin-top: 16px;
}
.tour__chapter {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.tour__chapter b {
  display: block;
  margin-bottom: 4px;
  color: var(--foam);
  font-size: .98rem;
}
.tour__chapter span { font-size: .84rem; }
.tour__chapter:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, .45); }
.tour__chapter:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.tour__chapter.is-active {
  background: rgba(45, 212, 191, .14);
  border-color: rgba(45, 212, 191, .5);
}
.tour__chapter.is-active b { color: #fff; }

.tour__note {
  margin: 22px auto 0;
  max-width: 760px;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}

/* ---------------- Опікунство ---------------- */
.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.counter {
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(56, 189, 248, .13), rgba(255, 255, 255, .03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.counter b {
  display: block;
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.counter span { font-size: .9rem; color: var(--muted); }

.patron__price {
  margin: 14px 0 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}
.patron__price span {
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
}
.patron__list {
  list-style: none;
  margin: 18px 0 22px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: .92rem;
  color: var(--muted);
  flex: 1;
}
.patron__list li { display: flex; gap: 10px; align-items: flex-start; }
.patron__list li::before {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(45, 212, 191, .18);
  background-image:
    linear-gradient(45deg, transparent 44%, var(--teal) 44%, var(--teal) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--teal) 44%, var(--teal) 56%, transparent 56%);
  background-size: 7px 7px, 7px 7px;
  background-position: 3px 6px, 6px 4px;
  background-repeat: no-repeat;
}
/* Картка сувеніру: опис тягнеться, ціна й кнопка вирівняні по низу */
.shop .animal__body > p:first-of-type { flex: 1; }
.shop__price {
  margin: 16px 0 18px;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  color: var(--teal);
}
.shop__price span {
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
}

.patron__note {
  margin: 26px 0 0;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(45, 212, 191, .28);
  background: rgba(45, 212, 191, .08);
  color: var(--muted);
  font-size: .9rem;
}

/* ---------------- Правила відвідування ---------------- */
.rules-card { padding: 28px 26px 30px; }

.rules-card__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem;
}
.rules-card__title span {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 1rem;
  font-weight: 700;
}
.rules-card__title--yes { color: var(--teal); }
.rules-card__title--no { color: var(--coral); }

.rule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.rule { display: flex; align-items: flex-start; gap: 14px; }

/* Знак: піктограма в рамці + маленька позначка «можна / не можна» в куті */
.rule__sign {
  position: relative;
  width: 44px; height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid;
}
.rule__sign::after {
  position: absolute;
  right: -6px; bottom: -6px;
  width: 19px; height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid;
  background: #08202f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.rule__sign--yes {
  color: var(--teal);
  background: rgba(45, 212, 191, .12);
  border-color: rgba(45, 212, 191, .34);
}
.rule__sign--yes::after { content: "✓"; color: var(--teal); border-color: rgba(45, 212, 191, .55); }
.rule__sign--no {
  color: var(--coral);
  background: rgba(255, 138, 101, .12);
  border-color: rgba(255, 138, 101, .34);
}
.rule__sign--no::after { content: "✕"; color: var(--coral); border-color: rgba(255, 138, 101, .55); }

.rule__text { font-size: .94rem; color: var(--muted); }
.rule__text b { display: block; color: var(--foam); font-weight: 600; margin-bottom: 2px; }

.rules-note {
  margin: 26px 0 0;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 138, 101, .28);
  background: rgba(255, 138, 101, .08);
  color: var(--muted);
  font-size: .9rem;
}

/* ---------------- Акордеон ---------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 20px 44px 20px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  transition: color .18s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--aqua); }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--teal);
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 76ch; }

/* ---------------- Спліт-блок ---------------- */
.split {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.split__art {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #0b4a6b, #05243a);
  padding: 30px;
  box-shadow: var(--shadow);
}
/* Варіант зі суцільним фото замість тексту */
.split__art--photo { padding: 0; overflow: hidden; }
.split__art--photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------------- Заголовок сторінки ---------------- */
.page-head {
  padding: clamp(48px, 7vw, 84px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
/* Заголовок сторінки — по центру: і текст, і сама колонка з ним */
.page-head .wrap { text-align: center; }
.page-head .crumbs,
.page-head .eyebrow,
.page-head h1,
.page-head p { margin-inline: auto; }
.page-head .eyebrow { justify-content: center; }
.page-head p { max-width: 620px; color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--aqua); }

/* ---------------- CTA ---------------- */
.cta {
  text-align: center;
  padding: clamp(44px, 6vw, 76px) clamp(22px, 5vw, 60px);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(56, 189, 248, .18), rgba(45, 212, 191, .12));
  border: 1px solid rgba(56, 189, 248, .3);
}
.cta h2 { margin-bottom: .5em; }
.cta p { color: #c6e2ee; max-width: 520px; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }

/* ---------------- Футер ---------------- */
/* Хвиля замість прямої лінії на межі з футером */
.wave-divider {
  line-height: 0;
  margin-bottom: -1px;
  pointer-events: none;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: clamp(38px, 4.5vw, 76px);
}
.wave-divider path { fill: rgba(2, 10, 18, .6); }
.wave-divider .wave-back { fill: rgba(56, 189, 248, .1); }

.footer {
  margin-top: 20px;
  padding: clamp(34px, 4.5vw, 56px) 0 28px;
  background: rgba(2, 10, 18, .6);
  font-size: .93rem;
}
.footer__grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
  margin-bottom: 34px;
}
@media (min-width: 680px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}
.footer h4 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a, .footer p { color: var(--muted); }
.footer a:hover { color: var(--aqua); }
.footer__bottom {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: #7fa5ba;
  font-size: .85rem;
}
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  transition: background .18s, transform .18s;
}
.socials a:hover { background: rgba(56, 189, 248, .2); transform: translateY(-3px); }

/* ---------------- Поява при скролі ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- Ефекти: бульбашки за курсором і сплеск на кнопках ---------------- */
.fx-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  pointer-events: none;
}

.fx-bubble {
  position: absolute;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .92), rgba(125, 211, 252, .3) 55%, rgba(125, 211, 252, 0) 72%);
  border: 1px solid rgba(186, 230, 253, .62);
  will-change: transform, opacity;
  animation: fx-rise var(--d) cubic-bezier(.25, .6, .35, 1) forwards;
}
@keyframes fx-rise {
  0%   { transform: translate3d(0, 0, 0) scale(.45); opacity: 0; }
  18%  { opacity: .9; }
  100% { transform: translate3d(var(--dx), var(--dy), 0) scale(1.15); opacity: 0; }
}

/* Хвиля розходиться від місця кліку всередині кнопки */
.btn, .filter { position: relative; overflow: hidden; }
.fx-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  opacity: .9;
  background: radial-gradient(circle, rgba(255, 255, 255, .5) 0%, rgba(125, 211, 252, .3) 42%, rgba(125, 211, 252, 0) 70%);
  animation: fx-ripple .55s ease-out forwards;
}
@keyframes fx-ripple {
  to { transform: scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-layer { display: none; }
}

/* ---------------- Дрібні деталі ---------------- */
::selection { background: rgba(45, 212, 191, .3); color: #fff; }

/* Липка шапка не має накривати блок, до якого ведуть якорі (#rules, #booking, #faq) */
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ---------------- Утиліти ---------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--teal);
  color: #032027;
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: #032027; }
