/* ══════════════════════════════════════════════════════════════
   Салон красоты «Энви» — Самара
   Латунь #B08D57 взята из их золотого логотипа, графит — из
   надписи под знаком. Вёрстка редакционная: линии вместо карточек,
   фиксированная колонка слева, сетка с вынесенными на поля подписями.
   ══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Unbounded';
  src: url('assets/fonts/unbounded-cyrillic.woff2') format('woff2');
  font-weight: 200 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: 'Unbounded';
  src: url('assets/fonts/unbounded-latin.woff2') format('woff2');
  font-weight: 200 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Golos';
  src: url('assets/fonts/golos-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: 'Golos';
  src: url('assets/fonts/golos-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+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);

  --paper: #F4F1EC;      /* тёплая бумага */
  --paper-2: #EAE4DA;    /* полосы и заливки */
  --ink: #1A1A1C;        /* графит из логотипа */
  --ink-2: #5C574F;
  --ink-3: #8E877C;
  --brass: #B08D57;      /* латунь из знака */
  --brass-soft: #D9C29B;
  --white: #FFFFFF;

  --line: rgba(26, 26, 28, 0.14);
  --line-soft: rgba(26, 26, 28, 0.08);
  --line-dark: rgba(244, 241, 236, 0.16);

  --top-h: 78px;
  --pad: clamp(22px, 4vw, 64px);
  --sec: clamp(72px, 9vw, 150px);
  --bar-h: 74px;

  --ease: cubic-bezier(0.22, 0, 0, 1);
  --slow: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding-top: var(--top-h);
  background: var(--paper);
  color: var(--ink);
  font-family: 'Golos', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; text-wrap: pretty; }

h1, h2 {
  margin: 0;
  font-family: 'Unbounded', 'Golos', sans-serif;
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a { color: inherit; }
.fig { font-variant-numeric: tabular-nums; }

[id] { scroll-margin-top: calc(var(--top-h) + var(--safe-t) + 20px); }
.section[id] { scroll-margin-top: calc(var(--top-h) + var(--safe-t) + 24px - var(--sec)); }
.duo[id] { scroll-margin-top: calc(var(--top-h) + var(--safe-t) + 24px - clamp(56px, 7vw, 110px)); }
.where[id] { scroll-margin-top: calc(var(--top-h) + var(--safe-t) + 24px - clamp(48px, 6vw, 96px)); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 18px; background: var(--ink); color: var(--paper);
}
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ─────────── надпись-метка ─────────── */

.tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--brass);
  margin-bottom: 20px;
}
.tag.light { color: var(--brass-soft); }

/* ─────────── кнопки ─────────── */

.act {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), scale 160ms var(--ease);
}
.act:hover { background: var(--brass); }
.act:active { scale: 0.97; }
.act-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.act-line:hover { background: var(--ink); color: var(--paper); box-shadow: none; }

/* ═══════════ ЖИВОЙ ФОН ═══════════ */

/* три латунных пятна, которые медленно дрейфуют: страница дышит, но текст не спорит с фоном */
.aura { position: fixed; inset: -40vh -25vw; z-index: 0; pointer-events: none; overflow: hidden; }
.aura::before {
  content: ''; position: absolute; inset: -10%;
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(176, 141, 87, 0.16) 40deg, transparent 110deg,
    rgba(217, 194, 155, 0.22) 190deg, transparent 260deg,
    rgba(176, 141, 87, 0.12) 320deg, transparent 360deg);
  filter: blur(60px);
  animation: sheen 28s linear infinite;
}
@keyframes sheen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .aura::before { animation: none; } }
.aura span {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(80px); opacity: 0.62;
  will-change: transform;
}
.aura span:nth-child(1) {
  width: 46vw; height: 46vw; left: -6vw; top: 4vh;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.42), transparent 68%);
  animation: drift-a 19s ease-in-out infinite alternate;
}
.aura span:nth-child(2) {
  width: 38vw; height: 38vw; right: -4vw; top: 26vh;
  background: radial-gradient(circle, rgba(217, 194, 155, 0.5), transparent 68%);
  animation: drift-b 24s ease-in-out infinite alternate;
}
.aura span:nth-child(3) {
  width: 52vw; height: 52vw; left: 24vw; bottom: -12vh;
  background: radial-gradient(circle, rgba(154, 135, 124, 0.3), transparent 70%);
  animation: drift-c 29s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(22vw, 26vh, 0) scale(1.28); } }
@keyframes drift-b { to { transform: translate3d(-26vw, 20vh, 0) scale(0.78); } }
@keyframes drift-c { to { transform: translate3d(18vw, -24vh, 0) scale(1.24); } }

/* лепестки из знака салона: мягкие, размытые, всплывают и качаются */
.aura b {
  position: absolute; display: block;
  background: radial-gradient(62% 58% at 50% 32%, rgba(176, 141, 87, 0.34), rgba(176, 141, 87, 0.04) 72%, transparent);
  border-radius: 50% 50% 16% 16% / 64% 64% 16% 16%;
  filter: blur(12px);
  will-change: transform;
}
.aura b:nth-of-type(1) { width: 300px; height: 420px; left: 12%; top: 18%; animation: sail-a 21s ease-in-out infinite alternate; }
.aura b:nth-of-type(2) { width: 220px; height: 300px; right: 16%; top: 52%; animation: sail-b 26s ease-in-out infinite alternate; }
.aura b:nth-of-type(3) { width: 460px; height: 620px; left: 58%; top: 8%; opacity: 0.55; animation: sail-c 33s ease-in-out infinite alternate; }
.aura b:nth-of-type(4) { width: 180px; height: 250px; left: 30%; bottom: 12%; animation: sail-b 17s ease-in-out infinite alternate reverse; }
@keyframes sail-a { to { transform: translate3d(24vw, -22vh, 0) rotate(38deg) scale(1.2); } }
@keyframes sail-b { to { transform: translate3d(-28vw, 24vh, 0) rotate(-44deg) scale(0.82); } }
@keyframes sail-c { to { transform: translate3d(-20vw, 26vh, 0) rotate(26deg) scale(1.22); } }
@media (prefers-reduced-motion: reduce) { .aura b { animation: none; } }
@media (max-width: 760px) { .aura b:nth-of-type(1), .aura b:nth-of-type(3), .aura b:nth-of-type(4) { display: none; } }
@media (prefers-reduced-motion: reduce) { .aura span { animation: none; } }

/* зерно поверх фона: без него большие заливки выглядят пластиковыми */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
}

main, .top, .sheet, .foot, .bar { position: relative; z-index: 1; }

/* ═══════════ ШАПКА ═══════════ */

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: var(--top-h);
  padding: var(--safe-t) calc(var(--pad) + var(--safe-r)) 0 calc(var(--pad) + var(--safe-l));
  background: rgba(244, 241, 236, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 -1px 0 var(--line-soft);
  transition: height 320ms var(--ease), background-color 320ms var(--ease),
              box-shadow 320ms var(--ease), translate 360ms var(--ease);
}
/* уехав от первого экрана, шапка сжимается и отрывается от края */
.top.tight {
  height: 60px;
  left: 50%; right: auto; translate: -50% 12px;
  width: min(calc(100% - var(--pad) * 2), 720px);
  padding-inline: 22px;
  border-radius: 999px;
  background: rgba(244, 241, 236, 0.9);
  box-shadow: 0 10px 34px rgba(26, 26, 28, 0.12), inset 0 0 0 1px var(--line-soft);
}
.top.away { translate: -50% -120%; }

.mark { display: flex; align-items: center; gap: 11px; min-height: 44px; text-decoration: none; flex-shrink: 0; }
.mark img { width: 36px; height: 36px; transition: width 320ms var(--ease), height 320ms var(--ease); }
.top.tight .mark img { width: 28px; height: 28px; }
.mark span { font-family: 'Unbounded', sans-serif; font-size: 17px; letter-spacing: 0.26em; }

.top-meta { margin-inline: auto; font-size: 13px; letter-spacing: 0.06em; color: var(--ink-3); }
.top.tight .top-meta { opacity: 0; visibility: hidden; }

.top-act { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.act-sm { min-height: 42px; padding: 0 20px; font-size: 12.5px; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 16px 0 14px;
  background: transparent; border: 0; box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transition: box-shadow 200ms var(--ease), background-color 200ms var(--ease);
}
.menu-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.menu-lines { display: grid; gap: 4px; }
.menu-lines i { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform 260ms var(--ease); }
.menu-btn[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* ═══════════ ПОЛНОЭКРАННОЕ МЕНЮ ═══════════ */

.sheet {
  position: fixed; inset: 0; z-index: 49;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(30px, 5vw, 80px);
  padding: calc(var(--top-h) + var(--safe-t) + 20px) calc(var(--pad) + var(--safe-r)) calc(40px + var(--safe-b)) calc(var(--pad) + var(--safe-l));
  background: var(--paper);
  opacity: 0; visibility: hidden;
  transition: opacity 280ms var(--ease), visibility 0s 280ms;
}
body.menu .sheet { opacity: 1; visibility: visible; transition: opacity 280ms var(--ease), visibility 0s; }
body.menu { overflow: hidden; }

.sheet-nav { display: grid; align-content: center; }
.sheet-nav a {
  display: flex; align-items: baseline; gap: 20px;
  padding: 14px 0; text-decoration: none;
  font-family: 'Unbounded', sans-serif; font-weight: 300;
  font-size: clamp(28px, 4.4vw, 58px); letter-spacing: -0.02em;
  box-shadow: inset 0 -1px 0 var(--line-soft);
  opacity: 0; translate: 0 18px;
  transition: color 220ms var(--ease);
}
.sheet-nav a i {
  font-style: normal; font-family: 'Golos', sans-serif; font-weight: 400;
  font-size: 12px; letter-spacing: 0.1em; color: var(--brass);
}
.sheet-nav a:hover { color: var(--brass); }
body.menu .sheet-nav a, body.menu .sheet-foot {
  opacity: 1; translate: 0 0;
  transition: opacity 420ms var(--ease), translate 560ms var(--slow), color 220ms var(--ease);
  transition-delay: calc(var(--i, 1) * 45ms + 60ms);
}

.sheet-side { display: grid; align-content: center; gap: 26px; justify-items: start; }
.sheet-photo { margin: 0; overflow: hidden; }
.sheet-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: opacity 300ms var(--ease); }
.sheet-photo.swap img { opacity: 0; }
.sheet-foot { display: grid; gap: 10px; justify-items: start; opacity: 0; translate: 0 18px; }
.sheet-phone { display: inline-block; padding: 6px 0; font-size: 22px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.sheet-foot p { font-size: 14px; color: var(--ink-3); }
.sheet-foot .act { margin-top: 8px; }
.sheet-vk { display: inline-block; margin-top: 4px; padding: 10px 0; font-size: 14px; color: var(--ink-3); text-decoration: none; }
.sheet-vk:hover { color: var(--brass); }

/* арка — форма, на которой держится вся графика салона */
.arch { border-radius: 999px 999px 6px 6px / 32% 32% 6px 6px; overflow: hidden; }

.bar { display: none; }

/* ═══════════ ОТКРЫТИЕ ═══════════ */

/* первый экран занимает высоту окна целиком: следующая секция не должна
   выглядывать снизу и спорить с заголовком */
.open {
  position: relative; overflow-x: clip;
  min-height: calc(100dvh - var(--top-h) - var(--safe-t));
  display: flex; align-items: center;
  padding-block: clamp(44px, 6vw, 96px);
}
.open > .open-grid { width: 100%; }
/* контур арки — та же форма, что в знаке салона: обрамляет колонку цифр */
.open-facts { position: relative; }
.open-facts::before {
  content: ''; position: absolute; z-index: -1;
  inset: -54px -34px -18px;
  border: 1px solid rgba(176, 141, 87, 0.42);
  border-radius: 999px 999px 6px 6px / 30% 30% 6px 6px;
  animation: breathe 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes breathe { to { transform: scale(1.015) translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .open-facts::before { animation: none; } }
@media (max-width: 980px) { .open-facts::before { display: none; } }

.open-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 268px;
  gap: clamp(30px, 5vw, 76px);
  padding-inline: var(--pad) calc(var(--pad) + var(--safe-r));
  align-items: start;
}

.open h1 {
  font-size: min(clamp(56px, 11.5vw, 168px), 17vh);
  line-height: 0.92;
  margin-bottom: clamp(26px, 3vw, 44px);
}
.open h1 .l { display: block; overflow: hidden; }
.open h1 .l::after { content: attr(data-text); }
.open h1 .accent { color: var(--brass); font-weight: 200; font-style: italic; }

.open-sub {
  max-width: 46ch; font-size: clamp(16.5px, 1.5vw, 19px);
  color: var(--ink-2); margin-bottom: 34px;
}
.open-act { display: flex; flex-wrap: wrap; gap: 10px; }

.open-facts { display: grid; gap: 0; margin: 0; align-self: end; }
.open-facts > div {
  padding: 16px 0; box-shadow: inset 0 -1px 0 var(--line-soft);
}
.open-facts > div:first-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line-soft); }
.open-facts dt {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
}
.open-facts dd { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.open-facts dd b {
  font-family: 'Unbounded', sans-serif; font-weight: 300; font-size: 30px;
  letter-spacing: -0.02em;
}
.open-facts dd span { font-size: 13.5px; color: var(--ink-3); }

/* ═══════════ ОБЩИЕ СЕКЦИИ ═══════════ */

.section { padding: var(--sec) var(--pad) 0; }
.section:last-of-type { padding-bottom: var(--sec); }

.head { margin-bottom: clamp(34px, 4vw, 60px); }
.head h2 { font-size: clamp(32px, 4.4vw, 64px); }
.head-row { display: flex; flex-wrap: wrap; gap: 24px 60px; align-items: flex-end; justify-content: space-between; }
.head-note { max-width: 38ch; font-size: 15px; color: var(--ink-3); }

/* ═══════════ УСЛУГИ: ОГЛАВЛЕНИЕ ═══════════ */

.index-wrap { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 26vw, 380px); gap: clamp(30px, 4vw, 64px); align-items: start; }

.index { list-style: none; margin: 0; padding: 0; box-shadow: inset 0 1px 0 var(--line); }
.index li { box-shadow: inset 0 -1px 0 var(--line); }

.index button {
  display: grid; grid-template-columns: 46px minmax(min-content, 0.9fr) minmax(0, 1.1fr) auto;
  align-items: baseline; gap: 26px;
  width: 100%; padding: 22px 4px; border: 0; background: transparent;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  transition: padding-left 220ms var(--ease), color 200ms var(--ease);
}
.index button:hover { padding-left: 14px; }
.index .idx {
  font-style: normal; font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.index .ttl {
  font-family: 'Unbounded', sans-serif; font-weight: 300;
  font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.015em;
}
.index .hint { font-size: 14.5px; color: var(--ink-3); }
.index .from { font-size: 14.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.index li.open .ttl { color: var(--brass); }

.drop { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 380ms var(--ease); }
.index li.open .drop { grid-template-rows: 1fr; }
.drop > div { overflow: hidden; }
.drop p {
  display: flex; align-items: baseline; gap: 16px;
  padding: 11px 4px 11px 64px; font-size: 15.5px; color: var(--ink-2);
  box-shadow: inset 0 1px 0 var(--line-soft);
}
.drop p span { flex: 1; }
.drop p b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.drop p:first-child { box-shadow: none; }

.index-preview { position: sticky; top: 34px; }
.index-preview img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: opacity 320ms var(--ease);
}
.index-preview.swap img { opacity: 0; }

/* ═══════════ ЧЕТЫРЕ РУКИ ═══════════ */

.duo {
  margin-top: var(--sec);
  padding: clamp(56px, 7vw, 110px) var(--pad);
  background: var(--ink); color: var(--paper);
}
.duo-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(34px, 5vw, 90px); align-items: start; }
.duo h2 { font-size: clamp(30px, 4vw, 56px); margin-bottom: 24px; }
.duo-copy > p { color: rgba(244, 241, 236, 0.72); max-width: 48ch; }

.duo blockquote {
  margin: 34px 0 0; padding-top: 26px;
  box-shadow: inset 0 1px 0 var(--line-dark);
  font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45;
}
.duo cite { display: block; margin-top: 14px; font-style: normal; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-soft); }

.duo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line-dark); }
.duo-steps li {
  display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 18px; align-items: baseline;
  padding: 22px 4px; background: var(--ink);
}
.duo-steps b {
  font-family: 'Unbounded', sans-serif; font-weight: 300; font-size: 26px;
  color: var(--brass);
}
.duo-steps span { color: rgba(244, 241, 236, 0.82); font-size: 16px; }

/* ═══════════ МОЗАИКА РАБОТ ═══════════ */

.mosaic {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 250px);
  grid-auto-flow: row dense;   /* иначе вытянутые плитки оставляют пустые клетки */
  gap: 8px;
}
.mosaic figure { margin: 0; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: scale 900ms var(--slow); }
.mosaic figure:hover img { scale: 1.06; }
.mosaic .m-tall { grid-row: span 2; }
.mosaic .m-wide { grid-column: span 2; }

/* ═══════════ МАСТЕРА ═══════════ */

.crew { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.crew article { display: grid; gap: 10px; align-content: start; padding: 24px 0 0; box-shadow: inset 0 1px 0 var(--line); }
.crew h3 { margin: 0; font-family: 'Unbounded', sans-serif; font-weight: 300; font-size: 22px; letter-spacing: -0.01em; }
.crew .role { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }
.crew .score { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.crew .score b { font-family: 'Unbounded', sans-serif; font-weight: 300; font-size: 27px; font-variant-numeric: tabular-nums; }
.crew .score span { font-size: 13.5px; color: var(--ink-3); }
.crew-note { margin-top: 22px; font-size: 14.5px; color: var(--ink-3); max-width: 60ch; }

@media (max-width: 1180px) { .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .crew { grid-template-columns: 1fr; } .crew article { padding-right: 0; } }

/* ═══════════ ОТЗЫВЫ ═══════════ */

.voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); align-items: start; }
.voices blockquote { margin: 0; padding-top: 22px; box-shadow: inset 0 1px 0 var(--line); }
.voices p { font-size: 16.5px; color: var(--ink-2); }
.voices blockquote::before {
  content: '”'; display: block; margin-bottom: 6px;
  font-family: 'Unbounded', sans-serif; font-size: 34px; line-height: 0.6; color: var(--brass);
}
.voices cite {
  display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px;
  font-style: normal; font-size: 13px; font-weight: 600;
}
.voices cite i { font-style: normal; font-weight: 400; color: var(--ink-3); }

/* ═══════════ ПРАЙС ═══════════ */

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.tabs button {
  padding: 11px 18px; border: 0; background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  font: inherit; font-size: 14.5px; color: var(--ink-2); cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.tabs button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }

.tab-panels table { width: 100%; border-collapse: collapse; }
.tab-panels td { padding: 15px 4px; font-size: 16px; box-shadow: inset 0 -1px 0 var(--line-soft); }
.tab-panels tr:first-child td { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line-soft); }
.tab-panels td:last-child { text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.tab-panels tr:hover td { background: var(--paper-2); }

.promo {
  margin-top: 28px; padding: 22px 24px;
  background: var(--paper-2); font-size: 15.5px; color: var(--ink-2);
}
.promo b { color: var(--ink); }

/* ═══════════ КОНТАКТЫ ═══════════ */

.where { margin-top: var(--sec); }
.where-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: stretch; }
.where-copy { padding: clamp(48px, 6vw, 96px) clamp(30px, 4vw, 70px) clamp(48px, 6vw, 96px) var(--pad); }
.where h2 { font-size: clamp(28px, 3.4vw, 46px); margin-bottom: 22px; }
.where-note { max-width: 40ch; color: var(--ink-2); margin-bottom: 32px; }

.where-facts { display: grid; gap: 0; margin: 0 0 32px; }
.where-facts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 13px 0; box-shadow: inset 0 -1px 0 var(--line-soft); }
.where-facts dt { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.where-facts dd { margin: 0; font-size: 16px; }
.where-facts a { display: inline-block; padding: 8px 0; margin: -8px 0; text-decoration: none; }
.where-facts a:hover { color: var(--brass); }
.where-act { display: flex; flex-wrap: wrap; gap: 10px; }

.where-map { min-height: 520px; background: var(--paper-2); }
.where-map iframe { display: block; border: 0; width: 100%; height: 100%; min-height: 520px; filter: grayscale(0.25); }

/* ═══════════ ПОДВАЛ ═══════════ */

.foot { padding: clamp(44px, 5vw, 72px) var(--pad) 26px; box-shadow: inset 0 1px 0 var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.foot-brand {
  display: inline-flex; align-items: center; gap: 11px; margin-bottom: 14px;
  font-family: 'Unbounded', sans-serif; font-size: 17px; letter-spacing: 0.24em;
}
.foot-brand img { width: 30px; height: 30px; }
.foot-grid p { font-size: 14.5px; color: var(--ink-3); max-width: 34ch; }
.foot nav { display: grid; gap: 0; align-content: start; }
.foot nav a { display: inline-block; padding: 9px 0; font-size: 15px; text-decoration: none; color: var(--ink-2); }
.foot nav a:hover { color: var(--brass); }
.foot-phone { display: inline-block; padding: 8px 0; margin: -8px 0 6px; font-size: 17px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.foot-legal { margin-top: 40px; padding-top: 20px; box-shadow: inset 0 1px 0 var(--line-soft); font-size: 12.5px; color: var(--ink-3); }

/* ═══════════ ПОЯВЛЕНИЕ ═══════════ */

.rise { opacity: 0; translate: 0 20px; }

/* фотографии открываются шторкой, а не просто проявляются */
.veil img { clip-path: inset(0 0 100% 0); transition: clip-path 1000ms var(--slow), scale 900ms var(--slow); scale: 1.06; }
.veil.in img { clip-path: inset(0 0 0 0); scale: 1; }
@media (prefers-reduced-motion: reduce) {
  .veil img { clip-path: none; scale: 1; transition: none; }
}
.rise.in {
  opacity: 1; translate: 0 0;
  transition: opacity 700ms var(--ease), translate 700ms var(--slow);
  transition-delay: calc(var(--d, 0) * 70ms);
}
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; translate: none; }
  .rise.in { transition: none; }
}

/* ═══════════ АДАПТИВ ═══════════ */

/* ноутбуки с невысоким экраном */
@media (min-width: 981px) and (max-height: 860px) {
  .open { padding-block: clamp(24px, 3vh, 48px); }
  .open h1 { font-size: min(clamp(44px, 9vw, 120px), 15.5vh); margin-bottom: 18px; }
  .open .tag { margin-bottom: 12px; }
  .open-sub { font-size: 16px; margin-bottom: 22px; }
  .open-facts > div { padding: 11px 0; }
  .open-facts dd b { font-size: 25px; }
  .open-facts dt { margin-bottom: 5px; }
  .open-facts::before { inset: -38px -28px -14px; }
}

@media (max-width: 1180px) {
  .index button { grid-template-columns: 40px minmax(min-content, 1fr) auto; }
  .index .hint { display: none; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .sheet { grid-template-columns: 1fr; align-content: center; gap: 26px; }
  .sheet-side { align-content: start; }
}

@media (max-width: 980px) {
  .open-grid { grid-template-columns: 1fr; gap: 34px; }
  .open-facts { grid-template-columns: 1fr 1fr; column-gap: 26px; }
  .open-facts > div:nth-child(2) { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line-soft); }
  .index-wrap { grid-template-columns: 1fr; }
  .index-preview { display: none; }
  .duo-grid { grid-template-columns: 1fr; }
  .where-grid { grid-template-columns: 1fr; }
  .where-copy { padding-inline: var(--pad); }
  .where-map, .where-map iframe { min-height: 380px; }
  .top-meta { display: none; }
}

@media (max-width: 760px) {
  :root { --sec: 66px; --pad: 20px; --top-h: 66px; }
  body { font-size: 16px; padding-bottom: calc(var(--bar-h) + var(--safe-b)); }

  /* на телефоне капсула не нужна: шапка просто уезжает при прокрутке вниз */
  .top.tight {
    left: 0; right: 0; width: auto; translate: 0 0;
    border-radius: 0; height: var(--top-h); padding-inline: var(--pad);
    box-shadow: inset 0 -1px 0 var(--line);
  }
  .top.away, .top.tight.away { translate: 0 -100%; }
  .top-act .act-sm { display: none; }
  .menu-word { display: none; }
  .menu-btn { width: 44px; padding: 0; justify-content: center; box-shadow: none; }
  .mark img, .top.tight .mark img { width: 30px; height: 30px; }
  .mark span { font-size: 15px; letter-spacing: 0.22em; }

  .sheet { padding-top: calc(var(--top-h) + var(--safe-t) + 10px); align-content: start; }
  .sheet-nav a { font-size: 27px; padding: 13px 0; gap: 14px; }

  /* нижняя панель действий — вместо кнопки в шапке */
  .bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 48;
    display: flex; gap: 8px; align-items: center;
    height: calc(var(--bar-h) + var(--safe-b));
    padding: 0 calc(var(--pad) + var(--safe-r)) var(--safe-b) calc(var(--pad) + var(--safe-l));
    background: rgba(244, 241, 236, 0.94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -8px 24px rgba(26, 26, 28, 0.08), inset 0 1px 0 var(--line);
  }
  .bar .act { flex: 1; min-height: 50px; padding: 0 10px; }
  body.menu .bar { opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease); }

  .open { min-height: calc(100dvh - var(--top-h) - var(--safe-t)); padding-block: 30px calc(var(--bar-h) + 16px); }
  .open h1 { font-size: min(clamp(42px, 14vw, 76px), 12vh); }
  .open-sub { margin-bottom: 26px; }
  .open-act { display: grid; }
  .open-act .act { width: 100%; }
  /* работы: ровная сетка одинаковых квадратов вместо вытянутых плиток */
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 6px; }
  .mosaic figure { aspect-ratio: 1; }
  .mosaic .m-tall, .mosaic .m-wide { grid-column: auto; grid-row: auto; }

  /* цитаты: карточки на бумаге, читать удобнее, чем строчки на фоне */
  .voices { grid-template-columns: 1fr; gap: 12px; }
  .voices blockquote {
    padding: 20px 18px; background: var(--white); box-shadow: none;
    border-radius: 14px;
  }
  .voices blockquote::before { margin-bottom: 2px; font-size: 28px; }

  /* цифры первого экрана — одна строка из четырёх, как приборная панель */
  .open-facts { grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
  .open-facts dd b { font-size: 26px; }
  .open-facts dt { font-size: 10.5px; letter-spacing: 0.12em; }

  .crew { grid-template-columns: 1fr 1fr; gap: 18px; }
  .crew article { padding-top: 18px; }
  .crew h3 { font-size: 19px; }
  .crew .score b { font-size: 23px; }

  .head h2, .duo h2 { font-size: clamp(27px, 7.4vw, 38px); }
  .head { margin-bottom: 26px; }
  .head-row { align-items: flex-start; }

  .index button { grid-template-columns: 30px minmax(min-content, 1fr) auto; gap: 12px; padding: 17px 2px; }
  .index .ttl { font-size: 20px; }
  .drop p { padding-left: 42px; font-size: 15px; }

  .duo { padding-inline: var(--pad); }
  .duo-steps li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 18px 2px; }

  .tabs button { flex: 1; min-width: 46%; }
  .tab-panels td { padding: 13px 2px; font-size: 15px; }

  .where-facts > div { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .where-act { display: grid; }
  .where-act .act { width: 100%; }

  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .aura span { filter: blur(60px); opacity: 0.42; }
}

/* невысокие телефоны */
@media (max-width: 760px) and (max-height: 700px) {
  .open { padding-block: 20px calc(var(--bar-h) + 10px); }
  .open h1 { font-size: min(38px, 11.5vh); margin-bottom: 14px; }
  .open .tag { margin-bottom: 10px; }
  .open-sub { font-size: 15px; margin-bottom: 16px; }
  .open-act { gap: 8px; }
  .open-act .act { min-height: 46px; }
  /* цифры в четыре колонки не влезают без переносов — на низком экране
     оставляем главное: заголовок, обещание и кнопки. Рейтинг и часы есть ниже */
  .open-facts { display: none; }
}

@media (max-width: 380px) {
  .open-facts { grid-template-columns: 1fr; }
  .open-facts > div:nth-child(2) { box-shadow: inset 0 -1px 0 var(--line-soft); }
  .mark span { font-size: 14px; }
}
