/* ============================================================
   «Прикосновение» — студия массажа и эстетики, Раменское
   Графит + тёплый беж. Строгая модульная сетка.
   Мотив: волна зеркала (маска фото, волосяной разделитель, знак).
   ============================================================ */

:root {
  /* Палитра */
  --graphite: #262626;
  --graphite-2: #343434;
  --gray: #6b6b68;
  --gray-light: #e7e4de;
  --bg: #f5f3ef;
  --white: #ffffff;
  --wood: #9a8069;
  --warm: #b99a74;

  /* Линии */
  --line: rgba(38, 38, 38, .14);
  --line-strong: rgba(38, 38, 38, .28);
  --line-dark: rgba(255, 255, 255, .16);
  --line-dark-strong: rgba(255, 255, 255, .34);

  /* Шрифты */
  --font-display: "Manrope", "Onest", "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Manrope", "Segoe UI", system-ui, sans-serif;

  /* Сетка и ритм */
  --shell: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --col-gap: clamp(20px, 2.2vw, 32px);
  --section-space: clamp(76px, 8.5vw, 140px);
  --radius-card: 4px;
  --radius-button: 4px;

  /* Движение */
  --ease: cubic-bezier(.2, .6, .25, 1);
  --dur: 420ms;

  /* Мотив зеркала */
  --mirror-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,11 C16,1 34,17 50,11 C66,5 84,21 100,11 L100,100 L0,100 Z" fill="black"/></svg>');
  --mirror-mask-bottom: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,93 C84,100 66,87 50,93 C34,99 16,86 0,93 Z" fill="black"/></svg>');
  --wave-rule: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="12" viewBox="0 0 120 12"><path d="M0 6 C 15 0 30 12 45 6 S 75 0 90 6 S 105 12 120 6" fill="none" stroke="%239a8069" stroke-width="1"/></svg>');
  --wave-rule-dark: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="12" viewBox="0 0 120 12"><path d="M0 6 C 15 0 30 12 45 6 S 75 0 90 6 S 105 12 120 6" fill="none" stroke="%23b99a74" stroke-width="1"/></svg>');
}

/* ------------------------------ База ------------------------------ */

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.022em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.1rem + 4.4vw, 4.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 1rem + 2.5vw, 3.25rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); line-height: 1.25; }

em { font-style: normal; color: var(--wood); }

:focus-visible {
  outline: 2px solid var(--wood);
  outline-offset: 3px;
}

::selection { background: var(--graphite); color: var(--white); }

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

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 999;
  padding: 12px 20px; background: var(--graphite); color: var(--white);
  border-radius: var(--radius-button); transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ------------------------------ Сетка ------------------------------ */

.shell {
  width: min(var(--shell), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

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

.section--white { background: var(--white); }
.section--graphite { background: var(--graphite); color: var(--gray-light); }
.section--stone { background: var(--gray-light); }

.section--graphite h1,
.section--graphite h2,
.section--graphite h3 { color: var(--white); }
.section--graphite em { color: var(--warm); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  color: var(--gray);
  font-family: var(--font-display);
  font-size: .75rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; flex: none; background: var(--wood);
}
.section--graphite .eyebrow { color: var(--gray-light); }
.section--graphite .eyebrow::before { background: var(--warm); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: end;
  gap: var(--col-gap);
  margin-bottom: clamp(40px, 5vw, 72px);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.section--graphite .section-head { border-bottom-color: var(--line-dark); }

.section-head > a { justify-self: end; }

.section-head__note {
  margin: 0;
  color: var(--gray);
  font-size: .95rem;
}
.section--graphite .section-head__note { color: var(--gray-light); opacity: .8; }

.lead {
  font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem);
  line-height: 1.6;
  color: var(--gray);
}
.section--graphite .lead { color: var(--gray-light); }

.fine-print {
  margin: 0;
  color: var(--gray);
  font-size: .85rem;
}
.section--graphite .fine-print { color: var(--gray-light); opacity: .72; }

/* Мотив зеркала: волосяная волна */
.wave-rule {
  height: 12px;
  background-image: var(--wave-rule);
  background-repeat: repeat-x;
  background-position: left center;
  opacity: .75;
}
.section--graphite .wave-rule { background-image: var(--wave-rule-dark); }

/* ------------------------------ Кнопки ------------------------------ */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 28px;
  border: 1px solid var(--graphite); border-radius: var(--radius-button);
  background: var(--graphite); color: var(--white);
  font-family: var(--font-display); font-size: .9375rem; font-weight: 600;
  letter-spacing: -.005em; text-align: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.button:hover { background: var(--graphite-2); border-color: var(--graphite-2); }

.button--ghost { background: transparent; color: var(--graphite); }
.button--ghost:hover { background: transparent; border-color: var(--wood); color: var(--wood); }

.button--light {
  background: var(--white); border-color: var(--white); color: var(--graphite);
}
.button--light:hover { background: var(--gray-light); border-color: var(--gray-light); }

.button--outline-light {
  background: transparent; border-color: var(--line-dark-strong); color: var(--white);
}
.button--outline-light:hover { border-color: var(--warm); color: var(--warm); }

.button--sm { min-height: 44px; padding: 10px 20px; font-size: .875rem; }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.button-row--center { justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 600; font-size: .9375rem;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.text-link:hover { color: var(--wood); border-bottom-color: var(--wood); }
.text-link--light { color: var(--white); border-bottom-color: var(--line-dark-strong); }
.text-link--light:hover { color: var(--warm); border-bottom-color: var(--warm); }

/* ------------------------------ Шапка ------------------------------ */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  container-type: scroll-state;
  container-name: header;
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  min-height: 84px;
  transition: min-height var(--dur) var(--ease);
}

@container header scroll-state(stuck: top) {
  .header-inner { min-height: 68px; }
}

.brand { display: inline-flex; align-items: center; gap: 12px; }

.brand__mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border: 1px solid var(--graphite);
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  letter-spacing: .02em;
}
.brand__name { display: block; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.brand__tag { display: block; margin-top: 3px; color: var(--gray); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; }

.site-nav { display: flex; justify-content: center; gap: clamp(18px, 2.4vw, 34px); }
.site-nav a {
  position: relative;
  padding-block: 6px;
  color: var(--gray);
  font-size: .9375rem;
  transition: color var(--dur) var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--wood);
  transition: width var(--dur) var(--ease);
}
.site-nav a:hover, .site-nav a.active { color: var(--graphite); }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }

.menu-toggle {
  display: none;
  width: 46px; height: 46px; padding: 13px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-button);
  background: transparent; cursor: pointer;
}
.menu-toggle span:not(.sr-only) {
  display: block; width: 100%; height: 1px; margin: 5px 0;
  background: var(--graphite);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------ Первый экран ------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(520px, 50vw, 700px);
  padding-block: clamp(52px, 5.5vw, 84px) clamp(72px, 8vw, 112px);
  background: var(--graphite);
  overflow: hidden;
  mask-image: var(--mirror-mask-bottom);
  -webkit-mask-image: var(--mirror-mask-bottom);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

/* Фото-фон и мягкий переход графита в фотографию слева направо */
.hero__bg {
  position: absolute; inset: 0 0 0 37%; z-index: 0;
  background-image: url('assets/images/hero-lobby.webp');
  background-size: cover;
  background-position: 50% 72%;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(38, 38, 38, 1) 0%,
    rgba(40, 40, 40, .96) 8%,
    rgba(46, 46, 45, .86) 18%,
    rgba(56, 55, 53, .62) 30%,
    rgba(84, 82, 78, .38) 43%,
    rgba(120, 116, 111, .18) 57%,
    rgba(165, 160, 152, .06) 72%,
    rgba(255, 255, 255, 0) 84%);
}

/* Тот же приём на странице услуг, другое фото */
.hero--chair { min-height: clamp(460px, 42vw, 600px); }
.hero--chair .hero__bg {
  background-image: url('assets/images/hero-chair.webp');
  background-position: 52% 64%;
}

.hero__inner { position: relative; z-index: 1; }
.hero__copy { max-width: 31rem; }

.hero__title {
  margin-bottom: 24px;
  font-size: clamp(2.1rem, 1.2rem + 3vw, 3.5rem);
}
.hero__lead { max-width: 28em; margin-bottom: 34px; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
  margin: 44px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.hero__facts dt {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.15rem + .8vw, 1.875rem);
  font-weight: 600; line-height: 1;
  letter-spacing: -.02em;
}
.hero__facts dd {
  margin: 8px 0 0;
  color: var(--gray-light); opacity: .72;
  font-size: .8125rem; line-height: 1.4;
}

.hero__caption {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 34px 0 0; padding-top: 16px;
  border-top: 1px solid var(--line-dark);
  color: var(--warm); font-size: .8125rem;
  letter-spacing: .1em; text-transform: uppercase;
}


/* Строка направлений под первым экраном */
.tag-strip {
  display: flex; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tag-strip span {
  padding: 18px clamp(16px, 2.4vw, 34px);
  color: var(--gray);
  font-family: var(--font-display); font-size: .8125rem; font-weight: 500;
  letter-spacing: .13em; text-transform: uppercase;
  border-right: 1px solid var(--line);
}
.tag-strip span:last-child { border-right: 0; }

/* ------------------------------ Направления ------------------------------ */

.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--col-gap);
  margin-bottom: 36px;
}

.direction {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.direction:hover { border-color: var(--graphite); }

.direction__media { display: block; overflow: hidden; }
.direction__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform 500ms var(--ease);
}
.direction:hover .direction__media img { transform: scale(1.04); }

.direction__body {
  display: flex; flex-direction: column; flex: 1;
  padding: clamp(20px, 2vw, 28px);
}
.direction__body h3 { margin-bottom: 10px; }
.direction__body p { color: var(--gray); font-size: .9375rem; margin-bottom: 22px; }

.direction__price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600;
}
.direction__price em { color: var(--wood); font-size: .875rem; }

/* ------------------------------ О студии ------------------------------ */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.about__copy h2 { margin-bottom: 26px; }
.about__copy p { color: var(--gray-light); opacity: .86; }
.about__copy .lead { opacity: 1; margin-bottom: 22px; }

.about__figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--col-gap);
  align-items: start;
}
.about__figures img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-card); }
.about__figures img:last-child { margin-top: clamp(28px, 5vw, 64px); }

/* ------------------------------ Почему выбирают ------------------------------ */

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.reason {
  padding: clamp(26px, 3vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.reason h3 { margin-bottom: 12px; }
.reason p { color: var(--gray); font-size: .9375rem; }

/* ------------------------------ Фото-полоса ------------------------------ */

.photo-band { position: relative; background: var(--graphite); }
.photo-band img {
  width: 100%; height: clamp(340px, 52vw, 660px);
  object-fit: cover;
  mask-image: var(--mirror-mask);
  -webkit-mask-image: var(--mirror-mask);
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}
.photo-band__caption {
  position: absolute; left: 0; right: 0; bottom: clamp(24px, 4vw, 56px);
}
.photo-band__caption p {
  max-width: 22em;
  padding: clamp(22px, 2.6vw, 34px);
  background: var(--graphite);
  color: var(--white);
  border-radius: var(--radius-card);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, .95rem + .6vw, 1.5rem);
  font-weight: 500; line-height: 1.35;
  letter-spacing: -.015em;
}

/* ------------------------------ Команда ------------------------------ */

.team { border-top: 1px solid var(--line); }
.team__row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) auto;
  align-items: center;
  gap: var(--col-gap);
  padding-block: clamp(20px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease), padding-inline var(--dur) var(--ease);
}
.team__row:hover { background: var(--bg); padding-inline: 16px; }
.team__row h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.team__role { margin: 6px 0 0; color: var(--gray); font-size: .9375rem; }
.team__fit { margin: 0; color: var(--gray); font-size: .9375rem; }
.team__link { white-space: nowrap; color: var(--gray); font-size: .9375rem; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.team__link:hover { color: var(--wood); border-bottom-color: var(--wood); }

/* ------------------------------ Галерея ------------------------------ */

.filter-group { display: flex; flex-wrap: wrap; gap: 10px; }

.filter-button {
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  background: transparent;
  font-family: var(--font-display); font-size: .875rem; font-weight: 500;
  color: var(--gray);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filter-button:hover { border-color: var(--graphite); color: var(--graphite); }
.filter-button.active { background: var(--graphite); border-color: var(--graphite); color: var(--white); }
.filter-button span { opacity: .6; margin-left: 6px; }

.gallery-filters { margin-bottom: clamp(28px, 3vw, 44px); }

.gallery-grid {
  columns: 4;
  column-gap: var(--col-gap);
}

.gallery-item {
  display: block; position: relative;
  width: 100%; padding: 0; margin: 0 0 var(--col-gap);
  border: 0; border-radius: var(--radius-card);
  background: var(--gray-light);
  overflow: hidden;
  cursor: zoom-in;
  break-inside: avoid;
}
.gallery-item img {
  width: 100%; object-fit: cover;
  transition: transform 500ms var(--ease);
}
.gallery-item:nth-child(4n + 1) img { aspect-ratio: 3 / 4; }
.gallery-item:nth-child(4n + 2) img { aspect-ratio: 1 / 1; }
.gallery-item:nth-child(4n + 3) img { aspect-ratio: 2 / 3; }
.gallery-item:nth-child(4n + 4) img { aspect-ratio: 4 / 5; }
.gallery-item:hover img { transform: scale(1.03); }

.gallery-item span {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 12px;
  background: var(--white);
  border-radius: var(--radius-button);
  color: var(--graphite);
  font-family: var(--font-display); font-size: .75rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery-item:hover span, .gallery-item:focus-visible span { opacity: 1; transform: none; }

.filtered-out { display: none; }

/* Лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(38, 38, 38, .96);
}
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-width: 100%; max-height: 78vh; margin-inline: auto; object-fit: contain; }
.lightbox figcaption {
  margin-top: 16px; text-align: center;
  color: var(--gray-light); font-size: .875rem;
  letter-spacing: .06em;
}
.lightbox button {
  position: absolute;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--line-dark-strong); border-radius: var(--radius-button);
  background: transparent; color: var(--white);
  font-size: 1.25rem; cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lightbox button:hover { border-color: var(--warm); color: var(--warm); }
.lightbox-close { top: clamp(16px, 3vw, 32px); right: clamp(16px, 3vw, 32px); }
.lightbox-prev { left: clamp(12px, 2vw, 32px); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: clamp(12px, 2vw, 32px); top: 50%; transform: translateY(-50%); }

/* ------------------------------ Отзывы ------------------------------ */

.reviews {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.rating-panel { padding-right: clamp(0px, 3vw, 40px); border-right: 1px solid var(--line-dark); }
.rating-panel strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 2rem + 8vw, 7rem);
  font-weight: 600; line-height: .95; letter-spacing: -.04em;
  color: var(--white);
}
.rating-panel .stars { display: block; margin-bottom: 12px; color: var(--warm); letter-spacing: .28em; font-size: 1rem; }
.rating-panel p { margin: 16px 0 0; color: var(--gray-light); opacity: .82; font-size: .9375rem; }

.reviews__copy h2 { margin-bottom: 20px; }
.reviews__copy p { color: var(--gray-light); opacity: .86; margin-bottom: 30px; }

/* Фрагменты отзывов с Яндекс Карт */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
  margin-top: clamp(48px, 6vw, 84px);
}
.review {
  display: flex; flex-direction: column;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  transition: border-color var(--dur) var(--ease);
}
.review:hover { border-color: var(--line-dark-strong); }
.review__stars {
  margin-bottom: 18px;
  color: var(--warm); font-size: .875rem; letter-spacing: .22em;
}
.review blockquote {
  margin: 0 0 24px;
  color: var(--gray-light);
  font-size: .9375rem; line-height: 1.6;
}
.review__meta {
  display: grid; gap: 4px;
  margin: auto 0 0; padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}
.review__meta b {
  color: var(--white);
  font-family: var(--font-display); font-size: .9375rem; font-weight: 600;
}
.review__meta span { color: var(--gray-light); opacity: .6; font-size: .8125rem; }

/* ------------------------------ Удобства ------------------------------ */

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.access-grid li {
  display: flex; flex-direction: column; gap: 6px;
  padding: clamp(18px, 2vw, 26px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.access-grid span { color: var(--gray); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; }
.access-grid b { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; }

/* ------------------------------ Контакты ------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
}
.contact-card {
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.contact-card h3 { margin-bottom: 14px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
.contact-card h3 a { transition: color var(--dur) var(--ease); }
.contact-card h3 a:hover { color: var(--wood); }
.contact-card p { color: var(--gray); font-size: .9375rem; }
.contact-card .button, .contact-card .contact-links { margin-top: auto; padding-top: 24px; }
.contact-links { display: grid; gap: 10px; }
.contact-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 500; font-size: .9375rem;
  transition: color var(--dur) var(--ease);
}
.contact-links a:hover { color: var(--wood); }
.contact-links b { color: var(--wood); font-weight: 500; }

/* ------------------------------ Финальный призыв ------------------------------ */

.cta { background: var(--graphite); color: var(--gray-light); text-align: center; }
.cta h2 { margin-bottom: 24px; color: var(--white); }
.cta .eyebrow { justify-content: center; color: var(--gray-light); }
.cta .eyebrow::before { background: var(--warm); }
.cta__lead { max-width: 46em; margin-inline: auto; margin-bottom: 36px; color: var(--gray-light); opacity: .82; }
.cta__wave { margin: 0 auto 40px; width: min(420px, 70%); }

/* ------------------------------ Подвал ------------------------------ */

.site-footer { background: var(--graphite-2); color: var(--gray-light); padding-top: clamp(52px, 6vw, 80px); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr));
  gap: clamp(28px, 3vw, 48px);
  padding-bottom: clamp(36px, 4vw, 56px);
}
.footer-grid b { display: block; margin-bottom: 16px; font-family: var(--font-display); font-weight: 600; color: var(--white); }
.footer-grid a, .footer-grid p { display: block; margin: 0 0 10px; color: var(--gray-light); opacity: .8; font-size: .9375rem; }
.footer-grid a { transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.footer-grid a:hover { color: var(--warm); opacity: 1; }
.footer-brand { opacity: 1; }
.footer-brand .brand__mark { border-color: var(--line-dark-strong); color: var(--white); }
.footer-brand .brand__name { color: var(--white); }
.footer-brand .brand__tag { color: var(--gray-light); opacity: .7; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px;
  padding-block: 22px;
  border-top: 1px solid var(--line-dark);
  color: var(--gray-light); opacity: .7; font-size: .8125rem;
}

/* ------------------------------ Мобильная панель ------------------------------ */

.mobile-actions {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--graphite);
  border-top: 1px solid var(--line-dark);
}
.mobile-actions a {
  flex: 1;
  padding: 15px 8px;
  text-align: center;
  color: var(--white);
  font-family: var(--font-display); font-size: .875rem; font-weight: 500;
  border-right: 1px solid var(--line-dark);
}
.mobile-actions a:last-child { border-right: 0; background: var(--wood); }

/* ============================================================
   Страница услуг
   ============================================================ */

.first-visit {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(26px, 3vw, 42px);
  margin-bottom: clamp(40px, 4.5vw, 64px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.first-visit h2 { margin-bottom: 12px; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.first-visit p { margin: 0; color: var(--gray); font-size: .9375rem; }

.catalog-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.search-field {
  display: block; min-width: min(280px, 100%);
}
.search-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  background: var(--white);
  transition: border-color var(--dur) var(--ease);
}
.search-field input::placeholder { color: var(--gray); }
.search-field input:focus { border-color: var(--graphite); outline: none; }

.catalog-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  padding-bottom: 18px; margin-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
  color: var(--gray); font-size: .875rem;
}
.catalog-meta p { margin: 0; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
}
.service-card {
  display: flex; flex-direction: column;
  padding: clamp(20px, 2.2vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  transition: border-color var(--dur) var(--ease);
}
.service-card:hover { border-color: var(--graphite); }
.service-card__label {
  margin: 0 0 16px;
  color: var(--wood);
  font-family: var(--font-display); font-size: .75rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
}
.service-card h3 { margin-bottom: 22px; font-size: 1.125rem; line-height: 1.35; }
.service-card__bottom {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.service-card__price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.service-card__duration { margin-top: 4px; color: var(--gray); font-size: .8125rem; }
.service-card__book {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius-button);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.service-card__book:hover { background: var(--graphite); border-color: var(--graphite); color: var(--white); }

.no-results { padding: clamp(40px, 6vw, 80px) 0; text-align: center; }
.no-results p { color: var(--gray); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.steps li {
  padding: clamp(26px, 3vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps__num {
  display: block; margin-bottom: 18px;
  color: var(--wood);
  font-family: var(--font-display); font-size: .8125rem; font-weight: 600;
  letter-spacing: .14em;
}
.steps h3 { margin-bottom: 10px; }
.steps p { margin: 0; color: var(--gray); font-size: .9375rem; }

.safety-note { background: var(--gray-light); }
.safety-note__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 64px);
}
.safety-note p { margin: 0; color: var(--graphite-2); }

.booking-band {
  display: grid;
  grid-template-columns: minmax(0, 7fr) auto;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(28px, 3vw, 44px);
  background: var(--graphite);
  border-radius: var(--radius-card);
  color: var(--gray-light);
}
.booking-band h2 { margin-bottom: 12px; color: var(--white); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.booking-band p { margin: 0; opacity: .82; font-size: .9375rem; }
.booking-band .eyebrow { color: var(--gray-light); }
.booking-band .eyebrow::before { background: var(--warm); }

/* ------------------------------ Появление при прокрутке ------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ------------------------------ Адаптив ------------------------------ */

@media (max-width: 1180px) {
  .direction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { columns: 3; }
}

@media (max-width: 1024px) {
  .about, .reviews, .safety-note__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .rating-panel { padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .reason-grid, .access-grid, .steps, .service-grid, .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .first-visit, .booking-band { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team__row { grid-template-columns: minmax(0, 1fr) auto; }
  .team__fit { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 80px; }
  body { padding-bottom: 56px; }

  .menu-toggle { display: block; order: 3; }
  .header-cta { display: none; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 72px; }
  .brand { min-width: 0; }
  .brand__name, .brand__tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display); font-size: 1.125rem; font-weight: 500;
    color: var(--graphite);
  }
  .site-nav a::after { display: none; }

  .gallery-grid { columns: 2; }
  .about__figures img:last-child { margin-top: 0; }
  .mobile-actions { display: flex; }

  /* На узком экране графит уходит вниз, фото открывается сверху */
  .hero { min-height: auto; padding-block: clamp(52px, 12vw, 88px) clamp(72px, 14vw, 104px); }
  .hero__bg {
    inset: 0;
    background-image: url('assets/images/hero-lobby-900.webp');
    background-position: 58% 22%;
  }
  .hero--chair .hero__bg {
    background-image: url('assets/images/hero-chair-900.webp');
    background-position: 50% 58%;
  }
  .hero__bg::after {
    background: linear-gradient(180deg,
      rgba(38, 38, 38, .30) 0%,
      rgba(38, 38, 38, .52) 14%,
      rgba(40, 40, 40, .76) 30%,
      rgba(44, 44, 44, .90) 48%,
      rgba(38, 38, 38, .97) 72%,
      rgba(38, 38, 38, 1) 100%);
  }
}

@media (max-width: 560px) {
  .hero__facts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .direction-grid, .reason-grid, .access-grid, .steps, .service-grid, .review-grid, .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery-grid { columns: 1; }
  .tag-strip span { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .button, .button--sm { width: 100%; }
  .button-row { gap: 14px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
  .lightbox-prev { left: 16px; }
  .lightbox-next { right: 16px; }
}

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