/* ========================================
   Переменные — стиль Serenity / KIRI
   ======================================== */
:root {
  --color-page: #0E0E0E;
  --color-bg: #141414;
  --color-surface: #1C1C1C;
  --color-text: #F3EDE6;
  --color-muted: #A39E97;
  --color-sand: #C5A990;
  --color-sand-dark: #B08F78;
  --color-line: rgba(243, 237, 230, 0.16);
  --color-veil: rgba(10, 10, 10, 0.45);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", "Courier New", monospace;

  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.5rem;
  --text-display: clamp(3.15rem, 7.5vw, 6.75rem);
  --text-stat: clamp(1.75rem, 3.5vw, 2.75rem);
  --text-hero-word: clamp(4rem, 18vw, 13rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --radius: 1rem;
  --radius-lg: 1.75rem;
  --radius-shell: clamp(1.5rem, 3vw, 2.75rem);
  --radius-pill: 999px;
  --line: 1px;
  --header-h: 5rem;
  --pad-x: clamp(1.5rem, 4.5vw, 3.75rem);
  --step-width: 12.5rem;
  --menu-max: 48rem;
  --marquee-duration: 40s;
  --shell-pad: clamp(0.65rem, 1.8vw, 1.15rem);
}

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

html {
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--color-sand);
}

/* Страница + скруглённая оболочка */
.page {
  padding: var(--shell-pad);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}

.shell {
  position: relative;
  background-color: var(--color-bg);
  border-radius: var(--radius-shell);
  overflow: clip;
  max-width: 100%;
  min-height: calc(100vh - var(--shell-pad) * 2);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.04;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Кнопки-таблетки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-pill);
  border: var(--line) solid transparent;
  background: transparent;
  color: var(--color-text);
}

.btn--sand {
  background-color: var(--color-sand);
  color: #1A1410;
}

.btn--sand:hover {
  background-color: var(--color-sand-dark);
}

.js-magnetic {
  display: inline-flex;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Тёплые заглушки «как фото» */
.placeholder {
  margin: 0;
}

.placeholder__block {
  width: 100%;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 35% 30%, rgba(197, 169, 144, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(80, 55, 40, 0.9) 0%, transparent 55%),
    linear-gradient(160deg, #3A2E26 0%, #1A1614 55%, #12100E 100%);
}

.placeholder__block--circle {
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(197, 169, 144, 0.4) 0%, transparent 45%),
    radial-gradient(circle at 60% 70%, #4A382E 0%, #1C1612 70%);
}

.masters__photo {
  margin: 0;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1), transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.masters__photo--tall {
  height: 26rem;
}

.masters__photo--mid {
  height: 20rem;
}

.masters__photo--short {
  height: 15rem;
}

.masters__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  filter: grayscale(1);
  transition: filter 0.7s ease;
  will-change: filter, opacity, transform;
}

.masters__photo:hover .masters__img,
.masters__photo.is-color .masters__img {
  filter: grayscale(0);
}

/* До появления при скролле (только когда JS готов) */
html.js-ready .masters__item.is-waiting .masters__photo {
  opacity: 0;
  transform: translateY(28px);
}

.placeholder__caption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.03em;
  color: var(--color-muted);
  margin-top: var(--space-xs);
  line-height: 1.45;
  opacity: 0.7;
}

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

/* ========================================
   Шапка
   ======================================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
  min-height: var(--header-h);
  padding: var(--space-sm) var(--pad-x);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.header__logo-img {
  display: block;
  height: 4.75rem;
  width: auto;
  max-width: min(11rem, 42vw);
  object-fit: contain;
}

.header__nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin-right: var(--space-md);
}

.header__nav a {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0.85;
}

.header__nav a:hover {
  color: var(--color-sand);
  opacity: 1;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__actions .btn {
  padding: 0.8rem 1.4rem;
}

.header__menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.2rem;
  border: var(--line) solid var(--color-line);
  border-radius: var(--radius-pill);
}

/* Оверлей-меню */
.nav-overlay {
  position: fixed;
  inset: var(--shell-pad);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  padding: var(--space-sm) var(--pad-x) var(--space-xl);
  border-radius: var(--radius-shell);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.nav-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  border-bottom: var(--line) solid var(--color-line);
  margin-bottom: var(--space-xl);
}

.nav-overlay__logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.nav-overlay__logo .header__logo-img {
  height: 5rem;
  max-width: 12rem;
}

.nav-overlay__close {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.2rem;
  border: var(--line) solid var(--color-line);
  border-radius: var(--radius-pill);
}

.nav-overlay__list a {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  display: block;
  padding: 0.15em 0;
}

.nav-overlay__list a:hover {
  font-style: italic;
  color: var(--color-sand);
}

/* ========================================
   01 / Hero — полноэкранное фото
   ======================================== */
.hero {
  position: relative;
  min-height: min(92vh, 56rem);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--header-h) + var(--space-lg)) var(--pad-x) var(--space-2xl);
  overflow: hidden;
}

/* Фото справа (как было) — левый край мягко растворяется, без линии */
.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 38%;
  z-index: 0;
  overflow: hidden;
  background-color: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%);
}

.hero__reveal {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* По умолчанию видно: если CDN/GSAP не загрузились — видео не пропадает */
  clip-path: inset(0 0 0% 0);
  will-change: clip-path;
}

/* Стартовое скрытие только когда анимации реально запустятся */
html.js-anim .hero__reveal {
  clip-path: inset(0 0 100% 0);
}

.hero__img,
.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 30%;
}

.hero__video {
  pointer-events: none;
}


/* Слова заголовка после разбивки в JS */
.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.28em;
}

.hero__title .word__inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.hero__title em .word__inner,
.hero__title .word--italic .word__inner {
  color: var(--color-sand);
  font-style: italic;
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #141414 0%, #141414 28%, rgba(20, 20, 20, 0.4) 42%, transparent 58%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, transparent 30%, rgba(10, 10, 10, 0.3) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100%, 34rem);
  text-align: left;
  margin-left: 0;
  margin-right: auto;
  padding: var(--space-lg) 0;
}

.hero__content .section-label {
  color: rgba(243, 237, 230, 0.7);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-md);
  max-width: 9ch;
}

.hero__title em {
  color: var(--color-sand);
}

.hero__lead {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.65;
  color: rgba(243, 237, 230, 0.75);
  margin-bottom: var(--space-lg);
  max-width: 22rem;
}

/* ========================================
   02 / About + сетка Values
   ======================================== */
.about {
  position: relative;
  padding: var(--space-3xl) var(--pad-x);
  border-top: var(--line) solid var(--color-line);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(197, 169, 144, 0.08) 0%, transparent 40%),
    var(--color-bg);
}

.about__intro {
  max-width: 36rem;
  margin-bottom: var(--space-2xl);
}

.about__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  margin: var(--space-md) 0;
}

.about__lead {
  font-size: var(--text-md);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-muted);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: var(--line) solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(60, 45, 35, 0.5) 0%, transparent 60%),
    var(--color-surface);
}

.about__cell {
  padding: var(--space-lg) var(--space-md);
  border-right: var(--line) solid var(--color-line);
  border-bottom: var(--line) solid var(--color-line);
  min-height: 11rem;
}

.about__cell:nth-child(2n) {
  border-right: none;
}

.about__cell:nth-child(n + 3) {
  border-bottom: none;
}

.about__cell-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: var(--space-sm);
}

.about__cell-num {
  font-family: var(--font-display);
  font-size: var(--text-stat);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.about__cell-text {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 22rem;
}

/* ========================================
   03 / Ритуал — круги как Featured Services
   ======================================== */
.ritual {
  border-top: var(--line) solid var(--color-line);
  background: radial-gradient(ellipse at 50% 0%, #1E1A17 0%, var(--color-bg) 50%);
}

.ritual__pin {
  padding: var(--space-3xl) 0 var(--space-xl);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.ritual__intro {
  padding: 0 var(--pad-x);
  margin-bottom: var(--space-xl);
  text-align: center;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  flex-shrink: 0;
}

.ritual__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-top: var(--space-md);
}

.ritual__viewport {
  overflow: hidden;
  width: 100%;
}

.ritual__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: var(--space-md) var(--pad-x) var(--space-lg);
  list-style: none;
  width: max-content;
  will-change: transform;
}

/* Полоса прогресса горизонтального скролла */
.ritual__progress {
  margin: var(--space-lg) var(--pad-x) 0;
  height: 2px;
  background-color: var(--color-line);
  border-radius: var(--radius-pill);
  overflow: hidden;
  flex-shrink: 0;
}

.ritual__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--color-sand);
  transform-origin: left center;
  transform: scaleX(0);
}

.ritual__step {
  flex: 0 0 var(--step-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
}

.ritual__photo {
  width: 100%;
  margin: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

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

.ritual__photo--focus {
  width: 118%;
  margin-left: -9%;
  margin-bottom: 0.5rem;
}

.ritual__step:nth-child(2) .ritual__img { object-position: center 35%; }
.ritual__step:nth-child(3) .ritual__img { object-position: center 20%; }
.ritual__step:nth-child(4) .ritual__img { object-position: center 30%; }
.ritual__step:nth-child(5) .ritual__img { object-position: center 40%; }
.ritual__step:nth-child(6) .ritual__img { object-position: center 35%; }
.ritual__step:nth-child(7) .ritual__img { object-position: center 25%; }

.ritual__num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--color-sand);
}

.ritual__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.2;
}

.ritual__phrase {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 13rem;
}

/* ========================================
   04 / Меню
   ======================================== */
.menu {
  padding: var(--space-3xl) var(--pad-x);
  border-top: var(--line) solid var(--color-line);
}

.menu__intro {
  margin-bottom: var(--space-xl);
}

.menu__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-top: var(--space-md);
}

.menu__list {
  max-width: var(--menu-max);
  border-top: var(--line) solid var(--color-line);
}

.menu__item {
  position: relative;
  padding: var(--space-md) 0;
  border-bottom: var(--line) solid var(--color-line);
  transition: color 0.35s ease, background-color 0.35s ease;
}

.menu__item.is-hot,
.menu__item:hover {
  color: var(--color-sand);
}

.menu__item.is-hot .menu__name,
.menu__item:hover .menu__name {
  font-style: italic;
}

.menu__item.is-hot .menu__meta,
.menu__item:hover .menu__meta {
  color: rgba(197, 169, 144, 0.75);
}

/* Превью ритуала рядом с курсором */
.menu__preview {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  width: 7.5rem;
  height: 10rem;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate(-40%, -50%) scale(0.92);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  background-color: var(--color-surface);
}

.menu__preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-40%, -50%) scale(1);
}

.menu__preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.menu__row {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
}

.menu__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  flex-shrink: 0;
}

.menu__dots {
  flex: 1 1 auto;
  min-width: 1.5rem;
  height: 0.85em;
  background-image: radial-gradient(circle, var(--color-muted) 1px, transparent 1.2px);
  background-size: 6px 6px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.5;
}

.menu__price {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-sand);
  white-space: nowrap;
}

.menu__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-xs);
  letter-spacing: 0.03em;
}

/* ========================================
   05 / Marquee
   ======================================== */
.marquee {
  overflow: hidden;
  padding: var(--space-xl) 0;
  border-top: var(--line) solid var(--color-line);
  background-color: var(--color-surface);
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  white-space: nowrap;
  padding-right: 0.3em;
  color: var(--color-sand);
}

/* Fallback без JS */
.no-js .marquee__track {
  animation: marquee-scroll var(--marquee-duration) linear infinite;
}

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

/* ========================================
   Кастомный курсор (десктоп, pointer: fine)
   ======================================== */
.cursor {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  width: 0.5rem;
  height: 0.5rem;
  margin: 0;
  border-radius: 50%;
  background-color: var(--color-sand);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.35s ease,
    opacity 0.2s ease;
}

.cursor.is-on {
  display: flex;
}

.cursor.is-visible {
  opacity: 1;
}

.cursor.is-view {
  width: 5.5rem;
  height: 5.5rem;
  background-color: rgba(197, 169, 144, 0.94);
}

.cursor__dot {
  display: none;
}

.cursor__label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1A1410;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.cursor.is-view .cursor__label {
  opacity: 1;
  transform: scale(1);
}

/* Скрываем системный курсор, когда кастомный активен */
body.has-cursor,
body.has-cursor * {
  cursor: none !important;
}

/* В полях ввода — системный курсор (иначе не видно каретку) */
body.has-cursor.has-cursor-native,
body.has-cursor.has-cursor-native * {
  cursor: auto !important;
}

body.has-cursor input,
body.has-cursor textarea,
body.has-cursor select,
body.has-cursor [contenteditable="true"] {
  cursor: text !important;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; }
  .hero__reveal { clip-path: none; }
  .hero__title .word__inner { transform: none; opacity: 1; }
  html.js-ready .masters__item.is-waiting .masters__photo {
    opacity: 1;
    transform: none;
  }
  .masters__img {
    filter: none;
    transition: none;
  }
  .menu__preview,
  .reviews__text,
  .reviews__author,
  .js-magnetic,
  .cursor {
    transition: none !important;
  }
  .menu__preview { display: none !important; }
  .cursor { display: none !important; }
  body.has-cursor,
  body.has-cursor * {
    cursor: auto !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .menu__preview { display: none !important; }
  .cursor { display: none !important; }
  body.has-cursor,
  body.has-cursor * {
    cursor: auto !important;
  }
}

/* ========================================
   06 / Мастера — Journey layout
   ======================================== */
.masters {
  padding: var(--space-3xl) var(--pad-x);
  border-top: var(--line) solid var(--color-line);
}

.masters__intro {
  margin-bottom: var(--space-2xl);
  max-width: 24rem;
}

.masters__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-top: var(--space-md);
}

.masters__stage {
  position: relative;
}

.masters__ring {
  position: absolute;
  top: 5%;
  left: 32%;
  width: min(40vw, 26rem);
  height: min(40vw, 26rem);
  border: var(--line) solid var(--color-line);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.masters__list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-xl) var(--space-lg);
}

.masters__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.masters__item--a {
  flex: 0 1 17rem;
  padding-bottom: var(--space-2xl);
}

.masters__item--b {
  flex: 0 1 14rem;
  margin-top: var(--space-xl);
}

.masters__item--c {
  flex: 0 1 13rem;
  margin-left: auto;
}

.masters__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-top: var(--space-sm);
}

.masters__years {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-sand);
}

.masters__quote {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--color-muted);
  max-width: 16rem;
  line-height: 1.5;
}

/* ========================================
   07 / Отзывы
   ======================================== */
.reviews {
  padding: var(--space-3xl) var(--pad-x);
  border-top: var(--line) solid var(--color-line);
  background-color: var(--color-surface);
}

.reviews__top {
  margin-bottom: var(--space-2xl);
}

.reviews__quote {
  max-width: 40rem;
}

.reviews__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.35;
  font-weight: 400;
}

.reviews__author {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-sand);
  margin-top: var(--space-lg);
}

.reviews__quote.is-fading .reviews__text,
.reviews__quote.is-fading .reviews__author {
  opacity: 0;
}

.reviews__text,
.reviews__author {
  transition: opacity 0.45s ease;
}

.reviews__controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: var(--line) solid var(--color-line);
  max-width: 40rem;
}

.reviews__nav {
  min-width: 4.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: var(--line) solid var(--color-line);
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reviews__nav:hover {
  border-color: var(--color-sand);
  color: var(--color-sand);
}

.reviews__counter {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

/* ========================================
   08 / FAQ
   ======================================== */
.faq {
  padding: var(--space-3xl) var(--pad-x);
  border-top: var(--line) solid var(--color-line);
}

.faq__intro {
  margin-bottom: var(--space-xl);
}

.faq__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-top: var(--space-md);
}

.faq__list {
  max-width: var(--menu-max);
  border-top: var(--line) solid var(--color-line);
}

.faq__item {
  border-bottom: var(--line) solid var(--color-line);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  min-height: 2.75rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.3;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background-color: var(--color-sand);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq__icon::before {
  width: 100%;
  height: 1px;
}

.faq__icon::after {
  width: 1px;
  height: 100%;
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 0 var(--space-md);
  max-width: 36rem;
}

.faq__answer p {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.65;
  color: var(--color-muted);
}

/* ========================================
   09 / Запись
   ======================================== */
.booking {
  padding: var(--space-3xl) var(--pad-x);
  border-top: var(--line) solid var(--color-line);
}

.booking__intro {
  margin-bottom: var(--space-xl);
}

.booking__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-top: var(--space-md);
}

.booking__widget {
  max-width: var(--menu-max);
}

.booking__progress {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-sand);
  margin-bottom: var(--space-lg);
}

.booking__step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.booking__step[hidden] {
  display: none;
}

.booking__rituals {
  border-top: var(--line) solid var(--color-line);
}

.booking__ritual {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-sm);
  align-items: baseline;
  width: 100%;
  padding: var(--space-md) 0;
  border-bottom: var(--line) solid var(--color-line);
  text-align: left;
  cursor: pointer;
  color: var(--color-text);
}

.booking__ritual.is-selected .booking__ritual-name,
.booking__ritual:hover .booking__ritual-name {
  font-style: italic;
  color: var(--color-sand);
}

.booking__ritual-name {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
}

.booking__ritual-meta,
.booking__ritual-price {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  white-space: nowrap;
}

.booking__ritual.is-selected .booking__ritual-price {
  color: var(--color-sand);
}

.booking__days,
.booking__times {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.booking__chip {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  padding: 0.9rem 1.15rem;
  border: var(--line) solid var(--color-line);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  cursor: pointer;
  min-width: 4.75rem;
  min-height: 2.75rem;
  text-align: center;
}

.booking__chip:hover {
  border-color: var(--color-sand);
}

.booking__chip.is-selected {
  background-color: var(--color-sand);
  border-color: var(--color-sand);
  color: #1A1410;
}

.booking__chip:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.booking__chip-day {
  display: block;
}

.booking__chip-date {
  display: block;
  margin-top: 0.2rem;
  color: var(--color-muted);
}

.booking__chip.is-selected .booking__chip-date {
  color: #1A1410;
  opacity: 0.65;
}

.booking__back {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  color: var(--color-muted);
  margin-top: var(--space-sm);
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  margin-left: -0.85rem;
  display: inline-flex;
  align-items: center;
}

.booking__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.booking__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  border-bottom: var(--line) solid var(--color-line);
  padding-bottom: var(--space-xs);
}

.booking__field-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.booking__field input {
  font-family: var(--font-body);
  /* ≥16px — без автозума на iOS */
  font-size: 1rem;
  color: var(--color-text);
  background: transparent;
  border: none;
  outline: none;
  padding: 0.75rem 0;
  min-height: 2.75rem;
}

.booking__field input::placeholder {
  color: var(--color-muted);
  opacity: 0.5;
}

.booking__error {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-sand);
}

.booking__form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.booking__done-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  color: var(--color-sand);
  max-width: 22ch;
}

.booking__done[hidden] {
  display: none;
}

/* ========================================
   Футер
   ======================================== */
.footer {
  padding: var(--space-2xl) var(--pad-x) var(--space-lg);
  border-top: var(--line) solid var(--color-line);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.footer__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sand);
  margin-bottom: var(--space-sm);
}

.footer__text {
  font-size: var(--text-sm);
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-muted);
}

.footer__link {
  text-decoration: underline;
  text-underline-offset: 0.25em;
  color: var(--color-text);
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__social a {
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-hero-word);
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: var(--space-lg);
  user-select: none;
}

.footer__credit {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  padding-top: var(--space-md);
  border-top: var(--line) solid var(--color-line);
  letter-spacing: 0.04em;
}

/* ========================================
   Адаптив
   ======================================== */
@media (max-width: 960px) {
  .header__nav {
    display: none;
  }

  .header__menu-btn {
    display: inline-flex;
  }

  .header {
    grid-template-columns: 1fr auto;
  }

  .hero {
    justify-content: flex-start;
    align-items: flex-end;
    min-height: 85vh;
  }

  .hero__media {
    left: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.2) 35%, rgba(10, 10, 10, 0.85) 100%);
  }

  .hero__content {
    max-width: 100%;
  }

  .masters__item--c {
    margin-left: 0;
  }

  .masters__ring {
    left: 8%;
  }

  /* 03 / Ритуал — вертикальный список на телефоне и планшете */
  .ritual__pin {
    min-height: 0;
    padding: var(--space-2xl) 0 var(--space-xl);
    display: block;
  }

  .ritual__intro {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    margin-bottom: var(--space-xl);
  }

  .ritual__viewport {
    overflow: visible;
    width: 100%;
  }

  .ritual__track {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: var(--space-xl);
    padding: 0 var(--pad-x);
    transform: none !important;
    will-change: auto;
  }

  .ritual__step {
    flex: none;
    width: 100%;
    max-width: 22rem;
  }

  .ritual__photo,
  .ritual__photo--focus {
    width: min(100%, 12.5rem);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
  }

  .ritual__phrase {
    max-width: 20rem;
    font-size: 1rem;
  }

  .ritual__progress {
    display: none;
  }

  /* Читаемый текст на телефоне и планшете без зума */
  .hero__lead,
  .about__lead,
  .about__cell-text,
  .masters__quote,
  .faq__answer p {
    font-size: 1rem;
    line-height: 1.65;
  }

  .menu__meta {
    font-size: 0.8125rem;
    line-height: 1.5;
  }

  .booking__chip {
    min-height: 3rem;
    padding: 0.85rem 1.25rem;
  }

  .faq__question {
    min-height: 3rem;
    padding: 1.1rem 0;
  }
}

@media (max-width: 768px) {
  .header__actions .btn--sand {
    display: none;
  }

  .nav-overlay {
    inset: 0;
    border-radius: 0;
  }

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

  .about__cell {
    border-right: none;
    border-bottom: var(--line) solid var(--color-line);
  }

  .about__cell:last-child {
    border-bottom: none;
  }

  .about__cell:nth-child(n + 3) {
    border-bottom: var(--line) solid var(--color-line);
  }

  .masters__list {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .masters__item--a,
  .masters__item--b,
  .masters__item--c {
    flex: none;
    max-width: 18rem;
    padding: 0;
    margin: 0;
  }

  .masters__ring {
    display: none;
  }

  .masters__photo--tall { height: 20rem; }
  .masters__photo--mid { height: 16rem; }
  .masters__photo--short { height: 13rem; }

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

  .booking__ritual {
    grid-template-columns: 1fr auto;
    min-height: 3rem;
    padding: 1rem 0;
  }

  .booking__ritual-meta {
    display: none;
  }

  .hero__title {
    max-width: 12ch;
    font-size: clamp(2.35rem, 11vw, 3.25rem);
  }

  .menu__name {
    font-size: 1.25rem;
  }

  .reviews__text {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  .nav-overlay__list a {
    font-size: clamp(2rem, 9vw, 3rem);
    padding: 0.35em 0;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 0;
  }

  .shell {
    border-radius: 0;
    min-height: 100vh;
  }

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