/* «Лепка» · Studio Noga. Раскладка: одна сцена-сетка из стеклянных плит над живым светом;
   внизу — док с вопросом. Палитра «известняк и бугенвиллея» из demo-salon. */
:root {
  --paper: #F1F1EE; --paper-2: #E4E2DC; --ink: #2A1B25; --ink-soft: #62545D;
  --accent: #A3155F; --accent-hover: #85104C; --on-accent: #FFF6FA; --accent-soft: #E77BB0; --olive: #55613A;
  --line: rgba(42, 27, 37, .14);
  --glass: rgba(255, 255, 255, .46); --glass-hi: rgba(255, 255, 255, .82); --glass-edge: rgba(255, 255, 255, .92);
  --shadow: 42 27 37;
  --deep: #2A1B25; --on-deep: #F4EEF1; --on-deep-soft: rgba(244, 238, 241, .72);
  --blob-a: rgba(231, 123, 176, .55); --blob-b: rgba(190, 200, 150, .55); --blob-c: rgba(246, 214, 170, .7);
  --font-display: "Bona Nova", "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --font-body: "Rubik", "Segoe UI", "Arial Hebrew", Arial, sans-serif;
  --r-slab: 28px; --r-card: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dock-h: 126px;
  --pop: #E77BB0; --on-pop: #2A1020; --pop-edge: #C85F95; --warn: #FFC2B5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #160E14; --paper-2: #21151E; --ink: #F3ECEF; --ink-soft: #BBADB6;
    --accent: #E77BB0; --accent-hover: #F094C1; --on-accent: #2A1020; --accent-soft: #A3155F; --olive: #B5C191;
    --line: rgba(243, 236, 239, .16);
    --glass: rgba(255, 255, 255, .05); --glass-hi: rgba(255, 255, 255, .12); --glass-edge: rgba(255, 255, 255, .2);
    --shadow: 0 0 0;
    --deep: #3B1530; --on-deep: #FBF2F6; --on-deep-soft: rgba(251, 242, 246, .74);
    --blob-a: rgba(163, 21, 95, .5); --blob-b: rgba(85, 97, 58, .45); --blob-c: rgba(120, 70, 40, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #160E14; --paper-2: #21151E; --ink: #F3ECEF; --ink-soft: #BBADB6;
  --accent: #E77BB0; --accent-hover: #F094C1; --on-accent: #2A1020; --accent-soft: #A3155F; --olive: #B5C191;
  --line: rgba(243, 236, 239, .16);
  --glass: rgba(255, 255, 255, .05); --glass-hi: rgba(255, 255, 255, .12); --glass-edge: rgba(255, 255, 255, .2);
  --shadow: 0 0 0;
  --deep: #3B1530; --on-deep: #FBF2F6; --on-deep-soft: rgba(251, 242, 246, .74);
  --blob-a: rgba(163, 21, 95, .5); --blob-b: rgba(85, 97, 58, .45); --blob-c: rgba(120, 70, 40, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  overflow-x: clip; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Живой свет под стеклом */
.atmo { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.atmo i { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.atmo i:nth-child(1) { width: 46vmax; height: 46vmax; background: var(--blob-a); top: -14vmax; inset-inline-end: -10vmax; animation: drift1 26s ease-in-out infinite alternate; }
.atmo i:nth-child(2) { width: 40vmax; height: 40vmax; background: var(--blob-b); bottom: -12vmax; inset-inline-start: -12vmax; animation: drift2 32s ease-in-out infinite alternate; }
.atmo i:nth-child(3) { width: 30vmax; height: 30vmax; background: var(--blob-c); top: 38%; left: 34%; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-9vmax, 12vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(12vmax, -8vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-10vmax, -10vmax) scale(1.2); } }

.shell { position: relative; z-index: 1; max-width: 1180px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 18px calc(var(--dock-h) + 40px); }

/* Шапка */
.top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-block-end: clamp(20px, 5vw, 48px); }
.brand { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: .01em; color: inherit; text-decoration: none; }
/* Ссылка на обычный сайт того же салона: в шапке — на широком экране, внизу страницы — всегда */
.full-link { font-size: .85rem; color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.full-link:hover, .full-link:focus-visible { color: var(--ink); text-decoration-color: currentColor; }
.full-top { display: none; }
@media (min-width: 760px) { .full-top { display: inline; } }
.foot { margin-block: 36px 0; text-align: center; }
.foot + .hood { margin-block-start: 14px; }
.demo-badge { font-size: .75rem; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-soft); background: var(--glass); }
.top-gap { flex: 1; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; background: var(--glass); }
.lang button { border: 0; background: none; padding: 5px 13px; border-radius: 99px; cursor: pointer; font-size: .85rem; color: var(--ink-soft); min-height: 32px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Сцена */
.stage { overflow-anchor: none; align-content: start; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 34px); align-items: start; }
/* Новая сцена собирается заранее вторым контейнером: вне потока, невидимая (не рисуется), поверх старой — см. app.js::fly */
.stage.is-prep { position: absolute; opacity: 0; pointer-events: none; z-index: -1; }
.b { grid-column: 1 / -1; min-width: 0; transform-origin: 50% 0; position: relative; }
@media (min-width: 900px) {
  .b.span-a { grid-column: span 7; }
  .b.span-b { grid-column: span 5; }
}
/* Стеклянная плита 2.5D: блик сверху, толщина снизу, мягкая тень */
.slab { position: relative; border-radius: var(--r-slab); padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(150deg, var(--glass-hi), var(--glass));
  -webkit-backdrop-filter: blur(22px) saturate(1.35); backdrop-filter: blur(22px) saturate(1.35);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 -14px 26px -20px rgb(var(--shadow) / .22),
    0 5px 0 -1px var(--glass), 0 6px 0 0 rgb(var(--shadow) / .09),
    0 34px 54px -30px rgb(var(--shadow) / .5), 0 10px 18px -12px rgb(var(--shadow) / .22); }

.b-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.15; text-wrap: balance; margin-block-end: 14px; }
.b-text { color: var(--ink-soft); max-width: 62ch; }
.label { display: block; font-size: .78rem; color: var(--ink-soft); }
.fine { font-size: .8rem; color: var(--ink-soft); margin-block-start: 12px; }
.demo-chip { display: inline-block; font-size: .72rem; padding: 2px 9px; border-radius: 99px; border: 1px dashed var(--line); color: var(--ink-soft); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 99px; border: 1px solid transparent; cursor: pointer;
  font-weight: 500; text-decoration: none; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 14px 24px -14px rgb(var(--shadow) / .7); }
.btn-primary:hover { background: var(--accent); color: var(--on-accent); }
.btn-accent { background: #E77BB0; color: #2A1020; box-shadow: 0 14px 30px -12px rgba(231, 123, 176, .7); }
.btn-accent:hover { background: #F29AC6; }
.btn-ghost-deep { background: transparent; border-color: rgba(244, 238, 241, .3); color: var(--on-deep); min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.btn-ghost-deep:hover { background: rgba(244, 238, 241, .12); }
[dir="rtl"] .arrow { transform: scaleX(-1); }

/* HERO */
.b-hero { display: grid; gap: clamp(24px, 4vw, 48px); align-items: center; padding-block: clamp(4px, 2vw, 24px); }
@media (min-width: 900px) { .b-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); min-height: 420px; } }
.hero-ask { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; color: var(--ink-soft); font-size: .95rem; margin-block-end: 16px; }
.hero-ask-label { font-size: .8rem; }
.hero-ask q { color: var(--accent); font-family: var(--font-display); font-style: italic; font-size: 1.1rem; quotes: "«" "»"; }
[dir="rtl"] .hero-ask q { font-style: normal; quotes: "״" "״"; }
.hero-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.3rem, 6.4vw, 4.4rem); line-height: 1.04; letter-spacing: -.01em; text-wrap: balance; }
[dir="rtl"] .hero-title { letter-spacing: 0; line-height: 1.12; }
.hero-title .word { display: inline-block; }
.is-in .hero-title .word { animation: word .72s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--d, 0ms) + var(--i) * 48ms + 304ms); }
@keyframes word { from { opacity: 0; transform: translateY(.45em) rotate(1.5deg); } }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 46ch; margin-block-start: 18px; }
.hero-actions { margin-block-start: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; min-height: 300px; display: grid; place-items: center; transform-style: preserve-3d; }

/* Карточка работы: рисунок под стеклом + подпись-пластина */
.work { position: relative; width: 100%; max-width: 300px; transition: transform .5s var(--ease); }
.work-pane { position: relative; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 6px 0 -1px rgba(255, 255, 255, .28), 0 40px 60px -30px rgb(var(--shadow) / .6), 0 14px 22px -14px rgb(var(--shadow) / .35); }
.work-pane::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .14) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.work-art { display: block; width: 100%; height: 100%; }
.work-tag { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 1; font-size: .68rem; padding: 2px 8px; border-radius: 99px;
  background: rgba(20, 12, 18, .5); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.work-cap { position: relative; z-index: 2; margin: -26px 12px 0; padding: 12px 14px; border-radius: 16px; display: grid; gap: 2px;
  background: linear-gradient(150deg, var(--glass-hi), var(--glass)); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 16px 26px -18px rgb(var(--shadow) / .55); }
.work-cap strong { font-weight: 500; font-size: .95rem; line-height: 1.3; }
.work-cap span { font-size: .8rem; color: var(--ink-soft); }
.work-front { transform: rotate(-3deg); z-index: 2; }
.work-back { position: absolute; max-width: 240px; inset-inline-end: 0; inset-block-start: 0; transform: rotate(7deg) translate(8%, -4%); opacity: .82; filter: saturate(.85); }
[dir="rtl"] .work-front { transform: rotate(3deg); }
[dir="rtl"] .work-back { transform: rotate(-7deg) translate(-8%, -4%); }
.fan { position: relative; width: min(100%, 380px); aspect-ratio: 1 / 1; }
.fan .work { position: absolute; width: 54%; }
.fan-0 { inset-inline-start: 0; inset-block-start: 8%; transform: rotate(-8deg); }
.fan-1 { inset-inline-start: 24%; inset-block-start: 0; transform: rotate(2deg); z-index: 2; }
.fan-2 { inset-inline-start: 46%; inset-block-start: 16%; transform: rotate(10deg); z-index: 1; }
@media (hover: hover) { .works-row .work:hover, .work-front:hover { transform: translateY(-8px) rotate(0deg) scale(1.02); } }

/* Hero: цена */
.plaque-sun { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--accent-soft), var(--accent) 70%); filter: blur(2px); opacity: .9;
  box-shadow: 0 40px 70px -30px var(--accent); }
.plaque { display: grid; gap: 6px; text-align: center; min-width: min(280px, 100%); transform: rotate(-2deg) translateY(10%); }
.plaque-name { font-weight: 500; }
.plaque-price { display: flex; align-items: baseline; justify-content: center; gap: 8px; font-family: var(--font-display); line-height: 1; }
.plaque-price b { font-size: clamp(4rem, 9vw, 5.6rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.plaque-price small { font-family: var(--font-body); font-size: .9rem; color: var(--ink-soft); }
.plaque-price i { font-style: normal; font-size: 1.8rem; color: var(--accent); }
.plaque-meta { color: var(--ink-soft); font-size: .92rem; }
.plaque-note { font-size: .74rem; color: var(--ink-soft); }

/* Монограммы мастеров (фото людей в демо нет) */
.mono { --s: 72px; width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--tone) 55%, #fff), var(--tone) 62%, color-mix(in srgb, var(--tone) 70%, #000));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -10px 18px -8px rgba(0, 0, 0, .35), 0 18px 28px -16px var(--tone), 0 0 0 5px var(--glass), 0 0 0 6px var(--glass-edge); }
.mono span { font-family: var(--font-display); font-weight: 700; font-size: calc(var(--s) * .46); line-height: 1; }
.mono-l { --s: 96px; } .mono-xl { --s: clamp(150px, 22vw, 210px); }
.hero-master { display: grid; justify-items: center; }
.hero-master-plate { margin-block-start: -34px; display: grid; gap: 2px; text-align: center; padding: 14px 22px; border-radius: 18px; }
.hero-master-plate span { font-size: .85rem; color: var(--ink-soft); }

/* Работы */
.works-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: clamp(16px, 2.4vw, 30px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 14px 6px 34px; margin-inline: -6px; scrollbar-width: none; }
.works-row::-webkit-scrollbar { display: none; }
.works-row .work { scroll-snap-align: center; max-width: none; }
.tilt-0 { transform: rotate(-2deg); } .tilt-1 { transform: rotate(1.4deg) translateY(14px); } .tilt-2 { transform: rotate(-1deg); }
@media (max-width: 640px) { .works-row { grid-auto-columns: 66%; } }

/* Услуги */
.svc-list { display: grid; gap: 4px; }
.svc { display: flex; align-items: baseline; gap: 10px; padding-block: 9px; }
.svc-main { display: grid; gap: 1px; min-width: 0; }
.svc-name { font-weight: 500; }
.svc-meta { font-size: .8rem; color: var(--ink-soft); }
.svc-dots { flex: 1; min-width: 14px; border-block-end: 1px dotted var(--line); transform: translateY(-4px); }
.svc-price { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-cat { font-size: .78rem; color: var(--olive); padding-block-start: 12px; font-weight: 500; }
.svc-cat:first-child { padding-block-start: 0; }

/* Бюджет */
.budget-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-block-end: 16px; }
.budget-head .b-title { margin: 2px 0 0; }
.budget-amount { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.budget-list { display: grid; gap: 16px; }
.budget-item { display: grid; gap: 6px; }
.budget-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; box-shadow: inset 0 1px 2px rgb(var(--shadow) / .18); }
.meter span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); transform-origin: 0 50%; animation: grow 1s var(--ease) .35s both; }
[dir="rtl"] .meter span { transform-origin: 100% 50%; background: linear-gradient(270deg, var(--accent), var(--accent-soft)); }
.meter-olive span { background: var(--olive) !important; }
@keyframes grow { from { transform: scaleX(0); } }

/* Пакет */
.pack { display: grid; gap: 10px; margin-block: 16px; }
.pack-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: 0 10px 16px -14px rgb(var(--shadow) / .5); }
.pack-item:nth-child(even) { margin-inline-start: 14px; }
.pack-total { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; padding: 12px 16px 0; border-block-start: 1px solid var(--line); }
.pack-total strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); white-space: nowrap; }

/* Сравнение */
.cmp-pair { display: grid; gap: 14px; align-items: stretch; margin-block-end: 16px; }
@media (min-width: 700px) { .cmp-pair { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; } }
.cmp { display: grid; gap: 10px; }
.cmp h3 { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; margin-block-end: 4px; }
.cmp-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cmp-row .label { min-width: 52px; }
.cmp-row strong { font-family: var(--font-display); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.badge { font-style: normal; font-size: .72rem; padding: 2px 9px; border-radius: 99px; background: var(--olive); color: var(--paper); }
.cmp-vs { justify-self: center; font-family: var(--font-display); font-style: italic; color: var(--ink-soft); }

/* Отзывы — типографикой, без карточки */
.b-reviews { display: grid; gap: 28px; padding-block: 6px; }
.quote { display: grid; gap: 14px; padding-inline-start: 22px; border-inline-start: 2px solid var(--accent); }
.quote blockquote { font-family: var(--font-display); font-size: clamp(1.25rem, 2.3vw, 1.6rem); line-height: 1.35; text-wrap: pretty; }
.quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9rem; }
.quote figcaption strong { font-weight: 500; }

/* Мастер, команда */
.b-master { display: flex; gap: 20px; align-items: flex-start; }
.master-body { min-width: 0; }
.master-body .b-title { margin-block-end: 2px; }
.master-role { color: var(--accent); font-size: .92rem; margin-block-end: 10px; }
.team-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 22px 16px; }
.team-one { display: grid; justify-items: center; text-align: center; gap: 4px; }
.team-one strong { margin-block-start: 12px; font-weight: 500; }
.team-one > span { font-size: .8rem; color: var(--ink-soft); }

/* Шаги — настоящая последовательность, поэтому с номерами */
.steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 22px; } }
.step { display: flex; gap: 14px; align-items: flex-start; padding-block-start: 14px; border-block-start: 1px solid var(--line); }
.step-n { font-family: var(--font-display); font-size: 2rem; line-height: .9; color: var(--accent); font-weight: 700; min-width: 1.1ch; }

/* Календарь подготовки */
.tl { display: grid; gap: 0; }
.tl-pt { display: grid; grid-template-columns: minmax(84px, 26%) 18px minmax(0, 1fr); gap: 12px; align-items: start; padding-block: 9px; position: relative; }
.tl-when { font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); margin-block-start: 6px; justify-self: center; box-shadow: 0 0 0 4px var(--glass-hi); position: relative; z-index: 1; }
.tl-pt:not(:last-child)::after { content: ""; position: absolute; inset-block: 22px -10px; inset-inline-start: calc(max(84px, 26%) + 12px + 8px); width: 1px; background: var(--line); }

/* Уход, о студии, заметка, акция */
.care-list { display: grid; gap: 10px; }
.care-list li { padding-inline-start: 26px; position: relative; }
.care-list li::before { content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: .5em; width: 12px; height: 6px; border-left: 2px solid var(--olive); border-bottom: 2px solid var(--olive); transform: rotate(-45deg); }
.about-text { font-size: 1.1rem; max-width: 54ch; }
.about-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 16px; }
.about-facts li { font-size: .85rem; padding: 6px 14px; border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-edge); }
.b-note { padding: 20px 24px; border-radius: var(--r-slab); border: 1px dashed var(--ink-soft); }
.b-note .b-title { font-size: 1.3rem; margin-block-end: 8px; }
.b-promo { position: relative; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-slab); overflow: hidden; color: var(--on-accent);
  background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--deep)));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 0 -1px color-mix(in srgb, var(--accent) 60%, #000), 0 34px 50px -28px var(--accent); }
.b-promo .b-title { margin-block: 10px 8px; }
.b-promo .b-text { color: inherit; opacity: .92; }
.b-promo .demo-chip { color: inherit; border-color: currentColor; opacity: .85; }

/* FAQ */
.faq-one { border-block-start: 1px solid var(--line); }
.faq-one summary { cursor: pointer; padding-block: 14px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-one summary::-webkit-details-marker { display: none; }
.faq-one summary::after { content: "+"; font-family: var(--font-display); font-size: 1.3rem; line-height: 1; color: var(--accent); transition: transform .3s var(--ease); }
.faq-one[open] summary::after { transform: rotate(45deg); }
.faq-one p { color: var(--ink-soft); padding-block-end: 16px; max-width: 60ch; }

/* Визит */
.b-visit { display: grid; gap: 24px; }
@media (min-width: 900px) { .b-visit.solo { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; } .b-services.solo .svc-list { display: block; columns: 2; column-gap: 48px; } .b-services.solo .svc { break-inside: avoid; } .b-services.solo .svc-cat { break-after: avoid; break-inside: avoid; } .b-faq.solo, .b-timeline.solo, .b-budget.solo, .b-package.solo, .b-master.solo { width: 100%; max-width: 860px; margin-inline: auto; } }
.b-visit .b-title { font-size: 1.3rem; margin-block: 10px 0; }
.open-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; padding: 3px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-soft); }
.open-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); }
.open-chip.is-open { color: var(--olive); border-color: currentColor; }
.open-chip.is-open::before { background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.hours { display: grid; gap: 4px; margin-block: 14px; }
.hours > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 10px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.hours .is-today { background: var(--glass-hi); font-weight: 500; }
.phone { font-variant-numeric: tabular-nums; user-select: all; unicode-bidi: isolate; direction: ltr; }
.visit-phone { display: grid; gap: 2px; }
.visit-phone .phone { font-family: var(--font-display); font-size: 1.3rem; }
.visit-map { border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--glass-edge), 0 14px 24px -18px rgb(var(--shadow) / .5); direction: ltr; }
.map { display: block; width: 100%; height: auto; }
.map-land { fill: var(--paper-2); } .map-sea { fill: color-mix(in srgb, var(--paper) 45%, #7FA9B8); }
.map-beach { stroke: color-mix(in srgb, var(--paper) 30%, #E6C98F); stroke-width: 7; }
.map-road { stroke: var(--paper); stroke-width: 4; stroke-linecap: round; } .map-road-main { stroke-width: 7; }
.map-ridge { stroke: var(--olive); stroke-width: 1.5; opacity: .6; }
.map-dot { fill: var(--accent); stroke: var(--paper); stroke-width: 2.5; }
.map-pulse { fill: var(--accent); opacity: .25; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: .5; } to { transform: scale(1.9); opacity: 0; } }
.map-label { font: 500 11px var(--font-body); fill: var(--ink-soft); } .map-label-strong { font: 700 14px var(--font-display); fill: var(--ink); }

/* Запись — единственная тёмная плита на странице */
.b-booking { display: grid; gap: 24px; padding: clamp(24px, 4vw, 44px); border-radius: calc(var(--r-slab) + 6px); background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 7px 0 -1px color-mix(in srgb, var(--deep) 70%, #000), 0 44px 60px -34px rgb(var(--shadow) / .8); }
.b-booking::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; inset-inline-end: -18%; inset-block-start: -60%; background: radial-gradient(circle, rgba(231, 123, 176, .5), transparent 65%); pointer-events: none; }
@media (min-width: 860px) { .b-booking { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } }
.b-booking > :not(.plate) { position: relative; }
.b-booking .b-title { font-size: clamp(1.8rem, 3.8vw, 2.6rem); }
.b-booking .b-text, .b-booking .fine { color: var(--on-deep-soft); }
.booking-svc { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; margin-block-start: 16px; padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: .9rem; }
.booking-svc span:first-child { font-weight: 500; }
.booking-act { display: grid; gap: 14px; justify-items: start; }
.booking-phone { display: grid; gap: 2px; margin-block-start: 18px; font-size: 1.15rem; }
.booking-phone .label { color: var(--on-deep-soft); }

/* «Что решил режиссёр» */
.hood { margin-block-start: 36px; font-size: .85rem; color: var(--ink-soft); }
.hood summary { cursor: pointer; padding: 8px 0; }
.hood-meta { margin-block: 6px 10px; }
.hood pre { margin: 0; padding: 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); overflow-x: auto; font: 12px/1.5 ui-monospace, Consolas, monospace; direction: ltr; text-align: left; max-height: 360px; }

/* Док с вопросом */
.dock { position: fixed; z-index: 20; inset-inline: 0; bottom: 0; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.dock-in { pointer-events: auto; max-width: 760px; margin-inline: auto; display: grid; gap: 8px; position: relative; }
/* Подложка дока (30.11, по скриншоту Томера): вся зона дока — одна панель толстого матового шершавого стекла во всю ширину:
   сильное размытие + насыщенность + плотная заливка + зерно, чтобы снизу угадывались только цветные пятна, но не текст.
   Верхний край — линия и мягкая тень, над ним страница плавно «уходит под стекло» (размытие с маской). Высоту дока JS пишет в --dock-h. */
.dock { padding-top: 12px; }
.dock::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .48 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(180deg, color-mix(in srgb, var(--paper) 80%, transparent), color-mix(in srgb, var(--paper) 90%, transparent) 70%);
  background-size: 180px 180px, auto;
  -webkit-backdrop-filter: blur(36px) saturate(1.6); backdrop-filter: blur(36px) saturate(1.6);
  border-block-start: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 -1px 0 var(--line), 0 -22px 40px -24px rgb(var(--shadow) / .5); }
.dock::after { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 76px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper) 55%, transparent) 55%, color-mix(in srgb, var(--paper) 82%, transparent));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%); mask-image: linear-gradient(180deg, transparent, #000 70%); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 24px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--glass-edge); background: linear-gradient(150deg, var(--glass-hi), var(--glass)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 8px 14px; border-radius: 99px; font-size: .86rem; cursor: pointer; min-height: 38px; box-shadow: 0 8px 14px -10px rgb(var(--shadow) / .5); transition: transform .2s var(--ease); white-space: nowrap; }
.chip:hover { transform: translateY(-2px); }
.chip:disabled { opacity: .5; cursor: default; transform: none; }
.ask { display: flex; align-items: center; gap: 8px; padding: 7px; padding-inline-start: 20px; border-radius: 99px;
  background: linear-gradient(150deg, var(--glass-hi), color-mix(in srgb, var(--paper) 80%, transparent)); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 5px 0 -1px var(--glass), 0 30px 46px -22px rgb(var(--shadow) / .65), 0 10px 18px -12px rgb(var(--shadow) / .3); }
.ask input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 1rem; min-height: 44px; }
.ask input::placeholder { color: var(--ink-soft); }
.ask:focus-within { border-color: var(--accent); }
.ask button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--ease), background-color .2s; }
.ask button:hover { background: var(--accent-hover); }
.ask button:active { transform: scale(.94); }
.ask button:disabled { opacity: .55; cursor: default; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.status { position: absolute; inset-inline-start: 0; bottom: calc(100% + 8px); margin: 0; max-width: 100%; text-align: start; animation: pop .3s var(--ease) both;
  box-shadow: 0 10px 18px -12px rgb(var(--shadow) / .5); font-size: .8rem; color: var(--ink-soft); text-align: center; padding: 4px 14px; border-radius: 99px;
  background: color-mix(in srgb, var(--paper) 96%, transparent); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.status:empty { display: none; }
.status.is-busy::after { content: ""; display: inline-block; width: 1.2em; text-align: start; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* Цепочка реплик — одна строка: «заново», счётчик и последняя реплика; по нажатию раскрывается списком над доком. */
.has-thread { --dock-h: 166px; }
.thread { position: relative; display: flex; align-items: center; gap: 4px; min-width: 0; padding: 3px; border-radius: 99px;
  background: color-mix(in srgb, var(--paper) 86%, transparent); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.thread[hidden] { display: none; }
.thread-reset { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 99px; background: var(--ink); color: var(--paper);
  padding: 0 12px; min-height: 28px; font-size: .78rem; cursor: pointer; transition: transform .2s var(--ease); }
.thread-reset:active { transform: scale(.95); }
.thread-ico { font-size: 1rem; line-height: 1; }
.thread-line { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; border: 0; background: none; border-radius: 99px; min-height: 28px; padding: 0 8px; font-size: .8rem; color: var(--ink); cursor: pointer; text-align: start; }
.thread-line:disabled { cursor: default; }
.thread-last { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-caret { flex: none; color: var(--ink-soft); transition: transform .25s var(--ease); }
.thread.is-open .thread-caret { transform: rotate(180deg); }
.thread-list { display: none; position: absolute; inset-inline: 0; bottom: calc(100% + 8px); margin: 0; padding: 8px; list-style: none; border-radius: 20px; gap: 2px; max-height: 46vh; overflow-y: auto;
  background: color-mix(in srgb, var(--paper) 94%, transparent); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 5px 0 -1px var(--glass), 0 30px 46px -22px rgb(var(--shadow) / .65); }
.thread.is-open .thread-list { display: grid; animation: pop .28s var(--ease) both; }
.turn { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: none; border-radius: 12px; padding: 0 10px; min-height: 40px; font-size: .86rem; color: var(--ink-soft); cursor: pointer; text-align: start; }
.turn:hover { color: var(--ink); background: var(--glass-hi); }
.turn-n { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-variant-numeric: lining-nums; border: 1px solid var(--line); }
.thread-line .turn-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.turn-q { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.turn[aria-current] { color: var(--ink); cursor: default; background: none; font-weight: 500; }
.turn[aria-current] .turn-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.thread-reset:focus-visible, .turn:focus-visible, .thread-line:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Уточнение: что изменилось на странице. Новый блок — кольцо акцентом, обновлённый — кольцо мягче. */
.b.is-new, .b.is-changed { position: relative; }
.b.is-new::after, .b.is-changed::after { content: ""; position: absolute; inset: -7px; border-radius: calc(var(--r-slab) + 7px); pointer-events: none;
  border: 2px solid var(--accent); animation: ring 2.4s var(--ease) both; }
.b.is-changed::after { border-color: var(--accent-soft); border-style: dashed; animation-duration: 2s; }
@keyframes ring { 0% { opacity: 0; transform: scale(1.03); } 18% { opacity: .95; transform: none; } 70% { opacity: .7; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Цифры — гротеском: у Bona Nova минускульные цифры, цены в них читаются плохо */
.svc-price, .budget-amount, .plaque-price b, .plaque-price i, .cmp-row strong, .pack-total strong, .phone, .visit-phone .phone, .booking-phone, .hours dd, .tl-when, .step-n {
  font-family: var(--font-body); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.budget-amount, .plaque-price b { font-weight: 500; letter-spacing: -.02em; }
.hero-ask q { font-variant-numeric: lining-nums; }

@media (max-width: 640px) {
  .fan { width: min(78%, 280px); }
  .hero-visual { min-height: 0; padding-block: 8px 20px; }
  .work-back { max-width: 46%; }
  .work-front { max-width: 62%; }
}

.hero-master-plate { max-width: 320px; }
.hero-master-plate em { font-style: normal; font-size: .8rem; color: var(--ink-soft); margin-block-start: 6px; }

.num { font-family: var(--font-body); font-weight: 500; font-style: normal; font-variant-numeric: lining-nums; letter-spacing: -.01em; }

.works-row.n1, .works-row.n2 { grid-auto-columns: minmax(210px, 300px); justify-content: start; }

/* ── Сборка сцены. У каждого блока есть стеклянная заготовка (.plate) — скелет будущего блока.
   Пока мозг думает (.is-building), страница размягчается в заготовки; новые блоки встают заготовками (.is-armed)
   и проявляются (.is-in), когда попадают на экран. Анимируются только transform и opacity. */
.b > .plate { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; overflow: hidden; border-radius: var(--r-slab);
  display: grid; align-content: start; justify-items: start; gap: 12px; padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(150deg, var(--glass-hi), var(--glass)); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 5px 0 -1px var(--glass), 0 6px 0 0 rgb(var(--shadow) / .09), 0 30px 46px -30px rgb(var(--shadow) / .45);
  transition: opacity .4s ease; }
.plate b { display: block; height: 11px; width: 74%; max-width: 420px; border-radius: 99px; background: var(--line); }
.plate b:first-child { height: 22px; width: 52%; max-width: 300px; }
.plate b:last-child { width: 60%; }
.plate::after { content: ""; position: absolute; inset: 0 -30%; transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 38%, var(--glass-edge) 50%, transparent 62%); opacity: .7; }
[dir="rtl"] .plate::after { transform: translateX(110%); }
.stage .b > :not(.plate) { transition: opacity .35s ease; }

.stage.is-building .b { transform: scale(.985); transition: transform .5s var(--ease); }
.stage.is-building .b > :not(.plate) { opacity: .3; }
.stage.is-building .b > .plate { opacity: 1; }
.stage.is-building .plate b { animation: breathe 1.3s ease-in-out infinite; animation-delay: calc(var(--n, 0) * 130ms); }
.stage.is-building .plate::after { animation: sheen 1.5s ease-in-out infinite; animation-delay: calc(var(--n, 0) * 130ms); }
@keyframes breathe { 50% { opacity: .35; } }
@keyframes sheen { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@keyframes sheen-rtl { from { transform: translateX(110%); } to { transform: translateX(-110%); } }
[dir="rtl"] .stage.is-building .plate::after, [dir="rtl"] .b.is-in > .plate::after { animation-name: sheen-rtl; }

 /* Прилёт (30.11, третья редакция): блок поднимается из глубины и мягко садится — перелёт 2 px, без пружинного «дрожания»; 1 с.
    Ждёт почти прозрачным (.002, не 0): так браузер растеризует его заранее, в паузе-«вдохе», а не в первом кадре прилёта.
    3D — через perspective() в самом transform: у высокой сцены общая перспектива искажала блоки вдали от её центра. */
.b.is-armed { opacity: .002; transform: perspective(1000px) translateY(84px) rotateX(-12deg) scale(.94); pointer-events: none; will-change: transform, opacity; }
.b.is-armed > :not(.plate) { opacity: 0; transition: none; }
.b.is-armed > .plate { opacity: 1; transition: none; }
.b.is-in { animation: rise .8s both, appear .44s cubic-bezier(.3, 0, .2, 1) both; animation-delay: var(--d, 0ms); will-change: transform, opacity; }
.b.is-in > :not(.plate) { animation: ink .52s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0ms) + 272ms); }
.b.is-in > .plate { animation: plate-out .44s ease-in-out both; animation-delay: calc(var(--d, 0ms) + 304ms); transition: none; }
.b.is-in > .plate::after { animation: sheen .8s cubic-bezier(.4, 0, .2, 1) both; animation-delay: var(--d, 0ms); }
@keyframes rise {
  0% { transform: perspective(1000px) translateY(84px) rotateX(-12deg) scale(.94); animation-timing-function: cubic-bezier(.2, .75, .25, 1); }
  76% { transform: perspective(1000px) translateY(-2px) rotateX(.5deg) scale(1.003); animation-timing-function: cubic-bezier(.4, 0, .4, 1); }
  100% { transform: perspective(1000px) translateY(0) rotateX(0deg) scale(1); } }
@keyframes appear { from { opacity: .002; } to { opacity: 1; } }
/* В движении блок без размытия стекла: под ним только и так размытый свет фона (глазом разницы нет), а размытие под
   движущимся слоем GPU пересчитывает каждый кадр. Встал на место — стекло возвращается. */
.b:is(.is-armed, .is-in, .is-moving), .b:is(.is-armed, .is-in, .is-moving) * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
@keyframes ink { from { opacity: 0; transform: translateY(8px); } }
@keyframes plate-out { from { opacity: 1; } to { opacity: 0; } }
/* Телефон: стекло блоков легче; у заготовки своего размытия нет (оно было вторым backdrop-filter на каждом летящем блоке);
   док — 24 px вместо 36: заливка и так плотная (80–90 %), а размытие под ним пересчитывается каждый кадр, пока под ним что-то движется. */
@media (max-width: 640px) { .slab { -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
  .dock::before { -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); } }
/* Внутри дока своё размытие у подсказок, поля, цепочки и реплики ничего не добавляет (под ними уже матовое стекло дока),
   а стоило отдельного прохода размытия на каждую кнопку в каждом кадре, пока под доком движется страница (30.11, замер). */
.dock-in .chip, .dock-in .ask, .dock-in .thread, .dock-in .thread-list, .dock-in .status { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ── Вход: приветствие и большие кнопки-направления */
.b-welcome { min-height: 0; }
.welcome-tail { grid-column: 1 / -1; display: grid; gap: 16px; }
.dirs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; perspective: 1200px; }
.dir { display: grid; gap: 3px; align-content: end; justify-items: start; text-align: start; min-height: 126px; padding: 14px; border-radius: 22px; cursor: pointer; color: inherit;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.dir:active { transform: scale(.97); }
@media (hover: hover) { .dir:hover { transform: translateY(-7px) rotateX(5deg); box-shadow: inset 0 1px 0 var(--glass-edge), 0 5px 0 -1px var(--glass), 0 6px 0 0 rgb(var(--shadow) / .09), 0 44px 60px -30px rgb(var(--shadow) / .6); } }
.dir-lens { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin-block-end: 8px;
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 14px 20px -10px rgb(var(--shadow) / .55), 0 0 0 4px var(--glass); }
.dir-lens canvas { display: block; width: 100%; height: 100%; }
.dir-lens-sign { background: radial-gradient(circle at 30% 25%, var(--accent-soft), var(--accent) 70%); color: var(--on-accent); font-size: 1.5rem; font-weight: 500; line-height: 1; }
.dir-label { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.12rem, 2vw, 1.4rem); line-height: 1.15; text-wrap: balance; }
.dir-sub { font-size: .8rem; line-height: 1.35; color: var(--ink-soft); }
.welcome-hint { color: var(--ink-soft); font-size: .92rem; max-width: 60ch; }
@media (min-width: 900px) { .dirs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } .dir { min-height: 176px; padding: 20px; } .dir-lens { width: 58px; height: 58px; } }
@media (max-width: 899px) { .b-welcome .hero-visual { display: none; } .b-welcome .hero-title { font-size: clamp(2rem, 8.6vw, 2.9rem); } .b-welcome .hero-lead { margin-block-start: 12px; } }

/* ── Запись на странице: форма живёт на тёмной плите (блок записи и лист) */
.bk { min-width: 0; }
.bk-form { display: grid; gap: 16px; }
.bk-field { display: grid; gap: 7px; min-width: 0; }
.bk-label { font-size: .78rem; color: var(--on-deep-soft); letter-spacing: .02em; }
.bk-select, .bk-input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: var(--on-deep); font: inherit; font-size: 1rem; color-scheme: dark; }
.bk-input::placeholder { color: var(--on-deep-soft); opacity: .75; }
.bk-select:focus-visible, .bk-input:focus-visible, .bk-opt:focus-visible { outline: 2px solid var(--pop); outline-offset: 2px; }
.bk-input.is-bad { border-color: var(--warn); }
.bk-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-days { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 3px 4px; }
.bk-days::-webkit-scrollbar { display: none; }
.bk-opt { flex: none; min-height: 44px; padding: 8px 14px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: var(--on-deep); font: inherit; font-size: .9rem; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, border-color .18s; }
.bk-opt:active { transform: scale(.95); }
.bk-opt[aria-pressed="true"] { background: var(--pop); color: var(--on-pop); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 3px 0 -1px var(--pop-edge), 0 12px 20px -12px var(--pop); }
.bk-day { display: grid; gap: 1px; justify-items: center; min-width: 66px; padding: 7px 10px; }
.bk-day strong { font-weight: 500; font-size: .84rem; white-space: nowrap; }
.bk-day span { font-size: .78rem; opacity: .8; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; border-radius: 16px; }
.bk-slots.is-bad { outline: 1px dashed var(--warn); outline-offset: 6px; }
.bk-slot { padding: 8px 2px; min-height: 42px; text-align: center; }
.bk-slot.is-busy { opacity: .36; text-decoration: line-through; cursor: default; }
.bk-legend, .bk-none { font-size: .76rem; color: var(--on-deep-soft); margin-block-start: 8px; }
.bk-none { font-size: .9rem; margin: 0; grid-column: 1 / -1; }
.bk-two { display: grid; gap: 12px; }
@media (min-width: 520px) { .bk-two { grid-template-columns: 1fr 1fr; } }
.bk-err { color: var(--warn); font-size: .9rem; }
.bk-err:empty { display: none; }
.bk-submit { width: 100%; justify-content: center; text-align: center; }
.bk-submit.is-waiting { opacity: .72; }
.btn-accent { background: var(--pop); color: var(--on-pop); }
.bk .fine, .sheet .fine { color: var(--on-deep-soft); margin: 0; }
.bk-done { display: grid; gap: 14px; justify-items: start; outline: none; animation: pop .5s var(--ease) both; }
.bk-check circle { fill: none; stroke: var(--pop); stroke-width: 3; stroke-dasharray: 183; stroke-dashoffset: 183; animation: draw .6s ease-out .1s forwards; }
.bk-check path { fill: none; stroke: var(--pop); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s ease-out .55s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bk-done-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.3rem); line-height: 1.1; }
.bk-done-text { color: var(--on-deep-soft); max-width: 46ch; }
.bk-sum { display: grid; gap: 8px; width: 100%; margin: 0; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15); }
.bk-sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.bk-sum-row dt { flex: none; font-size: .78rem; color: var(--on-deep-soft); }
.bk-sum-row dd { min-width: 0; text-align: end; font-weight: 500; }
.bk-done-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Плавающая кнопка записи и лист */
.dock-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dock-row .chips { flex: 1; min-width: 0; }
.fab { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 99px; cursor: pointer; font-weight: 500; font-size: .9rem; white-space: nowrap;
  background: var(--pop); color: var(--on-pop);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 3px 0 -1px var(--pop-edge), 0 14px 22px -12px rgb(var(--shadow) / .6);
  transition: transform .3s var(--ease), opacity .25s ease; }
.fab:active { transform: scale(.95); }
.fab.is-away { display: none; }
@media (min-width: 1100px) { /* на большом экране кнопка уходит из дока в угол */
  .fab { position: fixed; z-index: 19; right: 28px; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); min-height: 50px; padding: 0 22px; font-size: 1rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 4px 0 -1px var(--pop-edge), 0 22px 34px -14px rgb(var(--shadow) / .65); }
  [dir="rtl"] .fab { right: auto; left: 28px; }
  .fab.is-away, .sheet-open .fab { display: inline-flex; opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; }
}
.sheet { position: fixed; inset: 0; z-index: 40; display: grid; align-items: end; justify-items: center; perspective: 1400px; }
.sheet-back { position: absolute; inset: 0; background: rgb(var(--shadow) / .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet-panel { position: relative; width: min(560px, 100%); max-height: 92%; overflow-y: auto; overscroll-behavior: contain; background: var(--deep); color: var(--on-deep);
  border-radius: 28px 28px 0 0; padding-block: 16px calc(22px + env(safe-area-inset-bottom, 0px));
  padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 -30px 60px -30px rgb(var(--shadow) / .8); }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-panel { border-radius: 28px; padding: 26px; max-height: 90%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 7px 0 -1px color-mix(in srgb, var(--deep) 70%, #000), 0 50px 80px -34px rgb(var(--shadow) / .85); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 14px; }
.sheet-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.sheet-close { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: inherit; }
.sheet-open { overflow: hidden; }
@media (min-width: 900px) { .b-welcome { gap: 28px 48px; padding-block: 0; } .b-welcome .hero-visual { min-height: 230px; } .b-welcome .fan { width: min(100%, 270px); } .b-welcome .hero-title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); } }

/* UX-проход 30.11: карточка услуги, ответ из базы в первом экране, честный ответ с мостом в WhatsApp, пожелание дня и времени в записи */
.mono-s { --s: 40px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 14px -10px var(--tone); }
.det-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.det-meta { display: inline-flex; align-items: baseline; gap: 12px; }
.det-meta .svc-price { font-size: 1.15rem; }
.det-who { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-block: 14px 4px; }
.det-who li { display: flex; align-items: center; gap: 10px; }
.det-who-name { display: grid; line-height: 1.25; }
.det-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px 24px; margin-block-start: 14px; }
.det-sec h3 { margin-block-end: 6px; font-weight: 600; letter-spacing: .02em; }
.det-sec ul { display: grid; gap: 6px; }
.det-sec li { position: relative; padding-inline-start: 18px; font-size: .95rem; }
.det-sec li::before { content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }
.det-not li::before { background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.det-act { margin-block-start: 14px; }
.hero-answer { margin-block-start: 16px; padding: 16px 20px; max-width: 52ch; }
.hero-answer p { font-size: clamp(1.02rem, 1.5vw, 1.15rem); margin-block-start: 6px; }
.b-note.k-unknown, .b-note.k-medical, .b-note.k-site { border-style: solid; border-color: var(--line); background: var(--glass); }
.note-act { margin-block-start: 14px; }
.bk-wish { padding: 10px 14px; border-radius: 12px; background: var(--glass-hi); border: 1px solid var(--glass-edge); font-size: .92rem; }
.foot-wa { display: inline-flex; gap: 6px; align-items: center; }
.b-booking .bk-wish, .sheet-panel .bk-wish { background: rgba(244, 238, 241, .12); border-color: rgba(244, 238, 241, .28); color: var(--on-deep); }

/* живая запись (30.11.2026): окна грузятся из календаря салона, кнопка ждёт ответа CRM */
.bk-none.is-loading { animation: bk-wait 1.4s ease-in-out infinite; }
.bk-submit.is-sending { opacity: .72; cursor: progress; }
@keyframes bk-wait { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .bk-none.is-loading { animation: none; } }

/* ── Персонализация (30.11): два входа, «сейчас открыто», возвращение, разговор с салоном, план визита, настроение под повод */
.welcome-now { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 12px; font-size: .9rem; color: var(--ink-soft); }
.welcome-now::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); opacity: .5; }
.welcome-now.is-open::before { background: var(--olive); opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--olive) 22%, transparent); }
.entries { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .entries { grid-template-columns: 1.15fr .85fr; } }
.entry { display: flex; align-items: center; gap: 14px; text-align: start; padding: 16px 18px; border-radius: 22px; cursor: pointer; color: inherit; font: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.entry:active { transform: scale(.98); }
@media (hover: hover) { .entry:hover { transform: translateY(-4px); } }
.entry-txt { display: grid; gap: 2px; min-width: 0; }
.entry-txt strong { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; line-height: 1.15; }
.entry-txt span { font-size: .84rem; color: var(--ink-soft); line-height: 1.35; }
.entry-ico { flex: none; width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; color: var(--accent);
  background: var(--glass-hi); box-shadow: inset 0 0 0 1px var(--glass-edge), 0 10px 18px -12px rgb(var(--shadow) / .55); }
.entry-chat { background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 62%, var(--deep))); color: var(--on-accent); border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 0 -1px color-mix(in srgb, var(--accent) 60%, #000), 0 30px 44px -26px var(--accent); }
.entry-chat .entry-txt span { color: color-mix(in srgb, var(--on-accent) 82%, transparent); }
.entry-chat .entry-ico { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); color: var(--on-accent); }
.entry-ico.entry-talk { display: flex; gap: 4px; align-items: center; justify-content: center; }
.entry-talk i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: talk 1.2s ease-in-out infinite; }
.entry-talk i:nth-child(2) { animation-delay: .15s; }
.entry-talk i:nth-child(3) { animation-delay: .3s; }
@keyframes talk { 0%, 60%, 100% { transform: none; opacity: .55; } 30% { transform: translateY(-4px); opacity: 1; } }
.welcome-or { font-size: .84rem; color: var(--ink-soft); margin-block-end: -6px; }
.welcome-back { display: grid; gap: 8px; justify-items: start; padding: 16px 18px; }
.welcome-back p { font-size: .98rem; }
.welcome-back-win { color: var(--accent); font-weight: 500; }
.welcome-back-win:empty { display: none; }

/* разговор с салоном */
.b-chat { max-width: 720px; margin-inline: auto; width: 100%; display: grid; gap: 14px; }
.chat-head { display: flex; align-items: center; gap: 12px; }
.chat-ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--on-accent);
  background: radial-gradient(circle at 32% 28%, var(--accent-soft), var(--accent) 72%); box-shadow: 0 10px 18px -10px var(--accent); }
.chat-who { display: grid; line-height: 1.2; }
.chat-who strong { font-family: var(--font-display); font-size: 1.15rem; }
.chat-sub { font-size: .8rem; color: var(--olive); }
.chat-sub::before { content: "● "; font-size: .7em; vertical-align: .15em; }
.chat-log { display: grid; gap: 8px; min-height: 60px; }
.msg { max-width: min(86%, 520px); padding: 10px 14px; border-radius: 18px; line-height: 1.45; animation: msg-in .38s cubic-bezier(.2, .8, .2, 1) both; }
.msg-salon { justify-self: start; background: var(--glass-hi); border: 1px solid var(--glass-edge); border-end-start-radius: 6px; }
.msg-me { justify-self: end; background: var(--accent); color: var(--on-accent); border-end-end-radius: 6px; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.msg.is-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.is-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); animation: talk 1s ease-in-out infinite; }
.msg.is-typing i:nth-child(2) { animation-delay: .12s; }
.msg.is-typing i:nth-child(3) { animation-delay: .24s; }
.chat-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-opts:empty { display: none; }
.chat-opt { border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--glass-edge)); background: var(--glass-hi); color: var(--ink); font: inherit; font-size: .92rem; min-height: 42px; padding: 8px 15px; border-radius: 99px; cursor: pointer;
  animation: msg-in .36s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); transition: transform .2s var(--ease), background-color .2s; }
.chat-opt:hover { background: color-mix(in srgb, var(--accent) 12%, var(--glass-hi)); }
.chat-opt:active { transform: scale(.96); }
.chat-foot { display: flex; justify-content: flex-end; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.chat-ck { display: grid; gap: 6px; padding-inline-start: 4px; }
.chat-ck li { display: flex; gap: 10px; align-items: baseline; font-size: .95rem; animation: msg-in .4s cubic-bezier(.2, .8, .2, 1) both; }
.chat-ck li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: var(--on-accent); background: var(--accent);
  animation: tick .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes tick { from { transform: scale(0); } }

/* план визита */
.b-plan { display: grid; gap: 14px; }
.plan-head .b-title { margin-block: 4px 6px; font-size: clamp(1.5rem, 3vw, 2rem); }
.plan-who { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .92rem; }
.plan-list { display: grid; gap: 2px; }
.plan-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-block-end: 1px dashed var(--line); }
.plan-row.is-off { display: none; }
.plan-svc { font-weight: 500; }
.plan-meta { color: var(--ink-soft); font-size: .9rem; white-space: nowrap; }
.plan-adds { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.plan-adds .label { flex-basis: 100%; }
.plan-add { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 8px; border-radius: 99px; border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); background: transparent; color: inherit; font: inherit; font-size: .88rem; cursor: pointer; transition: background-color .2s, border-color .2s; }
.plan-plus { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-hi); color: var(--accent); font-weight: 600; transition: transform .3s var(--ease), background-color .2s; }
.plan-add[aria-pressed="true"] { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.plan-add[aria-pressed="true"] .plan-plus { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
.plan-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 14px 16px; border-radius: 18px; background: var(--glass-hi); border: 1px solid var(--glass-edge); }
.plan-sum .label { flex-basis: 100%; }
.plan-total { font-family: var(--font-body); font-weight: 500; font-size: 1.5rem; color: var(--accent); }
.plan-total.is-bump { animation: bump .45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes bump { 40% { transform: scale(1.08); } }
.plan-over { font-style: normal; font-size: .8rem; color: var(--ink-soft); padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); }
.plan-bring ul { display: grid; gap: 4px; margin-block-start: 4px; }
.plan-bring li { position: relative; padding-inline-start: 18px; font-size: .94rem; }
.plan-bring li::before { content: ""; position: absolute; inset-inline-start: 2px; inset-block-start: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }
.plan-win { display: grid; gap: 8px; justify-items: start; padding-block-start: 4px; }
.plan-win-when { font-size: 1.05rem; font-weight: 500; }
.plan-win-when.is-loading { color: var(--ink-soft); font-weight: 400; animation: bk-wait 1.4s ease-in-out infinite; }
.plan-win-act:empty { display: none; }
.b-plan .fine { margin: 0; }

/* настроение страницы под повод: акцент и свет фона меняются в момент подмены сцены (экран пуст); семья цветов — та же */
.atmo i { transition: background-color .9s ease; }
:root[data-mood="wedding"] { --accent: #93622A; --accent-hover: #7A5020; --accent-soft: #E3C48F; --blob-a: rgba(227, 196, 143, .6); --blob-b: rgba(244, 230, 205, .7); --blob-c: rgba(231, 123, 176, .3); }
:root[data-mood="party"] { --accent: #7B1E78; --accent-hover: #631760; --accent-soft: #CE86DD; --blob-a: rgba(170, 70, 180, .45); --blob-b: rgba(231, 123, 176, .5); --blob-c: rgba(110, 80, 190, .3); }
:root[data-mood="quick"] { --accent: #4D6A2B; --accent-hover: #3D5521; --accent-soft: #A9BE7B; --blob-a: rgba(190, 205, 150, .62); --blob-b: rgba(246, 214, 170, .6); --blob-c: rgba(150, 195, 140, .45); }
:root[data-mood="self"] { --accent: #AC3F67; --accent-hover: #8F3355; --accent-soft: #F0A3BF; --blob-a: rgba(246, 185, 200, .62); --blob-b: rgba(246, 214, 170, .7); --blob-c: rgba(231, 123, 176, .38); }
:root[data-mood="men"] { --accent: #2D5B61; --accent-hover: #224A4F; --accent-soft: #8FB8BC; --blob-a: rgba(143, 184, 188, .55); --blob-b: rgba(205, 205, 195, .6); --blob-c: rgba(120, 150, 175, .4); }
:root[data-mood="play"] { --accent: #B8165A; --accent-hover: #96114A; --accent-soft: #FF8AC0; --blob-a: rgba(255, 138, 192, .55); --blob-b: rgba(255, 214, 120, .55); --blob-c: rgba(140, 200, 255, .4); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"])[data-mood="wedding"] { --accent: #E3C48F; --accent-hover: #EFD5A8; --accent-soft: #93622A; --blob-a: rgba(147, 98, 42, .45); --blob-b: rgba(110, 80, 40, .4); --blob-c: rgba(163, 21, 95, .3); }
  :root:not([data-theme="light"])[data-mood="party"] { --accent: #D9A0E8; --accent-hover: #E6B9F0; --accent-soft: #7B1E78; --blob-a: rgba(123, 30, 120, .55); --blob-b: rgba(163, 21, 95, .45); --blob-c: rgba(70, 50, 150, .4); }
  :root:not([data-theme="light"])[data-mood="quick"] { --accent: #B5C991; --accent-hover: #C7D8A8; --accent-soft: #4D6A2B; --blob-a: rgba(77, 106, 43, .5); --blob-b: rgba(120, 90, 40, .35); --blob-c: rgba(60, 100, 60, .4); }
  :root:not([data-theme="light"])[data-mood="self"] { --accent: #F0A3BF; --accent-hover: #F6BCD1; --accent-soft: #AC3F67; --blob-a: rgba(172, 63, 103, .5); --blob-b: rgba(120, 70, 40, .4); --blob-c: rgba(163, 21, 95, .35); }
  :root:not([data-theme="light"])[data-mood="men"] { --accent: #8FB8BC; --accent-hover: #A9CACD; --accent-soft: #2D5B61; --blob-a: rgba(45, 91, 97, .55); --blob-b: rgba(70, 70, 80, .4); --blob-c: rgba(40, 70, 100, .4); }
  :root:not([data-theme="light"])[data-mood="play"] { --accent: #FF8AC0; --accent-hover: #FFA6CF; --accent-soft: #B8165A; --blob-a: rgba(184, 22, 90, .5); --blob-b: rgba(140, 100, 20, .4); --blob-c: rgba(40, 90, 150, .4); }
}
@media (prefers-reduced-motion: reduce) { .atmo i { transition: none; } .msg, .chat-opt, .chat-ck li, .chat-ck li::before, .entry-talk i, .msg.is-typing i { animation: none; } }

/* ── Пролог (30.11, «плавное погружение»): первый экран — пустой холст. Страницы ещё нет: тонкие контуры будущих блоков дышат,
   салон говорит в «пузыре». Вход и дыхание — только transform и opacity (compositor). Разметка — blocks.js::prologue, ход — app.js::fly. */
.b-prologue { display: grid; align-content: center; min-height: min(calc(100svh - var(--dock-h) - 96px), 760px); padding-block: 4px 18px; isolation: isolate; }
.pro-ghosts { position: absolute; inset: 0; z-index: -1; display: grid; gap: 14px; pointer-events: none;
  grid-template-columns: 1fr 1fr; grid-template-rows: 1.5fr 1fr 1.1fr 1fr .8fr;
  grid-template-areas: "hero hero" "a b" "wide wide" "c d" "book book";
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, rgba(0, 0, 0, .35) 80%, transparent); mask-image: linear-gradient(to bottom, #000 30%, rgba(0, 0, 0, .35) 80%, transparent); }
@media (min-width: 900px) { .pro-ghosts { gap: 26px; grid-template-columns: 7fr 5fr; grid-template-rows: 1.6fr 1fr 1fr .7fr; grid-template-areas: "hero hero" "a b" "wide c" "book book"; }
  .pro-ghosts .g-d { display: none; } }
.ghost { position: relative; display: grid; align-content: start; gap: 10px; padding: 18px; border-radius: var(--r-slab);
  border: 1.5px dashed color-mix(in srgb, var(--ink) 22%, transparent);
  background: linear-gradient(150deg, color-mix(in srgb, var(--glass-hi) 55%, transparent), transparent 70%);
  animation: ghost-breathe 5.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); will-change: transform, opacity; }
.ghost b { display: block; height: 8px; width: 46%; border-radius: 99px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.ghost b:first-child { height: 13px; width: 32%; }
.g-hero { grid-area: hero; } .g-a { grid-area: a; } .g-b { grid-area: b; } .g-wide { grid-area: wide; } .g-c { grid-area: c; } .g-d { grid-area: d; } .g-book { grid-area: book; }
@keyframes ghost-breathe { 0%, 100% { opacity: .5; transform: translateY(0); } 50% { opacity: .95; transform: translateY(-5px); } }
.pro-copy { position: relative; display: grid; gap: 14px; justify-items: start; max-width: 660px; }
.pro-kicker { font-size: .78rem; letter-spacing: .06em; color: var(--ink-soft); }
.pro-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.15rem, 8.8vw, 4.3rem); line-height: 1.02; text-wrap: balance; letter-spacing: -.01em; }
.pro-title .word { display: inline-block; }
.pro-sub { font-size: clamp(1rem, 2.3vw, 1.2rem); color: var(--ink-soft); max-width: 44ch; margin-block-start: -4px; }
.pro-salon { display: flex; gap: 10px; align-items: flex-end; margin-block: 6px 2px; max-width: 100%; }
.pro-salon .chat-ava { flex: none; width: 38px; height: 38px; font-size: 1.1rem; }
.pro-bubble { display: grid; gap: 3px; min-width: 0; padding: 11px 16px 13px; border-radius: 20px 20px 20px 6px; background: var(--glass-hi); border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 16px 30px -20px rgb(var(--shadow) / .55); }
[dir="rtl"] .pro-bubble { border-radius: 20px 20px 6px 20px; }
.pro-who { font-size: .72rem; font-weight: 500; color: var(--accent); }
.pro-said { display: grid; gap: 4px; }
.pro-hi { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.25; }
.pro-hi-text { font-size: .92rem; color: var(--ink-soft); }
.pro-said .welcome-now { margin: 0; font-size: .84rem; }
.pro-ask { font-size: 1.02rem; }
.b-prologue .entries { width: 100%; }
.b-prologue .welcome-back { width: 100%; }
.pro-dirs { display: flex; flex-wrap: wrap; gap: 8px; }
.pro-dir { min-height: 44px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--glass-edge); background: var(--glass-hi); cursor: pointer; font-size: .95rem; color: inherit;
  box-shadow: 0 10px 20px -16px rgb(var(--shadow) / .6); transition: transform .25s var(--ease), background-color .25s, color .25s; }
.pro-dir:active { transform: scale(.97); }
@media (hover: hover) { .pro-dir:hover { transform: translateY(-2px); background: var(--accent); color: var(--on-accent); } }
/* Вход: полный — первый заход (≈1,6 с), короткий — возвращение (0,3 с). Касание — пропуск (app.js::skipIntro). */
.b-prologue.is-intro .ghost { animation: ghost-breathe 5.2s ease-in-out infinite, ghost-in .9s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i) * -.7s), calc(var(--i) * 80ms); }
@keyframes ghost-in { from { opacity: 0; transform: translateY(22px) scale(.95); } }
.b-prologue.is-intro .pro-kicker { animation: appear .5s ease-out 60ms backwards; }
.b-prologue.is-intro .pro-title .word { animation: word .72s cubic-bezier(.22, 1, .36, 1) backwards; animation-delay: calc(160ms + var(--i) * 80ms); }
.b-prologue.is-intro .pro-sub { animation: ink .6s cubic-bezier(.2, .7, .2, 1) 560ms backwards; }
.b-prologue.is-intro .pro-salon { animation: msg-in .5s cubic-bezier(.2, .8, .2, 1) 820ms backwards; }
.b-prologue.is-intro .pro-ask { animation: appear .4s ease-out 1060ms backwards; }
.b-prologue.is-intro .welcome-back, .b-prologue.is-intro .entries { animation: pop .5s cubic-bezier(.2, .8, .2, 1) 1060ms backwards; }
.b-prologue.is-intro .welcome-or { animation: appear .4s ease-out 1180ms backwards; }
.b-prologue.is-intro .pro-dir { animation: pop .45s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(1220ms + var(--i) * 60ms); }
.b-prologue.is-short .pro-copy, .b-prologue.is-short .pro-ghosts { animation: appear .32s ease-out backwards; }
/* Контуры пролога после первого ответа: отдельный неподвижный слой под сценой, каждый переезжает на место своего блока (app.js::settleGhosts) */
/* пролог не «размягчается» в заготовку: его контуры и так заготовки, а текст уходит сам (fly) */
.b-prologue > .plate { display: none; }
.stage.is-building .b-prologue { transform: none; }
.stage.is-building .b-prologue > * { opacity: 1; }
.ghost-veil { position: fixed; inset: 0; pointer-events: none; }
.ghost-veil .ghost { position: absolute; animation: none; transform-origin: 0 0; opacity: .75; will-change: transform, opacity; }
/* Фраза посетителя улетает к «нити» над страницей */
.phrase { position: fixed; z-index: 30; pointer-events: none; max-width: min(86vw, 520px); padding: 8px 16px; border-radius: 99px;
  background: var(--glass-hi); border: 1px solid var(--glass-edge); box-shadow: 0 18px 40px -18px rgb(var(--shadow) / .6); will-change: transform, opacity; }
.phrase q { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--accent); font-family: var(--font-display); font-style: italic; font-size: 1.05rem; quotes: "\00AB" "\00BB"; }
[dir="rtl"] .phrase q { font-style: normal; quotes: "\05F4" "\05F4"; }
/* «Нить» в первом экране собранной страницы: видно, что это ответ ему, а не стандартный экран */
.hero-yours { align-items: center; }
.yours-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 4px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: .74rem; font-weight: 500; }
.yours-badge::before { content: "\2726"; font-size: .66rem; }
.hero-yours q { transition: opacity .3s ease; }
.hero-yours.is-catch q { opacity: 0; }
/* Метка-причина блока: свернута в звёздочку, раскрывается касанием или наведением; на первой собранной странице раскрыта ~4,6 с */
.why { position: absolute; z-index: 5; top: -13px; inset-inline-end: 14px; display: inline-flex; align-items: center; max-width: calc(100% - 28px); padding: 3px; border-radius: 99px;
  border: 1px solid var(--glass-edge); background: var(--glass-hi); color: var(--accent); font: inherit; font-size: .76rem; line-height: 1.2; cursor: pointer;
  box-shadow: 0 8px 18px -10px rgb(var(--shadow) / .55); }
.why-dot { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); font-size: .66rem; }
.why-txt { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: max-width .5s var(--ease), opacity .3s ease, padding .5s var(--ease); }
.why.is-open .why-txt { max-width: 30em; opacity: 1; padding-inline: 6px 8px; }
@media (hover: hover) { .why:hover .why-txt { max-width: 30em; opacity: 1; padding-inline: 6px 8px; } }
/* Сторож обещаний заменил текст модели — в первом экране живое ближайшее окно из календаря */
.hero-win { display: grid; gap: 2px; justify-items: start; margin-block-start: 14px; padding: 12px 16px; border-radius: 18px; }
.hero-win-when { color: var(--accent); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .ghost, .b-prologue *, .why-txt { animation: none !important; transition: none !important; } }
