/* =========================================================
   Сайты бизнесов на Chiroy — общий каркас.
   Шаблон (themes/{ключ}.css) задаёт переменные, первый экран и характер блоков.
   Mobile-first.
   ========================================================= */

.site {
  --bg: #FFFFFF; --surface: #FFFFFF; --tint: #F1EEF4; --ink: #1A1720; --muted: #6E6876; --line: #E8E4EC;
  --accent2: #1E9E98; --gold: #D9A35B; --coral: #FF7A6B;
  --display: Georgia, serif; --body: system-ui, sans-serif;
  --r: 18px; --r-btn: 999px; --name-size: clamp(42px, 12vw, 84px); --name-weight: 400; --name-track: -0.01em; --name-lh: .98;
  --h2-size: clamp(30px, 8vw, 50px); --h2-weight: 400; --h2-track: -0.01em;
  --nav-h: 64px; --wrap: 1200px;
  --fit: 8; --cw: .6; --name-avail: calc(100vw - 40px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h, 64px) + 12px); }
body.site { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; padding-bottom: calc(84px + var(--safe-b)); overflow-x: hidden; }
body.site.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p, figure, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.i { width: 22px; height: 22px; flex: none; }
.i-sm { width: 18px; height: 18px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.s-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.s-anchor { position: absolute; top: 0; }
main { overflow-x: clip; position: relative; }

/* ---------- Кнопки ---------- */
.s-btn, .s-btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: var(--r-btn); font-weight: 600; font-size: 15px; letter-spacing: .01em; cursor: pointer; text-decoration: none;
  border: 1.5px solid var(--accent); transition: transform .12s, background-color .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.s-btn { background: var(--accent); color: var(--on-accent); }
.s-btn:hover { filter: brightness(1.07); }
.s-btn:active, .s-btn-line:active { transform: scale(.98); }
.s-btn-line { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 24%, transparent); }
.s-btn-line:hover { border-color: var(--accent); color: var(--accent); }
.s-btn-lg { min-height: 56px; font-size: 16px; padding: 0 28px; }
.s-btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Полоса владельца ---------- */
.owner-bar { position: relative; z-index: 70; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; padding: 9px 16px; background: #18213A; color: #fff; font: 500 13.5px/1.4 system-ui, sans-serif; text-align: center; }
.owner-bar a { color: #F6C77E; font-weight: 600; }

/* ---------- Шапка и меню ---------- */
.s-nav {
  position: sticky; top: 0; z-index: 65;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  transition: background-color .25s, border-color .25s, color .25s;
}
.s-nav-in { display: flex; align-items: center; gap: 16px; height: var(--nav-h); max-width: var(--wrap); margin: 0 auto; padding: 0 12px 0 20px; }
.s-brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font-family: var(--display); font-size: 19px; line-height: 1.1; color: inherit; }
.s-brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface); }
.s-links { display: none; }
.s-nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.s-lang { display: inline-flex; border-radius: 999px; padding: 3px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.s-lang a { padding: 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; text-decoration: none; color: color-mix(in srgb, currentColor 60%, transparent); }
.s-lang a.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.s-nav-cta { display: none; }
.s-burger { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-content: center; gap: 6px; color: inherit; }
.s-burger i { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s; }
.s-burger[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.s-burger[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

.s-menu { position: fixed; inset: 0; z-index: 60; background: var(--bg); color: var(--ink); overflow-y: auto; animation: menu-in .28s ease-out; }
.s-menu-in { min-height: 100%; display: grid; align-content: space-between; gap: 32px; padding: calc(var(--nav-h) + 28px) 24px calc(28px + var(--safe-b)); max-width: var(--wrap); margin: 0 auto; }
.s-menu-links { display: grid; }
.s-menu-links a { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-size: clamp(30px, 9vw, 52px); line-height: 1.1; letter-spacing: var(--h2-track); }
.s-menu-n { display: none; font: 600 13px/1 var(--body); color: var(--accent); }
.s-menu-foot { display: grid; gap: 14px; justify-items: start; }
.s-menu-foot .s-btn { width: 100%; }
.s-menu-phone { font-size: 22px; font-weight: 600; text-decoration: none; }
.s-menu-addr { color: var(--muted); }
.s-menu-social { display: flex; flex-wrap: wrap; gap: 16px; }
.s-menu-social a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--accent); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }

/* ---------- Первый экран: общие детали ---------- */
.hero { position: relative; }
.hero-kicker { font-size: 14px; letter-spacing: .02em; color: var(--muted); }
.s-name { font-family: var(--display); font-size: min(var(--name-size), calc(var(--name-avail) / (var(--fit) * var(--cw)))); font-weight: var(--name-weight); letter-spacing: var(--name-track); line-height: var(--name-lh); }
.s-name .nw { display: inline-block; white-space: nowrap; }
.s-tagline { font-size: 18px; line-height: 1.5; color: color-mix(in srgb, var(--ink) 80%, transparent); max-width: 36ch; }
.s-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14.5px; color: var(--muted); }
.s-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.s-open { display: inline-flex; align-items: center; gap: 8px; }
.s-open i { width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, currentColor 35%, transparent); flex: none; }
.s-open.is-open { font-weight: 600; }
.s-open.is-open i { background: #22A06B; box-shadow: 0 0 0 4px rgba(34, 160, 107, .2); }
.s-cta { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.s-cta .s-btn { flex: 1 1 220px; }
.s-cta .s-btn-line { display: none; }
.hero-mono { font-family: var(--display); line-height: 1; }
@media (min-width: 900px) { .s-cta .s-btn-line { display: inline-flex; } .s-cta .s-btn { flex: 0 0 auto; } }

/* ---------- Секции ---------- */
.s-sec { padding: 64px 0; position: relative; }
.s-head { display: grid; gap: 8px; margin-bottom: 30px; }
.s-head h2 { font-family: var(--display); font-size: var(--h2-size); font-weight: var(--h2-weight); line-height: 1.05; letter-spacing: var(--h2-track); }
.s-sub { color: var(--muted); font-size: 15px; max-width: 46ch; }

/* Бегущая строка */
.s-marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; }
.s-marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.s-marquee-row { display: flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; font-family: var(--display); font-size: 22px; }
.s-marquee-row i { font-style: normal; color: var(--accent); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Услуги */
.s-cats {
  position: sticky; top: var(--nav-h); z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: -6px -20px 22px; padding: 10px 20px; background: var(--bg);
}
.s-cats::-webkit-scrollbar { display: none; }
.s-cats a { flex: none; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); color: var(--ink); transition: background-color .15s, color .15s; }
.s-cats a:hover { background: var(--accent); color: var(--on-accent); }
.s-cat + .s-cat { margin-top: 38px; }
.s-cat-title { display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-size: 24px; margin-bottom: 6px; }
.s-cat-n { font: 600 13px/1 var(--body); color: var(--muted); }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc { border-bottom: 1px solid var(--line); }
.svc-hit {
  width: 100%; display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "main price add"; align-items: center; gap: 14px;
  padding: 16px 0; background: none; border: 0; text-align: left; cursor: pointer; color: inherit;
}
.svc-main { grid-area: main; display: grid; gap: 3px; min-width: 0; }
.svc-name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.svc-desc { font-size: 14px; color: var(--muted); line-height: 1.45; }
.svc-dur { font-size: 13.5px; color: var(--muted); }
.svc-lead { display: none; }
.svc-price { grid-area: price; font-weight: 700; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.svc-add {
  grid-area: add; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); transition: background-color .15s, color .15s;
}
.svc-hit:hover .svc-add { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Шаги записи */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: st; }
.steps li { counter-increment: st; display: grid; gap: 6px; padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: counter(st); font-family: var(--display); font-size: 34px; line-height: 1; color: var(--accent); }
.steps b { font-size: 18px; font-weight: 600; }
.steps span { color: var(--muted); font-size: 15px; }

/* Команда */
.team-scroll { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: 0 20px 8px; scrollbar-width: none; max-width: var(--wrap); margin: 0 auto; }
.team-scroll::-webkit-scrollbar { display: none; }
.member { flex: 0 0 min(240px, 70vw); scroll-snap-align: start; display: grid; gap: 4px; align-content: start; justify-items: start; }
.member-photo { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; margin-bottom: 12px; background: var(--tint); display: grid; place-items: center; position: relative; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-mono { font-family: var(--display); font-size: 54px; color: var(--accent); }
.member-text { display: grid; gap: 2px; }
.member h3 { font-size: 19px; font-weight: 600; line-height: 1.25; }
.member p { color: var(--muted); font-size: 14.5px; }
.member-book { margin-top: 12px; }

/* Галерея */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gal-item { padding: 0; border: 0; border-radius: calc(var(--r) * .7); overflow: hidden; aspect-ratio: 4 / 5; cursor: zoom-in; background: var(--tint); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal-item:hover img { transform: scale(1.03); }
/* нечётное число фото: первое — крупно, чтобы сетка закрывалась без дыр */
.gal-n1 .gal-item, .gal-n3 .gal-item:first-child, .gal-n5 .gal-item:first-child, .gal-n7 .gal-item:first-child { grid-column: span 2; aspect-ratio: 16 / 11; }

/* О нас */
.s-about-in { display: grid; gap: 22px; }
.s-about-in .s-head { margin-bottom: 0; align-content: start; }
.s-about-text { display: grid; gap: 14px; max-width: 64ch; }
.s-about-text p { font-size: 17px; line-height: 1.7; color: color-mix(in srgb, var(--ink) 86%, transparent); }
.s-about-text .s-lead { font-family: var(--display); font-size: clamp(21px, 5vw, 28px); line-height: 1.4; color: var(--ink); }
.s-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.s-facts div { background: var(--bg); padding: 18px; display: grid; gap: 4px; }
.s-facts dt { font-size: 13.5px; color: var(--muted); }
.s-facts dd { font-family: var(--display); font-size: 26px; line-height: 1.1; }

/* Призыв */
.s-cta-band { padding: 72px 0; background: var(--tint); text-align: center; }
.s-cta-in { display: grid; gap: 14px; justify-items: center; }
.s-cta-band h2 { font-family: var(--display); font-size: var(--h2-size); font-weight: var(--h2-weight); line-height: 1.05; letter-spacing: var(--h2-track); }
.s-cta-band p { color: var(--muted); max-width: 40ch; }
.s-cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* Контакты */
.contacts-grid { display: grid; gap: 32px; }
.c-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.c-list li { display: flex; gap: 14px; align-items: flex-start; }
.c-list .i { color: var(--accent); margin-top: 2px; }
.c-list b { display: block; font-weight: 600; font-size: 17px; line-height: 1.4; }
.c-list a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.c-list .c-strong { color: var(--ink); font-size: 17px; text-decoration: none; }
.c-list .c-strong:hover { color: var(--accent); }
.hours-card { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); padding: 22px; display: grid; gap: 10px; align-content: start; }
.hours-card h3 { font-family: var(--display); font-size: 22px; }
.hours-card .s-open { font-size: 14.5px; }
.h-list { display: grid; }
.h-list div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.h-list dt { color: var(--muted); }
.h-list dd { font-weight: 600; }
.h-list .is-today { background: var(--accent); color: var(--on-accent); }
.h-list .is-today dt { color: inherit; opacity: .85; }

/* Подвал */
.s-foot { padding: 52px 0 28px; border-top: 1px solid var(--line); font-size: 14.5px; }
.s-foot-in { display: grid; gap: 26px; }
.s-foot-brand { display: grid; gap: 4px; justify-items: start; }
.s-foot-logo { width: 52px; height: 52px; margin-bottom: 6px; }
.s-foot-name { font-family: var(--display); font-size: 26px; line-height: 1.15; }
.s-foot-meta { color: var(--muted); }
.s-foot-links, .s-foot-contact { display: grid; gap: 8px; justify-items: start; }
.s-foot-links a, .s-foot-contact a { text-decoration: none; color: var(--ink); }
.s-foot-links a:hover, .s-foot-contact a:hover { color: var(--accent); }
.s-foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.made-on { display: inline-flex; gap: 5px; align-items: center; padding: 7px 13px; border-radius: 999px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); }
.made-on b { color: var(--ink); font-family: system-ui, sans-serif; font-weight: 700; }
.made-on:hover { color: var(--ink); border-color: var(--accent); }

/* Нижняя панель записи (телефон) */
.s-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.s-dock .s-btn { flex: 1; }
.s-dock-call { width: 56px; height: 56px; flex: none; border-radius: var(--r-btn); display: grid; place-items: center; border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); color: var(--ink); }

@media (min-width: 720px) {
  .gal { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gal-n3 .gal-item:first-child, .gal-n7 .gal-item:first-child { grid-column: auto; aspect-ratio: 4 / 5; }
  .gal-n5 .gal-item:first-child { grid-column: auto; grid-row: span 2; aspect-ratio: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .s-facts { grid-template-columns: repeat(4, 1fr); }
  .s-foot-in { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 900px) {
  body.site { padding-bottom: 0; }
  .s-dock { display: none; }
  .s-nav-cta { display: inline-flex; }
  .s-wrap { padding: 0 32px; }
  .s-nav-in { padding: 0 32px; height: 76px; }
  .site { --nav-h: 76px; }
  .s-brand { font-size: 21px; }
  .s-sec { padding: 104px 0; }
  .s-head { margin-bottom: 44px; }
  .s-cats { margin: -6px 0 28px; padding: 10px 0; }
  .svc-hit { padding: 18px 0; }
  .team-scroll { padding: 0 32px 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); overflow: visible; }
  .contacts-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
  .s-cta-band { padding: 110px 0; }
}
@media (min-width: 1040px) {
  .s-links { display: flex; gap: 28px; margin: 0 auto; }
  .s-links a { text-decoration: none; font-size: 15px; font-weight: 500; opacity: .85; transition: opacity .15s, color .15s; }
  .s-links a:hover { opacity: 1; color: var(--accent); }
  .s-nav-end { margin-left: 0; }
  .s-burger { display: none; }
  .s-menu { display: none !important; }
}

/* =========================================================
   Запись: нижний лист
   ========================================================= */
.bk { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; font-family: var(--body); }
.bk[hidden] { display: none; }
.bk-backdrop { position: absolute; inset: 0; background: rgba(12, 10, 18, .52); animation: fade .2s ease-out; }
.bk-sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 94vh; max-height: 94dvh; display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink); border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.25);
  animation: sheet-up .28s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 640px) {
  .bk { align-items: center; padding: 24px; }
  .bk-sheet { border-radius: 26px; max-height: min(820px, 92vh); }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.bk-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 6px; padding: 12px 12px 6px; }
.bk-head h2 { text-align: center; font-family: var(--display); font-size: 20px; line-height: 1.2; }
.bk-icon { width: 44px; height: 44px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--ink) 6%, transparent); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.bk-icon[hidden] { visibility: hidden; display: grid; }
.bk-progress { height: 3px; margin: 6px 20px 0; border-radius: 2px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.bk-progress i { display: block; height: 100%; width: 25%; background: var(--accent); border-radius: 2px; transition: width .3s; }
.bk-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 20px; }
.bk-foot { padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); display: grid; gap: 8px; background: var(--surface); border-radius: 0 0 26px 26px; }
.bk-foot:empty { display: none; }
.bk-sum { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.bk-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bk-foot .s-btn { width: 100%; }
.bk-foot .s-btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.bk-hint { color: var(--muted); font-size: 14.5px; }
.bk-cat { font-size: 13px; font-weight: 700; color: var(--muted); margin: 16px 0 6px; }
.bk-cat:first-child { margin-top: 0; }

.bk-opt { position: relative; display: block; }
.bk-opt input { position: absolute; opacity: 0; pointer-events: none; }
.bk-opt-box {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; margin-bottom: 8px; border-radius: 16px;
  border: 1.5px solid var(--line); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.bk-opt-box::before {
  content: ''; width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent);
  background: var(--surface) center / 14px no-repeat;
}
.bk-opt input[type=radio] + .bk-opt-box::before { border-radius: 50%; }
.bk-opt input:checked + .bk-opt-box { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.bk-opt input:checked + .bk-opt-box::before {
  border-color: var(--accent); background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' 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");
}
.bk-opt input:focus-visible + .bk-opt-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-opt-main { flex: 1; min-width: 0; display: grid; }
.bk-opt-main b { font-weight: 600; line-height: 1.3; }
.bk-opt-main small { color: var(--muted); font-size: 13.5px; }
.bk-opt-end { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 15px; }
.bk-ava { width: 46px; height: 46px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center; background: var(--tint); color: var(--accent); font-family: var(--display); font-size: 18px; }
.bk-ava img { width: 100%; height: 100%; object-fit: cover; }
.bk-staff .bk-opt-box::before { display: none; }
.bk-staff .bk-opt input:checked + .bk-opt-box .bk-ava { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }

.bk-days { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 12px; scrollbar-width: none; scroll-snap-type: x proximity; }
.bk-days::-webkit-scrollbar { display: none; }
.bk-day {
  flex: 0 0 62px; scroll-snap-align: start; display: grid; justify-items: center; gap: 0; padding: 9px 0 10px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
}
.bk-day small { font-size: 12px; color: var(--muted); }
.bk-day b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.bk-day span { font-size: 10.5px; color: var(--muted); height: 14px; }
.bk-day[disabled] { opacity: .35; cursor: default; }
.bk-day.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bk-day.is-on small, .bk-day.is-on span { color: inherit; opacity: .85; }
.bk-part { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 8px; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.bk-slot {
  height: 46px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer;
  font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums;
}
.bk-slot:hover { border-color: var(--accent); }
.bk-slot.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bk-empty { padding: 26px 10px; text-align: center; color: var(--muted); }
.bk-load { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.bk-load i { height: 46px; border-radius: 13px; background: color-mix(in srgb, var(--ink) 6%, transparent); animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.bk-recap { border-radius: 18px; background: color-mix(in srgb, var(--accent) 7%, var(--bg)); padding: 14px 16px; margin-bottom: 18px; display: grid; gap: 4px; }
.bk-recap .when { font-family: var(--display); font-size: 20px; line-height: 1.25; }
.bk-recap .what { font-size: 14.5px; color: var(--muted); }
.bk-field { display: grid; gap: 6px; margin-bottom: 14px; }
.bk-field label { font-size: 14px; font-weight: 600; }
.bk-input {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  font: 400 16px/1.4 var(--body); color: var(--ink);
}
textarea.bk-input { min-height: 84px; resize: vertical; }
.bk-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.bk-input.is-bad { border-color: #C2334D; }
.bk-err { color: #C2334D; font-size: 13.5px; }
.bk-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-note { font-size: 13px; color: var(--muted); text-align: center; }
.bk-alert { padding: 12px 14px; border-radius: 14px; background: #FBE5E9; color: #9F1F37; font-size: 14.5px; margin-bottom: 14px; }

.bk-done { text-align: center; padding: 10px 4px 6px; display: grid; justify-items: center; gap: 10px; }
.bk-done-mark { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.bk-done-mark .i { width: 38px; height: 38px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.bk-done h3 { font-family: var(--display); font-size: 26px; line-height: 1.2; }
.bk-done p { color: var(--muted); max-width: 32ch; }
.bk-done .bk-recap { width: 100%; text-align: left; margin: 8px 0 0; }

/* Лайтбокс */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(10, 8, 14, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 12px; object-fit: contain; }
.lb-close { position: fixed; top: 14px; right: 14px; background: rgba(255,255,255,.14); color: #fff; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
