/* ==========================================================================
   Студія масажу Віктора Писарського
   BEM (block__element--modifier) · mobile-first · без фреймворків
   Напрям: «тиха розкіш» — прямі кути, тонкі лінії, багато повітря,
   один акцентний колір лише в деталях.
   ========================================================================== */

:root {
  --c-bg: #f4efe8;
  --c-bg-tint: #ebe4da;
  --c-surface: #faf7f2;
  --c-ink: #1b1611;
  --c-ink-soft: #5b5047;
  --c-ink-mute: #8d8073;
  --c-line: #d8ccbd;
  --c-line-soft: #e3dacd;
  --c-dark: #17120e;
  --c-dark-2: #211b16;
  --c-dark-line: #3a3028;
  --c-light: #f3ece2;
  --c-light-soft: #b1a495;
  --c-accent: #9c7246;
  --c-accent-light: #cfa673;
  --c-error: #a83c2a;
  --c-ok: #47693f;

  --f-head: "Noto Serif Display", "Times New Roman", Georgia, serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --gutter: 20px;
  --radius: 2px;
  --header-h: 68px;
  --ease: cubic-bezier(.25, .6, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body { margin: 0; }

.page {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.page--locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote { margin: 0; }
ul,
ol { padding: 0; list-style: none; }
button,
input,
select,
textarea { font: inherit; color: inherit; }
a { color: inherit; }
em { font-style: italic; }
::selection { background: var(--c-accent-light); color: var(--c-dark); }

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--c-ink);
  color: var(--c-bg);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Shared ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--c-ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.eyebrow__index { order: -1; color: var(--c-accent); letter-spacing: .12em; }
.eyebrow--light { color: var(--c-light-soft); }
.eyebrow--light .eyebrow__index { color: var(--c-accent-light); }

.section { position: relative; padding: 88px 0; }
.section--tinted { background: var(--c-bg-tint); }
.section--dark { background: var(--c-dark); color: var(--c-light); }

.section__head { margin-bottom: 48px; max-width: 760px; }
.section__head--split { max-width: none; display: grid; gap: 20px; }

.section__title {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: clamp(30px, 6.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.section__lead { color: var(--c-ink-soft); max-width: 480px; }
.section__lead--light { color: var(--c-light-soft); }

.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.link:hover { color: var(--c-accent); }
.link--light { color: var(--c-light); text-decoration-color: var(--c-accent-light); }
.link--light:hover { color: var(--c-accent-light); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid var(--c-ink);
  border-radius: var(--radius);
  background: var(--c-ink);
  color: var(--c-bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.button:hover { background: transparent; color: var(--c-ink); }
.button--light { background: var(--c-light); border-color: var(--c-light); color: var(--c-dark); }
.button--light:hover { background: transparent; color: var(--c-light); }
.button--ghost { background: transparent; color: inherit; border-color: rgba(243, 236, 226, .35); }
.button--ghost:hover { background: transparent; border-color: var(--c-accent-light); color: var(--c-accent-light); }
.button--outline { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.button--outline:hover { border-color: var(--c-ink); color: var(--c-ink); }
.button--small { min-height: 44px; padding: 0 20px; font-size: 11.5px; }
.button--wide { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--c-light);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header--scrolled,
.header--open { background: var(--c-dark); border-bottom-color: var(--c-dark-line); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}
.header__logo { margin-right: auto; }
.header__phone,
.header__cta { display: none; }
.header__phone {
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
}
.header__phone:hover { color: var(--c-accent-light); }
.header__cta { border-color: rgba(243, 236, 226, .4); background: transparent; color: var(--c-light); }
.header__cta:hover { border-color: var(--c-light); background: var(--c-light); color: var(--c-dark); }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}
.logo__mark { flex: none; width: 36px; height: 36px; color: var(--c-accent-light); }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__title { font-family: var(--f-head); font-weight: 400; font-size: clamp(16px, 4.6vw, 18px); white-space: nowrap; }
.logo__subtitle { color: var(--c-light-soft); font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; }

.nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 16px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: var(--c-dark);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s var(--ease), visibility 0s .3s;
}
.nav--open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
.nav__item { border-bottom: 1px solid var(--c-dark-line); }
.nav__link {
  display: flex;
  align-items: center;
  min-height: 60px;
  font-family: var(--f-head);
  font-size: 25px;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--c-accent-light); }
.nav__footer { display: grid; gap: 4px; }
.nav__phone {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--c-accent-light);
  font-family: var(--f-head);
  font-size: 24px;
  text-decoration: none;
}
.nav__address { color: var(--c-light-soft); font-size: 14px; margin-bottom: 16px; }

.burger {
  display: grid;
  align-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0 10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.burger__line {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.burger[aria-expanded="true"] .burger__line:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* The photo bleeds to the edges and dissolves into the dark background. */
.hero {
  position: relative;
  padding-top: var(--header-h);
  background: var(--c-dark);
  color: var(--c-light);
  overflow: hidden;
}
.hero__media { position: relative; margin: 0; }
.hero__frame {
  position: relative;
  height: min(118vw, 64svh);
  min-height: 340px;
  overflow: hidden;
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: -1px 0 -2px;
  background: linear-gradient(180deg, rgba(23, 18, 14, .25) 0%, rgba(23, 18, 14, 0) 30%, rgba(23, 18, 14, .78) 82%, var(--c-dark) 100%);
  pointer-events: none;
}
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}
.hero__inner {
  position: relative;
  z-index: 1;
  margin-top: -110px;
  padding-bottom: 52px;
}
.hero__eyebrow { margin-bottom: 18px; }
.hero__title {
  font-family: var(--f-head);
  font-weight: 400;
  font-size: clamp(38px, 10.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.hero__title-accent { display: block; color: var(--c-accent-light); font-weight: 300; }
.hero__lead {
  max-width: 470px;
  margin-top: 24px;
  color: var(--c-light-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__actions .button { flex: 1 1 200px; }

/* ---------- About (founder) ---------- */
.about__inner { display: grid; gap: 52px; }
.about__media { position: relative; }
.about__portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 600px) and (max-width: 899px) { .about__media { max-width: 460px; } }
.about__content .section__title { margin-bottom: 26px; }

.credentials { margin-top: 34px; border-top: 1px solid var(--c-ink); }
.credentials__row {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-line);
}
.credentials__term { color: var(--c-accent); font-size: 10.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.credentials__value { font-size: 15px; }

/* ---------- Services menu ---------- */
.menu__media { margin-bottom: 40px; }
.menu__groups { display: grid; gap: 64px; }
.menu__group-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-ink);
  font-family: var(--f-head);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; gap: 32px; }
.faq__head .section__title { margin-bottom: 18px; }
.faq__head .link { display: inline-flex; align-items: center; min-height: 44px; }
.faq__list { border-top: 1px solid var(--c-ink); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__question {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 16px 44px 16px 0;
  font-family: var(--f-head);
  font-size: 18.5px;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::before,
.faq__question::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--c-ink);
  transition: transform .3s var(--ease);
}
.faq__question::after { transform: rotate(90deg); }
.faq__item[open] .faq__question::after { transform: rotate(0); }
.faq__question:hover { color: var(--c-accent); }
.faq__answer { padding: 0 44px 24px 0; color: var(--c-ink-soft); max-width: 680px; }

/* ---------- Contacts ---------- */
.contacts__inner { display: grid; gap: 52px; }
.contacts__info .section__title { margin-bottom: 18px; }
.contacts__phone {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  margin-top: 28px;
  font-family: var(--f-head);
  font-size: clamp(28px, 7.5vw, 40px);
  letter-spacing: -.01em;
  color: var(--c-light);
  text-decoration: none;
}
.contacts__phone:hover { color: var(--c-accent-light); }

.map {
  margin: 32px 0 0;
  border: 1px solid var(--c-dark-line);
  background: var(--c-dark-2);
}
.map__frame {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  filter: grayscale(.35) sepia(.12) contrast(.96);
}
.map__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  padding: 6px 16px;
  border-top: 1px solid var(--c-dark-line);
}
.map__address { font-size: 13px; color: var(--c-light); }
.map__links { display: flex; gap: 16px; }
.map__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-accent-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
}
.map__link:hover { color: var(--c-light); }

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 calc(104px + env(safe-area-inset-bottom));
  background: var(--c-dark);
  color: var(--c-light-soft);
  border-top: 1px solid var(--c-dark-line);
  font-size: 14px;
}
.footer--plain { padding-bottom: 40px; }
.footer__inner { display: grid; gap: 32px; }
.footer__brand { color: var(--c-light); font-family: var(--f-head); font-size: 24px; line-height: 1.25; margin-bottom: 10px; }
.footer__heading {
  margin-bottom: 6px;
  color: var(--c-light);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.footer__link,
.footer__plain {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  transition: color .2s var(--ease);
}
.footer__link:hover { color: var(--c-light); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--c-dark-line);
}

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--c-dark);
  border-top: 1px solid var(--c-dark-line);
  transform: translateY(110%);
  transition: transform .4s var(--ease);
}
.callbar--visible { transform: none; }
.callbar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--c-light);
  border-radius: var(--radius);
  background: var(--c-light);
  color: var(--c-dark);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
}
.callbar__link--phone { background: transparent; border-color: rgba(243, 236, 226, .35); color: var(--c-light); }

/* ---------- Service modal ---------- */
.modal {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--c-surface);
  color: var(--c-ink);
  overscroll-behavior: contain;
}
.modal[open] { animation: fade .3s var(--ease); }
.modal::backdrop { background: rgba(14, 11, 8, .7); }
.modal__close {
  position: fixed;
  right: 12px;
  top: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--c-dark);
  color: var(--c-light);
  cursor: pointer;
}
.modal__close svg,
.lightbox__close svg { width: 20px; height: 20px; }
.modal__image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.modal__content { padding: 30px var(--gutter) calc(32px + env(safe-area-inset-bottom)); }
.modal__content .eyebrow { margin-bottom: 14px; }
.modal__title { font-family: var(--f-head); font-weight: 400; font-size: clamp(32px, 7.5vw, 42px); line-height: 1.1; letter-spacing: -.015em; }
.modal__points { margin-top: 10px; border-top: 1px solid var(--c-line); }
.modal__point { padding: 9px 0; border-bottom: 1px solid var(--c-line); font-size: 15px; }
.modal__book { margin-top: 30px; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(92vw, 820px);
  max-height: 92vh;
  padding: 16px;
  border: 0;
  background: var(--c-surface);
  color: var(--c-ink);
}
.lightbox[open] { animation: fade .3s var(--ease); }
.lightbox::backdrop { background: rgba(14, 11, 8, .88); }
.lightbox__image { width: 100%; max-height: calc(92vh - 100px); object-fit: contain; margin: 0 auto; }
.lightbox__caption { margin-top: 12px; font-size: 14px; color: var(--c-ink-soft); padding-right: 56px; }
.lightbox__close {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--c-dark);
  color: var(--c-light);
  cursor: pointer;
}

/* ---------- Legal page ---------- */
.legal { padding-top: calc(var(--header-h) + 56px); }
.legal__inner { max-width: 760px; }
.legal__title { margin-bottom: 18px; }
.legal__lead { color: var(--c-ink-soft); font-size: 18px; }
.legal__heading { margin: 44px 0 12px; font-family: var(--f-head); font-weight: 400; font-size: 22px; }
.legal__text { color: var(--c-ink-soft); }
.legal__text + .legal__text { margin-top: 12px; }
.legal__date { margin-top: 44px; font-size: 14px; color: var(--c-ink-mute); }

/* ==========================================================================
   Motion
   Hidden start states exist only under .js-motion (set by JS when the visitor
   has not asked for reduced motion),
so without JS everything stays visible.
   ========================================================================== */
:root {
  --m-ease: cubic-bezier(.16, 1, .3, 1);
  --m-slow: 1.4s;
  --m-base: 1s;
}

/* 1. Text and blocks: soft rise + fade,
with per-item delay (--d,
ms) */
.js-motion [data-anim] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity var(--m-base) var(--m-ease) calc(var(--d, 0) * 1ms),
    transform var(--m-slow) var(--m-ease) calc(var(--d, 0) * 1ms);
}
.js-motion [data-anim].is-in { opacity: 1; transform: none; }

/* 2. Photos: a plain,
short fade — the way Aman and body-lab treat imagery.
      No movement,
no masks: the picture simply appears. */
.js-motion [data-anim="image"] {
  opacity: 0;
  transform: none;
  transition: opacity .9s ease-in-out calc(var(--d, 0) * 1ms);
}
.js-motion [data-anim="image"].is-in { opacity: 1; }

/* 3. Hairlines draw from left to right */
.js-motion .eyebrow::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--m-ease) .25s;
}
.js-motion .is-in .eyebrow::before,
.js-motion .eyebrow.is-in::before { transform: none; }

.js-motion [data-line] { position: relative; border-top-color: transparent; }
.js-motion [data-line]::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--c-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--m-ease);
}
.js-motion [data-line].is-in::before { transform: none; }
.js-motion .menu__group-title { border-bottom-color: transparent; position: relative; }
.js-motion .menu__group-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--c-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--m-ease) .1s;
}
.js-motion .menu__group-title.is-in::after { transform: none; }

/* 4. First screen: a calm entrance sequence on load */
.hero__content > * { animation: m-rise 1.2s var(--m-ease) both; }
.hero__content > :nth-child(1) { animation-delay: .15s; }
.hero__content > :nth-child(2) { animation-delay: .25s; }
.hero__content > :nth-child(3) { animation-delay: .4s; }
.hero__content > :nth-child(4) { animation-delay: .5s; }
.hero__content > :nth-child(5) { animation-delay: .65s; }
.hero__eyebrow::before { animation: m-line 1.2s var(--m-ease) .4s both; transform-origin: left; }
.hero__frame { overflow: hidden; }
.hero__image { animation: m-fade 1.2s ease-in-out .1s both; }

@keyframes m-rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 6. Services menu: photo crossfade,
quiet hover on rows */
.menu__media { overflow: hidden; }

/* 8. FAQ answer slides open (height is animated by JS) */
.faq__item { overflow: hidden; }

.about__portrait { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--c-dark-line); }
  .hero__fact { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 14px 16px 14px 0; border-bottom: 0; }
  .hero__fact + .hero__fact { padding-left: 16px; border-left: 1px solid var(--c-dark-line); }
  .hero__fact-value { text-align: left; font-size: 16px; white-space: nowrap; }
  .credentials__row { grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; }
  .benefits__list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .menu__head { grid-template-columns: 1fr auto; align-items: baseline; gap: 20px; }
  .menu__rates { justify-content: flex-end; }
  .steps__list { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .diplomas__list { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .form { padding: 44px 40px; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .quote__inner { grid-template-columns: 200px 1fr; gap: 56px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
  .footer__bottom { grid-column: 1 / -1; }

  .modal {
    width: min(92vw, 980px);
    height: auto;
    max-height: 90vh;
    margin: auto;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
  }
  .modal__close { position: absolute; }
  .modal__content { padding: 40px 44px 44px; }
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
  .section { padding: 140px 0; }
  .section__head { margin-bottom: 72px; }
  .section__head--split { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 64px; }

  .hero { display: flex; align-items: center; min-height: min(100svh, 920px); padding: 0; }
  .hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; }
  .hero__frame { height: 100%; min-height: 0; }
  .hero__frame::after {
    background:
      linear-gradient(90deg, var(--c-dark) 0%, rgba(23, 18, 14, .6) 20%, rgba(23, 18, 14, 0) 52%),
      linear-gradient(180deg, rgba(23, 18, 14, .6) 0%, rgba(23, 18, 14, 0) 24%, rgba(23, 18, 14, 0) 70%, rgba(23, 18, 14, .75) 100%);
  }
  .hero__image { object-position: 50% 28%; }
  .hero__inner { margin-top: 0; padding-top: calc(var(--header-h) + 56px); padding-bottom: 56px; }
  .hero__content { max-width: min(640px, 52%); }
  .hero__title { font-size: clamp(50px, 5.6vw, 84px); }
  .hero__actions .button { flex: 0 0 auto; }

  .about__inner { grid-template-columns: .95fr 1.05fr; gap: 104px; align-items: start; }
  .about__media { position: sticky; top: calc(var(--header-h) + 32px); }
  .about .section__title,
.faq__head .section__title,
.contacts__info .section__title { font-size: clamp(34px, 3.8vw, 50px); }

  .menu { display: grid; grid-template-columns: .85fr 1.15fr; gap: 88px; align-items: start; }
  .menu__media { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
  .carousel__viewport { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 120px); }
  .menu__groups { gap: 80px; }

  .faq__inner { grid-template-columns: .85fr 1.15fr; gap: 104px; align-items: start; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 32px); }

  .contacts__inner { grid-template-columns: 1fr 1fr; gap: 104px; align-items: start; }

  .footer { padding-bottom: 44px; }
  .footer__inner { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer__col--brand { grid-column: auto; }
  .callbar { display: none; }

  .modal__inner { display: grid; grid-template-columns: .85fr 1.15fr; }
  .modal__image { height: 100%; aspect-ratio: auto; min-height: 100%; position: sticky; top: 0; max-height: 90vh; }
  .modal__content { max-height: 90vh; overflow-y: auto; }
  .modal { overflow: hidden; }
}

@media (min-width: 1100px) {
  .header__cta { display: inline-flex; }
  .header__burger { display: none; }
  .nav {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transition: none;
  }
  .nav__list { display: flex; gap: 2px; }
  .nav__item { border: 0; }
  .nav__link {
    position: relative;
    min-height: 44px;
    padding: 0 10px;
    font-family: var(--f-body);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 1px;
    background: var(--c-accent-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
  }
  .nav__link:hover::after { transform: scaleX(1); }
  .nav__footer { display: none; }
}

@media (min-width: 1280px) {
  .header__phone { display: inline-flex; }
  .nav__list { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
*::before,
*::after { animation: none !important; transition: none !important; }
}

/* Print / save as PDF: never leave content in its pre-animation state */
@media print {
  .js-motion [data-anim] { opacity: 1 !important; transform: none !important; }
  .header, .callbar { position: static; transform: none !important; }
}

/* ==========================================================================
   Content photos: calm,
magazine-like — soft 6px corners and a hairline shadow.
   ========================================================================== */
.about__portrait {
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(27, 22, 17, .06), 0 14px 34px -18px rgba(27, 22, 17, .28);
}
.map { border-radius: 6px; overflow: hidden; }

/* ==========================================================================
   Mobile refinements (≤ 599px)
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }
.button:active,
.callbar__link:active { opacity: .78; }

@media (max-width: 599px) {
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .section__head--split { gap: 14px; }
  .section__title { font-size: clamp(28px, 8.2vw, 34px); }
  .section__lead { font-size: 15.5px; }
  .eyebrow { margin-bottom: 16px; }

  /* hero */
  .hero__frame { height: min(112vw, 58svh); }
  .hero__inner { margin-top: -96px; padding-bottom: 40px; }
  .hero__title { font-size: clamp(36px, 10.4vw, 44px); }
  .hero__lead { margin-top: 18px; font-size: 15.5px; }
  .hero__actions { margin-top: 26px; gap: 10px; }

  /* about */
  .about__inner { gap: 36px; }
  .credentials { margin-top: 26px; }
  .credentials__row { padding: 12px 0; }

  /* services menu */
  .menu__groups { gap: 48px; }
  .menu__group-title { font-size: 25px; padding-bottom: 12px; }

  /* FAQ */
  .faq__question { min-height: 60px; padding: 14px 36px 14px 0; font-size: 17px; }
  .faq__answer { padding: 0 0 20px; font-size: 15px; }

  /* contacts + form */
  .contacts__inner { gap: 36px; }
  .contacts__phone { margin-top: 20px; }
  .map { margin-top: 24px; }
  .map__frame { aspect-ratio: 1 / 1; }

  /* footer */
  .footer { padding-top: 48px; }
  .footer__inner { gap: 22px; }
  .footer__brand { font-size: 21px; }

  /* service modal */
  .modal__content { padding-top: 24px; }
  .modal__title { font-size: 30px; }
}

/* very narrow phones (≤ 359px) */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .hero__title { font-size: 33px; }
  .logo__subtitle { letter-spacing: .2em; }
  .chips--wide { grid-template-columns: 1fr 1fr 1fr; }
  .chip__label { font-size: 13px; }
  .doc { flex-basis: 82%; }
}

/* ---------- Carousel (services photos) ---------- */
.carousel__viewport {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  border-radius: 6px;
  background: var(--c-dark-2);
  box-shadow: 0 1px 2px rgba(27, 22, 17, .06), 0 14px 34px -18px rgba(27, 22, 17, .28);
  touch-action: pan-y;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.carousel__slide--active { opacity: 1; }
.carousel__slide:nth-child(1) { object-position: 50% 30%; }
.carousel__slide:nth-child(3) { object-position: 50% 78%; }
.carousel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}
.carousel__caption {
  color: var(--c-ink-soft);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.carousel__dots { display: flex; }
.carousel__dot {
  position: relative;
  width: 36px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.carousel__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 999px;
  background: var(--c-line);
  transition: width .5s ease-in-out, background-color .5s ease-in-out;
}
.carousel__dot:hover::before { background: var(--c-ink-mute); }
.carousel__dot--active::before { width: 22px; background: var(--c-ink); }
.carousel__dot:focus-visible { outline: 1px solid var(--c-accent); outline-offset: -6px; }
@media (prefers-reduced-motion: reduce) {
  .carousel__slide,
.carousel__dot::before { transition: none; }
}

/* ==========================================================================
   2026-11 simplification: fewer blocks,
less text,
airy mobile layout
   ========================================================================== */
/* diploma thumbnails inside "Про майстра" */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.docs__open {
  display: block;
  width: 100%;
  padding: 6px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  background: var(--c-surface);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color .3s var(--ease);
}
.docs__open:hover { border-color: var(--c-ink); }
.docs__image { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; transition: transform 1.2s var(--m-ease, ease); }
.docs__open:hover .docs__image { transform: scale(1.04); }

/* footer: brand + one line,
bottom row */
.footer__inner { grid-template-columns: 1fr !important; }
.footer__col--brand { grid-column: auto !important; }
.footer__text .footer__link { text-decoration: none; }

@media (max-width: 899px) {
  /* the services photo carousel is decoration: skip it on phones/tablets */
  .menu__media { display: none; }
}

@media (max-width: 599px) {
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 24px; }
  .hero__inner { padding-bottom: 48px; }
  .hero__lead { font-size: 16px; }

  .menu__groups { gap: 40px; }

  .about__inner { gap: 28px; }
  .about__portrait { aspect-ratio: 4 / 3; object-position: 50% 25%; }
  .credentials__row { padding: 10px 0; }
  .docs { gap: 10px; margin-top: 22px; }
  .docs__open { padding: 4px; }

  .faq__inner { gap: 8px; }

  .contacts__phone { margin-top: 18px; }

  .footer { padding-top: 40px; }
}

/* ==========================================================================
   Round 2: no form — booking by phone / Viber / Telegram; compact facts
   ========================================================================== */
/* booking buttons: call (full row) + two messengers */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.book .button { min-height: 52px; padding: 0 16px; }
.book__call { grid-column: 1 / -1; }
.book--light .book__call { background: var(--c-light); border-color: var(--c-light); color: var(--c-dark); }
.book--light .book__call:hover { background: transparent; color: var(--c-light); }
.book--light .book__msg { color: var(--c-light); }

/* small fact chips */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}
.tags--light .tag { border-color: rgba(243, 236, 226, .28); color: var(--c-light); }

/* hero: who / what / how */
.hero__lead { margin-top: 16px; color: var(--c-light); font-size: 17px; letter-spacing: .02em; }
.hero__tags { margin-top: 16px; }
.hero__book { margin-top: 26px; max-width: 460px; }

/* price list: one tappable row per service */
.price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  width: 100%;
  min-height: 60px;
  padding: 12px 28px 12px 0;
  position: relative;
  border: 0;
  border-bottom: 1px solid var(--c-line);
  background: none;
  text-align: left;
  cursor: pointer;
}
.price::after {
  content: "›";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-52%);
  color: var(--c-ink-mute);
  font-size: 22px;
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.price:hover .price__name, .price:focus-visible .price__name { color: var(--c-accent); }
.price:hover::after { color: var(--c-accent); transform: translate(3px, -52%); }
.price__name { font-family: var(--f-head); font-size: 20px; line-height: 1.25; transition: color .3s var(--ease); }
.price__rates { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.price__rate { font-family: var(--f-head); font-size: 18px; white-space: nowrap; }
.price__time { margin-right: 6px; font-family: var(--f-body); font-size: 12.5px; color: var(--c-ink-mute); }
.menu__group-title { margin-bottom: 0; }
.menu__cta { padding-top: 8px; }
.menu__cta-label { margin-bottom: 12px; color: var(--c-accent); font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }

/* about */
.about__tags { margin-top: -6px; }

/* contacts: phone + booking, then compact fact rows */
.contacts__phone { margin-top: 8px; }
.contacts__book { margin-top: 16px; max-width: 460px; }
.facts { margin-top: 32px; border-top: 1px solid var(--c-dark-line); }
.facts__row { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--c-dark-line); align-items: baseline; }
.facts__term { color: var(--c-light-soft); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.facts__value { font-size: 15px; }

/* service window */
.modal__tags { margin-top: 18px; }
.modal__points { margin-top: 20px; }
.modal__book { margin-top: 28px; }

/* sticky bottom bar on phones: call + Viber + Telegram */
.callbar { grid-template-columns: 1.4fr 1fr 1fr; }
.callbar__link { gap: 8px; text-decoration: none; background: transparent; border-color: rgba(243, 236, 226, .35); color: var(--c-light); letter-spacing: .12em; }
.callbar__link--main { background: var(--c-light); border-color: var(--c-light); color: var(--c-dark); }
.callbar__icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

@media (min-width: 600px) {
  .book { grid-template-columns: auto auto auto; justify-content: start; }
  .book__call { grid-column: auto; }
  .book .button { padding: 0 26px; }
  .price__rates { flex-direction: row; gap: 18px; }
}

@media (min-width: 900px) {
  .contacts__inner { align-items: center; }
  .map { margin-top: 0; }
}

@media (max-width: 599px) {
  .hero__frame { height: min(84vw, 42svh); min-height: 260px; }
  .hero__inner { margin-top: -84px; padding-bottom: 40px; }
  .hero__eyebrow { margin-bottom: 12px; }
  .hero__title { font-size: clamp(34px, 9.6vw, 40px); }
  .hero__book { margin-top: 22px; }
  .price__name { font-size: 19px; }
  .price__rate { font-size: 17px; }
  .contacts__facts { margin-top: 28px; }
  .map__frame { aspect-ratio: 4 / 3; }
  .modal__point { font-size: 15.5px; padding: 11px 0; }
}

/* Round 3: messengers only in Контакти — elsewhere "Подзвонити" + "Контакти" */
.book--duo { grid-template-columns: 1fr 1fr; }
.book--duo .book__call { grid-column: auto; }
.callbar { grid-template-columns: 1fr 1fr; }
@media (min-width: 600px) { .book--duo { grid-template-columns: auto auto; } }

/* Round 4: booking card in Контакти (where the form was); every call/contacts button scrolls here */
.contacts__inner { display: grid; gap: 28px; }
.contacts__head .section__title { margin-bottom: 0; }
.connect {
  scroll-margin-top: 16px; /* html already has scroll-padding-top for the fixed header */
  padding: 26px 20px 24px;
  border-radius: 6px;
  background: var(--c-surface);
  color: var(--c-ink);
  outline: none;
  box-shadow: 0 0 0 0 rgba(207, 166, 115, 0);
  transition: box-shadow .6s var(--ease);
}
.connect__kicker { color: var(--c-accent); font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.connect__title { margin-top: 8px; font-family: var(--f-head); font-weight: 400; font-size: 26px; line-height: 1.2; }
.connect__phone {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  margin-top: 10px;
  font-family: var(--f-head);
  font-size: clamp(28px, 8vw, 38px);
  letter-spacing: -.01em;
  color: var(--c-ink);
  text-decoration: underline;
  text-decoration-color: var(--c-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}
.connect__phone:hover { color: var(--c-accent); text-decoration-color: var(--c-accent); }
.connect__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.connect__button { min-height: 54px; padding: 0 12px; }
.connect--highlight { animation: connect-glow 1.6s ease-in-out; }
@keyframes connect-glow {
  0% { box-shadow: 0 0 0 0 rgba(207, 166, 115, 0); }
  30% { box-shadow: 0 0 0 4px rgba(207, 166, 115, .9), 0 0 40px 6px rgba(207, 166, 115, .35); }
  100% { box-shadow: 0 0 0 0 rgba(207, 166, 115, 0); }
}
.contacts__details .facts { margin-top: 0; }
.contacts__details .map { margin-top: 24px; }

@media (min-width: 600px) {
  .connect { padding: 40px 40px 36px; }
}
@media (min-width: 900px) {
  .contacts__inner { grid-template-columns: 1fr 1fr; column-gap: 104px; row-gap: 40px; align-items: start; }
  .contacts__head { grid-column: 1; grid-row: 1; }
  .contacts__details { grid-column: 1; grid-row: 2; }
  .contacts__connect { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--header-h) + 32px); }
  .connect { padding: 52px 48px 48px; }
  .connect__title { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .connect--highlight { animation: none; box-shadow: 0 0 0 3px rgba(207, 166, 115, .9); }
}
