/* Мастерская здоровья — десктоп 1440
   Раскладка: 12 колонок, поля 64px; тёмный тёплый «кабинет», один янтарный акцент,
   антиква для заголовков, гротеск для текста, базальтовый камень плывёт между секциями. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/cormorant-garamond-cyrillic-300-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/cormorant-garamond-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url("assets/fonts/cormorant-garamond-cyrillic-300-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/cormorant-garamond-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/onest-cyrillic-300-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/onest-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/onest-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/onest-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/onest-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/onest-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* цвет */
  --ink: #0d0b09;        /* фон: тёплая полутьма */
  --ink-2: #16120e;      /* плашки */
  --ink-3: #1f1913;      /* поля формы, ховеры */
  --bone: #ece3d5;       /* основной текст */
  --dust: #9a8e80;       /* второстепенный текст */
  --amber: #c9894b;      /* единственный акцент: тёплое масло */
  --line: rgba(236, 227, 213, 0.12);
  --line-2: rgba(236, 227, 213, 0.22);

  /* шрифт */
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Onest", "Helvetica Neue", Arial, sans-serif;

  /* сетка */
  --pad: 64px;
  --gap: 24px;
  --r-plate: 22px;
  --r-photo: 28px;

  /* движение */
  --ui: cubic-bezier(0.77, 0, 0.18, 1);         /* интерфейс, 0.3 с */
  --big: cubic-bezier(0.625, 0.05, 0, 1);       /* крупные переходы, 0.45 с */
  --reveal: cubic-bezier(0.22, 1, 0.36, 1);     /* появление, 900 мс */
  --curtain: cubic-bezier(0.76, 0, 0.24, 1);    /* шторки */

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: auto; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 1px solid var(--amber); outline-offset: 4px; border-radius: 4px; }
::selection { background: var(--amber); color: var(--ink); }

/* ——— фон: зерно и камень ——— */
.grain {
  position: fixed; inset: -50%;
  z-index: 60; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.92  0 0 0 0 0.82  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.stone {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  z-index: 5; pointer-events: none;
  transition: opacity 0.45s var(--big);
}
.stone.is-hidden { opacity: 0; }
.stone-anchor { pointer-events: none; }

/* ——— шторка при загрузке ——— */
.curtain {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  transform-origin: top;
  transition: transform 1.2s var(--curtain) 0.15s;
}
.is-loaded .curtain { transform: translateY(-100%); }

/* ——— типографика ——— */
.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 0.88;
  color: var(--bone);
}
.display .line { display: block; white-space: nowrap; padding-bottom: 0.06em; }
.display .line--it { font-style: italic; color: var(--amber); }
.display--md { font-size: 88px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--dust);
}
.lead { font-size: 20px; line-height: 1.55; color: var(--bone); max-width: 30em; }
.body { font-size: 17px; line-height: 1.65; color: var(--dust); max-width: 33em; }

/* ——— кнопки: плоские, без теней, шторка внутри ——— */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 58px; padding: 0 30px; min-width: 232px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  cursor: pointer; border: 1px solid transparent; background: none;
  transition: color 0.3s var(--ui), border-color 0.3s var(--ui);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.45s var(--curtain);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn__arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform 0.3s var(--ui); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
.btn--fill { background: var(--amber); color: var(--ink); }
.btn--fill::before { background: var(--bone); }
.btn--line { color: var(--bone); border-color: var(--line-2); }
.btn--line::before { background: var(--bone); }
.btn--line:hover { color: var(--ink); border-color: var(--bone); }
.btn--line:hover .btn__arrow { transform: translateY(2px); }
.btn--sm { height: 44px; min-width: 0; padding: 0 22px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn-pair { display: flex; gap: 12px; }
.btn-pair .btn { flex: 0 0 232px; }

/* ——— плашки ——— */
.plate { border: 1px solid var(--line); border-radius: var(--r-plate); background: var(--ink-2); }
.plate--photo { overflow: hidden; border-radius: var(--r-photo); background: var(--ink-2); }
.plate--photo img { width: 100%; height: 100%; object-fit: cover; }

.facts { display: grid; gap: 12px; }
.fact {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: 20px 22px 22px;
  transition: border-color 0.3s var(--ui), background-color 0.3s var(--ui);
}
.fact:hover { border-color: var(--line-2); background: var(--ink-3); }
.fact__k { font-family: var(--serif); font-size: 30px; line-height: 0.95; color: var(--bone); }
.fact__v { font-size: 14px; line-height: 1.45; color: var(--dust); }

/* ——— появление ——— */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s var(--reveal), transform 0.9s var(--reveal);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ——— шапка ——— */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.45s var(--big), border-color 0.45s var(--big), transform 0.45s var(--big);
}
.header.is-solid { background: rgba(13, 11, 9, 0.86); border-bottom-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header__in {
  height: 76px; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1fr auto auto auto auto; align-items: center; gap: 40px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.logo__mark { width: 30px; height: 30px; fill: none; stroke: var(--amber); stroke-width: 1.3; }
.logo__word { font-family: var(--serif); font-size: 24px; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.header__addr, .header__hours, .header__tel { font-size: 14px; color: var(--dust); white-space: nowrap; }
.header__tel { color: var(--bone); transition: color 0.3s var(--ui); }
.header__tel:hover { color: var(--amber); }
.header__call { display: none; }
.only-mob { display: none; }

/* ——— 1. первый экран ——— */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 128px var(--pad) 44px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: var(--gap);
}
.hero__copy { grid-column: 1 / 8; grid-row: 1; position: relative; z-index: 6; display: flex; flex-direction: column; align-items: flex-start; }
.hero__title { font-size: 152px; margin: 24px 0 26px; }
.hero__lead { margin-bottom: 30px; max-width: 27em; }
.hero__media { grid-column: 9 / 13; grid-row: 1 / 4; position: relative; z-index: 2; align-self: stretch; }
.hero__photo { position: absolute; inset: -14px 0 0 0; }
.hero__photo img { transform: scale(1.08); transition: transform 1.6s var(--reveal); }
.is-loaded .hero__photo img { transform: scale(1); }
.hero__anchor { position: absolute; width: 270px; height: 270px; left: -140px; top: 46%; }
.hero__facts { grid-column: 1 / 8; grid-row: 3; grid-template-columns: repeat(3, 1fr); position: relative; z-index: 6; margin-top: 36px; }

/* ——— 2. услуги ——— */
.services {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--pad) 140px;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  border-top: 1px solid var(--line);
}
.services__side { grid-column: 1 / 6; }
.services__sticky { position: sticky; top: 140px; }
.services__sticky .display { margin: 28px 0 32px; }
.services__intro { max-width: 25em; }
.services__anchor { width: 250px; height: 250px; margin: 48px 0 0 90px; }
.svc-list { grid-column: 6 / 13; border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start;
  padding: 38px 0 40px;
  border-bottom: 1px solid var(--line);
}
.svc__zone { display: block; margin-bottom: 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dust); transition: color 0.3s var(--ui); }
.svc__img { position: relative; width: 150px; height: 188px; overflow: hidden; border-radius: 18px; background: var(--ink-2); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 0.9s var(--big); }
.svc__img::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: 0.38; transition: opacity 0.45s var(--big); }
.svc:hover .svc__img::after { opacity: 0; }
.svc:hover .svc__img img { transform: scale(1); }
.svc__name {
  font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 0.95; letter-spacing: 0;
  white-space: nowrap; color: var(--bone);
  transform: translateX(0); transition: transform 0.45s var(--big), color 0.3s var(--ui);
}
.svc__desc { margin-top: 18px; font-size: 16px; line-height: 1.65; color: var(--dust); max-width: 36em; transition: color 0.3s var(--ui); }
.svc__after { margin-top: 16px; font-size: 15px; line-height: 1.55; color: var(--bone); opacity: 0.72; transition: opacity 0.3s var(--ui); }
.svc__after span { color: var(--amber); font-weight: 500; margin-right: 12px; }
.svc:hover .svc__name { transform: translateX(14px); color: var(--amber); }
.svc:hover .svc__zone { color: var(--amber); }
.svc:hover .svc__desc { color: var(--bone); }
.svc:hover .svc__after { opacity: 1; }

/* ——— 3. кабинет: горизонтальная прокрутка ——— */
.room { position: relative; border-top: 1px solid var(--line); /* высота задаётся из script.js */ min-height: 100vh; }
.room__pin {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: 44px;
  padding: 96px 0 40px;
}
.room__head { padding: 0 var(--pad); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.room__head > div { grid-column: 1 / 8; }
.room__head .display { margin-top: 28px; }
.room__intro { grid-column: 8 / 13; padding-bottom: 8px; }
.room__track { display: flex; align-items: flex-end; gap: 28px; padding: 0 var(--pad); will-change: transform; }
.shot { flex: none; }
.shot__frame { position: relative; overflow: hidden; border-radius: var(--r-photo); background: var(--ink-2); }
.shot__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 0.9s var(--big); }
.shot__frame::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ink); opacity: 0.55;
  transition: opacity 0.45s var(--big);
}
.shot:hover .shot__frame::after { opacity: 0; }
.shot:hover .shot__frame img { transform: scale(1); }
.shot figcaption { margin-top: 16px; font-size: 14px; color: var(--dust); transition: color 0.3s var(--ui); }
.shot:hover figcaption { color: var(--bone); }
.shot--tall .shot__frame { width: 320px; height: 400px; }
.shot--sq .shot__frame { width: 400px; height: 400px; }
.shot--wide { align-self: flex-start; }
.shot--wide .shot__frame { width: 540px; height: 304px; }
.room__progress { margin: 0 var(--pad); height: 1px; background: var(--line); }
.room__progress span { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); }

/* ——— 4. мастер ——— */
.master {
  position: relative; min-height: 100vh;
  padding: 140px var(--pad);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center;
  border-top: 1px solid var(--line);
}
.master__photo { grid-column: 1 / 6; height: 680px; }
.master__photo img { height: 116%; margin-top: -8%; will-change: transform; }
.master__copy { grid-column: 7 / 13; }
.master__copy .display { margin: 28px 0 34px; }
.master__text + .master__text { margin-top: 16px; }
.master__facts { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
.master__facts .fact { min-height: 128px; }

/* ——— 5. запись ——— */
.booking {
  position: relative; min-height: 100vh;
  padding: 140px var(--pad);
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: center;
  border-top: 1px solid var(--line);
}
.booking__copy { grid-column: 1 / 7; position: relative; }
.booking__copy .display { margin: 28px 0 48px; }
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 460px; }
.step { display: grid; grid-template-columns: 56px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--amber); }
.step p { font-size: 17px; line-height: 1.55; color: var(--bone); }
.booking__anchor { position: absolute; width: 180px; height: 180px; right: -50px; bottom: 10px; }
.form { grid-column: 8 / 13; padding: 44px 44px 40px; display: grid; gap: 22px; }
.form__title { font-family: var(--serif); font-size: 42px; line-height: 0.95; font-weight: 300; margin-bottom: 8px; }
.field { display: grid; gap: 10px; }
.field__label { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dust); }
.field__input {
  height: 58px; padding: 0 22px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--ink-3);
  color: var(--bone); font: 400 17px/1 var(--sans);
  transition: border-color 0.3s var(--ui);
}
.field__input::placeholder { color: #6f665b; }
.field__input:hover { border-color: var(--line-2); }
.field__input:focus { outline: none; border-color: var(--amber); }
.field.is-error .field__input { border-color: #b8664a; }
.form .btn { margin-top: 10px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; }
.consent__box {
  appearance: none; -webkit-appearance: none; margin: 1px 0 0;
  width: 22px; height: 22px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--ink-3);
  display: grid; place-content: center; cursor: pointer;
  transition: border-color 0.3s var(--ui), background-color 0.3s var(--ui);
}
.consent__box::after { content: ""; width: 10px; height: 6px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; transition: opacity 0.3s var(--ui); }
.consent__box:checked { background: var(--amber); border-color: var(--amber); }
.consent__box:checked::after { opacity: 1; }
.consent__box:focus-visible { outline: 1px solid var(--amber); outline-offset: 3px; }
.consent.is-error .consent__box { border-color: #b8664a; }
.consent__text { font-size: 13px; line-height: 1.5; color: var(--dust); }
.consent__text a, .footer__legal a { color: var(--bone); border-bottom: 1px solid var(--line-2); transition: color 0.3s var(--ui); }
.consent__text a:hover, .footer__legal a:hover { color: var(--amber); }
.footer__legal { color: var(--dust); }
.cookie {
  position: fixed; left: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  max-width: 440px; display: flex; align-items: center; gap: 18px;
  padding: 16px 18px; border-radius: 18px; border: 1px solid var(--line-2);
  background: rgba(22, 18, 14, 0.96); color: var(--bone); font-size: 14px; line-height: 1.45;
}
.cookie[hidden] { display: none; }
.cookie a { color: var(--amber); }
.cookie__ok {
  flex: none; height: 40px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--amber); color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer;
}
.form__note { font-size: 14px; line-height: 1.55; color: var(--dust); }
.form__note a { white-space: nowrap; color: var(--bone); border-bottom: 1px solid var(--line-2); }
.form.is-sent .form__note { color: var(--amber); }

/* ——— футер: финальный акт ——— */
.footer {
  position: relative; min-height: 100vh;
  padding: 120px var(--pad) 40px;
  display: grid; grid-template-rows: auto 1fr auto; gap: 40px;
  border-top: 1px solid var(--line);
  background: radial-gradient(120% 70% at 50% 100%, #1d160f 0%, var(--ink) 62%);
  overflow: hidden;
}
.footer__top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
.footer__col { grid-column: span 4; display: grid; gap: 10px; }
.footer__col:nth-child(2) { grid-column: span 3; }
.footer__col--cta { grid-column: span 5; }
.footer__col--cta { justify-items: end; }
.footer__big { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--bone); transition: color 0.3s var(--ui); }
a.footer__big:hover { color: var(--amber); }
.footer__small { font-size: 14px; color: var(--dust); }
.footer__stage { position: relative; display: flex; align-items: center; justify-content: center; }
.footer__anchor { position: absolute; width: 320px; height: 320px; left: 50%; top: 50%; margin: -160px 0 0 -160px; }
.wordmark { width: 100%; height: auto; display: block; overflow: visible; }
.wordmark__text { font-family: var(--serif); font-weight: 300; font-size: 232px; fill: #fff; letter-spacing: 0; }
.wordmark__text--it { font-style: italic; }
.wordmark__base { fill: #3a2f25; }
#glow { transition: opacity 0.45s var(--big); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dust); }
.footer__up { transition: color 0.3s var(--ui); }
.footer__up:hover { color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ——— Планшет и телефон ———
   Основной макет сделан под 1440. Ниже 1024px всё складывается в одну колонку:
   заголовки масштабируются от ширины экрана, галерея листается пальцем,
   камень уменьшается и живёт у фото, ховеры заменены на появление при прокрутке. */
@media (max-width: 1024px) {
  :root { --pad: 20px; --r-photo: 22px; --r-plate: 18px; }
  body { font-size: 16px; }

  /* шапка: лого, звонок, запись */
  /* читаемость на телефоне: плотнее начертание, светлее второстепенный текст, мельче 13px ничего нет */
  :root { --dust: #b4a899; }
  body { font-weight: 400; }
  .body, .lead, .svc__desc, .step p, .room__intro, .master__text { font-weight: 400; }
  .display { font-weight: 400; }
  .fact__k, .form__title, .footer__big, .svc__name, .logo__word { font-weight: 500; }
  .fact__v, .shot figcaption, .form__note, .footer__small, .footer__bottom, .svc__after { font-size: 14px; line-height: 1.5; }
  .eyebrow, .svc__zone, .field__label { font-size: 12px; letter-spacing: 0.12em; }
  .svc__desc { font-size: 16px; line-height: 1.6; }
  .field__input::placeholder { color: #8a7f72; }
  .header__in { height: 62px; grid-template-columns: 1fr auto auto; gap: 10px; }
  .header__addr, .header__hours, .header__tel { display: none; }
  .logo { gap: 10px; }
  .logo__mark { width: 24px; height: 24px; }
  .logo__word { font-size: 19px; }
  .header__call {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 999px;
    border: 1px solid var(--line-2); color: var(--bone);
    transition: border-color 0.3s var(--ui), color 0.3s var(--ui);
  }
  .header__call svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
  .header__call:active { border-color: var(--amber); color: var(--amber); }
  .btn--sm { height: 44px; padding: 0 18px; font-size: 14px; gap: 10px; }
  .only-desk { display: none; }
  .only-mob { display: inline; }

  /* общие */
  .display .line { white-space: normal; }
  .display--md { font-size: clamp(46px, 12.6vw, 84px); }
  .lead { font-size: 17px; }
  .body { font-size: 16px; }
  .btn { height: 56px; min-width: 0; width: 100%; }
  .btn-pair { flex-direction: column; gap: 10px; }
  .btn-pair .btn { flex: none; width: 100%; }

  /* 1. первый экран */
  .hero {
    display: flex; flex-direction: column;
    min-height: 0; padding: 104px var(--pad) 56px;
  }
  .hero__copy { order: 1; }
  .hero__title { font-size: clamp(60px, 18vw, 120px); margin: 20px 0 22px; }
  .hero__lead { margin-bottom: 28px; }
  .hero .btn-pair { width: 100%; }
  .hero__media { order: 2; position: relative; width: 100%; aspect-ratio: 4 / 5; max-width: 100%; margin-top: 44px; }
  .hero__photo { inset: 0; }
  .hero__anchor { left: auto; right: 14px; top: -34px; width: 76px; height: 76px; }
  .hero__facts { order: 3; margin-top: 12px; grid-template-columns: 1fr; gap: 8px; }
  .fact { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; }
  .fact__k { font-size: 24px; flex: none; }
  .fact__v { text-align: right; max-width: 15em; }

  /* 2. услуги */
  .services { display: block; min-height: 0; padding: 96px var(--pad) 72px; }
  .services__sticky { position: static; }
  .services__sticky .display { margin: 20px 0 22px; }
  .services__anchor { width: 76px; height: 76px; margin: 14px 8px 0 auto; }
  .svc-list { margin-top: 24px; }
  .svc { grid-template-columns: 1fr; gap: 18px; padding: 28px 0 30px; }
  .svc__img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .svc__img::after { opacity: 0.15; }
  .svc__zone { margin-bottom: 10px; }
  .svc__name { white-space: normal; text-wrap: balance; font-size: clamp(30px, 8.6vw, 44px); line-height: 1; }
  .svc__desc { margin-top: 12px; }
  .svc__after { margin-top: 12px; opacity: 1; }
  .svc__after span { display: block; margin: 0 0 2px; }

  /* 3. кабинет: лента листается пальцем, снимок проступает, когда встаёт в центр */
  .room { min-height: 0; height: auto !important; }
  .room__pin { position: static; height: auto; overflow: visible; padding: 96px 0 64px; gap: 32px; }
  .room__head { display: block; }
  .room__head .display { margin-top: 20px; }
  .room__intro { margin-top: 22px; padding-bottom: 0; }
  .room__track {
    transform: none !important;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    gap: 12px; align-items: flex-start;
    scrollbar-width: none;
  }
  .room__track::-webkit-scrollbar { display: none; }
  .room__track::after { content: ""; flex: 0 0 8px; }
  .shot { scroll-snap-align: start; }
  .shot--wide { align-self: auto; }
  .shot--tall .shot__frame { width: 74vw; height: 92vw; max-width: 380px; max-height: 470px; }
  .shot--sq .shot__frame { width: 84vw; height: 84vw; max-width: 430px; max-height: 430px; }
  .shot--wide .shot__frame { width: 88vw; height: 92vw; max-width: 440px; max-height: 470px; }
  .shot figcaption { margin-top: 12px; }
  .shot.is-lit .shot__frame::after { opacity: 0; }
  .shot.is-lit .shot__frame img { transform: scale(1); }
  .shot.is-lit figcaption { color: var(--bone); }

  /* 4. мастер */
  .master { display: block; min-height: 0; padding: 96px var(--pad) 72px; }
  .master__photo { height: auto; aspect-ratio: 4 / 5; margin-bottom: 40px; }
  .master__copy .display { margin: 20px 0 24px; }
  .master__facts { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 32px; }
  .master__facts .fact { min-height: 0; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px; }
  .master__facts .fact__k { font-size: 22px; }
  .master__facts .fact__v { text-align: left; }

  /* 5. запись */
  .booking { display: block; min-height: 0; padding: 96px var(--pad) 80px; }
  .booking__copy .display { margin: 20px 0 32px; }
  .steps { max-width: none; }
  .step { grid-template-columns: 40px 1fr; padding: 18px 0; }
  .step p { font-size: 16px; }
  .booking__anchor { display: none; }
  .form { margin-top: 40px; padding: 28px 20px 24px; gap: 18px; }
  .form__title { font-size: 34px; }
  .field__input { height: 56px; font-size: 16px; } /* 16px: iOS не зумит поле */

  /* футер */
  .footer { min-height: 100svh; padding: 88px var(--pad) 28px; gap: 28px; }
  .footer__top { display: grid; grid-template-columns: 1fr; gap: 28px; }
  .footer__col, .footer__col:nth-child(2), .footer__col--cta { grid-column: auto; }
  .footer__col--cta { justify-items: stretch; }
  .footer__big { font-size: 28px; }
  .footer__stage { flex-direction: column; gap: 8px; }
  .footer__anchor { position: static; width: 86px; height: 70px; margin: 0; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* На тач-экранах ховеры не держатся, сдвиги по наведению отключаем */
@media (hover: none) {
  .svc:hover .svc__name { transform: none; color: var(--bone); }
  .fact:hover { border-color: var(--line); background: var(--ink-2); }
}

@media (max-width: 1024px) {
  .cookie { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: none; }
  .consent__text { font-size: 14px; }
  .footer__legal { line-height: 1.6; }
}

/* ——— Юридические страницы ——— */
.doc { min-height: 100vh; padding: 120px var(--pad) 80px; }
.doc__in { max-width: 760px; margin: 0 auto; }
.doc__back { display: inline-flex; gap: 10px; align-items: center; font-size: 14px; color: var(--dust); margin-bottom: 40px; transition: color 0.3s var(--ui); }
.doc__back:hover { color: var(--amber); }
.doc h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 7vw, 72px); line-height: 0.95; margin-bottom: 20px; text-wrap: balance; }
.doc__date { font-size: 14px; color: var(--dust); margin-bottom: 48px; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; margin: 44px 0 14px; color: var(--bone); }
.doc p, .doc li { font-size: 16px; line-height: 1.7; color: var(--dust); }
.doc p + p { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 22px; margin-top: 10px; display: grid; gap: 6px; }
.doc b { color: var(--bone); font-weight: 500; }
.doc a { color: var(--bone); border-bottom: 1px solid var(--line-2); }
.doc .plate { padding: 22px 24px; margin-top: 18px; }
