/* Charmé Studio — чёрно-золотой стиль.
   Анимации только на transform и opacity. При prefers-reduced-motion выключаются. */

:root {
  /* тёплый чёрный и шампань (решение владельца) */
  --bg: #0e0c09;
  --bg-2: #15120d;
  --card: #1a1610;
  --ink: #f5ecdc;
  --muted: #b3a891;
  --gold: #d9b66c;
  --gold-2: #f3e3b3;
  --gold-3: #a9823a;
  --gold-l1: #fffaf0;
  --gold-l2: #fbeecb;
  --line: rgba(217, 182, 108, .22);
  --serif: "Bodoni 72", "Didot", "Bodoni MT", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 68px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--gold); color: #000; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; margin-top: 40px; }

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin-bottom: 20px;
}
.lead { font-size: 18px; color: var(--ink); }
.section p { color: var(--muted); }
.section .lead { color: var(--ink); }

/* Плейсхолдер: видно, что данные ждут владельца */
.ph {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed var(--gold);
  border-radius: 4px;
  color: var(--gold-2) !important;
  font: 600 13px/1.5 var(--sans);
  letter-spacing: .02em;
  text-decoration: none;
}
.ph--small { font-size: 11px; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font: 600 14px/1.2 var(--sans);
  letter-spacing: .04em;
  text-decoration: none;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); color: #120e07; border-color: transparent; }
.btn--gold::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
  z-index: -1;
}
.btn--gold:hover::after { transform: translateX(120%); }
.btn--ghost { color: var(--gold-2); background: transparent; }
.btn--big { min-height: 56px; padding: 16px 28px; font-size: 15px; }
.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
}
.header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(14, 12, 9, .86);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.header.is-scrolled::before, .header.is-open::before { opacity: 1; }
.header__in {
  position: relative;
  height: 100%;
  width: min(1240px, 100% - 32px);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; text-decoration: none; padding: 4px 0; }
/* градиент шампань для логотипа: цвета стопов задаются здесь */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.st-1 { stop-color: var(--gold-2); } .st-2 { stop-color: var(--gold); } .st-3 { stop-color: var(--gold-3); }
.st-l1 { stop-color: var(--gold-l1); } .st-l2 { stop-color: var(--gold-l2); }
.brand__logo { display: block; height: 50px; width: auto; aspect-ratio: 2425 / 1335; fill: url(#champ); }
.footer__brand em { font-style: italic; color: var(--gold); }
@keyframes spin { to { transform: rotate(1turn); } }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 24px; }
.nav__list a {
  position: relative;
  font-size: 14px; letter-spacing: .05em;
  color: var(--ink); text-decoration: none;
  padding: 6px 0;
}
.nav__list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__list a.is-active { color: var(--gold-2); }

.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  min-width: 38px; min-height: 30px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--muted);
  font: 600 12px/1 var(--sans); letter-spacing: .08em;
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--gold); color: #120e07; }

.burger { display: none; }

@media (max-width: 960px) {
  .burger {
    display: grid; place-content: center; gap: 5px;
    width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 50%;
    background: transparent; cursor: pointer;
  }
  .burger__bar { display: block; width: 18px; height: 1.5px; background: var(--gold-2); transition: transform .3s var(--ease), opacity .3s; }
  .header.is-open .burger__bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .header.is-open .burger__bar:nth-child(2) { opacity: 0; }
  .header.is-open .burger__bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px 16px 32px;
    background: rgba(14, 12, 9, .97);
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-12px);
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .header.is-open .nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { display: block; padding: 12px 0; font-size: 18px; font-family: var(--serif); }
  .nav__list a::after { display: none; }
  .lang { align-self: flex-start; }
}

/* ---------- Главная (hero) ----------
   Экран высотой с окно. Режим .hv (класс на <html> ставит скрипт в <head>): при открытии один раз
   играет видео (золотая лента пишет логотип), в конце поверх проявляется настоящий векторный логотип,
   затем слоган, кнопки и подсказка. Без JS, reduced motion, saveData, ошибка или отказ автозапуска:
   статичный последний кадр видео, всё видно сразу.
   Ландшафтное видео, если ширина >= высоты, иначе портретное. Логотип стоит там же, где в кадре
   видео: прямоугольник видео при object-fit: cover (--W x --H) и доли логотипа в кадре (--lx, --ly, --lw, --lh). */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 460px;
  container-type: size;
  --ar: 1.7778; --lx: .2578; --ly: .2847; --lw: .4219; --lh: .4125;
}
@media (orientation: portrait) {
  .hero { --ar: .5625; --lx: .1146; --ly: .3779; --lw: .7813; --lh: .24; }
}
/* пока видео играет, раскладка закреплена за его ориентацией (main.js) */
.hero.o-land { --ar: 1.7778; --lx: .2578; --ly: .2847; --lw: .4219; --lh: .4125; }
.hero.o-port { --ar: .5625; --lx: .1146; --ly: .3779; --lw: .7813; --lh: .24; }
.hero__stage {
  position: absolute; inset: 0;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  --W: max(100vw, 100vh * var(--ar));
  --H: max(100vh, 100vw / var(--ar));
}
@supports (width: 1cqw) {
  .hero__stage { --W: max(100cqw, 100cqh * var(--ar)); --H: max(100cqh, 100cqw / var(--ar)); }
}
.hero__stage::before { /* тонкая рамка */
  content: "";
  position: absolute; inset: calc(var(--header-h) + 8px) 16px 16px; z-index: 1;
  border: 1px solid var(--line);
  pointer-events: none;
}
.hero__media { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* затемнение сверху: меню читается и на светлом шёлке */
.hero__media::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--header-h) + 72px); background: linear-gradient(rgba(14,12,9,.78), rgba(14,12,9,.35) 60%, rgba(14,12,9,0)); }
.hero__bg { position: absolute; inset: 0; background: var(--bg) url(../img/hero-end-landscape.jpg) 50% 50% / cover no-repeat; }
@media (orientation: portrait) { .hero__bg { background-image: url(../img/hero-end-portrait.jpg); } }
/* в режиме видео кадр конца подгружается, когда видео уже пошло (не мелькает до старта) */
.hv .hero__stage:not(.is-playing):not(.is-done) .hero__bg { background-image: none; }
.hero__video {
  position: absolute; inset: 0;
  display: none;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .4s ease;
}
.hv .hero__video { display: block; }
.hv .is-done .hero__video { opacity: 0; }   /* под ним тот же кадр картинкой */

.hero__in { position: absolute; inset: 0; z-index: 2; }
.hero .logo {
  position: absolute; margin: 0;
  left: calc(50% - var(--W) / 2 + var(--W) * var(--lx));
  top: calc(50% - var(--H) / 2 + var(--H) * var(--ly));
  width: calc(var(--W) * var(--lw));
}
.hero .kicker {
  position: absolute; margin: 0;
  left: calc(50% - var(--W) / 2 + var(--W) * var(--lx));
  width: calc(var(--W) * var(--lw));
  top: calc(50% - var(--H) / 2 + var(--H) * var(--ly) - 2.6em);
}
.hero__end {
  position: absolute; left: 16px; right: 16px;
  top: calc(50% - var(--H) / 2 + var(--H) * (var(--ly) + var(--lh)) + 8px);
}
/* мягкая подложка под слоганом и кнопками (шёлк под ними светлый) */
.hero__end::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -10%;
  width: min(760px, 120%); height: 130%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(14,12,9,.62), rgba(14,12,9,.35) 60%, rgba(14,12,9,0));
  pointer-events: none;
}

/* режим видео: до конца ролика логотип, слоган, кнопки и подсказка скрыты */
.hv .hero .logo, .hv .hero .kicker, .hv .hero__end, .hv .hero__scroll {
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, transform .6s var(--ease), visibility 0s .6s;
}
.hv .hero .kicker, .hv .hero__end, .hv .hero__scroll { transform: translateY(12px); }
.hv .is-logo .logo { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
.hv .is-end .kicker, .hv .is-end .hero__end, .hv .is-end .hero__scroll {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .6s ease, transform .6s var(--ease), visibility 0s;
}

/* Логотип: по нему непрерывно течёт золото (в режиме видео перелив включается после проявления логотипа).
   Перелив: полоса .flow с повторяющейся маской едет вправо (transform), внутри неё копии логотипа
   едут навстречу и стоят ровно на месте рисунка. Светится только рисунок, без mix-blend-mode.
   Цикл бесшовный: за цикл полоса сдвигается ровно на один период маски.
   Волна: период 1,4 ширины логотипа, 7 с. Медленный слой: период 2 ширины, 13 с. */
.logo {
  position: relative;
  display: block;
  width: min(640px, 88vw, 100vh);
  margin: 0 auto;
  line-height: 0;
  overflow: hidden;
}
.logo__img { display: block; width: 100%; height: auto; aspect-ratio: 2425 / 1335; fill: url(#champ); }
.logo__img--dark { fill: var(--gold-3); }
.logo__img--light { fill: var(--gold-2); }
.logo__img--peak { fill: var(--gold-l1); }
.logo__img--soft { fill: var(--gold-2); }

.logo__flow {
  position: absolute; inset: 0;
  opacity: 0;
  animation: flow-on 1.4s ease 1.7s forwards;
  pointer-events: none;
}
@keyframes flow-on { to { opacity: 1; } }
.hv .logo__flow { animation: none; opacity: 0; transition: opacity 1.2s ease .7s; }
.hv .is-logo .logo__flow { opacity: 1; }
.flow {
  position: absolute; top: 0; bottom: 0; left: 0;
  will-change: transform;
}
.flow--wave { width: 280%; animation: flow-band 7s linear 1.7s infinite both; }
.flow--slow { width: 400%; animation: flow-band 13s linear 1.7s infinite both; }
@keyframes flow-band { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.flow__m {
  position: absolute; inset: 0;
  -webkit-mask-size: 50% 100%; mask-size: 50% 100%;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
}
.flow__c { position: absolute; top: 0; left: 0; will-change: transform; }
.flow--wave .flow__c { width: 35.7143%; animation: flow-copy-wave 7s linear 1.7s infinite both; }
.flow--slow .flow__c { width: 25%; animation: flow-copy-slow 13s linear 1.7s infinite both; }
@keyframes flow-copy-wave { from { transform: translateX(140%); } to { transform: translateX(0); } }
@keyframes flow-copy-slow { from { transform: translateX(200%); } to { transform: translateX(0); } }
/* Маски одного периода. Центр волны на 82% периода: в начале цикла волна входит слева, на букве «C». */
.flow__m--dark {
  -webkit-mask-image: linear-gradient(90deg, transparent 64%, rgba(0,0,0,.5) 71%, transparent 77%, transparent 87%, rgba(0,0,0,.5) 93%, transparent 99%);
  mask-image: linear-gradient(90deg, transparent 64%, rgba(0,0,0,.5) 71%, transparent 77%, transparent 87%, rgba(0,0,0,.5) 93%, transparent 99%);
}
.flow__m--light {
  -webkit-mask-image: linear-gradient(90deg, transparent 68%, rgba(0,0,0,.25) 72.5%, rgba(0,0,0,.7) 77%, rgba(0,0,0,.95) 82%, rgba(0,0,0,.7) 87%, rgba(0,0,0,.25) 91.5%, transparent 96%);
  mask-image: linear-gradient(90deg, transparent 68%, rgba(0,0,0,.25) 72.5%, rgba(0,0,0,.7) 77%, rgba(0,0,0,.95) 82%, rgba(0,0,0,.7) 87%, rgba(0,0,0,.25) 91.5%, transparent 96%);
}
.flow__m--peak {
  -webkit-mask-image: linear-gradient(90deg, transparent 76.5%, rgba(0,0,0,.45) 79.5%, rgba(0,0,0,.9) 82%, rgba(0,0,0,.45) 84.5%, transparent 87.5%);
  mask-image: linear-gradient(90deg, transparent 76.5%, rgba(0,0,0,.45) 79.5%, rgba(0,0,0,.9) 82%, rgba(0,0,0,.45) 84.5%, transparent 87.5%);
}
.flow__m--soft {
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, rgba(0,0,0,.18) 32%, rgba(0,0,0,.38) 45%, rgba(0,0,0,.18) 58%, transparent 70%);
  mask-image: linear-gradient(90deg, transparent 20%, rgba(0,0,0,.18) 32%, rgba(0,0,0,.38) 45%, rgba(0,0,0,.18) 58%, transparent 70%);
}

.hero__line {
  display: block; width: 120px; height: 1px; margin: 16px auto 18px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero__tag { max-width: 520px; margin: 0 auto 22px; color: var(--ink); opacity: .86; font-size: 17px; text-shadow: 0 1px 2px rgba(14,12,9,.9), 0 2px 12px rgba(14,12,9,.7); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hv .hero__tag { opacity: .86; }
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Подсказка прокрутки: внизу по центру; в ландшафте в правом нижнем углу, чтобы не спорить с кнопками */
.hero__scroll {
  position: absolute; bottom: 28px; left: 0; right: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: max-content; margin: 0 auto;
  color: var(--muted); font-size: 11px; line-height: 1; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  text-shadow: 0 1px 3px rgba(14,12,9,.9);
}
@media (orientation: landscape) { .hero__scroll { left: auto; right: 40px; } }
/* в портрете места под кнопками мало: подсказка только на высоких экранах */
@media (orientation: portrait) and (max-height: 900px) { .hero__scroll { display: none; } }
.hero__scroll-l { position: relative; width: 1px; height: 40px; background: var(--line); overflow: hidden; }
.hero__scroll-l span { position: absolute; inset: 0; background: var(--gold); transform: translateY(-100%); animation: scrollcue 2.4s var(--ease) 1.4s infinite; }
@media (max-height: 600px) { .hero__scroll-t { display: none; } }
/* невысокий портретный экран (iPhone SE): компактнее */
@media (orientation: portrait) and (max-height: 720px) {
  .hero__line { display: none; }
  .hero__end { top: calc(50% - var(--H) / 2 + var(--H) * (var(--ly) + var(--lh)) + 18px); }
  .hero__tag { font-size: 15px; margin-bottom: 14px; }
  .hero__cta { gap: 10px; }
}
@keyframes scrollcue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Секции ---------- */
.section { padding: clamp(72px, 12vw, 128px) 0; border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-2); }
.head { max-width: 640px; margin: 0 auto 48px; text-align: center; }

/* Появление при прокрутке (класс .in ставит JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* О нас */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__mark { position: relative; justify-self: center; width: min(320px, 70vw); aspect-ratio: 1; }
.about__mark svg { display: block; width: 100%; height: 100%; }
.about__disc { fill: var(--card); }
.about__ring { fill: none; stroke: url(#champ); stroke-width: 1.5; }
.about__logo { fill: url(#champ); }
.about__mark::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px dashed var(--line);
  animation: spin 40s linear infinite;
}

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery li { position: relative; overflow: hidden; border-radius: 6px; background: var(--card); }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s var(--ease); }
.gallery li:hover img, .gallery__btn:focus-visible img { transform: scale(1.05); }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__btn:focus-visible { outline-offset: -3px; }
.gallery li::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }

/* Услуги */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform .5s var(--ease), opacity .9s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-3), var(--gold-2), var(--gold-3));
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.card:hover { transform: translateY(-4px); }
.card:hover::before { transform: scaleX(1); }
.card__n { display: block; margin-bottom: 18px; color: var(--gold); font: italic 15px/1 var(--serif); letter-spacing: .1em; }
.card h3 { font-family: var(--serif); font-size: 26px; line-height: 1.2; margin-bottom: 10px; color: var(--ink); }
.card p { margin: 0; font-size: 15px; }
.js .card.reveal.in:hover { transform: translateY(-4px); }

/* Цены */
.prices li { display: flex; align-items: baseline; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.prices span { font-family: var(--serif); font-size: 20px; }
.prices i { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.prices b { flex: none; text-align: right; }
.prices b.ask { font: 400 15px/1.4 var(--sans); color: var(--muted); }
.price-block { margin-bottom: 40px; }
.price-block__t { font-family: var(--serif); font-size: 26px; color: var(--gold-2); margin-bottom: 4px; }
.prices--solar li { padding: 12px 0; }
.prices--solar b { color: var(--gold-2); font: 600 18px/1.2 var(--sans); }
.price-extra { margin: 16px 0 0; font-size: 15px; }
.nw { white-space: nowrap; }

/* Контакты */
.contacts { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.info { margin: 0 0 32px; display: grid; gap: 20px; }
.info dt { color: var(--gold); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; margin-bottom: 4px; }
.info dd { margin: 0; font-size: 18px; }
.info dd a:not(.ph) { text-decoration: none; border-bottom: 1px solid var(--line); }
.js-phones { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.social { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.social__a {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--gold-2);
  transition: transform .3s var(--ease);
}
.social__a:hover { transform: translateY(-3px); }
.social__a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.social__a svg .dot { fill: currentColor; stroke: none; }
.js-facebook svg { fill: currentColor; stroke: none; }
.social__a.is-pending { opacity: .45; }
.booking {
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: radial-gradient(circle at 80% 0%, rgba(217,182,108,.16), transparent 60%), var(--card);
  text-align: center;
}
.booking__t { font-family: var(--serif); font-size: 30px; margin-bottom: 12px; }
.booking .btn { width: 100%; }

/* Подвал */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer__brand { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.footer a { color: var(--gold-2); text-decoration: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .contacts, .about { grid-template-columns: 1fr; }
  .about__mark { width: min(220px, 60vw); }
}
@media (max-width: 600px) {
  .brand__logo { height: 44px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .services { grid-template-columns: 1fr; }
  .hero__stage::before { inset: calc(var(--header-h) + 4px) 8px 8px; }
  .hero__cta .btn { width: 100%; }
  .prices li { flex-wrap: wrap; }
  .prices i { display: none; }
  .prices:not(.prices--solar) b { width: 100%; text-align: left; }
  .prices--solar li { flex-wrap: nowrap; }
  .prices--solar i { display: block; }
  .footer__in { flex-direction: column; text-align: center; }
}

/* Просмотр фото */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(8, 7, 5, .92); }
.lightbox__img {
  max-width: min(92vw, 1100px); max-height: 86vh;
  width: auto; height: auto;
  border: 1px solid var(--line); border-radius: 4px;
  animation: lb-in .35s var(--ease);
}
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lightbox__btn {
  position: fixed;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 50%;
  background: rgba(14, 12, 9, .7); color: var(--gold-2);
  font: 28px/1 var(--sans);
  cursor: pointer;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; }
  .lightbox__prev { left: calc(50% - 60px); } .lightbox__next { right: calc(50% - 60px); }
  .lightbox__img { max-height: 76vh; }
}

/* Вкладка не видна или первый экран прокручен: постоянные анимации на паузе */
.is-hidden .about__mark::before,
.is-hidden .logo__flow, .is-hidden .flow, .is-hidden .flow__c, .is-hidden .hero__scroll-l span,
.hero-off .logo__flow, .hero-off .flow, .hero-off .flow__c, .hero-off .hero__scroll-l span { animation-play-state: paused; }

/* ---------- Без анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero .kicker, .hero__tag, .hero__cta, .hero__scroll, .js .reveal { opacity: 1 !important; transform: none !important; }
  .logo__flow, .hero__scroll-l span { display: none; }
}
