/* Шрифти з папки fonts/ (OTF) */
@font-face {
  font-family: "MGG Display";
  src: url("../fonts/Mgg-DisplayRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MGG Display";
  src: url("../fonts/Mgg-DisplayMedium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MGG Display";
  src: url("../fonts/Mgg-DisplayDemiBold.otf") format("opentype");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MGG Interface";
  src: url("../fonts/Mgg-InterfaceRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MGG Interface";
  src: url("../fonts/Mgg-InterfaceMedium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MGG Interface";
  src: url("../fonts/Mgg-InterfaceDemiBold.otf") format("opentype");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Theonory";
  src: url("../fonts/Theonory-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Theonory";
  src: url("../fonts/Theonory-Regular.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #3e5b66;
  --color-cream: #f5eadd;
  --color-earth: #634e42;
  /* Темна сітка + тепле світло зліва (як у бренд-макеті) */
  --mesh-base-a: #0a1c24;
  --mesh-base-b: #162a33;
  --mesh-void: #050f14;
  --mesh-warm-core: rgba(253, 245, 230, 0.42);
  --mesh-warm-mid: rgba(196, 164, 132, 0.22);
  --mesh-warm-edge: rgba(139, 125, 107, 0.12);
  --color-text: #f4f1ea;
  --color-text-muted: rgba(244, 241, 234, 0.78);
  --color-link: #d8c9b4;
  --color-link-hover: #fdf5e6;
  /* Текст на кремових блоках (як у брендбуку) */
  --on-cream-text: #2a2420;
  --on-cream-muted: rgba(42, 36, 32, 0.72);
  --font-display: "MGG Display", system-ui, sans-serif;
  --font-body: "MGG Interface", system-ui, sans-serif;
  --font-accent: "Theonory", serif;
  /* Підзаголовки героя (Google Fonts) */
  --font-hero-sub: "Montserrat", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --container: min(72rem, 92vw);
  --tracking-display: 0.04em;
  --tracking-body: 0.02em;
  /* Єдиний розмір основного тексту */
  --type-base: 0.9375rem;
  /* Окремо дрібніше десктоп-меню в шапці (не як основний текст) */
  --type-nav-desktop: clamp(0.53rem, 0.2vw + 0.46rem, 0.64rem);
  /* Мобільна шапка: Меню / Бронювати */
  --type-header-mobile: 0.6875rem;
  --header-pad-x: clamp(1rem, 4vw, 1.5rem);
  /* Хедер / меню (преміальний референс) */
  --header-frost: rgba(10, 28, 36, 0.42);
  --drawer-bg: #f2ebe4;
  --drawer-text: #5c524c;
  --drawer-chocolate: #4a3a32;
  --drawer-pill-border: rgba(74, 58, 50, 0.45);
  --drawer-shadow: -16px 0 48px rgba(0, 0, 0, 0.14);
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 4.25rem;
  /* Липка нижня панель контактів + safe area (iPhone) */
  --contact-strip-h: calc(3.35rem + env(safe-area-inset-bottom, 0px));
  /* Декоративний O/M-патерн на темних (teal) блоках */
  --om-pattern-url: url("../images/omo-pattern.png");
  --om-pattern-size: clamp(760px, 112vw, 1220px);
  --om-pattern-opacity: 0.022;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  scroll-padding-bottom: var(--contact-strip-h);
  min-height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--type-base);
  letter-spacing: var(--tracking-body);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--mesh-base-a);
  background-image:
    radial-gradient(
      ellipse 115% 140% at 8% 48%,
      var(--mesh-warm-core) 0%,
      var(--mesh-warm-mid) 22%,
      var(--mesh-warm-edge) 42%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 55% 70% at -5% 52%,
      rgba(255, 248, 231, 0.2) 0%,
      transparent 48%
    ),
    radial-gradient(
      ellipse 90% 85% at 102% -5%,
      var(--mesh-void) 0%,
      rgba(10, 28, 36, 0.55) 38%,
      transparent 68%
    ),
    radial-gradient(
      ellipse 95% 90% at -8% 108%,
      var(--mesh-void) 0%,
      rgba(10, 28, 36, 0.5) 40%,
      transparent 65%
    ),
    linear-gradient(
      168deg,
      var(--mesh-base-b) 0%,
      var(--mesh-base-a) 35%,
      #0d2530 62%,
      #081820 100%
    );
  background-repeat: no-repeat;
  padding-bottom: var(--contact-strip-h);
}

body.drawer-open {
  overflow: hidden;
  touch-action: none;
}

/* ——— Липка міні-панель контактів (знизу екрана) ——— */
.contact-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.contact-strip__inner {
  pointer-events: auto;
  display: flex;
  align-items: stretch;
  width: 100%;
  background: var(--color-cream);
  color: var(--on-cream-text);
  border-top: 1px solid rgba(42, 36, 32, 0.12);
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 64rem) {
  .contact-strip__inner {
    max-width: 40rem;
    margin-inline: 1rem;
    border-left: 1px solid rgba(42, 36, 32, 0.1);
    border-right: 1px solid rgba(42, 36, 32, 0.1);
    border-radius: 14px 14px 0 0;
  }
}

.contact-strip__link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  color: inherit;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.contact-strip__link + .contact-strip__link {
  border-left: 1px solid rgba(42, 36, 32, 0.12);
}

.contact-strip__link:hover,
.contact-strip__link:focus-visible {
  background: rgba(99, 78, 66, 0.07);
  color: var(--color-earth);
  outline: none;
}

.contact-strip__link--disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.45;
}

.contact-strip__link--disabled:hover,
.contact-strip__link--disabled:focus-visible {
  background: transparent;
  color: inherit;
}

.contact-strip__icon {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  flex-shrink: 0;
}

.contact-strip__icon :is(path, circle, rect, line, polyline) {
  stroke: currentColor;
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

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

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header .container {
  width: min(80rem, 96vw);
}

@media (max-width: 1023px) {
  .site-header .container {
    width: min(72rem, 92vw);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--header-frost);
  border-bottom: 1px solid rgba(255, 248, 231, 0.08);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  transition:
    background 0.9s var(--ease-out-expo),
    border-color 0.9s var(--ease-out-expo),
    box-shadow 0.9s var(--ease-out-expo);
}

.site-header.site-header--deep {
  background: rgba(6, 18, 26, 0.78);
  border-bottom-color: rgba(255, 248, 231, 0.11);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.22);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.75rem;
  padding-block: 1rem;
  padding-inline: var(--header-pad-x);
  min-height: var(--header-height);
}

.site-header__text-btn {
  justify-self: start;
  padding: 0.35rem 0;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--type-header-mobile);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 245, 230, 0.88);
  text-decoration: none;
  transition: color 0.35s var(--ease-out-expo), opacity 0.35s var(--ease-out-expo);
}

.site-header__text-btn:hover {
  color: #fffefb;
}

.site-header__menu-open {
  grid-column: 1;
}

.site-header__logo {
  grid-column: 2;
  justify-self: center;
}

.site-header__nav--desktop {
  display: none;
}

.site-header__lang--desktop {
  display: none;
}

.site-header__lang {
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
}

a.site-header__lang-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header__lang-btn {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 231, 0.22);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--type-nav-desktop);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.72);
  cursor: pointer;
  transition:
    background 0.35s var(--ease-out-expo),
    color 0.35s var(--ease-out-expo),
    border-color 0.35s var(--ease-out-expo);
}

.site-header__lang-btn:hover {
  border-color: rgba(255, 248, 231, 0.38);
  color: rgba(255, 254, 251, 0.92);
}

.site-header__lang-btn.is-active {
  background: rgba(255, 248, 231, 0.12);
  border-color: rgba(255, 248, 231, 0.42);
  color: #fffefb;
}

.site-header__book {
  grid-column: 3;
  justify-self: end;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--type-header-mobile);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(253, 245, 230, 0.88);
  text-decoration: none !important;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.35s var(--ease-out-expo);
}

.site-header__book::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transform: scaleX(0.92);
  transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
}

.site-header__book:hover {
  color: #fffefb;
  text-decoration: none;
}

.site-header__book:hover::after {
  opacity: 0.85;
  transform: scaleX(1);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.logo__img {
  display: block;
  height: clamp(2.1rem, 7vw, 3rem);
  width: auto;
}

@media (min-width: 1024px) {
  .site-header__menu-open {
    display: none;
  }

  .site-header__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding-block: 1.05rem;
    padding-inline: 0;
  }

  .site-header__logo {
    flex: 0 0 auto;
  }

  .site-header__lang--desktop {
    display: flex;
  }

  .site-header__nav--desktop {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0 0.65rem;
    min-width: 0;
    max-width: none;
    margin-inline: auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .site-header__nav--desktop::-webkit-scrollbar {
    display: none;
  }

  .site-header__nav--desktop a {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--type-nav-desktop);
    letter-spacing: 0.045em;
    text-transform: uppercase;
    color: rgba(244, 241, 234, 0.82);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.4s var(--ease-out-expo);
  }

  .logo__img {
    height: clamp(1.6rem, 2vw, 2.05rem);
  }

  .site-header__nav--desktop a:hover {
    color: #fffefb;
  }

  .site-header__book {
    flex: 0 0 auto;
    font-size: var(--type-nav-desktop);
    text-transform: none;
    letter-spacing: 0.08em;
  }
}

/* Висувне меню (мобільний) */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(8, 16, 22, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out-expo);
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  height: 100dvh;
  width: min(88vw, 20.5rem);
  padding: 1.75rem 1.35rem 2rem 1.5rem;
  background: var(--drawer-bg);
  border-radius: 2.75rem 0 0 0;
  box-shadow: var(--drawer-shadow);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.5s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.drawer.is-open .drawer__panel {
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .drawer__backdrop,
  .drawer__panel {
    transition-duration: 0.01ms;
  }
}

/* Модальне бронювання (десктоп, кнопка в шапці) */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.booking-modal.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  cursor: pointer;
  background: rgba(5, 15, 20, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.booking-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(22.5rem, 100%);
  max-height: min(88dvh, 36rem);
  overflow: auto;
  margin: 0;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 248, 231, 0.14);
  background: rgba(12, 32, 40, 0.96);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
  -webkit-overflow-scrolling: touch;
}

.booking-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(244, 241, 234, 0.72);
  background: rgba(255, 248, 231, 0.06);
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.booking-modal__close:hover,
.booking-modal__close:focus-visible {
  color: var(--color-link-hover);
  background: rgba(255, 248, 231, 0.12);
  outline: none;
}

.booking-modal__title {
  margin: 0 2.25rem 0.35rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
}

.booking-modal__lead {
  margin: 0 0 0.85rem;
  font-family: var(--font-hero-sub);
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.booking-modal__form {
  margin: 0;
}

.booking-modal__submit {
  margin-top: 0.1rem;
}

body.booking-modal-open {
  overflow: hidden;
  touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
  .booking-modal {
    transition-duration: 0.01ms;
  }
}

.drawer__lang {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 2.25rem;
}

a.drawer__lang-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.drawer__lang-btn {
  flex: 1;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--drawer-pill-border);
  background: transparent;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--type-base);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--drawer-chocolate);
  cursor: pointer;
  transition:
    background 0.35s var(--ease-out-expo),
    color 0.35s var(--ease-out-expo),
    border-color 0.35s var(--ease-out-expo);
}

.drawer__lang-btn.is-active {
  background: var(--drawer-chocolate);
  color: #fdf8f3;
  border-color: var(--drawer-chocolate);
}

.drawer__lang-btn:not(.is-active):hover {
  border-color: rgba(74, 58, 50, 0.65);
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.25rem;
}

.drawer__nav a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--type-base);
  letter-spacing: 0.07em;
  line-height: 1.45;
  text-transform: uppercase;
  color: var(--drawer-text);
  text-decoration: none;
  transition: color 0.35s var(--ease-out-expo);
}

.drawer__nav a:hover {
  color: var(--drawer-chocolate);
}

.drawer__nav a.drawer__nav-link--brand {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--type-base);
  font-weight: 300;
}

.drawer__nav a.drawer__nav-link--sep-before {
  align-self: stretch;
  width: 100%;
  margin-top: 0.35rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(74, 58, 50, 0.16);
  box-sizing: border-box;
}

.drawer__close {
  margin-top: 2rem;
  padding: 0.5rem 0;
  border: none;
  background: none;
  align-self: flex-start;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--type-base);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--drawer-text);
  cursor: pointer;
  transition: color 0.35s var(--ease-out-expo);
}

.drawer__close:hover {
  color: var(--drawer-chocolate);
}

/* Тимчасові якорі під меню (замініть на повноцінні секції) */
.section-anchors {
  display: flex;
  flex-direction: column;
  /* Не займають висоти в потоці — інакше крізь прозорий блок видно темний фон body */
  gap: 0;
}

.scroll-target {
  scroll-margin-top: calc(var(--header-height) + 0.5rem);
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
  pointer-events: none;
}

#parni,
#massage,
#pravilo,
#tea-ceremony,
#private-bath,
#yoga-soundhilling,
#ofuro,
#about,
#omo-private-events,
#omo-kitchen {
  scroll-margin-top: calc(var(--header-height) + 0.5rem);
}

/* Головний екран: фото + затемнення + контент */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(82dvh, 44rem);
  padding-block: calc(var(--header-height) + var(--space-sm)) var(--space-md);
  margin-bottom: 0;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-img-focus, 50% 50%);
  /* Без додаткового scale: інакше низькорозмірне фото ще сильніше «м’якне» на великому екрані */
  transform: none;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(8, 24, 32, 0.88) 0%,
      rgba(10, 28, 36, 0.62) 60%,
      rgba(5, 15, 20, 0.28) 100%
    ),
    linear-gradient(90deg, rgba(5, 15, 20, 0.5) 0%, transparent 55%);
  pointer-events: none;
  overflow: hidden;
}

/* Hero photo focus: centered spa interior (hero-omo-spa.png) */
.hero {
  --hero-img-focus: 50% 48%;
}

@media (max-width: 1023px) {
  .hero {
    --hero-img-focus: 50% 52%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__scrim::after {
    content: "";
    position: absolute;
    inset: -25%;
    background: radial-gradient(
      ellipse 55% 42% at 50% 88%,
      rgba(253, 245, 230, 0.08) 0%,
      rgba(196, 164, 132, 0.035) 40%,
      transparent 68%
    );
    animation: lux-scrim-glow 22s ease-in-out infinite alternate;
    pointer-events: none;
  }

  /* Панорама через object-position без zoom — менше розмиття при малому вихідному файлі */
  .hero__img {
    animation: lux-hero-pan 42s ease-in-out infinite alternate;
    will-change: object-position;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(80rem, 96vw);
  padding-bottom: 0;
}

/* Зсув угору (трохи нижче ніж 28%) */
.hero .hero__inner.container {
  width: min(80rem, 96vw);
  max-width: min(80rem, 96vw);
  transform: translateY(calc(-0.2 * (100dvh - var(--header-height))));
}

@media (max-width: 1023px) {
  .hero .hero__inner.container {
    padding-inline-start: var(--header-pad-x);
  }
}

/* Головна фраза: широка колонка — менше переносів рядків */
.hero__title {
  margin: 0 0 clamp(0.75rem, 1.5vw, 1.15rem);
  max-width: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.2vw + 1.05rem, 3.65rem);
  line-height: 1.14;
  letter-spacing: 0.035em;
  color: var(--color-text);
  text-shadow:
    0 2px 32px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(0, 0, 0, 0.2);
}

/* Підзаголовки героя: Montserrat тонкий */
.hero__secondary {
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 1.2vw, 0.95rem);
  max-width: none;
  margin: 0 0 var(--space-md);
  padding-left: 0;
  border-left: none;
}

.hero__secondary p {
  margin: 0;
}

.hero__menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: clamp(0.55rem, 1vw, 0.85rem);
  padding: 0.6em 2.4em;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 2px;
  color: #fff;
  font-family: var(--font-hero-sub);
  font-size: clamp(0.75rem, 0.35vw + 0.62rem, 0.9rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.hero__menu-btn:hover,
.hero__menu-btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
  outline: none;
}

.hero__lead {
  font-family: var(--font-hero-sub);
  font-size: clamp(0.9375rem, 0.55vw + 0.82rem, 1.09375rem);
  font-weight: 200;
  line-height: 1.66;
  letter-spacing: 0.04em;
  font-feature-settings: "kern" 1;
  color: var(--color-text);
  max-width: none;
}

.hero__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

/* Бейджі в дусі App Store / Google Play */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.45rem 0.95rem 0.45rem 0.65rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #fff;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 0.2s var(--ease-out-expo),
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

@media (max-width: 420px) {
  .hero__secondary {
    margin-bottom: 0.75rem;
  }

  .hero__stores {
    gap: 0.6rem 0.75rem;
  }

  .store-badge {
    min-height: 2.9rem;
    padding: 0.4rem 0.8rem 0.4rem 0.6rem;
    gap: 0.55rem;
    border-radius: 0.55rem;
  }

  .store-badge__icon svg {
    width: 24px;
    height: 24px;
  }

  .store-badge__line--small {
    font-size: 0.52rem;
  }

  .store-badge__line--large {
    font-size: 0.98rem;
  }
}

.store-badge:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.store-badge:focus-visible {
  outline: 2px solid rgba(253, 245, 230, 0.85);
  outline-offset: 3px;
}

.store-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-badge__icon--google {
  padding: 0.1rem;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}

.store-badge__line {
  display: block;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.store-badge__line--small {
  font-size: 0.5625rem;
  font-weight: 400;
  text-transform: none;
  opacity: 0.92;
  margin-bottom: 0.12rem;
}

.store-badge__line--large {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.store-badge--google .store-badge__line--large {
  font-weight: 500;
}

@media (min-width: 640px) {
  .store-badge {
    min-width: 10.5rem;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    letter-spacing: 0.04em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__title {
    animation: lux-hero-rise 1.4s var(--ease-out-expo) 0.18s both;
  }

  .hero__secondary {
    animation: lux-hero-rise 1.45s var(--ease-out-expo) 0.42s both;
  }

  .hero__stores {
    animation: lux-hero-rise 1.55s var(--ease-out-expo) 0.66s both;
  }
}

/* Мобільний скрол: менше ривків — blur героя/шапки, dvh-transform, «гладкий» html-скрол */
@media (max-width: 1023px) {
  html {
    scroll-behavior: auto;
  }

  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 28, 36, 0.86);
    transition-duration: 0.35s;
  }

  .site-header.site-header--deep {
    background: rgba(6, 18, 26, 0.94);
  }

  .hero .hero__inner.container {
    transform: none;
  }

  .hero__media {
    contain: paint;
  }

  .hero {
    align-items: center;
    padding-block: calc(var(--header-height) + 1rem) 1.35rem;
  }

  .hero__secondary {
    margin-bottom: 0.95rem;
  }

  .hero__stores {
    justify-content: flex-start;
  }
}

@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  .hero__scrim::after {
    display: none !important;
    animation: none !important;
  }

  .hero__img {
    animation: none !important;
    transform: scale(1.03);
    will-change: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-badge {
    transition: none;
  }

  .store-badge:hover {
    transform: none;
  }
}

.section {
  padding-block: var(--space-xl);
}

/* Дуже тиха підкладка-патерн на «зелених» (teal) секціях — не на кремових */
main > section.section:not(.section--cream) {
  position: relative;
  isolation: isolate;
}

main > section.section:not(.section--cream)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--om-pattern-url);
  background-repeat: repeat;
  background-size: var(--om-pattern-size);
  opacity: var(--om-pattern-opacity);
  mix-blend-mode: screen;
}

main > section.section:not(.section--cream) > * {
  position: relative;
  z-index: 1;
}

.om-about .om-about__inner.container {
  width: min(80rem, 96vw);
  max-width: min(80rem, 96vw);
}

.om-about__header {
  text-align: center;
  max-width: 46rem;
  margin-inline: auto;
  margin-bottom: clamp(1.35rem, 3.5vw, 2.25rem);
}

.om-about__header .hero__title {
  margin-bottom: 0.65rem;
}

.om-about__header .hero__lead {
  font-size: 0.9375rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: rgba(244, 241, 234, 0.82);
}

.om-about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.78rem;
}

@media (min-width: 48rem) {
  .om-about__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
  }

  .om-about__card:last-child {
    grid-column: 1 / -1;
  }

  .om-about__card:nth-child(odd):not(:last-child) {
    transform: translateY(0.22rem);
  }
}

.om-about__card {
  position: relative;
  overflow: hidden;
  padding: clamp(1rem, 2.55vw, 1.3rem);
  border-radius: 1rem;
  border: 1px solid rgba(255, 248, 231, 0.12);
  background:
    radial-gradient(
      125% 150% at 0% 0%,
      rgba(253, 245, 230, 0.13) 0%,
      rgba(196, 164, 132, 0.04) 34%,
      transparent 68%
    ),
    linear-gradient(155deg, rgba(14, 34, 44, 0.8) 0%, rgba(8, 22, 30, 0.72) 100%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 248, 231, 0.07);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.om-about__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(216, 201, 180, 0.78), rgba(216, 201, 180, 0.16));
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .om-about__card {
    transition:
      transform 0.34s var(--ease-out-expo),
      border-color 0.26s ease,
      box-shadow 0.32s ease;
  }

  .om-about__card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 248, 231, 0.2);
    box-shadow:
      0 16px 36px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 248, 231, 0.1);
  }
}

.om-about__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.74rem, 0.22vw + 0.7rem, 0.84rem);
  line-height: 1.35;
  color: rgba(253, 245, 230, 0.96);
}

.om-about__text {
  margin: 0;
  font-family: var(--font-hero-sub);
  font-weight: 300;
  font-size: clamp(0.86rem, 0.18vw + 0.82rem, 0.95rem);
  line-height: 1.64;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 234, 0.82);
}

/* Чергування: теплий крем #f5eadd — як картка в гайді */
.section--cream {
  background-color: var(--color-cream);
  color: var(--on-cream-text);
  box-shadow:
    inset 0 1px 0 rgba(62, 91, 102, 0.07),
    inset 0 -1px 0 rgba(62, 91, 102, 0.05);
}

.section--cream a {
  color: var(--color-primary);
}

.section--cream a:hover {
  color: var(--color-earth);
}

/* Узгодження текстових кольорів після чергування teal/cream секцій */
main > section.section.section--cream .hero__title,
main > section.section.section--cream .om-massage__title,
main > section.section.section--cream .om-tea__title,
main > section.section.section--cream .om-yoga__title,
main > section.section.section--cream .om-kitchen__title,
main > section.section.section--cream .om-pillars__title,
main > section.section.section--cream .om-about__title {
  color: var(--on-cream-text);
  text-shadow: none;
}

main > section.section.section--cream .hero__lead,
main > section.section.section--cream .om-massage__text,
main > section.section.section--cream .om-tea__text,
main > section.section.section--cream .om-yoga__text,
main > section.section.section--cream .om-kitchen__text,
main > section.section.section--cream .om-pillars__text,
main > section.section.section--cream .om-about__text {
  color: var(--on-cream-muted);
}

main > section.section:not(.section--cream) .hero__title,
main > section.section:not(.section--cream) .om-massage__title,
main > section.section:not(.section--cream) .om-tea__title,
main > section.section:not(.section--cream) .om-yoga__title,
main > section.section:not(.section--cream) .om-kitchen__title,
main > section.section:not(.section--cream) .om-pillars__title,
main > section.section:not(.section--cream) .om-about__title {
  color: var(--color-text);
}

main > section.section:not(.section--cream) .hero__lead,
main > section.section:not(.section--cream) .om-massage__text,
main > section.section:not(.section--cream) .om-tea__text,
main > section.section:not(.section--cream) .om-yoga__text,
main > section.section:not(.section--cream) .om-kitchen__text,
main > section.section:not(.section--cream) .om-pillars__text,
main > section.section:not(.section--cream) .om-about__text {
  color: var(--color-text-muted);
}

/* Кремовий editorial-блок: текст + фото в один ряд на десктопі */
.om-editorial .om-editorial__inner.container {
  width: min(80rem, 96vw);
  max-width: min(80rem, 96vw);
}

.om-editorial__row {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

/* Фокус кадру «приватні івенти» — змініть % за потреби (горизонталь / вертикаль) */
.om-editorial {
  --om-editorial-img-focus: 48% 54%;
}

.om-pravilo {
  --om-editorial-img-focus: 50% 42%;
}

.om-editorial__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.om-editorial .hero__title,
.om-saunas .hero__title,
.om-private .hero__title,
.om-ofuro .hero__title {
  margin-bottom: clamp(0.6rem, 1.2vw, 0.95rem);
  font-size: clamp(1.5rem, 2.5vw + 0.82rem, 3rem);
  line-height: 1.16;
  color: var(--on-cream-text);
  text-shadow: none;
  text-align: center;
  width: 100%;
}

.om-editorial .hero__secondary,
.om-saunas .hero__secondary,
.om-private .hero__secondary,
.om-ofuro .hero__secondary {
  align-items: center;
  width: 100%;
  margin-bottom: 0;
}

.om-ofuro .hero__secondary {
  gap: 0;
  row-gap: 0;
}

.om-ofuro .hero__secondary > .hero__lead + .hero__lead {
  margin-top: 0;
}

/* «Тренажер Правило»: підняти 2-ге речення (зменшити відстань між абзацами) */
.om-pravilo .hero__secondary {
  gap: 0;
  row-gap: 0;
}

.om-pravilo .hero__secondary > .hero__lead + .hero__lead {
  margin-top: 0;
}

.om-ofuro .hero__lead--ofuro-lead {
  font-weight: 500;
  color: var(--on-cream-text);
  letter-spacing: 0.035em;
}

.om-private .hero__secondary {
  gap: 0;
  row-gap: 0;
}

.om-private .hero__secondary > .hero__lead + .hero__lead {
  margin-top: 0;
}

.om-editorial .hero__lead,
.om-saunas .hero__lead,
.om-private .hero__lead,
.om-ofuro .hero__lead {
  font-size: clamp(0.8125rem, 0.42vw + 0.72rem, 0.96875rem);
  line-height: 1.62;
  color: var(--on-cream-text);
  text-align: center;
  max-width: none;
}

.om-editorial__media {
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(62, 91, 102, 0.08);
  box-shadow: 0 16px 48px rgba(42, 36, 32, 0.12);
}

.om-editorial__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--om-editorial-img-focus);
}

@media (min-width: 48rem) {
  .om-editorial__copy {
    align-items: flex-start;
    text-align: left;
  }

  .om-editorial .hero__title {
    text-align: left;
  }

  .om-editorial .hero__secondary {
    align-items: flex-start;
  }

  .om-editorial .hero__lead {
    text-align: left;
  }

  .om-saunas .hero__lead,
  .om-private .hero__lead,
  .om-ofuro .hero__lead {
    text-align: center;
  }
}

@media (max-width: 47.99rem) {
  .om-editorial {
    --om-editorial-img-focus: 48% 58%;
  }

  .om-editorial__media {
    aspect-ratio: 4 / 3;
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    border-radius: 0;
    box-shadow: none;
  }
}

/* Парні OMO: кремовий блок, текст по центру, сітка фото (див. om-saunas__grid--featured) */
.om-saunas .om-saunas__inner.container {
  width: min(80rem, 96vw);
  max-width: min(80rem, 96vw);
}

.om-saunas__intro {
  margin: 0 auto var(--space-xl);
  max-width: min(48rem, 94vw);
  text-align: center;
}

/* Сітка «Парні»: за замовчуванням 2×2; --featured — один ряд на всю ширину зверху + два кадри знизу */
.om-saunas__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0.65rem;
  align-items: stretch;
}

.om-saunas__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(62, 91, 102, 0.08);
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.om-saunas__grid--featured .om-saunas__figure--top {
  grid-column: 1 / -1;
  grid-row: 1;
  aspect-ratio: 2.15 / 1;
}

.om-saunas__figure--bl {
  grid-column: 1;
  grid-row: 2;
}

.om-saunas__figure--br {
  grid-column: 2;
  grid-row: 2;
}

/* 2×2 (якщо колись знадобиться без модифікатора) */
.om-saunas__figure--tall {
  grid-column: 1;
  grid-row: 1;
}

.om-saunas__figure--tr {
  grid-column: 2;
  grid-row: 1;
}

.om-saunas__figure--tl {
  grid-column: 1;
  grid-row: 1;
}

.om-saunas__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 47.99rem) {
  .om-saunas__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0.5rem;
    align-items: stretch;
  }

  .om-saunas__figure {
    aspect-ratio: unset;
    align-self: stretch;
    min-height: clamp(9.25rem, 46vw, 17.5rem);
  }

  .om-saunas__grid--featured .om-saunas__figure--top {
    aspect-ratio: unset;
    min-height: clamp(11.5rem, 52vw, 18rem);
  }
}

/* Парні: десктоп — менший блок + нижчі пропорції; без max-height на figure (інакше ламається grid) */
@media (min-width: 64rem) {
  .om-saunas .om-saunas__inner.container {
    width: min(68rem, 90vw);
    max-width: min(68rem, 90vw);
  }

  .om-saunas__intro {
    margin-bottom: var(--space-lg);
  }

  .om-saunas__grid--featured {
    gap: 0.5rem;
  }

  .om-saunas__grid--featured .om-saunas__figure--top {
    aspect-ratio: 2.75 / 1;
  }

  .om-saunas__grid--featured .om-saunas__figure--bl,
  .om-saunas__grid--featured .om-saunas__figure--br {
    aspect-ratio: 5 / 4;
  }
}

/* Масаж: темний блок після кремового «Парні» — текст по центру, дві фото 50/50 */
.om-massage .om-massage__inner.container {
  width: min(80rem, 96vw);
  max-width: min(80rem, 96vw);
}

.om-massage__intro {
  margin: 0 auto var(--space-xl);
  max-width: min(48rem, 94vw);
  text-align: center;
}

.om-massage__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw + 0.82rem, 3rem);
  line-height: 1.16;
  letter-spacing: var(--tracking-display);
  color: var(--color-text);
}

.om-massage__text {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-hero-sub);
  font-size: clamp(0.8125rem, 0.42vw + 0.72rem, 0.96875rem);
  font-weight: 200;
  line-height: 1.62;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.om-massage__text:last-child {
  margin-bottom: 0;
}

.om-massage__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: stretch;
}

.om-massage__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(62, 91, 102, 0.2);
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.om-massage__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 47.99rem) {
  .om-massage__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0.5rem;
    align-items: stretch;
  }

  .om-massage__figure {
    aspect-ratio: unset;
    align-self: stretch;
    min-height: clamp(11rem, 58vw, 22rem);
  }
}

/* Приватна лазня: зміщена колаж-сітка — зліва високий/низький, справа низький/високий (~70/30 vs 30/70) */
.om-private .om-private__inner.container {
  width: min(80rem, 96vw);
  max-width: min(80rem, 96vw);
}

.om-private__intro {
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
  max-width: min(48rem, 94vw);
  text-align: center;
}

.om-private__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0.65rem;
  align-items: stretch;
  min-height: min(76vh, 44rem);
}

.om-private__col {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

.om-private__col--stagger-left {
  grid-template-rows: 7fr 3fr;
}

.om-private__col--stagger-right {
  grid-template-rows: 3fr 7fr;
}

.om-private__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(62, 91, 102, 0.08);
  min-width: 0;
  min-height: 0;
  align-self: stretch;
}

.om-private__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Три фото: широкий кадр зверху на всю ширину, лаунж і парна знизу — без порожньої клітинки */
.om-private__grid--three {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: min(52vh, 32rem);
}

.om-private__grid--three .om-private__figure--pool {
  grid-column: 1 / -1;
  grid-row: 1;
  aspect-ratio: 2.45 / 1;
  min-height: 0;
}

.om-private__grid--three .om-private__figure--lounge {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 5 / 4;
}

.om-private__grid--three .om-private__figure--sauna {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 5 / 4;
}

@media (max-width: 47.99rem) {
  .om-private__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    min-height: min(58vh, 26rem);
    gap: 0.45rem;
  }

  .om-private__grid--three {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: min(48vh, 22rem);
  }

  .om-private__grid--three .om-private__figure--pool {
    grid-column: 1 / -1;
    grid-row: 1;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .om-private__grid--three .om-private__figure--lounge {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 5 / 4;
    min-height: 0;
  }

  .om-private__grid--three .om-private__figure--sauna {
    grid-column: 2;
    grid-row: 2;
    aspect-ratio: 5 / 4;
    min-height: 0;
  }

  .om-private__col--stagger-left,
  .om-private__col--stagger-right {
    grid-template-rows: 7fr 3fr;
  }

  .om-private__figure--tall,
  .om-private__figure--short {
    aspect-ratio: auto;
    min-height: 0;
  }
}

/* Йога та саундхілінг: темний блок після кремової «Приватна лазня» — текст і одне широке фото */
.om-yoga .om-yoga__inner.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(80rem, 96vw);
  max-width: min(80rem, 96vw);
}

.om-yoga__intro {
  width: 100%;
  max-width: min(48rem, 94vw);
  margin: 0 0 var(--space-xl);
  text-align: center;
}

.om-yoga__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw + 0.82rem, 3rem);
  line-height: 1.16;
  letter-spacing: var(--tracking-display);
  color: var(--color-text);
}

.om-yoga__text {
  margin: 0;
  font-family: var(--font-hero-sub);
  font-size: clamp(0.8125rem, 0.42vw + 0.72rem, 0.96875rem);
  font-weight: 200;
  line-height: 1.62;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.om-yoga__text + .om-yoga__text {
  margin-top: 0;
}

.om-yoga__media {
  width: 100%;
  max-width: min(72rem, 100%);
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(62, 91, 102, 0.2);
  aspect-ratio: 21 / 9;
  max-height: min(52vh, 28rem);
}

.om-yoga__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 47.99rem) {
  .om-yoga__media {
    aspect-ratio: 16 / 10;
    max-height: none;
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    border-radius: 0;
  }
}

/* Офуро: кремовий блок після темної йоги — текст і широке фото по центру */
.om-ofuro .om-ofuro__inner.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(80rem, 96vw);
  max-width: min(80rem, 96vw);
}

.om-ofuro__intro {
  width: 100%;
  max-width: min(48rem, 94vw);
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.om-ofuro__media {
  width: 100%;
  max-width: min(72rem, 100%);
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(62, 91, 102, 0.08);
  box-shadow: 0 16px 48px rgba(42, 36, 32, 0.12);
  aspect-ratio: 21 / 9;
  max-height: min(52vh, 28rem);
}

.om-ofuro__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 47.99rem) {
  .om-ofuro__media {
    aspect-ratio: 16 / 10;
    max-height: none;
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    border-radius: 0;
    box-shadow: none;
  }
}

/* OMO KITCHEN: темний блок після кремового «Офуро» */
.om-kitchen .om-kitchen__inner.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(80rem, 96vw);
  max-width: min(80rem, 96vw);
}

.om-kitchen__intro {
  width: 100%;
  max-width: min(48rem, 94vw);
  margin: 0 0 var(--space-xl);
  text-align: center;
}

.om-kitchen__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw + 0.82rem, 3rem);
  line-height: 1.16;
  letter-spacing: var(--tracking-display);
  color: var(--color-text);
}

.om-kitchen__text {
  margin: 0;
  font-family: var(--font-hero-sub);
  font-size: clamp(0.8125rem, 0.42vw + 0.72rem, 0.96875rem);
  font-weight: 200;
  line-height: 1.62;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.om-kitchen__text + .om-kitchen__text {
  margin-top: 0;
}

.om-kitchen__media {
  width: 100%;
  max-width: min(72rem, 100%);
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(62, 91, 102, 0.2);
  aspect-ratio: 21 / 9;
  max-height: min(52vh, 28rem);
}

.om-kitchen__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 47.99rem) {
  .om-kitchen__media {
    aspect-ratio: 16 / 10;
    max-height: none;
    width: 100vw;
    max-width: 100vw;
    margin-inline: calc(50% - 50vw);
    border-radius: 0;
  }
}

/* Чайна кімната: темний блок — асиметрична сітка: зліва одне високе фото, справа два в стовпчик */
.om-tea .om-tea__inner.container {
  width: min(80rem, 96vw);
  max-width: min(80rem, 96vw);
}

.om-tea__intro {
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
  max-width: min(48rem, 94vw);
  text-align: center;
}

.om-tea__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw + 0.82rem, 3rem);
  line-height: 1.16;
  letter-spacing: var(--tracking-display);
  color: var(--color-text);
}

.om-tea__text {
  margin: 0;
  font-family: var(--font-hero-sub);
  font-size: clamp(0.8125rem, 0.42vw + 0.72rem, 0.96875rem);
  font-weight: 200;
  line-height: 1.62;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.om-tea__text + .om-tea__text {
  margin-top: 0;
}

.om-tea__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 0.65rem;
  align-items: stretch;
  min-height: min(48vh, 34rem);
}

.om-tea__figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(62, 91, 102, 0.2);
  min-height: 0;
}

.om-tea__figure--tall {
  grid-column: 1;
  grid-row: 1 / -1;
  aspect-ratio: auto;
  align-self: stretch;
}

.om-tea__figure--tr {
  grid-column: 2;
  grid-row: 1;
  aspect-ratio: auto;
  min-height: 0;
}

.om-tea__figure--br {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: auto;
  min-height: 0;
}

.om-tea__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 47.99rem) {
  .om-tea__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 0.45rem;
    min-height: min(52vh, 24rem);
  }

  .om-tea__figure--tall {
    grid-column: 1;
    grid-row: 1 / -1;
    aspect-ratio: auto;
    min-height: 0;
    align-self: stretch;
  }

  .om-tea__figure--tr {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: auto;
    min-height: 0;
    align-self: stretch;
  }

  .om-tea__figure--br {
    grid-column: 2;
    grid-row: 2;
    aspect-ratio: auto;
    min-height: 0;
    align-self: stretch;
  }
}

/* Філософія OMO: список зліва + фото справа — та сама сітка й ширина, що й om-editorial */
.om-pillars .om-pillars__inner.container {
  width: min(80rem, 96vw);
  max-width: min(80rem, 96vw);
}

.om-pillars.section {
  padding-block: clamp(1.5rem, 3.5vw, 2.5rem);
}

.om-pillars__row {
  display: grid;
  gap: var(--space-md);
  align-items: start;
}

.om-pillars__stories {
  width: 100%;
  min-width: 0;
}

.om-pillars__media {
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(62, 91, 102, 0.12);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
}

.om-pillars__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 48rem) {
  .om-pillars__media {
    position: sticky;
    top: calc(var(--header-height) + var(--space-sm));
  }
}

/* Один ряд «текст | фото» у кремовому та темному блоці: однакова ширина колонок і фото */
@media (min-width: 48rem) {
  .om-editorial__row,
  .om-pillars__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .om-editorial__row {
    gap: var(--space-xl);
  }

  .om-pillars__row {
    gap: var(--space-lg);
  }

  .om-editorial__media,
  .om-pillars__media {
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
    aspect-ratio: 3 / 4;
    max-height: min(78vh, 40rem);
    box-sizing: border-box;
  }
}

/* Десктоп ≥1024px: компактніші галереї (як «Парні») — вужчий контейнер, нижчі пропорції; без max-height на grid-фігурах */
@media (min-width: 64rem) {
  .om-massage .om-massage__inner.container {
    width: min(68rem, 90vw);
    max-width: min(68rem, 90vw);
  }

  .om-massage__intro {
    margin-bottom: var(--space-lg);
  }

  .om-massage__grid {
    gap: 0.5rem;
  }

  .om-massage__figure {
    aspect-ratio: 5 / 4;
  }

  .om-private .om-private__inner.container {
    width: min(68rem, 90vw);
    max-width: min(68rem, 90vw);
  }

  .om-private__intro {
    margin-bottom: var(--space-lg);
  }

  .om-private__grid {
    min-height: min(62vh, 34rem);
    gap: 0.5rem;
  }

  .om-private__grid--three {
    min-height: min(50vh, 30rem);
  }

  .om-private__col {
    gap: 0.5rem;
  }

  .om-tea .om-tea__inner.container {
    width: min(68rem, 90vw);
    max-width: min(68rem, 90vw);
  }

  .om-tea__intro {
    margin-bottom: var(--space-lg);
  }

  .om-tea__grid {
    min-height: min(38vh, 26rem);
    gap: 0.5rem;
  }

  .om-editorial .om-editorial__inner.container,
  .om-pillars .om-pillars__inner.container {
    width: min(68rem, 90vw);
    max-width: min(68rem, 90vw);
  }

  .om-editorial__media,
  .om-pillars__media {
    aspect-ratio: 5 / 6;
    max-height: min(68vh, 34rem);
  }

  .om-yoga .om-yoga__inner.container,
  .om-ofuro .om-ofuro__inner.container,
  .om-kitchen .om-kitchen__inner.container {
    width: min(68rem, 90vw);
    max-width: min(68rem, 90vw);
  }

  .om-yoga__intro,
  .om-kitchen__intro {
    margin-bottom: var(--space-lg);
  }

  .om-ofuro .om-ofuro__intro {
    margin-bottom: var(--space-lg);
  }

  .om-yoga__media,
  .om-ofuro__media,
  .om-kitchen__media {
    max-width: min(60rem, 100%);
    aspect-ratio: 2.5 / 1;
    max-height: min(44vh, 22rem);
  }
}

@media (max-width: 47.99rem) {
  .om-pillars__media {
    aspect-ratio: 16 / 10;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    border-radius: 3px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  }
}

.om-pillars__story {
  padding-block: var(--space-sm);
  border-top: 1px solid rgba(253, 245, 230, 0.1);
}

.om-pillars__story:first-child {
  padding-top: 0;
  border-top: none;
}

.om-pillars__content {
  min-width: 0;
}

.om-pillars__title {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.1vw + 0.82rem, 1.3rem);
  line-height: 1.3;
  letter-spacing: var(--tracking-display);
  color: var(--color-text);
}

.om-pillars__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--type-base);
  font-weight: 200;
  line-height: 1.65;
  letter-spacing: var(--tracking-body);
  color: var(--color-text-muted);
}

.om-pillars__text + .om-pillars__text {
  margin-top: 0.12rem;
}

.site-footer {
  padding-block: clamp(3.25rem, 8vw, 5.5rem);
  border-top: 1px solid rgba(255, 248, 231, 0.1);
  background-color: var(--mesh-base-a);
  background-image:
    radial-gradient(
      ellipse 115% 140% at 8% 48%,
      var(--mesh-warm-core) 0%,
      var(--mesh-warm-mid) 22%,
      var(--mesh-warm-edge) 42%,
      transparent 62%
    ),
    radial-gradient(
      ellipse 55% 70% at -5% 52%,
      rgba(255, 248, 231, 0.2) 0%,
      transparent 48%
    ),
    radial-gradient(
      ellipse 90% 85% at 102% -5%,
      var(--mesh-void) 0%,
      rgba(10, 28, 36, 0.55) 38%,
      transparent 68%
    ),
    radial-gradient(
      ellipse 95% 90% at -8% 108%,
      var(--mesh-void) 0%,
      rgba(10, 28, 36, 0.5) 40%,
      transparent 65%
    ),
    linear-gradient(
      168deg,
      var(--mesh-base-b) 0%,
      var(--mesh-base-a) 35%,
      #0d2530 62%,
      #081820 100%
    );
  background-repeat: no-repeat;
  color: var(--color-text);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3rem);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
  width: 100%;
}

@media (min-width: 52rem) {
  .site-footer__grid {
    grid-template-columns:
      minmax(10rem, 18rem)
      minmax(14rem, 1fr)
      minmax(10rem, 22rem);
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
  }

  .site-footer__col--info {
    justify-self: start;
  }

  .site-footer__col--center {
    justify-self: center;
    align-self: center;
    max-width: min(20rem, 100%);
  }

  .site-footer__col--form {
    justify-self: end;
    width: 100%;
    max-width: 22rem;
  }
}

.site-footer__col--info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

@media (max-width: 51.99rem) {
  .site-footer__col--info,
  .site-footer__col--center,
  .site-footer__col--form {
    justify-self: center;
    max-width: 22rem;
    margin-inline: auto;
    width: 100%;
  }

  .site-footer__col--info {
    align-items: center;
    text-align: center;
  }

  .site-footer__col--center {
    text-align: center;
    padding-block: 0.25rem;
  }

  .site-footer__social {
    justify-content: center;
  }
}

.site-footer__col--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
}

.site-footer__phrase {
  margin: 0;
  max-width: 22rem;
  font-family: var(--font-hero-sub);
  font-size: clamp(0.6875rem, 1.1vw, 0.8125rem);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-wrap: balance;
  color: rgba(244, 241, 234, 0.5);
}

.site-footer__logo {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.site-footer__logo img {
  display: block;
  height: clamp(2.25rem, 4vw, 2.75rem);
  width: auto;
  opacity: 0.95;
}

.site-footer__logo:hover img {
  opacity: 1;
}

.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__link {
  font-family: var(--font-hero-sub);
  font-size: clamp(0.875rem, 0.35vw + 0.78rem, 0.9375rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__link:hover,
.site-footer__link:focus-visible {
  color: var(--color-link-hover);
  outline: none;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: rgba(244, 241, 234, 0.82);
  background: rgba(62, 91, 102, 0.2);
  border: 1px solid rgba(255, 248, 231, 0.1);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  background: rgba(62, 91, 102, 0.32);
  border-color: rgba(216, 201, 180, 0.22);
  color: var(--color-link-hover);
  outline: none;
}

.site-footer__social-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

/* Заливка логотипу Threads — трохи менше за розміром, щоб збігалась вага з outline Instagram */
.site-footer__social-icon--threads {
  transform: scale(0.88);
  transform-origin: center;
}

.site-footer__form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.site-footer__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.site-footer__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer__field {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1.15rem;
  border: 1px solid rgba(255, 248, 231, 0.14);
  border-radius: 999px;
  font-family: var(--font-hero-sub);
  font-size: 0.9375rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--color-text);
  background: rgba(62, 91, 102, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.site-footer__field::placeholder {
  color: rgba(244, 241, 234, 0.45);
}

.site-footer__field:hover {
  background: rgba(62, 91, 102, 0.26);
  border-color: rgba(255, 248, 231, 0.2);
}

.site-footer__field:focus {
  outline: none;
  border-color: rgba(216, 201, 180, 0.35);
  box-shadow: 0 0 0 3px rgba(216, 201, 180, 0.12);
  background: rgba(62, 91, 102, 0.28);
}

.site-footer__submit {
  margin-top: 0.15rem;
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-hero-sub);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--color-text);
  cursor: pointer;
  background: rgba(5, 15, 20, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 248, 231, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.site-footer__submit:hover {
  background: rgba(5, 15, 20, 0.62);
  border-color: rgba(216, 201, 180, 0.2);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
}

.site-footer__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 201, 180, 0.2);
}

.site-footer__submit:active {
  transform: scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__submit:active {
    transform: none;
  }
}

.site-footer__copy {
  margin: 0;
  padding-top: clamp(1.25rem, 3vw, 2rem);
  border-top: 1px solid rgba(255, 248, 231, 0.08);
  font-size: var(--type-base);
  font-weight: 200;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-align: center;
}

.site-footer__copy-sep {
  margin-inline: 0.35em;
  opacity: 0.5;
}

.site-footer__copy-link {
  font-family: var(--font-hero-sub);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition: color 0.15s ease;
}

.site-footer__copy-link:hover,
.site-footer__copy-link:focus-visible {
  color: var(--color-link-hover);
  outline: none;
}

@media (max-width: 47.99rem) {
  .site-footer__copy-sep,
  .site-footer__copy-link {
    display: none;
  }
}

@media (min-width: 52rem) {
  .site-footer__copy {
    text-align: center;
  }
}

/*
 * Мобільна / планшетна типографіка (до десктоп-меню): однаковий «тілесний» кегль
 * та згодовані заголовки — без зміни сімейств шрифтів.
 */
@media (max-width: 1023.98px) {
  :root {
    --type-mobile-body: 0.9375rem;
    --type-mobile-subhead: 1rem;
  }

  .hero__lead,
  .om-editorial .hero__lead,
  .om-saunas .hero__lead,
  .om-private .hero__lead,
  .om-ofuro .hero__lead {
    font-size: var(--type-mobile-body);
    line-height: 1.62;
    letter-spacing: 0.04em;
  }

  .hero__title {
    font-size: clamp(1.65rem, 4.2vw + 0.85rem, 2.2rem);
    line-height: 1.16;
  }

  .om-editorial .hero__title,
  .om-saunas .hero__title,
  .om-private .hero__title,
  .om-ofuro .hero__title {
    font-size: clamp(1.5rem, 3.8vw + 0.78rem, 2.05rem);
    line-height: 1.18;
  }

  .om-pillars__text,
  .site-footer__copy {
    font-size: var(--type-mobile-body);
  }

  .om-pillars__title {
    font-size: var(--type-mobile-subhead);
    line-height: 1.42;
  }

  .om-massage__title,
  .om-tea__title,
  .om-yoga__title,
  .om-kitchen__title {
    font-size: clamp(1.5rem, 3.8vw + 0.78rem, 2.05rem);
    line-height: 1.18;
  }

  .om-massage__text,
  .om-tea__text,
  .om-yoga__text,
  .om-kitchen__text {
    font-size: var(--type-mobile-body);
    line-height: 1.62;
  }
}

/* ——— Сторінка 404 ——— */
body.page-404 {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

.page-404__header {
  padding-block: 1rem;
  border-bottom: 1px solid rgba(255, 248, 231, 0.08);
}

.page-404__header-inner {
  width: var(--container);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-404__logo {
  display: flex;
  line-height: 0;
}

.page-404__logo img {
  display: block;
  height: clamp(1.55rem, 3.6vw, 2rem);
  width: auto;
}

.page-404__lang {
  display: flex;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-404__lang a {
  color: rgba(244, 241, 234, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-404__lang a:hover,
.page-404__lang a:focus-visible {
  color: var(--color-link-hover);
  outline: none;
}

.page-404__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 10vw, 4rem) 1.25rem;
}

.page-404__panel {
  text-align: center;
  max-width: 28rem;
}

.page-404__code {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 16vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1;
  color: rgba(244, 241, 234, 0.12);
  text-indent: 0.22em;
}

.page-404__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
}

.page-404__text {
  margin: 0 0 1.65rem;
  font-family: var(--font-hero-sub);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}

.page-404__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.page-404__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12.5rem;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-hero-sub);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: rgba(244, 241, 234, 0.88);
  border: 1px solid rgba(255, 248, 231, 0.16);
  border-radius: 999px;
  background: rgba(62, 91, 102, 0.28);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.page-404__btn:hover,
.page-404__btn:focus-visible {
  color: var(--color-link-hover);
  border-color: rgba(216, 201, 180, 0.32);
  background: rgba(62, 91, 102, 0.4);
  outline: none;
}

.page-404__btn--ghost {
  background: transparent;
  border-color: rgba(255, 248, 231, 0.12);
}

body.page-thanks .page-404__code {
  letter-spacing: 0;
  text-indent: 0;
  font-size: clamp(2.25rem, 11vw, 3.75rem);
  color: rgba(186, 212, 198, 0.42);
}

/* ——— Сторінка «Правила відвідування» ——— */
body.page-rules .page-404__main {
  align-items: flex-start;
  padding-top: clamp(2rem, 6vw, 3rem);
}

body.page-rules .page-404__panel {
  max-width: min(40rem, 100%);
  text-align: left;
}

body.page-rules .page-404__title {
  text-align: center;
  margin-bottom: 1.25rem;
}

.page-rules__lead {
  margin: 0 0 1.35rem;
  font-family: var(--font-hero-sub);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}

.page-rules__section {
  margin-bottom: 1.35rem;
}

.page-rules__section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.9);
}

.page-rules__section p,
.page-rules__section li {
  margin: 0;
  font-family: var(--font-hero-sub);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.62;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
}

.page-rules__section p + p {
  margin-top: 0.5rem;
}

.page-rules__section ul {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.page-rules__section li + li {
  margin-top: 0.35rem;
}

.page-rules__list--main {
  margin-top: 0.25rem;
}

.page-rules__list--main li + li {
  margin-top: 0.45rem;
}

body.page-rules .page-404__actions {
  margin-top: 1.5rem;
  align-items: stretch;
}

/* ——— Luxury motion: герой, скрол, фото (клас .lux-reveal додає JS) ——— */
@keyframes lux-scrim-glow {
  0% {
    transform: translate(-4%, -3%) scale(1);
    opacity: 0.75;
  }
  100% {
    transform: translate(5%, 4%) scale(1.08);
    opacity: 1;
  }
}

@keyframes lux-hero-pan {
  0% {
    object-position: 47% 44%;
  }
  100% {
    object-position: 53% 52%;
  }
}

@keyframes lux-hero-rise {
  from {
    opacity: 0;
    transform: translateY(1.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html.js-lux .lux-reveal {
  opacity: 0;
  transform: translateY(2.35rem);
  transition:
    opacity 1.25s var(--ease-out-expo),
    transform 1.25s var(--ease-out-expo);
}

html.js-lux .lux-reveal.lux-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  main section:not(.hero) figure img {
    transition: transform 1.35s var(--ease-out-expo);
  }

  main section:not(.hero) figure:hover img {
    transform: scale(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scrim::after {
    animation: none !important;
    display: none !important;
  }

  .hero__img {
    animation: none !important;
    transform: none !important;
    will-change: auto !important;
  }

  .hero__title,
  .hero__secondary,
  .hero__stores {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html.js-lux .lux-reveal,
  html.js-lux .lux-reveal.lux-reveal--visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .site-header {
    transition: none !important;
  }

  main section:not(.hero) figure img {
    transition: none !important;
    transform: none !important;
  }
}
