/* шрифты лежат на сайте (не тянем с Google — быстрее и надёжнее из России) */
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/geologica-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/geologica-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/geologica-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/geologica-400-latin.woff2) format('woff2');
  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: 'Geologica';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/geologica-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/geologica-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/geologica-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geologica';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/geologica-400-latin.woff2) format('woff2');
  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: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/golos-text-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/golos-text-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/golos-text-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/golos-text-400-latin.woff2) format('woff2');
  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: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/manrope-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/manrope-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/manrope-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/manrope-400-latin.woff2) format('woff2');
  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: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/manrope-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/manrope-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/manrope-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/manrope-400-latin.woff2) format('woff2');
  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: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/playfair-display-400-italic-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/playfair-display-400-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/playfair-display-400-italic-latin.woff2) format('woff2');
  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;
}

/* МЯТА — hero. Макет: Figma 1440×859 (узел 50:394) */
:root {
  --bg: #0a0a0a;
  --ink: #ffffff;
  --ink-soft: #dbdbdb;
  --ink-muted: #ededed;
  --line: rgba(255, 255, 255, 0.55);

  --font-head: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* поля как в макете: 61px на 1440 */
  --gutter: clamp(16px, 4.24vw, 72px);
  --header-top: clamp(16px, 2.1vw, 36px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-head);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img,
svg,
canvas { display: block; }
:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}
/* ---------- HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip; /* clip — не скролл-контейнер: фокус не сможет «уехать» в сторону */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--header-top) var(--gutter) clamp(20px, 3.85vh, 40px);
  background: var(--bg);
}
@media (min-width: 1024px) {
  /* не даём экрану стать слишком низким или слишком высоким относительно макета */
  .hero {
    height: 100svh;
    min-height: max(640px, 50vw);
    max-height: max(100svh, 62vw);
  }
}
/* Фон отдельно от контента: фото больше экрана и обрезается здесь */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  overflow: clip;
  pointer-events: none;
}
/* Фото и пар живут в одной коробке — main.js растягивает её как cover с фокусом на шефе */
.hero__media {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}
.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
}
.hero__media img { object-fit: cover; object-position: 53% 47%; }
.hero__media.is-placed img { object-fit: fill; }
/* смена ролика: фон гаснет и проявляется уже новым */
.hero__media { transition: opacity 0.35s ease; }
/* Затемнения из макета: правый верхний угол под кнопкой, низ по центру, лёгкая общая виньетка */
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* два больших размытых чёрных эллипса из макета: слева сверху (логотип, меню, начало заголовка)
     и слева снизу (факты) + лёгкие общие градиенты сверху и снизу */
  background:
    radial-gradient(ellipse 40% 55% at 18% 15%, rgba(0, 0, 0, 0.42), transparent 72%),
    radial-gradient(ellipse 40% 42% at 21% 97%, rgba(0, 0, 0, 0.42), transparent 72%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.18), transparent 18%),
    linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent 22%);
}
/* ---------- HEADER ---------- */
.header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 42px;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 9px;
  flex: none;
  min-width: 120px;
}
.logo__mark { width: 120px; height: auto; }
.logo__tagline {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
}
/* меню держится рядом с логотипом одной группой, весь свободный воздух — до телефона */
.nav {
  margin: 0 auto 0 calc(clamp(28px, 3.4vw, 64px) + 15px);
  padding-right: 24px;
}
.nav__list {
  display: flex;
  gap: clamp(14px, 1.25vw, 24px);
}
.nav__list a,
.phone,
.btn { transition: color 0.3s var(--ease), opacity 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease); }
.nav__list a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__contacts {
  display: flex;
  align-items: center;
  gap: 24px;
}
.phone {
  font-size: clamp(14px, 1.11vw, 17px);
  line-height: 1.25;
  white-space: nowrap;
}
.phone:hover { opacity: 0.7; }
/* телефон отодвинут от иконок мессенджеров — отдельным пунктом */
.header__contacts .phone { margin-right: calc(clamp(20px, 2.8vw, 48px) + 20px); }
.socials { display: flex; gap: 12px; }
.social {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #000;
  transition: background-color 0.3s var(--ease);
}
.social svg { width: 38px; height: 38px; color: var(--ink); }
.social:hover { background: #262626; }
/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 63px;
  padding: 0 28px;
  border: 1.5px solid transparent;
  font-family: var(--font-head);
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
.btn__arrow {
  width: 19px;
  height: 9px;
  flex: none;
  transition: transform 0.4s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--solid {
  background: var(--ink);
  color: #0a0a0a;
  font-weight: 500;
}
.btn--solid .btn__arrow { color: #333; }
.btn--solid:hover { background: #e9e9e9; }
.btn--glass {
  background: rgba(0, 0, 0, 0.1);
  border-color: var(--line);
  color: var(--ink-muted);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--glass:hover,
.btn--outline:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--ink); }
.btn--outline {
  border-color: var(--line);
  color: var(--ink);
}
.btn--sm {
  height: 42px;
  padding: 0 26px;
  font-size: 12px;
}
/* сцена между заголовком и низом: заметки слева/справа от шефа */
.note {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* Стеклянная подложка под текстом, как эллипсы с размытием фона в макете:
   в центре фон размыт и чуть притемнён, к краям маска плавно уходит в ноль —
   края растворяются в фото без видимой границы. */
.note::before,
.facts::before {
  content: "";
  position: absolute;
  inset: var(--glass-inset, -38% -26%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.1) 55%, transparent);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.92) 28%, rgba(0, 0, 0, 0.5) 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.92) 28%, rgba(0, 0, 0, 0.5) 62%, transparent 100%);
}
/* размеры эллипсов из макета: 266×342 слева, 266×318 справа, 529×186 под фактами */
.facts { --glass-inset: -52px -95px -110px -49px; }
.hero__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.facts {
  position: relative;
  display: flex;
  gap: 27px;
  padding-bottom: 0;
}
.fact {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}
.fact svg { width: 24px; height: 24px; flex: none; }
/* кнопки всегда над стеклянной подложкой фактов (на планшете и телефоне они рядом) */
.actions { position: relative; z-index: 1; display: flex; gap: 16px; }
/* в макете кнопки выходят за правое поле на 4px */
@media (min-width: 1024px) {
  .actions { margin-right: -4px; }
}
/* ---------- BURGER & DRAWER ---------- */
.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1.5px solid var(--line);
  background: rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }
.drawer {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-top) + 88px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, 0.9);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
  overflow-y: auto;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease), visibility 0s;
}
.drawer[hidden] { display: none; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: clamp(24px, 6.4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.drawer.is-open .drawer__nav a { transform: none; opacity: 1; }
.drawer.is-open .drawer__nav a:nth-child(2) { transition-delay: 0.04s; }
.drawer.is-open .drawer__nav a:nth-child(3) { transition-delay: 0.08s; }
.drawer.is-open .drawer__nav a:nth-child(4) { transition-delay: 0.12s; }
.drawer.is-open .drawer__nav a:nth-child(5) { transition-delay: 0.16s; }
.drawer.is-open .drawer__nav a:nth-child(6) { transition-delay: 0.2s; }
.drawer.is-open .drawer__nav a:nth-child(7) { transition-delay: 0.24s; }
/* низ меню: телефон → кнопка заявки на всю ширину → иконки отдельной строкой */
.drawer__footer { display: flex; flex-direction: column; gap: 18px; }
.drawer .social { border: 1.5px solid var(--line); width: 46px; height: 46px; flex: none; }
.drawer .social svg { width: 34px; height: 34px; }
.phone--lg { font-size: 22px; }
/* маленькие телефоны: пункты меню компактнее, чтобы всё помещалось без прокрутки */
@media (max-width: 400px), (max-height: 720px) {
  .drawer { gap: 24px; padding-top: calc(var(--header-top) + 76px); }
  .drawer__nav a { padding: 9px 0; font-size: clamp(22px, 6vw, 28px); }
  .phone--lg { font-size: 20px; }
}
/* ---------- LARGE SCREENS ---------- */
@media (min-width: 1680px) {
  .nav__list a { font-size: 13px; }
  .fact { font-size: 16px; }
  .btn { height: 68px; font-size: 13px; }
}
/* ---------- 1280–1439: шапка компактнее, телефон остаётся; ниже 1280 телефон прячется ---------- */
@media (max-width: 1439px) {
  .nav__list { gap: 12px; }
  .nav__list a { font-size: 12px; }
  .header__contacts { gap: 18px; }
  .phone { font-size: 14px; }
  .socials { gap: 8px; }
  .btn--sm { padding: 0 16px; font-size: 11px; }
}
@media (max-width: 1279px) {
  .header .phone { display: none; }
}
/* 1024–1099: полное меню не влезает — уходит в бургер, иконки и кнопка остаются */
@media (min-width: 1024px) and (max-width: 1099px) {
  .nav { display: none; }
  .header__contacts { margin-left: auto; }
  .burger { display: block; margin-left: 18px; }
}
/* 1100–1199: меню ещё компактнее, чтобы влезали иконки и кнопка */
@media (max-width: 1199px) {
  .nav__list { gap: 12px; }
  .nav__list a { font-size: 11.5px; }
}
/* ---------- TABLET ≤1023 ---------- */
@media (max-width: 1023px) {
  .nav,
  .header__contacts { display: none; }
  .burger { display: block; }
  .hero__bottom { flex-wrap: wrap; align-items: flex-end; }
}
/* ---------- MOBILE ≤767 ---------- */
@media (max-width: 767px) {
  .hero { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .hero__shade {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.38) 0%, transparent 16%),
      linear-gradient(to top, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.16) 30%, transparent 52%);
  }
  .logo { min-width: 0; }
  .logo__mark { width: 104px; }
  .logo__tagline { font-size: 13px; }
  .burger { width: 48px; height: 48px; }
  .burger span { left: 13px; right: 13px; }
  .burger span:first-child { top: 18px; }
  .burger span:last-child { top: 27px; }
  .burger[aria-expanded="true"] span:first-child,
  .burger[aria-expanded="true"] span:last-child { top: 22.5px; }
  /* из заметок на телефоне остаётся подзаголовок — он встаёт под заголовком */
  .note {
    position: relative;
    inset: auto;
    width: auto;
    max-width: 320px;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  .hero__bottom { order: 4; }
  .facts { --glass-inset: -22px -26px; }
  .hero__bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .facts {
    order: 2;
    flex-wrap: wrap;
    gap: 10px 22px;
    transform: none;
  }
  .fact { font-size: 13px; }
  .fact svg { width: 20px; height: 20px; }
  .actions { flex-direction: column; gap: 10px; }
  .actions .btn { height: 56px; justify-content: space-between; padding: 0 22px; }
}
/* низкие телефоны (SE и т. п.): компактнее низ, чтобы экран влез целиком */
@media (max-width: 767px) and (max-height: 700px) {
  .actions .btn { height: 50px; }
}
/* ---------- ПОЯВЛЕНИЕ И ИНТЕРАКТИВНОСТЬ ----------
   Всё скрыто только при включённом JS (класс .js ставится в <head>).
   main.js раздаёт задержки --d и добавляет .is-loaded, когда готовы шрифты, фото и пар. */
:root { --ease-expo: cubic-bezier(0.16, 1, 0.3, 1); }
/* фото и пар въезжают вместе: проявление и медленное «оседание» масштаба */
.js .hero__bg {
  opacity: 0;
  scale: 1.07;
  transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1), scale 3.4s var(--ease-expo);
}
.js.is-loaded .hero__bg { opacity: 1; scale: 1; }
/* шапка: элементы опускаются на место по очереди */
.js .logo,
.js .burger,
.js .nav__list li,
.js .header__contacts .phone,
.js .socials li {
  opacity: 0;
  transform: translate3d(0, -12px, 0);
  transition: opacity 0.9s var(--ease) var(--d, 0s), transform 1.1s var(--ease-expo) var(--d, 0s);
}
/* заголовок: слова по очереди поднимаются снизу прямо, без наклона, и выходят из размытия */
.js .w { display: inline-block; }
/* заметки: знак разворачивается, текст выходит из размытия */
.js .fact {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  filter: blur(8px);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease-expo) var(--d, 0s), filter 1s var(--ease) var(--d, 0s);
}
.js .note::before,
.js .facts::before {
  opacity: 0;
  transition: opacity 1.6s var(--ease) var(--d, 0s);
}
/* кнопки: всплывают последними */
.js .actions .btn,
.js .header__contacts .btn {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 1s var(--ease) var(--d, 0s),
    transform 1.2s var(--ease-expo) var(--d, 0s),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.js .header__contacts .btn { transform: translate3d(0, -12px, 0); }
.js.is-loaded .logo,
.js.is-loaded .burger,
.js.is-loaded .nav__list li,
.js.is-loaded .header__contacts .phone,
.js.is-loaded .socials li,
.js.is-loaded .fact,
.js.is-loaded .actions .btn,
.js.is-loaded .header__contacts .btn {
  opacity: 1;
  transform: none;
  filter: none;
}
.js.is-loaded .note::before,
.js.is-loaded .facts::before { opacity: 1; }
/* блик по кнопкам при наведении */
.btn--solid,
.btn--glass {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--solid::after,
.btn--glass::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(0, 0, 0, 0.07) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease-expo);
}
.btn--glass::after { background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%); }
.btn--solid:hover::after,
.btn--glass:hover::after { transform: translateX(120%); }
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
/* МЯТА — вариант 2 «Фаворит» (Figma, узел 110:1840).
   Шапка, меню, кнопки и стекло общие с основным сайтом (../styles.css),
   здесь — раскладка первого экрана и хореография появления. */
.v2 {
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Playfair Display", Georgia, "Times New Roman", serif;
}
/* фото: стол занимает низ, свет и люди — фон */
.v2 .hero__media img { object-position: 50% 40%; }
.v2 .hero__shade {
  background:
    radial-gradient(ellipse 34% 30% at 50% 26%, rgba(0, 0, 0, 0.34), transparent 72%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.12) 22%, transparent 40%),
    linear-gradient(to top, rgba(0, 0, 0, 0.22), transparent 18%);
}
/* тёплое «дыхание» огней: свечи и боке по фону еле заметно мерцают */
.v2-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1.87s ease 0.68s;
}
.js.is-loaded .v2-glow { opacity: 1; }
.v2-glow::before,
.v2-glow::after {
  content: "";
  position: absolute;
  inset: 0;
}
.v2-glow::before {
  background:
    radial-gradient(ellipse 7% 9% at 3.5% 88%, rgba(255, 176, 92, 0.28), transparent 70%),
    radial-gradient(ellipse 7% 9% at 95.5% 87%, rgba(255, 176, 92, 0.26), transparent 70%),
    radial-gradient(ellipse 16% 8% at 30% 46%, rgba(255, 160, 90, 0.12), transparent 70%);
  animation: v2-flicker-a 5.2s ease-in-out infinite alternate;
}
.v2-glow::after {
  background:
    radial-gradient(ellipse 18% 9% at 70% 44%, rgba(255, 150, 96, 0.12), transparent 70%),
    radial-gradient(ellipse 30% 14% at 50% 38%, rgba(190, 40, 70, 0.08), transparent 72%);
  animation: v2-flicker-b 7.4s ease-in-out infinite alternate;
}
@keyframes v2-flicker-a { 0% { opacity: 0.55; } 35% { opacity: 0.85; } 60% { opacity: 0.62; } 100% { opacity: 1; } }
@keyframes v2-flicker-b { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 0.85; } }
/* кадр фото после появления стоит неподвижно — кадрирование всегда как в исходном положении */
.v2 .hero__media picture { display: block; }
/* ---------- РАСКЛАДКА (макет 1440×859) ---------- */
.v2-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.v2-title {
  position: absolute;
  top: max(16.2%, 104px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 0 var(--gutter);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.72vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-align: center;
  color: #fff;
}
/* каждая строка заголовка держится целиком — никакой «лесенки» ни на одной ширине */
.v2-title__line { display: block; white-space: nowrap; }
.v2-title__accent {
  display: block;
  margin-top: -0.235em;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  line-height: 1.33;
  letter-spacing: -0.01em;
}
.v2-title__accent-in {
  display: inline-block;
  padding: 0 0.1em;
}
.v2-note {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #fff;
  pointer-events: auto;
}
.v2-note--left { left: calc(10% - 4px); top: calc(42.6% + 4px); width: 166px; }
.v2-note--right { right: 4.65%; top: 29.6%; width: 208px; }
.v2-note__mark { width: 25px; height: 25px; color: #fff; }
/* строки заметок заданы явно, как в макете, — переносы не зависят от ширины экрана */
.v2-note__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.16;
  white-space: nowrap;
}
/* стеклянные подложки по эллипсам макета: размытие в центре, края тают */
.v2-note::before {
  content: "";
  position: absolute;
  inset: var(--glass-inset);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.1) 55%, transparent);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.92) 28%, rgba(0, 0, 0, 0.5) 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.92) 28%, rgba(0, 0, 0, 0.5) 62%, transparent 100%);
}
.v2-note--left { --glass-inset: -46px -23px -39px -40px; }
.v2-note--right { --glass-inset: -43px -22px -42px -57px; }
/* низ экрана — факты и кнопки, как в первой версии (общие стили ../styles.css) */
.v2-bottom {
  position: relative;
  z-index: 3;
  margin-top: auto;
}
/* подложка под фактами: шире и мягче, чем в первой версии, — размытие растекается к краям без границы */
.v2 .facts { --glass-inset: -78px -130px -96px -92px; }
.v2 .facts::before {
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.09) 50%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.82) 22%, rgba(0, 0, 0, 0.5) 48%, rgba(0, 0, 0, 0.2) 72%, rgba(0, 0, 0, 0.05) 90%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.82) 22%, rgba(0, 0, 0, 0.5) 48%, rgba(0, 0, 0, 0.2) 72%, rgba(0, 0, 0, 0.05) 90%, transparent 100%);
}
@media (max-width: 767px) {
  .v2 .facts { --glass-inset: -34px -44px; }
}
@media (min-width: 1680px) {
  .v2-note--left { width: 196px; }
  .v2-note--right { width: 236px; }
  .v2-note__text { font-size: 20px; }
}
@media (max-width: 1023px) {
  .v2-note--left { left: 5%; top: 52%; }
  .v2-note--right { top: 40%; }
  .v2-note__text { font-size: 16px; }
}
/* ---------- ТЕЛЕФОН ---------- */
@media (max-width: 767px) {
  .v2 .hero__shade {
    background:
      linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 34%, transparent 52%),
      linear-gradient(to top, rgba(0, 0, 0, 0.25), transparent 20%);
  }
  .v2-body {
    position: relative;
    inset: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: clamp(24px, 5svh, 48px);
  }
  /* строго три строки: «Кейтеринг, который» / «сделает мероприятие» / «особенным»;
     кегль по ширине самой длинной строки, чтобы она не переносилась */
  .v2-title {
    position: relative;
    top: auto;
    padding: 0;
    font-size: min(9vw, 46px);
    line-height: 0.95;
  }
  .v2-title__line { white-space: nowrap; }
  .v2-note--left { display: none; }
  .v2-note--right {
    position: relative;
    right: auto;
    top: auto;
    width: auto;
    max-width: 300px;
    margin-top: 18px;
    align-items: center;
    gap: 12px;
    text-align: center;
    --glass-inset: -26px -30px;
  }
  .v2-note__mark { width: 20px; height: 20px; }
  /* на телефоне подзаголовок по центру — переносится сам */
  .v2-note__text { font-size: 15px; line-height: 1.25; white-space: normal; }
  .v2-note__text br { display: none; }
}
/* фото: из темноты, расфокуса и лёгкого приближения */
.js .v2 .hero__bg {
  opacity: 0;
  scale: 1.12;
  filter: blur(16px) brightness(0.55);
  transition:
    opacity 1.02s cubic-bezier(0.4, 0, 0.2, 1),
    scale 2.55s var(--ease-expo),
    filter 1.44s cubic-bezier(0.4, 0, 0.2, 1);
}
.js.is-loaded .v2 .hero__bg { opacity: 1; scale: 1; filter: none; }
/* шапка — с лёгким расфокусом */
.js .v2 .logo,
.js .v2 .nav__list li,
.js .v2 .header__contacts .phone,
.js .v2 .socials li,
.js .v2 .burger {
  filter: blur(6px);
  transition:
    opacity 0.59s var(--ease) var(--d, 0s),
    transform 0.81s var(--ease-expo) var(--d, 0s),
    filter 0.59s var(--ease) var(--d, 0s);
}
.js .v2 .socials li { transform: translate3d(0, -12px, 0) scale(0.7); }
.js.is-loaded .v2 .logo,
.js.is-loaded .v2 .nav__list li,
.js.is-loaded .v2 .header__contacts .phone,
.js.is-loaded .v2 .socials li,
.js.is-loaded .v2 .burger { filter: none; }
.js.is-loaded .v2 .socials li { transform: none; }
/* кнопка заявки: рамка «прочерчивается» слева направо */
.js .v2 .header__contacts .btn {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.72s cubic-bezier(0.65, 0, 0.35, 1) var(--d, 0s), background-color 0.26s var(--ease), border-color 0.26s var(--ease);
}
.js.is-loaded .v2 .header__contacts .btn { clip-path: inset(0 0 0 0); }
/* заголовок: буквы поднимаются снизу прямо и выходят из размытия */
.v2-cw { display: inline-block; white-space: nowrap; }
.v2-c { display: inline-block; }
.js .v2-c {
  opacity: 0;
  transform: translate3d(0, 0.42em, 0);
  filter: blur(12px);
  transition:
    opacity 0.55s var(--ease) var(--d, 0s),
    transform 0.89s var(--ease-expo) var(--d, 0s),
    filter 0.68s var(--ease) var(--d, 0s);
}
.js.is-loaded .v2-c { opacity: 1; transform: none; filter: none; }
/* «особенным»: вписывается слева направо, как от руки, затем по слову пробегает тёплый блик */
.js .v2-title__accent-in {
  opacity: 0;
  clip-path: inset(-25% 100% -30% -6%);
  transform: translate3d(-0.12em, 0, 0);
  filter: blur(8px);
  transition:
    opacity 0.38s var(--ease) var(--d, 0s),
    clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1) var(--d, 0s),
    transform 1.19s var(--ease-expo) var(--d, 0s),
    filter 0.85s var(--ease) var(--d, 0s);
}
.js.is-loaded .v2-title__accent-in {
  opacity: 1;
  clip-path: inset(-25% -6% -30% -6%);
  transform: none;
  filter: none;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .v2-title__accent-in {
    background: linear-gradient(100deg, #fff 0%, #fff 40%, #f4d7a3 50%, #fff 60%, #fff 100%);
    background-size: 260% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .js.is-loaded .v2-title__accent-in { animation: v2-shimmer 1.7s cubic-bezier(0.4, 0, 0.2, 1) var(--shine, 1.7s) 1 both; }
}
@keyframes v2-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0% 0; }
}
/* заметки: подложка расцветает, знак разворачивается, слова проступают по одному */
.js .v2-note::before {
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 1.02s var(--ease) var(--d, 0s), transform 1.27s var(--ease-expo) var(--d, 0s);
}
.js.is-loaded .v2-note::before { opacity: 1; transform: none; }
.js .v2-note__mark {
  opacity: 0;
  transform: rotate(-135deg) scale(0.3);
  transition: opacity 0.55s var(--ease) var(--d, 0s), transform 0.94s var(--ease-expo) var(--d, 0s);
}
.js.is-loaded .v2-note__mark { opacity: 1; transform: none; }
.v2-w { display: inline-block; }
.js .v2-w {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  filter: blur(6px);
  transition:
    opacity 0.55s var(--ease) var(--d, 0s),
    transform 0.72s var(--ease-expo) var(--d, 0s),
    filter 0.55s var(--ease) var(--d, 0s);
}
.js.is-loaded .v2-w { opacity: 1; transform: none; filter: none; }
/* на телефоне фото не размываем при появлении — бережём плавность */
@media (max-width: 767px) {
  .js .v2 .hero__bg { filter: brightness(0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .v2-glow::before,
  .v2-glow::after,
  .js.is-loaded .v2-title__accent-in { animation: none !important; }
}
/* ---------- КЕЙСЫ ----------
   Бесконечная лента карточек; по нажатию фото карточки вырастает в галерею мероприятия.
   Логика — cases-slider.js, данные — cases.js. */
.cases {
  --card-w: clamp(330px, 36vw, 700px);
  --slide-h: min(52svh, 36vw, 680px);
  --cases-gap: clamp(14px, 1.4vw, 24px);
  position: relative;
  padding: clamp(64px, 6vw, 110px) 0 clamp(40px, 3.4vw, 64px);
  overflow: hidden;
  overflow: clip;
  font-family: var(--font-display);
  color: #fff;
}
.cases__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px 48px;
  padding: 0 var(--gutter);
  margin-bottom: clamp(28px, 3.2vw, 56px);
}
.cases__label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.cases__mark { width: 18px; height: 18px; flex: none; color: #fff; }
.cases__title {
  margin: 0;
  max-width: 15em;
  font-weight: 400;
  font-size: clamp(34px, 3.9vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}
.cases__title em { font-family: var(--font-accent); font-style: italic; letter-spacing: -0.01em; }
.cases__lead {
  margin: 0 0 0.35em;
  max-width: 22em;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}
/* сцена одной высоты в обоих режимах — страница не прыгает, когда кейс открывается */
.cases__stage {
  position: relative;
  height: max(var(--slide-h), calc(var(--card-w) / 1.4 + 110px));
}
.cases__strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.cases__track {
  display: flex;
  gap: var(--cases-gap);
  width: max-content;
  padding-left: var(--gutter);
  will-change: transform;
}
.case-card {
  flex: none;
  width: var(--card-w);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.6s var(--ease);
}
.case-card__in {
  display: block;
  transition:
    opacity 0.9s var(--ease) var(--d, 0s),
    transform 1.2s var(--ease-expo) var(--d, 0s),
    filter 0.8s var(--ease) var(--d, 0s);
}
.case-card__media {
  position: relative;
  display: block;
  aspect-ratio: 7 / 5;
  overflow: hidden;
  background: #141414;
}
.case-card__media img,
.case-slide img,
.cases__flyer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-card__media img { transform: scale(1.001); transition: transform 1.4s var(--ease-expo); }
.case-card__tags {
  position: absolute;
  left: 14px;
  top: 14px;
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.case-card__tag,
.cases__tag {
  padding: 8px 15px 7px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}
.case-card__tag {
  background: rgba(10, 10, 10, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.case-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 16px;
  font-size: clamp(16px, 1.15vw, 20px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.case-card__meta {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.62);
}
@media (hover: hover) and (pointer: fine) {
  .case-card { cursor: none; }
  .cases__track:hover .case-card:not(:hover) { opacity: 0.45; }
  .case-card:hover .case-card__media img { transform: scale(1.06); }
}
.cases__strip.is-dragging .case-card { cursor: grabbing; }
/* курсор «Открыть» над карточкой */
.cases__cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  width: 0;
  height: 0;
  pointer-events: none;
}
.cases__ball {
  position: absolute;
  left: -46px;
  top: -46px;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.2);
  transition: transform 0.5s var(--ease-expo), opacity 0.3s var(--ease);
}
.cases__cursor.is-on .cases__ball { opacity: 1; transform: scale(calc(1 + var(--k, 0) * 0.14)); }
/* «Открыть» — над карточкой ленты; «Листать» со стрелкой — над галереей кейса */
.cc-open,
.cc-scroll { grid-area: 1 / 1; transition: opacity 0.3s var(--ease); }
.cc-scroll { display: grid; justify-items: center; gap: 7px; opacity: 0; }
.cases__cursor.is-scroll .cc-open { opacity: 0; }
.cases__cursor.is-scroll .cc-scroll { opacity: 1; }
.cc-label { font-size: 11px; }
.cc-one,
.cc-two { grid-area: 1 / 1; height: 9px; transition: opacity 0.3s var(--ease), transform 0.45s var(--ease-expo); }
.cc-one { width: calc(20px + var(--k, 0) * 10px); }
.cc-two { width: 22px; opacity: 0; }
.cc-label { grid-row: 2; }
.cases__cursor.is-left .cc-one { transform: scaleX(-1); }
.cases__cursor.is-mid .cc-one { opacity: 0; }
.cases__cursor.is-mid .cc-two { opacity: 1; }
.cases__cursor.is-end .cc-one { opacity: 0.25; }
@media (hover: hover) and (pointer: fine) {
  .cases.is-case .cases__gallery,
  .cases.is-case .case-slide { cursor: none; }
}
@media not all and (hover: hover) and (pointer: fine) {
  .cases__cursor { display: none; }
}
/* открытый кейс: остальные карточки растворяются, выбранная улетает в галерею */
.cases.is-case .case-card:not(.is-picked) { pointer-events: none; }
.cases.is-case .case-card:not(.is-picked) .case-card__in {
  opacity: 0;
  transform: scale(0.94);
  filter: blur(8px);
  transition-delay: 0s;
}
.cases.is-case .case-card.is-picked .case-card__title,
.cases.is-case .case-card.is-picked .case-card__meta,
.cases.is-case .case-card.is-picked .case-card__tags { opacity: 0; }
.case-card__title,
.case-card__meta,
.case-card__tags { transition: opacity 0.5s var(--ease); }
.case-card.is-picked .case-card__media { visibility: hidden; }
.cases__flyer {
  position: absolute;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  background: #141414;
}
.cases__gallery {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.cases__gallery[hidden] { display: none; }
.cases__gtrack {
  display: flex;
  gap: var(--cases-gap);
  height: var(--slide-h);
  transition: transform 0.95s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.cases__gtrack.is-instant { transition: none; }
.case-slide {
  flex: none;
  height: 100%;
  aspect-ratio: var(--r, 1.5);
  overflow: hidden;
  background: #141414;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.7s var(--ease), transform 1s var(--ease-expo);
}
.case-slide.is-active { opacity: 1; }
.case-slide img { pointer-events: none; }
.case-slide:first-child:not(.is-landed) img { visibility: hidden; }
.cases__gallery.is-arriving .case-slide { transition-delay: var(--d, 0s); }
.cases__gallery.is-entering .case-slide:not(:first-child) { opacity: 0; transform: translate3d(90px, 0, 0); }
.cases__gallery.is-leaving .case-slide:not(:first-child) {
  opacity: 0;
  transform: translate3d(60px, 0, 0);
  transition-duration: 0.45s;
}
/* нижняя строка: подсказка / «Все кейсы», счётчик и стрелки */
.cases__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  min-height: 44px;
  margin-top: clamp(20px, 2.2vw, 36px);
  padding: 0 var(--gutter);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.cases__bar p { margin: 0; }
.cases__bar-left { position: relative; flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; }
.cases__hint,
.cases__crumbs,
.cases__meta { transition: opacity 0.45s var(--ease), transform 0.6s var(--ease-expo), visibility 0s linear 0.6s; }
.cases__hint--touch { display: none; }
@media not all and (hover: hover) and (pointer: fine) {
  .cases__hint--hover { display: none; }
  .cases__hint--touch { display: inline; }
}
.cases__crumbs {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, calc(-50% + 8px), 0);
}
.cases__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.cases__back svg { width: 20px; height: 9px; transition: transform 0.4s var(--ease); }
.cases__back:hover svg { transform: translateX(-4px); }
.cases__crumb-sep { opacity: 0.4; }
.cases__crumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #fff; text-transform: none; letter-spacing: 0; font-size: 15px; }
.cases__bar-right { display: flex; align-items: center; gap: 12px; }
.cases__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 14px !important;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 8px, 0);
}
.cases__count {
  min-width: 5.2em;
  text-align: right;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.cases__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.cases__arrow svg { width: 18px; height: 9px; }
.cases__arrow--prev svg { transform: scaleX(-1); }
.cases__arrow:hover:not(:disabled) { background: #fff; border-color: #fff; color: #0a0a0a; }
.cases__arrow:disabled { opacity: 0.3; cursor: default; }
.cases.is-case .cases__hint { opacity: 0; visibility: hidden; transform: translate3d(0, -8px, 0); }
.cases.is-case .cases__crumbs { opacity: 1; visibility: visible; transform: translate3d(0, -50%, 0); }
.cases.is-case .cases__meta { opacity: 1; visibility: visible; transform: none; }
.cases.is-case .cases__crumbs,
.cases.is-case .cases__meta { transition-delay: 0.3s, 0.3s, 0s; }
.cases:not(.is-case) .cases__hint { transition-delay: 0.3s, 0.3s, 0s; }
/* появление блока при прокрутке */
.js .cases__label,
.js .cases__title,
.js .cases__lead,
.js .cases__bar {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(8px);
  transition:
    opacity 1s var(--ease) var(--d, 0s),
    transform 1.2s var(--ease-expo) var(--d, 0s),
    filter 1s var(--ease) var(--d, 0s);
}
.js .cases__title { --d: 0.08s; }
.js .cases__lead { --d: 0.22s; }
.js .cases__bar { --d: 0.6s; }
.js .cases.is-in .cases__label,
.js .cases.is-in .cases__title,
.js .cases.is-in .cases__lead,
.js .cases.is-in .cases__bar { opacity: 1; transform: none; filter: none; }
.js .cases:not(.is-in) .case-card__in {
  opacity: 0;
  transform: translate3d(90px, 0, 0);
  filter: blur(6px);
}
@media (max-width: 1023px) {
  .cases { --card-w: 54vw; --slide-h: min(60svh, 66vw); }
}
@media (max-width: 767px) {
  .cases {
    --card-w: 84vw;
    --slide-h: min(56svh, 88vw);
    padding-top: 72px;
  }
  .cases__head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
  .cases__title { font-size: min(9.4vw, 44px); }
  .cases__lead { text-align: left; font-size: 15px; }
  .case-card__meta { font-size: 15px; }
  .cases__bar { flex-wrap: wrap; font-size: 12px; }
  .cases__bar-left { flex: 1 0 100%; }
  .cases__bar-right { flex: 1 0 100%; justify-content: flex-end; }
  .cases__meta { margin-right: auto !important; }
  .cases__meta .cases__tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .cases:not(.is-in) .case-card__in { transform: none; }
}
/* подсказка — две аккуратные строки у левого края */
.cases__hint { line-height: 1.6; }
/* открытый кейс: теги, гости и цена — чуть крупнее */
.cases__meta { gap: 10px; font-size: 15px; letter-spacing: 0.04em; }
.cases__meta .cases__tag { font-size: 12px; padding: 9px 16px 8px; }
.cc-scroll svg path { stroke-width: 1.5; }
/* ======================================================================
   УСЛУГИ — «Событие может быть любым» (Figma 449:2504)
   и КВИЗ — «Рассчитаем кейтеринг» (Figma 449:2592). Светлые блоки, Manrope.
   ====================================================================== */
.svc,
.qz {
  --ink2: #1c1714;
  --muted2: #6e645b;
  --line2: rgba(28, 23, 20, 0.16);
  font-family: var(--font-display);
  color: var(--ink2);
}
.svc em,
.qz em { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
/* ---------- УСЛУГИ ---------- */
.svc {
  --svc-gap: 16px;
  --svc-card: calc((var(--svc-w, 100vw) - 2 * var(--gutter) - 3 * var(--svc-gap)) / 4);
  --svc-step: clamp(60px, 6.25vw, 110px);
  position: relative;
  padding: clamp(48px, 4.45vw, 80px) 0 clamp(40px, 3.4vw, 60px);
  background: #f2f2f2;
  overflow: hidden;
  overflow: clip;
}
.svc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 48px;
  padding: 0 var(--gutter);
}
.svc__title,
.qz__title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(32px, 3.34vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}
.svc__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  flex: none;
}
.svc__lead,
.qz__lead {
  margin: 0;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(28, 23, 20, 0.75);
}
.svc__lead { text-align: right; }
.svc__nav { display: flex; gap: 8px; }
.svc__arrow {
  display: grid;
  place-items: center;
  width: 56px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(28, 23, 20, 0.25);
  background: transparent;
  color: var(--ink2);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.svc__arrow svg { width: 19px; height: 9px; }
.svc__arrow--next { background: var(--ink2); border-color: var(--ink2); color: #fff; }
.svc__arrow:hover:not(:disabled) { background: var(--ink2); border-color: var(--ink2); color: #fff; }
.svc__arrow--next:hover:not(:disabled) { background: #3a322d; }
.svc__arrow:disabled { opacity: 0.35; cursor: default; }
/* лента: нативная прокрутка (палец, тачпад) + стрелки и перетаскивание мышью */
.svc__viewport {
  margin-top: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.svc__viewport::-webkit-scrollbar { display: none; }
.svc__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.svc__viewport.is-dragging * { pointer-events: none; }
.svc__viewport:focus-visible { outline: 1px solid var(--ink2); outline-offset: -1px; }
.svc__track {
  display: flex;
  align-items: stretch;
  gap: var(--svc-gap);
  width: max-content;
  margin: 0;
  padding: 0 var(--gutter) 34px;
  list-style: none;
}
.svc-slot {
  display: flex;
  flex-direction: column;
  width: var(--svc-card);
  scroll-snap-align: start;
}
/* шахматка: чётные карточки ниже */
.svc-slot:nth-child(even) { padding-top: var(--svc-step); }
.svc-card {
  display: flex;
  flex-direction: column;
  padding: 8px 8px 12px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(28, 23, 20, 0.06);
}
.svc-card__photo {
  position: relative;
  aspect-ratio: 302 / 295;
  overflow: hidden;
  border-radius: 4px;
  background: #e8e4df;
}
.svc-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.2s var(--ease-expo);
}
.svc-card:hover .svc-card__photo img { transform: scale(1.045); }
.svc-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 12px 6px;
}
.svc-card__title {
  margin: 0;
  font-size: clamp(20px, 1.67vw, 28px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.svc-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted2);
}
.svc-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
}
.svc-card__price {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}
.svc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 9px 16px;
  background: var(--ink2);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease);
}
.svc-btn:hover { background: #3a322d; }
.svc-arrow { width: 11px; height: 8px; transition: transform 0.4s var(--ease); }
.svc-btn:hover .svc-arrow { transform: translateX(3px); }
/* последняя карточка — «Не нашли свой формат?» во всю высоту соседей */
.svc-card--cta {
  flex: 1;
  justify-content: space-between;
  padding: 20px 24px 24px;
  background: #e6ded3;
}
.svc-pill {
  align-self: flex-start;
  padding: 8px 14px 7px;
  border: 1px solid rgba(28, 23, 20, 0.35);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.svc-card__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.svc-card__cta-title {
  margin: 0;
  font-size: clamp(24px, 1.95vw, 32px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.svc-card--cta .svc-card__text { font-size: 14px; }
.svc-card--cta .svc-btn { margin-top: 4px; }
.svc__progress {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  margin-top: -10px;
}
.svc__line { position: relative; flex: 1; height: 2px; overflow: hidden; background: rgba(28, 23, 20, 0.12); }
.svc__bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 50%;
  background: var(--ink2);
  transform-origin: 0 50%;
  will-change: transform, width;
}
.svc__count {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* ---------- КВИЗ ---------- */
.qz {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 560fr) minmax(0, 680fr);
  gap: 40px clamp(40px, 5.56vw, 100px);
  padding: clamp(40px, 3.5vw, 64px) var(--gutter);
  background: #fff;
}
.qz__anchor { position: absolute; top: 0; }
.qz__left { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.qz__photo {
  position: relative;
  flex: 1;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  background: #ece9e5;
}
.qz__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 10% 48%;
}
/* плашка «Алина Юсупова, главный супервайзер» — стекло, как в макете */
.qz__badge {
  position: absolute;
  left: clamp(12px, 3.4%, 24px);
  top: 25%;
  padding: 14px 0 0 10px;
}
.qz__badge-mark {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  color: #1c1714;
}
.qz__badge-mark svg { width: 12px; height: 12px; }
.qz__badge-box {
  display: flex;
  flex-direction: column;
  padding: 7px 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.qz__badge-box b { font-weight: 400; font-size: 17px; letter-spacing: -0.01em; line-height: 1.2; }
.qz__badge-box span { margin-top: -2px; font-size: 12px; letter-spacing: -0.01em; color: #7b7b7b; }
.qz__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 680px;
  padding: 40px clamp(24px, 3.34vw, 56px);
  background: #f2f2f2;
}
.qz__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 24px; }
.qz__progress i { height: 2px; background: rgba(28, 23, 20, 0.14); transition: background-color 0.5s var(--ease); }
.qz__progress i.is-on { background: var(--ink2); }
.qz-step {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.qz-step[hidden] { display: none; }
.qz-step.is-active { animation: qz-in 0.7s var(--ease-expo) both; }
@keyframes qz-in { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
.qz__q {
  margin: 0;
  padding: 0;
  font-size: clamp(26px, 2.23vw, 36px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.qz__sub { margin: -12px 0 0; font-size: 16px; line-height: 1.4; color: var(--muted2); }
.qz__label { margin: 0 0 -10px; font-size: 16px; font-weight: 500; }
.qz-grid { display: grid; gap: 12px; }
.qz-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qz-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qz-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 0 20px;
  border: 1px solid var(--line2);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.qz-opt input,
.qz-consent input { position: absolute; opacity: 0; pointer-events: none; }
.qz-opt:hover { border-color: rgba(28, 23, 20, 0.4); }
.qz-opt i,
.qz-consent i {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(28, 23, 20, 0.35);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.qz-opt input[type="radio"] + span + i { border-radius: 50%; }
.qz-opt:has(input:checked) { background: var(--ink2); border-color: var(--ink2); color: #fff; }
.qz-opt input:checked + span + i { border-color: #fff; background: #fff; }
.qz-opt input[type="radio"]:checked + span + i::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--ink2);
}
.qz-opt input[type="checkbox"]:checked + span + i::after,
.qz-consent input:checked + i::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid var(--ink2);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.qz-consent input:checked + i { border-color: var(--ink2); }
.qz-opt:has(input:focus-visible),
.qz-consent:has(input:focus-visible) i { outline: 1px solid var(--ink2); outline-offset: 3px; }
.qz-fields { display: grid; gap: 12px; }
.qz-field { display: block; }
.qz-field input {
  width: 100%;
  height: 64px;
  padding: 0 20px;
  border: 1px solid var(--line2);
  border-radius: 0;
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.qz-field input::placeholder { color: var(--muted2); }
.qz-field input:focus { border-color: var(--ink2); }
.qz-field.is-error input,
.qz-consent.is-error i { border-color: #b3261e; }
.qz-consent {
  position: relative;
  display: flex;
  gap: 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted2);
  cursor: pointer;
}
.qz-consent i { margin-top: 1px; }
.qz-link { color: var(--ink2); text-decoration: underline; text-underline-offset: 2px; }
.qz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
}
.qz-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 22px 4px;
  border: 0;
  background: none;
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.qz-back svg { width: 19px; height: 9px; transition: transform 0.4s var(--ease); }
.qz-back:hover svg { transform: translateX(-4px); }
.qz-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(360px, 62%);
  min-height: 60px;
  padding: 0 28px;
  border: 0;
  background: var(--ink2);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.qz-next .svc-arrow { width: 19px; height: 9px; }
.qz-next:hover:not(:disabled) { background: #3a322d; }
.qz-next:hover:not(:disabled) .svc-arrow { transform: translateX(4px); }
.qz-next:disabled { opacity: 0.4; cursor: default; }
.qz-nav--single .qz-next { width: 100%; }
.qz-done {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex: 1;
  animation: qz-in 0.8s var(--ease-expo) both;
}
.qz-done[hidden] { display: none; }
.qz-done__mark { width: 34px; height: 34px; color: var(--ink2); }
.qz-done__mark svg { width: 100%; height: 100%; }
.qz-done .qz__sub { margin: -8px 0 0; max-width: 30em; }
.qz-again {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink2);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
/* ---------- появление при прокрутке ---------- */
.js [data-reveal] .svc__head,
.js [data-reveal] .svc-slot,
.js [data-reveal] .svc__progress,
.js [data-reveal] .qz__left > *,
.js [data-reveal] .qz__card {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease-expo) var(--d, 0s);
}
.js [data-reveal] .svc-slot { transform: translate3d(0, 24px, 0); }
.js [data-reveal].is-in .svc__head,
.js [data-reveal].is-in .svc-slot,
.js [data-reveal].is-in .svc__progress,
.js [data-reveal].is-in .qz__left > *,
.js [data-reveal].is-in .qz__card { opacity: 1; transform: none; }
/* ---------- адаптив ---------- */
@media (min-width: 1680px) {
  .svc-card__text { font-size: 14px; }
  .svc-card__price { font-size: 17px; }
  .svc-btn { font-size: 13px; }
}
@media (max-width: 1279px) {
  .svc { --svc-card: calc((var(--svc-w, 100vw) - 2 * var(--gutter) - 2 * var(--svc-gap)) / 3.2); }
}
@media (max-width: 1023px) {
  .svc { --svc-card: calc((var(--svc-w, 100vw) - 2 * var(--gutter) - var(--svc-gap)) / 2.25); --svc-step: 56px; }
  .svc__head { flex-direction: column; }
  .svc__side { width: 100%; flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .svc__lead { text-align: left; }
  .qz { grid-template-columns: 1fr; }
  .qz__photo { flex: none; min-height: 0; aspect-ratio: 4 / 3; }
  .qz__card { min-height: 0; }
}
@media (max-width: 767px) {
  .svc { --svc-gap: 12px; --svc-card: 78vw; --svc-step: 32px; }
  .svc__title,
  .qz__title { font-size: min(8.4vw, 40px); }
  .svc__title br { display: none; }
  .svc__lead { font-size: 15px; }
  .svc__lead br { display: none; }
  .svc__side { flex-direction: column; align-items: flex-start; gap: 18px; }
  .svc__viewport { margin-top: 24px; cursor: auto; }
  .svc__track { padding-bottom: 28px; }
  .svc-card__title { font-size: 22px; }
  .svc__progress { gap: 16px; }
  .qz { gap: 28px; padding-top: 48px; padding-bottom: 48px; }
  .qz__left { gap: 18px; }
  .qz__lead { font-size: 15px; }
  .qz__photo { aspect-ratio: 1 / 1; }
  .qz__badge-box b { font-size: 15px; }
  .qz__badge-box span { font-size: 11px; }
  .qz__card { padding: 28px 20px 24px; }
  .qz__q { font-size: 24px; }
  .qz-step { gap: 20px; }
  .qz__sub { font-size: 14px; margin-top: -8px; }
  .qz-opt { min-height: 54px; padding: 0 16px; font-size: 15px; }
  .qz-field input { height: 56px; font-size: 15px; padding: 0 16px; }
  .qz-next { width: auto; flex: 1; padding: 0 20px; }
  .qz-back { padding: 18px 2px; }
}
@media (max-width: 560px) {
  [data-step="1"] .qz-grid--2,
  [data-step="3"] .qz-grid--2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .qz-step.is-active,
  .qz-done { animation: none; }
}
/* на десктопе лента обрезана по полям, как в макете; на планшете и телефоне соседняя карточка выглядывает */
@media (min-width: 1024px) {
  .svc__viewport { clip-path: inset(-40px var(--gutter) -60px var(--gutter)); }
}
@media (max-width: 767px) {
  .svc { --svc-card: 74vw; }
  .svc-card__price { font-size: 15px; white-space: nowrap; }
  .svc-card__foot { gap: 10px; }
  .svc-btn { padding: 9px 12px; gap: 8px; }
}
@media (max-width: 359px) {
  .svc { --svc-card: 80vw; }
}
/* карточки услуг: на 10% крупнее, больше воздуха; четвёртая чуть уходит за правый край */
.svc {
  --svc-gap: clamp(20px, 1.95vw, 36px);
  --svc-card: calc((var(--svc-w, 100vw) - 2 * var(--gutter) - 3 * var(--svc-gap)) / 4 * 1.1);
}
@media (min-width: 1024px) {
  .svc__viewport { clip-path: inset(-40px 0 -60px var(--gutter)); }
}
/* подзаголовок — ровно две строки, переносы заданы в разметке */
.svc-card__text { min-height: 2.8em; text-wrap: balance; }
.svc-card--cta .svc-card__text { min-height: 0; }
@media (max-width: 1279px) {
  .svc { --svc-card: calc((var(--svc-w, 100vw) - 2 * var(--gutter) - 2 * var(--svc-gap)) / 3.2 * 1.1); }
}
@media (max-width: 1023px) {
  .svc { --svc-card: calc((var(--svc-w, 100vw) - 2 * var(--gutter) - var(--svc-gap)) / 2.25 * 1.05); }
  .svc-card__text br { display: none; }
}
@media (max-width: 767px) {
  .svc { --svc-gap: 14px; --svc-card: 76vw; }
}
/* ---------- квиз: выше, больше воздуха; фото Алины сдвинуто вправо, чтобы плашка встала на белую стену ---------- */
.qz { padding-top: clamp(56px, 5vw, 96px); padding-bottom: clamp(88px, 8vw, 150px); }
.qz__card { min-height: clamp(640px, 50vw, 780px); }
.qz__photo {
  --shift: 15%;
  background: rgb(221, 220, 226);
}
.qz__photo img {
  transform: translateX(var(--shift));
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%);
  mask-image: linear-gradient(to right, transparent 0, #000 9%);
}
/* знак — над плашкой с именем, по одной левой линии */
.qz__badge { left: clamp(14px, 4%, 28px); top: 21%; padding: 30px 0 0; }
.qz__badge-mark { left: 0; top: 0; width: 24px; height: 24px; }
@media (max-width: 1023px) {
  .qz { padding-bottom: 72px; }
  .qz__card { min-height: 0; }
  .qz__photo { --shift: 12%; }
}
@media (max-width: 767px) {
  .qz__photo { --shift: 14%; }
  .qz__badge { top: 18%; padding-top: 28px; }
}
/* ---------- услуги: кнопки выше, зум фото сильнее, линия прогресса ниже ---------- */
.svc-btn { padding: 12px 18px; font-size: 13px; }
.svc-card:hover .svc-card__photo img { transform: scale(1.09); }
.svc__track { padding-bottom: clamp(44px, 3.6vw, 64px); }
.svc__progress { margin-top: 0; }
.svc { padding-bottom: clamp(28px, 2.4vw, 44px); }
@media (max-width: 767px) {
  .svc-btn { padding: 11px 13px; font-size: 12px; }
}
/* ---------- стрелки в шапке услуг: полупрозрачные контуры, при наведении заливаются (выбран вариант A) ---------- */
.svc__nav { align-items: center; }
.svc[data-arrows="a"] .svc__arrow,
.svc[data-arrows="a"] .svc__arrow--next { background: transparent; border-color: rgba(28, 23, 20, 0.22); color: rgba(28, 23, 20, 0.5); }
.svc[data-arrows="a"] .svc__arrow:hover:not(:disabled) { background: var(--ink2); border-color: var(--ink2); color: #fff; }
.svc[data-arrows] .svc__arrow:disabled { opacity: 0.4; }
/* живой фон первого экрана: видео лежит поверх фото в том же кадре */
.v2 .v2-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.v2 .v2-video.is-playing { opacity: 1; }
/* ---------- кейсы, вариант 2: всплывающее окно с фото ---------- */
.cpop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  font-family: var(--font-display);
  color: #fff;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.cpop[hidden] { display: none; }
.cpop.is-open { opacity: 1; }
.cpop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.cpop__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 2.4vw, 36px);
  width: 100%;
  padding: clamp(24px, 3vw, 48px) 0;
  transform: translate3d(0, 30px, 0);
  transition: transform 0.7s var(--ease-expo);
}
.cpop.is-open .cpop__panel { transform: none; }
.cpop__head,
.cpop__foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 0 var(--gutter); }
.cpop__foot { align-items: center; justify-content: flex-end; gap: 12px; }
.cpop__info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cpop__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cpop__tags .cases__tag { font-size: 12px; padding: 9px 16px 8px; }
.cpop__title { margin: 0; font-size: clamp(26px, 2.6vw, 44px); font-weight: 400; line-height: 1.05; letter-spacing: -0.03em; }
.cpop__meta { margin: 0; font-size: 16px; color: rgba(255, 255, 255, 0.65); }
.cpop__count { margin-right: 6px; font-size: 13px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.cpop__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.5s var(--ease-expo);
}
.cpop__close svg { width: 18px; height: 18px; }
.cpop__close:hover { background: #fff; color: #0a0a0a; transform: rotate(90deg); }
.cpop__gallery {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
  outline: none;
}
.cpop__gallery::-webkit-scrollbar { display: none; }
.cpop__track { display: flex; gap: clamp(12px, 1.2vw, 20px); width: max-content; padding: 0 50vw; margin: 0 -50vw; }
.cpop__track { padding: 0 calc(50vw - 20vw); margin: 0; }
.cpop__slide {
  flex: none;
  height: min(62svh, 46vw, 720px);
  aspect-ratio: var(--r, 1.5);
  margin: 0;
  overflow: hidden;
  background: #141414;
  scroll-snap-align: center;
  cursor: pointer;
  opacity: 0;
  transform: translate3d(60px, 0, 0);
  transition: opacity 0.8s var(--ease) var(--d, 0s), transform 1s var(--ease-expo) var(--d, 0s), filter 0.5s var(--ease);
  filter: brightness(0.55);
}
.cpop.is-open .cpop__slide { opacity: 1; transform: none; }
.cpop .cpop__slide.is-active { filter: none; }
.cpop__slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
@media (max-width: 767px) {
  .cpop__panel { justify-content: flex-start; padding-top: 20px; }
  .cpop__close { width: 44px; height: 44px; }
  .cpop__slide { height: min(56svh, 120vw); }
  .cpop__track { padding: 0 8vw; }
  .cpop__foot { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .cpop,
  .cpop__panel,
  .cpop__slide { transition: none; }
}
/* плавная загрузка: фото проявляются по готовности, полоса прогресса — после расчёта положения */
.js .svc-card__photo img,
.js .qz__photo img { opacity: 0; transition: opacity 0.8s var(--ease), transform 1.2s var(--ease-expo); }
.js .svc-card__photo img.is-ready,
.js .qz__photo img.is-ready { opacity: 1; }
.svc__bar { opacity: 0; transition: opacity 0.4s var(--ease); }
.svc__bar.is-ready { opacity: 1; }
/* кнопки квиза — тем же шрифтом, что «Рассчитать мероприятие» на первом экране */
.qz-next,
.qz-back {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.qz-next { min-height: 63px; }
/* плашка «Алина Юсупова» — как в макете: знак у левого верхнего угла, чуть заходит на плашку */
.qz__badge { padding: 14px 0 0 10px; }
.qz__badge-mark { left: 0; top: 0; width: 22px; height: 22px; z-index: 1; }
@media (max-width: 767px) {
  .qz__badge { padding: 13px 0 0 9px; }
}
/* на самых узких экранах плашка компактнее — фото меньше сдвигается */
@media (max-width: 420px) {
  .qz__badge-box { padding: 5px 9px 6px; }
  .qz__badge-box b { font-size: 13px; }
  .qz__badge-box span { font-size: 10px; }
  .qz__badge { left: 10px; }
}
/* переносы только для телефона / только для десктопа */
@media (max-width: 767px) {
  .qz__lead { font-size: min(4vw, 15px); }
  /* фото Алины ниже: от макушки до фруктов — вопросы квиза поднимаются выше */
  .qz__photo { aspect-ratio: 9 / 5.4; }
  .qz__photo img { object-position: 10% 44%; }
  .qz__badge { top: 24%; }
}
/* первый экран на телефоне: текст выше и компактнее, чтобы подзаголовок не упирался в еду */
@media (max-width: 767px) {
  .v2-body { padding-top: clamp(10px, 2svh, 20px); }
  .v2-note--right { margin-top: 12px; gap: 8px; }
  .v2-note__mark { width: 16px; height: 16px; }
}
/* страница никогда не сдвигается вбок: всё, что шире экрана, обрезается на уровне окна */
html { overflow-x: hidden; }
body { overflow-x: clip; }
/* на сенсорных экранах — без размытия под тегами и стеклом: это самое тяжёлое при прокрутке */
@media (hover: none), (max-width: 767px) {
  .case-card__tag,
  .cases__tag {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(10, 10, 10, 0.5);
  }
  .cpop__backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(8, 8, 8, 0.95);
  }
  .cases__track,
  .cases__gtrack { will-change: auto; }
}
/* подсказка «Листайте вправо» — только на телефоне, справа от стрелок */
.svc__swipe { display: none; }
@media (max-width: 767px) {
  .svc__swipe {
    display: block;
    margin-left: 10px;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted2);
  }
}
/* телефон: лента кейсов прижата к подзаголовку — без пустоты над карточками */
@media (max-width: 767px) {
  .cases__strip { top: 0; transform: none; }
}
/* ======================================================================
   АДАПТИВ ПО МЕТОДИКЕ (блоки 1–3)
   Размеры текста и отступов — только clamp(мин, rem + масштаб, потолок):
   rem держит увеличение страницы и крупный системный шрифт, масштаб — экран.
   Норма — макет 1440×859. Общий контейнер — до 2400px.
   ====================================================================== */
.v2 {
  /* поля по краям: 20px на телефоне → 61px на 1440 (как в макете) → 80px потолок */
  --gutter: clamp(20px, 0.5rem + 3.68vw, 80px);
  /* поля так, чтобы содержимое не шире 2400px, а фон и фото — на всю ширину */
  --edge: max(var(--gutter), calc((100% - 2400px) / 2));
}
/* ---------- 1. ПЕРВЫЙ ЭКРАН ----------
   Фото и видео — всегда на весь экран. Всё содержимое меряется шкалой --k:
   меньшее из «1% ширины» и «доли высоты» (на 1440×859 обе = 14.4px).
   На низком окне шкала падает — текст, кнопки и отступы уменьшаются вместе,
   расположение из макета сохраняется и ничего не наезжает. */
.v2 .hero {
  --k: min(1vw, 1.676svh);
  height: 100svh;
  min-height: 520px;
  max-height: none;
  padding: calc(2.08 * var(--k)) var(--edge) clamp(16px, 0.25rem + 2.04 * var(--k), 56px);
}
/* шапка */
.v2 .logo__mark { width: clamp(96px, 8.33 * var(--k), 200px); }
.v2 .logo__tagline { font-size: clamp(11px, 0.25rem + 0.694 * var(--k), 22px); }
.v2 .nav { margin-left: calc(5.4 * var(--k)); padding-right: calc(1.67 * var(--k)); }
.v2 .nav__list { gap: clamp(10px, 1.6 * var(--k), 40px); }
.v2 .nav__list a { font-size: clamp(11px, 0.25rem + 0.694 * var(--k), 22px); }
.v2 .phone { font-size: clamp(13px, 0.25rem + 0.833 * var(--k), 26px); }
.v2 .header__contacts { gap: clamp(14px, 1.67 * var(--k), 40px); }
.v2 .header__contacts .phone { margin-right: calc(4.6 * var(--k)); }
.v2 .socials { gap: clamp(8px, 0.83 * var(--k), 20px); }
.v2 .social,
.v2 .social svg { width: clamp(32px, 2.64 * var(--k), 62px); height: clamp(32px, 2.64 * var(--k), 62px); }
.v2 .header__contacts .btn--sm {
  height: clamp(36px, 2.92 * var(--k), 68px);
  padding: 0 clamp(16px, 1.8 * var(--k), 42px);
  font-size: clamp(11px, 0.25rem + 0.556 * var(--k), 18px);
}
/* заголовок и заметки */
.v2 .v2-title {
  top: calc(9.65 * var(--k));
  font-size: clamp(30px, 0.25rem + 4.44 * var(--k), 130px);
}
.v2 .v2-note { gap: calc(1.25 * var(--k)); width: auto; }
.v2 .v2-note__text { font-size: clamp(13px, 0.25rem + 0.972 * var(--k), 30px); }
.v2 .v2-note__mark { width: clamp(16px, 1.74 * var(--k), 40px); height: clamp(16px, 1.74 * var(--k), 40px); }
/* низ: факты и кнопки */
.v2 .facts { gap: calc(1.875 * var(--k)); }
.v2 .fact { gap: calc(0.35 * var(--k)); font-size: clamp(12px, 0.25rem + 0.764 * var(--k), 24px); }
.v2 .fact svg { width: clamp(18px, 1.67 * var(--k), 38px); height: clamp(18px, 1.67 * var(--k), 38px); }
.v2 .actions { gap: calc(1.1 * var(--k)); }
.v2 .actions .btn {
  height: clamp(48px, 4.375 * var(--k), 100px);
  padding: 0 clamp(18px, 1.94 * var(--k), 46px);
  gap: clamp(12px, 1.25 * var(--k), 30px);
  font-size: clamp(11px, 0.25rem + 0.556 * var(--k), 18px);
}
.v2 .actions .btn__arrow { width: clamp(16px, 1.32 * var(--k), 30px); }
/* телефон: свой поток сверху вниз, размеры тоже через clamp */
@media (max-width: 767px) {
  .v2 .hero { height: auto; min-height: 100svh; padding-top: 16px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .v2 .v2-title { top: auto; font-size: clamp(28px, 0.5rem + 7.2vw, 46px); }
  .v2 .v2-note__text { font-size: clamp(14px, 0.75rem + 0.9vw, 16px); }
  .v2 .v2-note__mark { width: 16px; height: 16px; }
  .v2 .logo__mark { width: clamp(96px, 26vw, 120px); }
  .v2 .logo__tagline { font-size: clamp(11px, 0.6rem + 0.6vw, 13px); }
  .v2 .fact { font-size: clamp(12px, 0.6rem + 0.9vw, 14px); }
  .v2 .fact svg { width: 20px; height: 20px; }
  .v2 .actions .btn { height: 52px; font-size: clamp(11px, 0.6rem + 0.5vw, 13px); padding: 0 20px; }
}
/* ---------- 2. УСЛУГИ ----------
   Карточки не растягиваются: меняется число карточек на экране (--per),
   последняя всегда чуть выглядывает — видно, что лента листается. */
.svc {
  --per: 3.6;
  --svc-gap: clamp(14px, 0.5rem + 1.4vw, 48px);
  --svc-card: calc((min(var(--svc-w, 100vw), 2400px + 2 * var(--gutter)) - 2 * var(--gutter) - (var(--per) - 0.6) * var(--svc-gap)) / var(--per));
  --svc-step: clamp(32px, 1rem + 5.2vw, 150px);
  padding: clamp(56px, 1.5rem + 3vw, 140px) 0 clamp(32px, 1rem + 1.4vw, 72px);
}
@media (max-width: 767px) {
  .svc { --per: 1.18; }
}
@media (min-width: 768px)  and (max-width: 1279px) {
  .svc { --per: 2.3; }
}
@media (min-width: 1680px) and (max-width: 2239px) {
  .svc { --per: 4.6; }
}
@media (min-width: 2240px) {
  .svc { --per: 5.6; }
}
.svc__head,
.svc__progress { padding-left: var(--edge); padding-right: var(--edge); }
.svc__track { padding-left: var(--edge); padding-right: var(--edge); }
.svc__viewport { scroll-padding-inline: var(--edge); }
@media (min-width: 1024px) {
  .svc__viewport { clip-path: inset(-40px 0 -60px var(--edge)); }
}
.svc__title,
.qz__title { font-size: clamp(30px, 1rem + 2.22vw, 76px); line-height: 1.06; }
.svc__lead,
.qz__lead { font-size: clamp(15px, 0.85rem + 0.31vw, 26px); line-height: 1.4; max-width: 32em; }
.svc__head { gap: clamp(20px, 1rem + 2vw, 80px); }
.svc__arrow { height: clamp(40px, 1.5rem + 1.11vw, 64px); width: calc(clamp(40px, 1.5rem + 1.11vw, 64px) * 1.4); }
.svc__arrow svg { width: clamp(17px, 0.7rem + 0.55vw, 30px); }
.svc__count { font-size: clamp(12px, 0.55rem + 0.22vw, 16px); }
.svc__swipe { font-size: clamp(11px, 0.6rem + 0.3vw, 13px); }
.svc-card { padding: clamp(6px, 0.25rem + 0.28vw, 14px) clamp(6px, 0.25rem + 0.28vw, 14px) clamp(10px, 0.4rem + 0.4vw, 20px); }
.svc-card__body { gap: clamp(8px, 0.4rem + 0.28vw, 16px); padding: clamp(14px, 0.6rem + 0.55vw, 30px) clamp(10px, 0.5rem + 0.28vw, 20px) clamp(4px, 0.25rem + 0.1vw, 10px); }
.svc-card__title { font-size: clamp(20px, 1rem + 0.55vw, 34px); line-height: 1.08; }
.svc-card__text { font-size: clamp(13px, 0.65rem + 0.2vw, 17px); line-height: 1.5; }
.svc-card__price { font-size: clamp(15px, 0.85rem + 0.17vw, 21px); }
.svc-btn {
  min-height: clamp(44px, 1.75rem + 0.75vw, 60px);
  padding: 0 clamp(12px, 0.6rem + 0.5vw, 26px);
  gap: clamp(8px, 0.4rem + 0.15vw, 14px);
  font-size: clamp(12px, 0.7rem + 0.13vw, 16px);
}
.svc-card--cta { padding: clamp(18px, 0.8rem + 0.6vw, 36px) clamp(18px, 0.8rem + 0.8vw, 40px) clamp(20px, 0.8rem + 0.8vw, 40px); }
.svc-card__cta-title { font-size: clamp(24px, 1rem + 0.83vw, 44px); line-height: 1.1; }
.svc-card--cta .svc-card__text { font-size: clamp(14px, 0.75rem + 0.14vw, 18px); }
.svc-pill { font-size: clamp(11px, 0.55rem + 0.15vw, 14px); }
/* ---------- 3. КВИЗ ---------- */
.qz {
  padding: clamp(56px, 1.5rem + 3vw, 140px) var(--edge) clamp(72px, 2rem + 4.5vw, 180px);
  gap: clamp(28px, 1rem + 2vw, 80px) clamp(40px, 1rem + 4.4vw, 140px);
}
.qz__left { gap: clamp(16px, 0.75rem + 0.8vw, 36px); }
.qz__badge-box b { font-size: clamp(14px, 0.85rem + 0.24vw, 24px); }
.qz__badge-box span { font-size: clamp(10px, 0.55rem + 0.22vw, 16px); }
.qz__card {
  min-height: clamp(560px, 20rem + 28vw, 1100px);
  padding: clamp(24px, 1rem + 1.6vw, 64px) clamp(20px, 1rem + 2.2vw, 80px);
}
.qz-step { gap: clamp(18px, 0.9rem + 0.6vw, 36px); }
.qz__q { font-size: clamp(24px, 1rem + 1.11vw, 48px); line-height: 1.12; }
.qz__sub,
.qz__label { font-size: clamp(14px, 0.85rem + 0.17vw, 20px); line-height: 1.5; }
.qz-grid { gap: clamp(10px, 0.5rem + 0.28vw, 18px); }
.qz-opt {
  min-height: clamp(52px, 2.6rem + 1.28vw, 88px);
  padding: 0 clamp(16px, 0.9rem + 0.4vw, 30px);
  font-size: clamp(15px, 0.85rem + 0.17vw, 21px);
}
.qz-opt i,
.qz-consent i { width: clamp(18px, 0.9rem + 0.15vw, 24px); height: clamp(18px, 0.9rem + 0.15vw, 24px); }
.qz-field input { height: clamp(54px, 2.8rem + 1.33vw, 92px); padding: 0 clamp(16px, 0.9rem + 0.4vw, 30px); font-size: clamp(15px, 0.85rem + 0.17vw, 21px); }
.qz-consent { font-size: clamp(13px, 0.65rem + 0.2vw, 17px); line-height: 1.5; }
.qz-next {
  min-height: clamp(52px, 2.6rem + 1.5vw, 92px);
  padding: 0 clamp(20px, 1rem + 0.8vw, 44px);
  font-size: clamp(12px, 0.55rem + 0.22vw, 16px);
}
.qz-back { font-size: clamp(12px, 0.55rem + 0.22vw, 16px); min-height: 44px; }
.qz-next .svc-arrow,
.qz-back svg { width: clamp(17px, 0.7rem + 0.55vw, 30px); }
@media (max-width: 767px) {
  .svc__arrow { height: 44px; width: 60px; }
}
/* планшет: заметки и факты первого экрана не мельче читаемого */
@media (min-width: 768px) and (max-width: 1023px) {
  .v2 .v2-note__text { font-size: clamp(14px, 0.5rem + 0.9vw, 16px); }
  .v2 .fact { font-size: clamp(12px, 0.5rem + 0.6vw, 14px); }
}
/* цена в карточке всегда в одну строку */
.svc-card__price { white-space: nowrap; }
/* квиз на больших экранах — без пустоты между вариантами и кнопкой */
.qz__card { min-height: clamp(560px, 20rem + 28vw, 860px); }
/* телефон: фото опущено (см. main.js), сверху — тот же тёмный цвет, что у края снимка,
   переход мягкий — шва не видно; заголовок дальше от логотипа */
@media (max-width: 767px) {
  .v2 .hero__bg { background: rgb(24, 11, 13); }
  .v2 .hero__media {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%);
  }
  .v2-body { padding-top: clamp(28px, 5svh, 48px); }
}
/* ---------- единый стандарт заголовков блоков (H2) ----------
   один размер для «Услуг», квиза и кейсов на любой ширине;
   на телефоне — не больше трёх строк */
.svc__title,
.qz__title,
.cases__title {
  font-size: clamp(28px, 1rem + 2.22vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
/* курсивный акцент Playfair визуально мельче Manrope — чуть подтягиваем */
.svc__title em,
.qz__title em,
.cases__title em { font-size: 1.06em; }
/* мерцание огней: свечи и боке уже живые в видео — отдельный слой не нужен */
.v2-glow { display: none; }
/* «стекло» поверх видео — мягкая тёмная подложка без размытия */
.v2-note::before,
.v2 .facts::before {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.18) 55%, transparent);
}
.v2 .btn--glass {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(16, 9, 10, 0.42);
}
/* появление первого экрана — только прозрачность и сдвиг, без размытия */
.js .v2 .hero__bg {
  filter: none;
  transition: opacity 1.02s cubic-bezier(0.4, 0, 0.2, 1), scale 2.55s var(--ease-expo);
}
.js .v2 .logo,
.js .v2 .nav__list li,
.js .v2 .header__contacts .phone,
.js .v2 .socials li,
.js .v2 .burger {
  filter: none;
  transition: opacity 0.59s var(--ease) var(--d, 0s), transform 0.81s var(--ease-expo) var(--d, 0s);
}
.js .v2-c {
  filter: none;
  transition: opacity 0.55s var(--ease) var(--d, 0s), transform 0.89s var(--ease-expo) var(--d, 0s);
}
.js .v2-title__accent-in {
  filter: none;
  transition: opacity 0.38s var(--ease) var(--d, 0s), clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1) var(--d, 0s), transform 1.19s var(--ease-expo) var(--d, 0s);
}
.js .v2-w {
  filter: none;
  transition: opacity 0.55s var(--ease) var(--d, 0s), transform 0.72s var(--ease-expo) var(--d, 0s);
}
.js .cases__label,
.js .cases__title,
.js .cases__lead,
.js .cases__bar {
  filter: none;
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1.2s var(--ease-expo) var(--d, 0s);
}
.js .cases:not(.is-in) .case-card__in { filter: none; }
/* теги на движущихся карточках кейсов — без размытия фона */
.case-card__tag,
.cases__tag {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(10, 10, 10, 0.45);
}
/* ---------- прелоадер: логотип и тонкая линия, пока готовится первый экран ---------- */
.v2-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 0.8rem + 0.8vw, 32px);
  background: #0a0a0a;
  transition: opacity 0.7s var(--ease) 0.1s, visibility 0s linear 0.8s;
}
.v2-loader img { width: clamp(110px, 5rem + 4vw, 220px); height: auto; opacity: 0.92; }
.v2-loader__line {
  position: relative;
  width: clamp(110px, 5rem + 4vw, 220px);
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}
.v2-loader__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform-origin: 0 50%;
  animation: v2-load 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes v2-load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.is-loaded .v2-loader,
.no-js .v2-loader { opacity: 0; visibility: hidden; pointer-events: none; }
/* заголовок квиза — в две строки: «Рассчитаем кейтеринг / для вашего мероприятия» */
.qz__title { text-wrap: balance; }
@media (max-width: 767px) {
  .qz__title { font-size: min(7.2vw, 28px); }
  /* подзаголовок — в две строки */
  .qz__lead { font-size: min(3.75vw, 15px); max-width: none; text-wrap: balance; }
  /* фото на 10px ниже — срезаем сверху стену, голова остаётся в кадре */
  .qz__photo { flex: none; aspect-ratio: auto; height: calc((100vw - 2 * var(--gutter)) * 0.6 - 10px); }
  /* «главный супервайзер» читается: крупнее и темнее */
  .qz__badge-box span { font-size: 11.5px; color: #5c5c5c; }
}
@media (max-width: 420px) {
  .qz__badge-box span { font-size: 10.5px; color: #5c5c5c; }
}
/* до десктопа подсказка кейсов — всегда «листайте», без курсора */
@media (max-width: 1023px) {
  .cases__hint--hover { display: none; }
  .cases__hint--touch { display: inline; }
}
/* ---------- прелоадер: МЯТА «пишется от руки» ----------
   каждая буква сначала прорисовывается тонким контуром, затем заливается;
   буквы идут друг за другом и укладываются примерно в секунду */
.v2-loader__logo { width: clamp(130px, 5rem + 5vw, 260px); height: auto; overflow: visible; }
.v2-loader__logo path {
  fill: #fff;
  fill-opacity: 0;
  stroke: #fff;
  stroke-width: 0.35;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation:
    v2-ink 0.55s cubic-bezier(0.55, 0.1, 0.35, 1) calc(0.15s + var(--i) * 0.22s) forwards,
    v2-fill 0.4s ease-out calc(0.5s + var(--i) * 0.22s) forwards;
}
@keyframes v2-ink { to { stroke-dashoffset: 0; } }
@keyframes v2-fill { to { fill-opacity: 1; stroke-opacity: 0; } }
.v2-loader__line::after { animation-duration: 1.45s; }
@media (prefers-reduced-motion: reduce) {
  .v2-loader__logo path { animation: none; fill-opacity: 1; stroke: none; }
}
/* услуги на больших экранах: промежутки на 20% меньше, карточки на ~18% шире */
@media (min-width: 1680px) {
  .svc { --svc-gap: clamp(14px, 0.4rem + 1.12vw, 38px); }
}
@media (min-width: 1680px) and (max-width: 2239px) {
  .svc { --per: 3.9; }
}
@media (min-width: 2240px) {
  .svc { --per: 4.75; }
}
/* ======================================================================
   5. БЕСПЛАТНАЯ ДЕГУСТАЦИЯ (макет 666:3414)
   Слева — текст и четыре строки, при наведении у строки появляется фото-карточка;
   справа — фото на половину экрана и форма-билет поверх. На телефоне — одна колонка.
   ====================================================================== */
.tst {
  --t-ink: #1c1714;
  --t-mute: #6e645b;
  --t-text: #3b3632;
  --t-line: rgba(28, 23, 20, 0.18);
  --t-pad: clamp(20px, 0.5rem + 3.4vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(640px, 30rem + 26vw, 1500px);
  background: #f2f2f2;
  color: var(--t-ink);
  font-family: var(--font-display);
}
/* --- левая колонка --- */
.tst__left {
  position: relative;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--t-line);
}
.tst__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(14px, 0.6rem + 0.6vw, 32px);
  padding: clamp(56px, 1.5rem + 4.6vw, 200px) var(--t-pad) clamp(40px, 1rem + 3vw, 130px);
  text-align: center;
}
.tst__over,
.tst__name,
.tst-ticket__over {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tst__over { font-size: clamp(11px, 0.55rem + 0.25vw, 17px); }
.tst__title {
  font-weight: 400;
  font-size: clamp(28px, 1rem + 2.22vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.tst__lead {
  max-width: 29em;
  font-size: clamp(15px, 0.85rem + 0.2vw, 22px);
  line-height: 1.4;
  color: var(--t-mute);
}
.tst__rows { list-style: none; margin: 0; padding: 0; }
.tst__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(16px, 1rem + 2vw, 80px);
  padding: clamp(14px, 0.6rem + 0.5vw, 30px) var(--t-pad);
  border-top: 1px solid var(--t-line);
  cursor: default;
  outline: none;
  transition: opacity 0.45s var(--ease);
}
.tst__row:last-child { border-bottom: 1px solid var(--t-line); }
.tst__name {
  font-size: clamp(12px, 0.6rem + 0.25vw, 19px);
  transition: transform 0.55s var(--ease-expo);
}
.tst__desc {
  font-size: clamp(13px, 0.7rem + 0.22vw, 20px);
  line-height: 1.4;
  color: var(--t-text);
}
/* когда одна строка активна — остальные приглушаются, активная чуть сдвигается */
.tst__rows.is-hover .tst__row { opacity: 0.45; }
.tst__rows.is-hover .tst__row.is-active { opacity: 1; }
.tst__row.is-active .tst__name { transform: translateX(clamp(6px, 0.2rem + 0.3vw, 14px)); }
/* фото-карточка у активной строки: переезжает по высоте, кадр внутри сменяется снизу вверх */
.tst__peek {
  --y: 0px;
  position: absolute;
  top: 0;
  left: calc(var(--t-pad) + (100% - 2 * var(--t-pad)) * 0.35);
  z-index: 2;
  width: clamp(72px, 2.5rem + 4.4vw, 190px);
  aspect-ratio: 0.845;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, calc(var(--y) - 50%), 0) rotate(6deg) scale(0.86);
  transition: opacity 0.35s var(--ease), transform 0.6s var(--ease-expo);
}
.tst__peek.is-on {
  opacity: 1;
  transform: translate3d(-50%, calc(var(--y) - 50%), 0) rotate(6deg) scale(1);
}
.tst__peek img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-expo);
}
.tst__peek img.is-in { transform: translateY(0); z-index: 1; }
.tst__peek img.is-out { transform: translateY(-100%); }
.tst__peek img.is-wait { transform: translateY(100%); transition: none; }
.tst__bar {
  margin-top: auto;
  padding: clamp(28px, 1rem + 2vw, 90px) var(--t-pad) clamp(32px, 1rem + 2.2vw, 100px);
  font-size: clamp(16px, 0.9rem + 0.3vw, 26px);
  letter-spacing: -0.02em;
}
.tst__bar em { font-family: var(--font-accent); font-style: italic; letter-spacing: -0.01em; }
/* --- правая колонка: фото и билет --- */
.tst__right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 1rem + 3vw, 140px) var(--t-pad);
  overflow: hidden;
  background: #241c18;
}
.tst__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tst__right::after {
  /* затемнение фото, как в макете */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 12, 10, 0.32);
}
.tst-ticket {
  --notch: clamp(9px, 0.4rem + 0.2vw, 15px);
  position: relative;
  z-index: 1;
  width: min(100%, clamp(320px, 14rem + 13vw, 640px));
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.22));
}
.tst-ticket__top,
.tst-ticket__stub {
  background: #fff;
  padding-inline: clamp(20px, 1rem + 0.6vw, 44px);
}
/* полукруглые вырезы по краям линии отрыва */
.tst-ticket__top {
  padding-top: clamp(24px, 1rem + 0.6vw, 44px);
  padding-bottom: clamp(18px, 0.8rem + 0.4vw, 32px);
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.tst-ticket__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 0.5rem + 0.2vw, 18px);
  padding-top: clamp(22px, 1rem + 0.4vw, 38px);
  padding-bottom: clamp(22px, 1rem + 0.5vw, 40px);
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
}
.tst-ticket__stub::before {
  /* пунктир отрыва */
  content: "";
  position: absolute;
  top: 0;
  left: calc(var(--notch) + 12px);
  right: calc(var(--notch) + 12px);
  border-top: 1px dashed rgba(28, 23, 20, 0.3);
}
.tst-ticket__title {
  font-weight: 400;
  font-size: clamp(24px, 1rem + 0.9vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.tst-ticket__title em { font-family: var(--font-accent); font-style: italic; letter-spacing: -0.01em; }
.tst-ticket__sub {
  margin-top: clamp(8px, 0.4rem + 0.2vw, 14px);
  font-size: clamp(14px, 0.75rem + 0.15vw, 19px);
  line-height: 1.45;
  color: var(--t-mute);
}
.tst-ticket__done .tst-ticket__sub { margin-top: 0; }
.tst-ticket__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: clamp(12px, 0.6rem + 0.2vw, 20px) 0 0;
  padding: 0;
  list-style: none;
}
.tst-ticket__pills li {
  padding: 0.5em 1em;
  border: 1px solid rgba(28, 23, 20, 0.3);
  border-radius: 100px;
  font-size: clamp(12px, 0.6rem + 0.15vw, 16px);
  font-weight: 500;
}
.tst-ticket__over { font-size: clamp(11px, 0.55rem + 0.15vw, 15px); }
.tst-ticket__label { margin-top: 4px; font-size: clamp(13px, 0.65rem + 0.15vw, 17px); font-weight: 500; }
.tst-field input {
  display: block;
  width: 100%;
  height: clamp(48px, 2.4rem + 0.8vw, 72px);
  padding: 0 clamp(14px, 0.8rem + 0.2vw, 22px);
  border: 1px solid var(--t-line);
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: clamp(15px, 0.8rem + 0.15vw, 19px);
  color: var(--t-ink);
  transition: border-color 0.3s var(--ease);
}
.tst-field input::placeholder { color: var(--t-mute); }
.tst-field input:focus { outline: none; border-color: var(--t-ink); }
.tst-field.is-error input { border-color: #b3261e; }
.tst-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tst-chip { position: relative; cursor: pointer; }
.tst-chip input { position: absolute; opacity: 0; pointer-events: none; }
.tst-chip span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 clamp(12px, 0.6rem + 0.2vw, 20px);
  border: 1px solid rgba(28, 23, 20, 0.25);
  font-size: clamp(12px, 0.6rem + 0.15vw, 16px);
  font-weight: 500;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.tst-chip input:checked + span { background: var(--t-ink); border-color: var(--t-ink); color: #fff; }
.tst-chip input:focus-visible + span { outline: 1px solid var(--t-ink); outline-offset: 3px; }
@media (hover: hover) {
  .tst-chip:hover input:not(:checked) + span { border-color: var(--t-ink); }
}
.tst-consent { font-size: clamp(10px, 0.5rem + 0.15vw, 14px); line-height: 1.4; color: var(--t-mute); }
.tst-consent i { width: 16px; height: 16px; }
.tst-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: clamp(52px, 2.6rem + 1vw, 80px);
  margin-top: 4px;
  padding: 0 clamp(18px, 1rem + 0.4vw, 32px);
  border: 0;
  background: var(--t-ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(12px, 0.55rem + 0.2vw, 16px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
}
.tst-submit .svc-arrow { width: clamp(17px, 0.7rem + 0.4vw, 26px); transition: transform 0.5s var(--ease-expo); }
@media (hover: hover) {
  .tst-submit:hover { background: #000; }
  .tst-submit:hover .svc-arrow { transform: translateX(4px); }
}
/* --- планшет и телефон: одна колонка, фото с билетом под текстом --- */
@media (max-width: 1023px) {
  .tst { grid-template-columns: 1fr; min-height: 0; }
  .tst__left { border-right: 0; }
  .tst__right { padding: clamp(40px, 6vw, 72px) var(--t-pad); }
}
@media (max-width: 767px) {
  .tst__row { grid-template-columns: 1fr; gap: 6px; }
  .tst__peek { left: auto; right: var(--t-pad); transform: translate3d(0, calc(var(--y) - 50%), 0) rotate(6deg) scale(0.86); }
  .tst__peek.is-on { transform: translate3d(0, calc(var(--y) - 50%), 0) rotate(6deg) scale(1); }
  .tst__desc br,
  .tst__title br { display: none; }
  .tst__bar { padding-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .tst__peek,
  .tst__peek img,
  .tst__name { transition: none; }
}
.tst [hidden] { display: none; }
.tst__lead { text-wrap: balance; }
/* способы связи в одну строку на любой ширине */
.tst-chips { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; }
@media (max-width: 420px) {
  .tst-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tst-chip span { justify-content: center; padding: 0 4px; }
}
/* --- дегустация: правки ---
   без отступов браузера у заголовков и абзацев — надпись, заголовок и подводка собраны вместе */
:where(.tst) :where(h2, h3, p, figure) { margin: 0; }
.tst__intro { gap: clamp(12px, 0.5rem + 0.4vw, 22px); }
.tst__over { margin-bottom: clamp(2px, 0.1rem + 0.2vw, 8px); }
/* строка: название | пустая колонка под фото-карточку | пояснение — карточка не задевает текст */
.tst { --peek-w: clamp(64px, 2rem + 4vw, 170px); }
.tst__peek { width: var(--peek-w); left: 0; }
.tst__peek,
.tst__peek.is-on { left: 0; }
.tst__peek { transform: translate3d(calc(var(--x, 0px) - 50%), calc(var(--y) - 50%), 0) rotate(6deg) scale(0.86); }
.tst__peek.is-on { transform: translate3d(calc(var(--x, 0px) - 50%), calc(var(--y) - 50%), 0) rotate(6deg) scale(1); }
.tst__row {
  grid-template-columns: minmax(0, 1fr) calc(var(--peek-w) * 1.3) minmax(0, 1.15fr);
  gap: clamp(8px, 0.3rem + 0.6vw, 28px);
}
.tst__name { grid-column: 1; grid-row: 1; }
.tst__slot { grid-column: 2; grid-row: 1; align-self: stretch; }
.tst__desc { grid-column: 3; grid-row: 1; }
@media (max-width: 767px) {
  .tst { --peek-w: 60px; }
  .tst__row { grid-template-columns: minmax(0, 1fr) calc(var(--peek-w) * 1.35); column-gap: 12px; row-gap: 6px; }
  .tst__name { grid-column: 1; grid-row: 1; }
  .tst__desc { grid-column: 1; grid-row: 2; }
  .tst__slot { grid-column: 2; grid-row: 1 / 3; }
  .tst__peek,
  .tst__peek.is-on { right: auto; }
  .tst__peek { transform: translate3d(calc(var(--x, 0px) - 50%), calc(var(--y) - 50%), 0) rotate(6deg) scale(0.86); }
  .tst__peek.is-on { transform: translate3d(calc(var(--x, 0px) - 50%), calc(var(--y) - 50%), 0) rotate(6deg) scale(1); }
}
/* способы связи: четыре равные кнопки в одну строку, пока билет узкий */
@media (max-width: 1023px) {
  .tst-chips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tst-chip span { justify-content: center; padding: 0 4px; }
}
/* согласие в билете: цвета галочки и рамки — те же, что в квизе (переменные квиза здесь не видны) */
.tst { --ink2: #1c1714; --muted2: #6e645b; --line2: rgba(28, 23, 20, 0.18); }
.tst-consent { cursor: pointer; }
/* --- телефон: страница не увеличивается от двойного касания (слайдеры, стрелки, карточки)
       и при касании поля ввода (iOS приближает поля со шрифтом меньше 16px); щипок пальцами работает --- */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 1023px) {
  .qz-field input,
  .tst-field input,
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="number"],
  textarea,
  select { font-size: 16px !important; }
}
/* --- дегустация: абстрактный живой фон вместо фото с едой ---
   цвета пятен меняются здесь, в пяти переменных --c1…--c5 */
.tst__right { background: var(--bg-base); }
.tst__right::after {
  /* лёгкое зерно поверх градиента — фон выглядит дорогим, а не «цифровым» */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.09;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.tst {
  --bg-base: #0f1513;
  --c1: #3fd6a3; /* мята */
  --c2: #0f6e5c; /* глубокий изумруд */
  --c3: #f2a07b; /* персик */
  --c4: #9b8cf0; /* лаванда */
  --c5: #f4dfa3;
}
/* кнопка и крестик — только для телефона */
.tst-open,
.tst-close { display: none; }
.tst-backdrop { display: none; }
/* --- телефон: на блоке крупное приглашение и кнопка, форма — во всплывающем окне снизу --- */
@media (max-width: 767px) {
  .tst__right { min-height: 0; padding: 64px var(--t-pad) 72px; }
  .tst-ticket { width: 100%; }
  /* в блоке: текст прямо на градиенте, без белой карточки */
  .tst-ticket:not(.is-sheet) { filter: none; }
  .tst-ticket:not(.is-sheet) .tst-ticket__stub { display: none; }
  .tst-ticket:not(.is-sheet) .tst-ticket__top { background: transparent; padding: 0; -webkit-mask: none; mask: none; color: #fff; }
  .tst-ticket:not(.is-sheet) .tst-ticket__title { font-size: min(9.4vw, 38px); }
  .tst-ticket:not(.is-sheet) .tst-ticket__sub { color: rgba(255, 255, 255, 0.78); }
  .tst-ticket:not(.is-sheet) .tst-ticket__pills li { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.08); }
  .tst-ticket:not(.is-sheet) .tst-open {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 58px;
    margin-top: 28px;
    padding: 0 22px;
    border: 0;
    background: #fff;
    color: var(--t-ink);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    animation: tst-pulse 2.8s ease-in-out infinite;
  }
  .tst-open .svc-arrow { width: 20px; }
  @keyframes tst-pulse {
    0%, 100% { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(255, 255, 255, 0.45); }
    50%      { box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 0 10px rgba(255, 255, 255, 0); }
  }
  /* всплывающее окно с формой */
  .tst-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(10, 10, 10, 0.55);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
  }
  .tst-backdrop.is-on { opacity: 1; }
  .tst-backdrop[hidden] { display: none; }
  .tst-ticket.is-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 91;
    width: 100%;
    max-height: 92svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    filter: none;
    background: #fff;
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    transform: translate3d(0, 100%, 0);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .tst-ticket.is-sheet.is-open { transform: none; }
  .tst-ticket.is-sheet .tst-ticket__top { border-radius: 18px 18px 0 0; padding-right: 64px; }
  .tst-ticket.is-sheet .tst-close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(28, 23, 20, 0.2);
    border-radius: 50%;
    background: #fff;
    color: var(--t-ink);
    cursor: pointer;
  }
  .tst-close svg { width: 14px; height: 14px; }
  html.tst-locked,
  html.tst-locked body { overflow: hidden; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .tst-open { animation: none !important; }
  .tst-ticket.is-sheet { transition: none; }
}
/* --- кейсы на телефоне и планшете: лента стоит, плашка «Листайте» с пальчиком, который намекает на свайп --- */
.cases-swipe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.cases-swipe__hand {
  width: 20px;
  height: 20px;
  flex: none;
  animation: cases-swipe 2.2s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
@keyframes cases-swipe {
  0%, 15%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  45%       { transform: translate3d(9px, 0, 0) rotate(12deg); }
  60%       { transform: translate3d(9px, 0, 0) rotate(12deg); opacity: 1; }
  75%       { opacity: 0; }
  80%       { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  100%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cases-swipe__hand { animation: none; }
}
/* --- услуги: цена и «Подробнее» всегда помещаются в карточку ---
   шрифт цены считается от ширины самой карточки, длинное «Индивидуальный расчёт» — чуть мельче */
.svc-card { container-type: inline-size; }
.svc-card__foot { gap: clamp(8px, 3cqi, 14px); }
.svc-card__price { flex: 1 1 auto; min-width: 0; font-size: clamp(12px, 5.2cqi, 21px); }
.svc-card__price.is-long { font-size: clamp(12.5px, 4.6cqi, 18px); line-height: 1.15; white-space: normal; text-wrap: balance; letter-spacing: -0.01em; }
.svc-btn { padding-inline: clamp(10px, 4cqi, 16px); }
/* --- мобильное меню: низ — крупный телефон, мессенджеры плитками с подписями, заявка на всю ширину --- */
.v2 .drawer__footer { gap: 0; padding-top: 8px; }
.v2 .drawer .drawer__phone {
  font-size: min(8.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.v2 .drawer__hours { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.v2 .drawer__msgs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.v2 .drawer__msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.v2 .drawer__msg svg { width: 40px; height: 40px; }
.v2 .drawer__msg:active { background: rgba(255, 255, 255, 0.14); border-color: #fff; }
.v2 .drawer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin-top: 8px;
  padding: 0 22px;
  background: #fff;
  color: #0a0a0a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v2 .drawer__cta .svc-arrow { width: 20px; height: 9px; }
.v2 .drawer__footer > * { transform: translateY(14px); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.v2 .drawer.is-open .drawer__footer > * { transform: none; opacity: 1; transition-delay: 0.28s; }
.v2 .drawer.is-open .drawer__footer > :nth-child(3) { transition-delay: 0.33s; }
.v2 .drawer.is-open .drawer__footer > :nth-child(4) { transition-delay: 0.38s; }
@media (max-height: 700px) {
  .v2 .drawer__msg { min-height: 62px; }
  .v2 .drawer__msg svg { width: 32px; height: 32px; }
}
/* --- шапка, которая едет за страницей: появляется, когда первый экран ушёл вверх --- */
.stick {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 12px var(--edge, var(--gutter));
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translate3d(0, -105%, 0);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.stick { --k: min(1vw, 1.676svh); }
.stick.is-on,
html.menu-open .stick { transform: none; }
/* мобильное меню вынесено поверх всей страницы, шапка с крестиком — над ним */
body > .drawer { z-index: 59; }
.stick .header { min-height: 0; }
.v2 .stick .logo { gap: 4px; }
.v2 .stick .logo__mark { width: clamp(76px, 5.6 * var(--k, 1vw), 130px); }
.v2 .stick .logo__tagline { font-size: clamp(10px, 0.2rem + 0.5 * var(--k, 1vw), 15px); }
.v2 .stick .social,
.v2 .stick .social svg { width: clamp(30px, 2.1 * var(--k, 1vw), 46px); height: clamp(30px, 2.1 * var(--k, 1vw), 46px); }
.v2 .stick .header__contacts .btn--sm { height: clamp(34px, 2.4 * var(--k, 1vw), 52px); }
.stick .burger { background: transparent; }
@media (max-width: 767px) {
  .stick { padding: 10px var(--gutter); }
}
@media (prefers-reduced-motion: reduce) {
  .stick { transition: none; }
}
/* --- последняя карточка услуг «Не нашли свой формат?» — по макету Figma (93:624): фото на фоне, светлый текст --- */
.svc-card--cta {
  position: relative;
  overflow: hidden;
  justify-content: flex-start;
  gap: 28px;
  background: #141210;
  color: #fff;
}
.svc-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  pointer-events: none;
}
.svc-card--cta > :not(.svc-card__bg) { position: relative; z-index: 1; }
.svc-card--cta .svc-pill {
  padding: 7px 14px;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  color: #fff;
  letter-spacing: 0.04em;
}
.svc-card--cta .svc-card__cta-title { color: #fff; }
.svc-card--cta .svc-card__text { color: rgba(255, 255, 255, 0.8); line-height: 1.4; }
.svc-card--cta .svc-btn { margin-top: 0; background: #fff; color: #1c1714; }
.svc-card--cta .svc-btn:hover { background: #ece6de; }
/* курсив на «Бесплатная» в заголовке блока */
.tst__title em { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
/* полный просмотр кейса — поверх ездящей шапки и бургера, их крестик не перекрывает */
.cpop { z-index: 80; }
body.is-locked:has(.cpop.is-open) .stick { transform: translate3d(0, -105%, 0); }
/* до 1099px (там, где вместо меню бургер) за страницей едет только квадратик бургера */
@media (max-width: 1099px) {
  .stick {
    left: auto;
    padding: 0;
    top: var(--burger-top, calc(var(--header-top, 16px) + env(safe-area-inset-top, 0px)));
    right: var(--burger-right, var(--edge, var(--gutter)));
    background: none;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: translate3d(0, -160%, 0);
  }
  .stick .header > :not(.burger) { display: none; }
  .stick .header { display: block; }
  .stick .burger {
    display: block;
    margin: 0;
    background: rgba(10, 10, 10, 0.55);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  }
  html.menu-open .stick .burger { background: transparent; box-shadow: none; }
}
/* мобильное меню — по высоте видимой части экрана: кнопка заявки не уходит под панель браузера */
.v2 .drawer {
  bottom: auto;
  height: 100vh;
  height: 100dvh;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  justify-content: flex-start;
}
.v2 .drawer__footer { margin-top: auto; }
@media (max-height: 760px) {
  .v2 .drawer { gap: 18px; padding-top: calc(var(--header-top) + 68px); }
  .v2 .drawer__nav a { padding: 8px 0; font-size: clamp(22px, 6vw, 28px); }
  .v2 .drawer .drawer__phone { font-size: min(7.4vw, 28px); }
  .v2 .drawer__msgs { margin-top: 14px; }
  .v2 .drawer__msg { min-height: 58px; }
  .v2 .drawer__msg svg { width: 30px; height: 30px; }
  .v2 .drawer__cta { min-height: 52px; }
}
/* телефон: форма дегустации всплывает по центру экрана, а не прижата к низу */
@media (max-width: 767px) {
  .tst-ticket.is-sheet {
    left: 12px;
    right: 12px;
    top: 50%;
    bottom: auto;
    width: auto;
    max-height: calc(100dvh - 24px);
    border-radius: 16px;
    padding-bottom: 0;
    transform: translate3d(0, -46%, 0) scale(0.96);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s var(--ease);
  }
  .tst-ticket.is-sheet.is-open { transform: translate3d(0, -50%, 0); opacity: 1; }
  .tst-ticket.is-sheet .tst-ticket__top { border-radius: 16px 16px 0 0; }
  .tst-ticket.is-sheet .tst-ticket__stub { border-radius: 0 0 16px 16px; }
}
/* пока открыта форма дегустации, ездящий бургер прячется */
html.tst-locked .stick { transform: translate3d(0, -160%, 0) !important; }
/* в открытом мобильном меню — логотип слева, крестик справа, как в шапке */
@media (max-width: 1099px) {
  html.menu-open .stick { left: var(--burger-right, var(--gutter)); }
  html.menu-open .stick .header { display: flex; align-items: center; justify-content: space-between; }
  html.menu-open .stick .header > .logo { display: inline-flex; }
}
/* кейсы на телефоне: одна карточка на весь экран, следующая не выглядывает */
@media (max-width: 767px) {
  .cases { --card-w: calc(100vw - 2 * var(--gutter)); --cases-gap: calc(var(--gutter) + 2px); }
}
/* ======================================================================
   7–9. ВИДЕО · ПОЧЕМУ МЫ · МЕНЮ — общая система: те же H2, подводки, линии, кнопки и отступы
   ====================================================================== */
.st,
.why {
  --b-ink: #1c1714;
  --b-mute: #6e645b;
  --b-line: rgba(28, 23, 20, 0.18);
  --b-y: clamp(64px, 1.5rem + 5vw, 200px);
  padding: var(--b-y) var(--edge);
  color: var(--b-ink);
  font-family: var(--font-display);
}
:where(.st, .why, .mn, .stp) :where(h2, h3, p, ul, figure) { margin: 0; padding: 0; }
:where(.st, .why, .mn) ul { list-style: none; }
.st__title,
.why__title {
  font-weight: 400;
  font-size: clamp(28px, 1rem + 2.22vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.st__title em,
.why__title em { font-family: var(--font-accent); font-style: italic; font-size: 1.06em; letter-spacing: -0.01em; }
.st__lead,
.why__lead {
  font-size: clamp(15px, 0.85rem + 0.31vw, 26px);
  line-height: 1.4;
  color: rgba(28, 23, 20, 0.72);
  text-wrap: balance;
}
/* шапка блока: заголовок слева, подводка справа — как у «Услуг» */
.why__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(16px, 1rem + 2vw, 80px);
  margin-bottom: clamp(28px, 1rem + 2.2vw, 96px);
}
.why__lead { max-width: 20em; text-align: right; }
/* тёмная кнопка капсом со стрелкой — как «Записаться на дегустацию» */
.dark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 1rem + 0.5vw, 32px);
  min-height: clamp(52px, 2.6rem + 1vw, 80px);
  padding: 0 clamp(22px, 1rem + 0.6vw, 40px);
  background: var(--b-ink, #1c1714);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(12px, 0.55rem + 0.22vw, 16px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease);
}
.dark-btn .svc-arrow { width: clamp(17px, 0.7rem + 0.4vw, 26px); transition: transform 0.5s var(--ease-expo); }
@media (hover: hover) {
  .dark-btn:hover { background: #000; }
  .dark-btn:hover .svc-arrow { transform: translateX(4px); }
}
/* --- аккордеон (общий для «Почему мы» и меню): плавное раскрытие без прыжков --- */
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-expo); }
.acc-panel__in { min-height: 0; overflow: hidden; }
[data-acc-item].is-open > .acc-panel { grid-template-rows: 1fr; }
.acc-pm { position: relative; flex: none; width: clamp(14px, 0.7rem + 0.3vw, 22px); height: clamp(14px, 0.7rem + 0.3vw, 22px); margin-left: auto; }
.acc-pm::before,
.acc-pm::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1.2px;
  margin-top: -0.6px;
  background: currentColor;
  transition: transform 0.5s var(--ease-expo);
}
.acc-pm::after { transform: rotate(90deg); }
[data-acc-item].is-open .acc-pm::after { transform: rotate(0deg); }
[data-acc-head] {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-margin-top: 96px;
}
[data-acc-head]:focus-visible { outline: 1px solid var(--b-ink); outline-offset: 4px; }
/* ---------------- 7. ВИДЕО ---------------- */
.st {
  --st-w: clamp(220px, 9rem + 12vw, 520px);   /* ширина ролика у центра */
  --st-gap: clamp(12px, 0.5rem + 0.6vw, 28px);
  background: #f2f2f2;
  padding-inline: 0;
  overflow: hidden;
}
.st__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.st__viewport::-webkit-scrollbar { display: none; }
.st__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.st__track {
  display: flex;
  align-items: flex-end;
  gap: var(--st-gap);
  width: max-content;
  padding-inline: calc(50vw - var(--st-w) / 2);
}
.st-card { flex: none; width: var(--st-w); scroll-snap-align: center; }
.st-card__btn { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
/* дуга: ролики у центра крупнее, к краям мельче (масштаб считает blocks.js), низ на одной линии */
.st-card__media {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: clamp(8px, 0.4rem + 0.2vw, 14px);
  background: #1a1412;
  transform: scale(var(--s, 1));
  transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease-expo);
}
.st-card__media img,
.st-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-card__media video { opacity: 0; transition: opacity 0.6s var(--ease); }
.st-card__media video.is-playing { opacity: 1; }
.st-card__play {
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(48px, 2.4rem + 1vw, 72px);
  height: clamp(48px, 2.4rem + 1vw, 72px);
  margin: calc(clamp(48px, 2.4rem + 1vw, 72px) / -2) 0 0 calc(clamp(48px, 2.4rem + 1vw, 72px) / -2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease-expo);
}
.st-card__play::after { content: ""; position: absolute; left: 54%; top: 50%; border: 7px solid transparent; border-left: 11px solid #fff; transform: translate(-30%, -50%); }
@media (hover: hover) {
  .st-card__btn:hover .st-card__play { opacity: 1; transform: none; }
}
.st-card__btn:focus-visible .st-card__media { outline: 1px solid var(--b-ink); outline-offset: 4px; }
.st-card__cap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(8px, 0.4rem + 0.3vw, 16px);
  font-size: clamp(13px, 0.7rem + 0.15vw, 17px);
}
.st-card__name { font-weight: 500; }
.st-card__time { color: var(--b-mute); font-size: 0.92em; font-variant-numeric: tabular-nums; }
.st__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 0.8rem + 0.4vw, 24px);
  margin-top: clamp(20px, 1rem + 0.8vw, 40px);
}
.st__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 0.6rem + 0.4vw, 22px);
  margin-top: clamp(36px, 1rem + 2.6vw, 110px);
  padding-inline: var(--edge);
  text-align: center;
}
.st__title { position: relative; }
.st__mark { position: absolute; top: -0.35em; right: -0.55em; width: 0.4em; height: 0.4em; }
.st__mark svg { display: block; width: 100%; height: 100%; }
.st__lead { max-width: 34em; }
/* полноэкранный просмотр */
.stp {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 6, 5, 0.94);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.stp.is-open { opacity: 1; }
.stp[hidden] { display: none; }
.stp__stage {
  position: relative;
  height: min(92svh, 177.78vw);
  aspect-ratio: 9 / 16;
  max-width: 100vw;
  overflow: hidden;
  border-radius: clamp(0px, 1vw, 14px);
  background: #000;
}
.stp__video { width: 100%; height: 100%; object-fit: cover; }
.stp__bars { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 2; display: flex; gap: 4px; }
.stp__bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.stp__bars i b { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.stp__name { position: absolute; left: 16px; top: 26px; z-index: 2; color: #fff; font-family: var(--font-display); font-size: 14px; font-weight: 500; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.stp__btn {
  position: absolute;
  top: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  cursor: pointer;
}
.stp__close { right: 10px; }
.stp__close svg { width: 14px; height: 14px; }
.stp__sound { right: 60px; }
.stp__sound svg { width: 20px; height: 16px; }
.stp__sound .i-on { display: none; }
.stp__sound.is-on .i-on { display: block; }
.stp__sound.is-on .i-off { display: none; }
.stp__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: none;
  color: #fff;
  cursor: pointer;
}
.stp__nav svg { width: 18px; height: 9px; }
.stp__nav--prev { left: max(16px, calc(50% - min(92svh, 177.78vw) * 9 / 32 - 96px)); }
.stp__nav--next { right: max(16px, calc(50% - min(92svh, 177.78vw) * 9 / 32 - 96px)); }
@media (hover: hover) {
  .stp__nav:hover { background: #fff; color: #000; }
}
/* ---------------- 8. ПОЧЕМУ МЫ ---------------- */
.why {
  display: grid;
  grid-template-columns: minmax(0, 560fr) minmax(0, 680fr);
  grid-template-areas: "head head" "photo body";
  column-gap: clamp(32px, 1rem + 4.4vw, 160px);
  background: #fff;
}
.why__head { grid-area: head; }
.why__photo { grid-area: photo; display: flex; flex-direction: column; gap: clamp(10px, 0.5rem + 0.3vw, 18px); }
.why__photo img { width: 100%; height: 100%; min-height: 0; flex: 1; aspect-ratio: 560 / 626; object-fit: cover; border-radius: 4px; }
.why__photo figcaption { font-family: var(--font-accent); font-style: italic; font-size: clamp(14px, 0.75rem + 0.2vw, 20px); color: #210f14; }
.why__body { grid-area: body; display: flex; flex-direction: column; align-items: flex-start; }
.why__list { width: 100%; border-top: 1px solid var(--b-line); }
.why-item { border-bottom: 1px solid var(--b-line); }
.why-item__head { gap: 0; padding: clamp(14px, 0.7rem + 0.3vw, 24px) 0; }
.why-item__num {
  flex: none;
  width: clamp(44px, 1.5rem + 2.4vw, 110px);
  font-size: clamp(11px, 0.55rem + 0.15vw, 15px);
  letter-spacing: 0.06em;
  color: rgba(28, 23, 20, 0.5);
  font-variant-numeric: tabular-nums;
}
.why-item__title {
  padding-right: 16px;
  font-size: clamp(18px, 0.8rem + 0.75vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: transform 0.5s var(--ease-expo);
}
@media (hover: hover) {
  .why-item__head:hover .why-item__title { transform: translateX(6px); }
}
.why-item__desc {
  max-width: 30em;
  padding: 0 0 clamp(16px, 0.8rem + 0.4vw, 28px) clamp(44px, 1.5rem + 2.4vw, 110px);
  font-size: clamp(14px, 0.75rem + 0.2vw, 20px);
  line-height: 1.45;
  color: var(--b-mute);
}
.why__btn { margin-top: clamp(22px, 1rem + 0.8vw, 40px); }
/* ---------------- планшет ---------------- */
@media (max-width: 1023px) {
  .why { grid-template-columns: 1fr; grid-template-areas: "head" "photo" "body"; row-gap: clamp(24px, 4vw, 40px); }
  .why__head { margin-bottom: 0; }
  .why__photo img { aspect-ratio: 4 / 3; flex: none; }
}
/* ---------------- телефон: ничего не едет само, листают пальцем ---------------- */
@media (max-width: 767px) {
  .why__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .why__lead { text-align: left; }
  .why__btn { align-self: stretch; }
  .st { --st-w: 64vw; --st-gap: 18vw; }
  /* один ролик на экране, соседей не видно */
  .st-card__media { transform: none; }
  .stp__nav { display: none; }
  .stp__stage { height: 100svh; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .acc-panel,
  .st-card__media,
  .acc-pm::before,
  .acc-pm::after { transition: none; }
}
/* лента видео: масштаб и сдвиг ставит blocks.js на карточку; подпись — ровно по ширине своего кадра */
.st-card { transform: translate3d(var(--x, 0px), 0, 0); transition: transform 0.45s var(--ease-expo); }
.st-card__cap { margin-inline: calc((1 - var(--s, 1)) * 50%); transition: margin 0.45s var(--ease-expo); }
.st__viewport.is-dragging .st-card,
.st__viewport.is-dragging .st-card__media,
.st__viewport.is-dragging .st-card__cap { transition: none; }
@media (max-width: 767px) {
  .st-card { transform: none; }
  .st-card__cap { margin-inline: 0; }
}
/* названия пунктов — обычное начертание, как в макете (h3 по умолчанию жирный) */
.why-item__h { font: inherit; font-weight: 400; }
/* открытый кейс: шапка и квадратик бургера уходят целиком (без выглядывающего края),
   на телефоне фон окна плотный — текст блока под ним не просвечивает */
body.is-locked:has(.cpop.is-open) .stick { transform: translate3d(0, -140%, 0); opacity: 0; visibility: hidden; }
@media (max-width: 1023px) {
  .cpop__backdrop { background: rgba(8, 8, 8, 0.97); }
}
/* видео: ролики на 18% ниже (вся лента с заголовком влезает в экран), заголовок ближе к ленте,
   кнопка «плей» видна сразу, при наведении — ярче */
.st { --st-w: calc(clamp(220px, 9rem + 12vw, 520px) * 0.82); }
.st__head { margin-top: clamp(24px, 0.6rem + 1.4vw, 64px); }
.st__nav { margin-top: clamp(16px, 0.8rem + 0.5vw, 30px); }
.st-card__play { opacity: 0.85; transform: none; background: rgba(0, 0, 0, 0.18); }
@media (hover: hover) {
  .st-card__btn:hover .st-card__play { opacity: 1; transform: scale(1.06); }
}
@media (max-width: 767px) {
  .st { --st-w: 64vw; }
}
/* «Почему мы?»: чёткая композиция 40/60 — фото не выше списка, пункты свободнее,
   кнопка во всю ширину списка, как «Получить полное меню» и «Записаться на дегустацию» */
.why {
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  column-gap: clamp(32px, 1rem + 3.6vw, 140px);
  align-items: stretch;
}
.why__photo { position: relative; min-height: 0; }
.why__photo img { position: absolute; inset: 0 0 calc(1.4em + clamp(10px, 0.5rem + 0.3vw, 18px)) 0; height: auto; aspect-ratio: auto; }
.why__photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(11px, 0.55rem + 0.2vw, 15px);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--b-mute);
}
.why__photo figcaption::before { content: ""; width: clamp(24px, 1rem + 1vw, 48px); height: 1px; background: currentColor; opacity: 0.6; }
.why-item__head { padding: clamp(20px, 1rem + 0.7vw, 38px) 0; }
.why-item__desc { padding-bottom: clamp(20px, 1rem + 0.6vw, 34px); }
.why__btn { align-self: stretch; margin-top: clamp(28px, 1rem + 1.4vw, 56px); min-height: clamp(60px, 3rem + 1.2vw, 92px); }
/* планшет и телефон: фото сверху невысоким кадром, подпись под ним */
@media (max-width: 1023px) {
  .why { grid-template-columns: 1fr; }
  .why__photo { position: static; }
  .why__photo img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .why__photo figcaption { position: static; margin-top: 12px; }
}
@media (max-width: 767px) {
  .why__photo img { aspect-ratio: 4 / 3; }
}
/* услуги: следующая карточка выглядывает заметно (~треть ширины) на любом экране, а не узкой полоской */
.svc { --per: 3.5; }
@media (max-width: 767px) {
  .svc { --per: 1.2; }
}
@media (min-width: 768px)  and (max-width: 1279px) {
  .svc { --per: 2.4; }
}
@media (min-width: 1680px) and (max-width: 2239px) {
  .svc { --per: 3.5; }
}
@media (min-width: 2240px) {
  .svc { --per: 4.5; }
}
/* дегустация: снова фото за формой (вместо абстрактного градиента), лёгкое затемнение как в макете */
.tst__right { background: #241c18; }
.tst__right::after { background: rgba(16, 12, 10, 0.32); opacity: 1; mix-blend-mode: normal; }
.tst__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* «Почему мы?»: заголовок ближе к фото, подпись — внизу на самом фото нашим шрифтом прописными,
   пункты свободнее, без черт над первым и под последним */
.why__head { margin-bottom: clamp(20px, 0.8rem + 1.2vw, 56px); }
.why__photo img { inset: 0; }
.why__photo figcaption {
  left: clamp(16px, 0.8rem + 0.6vw, 32px);
  right: clamp(16px, 0.8rem + 0.6vw, 32px);
  bottom: clamp(16px, 0.8rem + 0.6vw, 32px);
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.why__photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; border-radius: 0 0 4px 4px; background: linear-gradient(to top, rgba(10, 7, 6, 0.55), rgba(10, 7, 6, 0)); pointer-events: none; }
.why__list { border-top: 0; }
.why-item:last-child { border-bottom: 0; }
.why-item__head { padding: clamp(24px, 1rem + 1vw, 46px) 0; }
.why-item:first-child .why-item__head { padding-top: 0; }
@media (max-width: 1023px) {
  .why__photo { position: relative; }
  .why__photo figcaption { position: absolute; margin: 0; }
}
.why__photo img { height: 100%; }
@media (max-width: 1023px) {
  .why__photo img { height: auto; }
}
/* ---------- видео: бесконечная лента (stories.js) ----------
   кадры 3:4, чуть уже прежних; положение и масштаб ставит скрипт, без переходов — нет дрожания */
.st { --st-w: calc(clamp(220px, 9rem + 12vw, 520px) * 0.94); --st-gap: clamp(12px, 0.5rem + 0.6vw, 28px); }
.st__viewport {
  position: relative;
  overflow: hidden;
  height: calc(var(--st-w) * 4 / 3 + clamp(30px, 1.4rem + 0.6vw, 48px));
  scroll-snap-type: none;
  touch-action: pan-y;
  cursor: grab;
  outline: none;
}
.st__viewport.is-dragging { cursor: grabbing; }
.st__track { position: absolute; inset: 0; display: block; width: auto; padding: 0; }
.st-card { position: absolute; left: 0; bottom: 0; width: var(--st-w); transform: none; transition: none; will-change: transform; }
.st-card__media { aspect-ratio: 3 / 4; transform: scale(var(--s, 1)); transition: none; }
.st-card__cap { margin-inline: calc((1 - var(--s, 1)) * 50%); transition: none; }
.st-card__btn { -webkit-user-drag: none; user-select: none; }
.st-card__media img { pointer-events: none; }
/* стрелки как в «Услугах»: две квадратные справа, счётчик слева — по краям контейнера */
.st__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(18px, 0.8rem + 0.6vw, 32px);
  padding-inline: var(--edge);
}
.st__arrows { display: flex; gap: 10px; }
@media (max-width: 767px) {
  .st { --st-w: 70vw; --st-gap: 16vw; }
  .st-card__media { transform: none; }
}
.st { --ink2: #1c1714; }
.st__track { column-gap: var(--st-gap); }
/* ---------- видео: пропорции и композиция как в макете ----------
   два крупных кадра по центру, к краям мельче; заголовок крупнее и ближе к ленте;
   стрелки — квадратные, сбоку от заголовка; отступ сверху под закреплённую шапку */
.st {
  --st-w: clamp(200px, 21.1vw, 600px);
  --st-gap: clamp(12px, 0.4rem + 0.8vw, 32px);
  padding-top: clamp(96px, 4rem + 3vw, 180px);
  padding-bottom: clamp(56px, 2rem + 3vw, 150px);
}
.st-card__media { aspect-ratio: 304 / 419; border-radius: clamp(6px, 0.3rem + 0.2vw, 12px); }
.st__viewport { height: calc(var(--st-w) * 419 / 304 + clamp(28px, 1.3rem + 0.5vw, 44px)); }
.st-card__cap { font-size: clamp(12px, 0.6rem + 0.15vw, 16px); margin-top: clamp(8px, 0.4rem + 0.2vw, 14px); }
.st-card__name { font-weight: 400; }
.st-card__play { width: clamp(40px, 2rem + 0.6vw, 60px); height: clamp(40px, 2rem + 0.6vw, 60px); margin: calc(clamp(40px, 2rem + 0.6vw, 60px) / -2) 0 0 calc(clamp(40px, 2rem + 0.6vw, 60px) / -2); opacity: 0.7; }
.st__head { position: relative; margin-top: clamp(40px, 1.5rem + 2.4vw, 110px); gap: clamp(10px, 0.5rem + 0.3vw, 18px); }
.st__title { font-size: clamp(30px, 1rem + 3.33vw, 104px); line-height: 1.04; letter-spacing: -0.05em; }
.st__lead { font-size: clamp(14px, 0.8rem + 0.2vw, 20px); max-width: 38em; }
.st__head .st__arrows { position: absolute; right: var(--edge); top: 50%; transform: translateY(-50%); }
@media (max-width: 1279px) {
  .st__head .st__arrows { position: static; transform: none; order: 3; margin-top: 8px; }
}
@media (max-width: 767px) {
  .st { --st-w: 70vw; --st-gap: 16vw; padding-top: 88px; }
  .st-card__media { aspect-ratio: 304 / 419; }
}
.st__head .st__arrows { top: auto; bottom: 0; transform: none; }
/* стрелки — на уровне подводки, не спорят со знаком у заголовка */
@media (max-width: 1279px) {
  .st__head .st__arrows { bottom: auto; }
}
/* ======================================================================
   МЕНЮ v5 (.m5, Figma 981:521, кадр 1440×859)
   Слева — заголовок, подводка и светлая кнопка; справа — вертикальные
   колонки карточек блюд, бесконечно едут навстречу друг другу (menu5.js).
   Карточки не растягиваются: на широких экранах растёт число колонок.
   Плюс переход из дегустации: тёмный оверлей .m5-fade поверх .tst.
   ====================================================================== */
.m5 {
  --m5-bg: #161210;
  --m5-ink: #f2ede6;
  --m5-n: 4;                                         /* число колонок */
  --m5-gap: clamp(10px, 0.3rem + 0.78vw, 24px);      /* 16px на 1440 */
  --m5-tw: clamp(260px, 27.8vw, 560px);              /* ширина текста: 400px на 1440 */
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  height: clamp(640px, 100svh, 1200px);
  overflow: hidden;
  background: var(--m5-bg);
  color: var(--m5-ink);
  font-family: var(--font-display);
}
/* --- текстовая колонка: заголовок вверху, кнопка внизу --- */
.m5__text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  box-sizing: content-box;
  width: var(--m5-tw);
  /* сверху ≥96px — чтобы текст не прятался под закреплённую шапку */
  padding: clamp(96px, 2rem + 5vw, 180px) clamp(24px, 0.5rem + 1.9vw, 64px) clamp(40px, 1rem + 2.8vw, 100px) var(--edge);
}
.m5__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 1rem + 2.22vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--m5-ink);
}
.m5__title em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: -0.02em;
}
.m5__lead {
  max-width: 22em;
  margin: clamp(16px, 0.6rem + 0.8vw, 36px) 0 0;
  font-size: clamp(15px, 0.6rem + 0.55vw, 24px);
  line-height: 1.4;
  color: rgba(242, 237, 230, 0.7);
}
.m5__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
  min-height: clamp(52px, 2rem + 1.9vw, 84px);
  padding: 12px clamp(20px, 0.8rem + 0.8vw, 40px);
  background: var(--m5-ink);
  color: #1c1714;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(13px, 0.5rem + 0.42vw, 20px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.3s ease;
}
.m5__arrow { flex: none; width: clamp(17px, 0.7rem + 0.4vw, 26px); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) {
  .m5__btn:hover { background: #fff; }
  .m5__btn:hover .m5__arrow { transform: translateX(4px); }
}
.m5__btn:focus-visible { outline: 2px solid var(--m5-ink); outline-offset: 3px; }
/* --- колонки карточек --- */
.m5__cols {
  display: grid;
  grid-template-columns: repeat(var(--m5-n), minmax(0, 1fr));
  column-gap: var(--m5-gap);
  align-items: start;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.m5__col { min-width: 0; }
.m5__col--5,
.m5__col--6 { display: none; }
.m5__track { will-change: transform; }
.m5__set {
  display: flex;
  flex-direction: column;
  gap: var(--m5-gap);
  margin: 0;
  /* нижний зазор входит в высоту набора — так копия встаёт встык без шва */
  padding: 0 0 var(--m5-gap);
  list-style: none;
}
.m5-card {
  position: relative;
  aspect-ratio: 220 / 320;
  overflow: hidden;
  background: #241d19;
}
.m5-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* затемнение снизу под подпись (без backdrop-filter — дорого на 4K) */
.m5-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(15, 13, 10, 0.75));
  pointer-events: none;
}
.m5-card__name {
  position: absolute;
  left: clamp(12px, 0.3rem + 0.78vw, 24px);
  right: clamp(12px, 0.3rem + 0.78vw, 24px);
  bottom: clamp(12px, 0.3rem + 0.78vw, 24px);
  z-index: 1;
  font-weight: 500;
  font-size: clamp(13px, 0.45rem + 0.62vw, 20px);
  line-height: 1.25;
  color: #fff;
}
/* больше места — больше колонок, а не шире карточки */
@media (min-width: 1024px) and (max-width: 1199px) {
  .m5 { --m5-n: 3; }
  .m5__col--4 { display: none; }
}
@media (min-width: 1800px) {
  .m5 { --m5-n: 5; }
  .m5__col--5 { display: block; }
}
@media (min-width: 2300px) {
  .m5 { --m5-n: 6; }
  .m5__col--6 { display: block; }
}
/* --- планшет: текст сверху, три колонки под ним --- */
@media (max-width: 1023px) {
  .m5 {
    --m5-n: 3;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: clamp(720px, 80svh, 1000px);
  }
  .m5__text {
    box-sizing: border-box;
    width: auto;
    justify-content: flex-start;
    gap: 28px;
    padding: 104px var(--edge) 36px;
  }
  .m5__btn { width: auto; align-self: flex-start; min-width: 300px; }
  .m5__cols { padding-inline: var(--edge); }
  .m5__col--4 { display: none; }
}
/* --- телефон: текст и кнопка во всю ширину, ниже две колонки навстречу --- */
@media (max-width: 767px) {
  .m5 {
    --m5-n: 2;
    --m5-gap: 12px;
    grid-template-rows: auto 560px;
    height: auto;
  }
  .m5__text { gap: 24px; padding: 96px var(--edge) 28px; }
  .m5__btn { width: 100%; min-width: 0; align-self: stretch; min-height: 52px; }
  .m5__col--3,
  .m5__col--4 { display: none; }
}
/* --- переход из дегустации: блок темнеет до фона меню --- */
.tst { position: relative; }
/* затемнённая дегустация не ловит клики (форма доступна, пока блок светлый) */
@media (prefers-reduced-motion: reduce) {
  .m5__track { will-change: auto; }
}
/* видео: стрелки по центру над заголовком; кадры на 5% ниже */
.st__head .st__arrows { position: static; transform: none; order: -1; margin: 0 0 clamp(6px, 0.3rem + 0.4vw, 18px); }
.st-card__media { aspect-ratio: 304 / 398; }
.st__viewport { height: calc(var(--st-w) * 398 / 304 + clamp(28px, 1.3rem + 0.5vw, 44px)); }
@media (max-width: 767px) {
  .st-card__media { aspect-ratio: 304 / 398; }
}
/* дегустация на планшете: компактнее по высоте, строки на всю ширину с крупной карточкой фото,
   форма шире и с воздухом вокруг */
@media (min-width: 768px) and (max-width: 1023px) {
  .tst { --peek-w: clamp(110px, 15vw, 150px); }
  .tst__intro { padding: 56px var(--t-pad) 36px; gap: 12px; }
  .tst__row { grid-template-columns: minmax(0, 0.9fr) calc(var(--peek-w) * 1.25) minmax(0, 1.2fr); padding-top: 16px; padding-bottom: 16px; }
  .tst__desc { font-size: 15px; }
  .tst__bar { padding: 24px var(--t-pad) 32px; }
  .tst__right { padding: 56px var(--t-pad) 64px; }
  .tst-ticket { width: min(100%, 640px); --notch: 13px; }
  .tst-ticket__top,
  .tst-ticket__stub { padding-inline: 40px; }
  .tst-ticket__top { padding-top: 40px; }
  .tst-ticket__stub { padding-bottom: 40px; gap: 14px; }
}
/* --- меню v5: ровно в экран, карточки не грубые (больше колонок на широких экранах),
   заголовок чуть ниже, кнопка на 10% уже --- */
.m5 { height: max(560px, 100svh); }
.m5__text { padding-top: clamp(116px, 3rem + 5.2vw, 210px); }
.m5__btn { max-width: 90%; }
@media (min-width: 1500px) {
  .m5 { --m5-n: 5; }
  .m5__col--5 { display: block; }
}
@media (min-width: 1900px) {
  .m5 { --m5-n: 6; }
  .m5__col--6 { display: block; }
}
@media (max-width: 767px) {
  .m5 { height: auto; }
  .m5__btn { max-width: none; }
  .m5__lead br { display: none; }
}
.m5-card__name { font-size: clamp(13px, 0.5rem + 0.42vw, 18px); line-height: 1.25; }
@media (max-width: 767px) {
  .m5-card__name { font-size: 13px; }
}
/* меню v5: всегда 4 колонки на компьютере, как в макете; кнопка по ширине текста */
@media (min-width: 1200px) {
  .m5 { --m5-n: 4; }
  .m5__col--5,
  .m5__col--6 { display: none !important; }
}
/* «Почему мы?» целиком в экран на компьютере: отступы считаются от высоты окна,
   сверху — место под закреплённую шапку */
@media (min-width: 1024px) {
  .why { padding-top: clamp(88px, 4rem + 2vh, 140px); padding-bottom: clamp(40px, 5vh, 96px); }
  .why__head { margin-bottom: clamp(16px, 2.6vh, 44px); }
  .why-item__head { padding: clamp(10px, 1.55vh, 30px) 0; }
  .why-item__title { font-size: clamp(17px, 0.55rem + 0.7vw, 30px); }
  .why-item__desc { padding-bottom: clamp(10px, 1.6vh, 28px); font-size: clamp(14px, 0.7rem + 0.2vw, 19px); }
  .why__btn { margin-top: clamp(16px, 2.4vh, 44px); min-height: clamp(52px, 6.4vh, 84px); }
}
/* ---------- видео v5: одно главное в центре, по два мельче и бледнее по бокам ----------
   заголовок и подводка над галереей, стрелки под ней; лента сама плавно сдвигается (stories.js) */
.st { --st-w: clamp(210px, 21vw, 600px); --st-gap: clamp(10px, 0.3rem + 0.7vw, 28px); padding-top: clamp(96px, 4rem + 3vw, 170px); }
.st__head { margin: 0 0 clamp(28px, 1rem + 2.2vw, 80px); }
.st__head .st__arrows { display: none; }
.st__viewport { height: calc(var(--st-w) * 398 / 304 + clamp(28px, 1.3rem + 0.5vw, 44px)); }
.st-card { top: 0; bottom: auto; transition: opacity 0.2s linear; }
.st-card__media { transform-origin: 50% 50%; }
.st-card__cap { margin-inline: 0; opacity: 0; transition: opacity 0.4s var(--ease); }
.st-card.is-center .st-card__cap { opacity: 1; }
.st-card:not(.is-center) .st-card__play { opacity: 0; }
.st__nav { display: flex; justify-content: center; padding-inline: var(--edge); margin-top: clamp(16px, 0.8rem + 0.8vw, 40px); }
.st__nav .st__arrows { display: flex; gap: 10px; }
@media (max-width: 767px) {
  .st { --st-w: 62vw; --st-gap: 3vw; padding-top: 88px; }
}
@media (max-width: 767px) {
  .st-card__media { transform: scale(var(--s, 1)); }
}
/* «Почему мы?» по высоте экрана — ступенями через min-height (надёжно в любом Safari,
   без vh внутри clamp): на низких экранах компактно, на обычных и высоких — больше воздуха
   между пунктами и выше фото (фото тянется на высоту списка). До меню — на ~100px больше воздуха. */
@media (min-width: 1024px) {
  .why { padding-top: 96px; padding-bottom: 140px; }
  .why__head { margin-bottom: 20px; }
  .why-item__head { padding: 12px 0; }
  .why-item__desc { padding-bottom: 12px; }
  .why__btn { margin-top: 20px; min-height: 56px; }
}
@media (min-width: 1024px) and (min-height: 820px) {
  .why { padding-top: 112px; padding-bottom: 150px; }
  .why__head { margin-bottom: 32px; }
  .why-item__head { padding: 19px 0; }
  .why-item__desc { padding-bottom: 18px; }
  .why__btn { margin-top: 32px; min-height: 64px; }
}
@media (min-width: 1024px) and (min-height: 950px) {
  .why { padding-top: 128px; padding-bottom: 170px; }
  .why__head { margin-bottom: 40px; }
  .why-item__head { padding: 25px 0; }
  .why-item__desc { padding-bottom: 22px; }
  .why__btn { margin-top: 40px; min-height: 72px; }
}
@media (min-width: 1024px) and (min-height: 1150px) {
  .why { padding-top: 150px; padding-bottom: 190px; }
  .why__head { margin-bottom: 52px; }
  .why-item__head { padding: 32px 0; }
  .why-item__desc { padding-bottom: 28px; }
  .why__btn { margin-top: 52px; min-height: 84px; }
}
/* планшет и телефон: тоже больше воздуха до следующего блока */
@media (max-width: 1023px) {
  .why { padding-bottom: calc(var(--section-pad, 64px) + 40px); }
}
/* услуги: карточки на ~7% уже; на любом компьютере видно 3 карточки и половину 4-й,
   на больших экранах — больше карточек (до 7), а не крупнее; по высоте карточка не больше,
   чем позволяет окно, чтобы блок по возможности помещался в экран */
@media (min-width: 1024px) {
  .svc { --per: 3.75; }
  .svc {
    --svc-card: min(
      calc((min(var(--svc-w, 100vw), 2400px + 2 * var(--gutter)) - 2 * var(--gutter) - (var(--per) - 0.6) * var(--svc-gap)) / var(--per)),
      calc((100vh - 330px) * 0.78)
    );
  }
}
@media (min-width: 1680px) and (max-width: 2239px) {
  .svc { --per: 3.85; }
}
@media (min-width: 2240px) and (max-width: 2999px) {
  .svc { --per: 4.75; }
}
@media (min-width: 3000px) {
  .svc { --per: 6.5; }
}
/* меню: заголовок наверху (под закреплённой шапкой), кнопка внизу — от нижнего края столько же,
   сколько текст от левого; блок ровно в высоту экрана. Под низкие экраны — ступени по min/max-height
   (надёжно в любом Safari) */
@media (min-width: 1024px) {
  .m5 { height: 100vh; height: 100svh; min-height: 560px; }
  .m5__text { justify-content: space-between; gap: 24px; padding-top: 118px; padding-bottom: var(--gutter); }
  .m5__btn { margin-top: 0; }
}
@media (min-width: 1024px) and (max-height: 820px) {
  .m5__text { padding-top: 100px; }
  .m5__title { font-size: clamp(28px, 1rem + 1.9vw, 64px); }
  .m5__lead { margin-top: 14px; }
  .m5__btn { min-height: 56px; }
}
@media (min-width: 1024px) and (max-height: 680px) {
  .m5__text { padding-top: 88px; }
  .m5__title { font-size: clamp(26px, 0.9rem + 1.5vw, 48px); }
}
@media (min-width: 1024px) and (min-height: 1000px) {
  .m5__text { padding-top: 150px; }
}
/* производительность прокрутки: закреплённая шапка без размытия фона (blur на всю ширину
   пересчитывается каждый кадр и тормозит над фото) — плотный тёмный фон выглядит так же */
.stick { background: rgba(16, 13, 12, 0.93); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* ======================================================================
   10. О КОМПАНИИ: «За каждым мероприятием стоит команда» (Figma 1025:344)
   текст и цифры слева, фото команды в правую половину до края; ниже лента логотипов
   ====================================================================== */
.tm {
  --b-ink: #1c1714;
  --b-line: rgba(28, 23, 20, 0.15);
  background: #f2f2f2;
  color: var(--b-ink);
  font-family: var(--font-display);
}
.tm :where(h2, p, dl, dd, figure, ul) { margin: 0; padding: 0; }
.tm ul { list-style: none; }
.tm__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 47.2%);
  min-height: clamp(620px, 53vw, 1280px);
}
.tm__text {
  display: flex;
  flex-direction: column;
  padding: clamp(96px, 3rem + 3vw, 170px) clamp(32px, 1rem + 3.4vw, 120px) clamp(28px, 0.5rem + 1.8vw, 64px) var(--edge);
}
.tm__title {
  max-width: 13em;
  font-weight: 400;
  font-size: clamp(28px, 1rem + 2.22vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.tm__title em { font-family: var(--font-accent); font-style: italic; font-size: 1.06em; letter-spacing: -0.01em; }
.tm__lead {
  max-width: 29em;
  margin-top: clamp(16px, 0.6rem + 0.8vw, 36px);
  font-weight: 500;
  font-size: clamp(15px, 0.85rem + 0.31vw, 26px);
  line-height: 1.4;
  color: rgba(28, 23, 20, 0.75);
}
.tm__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
  padding-top: clamp(32px, 1rem + 2.4vw, 96px);
}
.tm-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 0.6rem + 0.9vw, 40px) clamp(12px, 0.4rem + 0.6vw, 28px) clamp(18px, 0.6rem + 0.9vw, 40px) 0;
  border-top: 1px solid var(--b-line);
}
.tm-stat:nth-child(even) { padding-left: clamp(16px, 0.4rem + 1.1vw, 40px); border-left: 1px solid var(--b-line); }
.tm-stat:nth-child(n + 3) { padding-bottom: 0; }
.tm-stat dt { display: flex; flex-direction: column; }
.tm-stat__num {
  font-size: clamp(32px, 1.2rem + 1.9vw, 88px);
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.tm-stat__unit {
  margin-top: 4px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(15px, 0.8rem + 0.3vw, 26px);
}
.tm-stat dd {
  max-width: 17em;
  margin-top: clamp(6px, 0.3rem + 0.2vw, 12px);
  font-size: clamp(13px, 0.7rem + 0.25vw, 21px);
  line-height: 1.4;
  color: rgba(28, 23, 20, 0.6);
}
.tm__photo { position: relative; min-height: 0; overflow: hidden; }
.tm__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.tm__photo figcaption {
  position: absolute;
  right: clamp(16px, 0.5rem + 2vw, 72px);
  bottom: clamp(16px, 0.5rem + 2vw, 72px);
  max-width: calc(100% - 32px);
  padding: clamp(10px, 0.5rem + 0.35vw, 20px) clamp(16px, 0.8rem + 0.7vw, 36px);
  border-radius: 100px;
  background: #fff;
  font-size: clamp(13px, 0.7rem + 0.28vw, 22px);
  line-height: 1.3;
  color: var(--b-ink);
}
/* лента логотипов */
.tm__logos {
  display: flex;
  align-items: center;
  gap: clamp(20px, 0.5rem + 1.6vw, 64px);
  min-height: clamp(80px, 3rem + 2.6vw, 150px);
  padding: 0 var(--edge);
  background: #fff;
}
.tm__logos-label {
  flex: none;
  max-width: 15em;
  font-size: clamp(12px, 0.65rem + 0.2vw, 18px);
  line-height: 1.35;
  color: rgba(28, 23, 20, 0.55);
}
.tm__marquee {
  --lk: clamp(0.8px, 0.0695vw, 1.6px);   /* 1px на 1440 */
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.tm__logo-list {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 0.5rem + 1.6vw, 64px);
}
.tm__logo-list img { display: block; width: auto; height: calc(var(--h) * var(--lk)); mix-blend-mode: multiply; }
.tm__marquee.is-running { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tm__marquee.is-running .tm__logo-list {
  flex: none;
  justify-content: flex-start;
  padding-right: clamp(24px, 0.5rem + 1.6vw, 64px);
  animation: tm-run var(--tm-dur, 30s) linear infinite;
}
@keyframes tm-run { to { transform: translate3d(-100%, 0, 0); } }
/* планшет: текст сверху, фото во всю ширину ниже */
@media (max-width: 1023px) {
  .tm__main { grid-template-columns: 1fr; min-height: 0; }
  .tm__text { padding: clamp(80px, 12vw, 120px) var(--edge) clamp(32px, 5vw, 48px); }
  .tm__photo { aspect-ratio: 4 / 3; }
  .tm__logos { flex-direction: column; align-items: stretch; gap: 14px; padding-top: 24px; padding-bottom: 24px; }
  .tm__logos-label { max-width: none; }
  .tm__marquee { --lk: 0.9px; }
}
@media (max-width: 767px) {
  .tm__photo { aspect-ratio: 4 / 5; }
  .tm__photo img { object-position: 62% 50%; }
  .tm-stat__num { font-size: clamp(26px, 8vw, 34px); }
  .tm__marquee { --lk: 0.85px; margin-inline: calc(-1 * var(--edge)); }
}
/* ======================================================================
   11. ОТЗЫВЫ (Figma 1025:183) — лента карточек, стрелки как в «Услугах», поп-ап отзыва
   ====================================================================== */
.rv {
  --b-ink: #1c1714;
  --b-mute: #6e645b;
  --rv-gap: clamp(12px, 0.3rem + 0.6vw, 24px);
  --per: 3.4;
  --ink2: #1c1714;
  /* ширина считается от окна (как в «Услугах»), а не от ленты — иначе % внутри max-content зацикливается */
  --rv-card: calc((min(var(--svc-w, 100vw), 2400px + 2 * var(--gutter)) - var(--gutter) - (var(--per) - 0.4) * var(--rv-gap)) / var(--per));
  padding: clamp(64px, 1.5rem + 5vw, 200px) 0;
  background: #fff;
  color: var(--b-ink);
  font-family: var(--font-display);
}
@media (max-width: 767px) {
  .rv { --per: 1.12; }
}
@media (min-width: 768px)  and (max-width: 1023px) {
  .rv { --per: 2.15; }
}
@media (min-width: 1680px) and (max-width: 2239px) {
  .rv { --per: 4.3; }
}
@media (min-width: 2240px) {
  .rv { --per: 5.3; }
}
.rv :where(h2, p, ul) { margin: 0; padding: 0; }
.rv ul { list-style: none; }
.rv__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(16px, 1rem + 2vw, 80px);
  padding: 0 var(--edge);
  margin-bottom: clamp(32px, 1rem + 3.4vw, 140px);
}
.rv__title {
  max-width: 13em;
  font-weight: 400;
  font-size: clamp(28px, 1rem + 2.22vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.rv__title em { font-family: var(--font-accent); font-style: italic; font-size: 1.06em; letter-spacing: -0.01em; }
.rv__lead {
  max-width: 19em;
  font-weight: 500;
  font-size: clamp(15px, 0.85rem + 0.31vw, 26px);
  line-height: 1.4;
  color: rgba(28, 23, 20, 0.75);
}
.rv__viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  cursor: grab;
}
.rv__viewport::-webkit-scrollbar { display: none; }
.rv__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rv__viewport.is-dragging * { pointer-events: none; }
.rv__viewport:focus-visible { outline: 1px solid var(--b-ink); outline-offset: -1px; }
.rv__track { display: flex; gap: var(--rv-gap); width: max-content; padding: 0 var(--edge); }
.rv-card {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 0.6rem + 0.3vw, 22px);
  width: var(--rv-card);
  padding: clamp(20px, 0.8rem + 0.85vw, 44px);
  border-radius: 6px;
  background: #f2f2f2;
  scroll-snap-align: start;
}
.rv-card__person { display: flex; align-items: center; gap: 14px; }
.rv-card__name { font-weight: 500; font-size: clamp(16px, 0.85rem + 0.25vw, 24px); }
.rv-card__meta { margin-top: 3px !important; font-size: clamp(12px, 0.7rem + 0.12vw, 17px); color: var(--b-mute); }
.rv-card__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  overflow: hidden;
  font-size: clamp(14px, 0.78rem + 0.2vw, 21px);
  line-height: 1.5;
}
.rv-card__links { display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 1rem + 0.6vw, 36px); margin-top: auto; }
.rv-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1.5px solid rgba(28, 23, 20, 0.35);
  background: none;
  color: var(--b-ink);
  font: inherit;
  font-size: clamp(13px, 0.7rem + 0.15vw, 18px);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}
.rv-link:hover { border-color: var(--b-ink); }
.rv-link__ext { width: 0.6em; height: 0.6em; }
.rv__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(32px, 1rem + 3.4vw, 140px);
  padding: 0 var(--edge);
}
.rv__nav { display: flex; align-items: center; gap: 8px; }
.rv__count { margin-left: clamp(12px, 0.5rem + 0.6vw, 28px); font-size: clamp(12px, 0.65rem + 0.15vw, 17px); letter-spacing: 0.06em; color: #6e635c; }
.rv__all { border: 0; cursor: pointer; font-family: var(--font-display); }
@media (max-width: 767px) {
  .rv__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rv__foot { flex-direction: column; align-items: stretch; }
  .rv__nav { justify-content: flex-start; }
  .rv__all { justify-content: space-between; }
}
/* поп-ап «отзыв полностью» */
.rvm { --ink2: #1c1714; position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.rvm[hidden] { display: none; }
.rvm__backdrop { position: absolute; inset: 0; background: rgba(22, 18, 16, 0.85); opacity: 0; transition: opacity 0.35s var(--ease); }
.rvm__box {
  position: relative;
  display: grid;
  grid-template-columns: clamp(52px, 2rem + 3vw, 120px) minmax(0, 1fr);
  width: min(1040px + 10vw, 100%);
  max-width: 1400px;
  max-height: calc(100svh - 32px);
  overflow: auto;
  padding: clamp(28px, 1rem + 2.6vw, 90px) clamp(24px, 1rem + 4vw, 140px) clamp(28px, 1rem + 2.6vw, 90px) clamp(20px, 0.5rem + 2.6vw, 80px);
  border-radius: 8px;
  background: #fff;
  color: #1c1714;
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.98);
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease-expo);
}
.rvm.is-open .rvm__backdrop,
.rvm.is-open .rvm__box { opacity: 1; }
.rvm.is-open .rvm__box { transform: none; }
.rvm__close { position: absolute; top: clamp(16px, 0.5rem + 1.4vw, 44px); right: clamp(16px, 0.5rem + 1.4vw, 44px); display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: #1c1714; cursor: pointer; }
.rvm__close svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-expo); }
.rvm__close:hover svg { transform: rotate(90deg); }
.rvm__quote { font-family: var(--font-accent); font-style: italic; font-size: clamp(72px, 2rem + 6vw, 180px); line-height: 0.8; }
.rvm__body { min-width: 0; }
.rvm__body.is-swap { animation: rvm-in 0.45s var(--ease-expo); }
@keyframes rvm-in { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
.rvm__meta { display: flex; align-items: center; gap: 16px; margin: 0; font-size: clamp(12px, 0.7rem + 0.12vw, 16px); color: #6e645b; }
.rvm__text { max-width: 38em; margin: clamp(16px, 0.6rem + 0.6vw, 28px) 0 clamp(18px, 0.6rem + 0.6vw, 28px); font-size: clamp(17px, 0.8rem + 0.6vw, 30px); line-height: 1.5; letter-spacing: -0.01em; }
.rvm__orig { font-weight: 500; }
.rvm__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: clamp(28px, 1rem + 1.6vw, 56px); }
.rvm__person { display: inline-flex; align-items: center; gap: 14px; padding: 8px 28px 8px 8px; border-radius: 100px; background: #1c1714; color: #fff; }
.rvm__name { margin: 0; font-weight: 500; font-size: clamp(15px, 0.85rem + 0.2vw, 22px); }
.rvm__type { margin: 2px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.rvm__nav { display: flex; gap: 8px; }
@media (max-width: 767px) {
  .rvm__box { grid-template-columns: 1fr; padding-top: 56px; }
  .rvm__quote { font-size: 64px; line-height: 0.6; margin-bottom: 8px; }
}
body.is-locked:has(.rvm.is-open) .stick { transform: translate3d(0, -140%, 0); opacity: 0; visibility: hidden; }
/* отзывы без фото: имя сразу над текстом; в поп-апе — без тега, плашка с именем без аватара */
.rv-card__person { gap: 0; }
.rvm__person { padding: 14px 28px; }
.rvm__meta { gap: 0; }
/* очень широкие экраны: все отзывы в один ряд во всю ширину, стрелки не нужны */
@media (min-width: 2240px) {
  .rv { --per: 4.15; }
}
.rv.is-fit .rv__nav { visibility: hidden; }
/* меню: текст кнопки всегда в одну строку */
@media (min-width: 1024px) {
  .m5__btn { white-space: nowrap; max-width: none; width: max-content; min-width: 100%; }
}
/* «О компании» по правкам макета 1026:478: крупный заголовок в три строки, цифры сразу под подводкой,
   подпись фото — полупрозрачная полоса во всю ширину низа фото */
.tm__title { max-width: none; font-size: clamp(34px, 1rem + 3.33vw, 110px); line-height: 1.04; }
.tm__text { padding-top: clamp(96px, 3rem + 2.4vw, 150px); }
.tm__lead { margin-top: clamp(18px, 0.6rem + 1vw, 40px); max-width: 28em; }
.tm__stats { margin-top: 0; padding-top: clamp(28px, 0.8rem + 2vw, 72px); }
.tm-stat { padding-top: clamp(14px, 0.4rem + 0.6vw, 28px); padding-bottom: clamp(22px, 0.6rem + 1.2vw, 44px); }
.tm-stat:nth-child(n + 3) { padding-bottom: 0; }
.tm-stat__num { font-size: clamp(32px, 1rem + 2.22vw, 80px); }
.tm-stat__unit { margin-top: clamp(6px, 0.2rem + 0.3vw, 12px); }
.tm__photo figcaption {
  left: 0;
  right: 0;
  bottom: 0;
  max-width: none;
  padding: clamp(12px, 0.5rem + 0.5vw, 22px) var(--gutter);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #fff;
  text-align: center;
  font-size: clamp(13px, 0.7rem + 0.3vw, 22px);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}
@media (max-width: 767px) {
  .tm__title br,
  .tm-stat dd br { display: none; }
}
picture { display: contents; }
/* «Отзывы» по правкам макета 1025:183: заголовок крупнее (как у «О компании»), больше воздуха сверху,
   подводка в две строки, под карточками — свободнее до стрелок */
.rv { padding-top: clamp(80px, 2rem + 5.8vw, 240px); }
.rv__title { font-size: clamp(34px, 1rem + 3.33vw, 110px); line-height: 1; }
.rv__lead { max-width: none; }
.rv__head { margin-bottom: clamp(32px, 1rem + 4.8vw, 160px); }
.rv__foot { margin-top: clamp(40px, 1rem + 12vw, 300px); }
.rv-card__meta { margin-top: 5px !important; }
@media (max-width: 767px) {
  .rv__lead br { display: none; }
  .rv__foot { margin-top: 32px; }
}
/* ---------- «Искусство создавать впечатления» на телефоне (макет 1026:518) ----------
   центральный ролик ~59% ширины, по бокам выглядывает по одному, подписи у всех роликов,
   вместо стрелок — точки; знак по центру над заголовком */
.st__dots { display: none; }
@media (max-width: 767px) {
  .st { --st-w: 59vw; --st-gap: 16px; }
  .st__head { padding-top: 0; }
  .st__title { font-size: 36px; line-height: 1.04; letter-spacing: -0.05em; }
  .st__title { position: relative; padding-top: 36px; }
  .st__mark { position: absolute; top: 0; left: 50%; right: auto; width: 22px; height: 22px; transform: translateX(-50%); }
  .st__lead { font-size: 15px; font-weight: 500; color: rgba(28, 23, 20, 0.7); }
  /* подпись прижата к уменьшенному кадру: кадр масштабируется от центра, подпись поднимаем на ту же величину */
  .st-card__cap {
    opacity: 1;
    margin-inline: calc((1 - var(--s, 1)) * 50%);
    transform: translateY(calc(var(--st-w) * 398 / 304 * (var(--s, 1) - 1) / 2));
  }
  .st__nav { display: none; }
  .st__dots { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
  .st__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(28, 23, 20, 0.25); transition: width 0.4s var(--ease-expo), background-color 0.3s; }
  .st__dots i.is-on { width: 20px; background: #1c1714; }
}
/* ---------- «Почему мы?» на телефоне (макет 1026:540) ----------
   фото 16:9, подпись обычным текстом под фото, линия и над первым пунктом, пункты компактнее */
@media (max-width: 767px) {
  .why__title { font-size: 40px; line-height: 1.04; letter-spacing: -0.05em; }
  .why__lead { margin-top: 0; font-size: 15px; font-weight: 500; color: rgba(28, 23, 20, 0.75); }
  .why__head { gap: 8px; margin-bottom: 20px; }
  .why__photo { position: static; }
  .why__photo img { position: static; width: 100%; height: auto; aspect-ratio: 350 / 197; border-radius: 4px; }
  .why__photo::after { content: none; }
  .why__photo figcaption { position: static; margin: 14px 0 0; padding: 0; background: none; color: #210f14; font-family: var(--font-display); font-style: normal; font-size: 13px; letter-spacing: 0; text-transform: none; }
  .why__photo figcaption::before { content: none; }
  .why__body { margin-top: 36px; }
  .why__list { border-top: 1px solid var(--b-line); }
  .why-item:last-child { border-bottom: 1px solid var(--b-line); }
  .why-item__head,
  .why-item:first-child .why-item__head { padding: 16px 0; }
  .why-item:first-child .why-item__head { padding-top: 20px; }
  .why-item__num { width: 36px; flex: none; font-size: 12px; }
  .why-item__title { font-size: 17px; letter-spacing: -0.02em; }
  .why-item__desc { padding: 0 0 22px 36px; font-size: 14px; line-height: 1.45; color: #6e645b; }
  .why__btn { align-self: stretch; margin-top: 24px; min-height: 0; padding: 22px 30px; font-size: 13px; }
}
/* ======================================================================
   12. КОНТАКТЫ (Figma 1026:600): слева фото листа с логотипом, справа контакты строками
   ====================================================================== */
.ct5 {
  display: grid;
  grid-template-columns: minmax(0, 45.9%) minmax(0, 1fr);
  min-height: clamp(560px, 50vw, 1100px);
  background: #f2f2f2;
  color: #1c1714;
  font-family: var(--font-display);
}
.ct5 :where(h2, dl, dd, ul) { margin: 0; padding: 0; }
.ct5 ul { list-style: none; }
.ct5__visual { position: relative; overflow: hidden; background: #1b1d17; }
.ct5__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
/* крупный знак «МЯТА»: внутри медленно переливается светлый градиент (маска по форме логотипа) */
.ct5__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78%, 760px);
  aspect-ratio: 412.337 / 116.639;
  transform: translate(-50%, -50%);
  background: linear-gradient(115deg, #f2ede6 0%, #ffffff 18%, #cfe0c3 34%, #f6efe4 50%, #a9c49a 66%, #ffffff 82%, #f2ede6 100%) 0 50% / 300% 100%;
  -webkit-mask: url("assets/contacts/logo-full.svg") center / contain no-repeat;
  mask: url("assets/contacts/logo-full.svg") center / contain no-repeat;
  animation: ct5-flow 14s ease-in-out infinite alternate;
}
@keyframes ct5-flow { to { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) {
  .ct5__logo { animation: none; }
}
.ct5__info {
  display: flex;
  flex-direction: column;
  padding: clamp(100px, 3rem + 3.6vw, 170px) var(--edge) clamp(48px, 1rem + 3.2vw, 120px) clamp(32px, 0.5rem + 6.4vw, 200px);
}
.ct5__title {
  font-weight: 400;
  font-size: clamp(34px, 1rem + 3.33vw, 110px);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: clamp(28px, 1rem + 2.6vw, 90px) !important;
}
.ct5__row {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.3rem + 0.3vw, 14px);
  padding: clamp(18px, 0.6rem + 0.9vw, 36px) 0;
  border-top: 1px solid rgba(28, 23, 20, 0.15);
}
.ct5__row dd { font-size: clamp(20px, 0.8rem + 1.1vw, 46px); line-height: 1.15; letter-spacing: -0.02em; }
.ct5__row--lead dd { font-size: clamp(24px, 0.8rem + 1.67vw, 60px); }
.ct5__row dt { font-size: clamp(12px, 0.7rem + 0.12vw, 16px); color: rgba(28, 23, 20, 0.55); }
.ct5__row a:not(.ct5-social) { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease-expo); }
@media (hover: hover) {
  .ct5__row a:not(.ct5-social):hover { background-size: 100% 1px; }
}
.ct5__socials { display: flex; gap: 12px; }
.ct5-social { display: grid; text-decoration: none; place-items: center; width: clamp(38px, 1.8rem + 0.6vw, 56px); height: clamp(38px, 1.8rem + 0.6vw, 56px); border-radius: 50%; background: #1c1714; color: #fff; transition: transform 0.4s var(--ease-expo), background-color 0.3s; }
.ct5-social svg { width: 100%; height: 100%; }
@media (hover: hover) {
  .ct5-social:hover { transform: translateY(-3px); background: #3a322d; }
}
@media (max-width: 1023px) {
  .ct5 { grid-template-columns: 1fr; min-height: 0; }
  .ct5__visual { aspect-ratio: 16 / 10; }
  .ct5__info { padding: clamp(48px, 8vw, 80px) var(--edge); }
}
@media (max-width: 767px) {
  .ct5__visual { aspect-ratio: 4 / 3; }
  .ct5__logo { width: 82%; }
}
/* ======================================================================
   13. ПОДВАЛ (Figma 1025:50) — плюс тихая деталь: крупный логотип, уходящий за нижний край
   ====================================================================== */
.ft5 {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 1rem + 2vw, 80px) var(--edge) 0;
  background: #161210;
  color: #f2ede6;
  font-family: var(--font-display);
}
.ft5 :where(ul, p) { margin: 0; padding: 0; }
.ft5 ul { list-style: none; }
.ft5 a { color: inherit; text-decoration: none; }
.ft5__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: clamp(28px, 1rem + 1.4vw, 56px); border-bottom: 1px solid rgba(242, 237, 230, 0.15); }
.ft5__nav ul { display: flex; flex-wrap: wrap; gap: 10px clamp(20px, 0.6rem + 1.4vw, 48px); }
.ft5__nav a { position: relative; font-weight: 500; font-size: clamp(14px, 0.75rem + 0.25vw, 20px); }
.ft5__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.5s var(--ease-expo); }
@media (hover: hover) {
  .ft5__nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
}
.ft5__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.ft5__btn {
  display: inline-flex; align-items: center; gap: 20px;
  min-height: clamp(52px, 2.6rem + 1vw, 80px); padding: 0 clamp(22px, 1rem + 0.6vw, 40px);
  background: #f2ede6; color: #1c1714 !important;
  font-weight: 500; font-size: clamp(12px, 0.55rem + 0.22vw, 16px); letter-spacing: 0.08em; text-transform: uppercase;
  transition: background-color 0.3s;
}
.ft5__btn .svc-arrow { width: clamp(17px, 0.7rem + 0.4vw, 26px); transition: transform 0.5s var(--ease-expo); }
@media (hover: hover) {
  .ft5__btn:hover { background: #fff; }
  .ft5__btn:hover .svc-arrow { transform: translateX(4px); }
}
.ft5__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; padding-top: clamp(20px, 0.8rem + 0.6vw, 36px); }
.ft5__docs { display: grid; grid-template-columns: auto auto; gap: 10px clamp(24px, 1rem + 2vw, 80px); }
.ft5__docs a,
.ft5__copy { font-size: clamp(12px, 0.65rem + 0.12vw, 15px); color: rgba(242, 237, 230, 0.55); }
.ft5__docs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(242, 237, 230, 0.3); transition: color 0.3s; }
.ft5__docs a:hover { color: #f2ede6; }
/* огромный логотип: едва заметный, обрезан нижним краем — подвал заканчивается «подписью» бренда */
@media (max-width: 1023px) {
  .ft5__top { flex-direction: column; align-items: stretch; }
  .ft5__actions .ft5__btn { flex: 1; justify-content: space-between; }
  .ft5__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .ft5__nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .ft5__docs { grid-template-columns: 1fr; }
}
/* ======================================================================
   14. ПОП-АП «ОСТАВИТЬ ЗАЯВКУ» — тот же билет, что у дегустации: белые половинки,
   полукруглые вырезы и пунктир отрыва, поля, чипы и кнопка из формы дегустации
   ====================================================================== */
.lead {
  --t-ink: #1c1714;
  --t-mute: #6e645b;
  --t-text: #3b3632;
  --t-line: rgba(28, 23, 20, 0.18);
  --ink2: #1c1714;
  --notch: clamp(9px, 0.4rem + 0.2vw, 15px);
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  font-family: var(--font-display);
  color: var(--t-ink);
}
.lead[hidden] { display: none; }
.lead [hidden] { display: none !important; }
.lead__backdrop { position: fixed; inset: 0; background: rgba(22, 18, 16, 0.85); opacity: 0; transition: opacity 0.35s var(--ease); }
.lead__ticket {
  position: relative;
  width: min(100%, clamp(340px, 16rem + 16vw, 680px));
  margin: auto;
  filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.35));
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.98);
  transition: opacity 0.35s var(--ease), transform 0.55s var(--ease-expo);
}
.lead.is-open .lead__backdrop,
.lead.is-open .lead__ticket { opacity: 1; }
.lead.is-open .lead__ticket { transform: none; }
.lead__top,
.lead__stub { background: #fff; padding-inline: clamp(22px, 1rem + 1vw, 52px); }
.lead__top {
  padding-top: clamp(28px, 1rem + 1vw, 52px);
  padding-bottom: clamp(20px, 0.8rem + 0.5vw, 34px);
  padding-right: clamp(56px, 2rem + 1vw, 80px);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.lead__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 0.5rem + 0.25vw, 18px);
  padding-top: clamp(22px, 1rem + 0.5vw, 40px);
  padding-bottom: clamp(24px, 1rem + 0.6vw, 44px);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
}
.lead__stub::before { content: ""; position: absolute; top: 0; left: calc(var(--notch) + 12px); right: calc(var(--notch) + 12px); border-top: 1px dashed rgba(28, 23, 20, 0.3); }
.lead__title { margin: 0; }
.lead__top .tst-ticket__sub { margin: clamp(10px, 0.5rem + 0.3vw, 16px) 0 0; max-width: 34em; }
.lead__opt { font-weight: 400; color: var(--t-mute); }
.lead__chips { display: grid; grid-template-columns: repeat(4, 1fr); }
.lead__chips .tst-chip span { justify-content: center; }
.lead__close { position: absolute; z-index: 2; top: clamp(14px, 0.5rem + 0.6vw, 26px); right: clamp(14px, 0.5rem + 0.6vw, 26px); display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--t-ink); cursor: pointer; }
.lead__close svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-expo); }
@media (hover: hover) {
  .lead__close:hover svg { transform: rotate(90deg); }
}
.lead__done .tst-ticket__sub { margin: 0; }
.lead__ok { margin-top: 8px; }
@media (max-width: 479px) {
  .lead__chips { grid-template-columns: 1fr 1fr; }
}
body.is-locked:has(.lead.is-open) .stick { transform: translate3d(0, -140%, 0); opacity: 0; visibility: hidden; }

/* «Заявка принята» — больше воздуха: легче читается и выглядит спокойнее */
.tst-ticket__done, .lead__done { gap: clamp(14px, 0.7rem + 0.4vw, 24px); padding-top: clamp(30px, 1.2rem + 0.9vw, 52px); padding-bottom: clamp(34px, 1.4rem + 1vw, 60px); }
.tst-ticket__done .tst-ticket__sub, .lead__done .tst-ticket__sub { line-height: 1.6; }
.lead__ok { margin-top: clamp(8px, 0.4rem + 0.3vw, 16px); }

/* открытие окна без подлагивания: ширина страницы не меняется при блокировке прокрутки,
   билет — отдельный слой (тень не пересчитывается на каждом кадре) */
html { scrollbar-gutter: stable; }
.lead__ticket { will-change: transform, opacity; transform: translate3d(0, 24px, 0); }
.lead.is-open .lead__ticket { transform: translate3d(0, 0, 0); }
.lead__backdrop { will-change: opacity; }

/* услуги: карточки чуть крупнее — последняя видимая выглядывает примерно на 70%, а не помещается целиком */
@media (min-width: 1024px) and (max-width: 1679px) { .svc { --per: 3.5; } }
@media (min-width: 1680px) and (max-width: 2239px) { .svc { --per: 3.55; } }
@media (min-width: 2240px) and (max-width: 2999px) { .svc { --per: 4.5; } }

/* контраст соседних блоков: «Искусство создавать впечатления» — белый, «О компании» — светло-серый */
.st { background: #fff; }

/* ---------- отзывы: больше воздуха, аватар-силуэт вместо фото ---------- */
.rv { --rv-gap: clamp(16px, 0.6rem + 1vw, 36px); }
.rv-card { gap: clamp(18px, 0.8rem + 0.6vw, 30px); padding: clamp(26px, 1rem + 1.7vw, 64px); border-radius: 8px; }
.rv-card__person { gap: 14px; }
.rv-card__ava {
  display: grid; place-items: end center; flex: none;
  width: clamp(44px, 2rem + 0.6vw, 60px); height: clamp(44px, 2rem + 0.6vw, 60px);
  overflow: hidden; border-radius: 50%;
  background: #e4ded6; color: #c2b9ae;
}
.rv-card__ava svg { width: 100%; height: 100%; }
.rv-card__meta { margin-top: 6px !important; }
.rv-card__text { line-height: 1.65; -webkit-line-clamp: 6; color: #2a2420; }
.rv-card__links { padding-top: clamp(4px, 0.2rem + 0.3vw, 12px); }

/* ---------- контакты компактнее: вместе с подвалом помещаются в один экран ---------- */
.ct5 { min-height: 0; height: clamp(460px, calc(100vh - 300px), 820px); }
.ct5__info { justify-content: center; padding-top: clamp(80px, 2rem + 2.6vw, 130px); padding-bottom: clamp(32px, 0.8rem + 1.6vw, 64px); }
.ct5__title { font-size: clamp(30px, 1rem + 2.2vw, 84px); margin-bottom: clamp(18px, 0.6rem + 1.2vw, 44px) !important; }
.ct5__row { gap: clamp(4px, 0.2rem + 0.2vw, 10px); padding: clamp(12px, 0.4rem + 0.6vw, 26px) 0; }
.ct5__row dd { font-size: clamp(18px, 0.7rem + 0.85vw, 36px); }
.ct5__row--lead dd { font-size: clamp(22px, 0.8rem + 1.2vw, 46px); }
.ct5__socials { gap: 10px; }
.ct5-social { width: clamp(36px, 1.6rem + 0.5vw, 50px); height: clamp(36px, 1.6rem + 0.5vw, 50px); }
@media (max-width: 1023px) { .ct5 { height: auto; } .ct5__info { padding-top: clamp(40px, 7vw, 64px); } }

/* ---------- подвал: компактнее + лёгкий декор — тонкий контурный лист и мягкое мятное свечение ---------- */
.ft5 { padding-top: clamp(28px, 0.8rem + 1.6vw, 64px); padding-bottom: clamp(24px, 0.8rem + 1.2vw, 48px); isolation: isolate; }
.ft5::before {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -60%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(160, 196, 150, 0.12), rgba(160, 196, 150, 0));
  pointer-events: none;
}
.ft5__leaf {
  position: absolute; z-index: -1; right: clamp(-40px, -2vw, 0px); bottom: -18%;
  width: clamp(260px, 14rem + 16vw, 640px); height: auto;
  color: #a9c49a; opacity: 0.14; transform: rotate(-8deg); pointer-events: none;
}
.ft5__top { padding-bottom: clamp(20px, 0.6rem + 1vw, 40px); }
.ft5__bottom { padding-top: clamp(16px, 0.6rem + 0.5vw, 28px); }
@media (max-width: 767px) { .ft5__leaf { width: 70vw; bottom: -6%; opacity: 0.12; } }

/* ---------- отзывы: карточки шире, ссылки в одну строку, аккуратная серая аватарка,
   стрелки по центру на уровне кнопки «Смотреть все отзывы», кнопка ближе ---------- */
@media (min-width: 1024px) and (max-width: 1679px) { .rv { --per: 2.7; } }
@media (min-width: 1680px) and (max-width: 2239px) { .rv { --per: 3.3; } }
@media (min-width: 2240px)                         { .rv { --per: 4.3; } }
.rv.is-fit .rv__nav { visibility: visible; }
.rv-card__links { flex-wrap: nowrap; white-space: nowrap; }
.rv-card__meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-card__ava { width: clamp(38px, 1.8rem + 0.4vw, 50px); height: clamp(38px, 1.8rem + 0.4vw, 50px); background: #e6e6e6; color: #c3c3c3; place-items: center; }
.rv__foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: clamp(28px, 1rem + 2.6vw, 96px); }
.rv__foot-side { display: block; }
.rv__nav { justify-self: center; }
.rv__nav { position: relative; }
.rv__count { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: clamp(12px, 0.5rem + 0.6vw, 24px); white-space: nowrap; }
.rv__all { justify-self: end; }
@media (max-width: 767px) {
  .rv-card__links { flex-wrap: wrap; white-space: normal; }
  .rv__foot { display: flex; flex-direction: column; align-items: stretch; margin-top: 28px; }
  .rv__foot-side { display: none; }
  .rv__nav { justify-self: auto; justify-content: flex-start; }
  .rv__count { position: static; transform: none; }
}

/* ---------- «О компании» компактнее: блок вместе с лентой логотипов помещается в экран,
   сверху меньше пустоты; подпись фото — стеклянная плашка во всю ширину с размытием ---------- */
@media (min-width: 1024px) {
  .tm { --tm-logos: clamp(80px, 3rem + 2.6vw, 150px); }
  .tm__logos { min-height: var(--tm-logos); }
  .tm__main { min-height: 0; height: clamp(560px, calc(100vh - var(--tm-logos)), 56vw); }
  .tm__text { justify-content: center; padding-top: clamp(88px, 2.6rem + 1.6vw, 130px); padding-bottom: clamp(24px, 0.6rem + 1.4vw, 56px); }
  .tm__title { font-size: clamp(32px, 1rem + 2.7vw, 96px); }
  .tm__lead { margin-top: clamp(14px, 0.5rem + 0.7vw, 30px); }
  .tm__stats { padding-top: clamp(22px, 0.6rem + 1.5vw, 56px); }
  .tm-stat { padding-top: clamp(12px, 0.3rem + 0.5vw, 24px); padding-bottom: clamp(16px, 0.5rem + 0.8vw, 34px); }
  .tm-stat__num { font-size: clamp(28px, 0.9rem + 1.9vw, 70px); }
}
.tm__photo figcaption {
  padding: clamp(14px, 0.6rem + 0.5vw, 24px) var(--gutter);
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-shadow: none;
  letter-spacing: 0.01em;
}

/* правки: «О компании» на 20px ниже, заголовок выше; плашка — полупрозрачная почти чёрная;
   аватарка в отзывах на 10% меньше; подвал без листика; контакты + подвал ровно в экран */
@media (min-width: 1024px) {
  .tm__main { height: clamp(540px, calc(100vh - var(--tm-logos) - 20px), 56vw); }
  .tm__text { padding-bottom: calc(clamp(24px, 0.6rem + 1.4vw, 56px) + 20px); }
}
.tm__photo figcaption { background: rgba(12, 10, 9, 0.45); border-top-color: rgba(255, 255, 255, 0.08); }
.rv-card__ava { width: clamp(34px, 1.62rem + 0.36vw, 45px); height: clamp(34px, 1.62rem + 0.36vw, 45px); }
.ft5::before { content: none; }
@media (min-width: 1024px) { .ct5 { height: max(460px, calc(100vh - var(--ft-h, 240px))); } }

/* «О компании»: ещё на 20px ниже за счёт верха; плашка — стекло, затемнение всего 5% */
@media (min-width: 1024px) {
  .tm__main { height: clamp(520px, calc(100vh - var(--tm-logos) - 40px), 56vw); }
  .tm__text { padding-top: calc(clamp(88px, 2.6rem + 1.6vw, 130px) - 20px); }
}
.tm__photo figcaption {
  background: rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

/* фото команды не реагирует на курсор: иначе браузер (напр. Яндекс) показывает над картинкой
   свою панель, и стеклянная плашка размывает её в белое пятно */
.tm__photo img, .tm__photo picture { pointer-events: none; -webkit-user-drag: none; user-select: none; }

/* картинки не реагируют на курсор — браузер (Яндекс) не вешает поверх свою панель с кнопками;
   клики и листание идут по карточкам и кнопкам. Плеер роликов не трогаем: там клик по видео нужен */
img, .v2-video, .st-card video { pointer-events: none; -webkit-user-drag: none; }

/* ---------- формы-билеты (окно заявки и дегустация): ровные переносы и больше воздуха ---------- */
.tst-ticket__title, .tst-ticket__sub { text-wrap: balance; }
.lead__ticket { width: min(100%, clamp(360px, 18rem + 15vw, 720px)); }
.lead__top, .lead__stub { padding-inline: clamp(28px, 1.2rem + 1.6vw, 64px); }
.lead__top { padding-top: clamp(38px, 1.5rem + 1.4vw, 68px); padding-bottom: clamp(26px, 1rem + 0.9vw, 44px); padding-right: clamp(64px, 2.4rem + 1.4vw, 96px); }
.lead__stub { gap: clamp(12px, 0.6rem + 0.3vw, 20px); padding-top: clamp(30px, 1.2rem + 0.9vw, 50px); padding-bottom: clamp(34px, 1.4rem + 1vw, 60px); }
.lead__stub .tst-ticket__label { margin-top: clamp(6px, 0.3rem + 0.3vw, 14px); }
.lead__stub .tst-chips { margin-bottom: clamp(6px, 0.3rem + 0.3vw, 14px); }
.lead__stub .tst-consent { margin: clamp(2px, 0.2rem + 0.2vw, 8px) 0 clamp(10px, 0.5rem + 0.4vw, 20px); }
.tst-ticket__stub .tst-chips { margin-bottom: clamp(4px, 0.2rem + 0.3vw, 12px); }
.tst-ticket__stub .tst-consent { margin: clamp(2px, 0.2rem + 0.2vw, 8px) 0 clamp(8px, 0.4rem + 0.3vw, 16px); }

/* «Заявка принята» — заметный заголовок, сгруппирован с пояснением, без одиноких слов в строке */
.lead__done, .tst-ticket__done { gap: 0; }
.lead__done .tst-ticket__over, .tst-ticket__done .tst-ticket__over {
  font-size: clamp(22px, 0.9rem + 0.8vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.1;
  color: var(--t-ink);
}
.lead__done .tst-ticket__sub, .tst-ticket__done .tst-ticket__sub { margin-top: clamp(10px, 0.5rem + 0.3vw, 16px) !important; max-width: 30em; text-wrap: balance; }
.lead__ok { margin-top: clamp(24px, 1rem + 0.8vw, 40px); }
.lead__done .tst-ticket__over, .tst-ticket__done .tst-ticket__over { margin: 0 !important; }
.lead__done .tst-ticket__sub, .tst-ticket__done .tst-ticket__sub { margin-bottom: 0 !important; }

/* «О компании»: ещё компактнее сверху (~25px), между подводкой и цифрами +15px */
@media (min-width: 1024px) {
  .tm__main { height: clamp(500px, calc(100vh - var(--tm-logos) - 65px), 56vw); }
  .tm__text { padding-top: calc(clamp(88px, 2.6rem + 1.6vw, 130px) - 45px); }
  .tm__stats { padding-top: calc(clamp(22px, 0.6rem + 1.5vw, 56px) + 15px); }
}
/* отзывы: стрелки и кнопка ниже, счётчик между стрелками */
.rv__foot { margin-top: calc(clamp(28px, 1rem + 2.6vw, 96px) + 25px); }
.rv__count { position: static; transform: none; margin: 0 clamp(10px, 0.4rem + 0.5vw, 20px); }
@media (max-width: 767px) { .rv__foot { margin-top: 32px; } }

/* кнопки кейсов — с острыми углами, как все кнопки сайта (стрелки и подсказка «Листайте») */
.cases__arrow { border-radius: 0; width: clamp(48px, 2rem + 0.8vw, 64px); height: clamp(40px, 1.6rem + 0.6vw, 52px); }
.cases-swipe { border-radius: 0; }

/* дегустация на телефоне: форма видна сразу целиком — белый билет почти во всю ширину поверх фото
   (вариант 1 из правок Всеволода, без всплывающего окна) */
@media (max-width: 767px) {
  .tst__right { padding: 44px 14px 52px; }
  .tst-ticket:not(.is-sheet) { filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.3)); }
  .tst-ticket:not(.is-sheet) .tst-ticket__stub:not([hidden]) { display: flex; }
  .tst-ticket:not(.is-sheet) .tst-ticket__top {
    background: #fff;
    color: var(--t-ink);
    padding: 30px 22px 22px;
    -webkit-mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
    mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
  }
  .tst-ticket:not(.is-sheet) .tst-ticket__stub { padding: 26px 22px 30px; }
  .tst-ticket:not(.is-sheet) .tst-ticket__title { font-size: 28px; }
  .tst-ticket:not(.is-sheet) .tst-ticket__sub { color: var(--t-mute); }
  .tst-ticket:not(.is-sheet) .tst-ticket__pills li { border-color: rgba(28, 23, 20, 0.25); background: transparent; color: var(--t-ink); }
  .tst-chips { grid-template-columns: 1fr 1fr; }
}

/* отзывы на телефоне: стрелки ← 01 / 04 → по центру, больше воздуха до кнопки */
@media (max-width: 767px) {
  .rv__foot { gap: 28px; margin-top: 36px; }
  .rv__nav { justify-content: center; }
}
/* подвал: кнопка «Оставить заявку» — белая */
.ft5__btn { background: #fff; }
@media (hover: hover) { .ft5__btn:hover { background: #f2ede6; } }

/* услуги: в карточке «Не нашли свой формат?» кнопка внизу */
.svc-card--cta .svc-card__cta { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.svc-card--cta .svc-card__cta .svc-btn { margin-top: auto; }
.svc-card--cta .svc-card__cta .svc-card__text { margin-bottom: clamp(16px, 0.8rem + 0.6vw, 28px); }

/* знак «МЯТА» не двигается за курсором — только медленно переливается; за мышью ходит лишь «луч» по фото */
@media (hover: hover) and (pointer: fine) {
  .ct5__logo, .ct5__visual.is-live .ct5__logo { transform: translate(-50%, -50%); animation: ct5-flow 14s ease-in-out infinite alternate; transition: none; }
}

/* контакты: «живая вода» (liquid.js, OGL Flowmap) — холст поверх фото, знак сверху */
.ct5__logo { z-index: 1; }

/* контакты: знак с подписью «catering & events», как в логотипе из макета */
.ct5__logo {
  aspect-ratio: 426 / 206;
  width: min(80%, 780px);
  -webkit-mask-image: url("assets/contacts/logo-full.svg");
  mask-image: url("assets/contacts/logo-full.svg");
}
@media (max-width: 767px) { .ct5__logo { width: 84%; } }

/* лента логотипов: подпись крупнее; на планшете и телефоне — по центру и с воздухом */
.tm__logos-label { font-size: clamp(14px, 0.75rem + 0.25vw, 20px); color: rgba(28, 23, 20, 0.62); }
@media (max-width: 1023px) {
  .tm__logos { gap: 20px; padding-top: 36px; padding-bottom: 36px; }
  .tm__logos-label { max-width: 22em; margin: 0 auto; text-align: center; font-size: 16px; line-height: 1.4; text-wrap: balance; }
}
@media (max-width: 767px) { .tm__photo figcaption { font-size: 12.5px; padding-inline: 12px; text-wrap: balance; } }

/* «живая вода» (liquid.js): холст поверх фото — в контактах и за формой дегустации */
.liquid-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.has-liquid > .liquid-canvas { opacity: 1; }
.tst__right .liquid-canvas { z-index: 0; }

/* ---------- дегустация: фон медленно «дышит» (лёгкое приближение и смещение), сверху — «вода» от курсора ---------- */
.tst__right { overflow: hidden; }
.tst__right .tst__photo, .tst__right .liquid-canvas { animation: tst-drift 26s ease-in-out infinite alternate; transform-origin: 50% 50%; will-change: transform; }
@keyframes tst-drift {
  0%   { transform: scale(1.03) translate3d(0, 0, 0); }
  50%  { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
  100% { transform: scale(1.05) translate3d(1%, -1.4%, 0); }
}
@media (prefers-reduced-motion: reduce) { .tst__right .tst__photo, .tst__right .liquid-canvas { animation: none; } }

/* дегустация на телефоне: названия этапов крупнее (+20%), ровные переносы, строка внизу не вылезает */
@media (max-width: 767px) {
  .tst__name { font-size: 14.4px; }
  .tst__desc { text-wrap: balance; }
  .tst__lead { text-wrap: balance; }
  .tst__bar { text-wrap: balance; overflow-wrap: anywhere; padding-right: var(--t-pad); }
  .tst { --peek-w: 56px; }
}

/* ---------- видео: крупнее, формат сторис 9:16, без подписей и длительности ---------- */
.st { --st-w: clamp(230px, 22vw, 560px); }
.st-card__media { aspect-ratio: 9 / 16 !important; }
.st__viewport { height: calc(var(--st-w) * 16 / 9 + 8px) !important; }
.st-card__cap { display: none !important; }
@media (max-width: 767px) { .st { --st-w: 62vw; } }

/* отзывы: аватар и в окне отзыва */
.rvm__person { gap: 12px; padding: 8px 26px 8px 8px; }
.rvm__ava.rv-card__ava { width: 42px; height: 42px; background: rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.55); }

/* окно «Оригинал отзыва» со скриншотом */
.rvo { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 16px; }
.rvo[hidden] { display: none; }
.rvo__backdrop { position: absolute; inset: 0; background: rgba(22, 18, 16, 0.88); opacity: 0; transition: opacity 0.3s var(--ease); }
.rvo__box { position: relative; margin: 0; width: min(100%, 760px); opacity: 0; transform: translate3d(0, 20px, 0) scale(0.98); transition: opacity 0.3s var(--ease), transform 0.5s var(--ease-expo); }
.rvo.is-open .rvo__backdrop, .rvo.is-open .rvo__box { opacity: 1; }
.rvo.is-open .rvo__box { transform: none; }
.rvo__img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); pointer-events: auto; }
.rvo__cap { margin-top: 14px; text-align: center; font-family: var(--font-display); font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.rvo__close { position: absolute; top: -48px; right: 0; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.rvo__close svg { width: 16px; height: 16px; }
body.is-locked:has(.rvo.is-open) .stick { transform: translate3d(0, -140%, 0); opacity: 0; visibility: hidden; }

/* контакты: крупная кнопка «Оставить заявку» под контактами (из подвала перенесена сюда) */
.ct5__btn { align-self: stretch; justify-content: space-between; margin-top: clamp(20px, 0.8rem + 1vw, 40px); min-height: clamp(60px, 2.8rem + 1.3vw, 92px); font-size: clamp(13px, 0.6rem + 0.3vw, 18px); padding: 0 clamp(24px, 1rem + 1vw, 44px); background: #1c1714; color: #fff; }
@media (hover: hover) { .ct5__btn:hover { background: #3a322d; } .ct5__btn:hover .svc-arrow { transform: translateX(4px); } }
@media (min-width: 1024px) { .ct5 { height: auto; min-height: max(460px, calc(100vh - var(--ft-h, 240px))); } }

/* ---------- мобильные правки (v6) ---------- */
@media (max-width: 767px) {
  /* «Почему мы?»: без подписи под фото; все пункты сразу раскрыты, без + и − */
  .why__photo figcaption { display: none; }
  .why .acc-panel { grid-template-rows: 1fr !important; }
  .why .acc-panel > * { visibility: visible !important; opacity: 1 !important; }
  .why-item__head { pointer-events: none; }
  .why .acc-pm { display: none !important; }
  .why-item__desc { padding-bottom: 18px; }
  /* меню: «Меню: от классики» в одну строку */
  .m5__br-desk { display: none; }
  /* логотипы крупнее, до отзывов меньше пустоты */
  .tm__marquee { --lk: 1.1px; }
  .tm__logos { padding-bottom: 28px; }
  .rv { padding-top: 48px; }
}
/* видео на ~6% меньше */
.st { --st-w: clamp(216px, 20.7vw, 526px); }
@media (max-width: 767px) { .st { --st-w: 58vw; } }

/* ======================================================================
   v6 — «оркестр» анимаций (anim.js): появление волной с перехлёстом, шторки фото, плавные окна
   ====================================================================== */
:root { --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1); --ease-in-soft: cubic-bezier(0.55, 0, 0.75, 0.2); }
/* выплывает снизу; у текстов — ещё и из лёгкого размытия */
.anim-ready [data-a="rise"] {
  opacity: 0;
  translate: 0 34px;
  transition: opacity 0.9s var(--ease-out-soft) var(--ad, 0s), translate 1.25s var(--ease-out-soft) var(--ad, 0s), filter 1s var(--ease-out-soft) var(--ad, 0s);
}
.anim-ready :is(.tst__title, .tst__lead, .why__title, .why__lead, .m5__title, .m5__lead, .st__title, .st__lead, .tm__title, .tm__lead, .rv__title, .rv__lead, .ct5__title)[data-a="rise"] { filter: blur(8px); }
.anim-ready [data-a="rise"].is-in { opacity: 1; translate: 0 0; filter: none; }
/* проявляется (ленты, которые и так движутся) */
.anim-ready [data-a="fade"] { opacity: 0; transition: opacity 1.4s var(--ease-out-soft) var(--ad, 0s); }
.anim-ready [data-a="fade"].is-in { opacity: 1; }
/* шторка снизу вверх; фото внутри чуть отъезжает из приближения */
.anim-ready [data-a="clip"] { clip-path: inset(100% 0 0 0); transition: clip-path 1.45s cubic-bezier(0.77, 0, 0.18, 1) var(--ad, 0s); }
.anim-ready [data-a="clip"].is-in { clip-path: inset(0 0 0 0); }
.anim-ready :is(.why__photo, .tm__photo)[data-a="clip"] img { scale: 1.16; transition: scale 2.2s var(--ease-out-soft) var(--ad, 0s); }
.anim-ready :is(.why__photo, .tm__photo)[data-a="clip"].is-in img { scale: 1.06; }
/* крупные фото плывут при прокрутке (запас по краям — scale) */
.why__photo img, .tm__photo img { translate: 0 var(--py, 0px); scale: 1.06; }
@media (max-width: 1023px) { .why__photo img, .tm__photo img { translate: none; scale: 1; } }

/* кнопки-магниты: слегка тянутся к курсору */
.is-magnet { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); }
/* карточки отзывов оживают под мышью */
@media (hover: hover) {
  .rv-card { transition: translate 0.6s var(--ease-out-soft), box-shadow 0.6s var(--ease-out-soft), background-color 0.4s; }
  .rv-card:hover { translate: 0 -6px; box-shadow: 0 22px 44px rgba(28, 23, 20, 0.08); background: #f5f4f2; }
  .tm-stat { transition: translate 0.6s var(--ease-out-soft); }
  .tm-stat:hover { translate: 0 -3px; }
  .ft5__nav a, .ct5__row a { transition: color 0.3s, opacity 0.3s; }
}

/* ---------- окна: открываются плавно и дорого, закрываются быстрее ---------- */
.rvo__backdrop, .rvm__backdrop, .lead__backdrop { transition: opacity 0.55s var(--ease-out-soft), backdrop-filter 0.55s; }
.rvo__box, .rvm__box, .lead__ticket {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 40px, 0) scale(0.955);
  transition: opacity 0.5s var(--ease-out-soft), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s var(--ease-out-soft);
}
.rvo.is-open .rvo__box, .rvm.is-open .rvm__box, .lead.is-open .lead__ticket { opacity: 1; filter: none; transform: none; }
.lead__ticket { filter: blur(10px) drop-shadow(0 24px 60px rgba(0, 0, 0, 0.35)); }
.lead.is-open .lead__ticket { filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.35)); }
/* закрытие — короче и мягче */
.rvo:not(.is-open) .rvo__box, .rvm:not(.is-open) .rvm__box, .lead:not(.is-open) .lead__ticket { transition-duration: 0.28s, 0.35s, 0.3s; transition-timing-function: var(--ease-in-soft); }
/* скриншот отзыва раскрывается шторкой, подпись — следом */
.rvo__img { pointer-events: none; clip-path: inset(0 0 100% 0 round 10px); transition: clip-path 0.9s cubic-bezier(0.77, 0, 0.18, 1) 0.12s; }
.rvo.is-open .rvo__img { clip-path: inset(0 0 0 0 round 10px); }
.rvo__cap { opacity: 0; translate: 0 10px; transition: opacity 0.6s var(--ease-out-soft) 0.45s, translate 0.8s var(--ease-out-soft) 0.45s; }
.rvo.is-open .rvo__cap { opacity: 1; translate: 0 0; }
.rvo__close { opacity: 0; transition: opacity 0.5s 0.35s; }
.rvo.is-open .rvo__close { opacity: 1; }
/* содержимое окна отзыва — короткая волна */
.rvm.is-open .rvm__body > * { animation: rvm-wave 0.9s var(--ease-out-soft) both; }
.rvm.is-open .rvm__body > *:nth-child(2) { animation-delay: 0.08s; }
.rvm.is-open .rvm__body > *:nth-child(3) { animation-delay: 0.16s; }
.rvm.is-open .rvm__body > *:nth-child(4) { animation-delay: 0.24s; }
@keyframes rvm-wave { from { opacity: 0; translate: 0 14px; } }
/* поля окна заявки — тоже волной */
.lead.is-open .lead__stub > * { animation: rvm-wave 0.9s var(--ease-out-soft) both; }
.lead.is-open .lead__stub > *:nth-child(2) { animation-delay: 0.1s; }
.lead.is-open .lead__stub > *:nth-child(3) { animation-delay: 0.15s; }
.lead.is-open .lead__stub > *:nth-child(4) { animation-delay: 0.2s; }
.lead.is-open .lead__stub > *:nth-child(5) { animation-delay: 0.25s; }
.lead.is-open .lead__stub > *:nth-child(6) { animation-delay: 0.3s; }
.lead.is-open .lead__stub > *:nth-child(7) { animation-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  .rvo__box, .rvm__box, .lead__ticket, .rvo__img, .rvo__cap { transition: none !important; filter: none !important; clip-path: none !important; }
  .rvm.is-open .rvm__body > *, .lead.is-open .lead__stub > * { animation: none; }
}
/* фото с лёгким приближением/параллаксом не выходит за свою рамку — градиент под подписью совпадает с краями */
@media (min-width: 1024px) { .why__photo, .tm__photo { overflow: hidden; border-radius: 4px; } }
/* v6 · поп-ап заявки: без «перфорации» (пунктир и вырезы) — цельная карточка */
.lead__top, .lead__stub { -webkit-mask: none; mask: none; }
.lead__stub::before { content: none; }
.lead__stub { padding-top: clamp(4px, 0.2rem + 0.3vw, 14px); }

/* v6 · дегустация: вернули живой абстрактный фон из v2/v3 вместо фото (цвета — --c1…--c5 выше) */
.tst-bg {
  --mx: 0;
  --my: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c2) 55%, transparent), transparent 60%),
    var(--bg-base);
}
.tst-bg i {
  position: absolute;
  width: var(--s);
  aspect-ratio: 1;
  left: var(--l);
  top: var(--t);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c) 0%, color-mix(in srgb, var(--c) 45%, transparent) 45%, transparent 100%);
  mix-blend-mode: screen;
  opacity: 0.85;
  translate: calc(var(--mx) * var(--k) * 1px) calc(var(--my) * var(--k) * 1px);
  will-change: transform;
  animation: tst-blob var(--dur) ease-in-out infinite alternate;
  animation-delay: var(--del);
}
.tst-bg i:nth-child(1) { --c: var(--c1); --s: 78%; --l: 22%; --t: 26%; --k: 70;  --dur: 17s; --del: -3s; }
.tst-bg i:nth-child(2) { --c: var(--c3); --s: 64%; --l: 82%; --t: 74%; --k: -60; --dur: 21s; --del: -9s; }
.tst-bg i:nth-child(3) { --c: var(--c4); --s: 58%; --l: 78%; --t: 18%; --k: 45;  --dur: 19s; --del: -6s; }
.tst-bg i:nth-child(4) { --c: var(--c5); --s: 40%; --l: 30%; --t: 86%; --k: -40; --dur: 23s; --del: -12s; opacity: 0.6; }
.tst-bg i:nth-child(5) { --c: var(--c2); --s: 90%; --l: 50%; --t: 55%; --k: 25;  --dur: 27s; --del: -1s; mix-blend-mode: normal; opacity: 0.7; }
@keyframes tst-blob {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  33%  { transform: translate3d(14%, -10%, 0) scale(1.15) rotate(40deg); }
  66%  { transform: translate3d(-12%, 12%, 0) scale(0.9) rotate(-30deg); }
  100% { transform: translate3d(8%, 6%, 0) scale(1.08) rotate(20deg); }
}
@media (prefers-reduced-motion: reduce) { .tst-bg i { animation: none; } }
.tst__right { background: var(--bg-base); }
.tst__right::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.09;
  mix-blend-mode: overlay;
}
/* v6 · пятна: мягкие края; за курсором едва смещаются, при наведении плавно расходятся в стороны и расплываются */
@property --sp { syntax: "<number>"; inherits: true; initial-value: 0; }
.tst-bg { --sp: 0; transition: --sp 1.8s var(--ease-out-soft, ease); }
.tst-bg i {
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 80%, transparent) 0%, color-mix(in srgb, var(--c) 38%, transparent) 38%, color-mix(in srgb, var(--c) 12%, transparent) 66%, transparent 100%);
  opacity: calc(0.72 - var(--sp) * 0.12);
  translate: calc(var(--mx) * var(--k) * 0.35px + var(--dx) * var(--sp) * 1px) calc(var(--my) * var(--k) * 0.35px + var(--dy) * var(--sp) * 1px);
  scale: calc(1 + var(--sp) * 0.16);
}
.tst-bg i:nth-child(1) { --dx: -46; --dy: -30; }
.tst-bg i:nth-child(2) { --dx: 44;  --dy: 36; }
.tst-bg i:nth-child(3) { --dx: 40;  --dy: -40; }
.tst-bg i:nth-child(4) { --dx: -34; --dy: 42; opacity: calc(0.5 - var(--sp) * 0.08); }
.tst-bg i:nth-child(5) { --dx: 0;   --dy: 0;  opacity: calc(0.6 - var(--sp) * 0.1); }
@media (hover: hover) and (pointer: fine) {
  .tst__right:hover .tst-bg { --sp: 1; }
}
/* v6 · скорость: маска логотипа в контактах не грузится вместе с первым экраном */
.ct5:not(.is-near) .ct5__logo { -webkit-mask-image: none; mask-image: none; opacity: 0; }
/* v7 · фон за формой дегустации: световые ленты + мозаичная линза (lens.js); CSS-пятна — запасной вариант без WebGL2 */
.tst-lens { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease-out-soft, ease); }
.tst-lens.is-on { opacity: 1; }
.has-lens .tst-bg { display: none; }
.has-lens::after { opacity: 0.05; }

/* «Почему мы?» на компьютере: пункт раскрывается при наведении — текст мягко проявляется, заголовок остаётся на месте */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .why .acc-panel { transition: grid-template-rows 0.7s var(--ease-out-soft, ease); }
  .why .acc-panel__in > * { opacity: 0; translate: 0 -6px; transition: opacity 0.35s ease, translate 0.5s var(--ease-out-soft, ease); }
  .why .why-item.is-open .acc-panel__in > * { opacity: 1; translate: 0 0; transition-delay: 0.14s; }
}

/* «Почему мы?»: заголовок пункта не сдвигается ни при наведении, ни при раскрытии */
.why .why-item__head:hover .why-item__title, .why .why-item.is-open .why-item__title { transform: none; translate: none; }

/* ===== v7: понятные ошибки форм ===== */
:root { --err: #c62828; }
.tst-field.is-error input,
.qz-field.is-error input {
  border-color: color-mix(in srgb, var(--err) 75%, transparent);
  background-color: color-mix(in srgb, var(--err) 2.5%, #fff);
}
.qz-consent.is-error i { border-color: color-mix(in srgb, var(--err) 75%, transparent); }
.qz-consent.is-error span { color: var(--err); }
.qz-consent.is-error span a { color: inherit; }
.f-err {
  margin: -2px 0 0;
  font-size: clamp(13px, 0.7rem + 0.12vw, 15px);
  line-height: 1.35;
  color: var(--err);
  animation: f-err-in 0.35s var(--ease-out-soft, ease) both;
}
@keyframes f-err-in { from { opacity: 0; translate: 0 -4px; } }
.is-error input:not([type="checkbox"]) { animation: f-err-shake 0.38s ease; }
@keyframes f-err-shake { 25% { translate: -4px 0; } 50% { translate: 3px 0; } 75% { translate: -2px 0; } }
@media (prefers-reduced-motion: reduce) { .is-error input, .f-err { animation: none; } }

/* ===== v7: ноутбуки 13–14″ (низкий экран) — блоки целиком помещаются по высоте.
   Срабатывает только когда окно невысокое; большие мониторы и 4K не меняются. ===== */
@media (min-width: 1024px) and (max-height: 860px) {
  /* услуги: фото чуть ниже, шахматный сдвиг меньше */
  .svc { --svc-step: 52px; }
  .svc-card__photo { aspect-ratio: 302 / 228; }

  /* квиз: форма без лишней пустоты, фото тянется по её высоте */
  .qz { padding-top: clamp(40px, 4vh, 64px); padding-bottom: clamp(64px, 9vh, 110px); }
  .qz__card { min-height: 624px; padding-top: 32px; padding-bottom: 32px; }
  .qz__left { gap: 20px; }
  .qz__photo { min-height: 0; }
  .qz-step { gap: 20px; }
  .qz-opt { min-height: 52px; }
  .qz-next { min-height: 56px; }
  /* шаг «контакты»: мессенджеры в одну строку, отступы плотнее — шаг не выше остальных */
  [data-step="4"].qz-step { gap: 14px; }
  [data-step="4"] .qz-grid--2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  [data-step="4"] .qz-opt { padding: 0 12px; justify-content: center; }

  /* отзывы: стрелки и кнопка ближе к карточкам */
  .rv { padding-top: clamp(64px, 10vh, 110px); }
  .rv__head { margin-bottom: clamp(28px, 5vh, 48px); }
  .rv__foot { margin-top: clamp(24px, 4vh, 40px); }

  /* видео «Искусство создавать впечатления»: без подзаголовка, ролики чуть меньше — стрелки на экране */
  .st__lead { display: none; }
  .st { --st-w: clamp(200px, 18vw, 600px); padding-top: clamp(56px, 9vh, 96px); }
}

/* ===== v7: плавность на телефонах и планшетах =====
   Анимация размытия (filter: blur) на мобильных браузерах перерисовывает элемент каждый кадр —
   отсюда «дрожь» первого экрана и рывки при прокрутке. Здесь появление остаётся (прозрачность и сдвиг),
   а размытие, мерцание огней поверх видео и стеклянные подложки на прокручиваемых фото — убраны. */
@media (hover: none), (max-width: 1023px) {
  .js .v2 .hero__bg { filter: none; scale: 1; transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
  .v2-glow { display: none; }
  .js .v2 .logo,
  .js .v2 .nav__list li,
  .js .v2 .header__contacts .phone,
  .js .v2 .socials li,
  .js .v2 .burger,
  .js .v2-c,
  .js .v2-w,
  .js .v2-title__accent-in,
  .js .fact,
  .js .cases__bar,
  .js .cases:not(.is-in) .case-card__in,
  .anim-ready [data-a="rise"] { filter: none !important; }
  .js.is-loaded .v2-title__accent-in { animation: none; }
  .tm__photo figcaption { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 10, 9, 0.58); }
}

/* ===== v7: облегчённый режим для слабых Android (класс .lite ставится в <head>) =====
   Без стеклянных размытий и долгих анимаций: появления мгновенные, бегущие ленты стоят,
   пятна за формой дегустации неподвижны. Видео первого экрана не трогаем. */
html.lite *,
html.lite *::before,
html.lite *::after {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  animation-delay: 0s !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}
html.lite [style*="filter"], html.lite .js .v2-c, html.lite .js .v2-w, html.lite [data-a] { filter: none !important; }
html.lite .stick { background: rgba(10, 10, 10, 0.94); }
html.lite .drawer { background: rgb(14, 13, 12); }
html.lite .burger, html.lite .btn--glass { background: rgba(0, 0, 0, 0.32); }
html.lite .case-card__tag { background: rgba(10, 10, 10, 0.6); }
html.lite .tst-bg::after { display: none; }   /* зернистость поверх пятен */
html.lite .v2-glow { display: none; }

/* ===== v7: в поп-апах заголовки без курсива (на телефоне форма дегустации открывается окном) ===== */
@media (max-width: 767px) {
  .tst-ticket__title em { font-family: inherit; font-style: normal; letter-spacing: inherit; }
}

/* ===== v8: в контактах вместо фото листа — тот же живой фон, что за формой дегустации ===== */
.ct5__visual { background: #0f1513; isolation: isolate; }
.ct5__visual .tst-bg { position: absolute; inset: 0; z-index: 0; }
.ct5__visual.has-lens .tst-bg { display: none; }
.ct5__visual .tst-lens { z-index: 0; }
.ct5__logo { z-index: 2; }


/* ===== отзывы: настоящие фото авторов и абзацы как в оригинале ===== */
.rv-card__ava { overflow: hidden; }
.rv-card__ava img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.rv-card__text, .rvm__text { white-space: pre-line; }


/* ===== кейсы: в галерее все фото одинаково яркие, без затемнения и мигания при переключении ===== */
.case-slide, .case-slide.is-active { opacity: 1; }
.case-slide { transition: transform 1s var(--ease-expo); }
.cpop__slide, .cpop .cpop__slide.is-active { filter: none; }
.cpop__slide { transition: opacity 0.8s var(--ease) var(--d, 0s), transform 1s var(--ease-expo) var(--d, 0s); }

/* ===== видео в ленте: всегда без звука, кнопки звука нет ===== */
.stp__sound { display: none !important; }

/* ===== отзывы: вертикальный скриншот целиком помещается в окно ===== */
.rvo__box { width: auto; max-width: min(100%, 760px); display: flex; flex-direction: column; align-items: center; }
.rvo__img { max-height: calc(100vh - 150px); max-height: calc(100svh - 150px); }
.rvo__img { width: auto; max-width: 100%; height: auto; max-height: calc(100svh - 120px); object-fit: contain; }

/* видео: без подписей — ни в ленте, ни в окне просмотра */
.stp [data-stp-name] { display: none !important; }

/* телефон: текст согласия в формах читаемого размера (не меньше 12px) */
@media (max-width: 767px) {
  .qz-consent span, .qz-consent .qz-link { font-size: 12px; line-height: 1.45; }
}

/* ===== видео: вместо кнопки Play — подсказка под лентой «Нажмите на видео, чтобы увеличить» ===== */
.st-card__play { display: none !important; }
.st-tap {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: clamp(18px, 0.8rem + 0.8vw, 36px) auto 0; padding: 0 var(--gutter, 16px);
  font-size: clamp(11px, 0.62rem + 0.18vw, 14px); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3;
  color: rgba(28, 23, 20, 0.55); text-align: center;
}
.st-tap__hand { width: clamp(20px, 1.1rem + 0.3vw, 26px); height: auto; flex: none; color: #1c1714; overflow: visible; transform-origin: 50% 80%; animation: st-tap 2.4s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
.st-tap__ring { opacity: 0; transform-origin: 10.5px 6px; animation: st-tap-ring 2.4s ease-out infinite; }
@keyframes st-tap { 0%, 30%, 100% { transform: translate3d(0, 0, 0) scale(1); } 42% { transform: translate3d(0, 2px, 0) scale(0.92); } 55% { transform: translate3d(0, 0, 0) scale(1); } }
@keyframes st-tap-ring { 0%, 40% { opacity: 0; transform: scale(0.6); } 48% { opacity: 0.9; } 75%, 100% { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .st-tap__hand, .st-tap__ring { animation: none; } .st-tap__ring { opacity: 0; } }
@media (max-width: 767px) { .st-tap { margin-top: 18px; font-size: 11px; gap: 8px; } }

/* подсказка: на компьютере — в одной строке со стрелками (высота блока не растёт), на телефоне — под лентой */
.st-tap--touch { display: none; }
.st__nav { position: relative; }
.st-tap--desk { position: absolute; right: calc(50% + 70px); top: 50%; transform: translateY(-50%); margin: 0; padding: 0; white-space: nowrap; }
@media (max-width: 767px) {
  .st-tap--touch { display: flex; }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .st-tap--desk { right: auto; left: var(--edge, 24px); }
}

/* ===== видео: тонкий пальчик + два варианта подсказки =====
   вариант 1 (по умолчанию): подсказка по центру под заголовком — вместо подзаголовка, стрелки по центру под лентой;
   вариант 2 (?tap=2): подсказка слева, стрелки справа — оба края по второму от центра ролику */
.st-tap__hand {
  width: clamp(20px, 1.05rem + 0.25vw, 26px); height: auto; flex: none; overflow: visible;
  color: #1c1714; animation: none; transform: none;
  fill: none; stroke: currentColor; stroke-width: 1.05; stroke-linecap: round; stroke-linejoin: round;
}
.st-tap__palm { transform-box: fill-box; transform-origin: 30% 10%; animation: st-tap2 2.6s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
.st-tap__ring { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: st-tap2-ring 2.6s ease-out infinite; }
.st-tap__ring--2 { animation-delay: 0.12s; }
@keyframes st-tap2 { 0%, 30%, 100% { transform: translate3d(0, 0, 0) scale(1); } 40% { transform: translate3d(0, 1.6px, 0) scale(0.95); } 52% { transform: translate3d(0, 0, 0) scale(1); } }
@keyframes st-tap2-ring { 0%, 38% { opacity: 0; transform: scale(0.7); } 46% { opacity: 0.85; } 72%, 100% { opacity: 0; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .st-tap__palm, .st-tap__ring { animation: none; } .st-tap__ring { opacity: 0.6; } }

.st-tap--head { display: none; margin: 0; padding: 0; }
@media (min-width: 768px) {
  /* все ролики чуть ниже — минус 10px по высоте */
  .st { --st-w: calc(clamp(216px, 20.7vw, 526px) - 5.6px); }
  html:not(.tap2) .st-tap--head { display: flex; }
  html:not(.tap2) .st-tap--desk { display: none; }
  html:not(.tap2) .st__nav { justify-content: center; }
  .tap2 .st__nav {
    --st-off: calc(var(--st-w) * 1.88 + var(--st-gap) * 2);
    justify-content: space-between; align-items: center;
    padding-inline: max(var(--edge, 24px), calc(50% - var(--st-off)));
  }
  .tap2 .st-tap--desk { position: static; transform: none; justify-content: flex-start; }
}
@media (min-width: 1024px) and (max-height: 860px) {
  .st { --st-w: calc(clamp(200px, 18vw, 600px) - 5.6px); }
}

/* ===== меню: блок ровно в высоту экрана, кнопка всегда видна =====
   отступы и заголовок зависят и от высоты окна, а не только от ширины */
@media (min-width: 1024px) {
  .m5 { height: 100vh; height: 100svh; min-height: 540px; }
  .m5__text { padding-top: clamp(96px, 15vh, 190px); padding-bottom: clamp(24px, 6vh, 90px); gap: clamp(16px, 3vh, 40px); }
  .m5__title { font-size: min(clamp(28px, 1rem + 2.22vw, 76px), 7.2vh); }
  .m5__lead { font-size: min(clamp(15px, 0.6rem + 0.55vw, 24px), 2.6vh); margin-top: min(clamp(16px, 0.6rem + 0.8vw, 36px), 3vh); }
  .m5__btn { min-height: min(clamp(52px, 2rem + 1.9vw, 84px), 9vh); flex: none; }
}
/* видео: блок с подсказкой и стрелками целиком в экран — отступы зависят от высоты окна */
@media (min-width: 1024px) {
  .st { padding-top: clamp(44px, 7vh, 170px); }
  .st__head { margin-bottom: clamp(18px, 3.4vh, 80px); gap: clamp(8px, 1.4vh, 18px); }
  .st__nav { margin-top: clamp(12px, 2vh, 40px); }
}
/* пальчик по контурам образца: тонкая линия, плавно покачивается влево-вправо */
.st-tap__hand { width: clamp(15px, 0.8rem + 0.2vw, 19px); stroke-width: 1; animation: st-sway 2.8s ease-in-out infinite; }
@keyframes st-sway { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }
@media (prefers-reduced-motion: reduce) { .st-tap__hand { animation: none; } }
.st-tap__hand { stroke-width: 0.8; }

/* вариант 3 (?tap=3): подсказка в две строки и стрелки — над лентой, края по второму от центра ролику */
.st-tap__br { display: none; }
@media (min-width: 768px) {
  .tap3 .st { display: flex; flex-direction: column; }
  .tap3 .st__head { order: 0; margin-bottom: clamp(18px, 3vh, 56px); }
  .tap3 .st__nav { order: 1; margin: 0 0 clamp(20px, 3.4vh, 56px); }
  .tap3 .st__viewport { order: 2; }
  .tap3 .st__dots, .tap3 .st-tap--touch { order: 3; }
  .tap3 .st-tap__br { display: inline; }
  .tap3 .st-tap--desk { text-align: left; line-height: 1.45; }
}
/* вариант 3: строка с подсказкой и стрелками опущена к роликам, над которыми стоит
   (верх второго от центра ролика = верх ленты + 20% высоты кадра) */
@media (min-width: 768px) {
  .tap3 .st__nav { position: relative; z-index: 2; pointer-events: none; margin-bottom: clamp(20px, 3.4vh, 56px);
    transform: translateY(calc(clamp(20px, 3.4vh, 56px) + var(--st-w) * 16 / 9 * 0.2 - clamp(40px, 2.4vw, 50px))); }
  .tap3 .st__nav > * { pointer-events: auto; }
}
