/* Публичная страница: профиль мастера, поток записи из трёх экранов, страница записи клиента. */

/* --- Шапка мастера --- */
.hero { position: relative; height: min(66svh, 580px); min-height: 380px; overflow: hidden; isolation: isolate; }
.hero-media, .done-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img, .done-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 38%, color-mix(in oklab, var(--bg) 55%, transparent) 64%, var(--bg) 96%);
}
.hero-monogram {
  width: 100%; height: 100%; display: grid; place-items: center;
  font: 300 clamp(160px, 42vw, 300px)/1 var(--font-d); color: color-mix(in oklab, var(--accent) 70%, var(--text));
  background: radial-gradient(80% 70% at 70% 20%, var(--accent-soft), transparent 70%), linear-gradient(160deg, var(--bg2), var(--bg));
}
.hero-text { position: absolute; left: 20px; right: 20px; bottom: 18px; animation: rise .8s var(--ease) both; }
.hero-studio { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.hero h1 { font-size: clamp(32px, 9vw, 46px); line-height: 1.04; }
/* Фото мастера поверх обложки: кто будет делать маникюр */
.hero-who { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hero-ava { width: 76px; height: 76px; flex: none; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg), 0 10px 28px -10px rgba(var(--shadow-rgb), .45); }
.hero-who .hero-studio { margin-bottom: 2px; }
.hero-name { font: 600 18px/1.25 var(--font-d); }
.hero-sub { margin-top: 8px; font-size: 17px; color: color-mix(in oklab, var(--text) 78%, var(--muted)); }
.hero-meta { margin-top: 2px; font-size: 15px; color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
/* Появление при прокрутке (reveal.js): translate и scale отдельно от transform, чтобы не мешать FLIP-анимациям фильтров */
.rv { opacity: 0; translate: 0 28px; }
.insp-item.rv { scale: .94; }
.rv.rv-in { opacity: 1; translate: none; scale: none; transition: opacity .6s var(--ease), translate .7s var(--ease), scale .7s var(--ease); }
/* Фото через <ez-img> (media.js): контейнер занимает место картинки, пока она грузится */
.hero-media ez-img, .done-media ez-img { width: 100%; height: 100%; }

/* --- Контент --- */
.content { padding: 4px 20px 0; position: relative; }
.page:not(.has-hero) .content { padding-top: calc(28px + var(--safe-t)); }
.blk { margin-top: 36px; }
.blk:first-child { margin-top: 12px; }
.blk-title { font-size: 22px; margin-bottom: 14px; }
.prose { font-size: 16px; line-height: 1.62; color: color-mix(in oklab, var(--text) 88%, var(--muted)); max-width: 62ch; }
.empty { padding: 24px 0; }
.link { display: inline-flex; align-items: center; gap: 4px; color: color-mix(in oklab, var(--accent) 55%, var(--text)); font-weight: 500; text-decoration: none; }
.foot { text-align: center; font-size: 13px; padding: 40px 0 16px; }

.blk-notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--accent-soft); }
.blk-notice .ic { margin-top: 1px; color: color-mix(in oklab, var(--accent) 50%, var(--text)); }

/* --- Услуги --- */
.blk-services .chips { margin-bottom: 14px; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.svc-list li[hidden] { display: none; }
.svc {
  width: 100%; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px;
  padding: 16px; border: 0; border-radius: var(--radius); background: var(--surface); text-align: left;
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.svc:active { transform: scale(.985); }
.svc[aria-pressed="true"] {
  background: linear-gradient(115deg, var(--accent-soft), color-mix(in oklab, var(--accent) 10%, var(--surface)) 70%);
  box-shadow: inset 0 0 0 1.5px var(--accent-line), var(--shadow);
}
.svc-radio { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .25s; }
.svc-radio .ic-sm, .svc-check .ic-sm { transform: scale(0); transition: transform .35s var(--ease); }
.svc[aria-pressed="true"] .svc-radio { background: var(--ink); color: var(--on-ink); }
.svc[aria-pressed="true"] .ic-sm { transform: scale(1); }
/* С фото: крупный кадр на всю высоту карточки, текст справа */
.svc.has-img { padding: 8px; gap: 14px; align-items: stretch; }
.svc-thumb { position: relative; display: block; width: 104px; min-height: 120px; border-radius: calc(var(--radius) - 8px); overflow: hidden; }
.svc-thumb ez-img { position: absolute; inset: 0; }
.svc.has-img .svc-main { display: flex; flex-direction: column; padding: 8px 8px 6px 0; }
.svc-check { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in oklab, var(--ink) 55%, transparent); color: var(--on-ink); opacity: 0; transition: opacity .25s; }
.svc[aria-pressed="true"] .svc-check { opacity: 1; }
.svc-main { display: grid; gap: 4px; min-width: 0; }
.svc-title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.svc-desc { font-size: 13px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.svc.has-img .svc-foot { margin-top: auto; padding-top: 6px; }
.svc-dur { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); font-size: 13px; color: var(--muted); }
.svc-dur .ic-sm { width: 14px; height: 14px; }
.svc-price { font-weight: 600; font-size: 17px; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 4px; }
.svc-price small { font-weight: 400; font-size: 13px; color: var(--muted); }

/* Кнопка внизу: липкая внутри колонки, поэтому одинаково работает на телефоне и на компьютере */
.cta-bar {
  position: sticky; bottom: 0; z-index: var(--z-sticky); margin: 0 -20px;
  padding: 18px 20px calc(14px + var(--safe-b));
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--bg) 92%, transparent) 38%);
}
.cta-bar .btn { box-shadow: var(--shadow-lift); }
.cta-price { opacity: .7; font-weight: 500; }
.cta-bar.shake .btn { animation: nudge .45s var(--ease); }
@keyframes nudge { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* --- Портфолио --- */
/* --- Портфолио: плитка работ в две колонки, фильтры по тегам, ♡ --- */
.insp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.insp-head .blk-title { margin-bottom: 4px; }
.insp-sub { font-size: 14px; line-height: 1.4; color: var(--muted); }
.insp-fav {
  position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--ink); color: var(--on-ink); transition: transform .2s var(--ease);
}
.insp-fav:active { transform: scale(.92); }
.insp-fav > .ic-sm, .insp-like > .ic-sm, .lb-like > .ic-sm { grid-area: 1 / 1; transition: opacity .2s, transform .3s var(--ease); }
.insp-on { opacity: 0; transform: scale(.6); }
[aria-pressed="true"] > .insp-on { opacity: 1; transform: none; }
[aria-pressed="true"] > .insp-off { opacity: 0; }
.insp-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center;
  border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; box-shadow: 0 0 0 2px var(--bg);
}
.insp-chips { margin-bottom: 14px; }
.insp-chips .chip { height: 38px; padding: 0 16px; font-size: 14px; background: transparent; }
.insp-chips .chip[aria-pressed="true"] { background: var(--ink); }

.insp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.insp-item[hidden] { display: none; }
.insp-item { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: calc(var(--radius) * 1.3); overflow: hidden; background: var(--surface-2); }
.insp-open { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.insp-open ez-img { width: 100%; height: 100%; }
.insp-open ez-img > img { transition: transform .6s var(--ease), opacity .45s var(--ease); }
.insp-open:active ez-img > img { transform: scale(1.03); }
.insp-like {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: none; color: #fff; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .45));
}
.insp-like .ic-sm { width: 22px; height: 22px; }
.insp-none { display: grid; justify-items: center; gap: 12px; padding: 24px 0 8px; text-align: center; }
/* Кружки отмеченных работ (экран проверки записи) */
.insp-stack { display: flex; align-items: center; }
.insp-dot { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.insp-dot + .insp-dot { margin-left: -10px; }
.insp-more { height: 28px; margin-left: 6px; padding: 0 9px; display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; }
.review-refs { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-refs > div:first-child { display: grid; }
.review-refs .muted { font-size: 14px; }

/* --- Просмотр работ: лента со снапом, свайп вниз закрывает --- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden;
  background: rgba(10, 8, 9, calc(.98 * var(--fade, 1))); color: #fff; outline: none;
}
.lightbox[open] { display: block; animation: fade .3s var(--ease); }
.lightbox.is-closing { opacity: 0; transition: opacity .22s; }
.lightbox::backdrop { background: transparent; }
.lb-track {
  position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-x; outline: none;
  transform: translateY(var(--drag, 0px)) scale(var(--shrink, 1));
  transition: transform .35s var(--ease);
}
.lightbox.is-dragging .lb-track { transition: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide {
  flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always;
  display: grid; grid-template-rows: 1fr auto; align-items: center; justify-items: center;
  padding: calc(64px + var(--safe-t)) 0 calc(24px + var(--safe-b));
}
.lb-img { width: 100%; height: 100%; background: transparent; animation: lbIn .4s var(--ease); }
.lb-img > img { object-fit: contain; }
@keyframes lbIn { from { transform: scale(.96); } }
.lb-slide figcaption { padding: 12px 20px 0; text-align: center; font-size: 15px; opacity: .8; }
.lb-top {
  position: absolute; z-index: 2; top: calc(12px + var(--safe-t)); left: 16px; right: 16px;
  display: flex; align-items: center; gap: 8px; pointer-events: none;
}
.lb-count { flex: 1; font-size: 15px; font-weight: 500; opacity: .85; }
.lb-btn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; pointer-events: auto;
  background: rgba(255, 255, 255, .14); color: #fff; transition: transform .2s var(--ease), opacity .2s, background-color .2s;
}
.lb-btn:active { transform: scale(.9); }
/* Рамка фокуса только при работе с клавиатуры, не при открытии и не от касания */
.lb-btn:focus:not(:focus-visible) { outline: none; }
.lb-like[aria-pressed="true"] { background: rgba(255, 255, 255, .24); }
.lb-nav { position: absolute; z-index: 2; top: 50%; margin-top: -22px; display: none; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .lb-nav { display: grid; } }
@keyframes fade { from { opacity: 0; } }

/* --- Вопросы --- */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 500; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic-sm { transition: transform .3s var(--ease); color: var(--muted); }
.faq details[open]:not(.is-closing) summary .ic-sm { transform: rotate(45deg); }
.faq .prose { padding: 0 18px 18px; font-size: 15px; }

/* --- Контакты --- */
.info-grid { display: grid; gap: 10px; }
.info-card { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.info-card b { display: block; font-weight: 600; }
.info-card p { color: var(--muted); font-size: 15px; margin: 2px 0 6px; }
.info-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); }
.hours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; margin: 8px 0 0; font-size: 14px; }
.hours div { display: flex; gap: 10px; }
.hours dt { width: 22px; color: var(--muted); }
.hours dd { margin: 0; }
.contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* --- Экраны записи --- */
.screen {
  position: fixed; inset: 0; z-index: var(--z-screen); display: flex; flex-direction: column;
  background: radial-gradient(90% 50% at 100% 0%, var(--bg2), transparent 70%), var(--bg);
  transform: translate3d(100%, 0, 0); transition: transform .5s var(--ease); will-change: transform;
}
.screen.is-active { transform: none; }
.screen.is-under { transform: translate3d(-18%, 0, 0); transition-duration: .5s; }
.screen-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; padding: calc(10px + var(--safe-t)) 16px 6px; flex: none; }
.screen-head h2 { font: 500 17px/1.2 var(--font-b); letter-spacing: 0; text-align: center; }
.icon-btn-spacer { width: 44px; }
/* Полоса прокрутки на экранах записи скрыта, как на телефоне: прокрутка колёсиком и пальцем работает,
   а появление полосы (когда загрузились слоты) не сужает экран и не сдвигает кнопки ‹ ›.
   Поэтому и запас под неё не нужен: поля те же 20px, что на странице. */
.screen-body { flex: 1; overflow-y: auto; scrollbar-width: none; padding: 8px 20px 24px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.screen-body::-webkit-scrollbar { display: none; }
.screen-foot { flex: none; padding: 10px 20px calc(12px + var(--safe-b)); }
.screen-backdrop { position: fixed; inset: 0; z-index: calc(var(--z-screen) - 1); background: rgba(12, 10, 11, .32); opacity: 0; transition: opacity .4s; }
.screen-backdrop.is-on { opacity: 1; }

.month-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; }
.month { font-size: 36px; font-weight: 500; text-transform: capitalize; letter-spacing: -.03em; }
.month-nav { display: flex; gap: 4px; }

.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -20px; padding: 4px 20px 6px; scroll-padding: 20px; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: none; width: 58px; height: 78px; scroll-snap-align: start; display: grid; place-content: center; gap: 2px;
  border: 0; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .25s var(--ease), color .25s, transform .2s var(--ease);
}
.day:active { transform: scale(.94); }
.day small { font-size: 13px; color: var(--muted); transition: color .25s; }
.day b { font-size: 20px; font-weight: 500; }
.day[aria-selected="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.day[aria-selected="true"] small { color: color-mix(in oklab, var(--on-ink) 70%, transparent); }
.day:disabled { opacity: .38; pointer-events: none; }
.day.is-skel { background: var(--surface-2); box-shadow: none; }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 16px 0 4px; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: block; }
.lg-available { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.lg-chosen { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.lg-booked { background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--muted) 30%, transparent) 0 2px, transparent 2px 5px); }
.lg-passed { box-shadow: inset 0 0 0 1px var(--line); }

.slot-group h4 { margin: 20px 0 10px; font-size: 15px; font-weight: 500; color: var(--muted); }
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 359px) { .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.slot {
  height: 50px; border: 0; border-radius: 999px; background: var(--surface); font-size: 16px; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, box-shadow .2s, transform .2s var(--ease);
  /* Волна появления не дольше ~0,25 с, сколько бы ни было слотов */
  animation: pop .35s var(--ease) both; animation-delay: calc(min(var(--i, 0), 18) * 12ms);
}
.slots { transition: opacity .2s; }
.slots.is-loading { opacity: .5; pointer-events: none; }
.slot:active { transform: scale(.94); }
.slot[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent-line); font-weight: 600; }
.slot.is-booked { color: color-mix(in oklab, var(--muted) 85%, transparent); text-decoration: line-through; box-shadow: none; background: repeating-linear-gradient(135deg, color-mix(in oklab, var(--muted) 16%, transparent) 0 2px, color-mix(in oklab, var(--surface) 50%, transparent) 2px 6px); }
.slot.is-passed { background: transparent; color: color-mix(in oklab, var(--muted) 60%, transparent); }
.slot:disabled { pointer-events: none; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }
.slots-empty { margin-top: 20px; padding: 22px; border-radius: var(--radius); background: var(--surface); color: var(--muted); text-align: center; }
.slots-skel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 46px; }
.slots-skel span { height: 50px; border-radius: 999px; }

/* Проверка */
.who { display: flex; align-items: center; gap: 14px; }
.who > div { display: grid; }
.who .muted { font-size: 14px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; overflow: hidden; }
.avatar-mono { display: grid; place-items: center; background: var(--accent-soft); font: 500 26px var(--font-d); }
.review-svc { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 16px; }
.review-svc > div { display: grid; gap: 2px; }
.review-svc .muted { font-size: 14px; }
.review-when { display: grid; gap: 14px; }
.kv { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; }
.kv .ic-sm { margin-top: 2px; color: var(--muted); }
.kv > div { display: grid; }
.kv .muted { font-size: 14px; }
/* Карта: круглая кнопка со значком, как остальные круглые кнопки, а не текстовая ссылка */
.kv-link {
  align-self: center; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-2); color: var(--text); transition: transform .2s var(--ease), background-color .2s;
}
.kv-link:active { transform: scale(.92); }
.kv .kv-link .ic-sm { margin: 0; color: inherit; }
.review-total { display: flex; justify-content: space-between; align-items: center; }
.review-total > div { display: grid; }
.review-total .muted { font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin-top: 14px; color: var(--danger); font-size: 14px; }

/* Готово */
.screen-done { background: var(--bg); }
.done-media { position: relative; height: 46svh; min-height: 300px; flex: none; z-index: 0; overflow: hidden; }
.done-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .12), rgba(0, 0, 0, .42)); }
.done-media .hero-monogram { font-size: 180px; }
/* Экран «Вы записаны»: фото уступает место деталям (но не меньше 220px), лист не прокручивается сам —
   если не влезает и так, едет весь экран, без полосы прокрутки */
.screen-done { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.screen-done::-webkit-scrollbar { display: none; }
.screen-done .done-media { height: auto; flex: 0 1 46svh; min-height: 220px; }
.screen-done .done-sheet { flex: 1 0 auto; overflow: visible; }
.done-brand { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 14px; color: #fff; text-align: center; padding: 0 20px 36px; }
.done-brand h2 { font-size: 34px; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.done-check { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); animation: popin .7s var(--ease) .15s both; }
@keyframes popin { from { transform: scale(.4); opacity: 0; } }
.done-sheet { position: relative; z-index: 1; flex: 1; margin-top: -36px; padding: 20px 20px calc(16px + var(--safe-b)); background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; animation: rise .7s var(--ease) .1s both; }
.done-card { padding: 18px; border-radius: var(--radius); background: var(--surface-2); display: grid; gap: 14px; justify-items: start; }
.done-card h3 { font-size: 24px; }
.done-when { display: grid; }
.done-when b { font-size: 20px; font-weight: 600; }
.done-text { font-size: 15px; }
.done-actions { display: grid; gap: 10px; margin-top: auto; }

/* --- Страница записи клиента и служебные страницы --- */
.center-page { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.center-card { width: min(420px, 100%); display: grid; gap: 14px; padding: 28px 22px; }
.center-card h1 { font-size: 26px; }

.manage { min-height: 100dvh; display: flex; flex-direction: column; }
.manage .done-media { height: 42svh; }
.manage-top { position: absolute; top: calc(12px + var(--safe-t)); left: 16px; z-index: 2; }
.manage .done-brand h2 { font-size: 30px; }
.manage .done-brand p { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.manage-actions { display: grid; gap: 10px; }
.manage-actions .note { font-size: 14px; color: var(--muted); text-align: center; }

/* --- Компьютер: шапка слева, контент справа, экраны записи выезжают справа --- */
@media (min-width: 960px) {
  .page.has-hero { display: grid; grid-template-columns: minmax(380px, 44%) minmax(0, 1fr); gap: 56px; max-width: 1240px; margin: 0 auto; padding: 24px 24px 0; align-items: start; }
  .hero { position: sticky; top: 24px; height: calc(100dvh - 48px); min-height: 520px; border-radius: var(--r-lg); box-shadow: var(--shadow-lift); }
  .hero-text { left: 32px; right: 32px; bottom: 28px; }
  .content { padding: 20px 0 0; max-width: 600px; }
  .page:not(.has-hero) .content { margin: 0 auto; }
  .cta-bar { margin: 0; padding-left: 0; padding-right: 0; }
  .insp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .screen { left: auto; width: 520px; border-radius: var(--r-lg) 0 0 var(--r-lg); box-shadow: -20px 0 60px -20px rgba(var(--shadow-rgb), .35); }
  .screen.is-under { transform: none; }
  .manage { max-width: 520px; margin: 24px auto; min-height: auto; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
  .manage .done-sheet { border-radius: var(--r-lg) var(--r-lg) 0 0; }
}
