/* Токени, типографіка, контейнер, утиліти. Секції — наступні етапи. */
:root {
  --bg: #0A0A0A;
  --bg-2: #141210;
  --line: rgba(213, 199, 188, .16);
  --accent: #B8A9A2;
  --accent-light: #D5C7BC;
  --accent-dark: #8D7D70;
  --text: #EDE8E3;
  --muted: #8A827B;
  --metal: linear-gradient(135deg, #8D7D70 0%, #D5C7BC 45%, #B8A9A2 60%, #8D7D70 100%);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;

  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
  --space-160: 160px;

  --pad: clamp(20px, 5vw, 80px);
  --section-y: clamp(80px, 12vw, 160px);
  --max: 1320px;

  --ease: cubic-bezier(.7, 0, .2, 1);
  --dur-micro: .3s;
  --dur-in: 1s;
}

@media (min-width: 900px) {
  :root { --section-y: clamp(80px, 9vw, 120px); }
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  overflow-x: clip;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

button, input, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 1px solid var(--accent-light);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

h1, .h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 15vw, 220px);
  line-height: .88;
  letter-spacing: -.03em;
}

h2, .h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -.02em;
}

p { text-wrap: pretty; }

.container {
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding-inline: var(--pad);
}

section:not(:empty) {
  padding-block: var(--section-y);
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 28px;
  border: 0;
  background-color: var(--accent-dark);
  background-image: var(--metal);
  color: var(--bg);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: filter var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease);
}

.btn:hover { filter: brightness(1.12); }

.btn:focus-visible { outline-offset: 4px; }

/* ---------- Утиліти ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html.is-locked,
html.menu-open { overflow: hidden; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

:root { --header-h: 64px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), background-color .4s ease, border-color .4s ease,
    -webkit-backdrop-filter .4s ease, backdrop-filter .4s ease;
}

.header.is-solid {
  background: rgba(10, 10, 10, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

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

.menu-open .header,
.menu-open .header.is-solid {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-12);
  min-height: 44px;
}

/* Тимчасове jpg-лого має чисто-чорний фон: підтягуємо його до --bg (замінити на SVG) */
.brand__mark {
  display: block;
  width: 44px;
  height: 44px;
  background: var(--bg);
  isolation: isolate;
}

.brand__logo {
  width: 100%;
  height: 100%;
  mix-blend-mode: lighten;
}

.brand__name {
  display: none;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.nav { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  transition: color var(--dur-micro) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: .2em;
  bottom: 8px;
  height: 1px;
  background: var(--metal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}

.nav__link:hover { color: var(--accent-light); }

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.btn.header__cta { display: none; }

.burger {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  margin-right: -10px;
}

.burger__line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--text);
  transition: transform .5s var(--ease), background-color var(--dur-micro) ease;
}

.burger__line:nth-child(1) { top: calc(50% - 4px); }
.burger__line:nth-child(2) { top: calc(50% + 3px); }

.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.burger:hover .burger__line { background: var(--accent-light); }

/* ---------- Mobile menu (<900px) ---------- */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease), visibility 0s linear .7s;
}

.mmenu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path .7s var(--ease), visibility 0s;
}

.mmenu__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-48);
  padding-top: calc(var(--header-h) + var(--space-24));
  padding-bottom: calc(var(--space-32) + env(safe-area-inset-bottom, 0px));
}

.mmenu__list {
  list-style: none;
  counter-reset: mm;
}

.mmenu__item {
  overflow: hidden;
  counter-increment: mm;
  border-bottom: 1px solid var(--line);
}

.mmenu__link {
  display: flex;
  align-items: baseline;
  gap: var(--space-16);
  padding-block: var(--space-12);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 11vw, 56px);
  line-height: 1.1;
  letter-spacing: -.02em;
  transform: translateY(105%);
  transition: transform .8s var(--ease), color var(--dur-micro) ease;
}

.mmenu__link::before {
  content: "0" counter(mm);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--accent-dark);
}

.mmenu__link:hover { color: var(--accent-light); }

.mmenu.is-open .mmenu__link {
  transform: none;
  transition-delay: calc(.2s + var(--i) * .06s), 0s;
}

.mmenu__foot {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .4s ease, transform .4s var(--ease);
}

.mmenu.is-open .mmenu__foot {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease .55s, transform .8s var(--ease) .55s;
}

.mmenu__cta { width: 100%; min-height: 52px; }

.mmenu__address {
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

/* ---------- Hero ---------- */
#hero.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background: var(--bg);
}

.hero__media {
  position: absolute;
  inset: -18% 0 0 0;
  z-index: -2;
  will-change: transform;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, .55) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, .6) 0%, rgba(10, 10, 10, .1) 35%, rgba(10, 10, 10, .85) 100%);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(var(--max), 100%);
  padding: calc(var(--header-h) + var(--space-32)) var(--pad) var(--space-96);
}

.hero__est {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
  color: var(--accent-light);
}

.hero__est-text { padding-left: .28em; }

.hero__rule {
  width: clamp(24px, 6vw, 72px);
  height: 1px;
  background: var(--metal);
}

.hero__rule:first-child { transform-origin: right center; }
.hero__rule:last-child { transform-origin: left center; }

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  max-width: 100%;
}

.hero__word {
  display: flex;
  justify-content: center;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero__mask {
  display: block;
  overflow: hidden;
  padding: .1em .02em;
  margin: -.1em -.035em;
}

.hero__char {
  display: block;
  color: var(--accent-light);
  background-image: var(--metal);
  background-repeat: no-repeat;
}

.hero__word.is-metal .hero__char {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__sub {
  padding-left: .7em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(11px, 1.7vw, 20px);
  line-height: 1;
  letter-spacing: .7em;
  text-transform: uppercase;
  color: var(--text);
}

.hero__tagline {
  margin-top: var(--space-48);
  padding-left: .28em;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .28em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__text {
  max-width: 40ch;
  margin-top: var(--space-16);
  color: var(--muted);
  font-weight: 300;
}

.hero__cta {
  margin-top: var(--space-32);
  min-height: 52px;
  padding-inline: var(--space-48);
}

.hero__cue {
  position: absolute;
  left: calc(50% - .5px);
  bottom: var(--space-24);
  width: 1px;
  height: 48px;
  overflow: hidden;
  background: var(--line);
}

.hero__cue::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-light);
  animation: cue 2.4s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

@media (max-height: 640px) {
  .hero__cue { display: none; }
  .hero__inner { padding-bottom: var(--space-48); }
  .hero__tagline { margin-top: var(--space-24); }
}

/* ---------- Послуги та ціни ---------- */
#services.svc-section { background: var(--bg-2); }

.svc__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
  margin-bottom: var(--space-48);
}

.svc__titles { display: flex; flex-direction: column; gap: var(--space-16); }

.svc__note {
  max-width: 60ch;
  margin-bottom: var(--space-32);
  color: var(--muted);
  font-weight: 300;
}

/* Перемикач рівнів */
.levels {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border-bottom: 1px solid var(--line);
}

.levels__tab {
  min-height: 52px;
  padding: var(--space-12) var(--space-8);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  transition: color var(--dur-micro) var(--ease);
}

.levels__tab:hover,
.levels__tab.is-active { color: var(--accent-light); }

.levels__bar {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  background: var(--metal);
  pointer-events: none;
}

.levels.is-ready .levels__bar { transition: transform .6s var(--ease), width .6s var(--ease); }

/* Категорії та рядки */
.svc__panel { display: flex; flex-direction: column; }

.svc-cat {
  display: grid;
  gap: var(--space-8);
  padding-block: var(--space-32);
  border-bottom: 1px solid var(--line);
}

.svc-cat:first-child { padding-top: 0; }

.svc-cat__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  color: var(--accent);
}

.svc-cat__list { list-style: none; }

.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name price" "dur price";
  align-items: center;
  column-gap: var(--space-24);
  padding-block: var(--space-16);
  border-top: 1px solid var(--line);
}

.svc:first-child { border-top: 0; }

.svc__name {
  grid-area: name;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.2;
  transition: color var(--dur-micro) var(--ease);
}

.svc:hover .svc__name { color: var(--accent-light); }

.svc__dur {
  grid-area: dur;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.svc__price {
  grid-area: price;
  justify-self: end;
  text-align: right;
}

.svc__val {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
  color: var(--accent-light);
  will-change: transform, opacity;
}

.svc__val.is-tbd {
  max-width: 13ch;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: normal;
  color: var(--muted);
}

.svc__foot { margin-top: var(--space-48); }

.svc__cta { min-height: 52px; padding-inline: var(--space-48); }

@media (min-width: 900px) {
  .svc__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-64);
  }

  .levels {
    grid-auto-columns: auto;
    min-width: 520px;
  }

  .levels__tab { padding-inline: var(--space-32); font-size: 12px; }

  .svc-cat {
    grid-template-columns: minmax(200px, 1fr) 2.6fr;
    column-gap: var(--space-48);
    padding-block: var(--space-48);
  }

  .svc-cat:first-child { padding-top: var(--space-16); }

  .svc {
    grid-template-columns: minmax(0, 1fr) 96px 160px;
    grid-template-areas: "name dur price";
    padding-block: var(--space-24);
  }

  .svc__dur { text-align: right; }
}

/* ---------- Майстри: слайдер ---------- */
.masters__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-24);
  margin-bottom: var(--space-48);
}

.masters__titles { display: flex; flex-direction: column; gap: var(--space-16); }

.masters__controls { display: flex; gap: var(--space-12); }
.masters__controls[hidden] { display: none; }

.masters__arrow,
.reviews__arrow,
.lb__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  color: var(--accent-light);
  transition: border-color var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease),
    background-color var(--dur-micro) var(--ease), opacity var(--dur-micro) var(--ease);
}

.masters__arrow:hover:not(:disabled),
.reviews__arrow:hover:not(:disabled),
.lb__btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(213, 199, 188, .06);
}

.masters__arrow:disabled,
.reviews__arrow:disabled,
.lb__btn:disabled { opacity: .3; cursor: default; }

/* Трек: нативний скролл + scroll-snap (свайп працює «з коробки»), на всю ширину екрана */
.masters__track {
  --edge: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  display: flex;
  gap: var(--space-24);
  padding-inline: var(--edge);
  scroll-padding-inline: var(--edge);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
  cursor: grab;
}

.masters__track::-webkit-scrollbar { display: none; }

.masters__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }

.masters__track:focus-visible { outline-offset: -1px; }

/* Картка */
.master {
  flex: 0 0 clamp(260px, 76vw, 380px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.master__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-2);
}

.master__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1);
  transform: scale(1.04);
  transition: filter .9s var(--ease), transform 1.2s var(--ease);
  -webkit-user-drag: none;
  user-select: none;
}

.master__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, .45) 0%, rgba(10, 10, 10, 0) 30%);
  pointer-events: none;
}

.master__badge {
  position: absolute;
  top: var(--space-16);
  left: var(--space-16);
  z-index: 1;
  padding: 8px 12px 8px calc(12px + .2em);
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.master__body { display: flex; flex-direction: column; gap: var(--space-8); }

.master__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.1;
  letter-spacing: -.01em;
  transition: color var(--dur-micro) var(--ease);
}

.master__exp {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.master__cta {
  align-self: stretch;
  margin-top: var(--space-8);
  min-height: 48px;
  padding-inline: var(--space-16);
  background: transparent;
  color: var(--accent-light);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease),
    background-color var(--dur-micro) var(--ease), filter var(--dur-micro) var(--ease),
    transform var(--dur-micro) var(--ease);
}

.master__cta:hover {
  filter: none;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.master__bio {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  opacity: .82;
}

/* Ілюстровані портрети (mastersSection.art): квадрат, без ч/б */
.masters--art .master__photo { aspect-ratio: 1 / 1; }
.masters--art .master__img,
.masters--art .master:hover .master__img,
.masters--art .master.is-active .master__img { filter: none; }
.masters--art .master__photo::after { display: none; }

/* Прогрес */
.masters__foot { margin-top: var(--space-48); }

.masters-section.is-static .masters__foot { display: none; }

.masters__progress,
.reviews__progress {
  display: block;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.masters__progress-bar,
.reviews__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--metal);
  transform-origin: left center;
  transition: transform .5s var(--ease);
}

/* Ч/б → колір: hover (миша), фокус із клавіатури, активна картка на тач-пристроях */
.master:focus-within .master__img {
  filter: grayscale(0);
  transform: scale(1);
}

@media (hover: hover) {
  .master:hover .master__img {
    filter: grayscale(0);
    transform: scale(1);
  }

  .master:hover .master__name { color: var(--accent-light); }

  .master__cta:hover {
    background-color: var(--accent-dark);
    background-image: var(--metal);
    box-shadow: none;
    color: var(--bg);
    filter: brightness(1.12);
  }
}

@media (hover: none) {
  .master.is-active .master__img {
    filter: grayscale(0);
    transform: scale(1);
  }
}

@media (max-width: 599px) {
  .masters__head { margin-bottom: var(--space-32); }
  .masters__arrow,
  .reviews__arrow,
  .lb__btn { width: 44px; height: 44px; }
  .masters__foot { margin-top: var(--space-32); }
}

/* ---------- Про нас ---------- */
.about__lead {
  display: grid;
  gap: var(--space-32);
  align-items: end;
}

.about__titles { display: flex; flex-direction: column; gap: var(--space-16); }

.about__text {
  max-width: 42ch;
  font-weight: 300;
  color: var(--muted);
}

.about__facts {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.about__fact {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding-block: var(--space-24);
  border-bottom: 1px solid var(--line);
}

.about__fact-value {
  order: -1;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent-light);
}

.about__fact-label {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 760px) {
  .about__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .about__fact {
    align-items: center;
    text-align: center;
    padding: var(--space-32) var(--space-24) var(--space-8);
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .about__fact:last-child { border-right: 0; }
}

@media (min-width: 900px) {
  .about__lead {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    column-gap: var(--space-64);
  }

  .about__text { justify-self: end; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  max-width: 100%;
  padding-block: clamp(28px, 4vw, 48px);
  border-block: 1px solid var(--line);
  background: var(--bg);
}

.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee-shift 48s linear infinite;
}

@media (hover: hover) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}

.marquee__row {
  display: flex;
  align-items: center;
  list-style: none;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1;
  white-space: nowrap;
  color: var(--accent-light);
}

.marquee__item::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--accent-dark);
  transform: rotate(45deg);
}

@keyframes marquee-shift {
  to { transform: translate3d(-50%, 0, 0); }
}

/* Коли підключений GSAP, рух керується скролом (ScrollTrigger scrub) */
.marquee.is-scrub .marquee__track { animation: none; }

/* ---------- Галерея ---------- */
#gallery.gallery-section { background: var(--bg-2); }

.gallery__head { margin-bottom: var(--space-48); }

.gallery__titles { display: flex; flex-direction: column; gap: var(--space-16); }

.gallery__grid {
  columns: 2;
  column-gap: var(--space-12);
}

.gallery__item {
  display: inline-block;
  width: 100%;
  margin: 0 0 var(--space-12);
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 1px solid var(--line);
  background: var(--bg);
  vertical-align: top;
  cursor: zoom-in;
}

.gallery__img {
  width: 100%;
  height: auto;
  vertical-align: top;
  transition: transform 1.2s var(--ease);
}

@media (hover: hover) {
  .gallery__item:hover { border-color: var(--accent-dark); }
  .gallery__item:hover .gallery__img { transform: scale(1.04); }
}

@media (min-width: 900px) {
  .gallery__grid { columns: 3; column-gap: var(--space-16); }
  .gallery__item { margin-bottom: var(--space-16); }
  .gallery__head { margin-bottom: var(--space-64); }
}

@media (min-width: 1200px) {
  .gallery__grid { columns: 4; column-gap: var(--space-16); }
  .gallery__item { margin-bottom: var(--space-16); }
}

/* ---------- Лайтбокс ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--space-24);
  background: #0A0A0A;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  overscroll-behavior: contain;
  transition: opacity .4s ease, visibility 0s linear .4s;
}

.lb.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .4s ease, visibility 0s;
}

.lb__figure {
  margin: 0;
  max-width: min(1080px, calc(100vw - 160px));
}

.lb__img {
  max-width: 100%;
  max-height: calc(100svh - 160px);
  width: auto;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  transition: opacity var(--dur-micro) ease;
}

.lb__img.is-loading { opacity: 0; }

.lb__btn { position: absolute; z-index: 2; background: rgba(10, 10, 10, .72); }

.lb__close {
  top: calc(var(--space-16) + env(safe-area-inset-top, 0px));
  right: calc(var(--space-16) + env(safe-area-inset-right, 0px));
}

.lb__prev,
.lb__next {
  top: 50%;
  transform: translateY(-50%);
}

.lb__prev { left: var(--space-16); }
.lb__next { right: var(--space-16); }

.lb__count {
  position: absolute;
  left: 50%;
  bottom: calc(var(--space-24) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--muted);
}

@media (max-width: 699px) {
  .lb { padding: var(--space-16); }

  .lb__figure { max-width: calc(100vw - 32px); }

  .lb__img { max-height: calc(100svh - 168px); }

  .lb__prev,
  .lb__next {
    top: auto;
    bottom: calc(var(--space-16) + env(safe-area-inset-bottom, 0px));
    transform: none;
  }

  .lb__count {
    top: calc(var(--space-24) + env(safe-area-inset-top, 0px));
    bottom: auto;
  }
}

/* ---------- Відгуки ---------- */
.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-24);
  margin-bottom: var(--space-48);
}

.reviews__titles {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-16);
  min-width: 0;
}

.reviews__controls { display: flex; gap: var(--space-12); }
.reviews__controls[hidden] { display: none; }

.reviews__track {
  --edge: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
  display: flex;
  padding-inline: var(--edge);
  scroll-padding-inline: var(--edge);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
  cursor: grab;
}

.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.reviews__track:focus-visible { outline-offset: -1px; }

.review {
  flex: 0 0 clamp(280px, 78vw, 520px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-32);
  min-height: 280px;
  padding: var(--space-8) var(--space-32) var(--space-8) var(--space-24);
  border-left: 1px solid var(--line);
}

.review:last-child { border-right: 1px solid var(--line); }

.review__badge {
  padding: 8px 12px 8px calc(12px + .2em);
  border: 1px solid var(--line);
  background: rgba(213, 199, 188, .06);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.review__quote {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-32);
  margin: 0;
}

.review__quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.25;
  letter-spacing: -.02em;
}

.review__author {
  font-style: normal;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.reviews__foot { margin-top: var(--space-48); }
.reviews-section.is-static .reviews__foot { display: none; }

@media (max-width: 599px) {
  .reviews__head { margin-bottom: var(--space-32); }
  .reviews__foot { margin-top: var(--space-32); }
  .review { min-height: 240px; padding-right: var(--space-24); }
}

/* ---------- CTA ---------- */
#cta.cta-section { background: var(--bg-2); }

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-32);
}

.cta__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
  max-width: 40ch;
}

.cta__text {
  max-width: 36ch;
  font-weight: 300;
  color: var(--muted);
}

.cta__btn {
  flex: none;
  min-height: 52px;
  padding-inline: var(--space-48);
}

/* ---------- Контакти + карта ---------- */
.contacts__layout {
  display: grid;
  gap: var(--space-48);
}

.contacts__info,
.contacts__map { min-width: 0; }

.contacts__titles {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.contacts__list {
  margin-top: var(--space-48);
  border-top: 1px solid var(--line);
}

.contacts__row {
  display: grid;
  gap: var(--space-8);
  padding-block: var(--space-24);
  border-bottom: 1px solid var(--line);
}

.contacts__label {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contacts__value,
.contacts__link {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2;
  color: var(--accent-light);
  overflow-wrap: break-word;
}

.contacts__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background-image: var(--metal);
  background-repeat: no-repeat;
  background-position: left 100%;
  background-size: 0 1px;
  transition: background-size .5s var(--ease), color var(--dur-micro) var(--ease);
}

.contacts__link:hover {
  background-size: 100% 1px;
  color: var(--text);
}

.contacts__tbd {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contacts__hours {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  list-style: none;
}

.contacts__hours li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-8) var(--space-24);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2;
  color: var(--accent-light);
  font-variant-numeric: tabular-nums lining-nums;
}

.contacts__map {
  position: relative;
  min-height: clamp(280px, 70vw, 420px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}

/* Світла карта Google → графіт під палітру. Кліки лишаються на iframe */
.contacts__frame {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  border: 0;
  filter: grayscale(1) invert(.92) contrast(1.05) brightness(.82);
}

@media (min-width: 700px) {
  .contacts__row {
    grid-template-columns: 132px minmax(0, 1fr);
    column-gap: var(--space-24);
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .cta__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-64);
  }

  .contacts__layout {
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
    gap: var(--space-64);
    align-items: stretch;
  }

  .contacts__map { min-height: 480px; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 8vw, 96px);
}

.footer__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-32);
  padding-bottom: var(--space-32);
  border-bottom: 1px solid var(--line);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-16);
}

.footer__name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-right: .12em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 64px);
  line-height: .9;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-light);
  background-image: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer__tag {
  font-weight: 500;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  list-style: none;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--dur-micro) var(--ease);
}

.footer__meta-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 300;
  font-size: 16px;
  text-transform: none;
  color: var(--muted);
  transition: color var(--dur-micro) var(--ease);
}

.footer__link:hover,
.footer__meta-link:hover { color: var(--accent-light); }

.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding-top: var(--space-24);
}

.footer__meta-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 300;
  color: var(--muted);
}

@media (min-width: 900px) {
  .footer__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-48);
  }

  .footer__nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0 var(--space-24);
    max-width: 520px;
  }

  .footer__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-8) var(--space-32);
  }
}

/* ---------- Bottom booking bar (<900px) ---------- */
.booking-bar {
  position: fixed;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(var(--space-12) + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  min-height: 52px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(calc(100% + var(--space-24)));
  transition: transform .6s var(--ease), opacity .4s ease, visibility 0s linear .6s, filter var(--dur-micro) var(--ease);
}

.booking-bar.is-visible {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: transform .6s var(--ease), opacity .4s ease, visibility 0s, filter var(--dur-micro) var(--ease);
}

/* Місце під bar, щоб він не перекривав низ сторінки */
@media (max-width: 899px) { body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 900px) { .btn.booking-bar, #booking-bar { display: none; } }

/* ---------- Hover-мікроанімації (0.3s, --ease) ---------- */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(237, 232, 227, .22) 50%, transparent 65%);
  transform: translateX(-110%);
  pointer-events: none;
}

.masters__arrow svg,
.reviews__arrow svg,
.lb__btn svg { transition: transform var(--dur-micro) var(--ease); }

.brand__logo { transition: transform var(--dur-micro) var(--ease); }
.brand__name { transition: color var(--dur-micro) var(--ease); }
.svc { transition: border-color var(--dur-micro) var(--ease); }
.svc__name { transition: color var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease); }
.about__fact-value { transition: color var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease); }
.review { transition: border-color var(--dur-micro) var(--ease); }
.marquee__item { transition: color var(--dur-micro) var(--ease); }
.marquee__item::after { transition: transform var(--dur-micro) var(--ease), background-color var(--dur-micro) var(--ease); }
.contacts__map { transition: border-color var(--dur-micro) var(--ease); }
.footer__link,
.footer__meta-link { transition: color var(--dur-micro) var(--ease), transform var(--dur-micro) var(--ease); }

@media (hover: hover) {
  .btn:hover::after {
    transform: translateX(110%);
    transition: transform .6s var(--ease);
  }

  .btn:not(.booking-bar):active { transform: scale(.98); }

  .masters__arrow:hover:not(:disabled) svg,
  .reviews__arrow:hover:not(:disabled) svg,
  .lb__btn:hover:not(:disabled) svg { transform: translateX(3px); }

  .masters__arrow:first-child:hover:not(:disabled) svg,
  .reviews__arrow:first-child:hover:not(:disabled) svg,
  .lb__prev:hover:not(:disabled) svg { transform: translateX(-3px); }

  .lb__close:hover:not(:disabled) svg { transform: rotate(90deg); }

  .brand:hover .brand__logo { transform: scale(1.06); }
  .brand:hover .brand__name { color: var(--text); }

  .svc:hover { border-top-color: var(--accent-dark); }
  .svc:hover .svc__name { transform: translateX(8px); }

  .about__fact:hover .about__fact-value { transform: translateY(-4px); }

  .review:hover { border-left-color: var(--accent); }

  .marquee__item:hover { color: var(--text); }
  .marquee__item:hover::after { background: var(--accent-light); transform: rotate(225deg) scale(1.4); }

  .contacts__map:hover { border-color: var(--accent-dark); }

  .footer__link:hover,
  .footer__meta-link:hover { transform: translateX(4px); }
}

/* ---------- Desktop ≥900px ---------- */
@media (min-width: 900px) {
  :root { --header-h: 80px; }

  .nav { display: block; }
  .btn.header__cta { display: inline-flex; }
  .burger, .mmenu, .booking-bar { display: none; }
  body { padding-bottom: 0; }
  .hero__tagline { margin-top: var(--space-64); }
}

@media (min-width: 1100px) {
  .brand__name { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee__track {
    animation: none !important;
    transform: none !important;
    width: 100%;
  }

  .marquee__row[aria-hidden="true"] { display: none; }

  .marquee { overflow: visible; }

  .marquee__row {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--space-24);
    max-width: 100%;
    padding-inline: var(--pad);
  }

  .marquee__item {
    white-space: normal;
    max-width: 100%;
  }
}
.master__bio{margin:.4rem 0 1rem;font-size:.9rem;line-height:1.5;opacity:.75;max-width:32ch}

/* ---------- Responsive / доступність (аудит 2026-11) ---------- */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
img, video, iframe { max-width: 100%; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; font-size: max(12px, .75rem); }
.nav__link, .footer__link, .footer__meta-link, .contacts__link { display: inline-flex; align-items: center; min-height: 44px; }
.hero__sub, .hero__tagline, .eyebrow { font-size: max(12px, .75rem); }
.contacts__mapnote { font-size: 13px; color: var(--muted); max-width: 32ch; margin: 0; }
.footer__legal { margin-top: var(--space-32); padding-top: var(--space-24); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; display: grid; gap: 4px; }
.footer__legal p { margin: 0; }
.footer__legal .footer__meta-link { min-height: 0; display: inline; text-decoration: underline; text-underline-offset: 3px; }
#booking-bar { padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 599px) {
  body { font-size: 16px; }
  .gallery__grid, .gallery__list { gap: 8px; }
  .contacts__map { min-height: 320px; }
}
.nav__link, .footer__link, .footer__tag { font-size: max(12px, .75rem); }
.footer__legal .footer__meta-link { padding: 10px 0; }
