/* ==========================================================================
   Salon pages shared by every layout: services (tickets), team, gallery, booking, confirmation.
   Tokens only (theme colours / fonts), so they work with every theme; the "vitrina" layout adds its world on top.
   ========================================================================== */

.salon-h1 { font-family: var(--font-display, "Archivo"), system-ui, sans-serif; }

/* ---------- Price ticket ---------- */
.ticket {
  --cut: calc(100% - var(--stub));
  --stub: 136px;
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--stub);
  background: var(--paper); color: var(--text); border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -28px color-mix(in oklab, var(--ink) 90%, transparent);
  -webkit-mask: radial-gradient(circle 9px at var(--cut) 0, transparent 98%, var(--ink) 100%) top / 100% 51% no-repeat,
                radial-gradient(circle 9px at var(--cut) 100%, transparent 98%, var(--ink) 100%) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 9px at var(--cut) 0, transparent 98%, var(--ink) 100%) top / 100% 51% no-repeat,
                radial-gradient(circle 9px at var(--cut) 100%, transparent 98%, var(--ink) 100%) bottom / 100% 51% no-repeat;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.ticket__main { padding: 18px 20px; display: grid; gap: 6px; align-content: center; min-width: 0; }
.ticket__name { font-size: 1.125rem; font-weight: 680; line-height: 1.2; letter-spacing: -.01em; }
.ticket__text { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.ticket__stub {
  position: relative; display: grid; align-content: center; justify-items: start; gap: 2px;
  padding: 16px 16px 16px 20px; border-left: 1.5px dashed var(--line-strong);
}
.ticket__time { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ticket__price {
  font-family: var(--font-display, "Archivo"), system-ui, sans-serif; font-weight: 800;
  font-size: 1.75rem; line-height: 1; color: var(--accent-ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ticket__price small { font-family: var(--font-body); font-size: .75rem; font-weight: 500; color: var(--muted); }
.ticket__book {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 0;
  font-size: .875rem; font-weight: 650; text-decoration: none; color: var(--text);
}
.ticket__book .i { transition: transform .35s var(--ease); }
.ticket__book::after { content: ""; position: absolute; inset: 0; } /* whole stub is the link */
.ticket:has(.ticket__book:hover) { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-strong), 0 26px 50px -28px color-mix(in oklab, var(--ink) 95%, transparent); }
.ticket:has(.ticket__book:hover) .ticket__book .i { transform: translateX(4px); }
@media (max-width: 420px) {
  .ticket { --stub: 112px; }
  .ticket__main { padding: 16px 14px 16px 16px; }
  .ticket__stub { padding: 14px 12px 14px 16px; }
  .ticket__price { font-size: 1.5rem; }
}

/* ---------- Services page ---------- */
.svc { display: grid; gap: clamp(56px, 8vw, 104px); padding-bottom: clamp(80px, 12vw, 160px); }
.svc__group { display: grid; gap: 24px; scroll-margin-top: calc(var(--hd-h) + 24px); }
.svc__head { display: grid; gap: 18px; align-items: end; }
.svc__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.svc__name { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; line-height: .95; letter-spacing: -.01em; }
.svc__text { color: var(--muted); margin-top: 8px; max-width: 44ch; }
.svc__tickets { display: grid; gap: 12px; }
@media (min-width: 760px) {
  .svc__head { grid-template-columns: minmax(0, 340px) 1fr; gap: 32px; }
  .svc__img img { aspect-ratio: 4 / 3; }
  .svc__tickets { grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* ---------- Team page ---------- */
.crew { display: grid; gap: clamp(56px, 8vw, 112px); padding-bottom: clamp(80px, 12vw, 160px); }
.crew__person { display: grid; gap: 24px; align-items: center; scroll-margin-top: calc(var(--hd-h) + 24px); }
.crew__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.crew__name { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; line-height: .9; letter-spacing: -.01em; }
.crew__role { color: var(--accent-ink); font-weight: 600; margin-top: 8px; }
.crew__bio { margin-top: 18px; font-size: var(--fs-lead); color: var(--ink-2); max-width: 44ch; }
.crew__facts { display: grid; margin: 28px 0 0; }
.crew__facts > div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.crew__facts dt { font-size: .8125rem; color: var(--muted); }
.crew__facts dd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.crew__facts dd b { color: var(--accent-ink); }
.crew__day { font-variant-numeric: tabular-nums; white-space: nowrap; }
.crew__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
@media (min-width: 900px) {
  .crew__person { grid-template-columns: minmax(0, .9fr) 1fr; gap: clamp(32px, 6vw, 96px); }
  .crew__person:nth-child(even) .crew__photo { order: 2; }
  .crew__facts > div { grid-template-columns: 180px 1fr; }
}

/* ---------- Albums ---------- */
.albums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.album-card a { position: relative; display: grid; text-decoration: none; color: var(--hd-text); overflow: hidden; border-radius: 6px; isolation: isolate; background: var(--stage-bg); }
.album-card__img { display: block; aspect-ratio: 4 / 5; }
.album-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.album-card a::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, color-mix(in oklab, var(--ink) 88%, transparent) 0%, transparent 55%); pointer-events: none; }
.album-card__title, .album-card__text, .album-card__count { position: absolute; left: 16px; right: 16px; z-index: 1; }
.album-card__title { bottom: 38px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 2rem); line-height: 1; }
.album-card__text { display: none; }
.album-card__count { bottom: 14px; font-size: .8125rem; opacity: .75; }
@media (hover: hover) { .album-card a:hover img { transform: scale(1.05); } }
@media (min-width: 900px) {
  .albums { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .albums--page { grid-template-columns: repeat(3, 1fr); }
  .albums--page .album-card__img { aspect-ratio: 4 / 4.6; }
  .albums--page .album-card__title { bottom: 62px; }
  .albums--page .album-card__text { display: block; bottom: 38px; font-size: .9375rem; opacity: .85; }
}
.albums--page { padding-bottom: clamp(80px, 12vw, 160px); }
.albums--more { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 599px) { .albums--more { grid-template-columns: 1fr 1fr; } }

.photos { columns: 1; column-gap: 12px; padding-bottom: clamp(40px, 6vw, 80px); }
.photos__item { break-inside: avoid; margin-bottom: 12px; }
.photos__item a { display: block; border-radius: 6px; overflow: hidden; }
.photos__item img { width: 100%; height: auto; transition: transform 1s var(--ease); }
@media (hover: hover) { .photos__item a:hover img { transform: scale(1.03); } }
.photos__cap { font-size: .875rem; color: var(--muted); margin-top: 6px; }
@media (min-width: 600px) { .photos { columns: 2; } }
@media (min-width: 1100px) { .photos { columns: 3; column-gap: 14px; } }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: color-mix(in oklab, var(--ink) 96%, transparent); color: var(--hd-text);
}
.lightbox::backdrop { background: color-mix(in oklab, var(--ink) 80%, transparent); }
.lightbox__fig { position: absolute; inset: 56px 12px 72px; display: grid; place-items: center; gap: 10px; margin: 0; }
.lightbox__fig img { max-width: 100%; max-height: calc(100dvh - 160px); object-fit: contain; border-radius: 4px; }
.lightbox__fig figcaption { font-size: .9375rem; color: var(--ink-2); text-align: center; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--paper) 80%, transparent); color: var(--hd-text); }
.lightbox__btn:hover { background: var(--paper); }
.lightbox__btn--close { top: 12px; right: 12px; }
.lightbox__btn--prev { left: 12px; bottom: 14px; }
.lightbox__btn--next { right: 12px; bottom: 14px; }
.lightbox__count { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .lightbox__fig { inset: 40px 96px; }
  .lightbox__fig img { max-height: calc(100dvh - 120px); }
  .lightbox__btn--prev, .lightbox__btn--next { top: 50%; bottom: auto; margin-top: -26px; }
  .lightbox__btn--prev { left: 24px; }
  .lightbox__btn--next { right: 24px; }
  .lightbox__btn--close { top: 20px; right: 24px; }
}
.lightbox-open body { overflow: hidden; }

/* ==========================================================================
   Booking
   ========================================================================== */
.bk { display: grid; gap: 16px; padding-bottom: clamp(80px, 12vw, 160px); }
.bk__steps { display: grid; gap: 12px; min-width: 0; counter-reset: bkstep; }
.bk-step { counter-increment: bkstep; }
.bk-step__n::before { content: counter(bkstep); }
.bk-step {
  margin: 0; padding: 0; border: 0; min-width: 0;
  background: var(--paper); border-radius: 8px; box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .4s var(--ease), opacity .4s var(--ease);
}
.bk-step.is-open { box-shadow: 0 0 0 1.5px var(--line-strong); }
.bk-step[disabled] { opacity: .5; }
.bk-step__head {
  float: left; width: 100%; /* legend as a full-width row */
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 14px;
  padding: 18px 20px;
}
.bk-step__head + * { clear: both; }
.bk-step__n {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; grid-row: span 2;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--muted);
}
.bk-step.is-open .bk-step__n { background: var(--gold); color: var(--on-accent); box-shadow: none; }
.bk-step.is-done .bk-step__n { color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--gold); }
.bk-step__title { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.1; }
.bk-step__value { grid-column: 2; font-size: .9375rem; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-step__value:empty { display: none; }
.bk-step.is-open .bk-step__value { display: none; }
.bk-step__change {
  grid-column: 3; grid-row: 1 / span 2; display: none;
  height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--accent-ink); font-weight: 650;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.bk-step.is-done:not(.is-open) .bk-step__change { display: inline-block; }
.bk-step__change:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.bk-step__body { display: none; padding: 0 20px 22px; }
.bk-step.is-open .bk-step__body { display: block; animation: bk-in .45s var(--ease); }
@keyframes bk-in { from { opacity: 0; transform: translateY(6px); } }

/* 1. services */
.bk-group + .bk-group { margin-top: 20px; }
.bk-group__name { font-size: .875rem; color: var(--muted); margin-bottom: 8px; }
.bk-options { display: grid; gap: 8px; }
@media (min-width: 640px) { .bk-options { grid-template-columns: 1fr 1fr; } }
.bk-svc, .bk-person { position: relative; cursor: pointer; display: block; }
.bk-svc input, .bk-person input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bk-svc__box {
  display: grid; gap: 4px; min-height: 64px; padding: 12px 16px; border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, background-color .2s;
}
.bk-svc__name { font-weight: 640; line-height: 1.25; }
.bk-svc__meta { display: flex; justify-content: space-between; gap: 10px; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-svc__meta b { color: var(--accent-ink); font-weight: 700; }
.bk-svc:hover .bk-svc__box, .bk-person:hover .bk-person__box { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.bk-svc input:checked + .bk-svc__box, .bk-person input:checked + .bk-person__box { box-shadow: inset 0 0 0 2px var(--gold); background: color-mix(in oklab, var(--gold) 10%, transparent); }
.bk-svc input:focus-visible + .bk-svc__box, .bk-person input:focus-visible + .bk-person__box { outline: 2px solid var(--gold); outline-offset: 3px; }

/* 2. specialists */
.bk-people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .bk-people { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .bk-people { grid-template-columns: repeat(3, 1fr); } }
.bk-person__box { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 16px 10px 14px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line); height: 100%; transition: box-shadow .2s, background-color .2s; }
.bk-person__face { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; margin-bottom: 8px; background: var(--chalk-2, var(--chalk)); color: var(--accent-ink); }
.bk-person__face img { width: 100%; height: 100%; object-fit: cover; }
.bk-person__face--any { box-shadow: inset 0 0 0 1.5px var(--gold); }
.bk-person__name { font-weight: 700; }
.bk-person__role { font-size: .8125rem; color: var(--muted); line-height: 1.3; }

/* place of work */
.bk-places { display: grid; gap: 8px; }
@media (min-width: 640px) { .bk-places { grid-template-columns: 1fr 1fr; } }
.bk-place { position: relative; cursor: pointer; display: block; }
.bk-place input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bk-place__box { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, background-color .2s; }
.bk-place__name { font-weight: 700; font-size: 1.0625rem; }
.bk-place__addr { color: var(--ink-2); font-size: .9375rem; }
.bk-place__days { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 6px; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-place:hover .bk-place__box { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.bk-place input:checked + .bk-place__box { box-shadow: inset 0 0 0 2px var(--gold); background: color-mix(in oklab, var(--gold) 10%, transparent); }
.bk-place input:focus-visible + .bk-place__box { outline: 2px solid var(--gold); outline-offset: 3px; }

/* places list (home, contact, footer) */
.places { display: grid; gap: 14px; }
.place { display: grid; gap: 6px; padding: 18px 20px; border-radius: 6px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.place__name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.place__addr { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; text-decoration: none; font-weight: 600; }
.place__map { color: var(--accent-ink); font-weight: 500; font-size: .875rem; }
.place .hours { margin-top: 6px; }
.place__book { justify-self: start; margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--accent-ink); text-decoration: none; }
@media (min-width: 760px) { .places--2 { grid-template-columns: 1fr 1fr; } }

/* 3. calendar + times */
.bk-when { gap: 20px; }
.bk-step.is-open .bk-when { display: grid; }
@media (min-width: 760px) { .bk-step.is-open .bk-when { grid-template-columns: minmax(0, 360px) 1fr; gap: 32px; align-items: start; } }
.cal__bar { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin-bottom: 8px; }
.cal__month { text-align: center; font-weight: 700; text-transform: capitalize; }
.cal__nav { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: none; color: var(--text); }
.cal__nav:hover:not([disabled]) { background: var(--chalk); }
.cal__nav[disabled] { opacity: .25; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; transition: opacity .25s; }
.cal__grid.is-loading { opacity: .45; }
.cal__wd { text-align: center; font-size: .75rem; color: var(--muted); padding: 4px 0 6px; }
.cal__day {
  position: relative; aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 6px; background: none; color: var(--muted);
  font-variant-numeric: tabular-nums; font-weight: 500; font-size: .9375rem;
}
.cal__day[disabled] { cursor: default; opacity: .38; text-decoration: none; }
.cal__day.is-past { opacity: .2; }
.cal__day.has-slots { color: var(--text); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line-strong); }
.cal__day.has-slots::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.cal__day.has-slots:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }
.cal__day.is-today { text-decoration: underline; text-underline-offset: 4px; }
.cal__day[aria-pressed="true"] { background: var(--gold); color: var(--on-accent); box-shadow: none; }
.cal__day[aria-pressed="true"]::after { background: var(--on-accent); }
.cal__hint { margin-top: 10px; font-size: .8125rem; color: var(--muted); }

.slots__date { font-weight: 700; text-transform: capitalize; margin-bottom: 12px; min-height: 1.5em; }
.slots__group + .slots__group { margin-top: 16px; }
.slots__label { font-size: .8125rem; color: var(--muted); margin-bottom: 8px; }
.slots__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot {
  height: 46px; border: 0; border-radius: 6px; background: var(--chalk); color: var(--text);
  font-weight: 650; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s, background-color .2s, transform .2s var(--ease);
}
.slot:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }
.slot:active { transform: scale(.96); }
.slot[aria-pressed="true"] { background: var(--gold); color: var(--on-accent); box-shadow: none; }
.slots__loading, .slots__none { color: var(--muted); padding: 10px 0; }

/* 4. details */
.bk-step .fields { margin-top: 2px; }
.bk-step .field input, .bk-step .field textarea { background: var(--chalk); }
.bk-step .field textarea { min-height: 72px; }

/* summary */
.bk-sum__box { padding: 22px 20px; background: var(--paper); border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.bk-sum__title { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; margin-bottom: 14px; }
.bk-sum__rows { display: grid; gap: 10px; margin: 0 0 14px; }
.bk-sum__rows > div { display: grid; gap: 2px; }
.bk-sum__rows dt { font-size: .8125rem; color: var(--muted); }
.bk-sum__rows dd { margin: 0; font-weight: 600; }
.bk-sum__price { padding-top: 12px; border-top: 1px solid var(--line); }
.bk-sum__price dd { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--accent-ink); }
.bk-sum__note { font-size: .8125rem; color: var(--muted); margin-bottom: 12px; }
@media (min-width: 1100px) {
  .bk { grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
  .bk-sum { position: sticky; top: calc(var(--hd-h) + 16px); }
}

/* ---------- Confirmation ---------- */
.booked { max-width: 820px; }
.done__mark--off { background: var(--paper); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.ticket--visit { --stub: 190px; width: 100%; margin: 10px 0 6px; }
.ticket--visit .ticket__main { gap: 12px; padding: 22px; }
.ticket--visit dt { font-size: .75rem; color: var(--muted); }
.ticket--visit dd { margin: 0; }
.ticket--visit .ticket__name { font-size: 1.25rem; }
.ticket--visit .ticket__stub { margin: 0; align-content: center; }
.ticket__date { font-size: .875rem; color: var(--ink-2); text-transform: capitalize; }
.ticket__clock { font-family: var(--font-display); font-weight: 800; font-size: 3.25rem; line-height: 1; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.ticket.is-cancelled { opacity: .55; }
.ticket.is-cancelled .ticket__clock { text-decoration: line-through; text-decoration-thickness: 3px; }
@media (max-width: 560px) {
  .ticket--visit { grid-template-columns: 1fr; --cut: 100%; -webkit-mask: none; mask: none; }
  .ticket--visit .ticket__stub { border-left: 0; border-top: 1.5px dashed var(--line-strong); padding: 18px 22px; }
}
.booked__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.booked__cancel { width: 100%; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.booked__h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.booked__cancel p { color: var(--muted); }

/* Hours table (footer, contact, home, menu) */
.hours { display: grid; margin: 0; }
.hours__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hours__row dt { color: var(--ink-2); }
.hours__row dd { margin: 0; font-weight: 600; }
.hours__row.is-today dt, .hours__row.is-today dd { color: var(--accent-ink); }
.hours--compact .hours__row { padding: 5px 0; font-size: .875rem; }

@media (prefers-reduced-motion: reduce) {
  .bk-step.is-open .bk-step__body { animation: none; }
}
