/* 23.10 (v8-63): выбор услуги, помощь с выбором, экран после записи, кнопки записи на страницах входа.
   Общий для сайта и мини-приложений; облик purr! — через переменные purr.css (с запасными цветами). */

/* ===== «Не уверены, что выбрать?» ===== */
.help-choose { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 2px solid var(--purr-ink, #161616); margin: 18px 0 0; }
.help-choose-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 240px; }
.help-choose-text b { font-size: 1rem; }
.help-choose-text span { font-size: 0.9rem; color: var(--ink-soft, #3A3431); line-height: 1.4; }
.help-choose-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.help-choose-actions .btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.help-choose--inline { border-width: 1.5px; border-style: dashed; padding: 12px 14px; }

/* ===== Клиентские категории (главная, прайс, мини-приложения) ===== */
.cc-section { padding-top: 34px; padding-bottom: 8px; }
.cc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.cc-head h2 { margin: 0; }
.cc-head a { font-weight: 700; white-space: nowrap; }
.cc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.cc-card { background: #fff; border: 2px solid var(--purr-ink, #161616); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cc-card-title { margin: 0; font-size: 1.2rem; line-height: 1.2; }
.cc-card-sub { margin: -6px 0 0; font-size: 0.9rem; color: var(--ink-soft, #3A3431); }
.cc-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cc-item { border-top: 1px solid rgba(22, 22, 22, 0.12); padding-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; }
.cc-item:first-child { border-top: 0; padding-top: 0; }
.cc-item-name { font-weight: 800; font-size: 1rem; }
.cc-item-price { font-weight: 800; white-space: nowrap; text-align: right; }
.cc-item-note, .cc-item-comp { grid-column: 1 / -1; font-size: 0.86rem; line-height: 1.4; color: var(--ink-soft, #3A3431); margin: 0; }
.cc-item-comp { font-size: 0.8rem; }
.cc-item-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 2px; }
.cc-item-actions .btn { white-space: nowrap; }
.cc-masters { font-size: 0.84rem; }
.cc-masters summary { cursor: pointer; font-weight: 700; color: var(--purr-ink, #161616); list-style: none; }
.cc-masters summary::-webkit-details-marker { display: none; }
.cc-masters summary::after { content: " ▾"; }
.cc-masters[open] summary::after { content: " ▴"; }
.cc-masters ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.cc-masters li a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 10px; background: rgba(22, 22, 22, 0.04); color: inherit; text-decoration: none; }
.cc-masters li a:hover { background: rgba(22, 22, 22, 0.08); }
.cc-masters li span:last-child { white-space: nowrap; font-weight: 700; }
.cc-addon { font-size: 0.84rem; margin: 0; padding: 8px 10px; border-radius: 12px; background: var(--purr-milk, #F2E1DA); }
.cc-depends { font-size: 0.78rem; color: var(--ink-soft, #3A3431); }

.cc-tabs { display: none; }
@media (max-width: 760px) {
  .cc-tabs { display: flex; gap: 6px; margin: 0 0 10px; overflow-x: auto; scrollbar-width: none; }
  .cc-tab { flex: 1 1 auto; min-height: 42px; padding: 8px 9px; border-radius: 999px; border: 2px solid var(--purr-ink, #161616); background: #fff; color: var(--purr-ink, #161616); font: inherit; font-weight: 800; font-size: 0.8rem; cursor: pointer; white-space: nowrap; }
  .cc-tab.is-on { background: var(--purr-lime, #C8F04B); }
  .cc-grid.cc-js .cc-card:not(.is-on) { display: none; }
  .cc-item-comp { display: none; }
}

/* Визард: блок «Популярное» в каталоге */
.bw-cc { margin-bottom: 6px; }
.bw-cc-head { margin-top: 4px; }
.bw-cc-btn .name { font-weight: 800; }
.bw-cc-addon { margin: -4px 0 10px; }

/* ===== Экран после записи ===== */
.bw-success-status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: #E7F7D4; color: #1F5A12; font-weight: 800; font-size: 0.92rem; }
.bw-success-status.is-cancelled { background: #F6E1E1; color: #7A1E1E; }
.bw-status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.bw-route-link { font-weight: 700; white-space: nowrap; }
.bw-success-actions { text-align: left; margin: 0 0 12px; }
.bw-cal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.bw-cal-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; width: 100%; font-size: 0.92rem; }
.bw-cal .btn { flex: 1 1 150px; text-align: center; justify-content: center; }
.bw-prep { text-align: left; margin-bottom: 12px; }
.bw-prep-line { margin: 4px 0 0; font-size: 0.92rem; }
.bw-manage { text-align: left; margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: rgba(22, 22, 22, 0.04); }
.bw-manage-title { font-weight: 800; margin-bottom: 4px; }
.bw-manage .form-hint { margin: 0 0 8px; }
.bw-manage-row, .bw-manage-contacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bw-manage-contacts { margin-top: 6px; }
.bw-manage-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; margin-top: 4px; }
.bw-manage-ask span { font-weight: 700; margin-right: 4px; }
.bw-manage-done { margin: 0 0 10px; font-weight: 700; }
.bw-club-note { text-align: left; margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: var(--purr-milk, #F2E1DA); font-size: 0.92rem; }
.bw-reschedule { background: #FFF4D6; }

/* ===== Найм и клуб на главной ===== */
.hire-band { padding: 22px 0; }
.hire-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; border-radius: 22px; background: var(--purr-lime, #C8F04B); border: 2px solid var(--purr-ink, #161616); }
.hire-box h2 { margin: 0 0 4px; font-size: clamp(1.2rem, 3.6vw, 1.6rem); }
.hire-box p { margin: 0; }
.hire-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== «Впервые в пурр!» ===== */
.fv-section { padding-top: 28px; }
.fv-container { max-width: 860px; }
.fv-preview { margin: 0 0 16px; padding: 10px 14px; border-radius: 14px; background: #FFF4D6; border: 2px dashed #B98B00; font-size: 0.92rem; }
.fv-head { margin-bottom: 18px; }
.fv-h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.05; margin: 0 0 8px; }
.fv-lead { font-size: 1.05rem; margin: 0 0 12px; }
.fv-cover { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 22px; }
.fv-block { padding: 18px 0; border-top: 1px solid rgba(22, 22, 22, 0.12); }
.fv-h2 { font-size: clamp(1.25rem, 3.6vw, 1.6rem); margin: 0 0 8px; }
.fv-block p { margin: 0 0 8px; line-height: 1.55; }
.fv-media { display: grid; gap: 10px; margin-top: 10px; }
.fv-media--many { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.fv-fig { margin: 0; }
.fv-fig img, .fv-fig video { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 18px; background: #161616; }
.fv-fig video { object-fit: contain; }
.fv-fig figcaption { font-size: 0.85rem; color: var(--ink-soft, #3A3431); margin-top: 4px; }
.fv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fv-teaser { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 18px; border: 2px solid var(--purr-ink, #161616); background: #fff; text-decoration: none; color: inherit; }
.fv-teaser b { display: block; font-size: 1.05rem; }
.fv-teaser span { font-size: 0.9rem; color: var(--ink-soft, #3A3431); }

/* ===== «Мои записи» в кабинете (v8-64) ===== */
.mv { margin: 18px 0 22px; padding: 16px; border-radius: 22px; background: #fff; border: 2px solid var(--purr-ink, #161616); }
.mv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mv-head h2 { margin: 0; font-size: 1.35rem; }
.mv-next { margin-bottom: 12px; }
.mv-next-label { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; color: var(--purr-cherry, #C41E48); }
.mv-switch { display: flex; gap: 6px; margin-bottom: 10px; }
.mv-sw { flex: 1 1 0; min-height: 40px; border-radius: 999px; border: 2px solid var(--purr-ink, #161616); background: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.mv-sw.is-on { background: var(--purr-lime, #C8F04B); }
.mv-cal-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mv-cal-nav b { flex: 1 1 auto; text-align: center; }
.mv-nav { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--purr-ink, #161616); background: #fff; font-size: 1.2rem; cursor: pointer; }
.mv-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mv-wd { text-align: center; font-size: 0.72rem; color: var(--ink-soft, #3A3431); padding: 2px 0; }
.mv-cell { position: relative; min-height: 44px; border-radius: 12px; border: 1px solid rgba(22, 22, 22, .1); background: #fff; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 2px; }
.mv-cell.is-empty { border: 0; background: transparent; cursor: default; }
.mv-cell.has-visits { border-color: rgba(22, 22, 22, .35); font-weight: 800; }
.mv-cell.is-today .mv-num { text-decoration: underline; text-underline-offset: 3px; }
.mv-cell.is-picked { background: var(--purr-milk, #F2E1DA); border-color: var(--purr-ink, #161616); }
.mv-dots { display: flex; gap: 2px; }
.mv-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #bbb; }
.mv-dot.is-upcoming { background: #7DBA1F; }
.mv-dot.is-completed { background: var(--purr-cherry, #E8335F); }
.mv-dot.is-cancelled { background: #B8B0A8; }
.mv-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.76rem; color: var(--ink-soft, #3A3431); margin: 8px 0; }
.mv-legend span { display: inline-flex; align-items: center; gap: 4px; }
.mv-day-title { font-weight: 800; margin: 6px 0; }
.mv-day-empty { text-align: center; padding: 6px 0 4px; }
.mv-day-empty .form-hint { margin: 0 0 12px; }
.mv-day-book { display: inline-flex; align-items: center; justify-content: center; width: min(420px, 100%); min-height: 56px; font-size: 1.08rem; font-weight: 800; border-radius: 999px; }
.mv-sub { font-size: 1rem; margin: 12px 0 6px; }
.mv-card { border: 1px solid rgba(22, 22, 22, .14); border-radius: 16px; padding: 12px; margin-bottom: 10px; background: #fff; }
.mv-card-big { border: 2px solid var(--purr-ink, #161616); background: var(--purr-milk, #F2E1DA); }
.mv-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.mv-chip { font-size: 0.74rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #eee; }
.mv-chip.is-upcoming { background: #E7F7D4; color: #1F5A12; }
.mv-chip.is-completed { background: #FCE1E8; color: #8A1236; }
.mv-chip.is-cancelled, .mv-chip.is-noshow, .mv-chip.is-unconfirmed { background: #EEE9E4; color: #5A524B; }
.mv-svc { margin-top: 4px; font-weight: 700; }
.mv-meta { font-size: 0.88rem; color: var(--ink-soft, #3A3431); margin-top: 2px; }
.mv-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.mv-manage { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(22, 22, 22, .18); }
.mv-manage .form-hint { margin: 0; }
.mv-ask { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mv-ask span { font-weight: 700; }
.mv-note { margin: 6px 0 0; }
.mv-rate { margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(22, 22, 22, .18); }
.mv-rate-title { font-weight: 800; font-size: 0.9rem; }
.mv-stars { display: flex; gap: 4px; margin: 6px 0; }
.mv-star { width: 44px; height: 44px; border-radius: 12px; border: 2px solid rgba(22, 22, 22, .2); background: #fff; font-size: 1.4rem; line-height: 1; color: #C9C2BA; cursor: pointer; }
.mv-star.is-on { color: #F0A500; border-color: #F0A500; background: #FFF6DD; }
.mv-comment { min-height: 60px; font-size: 0.9rem; }
.mv-rate-msg { margin: 6px 0 0; }
.mv-platforms { margin-top: 6px; font-size: 0.86rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mv-pl { font-weight: 700; }
.mv-status:empty { display: none; }

/* ===== Админка: «Запись и обращения» ===== */
.fb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.fb-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.fb-kpi { border: 1px solid var(--border, #e3ddd6); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.fb-kpi b { font-size: 1.35rem; }
.fb-kpi span { font-size: 0.82rem; }
.fb-kpi i { font-style: normal; font-size: 0.76rem; color: #8a6d3b; }
.fb-table td, .fb-table th { font-size: 0.86rem; }

/* ===== «Хочу так же» — просмотр работы ===== */
.wl .wl-info { position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(560px, calc(100% - 24px)); background: #fff; color: #161616; border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.wl .wl-info p { margin: 0; font-size: 0.9rem; line-height: 1.35; }
.wl .wl-svc { font-weight: 800; }
.wl .wl-note { color: #5A524B; font-size: 0.82rem !important; }
.wl .wl-master { font-weight: 700; font-size: 0.88rem; }
.wl .lightbox-img { max-height: calc(100% - 220px); }
.wl-btn-row { display: flex; gap: 6px; }
.bw-want-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }

/* ===== Страница мастера (v8-64) ===== */
.mp-level { display: inline-block; vertical-align: middle; font-size: 0.8rem; font-family: inherit; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--purr-lime, #C8F04B); color: #161616; margin-left: 6px; }
.mp-approach { font-size: 1.02rem; line-height: 1.5; margin: 10px 0; }
.mp-novice { margin: 8px 0; padding: 8px 12px; border-radius: 12px; background: #FFF4D6; font-size: 0.9rem; }
.mp-h2 { margin: 0 0 10px; }
.mp-near { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mp-slot { display: inline-flex; flex-direction: column; padding: 10px 14px; border-radius: 16px; border: 2px solid var(--purr-ink, #161616); background: #fff; text-decoration: none; color: inherit; min-width: 140px; }
.mp-slot b { font-size: 1rem; }
.mp-slot span { font-size: 0.8rem; color: var(--ink-soft, #3A3431); }
.mp-noslots { margin-top: 8px; padding: 12px 14px; border-radius: 16px; background: rgba(22,22,22,.04); }
.mp-noslots p { margin: 0 0 8px; }
.mp-svc-sub { list-style: none; font-size: 0.8rem; font-weight: 800; color: var(--ink-soft, #3A3431); padding: 10px 0 4px; }
.mp-app .mp-hero { padding: 12px 0; background: none; }
.mp-app .mp-hero-inner { grid-template-columns: 1fr; gap: 14px; }
.mp-app .container { padding-left: 0; padding-right: 0; }
.mp-app .section { padding: 18px 0; }
@media (max-width: 760px) { .mp-hero-inner { grid-template-columns: 1fr; gap: 16px; } .mp-photo { max-height: 420px; } }
.mp-svc-group { border-top: 1px solid rgba(22,22,22,.12); }
.mp-svc-group summary { cursor: pointer; padding: 12px 0; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mp-svc-group summary::-webkit-details-marker { display: none; }
.mp-svc-group summary::after { content: "▾"; margin-left: auto; padding-left: 8px; }
.mp-svc-group[open] summary::after { content: "▴"; }

/* ===== Комментарий к визиту в записи (v8-67) ===== */
.bw-note { margin: 0 0 14px; }
.bw-note-open { display: flex; align-items: center; gap: 6px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(22, 22, 22, .25); background: none; font: inherit; font-size: .9rem; font-weight: 700; text-align: left; cursor: pointer; color: inherit; }
.bw-note-open[aria-expanded="true"] { border-style: solid; }
.bw-note-box { margin-top: 8px; }
.bw-note-box[hidden] { display: none; }
.bw-note-box label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.bw-note-box textarea { min-height: 76px; resize: vertical; }
.bw-note-hint { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0 0; }
.mv-note-client { font-style: italic; }

/* ===== Брови и ресницы у другого мастера на «Проверьте запись» (v8-68) ===== */
.bw-cross { margin-top: 10px; }
.bw-cross[hidden] { display: none; }
.bw-cross-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid rgba(22, 22, 22, .14); border-radius: 12px; background: #fff; margin-top: 8px; }
.bw-cross-row .bw-extra-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bw-cross-row .bw-extra-title { font-weight: 800; }
.bw-cross-add { flex: 0 0 auto; white-space: nowrap; }
.bw-cross-select { margin: 4px 0 2px; font-size: .88rem; padding: 6px 10px; min-height: 0; }

/* ===== Запись на выбранный день: кто работает (v8-68) ===== */
.bw-day-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--purr-milk, #F2E1DA); font-size: .92rem; }
.bw-day-all { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: inherit; }

/* ===== Согласие на обработку ПД в записи гостя (v8-68) ===== */
.bw-pd { display: flex; align-items: flex-start; gap: 8px; font-size: .86rem; line-height: 1.35; margin: 4px 0 0; cursor: pointer; }
.bw-pd input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 18px; }
.bw-mk { color: #6B625C; margin-top: 8px; }

/* v8-81: отзыв о мастере в «Мои записи» — публичный, с фото. */
.mv-review { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(22, 22, 22, .18); }
.mv-review .form-hint { margin: 2px 0 8px; }
.mv-rv-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.mv-rv-ph { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #f3eee9; }
.mv-rv-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mv-rv-x { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 16px; line-height: 24px; padding: 0; cursor: pointer; }
.mv-rv-add { width: 72px; height: 72px; border-radius: 10px; border: 1.5px dashed rgba(22, 22, 22, .3); display: flex; align-items: center; justify-content: center; font-size: .85rem; cursor: pointer; color: inherit; }
.mv-rv-add:hover { border-color: currentColor; }

/* v8-84: число услуг в разделе на странице мастера — отдельной меткой, не прилипает к названию. */
.mp-svc-group summary { gap: 10px; justify-content: flex-start; }
.mp-svc-n { font-size: .78rem; font-weight: 700; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: rgba(22,22,22,.07); color: #6f655c; display: inline-flex; align-items: center; justify-content: center; }
