﻿/* ==========================================================================
   МИРАРТА — дизайн-система
   Палитра из брендбука 2026: #0A0A0A · #1A1A1A · #C0392B · #C9A85C · #F0DFA8
   Две темы: тёмная (по умолчанию) и светлая. Переключение — [data-theme]
   ========================================================================== */

/* ---------- Шрифты (локальные, без Google Fonts) ---------- */
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-400-cyrillic.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-400-latin.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-500-cyrillic.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-500-latin.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-700-cyrillic.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-700-latin.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-800-cyrillic.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/manrope-800-latin.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/cormorant-500i-cyrillic.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/cormorant-500i-latin.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}

/* ---------- Токены ---------- */
:root {
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Cormorant', Georgia, 'Times New Roman', serif;

  --bg: #0A0A0A;
  --bg-soft: #0E0E0E;
  --surface: #131313;
  --surface-2: #1A1A1A;
  --surface-3: #202020;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);

  --text: #F6F3ED;
  --text-2: rgba(246, 243, 237, .68);
  --text-3: rgba(246, 243, 237, .42);

  --gold: #C9A85C;
  --gold-hi: #F0DFA8;
  --gold-deep: #8A6528;
  --red: #C0392B;
  --glow: rgba(201, 168, 92, .20);
  --glow-2: rgba(201, 168, 92, .06);

  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .85);
  --radius: 18px;
  --radius-lg: 26px;

  --header-h: 74px;
  --ease: cubic-bezier(.22, .7, .24, 1);

  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #F7F4EE;
  --bg-soft: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F2EDE3;
  --surface-3: #EAE3D6;
  --line: rgba(20, 17, 14, .12);
  --line-2: rgba(20, 17, 14, .22);

  --text: #14110E;
  --text-2: rgba(20, 17, 14, .70);
  --text-3: rgba(20, 17, 14, .46);

  --gold: #9C7A2E;
  --gold-hi: #C9A85C;
  --gold-deep: #6E5319;
  --red: #B03127;
  --glow: rgba(156, 122, 46, .20);
  --glow-2: rgba(156, 122, 46, .07);

  --shadow: 0 30px 70px -34px rgba(60, 44, 20, .35);
  color-scheme: light;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--gold); color: #0A0A0A; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: clamp(64px, 8vw, 130px); position: relative; }
.section--tight { padding-block: clamp(48px, 5vw, 80px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 800;
  max-width: 22ch;
}
.lead {
  color: var(--text-2);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  max-width: 60ch;
  margin-top: 18px;
}

.grad {
  background: linear-gradient(105deg, var(--gold-hi) 0%, var(--gold) 42%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; }

/* ---------- Кнопки ---------- */
.btn {
  --pad: 16px 30px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad);
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  cursor: pointer;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.995); }

.btn--primary {
  background: linear-gradient(100deg, var(--gold-hi), var(--gold) 45%, #B18F44);
  color: #14100A;
  box-shadow: 0 12px 40px -12px rgba(201, 168, 92, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 55px -14px rgba(201, 168, 92, .75), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn--primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
  border-color: var(--line-2);
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -22px var(--gold);
}
.btn--sm { --pad: 11px 20px; font-size: 14px; }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease), height .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  height: 62px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}
.logo { display: flex; align-items: baseline; gap: 12px; margin-right: auto; }
.logo__mark {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.logo__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: .02em;
  opacity: .9;
}
.nav { display: flex; gap: 26px; }
.nav a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  padding-block: 6px;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.header__phone:hover { color: var(--gold); }

/* ---------- Переключатель темы ---------- */
.theme-toggle {
  position: relative;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  cursor: pointer;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.theme-toggle:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--glow-2), 0 10px 30px -12px var(--glow);
}
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
[data-theme="light"] .theme-toggle .ico-sun { display: block; }
[data-theme="light"] .theme-toggle .ico-moon { display: none; }
.theme-toggle[data-mode="auto"]::before {
  content: '';
  position: absolute;
  top: -3px; right: -3px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.7); opacity: .55; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 90px));
  padding-bottom: clamp(40px, 6vw, 90px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  width: 900px; height: 900px;
  top: -380px; right: -260px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  filter: blur(30px);
  pointer-events: none;
  animation: drift 22s var(--ease) infinite alternate;
}
.hero__glow--2 {
  width: 620px; height: 620px;
  top: auto; bottom: -320px; right: auto; left: -220px;
  background: radial-gradient(circle, rgba(192, 57, 43, .10) 0%, transparent 65%);
  animation-delay: -8s;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-70px, 60px, 0) scale(1.12); }
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.35rem, 5.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
  margin-bottom: 24px;
}
.hero__lead {
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  color: var(--text-2);
  max-width: 46ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-2);
}
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  flex: none;
}

.hero__media { position: relative; }
.hero__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1.4s var(--ease);
  filter: saturate(.92);
}
.hero__frame:hover img { transform: scale(1.07); }
.hero__frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 40%, rgba(10, 10, 10, .72) 100%);
  pointer-events: none;
}
[data-theme="light"] .hero__frame::after {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 55%, rgba(10, 10, 10, .55) 100%);
}
.hero__badge {
  position: absolute;
  left: 22px; bottom: 22px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(10, 10, 10, .55);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
  color: #F6F3ED;
}
.hero__badge b { font-size: 17px; font-weight: 800; }
.hero__badge span { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }

.hero__float {
  position: absolute;
  right: -18px; top: 34px;
  z-index: 2;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #14100A;
  background: linear-gradient(100deg, var(--gold-hi), var(--gold));
  box-shadow: 0 18px 40px -18px rgba(201, 168, 92, .8);
  animation: float 6s var(--ease) infinite alternate;
}
@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* ---------- Бегущая строка ---------- */
.marquee {
  position: relative;
  padding-block: 22px;
  border-block: 1px solid var(--line);
  overflow: hidden;
  --gap: 44px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: var(--gap);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.marquee span::after {
  content: '✦';
  color: var(--gold);
  font-size: .8em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Цифры ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stats__item {
  background: var(--bg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stats__num {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.stats__label { font-size: 13px; color: var(--text-2); line-height: 1.4; }

/* ---------- Заголовок секции ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sec-head__right { max-width: 38ch; color: var(--text-2); font-size: 15px; }

/* ---------- Направления ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, transparent 30%, var(--gold) 50%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: -1;
}
.card::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  right: -90px; top: -90px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .7);
}
.card:hover::before, .card:hover::after { opacity: 1; }

.card__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--gold);
  opacity: .8;
}
.card__title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.card__text { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.card__price {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13px;
  color: var(--text-3);
}
.card__price b { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.card__arrow {
  position: absolute;
  right: 26px; top: 28px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text-3);
  transition: all .4s var(--ease);
}
.card:hover .card__arrow {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(-45deg);
  box-shadow: 0 0 18px -4px var(--gold);
}

/* ---------- Проекты ---------- */
.projects { display: grid; gap: 2px; border-top: 1px solid var(--line); }
.project {
  display: grid;
  grid-template-columns: 90px 1.2fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding .4s var(--ease), background-color .4s var(--ease);
}
.project::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 100%;
  background: linear-gradient(90deg, var(--glow-2), transparent);
  transition: width .5s var(--ease);
  z-index: -1;
}
.project:hover::before { width: 100%; }
.project:hover { padding-inline: 22px; }
.project__idx {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--gold);
  opacity: .55;
}
.project__name { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; }
.project__type { font-size: 14px; color: var(--text-2); }
.project__tag {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}

/* ---------- Производство ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }

.collage {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  aspect-ratio: 1 / 1.02;
}
.collage figure {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.collage figure:first-child { grid-row: span 2; }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s var(--ease); filter: saturate(.9) contrast(1.02); }
.collage figure:hover img { transform: scale(1.06); filter: saturate(1) contrast(1.05); }

.feature-list { display: grid; gap: 18px; margin-top: 32px; }
.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.feature__ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  color: var(--gold);
}
.feature__ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.feature__title { font-weight: 700; font-size: 15.5px; margin-bottom: 3px; }
.feature__text { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ---------- Процесс ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 27px; left: 40px; right: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--gold), var(--line));
  opacity: .5;
}
.step { position: relative; counter-increment: step; }
.step__dot {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--line-2);
  font-weight: 800;
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  transition: box-shadow .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.step:hover .step__dot {
  border-color: var(--gold);
  box-shadow: 0 0 0 6px var(--glow-2), 0 0 30px -6px var(--gold);
  transform: translateY(-3px);
}
.step__title { font-weight: 700; font-size: 16px; margin-bottom: 6px; letter-spacing: -.01em; }
.step__text { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }

/* ---------- Цены ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.price-table caption { text-align: left; color: var(--text-3); font-size: 13px; padding-bottom: 14px; }
.price-table th {
  text-align: left;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line-2);
}
.price-table td {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: baseline;
}
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table td:first-child { font-weight: 600; }
.price-table .muted { color: var(--text-2); font-size: 13.5px; }
.price-table tr { transition: background-color .3s var(--ease); }
.price-table tbody tr:hover { background: var(--glow-2); }
.price-note { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  transition: background-color .3s var(--ease);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(15.5px, 1.6vw, 18px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  color: var(--gold);
  transition: transform .35s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; color: var(--text-2); font-size: 15px; max-width: 78ch; }

/* ---------- Форма ---------- */
.cta {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 56px);
  background:
    radial-gradient(120% 120% at 85% 0%, var(--glow) 0%, transparent 55%),
    linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  overflow: hidden;
}
.cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { min-height: 92px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--glow-2);
}
.field select { appearance: none; cursor: pointer; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
}
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.check a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.form__note { font-size: 12px; color: var(--text-3); }

.form-success {
  display: none;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--gold);
  background: var(--glow-2);
  font-size: 15px;
}
.form.is-sent .form-success { display: block; }
.form.is-sent .form__body { display: none; }

/* ---------- Подвал ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 60px 34px;
  background: var(--bg-soft);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.footer__brand .logo { margin-bottom: 16px; }
.footer__about { font-size: 14px; color: var(--text-2); max-width: 34ch; line-height: 1.6; }
.footer h4 {
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer ul { display: grid; gap: 10px; font-size: 14.5px; }
.footer a { color: var(--text-2); transition: color .25s var(--ease); }
.footer a:hover { color: var(--gold); }
.footer__phone { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
.footer__bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-3);
}

/* ---------- Анимация появления ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Мобильное меню ---------- */
.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform .3s var(--ease);
}
.burger span::before, .burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 520px; }
  .hero__frame { aspect-ratio: 16 / 11; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .collapse { max-width: 560px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .burger { display: grid; }
  .cta__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .project { grid-template-columns: 56px 1fr auto; gap: 14px; }
  .project__type { display: none; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .price-table td:first-child { font-size: 14px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .collage { aspect-ratio: 1 / 1; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__float { display: none; }
  .project__tag { display: none; }
  .container { padding-inline: 18px; }
  .card { padding: 24px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Печать */
@media print {
  .header, .theme-toggle, .marquee, .hero__glow, .cta { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Мобильное меню (панель) ---------- */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease);
  }
  .nav.is-open { display: flex; opacity: 1; pointer-events: auto; }
  .nav a { font-size: 26px; font-weight: 700; color: var(--text); }
  .nav a::after { display: none; }
  .burger { position: relative; z-index: 101; }
  .burger.is-active span { background: transparent; }
  .burger.is-active span::before { top: 0; transform: rotate(45deg); }
  .burger.is-active span::after { top: 0; transform: rotate(-45deg); }
}

/* ---------- Якорные отступы под фиксированную шапку ---------- */
section[id], div[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

/* ---------- Уточнения шапки на средних экранах ---------- */
@media (max-width: 1240px) {
  .logo__sub { display: none; }
  .nav { gap: 20px; }
}
@media (max-width: 1040px) {
  .header__phone { font-size: 14px; }
  .nav { gap: 16px; }
}
@media (max-width: 960px) {
  .header__phone { display: none; }
}

/* ---------- Типографические улучшения ---------- */
h1, .h2 { text-wrap: balance; }
.hero__lead, .lead, .card__text { text-wrap: pretty; }


/* ==========================================================================
   ОБНОВЛЕНИЕ v2 — логотип, красные акценты, кнопки с магнитом,
   слайдшоу в шапке, команда, кейс, видео
   ========================================================================== */

/* ---------- Логотип: словознак + красная линия (как в брендбуке) ---------- */
.logo {
  display: inline-flex;
  flex-direction: column;
  gap: 7px;
  margin-right: auto;
  line-height: 1;
}
.logo__mark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text);
  transition: color .4s var(--ease);
}
.logo__line {
  display: block;
  height: 2px;
  width: 100%;
  min-width: 118px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 62%, rgba(192, 57, 43, 0) 100%);
  border-radius: 2px;
}
.logo__sub {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--font);
  font-style: normal;
  margin-top: 2px;
}

/* ---------- Красные акценты ---------- */
.eyebrow::before {
  background: linear-gradient(90deg, transparent, var(--red));
}
.eyebrow .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  flex: none;
}
.card__num { color: var(--red); opacity: .85; }
.marquee span::after { color: var(--red); }
.faq summary::after { color: var(--red); }
.check input:required + span::after { content: ''; }
.field .req { color: var(--red); }
.price-table tbody tr:hover td:last-child { color: var(--gold); }
.project:hover .project__tag { border-color: var(--red); color: var(--red); }
.step:hover .step__dot { color: var(--red); border-color: var(--red); }
.hero__glow--2 { background: radial-gradient(circle, rgba(192, 57, 43, .16) 0%, transparent 66%); }

.section-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--red), rgba(192, 57, 43, 0) 22%, transparent 100%);
  opacity: .55;
}

/* ---------- Кнопки v2: магнит, стрелка, блик ---------- */
.btn {
  min-height: 52px;
  padding: 0 26px;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .005em;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform .35s var(--ease), box-shadow .4s var(--ease),
              border-color .4s var(--ease), background-color .4s var(--ease), color .35s var(--ease);
}
.btn__ico {
  width: 16px; height: 16px;
  flex: none;
  transition: transform .4s var(--ease);
}
.btn:hover .btn__ico { transform: translate(3px, -3px); }
.btn--primary:hover,
.btn--primary:active { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); }
.btn--ghost:hover { transform: translate3d(var(--mx, 0px), var(--my, 0px), 0); }
.btn--ghost {
  border-color: var(--line-2);
  background: color-mix(in srgb, var(--surface) 45%, transparent);
}
.btn--ghost .btn__ico { color: var(--red); }
.btn--ghost:hover .btn__ico { color: var(--red); }

/* ---------- Слайдшоу в шапке ---------- */
.hero__frame { isolation: isolate; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
  will-change: opacity;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.hero__slide.is-active img {
  animation: kenburns 9s linear forwards;
}
@keyframes kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}
.hero__frame picture, .hero__slide picture { display: block; width: 100%; height: 100%; }

.hero__dots {
  position: absolute;
  right: 20px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 9px;
}
.hero__dot {
  width: 26px;
  height: 3px;
  border-radius: 2px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .28);
  cursor: pointer;
  transition: background-color .4s var(--ease), width .4s var(--ease);
}
.hero__dot.is-active { background: var(--red); width: 44px; }
.hero__badge, .hero__float { z-index: 4; }

/* подсветка под курсором в первом экране */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--px, 70%) var(--py, 20%), rgba(201, 168, 92, .10), transparent 62%);
  opacity: 0;
  transition: opacity .6s var(--ease);
  z-index: 1;
}
.hero.has-pointer::before { opacity: 1; }
.hero > .container { position: relative; z-index: 2; }

/* ---------- Команда ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.member {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.member:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: 0 34px 70px -40px rgba(0, 0, 0, .8);
}
.member__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface-2);
}
.member__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transform: scale(1.01);
  transition: filter .7s var(--ease), transform 1.1s var(--ease);
}
.member:hover .member__photo img { filter: grayscale(0) contrast(1); transform: scale(1.05); }
.member__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 10, .55) 100%);
  pointer-events: none;
}
.member__mono {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(56px, 7vw, 84px);
  color: var(--gold);
  background:
    radial-gradient(circle at 30% 25%, var(--glow), transparent 60%),
    linear-gradient(160deg, var(--surface-3), var(--bg));
  letter-spacing: .04em;
}
.member__mono::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  pointer-events: none;
}
.member__body { padding: 24px 24px 26px; }
.member__role {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}
.member__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 8px 0 10px;
}
.member__text { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ---------- Кейс «Сицилия» ---------- */
.case {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.case__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.case__label b { color: var(--red); font-weight: 700; }
.case__title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 800;
  margin-bottom: 10px;
}
.case__sub { color: var(--text-2); font-size: 15px; margin-bottom: 26px; }
.case__row { display: grid; gap: 18px; }
.case__item { display: grid; grid-template-columns: 116px 1fr; gap: 18px; align-items: baseline; }
.case__item dt {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
}
.case__item dd { font-size: 14.5px; color: var(--text-2); line-height: 1.6; margin: 0; }

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.metric { background: var(--bg); padding: 24px 22px; }
.metric__num {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--gold);
}
.metric__label { font-size: 12.5px; color: var(--text-2); margin-top: 8px; line-height: 1.45; }

.case blockquote {
  margin: 26px 0 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--red);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--text);
}
.case blockquote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--font);
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--text-3);
}

/* ---------- Видео ---------- */
.video-wrap { position: relative; }
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: var(--shadow);
}
.video > video, .video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video__poster { filter: saturate(.9); }
.video__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background:
    radial-gradient(circle at 50% 55%, rgba(10, 10, 10, .35), rgba(10, 10, 10, .72) 78%);
  cursor: pointer;
  transition: opacity .5s var(--ease);
}
.video__overlay:hover { opacity: .92; }
.video__play {
  position: relative;
  width: 92px; height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
  transition: transform .45s var(--ease), border-color .45s var(--ease);
}
.video__play::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--red);
  opacity: .7;
  animation: ripple 2.8s var(--ease) infinite;
}
.video__play::after {
  content: '';
  width: 0; height: 0;
  border-left: 18px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 6px;
}
.video__overlay:hover .video__play { transform: scale(1.06); border-color: var(--gold); }
@keyframes ripple {
  0% { transform: scale(1); opacity: .65; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.video__caption {
  position: absolute;
  left: 26px; bottom: 22px;
  z-index: 3;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
  pointer-events: none;
}
.video.is-playing .video__overlay { opacity: 0; pointer-events: none; }

/* ---------- Адаптив v2 ---------- */
@media (max-width: 1080px) {
  .team { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .team { grid-template-columns: 1fr; }
  .case__item { grid-template-columns: 1fr; gap: 6px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .video { border-radius: 18px; }
  .video__play { width: 72px; height: 72px; }
  .logo__sub { display: none; }
}


/* ---------- Видео v3: вертикальный формат (как снято) ---------- */
.video-split {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 400px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.video {
  aspect-ratio: 9 / 16;
  max-width: 400px;
  margin-inline: auto;
  border-radius: 26px;
}
.video__caption {
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 10.5px;
}
.video__play { width: 84px; height: 84px; }
@media (max-width: 900px) {
  .video-split { grid-template-columns: 1fr; }
  .video { max-width: 340px; }
}

/* В шапке — только словознак и линия, девиз оставляем в подвале */
.header .logo__sub { display: none; }
.footer .logo__mark { font-size: 17px; }
.footer .logo__sub {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--text-3);
  margin-top: 4px;
  max-width: 240px;
  line-height: 1.5;
}


/* ==========================================================================
   ОБНОВЛЕНИЕ v3 — светлая тема (тёмные акцентные блоки, перламутровые кнопки),
   мобильное меню, галерея-карусель с перетаскиванием
   ========================================================================== */

/* ---------- Светлая тема: акцентные блоки становятся тёмными ---------- */
[data-theme="light"] .cta,
[data-theme="light"] .footer {
  --bg: #0E0C0A;
  --bg-soft: #141110;
  --surface: #17140F;
  --surface-2: #1D1913;
  --surface-3: #241F18;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .20);
  --text: #F6F3ED;
  --text-2: rgba(246, 243, 237, .68);
  --text-3: rgba(246, 243, 237, .44);
  --gold: #C9A85C;
  --gold-hi: #F0DFA8;
  --glow: rgba(201, 168, 92, .18);
  color: var(--text);
}
[data-theme="light"] .cta {
  background:
    radial-gradient(120% 120% at 85% 0%, rgba(201, 168, 92, .16) 0%, transparent 55%),
    linear-gradient(160deg, #17140F, #0C0A08);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 50px 100px -60px rgba(20, 14, 8, .75);
}
[data-theme="light"] .cta .field input,
[data-theme="light"] .cta .field select,
[data-theme="light"] .cta .field textarea {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .18);
  color: #F6F3ED;
}
[data-theme="light"] .cta .field input::placeholder,
[data-theme="light"] .cta .field textarea::placeholder { color: rgba(246, 243, 237, .38); }
[data-theme="light"] .footer {
  background: linear-gradient(180deg, #100E0B, #0A0908);
  border-top-color: rgba(255, 255, 255, .08);
}
[data-theme="light"] .footer .logo__mark { color: #F6F3ED; }
[data-theme="light"] .footer .logo__sub { color: rgba(246, 243, 237, .42); }
[data-theme="light"] .footer a { color: rgba(246, 243, 237, .68); }
[data-theme="light"] .footer a:hover { color: var(--gold); }
[data-theme="light"] .footer h4 { color: rgba(246, 243, 237, .40); }
[data-theme="light"] .footer__phone { color: #F6F3ED; }
[data-theme="light"] .footer__about { color: rgba(246, 243, 237, .62); }
[data-theme="light"] .footer__bottom { color: rgba(246, 243, 237, .38); border-top-color: rgba(255, 255, 255, .10); }

/* ---------- Светлая тема: перламутрово-голубые кнопки ---------- */
[data-theme="light"] .btn--primary {
  background-image: linear-gradient(112deg,
      #1F3548 0%,
      #2C5375 26%,
      #4E82AA 48%,
      #7FA6C2 60%,
      #35556F 78%,
      #1E3345 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  color: #F8F5EE;
  border: 1px solid rgba(201, 168, 92, .40);
  box-shadow:
    0 16px 44px -16px rgba(31, 53, 72, .55),
    inset 0 1px 0 rgba(240, 223, 168, .45),
    inset 0 -1px 0 rgba(240, 223, 168, .18);
  transition: background-position .9s var(--ease), box-shadow .5s var(--ease), transform .35s var(--ease);
}
[data-theme="light"] .btn--primary::after {
  background: linear-gradient(100deg,
      transparent 18%,
      rgba(240, 223, 168, .55) 45%,
      rgba(255, 255, 255, .55) 52%,
      transparent 82%);
}
[data-theme="light"] .btn--primary:hover {
  background-position: 100% 50%;
  box-shadow:
    0 24px 60px -18px rgba(44, 83, 117, .62),
    inset 0 1px 0 rgba(240, 223, 168, .65),
    inset 0 -1px 0 rgba(240, 223, 168, .25);
}
[data-theme="light"] .btn--ghost {
  border-color: rgba(31, 53, 72, .22);
  background: rgba(255, 255, 255, .55);
}
[data-theme="light"] .btn--ghost:hover {
  border-color: rgba(31, 53, 72, .55);
  color: #1F3548;
  box-shadow: 0 18px 44px -24px rgba(31, 53, 72, .55);
}
[data-theme="light"] .btn--ghost .btn__ico { color: var(--red); }

/* ---------- Мобильное меню ---------- */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 80% at 80% 0%, var(--glow-2) 0%, transparent 60%),
    var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .42s var(--ease), transform .42s var(--ease), visibility .42s var(--ease);
  overscroll-behavior: contain;
}
.mnav.is-open { opacity: 1; visibility: visible; transform: none; }
.mnav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.mnav__close {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  flex: none;
}
.mnav__close span {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  margin-left: -9px;
  background: currentColor;
  border-radius: 2px;
}
.mnav__close span:first-child { transform: rotate(45deg); }
.mnav__close span:last-child { transform: rotate(-45deg); }
.mnav__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 26px 0;
  margin-block: auto;
}
.mnav__nav a {
  display: block;
  padding: 9px 0;
  font-size: clamp(26px, 8vw, 34px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: var(--text);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s var(--ease);
}
.mnav__nav a:hover { color: var(--gold); }
.mnav.is-open .mnav__nav a { opacity: 1; transform: none; }
.mnav.is-open .mnav__nav a:nth-child(1) { transition-delay: .10s; }
.mnav.is-open .mnav__nav a:nth-child(2) { transition-delay: .16s; }
.mnav.is-open .mnav__nav a:nth-child(3) { transition-delay: .22s; }
.mnav.is-open .mnav__nav a:nth-child(4) { transition-delay: .28s; }
.mnav.is-open .mnav__nav a:nth-child(5) { transition-delay: .34s; }
.mnav.is-open .mnav__nav a:nth-child(6) { transition-delay: .40s; }
.mnav__foot {
  display: grid;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease) .28s, transform .5s var(--ease) .28s;
}
.mnav.is-open .mnav__foot { opacity: 1; transform: none; }
.mnav__phone {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.mnav__socials { display: flex; gap: 18px; font-size: 14px; color: var(--text-2); }
.mnav__socials a:hover { color: var(--gold); }
.mnav .btn { width: 100%; }

body.is-locked { overflow: hidden; }

/* ---------- Галерея-карусель ---------- */
.gallery-sec { overflow: hidden; }
.marquee-images {
  position: relative;
  padding-block: clamp(40px, 5vw, 64px);
  overflow: hidden;
  touch-action: pan-y;
}
.marquee-images__track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
  cursor: grab;
  user-select: none;
}
.marquee-images__track.is-dragging { cursor: grabbing; }
.gcard {
  position: relative;
  flex: 0 0 auto;
  width: 260px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.gcard img {
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 1s var(--ease), filter .6s var(--ease);
  filter: saturate(.92);
}
.gcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 10, .35));
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.gcard:hover {
  border-color: var(--gold);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, .65);
  transform: translateY(-4px);
}
.gcard:hover img { transform: scale(1.05); filter: saturate(1); }
.gcard:hover::after { opacity: 1; }

.marquee-images__mask {
  position: absolute;
  left: 0; right: 0;
  height: 78px;
  z-index: 2;
  pointer-events: none;
  color: var(--bg);
}
.marquee-images__mask svg { width: 100%; height: 100%; display: block; }
.marquee-images__mask--top { top: 0; }
.marquee-images__mask--bottom { bottom: 0; }
.marquee-images__mask path { fill: currentColor; }

.gallery-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
}
.gallery-hint::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--red);
}

@media (max-width: 900px) {
  .gcard { width: 210px; border-radius: 14px; }
  .marquee-images__mask { height: 56px; }
}
@media (min-width: 1200px) {
  .gcard { width: 300px; }
}



/* ---------- Навигация: бургер до 1024px ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .header__phone { display: none; }
  .burger { display: grid; }
}


/* ---------- Вкладки галереи ---------- */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}
.gallery-tab {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease),
              background-color .3s var(--ease), box-shadow .35s var(--ease), transform .3s var(--ease);
}
.gallery-tab:hover {
  border-color: var(--gold);
  color: var(--text);
}
.gallery-tab.is-active {
  border-color: transparent;
  background: linear-gradient(100deg, var(--gold-hi), var(--gold) 60%, #B18F44);
  color: #14100A;
  box-shadow: 0 12px 28px -14px rgba(201, 168, 92, .75);
}
.gallery-tab:active { transform: scale(.97); }

/* ---------- Подпись направления на карточке ---------- */
.gcard__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #F6F3ED;
  background: rgba(10, 10, 10, .55);
  border: 1px solid rgba(255, 255, 255, .20);
  backdrop-filter: blur(8px);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
  pointer-events: none;
}
.gcard:hover .gcard__tag {
  background: linear-gradient(100deg, var(--gold-hi), var(--gold));
  border-color: transparent;
  color: #14100A;
}

@media (max-width: 900px) {
  .gallery-tab { padding: 8px 14px; font-size: 12.5px; }
  .gcard__tag { left: 9px; bottom: 9px; padding: 4px 9px; font-size: 8.5px; }
}


/* Страховка: скрытые фильтром карточки не занимают место */
.gcard { display: block; }
.gcard[hidden] { display: none !important; }
[hidden] { display: none !important; }


/* ==========================================================================
   v5 — соцкнопки основателя, золотые блики на кнопках
   ========================================================================== */

/* ---------- Соцкнопки в карточке команды ---------- */
.member__socials {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  gap: 7px;
}
.fsoc {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .30);
  background: rgba(10, 10, 10, .42);
  color: #F6F3ED;
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: color .35s var(--ease), border-color .35s var(--ease),
              transform .35s var(--ease), box-shadow .4s var(--ease);
}
.fsoc svg { width: 17px; height: 17px; display: block; }
.fsoc::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .75) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform .8s var(--ease);
  pointer-events: none;
}
.fsoc:hover {
  color: #14100A;
  border-color: transparent;
  background: linear-gradient(100deg, var(--gold-hi), var(--gold) 60%, #B18F44);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(201, 168, 92, .85);
}
.fsoc:hover::after { transform: translateX(130%); }

/* ---------- Золотой блик на вторичных кнопках ---------- */
.btn--ghost::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(201, 168, 92, .30) 48%, rgba(240, 223, 168, .38) 55%, transparent 78%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
  pointer-events: none;
}
.btn--ghost:hover::after { transform: translateX(120%); }

/* ---------- Тёплый блик на главных кнопках ---------- */
.btn--primary::after {
  background: linear-gradient(100deg, transparent 18%, rgba(255, 250, 232, .62) 44%, rgba(240, 223, 168, .78) 52%, transparent 82%);
}
[data-theme="light"] .btn--primary::after { opacity: .9; }

@media (max-width: 900px) {
  .member__socials { top: 10px; right: 10px; gap: 6px; }
  .fsoc { width: 34px; height: 34px; }
  .fsoc svg { width: 15px; height: 15px; }
}



/* ==========================================================================
   v6 — кейс с фото, 3D-карточка адреса, блок «Как нас найти»
   ========================================================================== */

/* ---------- Кейс: фото + метрики слева, текст справа ---------- */
.case__visual {
  display: grid;
  gap: 18px;
  order: -1;
}
.case__media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.case__media img { width: 100%; height: auto; display: block; }
.case__media figcaption {
  position: absolute;
  left: 14px; bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #F6F3ED;
  background: rgba(10, 10, 10, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}
.case__visual .metrics { margin-top: 0; }

@media (max-width: 1080px) {
  .case__visual { order: 0; }
  .case { grid-template-columns: 1fr; }
}

/* ---------- Блок «Как нас найти» ---------- */
.find {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 440px);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.find__text .h2 { max-width: 16ch; }
.find__list {
  display: grid;
  gap: 14px;
  margin: 26px 0 30px;
}
.find__list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.find__list b { color: var(--text); font-weight: 700; }
.find__ico {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  color: var(--red);
}
.find__ico svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.find__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 3D-карточка ---------- */
.map-card { perspective: 1100px; }
.card3d__inner {
  position: relative;
  padding: 14px;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  box-shadow: 0 50px 90px -55px rgba(0, 0, 0, .85);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .18s ease-out, box-shadow .5s var(--ease), border-color .5s var(--ease);
  will-change: transform;
}
.map-card:hover .card3d__inner {
  border-color: var(--line-2);
  box-shadow: 0 60px 110px -60px rgba(0, 0, 0, .9);
}
.card3d__inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--gx, 50%) var(--gy, 40%), rgba(255, 255, 255, .12), transparent 62%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.map-card:hover .card3d__inner::after { opacity: 1; }

.card3d__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  transform: translateZ(38px);
  background: var(--surface-2);
}
.card3d__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.map-card:hover .card3d__media img { filter: grayscale(0) contrast(1); transform: scale(1.03); }
.card3d__badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #14100A;
  background: linear-gradient(100deg, var(--gold-hi), var(--gold));
}
.card3d__body {
  transform: translateZ(64px);
  padding: 18px 12px 6px;
}
.card3d__label {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.card3d__address {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.015em;
  margin: 7px 0 5px;
  line-height: 1.25;
}
.card3d__hours { font-size: 13.5px; color: var(--text-2); }
.card3d__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  transition: color .3s var(--ease);
}
.card3d__link svg {
  width: 17px; height: 17px;
  flex: none;
  color: var(--red);
  transition: transform .35s var(--ease), color .3s var(--ease);
}
.card3d__link:hover { color: var(--gold); }
.card3d__link:hover svg { transform: translate(3px, -3px); color: var(--gold); }

@media (max-width: 1080px) {
  .find { grid-template-columns: 1fr; }
  .map-card { max-width: 420px; margin-inline: auto; }
}



/* ---------- Адрес в подвале ---------- */
.footer__address {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.footer__address a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__address a:hover { color: var(--gold-hi); }



/* ==========================================================================
   v7 — «Команда» как анимированный слайдер (эффект тестимониала)
   ========================================================================== */
.team-slider {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: clamp(26px, 4.5vw, 64px);
  align-items: center;
}

.ts-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.ts-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.05) rotate(1.6deg);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.ts-slide.is-active {
  opacity: 1;
  transform: none;
}
.ts-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  transition: filter .7s var(--ease), transform 1.1s var(--ease);
}
.ts-media:hover .ts-slide.is-active img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.03);
}
.ts-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(10, 10, 10, .55));
  pointer-events: none;
  z-index: 2;
}
.ts-counter {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #F6F3ED;
  background: rgba(10, 10, 10, .5);
  border: 1px solid rgba(255, 255, 255, .20);
  backdrop-filter: blur(8px);
}
.ts-counter i { font-style: normal; opacity: .45; }
.ts-counter b { color: var(--gold-hi); font-weight: 800; }

.ts-body { min-width: 0; }
.ts-item { display: none; }
.ts-item.is-active {
  display: block;
  animation: tsIn .55s var(--ease) both;
}
@keyframes tsIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.ts-role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
}
.ts-role::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--red);
}
.ts-name {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04;
  margin: 12px 0 16px;
}
.ts-text {
  font-size: clamp(15px, 1.3vw, 16.5px);
  line-height: 1.66;
  color: var(--text-2);
  max-width: 46ch;
}
.ts-quote {
  margin-top: 18px;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text);
  max-width: 44ch;
}

.member__socials--inline {
  position: static;
  margin-top: 22px;
  gap: 8px;
}
.member__socials--inline .fsoc {
  background: var(--surface-2);
  border-color: var(--line-2);
  color: var(--text);
}
.member__socials--inline .fsoc:hover {
  background: linear-gradient(100deg, var(--gold-hi), var(--gold) 60%, #B18F44);
  color: #14100A;
  border-color: transparent;
}

.ts-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}
.ts-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: color .3s var(--ease), border-color .3s var(--ease),
              box-shadow .4s var(--ease), transform .3s var(--ease);
}
.ts-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.ts-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 5px var(--glow-2), 0 14px 30px -16px var(--glow);
  transform: translateY(-2px);
}
.ts-btn:active { transform: scale(.95); }
.ts-progress {
  position: relative;
  flex: 1;
  max-width: 190px;
  height: 2px;
  margin-left: 10px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.ts-progress i {
  display: block;
  height: 100%;
  width: 33.33%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-hi), var(--gold));
  transition: width .55s var(--ease);
}

@media (max-width: 900px) {
  .team-slider { grid-template-columns: 1fr; }
  .ts-media { max-width: 360px; margin-inline: auto; width: 100%; }
  .ts-name { margin-bottom: 12px; }
  .ts-progress { max-width: none; }
}


/* Стабильная высота текстовой части, чтобы стрелки не прыгали */
.ts-body { display: flex; flex-direction: column; min-height: 340px; }
.ts-nav { margin-top: auto; padding-top: 26px; }
@media (max-width: 900px) {
  .ts-body { min-height: 0; }
  .ts-nav { margin-top: 26px; }
}


/* ==========================================================================
   v8 — перетаскиваемые карточки (Draggable Cards)
   ========================================================================== */
.drag-sec {
  position: relative;
  padding-block: clamp(40px, 6vw, 80px);
  overflow: hidden;
  overflow: clip;
}
.drag-stage {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 62vw, 660px);
  perspective: 3000px;
  isolation: isolate;
}

/* фоновая надпись за карточками */
.drag-ghost {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding-inline: 24px;
  text-align: center;
  font-size: clamp(1.6rem, 4.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 800;
  color: var(--text);
  opacity: .12;
  pointer-events: none;
  text-wrap: balance;
  user-select: none;
}
[data-theme="light"] .drag-ghost { opacity: .16; }

/* карточка: внешний слой — только перенос */
.drag-card {
  position: absolute;
  left: var(--x, 10%);
  top: var(--y, 10%);
  width: 320px;
  touch-action: pan-y;
  cursor: grab;
  z-index: 2;
  will-change: transform;
}
.drag-card.is-dragging { cursor: grabbing; z-index: 60; }

/* внутренний слой — поворот, наклон, масштаб, тень */
.drag-card__tilt {
  position: relative;
  display: block;
  padding: 12px 12px 8px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .75);
  transform:
    rotate(var(--r, 0deg))
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    scale(var(--s, 1));
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2, .7, .3, 1),
              box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.drag-card.is-dragging .drag-card__tilt {
  box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .9);
  border-color: var(--line-2);
}
.drag-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  pointer-events: none;
  filter: saturate(.94);
  transition: filter .5s var(--ease);
}
.drag-card:hover .drag-card__img { filter: saturate(1); }
.drag-card__title {
  margin: 12px 0 4px;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}
.drag-card__glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--glare, 0);
  background: radial-gradient(220px circle at var(--gx, 50%) var(--gy, 40%),
              rgba(255, 255, 255, .55), transparent 70%);
  mix-blend-mode: soft-light;
  transition: opacity .25s linear;
}

.drag-hint {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  pointer-events: none;
  white-space: nowrap;
}
.drag-hint::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

@media (max-width: 1100px) {
  .drag-card { width: 280px; }
}
@media (max-width: 900px) {
  .drag-card { width: 250px; }
  .drag-card__title { font-size: 15px; }
  .drag-stage { min-height: 560px; }
}
@media (max-width: 640px) {
  .drag-card { width: 210px; }
  .drag-stage { min-height: 500px; }
  .drag-hint { font-size: 9.5px; padding: 7px 12px; letter-spacing: .12em; }
}



/* ---------- Раскладка карточек в «разбросе» ---------- */
.drag-card--1 { --x: 3%;  --y: 6%;  --r: -5deg; }
.drag-card--2 { --x: 16%; --y: 28%; --r: -7deg; }
.drag-card--3 { --x: 30%; --y: 2%;  --r: 8deg;  }
.drag-card--4 { --x: 43%; --y: 26%; --r: 10deg; }
.drag-card--5 { --x: 57%; --y: 4%;  --r: 2deg;  }
.drag-card--6 { --x: 69%; --y: 30%; --r: -4deg; }

@media (max-width: 1100px) {
  .drag-card--1 { --x: 2%;  --y: 4%;  --r: -4deg; }
  .drag-card--2 { --x: 18%; --y: 24%; --r: -6deg; }
  .drag-card--3 { --x: 34%; --y: 0%;  --r: 7deg;  }
  .drag-card--4 { --x: 50%; --y: 22%; --r: 9deg;  }
  .drag-card--5 { --x: 2%;  --y: 46%; --r: 3deg;  }
  .drag-card--6 { --x: 22%; --y: 48%; --r: -5deg; }
}

@media (max-width: 900px) {
  .drag-card--1 { --x: 1%;  --y: 0%;  --r: -4deg; }
  .drag-card--2 { --x: 34%; --y: 12%; --r: 5deg;  }
  .drag-card--3 { --x: 3%;  --y: 24%; --r: 4deg;  }
  .drag-card--4 { --x: 35%; --y: 38%; --r: -5deg; }
  .drag-card--5 { --x: 5%;  --y: 50%; --r: 6deg;  }
  .drag-card--6 { --x: 37%; --y: 62%; --r: -3deg; }
  .drag-stage { min-height: 680px; }
}

@media (max-width: 640px) {
  .drag-card--1 { --x: 0%;  --y: 0%;  --r: -4deg; }
  .drag-card--2 { --x: 32%; --y: 11%; --r: 5deg;  }
  .drag-card--3 { --x: 2%;  --y: 22%; --r: 4deg;  }
  .drag-card--4 { --x: 34%; --y: 33%; --r: -5deg; }
  .drag-card--5 { --x: 4%;  --y: 44%; --r: 6deg;  }
  .drag-card--6 { --x: 36%; --y: 55%; --r: -3deg; }
  .drag-stage { min-height: 640px; }
  .drag-ghost { font-size: clamp(1.35rem, 6.2vw, 1.8rem); }
}



/* ==========================================================================
   v9 — карточки «разброса» квадратные, 1:1
   ========================================================================== */
.drag-card {
  aspect-ratio: 1 / 1;
}
.drag-card__tilt {
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-2);
}
.drag-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  object-fit: cover;
}
.drag-card__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 40px 16px 14px;
  text-align: left;
  font-size: 16px;
  line-height: 1.2;
  color: #F6F3ED;
  background: linear-gradient(0deg, rgba(10, 10, 10, .82) 15%, rgba(10, 10, 10, 0) 100%);
  pointer-events: none;
}
.drag-card__glare { z-index: 3; }

/* высоты сцены под квадратные карточки */
.drag-stage { min-height: clamp(460px, 54vw, 600px); }

@media (max-width: 1100px) {
  .drag-stage { min-height: 560px; }
}
@media (max-width: 900px) {
  .drag-stage { min-height: 665px; }
  .drag-card__title { font-size: 14.5px; padding: 32px 13px 11px; }
}
@media (max-width: 640px) {
  .drag-stage { min-height: 540px; }
  .drag-card__title { font-size: 13px; padding: 26px 11px 9px; }
}



/* ==========================================================================
   v10 — «Команда» как колода фотографий + проявление текста по словам
   ========================================================================== */
.deck-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: clamp(26px, 4.5vw, 64px);
  align-items: center;
}

.deck {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
}
.deck__item {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
  transform: rotate(var(--r, 0deg)) scale(.95);
  opacity: .7;
  z-index: var(--z, 2);
  transition: transform .45s ease-in-out, opacity .45s ease-in-out;
  will-change: transform, opacity;
}
.deck__item picture,
.deck__item img {
  display: block;
  width: 100%;
  height: 100%;
}
.deck__item img {
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line);
  filter: grayscale(1) contrast(1.03) brightness(.9);
  transition: filter .6s var(--ease);
}
.deck__item.is-active {
  opacity: 1;
  z-index: 40;
  transform: rotate(0deg) scale(1);
  animation: deckLift .55s ease-in-out;
}
.deck__item.is-active img {
  filter: grayscale(0) contrast(1) brightness(1);
  box-shadow: var(--shadow);
}
@keyframes deckLift {
  0%   { transform: translateY(0) rotate(0deg) scale(1); }
  45%  { transform: translateY(-22px) rotate(0deg) scale(1.005); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

/* ---------- текст ---------- */
.deck-body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.deck-text { display: none; }
.deck-text.is-active {
  display: block;
  animation: deckTextIn .3s ease-in-out both;
}
@keyframes deckTextIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.deck__name {
  font-size: clamp(1.75rem, 3.1vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin: 0 0 8px;
}
.deck__role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0;
}
.deck__quote {
  margin-top: 28px;
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.72;
  color: var(--text-2);
  max-width: 46ch;
}
.deck__extra {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--text);
}

/* проявление по словам */
.deck__quote .w {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(5px);
  animation: wordIn .4s ease-in-out forwards;
  will-change: opacity, filter, transform;
}
@keyframes wordIn {
  to { opacity: 1; filter: blur(0); transform: none; }
}

.deck__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 34px;
}
.deck__counter {
  margin-left: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--text-3);
}
.deck__counter b { color: var(--gold); font-weight: 800; }

@media (max-width: 900px) {
  .deck-wrap { grid-template-columns: 1fr; }
  .deck { max-width: 360px; margin-inline: auto; }
  .deck-body { min-height: 0; }
  .deck__nav { padding-top: 26px; }
}



/* ==========================================================================
   v10 — воздух в форме заявки
   ========================================================================== */
.form { gap: 18px; }
.field { gap: 9px; }
.field label { line-height: 1.35; }
.field textarea { min-height: 104px; }
.form .check { margin-top: 4px; line-height: 1.6; }
.form .btn { margin-top: 10px; }
.form__note {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .005em;
}
.form-success { line-height: 1.65; }

@media (max-width: 640px) {
  .form { gap: 16px; }
  .form .btn { margin-top: 8px; }
}



/* ==========================================================================
   v11 — блок «Отзывы»: слайдер, всплывающие звёзды
   ========================================================================== */
.rev-score {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.rev-score__num {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
}
.rev-score__stars {
  display: inline-flex;
  gap: 4px;
  color: var(--gold);
  font-size: 16px;
  filter: drop-shadow(0 0 12px rgba(201, 168, 92, .45));
}
.rev-score__count { font-size: 13px; color: var(--text-3); }

.rev { position: relative; }
.rev__viewport {
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  box-shadow: var(--shadow);
}
.rev__track {
  display: flex;
  will-change: transform;
  transition: transform .75s cubic-bezier(.22, .7, .24, 1);
}
.rev__card {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(26px, 3.6vw, 56px);
  align-items: start;
}

.rev__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* звёзды */
.rev__stars { display: flex; gap: 6px; }
.rev__stars span {
  font-size: 21px;
  line-height: 1;
  color: var(--gold);
  opacity: 0;
  transform: scale(0) rotate(-35deg);
  text-shadow: 0 0 14px rgba(201, 168, 92, .65);
  will-change: transform, opacity;
}
.rev__card.is-active .rev__stars span {
  animation: starPop .62s cubic-bezier(.2, 1.5, .4, 1) forwards;
}
.rev__card.is-active .rev__stars span:nth-child(1) { animation-delay: .05s; }
.rev__card.is-active .rev__stars span:nth-child(2) { animation-delay: .13s; }
.rev__card.is-active .rev__stars span:nth-child(3) { animation-delay: .21s; }
.rev__card.is-active .rev__stars span:nth-child(4) { animation-delay: .29s; }
.rev__card.is-active .rev__stars span:nth-child(5) { animation-delay: .37s; }

@keyframes starPop {
  0%   { opacity: 0; transform: scale(0) rotate(-35deg); }
  60%  { opacity: 1; transform: scale(1.32) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.rev__person { display: flex; align-items: center; gap: 14px; }
.rev__avatar {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #14100A;
  background: linear-gradient(140deg, var(--gold-hi), var(--gold) 65%, #B18F44);
  box-shadow: 0 16px 34px -16px rgba(201, 168, 92, .8);
}
.rev__name { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.rev__city { margin-top: 3px; font-size: 12.5px; color: var(--text-3); }

.rev__quote {
  position: relative;
  display: grid;
  gap: 12px;
  padding-left: 32px;
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--text-2);
}
.rev__quote::before {
  content: '«';
  position: absolute;
  left: -2px;
  top: -16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 68px;
  line-height: 1;
  color: var(--gold);
  opacity: .22;
  pointer-events: none;
}
.rev__quote p:first-child {
  color: var(--text);
  font-weight: 600;
}

.rev__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
}
.rev__dots { display: flex; align-items: center; gap: 8px; }
.rev__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--line-2);
  cursor: pointer;
  transition: width .35s var(--ease), background-color .35s var(--ease);
}
.rev__dot:hover { background: var(--gold); }
.rev__dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--gold-hi), var(--gold));
}

@media (max-width: 900px) {
  .rev__card {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .rev__quote { padding-left: 26px; }
  .rev__quote::before { font-size: 54px; top: -12px; }
  .rev__avatar { width: 62px; height: 62px; font-size: 18px; }
  .rev__nav { margin-top: 20px; }
}



/* ==========================================================================
   v12 — галерея как 3D-сфера: фото по сфере Фибоначчи, заголовок в центре
   ========================================================================== */
.sphere-sec { position: relative; }
.sphere-head { text-align: center; }
.eyebrow--center { justify-content: center; margin-bottom: 4px; }
.eyebrow--center::after {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--red), transparent);
}
.sphere-sec .gallery-tabs {
  justify-content: center;
  margin-top: 14px;
  margin-bottom: clamp(12px, 2.4vw, 26px);
}

#stage {
  --hw: min(56vw, 640px);
  position: relative;
  height: clamp(520px, 74vh, 800px);
  perspective: var(--persp, 1150px);
  perspective-origin: 50% 50%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
#stage.is-dragging { cursor: grabbing; }

#world {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
#orb {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

#headline {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--hw);
  margin-left: calc(var(--hw) / -2);
  text-align: center;
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .7), 0 0 70px rgba(0, 0, 0, .55);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 2;
}
#headline .inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
}
#headline .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(.42em);
  filter: blur(7px);
  transition: opacity 1.05s var(--ease), transform 1.15s var(--ease), filter 1.05s var(--ease);
  transition-delay: calc(.15s + var(--i) * .085s);
}
.sphere-sec.is-in #headline .w {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* карточки */
.pcard {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--cw, 120px);
  will-change: transform;
}
.pcard figure {
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #0a0a0a;
  transition: transform .5s var(--ease);
}
.pcard figure::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, var(--d, 0));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  pointer-events: none;
}
.pcard img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease-out;
}
.pcard.in img { opacity: 1; }
.pcard:hover figure { transform: scale(1.045); }

.sphere-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(10px, 2vw, 22px);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
}
.sphere-hint__icon { font-size: 15px; color: var(--gold); }

@media (max-width: 768px) {
  #headline { font-size: clamp(20px, 6vw, 30px); }
}
@media (max-width: 640px) {
  #stage { --hw: min(84vw, 360px); height: clamp(440px, 66vh, 580px); }
  .sphere-sec .gallery-tabs { gap: 7px; }
  .sphere-sec .gallery-tab { padding: 7px 12px; font-size: 11.5px; }
}
@media (max-width: 380px) {
  #stage { --hw: min(88vw, 320px); }
}



/* ---------- Светлая тема: сфера на тёмной полосе ---------- */
[data-theme="light"] .sphere-sec {
  --text: #F6F3ED;
  --text-2: rgba(246, 243, 237, .68);
  --text-3: rgba(246, 243, 237, .46);
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .22);
  --surface: #16120F;
  --surface-2: #1D1913;
  --gold: #C9A85C;
  --gold-hi: #F0DFA8;
  --red: #D0483A;
  color: var(--text);
  background: linear-gradient(180deg, #0E0C0A 0%, #0A0908 60%, #0E0C0A 100%);
}
[data-theme="light"] .sphere-sec .gallery-tab {
  border-color: rgba(255, 255, 255, .22);
  color: rgba(246, 243, 237, .66);
}
[data-theme="light"] .sphere-sec .gallery-tab:hover {
  border-color: var(--gold);
  color: #F6F3ED;
}
[data-theme="light"] .sphere-sec .gallery-tab.is-active {
  border-color: transparent;
  color: #14100A;
}

/* ---------- Отзывы: проявление текста по словам ---------- */
.rev__quote .wr {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(6px);
  animation: revWordIn .5s ease-in-out forwards;
  will-change: opacity, filter, transform;
}
@keyframes revWordIn {
  to { opacity: 1; filter: blur(0); transform: none; }
}


/* ---------- Форма: защита от спама и сообщение об ошибке ---------- */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-error {
  display: none;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #ff8a7a;
}
.form.has-error .form-error { display: block; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }


/* ==========================================================================
   Заставка при загрузке: чёрный экран, золотой блик по буквам, 0,7 с
   ========================================================================== */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: #000;
  pointer-events: none;
  animation: splashOut .25s ease .45s forwards;
}
.splash__word {
  display: flex;
  margin-right: -.42em;
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(22px, 4.6vw, 46px);
  letter-spacing: .42em;
  color: #f4f1ea;
}
.splash__word span {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  animation:
    splashLetter .26s cubic-bezier(.2, .7, .2, 1) var(--d) forwards,
    splashGold .38s ease calc(var(--d) + .12s) forwards;
}
.splash__line {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a85c, transparent);
  animation: splashLine .4s cubic-bezier(.2, .7, .2, 1) .1s forwards;
}

@keyframes splashLetter {
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes splashGold {
  0%   { color: #f4f1ea; text-shadow: none; }
  45%  { color: #f0dfa8; text-shadow: 0 0 22px rgba(240, 223, 168, .7); }
  100% { color: #f4f1ea; text-shadow: none; }
}
@keyframes splashLine {
  to { width: min(160px, 42vw); }
}
@keyframes splashOut {
  to { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
}


/* ==========================================================================
   Контакты в подвале: ссылки, мобильное центрирование, переливы
   ========================================================================== */
.footer__contacts a { position: relative; }
.footer__contacts a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-hi), var(--gold));
  transition: width .35s var(--ease);
}
.footer__contacts a:hover::after { width: 100%; }
.footer__plain { margin-top: 14px; font-size: 12.5px; color: var(--text-3); line-height: 1.6; }

@media (max-width: 640px) {
  /* подвал по центру */
  .footer { text-align: center; }
  .footer__grid { justify-items: center; gap: 34px; }
  .footer__grid > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .footer .logo { align-items: center; }
  .footer ul { justify-items: center; }
  .footer__about { margin-inline: auto; }
  .footer__address { text-align: center; }
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  /* переливы на телефоне */
  .footer .footer__phone {
    display: inline-block;
    background: linear-gradient(100deg,
        #f4f1ea 0%, #f4f1ea 36%, #f7ecc9 46%, #f0dfa8 50%, #f7ecc9 54%, #f4f1ea 64%, #f4f1ea 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: footerShine 4.5s linear infinite;
  }

  .footer__contacts a {
    display: inline-block;
    padding: 3px 0;
  }
  .footer__contacts a::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer__contacts a:hover::after { width: 100%; }
}

@keyframes footerShine {
  0%   { background-position: 140% 0; }
  100% { background-position: -40% 0; }
}

/* Мобильный: шаги процесса по центру */
@media (max-width: 640px) {
  .steps { text-align: center; }
  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .step__dot { margin-inline: auto; }
  .step__text { max-width: 34ch; margin-inline: auto; }
}


/* ===================== Логотип в подвале — центр ===================== */
@media (max-width: 640px) {
  .footer .logo {
    margin-right: 0 !important;
    margin-left: 0 !important;
    align-items: center;
    text-align: center;
  }
  .footer .logo__mark {
    letter-spacing: .28em;
    text-indent: .28em;
  }
  .footer .logo__sub {
    max-width: 260px;
    text-align: center;
    margin-inline: auto;
  }
  .footer .logo__line {
    width: 100%;
  }
}


/* ===================== Фоновое видео в подвале ===================== */
.footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.footer__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: .24;
  filter: saturate(.7) contrast(1.05);
}
.footer__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, .78) 0%, rgba(10, 9, 8, .72) 45%, rgba(10, 9, 8, .95) 100%),
    radial-gradient(120% 90% at 50% 0%, rgba(10, 9, 8, .35) 0%, rgba(10, 9, 8, .6) 60%, rgba(10, 9, 8, .85) 100%);
}
.footer .container { position: relative; z-index: 1; }

[data-theme="light"] .footer__video { opacity: .24; }

@media (prefers-reduced-motion: reduce) {
  .footer__video { display: none; }
}


/* ===================== Фоновое видео на узких экранах ===================== */
/* Видео — горизонтальная полоса 2.88:1. В высоком мобильном подвале cover
   растягивал её в разы, поэтому держим собственную пропорцию кадра:
   ширина подвала / 2.88, но не выше 260 px. */
@media (max-width: 900px) and (min-width: 641px) {
  .footer__bg {
    inset: 0 0 auto 0;
    height: 34.7vw;      /* ширина / 2.88 — пропорция кадра */
    max-height: 260px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  }
  .footer__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .footer__veil {
    background: linear-gradient(180deg, rgba(10, 9, 8, .5) 0%, rgba(10, 9, 8, .3) 55%, rgba(10, 9, 8, .85) 100%);
  }
  /* контент начинается под полосой видео */
  .footer .container {
    padding-top: calc(min(34.7vw, 260px) + 18px);
  }
}



/* ===================== Телефон: видео фоном на весь подвал ===================== */
/* Вертикальный кроп 0.4:1 под высокий мобильный подвал — без зума и растяжения,
   текст идёт поверх видео. */
.footer__video--tall { display: none; }

@media (max-width: 640px) {
  .footer__video--wide { display: none; }
  .footer__video--tall { display: block; }

  .footer__bg {
    inset: 0;
    height: auto;
    max-height: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .footer__video {
    opacity: .30;
    object-fit: cover;
    object-position: center top;
  }
  .footer__veil {
    background:
      linear-gradient(180deg, rgba(10, 9, 8, .55) 0%, rgba(10, 9, 8, .62) 45%, rgba(10, 9, 8, .8) 100%),
      radial-gradient(140% 60% at 50% 100%, rgba(10, 9, 8, .9) 0%, rgba(10, 9, 8, 0) 70%);
  }
  .footer .container {
    padding-top: 0;
  }
  /* чуть плотнее строки, чтобы подвал не растягивался */
  .footer__grid { gap: 26px; }
  .footer ul { gap: 8px; }
  .footer__about { line-height: 1.55; }
}


/* ==========================================================================
   Золотые пылинки поверх страницы
   ========================================================================== */
#dust {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  #dust { display: none; }
}

/* ==========================================================================
   Подвал в светлой теме: светлый фон, белая полупрозрачная вуаль над видео
   ========================================================================== */
[data-theme="light"] .footer {
  --bg: #F7F2E8;
  --bg-soft: #F2ECE0;
  --surface: #FFFDF8;
  --surface-2: #F6F1E6;
  --surface-3: #EDE6D8;
  --line: rgba(26, 26, 26, .12);
  --line-2: rgba(26, 26, 26, .22);
  --text: #1A1A1A;
  --text-2: rgba(26, 26, 26, .70);
  --text-3: rgba(26, 26, 26, .48);
  background: linear-gradient(180deg, #FBF7EE 0%, #F4EEE2 52%, #EDE5D6 100%);
  border-top-color: rgba(26, 26, 26, .10);
}

[data-theme="light"] .footer__veil {
  background:
    linear-gradient(180deg, rgba(252, 248, 239, .78) 0%, rgba(248, 243, 232, .74) 45%, rgba(238, 231, 216, .90) 100%),
    radial-gradient(120% 70% at 50% 100%, rgba(201, 168, 92, .10) 0%, rgba(201, 168, 92, 0) 70%);
}

[data-theme="light"] .footer__video {
  opacity: .22;
  filter: saturate(.45) contrast(.95) brightness(1.08);
}

[data-theme="light"] .footer a { color: rgba(26, 26, 26, .74); }
[data-theme="light"] .footer a:hover { color: #A8842F; }
[data-theme="light"] .footer h4 { color: rgba(26, 26, 26, .44); }
[data-theme="light"] .footer__about { color: rgba(26, 26, 26, .64); }
[data-theme="light"] .footer__bottom {
  color: rgba(26, 26, 26, .46);
  border-top-color: rgba(26, 26, 26, .10);
}
[data-theme="light"] .footer .logo__mark { color: #1A1A1A; }
[data-theme="light"] .footer .logo__sub { color: rgba(26, 26, 26, .46); }
[data-theme="light"] .footer__plain { color: rgba(26, 26, 26, .5); }
[data-theme="light"] .footer__contacts a::after {
  background: linear-gradient(90deg, #A8842F, #C9A85C);
}

/* телефон в светлой теме */
[data-theme="light"] .footer .footer__phone { color: #1A1A1A; }

/* переливы на телефоне в светлой теме — тёмное золото вместо кремового */
@media (max-width: 640px) {
  [data-theme="light"] .footer .footer__phone {
    background: linear-gradient(100deg,
        #1A1A1A 0%, #1A1A1A 36%, #6E5722 46%, #A8842F 50%, #6E5722 54%, #1A1A1A 64%, #1A1A1A 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}


/* ==========================================================================
   Переход от блока заявки к подвалу: без линии, с плавным входом видео
   ========================================================================== */
.footer {
  border-top: 0 !important;
  background: linear-gradient(180deg, #0A0A0A 0%, #100E0B 34%, #0C0A09 100%);
}
.footer__bg {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 170px);
  mask-image: linear-gradient(180deg, transparent 0, #000 170px);
}
[data-theme="light"] .footer {
  background: linear-gradient(180deg, #F7F4EE 0%, #F6F0E4 40%, #EDE5D6 100%);
}
[data-theme="light"] .footer .footer__bg {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 170px);
  mask-image: linear-gradient(180deg, transparent 0, #000 170px);
}

/* светлая тема: видео заметнее на 30% */
[data-theme="light"] .footer__video {
  opacity: .38;
  filter: saturate(.6) contrast(1) brightness(1.06);
}
[data-theme="light"] .footer__veil {
  background:
    linear-gradient(180deg, rgba(252, 248, 239, .66) 0%, rgba(248, 243, 232, .58) 45%, rgba(238, 231, 216, .82) 100%),
    radial-gradient(120% 70% at 50% 100%, rgba(201, 168, 92, .10) 0%, rgba(201, 168, 92, 0) 70%);
}

/* планшет: полоса видео с плавным входом сверху и уходом снизу */
@media (max-width: 900px) and (min-width: 641px) {
  .footer__bg {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 80px, #000 58%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 80px, #000 58%, transparent 100%);
  }
  [data-theme="light"] .footer .footer__bg {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 80px, #000 58%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 80px, #000 58%, transparent 100%);
  }
}

/* телефон: видео на весь подвал, вход сверху такой же плавный */
@media (max-width: 640px) {
  .footer__bg {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 120px);
    mask-image: linear-gradient(180deg, transparent 0, #000 120px);
  }
  [data-theme="light"] .footer .footer__bg {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 120px);
    mask-image: linear-gradient(180deg, transparent 0, #000 120px);
  }
}


/* ==========================================================================
   Кнопки в светлой теме: красные с золотым перламутровым блеском
   ========================================================================== */
[data-theme="light"] .btn--primary {
  background-image: linear-gradient(112deg,
      #6E150F 0%,
      #8F1F16 16%,
      #B32C20 32%,
      #D8A45C 44%,
      #F6E4B4 50%,
      #D8A45C 56%,
      #B32C20 68%,
      #8F1F16 84%,
      #6E150F 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  color: #FCF4E6;
  border: 1px solid rgba(240, 223, 168, .55);
  box-shadow:
    0 16px 44px -16px rgba(176, 49, 39, .62),
    inset 0 1px 0 rgba(255, 245, 220, .40),
    inset 0 -1px 0 rgba(240, 223, 168, .30);
}
[data-theme="light"] .btn--primary:hover {
  background-position: 100% 50%;
  box-shadow:
    0 24px 58px -18px rgba(176, 49, 39, .70),
    inset 0 1px 0 rgba(255, 245, 220, .55),
    inset 0 -1px 0 rgba(240, 223, 168, .40);
}
[data-theme="light"] .btn--primary::after {
  background: linear-gradient(100deg,
      transparent 18%,
      rgba(240, 223, 168, .70) 44%,
      rgba(255, 250, 235, .85) 52%,
      transparent 82%);
}

/* ==========================================================================
   Полоска под логотипом: тоньше, с красным и золотым перламутровым бликом
   ========================================================================== */
.logo__line {
  height: 1px;
  background: linear-gradient(90deg,
      #C0392B 0%, #C0392B 52%, rgba(192, 57, 43, .45) 74%, rgba(201, 168, 92, .65) 100%);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}
.logo__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(201, 168, 92, .85) 42%,
      rgba(255, 248, 226, .95) 50%,
      rgba(201, 168, 92, .85) 58%,
      transparent 100%);
  transform: translateX(-110%);
  animation: logoPearl 3s ease-in-out infinite;
}
@keyframes logoPearl {
  0%   { transform: translateX(-110%); }
  22%  { transform: translateX(110%); }
  100% { transform: translateX(110%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo__line::after { animation: none; opacity: 0; }
}

/* ==========================================================================
   Где это уже работает: имена заведений перелистываются на передний план
   ========================================================================== */
.venues {
  position: relative;
  height: clamp(160px, 20vw, 230px);
  margin-top: 18px;
  perspective: 900px;
}
.venue {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 42px, -60px) scale(.9);
  filter: blur(12px);
  transition:
    opacity .85s cubic-bezier(.2, .7, .2, 1),
    transform .85s cubic-bezier(.2, .7, .2, 1),
    filter .85s cubic-bezier(.2, .7, .2, 1);
  pointer-events: none;
  will-change: transform, opacity;
}
.venue.is-active {
  opacity: 1;
  transform: none;
  filter: none;
}
.venue.is-out {
  opacity: 0;
  transform: translate3d(0, -42px, 40px) scale(1.06);
  filter: blur(12px);
}

.venue__name {
  font-size: clamp(30px, 6vw, 78px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.02;
  background: linear-gradient(100deg,
      #7E5C22 0%, #B89548 22%, #EFD79B 40%, #FFF6DC 50%, #EFD79B 60%, #B89548 78%, #7E5C22 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: venueSheen 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 26px rgba(201, 168, 92, .38));
}
@keyframes venueSheen {
  0%        { background-position: 175% 0; }
  55%, 100% { background-position: -75% 0; }
}

[data-theme="light"] .venue__name {
  background-image: linear-gradient(100deg,
      #6B4E14 0%, #9C7A2E 22%, #C9A85C 40%, #EBD79E 50%, #C9A85C 60%, #9C7A2E 78%, #6B4E14 100%);
  filter: drop-shadow(0 0 22px rgba(156, 122, 46, .28));
}

.venue__meta {
  font-size: clamp(12px, 1.5vw, 15px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.venue__meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}

.venues__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.venues__count b { color: var(--gold); font-weight: 800; }
.venues__count em { font-style: normal; opacity: .55; }
.venues__hint { opacity: .45; letter-spacing: .1em; text-transform: none; }

/* ==========================================================================
   Журнал: статьи из Дзена
   ========================================================================== */
.journal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: 8px;
}
.jcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s;
  position: relative;
}
.jcard:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 92, .45);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .6);
}
.jcard__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.jcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.jcard:hover .jcard__media img { transform: scale(1.05); }
.jcard__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
  flex: 1;
}
.jcard__date {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.jcard__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jcard__more {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.jcard__more i { font-style: normal; transition: transform .35s var(--ease); }
.jcard:hover .jcard__more i { transform: translateX(5px); }
.journal__foot { display: flex; justify-content: center; margin-top: 30px; }

@media (max-width: 900px) {
  .journal { grid-template-columns: 1fr 1fr; }
  .jcard:last-child { display: none; }
}
@media (max-width: 640px) {
  .journal { grid-template-columns: 1fr; }
  .jcard:last-child { display: flex; }
  .venues { height: clamp(150px, 42vw, 200px); }
  .venues__hint { display: none; }
}


/* ==========================================================================
   Посадочные страницы: крошки, первый экран, цены, галерея, FAQ
   ========================================================================== */
.crumbs { padding: 24px 0 0; font-size: 12.5px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; color: var(--text-3); }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: '/'; opacity: .4; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

.phero { padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 36px); }
.phero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.phero__h1 {
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -.03em;
  font-weight: 800;
  margin: 0 0 18px;
}
.phero__lead { font-size: clamp(14.5px, 1.5vw, 17px); color: var(--text-2); line-height: 1.6; max-width: 52ch; margin: 0 0 26px; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.phero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.phero__facts li { display: flex; align-items: center; gap: 8px; }
.phero__facts li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.phero__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.phero__media img { display: block; width: 100%; height: auto; }

.psub { color: var(--text-2); font-size: 14.5px; line-height: 1.6; max-width: 62ch; margin: -6px 0 26px; }
.pnote { font-size: 13px; color: var(--text-3); margin-top: 16px; }
.plink { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201, 168, 92, .4); }

.ptable__wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ptable { width: 100%; border-collapse: collapse; min-width: 560px; }
.ptable th, .ptable td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ptable th { font-size: 11.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable td.muted { color: var(--text-2); }
.ptable__price { color: var(--gold); font-weight: 700; white-space: nowrap; }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.pgrid--3 { grid-template-columns: repeat(4, 1fr); }
.pgrid--2 { grid-template-columns: repeat(2, 1fr); }
.pben, .pmat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
}
.pben h3, .pmat h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.pben p, .pmat p { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 0; }

.pgal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pgal__group { grid-column: 1 / -1; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin: 14px 0 2px; }
.pgcard { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.pgcard img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s var(--ease); }
.pgcard:hover img { transform: scale(1.05); }

.psteps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.psteps li { position: relative; padding: 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.psteps span { display: block; font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: .1em; margin-bottom: 8px; }
.psteps b { display: block; font-size: 14.5px; margin-bottom: 6px; }
.psteps i { display: block; font-style: normal; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }

.prev { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.prev__stars { color: var(--gold); letter-spacing: 3px; font-size: 14px; margin-bottom: 12px; }
.prev__text { font-size: 15px; line-height: 1.65; color: var(--text-2); margin: 0 0 14px; }
.prev__who { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 0; }

.pfaq { display: grid; gap: 10px; }
.pfaq__item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 4px 20px; }
.pfaq__item summary { cursor: pointer; padding: 15px 0; font-weight: 700; font-size: 15px; list-style: none; }
.pfaq__item summary::-webkit-details-marker { display: none; }
.pfaq__item p { margin: 0 0 16px; color: var(--text-2); font-size: 14.5px; line-height: 1.65; }

.prel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prel {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); text-decoration: none; transition: border-color .4s, transform .4s;
}
.prel:hover { border-color: rgba(201, 168, 92, .5); transform: translateY(-3px); }
.prel b { font-size: 15.5px; }
.prel span { font-size: 13px; color: var(--text-3); }

@media (max-width: 900px) {
  .phero__inner { grid-template-columns: 1fr; }
  .phero__media { order: -1; max-height: 320px; }
  .phero__media img { max-height: 320px; object-fit: cover; }
  .pgrid, .pgrid--3 { grid-template-columns: 1fr 1fr; }
  .psteps { grid-template-columns: 1fr 1fr; }
  .pgal { grid-template-columns: 1fr 1fr; }
  .prel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pgrid, .pgrid--3, .pgrid--2, .psteps { grid-template-columns: 1fr; }
  .phero__h1 { font-size: 27px; }
}


/* ==========================================================================
   Посадочные страницы v2: простая схема, отступ под фиксированную шапку
   ========================================================================== */
.crumbs { padding: calc(var(--header-h) + 26px) 0 0; font-size: 12.5px; }
.phero { padding: clamp(22px, 3vw, 40px) 0 clamp(18px, 2.5vw, 30px); }
.phero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(22px, 4vw, 52px); align-items: center; }
.phero__text { min-width: 0; }
.phero__h1 { font-size: clamp(27px, 4vw, 50px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin: 0 0 16px; }
.phero__lead { font-size: clamp(14.5px, 1.4vw, 16.5px); color: var(--text-2); line-height: 1.62; max-width: 50ch; margin: 0 0 24px; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.phero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.phero__facts li { display: flex; align-items: center; gap: 8px; }
.phero__facts li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.phero__media { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.phero__media img { display: block; width: 100%; height: auto; }

/* блоки-строки без карточек */
.prow { display: grid; gap: clamp(20px, 3vw, 40px); }
.prow--3 { grid-template-columns: repeat(3, 1fr); }
.prow--2 { grid-template-columns: repeat(2, 1fr); }
.prow__item { border-top: 1px solid var(--line); padding-top: 18px; min-width: 0; }
.prow__num { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; color: var(--gold); margin-bottom: 10px; }
.prow__item b { display: block; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.prow__item p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--text-2); max-width: 44ch; }

/* шаги одной линией */
.ptl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 2vw, 26px); counter-reset: t; }
.ptl li { position: relative; padding-top: 22px; min-width: 0; }
.ptl li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.ptl li::after { content: ''; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.ptl span { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; color: var(--gold); margin-bottom: 8px; }
.ptl b { display: block; font-size: 15px; margin-bottom: 6px; }
.ptl i { display: block; font-style: normal; font-size: 13px; color: var(--text-3); line-height: 1.55; }

/* фотографии с подписями */
.pgal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pgal__group { grid-column: 1 / -1; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin: 16px 0 0; }
.pgcard { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.pgcard img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease); }
.pgcard:hover img { transform: scale(1.04); }
.pgcard__cap { display: block; padding: 12px 14px; font-size: 12.5px; line-height: 1.45; color: var(--text-3); }

/* цены компактнее */
.ptable th, .ptable td { padding: 13px 16px; }
.ptable td { font-size: 14px; }

/* перелинковка — чипсы */
.prel-row { display: flex; flex-wrap: wrap; gap: 10px; }
.prel {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 14px; font-weight: 600;
  text-decoration: none; transition: border-color .35s, color .35s;
}
.prel i { font-style: normal; color: var(--gold); }
.prel:hover { border-color: rgba(201, 168, 92, .55); color: var(--gold); }

.pfaq__item { padding: 2px 20px; }
.pfaq__item summary { font-size: 15px; }
.pfaq__item p { font-size: 14px; }

@media (max-width: 1000px) {
  .prow--3 { grid-template-columns: 1fr 1fr; }
  .ptl { grid-template-columns: 1fr 1fr; }
  .pgal { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .phero__inner { grid-template-columns: 1fr; }
  .phero__media { order: -1; }
  .phero__media img { max-height: 300px; object-fit: cover; }
}
@media (max-width: 640px) {
  .prow--3, .prow--2, .ptl { grid-template-columns: 1fr; }
  .pgal { grid-template-columns: 1fr 1fr; }
  .phero__h1 { font-size: 26px; }
  .crumbs { padding-top: calc(var(--header-h) + 18px); }
}


/* ---- посадочные: отступы заголовков и FAQ ---- */
.page .h2 {
  margin: 0 0 clamp(24px, 3vw, 36px);
  max-width: 40ch;
}
.page .psub { margin: 0 0 26px; }
.page .prel-row { margin-top: 0; }
.page .pfaq { margin-top: 0; }
.page .pfaq__item summary { padding: 18px 0; }
.page .pfaq__item p { padding-top: 8px; margin: 0 0 20px; }
.page .pfaq__item[open] summary { padding-bottom: 4px; }
.page .prow { margin-top: 0; }
.page .ptl { margin-top: 4px; }


/* ==========================================================================
   За производством стоит человек
   ========================================================================== */
.human {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.human__photo { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.human__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.human__photo figcaption {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gold);
}
.human__body p { font-size: 15.5px; line-height: 1.7; color: var(--text-2); margin: 0 0 16px; }
.human__lead { color: var(--text) !important; font-size: 17px !important; }
.human__sub {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 30px 0 16px;
  font-weight: 700;
}
.human__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.human__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.human__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.human__list b { color: var(--text); font-weight: 700; }
.human__list a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 92, .45);
  transition: border-color .3s, color .3s;
}
.human__list a:hover { color: var(--gold-hi); border-color: var(--gold-hi); }
.human__quote {
  margin: 26px 0 0 !important;
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: var(--surface);
  border-radius: 0 14px 14px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px !important;
  line-height: 1.6;
  color: var(--text) !important;
}

.public__head { margin-bottom: 22px; }
.public__head .human__sub { margin-top: 0; }
.public__note { font-size: 14.5px; line-height: 1.6; color: var(--text-3); max-width: 60ch; margin: 8px 0 0; }
.public__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 22px); }
.pub-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .4s, transform .4s;
}
.pub-card:hover { border-color: rgba(201, 168, 92, .45); transform: translateY(-3px); }
.pub-card__tag {
  align-self: flex-start;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 92, .45);
  border-radius: 999px;
  padding: 4px 11px;
}
.pub-card__title { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.pub-card__text { font-size: 14px; line-height: 1.62; color: var(--text-2); margin: 0; flex: 1; }
.pub-card__link {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pub-card__link i { font-style: normal; transition: transform .35s var(--ease); }
.pub-card__link:hover i { transform: translateX(5px); }

[data-theme="light"] .human__photo figcaption { color: var(--gold); }

@media (max-width: 900px) {
  .human { grid-template-columns: 1fr; }
  .human__photo { position: static; max-width: 320px; }
  .public__grid { grid-template-columns: 1fr; }
}


/* ---- посадочные: человек за производством ---- */
.phuman { display: grid; grid-template-columns: 190px 1fr; gap: clamp(20px, 3vw, 36px); align-items: start; }
.phuman__img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.phuman__h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.025em; margin: 6px 0 12px; }
.phuman__text { font-size: 15px; line-height: 1.65; color: var(--text-2); margin: 0 0 18px; max-width: 60ch; }
.phuman .prel-row { margin-top: 0; }
@media (max-width: 640px) {
  .phuman { grid-template-columns: 1fr; }
  .phuman__img { max-width: 180px; }
}


/* ==========================================================================
   Карточка «У всего есть история»: 3D, подсветка, раскрытие
   ========================================================================== */
.story { perspective: 1400px; margin-bottom: clamp(36px, 5vw, 64px); }

.story__card {
  position: relative;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: clamp(24px, 3.5vw, 48px);
  padding: clamp(22px, 3vw, 40px);
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(201, 168, 92, .10) 0%, transparent 55%),
    linear-gradient(160deg, #17140F 0%, #0C0B09 100%);
  border: 1px solid rgba(201, 168, 92, .22);
  box-shadow:
    0 40px 90px -50px rgba(0, 0, 0, .9),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s, border-color .5s;
  will-change: transform;
  overflow: hidden;
}
.story__card:hover {
  border-color: rgba(201, 168, 92, .42);
  box-shadow:
    0 50px 110px -50px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(201, 168, 92, .12),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}
.story.is-open .story__card { transform: none !important; }

.story__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 30%),
      rgba(201, 168, 92, .16) 0%, rgba(201, 168, 92, .05) 38%, transparent 68%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.story__card:hover .story__glow { opacity: 1; }

.story__photo { margin: 0; position: relative; transform: translateZ(30px); }
.story__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(201, 168, 92, .18);
  filter: saturate(.9) contrast(1.03);
}

.story__body { position: relative; transform: translateZ(18px); min-width: 0; }
.story__title {
  font-size: clamp(24px, 3.1vw, 42px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 800;
  margin: 10px 0 16px;
}
.story__title i { font-style: normal; color: var(--gold); }
.story__teaser {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 24px;
  max-width: 56ch;
}

.story__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 92, .5);
  background: rgba(201, 168, 92, .08);
  color: var(--gold);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .35s, border-color .35s, color .35s, transform .35s;
}
.story__btn:hover {
  background: rgba(201, 168, 92, .18);
  border-color: var(--gold);
  color: var(--gold-hi);
  transform: translateY(-1px);
}
.story__btn svg { transition: transform .5s var(--ease); }
.story.is-open .story__btn svg { transform: rotate(180deg); }

.story__panel {
  height: 0;
  overflow: hidden;
  transition: height .72s cubic-bezier(.2, .7, .2, 1);
}
.story__panelIn { padding-top: 4px; }
.story__lead { color: var(--text) !important; }

.story__panel p { font-size: 15px; line-height: 1.7; color: var(--text-2); margin: 0 0 15px; }
.story__sub {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 26px 0 14px;
  font-weight: 700;
}
.story__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.story__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.story__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.story__list b { color: var(--text); font-weight: 700; }
.story__list a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 92, .45);
}
.story__list a:hover { color: var(--gold-hi); }
.story.is-open .story__list li { opacity: 1; transform: none; }
.story.is-open .story__list li:nth-child(1) { transition-delay: .18s; }
.story.is-open .story__list li:nth-child(2) { transition-delay: .24s; }
.story.is-open .story__list li:nth-child(3) { transition-delay: .30s; }
.story.is-open .story__list li:nth-child(4) { transition-delay: .36s; }
.story.is-open .story__list li:nth-child(5) { transition-delay: .42s; }

.story__quote {
  margin: 24px 0 0;
  padding: 18px 22px;
  border-left: 2px solid var(--gold);
  background: rgba(255, 255, 255, .02);
  border-radius: 0 14px 14px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

[data-theme="light"] .story__card {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(156, 122, 46, .10) 0%, transparent 55%),
    linear-gradient(160deg, #FFFFFF 0%, #F3EDE1 100%);
  border-color: rgba(156, 122, 46, .28);
}
[data-theme="light"] .story__quote { background: rgba(156, 122, 46, .06); }

@media (max-width: 900px) {
  .story__card { grid-template-columns: 1fr; }
  .story__photo { max-width: 300px; }
  .story__body, .story__photo { transform: none; }
}


/* ==========================================================================
   Галерея объекта «Сицилия» + просмотр
   ========================================================================== */
.case-gallery { margin-top: clamp(30px, 4vw, 52px); }
.case-gallery__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.case-gallery__label {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
}
.case-gallery__count { font-size: 12.5px; color: var(--text-3); }

.case-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.2vw, 14px);
}
.cg__item {
  position: relative;
  display: block;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  transition: border-color .4s, transform .5s var(--ease);
}
.cg__item img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform .9s var(--ease), opacity .4s;
}
.cg__item:hover { border-color: rgba(201, 168, 92, .5); }
.cg__item:hover img { transform: scale(1.045); }
.cg__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35) 100%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.cg__item:hover::after { opacity: 1; }

/* просмотр */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 6, 6, .92);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9);
  transform: scale(.96);
  transition: transform .35s var(--ease);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #F6F3ED;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, border-color .3s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .14); border-color: rgba(201, 168, 92, .6); }

@media (max-width: 640px) {
  .case-gallery__grid { grid-template-columns: 1fr 1fr; }
  .cg__item img { aspect-ratio: 1 / 1; }
}


/* ==========================================================================
   Кейсы: компактная карточка + раскрытие + карусель
   ========================================================================== */
.kases { display: grid; gap: 18px; }
.kase {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .4s var(--ease), box-shadow .4s;
}
.kase:hover, .kase.is-open {
  border-color: rgba(201, 168, 92, .35);
  box-shadow: 0 30px 70px -50px rgba(0, 0, 0, .8);
}
.kase__head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(14px, 2vw, 22px);
  align-items: center;
}
.kase__cover { margin: 0; border-radius: 16px; overflow: hidden; }
.kase__cover img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.kase__label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin: 0 0 10px; }
.kase__title { font-size: clamp(21px, 2.5vw, 31px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 6px; line-height: 1.1; }
.kase__sub { font-size: 13px; color: var(--gold); margin: 0 0 12px; letter-spacing: .03em; }
.kase__text { font-size: 14.5px; line-height: 1.6; color: var(--text-2); margin: 0 0 18px; max-width: 58ch; }

.kase__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid rgba(201, 168, 92, .5);
  background: rgba(201, 168, 92, .08);
  color: var(--gold); font: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background .35s, border-color .35s, color .35s, transform .35s;
}
.kase__btn:hover { background: rgba(201, 168, 92, .18); border-color: var(--gold); color: var(--gold-hi); transform: translateY(-1px); }
.kase__btn svg { transition: transform .5s var(--ease); }
.kase.is-open .kase__btn svg { transform: rotate(180deg); }

.kase__panel { height: 0; overflow: hidden; transition: height .78s cubic-bezier(.2, .7, .2, 1); }
.kase__panelIn { padding: 0 clamp(14px, 2vw, 22px) clamp(16px, 2vw, 24px); }

/* карусель */
.cs { margin-top: 20px; }
.cs__viewport { overflow: hidden; border-radius: 16px; }
.cs__track {
  display: flex; gap: 12px;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
.cs__slide {
  position: relative; margin: 0; flex: 0 0 calc((100% - 24px) / 3);
  border-radius: 14px; overflow: hidden; background: var(--surface-2);
}
.cs__slide img, .cs__slide video {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
}
.cs__slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 12px 10px;
  font-size: 11.5px; line-height: 1.35; color: rgba(255, 255, 255, .88);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
}
.cs__slide--video::after {
  content: 'видео';
  position: absolute; top: 10px; left: 10px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: #14100A; background: rgba(240, 223, 168, .92);
}
.cs__nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.cs__btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  color: var(--text); font: inherit; font-size: 20px; line-height: 1; cursor: pointer;
  transition: border-color .3s, color .3s, background .3s;
}
.cs__btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.cs__btn:disabled { opacity: .28; cursor: default; }
.cs__count { font-size: 12.5px; letter-spacing: .12em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cs__count b { color: var(--gold); }

.cs__quote {
  margin: 22px 0 0; padding: 18px 22px;
  border-left: 2px solid var(--gold); border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, .02);
  font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.6; color: var(--text);
}
.cs__quote cite { display: block; margin-top: 8px; font-size: 12px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }

[data-theme="light"] .cs__quote { background: rgba(156, 122, 46, .06); }

@media (max-width: 900px) {
  .kase__head { grid-template-columns: 1fr; }
  .kase__cover img { aspect-ratio: 16 / 10; }
  .cs__slide { flex: 0 0 calc((100% - 12px) / 2); }
}
@media (max-width: 640px) {
  .cs__slide { flex: 0 0 84%; }
}


/* ---- заведения: тег отдельным чипом, аккуратно на мобильном ---- */
.venue__meta { flex-wrap: wrap; justify-content: center; }
.venue__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 92, .42);
  color: var(--gold);
  font-size: 10.5px;
  letter-spacing: .12em;
  line-height: 1.5;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .venue__meta {
    flex-direction: column;
    align-items: center;
    gap: 9px;
    max-width: 30ch;
    line-height: 1.45;
  }
  .venue__meta i { display: none; }
  .venue__type { display: block; }
  .venue { gap: 12px; padding: 0 4px; }
  .venue__name { font-size: clamp(26px, 8vw, 34px); }
  .venues { height: clamp(170px, 52vw, 230px); }
}


/* ---- кейсы: мягкая подсветка карточек ---- */
.kase {
  box-shadow:
    0 0 0 1px rgba(201, 168, 92, .07),
    0 24px 60px -46px rgba(201, 168, 92, .35);
}
.kase:hover,
.kase.is-open {
  box-shadow:
    0 0 0 1px rgba(201, 168, 92, .26),
    0 30px 80px -46px rgba(201, 168, 92, .55),
    inset 0 1px 0 rgba(255, 245, 220, .06);
}
.kase::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(201, 168, 92, .07), transparent 60%);
  opacity: .8;
  transition: opacity .5s var(--ease);
}
.kase { position: relative; }
.kase:hover::before, .kase.is-open::before { opacity: 1; }

/* видео-обложка */
.kase__cover--video { position: relative; background: #0b0a09; }
.kase__cover--video video { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.kase__coverTag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #14100A;
  background: rgba(240, 223, 168, .92);
}

/* ---- галерея: рамки меньше и в пропорции 3:4 ---- */
.cs__track { gap: 10px; }
.cs__slide { flex: 0 0 calc((100% - 50px) / 6); border-radius: 10px; }
.cs__slide img, .cs__slide video { aspect-ratio: 3 / 4; }
.cs__slide figcaption {
  padding: 20px 8px 7px;
  font-size: 10px;
  line-height: 1.3;
}
.cs__slide--video::after { font-size: 9px; padding: 2px 7px; top: 7px; left: 7px; }

@media (max-width: 1100px) {
  .cs__slide { flex: 0 0 calc((100% - 30px) / 4); }
}
@media (max-width: 900px) {
  .cs__slide { flex: 0 0 calc((100% - 20px) / 3); }
}
@media (max-width: 640px) {
  .cs__slide { flex: 0 0 calc((100% - 10px) / 2); }
}


/* ==========================================================================
   Галерея кейса: сетка, все фото видны сразу
   ========================================================================== */
.csg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.2vw, 14px);
  margin-top: 22px;
}
.csg {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: border-color .35s, transform .45s var(--ease);
}
.csg:hover { border-color: rgba(201, 168, 92, .5); transform: translateY(-2px); }
.csg img, .csg video {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.csg figcaption {
  padding: 9px 11px 10px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-3);
}
.csg--video { cursor: default; }
.csg--video::after {
  content: 'видео';
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #14100A;
  background: rgba(240, 223, 168, .92);
}

@media (max-width: 900px) {
  .csg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .csg-grid { grid-template-columns: 1fr; }
  .csg img, .csg video { aspect-ratio: 4 / 5; }
}


/* ==========================================================================
   Кейсы: мелкая сетка превью, всё в один экран
   ========================================================================== */
.csg-hint {
  margin: 24px 0 12px;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.csg-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  margin-top: 0;
}
.csg {
  position: relative;
  display: block;
  width: clamp(92px, 8.4vw, 128px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  cursor: zoom-in;
  transition: border-color .3s, transform .4s var(--ease);
}
.csg:hover { border-color: rgba(201, 168, 92, .55); transform: translateY(-2px); }
.csg img, .csg video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.csg--video { cursor: default; }
.csg--video::after {
  content: 'видео';
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 8.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #14100A;
  background: rgba(240, 223, 168, .92);
}
.csg figcaption { display: none; }

@media (max-width: 640px) {
  .csg { width: clamp(74px, 21vw, 96px); }
  .csg-grid { gap: 6px; }
}


/* ---- видео в первом экране посадочной ---- */
.phero__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  background: #000;
}
.phero__media:has(.phero__video) { background: #0b0a09; }


/* ==========================================================================
   Мобильная защита: страница не шире экрана, таблица цен помещается
   ========================================================================== */
html { overflow-x: hidden; }
body { max-width: 100%; overflow-x: hidden; }
img, video, canvas, iframe { max-width: 100%; }
.ptable__wrap, .price-table, table { max-width: 100%; }

@media (max-width: 700px) {
  /* шапка: логотип ужимается, кнопки не уезжают */
  .header__inner { gap: 10px; }
  .logo { min-width: 0; gap: 8px; }
  .logo__mark { font-size: 17px; letter-spacing: .14em; white-space: nowrap; }
  .theme-toggle, .burger { flex: 0 0 auto; width: 42px; height: 42px; }
  .header__actions { gap: 10px; }

  /* таблица цен на посадочных: убираем среднюю колонку, всё влезает */
  .ptable { min-width: 0; width: 100%; }
  .ptable th:nth-child(2),
  .ptable td:nth-child(2) { display: none; }
  .ptable th, .ptable td { padding: 11px 10px; font-size: 13px; }
  .ptable th { font-size: 10.5px; letter-spacing: .1em; }
  .ptable__price { white-space: normal; font-size: 13px; }

  /* таблица цен на главной */
  .price-table { font-size: 13px; }
  .price-table th, .price-table td { padding: 10px 0 10px 6px; }
  .price-table th:first-child, .price-table td:first-child { padding-left: 0; }
  .price-table td:last-child,
  .price-table th:last-child { white-space: normal; font-size: 12.5px; }
  .price-table .muted { font-size: 11.5px; line-height: 1.3; }
}

@media (max-width: 400px) {
  .logo__mark { font-size: 15px; letter-spacing: .1em; }
  .theme-toggle, .burger { width: 38px; height: 38px; }
  .container { padding-inline: 14px; }
}
