/* ГРАФИТ — рекламный лендинг. Mobile-first. Цвета — токены ниже, тёмная тема переопределяет их. */
:root {
  --paper: #f4f3f1;
  --paper-2: #ecebe8;
  --surface: #fbfaf8;            /* непрозрачные карточки (стопка услуг) */
  --card: rgba(255, 255, 255, .62);
  --card-border: rgba(255, 255, 255, .9);
  --ink: #171719;
  --ink-2: #3c3c40;
  --muted: #717176;
  --line: rgba(28, 28, 31, .11);
  --hatch: rgba(23, 23, 25, .07);
  --accent: #7a5b37;             /* приглушённая бронза — только для главной кнопки записи */
  --accent-hover: #684b2b;
  --accent-ink: #fff;
  --dark-btn: #19191c;
  --dark-btn-ink: #fff;
  --nail-1: #dcc6b6;
  --nail-2: #f4e9e0;
  --shadow: 0 24px 70px rgba(25, 25, 28, .09);
  --shadow-sm: 0 10px 30px rgba(25, 25, 28, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 60px;
  --dock-h: 0px;
  --r-lg: 26px;
  --r-md: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121214; --paper-2: #18181b; --surface: #1b1b1e;
    --card: rgba(255, 255, 255, .045); --card-border: rgba(255, 255, 255, .08);
    --ink: #ecebe8; --ink-2: #c9c8c4; --muted: #9b9ba0; --line: rgba(255, 255, 255, .1); --hatch: rgba(255, 255, 255, .06);
    --accent: #c9a878; --accent-hover: #d8b98c; --accent-ink: #17130d;
    --dark-btn: #ecebe8; --dark-btn-ink: #121214;
    --nail-1: #6d5a4d; --nail-2: #a18b7b;
    --shadow: 0 24px 70px rgba(0, 0, 0, .4); --shadow-sm: 0 10px 30px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121214; --paper-2: #18181b; --surface: #1b1b1e;
  --card: rgba(255, 255, 255, .045); --card-border: rgba(255, 255, 255, .08);
  --ink: #ecebe8; --ink-2: #c9c8c4; --muted: #9b9ba0; --line: rgba(255, 255, 255, .1); --hatch: rgba(255, 255, 255, .06);
  --accent: #c9a878; --accent-hover: #d8b98c; --accent-ink: #17130d;
  --dark-btn: #ecebe8; --dark-btn-ink: #121214;
  --nail-1: #6d5a4d; --nail-2: #a18b7b;
  --shadow: 0 24px 70px rgba(0, 0, 0, .4); --shadow-sm: 0 10px 30px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  padding-bottom: var(--dock-h);
  isolation: isolate;               /* свой слой: струя лака (z-index: -1) рисуется над фоном body, но под блоками */
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; color: var(--muted); }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }

/* Бумажный фон с мягкими пятнами света, как на /go */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 6%, rgba(255, 255, 255, .9), transparent 38%),
    radial-gradient(ellipse at 90% 34%, rgba(214, 211, 207, .35), transparent 32%);
}
:root[data-theme="dark"] body::before { opacity: .04; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { opacity: .04; } }

.eyebrow {
  display: flex; align-items: center; gap: 9px; margin: 0 0 16px;
  color: var(--muted); font-size: 10.5px; font-weight: 650; letter-spacing: .17em; text-transform: uppercase;
}
.eyebrow::before { content: ""; flex: 0 0 22px; height: 1px; background: currentColor; opacity: .7; }

h2 { font-family: var(--serif); font-size: clamp(32px, 8.4vw, 56px); line-height: 1.02; letter-spacing: -.04em; }
h2 em { display: block; }
.sec-head { margin-bottom: 34px; max-width: 640px; }
.sec-lead { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 460px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px;
  font: 600 15px/1.1 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent; cursor: pointer;
}
.btn:active { transform: scale(.98); }
.btn--lg { min-height: 58px; padding: 0 26px; font-size: 16px; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 26px rgba(122, 91, 55, .26); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--dark { background: var(--dark-btn); color: var(--dark-btn-ink); }
.btn--ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--surface); }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line);
  border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.icon-btn--lg { width: 52px; height: 52px; flex: 0 0 52px; }
.icon-btn svg, .perk svg, .bot svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }

/* ---------- Плейсхолдеры изображений: файл с именем из ASSETS.md просто кладётся в assets/img ---------- */
.slot { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot__label { display: none; }
.slot.is-missing { background: repeating-linear-gradient(135deg, transparent 0 9px, var(--hatch) 9px 10px), var(--paper-2); }
.slot.is-missing img { display: none; }
.slot.is-missing .slot__label {
  position: absolute; inset: auto 10px 10px 10px; display: block; padding: 6px 9px; border-radius: 8px;
  background: var(--surface); color: var(--muted); font: 500 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
}

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 50; height: var(--header-h); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.top.is-scrolled { background: color-mix(in srgb, var(--paper) 82%, transparent); border-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%; width: min(100% - 32px, 1120px); margin-inline: auto; }
.top__logo img { width: auto; height: 30px; }
:root[data-theme="dark"] .top__logo img, :root[data-theme="dark"] .foot__logo { filter: invert(1) brightness(.93); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .top__logo img, :root:not([data-theme="light"]) .foot__logo { filter: invert(1) brightness(.93); } }
.top__nav { display: none; }
.top__actions { display: flex; align-items: center; gap: 8px; }
.top__book { display: none; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
}

/* ---------- 1. Первый экран ---------- */
.hero { position: relative; padding: 18px 0 56px; overflow-x: clip; }
main, .foot { overflow-x: clip; }
.hero__in { display: flex; flex-direction: column; }
.hero__copy { display: block; }
.hero__eyebrow { margin-bottom: 14px; }

.hero__title { position: relative; z-index: 1; }

.hero__title { font-family: var(--serif); font-size: clamp(40px, 11.4vw, 76px); line-height: 1; letter-spacing: -.05em; }
.hero__title .l1, .hero__title .l2 { display: block; }
.hero__title .l2 { color: var(--muted); font-style: italic; }
.hero__title .w { display: inline-block; }
.lead { margin-top: 16px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 470px; }

.rating {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); text-decoration: none; font-size: 12px; color: var(--muted); max-width: 100%;
}
.rating__stars { color: var(--ink); letter-spacing: 1px; font-size: 11px; }
.rating__num { font: 600 17px/1 var(--serif); color: var(--ink); }
.rating__txt { line-height: 1.3; }

.hero__cta { display: grid; gap: 10px; margin-top: 22px; }
.perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.perk { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 12px; font-weight: 550; }
.perk svg { width: 14px; height: 14px; }

/* Сцена: логотип + флакон на букве «Т» (координаты — доли логотипа 600×177, буквы начинаются на 11,9% высоты) */
/* Ширина подобрана так, чтобы горлышко лежащего флакона (105,9% ширины логотипа) выходило в правое поле, а струя не задевала контент */
.hero__stage { order: -1; position: relative; z-index: 2; width: min(520px, calc((100% + 6px) / 1.0587)); padding-top: 23%; margin: 0 0 26px calc(100% + 6px - 1.0587 * min(520px, calc((100% + 6px) / 1.0587))); }
.stage__logo { position: relative; }
.stage__wordmark { width: 100%; height: auto; }
/* флакон 554×932 (обрезан по стеклу): ширина 13% логотипа, низ — на верхней планке «Т» */
.bottle { position: absolute; left: 86%; top: -62.2%; width: 13%; aspect-ratio: 554 / 932; transform-origin: 97% 99%; will-change: transform; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); }
.bottle__img, .bottle__svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.bottle__svg { display: none; }
.bottle.no-img .bottle__svg { display: block; }
.bottle__neck { position: absolute; left: 50%; top: 2%; width: 1px; height: 1px; }
/* крышка с кисточкой лежит на «И» */
.cap { position: absolute; left: 71%; top: -31%; width: 8.5%; height: auto; transform: rotate(62deg); transform-origin: 50% 50%; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .15)); }
/* Струя гель-лака: SVG-форма строится скриптом (неровная волна, наплывы), открывается clip-path сверху вниз */
.pour { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: -1; pointer-events: none; display: none; }
.anim .pour.is-ready { display: block; }
.pour__clip { position: absolute; top: 0; left: 0; }
.pour__tile { position: absolute; left: 0; overflow: hidden; contain: strict; visibility: hidden; }
.pour__tile.is-full { visibility: visible; }
.pour__tile.is-cut { visibility: visible; }
.pour__tile svg { position: absolute; left: 0; display: block; max-width: none; }
.pour__svg { position: absolute; width: 0; height: 0; overflow: hidden; }
.pour__body { fill: #0a0a0c; }
.pour__shine { fill: none; stroke: #fff; stroke-width: 1.1; stroke-linecap: round; opacity: .55; }
/* кончик растворяется в цвете фона — без «наконечника» */
.pour__fade { position: absolute; left: 0; top: 0; width: 24px; height: 18px; opacity: 0; background: linear-gradient(180deg, transparent, var(--paper) 85%); }
.pour.is-fading .pour__fade { opacity: 1; }
/* на тёмном фоне чёрная струя теряется — тонкий светлый контур */
:root[data-theme="dark"] .pour__body { stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pour__body { stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
}
:root[data-theme="dark"] .stage__wordmark { filter: invert(1) brightness(.93); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage__wordmark { filter: invert(1) brightness(.93); } }
/* Пока сцена с логотипом видна, маленький логотип в шапке скрыт */
.anim .top__logo { opacity: 0; transition: opacity .35s ease; }
.anim .top.past-hero .top__logo { opacity: 1; }
.hero__scroll { display: none; }

/* Рисование линии и появление слов — CSS-анимации на загрузке, без зависимостей */
.anim .stage__wordmark { opacity: 0; animation: logoIn 1.1s cubic-bezier(.2, .7, .2, 1) .05s forwards; }
.anim .bottle { opacity: 0; animation: bottleIn .9s cubic-bezier(.3, 1.4, .5, 1) .75s forwards; }
.anim .cap { opacity: 0; animation: fade .6s ease 1.3s forwards; }
@keyframes logoIn { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes bottleIn { from { opacity: 0; translate: 0 -40%; } to { opacity: 1; translate: 0 0; } }
.anim .hero__title .w { opacity: 0; transform: translateY(.45em); animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(.12s + var(--i) * .09s); }
.anim .hero .lead, .anim .rating, .anim .hero__eyebrow, .anim .perks { opacity: 0; animation: fade .8s ease .55s forwards; }
@keyframes fade { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- 2. Услуги — стопка карточек на position: sticky ---------- */
.services { padding: 72px 0 40px; }
.stack { display: grid; gap: 22px; }
.svc {
  position: sticky; top: calc(var(--header-h) + 12px + var(--i) * 10px);
  display: flex; flex-direction: column; overflow: hidden; padding: 10px;
  background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--shadow);
  transform-origin: 50% 0; will-change: transform;
}
.svc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--paper); opacity: var(--dim, 0); pointer-events: none; }
.svc__img { order: -1; aspect-ratio: 16 / 10; border-radius: calc(var(--r-lg) - 8px); }
.svc__img--pmu { aspect-ratio: 4 / 3; }         /* брови идут по диагонали — на телефоне кадру нужна высота */
.svc__img--pmu img { object-position: 50% 50% !important; }
@media (min-width: 768px) { .svc__img--pmu img { object-position: 50% 52% !important; } }
.svc__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 12px 12px; }
.svc__num { color: var(--muted); font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.svc h3 { font-family: var(--serif); font-size: 30px; line-height: 1.05; letter-spacing: -.03em; }
.svc p { color: var(--ink-2); font-size: 15px; }
.price { display: flex; align-items: baseline; gap: 6px; padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--line); }
.svc p.price { color: var(--ink); }
.price__prefix { color: var(--muted); font-size: 13px; }
.price__val { font: 500 22px/1.2 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price.is-unknown .price__prefix { display: none; }
.price.is-unknown .price__val { font: 500 14px/1.4 var(--sans); color: var(--muted); }
.svc .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- 3. Работы: две ленты ---------- */
.works { padding: 80px 0 40px; overflow-x: clip; }
.works__rows { position: relative; z-index: 2; display: grid; gap: 12px; }
.works__row { display: flex; gap: 12px; padding-inline: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.works__row::-webkit-scrollbar { display: none; }
.work { flex: 0 0 46%; margin: 0; aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; background: var(--paper-2); scroll-snap-align: start; }
.work img { width: 100%; height: 100%; object-fit: cover; }
/* с анимацией ленты едут от прокрутки, а не пальцем */
.work { cursor: zoom-in; }
.work:focus-visible { outline-offset: -3px; }
.works__hint { width: min(100% - 32px, 1120px); margin: 14px auto 0; color: var(--muted); font-size: 12.5px; }

/* ---------- 4. Мастера ---------- */
.masters { padding: 80px 0 40px; }
.masters__list {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px 16px 18px; scroll-padding-inline: 16px; scrollbar-width: none;
}
.masters__list::-webkit-scrollbar { display: none; }
.master { flex: 0 0 64%; scroll-snap-align: start; }
.master__img { aspect-ratio: 3 / 4; border-radius: var(--r-md); }
.master__img img { transform: scale(1.12); }
.master h3 { margin-top: 12px; font-family: var(--serif); font-size: 22px; letter-spacing: -.02em; }
.master p { color: var(--muted); font-size: 13.5px; }

/* ---------- 5. Видео ---------- */
.video { padding: 80px 0; overflow: hidden; }
.video__stage { display: flex; align-items: center; justify-content: center; gap: 4%; }
.vframe { position: relative; margin: 0; overflow: hidden; border-radius: 24px; background: var(--paper-2); box-shadow: var(--shadow); aspect-ratio: 9 / 16; }
.vframe video { width: 100%; height: 100%; object-fit: cover; }
.vframe--main { flex: 0 0 56%; max-width: 340px; }
.vframe--side { flex: 0 0 38%; max-width: 250px; transform: translateY(10%) rotate(2.5deg); }
.vframe video[controls] { object-fit: contain; background: #000; }

/* ---------- 6. Отзывы ---------- */
.reviews { padding: 80px 0; }
.reviews__head { margin-bottom: 28px; }
.scores { display: flex; flex-wrap: wrap; gap: 18px 40px; margin: 4px 0 22px; }
.score { display: grid; gap: 8px; justify-items: start; text-decoration: none; color: inherit; }
.score__num { font: 400 clamp(64px, 18vw, 120px)/.86 var(--serif); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.score__stars { position: relative; display: inline-block; color: var(--line); font-size: 17px; letter-spacing: 3px; line-height: 1; }
.score__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--r) * 100%); overflow: hidden; white-space: nowrap; color: var(--ink); }
.score__src { color: var(--muted); font-size: 13px; }
.score__src b { color: var(--ink); font-weight: 600; }
.reviews__title { font-size: clamp(28px, 7vw, 44px); max-width: 640px; }
.quotes { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.quotes::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 84%; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px 20px; }
.quote p { font: 400 18px/1.42 var(--serif); letter-spacing: -.01em; }
.quote footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; color: var(--muted); font-size: 12.5px; }
.quote footer b { color: var(--ink); font-weight: 600; }
.quote__meta { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.quote__src { padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--ink-2); }
.reviews__more { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- 7. Как найти ---------- */
.route { padding: 80px 0; }
.steps { position: relative; display: grid; gap: 34px; padding-left: 52px; }
.steps__track { position: absolute; left: 17px; top: 18px; bottom: 18px; width: 1px; background: repeating-linear-gradient(to bottom, var(--line) 0 5px, transparent 5px 10px); }
.steps__line { position: absolute; inset: 0; background: var(--ink); transform-origin: 50% 0; transform: scaleY(var(--route, 1)); }
.step { position: relative; }
.step__dot {
  position: absolute; left: -52px; top: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--ink); background: var(--paper); font: 500 14px/1 var(--serif); transition: background-color .35s, color .35s;
}
.step.is-on .step__dot, html:not(.anim) .step__dot { background: var(--ink); color: var(--paper); }
.step h3 { font-family: var(--serif); font-size: 22px; line-height: 1.2; letter-spacing: -.02em; padding-top: 4px; }
.step p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.step__img { margin-top: 14px; aspect-ratio: 3 / 2; border-radius: var(--r-md); }
.step__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.step__pair .step__img { margin-top: 0; }
.info { margin-top: 44px; padding: 22px 20px; }
.info__list { display: grid; gap: 14px; margin: 0; }
.info__list div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.info__list dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.info__list dd { margin: 0; font-size: 15px; }
.info__list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.info__btns { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- 8. Финал ---------- */
.final { padding: 80px 0 72px; text-align: center; }
.final__in { display: flex; flex-direction: column; align-items: center; }
.final__line { width: min(100%, 420px); height: 32px; margin-bottom: 22px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; overflow: visible; }
.anim .final__line path { stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); }
.final__title { font-size: clamp(40px, 11vw, 76px); }
.final .sec-lead { margin-inline: auto; }
.final__cta { display: grid; gap: 10px; width: min(100%, 420px); margin-top: 26px; }
.bots { width: 100%; max-width: 760px; margin-top: 48px; padding: 22px 18px; text-align: left; }
.bots h3 { font-family: var(--serif); font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.bots p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.bots__btns { display: grid; gap: 10px; margin-top: 18px; }
.bot {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px; border-radius: 18px;
  background: var(--dark-btn); color: var(--dark-btn-ink); text-decoration: none; transition: transform .18s ease;
}
.bot:active { transform: scale(.985); }
.bot span { display: grid; gap: 2px; }
.bot strong { font-size: 15px; }
.bot small { opacity: .68; font-size: 11.5px; }
.bot svg { width: 22px; height: 22px; flex: 0 0 22px; }
.bot--quiet { background: var(--card); border: 1px solid var(--line); color: var(--ink); }

/* ---------- Подвал ---------- */
.foot { padding: 40px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot__in { display: grid; gap: 10px; }
.foot__logo { width: 130px; height: auto; margin-bottom: 6px; }
.foot a { text-decoration: none; color: var(--ink-2); display: inline-block; padding-block: 10px; margin-block: -10px; }
.foot__small { font-size: 11.5px; opacity: .85; }

/* ---------- 9. Липкая панель записи (телефон) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 8px; align-items: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 88%, transparent); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.dock__book { flex: 1; min-height: 52px; font-size: 16px; }

/* Плашка про cookie — над липкой панелью на телефоне, в углу на десктопе */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--dock-h) + 10px); z-index: 70;
  display: flex; gap: 12px; align-items: center; padding: 12px 14px;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); font-size: 13px; line-height: 1.4;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
.cookie a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie .btn { flex: none; min-height: 44px; padding: 0 16px; font-size: 14px; }
@media (min-width: 768px) { .cookie { left: auto; right: 24px; bottom: 24px; max-width: 420px; } }
:root { --dock-h: calc(73px + env(safe-area-inset-bottom)); }

/* Появление при прокрутке (включается только с JS и без reduced-motion) */
.anim [data-reveal] { opacity: 0; transform: translateY(18px); }
.anim [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }

/* ---------- Планшет ---------- */
@media (min-width: 640px) {
  .hero__cta, .final__cta { grid-template-columns: auto auto; justify-content: start; }
  .final__cta { justify-content: center; width: auto; }
  .info__btns, .bots__btns { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .master { flex-basis: 38%; }
  .quote { flex-basis: 56%; }
}
@media (min-width: 768px) {
  :root { --dock-h: 0px; --header-h: 68px; }
  .dock { display: none; }
  .top__book { display: inline-flex; }
  .wrap, .top__in { width: min(100% - 64px, 1120px); }
  .masters__list, .quotes { padding-inline: 32px; scroll-padding-inline: 32px; }
  .svc { flex-direction: row; align-items: stretch; min-height: 420px; }
  .svc__img { order: 0; flex: 0 0 44%; aspect-ratio: auto; }
  .svc__body { flex: 1; justify-content: center; padding: 28px 30px; }
  .svc h3 { font-size: 40px; }
  .steps { grid-template-columns: 1fr; }
  .step__img, .step__pair { max-width: 440px; }
}

/* ---------- Десктоп ---------- */
@media (min-width: 1024px) {
  .top__nav { display: flex; gap: 26px; font-size: 14px; }
  .top__nav a { text-decoration: none; color: var(--ink-2); }
  .top__nav a:hover { color: var(--ink); }
  .hero { padding: 40px 0 90px; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
  .hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: 56px; align-items: center; }
  .hero__copy { grid-column: 1; grid-row: 1; }
  .hero__stage { grid-column: 2; grid-row: 1; width: min(100%, 480px); margin: 0; justify-self: end; }
  .anim .foot { padding-top: 150px; }
  .hero__title { margin-top: 0; }
  .rating { margin-top: 24px; }
  .hero__scroll { display: block; position: absolute; left: 50%; bottom: 22px; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
  .hero__scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 18px; background: var(--ink); animation: scrollcue 2.2s ease-in-out infinite; }
  .services, .works, .masters, .video, .reviews, .route, .final { padding-top: 130px; padding-bottom: 80px; }
  .works__rows, .works__row { gap: 18px; }
  .anim .works__row { overflow: visible; width: max-content; padding-inline: 0; will-change: transform; }
  .anim .work { flex: 0 0 auto; width: 22vw; max-width: 300px; }
  .works__hint { display: none; }
  .masters__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: min(100% - 64px, 880px); margin-inline: auto; padding: 0; overflow: visible; }
  .reviews .quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: min(100% - 64px, 1120px); margin-inline: auto; padding: 0; overflow: visible; }
  .video__in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
  .route .wrap { display: grid; grid-template-columns: 1fr 380px; column-gap: 64px; }
  .route .sec-head { grid-column: 1 / -1; }
  .info { margin-top: 0; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
  .info__btns { grid-template-columns: 1fr; }
  .steps { gap: 46px; }
  .bots { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: center; padding: 28px; }
  .bots__btns { margin-top: 0; grid-template-columns: 1fr; }
}
@keyframes scrollcue { 0% { transform: translateY(-18px); } 100% { transform: translateY(46px); } }

/* ---------- Без движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .svc { will-change: auto; }
  .master__img img { transform: none; }
}

/* Лужица в подвале: сюда стекает лак после кнопки записи */
.foot { position: relative; }
.puddle { position: absolute; top: 18px; left: 0; width: 210px; display: none; transform: scale(0); transform-origin: 78% 40%; transition: transform .8s cubic-bezier(.3, 1.3, .5, 1); pointer-events: none; }
.puddle.is-spilled { transform: scale(1); }
.anim .puddle.is-ready { display: block; }
.puddle img, .puddle svg { width: 100%; height: auto; }
.puddle svg { display: none; }
.puddle.no-img svg { display: block; }
.anim .foot { padding-top: 120px; }
@media (min-width: 768px) { .puddle { width: 300px; } }

/* Телефоны в тексте маршрута — удобная цель для пальца */
.route a[href^="tel:"] { display: inline-block; padding-block: 10px; margin-block: -10px; }

/* ---------- Финал: струя лака заливает кнопку записи ---------- */
.gelbtn { position: relative; display: grid; }
.gelbtn .btn { position: relative; isolation: isolate; overflow: hidden; transition: color .5s ease .25s, box-shadow .6s ease; }
.gelbtn__gel {
  position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .28) 0%, rgba(255, 255, 255, .06) 38%, transparent 39%),
    radial-gradient(120% 140% at 85% 0%, #2a2a2f 0%, #0c0c0e 55%, #000 100%);
  clip-path: circle(0 at var(--gx, 88%) 0);
  transition: clip-path 1.1s cubic-bezier(.3, .7, .2, 1);
}
.gelbtn__txt { position: relative; }
.gelbtn.is-filled .gelbtn__gel { clip-path: circle(160% at var(--gx, 88%) 0); }
.gelbtn.is-filled .btn { color: #f4f3f1; background-color: #0c0c0e; box-shadow: 0 14px 30px rgba(0, 0, 0, .28); transition: color .5s ease .25s, box-shadow .6s ease, background-color 0s linear 1.05s; }
:root[data-theme="dark"] .gelbtn.is-filled .btn { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 14px 30px rgba(0, 0, 0, .4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gelbtn.is-filled .btn { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 14px 30px rgba(0, 0, 0, .4); } }

/* Десктоп: финал делится на две колонки, кнопка записи — у правого края, прямо под струёй */
@media (min-width: 768px) {
  .final { text-align: left; }
  .final__in { display: grid; grid-template-columns: 1fr minmax(260px, 300px); column-gap: 56px; align-items: end; }
  .final__line, .final__title, .final .sec-lead { grid-column: 1; }
  .final .sec-lead { margin-inline: 0; }
  .final__cta { grid-column: 2; grid-row: 2 / span 2; grid-template-columns: 1fr; width: 100%; justify-content: stretch; margin-top: 0; }
  .final .bots { grid-column: 1 / -1; }
}

/* ---------- Просмотр фото работ ---------- */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0b0d; color: #f4f3f1; overscroll-behavior: contain; }
.viewer::backdrop { background: rgba(10, 10, 12, .6); }
.viewer[open] { display: grid; place-items: center; }
.viewer__img { max-width: min(92vw, 900px); max-height: 82dvh; width: auto; height: auto; border-radius: 14px; object-fit: contain; touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.viewer__cap { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); text-align: center; font-size: 13px; opacity: .75; padding: 0 64px; }
.viewer__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.viewer__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.viewer__close { top: calc(14px + env(safe-area-inset-top)); right: 14px; }
.viewer__prev { left: 12px; top: 50%; margin-top: -24px; }
.viewer__next { right: 12px; top: 50%; margin-top: -24px; }
@media (max-width: 640px) { .viewer__prev, .viewer__next { top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); margin-top: 0; } }
