/* Запасной шрифт под размер Cormorant: заголовок не прыгает, пока грузится основной (CLS) */
@font-face { font-family: "Cormorant Fallback"; src: local("Georgia"); size-adjust: 90%; }
/* ===== Massage.ykt =====
   Идея: тепло против якутского мороза.
   Холодный цвет (--frost) живёт только там, где речь об улице,
   всё остальное — тёплое. */
:root {
  --night: #16120f;   /* фон */
  --umber: #201a16;   /* второй фон */
  --clay: #2b231e;    /* карточки */
  --linen: #f2e9df;   /* текст */
  --sand: #b8a898;    /* второстепенный текст */
  --amber: #c8915a;   /* акцент, кнопки */
  --honey: #e8c49b;   /* акцент в заголовках */
  --frost: #a8c6d9;   /* мороз за окном */
  --line: rgba(242, 233, 223, .14);

  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(18px, 5vw, 72px);
  --vh: 100vh;
  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --head-h: 64px;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--head-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--night);
  color: var(--linen);
  font: 500 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--night); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.015em;
  margin-bottom: clamp(28px, 5vw, 56px);
}
.section-title em { font-style: italic; font-weight: 700; color: var(--honey); }
.section-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.section-title .w > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform .9s var(--ease-out); }
.section-title.is-in .w > span { transform: none; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--amber); color: var(--night);
  font: 800 15px/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center;
  border: 1px solid var(--amber);
  transition: transform .4s var(--ease-out), background .3s, color .3s, border-color .3s;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn--ghost { background: rgba(22, 18, 15, .25); color: var(--linen); border-color: rgba(242, 233, 223, .35); }
.btn--line { background: transparent; color: var(--honey); border-color: var(--amber); min-height: 48px; width: 100%; }
.btn--small { min-height: 44px; padding: 0 20px; font-size: 14px; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); background: var(--honey); border-color: var(--honey); color: var(--night); }
  .btn--ghost:hover { background: var(--linen); border-color: var(--linen); }
}

/* ===== Шапка ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: max(16px, env(safe-area-inset-top)) var(--pad) 16px;
  transition: background .4s, padding .4s;
}
.header.is-solid { background: rgba(22, 18, 15, .985); padding-bottom: 10px; padding-top: max(10px, env(safe-area-inset-top)); }
.logo { font: 700 27px/1 var(--serif); text-decoration: none; margin-right: auto; position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 28px; height: 34px; flex: none; color: var(--amber); margin-top: -4px; }
.logo__text { font-weight: 700; }
.logo span { color: var(--amber); font-style: italic; }
@media (max-width: 380px) { .logo { font-size: 24px; gap: 8px; } .logo__mark { width: 24px; height: 29px; } }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--sand); position: relative; transition: color .3s; padding: 8px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
@media (hover: hover) {
  .nav a:not(.btn):hover { color: var(--linen); }
  .nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav__cta { display: none; }
/* Переключатель языков: РУС / САХА / ENG (js/i18n.js) */
.i18n-t { font-style: normal; }
.lang { position: relative; z-index: 2; flex: none; }
.lang__btn { display: inline-flex; align-items: center; gap: 7px; font: 700 12px/1 inherit; font-family: inherit; letter-spacing: .08em; color: var(--linen); background: none; border: 1px solid rgba(242, 233, 223, .25); border-radius: 999px; padding: 10px 14px; cursor: pointer; transition: border-color .3s; }
.lang__btn svg { width: 10px; height: 6px; transition: transform .3s; }
.lang__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang__menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px; padding: 6px; background: rgba(22, 18, 15, .96); border: 1px solid rgba(242, 233, 223, .14); border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.lang__menu button { display: block; width: 100%; text-align: left; font: 600 14px/1 inherit; font-family: inherit; color: var(--sand); background: none; border: 0; border-radius: 9px; padding: 11px 12px; cursor: pointer; transition: color .3s, background .3s; }
.lang__menu button[aria-pressed="true"] { color: var(--amber); }
.lang__hint { position: absolute; top: calc(100% + 10px); right: 0; white-space: nowrap; font: 600 12px/1 inherit; font-family: inherit; color: var(--night); background: var(--amber); border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); transition: opacity .4s, transform .4s; }
.lang__hint::before { content: ""; position: absolute; top: -5px; right: 18px; border: 5px solid transparent; border-top: 0; border-bottom-color: var(--amber); }
.lang__hint.is-hidden { opacity: 0; transform: translateY(-4px); pointer-events: none; }
@media (hover: hover) { .lang__btn:hover { border-color: var(--amber); } .lang__menu button:hover { color: var(--linen); background: rgba(242, 233, 223, .06); } }
@media (max-width: 820px) { .header { gap: 10px; } .lang__btn { padding: 9px 12px; } }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; z-index: 2; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--linen); border-radius: 2px; transition: transform .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ===== Главный экран ===== */
.hero { position: relative; height: var(--vh); min-height: 600px; overflow: hidden; background: var(--night); }
.hero__parallax {
  position: absolute; inset: 0;
  transform: translate3d(0, calc(var(--hp, 0) * 22%), 0) scale(calc(1 + var(--hp, 0) * .08));
  will-change: transform;
}
.hero__video, .hero__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--night); }
.hero__video { animation: heroIn 1.6s var(--ease-out) both; }
.hero__backdrop { display: none; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }

.hero__shade {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(22,18,15,.6) 0%, rgba(22,18,15,0) 30%, rgba(22,18,15,.55) 62%, rgba(22,18,15,.96) 100%),
    linear-gradient(90deg, rgba(22,18,15,.55) 0%, transparent 70%);
}
.hero__content {
  position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: clamp(96px, 14vh, 150px);
  max-width: 760px;
  opacity: calc(1 - var(--hp, 0) * 1.6);
  transform: translate3d(0, calc(var(--hp, 0) * -60px), 0);
}

/* Термометр: мороз снаружи, тепло внутри */
.temp {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0;
  margin-bottom: 18px; border-radius: 999px; overflow: hidden;
  font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.temp[hidden] { display: inline-flex !important; visibility: hidden; } /* место держим заранее: плашка не сдвигает заголовок (CLS) */
.temp__cold { color: var(--frost); padding: 9px 12px 9px 14px; background: rgba(168, 198, 217, .12); }
.temp__cold b { font-size: 14px; color: #fff; }
.temp__warm { color: var(--night); padding: 9px 14px 9px 12px; background: var(--honey); }

.hero__title { font-family: var(--serif); font-weight: 700; font-size: clamp(42px, 7.4vw, 104px); line-height: .96; letter-spacing: -.015em; margin-bottom: 18px; text-wrap: balance; }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span { display: inline-block; transform: translate3d(0, 110%, 0); transition: transform .8s var(--ease-out); }
.hero__title.is-in .w > span { transform: translate3d(0, 0, 0); }
.hero__text { max-width: 520px; color: #e6dacc; font-size: clamp(16px, 1.4vw, 18px); margin-bottom: 26px; opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .8s .3s, transform .8s .3s var(--ease-out); }
.hero__text.is-in { opacity: 1; transform: none; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 0; color: var(--sand); font-size: 13px; font-weight: 600; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }

.hero__controls {
  position: absolute; z-index: 4; left: var(--pad); right: var(--pad); bottom: 34px;
  display: flex; align-items: center; gap: 20px;
  opacity: calc(1 - var(--hp, 0) * 2);
}
.hero__count { font: 500 14px/1 var(--sans); color: var(--sand); letter-spacing: .1em; white-space: nowrap; }
.hero__count b { color: var(--linen); font-weight: 700; }
.hero__bars { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.hero__bar { flex: 1; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.hero__bar::before, .hero__bar i { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; border-radius: 2px; background: rgba(242,233,223,.22); }
.hero__bar i { background: var(--amber); transform: scaleX(0); transform-origin: left; }
.hero__bar.is-done i { transform: scaleX(1); }
.hero__bar.is-active i { animation: bar var(--dur, 7s) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }

/* ===== Бегущая строка ===== */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: var(--night); position: relative; z-index: 2; }
.marquee__track { display: flex; gap: 30px; width: max-content; animation: marquee 26s linear infinite; font: italic 600 clamp(26px, 4vw, 44px)/1 var(--serif); white-space: nowrap; }
.marquee__track i { color: var(--amber); font-style: normal; font-size: .55em; align-self: center; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ===== История: свёрнута, раскрывается плюсиком ===== */
.story { padding: clamp(24px, 4vw, 48px) var(--pad); }
.story__head { margin: 0; }
.story__toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; background: none; border: 0; border-block: 1px solid var(--line);
  color: var(--linen); text-align: left; cursor: pointer;
}
.story__label { font: 700 clamp(26px, 3.6vw, 44px)/1.05 var(--serif); }
.story__label em { font-style: italic; color: var(--honey); }
.story__label small { display: block; margin-top: 6px; font: 500 14px/1.3 var(--sans); color: rgba(242,233,223,.6); letter-spacing: .02em; }
.story__plus { position: relative; flex: none; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; transition: transform .5s var(--ease-out), background .3s, border-color .3s; }
.story__plus::before, .story__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: var(--honey); border-radius: 2px; }
.story__plus::after { transform: rotate(90deg); }
.story__toggle:hover .story__plus { border-color: var(--amber); }
.story__toggle[aria-expanded="true"] .story__plus { transform: rotate(45deg); background: var(--amber); border-color: var(--amber); }
.story__toggle[aria-expanded="true"] .story__plus::before, .story__toggle[aria-expanded="true"] .story__plus::after { background: var(--night); }
.story__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.story__body.is-open { grid-template-rows: 1fr; }
.story__inner { overflow: hidden; }
.story__list { list-style: none; margin: 0; padding: 32px 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.story__item { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .5s, transform .6s var(--ease-out); }
.story__body.is-open .story__item { opacity: 1; transform: none; }
.story__body.is-open .story__item:nth-child(2) { transition-delay: .08s; }
.story__body.is-open .story__item:nth-child(3) { transition-delay: .16s; }
.story__body.is-open .story__item:nth-child(4) { transition-delay: .24s; }
.story__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.story__year { display: block; font: italic 700 44px/1 var(--serif); color: var(--honey); margin-bottom: 6px; }
.story__item h3 { font: 700 22px/1.15 var(--serif); margin-bottom: 8px; }
.story__item p { color: #e1d5c7; font-size: 15px; line-height: 1.55; }
@media (max-width: 1024px) { .story__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .story__list { grid-template-columns: 1fr; gap: 28px; } .story__plus { width: 44px; height: 44px; } }

/* ===== Почему мы ===== */
.why { position: relative; z-index: 2; padding: clamp(80px, 12vw, 160px) var(--pad); background: var(--umber); border-radius: 32px 32px 0 0; margin-top: -32px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 48px; }
.stat { background: var(--umber); padding: 30px 24px; }
.stat b { display: block; font: 700 clamp(48px, 6vw, 80px)/1 var(--serif); color: var(--honey); margin-bottom: 8px; }
.stat span { color: var(--sand); font-size: 14px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 30px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--night); }
.card h3 { font: 700 27px/1.15 var(--serif); margin-bottom: 12px; position: relative; padding-top: 22px; }
.card h3::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 2px; background: var(--amber); }
.card p { color: var(--sand); font-size: 15px; }
@media (hover: hover) {
  .card { transition: border-color .4s, transform .5s var(--ease-out); }
  .card:hover { border-color: var(--amber); transform: translateY(-4px); }
}

/* ===== Появление при прокрутке ===== */
.reveal { opacity: 0; transform: translate3d(0, 28px, 0); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }

/* ===== Услуги ===== */
.services { padding: clamp(80px, 12vw, 160px) 0; background: var(--umber); }
.services__head { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 var(--pad); }
.swipe-hint { display: none; padding: 0 var(--pad); margin: -18px 0 18px; color: var(--sand); font-size: 13px; }
.arrows { display: flex; gap: 10px; margin-bottom: clamp(28px, 5vw, 56px); }
.arrows--center { justify-content: center; margin: 36px 0 0; }
.arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--linen); font-size: 20px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; touch-action: manipulation; }
@media (hover: hover) { .arrow:hover { background: var(--amber); color: var(--night); border-color: var(--amber); } }
.rail {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 10px var(--pad) 14px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.service {
  flex: 0 0 min(360px, 80vw); scroll-snap-align: start;
  background: var(--night); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
  opacity: var(--o, 1);
}
.service__img { height: 240px; overflow: hidden; }
.service__img img { width: 124%; max-width: none; height: 100%; object-fit: cover; transform: translate3d(var(--px, -10%), 0, 0); will-change: transform; }
.service__body { padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service h3 { font: 700 29px/1.1 var(--serif); }
.service p { color: var(--sand); font-size: 15px; flex: 1; }
.service__meta { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.service__meta span { color: var(--sand); font-size: 14px; }
.service__meta b { font: 700 25px/1 var(--serif); color: var(--honey); }
.service__prices { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.service__prices li { display: flex; justify-content: space-between; align-items: baseline; }
.service__prices span { color: var(--sand); font-size: 14px; }
.service__prices b { font: 700 24px/1 var(--serif); color: var(--honey); font-variant-numeric: lining-nums; }

/* Дополнения к массажу */
.addons { margin: clamp(56px, 8vw, 96px) var(--pad) 0; max-width: 980px; }
.addons__title { font: 600 clamp(30px, 4vw, 44px)/1.1 var(--serif); margin-bottom: 24px; }
.addons__title em { color: var(--honey); }
.addons__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.addons__list li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 28px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.addons__list h4 { margin: 0 0 4px; font: 700 22px/1.2 var(--serif); }
.addons__list p { margin: 0; color: var(--sand); font-size: 14px; }
.addons__list span { color: var(--sand); font-size: 14px; white-space: nowrap; }
.addons__list b { font: 700 24px/1 var(--serif); color: var(--honey); white-space: nowrap; font-variant-numeric: lining-nums; }
.rail__progress { margin: 22px var(--pad) 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.rail__progress span { display: block; height: 100%; background: var(--amber); transform-origin: left; transform: scaleX(var(--rp, .2)); }

/* ===== Мастера ===== */
.masters { padding: clamp(80px, 12vw, 160px) 0; background: var(--umber); }
.masters__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; padding: 0 var(--pad); margin-bottom: clamp(28px, 5vw, 56px); }
.masters__head .section-title { margin-bottom: 0; }
.masters__lead { max-width: 380px; color: var(--sand); font-size: 16px; margin: 0; }
.masters__rail {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 0 var(--pad) 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.masters__rail::-webkit-scrollbar { display: none; }
.master { flex: 0 0 min(300px, 70vw); margin: 0; scroll-snap-align: start; background: var(--night); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.master img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 12%; transition: transform .9s var(--ease-out); }
@media (hover: hover) { .master:hover .master__face--front img { transform: scale(1.04); } }
.master__flip {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; background: none;
  cursor: pointer; perspective: 1200px; color: inherit; font: inherit;
}
.master__face {
  position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .8s var(--ease-out);
}
.master__live { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.master__live.is-on { opacity: 1; }
.master__face--back { transform: rotateY(180deg); background: var(--clay); display: grid; place-items: center; }
.master__face--back img { object-fit: contain; object-position: center; background: var(--clay); }
.master__flip.is-flipped .master__face--front { transform: rotateY(-180deg); }
.master__flip.is-flipped .master__face--back { transform: rotateY(0deg); }
.master__cert-empty { color: var(--sand); font: italic 600 22px/1.2 var(--serif); text-align: center; padding: 20px; border: 1px dashed var(--line); border-radius: 14px; margin: 24px; }
.master__hint {
  position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(22,18,15,.72); color: var(--honey); font-size: 12px; font-weight: 600; letter-spacing: .04em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.master__hint::before { content: "↻ Сертификат"; }
.master__flip.is-flipped .master__hint::before { content: "↻ Фото"; }
.master__flip:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.master__info { margin: 10px 0 0; display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.master__info div { display: flex; gap: 8px; font-size: 13px; line-height: 1.35; }
.master__info dt { color: var(--honey); font-weight: 700; min-width: 66px; }
.master__info dd { margin: 0; color: var(--linen); }
.master__quote { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.master__quote p { font: italic 500 16px/1.35 var(--serif); color: var(--linen); margin: 0 0 6px; }
.master__quote cite { font-style: normal; color: var(--honey); font-size: 12px; }
.master figcaption { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.master b { font: 700 28px/1.1 var(--serif); }
.master span { color: var(--sand); font-size: 14px; }

/* ===== Предложения ===== */
.offers { padding: clamp(80px, 12vw, 160px) var(--pad); background: var(--night); }
.offers__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: stretch; max-width: 1040px; }
.offer { display: flex; flex-direction: column; gap: 14px; padding: 30px 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--umber); }
.offer--hot { background: var(--clay); border-color: rgba(200,145,90,.55); box-shadow: 0 30px 80px -40px rgba(200,145,90,.45); }
.offer__tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--honey); }
.offer h3 { font: 700 clamp(28px, 3vw, 34px)/1.08 var(--serif); }
.offer__who { margin: 0; color: var(--sand); font-size: 15px; }
.offer__list { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); flex: 1; }
.offer__list li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.offer__list b { color: var(--honey); font-weight: 600; white-space: nowrap; }
.offer__price { display: flex; align-items: baseline; gap: 14px; }
.offer__price s { color: var(--sand); font-size: 18px; }
.offer__price b { font: 700 44px/1 var(--serif); color: var(--honey); font-variant-numeric: lining-nums; }
.offer__guarantee { margin: 0; font: italic 600 18px/1.35 var(--serif); color: var(--linen); }
@media (max-width: 1024px) { .offers__grid { grid-template-columns: 1fr; max-width: 560px; } }

/* ===== Текст о салоне для поиска ===== */
.about-seo { padding: clamp(80px, 12vw, 140px) var(--pad) 0; }
.about-seo__text { max-width: 760px; display: grid; gap: 16px; }
.about-seo__text p { margin: 0; color: var(--sand); font-size: 17px; line-height: 1.7; }
.about-seo__text b { color: var(--linen); }
.about-seo__text a { color: var(--honey); text-underline-offset: 3px; }
.footer a { text-decoration: none; }

/* ===== Видео: как мы работаем ===== */
.reels { padding: clamp(80px, 12vw, 160px) 0; background: var(--night); overflow: hidden; }
.reels__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; padding: 0 var(--pad); margin-bottom: clamp(28px, 5vw, 56px); }
.reels__head .section-title { margin-bottom: 0; }
.reels__lead { max-width: 360px; color: var(--sand); font-size: 16px; }
.reels__rail {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0 var(--pad);
}
.reel {
  position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  background: var(--clay); box-shadow: 0 24px 60px rgba(0,0,0,.45);
  transform: translate3d(0, var(--ry, 0px), 0);
  will-change: transform;
}
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform .9s var(--ease-out); }
.reel.is-playing video { transform: scale(1); }
.reel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(22,18,15,.88)); }
.reel figcaption { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.reel figcaption b { font: italic 700 26px/1.05 var(--serif); }
.reel figcaption span { font-size: 13px; font-weight: 600; color: #e6dacc; }
.reels__cta { display: flex; justify-content: center; margin-top: clamp(36px, 6vw, 64px); padding: 0 var(--pad); }
@media (hover: hover) {
  .reel { transition: box-shadow .5s; }
  .reel:hover video { transform: scale(1.04); }
}

/* ===== Колода картин ===== */
.gallery { padding: clamp(80px, 12vw, 160px) var(--pad); text-align: center; overflow: hidden; }
.gallery .section-title { margin-bottom: 12px; }
.gallery__hint { color: var(--sand); font-size: 14px; margin-bottom: 40px; }
.deck { position: relative; height: clamp(420px, 60vw, 560px); max-width: 1100px; margin: 0 auto; touch-action: pan-y; outline: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.deck:active { cursor: grabbing; }
.deck__card {
  position: absolute; left: 50%; top: 0; margin: 0;
  width: min(380px, 72vw); height: 100%;
  border-radius: 24px; overflow: hidden; background: var(--clay);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  transition: transform .7s var(--ease), filter .7s var(--ease), opacity .7s;
  will-change: transform;
}
.deck.is-dragging .deck__card { transition: none; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.deck__card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 22px;
  background: linear-gradient(transparent, rgba(22,18,15,.85));
  font: italic 700 26px/1.1 var(--serif); text-align: left;
  opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity .6s .25s, transform .6s .25s var(--ease-out);
}
.deck__card.is-front figcaption { opacity: 1; transform: none; }

/* ===== Визит ===== */
.visit { padding: clamp(80px, 12vw, 160px) var(--pad); background: var(--umber); }
.visit__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.visit__list li { border-top: 1px solid var(--amber); padding-top: 22px; }
.visit__list b { font: italic 700 52px/1 var(--serif); color: var(--amber); }
.visit__list h3 { font: 500 26px/1.15 var(--serif); margin: 12px 0 8px; }
.visit__list p { color: var(--sand); font-size: 15px; }

/* ===== Отзывы ===== */
.reviews { padding: clamp(80px, 12vw, 160px) var(--pad); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { margin: 0; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--umber); }
.review p { font: italic 500 22px/1.35 var(--serif); margin-bottom: 18px; }
.reviews__grid--one { grid-template-columns: 1fr; max-width: 760px; }
.review--score { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.review__num { display: block; font: 700 clamp(64px, 9vw, 110px)/1 var(--serif); font-style: normal; color: var(--honey); margin-bottom: 10px; }
.review cite { font-style: normal; color: var(--honey); font-size: 14px; }
.review { display: flex; flex-direction: column; justify-content: space-between; }
.reviews__score { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: 36px; }
.reviews__score .review__num { margin: 0; }
.reviews__score p { margin: 0; font-size: 18px; color: var(--linen); }
.reviews__score small { color: var(--sand); font-size: 13px; }
@media (min-width: 769px) { .reviews__score .btn { width: auto; flex: 0 0 auto; margin-left: auto; } }

/* ===== Вопросы ===== */
.faq { padding: 0 var(--pad) clamp(80px, 12vw, 160px); max-width: 980px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 500 clamp(21px, 2.4vw, 26px)/1.25 var(--serif);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 300 30px/1 var(--sans); color: var(--amber); transition: transform .4s var(--ease-out); }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { color: var(--sand); padding: 0 0 22px; max-width: 720px; }
.faq__item p + p { margin-top: -10px; }
.faq__item p b { color: var(--honey); font-weight: 600; }

/* Подробнее в карточках услуг и дополнениях */
.service__more { border-top: 1px solid var(--line); padding-top: 10px; }
.service__more summary { list-style: none; cursor: pointer; color: var(--amber); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; position: relative; padding-right: 22px; width: max-content; }
.service__more summary::-webkit-details-marker { display: none; }
.service__more summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 300 20px/1 var(--sans); transition: transform .4s var(--ease-out); }
.service__more[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.service .service__more p, .addons .service__more p { flex: none; font-size: 14px; line-height: 1.55; color: var(--sand); margin: 10px 0 0; }
.service__more p b { color: var(--honey); font-weight: 600; }

/* ===== Контакты ===== */
.contacts { position: relative; min-height: 90vh; display: flex; align-items: center; padding: clamp(80px, 10vw, 140px) var(--pad); overflow: hidden; }
.contacts__bg { position: absolute; inset: -10% 0; }
.contacts__bg img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0), 0); will-change: transform; }
.contacts__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,18,15,.92) 0%, rgba(22,18,15,.6) 60%, rgba(22,18,15,.35) 100%); }
.contacts__box { position: relative; z-index: 2; max-width: 560px; width: 100%; }
.contacts__list { list-style: none; margin: 0 0 30px; padding: 0; }
.contacts__list li { display: grid; grid-template-columns: 110px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.contacts__list span { color: var(--sand); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; padding-top: 5px; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom)); color: var(--sand); font-size: 13px; border-top: 1px solid var(--line); }

/* ===== Нижняя панель записи (телефон) ===== */
.mbar {
  display: none; position: fixed; z-index: 60; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  gap: 8px; padding: 6px; border-radius: 999px;
  background: rgba(22, 18, 15, .88); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
  transform: translate3d(0, 160%, 0); transition: transform .55s var(--ease-out);
}
.mbar.is-show { transform: none; }
.mbar__btn {
  position: relative; overflow: hidden; flex: 1; display: flex; align-items: center; gap: 12px;
  min-height: 54px; padding: 0 18px 0 7px; border-radius: 999px;
  background: linear-gradient(135deg, #e0ad74 0%, var(--amber) 55%, #b07a45 100%); color: var(--night);
  text-decoration: none; touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px rgba(200,145,90,.35);
  animation: mbar-glow 2.8s ease-out infinite;
  transition: transform .2s var(--ease-out);
}
.mbar__btn:active { transform: scale(.97); }
/* блик пробегает по кнопке */
.mbar__btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg); animation: mbar-shine 4.5s ease-in-out infinite 1s;
}
.mbar__ico {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--night); color: #3ddc84; animation: mbar-wiggle 4.5s ease-in-out infinite 1s;
}
.mbar__txt { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.mbar__txt b { font: 800 16px/1 var(--sans); }
.mbar__txt small { font: 600 11.5px/1 var(--sans); opacity: .8; }
.mbar__round {
  flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(200,145,90,.35);
  background: rgba(43,35,30,.9); color: var(--honey); text-decoration: none; touch-action: manipulation;
  transition: transform .2s var(--ease-out);
}
.mbar__round:active { transform: scale(.94); }
.mbar__round > span { font: 700 19px/1 var(--serif); }
.mbar__round small { font: 700 9px/1 var(--sans); letter-spacing: .05em; color: var(--sand); text-transform: uppercase; }
@keyframes mbar-glow { 0% { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px rgba(200,145,90,.35), 0 0 0 0 rgba(200,145,90,.5); } 70%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px rgba(200,145,90,.35), 0 0 0 12px rgba(200,145,90,0); } }
@keyframes mbar-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@keyframes mbar-wiggle { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-14deg); } 88% { transform: rotate(12deg); } 92% { transform: rotate(-8deg); } 96% { transform: rotate(4deg); } }

/* ===== Плавающие кнопки сбоку (WhatsApp, 2GIS) ===== */
.fab {
  position: fixed; z-index: 55; right: var(--pad); bottom: calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 16px;
  opacity: 0; transform: translate3d(0, 24px, 0); pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.fab.is-show { opacity: 1; transform: none; pointer-events: auto; }
.fab__btn {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  text-decoration: none; touch-action: manipulation; transition: transform .3s var(--ease-out);
}
.fab__btn svg { position: relative; z-index: 1; }
/* Волны: два кольца расходятся по очереди */
.fab__btn::before, .fab__btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--wave);
  animation: fab-wave 2.4s var(--ease-out) infinite; pointer-events: none;
}
.fab__btn::after { animation-delay: 1.2s; }
@keyframes fab-wave { from { transform: scale(1); opacity: .7; } to { transform: scale(1.75); opacity: 0; } }
.fab__btn--wa { --wave: #25d366; background: #25d366; color: #fff; box-shadow: 0 12px 30px rgba(37, 211, 102, .32); }
.fab__btn--2gis {
  --wave: rgba(200, 145, 90, .7); width: 52px; height: 52px; margin-right: 4px;
  background: rgba(32, 26, 22, .9); color: var(--amber); border: 1px solid rgba(200, 145, 90, .45);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.fab__btn--2gis::before { animation-duration: 3.6s; }
.fab__btn--2gis::after { display: none; }
.fab__btn--2gis { align-content: center; gap: 1px; }
.fab__mark { position: relative; z-index: 1; font: 800 9px/1 var(--sans); letter-spacing: .06em; color: var(--honey); }
/* Подпись выезжает слева при наведении (ПК) */
.fab__label {
  position: absolute; right: calc(100% + 12px); top: 50%; white-space: nowrap;
  padding: 9px 14px; border-radius: 999px; background: var(--clay); border: 1px solid var(--line);
  color: var(--linen); font: 600 13px/1 var(--sans);
  opacity: 0; transform: translate3d(8px, -50%, 0); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease-out);
}
@media (hover: hover) {
  .fab__btn:hover { transform: scale(1.06); }
  .fab__btn:hover .fab__label { opacity: 1; transform: translate3d(0, -50%, 0); }
}
.fab__btn:focus-visible { outline: 2px solid var(--honey); outline-offset: 4px; }

/* ===== Плавная прокрутка (Lenis) ===== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ===== Главный экран на ПК: видео в рамке справа, размытое — фоном ===== */
@media (min-width: 1025px) {
  .hero__backdrop { display: block; inset: -10%; width: 30%; height: 30%; transform-origin: 0 0; transform: scale(4); filter: blur(10px) brightness(.45) saturate(1.2); }
  .hero { --card: min(36vw, 520px); }
  .hero__video {
    inset: auto; right: var(--pad); top: calc(var(--head-h) + 28px);
    width: var(--card); height: auto; aspect-ratio: 4 / 5;
    max-height: calc(var(--vh) - var(--head-h) - 76px);
    border-radius: 28px; box-shadow: 0 40px 100px rgba(0,0,0,.6);
  }
  .hero__title { font-size: clamp(48px, 5.4vw, 88px); }
  .hero__shade { background: linear-gradient(90deg, rgba(22,18,15,.9) 0%, rgba(22,18,15,.55) 42%, rgba(22,18,15,0) 62%), linear-gradient(180deg, rgba(22,18,15,.5) 0%, rgba(22,18,15,0) 20%); }
  .hero__content { max-width: min(760px, calc(100vw - var(--card) - var(--pad) * 3)); }
}

/* ===== Планшет ===== */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .visit__list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .reviews__grid {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 10px; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .reviews__grid::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 min(84vw, 420px); scroll-snap-align: start; padding: 24px; }
  .review p { font-size: 20px; }
  .reels__rail {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
    padding-bottom: 10px; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .reels__rail::-webkit-scrollbar { display: none; }
  .reel { flex: 0 0 min(300px, 64vw); scroll-snap-align: start; --ry: 0px !important; }
}

/* ===== Телефон (iPhone и Android) ===== */
@media (max-width: 820px) {
  :root { --head-h: 60px; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: stretch; gap: 4px;
    padding: 90px var(--pad) calc(30px + env(safe-area-inset-bottom)); background: var(--night);
    clip-path: circle(0% at calc(100% - 40px) 40px); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
  .nav a:not(.btn) { font: 700 40px/1.15 var(--serif); color: var(--linen); padding: 6px 0; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { display: inline-flex; margin-top: 24px; min-height: 56px; font-size: 16px; }
  .burger { display: block; }
  .header__cta { display: none; }
  .mbar { display: flex; align-items: center; }
  /* На телефоне WhatsApp уже в нижней панели: сбоку остаётся только 2GIS, над панелью */
  .fab { display: none; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .hero { min-height: 560px; }
  .hero__content { bottom: 86px; }
  .hero__shade { background: linear-gradient(180deg, rgba(22,18,15,.55) 0%, rgba(22,18,15,0) 26%, rgba(22,18,15,.5) 48%, rgba(22,18,15,.97) 82%); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero .hero__actions .btn--ghost { display: none; }
  .hero__text { margin-bottom: 20px; }
  .facts { margin-top: 16px; font-size: 12px; gap: 6px 14px; }
  .hero__controls { bottom: 26px; }
  .temp { font-size: 11px; }


  .why { border-radius: 24px 24px 0 0; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 20px; display: flex; align-items: center; gap: 16px; }
  .stat b { margin: 0; min-width: 2.4ch; font-size: 48px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 24px 22px; }
  .services__head .arrows { display: none; }
  .swipe-hint { display: block; }
  .visit__list { grid-template-columns: 1fr; row-gap: 28px; }
  .addons__list li { grid-template-columns: 1fr auto; }
  .addons__list li > div { grid-column: 1 / -1; }
  .contacts { min-height: auto; }
  .contacts__list li { grid-template-columns: 1fr; gap: 2px; }
  .contacts__bg::after { background: rgba(22,18,15,.82); }
  .contacts .hero__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 38px; }
  .facts li:last-child { display: none; }
}

/* Невысокие телефоны (iPhone SE, маленькие Android): история не уходит под нижнюю кнопку */
@media (max-width: 820px) and (max-height: 760px) {
}
/* Ссылки в контактах — удобная зона нажатия пальцем */
.contacts__list a { display: inline-block; padding: 8px 0; margin: -8px 0; }

/* Для тех, у кого в системе отключена анимация */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .reel { transform: none; }
  .hero__parallax, .hero__content { transform: none !important; opacity: 1 !important; }
}

/* ===== Одно предложение по центру ===== */
.offers__grid--one { grid-template-columns: minmax(0, 560px); justify-content: center; margin-inline: auto; }
.offers .section-title { text-align: center; }
.offer__note { margin: 0; color: var(--sand); font-size: 14px; }

/* ===== Задвижка «Как мы работаем» ===== */
.reels__toggle-wrap { padding: 0 var(--pad); }
.reels__toggle {
  display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 999px;
  border: 1px solid rgba(200,145,90,.55); background: var(--clay); color: var(--linen);
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; transition: background .3s, border-color .3s;
}
.reels__toggle:hover { background: var(--umber); border-color: var(--amber); }
.reels__toggle-icon { position: relative; width: 14px; height: 14px; }
.reels__toggle-icon::before, .reels__toggle-icon::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--honey);
  transition: transform .4s var(--ease-out);
}
.reels__toggle-icon::after { transform: rotate(90deg); }
.reels__toggle[aria-expanded="true"] .reels__toggle-icon::after { transform: rotate(0deg); }
.reels__drawer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
.reels__drawer.is-open { grid-template-rows: 1fr; }
.reels__drawer-inner { min-height: 0; overflow: hidden; }
.reels__drawer-inner { transition: padding-top .7s var(--ease-out); }
.reels__drawer.is-open .reels__drawer-inner { padding-top: clamp(28px, 4vw, 44px); }
.reels__toggle-play { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--honey); }
@media (max-width: 640px) {
  .reels__toggle { width: 100%; min-height: 52px; justify-content: space-between; }
}

/* ===== «Оттаять»: иней на главном экране ===== */
.frost {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%;
  opacity: calc(.95 - var(--hp, 0) * 2.4);
  transition: opacity .2s linear;
  /* центр и зона текста остаются чистыми: иней только по краям стекла */
  --fmask: radial-gradient(ellipse 66% 62% at 34% 64%, transparent 46%, #000 92%);
  --fhead: linear-gradient(180deg, transparent calc(var(--head-h) + 6px), #000 calc(var(--head-h) + 90px));
  -webkit-mask-image: var(--fmask), var(--fhead); -webkit-mask-composite: source-in;
  mask-image: var(--fmask), var(--fhead); mask-composite: intersect;
  pointer-events: none;
}
.frost:not(.is-on) { display: none; }
.frost__hint {
  position: absolute; z-index: 4; right: var(--pad); top: calc(var(--head-h) + 28px);
  padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(168, 198, 217, .35);
  background: rgba(168, 198, 217, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--frost);
  opacity: 0; transform: translate3d(0, -8px, 0); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  pointer-events: none;
}
.frost__hint.is-in { opacity: 1; transform: none; }
@media (max-width: 820px) {
  .frost { --fmask: radial-gradient(ellipse 110% 40% at 50% 80%, transparent 55%, #000 92%); }
  .frost__hint { right: auto; left: var(--pad); font-size: 11px; }
}

/* ===== Карта напряжения ===== */
.zmap { padding: clamp(80px, 12vw, 160px) var(--pad); background: var(--night); border-top: 1px solid var(--line); }
.zmap__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(28px, 5vw, 56px); }
.zmap__head .section-title { margin-bottom: 0; }
.zmap__lead { max-width: 400px; color: var(--sand); font-size: 16px; }
.zmap__grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 520px); gap: clamp(28px, 6vw, 96px); align-items: center; justify-content: center; }
.zmap__body { position: relative; aspect-ratio: 1 / 2; max-height: 640px; margin-inline: auto; width: 100%;
  background: radial-gradient(ellipse 60% 45% at 50% 40%, rgba(200,145,90,.10), transparent 70%); }
.zmap__svg { width: 100%; height: 100%; overflow: visible; }
.zmap__line { fill: none; stroke: var(--honey); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; opacity: .55; }
.zmap__line .zmap__spine { stroke-dasharray: 2 5; opacity: .6; }
.zmap__line .zmap__thin { stroke-width: .8; opacity: .7; }
@supports (animation-timeline: view()) {
  .zmap__line { stroke-dasharray: 1400; animation: zDraw linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  @keyframes zDraw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
}
.zmap__hot { cursor: pointer; }
.zmap__hot circle { fill: url(#zGlow); opacity: .22; transform-box: fill-box; transform-origin: center; transform: scale(.55);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.zmap__hot:hover circle { opacity: .5; }
.zmap__hot.is-on circle { opacity: 1; transform: scale(1); animation: zPulse 2.4s var(--ease-out) infinite; }
@keyframes zPulse { 50% { transform: scale(1.12); } }
.zmap__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.zmap__chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--umber); color: var(--linen);
  font: 600 15px/1 var(--sans); cursor: pointer; touch-action: manipulation;
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease-out); }
.zmap__chip:hover { border-color: rgba(200,145,90,.55); }
.zmap__chip:active { transform: scale(.96); }
.zmap__chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--night); }
.zmap__about { min-height: 4.8em; color: var(--sand); font-size: 16px; line-height: 1.6; margin-bottom: 18px; }
.zmap__about b { color: var(--linen); }
.zmap__result { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.zmap__row { display: flex; justify-content: space-between; gap: 14px; font-size: 15px; margin-bottom: 8px; }
.zmap__row b { color: var(--honey); font-weight: 600; white-space: nowrap; }
.zmap__price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.zmap__price b { font: 700 44px/1 var(--serif); color: var(--honey); font-variant-numeric: lining-nums; }
.zmap__price small { color: var(--sand); font-size: 14px; }
.zmap__btn { width: 100%; }
.zmap__fine { margin-top: 12px; color: var(--sand); font-size: 13px; }
@media (max-width: 900px) {
  .zmap__grid { grid-template-columns: 1fr; }
  .zmap__body { max-height: 380px; width: auto; height: 380px; }
}
@media (prefers-reduced-motion: reduce) { .zmap__hot.is-on circle { animation: none; } }
.zmap__chip--all { border-color: rgba(200,145,90,.55); color: var(--honey); }
.zmap__chip--add { border-style: dashed; }

.master__more { display: inline-block; margin-top: 12px; color: var(--amber); font-size: 14px; text-decoration: none; border-bottom: 1px solid currentColor; }
