/* ============================================================
   MAKEUUP - салон красоты · дизайн-система
   Палитра: ivory / ink / champagne
   Типографика: Unbounded (display) · Cormorant Garamond (акценты)
                JetBrains Mono (технический текст)
   ============================================================ */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --ink: #101010;
  --ink-2: #232019;
  --muted: #6f6a61;
  --champagne: #b08d57;
  --champagne-deep: #96754a;
  --line: rgba(16, 16, 16, 0.16);
  --line-strong: rgba(16, 16, 16, 0.32);
  --line-light: rgba(244, 241, 234, 0.22);

  --font-display: "Unbounded", sans-serif;
  --font-serif: "Cormorant Garamond", serif;
  --font-mono: "JetBrains Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;

  /* геометрия страницы - переопределяется в блоке адаптива */
  --wrap-max: 1280px;
  --gutter: 24px;
}

/* ---------- база ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.is-loaded { opacity: 1; }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--champagne); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

.wrap { width: min(var(--wrap-max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }

.mono-xs {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.serif-i {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* нумерованный кикер секции */
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--champagne);
  flex: none;
}
.kicker b { color: var(--ink); font-weight: 500; }
.on-dark .kicker { color: rgba(244, 241, 234, 0.55); }
.on-dark .kicker b { color: var(--paper); }

/* крупный заголовок секции */
.sec-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* ---------- кнопки ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn .arr { transition: transform 0.45s var(--ease); }
.btn:hover .arr { transform: translate(4px, -4px); }

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--ease);
  z-index: 0;
}
.btn:hover::after { transform: scaleX(1); transform-origin: left; }

.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid::after { background: var(--champagne); }
.btn--solid:hover { color: var(--ink); }

.btn--ghost:hover { color: var(--paper); }
.on-dark .btn--ghost:hover { color: var(--ink); }
.on-dark .btn--ghost::after { background: var(--paper); }

/* ---------- прогресс чтения ---------- */

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  z-index: 220;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- шапка ---------- */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
  border-bottom: 1px solid transparent;
  color: var(--ink);
}
.header.is-solid {
  background: rgba(244, 241, 234, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  color: var(--ink);
}
.header.is-dark:not(.is-solid) { color: var(--paper); }

.header__in {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.06em;
}
.logo svg { width: 26px; height: 26px; }
.logo em {
  font-style: normal;
  color: var(--champagne);
}

.nav { display: flex; gap: 34px; }
.nav a {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.status i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3e9b4f;
  box-shadow: 0 0 0 0 rgba(62, 155, 79, 0.5);
  animation: pulse 2.4s infinite;
  flex: none;
}
.status.is-closed i { background: #b3403a; animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 155, 79, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(62, 155, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 155, 79, 0); }
}

.clock {
  color: inherit;
  opacity: 0.65;
  white-space: nowrap;
}

/* бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  align-items: center;
}
.burger i {
  display: block;
  width: 26px; height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.burger.is-open i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open i:nth-child(2) { opacity: 0; }
.burger.is-open i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* мобильное меню */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 28px 40px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.mnav.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.mnav a {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s ease;
}
.mnav.is-open a { transform: none; opacity: 1; }
.mnav a:nth-child(2) { transition-delay: 0.07s; }
.mnav a:nth-child(3) { transition-delay: 0.14s; }
.mnav a span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--champagne);
  vertical-align: super;
  margin-right: 12px;
}
.mnav__foot {
  position: absolute;
  bottom: 34px; left: 28px; right: 28px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- hero (главная) ---------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
}

/* видео-фон: постер виден мгновенно, сам ролик догружается после загрузки страницы */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02) brightness(1.04);
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero__bg video.is-ready { opacity: 1; }
/* вуаль цвета бумаги - видео вписано в светлый сайт, текст остаётся контрастным */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(244, 241, 234, 0.94) 0%,
    rgba(244, 241, 234, 0.64) 30%,
    rgba(244, 241, 234, 0.52) 55%,
    rgba(244, 241, 234, 0.68) 80%,
    rgba(244, 241, 234, 0.8) 100%
  );
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(58px, 13.2vw, 196px);
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-left: -0.04em;
  color: var(--ink);
}
.hero__title .o {
  color: transparent;
  -webkit-text-stroke: 2px var(--champagne);
}
.hero__title .row { display: block; overflow: hidden; }
.hero__title .row > i {
  display: inline-block;
  font-style: normal;
  transform: translateY(110%);
  animation: riseUp 1s var(--ease) forwards;
}
.hero__title .row:nth-child(2) > i { animation-delay: 0.12s; }
@keyframes riseUp { to { transform: none; } }

.hero__under {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  gap: 36px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.hero__slogan {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.25;
  color: var(--ink);
}
.hero__slogan em { color: var(--champagne-deep); font-style: italic; }

.hero__note {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(16, 16, 16, 0.78);
  max-width: 380px;
}
.hero__note b { color: var(--ink); font-weight: 500; }

.hero__scroll {
  position: absolute;
  bottom: 86px;
  left: 50%;
  width: 1px;
  height: 52px;
  background: var(--line-strong);
  overflow: hidden;
}
.hero__scroll::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--champagne);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip {
  0% { top: -100%; }
  55% { top: 0; }
  100% { top: 110%; }
}

/* бегущая строка */
.ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 13px 0;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tick 30s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__track span::after { content: "✦"; color: var(--champagne); font-size: 9px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- отзывы ---------- */

.reviews {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.rev {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 6px 0;
}
.rev__ava {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.rev__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.rev__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.rev__svc {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne-deep);
}
.rev__stars {
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--champagne);
}
.rev__more {
  margin-top: 9px;
  padding: 2px 0;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--champagne-deep);
  border-bottom: 1px solid currentColor;
  transition: color 0.3s ease;
}
.rev__more:hover { color: var(--ink); }

@media (max-width: 719px) {
  .reviews { grid-template-columns: 1fr; }
  .rev { gap: 16px; }
  .rev__ava { width: 54px; height: 54px; }
  .rev__full { padding-left: 70px; }
}

/* полный текст отзыва - разворачивается вниз под строкой */
.rev__full {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  padding-left: 88px;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(16, 16, 16, 0.75);
  transition: max-height 0.55s var(--ease), margin-top 0.55s var(--ease);
}
.rev.is-open .rev__full {
  max-height: 420px;
  margin-top: 14px;
}
.rev.is-open .rev__more { color: var(--ink); }

/* ---------- секции ---------- */

.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(40px, 6vw, 72px);
  gap: 24px;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.sec-head h2 em {
  font-style: normal;
  color: var(--champagne);
}

/* о бренде */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about__sticky { position: sticky; top: 120px; }
.about__lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.22;
  margin: 26px 0 30px;
  text-wrap: balance;
}
.about__lead em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  color: var(--champagne-deep);
}
.about__text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  max-width: 480px;
  display: grid;
  gap: 16px;
}
.about__text b { color: var(--ink); font-weight: 500; }
.about__sign {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.about__sign::before {
  content: "";
  width: 44px; height: 1px;
  background: var(--champagne);
}

.about__photo { position: relative; }
.about__photo figure { overflow: hidden; }
.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transform: scale(1.03);
  transition: transform 1.4s var(--ease);
}
.about__photo:hover img { transform: scale(1); }
.about__photo figcaption {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.about__stamp {
  position: absolute;
  top: -34px;
  right: -20px;
  width: 108px; height: 108px;
  animation: spin 22s linear infinite;
  color: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* широкая полоса-цитата */
.quoteband {
  position: relative;
  margin-top: clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.quoteband img {
  width: 100%;
  height: clamp(260px, 38vw, 460px);
  object-fit: cover;
  filter: saturate(0.85) contrast(1.03);
}
.quoteband figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(16,16,16,0.66), rgba(16,16,16,0.06) 55%);
  color: var(--paper);
  padding: clamp(24px, 4vw, 48px);
}
.quoteband p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.3;
  max-width: 760px;
}
.quoteband p span {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 16px;
}

/* направления (список-строки) */
.dirs { border-top: 1px solid var(--line); }
.dir-row {
  display: grid;
  grid-template-columns: 70px 1fr auto 40px;
  gap: 24px;
  align-items: center;
  padding: 30px 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), padding 0.45s var(--ease);
}
.dir-row:hover {
  background: var(--ink);
  color: var(--paper);
  padding-left: 26px;
}
.dir-row__num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--champagne);
}
.dir-row__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 3.4vw, 40px);
  text-transform: uppercase;
  line-height: 1.1;
}
.dir-row__desc {
  font-size: 12px;
  color: var(--muted);
  max-width: 320px;
  text-align: right;
  line-height: 1.7;
}
.dir-row:hover .dir-row__desc { color: rgba(244, 241, 234, 0.6); }
.dir-row__arr {
  font-size: 18px;
  transform: rotate(0deg);
  transition: transform 0.45s var(--ease);
}
.dir-row:hover .dir-row__arr { transform: rotate(45deg); color: var(--champagne); }

/* всплывающее превью направлений */
.preview {
  position: fixed;
  z-index: 90;
  width: 250px;
  aspect-ratio: 4 / 5;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.92) rotate(-2deg);
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}
.preview.is-on { opacity: 1; transform: scale(1) rotate(0deg); }
.preview img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.preview img.is-cur { opacity: 1; }
.preview::after {
  content: attr(data-label);
  position: absolute;
  left: 12px; bottom: 10px;
  color: var(--paper);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* факты */
.facts {
  background: var(--ink);
  color: var(--paper);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.fact {
  padding: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 48px);
  border-left: 1px solid var(--line-light);
}
.fact:first-child { border-left: 0; }
.fact b {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1;
  color: var(--champagne);
  margin-bottom: 14px;
}
.fact span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* cta */
.cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 7.4vw, 104px);
  line-height: 1.04;
  text-transform: uppercase;
}
.cta h2 em { font-style: normal; color: var(--champagne); }
.cta__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 2.4vw, 28px);
  color: var(--muted);
  margin: 26px auto 42px;
  max-width: 560px;
}
.cta__btns {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta__badge {
  position: absolute;
  right: clamp(10px, 6vw, 90px);
  top: 50%;
  translate: 0 -50%;
  width: 132px; height: 132px;
  color: var(--ink);
  animation: spin 26s linear infinite;
  opacity: 0.85;
}
.cta__badge text {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  fill: currentColor;
}

/* ---------- колофон / футер ---------- */

.colophon {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.colophon__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 60px);
  padding: clamp(56px, 7vw, 90px) 0;
}
.colo-col h3 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne-deep);
  margin-bottom: 20px;
  font-weight: 500;
}
.colo-col ul { list-style: none; display: grid; gap: 10px; }
.colo-col li {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  display: flex;
  gap: 10px;
}
.colo-col li::before { content: "-"; color: var(--champagne); flex: none; }
.colo-col li b { color: var(--ink); font-weight: 500; }
.colo-col a { border-bottom: 1px solid var(--line-strong); transition: color .3s; }
.colo-col a:hover { color: var(--champagne-deep); }

.footer { background: var(--ink); color: var(--paper); overflow: hidden; }
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(36px, 6vw, 90px);
  padding: clamp(56px, 7vw, 90px) 0 clamp(40px, 5vw, 64px);
}
.footer h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 32px);
  text-transform: uppercase;
  margin-bottom: 26px;
}
.sub-form { display: flex; border-bottom: 1px solid var(--line-light); max-width: 420px; }
.sub-form input {
  flex: 1;
  background: none;
  border: 0;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 13px 0;
  outline: none;
}
.sub-form input::placeholder { color: rgba(244, 241, 234, 0.35); }
.sub-form button {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
  padding: 0 4px;
  transition: color 0.3s;
}
.sub-form button:hover { color: var(--paper); }
.sub-note { font-size: 10.5px; color: rgba(244,241,234,0.4); margin-top: 14px; line-height: 1.7; max-width: 420px; }
.sub-ok { color: var(--champagne); font-size: 12px; letter-spacing: 0.08em; margin-top: 14px; display: none; }

.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer__cols h4 {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
  margin-bottom: 16px;
}
.footer__cols ul { list-style: none; display: grid; gap: 10px; font-size: 13px; }
.footer__cols a { border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.footer__cols a:hover { color: var(--champagne); border-color: var(--champagne); }
.footer__cols li span { color: rgba(244, 241, 234, 0.4); font-size: 11px; }

.wordmark {
  display: block;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 15.4vw, 240px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--paper);
  user-select: none;
  padding-top: clamp(20px, 3vw, 40px);
  margin-bottom: -0.06em;
}
.wordmark em { font-style: normal; color: var(--champagne); }

.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line-light);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
}

/* ---------- страница каталога ---------- */

.cat-banner {
  position: relative;
  /* кадр считается от высоты экрана, а не от ширины:
     доля рамки устройства остаётся одинаковой на всех платформах */
  height: clamp(420px, 62svh, 620px);
  /* контент центрируется между шапкой и нижней мета-строкой */
  --banner-pad-top: calc(var(--header-h) + 14px);
  --banner-pad-bottom: 46px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cat-banner__bg {
  position: absolute;
  inset: 0;
}
.cat-banner__bg img,
.cat-banner__bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(0.82) contrast(1.04) brightness(0.94);
  transform: scale(1.06);
  animation: bannerIn 2.6s var(--ease) forwards;
}
@keyframes bannerIn { to { transform: scale(1); } }
.cat-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(16,16,16,0.5), rgba(16,16,16,0.05) 40%, rgba(16,16,16,0.62)),
    radial-gradient(ellipse at center, transparent 55%, rgba(16,16,16,0.35));
  z-index: 1;
}
.cat-banner__in {
  position: relative;
  z-index: 2;
  padding: var(--banner-pad-top) 24px var(--banner-pad-bottom);
}
.cat-banner__eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 2.2vw, 26px);
  opacity: 0.85;
}
.cat-banner__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(44px, 9.4vw, 128px);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-top: 10px;
}
.cat-banner__meta {
  position: absolute;
  z-index: 2;
  left: 24px; right: 24px; bottom: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.75);
}

/* интро-полоса каталога */
.cat-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}
.cat-intro b { color: var(--ink); font-weight: 500; }

/* категории каталога - сворачиваемые секции */
.cat-group { padding: clamp(48px, 6vw, 84px) 0 0; }
.cat-group__head {
  display: grid;
  grid-template-columns: 84px 74px 1fr auto auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 8px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cat-group__head:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 4px;
}
.cat-group__head .idx {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--champagne-deep);
}
.cat-group__head .thumb {
  width: 74px; height: 74px;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
}
.cat-group.is-open .cat-group__head:hover .thumb {
  transform: scale(1.06) rotate(-2deg);
}
.cat-group__head .cat-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(24px, 3.6vw, 44px);
  text-transform: uppercase;
  line-height: 1.05;
  transition: color 0.3s;
}
.cat-group__head:hover .cat-name { color: var(--champagne-deep); }
.cat-group__head .count {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.cat-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
  flex: none;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cat-toggle::before,
.cat-toggle::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.cat-toggle::before { width: 14px; height: 1.5px; }
.cat-toggle::after { width: 1.5px; height: 14px; }
.cat-group.is-open .cat-toggle { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cat-group.is-open .cat-toggle::after { transform: scaleY(0); opacity: 0; }
.cat-group:not(.is-open) .cat-group__head:hover .cat-toggle {
  background: var(--ink);
  color: var(--paper);
}

.svc-list { list-style: none; }
.svc-list.is-collapsed { display: none; }
.svc {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 19px 10px;
  border-top: 1px dashed var(--line);
  transition: background 0.35s var(--ease);
  scroll-margin-top: 100px;
}
.svc:last-child { border-bottom: 1px dashed var(--line); }
.svc:hover { background: rgba(176, 141, 87, 0.07); }
.svc__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(15px, 1.8vw, 19px);
  letter-spacing: 0.01em;
  flex: none;
  max-width: 46%;
}
.svc__desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16.5px;
  color: var(--muted);
  flex: 1;
  min-width: 60px;
}
.svc__dots {
  flex: 1;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-5px);
  min-width: 30px;
}
.svc__price {
  font-size: 14px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color 0.3s;
}
.svc:hover .svc__price { color: var(--champagne-deep); }
.svc__price small {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* заметка после каталога */
.cat-note {
  margin: clamp(60px, 8vw, 100px) 0 0;
  background: var(--ink-2);
  color: var(--paper);
}
.cat-note__in {
  padding: clamp(48px, 6vw, 80px) 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}
.cat-note p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
  max-width: 720px;
}
.cat-note p span {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 18px;
}
.on-dark .btn--ghost { border-color: var(--line-light); }

/* ---------- появление при скролле ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.12s; }
[data-reveal][data-delay="2"] { transition-delay: 0.24s; }
[data-reveal][data-delay="3"] { transition-delay: 0.36s; }

/* ============================================================
   АДАПТИВ - отдельные раскладки под класс устройства
   ------------------------------------------------------------
   МОБИЛЬНЫЙ   <= 599px        телефоны (портрет)
   ПЛАНШЕТ     600 – 1023px    iPad / Android-планшеты (портрет)
   НОУТБУК     1024 – 1439px   13"–16", планшет в альбоме
   ДЕСКТОП     >= 1440px       большие мониторы
   Плюс: тач-устройства (pointer: coarse), низкий экран ноутбука,
         телефон в альбомной ориентации, вырезы экрана (safe-area).
   ============================================================ */

/* ------------------------------------------------------------
   ДЕСКТОП - от 1440px
   ------------------------------------------------------------ */
@media (min-width: 1440px) {
  :root {
    --wrap-max: 1440px;
    --gutter: 48px;
    --header-h: 84px;
  }
  body { font-size: 16px; }

  .nav { gap: 40px; }
  .hero__note { max-width: 420px; font-size: 13.5px; }
  .about__text { font-size: 15px; }
  .dir-row { padding: 34px 12px; }
  .dir-row__desc { max-width: 380px; font-size: 13px; }
  .svc { padding: 21px 12px; }
  .svc__price { font-size: 15px; }
  .preview { width: 280px; }

  .cat-banner { height: clamp(460px, 64svh, 700px); }
  .cat-banner__title { font-size: clamp(96px, 8.6vw, 168px); }
}

/* ------------------------------------------------------------
   НОУТБУК - 1024 – 1439px
   ------------------------------------------------------------ */
@media (min-width: 1024px) and (max-width: 1439px) {
  :root {
    --wrap-max: 1180px;
    --gutter: 32px;
    --header-h: 72px;
  }

  .nav { gap: 24px; }
  .nav a { letter-spacing: 0.14em; }
  .header__meta { gap: 16px; }

  .hero__under { grid-template-columns: 1.05fr 1fr auto; gap: 26px; }
  .hero__note { max-width: 300px; font-size: 12.5px; line-height: 1.7; }

  .dir-row { grid-template-columns: 60px 1fr auto 34px; gap: 18px; padding: 26px 10px; }
  .dir-row__desc { max-width: 250px; font-size: 11.5px; }

  .preview { width: 220px; }
  .cta__badge { width: 108px; height: 108px; right: 1.5vw; }

  .cat-group__head { grid-template-columns: 72px 68px 1fr auto auto; gap: 18px; }
  .cat-group__head .thumb { width: 68px; height: 68px; }

  .wordmark { font-size: clamp(64px, 13.2vw, 186px); }

  .cat-banner { height: clamp(420px, 62svh, 600px); }
  .cat-banner__title { font-size: clamp(72px, 9vw, 130px); }
}

/* Ноутбук с низким экраном (13" / 1366x768) - сжимаем первый экран */
@media (min-width: 1024px) and (max-height: 820px) {
  .hero { padding-bottom: 92px; }
  .hero__title { font-size: clamp(64px, 15vh, 150px); }
  .hero__under { margin-top: 26px; padding-top: 20px; gap: 24px; }
  .hero__slogan { font-size: clamp(20px, 3.4vh, 30px); }
  .hero__scroll { display: none; }
  .section { padding: clamp(64px, 9vh, 120px) 0; }
  .about__sticky { top: calc(var(--header-h) + 28px); }
}

/* ------------------------------------------------------------
   ОБЩЕЕ ДЛЯ ПЛАНШЕТА И ТЕЛЕФОНА - до 1023px
   ------------------------------------------------------------ */
@media (max-width: 1023px) {
  /* учитываем вырез и скругления экрана в альбомной ориентации */
  .wrap {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .header__meta .clock,
  .header__meta .status { display: none; }

  /* шапка прячется при скролле вниз - экономим высоту экрана */
  .header {
    transition: background 0.4s ease, border-color 0.4s ease,
                color 0.4s ease, transform 0.45s var(--ease);
  }
  .header.is-hidden { transform: translateY(-100%); }

  .hero__scroll { display: none; }
  .preview { display: none; }
  .cta__badge { display: none; }

  .about__grid { grid-template-columns: 1fr; }
  .about__sticky { position: static; }
  .about__text { max-width: none; }

  .footer__top { grid-template-columns: 1fr; }
  .cat-note__in { grid-template-columns: 1fr; justify-items: start; }

  .svc { scroll-margin-top: calc(var(--header-h) + 20px); }
  .cat-group { scroll-margin-top: var(--header-h); }

  /* Узкая рамка: кадр 2.33:1 при заполнении по высоте показывает только
     центральную колонку - лоб и нос. Поэтому в портретной ориентации
     кадр вписывается ЦЕЛИКОМ по ширине (лицо видно полностью), а рамку
     добирает размытое продолжение того же кадра. */
  .cat-banner { align-items: flex-end; }
  .cat-banner__in { padding-block: 0 calc(var(--banner-pad-bottom) + 28px); }

}

/* ------------------------------------------------------------
   ПЛАНШЕТ - 600 – 1023px
   ------------------------------------------------------------ */
@media (min-width: 600px) and (max-width: 1023px) {
  :root {
    --wrap-max: 920px;
    --gutter: 30px;
    --header-h: 68px;
  }
  body { font-size: 14.5px; }

  .nav { gap: 20px; }
  .nav a { font-size: 10.5px; letter-spacing: 0.12em; }

  /* hero: слоган и текст в две колонки, кнопка - отдельной строкой */
  .hero__title { font-size: clamp(76px, 13.6vw, 132px); }
  .hero__under { grid-template-columns: 1fr 1fr; gap: 24px 30px; align-items: start; }
  .hero__under .btn { grid-column: 1 / -1; justify-self: start; }
  .hero__note { max-width: none; font-size: 12.5px; }

  /* направления: описание переезжает под название, а не пропадает */
  .dirs .dir-row {
    grid-template-columns: 46px 1fr 34px;
    column-gap: 18px;
    row-gap: 6px;
    padding: 24px 8px;
  }
  .dir-row__num { grid-column: 1; grid-row: 1; }
  .dir-row__name { grid-column: 2; grid-row: 1; font-size: clamp(24px, 4vw, 34px); }
  .dir-row__desc {
    display: block;
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    max-width: 46ch;
    font-size: 12px;
    line-height: 1.6;
  }
  .dir-row__arr { grid-column: 3; grid-row: 1 / span 2; align-self: center; }

  .facts__grid { grid-template-columns: repeat(3, 1fr); }
  .fact { padding: 40px 20px; }
  .fact b { font-size: clamp(34px, 6vw, 52px); }
  .fact span { font-size: 10px; letter-spacing: 0.14em; }

  .about__photo { max-width: 560px; }
  .about__stamp { width: 92px; height: 92px; top: -26px; right: -10px; }

  .colophon__grid { grid-template-columns: repeat(2, 1fr); gap: 34px 40px; }
  .colo-col:last-child { grid-column: 1 / -1; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .sub-form, .sub-note { max-width: 100%; }

  /* каталог */
  .cat-banner { height: clamp(480px, 62svh, 700px); --banner-pad-bottom: 42px; }
  .cat-banner__title {
    font-size: clamp(52px, 10vw, 92px);
    letter-spacing: 0.2em;
    text-indent: 0.2em;
  }
  .cat-group__head { grid-template-columns: 64px 1fr auto auto; gap: 18px; }
  .cat-group__head .thumb { width: 64px; height: 64px; }
  .cat-group__head .idx { display: none; }
  .cat-group__head .cat-name { font-size: clamp(26px, 4.4vw, 38px); }
  .svc { gap: 14px; padding: 18px 8px; }
  .svc__name { max-width: 42%; }
  .svc__desc { font-size: 15px; }

  .wordmark { font-size: clamp(56px, 14.4vw, 150px); }
}

/* ------------------------------------------------------------
   УЗКИЕ ЭКРАНЫ - до 719px: бургер-меню вместо навигации
   ------------------------------------------------------------ */
@media (max-width: 719px) {
  .nav { display: none; }
  .burger { display: flex; }

  .facts__grid { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--line-light); }
  .fact:first-child { border-top: 0; }

  .colophon__grid { grid-template-columns: 1fr; gap: 34px; }
  .colo-col:last-child { grid-column: auto; }

  /* меню на весь экран: прокрутка и safe-area на телефонах с вырезом */
  .mnav {
    padding: calc(var(--header-h) + 28px) 26px calc(120px + env(safe-area-inset-bottom));
    overflow-y: auto;
    justify-content: center;
  }
  .mnav__foot {
    bottom: calc(28px + env(safe-area-inset-bottom));
    left: 26px;
    right: 26px;
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  .mnav__foot .status { display: inline-flex; }
}

/* Выше 719px мобильное меню не существует: даже если JS не успел его
   закрыть (быстрый поворот планшета), оверлей не перекроет страницу */
@media (min-width: 720px) {
  .mnav { display: none; }
  body { overflow-y: visible !important; }
}

/* ------------------------------------------------------------
   МОБИЛЬНЫЙ - до 599px
   ------------------------------------------------------------ */
@media (max-width: 599px) {
  :root {
    --wrap-max: 100%;
    --gutter: 18px;
    --header-h: 60px;
  }
  body { font-size: 14px; line-height: 1.7; }

  .logo { font-size: 14px; gap: 9px; }
  .logo svg { width: 23px; height: 23px; }

  /* hero: заголовок, слоган, текст и кнопка - одной колонкой */
  .hero { padding-bottom: 92px; }
  .hero__title { font-size: clamp(52px, 16.5vw, 88px); line-height: 0.96; }
  .hero__under { grid-template-columns: 1fr; gap: 20px; margin-top: 30px; padding-top: 20px; }
  .hero__slogan { font-size: clamp(21px, 6.4vw, 28px); }
  .hero__note { max-width: none; font-size: 12.5px; line-height: 1.72; }
  .hero__under .btn { width: 100%; justify-content: space-between; }

  .ticker { padding: 11px 0; }
  .ticker__track span { gap: 32px; padding-right: 32px; font-size: 10px; letter-spacing: 0.18em; }

  .section { padding: clamp(56px, 14vw, 90px) 0; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 32px; }
  .sec-head h2 { font-size: clamp(30px, 8.4vw, 40px); }
  .kicker::before { width: 24px; }

  .about__lead { font-size: clamp(24px, 6.6vw, 30px); margin: 20px 0 24px; }
  .about__text { font-size: 13.5px; line-height: 1.8; }
  .about__photo { max-width: none; }
  .about__photo img { aspect-ratio: 3 / 4; }
  .about__stamp { width: 76px; height: 76px; top: -20px; right: -4px; }
  .quoteband img { height: clamp(240px, 62vw, 320px); }
  .quoteband p { font-size: clamp(20px, 5.6vw, 26px); }

  /* направления: номер и название в строку, описание компактно ниже */
  .dirs .dir-row {
    grid-template-columns: 34px 1fr 24px;
    column-gap: 12px;
    row-gap: 4px;
    padding: 20px 4px;
  }
  .dir-row__num { grid-column: 1; grid-row: 1; font-size: 10px; }
  .dir-row__name { grid-column: 2; grid-row: 1; font-size: clamp(21px, 6.2vw, 28px); }
  .dir-row__desc {
    display: block;
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    max-width: none;
    font-size: 11.5px;
    line-height: 1.55;
  }
  .dir-row__arr { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 15px; }

  .fact { padding: 30px 20px; }
  .fact b { font-size: clamp(38px, 12vw, 52px); margin-bottom: 10px; }

  .cta h2 { font-size: clamp(38px, 12.4vw, 60px); }
  .cta__sub { font-size: clamp(17px, 4.8vw, 21px); margin: 20px auto 30px; }
  .cta__btns { flex-direction: column; gap: 12px; }
  .cta__btns .btn { width: 100%; justify-content: center; }

  .btn { padding: 15px 22px; font-size: 11px; letter-spacing: 0.14em; }

  .colo-col li { font-size: 12px; }
  .footer__cols { grid-template-columns: 1fr; gap: 26px; }
  .sub-form, .sub-note { max-width: none; }
  .footer__legal { flex-direction: column; gap: 8px; text-align: left; }
  .wordmark { font-size: clamp(40px, 14.4vw, 84px); }

  /* каталог: баннер и аккордеон под палец */
  .cat-banner { height: clamp(360px, 52svh, 480px); --banner-pad-bottom: 30px; }
  .cat-banner__in { padding-inline: 16px; }
  .cat-banner__eyebrow { font-size: 15px; }
  .cat-banner__title {
    font-size: clamp(36px, 12vw, 58px);
    letter-spacing: 0.1em;
    text-indent: 0.1em;
  }
  .cat-banner__meta { left: 16px; right: 16px; bottom: 16px; font-size: 9px; letter-spacing: 0.16em; }
  .cat-banner__meta span:nth-child(2) { display: none; }

  .cat-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px 0;
    font-size: 10.5px;
  }

  .cat-group { padding-top: 40px; }
  .cat-group__head { grid-template-columns: 52px 1fr 44px; gap: 14px; }
  .cat-group__head .thumb { width: 52px; height: 52px; }
  .cat-group__head .idx,
  .cat-group__head .count { display: none; }
  .cat-group__head .cat-name { font-size: clamp(22px, 6.6vw, 30px); }
  .cat-toggle { width: 44px; height: 44px; }

  .svc { flex-wrap: wrap; row-gap: 4px; column-gap: 12px; padding: 15px 4px; }
  .svc__name { flex: 1 1 auto; max-width: none; font-size: 15px; }
  .svc__dots { display: none; }
  .svc__price { flex: none; margin-left: auto; font-size: 13px; }
  .svc__desc { order: 3; flex-basis: 100%; font-size: 14.5px; line-height: 1.45; }

  .cat-note__in { padding: 40px 0; gap: 24px; }
  .cat-note p { font-size: clamp(19px, 5.4vw, 24px); }
}

/* Компактные телефоны - до 380px */
@media (max-width: 380px) {
  :root { --gutter: 14px; }
  .hero__title { font-size: clamp(44px, 17vw, 62px); }
  .sec-head h2 { font-size: 27px; }
  .dirs .dir-row { grid-template-columns: 28px 1fr 20px; column-gap: 10px; }
  .dir-row__name { font-size: 20px; }
  .cat-group__head { grid-template-columns: 44px 1fr 44px; gap: 12px; }
  .cat-group__head .thumb { width: 44px; height: 44px; }
  .svc__name { font-size: 14px; }
  .mnav a { font-size: 30px; }
}

/* ------------------------------------------------------------
   ПОРТРЕТНАЯ РАМКА - кадр целиком, лицо не обрезается
   ------------------------------------------------------------
   Кадр каталога - 2.33:1. В вертикальной рамке заполнение по высоте
   показывает лишь центральную колонку (лоб и нос), поэтому здесь кадр
   вписывается ЦЕЛИКОМ по ширине лентой, а подпись уходит под него
   на фон страницы - без подложек и полей.
   ------------------------------------------------------------ */
@media (orientation: portrait) and (max-width: 1100px) {
  /* кадр идёт лентой во всю ширину - лицо видно целиком,
     подпись лежит на нём, у нижней кромки */
  .cat-banner {
    display: grid;
    /* базовый justify-content: center при grid ужал бы колонку по контенту */
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-content: stretch;
    height: auto;
    background: none;
    color: var(--ink);
    text-align: center;
  }
  .cat-banner::before { content: none; }

  .cat-banner__bg {
    grid-area: 1 / 1;
    position: relative;
    aspect-ratio: 1920 / 822;
    margin-top: var(--header-h);
  }
  .cat-banner__bg img,
  .cat-banner__bg video {
    object-position: center;
    animation: none;
    transform: none;
    filter: saturate(0.9) contrast(1.02);
  }
  /* мягкое затемнение только под подписью */
  .cat-banner__bg::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    background: linear-gradient(to top, rgba(16, 16, 16, 0.6), rgba(16, 16, 16, 0));
  }

  .cat-banner__in {
    grid-area: 1 / 1;
    align-self: end;
    z-index: 2;
    color: var(--paper);
    padding: 0 var(--gutter) clamp(8px, 2.4vw, 20px);
  }
  .cat-banner__eyebrow { font-size: clamp(11px, 2.8vw, 24px); opacity: 0.9; }
  .cat-banner__title {
    font-size: clamp(26px, 7.4vw, 76px);
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    margin-top: clamp(2px, 0.8vw, 10px);
  }

  .cat-banner__meta {
    grid-area: 2 / 1;
    position: static;
    padding: clamp(14px, 3.4vw, 22px) var(--gutter) 0;
    color: var(--muted);
  }

  /* шапка в каталоге размечена как «тёмная» под тёмный баннер -
     над светлым фоном возвращаем ей обычный цвет */
  .header.is-dark:not(.is-solid) { color: var(--ink); }
}

/* На телефоне лента в пропорции кадра слишком низкая - подпись садится
   прямо на глаза. Даём ей 2:1 (кадр подрезается по краям на ~7%,
   это кончики ресниц) и опускаем текст ниже линии взгляда. */
@media (orientation: portrait) and (max-width: 599px) {
  .cat-banner__bg { aspect-ratio: 2 / 1; }
  .cat-banner__in { padding-bottom: clamp(10px, 3.2vw, 18px); }
  .cat-banner__eyebrow { font-size: clamp(10px, 2.6vw, 13px); }
  .cat-banner__title { font-size: clamp(24px, 8vw, 34px); }
}

/* ------------------------------------------------------------
   ТЕЛЕФОН В АЛЬБОМНОЙ ОРИЕНТАЦИИ - низкий экран
   ------------------------------------------------------------ */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --header-h: 52px; }
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 28px);
    padding-bottom: 84px;
  }
  .hero__title { font-size: clamp(44px, 11vw, 76px); }
  .hero__under { margin-top: 20px; padding-top: 16px; }
  .hero__scroll { display: none; }
  .section { padding: 52px 0; }
  .mnav { justify-content: flex-start; padding-top: calc(var(--header-h) + 16px); }
  .mnav a { font-size: clamp(24px, 7vh, 34px); line-height: 1.25; }
  .mnav__foot { position: static; margin-top: 24px; }
  /* в альбоме высоты мало: кадр почти не кропается, глаза приходятся
     на середину - текст ужимаем, чтобы он не подпирал их снизу */
  .cat-banner { height: clamp(260px, 88svh, 420px); --banner-pad-bottom: 30px; }
  .cat-banner__eyebrow { font-size: clamp(12px, 3.4vh, 16px); }
  .cat-banner__title {
    font-size: clamp(30px, 10vh, 72px);
    letter-spacing: 0.16em;
    text-indent: 0.16em;
    margin-top: 4px;
  }
}

/* ------------------------------------------------------------
   ТАЧ-УСТРОЙСТВА - убираем залипающий hover, увеличиваем цели
   ------------------------------------------------------------ */
@media (pointer: coarse) {
  .dir-row:hover { background: none; color: inherit; padding-left: 4px; }
  .dir-row:hover .dir-row__desc { color: var(--muted); }
  .dir-row:hover .dir-row__arr { transform: none; color: inherit; }
  .dir-row:active { background: var(--paper-2); }

  .svc:hover { background: none; }
  .svc:hover .svc__price { color: inherit; }
  .svc:active { background: rgba(176, 141, 87, 0.09); }

  .btn:hover::after { transform: scaleX(0); }
  .btn--solid:hover { color: var(--paper); }
  .btn--ghost:hover { color: inherit; }
  .on-dark .btn--ghost:hover { color: inherit; }
  .btn:hover .arr { transform: none; }
  .btn:active::after { transform: scaleX(1); transform-origin: left; }
  .btn--solid:active { color: var(--ink); }
  .btn--ghost:active { color: var(--paper); }
  .on-dark .btn--ghost:active { color: var(--ink); }

  .cat-group__head:hover .cat-name { color: inherit; }
  .cat-group:not(.is-open) .cat-group__head:hover .cat-toggle { background: none; color: inherit; }
  .cat-group.is-open .cat-group__head:hover .thumb { transform: none; }
  .about__photo:hover img { transform: scale(1.03); }
  .ticker:hover .ticker__track { animation-play-state: running; }

  /* минимальная зона нажатия - 44px */
  .nav a { padding: 12px 0; }
  .colo-col a,
  .footer__cols a { display: inline-block; padding: 4px 0; }
  .sub-form button { padding: 0 12px; min-height: 44px; }
  .cat-group__head { padding: 6px 0; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ticker__track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .preview { display: none; }
}

/* ---------- корзина записи ---------- */

.svc__add {
  flex: none;
  width: 34px;
  height: 34px;
  align-self: center;
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  color: var(--champagne-deep);
  border: 1px solid var(--line);
  background: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.svc__add:hover { border-color: var(--champagne); }
.svc.is-added .svc__add { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (pointer: coarse) {
  .svc__add { width: 44px; height: 44px; }
}

.bookbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px max(16px, env(safe-area-inset-left)) 12px max(16px, env(safe-area-inset-left));
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: rgba(16, 16, 16, 0.96);
  color: var(--paper);
  transform: translateY(0);
  animation: barUp 0.4s var(--ease);
}
@keyframes barUp { from { transform: translateY(100%); } }
.bookbar__info { font-size: 12px; letter-spacing: 0.08em; }
.bookbar__info b { font-family: var(--font-display); font-weight: 400; font-size: 15px; }
.bookbar__time { color: rgba(244, 241, 234, 0.65); }
.bookbar__btn {
  flex: none;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  cursor: pointer;
}
.bookbar__btn:active { background: var(--champagne); }

/* ---------- модалка онлайн-записи ---------- */

.bookmodal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: end center;
  visibility: hidden;
  transition: visibility 0.4s ease;
}
.bookmodal.is-open { visibility: visible; }
.bookmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.6);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.bookmodal.is-open .bookmodal__backdrop { opacity: 1; }
.bookmodal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 92svh;
  overflow-y: auto;
  background: var(--paper);
  padding: 26px 22px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s ease;
}
.bookmodal.is-open .bookmodal__panel { transform: none; opacity: 1; }
.bookmodal__x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}
.bookmodal__x:hover { background: var(--ink); color: var(--paper); }
.bookmodal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  margin-bottom: 14px;
}
.bookmodal__label {
  margin: 16px 0 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.bookmodal__sub { color: var(--muted); font-size: 12px; }

/* выбранные услуги */
.bmcart { display: flex; flex-wrap: wrap; gap: 8px; }
.bmchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 11.5px;
  border: 1px solid var(--line);
  background: rgba(235, 230, 219, 0.5);
}
.bmchip i { font-style: normal; color: var(--muted); }
.bmchip b { cursor: pointer; font-weight: 400; color: var(--muted); padding: 0 2px; }
.bmchip b:hover { color: var(--warn); }
.bmcart__total { width: 100%; font-size: 11px; color: var(--champagne-deep); }

/* мастер */
.mchips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.mchips::-webkit-scrollbar { display: none; }
.mchip {
  flex: none;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
}
.mchip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* дни */
.daystrip {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.day {
  flex: none;
  min-width: 62px;
  padding: 8px 6px;
  text-align: center;
  font-family: var(--font-mono);
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}
.day b { display: block; font-weight: 500; font-size: 12.5px; }
.day span { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.day.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day.is-on span { color: rgba(244, 241, 234, 0.7); }
.day.is-off { opacity: 0.35; cursor: default; text-decoration: line-through; }

/* слоты времени */
.slotgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 7px;
}
.slot {
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
}
.slot:hover:not(:disabled) { border-color: var(--champagne); }
.slot.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.slot:disabled { opacity: 0.32; text-decoration: line-through; cursor: default; }

/* контакты */
.bmfields { margin-top: 16px; display: grid; gap: 9px; }
.bmfields input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: #fbfaf6;
  border: 1px solid var(--line);
  color: var(--ink);
}
.bmfields input:focus { outline: 1px solid var(--champagne); }

.bmerror {
  margin-top: 10px;
  font-size: 12px;
  color: #b3403a;
}
.bmsubmit {
  width: 100%;
  margin-top: 14px;
  padding: 15px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
}
.bmsubmit:disabled { opacity: 0.55; }
.bookmodal__note { margin-top: 10px; font-size: 10.5px; color: var(--muted); }

/* успех */
.bmok {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 22px;
  border: 1px solid var(--champagne);
  color: var(--champagne-deep);
}
.bmok__text { margin: 4px 0 18px; font-size: 13px; line-height: 1.7; color: rgba(16, 16, 16, 0.78); }

@media (max-width: 719px) {
  .bookbar__btn { padding: 12px 14px; }
}
