/* Эффект — вариант C «До и после». Dela Gothic One + Onest, малиновый акцент */
:root { --display: 'Dela Gothic One', 'Arial Black', sans-serif; --body: 'Onest', system-ui, sans-serif; }

/* тёмная: глубокий чёрный */
:root[data-theme='dark'] {
  --bg: #000; --surface: #0f0f0f; --surface-2: #1a1a1a; --line: #242424; --line-2: #333;
  --text: #f5f5f5; --text-2: #c4c4c4; --muted: #8a8a8a; --faint: #5a5a5a;
  --accent: #ff5c9a; --accent-ink: #1a0010; --accent-soft: rgba(255, 92, 154, .14);
  --messy: rgba(245, 245, 245, .28); --glass: rgba(0, 0, 0, .8); --backdrop: rgba(0, 0, 0, .72); --shadow: rgba(0, 0, 0, .6);
  color-scheme: dark;
}
/* светлая: чистый белый */
:root[data-theme='light'] {
  --bg: #fff; --surface: #f5f4f6; --surface-2: #ebe9ee; --line: #e3e1e6; --line-2: #d2d0d6;
  --text: #111; --text-2: #3a3a40; --muted: #6a6a72; --faint: #a0a0a8;
  --accent: #d81b66; --accent-ink: #fff; --accent-soft: rgba(216, 27, 102, .09);
  --messy: rgba(17, 17, 17, .25); --glass: rgba(255, 255, 255, .85); --backdrop: rgba(20, 20, 30, .4); --shadow: rgba(20, 20, 40, .16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); transition: background-color .3s, color .3s; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.02; letter-spacing: -.01em; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 14px; border: 2px solid transparent; font: 700 15px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, background-color .15s, color .15s, filter .15s; }
.btn:active { transform: scale(.97); }
.btn--lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 16px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn--line { border-color: var(--text); color: var(--text); background: none; }
.btn--line:hover { background: var(--text); color: var(--bg); }
.btn--ink { background: var(--accent-ink); color: var(--accent); }
.btn--ink:hover { color: var(--accent); filter: brightness(1.3); }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--glass); backdrop-filter: blur(14px); }
.top__in { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { font: 400 24px/1 var(--display); text-decoration: none; }
.brand i { font-style: normal; color: var(--accent); }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 24px; margin-left: 16px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--text-2); }
.nav a:hover { color: var(--accent); }
.top__r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sw { position: relative; flex: none; width: 76px; height: 44px; border-radius: 999px; border: 2px solid var(--line-2); background: var(--surface); cursor: pointer; padding: 0; }
.sw::before, .sw::after { content: ''; position: absolute; top: 4px; left: 4px; width: 32px; height: 32px; border-radius: 50%; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.sw::after { background: var(--text); }
/* значок луны: вырез в кружке тёмной темы */
.sw::before { z-index: 1; background: var(--surface); transform: translate(44px, -6px) scale(.75); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), opacity .2s; }
:root[data-theme='dark'] .sw::after { transform: translateX(32px); }
:root[data-theme='dark'] .sw::before { opacity: 1; transform: translate(42px, -4px) scale(.7); }
.burger { display: none; width: 44px; height: 44px; place-items: center; background: none; border: 0; border-radius: 12px; color: var(--text); cursor: pointer; }
.burger i, .burger i::before, .burger i::after { display: block; width: 22px; height: 2.5px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.burger i::before, .burger i::after { content: ''; position: absolute; left: 0; }
.burger i::before { top: -7px; }
.burger i::after { top: 7px; }
.burger[aria-expanded='true'] i { background: transparent; }
.burger[aria-expanded='true'] i::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] i::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- первый экран ---------- */
.hero__head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; padding: 28px 0 32px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 112px); max-width: 9ch; }
.hero__side { max-width: 40ch; display: grid; gap: 20px; }
.hero__side p { color: var(--text-2); font-size: 17px; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }

.ba { position: relative; aspect-ratio: 12 / 5; border-radius: 28px; overflow: hidden; background: var(--surface); --pos: 50%; touch-action: pan-y; }
.ba svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba__before path { fill: none; stroke: var(--messy); stroke-width: 1.6; stroke-linecap: round; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); background: var(--surface-2); }
.ba__after path { fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.ba__after path.hl { stroke: var(--accent); opacity: 1; stroke-width: 2.6; }
.ba__tag { position: absolute; top: 20px; padding: 8px 14px; border-radius: 12px; font: 700 14px var(--body); background: var(--bg); pointer-events: none; }
.ba__tag--l { left: 20px; }
.ba__tag--r { right: 20px; background: var(--accent); color: var(--accent-ink); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--accent); pointer-events: none; }
.ba__handle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent); transition: background-color .3s; }
.ba__handle::before { content: ''; position: absolute; top: 50%; left: 50%; z-index: 1; width: 24px; height: 24px; margin: -12px 0 0 -12px; background: var(--accent-ink); -webkit-mask: var(--arrows) center / contain no-repeat; mask: var(--arrows) center / contain no-repeat; --arrows: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E"); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:has(input:focus-visible) .ba__handle::after { outline: 3px solid var(--text); outline-offset: 4px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 0; }
.facts div { padding: 18px 22px; border-radius: 20px; background: var(--surface); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 4px 0 0; font: 400 20px/1.25 var(--display); }

/* ---------- секции ---------- */
.sec { padding: 104px 0 0; }
.sec h2 { font-size: clamp(36px, 5vw, 72px); }
.sec__lede { color: var(--text-2); margin-top: 14px; max-width: 54ch; font-size: 17px; }

/* услуги: крупный аккордеон */
.acc { margin-top: 40px; border-top: 2px solid var(--text); }
.acc details { border-bottom: 2px solid var(--text); }
.acc summary { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 26px 0; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h3 { font-size: clamp(24px, 3.4vw, 44px); transition: color .15s; }
.acc summary span { color: var(--muted); font-weight: 500; white-space: nowrap; }
.acc summary i { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); position: relative; transition: transform .3s, background-color .2s; }
.acc summary i::before, .acc summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 2.5px; margin: -1.25px 0 0 -9px; background: currentColor; border-radius: 2px; }
.acc summary i::after { transform: rotate(90deg); }
.acc details[open] summary i { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); }
.acc summary:hover h3 { color: var(--accent); }
.acc ul { list-style: none; margin: 0; padding: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acc details[open] ul { animation: accIn .3s ease both; }
@keyframes accIn { from { opacity: 0; transform: translateY(-6px); } }
.acc li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; padding: 16px 16px 16px 20px; border-radius: 16px; background: var(--surface); }
.acc li small { display: block; color: var(--muted); font-size: 14px; }
.acc li b { font: 400 20px var(--display); white-space: nowrap; text-align: right; }
.acc li b small { display: inline; font: 500 13px var(--body); margin-right: 4px; }
.acc li .btn { grid-column: 1 / -1; justify-self: start; height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; border-width: 1.5px; border-color: var(--line-2); }
.acc li .btn:hover { border-color: var(--text); }

/* мастера */
.crew { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.mm { display: grid; grid-template-columns: 168px 1fr; gap: 22px; padding: 16px; border-radius: 26px; background: var(--surface); }
.mm__ph { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 400 46px var(--display); }
.mm__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mm__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 4px 0; }
.mm h3 { font-size: 22px; }
.mm__role { color: var(--accent); font-weight: 600; }
.mm__about { color: var(--text-2); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 0; padding: 0; }
.tags li { padding: 4px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.mm .btn { margin-top: auto; height: 42px; font-size: 14px; }

/* контакты */
.visit { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: start; }
.visit__addr { margin-top: 20px; font: 400 24px/1.25 var(--display); }
.visit__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hours { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: 24px; }
.hours caption { text-align: left; font: 400 18px var(--display); padding: 0 0 14px; }
.hours th, .hours td { padding: 18px 22px; border-bottom: 1px solid var(--line-2); text-align: left; font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { color: var(--text-2); }
.hours td { text-align: right; font-weight: 700; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--accent); }
.today { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); font-size: 12px; vertical-align: 2px; }

/* ---------- футер ---------- */
.foot { margin-top: 112px; background: var(--accent); color: var(--accent-ink); border-radius: 40px 40px 0 0; padding: 72px 0 28px; transition: background-color .4s, color .4s; }
.foot a { color: var(--accent-ink); }
.foot__cta { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.foot__cta h2 { font-size: clamp(44px, 7vw, 104px); max-width: 10ch; }
.foot__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 64px; padding-top: 28px; border-top: 2px solid currentColor; }
.foot__grid h3 { margin: 0 0 8px; font: 700 14px var(--body); opacity: .7; }
.foot__grid a { font-weight: 700; text-decoration: none; }
.social { display: flex; gap: 8px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-ink); color: var(--accent); transition: transform .15s; }
.social a:hover { transform: translateY(-2px); color: var(--accent); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.foot__copy { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; font-size: 14px; }
.foot__copy span { opacity: .75; }
.foot__copy a { font-weight: 700; text-decoration: none; }

/* ---------- запись ---------- */
.book { width: min(520px, 100% - 32px); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 28px; background: var(--bg); color: var(--text); box-shadow: 0 30px 80px var(--shadow); }
.book::backdrop { background: var(--backdrop); backdrop-filter: blur(4px); }
.book[open] { animation: bookIn .28s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes bookIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.book__form { display: grid; gap: 16px; padding: 28px; }
.book__head { display: flex; justify-content: space-between; align-items: center; }
.book__head h2 { font-size: 30px; }
.book__note { color: var(--muted); font-size: 14px; }
.book__close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.book__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; color: var(--muted); }
.field input, .field select { height: 50px; width: 100%; padding: 0 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: inherit; outline: none; transition: border-color .15s; }
.field input:focus, .field select:focus { border-color: var(--accent); }
.field input::placeholder { color: var(--faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.book__actions .btn--accent { flex: 1; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .crew { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .burger { display: grid; }
  .nav { position: absolute; inset: 76px 0 auto; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 20px; background: var(--bg); border-bottom: 2px solid var(--text); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font: 400 22px var(--display); color: var(--text); border-bottom: 1px solid var(--line); }
  .ba { aspect-ratio: 4 / 5; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:last-child { grid-column: 1 / -1; }
  .acc ul, .visit { grid-template-columns: 1fr; }
  .sec { padding-top: 80px; }
}
@media (max-width: 560px) {
  .top__book { display: none; }
  .top__in { gap: 12px; }
  .mm { grid-template-columns: 112px 1fr; gap: 16px; }
  .mm__ph { font-size: 32px; }
  .acc summary span { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .foot { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- свой выпадающий список (select.js) ---------- */
.cs { position: relative; }
.cs__btn { width: 100%; height: 50px; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 16px; border-radius: 14px; border: 2px solid var(--line-2, var(--line-strong)); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s; }
.cs__btn:hover, .cs__btn[aria-expanded='true'] { border-color: var(--accent); }
.cs__btn.is-empty .cs__val { color: var(--muted); }
.cs__val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs__grp { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.cs__grp:empty { display: none; }
.cs__chev { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.cs__btn[aria-expanded='true'] .cs__chev { transform: rotate(180deg); stroke: var(--accent); }
.cs__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: min(340px, 50vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 18px; border: 1px solid var(--line-2, var(--line-strong)); background: var(--bg); box-shadow: 0 18px 50px var(--shadow); outline: none; animation: csIn .16s ease-out; }
.cs--up .cs__list { top: auto; bottom: calc(100% + 6px); }
@keyframes csIn { from { opacity: 0; transform: translateY(-4px); } }
.cs--up .cs__list { animation-name: csInUp; }
@keyframes csInUp { from { opacity: 0; transform: translateY(4px); } }
.cs__group + .cs__group, .cs__opt--empty + .cs__group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.cs__gl { padding: 10px 12px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cs__opt { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border-radius: 11px; cursor: pointer; color: var(--text); }
.cs__opt span { flex: 1; }
.cs__opt.is-active { background: var(--surface-2); }
.cs__opt[aria-selected='true'] { color: var(--accent); font-weight: 600; }
.cs__opt--empty span { color: var(--muted); }
.cs__check { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.cs__opt[aria-selected='true'] .cs__check { opacity: 1; }
.book:has(.cs__btn[aria-expanded='true']) { overflow: visible; }

/* ---------- скроллбар: тонкий, без дорожки, в цветах темы ---------- */
:root {
  --sb-thumb: color-mix(in srgb, var(--text) 22%, transparent);
  --sb-thumb-hover: color-mix(in srgb, var(--accent) 75%, transparent);
}
/* Chrome, Edge, Safari, Opera */
::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--sb-thumb) padding-box;
  border: 4px solid transparent;   /* прозрачная рамка: ползунок «парит» и выглядит тоньше */
  border-radius: 999px;
  min-height: 48px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--sb-thumb-hover); border-width: 3px; }
::-webkit-scrollbar-thumb:active { background-color: var(--accent); border-width: 3px; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
/* внутри выпадающего списка ползунок ещё тоньше и с отступом от скруглений */
.cs__list::-webkit-scrollbar { width: 10px; }
.cs__list::-webkit-scrollbar-thumb { border-width: 3px; }
.cs__list::-webkit-scrollbar-track { margin: 10px 0; }
/* Firefox (не понимает ::-webkit-scrollbar) */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
  .cs__list { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
}

/* ---------- цвет сайта: выбирается в подвале ----------
   Для каждого цвета свой оттенок в тёмной и светлой теме, чтобы текст на кнопках оставался читаемым. */
:root[data-theme='dark'] {
  --sw-malina: #ff5c9a; --sw-siren: #a98bff; --sw-ultra: #6f9bff; --sw-izumrud: #34d399; --sw-yantar: #ffb547; --sw-grafit: #f5f5f5;
}
:root[data-theme='light'] {
  --sw-malina: #d81b66; --sw-siren: #6d3fe0; --sw-ultra: #2f5bd8; --sw-izumrud: #0f7a55; --sw-yantar: #b45309; --sw-grafit: #111;
}
:root[data-theme='dark'][data-accent='siren']   { --accent: #a98bff; --accent-ink: #12082e; --accent-soft: rgba(169, 139, 255, .15); }
:root[data-theme='dark'][data-accent='ultra']   { --accent: #6f9bff; --accent-ink: #06122e; --accent-soft: rgba(111, 155, 255, .15); }
:root[data-theme='dark'][data-accent='izumrud'] { --accent: #34d399; --accent-ink: #022417; --accent-soft: rgba(52, 211, 153, .14); }
:root[data-theme='dark'][data-accent='yantar']  { --accent: #ffb547; --accent-ink: #2a1600; --accent-soft: rgba(255, 181, 71, .14); }
:root[data-theme='dark'][data-accent='grafit']  { --accent: #f5f5f5; --accent-ink: #000; --accent-soft: rgba(245, 245, 245, .1); }
:root[data-theme='light'][data-accent='siren']   { --accent: #6d3fe0; --accent-ink: #fff; --accent-soft: rgba(109, 63, 224, .09); }
:root[data-theme='light'][data-accent='ultra']   { --accent: #2f5bd8; --accent-ink: #fff; --accent-soft: rgba(47, 91, 216, .09); }
:root[data-theme='light'][data-accent='izumrud'] { --accent: #0f7a55; --accent-ink: #fff; --accent-soft: rgba(15, 122, 85, .09); }
:root[data-theme='light'][data-accent='yantar']  { --accent: #b45309; --accent-ink: #fff; --accent-soft: rgba(180, 83, 9, .09); }
:root[data-theme='light'][data-accent='grafit']  { --accent: #111; --accent-ink: #fff; --accent-soft: rgba(17, 17, 17, .07); }
/* у графита акцент совпадает с цветом текста — подсветку «после» на ползунке делаем заметнее */
:root[data-accent='grafit'] .ba__after path.hl { stroke-width: 3.4; }

.palette { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.palette__label { font-weight: 700; font-size: 14px; opacity: .75; margin-right: 4px; }
.palette__list { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { position: relative; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; background: var(--c);
  box-shadow: 0 0 0 2px var(--accent-ink); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s; }
.swatch:hover { transform: scale(1.1); }
.swatch:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 4px; }
.swatch[aria-checked='true'] { box-shadow: 0 0 0 2px var(--accent), 0 0 0 5px var(--accent-ink); }
/* галочка выбранного цвета: цвет галочки — контрастный к самому кружку */
.swatch::after { content: ''; position: absolute; inset: 11px; background: var(--ink); opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1);
  -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.swatch[aria-checked='true']::after { opacity: 1; transform: none; }
.swatch[data-c='malina']  { --c: var(--sw-malina); }
.swatch[data-c='siren']   { --c: var(--sw-siren); }
.swatch[data-c='ultra']   { --c: var(--sw-ultra); }
.swatch[data-c='izumrud'] { --c: var(--sw-izumrud); }
.swatch[data-c='yantar']  { --c: var(--sw-yantar); }
.swatch[data-c='grafit']  { --c: var(--sw-grafit); }
:root[data-theme='dark'] .swatch { --ink: #111; }
:root[data-theme='dark'] .swatch[data-c='grafit'] { --ink: #111; }
:root[data-theme='light'] .swatch { --ink: #fff; }
.palette__name { font-size: 14px; font-weight: 600; min-width: 7ch; }
/* плавная смена цвета у основных элементов */
.btn--accent, .ba__handle, .acc details[open] summary i, .mm__ph, .ba__tag--r, .brand i { transition: background-color .4s, color .4s, filter .15s, transform .15s; }
@media (max-width: 560px) { .swatch { width: 36px; height: 36px; } .swatch::after { inset: 10px; } }

/* ---------- запись: согласие, ловушка, экран «Заявка принята» ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.book__err { color: var(--accent); font-size: 14px; font-weight: 600; }
.book__err:empty { display: none; }
.btn.is-busy { opacity: .7; cursor: progress; }
.book__done { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 36px 28px 28px; }
.book__done h2 { font-size: 30px; }
.book__done p { color: var(--text-2); max-width: 36ch; }
.book__done .book__actions { justify-content: center; width: 100%; }
.book__tick { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); position: relative; animation: tickIn .45s cubic-bezier(.3, 1.6, .5, 1); }
.book__tick::after { content: ''; position: absolute; inset: 20px; background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes tickIn { from { transform: scale(.3); opacity: 0; } }

/* ---------- логотип «Капля» ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.logo { width: 32px; height: 32px; flex: none; color: var(--text); }
.logo__fill { fill: var(--accent); transition: fill .4s; }
.brand:hover .logo__fill { animation: dropFill .6s ease; }
@keyframes dropFill { 40% { transform: translateY(4px); } }
.foot__brand { display: inline-flex; align-items: center; gap: 10px; }
.foot__brand .logo { width: 26px; height: 26px; color: var(--accent-ink); }
.foot__brand .logo__fill { fill: var(--accent-ink); opacity: .55; }
.foot__copy span span { opacity: 1; }
@media (max-width: 560px) { .logo { width: 28px; height: 28px; } }

/* ================= подвал «Огромное слово» ================= */
.foot2 { margin-top: 112px; background: var(--bg); border-top: 1px solid var(--line); padding: 64px 0 0; overflow: hidden; }
.foot2__cols { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
.foot2__cols h3 { font: 600 13px var(--body); color: var(--muted); margin-bottom: 10px; }
.foot2__cols p + p { margin-top: 10px; }
.foot2__cols a { text-decoration: none; font-weight: 600; }
.foot2__cols a:hover { color: var(--accent); }
.foot2__intro { display: grid; gap: 14px; justify-items: start; align-content: start; }
.foot2__intro p { color: var(--text-2); max-width: 32ch; }
.foot2__tel { font-size: 17px; }
.foot2 .social { display: flex; gap: 8px; margin-top: 14px; }
.foot2 .social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--text); transition: transform .15s, background-color .2s, color .2s; }
.foot2 .social a:hover { transform: translateY(-2px); background: var(--accent); color: var(--accent-ink); }
.foot2 .social svg { width: 20px; height: 20px; fill: currentColor; }
/* огромное слово: контур, при наведении или когда долистали — заливка цветом сайта слева направо */
.foot2__word { margin: 48px 0 0; font: 400 clamp(64px, 15vw, 214px)/.82 var(--display); letter-spacing: -.05em; white-space: nowrap; text-align: center; color: transparent; -webkit-text-stroke: 2px var(--line-2);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / var(--fill, 0%) 100%; -webkit-background-clip: text; background-clip: text;
  transition: background-size 1.1s cubic-bezier(.2, .8, .2, 1), -webkit-text-stroke-color .6s; user-select: none; transform: translateY(9%); }
.foot2__word.is-filled, .foot2:hover .foot2__word { --fill: 100%; -webkit-text-stroke-color: var(--accent); }
.foot2__bottom { position: relative; border-top: 1px solid var(--line); background: var(--bg); }
.foot2__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 18px 0 22px; color: var(--muted); font-size: 14px; }
.foot2__bar > a { color: var(--text); font-weight: 600; text-decoration: none; }
.foot2 .palette { margin: 0; gap: 10px; }
.foot2 .palette__label { opacity: 1; font-weight: 500; }
.foot2 .palette__name { display: none; }
.foot2 .swatch { width: 30px; height: 30px; box-shadow: 0 0 0 2px var(--line-2); }
.foot2 .swatch::after { inset: 8px; }
.foot2 .swatch[aria-checked='true'] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.foot2 .swatch:focus-visible { outline-color: var(--text); }
@media (max-width: 900px) { .foot2__cols { grid-template-columns: 1fr 1fr; } .foot2__intro { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot2 { padding-top: 48px; } .foot2__bar { justify-content: center; text-align: center; } .foot2__word { -webkit-text-stroke-width: 1.5px; } }
@media (prefers-reduced-motion: reduce) { .foot2__word { transition: none; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- нижнее меню на телефоне: одно и то же на сайте и в Telegram Mini App ---------- */
.dock { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 25; display: none; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; max-width: 520px; margin-inline: auto; padding: 6px; border-radius: 24px; border: 1px solid var(--line-2); background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 14px 40px var(--shadow); }
.dock > a, .dock > button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 56px; padding: 6px 2px; border: 0; border-radius: 18px; background: none; color: var(--muted); font: 600 11.5px/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; z-index: 1; transition: color .35s ease, transform .2s cubic-bezier(.3, 1.4, .5, 1), filter .2s; }
.dock > a:active, .dock > button:active { transform: scale(.94); }
.dock > a:hover { color: var(--text); }
.dock svg:not(.logo) { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s cubic-bezier(.3, 1.5, .45, 1), stroke .35s ease; }
.dock [aria-selected='true'], .dock [aria-current='true'] { color: var(--text); }
/* таблетка под активным пунктом: переезжает с лёгкой пружиной (dock.js) */
.dock__pill { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 18px; background: var(--surface-2); opacity: 0; pointer-events: none; transition: transform .5s cubic-bezier(.3, 1.25, .4, 1), width .5s cubic-bezier(.3, 1.25, .4, 1), opacity .3s ease; }
.dock__pill.is-on { opacity: 1; }
/* без dock.js (или до его запуска) активный пункт подсвечивается как раньше */
.dock:not(:has(.dock__pill)) [aria-selected='true'], .dock:not(:has(.dock__pill)) [aria-current='true'] { background: var(--surface-2); }
.dock [aria-selected='true'] svg, .dock [aria-current='true'] svg { stroke: var(--accent); transform: translateY(-1px) scale(1.06); }
/* главное действие — малиновая кнопка с каплей из логотипа */
.dock > .dock__book { background: var(--accent); color: var(--accent-ink); }
/* центральная кнопка шире соседних, чтобы «Записаться» помещалась на узком экране */
.dock:has(.dock__book) { grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.45fr) repeat(2, minmax(0, 1fr)); }
.dock span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.dock > .dock__book:hover { color: var(--accent-ink); filter: brightness(1.08); }
.dock__book .logo { width: 25px; height: 25px; color: currentColor; }
.dock__book .logo__fill { fill: var(--accent-ink); opacity: .5; }
.dock__dot { position: absolute; top: 5px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 700 10.5px/17px var(--body); box-shadow: 0 0 0 2px var(--bg); }
@media (max-width: 900px) {
  .dock { display: grid; }
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .burger, .nav { display: none !important; }
}

/* ---------- переход к разделу из меню: блоки раздела проявляются по очереди (app.js) ---------- */
.sec.is-arrived :is(h2, .sec__lede, .acc, .crew, .visit__addr, .visit__cta, .hours) { animation: secArrive .7s cubic-bezier(.2, .8, .25, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes secArrive { from { opacity: 0; transform: translateY(22px); } }
.sec:focus { outline: none; }
