/* Страница продукта «Зал свободен». Палитра Тати: Chambray 79A3C3, Espresso 3A2119, Glacier D2E2EC, Bisque EBCDB7, Clay 957662.
   Фоны только белый и голубой Glacier. Текст Espresso (на белом 14,9:1, на Glacier 11,2:1), второстепенный углублённый Clay 5F4A3D.
   Chambray, Bisque и Clay только акцентами: плашки, рамки, иллюстрации. Заголовки Cormorant Garamond курсивом, лицензия OFL в fonts/OFL.txt.
   Движение: живой план площадки, шаги при прокрутке, кнопки за курсором, бегущая строка. При уменьшении движения всё статично */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500 600; font-display: swap;
  src: url('/site/fonts/cormorant-garamond-italic-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500 600; font-display: swap;
  src: url('/site/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --glacier: #D2E2EC; --glacier-soft: #E8F0F5; --bisque: #EBCDB7; --bisque-soft: #F4E4D8; --espresso: #3A2119; --chambray: #79A3C3;
  --clay: #957662; --clay-deep: #5F4A3D; --white: #FFFFFF;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--espresso); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--espresso); }
h1, h2, h3, .logo { margin: 0; line-height: 1.04; font-family: var(--serif); font-style: italic; font-weight: 600; }
.in { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.cap, .kicker { margin: 0 0 14px; font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--clay-deep); }
section h2 { font-size: clamp(38px, 4.4vw, 64px); margin-bottom: 28px; }
.text { font-size: 19px; margin: 0 0 20px; }
.text-small { font-size: 16px; color: var(--clay-deep); margin: 0 0 10px; }
.muted { color: var(--clay-deep); }

/* Шапка */
.hd { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--glacier); }
.hd-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { font-size: 28px; text-decoration: none; color: var(--espresso); }
/* Знак B1: стол и шесть кресел. Размер задаётся здесь: встроенные стили запрещены политикой безопасности */
.brandmark { display: inline-flex; align-items: center; gap: 12px; flex: none; white-space: nowrap; }
zal-mark { display: inline-flex; flex: none; }
.mark-hd { width: 40px; height: 40px; }
.mark-chat { width: 30px; height: 30px; }
.mark-ft { width: 36px; height: 36px; display: block; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { flex: none; white-space: nowrap; text-decoration: none; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .3s; }
.nav a:hover { border-bottom-color: var(--chambray); }

/* Кнопки. Класс magnetic: кнопка тянется за курсором и увеличивается, это делает site.js */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 14px 32px; border-radius: 999px; background: var(--espresso); color: var(--white);
  text-decoration: none; font-weight: 600; font-size: 17px; transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .2s; will-change: transform; }
.btn:hover { background: #4B2D22; }
.btn-small { min-height: 42px; padding: 8px 20px; font-size: 15px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--chambray); outline-offset: 3px; }
.link-more { font-weight: 600; text-underline-offset: 5px; }

/* Первый экран */
.hero { background: var(--glacier-soft); padding: 64px 0 88px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
h1 { font-size: clamp(64px, 9vw, 132px); margin-bottom: 24px; }
.accent-word { color: var(--clay-deep); }
.lead { font-size: clamp(20px, 1.8vw, 23px); margin: 0 0 28px; }
.hero-act { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.placeholder { border: 2px dashed var(--clay); border-radius: 14px; padding: 14px 16px; background: var(--white); }
.placeholder span { display: block; font-size: 14px; font-weight: 600; color: var(--clay-deep); margin-bottom: 4px; }
.placeholder p { margin: 0; }

/* План площадки: комнаты меняют состояние, site.js переключает классы is-busy и is-mine */
.plan { margin: 0; position: relative; }
.plan svg { width: 100%; height: auto; display: block; }
.plan .hall { fill: var(--white); stroke: var(--glacier); stroke-width: 2; }
.plan .lounge rect { fill: var(--glacier-soft); stroke: var(--glacier); stroke-width: 2; }
.plan text { font: 600 15px var(--sans); fill: var(--espresso); }
.plan .slot { font-weight: 400; font-size: 14px; fill: var(--clay-deep); }
.plan .room rect, .plan .table circle { fill: var(--glacier); stroke: var(--chambray); stroke-width: 2; transition: fill .6s, stroke .6s; }
.plan .is-busy rect, .plan .is-busy circle { fill: var(--bisque); stroke: var(--clay); }
.plan .is-mine rect, .plan .is-mine circle { fill: var(--espresso); stroke: var(--espresso); }
.plan .is-mine text { fill: var(--white); }
.plan .is-pulse rect, .plan .is-pulse circle { animation: pulse 1.2s ease-out; }
@keyframes pulse { 0% { stroke-width: 2; } 40% { stroke-width: 8; } 100% { stroke-width: 2; } }
.plan-toast { position: absolute; left: 50%; bottom: 52px; transform: translate(-50%, 10px); background: var(--espresso); color: var(--white); padding: 10px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity .4s, transform .4s; }
.plan-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.plan-legend { display: flex; gap: 20px; justify-content: center; margin-top: 14px; font-size: 15px; color: var(--clay-deep); flex-wrap: wrap; }
.plan-legend span { display: flex; align-items: center; gap: 8px; }
.sw { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.sw-free { background: var(--glacier); border: 2px solid var(--chambray); }
.sw-busy { background: var(--bisque); border: 2px solid var(--clay); }
.sw-mine { background: var(--espresso); }

/* Как работает: экран справа прилипает, шаги подсвечиваются по мере прокрутки */
.how { background: var(--white); padding: 96px 0; }
.how-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step { position: relative; padding: 26px 0 26px 72px; border-top: 1px solid var(--glacier); min-height: 300px; opacity: .75; transition: opacity .4s; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 22px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font: italic 600 26px var(--serif); background: var(--glacier-soft); border: 2px solid var(--chambray); transition: background-color .4s, color .4s; }
.step b { display: block; font: italic 600 30px/1.1 var(--serif); margin-bottom: 8px; }
.step span { font-size: 18px; }
.step.is-on { opacity: 1; }
.step.is-on::before { background: var(--espresso); color: var(--white); border-color: var(--espresso); }
.how-screen { position: sticky; top: 120px; height: 440px; }
.screen { position: absolute; inset: 0; background: var(--white); border: 2px solid var(--glacier); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px;
  opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .5s, transform .5s; pointer-events: none; }
.screen.is-on { opacity: 1; transform: none; }
.sc-title { margin: 0 0 4px; font: italic 600 30px var(--serif); }
.sc-field { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--glacier-soft); border-radius: 12px; }
.sc-field span { color: var(--clay-deep); }
.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-chips i { font-style: normal; padding: 8px 14px; border-radius: 999px; background: var(--bisque-soft); border: 1px solid var(--clay); font-size: 15px; }
.sc-btn { align-self: flex-start; padding: 12px 24px; border-radius: 999px; background: var(--espresso); color: var(--white); font-weight: 600; margin-top: auto; }
.sc-btn.ghost { background: var(--white); color: var(--espresso); border: 2px solid var(--espresso); }
.sc-row { display: flex; gap: 10px; margin-top: auto; }
.sc-row .sc-btn { margin-top: 0; }
.sc-check { display: flex; gap: 10px; align-items: center; }
.sc-check i { width: 22px; height: 22px; border-radius: 6px; background: var(--espresso); position: relative; flex: none; }
.sc-check i::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--white); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.sc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-grid i { font-style: normal; height: 64px; border-radius: 12px; padding: 8px 10px; font-size: 14px; font-weight: 600; border: 1px solid var(--glacier); }
.sc-grid .busy { background: var(--bisque-soft); border-color: var(--clay); }
.sc-grid .mine { background: var(--espresso); color: var(--white); border-color: var(--espresso); }
.sc-grid .req { background: var(--bisque); border: 2px dashed var(--clay-deep); }
.sc-note { padding: 14px 16px; background: var(--glacier-soft); border-radius: 12px; }
.sc-cal { display: flex; gap: 16px; padding: 14px 16px; background: var(--glacier-soft); border-radius: 12px; }
.sc-cal span { color: var(--clay-deep); font-weight: 600; }
.sc-cal.dim { background: var(--white); border: 1px solid var(--glacier); text-decoration: line-through; color: var(--clay-deep); }

/* Два режима */
.modes { background: var(--glacier); padding: 96px 0; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mode { background: var(--white); border-radius: 28px; padding: 36px; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.mode:hover { transform: translateY(-6px); }
.mode-tag { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: var(--bisque); font-size: 15px; font-weight: 600; }
.mode h3 { font-size: clamp(30px, 2.6vw, 40px); margin-bottom: 20px; }
.mode ul, .pack ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }

/* Под ваш бренд: мини-сетка берёт цвета из переменных, site.js меняет их по нажатию на палитру */
.brand { background: var(--white); padding: 96px 0; }
.brand-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.swatch { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 2px solid var(--glacier); background: var(--white); color: var(--espresso);
  font: 600 15px var(--sans); cursor: pointer; transition: border-color .2s, transform .2s; }
.swatch:hover { transform: translateY(-2px); }
.swatch.is-on { border-color: var(--espresso); }
.swatch i { width: 28px; height: 28px; border-radius: 50%; display: inline-block; }
.s0 { background: conic-gradient(#3A2119 0 25%, #EBCDB7 0 50%, #79A3C3 0 75%, #D2E2EC 0); }
.s1 { background: conic-gradient(#1F2328 0 25%, #CFE3F7 0 50%, #555D66 0 75%, #E9ECEE 0); }
.s2 { background: conic-gradient(#1E4D3A 0 25%, #DCE9C9 0 50%, #6E8F72 0 75%, #EEF3EA 0); }
.s3 { background: conic-gradient(#6B1E2E 0 25%, #F2D7D9 0 50%, #A0525E 0 75%, #F7EEEE 0); }
.code { margin: 0; padding: 16px 18px; background: var(--glacier-soft); border-radius: 14px; font: 15px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.mini { --m-bg: #D2E2EC; --m-ink: #3A2119; --m-acc: #3A2119; --m-sel: #EBCDB7; --m-busy: #F4E4D8; --m-line: #79A3C3; --m-white: #FFFFFF; --m-font: var(--serif);
  background: var(--m-bg); color: var(--m-ink); border-radius: 28px; padding: 28px; transition: background-color .5s, color .5s; }
.mini * { transition: background-color .5s, color .5s, border-color .5s; }
.mini-top b { display: block; font: italic 600 30px/1.1 var(--m-font); }
.mini-top span { font-size: 15px; }
.mini-days { display: flex; gap: 8px; margin: 18px 0; }
.mini-days i { font-style: normal; padding: 8px 16px; border-radius: 12px; background: var(--m-white); font-weight: 600; font-size: 15px; }
.mini-days .on { background: var(--m-sel); }
.mini-grid { display: grid; grid-template-columns: 60px repeat(3, minmax(0, 1fr)); gap: 6px; background: var(--m-white); border-radius: 16px; padding: 10px; border: 1px solid var(--m-line); }
.mini-grid i { font-style: normal; height: 44px; border-radius: 10px; font-size: 13px; font-weight: 600; padding: 6px 8px; overflow: hidden; }
.mini-grid .h { height: auto; padding: 4px 8px; }
.mini-grid .t { height: auto; align-self: center; font-weight: 400; }
.mini-grid .mine { background: var(--m-acc); color: var(--m-white); }
.mini-grid .busy { background: var(--m-busy); }
.mini-btn { display: inline-block; margin-top: 18px; padding: 12px 24px; border-radius: 999px; background: var(--m-acc); color: var(--m-white); font-weight: 600; }

/* Календари: бегущая строка */
.cals { background: var(--glacier-soft); padding: 96px 0 0; overflow: hidden; }
.marquee { margin-top: 48px; border-top: 1px solid var(--glacier); border-bottom: 1px solid var(--glacier); background: var(--white); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: run 28s linear infinite; }
.marquee-track span { font: italic 600 clamp(32px, 4vw, 54px)/1 var(--serif); padding: 28px 40px; white-space: nowrap; }
.marquee-track span:nth-child(2n) { color: var(--clay-deep); }
@keyframes run { to { transform: translateX(-50%); } }

/* Данные */
.data { background: var(--white); padding: 96px 0; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.fact { border-top: 1px solid var(--chambray); padding-top: 18px; }
.fact b { display: block; font: italic 600 40px/1.1 var(--serif); margin-bottom: 8px; }
.fact span { font-size: 17px; }

/* Цена */
.price { background: var(--glacier); padding: 96px 0; }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 40px; }
.pack { background: var(--white); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pack h3 { font-size: 40px; }
.price-act { text-align: center; }
.offer { font-size: clamp(20px, 1.8vw, 23px); margin: 0; padding: 14px 20px; background: var(--white); border-radius: 14px; display: inline-block; }
.offer b { font: italic 600 1.35em var(--serif); }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tier { background: var(--glacier-soft); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tier + .tier { background: var(--bisque-soft); }
.tier p { margin: 0; }
.tier-name { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--clay-deep); }
.tier-price b { font: italic 600 34px/1.1 var(--serif); display: block; }
.tier-note { font-size: 15px; }
.price-note { text-align: center; margin: 0 0 28px; }
@media (max-width: 640px) { .tiers { grid-template-columns: minmax(0, 1fr); } }

/* Подвал */
.ft { background: var(--white); padding: 56px 0; border-top: 1px solid var(--glacier); }
.ft-in { display: flex; gap: 24px 48px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.ft p { margin: 0 0 6px; }
.contacts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.legal { font-size: 15px; }
.purpose-site { font-size: 15px; max-width: 420px; }

/* Консультант. Кнопка обведённая, не заливочная: заливочная кнопка на экране одна. Без скрипта кнопка скрыта */
.chat-fab { display: none; position: fixed; right: 24px; bottom: 24px; z-index: 30; min-height: 54px; padding: 12px 26px; border-radius: 22px 22px 4px 22px; border: 2px solid var(--espresso);
  background: var(--white); color: var(--espresso); font: 600 17px var(--sans); cursor: pointer; }
.js .chat-fab { display: inline-flex; align-items: center; }
.chat-fab:hover { background: var(--glacier-soft); }
.chat-fab::before { content: ''; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--bisque); border: 2px solid var(--espresso); }
.chat-fab[aria-expanded="true"] { display: none; }
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 31; width: 400px; max-height: min(640px, calc(100vh - 48px)); display: flex; flex-direction: column;
  background: var(--white); border: 2px solid var(--glacier); border-radius: 24px; overflow: hidden; }
.chat[hidden] { display: none; }
.chat-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--glacier-soft); border-bottom: 1px solid var(--glacier); }
.chat-title { margin: 0; font: italic 600 26px/1.1 var(--serif); }
.chat-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--espresso); font-size: 30px; line-height: 1; cursor: pointer; }
.chat-x:hover { background: var(--glacier); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.msg { margin: 0; padding: 10px 14px; border-radius: 16px; font-size: 16px; line-height: 1.45; max-width: 88%; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-bot { align-self: flex-start; background: var(--glacier-soft); }
.msg-me { align-self: flex-end; background: var(--bisque-soft); }
.msg-wait { color: var(--clay-deep); }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--glacier); }
.chat-label { grid-column: 1 / -1; font-size: 14px; font-weight: 600; color: var(--clay-deep); }
.chat-form textarea { resize: none; font: 16px/1.4 var(--sans); color: var(--espresso); padding: 10px 12px; border: 2px solid var(--glacier); border-radius: 14px; }
.chat-form textarea:focus { outline: none; border-color: var(--chambray); }
.chat-send { align-self: end; min-height: 46px; padding: 8px 18px; border-radius: 999px; border: 2px solid var(--espresso); background: var(--white); color: var(--espresso); font: 600 16px var(--sans); cursor: pointer; }
.chat-send:hover { background: var(--glacier-soft); }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-alt { margin: 0; padding: 0 18px 14px; font-size: 15px; color: var(--clay-deep); }
@media (max-width: 640px) {
  .chat-fab { right: 16px; bottom: 16px; }
  .chat { right: 0; bottom: 0; left: 0; width: auto; max-height: 85vh; border-radius: 24px 24px 0 0; border-bottom: 0; }
}

/* Разделы сайта: у каждого свой адрес, текущий подчёркнут в шапке */
.tabs-nav a[aria-current="page"] { border-bottom-color: var(--espresso); font-weight: 600; }

/* Ответы на вопросы: текст слева, справа короткая справка с ценой и кнопкой, поэтому колонка текста уже страницы */
.answer { background: var(--white); padding: 72px 0 96px; }
.answer-h { font-size: clamp(38px, 4.2vw, 60px); margin: 0 0 28px; text-wrap: balance; }
.answer-in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 56px; align-items: start; }
.answer-body { font-size: 19px; }
.answer-body > p:first-child { font-size: 22px; }
.answer-body h2 { font-size: clamp(30px, 2.6vw, 38px); margin: 40px 0 14px; }
.answer-body ul, .answer-body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.answer-side { position: sticky; top: 96px; background: var(--glacier-soft); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.answer-side h2 { font-size: 30px; margin: 0; }
.answer-side p { margin: 0; }
.answer-more { margin-top: 48px; padding-top: 8px; }
.answer-more ul, .answer-hub { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; }
.answer-more a, .answer-hub a { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid var(--glacier); text-decoration: none; }
.answer-more b, .answer-hub b { font: italic 600 26px/1.15 var(--serif); }
.answer-hub span { color: var(--clay-deep); }
.answer-more a:hover b, .answer-hub a:hover b { text-decoration: underline; text-underline-offset: 6px; }

/* Короткий путь дальше с первой вкладки */
.next { background: var(--white); padding: 56px 0 72px; }
.next-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; align-items: start; }
.next-link { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid var(--glacier); text-decoration: none; }
.next-link b { font: italic 600 30px/1.1 var(--serif); }
.next-link span { color: var(--clay-deep); }
.next-link:hover b { text-decoration: underline; text-underline-offset: 6px; }

/* Кому подходит: ситуации клиентов, две колонки, разделены тонкими линиями */
.who { background: var(--white); padding: 96px 0; }
.who-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.who-list article { padding: 26px 0; border-top: 1px solid var(--glacier); }
.who-list h3 { font-size: 32px; margin-bottom: 10px; }
.who-list p { margin: 0; font-size: 18px; }
.who-help { margin: 16px 0 6px !important; font-size: 15px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--clay-deep); }
.who-list ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 17px; }
.who-act { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 36px; }

/* Под ваш бренд: два способа работы */
.ways { margin: 0 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ways div { background: var(--glacier-soft); border-radius: 20px; padding: 20px 22px; }
.ways dt { font: italic 600 26px/1.1 var(--serif); margin-bottom: 8px; }
.ways dd { margin: 0; font-size: 16px; }
@media (max-width: 640px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* Возможности: плитки с картинкой, заголовок и одна фраза */
.feats { background: var(--white); padding: 96px 0; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.tile { background: var(--glacier-soft); border-radius: 24px; padding: 28px 26px; display: flex; flex-direction: column; gap: 8px; }
.tile svg { width: 168px; height: 106px; margin-bottom: 12px; }
.tile h3 { font-size: 28px; line-height: 1.1; margin: 0; }
.tile p { margin: 0; font-size: 17px; color: var(--clay-deep); }
.tile .k { fill: var(--espresso); }
.tile .f { fill: var(--glacier); }
.tile .w { fill: var(--white); stroke: var(--chambray); stroke-width: 2; }
.tile .l { fill: var(--chambray); }
.tile .a { fill: var(--bisque); stroke: var(--espresso); stroke-width: 2; }
.tile .ln { fill: none; stroke: var(--espresso); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Как подключить: временная шкала, шаги идут по порядку */
.connect { background: var(--glacier-soft); padding: 96px 0; }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; position: relative; }
.timeline li { counter-increment: t; position: relative; padding: 60px 14px 0 0; display: flex; flex-direction: column; gap: 6px; }
.timeline li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 2px solid var(--chambray);
  display: grid; place-items: center; font-weight: 600; z-index: 1; }
.timeline li::after { content: ''; position: absolute; left: 44px; right: 0; top: 21px; height: 2px; background: var(--chambray); }
.timeline li:last-child::after { display: none; }
.timeline b { font: italic 600 22px/1.15 var(--serif); }
.timeline span { font-size: 15px; line-height: 1.45; color: var(--clay-deep); }
.embed { background: var(--white); padding: 96px 0; }
.embed-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.embed-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.faq { background: var(--glacier-soft); padding: 72px 0; }
.faq details { background: var(--white); border-radius: 16px; padding: 18px 22px; margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; }
.faq details p { margin: 12px 0 0; }

/* Появление при прокрутке: без скрипта всё видно сразу */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .hero-in, .how-in, .brand-in, .embed-in, .answer-in { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .answer-side { position: static; }
  /* На телефоне вкладки строкой под шапкой, листаются вбок */

  .next-in, .who-list, .packs { grid-template-columns: minmax(0, 1fr); }
  /* Временная шкала сверху вниз */
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline li { padding: 0 0 26px 64px; }
  .timeline li::after { left: 21px; top: 44px; bottom: 0; right: auto; width: 2px; height: auto; }
  .hd-in { justify-content: space-between; }
  .how-screen { display: none; }
  .step { min-height: 0; opacity: 1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .in { padding: 0 16px; }
  .hero { padding: 40px 0 56px; }
  .how, .modes, .brand, .data, .price { padding: 64px 0; }
  .cals { padding-top: 64px; }
  .mode-grid, .packs, .facts { grid-template-columns: minmax(0, 1fr); }
  .mode, .pack { padding: 26px; }
  .step { padding-left: 64px; }
  .plan-toast { bottom: 64px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
.tech-h { font-size: 32px; margin: 48px 0 14px; }
.tech-list { margin: 0; padding-left: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 48px; }
@media (max-width: 960px) { .tech-list { grid-template-columns: minmax(0, 1fr); } }

.legal-page {padding-bottom:80px}.legal-page p {max-width:850px;line-height:1.7;overflow-wrap:anywhere;margin:0 0 20px}.legal-page h2 {font-size:clamp(22px,4vw,32px);margin:36px 0 16px}.legal-nav {display:flex;flex-wrap:wrap;gap:12px 24px;margin:24px 0 36px}.chat-consent {display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.5;grid-column:1/-1}.chat-consent input {flex:0 0 auto;width:16px;height:16px;margin-top:3px}.chat-consent a {text-decoration:underline}

.event-landing .event-intro {max-width:850px;font-size:clamp(20px,2.4vw,26px);line-height:1.5}.event-actions {display:flex;flex-wrap:wrap;gap:16px;margin:24px 0}.event-columns {display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:48px 0}.event-landing h2 {font-size:clamp(28px,3vw,38px);margin:32px 0 16px}.event-landing p,.event-landing li {line-height:1.65}.event-landing ul,.event-landing ol {padding-left:24px}.event-landing li {margin-bottom:10px}.event-price {background:var(--glacier-soft);padding:28px;border-radius:24px;margin-bottom:40px}.analytics-choice {position:fixed;left:16px;right:16px;bottom:16px;z-index:200;background:var(--white);border:1px solid var(--chambray);border-radius:18px;padding:18px;max-width:720px;box-shadow:0 4px 20px #3a21191a}.analytics-choice[hidden] {display:none}.analytics-choice p {margin:0 0 14px;font-size:15px;line-height:1.5}.analytics-actions {display:flex;flex-wrap:wrap;gap:12px}.analytics-actions button {font:inherit;font-size:14px;padding:10px 16px;border:1px solid var(--espresso);border-radius:16px;background:var(--white);color:var(--espresso);cursor:pointer}.analytics-settings {font:inherit;color:inherit;background:none;border:0;text-decoration:underline;cursor:pointer;padding:0}.analytics-choice a {text-decoration:underline}
@media (max-width:700px) {.event-columns {grid-template-columns:1fr;gap:8px;margin:32px 0}.event-actions .btn {width:100%;text-align:center}.event-price {padding:20px}.analytics-choice {left:8px;right:8px;bottom:8px}.analytics-actions button {flex:1}}

.trial-offer { margin:32px 0; padding:28px; border:1px solid var(--plate, #D9D1CB); border-radius:20px; }
.trial-offer h2 { margin-top:0; }
.trial-offer .btn { margin:8px 12px 8px 0; }
@media(max-width:700px) { .trial-offer { padding:20px; } .trial-offer .btn { white-space:normal; text-align:center; } }

/* Keep complete navigation labels at intermediate widths and browser zoom. */
.hd-in > .btn { flex: none; }
@media (max-width: 1280px) {
  .hd-in { flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; min-height: 0; padding-top: 12px; }
  .nav { order: 3; flex: 0 0 100%; min-width: 0; margin: 0; overflow-x: auto; gap: 20px; padding: 4px 0 10px; scrollbar-width: thin; }
}

/* Preserve complete labels and keep floating controls compact on phones. */
.plan-toast { width: max-content; max-width: calc(100% - 24px); white-space: normal; text-align: center; }
.mini-grid i:not(.h):not(.t) { height: auto; min-height: 44px; overflow: visible; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .chat-fab { justify-content: center; width: 52px; height: 52px; min-height: 52px; padding: 0; border-radius: 50%; font-size: 0; }
  .chat-fab::before { content: '?'; display: grid; place-items: center; width: 24px; height: 24px; margin: 0; border: 0; background: none; font-size: 24px; line-height: 1; }
}
@media (max-width: 1280px) {
  .btn.magnetic { transform: none !important; }
}
