/* Публичная запись. Палитра, скругления и режим каталога принадлежат студии. */
body { background: var(--bg); }
.wrap { width: min(1192px, 100%); padding-inline: clamp(16px, 4.5vw, 60px); padding-top: max(22px, env(safe-area-inset-top)); }
.booking-mast, .studio-name, .my-bookings, .cover-meta, .steps li > *, .studio-info summary { display: flex; align-items: center; }
.booking-mast { justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--line2); margin-bottom: 18px; }
.studio-name { gap: 10px; min-width: 0; }
.studio-name :is(strong,h1) { margin: 0; line-height: 1.2; overflow-wrap: anywhere; font-size: 17px; font-weight: 680; letter-spacing: -.035em; }
.studio-name .logo { width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: var(--bg); box-shadow: none; font-size: 12px; }
.my-bookings { gap: 7px; flex: none; min-height: 40px; padding-inline: 11px; border-radius: 8px;
  border: 1px solid var(--line2); text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 590; }
.my-bookings:hover, .studio-info summary:hover, .booking-extra summary:hover { background: var(--s3); }
.my-bookings svg, .steps svg, .sum-empty svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.booking-cover { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; min-height: clamp(176px, 15vw, 216px);
  padding: clamp(19px, 3.5vw, 40px); margin: 0; color: #faf9f6; background: #202325;
  border-radius: clamp(10px, calc(18px * var(--rk, 1)), 28px); box-shadow: none; animation: none; }
.booking-cover .hero-cover {
  position: absolute; z-index: -1; inset: 0; height: auto;
  background: var(--cover, url("/brand/studio-cover.webp")) 65% 46% / cover no-repeat;
}
.booking-cover .hero-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg,#0c0e11df, #10121469 45%, #15171808 75%), linear-gradient(0deg,#14161989,transparent 65%);
}
.cover-caption { min-width: 0; max-width: 82%; }
.cover-caption h1 { margin: 0; color: #fff; font-weight: 575; font-size: clamp(37px, 5vw, 70px); line-height: 1.04; letter-spacing: -.066em; overflow-wrap: anywhere; }
.cover-caption p { margin: 8px 0 0; font-size: clamp(14px, 1.35vw, 18px); overflow-wrap: anywhere; }
.cover-meta { flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13px; line-height: 1.45; color: #f4f3ef; }
.cover-meta .hm-s, .cover-meta .hm-r, .cover-meta .hm-r small { color: inherit; background: none; }
.cover-meta .hm-s i { box-shadow: none; }
.studio-info { border-bottom: 1px solid var(--line2); }
.studio-info summary { width: fit-content; gap: 10px; min-height: 39px; cursor: pointer; font-size: 13px; font-weight: 620; list-style: none; }
.studio-info summary::-webkit-details-marker { display: none; }
.studio-info .chev { width: 7px; height: 7px; }
.studio-info[open] .chev { transform: rotate(225deg); }
.studio-info .hero-act { padding: 0; }
.studio-info .hero-hours, .studio-info .hero-perks { margin: 0; padding: 9px 0; border: 0; }
.studio-info .hero-act:last-child { padding-bottom: 10px; }
.steps { display: flex; gap: 0; margin: 15px 0 19px; }
.steps li { flex: 1; flex-direction: row; align-items: center; gap: 12px; color: var(--muted); }
.steps li:last-child { flex: none; }
.steps li::before { display: none; }
.steps li:not(:last-child)::after { content: ""; height: 1px; background: var(--line2); flex: 1; margin-right: 12px; }
.steps li > * { gap: 8px; border: 0; padding: 0; background: none; color: inherit; font-size: 13px; font-weight: 550; }
.steps li > button { min-height: 36px; }
.steps li b { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%;
  background: var(--s3); color: var(--muted); font-size: 12px; font-weight: 630; line-height: 1; }
.steps li.on b { background: var(--ink); color: var(--bg); }
.steps li.past b { background: var(--acc-soft); color: var(--acc-text); }
.steps li.on > span { font-weight: 720; }
.steps svg { width: 13px; height: 13px; stroke-width: 2.4; }
.card { border: 1px solid var(--line); background: var(--card); border-radius: clamp(9px, calc(18px * var(--rk,1)), 28px);
  box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: clamp(18px,2.35vw,32px); }
.view { animation: none; }
.view h2 { font-size: clamp(25px, 2.7vw, 37px); font-weight: 620; line-height: 1.13; letter-spacing: -.055em; }
.view h2[tabindex="-1"]:focus { outline: 0; }
.grid { gap: clamp(16px,2.2vw,30px); }
@media (min-width: 900px) { .grid { grid-template-columns: minmax(0,1fr) minmax(260px, .43fr); } }
.search input, .f input, .f textarea { border-radius: clamp(5px,calc(10px * var(--rk,1)),15px); background: var(--s2); }
.search input { min-height: 44px; }
.category-nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.category-nav .chips { flex: 1 1 0; min-width: 0; margin: 0; padding: 3px 0; overscroll-behavior-x: contain; }
.category-list { display: flex; flex: none; align-items: center; gap: 8px; width: max-content; }
.category-arrow { display: grid; flex: 0 0 44px; place-items: center; min-height: 44px; padding: 0; color: var(--ink);
  border: 1px solid var(--line); border-radius: 50%; background: var(--card); }
.category-arrow[hidden] { display: none; }
.category-arrow:disabled { opacity: .35; cursor: default; }
.category-arrow:not(:disabled):hover { border-color: var(--ink); }
.category-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.category-arrow[data-category-next] svg { transform: rotate(180deg); }
.category-list .chip:focus-visible { outline-offset: -2px; }
@media (pointer: fine) {
  .category-nav .chips { scrollbar-width: thin; scrollbar-color: var(--muted2) transparent; }
  .category-nav .chips::-webkit-scrollbar { display: block; height: 5px; }
  .category-nav .chips::-webkit-scrollbar-thumb { background: var(--muted2); border-radius: 5px; }
}
.chip { min-height: 38px; padding: 6px 12px; }
.grp, .grp.open { border-color: var(--line); border-radius: clamp(5px,calc(12px * var(--rk,1)),18px); }
.grp-h { background: var(--s2); }
.grp-b { padding: 0 12px 3px; }
.svc { border-radius: 7px; box-shadow: none; }
.svc:not(.on) { background: transparent; border-color: transparent; border-bottom: 1px solid var(--line); }
.svc:not(.on):hover { background: var(--s2); }
.svc .t b { font-weight: 630; }
.svc .rd { border-radius: 50%; border-width: 1px; }
.svc:not(.on) .rd::after { content: "+"; font: 500 17px/1 Inter,sans-serif; color: var(--muted); }
.sum h3 { color: var(--ink); text-transform: none; font-weight: 650; letter-spacing: -.045em; font-size: 23px; }
.sum-empty { border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); }
.sum-empty svg { color: var(--acc-text); width: 27px; height: 27px; }
.sum-empty p { max-width: 28ch; margin: 7px 0 0; font-size: 14px; line-height: 1.5; }
.sum .line i { background: var(--s2); color: var(--muted); }
.sum .line b { font-size: 15px; font-weight: 600; }
.sum-discount, .sum-deposit { margin: 6px 0 12px; color: var(--muted); font-size: 13px; }
.sum .total { margin-bottom: 9px; }
.sum .total b { font-weight: 660; }
.inline-action { min-height: 40px; padding: 4px; border: 0; background: transparent; color: var(--acc-text); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.note { flex-wrap: wrap; }
.btn:not(.sec):not(.ghost):not(.tg), .var.on, .slot.on { background: var(--acc); box-shadow: none; }
.var.on small { color: inherit; }
.booking-extra { border-block-start: 1px solid var(--line); }
.booking-extra summary { padding: 12px 0; min-height: 45px; cursor: pointer; font-weight: 600; font-size: 14px; }
.booking-extra > div { padding-top: 5px; }
.booking-extra .f label { display: inline-block; margin-bottom: 6px; font-size: 13px; }
.booking-extra + .ck { margin-top: 12px; }
.ck + .ck { margin-top: 8px; }
.bar { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; }
.bar-empty { display: none; }
.catalog-strip { display: none; }
.schedule-card h2 { margin: 0 0 16px; font-size: clamp(25px,2.2vw,32px); }
.calendar-nav, .calendar-nav > div, .catalog-strip { align-items: center; }
.calendar-nav { display: flex; justify-content: space-between; gap: 12px; }
.calendar-nav h3 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 630; letter-spacing: -.035em; }
.calendar-nav h3::first-letter { text-transform: uppercase; }
.calendar-nav > div { display: flex; gap: 3px; }
.month-arrow { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); }
.month-arrow:disabled { opacity: .28; cursor: default; }
.month-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.month-arrow:last-child svg { transform: rotate(180deg); }
.month-tiles { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; text-align: center; }
.weekday { padding: 6px 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.tile { position: relative; display: grid; place-items: center; min-width: 0; min-height: 40px; padding: 0;
  border: 1px solid transparent; border-radius: clamp(5px,calc(9px * var(--rk,1)),14px); background: var(--s2); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 590; font-variant-numeric: tabular-nums; }
.tile.outside { color: var(--muted2); background: none; font-weight: 450; }
.tile[aria-current="date"]::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.tile.on { background: var(--acc); color: var(--acc-ink,#fff); }
@media (hover: hover) {
  .month-arrow:enabled:hover { background: var(--s2); }
  .tile:enabled:hover { border-color: var(--acc-text); }
}
.schedule :is(button,summary):focus-visible, .catalog-strip button:focus-visible { outline: 2px solid var(--acc-text); outline-offset: 1px; }
#slots-date { border-top: 1px solid var(--line); margin: 17px 0 0; padding-top: 17px; font-size: 16px; color: var(--ink); letter-spacing: -.025em; }
.schedule .part { margin-top: 12px; }
.schedule .part h3 { margin-bottom: 6px; font-size: 13px; }
.schedule .slot-period { display: grid; grid-template-columns: 58px 1fr; align-items: baseline; gap: 6px; }
.schedule .slot-period h3 { gap: 4px; }
.schedule .slots { grid-template-columns: repeat(auto-fill,minmax(56px,1fr)); gap: 5px; }
.schedule .slot { min-height: 40px; padding: 6px 3px; border-width: 1px; }
.schedule .note { display: block; line-height: 1.45; }
.schedule .note svg { display: inline-block; margin: 0 6px -3px 0; }
.schedule .note .inline-action { display: block; }
.schedule .next-day { margin-top: 3px; }
.schedule-total { position: static; }
.schedule-total .total { border-top-style: solid; gap: 10px; }
.schedule-total .total span { font-size: 13px; }
.schedule-total .total b { font-size: 24px; }
.schedule-master { margin-bottom: 9px; border-block: 1px solid var(--line); }
.schedule-master summary { padding: 10px 0; cursor: pointer; font-size: 14px; color: var(--muted); }
.schedule-master summary b { color: var(--ink); padding-inline-start: 5px; }
.schedule-master .vars { margin: 0 0 10px; }
#catalog-title, #schedule-title, .catalog-strip { scroll-margin-top: 12px; }
@media (min-width: 900px) {
  .booking-plan { grid-template-columns: minmax(0,1.55fr) minmax(320px,1fr); }
  .booking-plan > .schedule { position: sticky; top: min(12px,calc(100vh - var(--schedule-height, 100vh) - 12px)); }
  .schedule-card { padding: clamp(17px,1.85vw,24px); }
  .schedule #slots { max-height: min(32vh,310px); overflow: auto; }
}
@media (max-width: 899px) {
  .catalog-strip { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line);
    border-radius: clamp(6px,calc(12px * var(--rk,1)),18px); background: var(--card); }
  .catalog-strip div { min-width: 0; }
  .catalog-strip small, .catalog-strip strong { display: block; }
  .catalog-strip small { color: var(--muted); font-size: 12px; }
  .catalog-strip strong { color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
  .catalog-strip button { flex: none; font-size: 13px; }
  .with-calendar:not(.editing-services) #catalog-panel { display: none; }
  .editing-services .catalog-strip { margin-bottom: 12px; }
  .tile { min-height: 44px; }
}
:root[data-lk-cover="none"] .hero-cover { display: none; }
:root[data-lk-cover="none"] .booking-cover { min-height: 0; }
:root:is(.tgapp,.embed) .booking-cover { min-height: 0; padding: 14px 16px; }
:root:is(.tgapp,.embed) .booking-cover .hero-cover { display: none; }
:root:is(.tgapp,.embed) .cover-caption h1 { font-size: 25px; }
:root:is(.tgapp,.embed) .cover-meta { margin-top: 6px; }
@media (max-width: 680px) {
  .wrap { padding-inline: 13px; padding-top: max(12px, env(safe-area-inset-top)); }
  .booking-mast { margin-bottom: 12px; padding: 0 0 9px; }
  .booking-cover { min-height: 133px; padding: 17px; }
  .booking-cover .hero-cover { background-image: var(--cover, url("/brand/studio-cover-small.webp")); }
  .cover-caption { max-width: 100%; }
  .cover-caption h1 { font-size: clamp(30px,8.7vw,43px); }
  .cover-meta { gap: 3px 10px; margin-top: 8px; font-size: 12px; }
  .steps { margin: 12px 0; }
  .steps li { gap: 6px; }
  .steps li:not(:last-child)::after { margin-right: 6px; }
  .steps li > * { gap: 5px; }
  .card { padding: 18px 15px; }
  .grp-h { padding: 11px; }
  .grp-b { padding: 0 3px 3px; }
  .svc { gap: 7px; margin: 0; padding-inline: 8px; }
  .svc .t { min-width: 0; overflow-wrap: anywhere; }
  .svc .p { font-size: 14px; }
  .bar { gap: 8px; padding-inline: 12px; }
  .bar .btn { max-width: 51%; min-height: 48px; padding: 10px 14px; }
  .bar .back { width: 42px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
