/* ============================================
   LeSKiVVasyL — style.css  v2.0
   Premium Dark Minimalism · Mobile-first
   Nike × Apple aesthetic
   ============================================ */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Palette */
  --black: #ddeeff;
  --surface: #cce4f8;
  --surface-2: #b8d8f5;
  --surface-3: #a2caf0;
  --accent: #1a6fd4;
  --accent-dim: rgba(26, 111, 212, 0.12);
  --white: #0d2a4a;
  --muted: #4a7aaa;
  --muted-2: #b0d0ea;
  --border: rgba(0, 0, 0, 0.07);
  --border-2: rgba(0, 0, 0, 0.12);

  /* Typography */
  --font-head: "Barlow Condensed", system-ui, sans-serif;
  --font-head-weight: 800;
  --font-sub: "DM Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;


  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --header-h: 72px;
  --section-v: clamp(5rem, 10vw, 9rem);
  --radius: 2px;
}

/* ============================================
   RESET
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* All Barlow Condensed elements — ExtraBold */
.btn,
.mobile-nav__link,
.float-cta,
.about__stat-num,
.hero__name-line,
.hero__stat-num,
.bdays__title,
.sports__title,
.about__title,
.petanque__title,
.rehab__title,
.merch__title,
.testimonials__title,
.booking__title,
.booking__success-text,
.footer__logo,
.place__num,
.sports__card-link,
.place__arrow,
.marquee__text {
  font-weight: var(--font-head-weight);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top));
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  overflow-y: auto;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--white);
  background: var(--black);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
}

/* Subheadings — DM Sans Medium */
.sports__card-name,
.petanque__service-title,

.place__panel-title,
.merch__card-name,
.test-card__author,
.booking__contact-link,
.footer__heading {
  font-family: var(--font-sub);
  font-weight: 500;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

main#main {
  overflow-x: clip;
  max-width: 100%;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.25rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

@media (min-width: 480px) {
  .container {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
}

@media (min-width: 768px) {
  .container {
    padding: 0 2.5rem;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 4rem;
  }
}

.label {
  font-family: var(--font-sub);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.heading {
  font-family: var(--font-head);
  font-weight: var(--font-head-weight);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.02;
  color: var(--white);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  z-index: 1100;
  transform-origin: left;
  transition: width 0.1s linear;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--header-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  z-index: 1000;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header--stuck {
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  z-index: 1001;
  transition: opacity 0.2s;
}

.header__logo:hover {
  opacity: 0.85;
}

.header__logo-img {
  height: 40px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* Desktop nav */
.header__nav {
  display: none;
}

.header__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__link {
  font-family: var(--font-sub);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color 0.25s ease;
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.header__link:hover,
.header__link--active {
  color: var(--white);
}

.header__link:hover::after,
.header__link--active::after {
  width: 100%;
}

/* Nav CTA button */
.btn--nav {
  font-size: 0.72rem !important;
  padding: 0.55rem 1.2rem !important;
  letter-spacing: 0.1em;
  margin-left: 0.5rem;
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  z-index: 1001;
  padding: 10px;
  margin: -4px -4px -4px 0;
}

.burger__line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.35s var(--ease), opacity 0.35s ease;
  transform-origin: center;
}

.burger--open .burger__line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger--open .burger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger--open .burger__line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(8, 8, 8, 0.98);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-nav--open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__link {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.85rem 1rem;
  min-height: 48px;
  border-bottom: 1px solid var(--border);
  width: 80%;
  text-align: center;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav__link:hover {
  color: var(--accent);
}

.mobile-nav__link:last-child {
  border-bottom: none;
}

.mobile-nav__link--cta {
  color: var(--accent);
  border-bottom: none;
  margin-top: 1rem;
  font-size: clamp(1.4rem, 5vw, 2rem);
}

@media (min-width: 768px) {
  .header__nav {
    display: block;
  }

  .burger {
    display: none;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 2.25rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn--accent {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

.btn--accent:hover {
  background: #ffd426;
  border-color: #ffd426;
  box-shadow: 0 0 32px rgba(245, 196, 0, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(245, 245, 240, 0.2);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.btn--dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn--dark:hover {
  background: #111;
  border-color: #111;
}

.btn--lg {
  font-size: 1.05rem;
  padding: 1.1rem 2.5rem;
}

.btn--sm {
  font-size: 0.8rem;
  padding: 0.6rem 1.3rem;
}

.btn--full {
  width: 100%;
}

/* ============================================
   HERO — Cinematic Full-Screen
   ============================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  background: var(--black);
}

/* Animated gradient mesh */
.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: orbPulse 12s ease-in-out infinite;
}

.hero__orb--1 {
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(245, 196, 0, 0.12) 0%, transparent 70%);
  top: -15%;
  left: -10%;
  animation-delay: 0s;
  animation-duration: 14s;
}

.hero__orb--2 {
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(245, 196, 0, 0.07) 0%, transparent 70%);
  bottom: -10%;
  right: -5%;
  animation-delay: 4s;
  animation-duration: 18s;
}

.hero__orb--3 {
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, rgba(245, 196, 0, 0.05) 0%, transparent 70%);
  top: 30%;
  right: 20%;
  animation-delay: 8s;
  animation-duration: 10s;
}

@keyframes orbPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1) translate(0, 0);
  }

  33% {
    opacity: 1;
    transform: scale(1.08) translate(3%, -3%);
  }

  66% {
    opacity: 0.7;
    transform: scale(0.96) translate(-2%, 2%);
  }
}

/* Subtle dot-grid background */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  width: 100%;
}

/* Eyebrow tags */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero__tag {
  font-family: var(--font-sub);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__sep {
  color: var(--accent);
  font-size: 0.8rem;
}

/* Giant name */
.hero__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}

.hero__name-line {
  font-family: var(--font-head);
  font-size: clamp(72px, 16vw, 240px);
  line-height: 0.87;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--white);
  display: block;
  white-space: nowrap;
  /* split text — each char animated via JS */
}

.hero__name-line--accent {
  color: var(--accent);
}

.hero__name-ski {
  color: var(--accent);
}

.hero__name-y {
  font-size: 0.75em;
  vertical-align: baseline;
}

/* Char animation (applied via JS) */
.hero__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px) skewY(4deg);
  animation: charReveal 0.7s var(--ease-out) forwards;
}

@keyframes charReveal {
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 1s forwards;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 1.2s forwards;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* Stats strip */
.hero__stats-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(16px);
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 1.4s forwards;
}

.hero__stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1.5rem 2.5rem;
  flex: 1;
  max-width: 280px;
  text-align: center;
}

.hero__stat-num {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
  color: var(--accent);
}

.hero__stat-label {
  font-family: var(--font-sub);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: center;
}

.hero__stat-sep {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* Scroll cue */
.hero__scroll-cue {
  position: absolute;
  right: 2.5rem;
  bottom: 5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out) 1.6s forwards;
}

.hero__scroll-text {
  font-family: var(--font-sub);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-lr;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.3);
  }
}

@media (max-width: 480px) {
  .hero__scroll-cue {
    display: none;
  }

  .hero__content {
    padding: calc(var(--header-h) + 1.25rem) 1rem 6rem;
    gap: 1.25rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }

  .hero__stats-strip {
    flex-wrap: nowrap;
    gap: 0;
  }
}

/* Mobile S — ≤ 320px */
@media (max-width: 320px) {
  .hero__name-line {
    font-size: clamp(100px, 32vw, 130px);
  }

  .hero__stat-item {
    padding: 0.35rem 0.3rem;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .hero__stat-num {
    font-size: 1.3rem;
  }

  .hero__stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

  .hero__stat-sep {
    height: 36px;
  }
}

/* Mobile M — 321px–375px */
@media (min-width: 321px) and (max-width: 375px) {
  .hero__name-line {
    font-size: clamp(120px, 34vw, 155px);
  }

  .hero__stat-item {
    padding: 0.4rem 0.5rem;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .hero__stat-num {
    font-size: 1.4rem;
  }

  .hero__stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.09em;
  }

  .hero__stat-sep {
    height: 40px;
  }
}

/* Mobile L — 376px–480px */
@media (min-width: 376px) and (max-width: 480px) {
  .hero__name-line {
    font-size: clamp(130px, 38vw, 140px);
  }

  .hero__stat-item {
    padding: 0.5rem 0.6rem;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  .hero__stat-num {
    font-size: 1.6rem;
  }

  .hero__stat-label {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
  }

  .hero__stat-sep {
    height: 48px;
  }
}

@media (min-width: 768px) {
  .hero__content {
    padding-bottom: 8rem;
  }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: var(--section-v) 0;
  background: var(--black);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
    align-items: center;
  }
}

.about__visual {
  position: relative;
}

.about__photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.about__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  background: var(--surface-3);
  display: block;
}

.about__photo-shine,
.about__photo-border {
  display: none;
}

/* Decorative accent frame */
.about__deco {
  position: absolute;
  bottom: -1.25rem;
  left: -1.25rem;
  width: 60%;
  height: 60%;
  border: 2px solid var(--accent);
  border-right: none;
  border-top: none;
  border-radius: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 0;
  max-width: 540px;
}

.about__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
  max-width: 520px;
}

.about__quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--white);
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 0.5rem 0;
  line-height: 1.6;
}

.about__stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.about__stat {
  padding-left: 1.1rem;
  border-left: 2px solid var(--accent);
}

.about__stat-num {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--white);
}

.about__stat-label {
  font-family: var(--font-sub);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
}

.marquee__track {
  display: flex;
  gap: 0;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
  animation-duration: 36s;
}

.marquee__text {
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  padding-right: 2rem;
  flex-shrink: 0;
}

.marquee__text .sep {
  color: var(--accent);
  padding: 0 0.8rem;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============================================
   SPORTS — Filterable grid
   ============================================ */
.sports {
  padding: var(--section-v) 0;
  background: var(--surface);
}

.sports__header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .sports__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}

.sports__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0;
}

/* Filter pills */
.sports__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .sports__filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    /* Додаємо відступ справа щоб остання кнопка не обрізалась */
    padding-right: 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .sports__filters::-webkit-scrollbar {
    display: none;
  }

  .sports__filter {
    flex-shrink: 0;
  }
}

.sports__filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-sub);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-2);
  background: transparent;
  border-radius: 100px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.sports__filter:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.sports__filter--active {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

.sports__filter--active:hover {
  background: #ffd426;
  border-color: #ffd426;
}

.sports__filter-ico {
  flex-shrink: 0;
}

/* Sports grid */
.sports__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
}

/* Sports card */
.sports__card {
  position: relative;
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition:
    background 0.35s ease,
    transform 0.35s var(--ease);
  overflow: hidden;
}

@media (min-width: 640px) {
  .sports__card {
    padding: 2.25rem 2rem;
  }
}

.sports__card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.sports__card:hover {
  background: var(--surface-2);
  transform: translateY(-3px);
}

.sports__card:hover::before {
  width: 100%;
}

/* Filtered cards: immediately collapse, animate entrance */
.sports__card[hidden] {
  display: none !important;
}

/* Entrance animation when a card is revealed by filter */
.sports__card.is-showing {
  animation: cardReveal 0.5s var(--ease-out) both;
  animation-delay: var(--stagger, 0s);
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.sports__card-badge {
  font-family: var(--font-sub);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}

.sports__card-icon {
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}

.sports__card:hover .sports__card-icon {
  transform: scale(1.12);
}

.sports__card-name {
  font-family: var(--font-sub);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--white);
}

.sports__card-desc {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.75;
  flex: 1;
}

.sports__card-link {
  font-family: var(--font-sub);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease, gap 0.2s ease;
}

.sports__card:hover .sports__card-link {
  opacity: 1;
  transform: none;
}

.sports__card-link:hover {
  gap: 0.8rem;
}

/* ============================================
   PÉTANQUE
   ============================================ */
.petanque {
  padding: var(--section-v) 0;
  background: var(--black);
}

.petanque__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .petanque__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
}

.petanque__intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.petanque__photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  width: 100%;
}

.petanque__photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  background: var(--surface-3);
}

.petanque__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.petanque__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
  max-width: 480px;
}

.petanque__services {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.petanque__service {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  transition: padding-left 0.3s ease;
}

.petanque__service:first-child {
  border-top: 1px solid var(--border);
}

.petanque__service:hover {
  padding-left: 0.75rem;
}

.petanque__service-num {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.6;
  letter-spacing: 0.05em;
  padding-top: 0.15rem;
  flex-shrink: 0;
}

.petanque__service-title {
  font-family: var(--font-sub);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.petanque__service-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ============================================
   BIRTHDAYS — Accent band
   ============================================ */
.bdays {
  padding: var(--section-v) 0;
  background: var(--surface-2);
  color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bdays__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .bdays__inner {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
}

.bdays__text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bdays__title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--white);
  line-height: 1;
}

/* Override the label color inside this dark section */
.bdays .label {
  color: var(--accent);
}

.bdays__desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 440px;
}

.bdays__pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-content: flex-start;
}

.bdays__pill {
  font-family: var(--font-sub);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--border-2);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.bdays__pill:hover {
  border-color: var(--white);
  color: var(--white);
}

.bdays__pill--age {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: var(--accent-dim);
}

.bdays__pill--age:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   REHAB
   ============================================ */
.rehab {
  padding: var(--section-v) 0;
  background: var(--black);
}

.rehab__top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.rehab__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

/* Editorial row list */
.rehab__list {
  display: flex;
  flex-direction: column;
}

.rehab__row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out),
    background 0.25s ease,
    padding 0.25s ease,
    margin 0.25s ease;
  transition-delay: var(--delay, 0s);
}

/* Rehab rows — виїзд з-за краю екрану */
.rehab__row.reveal[data-reveal="left"] {
  transform: translateX(-80px);
}

.rehab__row.reveal[data-reveal="right"] {
  transform: translateX(80px);
}

.rehab__row--image-left {
  grid-template-areas: "img content";
}

.rehab__row--image-right {
  grid-template-areas: "content img";
}

@media (min-width: 768px) {
  .rehab__row {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2.25rem 0;
  }

  .rehab__row--image-left .rehab__row-img {
    grid-area: img;
  }

  .rehab__row--image-left .rehab__row-content {
    grid-area: content;
  }

  .rehab__row--image-right .rehab__row-content {
    grid-area: content;
  }

  .rehab__row--image-right .rehab__row-img {
    grid-area: img;
  }
}

@media (max-width: 767px) {
  .rehab__row--image-right .rehab__row-img {
    order: -1;
  }
}

.rehab__row:first-child {
  border-top: 1px solid var(--border);
}

.rehab__row:hover {
  background: var(--surface);
  padding-left: 1rem;
  padding-right: 1rem;
  margin: 0 -1rem;
}

@media (max-width: 767px) {
  .rehab__row:hover {
    padding-left: 0;
    padding-right: 0;
    margin: 0;
  }
}

/* Image placeholder */
.rehab__row-img {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.rehab__row-img--slider {
  position: relative;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: zoom-in;
}

.rehab__row-img--slider:active {
  cursor: zoom-in;
}

/* Zoom-overlay на rehab слайдері — аналогічно merch */
.rehab__row-img--slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(8, 8, 8, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.rehab__row:hover .rehab__row-img--slider::after {
  opacity: 1;
}

/* SVG-іконка через background-image (не потребує змін HTML) */
.rehab__row-img--slider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%) scale(0.7);
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23F5F5F0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}

.rehab__row:hover .rehab__row-img--slider::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rehab__slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.rehab__slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s var(--ease);
}

.rehab__slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}

.rehab__slider-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rehab__slider-arrows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  pointer-events: none;
  z-index: 2;
}

.rehab__slider-arrow {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  background: rgba(8, 8, 8, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 5;
}

.rehab__slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(26, 111, 212, 0.4);
}

.rehab__slider-dots {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}

.rehab__slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.rehab__slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.rehab__slider-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.rehab__row-placeholder {
  font-family: var(--font-sub);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.4;
}

.rehab__row-content {
  display: grid;
  grid-template-columns: 3rem 2.5rem 1fr;
  align-items: center;
  gap: 0 1.75rem;
}

@media (min-width: 768px) {
  .rehab__row-content {
    grid-template-columns: 3.5rem 2.5rem 1fr 2fr;
    gap: 0 2.5rem;
  }
}

.rehab__row-num {
  font-family: var(--font-sub);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.7;
}

.rehab__row-icon {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.25s ease;
}

.rehab__row:hover .rehab__row-icon {
  color: var(--accent);
}

.rehab__row-title {
  font-family: var(--font-head);
  font-weight: var(--font-head-weight);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  transition: color 0.25s ease;
}

.rehab__row:hover .rehab__row-title {
  color: var(--accent);
}

.rehab__row-text {
  display: none;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .rehab__row-text {
    display: block;
  }
}

/* ============================================
   FIND YOUR PLACE — Panels
   ============================================ */
.place {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
}

@media (min-width: 640px) {
  .place {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .place {
    grid-template-columns: repeat(5, 1fr);
  }
}

.place__panel {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  transition: background 0.35s ease;
}

.place__panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.place__panel:hover {
  background: var(--surface-2);
}

.place__panel:hover::after {
  transform: scaleX(1);
}

.place__panel-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  min-height: 240px;
  height: 100%;
  position: relative;
}

@media (min-width: 480px) {
  .place__panel-inner {
    padding: 2.5rem 2rem;
    min-height: 280px;
  }
}

@media (min-width: 640px) {
  .place__panel-inner {
    min-height: 340px;
    padding: 2.75rem 2.5rem;
  }
}

/* Large background number */
.place__num {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: var(--font-head);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  color: var(--white);
  opacity: 0.04;
  letter-spacing: 0.02em;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.35s ease;
}

.place__panel:hover .place__num {
  opacity: 0.07;
}

.place__panel-sub {
  font-family: var(--font-sub);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.place__panel-title {
  font-family: var(--font-head);
  font-weight: var(--font-head-weight);
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

@media (min-width: 1024px) {
  .place__panel-title {
    font-size: 1.2rem;
  }
}

.place__panel:hover .place__panel-title {
  color: var(--accent);
}

.place__arrow {
  font-family: var(--font-head);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  transition: color 0.25s ease, gap 0.25s ease;
}

.place__panel:hover .place__arrow {
  color: var(--accent);
  gap: 0.9rem;
}

/* ============================================
   MERCH — E-commerce style
   ============================================ */
.merch {
  padding: var(--section-v) 0;
  background: var(--black);
}

.merch__header {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .merch__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* ============================================
   FEDERATIONS
   ============================================ */
.federations {
  padding: var(--section-v) 0;
  background: var(--black);
}

.federations__header {
  margin-bottom: 3rem;
}

.federations__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-2);
}

@media (max-width: 640px) {
  .federations__grid {
    grid-template-columns: 1fr;
  }
}

.fed-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2.5rem 2rem;
  background: var(--surface);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.fed-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.4s var(--ease);
}

.fed-card:hover {
  background: var(--surface-2);
  transform: translateY(-3px);
}

.fed-card:hover::before {
  width: 100%;
}

.fed-card__abbr {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.04em;
}

.fed-card__name {
  font-family: var(--font-sub);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.fed-card__link {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: letter-spacing 0.2s var(--ease);
}

.fed-card:hover .fed-card__link {
  letter-spacing: 0.08em;
}

.merch__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: none;
}

.merch__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

@media (min-width: 768px) {
  .merch__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .merch__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.merch__card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s ease;
}

.merch__card:hover {
  background: var(--surface-2);
}

.merch__card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface-3);
}

/* Merch slider (дитячий вітамінний напій) */
.merch__card--slider .merch__card-img-wrap {
  cursor: grab;
}

.merch__card--slider .merch__card-img-wrap:active {
  cursor: grabbing;
}

.merch__slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.merch__slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s var(--ease);
}

.merch__slide {
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}

.merch__slide img {
  display: block;
}

.merch__slider-arrows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  pointer-events: none;
  z-index: 2;
}

.merch__slider-arrow {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  background: rgba(8, 8, 8, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 5;
}

.merch__slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(26, 111, 212, 0.4);
}

.merch__slider-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
}

.merch__slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.merch__slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.merch__slider-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.merch__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.merch__card:hover .merch__card-img {
  transform: scale(1.08);
}

/* Hover overlay — zoom icon */
.merch__card {
  cursor: zoom-in;
}

.merch__card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.45);
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.merch__card:hover .merch__card-overlay {
  opacity: 1;
}

.merch__card-overlay svg {
  transform: scale(0.7);
  transition: transform 0.35s var(--ease);
}

.merch__card:hover .merch__card-overlay svg {
  transform: scale(1);
}

.merch__card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.merch__card-name {
  font-family: var(--font-sub);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.merch__card:hover .merch__card-name {
  color: var(--white);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__arrow[hidden] {
  display: none !important;
}

.lightbox.is-open .lightbox__backdrop {
  opacity: 1;
}

.lightbox.is-open .lightbox__content {
  opacity: 1;
  transform: scale(1);
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 4, 0.92);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: zoom-out;
}

.lightbox--gallery .lightbox__backdrop {
  cursor: grab;
}

.lightbox--gallery .lightbox__backdrop:active {
  cursor: grabbing;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lightbox__close:hover {
  color: var(--white);
  border-color: var(--white);
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(8, 8, 8, 0.5);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.lightbox__arrow:hover {
  background: rgba(8, 8, 8, 0.8);
  border-color: var(--white);
  color: var(--accent);
}

.lightbox__arrow--prev {
  left: 1rem;
}

.lightbox__arrow--next {
  right: 1rem;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  max-width: min(90vw, 900px);
  max-height: 90dvh;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.lightbox__img {
  max-width: 100%;
  max-height: 80dvh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.lightbox__video {
  display: none;
  max-width: 100%;
  max-height: 80dvh;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.lightbox--video .lightbox__img {
  display: none;
}

.lightbox--video .lightbox__video {
  display: block;
}

.lightbox__caption {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================
   TESTIMONIALS — Carousel
   ============================================ */
.testimonials {
  padding: var(--section-v) 0;
  background: var(--surface);
}

.testimonials__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.testimonials__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.testimonials__nav {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.test-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.test-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Viewport + track */
.testimonials__viewport {
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  gap: 1px;
  transition: transform 0.55s var(--ease-out);
  will-change: transform;
}

/* Individual testimonial card */
.test-card {
  flex: 0 0 100%;
  background: var(--surface-2);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-top: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.test-card.is-active {
  border-top-color: var(--accent);
}

@media (min-width: 768px) {
  .test-card {
    flex: 0 0 calc(50% - 0.5px);
  }
}

@media (min-width: 1024px) {
  .test-card {
    flex: 0 0 calc(33.333% - 0.67px);
  }
}

.test-card__stars {
  display: flex;
  gap: 0.2rem;
}

.star {
  color: var(--accent);
  font-size: 0.85rem;
}

.test-card__text {
  font-style: italic;
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.85;
  flex: 1;
}

.test-card__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.test-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  flex-shrink: 0;
}

.test-card__author {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

.test-card__role {
  font-family: var(--font-sub);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Dots */
.test-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.test-dot {
  width: 24px;
  height: 3px;
  background: var(--border-2);
  border-radius: 2px;
  transition: background 0.3s ease, width 0.3s ease;
  cursor: pointer;
}

.test-dot--active {
  background: var(--accent);
  width: 40px;
}

/* ============================================
   BOOKING FORM
   ============================================ */
.booking {
  padding: var(--section-v) 0;
  background: var(--black);
}

.booking__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 768px) {
  .booking__inner {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
}

.booking__intro {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.booking__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.booking__sub {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.booking__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.booking__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sub);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.booking__contact-link:hover {
  color: var(--white);
}

.booking__form-wrap {
  position: relative;
}

.booking__form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.booking__field {
  display: flex;
  flex-direction: column;
}

.booking__label {
  font-family: var(--font-sub);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.booking__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-2);
  padding: 0.75rem 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.3s ease;
}

.booking__input::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

.booking__input:focus {
  outline: none;
  border-color: var(--accent);
}

.booking__input--error {
  border-color: #e05252 !important;
}

select.booking__input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5rem;
}

select.booking__input option {
  background: var(--surface-2);
  color: var(--white);
}

textarea.booking__input {
  resize: vertical;
  min-height: 80px;
}

.booking__success {
  text-align: center;
  padding: 3rem 1rem;
}

.booking__success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  animation: popIn 0.6s var(--ease) forwards;
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  70% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.booking__success-text {
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.booking__success-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 5rem 0 2.5rem;
  background: var(--surface);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer__top {
    grid-template-columns: 2.5fr 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__logo {
  font-family: var(--font-head);
  font-size: 2.2rem;
  letter-spacing: 0.06em;
  text-transform: none;
  line-height: 1;
}

.footer__logo > span:nth-child(1) {
  color: var(--accent);
}

.footer__logo > span:nth-child(2) {
  color: var(--white);
}

.footer__tagline {
  font-family: var(--font-sub);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Короткий опис під тегліном (desktop) */
.footer__brand-sub {
  display: none;
}

@media (min-width: 1024px) {
  .footer__brand-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.7;
    margin-top: 0.5rem;
    max-width: 300px;
  }
}

.footer__social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.25s ease;
}

.footer__social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.footer__heading {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer__link {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer__link::after {
  content: "→";
  opacity: 0;
  font-size: 0.75rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(-4px);
  color: var(--accent);
}

.footer__link:hover {
  color: var(--white);
  padding-left: 0.4rem;
}

.footer__link:hover::after {
  opacity: 1;
  transform: none;
}

.footer__links li:last-child .footer__link {
  border-bottom: none;
}

.footer__copy {
  font-family: var(--font-sub);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}


/* ============================================
   FLOATING MOBILE CTA
   ============================================ */
.float-cta {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  right: max(1.25rem, env(safe-area-inset-right));
  z-index: 900;
  font-family: var(--font-head);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--black);
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 28px rgba(245, 196, 0, 0.4), 0 0 0 0 rgba(245, 196, 0, 0);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.25s ease;
}

.float-cta--show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.float-cta:hover {
  background: #ffd426;
  box-shadow: 0 8px 28px rgba(245, 196, 0, 0.35);
}

@media (min-width: 768px) {
  .float-cta {
    display: none;
  }
}

/* ============================================
   NOISE GRAIN OVERLAY
   ============================================ */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}


/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.btt {
  position: fixed;
  bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1rem));
  right: max(1.75rem, env(safe-area-inset-right));
  z-index: 490;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease),
    color 0.25s;
}

@media (max-width: 767px) {
  .btt {
    left: max(1.25rem, env(safe-area-inset-left));
    right: auto;
  }
}

.btt--show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btt:hover {
  color: var(--accent);
}

.btt__arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.btt__arc circle:last-child {
  transition: stroke-dashoffset 0.12s linear, filter 0.3s;
}

.btt:hover .btt__arc circle:last-child {
  filter: drop-shadow(0 0 5px rgba(245, 196, 0, 0.55));
}

.btt__arrow {
  position: relative;
  z-index: 1;
  transition: transform 0.25s var(--ease);
}

.btt:hover .btt__arrow {
  transform: translateY(-2px);
}

/* ============================================
   BUTTON HOVER — enhanced glow + lift
   ============================================ */
.btn--accent:hover {
  background: #ffd426;
  border-color: #ffd426;
  box-shadow: 0 6px 28px rgba(245, 196, 0, 0.28), 0 0 0 1px rgba(245, 196, 0, 0.08);
  transform: translateY(-2px) scale(1.02);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.97) !important;
  box-shadow: none !important;
}

/* ============================================
   HERO STATS — animated progress bars
   ============================================ */
.hero__stat-bar {
  display: block;
  margin-top: 0.5rem;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}

.hero__stat-bar::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), rgba(245, 196, 0, 0.5));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__stat-bar.is-filled::after {
  transform: scaleX(var(--bar-w, 1));
}

/* ============================================
   REVEAL VARIANTS — directional entrances
   ============================================ */
.reveal[data-reveal="left"] {
  transform: translateX(-48px) translateY(0);
}

.reveal[data-reveal="right"] {
  transform: translateX(48px) translateY(0);
}

.reveal[data-reveal="scale"] {
  transform: scale(0.9) translateY(24px);
}

.reveal[data-reveal="left"].visible,
.reveal[data-reveal="right"].visible,
.reveal[data-reveal="scale"].visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   MARQUEE — pause on hover
   ============================================ */
.marquee {
  cursor: default;
}


/* ============================================
   MOBILE RESPONSIVE — Enhanced
   Оптимізація для мобільних пристроїв
   ============================================ */

/* ---- КРИТИЧНЕ: REHAB ROWS — виправлення перекриття на мобільних ----
   grid-template-areas: "img content" на 1-колонній сітці кладе обидва
   елементи в одну клітинку → контент невидимий під слайдером.
   Скидаємо areas та встановлюємо явний вертикальний стек.
   -------------------------------------------------------------------- */
@media (max-width: 767px) {

  .rehab__row--image-left,
  .rehab__row--image-right {
    grid-template-areas: unset;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  /* Слайдер — завжди першим */
  .rehab__row--image-left .rehab__row-img,
  .rehab__row--image-right .rehab__row-img {
    order: 0;
  }

  /* Контент — завжди після */
  .rehab__row--image-left .rehab__row-content,
  .rehab__row--image-right .rehab__row-content {
    order: 1;
  }
}

/* ============================================
   ABOUT — Mobile reorder label
   ============================================ */
@media (max-width: 767px) {

  /* Коли label перенесений JS-ом як прямий дочірній grid */
  .about__grid>.label {
    margin-bottom: 0;
    padding-bottom: 0.25rem;
  }

  .about__grid>.about__visual {
    margin-top: 0;
  }
}

/* ---- ГЛОБАЛЬНЕ — запобігання горизонтальному прокрутці ---- */
/* Секції з directional-reveal анімаціями можуть викликати overflow */
.about,
.petanque,
.bdays,
.rehab,
.booking,
.sports,
.merch,
.testimonials,
.place {
  overflow-x: clip;
}

/* ============================================
   HERO — Small Phones (≤ 380px)
   ============================================ */
@media (max-width: 380px) {
  .hero__eyebrow {
    gap: 0.4rem;
  }

  .hero__tag {
    font-size: 0.58rem;
  }

  .hero__sub {
    font-size: 0.83rem;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 260px;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   ABOUT — Mobile
   ============================================ */
@media (max-width: 767px) {
  .about__grid {
    gap: 2.5rem;
  }

  .about__photo {
    aspect-ratio: 4/5;
    object-position: top center;
  }
}

@media (max-width: 480px) {
  .about__stats {
    flex-direction: row;
    gap: 0;
    justify-content: space-between;
  }

  .about__stat {
    flex: 1;
    padding-left: 0.75rem;
    border-left: 2px solid var(--accent);
  }

  .about__stat:first-child {
    padding-left: 0;
    border-left: none;
  }

  .about__stat-num {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }

  .about__title {
    font-size: clamp(1.7rem, 7vw, 2.5rem);
  }

  .about__quote {
    font-size: 0.95rem;
  }
}

/* ============================================
   SPORTS GRID — Mobile
   ============================================ */
@media (max-width: 479px) {

  /* Зменшуємо мінімальну ширину колонки для маленьких телефонів */
  .sports__grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
  }

  .sports__card {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 360px) {
  .sports__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PETANQUE — Mobile
   ============================================ */
@media (max-width: 767px) {
  .petanque__grid {
    gap: 2.5rem;
  }

  .petanque__intro {
    align-items: flex-start;
    text-align: left;
  }

  .petanque__photo {
    aspect-ratio: 16/9;
  }

  .petanque__service {
    gap: 1rem 1.25rem;
  }

}

.petanque__service-desc {
  grid-column: 1 / -1;
}

/* ============================================
   BIRTHDAYS — Mobile
   ============================================ */
@media (max-width: 767px) {
  .bdays__inner {
    gap: 2rem;
  }

  .bdays__title {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }
}

/* ============================================
   REHAB — Mobile
   Показуємо текст і виправляємо сітку контенту
   ============================================ */
@media (max-width: 767px) {

  /* Показати описовий текст на мобільних */
  .rehab__row-text {
    display: block;
  }

  /* Перебудова сітки контенту під мобільний формат */
  .rehab__row-content {
    grid-template-columns: 2.5rem auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.5rem 1rem;
    align-items: start;
  }

  /* Номер — перший рядок, перша колонка */
  .rehab__row-num {
    grid-row: 1;
    grid-column: 1;
    align-self: center;
  }

  /* Іконка — перший рядок, друга колонка */
  .rehab__row-icon {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
  }

  /* Заголовок — перший рядок, третя колонка */
  .rehab__row-title {
    grid-row: 1;
    grid-column: 3;
    align-self: center;
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }

  /* Текст — другий рядок, всі колонки */
  .rehab__row-text {
    grid-row: 2;
    grid-column: 1 / -1;
    padding-top: 0.5rem;
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .rehab__row {
    padding: 1.75rem 0;
    gap: 1.25rem;
  }

  .rehab__row-img {
    min-height: 200px;
  }

  /* Прибираємо slide-ефект на мобільних — вже є swipe */
  .rehab__slider-arrow {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
}

@media (max-width: 480px) {
  .rehab__title {
    font-size: clamp(1.7rem, 7vw, 2.5rem);
  }

  .rehab__row-img {
    min-height: 180px;
    aspect-ratio: 16/9;
  }
}

/* ============================================
   FIND YOUR PLACE — Mobile
   ============================================ */
@media (max-width: 639px) {
  .place__panel-inner {
    min-height: 200px;
    padding: 1.5rem 1.25rem;
  }

  .place__panel-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    margin-bottom: 1rem;
  }

  .place__panel-sub {
    font-size: 0.58rem;
    margin-bottom: 0.5rem;
  }

  .place__arrow {
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .place__panel-inner {
    min-height: 160px;
    padding: 1.25rem 1rem;
  }
}

/* ============================================
   MERCH SLIDER — мобільна видимість стрілок
   На тач-пристроях немає :hover, тому показуємо завжди
   ============================================ */
@media (pointer: coarse) {

  /* Стрілки merch-слайдера — завжди видимі */
  .merch__slider-arrow {
    background: rgba(8, 8, 8, 0.65);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--black);
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  /* Zoom-оверлей на merch — не заважає тачу */
  .merch__card-overlay {
    display: none;
  }

  /* Крапки — більші для пальців */
  .merch__slider-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
  }

  .merch__slider-dot.is-active {
    background: var(--accent);
    width: 20px;
    border-radius: 4px;
  }

  .merch__slider-dots {
    bottom: 0.6rem;
    gap: 0.4rem;
  }

  /* Rehab стрілки — завжди видимі */
  .rehab__slider-arrow {
    background: rgba(8, 8, 8, 0.65);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--black);
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }

  /* Rehab крапки — більші */
  .rehab__slider-dot {
    width: 8px;
    height: 8px;
  }

  .rehab__slider-dot.is-active {
    background: var(--accent);
    width: 20px;
    border-radius: 4px;
    transform: none;
  }

  /* Merch картка — zoom-in курсор не потрібен на тачі */
  .merch__card {
    cursor: pointer;
  }

  .merch__row-img--slider {
    cursor: pointer;
  }
}

@media (max-width: 479px) {
  .merch__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }

  .merch__card-body {
    padding: 0.75rem 0.9rem 1rem;
  }

  .merch__card-name {
    font-size: 0.78rem;
  }
}

@media (max-width: 340px) {
  .merch__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   TESTIMONIALS — Mobile
   ============================================ */
@media (max-width: 767px) {
  .testimonials__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .testimonials__title {
    font-size: clamp(1.7rem, 7vw, 2.5rem);
  }

  .testimonials__nav {
    align-self: flex-end;
  }

  .test-card {
    padding: 1.75rem 1.5rem;
  }

  .test-card__text {
    font-size: 0.9rem;
  }
}

/* ============================================
   BOOKING FORM — Mobile
   ============================================ */
@media (max-width: 767px) {
  .booking__inner {
    gap: 2.5rem;
  }

  .booking__title {
    font-size: clamp(1.7rem, 7vw, 2.5rem);
  }
}

@media (max-width: 480px) {
  .booking__form {
    gap: 1.5rem;
  }

  /* Великий шрифт щоб iOS не зумував поле */
  .booking__input {
    font-size: 16px;
  }
}

/* ============================================
   FOOTER — Mobile
   ============================================ */
@media (max-width: 639px) {
  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  /* Бренд-блок — центрований зверху */
  .footer__brand {
    align-items: center;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
  }

  .footer__logo {
    font-size: 2rem;
  }

  .footer__tagline {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }

  .footer__social {
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.75rem;
  }

  .footer__social-link {
    width: 48px;
    height: 48px;
  }

  /* Навігація та контакти — горизонтальна сітка 2 колонки */
  .footer__top>nav,
  .footer__top>div:last-child {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
  }

  .footer__top>nav {
    border-bottom: 1px solid var(--border);
  }

  /* 2-колонна сітка для навігаційних пунктів */
  .footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.15rem 1rem;
  }

  .footer__link {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--muted);
    border-bottom: none;
  }

  .footer__heading {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
    color: var(--accent);
  }

  /* Контакти — в один рядок зі значками */
  .footer__top>div:last-child .footer__links {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer__top>div:last-child .footer__link {
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    min-height: 48px;
  }

  .footer__top>div:last-child .footer__link:last-child {
    border-bottom: none;
  }

  /* Copyright */
  .footer__copy {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }
}

/* ============================================
   MARQUEE — Mobile (менша висота шрифту)
   ============================================ */
@media (max-width: 480px) {
  .marquee {
    padding: 0.75rem 0;
  }

  .marquee__text {
    font-size: 0.88rem;
  }
}

/* ============================================
   МОБІЛЬНА НАВІГАЦІЯ — Small Phones
   ============================================ */
@media (max-width: 380px) {
  .mobile-nav__link {
    font-size: clamp(1.4rem, 7vw, 2rem);
    padding: 0.7rem 1rem;
  }

  .mobile-nav__link--cta {
    font-size: clamp(1.2rem, 6vw, 1.7rem);
  }
}

/* ============================================
   КНОПКИ — Mobile Touch Targets
   ============================================ */
@media (max-width: 767px) {

  /* Забезпечуємо мінімум 44px touch-таргет */
  .sports__filter {
    padding: 0.7rem 1rem;
    min-height: 44px;
  }

  .test-btn {
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
  }

  /* Кнопки в hero — повна ширина на маленьких екранах */
  .hero__actions .btn--lg {
    padding: 1rem 2rem;
    font-size: 0.95rem;
  }
}

/* ============================================
   FLOAT CTA та BTT — не перекривають одне одного
   ============================================ */
@media (max-width: 767px) {

  /* BTT — зліва внизу, Float CTA — справа внизу */
  .btt {
    left: max(1.25rem, env(safe-area-inset-left));
    right: auto;
    bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.5rem));
  }

  .float-cta {
    bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.5rem));
    right: max(1.25rem, env(safe-area-inset-right));
    /* Трохи менший розмір на малих телефонах */
    font-size: 0.8rem;
    padding: 0.8rem 1.3rem;
  }
}

@media (max-width: 380px) {
  .float-cta {
    font-size: 0.75rem;
    padding: 0.75rem 1.1rem;
  }
}

/* ============================================
   HEADING SIZES — Responsive clamp корекція
   ============================================ */
@media (max-width: 480px) {

  .sports__title,
  .merch__title,
  .petanque__title,
  .rehab__title,
  .testimonials__title,
  .booking__title {
    font-size: clamp(1.7rem, 8vw, 2.5rem);
  }

  .bdays__title {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }
}

/* ============================================
   LIGHTBOX — Mobile
   ============================================ */
@media (max-width: 767px) {
  .lightbox__close {
    top: max(1rem, env(safe-area-inset-top));
    right: 1rem;
    width: 48px;
    height: 48px;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(8, 8, 8, 0.75);
    color: var(--white);
    z-index: 10;
  }

  .lightbox__content {
    padding: 4rem 0 1rem;
    max-width: 100vw;
    width: 100%;
  }

  .lightbox__img,
  .lightbox__video {
    max-height: 70dvh;
    width: 100%;
    object-fit: contain;
  }

  /* Стрілки — поверх фото, по центру вертикально */
  .lightbox__arrow {
    position: fixed;
    top: 50%;
    margin-top: -26px;
    width: 52px;
    height: 52px;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(8, 8, 8, 0.75);
    color: var(--white);
    z-index: 10;
  }

  .lightbox__arrow--prev {
    left: 0.5rem;
  }

  .lightbox__arrow--next {
    right: 0.5rem;
  }

  .lightbox__caption {
    font-size: 0.7rem;
    text-align: center;
    padding: 0 1rem;
  }
}

/* Lightbox на pointer:coarse — стрілки та кнопка завжди видимі */
@media (pointer: coarse) {
  .lightbox__arrow {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(8, 8, 8, 0.75);
    color: var(--white);
    opacity: 1 !important;
  }

  .lightbox__close {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(8, 8, 8, 0.75);
    color: var(--white);
  }
}

/* ============================================
   SAFE AREA — iPhone / Android notch support
   ============================================ */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 2px;
  gap: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.lang-switcher span {
  font-family: var(--font-sub);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 100px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.lang-switcher span.is-active {
  background: var(--accent);
  color: var(--white);
}

.mobile-nav .lang-switcher {
  margin-top: 1rem;
  align-self: center;
}