/* ALIMAN barber studio - стили. Мир: чёрный кирпич, тёплое дерево, оранжевое MAN, салатовая фотостена. */

@font-face {
  font-family: "Forum";
  src: url("../assets/fonts/forum-cyrillic.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Forum";
  src: url("../assets/fonts/forum-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("../assets/fonts/sofiasans-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans";
  src: url("../assets/fonts/sofiasans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --ink: #0B0A09;
  --brick: #1B1918;
  --brick-2: #231F1D;
  --line: #3A3430;
  --paper: #F1EEE8;
  --paper-dim: #C9C1B4;
  --wood: #A5896C;
  --beam: #725538;
  --orange: #E4620C;
  --orange-hover: #F07A2A;
  --lime: #A4AE37;
  --olive: #353423;
  --on-orange: #120F0E;

  --f-display: "Forum", "Times New Roman", Georgia, serif;
  --f-text: "Sofia Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 11vw, 150px);
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--ink);
  scrollbar-color: var(--beam) var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--brick);
  color: var(--paper);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection { background: var(--orange); color: var(--on-orange); }

[hidden] { display: none !important; }
img, video { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 1px;
}

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

.skip {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--orange);
  color: var(--on-orange);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-fill { fill: currentColor; stroke: none; }

/* ---------- Типографика ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.005em;
  width: fit-content;
  max-width: 100%;
  text-wrap: balance;
}
/* Волосяная линия под словом - как в логотипе ALIMAN */
.h2::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 0.34em;
  background: currentColor;
  opacity: 0.45;
  transform-origin: 0 50%;
  transition: transform 900ms var(--ease-out) 120ms;
}
.lead {
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  color: var(--paper-dim);
  max-width: 58ch;
}
.note { font-size: 0.9375rem; color: var(--wood); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 1.5em;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--f-text);
  font-weight: 650;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn .i { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(241, 238, 232, 0.42); }
.btn-dark { background: var(--brick); color: var(--paper); }
.btn-line { background: transparent; color: var(--brick); border-color: rgba(27, 25, 24, 0.55); }
.btn-sm { min-height: 44px; padding: 0 1.1em; font-size: 0.9875rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--orange-hover); }
  .btn-ghost:hover { border-color: var(--paper); background: rgba(241, 238, 232, 0.07); }
  .btn-dark:hover { background: var(--ink); }
  .btn-line:hover { border-color: var(--brick); background: rgba(27, 25, 24, 0.08); }
}

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(to bottom, rgba(11, 10, 9, 0.72), rgba(11, 10, 9, 0));
  transition: background-color 260ms ease, box-shadow 260ms ease;
}
.site-header[data-state="solid"] {
  background: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}
.header-in {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 58px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(241, 238, 232, 0.86);
  text-decoration: none;
  transition: color 180ms ease;
}
.nav a[aria-current="true"] { color: var(--orange); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--paper); } }
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(241, 238, 232, 0.3);
  border-radius: 2px;
  cursor: pointer;
}
.menu-toggle .i { width: 24px; height: 24px; }

.mnav {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms var(--ease-out), visibility 0s linear 220ms;
}
.mnav[data-open="true"] { opacity: 1; visibility: visible; transition: opacity 220ms var(--ease-out); }
.mnav ul { display: grid; }
.mnav a.mnav-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--f-display);
  font-size: 2rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mnav-foot { display: grid; gap: 12px; margin-top: auto; }
.mnav-foot .btn { width: 100%; }

@media (max-width: 960px) {
  .nav, .header-book { display: none; }
  .menu-toggle { display: inline-flex; }
  :root { --header-h: 64px; }
  .brand img { height: 48px; }
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform-origin: 32% 38%;
  animation: kenburns 16s var(--ease-out) both;
}
@keyframes kenburns { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 10, 9, 0.94) 0%, rgba(11, 10, 9, 0.62) 34%, rgba(11, 10, 9, 0.08) 68%, rgba(11, 10, 9, 0.2) 100%),
    linear-gradient(to right, rgba(11, 10, 9, 0.62) 0%, rgba(11, 10, 9, 0) 58%);
}
.hero-in { padding-block: calc(var(--header-h) + 80px) clamp(44px, 8vh, 92px); }
.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.75rem, 6.8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  max-width: 12.5ch;
}
.hero-title .line { display: block; }
.hero-title .line > span { display: inline-block; animation: rise 1000ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 160ms); }
.hero-title em { font-style: normal; color: var(--orange); }
@keyframes rise { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }
.hero-sub {
  margin-top: 1.4rem;
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  color: rgba(241, 238, 232, 0.9);
  animation: fade 900ms var(--ease-out) 520ms both;
}
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 12px; animation: fade 900ms var(--ease-out) 620ms both; }
.hero-facts {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.975rem;
  color: rgba(241, 238, 232, 0.85);
  animation: fade 900ms var(--ease-out) 720ms both;
}
.hero-facts > * { display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; }
.hero-facts a { text-decoration: none; }
.hero-facts .i-star { color: var(--orange); }
.hero-facts b { font-weight: 700; color: var(--paper); }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  /* Кадр стоит сверху и не лежит под заголовком: лицо барбера открыто, текст идёт по тёмному низу кадра */
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; inset: auto; height: min(128vw, 66svh); overflow: hidden; }
  .hero-media img { object-position: 46% 14%; transform-origin: 50% 20%; }
  .hero-shade {
    inset: 0 0 auto 0;
    height: min(128vw, 66svh);
    background:
      linear-gradient(to top, var(--ink) 0%, rgba(11, 10, 9, 0.9) 15%, rgba(11, 10, 9, 0.4) 36%, rgba(11, 10, 9, 0) 54%),
      linear-gradient(to bottom, rgba(11, 10, 9, 0.5) 0%, rgba(11, 10, 9, 0) 18%);
  }
  .hero-in { position: relative; margin-top: clamp(-104px, -20vw, -64px); padding-block: 0 28px; }
  .hero-title { text-shadow: 0 2px 24px rgba(11, 10, 9, 0.6); }
  .hero-sub { margin-top: 1.1rem; }
  .hero-cta { margin-top: 1.5rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-facts { margin-top: 1rem; }
}
@media (max-width: 700px) and (max-height: 700px) {
  /* низкие телефоны (360x640): кадр ниже, чтобы «Записаться онлайн» был в первом экране */
  .hero-media, .hero-shade { height: min(128vw, 55svh); }
}

/* ---------- Разделы ---------- */
.section { padding-block: var(--section-y); position: relative; }
.bg-brick { background: var(--brick); }
.bg-ink { background: var(--ink); }
.bg-olive { background: var(--olive); }
.bg-lime { background: var(--lime); color: var(--brick); }

/* ---------- Услуги и цены ---------- */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.services-head { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 22px; justify-items: start; }
.price-board { display: grid; gap: clamp(48px, 6vw, 72px); }
.price-group h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 2.4vw, 2rem);
  line-height: 1.1;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(241, 238, 232, 0.28);
}
.price-item {
  padding: 18px 0 16px;
  border-bottom: 1px solid var(--line);
}
.pi-main { display: flex; align-items: baseline; gap: 12px; }
.pi-name { font-family: var(--f-text); font-size: 1.1875rem; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.pi-leader { flex: 1 1 24px; min-width: 24px; border-bottom: 1px dotted rgba(165, 137, 108, 0.55); transform: translateY(-5px); }
.pi-price { font-size: 1.1875rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }
.pi-price small { font-size: 0.8em; font-weight: 500; color: var(--wood); margin-right: 0.2em; }
.pi-desc { margin-top: 6px; font-size: 0.975rem; line-height: 1.55; color: var(--paper-dim); max-width: 62ch; }
.pi-desc a { color: var(--paper); display: inline-block; padding-block: 12px; margin-block: -12px; }
.pi-meta { margin-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pi-time { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.9375rem; color: var(--wood); }
.pi-time .i { width: 1.05em; height: 1.05em; }
.pi-book {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  min-height: 44px;
  padding-inline: 6px;
  margin-right: -6px;
  font-weight: 650;
  font-size: 0.9875rem;
  color: var(--wood);
  text-decoration: none;
  transition: color 180ms ease;
}
.pi-book .i { transition: transform 200ms var(--ease-out); }
.pi-book:focus-visible { color: var(--orange); }
@media (hover: hover) and (pointer: fine) {
  .pi-book:hover .i { transform: translateX(4px); }
  .pi-book:hover { color: var(--orange); }
}
.services-foot { margin-top: 28px; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-head { position: static; }
}
@media (max-width: 460px) {
  .pi-name, .pi-price { font-size: 1.0625rem; }
}

/* ---------- Королевское бритьё ---------- */
.ritual-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}
.ritual-photo { position: relative; isolation: isolate; }
.ritual-photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.ritual-photo::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--beam);
  z-index: -1;
}
.ritual-body { display: grid; gap: 26px; justify-items: start; }
.steps { width: 100%; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--paper-dim);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  font-family: var(--f-display);
  font-size: 1.625rem;
  line-height: 1;
  color: var(--orange);
}
.ritual-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.ritual-price { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ritual-price span { color: var(--wood); font-weight: 500; font-size: 1rem; margin-left: 0.5em; }
@media (max-width: 900px) {
  .ritual-grid { grid-template-columns: 1fr; }
  .ritual-photo { order: 2; max-width: 460px; margin-right: 14px; }
  .ritual-photo img { aspect-ratio: 4 / 5; max-height: 70svh; object-position: 50% 30%; }
}

/* ---------- Барбер ---------- */
.barber-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
}
.barber-photo { position: relative; isolation: isolate; }
.barber-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
.barber-photo::after {
  content: "";
  position: absolute;
  inset: 14px 14px -14px -14px;
  border: 1px solid rgba(164, 174, 55, 0.45);
  z-index: -1;
}
@media (min-width: 861px) { .barber-photo { margin-left: calc(-1 * var(--gutter) + 14px); } }
.barber-body { display: grid; gap: 22px; justify-items: start; }
.barber-name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(4.5rem, 12vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
}
.barber-role { font-size: 0.9375rem; font-weight: 650; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-dim); }
.barber-score { display: inline-grid; gap: 6px; min-height: 44px; color: var(--paper); text-decoration: none; }
.bs-num { display: flex; align-items: center; gap: 14px; font-family: var(--f-display); font-size: clamp(3rem, 5.4vw, 4.5rem); line-height: 0.9; }
.bs-num .i { width: 0.46em; height: 0.46em; color: var(--orange); }
.bs-cnt { font-size: 0.9875rem; color: var(--paper-dim); }
@media (hover: hover) and (pointer: fine) { .barber-score:hover .bs-cnt { color: var(--paper); } }
.barber-quote {
  font-family: var(--f-display);
  font-size: clamp(1.625rem, 2.7vw, 2.25rem);
  line-height: 1.2;
  max-width: 22ch;
}
.barber-quote cite { display: block; margin-top: 10px; font-family: var(--f-text); font-style: normal; font-size: 0.9375rem; color: var(--paper-dim); }
.barber-text { color: var(--paper-dim); max-width: 46ch; }
.barber-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .barber-grid { grid-template-columns: 1fr; }
  .barber-photo { max-width: 520px; margin-left: 14px; }
}

/* ---------- Работы: салатовая фотостена ---------- */
.works-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.works-head p { max-width: 46ch; color: var(--brick); font-size: 1.0625rem; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(6px, 1vw, 12px);
}
.g-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #8E9639;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.g-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .g-item:hover img { transform: scale(1.035); } }
.g-big { grid-column: span 2; grid-row: span 2; }
.works-grid .g-video { grid-row: span 2; aspect-ratio: auto; cursor: default; background: var(--brick); }
.g-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-video figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 12px 10px;
  font-size: 0.8125rem; line-height: 1.35;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(11, 10, 9, 0.8);
  background: linear-gradient(to top, rgba(11, 10, 9, 0.92) 0%, rgba(11, 10, 9, 0.75) 45%, rgba(11, 10, 9, 0) 100%);
}
.video-toggle {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 2px;
  background: rgba(11, 10, 9, 0.6);
  color: var(--paper);
  cursor: pointer;
}
.bg-lime :focus-visible { outline-color: var(--brick); }
.works-note { margin-top: 18px; font-size: 0.875rem; color: rgba(27, 25, 24, 0.8); }
@media (max-width: 760px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- О студии ---------- */
.studio-top {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.studio-text { display: grid; gap: 22px; }
.studio-text .lead { color: var(--paper); font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; }
.studio-text p + p { color: var(--paper-dim); }
.slogan {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  color: var(--paper);
}
.slogan span { color: var(--orange); }
.amenities { display: grid; gap: 0; border-top: 1px solid var(--line); }
.amenities li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper-dim);
  font-size: 1rem;
}
.amenities .i { width: 1.5rem; height: 1.5rem; color: var(--wood); margin-top: 1px; }
.amenities b { display: block; color: var(--paper); font-weight: 600; }
.studio-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(8px, 1vw, 14px);
}
.studio-gallery .g-item { aspect-ratio: 3 / 2; background: var(--brick-2); }
.studio-gallery .g-tall { grid-row: span 2; aspect-ratio: auto; }
.studio-gallery .g-tall img { object-position: 50% 22%; }
.studio-note { margin-top: 10px; font-size: 0.875rem; color: var(--wood); }
@media (max-width: 900px) {
  .studio-top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .studio-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Отзывы ---------- */
.reviews-top { display: grid; gap: clamp(36px, 5vw, 56px); margin-bottom: clamp(44px, 6vw, 72px); }
.ratings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rating {
  display: grid;
  gap: 4px;
  padding: 22px clamp(12px, 2.4vw, 32px);
  text-decoration: none;
  border-left: 1px solid var(--line);
}
.rating:first-child { border-left: 0; padding-left: 0; }
.rating-num { font-family: var(--f-display); font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1; display: flex; align-items: center; gap: 12px; }
.rating-num .i { width: 0.5em; height: 0.5em; color: var(--orange); }
.rating-src { font-weight: 650; }
.rating-cnt { font-size: 0.9375rem; color: var(--wood); }
@media (hover: hover) and (pointer: fine) { .rating:hover .rating-src { color: var(--orange); } }
.pullquote {
  font-family: var(--f-display);
  font-size: clamp(2.125rem, 5.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.pullquote cite { display: block; margin-top: 16px; font-family: var(--f-text); font-style: normal; font-size: 1rem; color: var(--wood); letter-spacing: 0; }
.review-list { columns: 3 300px; column-gap: clamp(28px, 4vw, 56px); }
.review { break-inside: avoid; padding: 22px 0 26px; border-top: 1px solid var(--line); }
.stars { display: flex; gap: 3px; color: var(--orange); margin-bottom: 12px; }
.stars .i { width: 15px; height: 15px; }
.review-text { font-size: 1.0625rem; line-height: 1.6; }
.review-meta { margin-top: 14px; font-size: 0.9375rem; color: var(--wood); }
.review-meta b { color: var(--paper); font-weight: 600; }
.review-meta a { display: inline-block; padding-block: 13px; margin-block: -13px; }
.review-reply { margin-top: 14px; padding: 12px 14px; background: var(--brick-2); font-size: 0.9375rem; color: var(--paper-dim); }
.review-reply b { display: block; font-weight: 600; color: var(--paper); margin-bottom: 2px; }
.reviews-more { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 0.9875rem; }
.reviews-more a { display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; padding-inline: 4px; margin-inline: -4px; color: var(--paper-dim); }
.reviews-toggle { display: none; }
@media (max-width: 760px) {
  .review-list[data-collapsed="true"] > .review:nth-child(n+5) { display: none; }
  .review-list[data-collapsed="true"] + .reviews-toggle { display: inline-flex; width: 100%; margin-top: 12px; }
}
@media (max-width: 640px) {
  .ratings { grid-template-columns: 1fr; }
  .rating { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; }
  .rating:first-child { border-top: 0; }
  .rating-num { grid-row: span 2; }
}

/* ---------- Контакты ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.contacts-info { display: grid; gap: 30px; }
.cinfo { display: grid; gap: 0; border-top: 1px solid var(--line); }
.cinfo > li { display: grid; grid-template-columns: 2rem 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cinfo .i { width: 1.5rem; height: 1.5rem; color: var(--wood); margin-top: 2px; }
.cinfo .ct { display: block; font-size: 0.875rem; color: var(--wood); }
.cinfo .cd { display: block; font-size: 1.125rem; line-height: 1.45; }
.cinfo .cd small { display: block; font-size: 0.9375rem; color: var(--paper-dim); margin-top: 2px; }
.cinfo a { text-decoration-color: rgba(241, 238, 232, 0.35); }
.cinfo .cd > a { display: inline-flex; align-items: center; min-height: 44px; }
.cinfo .cd small a { display: inline-block; padding-block: 12px; margin-block: -12px; }
.phone-big { font-weight: 650; font-size: 1.3125rem; text-decoration: none; }
.messengers { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 2px;
  font-size: 0.9875rem; font-weight: 600; text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--wood); } }
.contacts-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.map-wrap { display: grid; gap: clamp(8px, 1vw, 14px); }
.map {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--brick-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-ph {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  padding: 24px; text-align: center;
  background: var(--brick-2);
}
.map-ph .i { width: 2.25rem; height: 2.25rem; color: var(--orange); }
.map-ph p { color: var(--paper-dim); font-size: 0.9875rem; }
.map-photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1vw, 14px); }
.map-photos .g-item { aspect-ratio: 3 / 4; background: var(--brick-2); }
.map-caption { font-size: 0.875rem; color: var(--wood); }
@media (max-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr; }
}

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); padding-block: 64px 36px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand img { height: 64px; width: auto; }
.footer-brand p { margin-top: 14px; color: var(--paper-dim); max-width: 28ch; font-size: 0.9875rem; }
.footer-col h2 { font-family: var(--f-text); font-size: 0.875rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wood); margin-bottom: 12px; }
.footer-col li { font-size: 0.9875rem; color: var(--paper-dim); }
.footer-col a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; color: var(--paper-dim); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover { color: var(--paper); } }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.875rem; color: var(--wood); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Нижняя панель на телефоне ---------- */
/* Ориентир для шапки: она становится непрозрачной раньше, чем текст героя доезжает до логотипа */
.hero-sentinel { position: absolute; top: calc(var(--header-h) + 24px); left: 0; width: 1px; height: 1px; pointer-events: none; }

.mbar { display: none; }
@media (max-width: 960px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .mbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 10, 9, 0.97);
    border-top: 1px solid var(--line);
    transform: translateY(0);
    transition: transform 260ms var(--ease-out);
  }
  .mbar[data-hidden="true"] { transform: translateY(110%); }
  .mbar .btn { min-height: 52px; }
  .mbar-call {
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(241, 238, 232, 0.4); border-radius: 2px;
    color: var(--paper);
  }
  .mbar-call:active { transform: scale(0.97); }
  .mbar-call .i { width: 22px; height: 22px; }
}

/* ---------- Лайтбокс ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(8, 7, 6, 0.96);
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
}
.lb[data-open="true"] { opacity: 1; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 10px; color: var(--paper-dim); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 7vw, 96px); touch-action: pan-y; }
.lb-stage img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  max-height: calc(100svh - 170px);
  width: auto; height: auto;
  object-fit: contain;
  transform: scale(0.97);
  transition: transform 260ms var(--ease-out), opacity 200ms ease;
}
.lb[data-open="true"] .lb-stage img { transform: none; }
.lb-caption { padding: 12px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; color: var(--paper-dim); font-size: 0.9375rem; min-height: 3.2em; }
.lb-btn {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(241, 238, 232, 0.08);
  border: 1px solid rgba(241, 238, 232, 0.18);
  border-radius: 2px;
  color: var(--paper);
  cursor: pointer;
  transition: background-color 180ms ease, transform 140ms var(--ease-out);
}
.lb-btn:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { background: rgba(241, 238, 232, 0.16); } }
.lb-btn .i { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -24px; }
.lb-prev { left: clamp(8px, 2vw, 28px); }
.lb-next { right: clamp(8px, 2vw, 28px); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: -58px; margin: 0; } .lb-caption { padding-inline: 72px; } }
body[data-lock="true"] { overflow: hidden; }
body[data-lock="true"] .mbar { transform: translateY(110%); visibility: hidden; }

/* ---------- Появление при прокрутке ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .h2[data-reveal]::after { transform: scaleX(0); }
.js .h2[data-reveal].is-in::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .hero-media img, .hero-title .line > span, .hero-sub, .hero-cta, .hero-facts { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .js .h2[data-reveal]::after { transform: none; }
  .g-item img, .lb-stage img, .pi-book .i { transition: none; }
}
