/* =========================================================
   Стилі спільних блоків kit.js (запис, прайс, галерея, меню …).
   Кожне демо задає свої кольори/шрифти/заокруглення через змінні:

   --k-bg --k-surface --k-surface-2   фон сторінки, картки, бокова панель
   --k-ink --k-muted                  текст
   --k-line --k-line-2                лінії
   --k-accent --k-accent-2 --k-on-accent --k-tint   акцент, наведення, текст на акценті, світлий відтінок
   --k-r --k-r-sm                     заокруглення великих і малих елементів
   --k-head --k-head-w --k-head-tt --k-head-ls      шрифт заголовків
   --k-mono --k-ok --k-off
   (Barbershop має власні стилі й цей файл не підключає.)
   ========================================================= */
:root {
  --k-bg: #fff; --k-surface: #fff; --k-surface-2: #f5f5f5; --k-ink: #222; --k-muted: #666;
  --k-line: #e5e5e5; --k-line-2: #d4d4d4; --k-accent: #222; --k-accent-2: #000; --k-on-accent: #fff; --k-tint: rgba(0, 0, 0, .06);
  --k-r: 18px; --k-r-sm: 999px; --k-head: inherit; --k-head-w: 700; --k-head-tt: none; --k-head-ls: -0.01em;
  --k-mono: 'JetBrains Mono', ui-monospace, monospace; --k-ok: #2F9E5B; --k-off: #D2603A; --k-ease: cubic-bezier(.2, .8, .2, 1);
}
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-f { fill: currentColor; stroke: none; }
@keyframes k-up { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Живий статус ---------- */
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--k-muted); }
.status::before { content: ''; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--k-off); box-shadow: 0 0 0 4px color-mix(in srgb, var(--k-off) 18%, transparent); }
.status.is-open::before { background: var(--k-ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--k-ok) 18%, transparent); animation: k-pulse 2.4s ease-in-out infinite; }
.status b { color: var(--k-ink); font-weight: 600; }
@keyframes k-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--k-ok) 6%, transparent); } }

/* ---------- Мобільне меню ---------- */
.burger { display: none; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--k-line-2); border-radius: var(--k-r-sm); background: transparent; color: inherit; cursor: pointer; }
.burger .i { width: 22px; height: 22px; }
.drawer { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; padding: 18px 24px calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--k-bg); color: var(--k-ink); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .3s var(--k-ease), visibility 0s linear .3s; overflow-y: auto; }
.drawer.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--k-ease), visibility 0s; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; }
.drawer-top .burger { display: grid; }
.drawer nav { display: grid; margin: 24px 0 auto; }
.drawer nav a { padding: 13px 0; border-bottom: 1px solid var(--k-line); font: var(--k-head-w) 28px/1.1 var(--k-head); text-transform: var(--k-head-tt); letter-spacing: var(--k-head-ls); text-decoration: none; color: inherit; }
.drawer nav a:hover { color: var(--k-accent); }
.drawer .status { margin: 22px 0 16px; }

/* ---------- Картка «Nächster freier Termin» ---------- */
.next-slot { display: inline-flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--k-r); background: var(--k-surface); color: var(--k-ink); text-decoration: none; box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .45); transition: transform .25s var(--k-ease); }
.next-slot:hover { transform: translateY(-3px); }
.next-slot .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--k-accent); color: var(--k-on-accent); }
.next-slot small { display: block; color: var(--k-muted); font: 600 10.5px/1.2 var(--k-mono); letter-spacing: .1em; text-transform: uppercase; }
.next-slot b { display: block; margin-top: 3px; font: var(--k-head-w) 18px/1.1 var(--k-head); text-transform: var(--k-head-tt); }

/* ---------- Прайс з вкладками ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--k-line); }
.tab { position: relative; padding: 14px 16px; border: 0; background: none; color: var(--k-muted); font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1; cursor: pointer; transition: color .2s; }
.tab::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--k-accent); transform: scaleX(0); transition: transform .3s var(--k-ease); }
.tab:hover { color: var(--k-ink); }
.tab[aria-selected="true"] { color: var(--k-ink); }
.tab[aria-selected="true"]::after { transform: none; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.price { display: flex; align-items: baseline; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--k-line); animation: k-up .45s var(--k-ease) both; }
.price h3 { font: var(--k-head-w) 19px/1.2 var(--k-head); text-transform: var(--k-head-tt); letter-spacing: var(--k-head-ls); margin: 0; }
.price .hot { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: var(--k-r-sm); background: var(--k-accent); color: var(--k-on-accent); font: 600 10px/1.2 var(--k-mono); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.price .hot--alt { background: var(--k-tint); color: var(--k-ink); }
.price small { display: block; margin-top: 5px; color: var(--k-muted); font-size: 14px; line-height: 1.4; }
.price i { flex: 1; min-width: 20px; border-bottom: 1px dotted var(--k-line-2); transform: translateY(-6px); }
.price .dur { color: var(--k-muted); font: 500 12px/1 var(--k-mono); white-space: nowrap; }
.price b { font: var(--k-head-w) 20px/1 var(--k-head); color: var(--k-accent); white-space: nowrap; }
.link { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--k-accent); font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1; text-decoration: none; cursor: pointer; }
.link:hover { color: var(--k-accent-2); }
.link .i { width: 15px; height: 15px; transition: transform .2s var(--k-ease); }
.link:hover .i { transform: translateX(3px); }

/* ---------- Онлайн-запис ---------- */
.book { display: grid; grid-template-columns: 1.55fr .95fr; overflow: hidden; border: 1px solid var(--k-line); border-radius: var(--k-r); background: var(--k-surface); }
.book-main { min-width: 0; padding: 32px; border-right: 1px solid var(--k-line); }
.step { min-width: 0; margin: 0 0 30px; padding: 0; border: 0; }
.step:last-child { margin-bottom: 0; }
.step legend { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 0; font: var(--k-head-w) 19px/1.1 var(--k-head); text-transform: var(--k-head-tt); letter-spacing: var(--k-head-ls); }
.step legend span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--k-tint); color: var(--k-accent); font: 600 11px/1 var(--k-mono); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.svc { position: relative; display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--k-line-2); border-radius: calc(var(--k-r) * .6); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.svc:hover { border-color: var(--k-muted); }
.svc b { padding-right: 22px; font: var(--k-head-w) 15px/1.2 var(--k-head); text-transform: var(--k-head-tt); overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.svc span { color: var(--k-muted); font: 500 12px/1.2 var(--k-mono); }
.svc[aria-pressed="true"] { border-color: var(--k-accent); background: var(--k-tint); }
.svc[aria-pressed="true"]::after { content: '✓'; position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--k-accent); color: var(--k-on-accent); font: 700 11px/1 system-ui, sans-serif; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips[hidden] { display: none; }
.chips + .chips { margin-top: 12px; }
.chip { padding: 11px 16px; border: 1px solid var(--k-line-2); border-radius: var(--k-r-sm); background: transparent; color: inherit; font-family: inherit; font-weight: 500; font-size: 14px; line-height: 1; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.chip small { margin-left: 6px; color: var(--k-muted); font-size: 12px; }
.chip:hover { border-color: var(--k-muted); }
.chip[aria-pressed="true"] { border-color: var(--k-accent); background: var(--k-accent); color: var(--k-on-accent); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .75; }
.chip--num { min-width: 46px; justify-content: center; }
.days { display: flex; gap: 8px; margin-bottom: 14px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--k-line-2) transparent; }
.day { flex: none; display: grid; justify-items: center; gap: 4px; width: 64px; padding: 11px 0 9px; border: 1px solid var(--k-line-2); border-radius: calc(var(--k-r) * .6); background: transparent; color: inherit; font-family: inherit; cursor: pointer; transition: border-color .2s, background-color .2s; }
.day small { color: var(--k-muted); font: 600 10px/1 var(--k-mono); letter-spacing: .06em; text-transform: uppercase; }
.day b { font: var(--k-head-w) 21px/1 var(--k-head); }
.day:hover:not(:disabled) { border-color: var(--k-muted); }
.day[aria-pressed="true"] { border-color: var(--k-accent); background: var(--k-accent); color: var(--k-on-accent); }
.day[aria-pressed="true"] small { color: inherit; opacity: .8; }
.day:disabled { opacity: .35; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.slot { padding: 11px 0; border: 1px solid var(--k-line-2); border-radius: calc(var(--k-r) * .45); background: transparent; color: inherit; font: 500 13px/1 var(--k-mono); cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.slot:hover:not(:disabled) { border-color: var(--k-accent); color: var(--k-accent); }
.slot:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.slot[aria-pressed="true"] { border-color: var(--k-accent); background: var(--k-accent); color: var(--k-on-accent); }
.empty-note { grid-column: 1 / -1; padding: 16px; border: 1px dashed var(--k-line-2); border-radius: calc(var(--k-r) * .5); color: var(--k-muted); font-size: 14px; }

.book-side { padding: 32px; background: var(--k-surface-2); }
.book-side h3 { margin: 0 0 18px; font: var(--k-head-w) 22px/1.1 var(--k-head); text-transform: var(--k-head-tt); }
.sum { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px dashed var(--k-line-2); font-size: 14.5px; }
.sum dt { color: var(--k-muted); font: 500 11px/1.9 var(--k-mono); letter-spacing: .08em; text-transform: uppercase; }
.sum dd { margin: 0; text-align: right; }
.sum dd.is-empty { opacity: .45; }
.sum .total { font: var(--k-head-w) 22px/1 var(--k-head); color: var(--k-accent); }
.field { display: grid; gap: 6px; margin-bottom: 14px; color: var(--k-muted); font-family: inherit; font-weight: 600; font-size: 12px; line-height: 1.2; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--k-line-2); border-radius: calc(var(--k-r) * .45); background: var(--k-surface); color: var(--k-ink); font-family: inherit; font-weight: 400; font-size: 15px; line-height: 1.3; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--k-accent); box-shadow: 0 0 0 3px var(--k-tint); }
.field [aria-invalid="true"] { border-color: var(--k-off); }
.err { min-height: 20px; margin: -4px 0 10px; color: var(--k-off); font-size: 13.5px; }
.tiny { margin-top: 12px; color: var(--k-muted); font-size: 12.5px; text-align: center; }

.book-done { display: grid; justify-items: center; gap: 16px; padding: 60px 28px; border: 1px solid var(--k-accent); border-radius: var(--k-r); background: var(--k-surface); text-align: center; animation: k-up .5s var(--k-ease) both; }
.book-done .tick { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--k-accent); color: var(--k-on-accent); box-shadow: 0 0 0 8px var(--k-tint); }
.book-done .tick .i { width: 34px; height: 34px; stroke-width: 2.2; }
.book-done h3 { margin: 0; font: var(--k-head-w) clamp(28px, 4vw, 40px)/1.1 var(--k-head); text-transform: var(--k-head-tt); }
.book-done p { max-width: 34em; color: var(--k-muted); }
.book-done .sum { width: min(100%, 420px); margin: 6px 0 4px; padding: 18px 20px; border: 1px solid var(--k-line); border-radius: calc(var(--k-r) * .6); text-align: left; }
.book-done .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Галерея ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; aspect-ratio: 3 / 4; border-radius: calc(var(--k-r) * .8); background: var(--k-surface-2); animation: k-up .45s var(--k-ease) both; }
.gallery figure.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery figure.wide { grid-column: span 2; aspect-ratio: auto; }
.gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--k-ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; gap: 10px; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); color: #fff; font-weight: 600; font-size: 14px; pointer-events: none; }
.gallery figcaption::after { content: '+'; font: 400 22px/1 system-ui, sans-serif; }

.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 12, 12, .94); color: #f5f5f5; }
.lb::backdrop { background: rgba(0, 0, 0, .6); }
.lb[open] { display: grid; place-items: center; }
.lb figure { display: grid; justify-items: center; gap: 14px; margin: 0; }
.lb img { max-width: min(92vw, 1100px); max-height: 80vh; object-fit: contain; border-radius: 6px; animation: k-up .35s var(--k-ease) both; }
.lb figcaption { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.lb figcaption small { color: #aaa; font: 500 11px/1 var(--k-mono); letter-spacing: .06em; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(20, 20, 20, .7); color: #fff; cursor: pointer; transition: border-color .2s, background-color .2s; }
.lb-btn:hover { border-color: #fff; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { top: 50%; left: 18px; transform: translateY(-50%); }
.lb-next { top: 50%; right: 18px; transform: translateY(-50%); }

/* ---------- Відгуки ---------- */
.rating { display: flex; align-items: center; gap: 16px; }
.rating .score { font: var(--k-head-w) 52px/1 var(--k-head); color: var(--k-accent); }
.rating small { display: block; margin: 6px 0 8px; color: var(--k-muted); font-size: 13px; }
.stars { display: inline-flex; gap: 2px; color: var(--k-star, var(--k-accent)); }
.stars .i { width: 16px; height: 16px; }
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; padding-bottom: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review { display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--k-line); border-radius: var(--k-r); background: var(--k-surface); scroll-snap-align: start; }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.review footer { display: flex; align-items: center; gap: 12px; margin-top: auto; color: var(--k-muted); font-size: 13.5px; }
.review footer b { display: block; color: var(--k-ink); font-weight: 600; }
.review .av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--k-tint); color: var(--k-accent); font-weight: 700; }
.slider-nav { display: flex; gap: 10px; margin-top: 22px; }
.slider-nav button { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--k-line-2); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: border-color .2s, color .2s; }
.slider-nav button:hover { border-color: var(--k-accent); color: var(--k-accent); }

/* ---------- Сертифікат ---------- */
.vform .mini { margin-bottom: 10px; color: var(--k-muted); font: 600 11px/1 var(--k-mono); letter-spacing: .1em; text-transform: uppercase; }
.vform .chips { margin-bottom: 18px; }
.vform .field { max-width: 360px; }
.vcard { position: relative; aspect-ratio: 1.6; overflow: hidden; padding: 30px 34px; border-radius: var(--k-r); background: var(--k-accent); color: var(--k-on-accent); transform: rotate(-2.5deg); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .55); }
.vcard::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent); animation: k-shine 5s ease-in-out infinite; }
@keyframes k-shine { 60%, 100% { left: 130%; } }
.vcard small { font: 600 11px/1 var(--k-mono); letter-spacing: .25em; text-transform: uppercase; opacity: .8; }
.vcard .amt { display: block; margin: 16px 0 6px; font: var(--k-head-w) clamp(46px, 7vw, 74px)/1 var(--k-head); }
.vcard .for { font-size: 19px; opacity: .9; }
.vcard .vbrand { position: absolute; left: 34px; bottom: 26px; font: var(--k-head-w) 16px/1 var(--k-head); text-transform: var(--k-head-tt); }
.vcard .vcode { position: absolute; right: 34px; bottom: 26px; font: 500 11px/1 var(--k-mono); opacity: .7; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--k-line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: var(--k-head-w) 18px/1.3 var(--k-head); text-transform: var(--k-head-tt); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--k-accent); font: 400 26px/1 system-ui, sans-serif; transition: transform .25s var(--k-ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 64ch; padding-bottom: 22px; color: var(--k-muted); }

/* ---------- Години роботи: «Heute» ---------- */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 13px 0; border-bottom: 1px solid var(--k-line); }
.hours td:last-child { text-align: right; font-family: var(--k-mono); font-size: 14px; }
.hours tr.is-today td { font-weight: 600; }
.hours tr.is-today td:first-child::after { content: attr(data-today); margin-left: 10px; padding: 3px 8px; border-radius: var(--k-r-sm); background: var(--k-accent); color: var(--k-on-accent); font: 600 10px/1 var(--k-mono); letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }

/* ---------- Нижня панель на телефоні ---------- */
.mbar { display: none; }

/* ---------- Поява при прокрутці (вмикає kit.js) ---------- */
.js-rv .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--k-ease), transform .8s var(--k-ease); }
.js-rv .rv.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .burger { display: grid; }
  .prices { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; }
  .book-main { border-right: 0; border-bottom: 1px solid var(--k-line); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.4fr; padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--k-line); background: color-mix(in srgb, var(--k-bg) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 66px; color: var(--k-ink); font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1; text-decoration: none; }
  .mbar a + a { border-left: 1px solid var(--k-line); }
  .mbar .main { background: var(--k-accent); color: var(--k-on-accent); }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery figure.big, .gallery figure.wide { grid-column: span 2; }
  .reviews { grid-auto-columns: 86%; }
  .book-main, .book-side { padding: 24px 16px; }
  .svc-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .svc { padding: 12px; }
  .svc b { padding-right: 16px; font-size: 13.5px; }
  .svc[aria-pressed="true"]::after { top: 8px; right: 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}
@media (max-width: 560px) {
  .price { flex-wrap: wrap; row-gap: 6px; }
  .price > div:first-child { flex: 1 1 100%; }
  .price i { display: none; }
  .price b { margin-left: auto; }
  .vcard { padding: 22px 24px; }
  .vcard .vbrand { left: 24px; bottom: 20px; font-size: 14px; }
  .vcard .vcode { display: none; }
}
