/* ============================================================
   Ноготок — демо онлайн-записи
   style.css — все стили приложения
   ============================================================ */

/* ---------- CSS-переменные: тема Telegram + fallback -------- */
:root {
  --accent:        #B06BAF;
  --accent2:       var(--accent);   /* второй акцент (золото); per-tenant из config */
  --accent3:       var(--accent2);  /* третий акцент (тёплый/красный логотипа); per-tenant */
  --accent-dark:   #8A4D89;
  /* Поверхность карточек — коралл из таблицы (обведённая красно-оранжевая зона). */
  --surface:       #EBA28E;
  --danger:        #e53935;
  --success:       #43a047;
  --warning:       #fb8c00;

  /* Telegram передаёт эти переменные через SDK */
  --bg:            var(--tg-theme-bg-color, #fff8fb);
  --bg2:           var(--tg-theme-secondary-bg-color, #fceef8);
  --text:          var(--tg-theme-text-color, #2d1a2e);
  --hint:          var(--tg-theme-hint-color, #9b7a9b);
  --btn-bg:        var(--tg-theme-button-color, #B06BAF);
  --btn-text:      var(--tg-theme-button-text-color, #ffffff);
  --link:          var(--tg-theme-link-color, #B06BAF);

  --content-w:     320px;   /* ширина центральной колонки = ширине логотипа */
  --radius:        12px;
  --radius-sm:     8px;
  --nav-h:         60px;    /* высота нижней навигации */
  --safe-b:        env(safe-area-inset-bottom, 0px);
  --tr:            240ms ease;

  /* Дизайн v2 (из «Образа», 25.10.2026) — привязан к цветам салона:
     золото = второй акцент салона, линии и тени — нейтральные */
  --gold:          var(--accent2);
  --line:          color-mix(in srgb, var(--text) 8%, transparent);
  --sh-sm:         0 1px 3px rgba(40,30,20,.06);
  --sh-md:         0 6px 20px rgba(40,30,20,.08);
  --radius-lg:     20px;
}

/* ---------- Сброс и базовые стили -------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, 'Helvetica Neue', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { color: var(--link); text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Оболочка приложения ---------------------------- */
#app {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

/* Превью «как на телефоне»: на широком экране сжимаем приложение до ширины
   телефона по центру. На самом телефоне (узкий экран) — без изменений. */
@media (min-width: 480px) {
  html, body { background: #c9ccd1; }
  #app {
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.30);
  }
}

/* ---------- Контейнер экранов ------------------------------ */
#screen-container {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

/* Каждый экран — абсолютный, прокручиваемый */
.screen {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
  -webkit-overflow-scrolling: touch;
}

/* ---------- Анимации переходов между экранами -------------- */
@keyframes slideInRight  { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOutLeft  { from { transform: translateX(0); }    to { transform: translateX(-30%); opacity: 0.4; } }
@keyframes slideInLeft   { from { transform: translateX(-30%); opacity: 0.4; } to { transform: translateX(0); } }
@keyframes slideOutRight { from { transform: translateX(0); }    to { transform: translateX(100%); } }
@keyframes fadeIn        { from { opacity: 0; } to { opacity: 1; } }

.screen.enter-forward  { animation: slideInRight  var(--tr) forwards; }
.screen.leave-forward  { animation: slideOutLeft  var(--tr) forwards; pointer-events: none; }
.screen.enter-back     { animation: slideInLeft   var(--tr) forwards; }
.screen.leave-back     { animation: slideOutRight var(--tr) forwards; pointer-events: none; }

/* ---------- Нижняя навигация ------------------------------- */
#bottom-nav {
  display: flex;
  height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: #fff;
  border-top: 1px solid rgba(112,117,121,0.2);
  flex-shrink: 0;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--hint);
  transition: color var(--tr);
  padding: 6px 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-item.active { color: var(--accent); }

.nav-icon {
  width: 22px;
  height: 22px;
  transition: transform 150ms ease;
}

.nav-item:active .nav-icon { transform: scale(0.88); }

.nav-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------- Общие компоненты: кнопки ----------------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  transition: opacity 150ms, transform 100ms;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { opacity: 0.82; transform: scale(0.98); }
.btn:disabled { opacity: 0.45; pointer-events: none; }

.btn-primary {
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.btn-secondary {
  background: var(--bg2);
  color: var(--text);
}


.btn-ghost {
  background: transparent;
  color: var(--accent);
  min-height: 44px;
}

.btn-danger {
  background: rgba(229,57,53,0.12);
  color: var(--danger);
}

/* ---------- Карточки --------------------------------------- */
.card {
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
}

/* ---------- Чипы категорий --------------------------------- */
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 8px;
}
.chips-row::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  background: var(--bg2);
  color: var(--hint);
  transition: background var(--tr), color var(--tr);
  -webkit-tap-highlight-color: transparent;
}

.chip.active {
  background: var(--accent);
  color: #fff;
}

.chip:active { opacity: 0.75; }

/* ---------- Кнопка «Назад» -------------------------------- */
.back-row {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 16px;
  color: #fff;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 150ms;
}
.back-row:active { opacity: 0.55; }

/* ---------- Страница Главная ------------------------------- */
.home-header {
  background: transparent;                  /* виден коралловый фон страницы */
  padding: 28px 28px 22px;
  margin-bottom: 22px;
}

/* Бейдж доверия в шапке: звёзды + рейтинг (на коралловом фоне — белый текст) */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
}
.hero-stars   { color: #FFE08A; letter-spacing: 1px; }
.hero-rating  { font-weight: 700; color: #fff; }
.hero-reviews { color: rgba(255,255,255,0.85); font-size: 13px; }

/* Логотип салона */
.home-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.home-logo {
  width: calc(100% - 16px);
  max-width: 320px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(176,107,175,0.25);
}

.home-logo-slogan {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  color: rgba(255,255,255,0.95);
  letter-spacing: 0.03em;
  margin-top: 10px;
}

.home-greeting-prominent {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-top: 10px;
}

.home-footer-info {
  padding: 12px 16px 20px;
  text-align: center;
}

.home-footer-address {
  font-size: 13px;
  color: rgba(255,255,255,0.88);
}

/* Hero-строка: фото + приветствие + адрес */
.home-hero-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.home-hero-photo {
  width: 84px;
  height: 84px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}

.home-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #FFAAC8 0%, #C4B5FD 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero-placeholder-icon { font-size: 34px; }

.home-hero-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.home-hero-greeting {
  font-size: 14px;
  color: var(--hint);
}

.home-hero-address {
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}

/* Название салона декоративным шрифтом */
.home-salon-name-deco {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 6px;
}

.home-tagline {
  font-size: 14px;
  color: var(--hint);
  margin-top: 6px;
}

.home-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.rating-stars { color: #f4b400; font-size: 14px; }
.rating-val   { font-size: 15px; font-weight: 600; }
.rating-count { font-size: 13px; color: var(--hint); }

/* Блок ближайшего слота — белая карточка на коралловом фоне */
.next-slot-card {
  width: calc(100% - 40px);
  max-width: var(--content-w);
  margin: 0 auto 22px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.next-slot-label {
  font-size: 11px;
  color: var(--hint);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.next-slot-time  { font-size: 20px; font-weight: 600; color: var(--text); line-height: 1.1; }

.next-slot-btn {
  flex-shrink: 0;
  background: var(--accent);          /* коралловая заливка на белом */
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;               /* овал */
  font-size: 13px;
  font-weight: 700;
  min-height: 36px;
  white-space: nowrap;
}

/* Фолбэк-кнопка (нет слота) — белая овальная на коралловом фоне */
.home-cta {
  display: block;
  width: calc(100% - 40px);
  max-width: var(--content-w);
  margin: 0 auto 22px;
  min-height: 48px;
  padding: 0 30px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 8px 22px rgba(0,0,0,0.16);
}

/* Кнопка «Записаться» на главной */
.home-book-btn {
  margin: 8px 0 4px;
}

/* Навигационные карточки на главной */
.home-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  width: calc(100% - 40px);
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 0 24px;
}

.home-nav-card {
  background: #fff;                     /* белые карточки на коралловом фоне */
  border-radius: 20px;
  padding: 18px 8px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 150ms, transform 100ms;
}

.home-nav-card:active { opacity: 0.75; transform: scale(0.96); }

.home-nav-icon {
  font-size: 24px;
  line-height: 1;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg2);   /* fallback */
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent2) 40%, #fff),
    color-mix(in srgb, var(--accent2) 18%, #fff));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent2) 32%, transparent);
}

.home-nav-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.home-nav-sub {
  font-size: 11px;
  color: var(--hint);
  line-height: 1.2;
}

/* Блок «Оцените нас» — белая карточка с крупными звёздами */
.home-rate {
  width: calc(100% - 40px);
  max-width: var(--content-w);
  margin: 0 auto 14px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  text-align: center;
}
.home-rate-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.home-rate-stars { display: flex; justify-content: center; gap: 6px; }
.home-rate-star {
  font-size: 30px;
  line-height: 1;
  background: none;
  padding: 4px;
  transition: transform 100ms;
}
.home-rate-star:active { transform: scale(1.25); }

/* Кнопка «Поделиться» — белая овальная на коралловом фоне */
.home-share-wrap { padding: 0 0 10px; }
.btn-share {
  width: calc(100% - 40px);
  max-width: var(--content-w);
  margin: 0 auto;
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  min-height: 46px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* ---------- Экран «Услуги» --------------------------------- */
.services-header {
  padding: 16px 16px 10px;
}

.screen-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 16px 8px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 12px;
  background: var(--bg2);
  border-radius: var(--radius);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 150ms, transform 100ms;
}

.service-card:active { opacity: 0.75; transform: scale(0.97); }

.service-card.colored .service-name     { color: #fff; }
.service-card.colored .service-price    { color: rgba(255,255,255,0.95); font-weight: 600; }
.service-card.colored .service-duration { color: rgba(255,255,255,0.78); }
.service-card.colored .service-icon     { background: rgba(255,255,255,0.25); }

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(176,107,175,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.service-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.service-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.service-duration {
  font-size: 12px;
  color: var(--hint);
}

/* ---------- Экран «Детали услуги» -------------------------- */
.detail-img {
  width: 100%;
  height: 200px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
}

.detail-sticky {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 10px 16px;
  border-bottom: 1px solid rgba(112,117,121,0.15);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-sticky-name {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
}

.detail-sticky-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.detail-body { padding: 16px; }

.detail-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.detail-description {
  font-size: 15px;
  color: var(--hint);
  line-height: 1.55;
  margin-bottom: 16px;
}

.detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-stat {
  background: var(--bg2);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
}

.detail-stat-val {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
}

.detail-stat-key {
  font-size: 12px;
  color: var(--hint);
  margin-top: 2px;
}

/* ---------- Экран «Галерея» -------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 150ms, transform 100ms;
}

.gallery-item:active { opacity: 0.8; transform: scale(0.97); }

/* Серый плейсхолдер с иконкой */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg2);
}

.gallery-placeholder-icon { font-size: 28px; opacity: 0.5; }

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
}

.gallery-item-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.gallery-item-cat {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
}

/* ---------- Лайтбокс --------------------------------------- */
.overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
}

.overlay.hidden { display: none !important; }

.overlay-backdrop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.7);
}

#lightbox-content {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  animation: slideInUp 220ms ease;
}

@keyframes slideInUp { from { transform: translateY(30%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

#lightbox-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

#lightbox-footer {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#lightbox-title {
  font-size: 17px;
  font-weight: 600;
}

.lightbox-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Экран «Мои записи» ----------------------------- */
.tabs-row {
  display: flex;
  border-bottom: 1px solid rgba(112,117,121,0.2);
  margin-bottom: 12px;
}

.tab-btn {
  flex: 1;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--hint);
  border-bottom: 2px solid transparent;
  transition: color var(--tr), border-color var(--tr);
  -webkit-tap-highlight-color: transparent;
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.booking-card {
  margin: 0 16px 10px;
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.booking-card-date {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.booking-card-service {
  font-size: 14px;
  color: var(--hint);
  margin-bottom: 10px;
}

.booking-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-confirmed { background: rgba(67,160,71,0.15);  color: var(--success); }
.status-pending   { background: rgba(251,140,0,0.15);  color: var(--warning); }
.status-completed { background: var(--bg2); color: var(--hint); border: 1px solid rgba(112,117,121,0.3); }
.status-cancelled { background: rgba(229,57,53,0.1);   color: var(--danger); }

.btn-complete-booking {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 0;
  background: rgba(67,160,71,0.12);
  color: var(--success);
  border: 1px solid rgba(67,160,71,0.3);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.master-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px 16px;
}

.master-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg2);
}

.master-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.master-gallery-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}

.btn-cancel-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
  padding: 6px 0;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
}

.btn-rebook-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 0;
  min-height: 36px;
  -webkit-tap-highlight-color: transparent;
}

/* Пустое состояние */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  text-align: center;
  gap: 12px;
}

.empty-icon { font-size: 52px; opacity: 0.35; }
.empty-title { font-size: 17px; font-weight: 600; }
.empty-text  { font-size: 14px; color: var(--hint); line-height: 1.5; }

/* ---------- Bottom sheet ----------------------------------- */
#bs-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 20px 16px calc(20px + var(--safe-b));
  animation: slideInUp 220ms ease;
}

#bs-panel .bs-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

#bs-panel .bs-detail {
  font-size: 14px;
  color: var(--hint);
  margin-bottom: 20px;
  line-height: 1.5;
}

#bs-panel .bs-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------- Экран «Выбор даты/времени» --------------------- */
.booking-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(112,117,121,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
}

.booking-sticky-name {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.booking-sticky-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

/* Горизонтальная лента дат */
.dates-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 16px;
  scrollbar-width: none;
}
.dates-row::-webkit-scrollbar { display: none; }

.date-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg2);
  min-width: 52px;
  transition: background var(--tr), color var(--tr);
  -webkit-tap-highlight-color: transparent;
}

.date-btn.active {
  background: var(--accent);
  color: #fff;
}

.date-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.date-day  { font-size: 11px; font-weight: 500; opacity: 0.7; text-transform: uppercase; }
.date-num  { font-size: 18px; font-weight: 600; }
.date-month { font-size: 10px; opacity: 0.7; }

/* Сетка слотов */
.slots-section {
  padding: 0 16px;
}

.slots-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--hint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.slot-btn {
  padding: 12px 0;
  border-radius: var(--radius-sm);
  background: var(--bg2);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: background var(--tr), color var(--tr);
  -webkit-tap-highlight-color: transparent;
}

.slot-btn.active {
  background: var(--accent);
  color: #fff;
}

.slot-btn.busy {
  opacity: 0.3;
  pointer-events: none;
  text-decoration: line-through;
}

.slot-btn:not(.busy):not(.active):active { opacity: 0.7; }

.booking-action {
  padding: 0 16px 16px;
}

/* ---------- Экран «Подтверждение записи» ------------------- */
.confirm-body { padding: 16px; display: flex; flex-direction: column; gap: 16px; }

.confirm-card {
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
}

.confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(112,117,121,0.12);
}

.confirm-row:last-child { border-bottom: none; }

.confirm-key  { font-size: 14px; color: var(--hint); }
.confirm-val  { font-size: 14px; font-weight: 600; text-align: right; max-width: 60%; }
.confirm-price-val { font-size: 16px; font-weight: 600; color: var(--accent); }

.confirm-map-link {
  font-size: 13px;
  color: var(--accent);
  margin-top: 3px;
  display: block;
}

.comment-field {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(112,117,121,0.25);
  background: var(--bg2);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  resize: none;
  outline: none;
}

.comment-field:focus {
  border-color: var(--accent);
}

/* Имя и телефон — запись по ссылке из браузера, без Telegram */
.web-contact { display: flex; flex-direction: column; gap: 8px; }
.web-contact-title { font-size: 15px; font-weight: 600; color: var(--text); }
.web-contact-hint { font-size: 12px; color: var(--hint); }
.web-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(112,117,121,0.25);
  background: var(--bg2);
  color: var(--text);
  font-size: 16px; /* меньше 16px — iPhone приближает страницу при вводе */
  font-family: inherit;
  outline: none;
}
.web-input:focus { border-color: var(--accent); }

.confirm-actions { display: flex; flex-direction: column; gap: 10px; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.consent-row input[type=checkbox] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-text {
  font-size: 13px;
  color: var(--hint);
  line-height: 1.5;
}

.consent-link {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Экран «Успех» ---------------------------------- */
.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 32px 24px;
  text-align: center;
  gap: 12px;
}

.success-icon {
  font-size: 72px;
  animation: successPop 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.success-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 8px;
}

.success-text { font-size: 15px; color: var(--hint); line-height: 1.55; }

.success-summary {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 14px 16px;
  width: 100%;
  text-align: left;
  margin: 8px 0;
}

.success-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14px;
}

.success-summary-row span:first-child { color: var(--hint); }
.success-summary-row span:last-child  { font-weight: 600; }

.success-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

/* ---------- Toast уведомления ------------------------------ */
#toast {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: rgba(13,13,13,0.9);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 250ms, transform 250ms;
}

#toast.hidden { opacity: 0; transform: translateX(-50%) translateY(8px); }

/* ---------- Skeleton (загрузка) ---------------------------- */
.skeleton {
  background: var(--bg2);
  border-radius: var(--radius-sm);
}

/* ---------- Вспомогательные классы ------------------------- */
.px16 { padding-left: 16px; padding-right: 16px; }
.mt8  { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.mb16 { margin-bottom: 16px; }

/* ---------- Онбординг -------------------------------------- */
.onboarding-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 32px;
  min-height: 100%;
  text-align: center;
  gap: 16px;
}

.onboarding-logo {
  font-size: 72px;
  line-height: 1;
  animation: successPop 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.onboarding-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.onboarding-sub {
  font-size: 16px;
  color: var(--hint);
  margin-top: -8px;
}

.onboarding-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
  text-align: left;
}

.onboarding-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.onboarding-item-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.onboarding-item-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.onboarding-item-text {
  font-size: 13px;
  color: var(--hint);
  line-height: 1.4;
}

.onboarding-btn {
  margin-top: auto;
  width: 100%;
}

/* ---------- Оффер-модалка ---------------------------------- */
.offer-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.offer-overlay.hidden { display: none !important; }

.offer-backdrop {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.offer-card {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-radius: 20px;
  padding: 32px 24px 24px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: offerIn 380ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes offerIn {
  from { opacity: 0; transform: scale(0.86) translateY(24px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.offer-emoji {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 4px;
}

.offer-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.offer-subtitle {
  font-size: 15px;
  color: var(--hint);
  line-height: 1.55;
}

.offer-bullets {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  padding: 4px 0;
}

.offer-bullets li {
  font-size: 14px;
  color: var(--text);
  padding-left: 20px;
  position: relative;
  line-height: 1.45;
}

.offer-bullets li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: #2AABEE;
  font-weight: 600;
  font-size: 16px;
}

.offer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  border-radius: var(--radius);
  background: #2AABEE;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-top: 4px;
  text-decoration: none;
  transition: opacity 150ms, transform 100ms;
  -webkit-tap-highlight-color: transparent;
}

.offer-cta:active { opacity: 0.85; transform: scale(0.98); }

.offer-skip {
  font-size: 14px;
  color: var(--hint);
  padding: 8px 16px;
  min-height: 40px;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 150ms;
}

.offer-skip:active { opacity: 0.6; }

/* ---------- Тёмная тема ------------------------------------ */
/* Telegram автоматически передаёт --tg-theme-* переменные,
   поэтому отдельный @media prefers-color-scheme не нужен.
   Все цвета идут через var(--bg), var(--text) и т.д.
   Для preview в браузере — оставим лёгкий override: */
@media (prefers-color-scheme: dark) {
  :root:not([data-tg-theme]) {
    --bg:   #1e1424;
    --bg2:  #2d1e35;
    --text: #f5eaf8;
    --hint: #b89ab8;
  }
  .home-header {
    background: linear-gradient(160deg, rgba(255,182,210,0.18) 0%, rgba(196,181,253,0.18) 100%);
  }
}

/* ============================================================
   ПАНЕЛЬ МАСТЕРА
   ============================================================ */

/* Таб мастера скрыт по умолчанию */
#nav-master-btn.hidden { display: none !important; }

/* Шапка мастерских экранов */
.master-header {
  padding: 20px 16px 12px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
}
.master-header-title  { font-size: 12px; opacity: .6; text-transform: uppercase; letter-spacing: .08em; }
.master-header-salon  { font-size: 22px; font-weight: 600; margin: 4px 0; }
.plan-badge           { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.plan-pro             { background: linear-gradient(90deg,#f59e0b,#ef4444); color:#fff; }
.plan-free            { background: rgba(255,255,255,.15); color:#fff; }

/* Сетка быстрых действий */
.master-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}
.master-nav-card {
  background: var(--bg2);
  border: none;
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.master-nav-card:active { transform: scale(.97); }
.master-nav-icon  { font-size: 28px; margin-bottom: 8px; }
.master-nav-label { font-size: 15px; font-weight: 600; color: var(--text); }
.master-nav-sub   { font-size: 12px; color: var(--hint); margin-top: 2px; }

/* Заголовок подэкрана */
.master-screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
  border-bottom: 1px solid var(--bg2);
}
.master-screen-header .screen-title { margin: 0; }
/* «Назад» в шапке мастер-экрана: базовый .back-row белый (под цветной фон
   главной) — здесь фон светлый, нужен читаемый цвет */
.master-screen-header .back-row { color: var(--text); padding: 0 10px 0 0; }

.master-add-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.master-refresh-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--hint);
  padding: 4px 8px;
}
.master-header-actions { display: flex; align-items: center; gap: 4px; }

/* Выгрузка базы на экране «Клиенты» */
.master-export-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 16px 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg2);
}
.master-export-text { flex: 1; min-width: 0; }
.master-export-title { font-size: 15px; font-weight: 600; color: var(--text); }
.master-export-sub { font-size: 12px; color: var(--hint); margin-top: 2px; }
.master-export-card .master-add-btn:disabled { opacity: .6; }

/* Кто записался — в карточке записи кабинета */
.master-booking-client { font-size: 13px; color: var(--text); margin: 4px 0 6px; }
.master-client-phone { color: var(--accent); text-decoration: none; font-weight: 600; }
.master-web-badge {
  display: inline-block;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-left: 4px;
}

/* «Ссылка для записи» на главной кабинета */
.master-link-card { margin: 4px 16px 16px; }
.master-link-url {
  font-size: 12px;
  color: var(--accent);
  margin-top: 6px;
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
}

/* Строка услуги */
.master-service-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg2);
}
.master-service-row-icon   { font-size: 24px; width: 32px; text-align: center; flex-shrink: 0; }
.master-service-row-info   { flex: 1; min-width: 0; }
.master-service-row-name   { font-size: 15px; font-weight: 500; color: var(--text); }
.master-service-row-meta   { font-size: 12px; color: var(--hint); margin-top: 2px; }
.master-service-row-actions{ display: flex; gap: 4px; flex-shrink: 0; }
.master-icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background .15s;
}
.master-icon-btn:hover  { background: var(--bg2); }
.master-icon-btn.danger { opacity: .7; }

/* Метка секции */
.master-section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--hint);
  padding: 12px 16px 4px;
}

/* Блок подписки PRO — «витрина» монетизации: карточка на акценте,
   белая пилюля-CTA (паттерн hero главной) */
.master-sub-block { padding: 0 0 4px; }
.master-sub-card {
  margin: 4px 16px 0;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #000));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.master-sub-row { display: flex; align-items: center; gap: 12px; }
.master-sub-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
}
.master-sub-title { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.2; }
.master-sub-hint  { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 3px; }
.master-sub-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}
.master-sub-perks { font-size: 12px; color: rgba(255,255,255,0.92); text-align: center; line-height: 1.4; }
.master-sub-btn {
  margin: 0;
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* Тема оформления: строка-вход в профиле + экран выбора */
.master-theme-row {
  width: calc(100% - 32px);
  margin: 4px 16px 0;
  padding: 12px 14px;
  background: var(--bg2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.master-theme-row:active { opacity: 0.75; }
.master-theme-dots { display: flex; gap: 4px; }
.master-theme-dots i {
  width: 16px; height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10);
}
.master-theme-row-name { flex: 1; text-align: left; }
.master-theme-row-chevron { color: var(--hint); font-size: 20px; line-height: 1; }

.theme-upsell {
  margin: 8px 16px 0;
  padding: 10px 14px;
  background: var(--bg2);
  border-radius: 12px;
  font-size: 13px;
  color: var(--hint);
  text-align: center;
}
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 16px 4px;
}
.theme-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}
.theme-swatch {
  position: relative;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  transition: box-shadow var(--tr);
}
.theme-lock {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.theme-card.active .theme-swatch {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}
.theme-swatch-card {
  background: #fff;
  border-radius: 8px;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.theme-swatch-pill { width: 26px; height: 10px; border-radius: 999px; }
.theme-swatch-dot  { width: 10px; height: 10px; border-radius: 50%; }
.theme-card-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  text-align: center;
}
.theme-card.active .theme-card-name { color: var(--accent); }
.theme-actions { padding: 14px 16px 0; }
.theme-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--hint);
  text-align: center;
}

/* Форма мастера */
.master-form { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.master-form-group { display: flex; flex-direction: column; gap: 6px; }
.master-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.master-form-label { font-size: 13px; color: var(--hint); font-weight: 500; }
.master-form-input,
.master-form-textarea {
  background: var(--bg2);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
  width: 100%;
  box-sizing: border-box;
}
.master-form-input:focus,
.master-form-textarea:focus { border-color: var(--accent); }
.master-form-textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.master-form-submit { margin-top: 4px; }

/* Строка клиента */
.master-client-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--bg2);
}
.master-client-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), #C084FC);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.master-client-name { font-size: 15px; font-weight: 500; color: var(--text); }
.master-client-meta { font-size: 12px; color: var(--hint); margin-top: 2px; }

/* Лоадер */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}
.loading-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--bg2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Расписание мастера ─────────────────────────────────────── */
.sched-dur-row {
  display: flex;
  gap: 8px;
}

.sched-dur-btn {
  flex: 1;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  background: var(--bg2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--tr), color var(--tr);
  -webkit-tap-highlight-color: transparent;
}

.sched-dur-btn.active {
  background: var(--accent);
  color: #fff;
}

.sched-days-list {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(112,117,121,0.12);
}

.sched-day-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg2);
  border-bottom: 1px solid rgba(112,117,121,0.1);
}

.sched-day-row:last-child { border-bottom: none; }

.sched-day-name {
  font-size: 15px;
  font-weight: 600;
  width: 28px;
  flex-shrink: 0;
}

.sched-day-times {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sched-hidden { display: none !important; }

.sched-time-input {
  background: var(--bg);
  border: 1px solid rgba(112,117,121,0.2);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  width: 78px;
  text-align: center;
  outline: none;
}

.sched-dash {
  font-size: 14px;
  color: var(--hint);
  flex-shrink: 0;
}

.sched-toggle-label {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  -webkit-tap-highlight-color: transparent;
}

.sched-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.sched-toggle-track {
  display: block;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: rgba(112,117,121,0.25);
  position: relative;
  transition: background var(--tr);
}

.sched-checkbox:checked ~ .sched-toggle-track {
  background: var(--accent);
}

.sched-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform var(--tr);
}

.sched-checkbox:checked ~ .sched-toggle-track .sched-toggle-thumb {
  transform: translateX(18px);
}

/* ── Блок отзывов на главной ─────────────────────────────── */
.reviews-block {
  margin: 4px 16px 12px;
  background: var(--card-bg, var(--tg-theme-secondary-bg-color, #fff));
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

.reviews-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reviews-block-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--tg-theme-text-color, #1a1a1a);
}

.reviews-block-avg {
  font-size: 13px;
  color: var(--tg-theme-text-color, #1a1a1a);
  display: flex;
  align-items: center;
  gap: 3px;
}

.reviews-block-count {
  color: var(--tg-theme-hint-color, #888);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-card {
  background: var(--tg-theme-bg-color, #f9f9f9);
  border-radius: 10px;
  padding: 10px 12px;
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.review-card-stars {
  font-size: 13px;
  letter-spacing: 1px;
}

.review-card-date {
  font-size: 11px;
  color: var(--tg-theme-hint-color, #999);
}

.review-card-service {
  font-size: 12px;
  color: var(--tg-theme-hint-color, #666);
}

/* «Занять время» — на компонентах клиентской записи (.dates-row/.slot-btn) */
.slot-btn.block-slot-blocked {
  background: var(--accent);
  color: #fff;
}
.slot-btn.block-slot-booked { opacity: 0.35; }
/* «Занять/Освободить весь день» — действия, а не слоты: контурные, не заливные */
.block-time-daybtns { display: flex; gap: 8px; margin-top: 4px; }
.block-time-allday-btn {
  flex: 1;
  min-width: 0;
  background: transparent;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  padding: 0 8px;
}
.block-time-legend {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  color: var(--hint);
}
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg2);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.legend-dot-blocked { background: var(--accent); box-shadow: none; }
.legend-dot-booked  { background: var(--hint); opacity: 0.5; box-shadow: none; }

/* ── Приветствие в боте ─────────────────────────────────────── */
.master-hint {
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.7;
  padding: 0 4px 12px;
}
.welcome-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: var(--bg2);
  color: var(--text);
  cursor: pointer;
}
.welcome-card.active { border-color: var(--accent); }
.welcome-card-name { font-weight: 700; margin-bottom: 6px; }
.welcome-card-text { font-size: 13px; opacity: 0.75; white-space: pre-wrap; }
.welcome-textarea {
  width: 100%;
  resize: vertical;
  white-space: pre-wrap;
  font-family: inherit;
  margin-bottom: 8px;
}
.welcome-preview {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1.5px solid var(--bg2);
  white-space: pre-wrap;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ── Витрина: что видно клиентам на бесплатном тарифе ────────── */
.showcase-note {
  margin: 0 16px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--hint);
  font-size: 13px;
  line-height: 1.35;
}

/* Скрытое от клиентов приглушаем, но не прячем: мастер должен видеть,
   что данные на месте, и уметь вернуть их в витрину одним нажатием */
.master-service-row.is-hidden-from-clients,
.master-gallery-item.is-hidden-from-clients img {
  opacity: 0.45;
}

.master-service-row-locked {
  margin-top: 2px;
  font-size: 12px;
  color: var(--hint);
}

.master-gallery-eye {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}
/* ---------- Типографика v2 (25.10.2026) ----------------------
   Заголовки — Cormorant Garamond (как в продажных материалах),
   текст — Manrope. Cormorant мельче на глаз — поэтому кегль больше. */
:root {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
}
html, body { font-family: var(--font-body); }

.screen-title,
.detail-name,
.empty-title,
.success-title,
.onboarding-title,
.offer-title,
.reviews-block-title,
#bs-panel .bs-title,
#lightbox-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.screen-title      { font-size: 32px; margin-bottom: 14px; }
.detail-name       { font-size: 32px; }
.empty-title       { font-size: 26px; }
.success-title     { font-size: 34px; }
.onboarding-title  { font-size: 36px; }
.offer-title       { font-size: 30px; }

/* подписи — чуть светлее и спокойнее */
.service-name          { font-weight: 600; letter-spacing: -0.005em; }
.onboarding-item-title { font-weight: 600; }

/* значки svgIcon() — размером с букву, цветом текста */
.svg-ic   { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; }
.emoji-ic { font-style: normal; }

/* иконка-профиль на приветствии вместо эмодзи */
.onboarding-logo img { display: block; height: 128px; width: auto; margin: 0 auto 4px; }

/* ---------- Карточки услуг v2: в цветах салона, без радуги ---- */
.service-card {
  background: #fff;                     /* белые, как плитки главной */
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  padding: 16px 14px 14px;
  gap: 4px;
}
.service-card .service-icon {
  width: 52px;
  height: 52px;
  font-size: 30px;
  border-radius: 50%;
  margin-bottom: 8px;
  color: var(--accent);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent2) 30%, #fff),
    color-mix(in srgb, var(--accent2) 12%, #fff));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent2) 36%, transparent);
}
.service-card .service-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
/* короткая золотая черта под названием — как под логотипом на главной */
.service-card .service-name::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  margin: 10px 0 6px;
  background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 35%, transparent));
}
.service-card .service-price    { font-size: 15px; margin-top: 2px; }
.service-card .service-duration { font-size: 12px; }


/* «‹ Назад» — шрифт заголовков и тонкая стрелка; цвет остаётся белым:
   в общем приложении фон цветной (у «Образа» был светлый — там акцент) */
.back-row { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.back-row .back-ch { width: 18px; height: 18px; margin-right: 4px; }
/* внутри блоков со своим отступом — ровно по левому краю заголовка */
.services-header .back-row,
.master-screen-header .back-row,
div[style*="padding: 4px 16px"] > .back-row { padding-left: 0; }

/* ---------- Остальные экраны: шрифт и значки (25.10.2026) ---- */
.home-greeting-prominent { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.next-slot-time,
.booking-card-date { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.005em; }
.next-slot-time    { font-size: 26px; line-height: 1; }
.booking-card-date { font-size: 22px; }
#lightbox-title    { font-size: 24px; }

/* галочка «Вы записаны» — тонкий значок в мягком круге вместо эмодзи */
.success-icon {
  width: 96px; height: 96px; margin: 0 auto;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.empty-icon { color: var(--accent); opacity: .55; }

/* звёзды — золотом, как рейтинг под логотипом */
.home-rate-star, .review-card-stars { color: var(--gold); }

.btn-share .svg-ic { font-size: 20px; margin-right: 6px; vertical-align: -0.2em; }
.home-footer-address .svg-ic { font-size: 16px; color: var(--gold); vertical-align: -0.2em; }

/* у Cormorant по умолчанию «старинные» цифры (10:00 → IO:OO) — включаем ровные */
html, body { font-variant-numeric: lining-nums; }

/* названия пунктов на приветствии и плитках главной — шрифтом заголовков */
.onboarding-item-title,
.home-nav-label { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.005em; }
.onboarding-item-title { font-size: 21px; line-height: 1.15; margin-bottom: 2px; }
.home-nav-label { display: block; font-size: 16px; line-height: 1.1; margin-bottom: 2px; }

/* подсказка в «Услугах», когда пришли с карточки ближайшего времени */
.services-hint {
  margin: -4px 0 14px; padding: 10px 14px;
  font-size: 14px; line-height: 1.4; color: var(--text);
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius-sm);
}
.services-hint b { color: var(--accent); font-weight: 600; }

/* ---------- Карточка услуги: фото работ вместо пустой плашки ---- */
.detail-gallery { padding: 12px 16px 0; }
.detail-photos {
  display: flex;
  overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-md);
  scrollbar-width: none;
}
.detail-photos::-webkit-scrollbar { display: none; }
.detail-photo {
  flex: 0 0 100%; height: 300px; padding: 0;
  scroll-snap-align: start;
}
.detail-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 2px; }
.detail-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--text) 20%, transparent);
  transition: background var(--tr), width var(--tr);
}
.detail-dots span.on { width: 18px; border-radius: 3px; background: var(--gold); }

/* нет фото — только значок в кружке над названием */
.detail-icon {
  width: 56px; height: 56px; margin: 4px 0 14px;
  border-radius: 50%; font-size: 30px; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent2) 30%, #fff),
    color-mix(in srgb, var(--accent2) 12%, #fff));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent2) 36%, transparent);
}

/* ---------- Мягкое появление главной (один раз) ---------- */
@keyframes introUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.screen.intro > * { animation: introUp 520ms cubic-bezier(.2,.7,.2,1) both; }
.screen.intro > *:nth-child(2) { animation-delay: 90ms; }
.screen.intro > *:nth-child(3) { animation-delay: 180ms; }
.screen.intro > *:nth-child(4) { animation-delay: 270ms; }
.screen.intro > *:nth-child(5) { animation-delay: 360ms; }
.screen.intro > *:nth-child(n+6) { animation-delay: 440ms; }
@media (prefers-reduced-motion: reduce) {
  .screen.intro > * { animation: none; }
}

/* ---------- Кабинет мастера и названия услуг везде (25.10.2026) ----
   Шрифтом заголовков — названия, разделы, дни, кнопки кабинета.
   Мелкие подписи и поля ввода остаются Manrope. */
.master-header-salon,
.master-nav-label,
.master-export-title,
.master-sub-title,
.master-theme-row-name,
.welcome-card-name,
.theme-card-name,
.master-service-row-name,
.master-client-name,
.sched-day-name,
.booking-card-service,
.detail-sticky-name,
.booking-sticky-name,
.review-card-service,
.svc-name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.master-header-salon     { font-size: 28px; }
.master-nav-label        { font-size: 19px; line-height: 1.15; }
.master-export-title     { font-size: 19px; }
.master-sub-title        { font-size: 21px; }
.master-theme-row-name   { font-size: 18px; }
.welcome-card-name       { font-size: 19px; }
.theme-card-name         { font-size: 16px; }
.master-service-row-name { font-size: 19px; line-height: 1.15; }
.master-client-name      { font-size: 18px; }
.sched-day-name          { font-size: 19px; width: 32px; }
.booking-card-service    { font-size: 18px; color: var(--text); }
.detail-sticky-name,
.booking-sticky-name     { font-size: 20px; }
.review-card-service     { font-size: 16px; }
.svc-name                { font-size: 1.15em; }

/* значок услуги в списке кабинета и в записях — тот же, что в каталоге */
.master-service-row-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--accent);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent2) 30%, #fff),
    color-mix(in srgb, var(--accent2) 12%, #fff));
}
.booking-card-service .svg-ic { color: var(--accent); margin-right: 4px; }

/* кнопки кабинета — шрифтом заголовков */
.is-master .btn,
.is-master .master-add-btn,
.is-master .sched-dur-btn,
.is-master .btn-complete-booking {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}
.is-master .btn                  { font-size: 20px; }
.is-master .master-add-btn       { font-size: 17px; }
.is-master .sched-dur-btn        { font-size: 17px; }
.is-master .btn-complete-booking { font-size: 17px; }

/* то, что мастер вписывает в поля, — шрифтом заголовков;
   серые подписи над полями (.master-form-label) не трогаем */
.is-master .master-form-input,
.is-master .master-form-textarea,
.is-master .sched-time-input {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
}
.is-master .master-form-textarea { font-size: 18px; line-height: 1.3; }
.is-master .sched-time-input     { font-size: 18px; }
/* время в расписании обрезалось («08:(») — поле растягиваем на свободное место */
.sched-time-input { flex: 1; min-width: 0; width: auto; padding: 6px 6px; }

/* кнопки и поля не наследуют настройку цифр — включаем ровные и им
   (иначе Cormorant рисует «30 мин», «29 BYN» старинными цифрами) */
button, input, textarea, select { font-variant-numeric: lining-nums; }
.is-master .master-add-btn { white-space: nowrap; }

/* шапка кабинета — цветом салона, как карточка «Подписка» (была тёмно-синей) */
.master-header {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #000));
}

/* значки плиток кабинета — тонкая линия в кружке, как значки услуг */
.master-nav-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--accent);
  margin-bottom: 10px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent2) 30%, #fff),
    color-mix(in srgb, var(--accent2) 12%, #fff));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent2) 36%, transparent);
}

/* ---------- Все значки — тонкой линией (25.10.2026) ---------- */
:root { --surface-soft: color-mix(in srgb, var(--accent2) 18%, #fff); }

/* плитки главной и пункты приветствия — линия в кружке, как в кабинете */
.home-nav-icon { font-size: 26px; color: var(--accent); }
.onboarding-item-icon {
  width: 48px; height: 48px; border-radius: 50%; margin-top: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--accent);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent2) 30%, #fff),
    color-mix(in srgb, var(--accent2) 12%, #fff));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent2) 36%, transparent);
}
.gallery-placeholder-icon { color: var(--accent); }

/* кнопки-значки кабинета: глаз, карандаш, корзина */
.master-icon-btn          { font-size: 22px; color: var(--accent); line-height: 1; }
.master-icon-btn.danger   { color: var(--hint); opacity: 1; }
.master-service-row-locked .svg-ic { color: var(--hint); }
.master-gallery-eye       { font-size: 14px; }
.theme-lock               { font-size: 14px; }
.master-sub-badge         { font-size: 24px; color: #fff; }
.master-booking-client .svg-ic { color: var(--accent); }
.plan-badge .svg-ic       { vertical-align: -0.15em; }

/* все кнопки приложения — шрифтом заголовков, как в кабинете */
.btn,
.next-slot-btn {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}
.btn           { font-size: 20px; }
.next-slot-btn { font-size: 17px; }
.reviews-block-stars { color: var(--gold); }

/* список услуг кабинета лежит прямо на фоне салона — значки тёмные, как текст
   (цветом акцента сливались с цветным фоном) */
.master-icon-btn        { color: var(--text); opacity: .75; }
.master-icon-btn.danger { color: var(--text); opacity: .5; }
/* «Занять/Освободить весь день» — белые, как карточки, в одну строку */
.is-master .block-time-allday-btn {
  background: #fff;
  border-color: transparent;
  font-size: 17px;
  white-space: nowrap;
}

/* нижняя панель — значки Phosphor Light, чуть крупнее (тонкая линия) */
.nav-icon { width: 24px; height: 24px; }

/* ============================================================
   «НОГОТОК» — свой вид (07.11.2026)
   Молочный фон, пудровые поверхности, винный акцент, шампань-золото.
   Заголовки — Prata (один начертание, 400), текст — Jost.
   Всё ниже перекрывает общий стиль записи.
   ============================================================ */
:root {
  --milk:        #FBF7F3;
  --powder:      #F4E8E2;
  --powder-2:    #EBD9D1;
  --wine:        #7B2240;
  --wine-deep:   #5C1830;
  --ink:         #3B2A2D;
  --muted:       #9A8580;
  --champagne:   #B8946B;

  --accent:      var(--wine);
  --accent2:     var(--champagne);
  --accent3:     var(--champagne);
  --accent-dark: var(--wine-deep);
  --surface:     var(--powder);
  --surface-soft: var(--powder);
  --bg:          var(--milk);
  --bg2:         var(--powder);
  --text:        var(--ink);
  --hint:        var(--muted);
  --btn-bg:      var(--wine);
  --btn-text:    #fff;
  --link:        var(--wine);
  --gold:        var(--champagne);
  --line:        rgba(123, 34, 64, .10);
  --sh-sm:       0 1px 2px rgba(92, 24, 48, .05);
  --sh-md:       0 10px 30px rgba(92, 24, 48, .07);
  --radius:      18px;
  --radius-lg:   24px;

  --font-display: 'Prata', Georgia, serif;
  --font-body:    'Jost', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html, body, #app, .screen { background: var(--milk); color: var(--ink); }
html, body { font-family: var(--font-body); font-weight: 400; }
@media (min-width: 480px) { html, body { background: #E9E1DC; } }

/* у Prata одно начертание — без искусственного «жирного» */
.screen-title, .detail-name, .empty-title, .success-title, .reviews-block-title,
#bs-panel .bs-title, .master-header-salon, .booking-card-date, .back-row,
.master-nav-label, .master-sub-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0;
}
.screen-title { font-size: 26px; color: var(--ink); }
.back-row { font-size: 17px; color: var(--muted); }

/* кнопки — спокойный Jost, а не заголовочный шрифт */
.btn, .next-slot-btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .03em;
  border-radius: 999px;
}
.btn-primary { background: var(--wine); color: #fff; box-shadow: 0 8px 20px rgba(123, 34, 64, .18); }
.btn-primary:disabled { background: var(--powder-2); color: var(--muted); box-shadow: none; }
.btn-secondary { background: transparent; color: var(--wine); border: 1px solid rgba(123, 34, 64, .28); }

/* ---------- Нижняя панель ---------- */
#bottom-nav {
  background: rgba(251, 247, 243, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: none;
}
.nav-item { color: #B5A39E; }
.nav-item.active { color: var(--wine); }
.nav-label { font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: .04em; }

/* ---------- Главная: шапка мастера ---------- */
.ng-hero {
  margin: 0 0 8px;
  padding: 28px 20px 22px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(184, 148, 107, .16), transparent 60%),
    linear-gradient(180deg, var(--powder) 0%, var(--milk) 100%);
}
.ng-hero-row { display: flex; align-items: center; gap: 16px; }
.ng-avatar {
  flex: 0 0 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #fff, var(--powder));
  box-shadow: 0 0 0 1px rgba(184, 148, 107, .55), 0 0 0 5px var(--milk), 0 0 0 6px rgba(184, 148, 107, .35), var(--sh-md);
  overflow: hidden;
}
.ng-avatar span { font-family: var(--font-display); font-size: 38px; color: var(--wine); line-height: 1; }
.ng-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ng-studio { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); font-weight: 500; }
.ng-name { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.05; color: var(--ink); margin: 2px 0 2px; }
.ng-role { font-size: 14px; color: var(--muted); }
.ng-rating { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.ng-star { color: var(--champagne); }
.ng-muted { color: var(--muted); font-weight: 400; }
.ng-tagline {
  margin: 18px 0 0; padding-top: 16px;
  border-top: 1px solid rgba(184, 148, 107, .3);
  font-family: var(--font-display); font-size: 17px; line-height: 1.4; color: var(--ink);
}
.ng-hero-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.ng-open {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.ng-open i { width: 7px; height: 7px; border-radius: 50%; background: #6E9A7A; box-shadow: 0 0 0 3px rgba(110, 154, 122, .18); }
.ng-share {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(123, 34, 64, .28); color: var(--wine);
  font-size: 13px; font-weight: 500;
}
.ng-share .svg-ic { width: 15px; height: 15px; }
.ng-next {
  width: 100%; margin-top: 16px; padding: 14px 18px;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px;
  text-align: left; border-radius: 18px;
  background: var(--wine); color: #fff;
  box-shadow: 0 12px 26px rgba(123, 34, 64, .22);
}
.ng-next-label { grid-column: 1; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.ng-next-time { grid-column: 1; font-family: var(--font-display); font-size: 20px; margin-top: 2px; }
.ng-next-go { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 14px; font-weight: 500; color: #F3D9C7; }

/* ---------- Услуги ---------- */
.ng-services { padding: 18px 16px 4px; }
.ng-h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--ink); margin: 0 0 14px; }
.ng-pending {
  margin: -4px 0 14px; padding: 10px 14px; border-radius: 14px;
  background: rgba(184, 148, 107, .14); color: var(--ink); font-size: 14px;
}
.ng-chips {
  display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px;
  scrollbar-width: none;
}
.ng-chips::-webkit-scrollbar { display: none; }
.ng-chip {
  flex: 0 0 auto; padding: 9px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--powder-2);
  font-size: 14px; font-weight: 500; color: var(--ink);
  transition: background var(--tr), color var(--tr), border-color var(--tr);
}
.ng-chip.active { background: var(--wine); border-color: var(--wine); color: #fff; }

.ng-cards { display: flex; flex-direction: column; gap: 16px; }
.ng-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--sh-md); border: 1px solid rgba(235, 217, 209, .7);
}
.ng-card[hidden] { display: none; }
.ng-card-visual {
  height: 150px; display: flex; align-items: center; justify-content: center; position: relative;
  background:
    radial-gradient(60% 80% at 50% 60%, color-mix(in srgb, var(--shade) 20%, transparent), transparent 70%),
    linear-gradient(160deg, #FDF9F6, var(--powder));
}
.ng-card-visual::after {
  content: ''; position: absolute; left: 50%; bottom: 22px; width: 64px; height: 1px;
  transform: translateX(-50%); background: rgba(184, 148, 107, .55);
}
.nail-art { height: 92px; width: auto; filter: drop-shadow(0 8px 10px rgba(92, 24, 48, .16)); margin-bottom: 14px; }
.ng-card-body { padding: 16px 18px 18px; }
.ng-card-cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); font-weight: 500; }
.ng-card-name { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--ink); margin: 6px 0 0; }
.ng-card-desc { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ng-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 16px; }
.ng-card-price { font-family: var(--font-display); font-size: 22px; color: var(--wine); line-height: 1.1; }
.ng-card-dur { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.ng-card-dur .svg-ic { width: 14px; height: 14px; }
.ng-btn {
  flex: 0 0 auto; padding: 12px 22px; border-radius: 999px;
  background: var(--wine); color: #fff; font-size: 15px; font-weight: 500; letter-spacing: .03em;
  box-shadow: 0 8px 18px rgba(123, 34, 64, .2);
  transition: transform var(--tr), background var(--tr);
}
.ng-btn:active { transform: scale(.96); background: var(--wine-deep); }

/* ---------- Отзывы и контакты ---------- */
.ng-section { padding: 26px 16px 4px; }
.ng-reviews { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ng-reviews::-webkit-scrollbar { display: none; }
.ng-review {
  flex: 0 0 82%; scroll-snap-align: start; margin: 0;
  padding: 18px; border-radius: 20px; background: var(--powder);
}
.ng-review-stars { color: var(--champagne); letter-spacing: 2px; font-size: 13px; }
.ng-review blockquote { margin: 10px 0 12px; font-family: var(--font-display); font-size: 16px; line-height: 1.45; color: var(--ink); }
.ng-review figcaption { font-size: 13px; color: var(--muted); }
.ng-contacts { display: flex; flex-direction: column; gap: 4px; }
.ng-contacts .ng-h2 { margin-bottom: 8px; }
.ng-contact {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px;
}
.ng-contact:last-child { border-bottom: 0; }
.ng-contact .svg-ic { width: 20px; height: 20px; color: var(--wine); flex: 0 0 auto; }
.ng-foot { padding: 22px 16px 8px; text-align: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #C2B2AD; }

/* ---------- Запись: даты, время, подтверждение ---------- */
.booking-sticky, .detail-sticky { background: var(--milk); border-bottom: 1px solid var(--line); }
.booking-sticky-name { font-family: var(--font-display); font-weight: 400; font-size: 20px; }
.booking-sticky-price { color: var(--wine); }
.date-btn { background: #fff; border: 1px solid var(--powder-2); border-radius: 16px; color: var(--ink); box-shadow: none; }
.date-btn.active { background: var(--wine); border-color: var(--wine); color: #fff; }
.date-btn.disabled { opacity: .35; }
.slots-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); font-weight: 500; }
.slot-btn { background: #fff; border: 1px solid var(--powder-2); border-radius: 14px; color: var(--ink); font-weight: 500; box-shadow: none; }
.slot-btn.active { background: var(--wine); border-color: var(--wine); color: #fff; }
.slot-btn.busy { background: transparent; color: #C9B9B4; text-decoration: line-through; }
.confirm-card, .success-summary, .web-contact {
  background: #fff; border: 1px solid rgba(235, 217, 209, .8); border-radius: 20px; box-shadow: var(--sh-md);
}
.confirm-key { color: var(--muted); }
.confirm-price-val { color: var(--wine); }
.web-input, .comment-field, .master-form-input, .master-form-textarea {
  background: var(--milk); border: 1px solid var(--powder-2); border-radius: 14px; color: var(--ink); font-family: var(--font-body);
}
.web-input:focus, .comment-field:focus, .master-form-input:focus { border-color: var(--wine); outline: none; }
.web-contact-title { font-family: var(--font-display); font-weight: 400; font-size: 18px; }
.consent-row input { accent-color: var(--wine); }
.success-icon { color: var(--wine); }

/* ---------- Мои записи ---------- */
.tab-btn { font-family: var(--font-body); font-weight: 500; color: var(--muted); }
.tab-btn.active { color: var(--wine); border-color: var(--wine); }
.booking-card {
  background: #fff; border: 1px solid rgba(235, 217, 209, .8); border-radius: 20px; box-shadow: var(--sh-sm);
}
.booking-card-date { font-size: 18px; color: var(--ink); }
.booking-card-service .svg-ic { color: var(--wine); }
.status-confirmed { background: rgba(123, 34, 64, .08); color: var(--wine); }
.status-completed { background: rgba(110, 154, 122, .14); color: #4E7A5C; }
.btn-cancel-text, .btn-rebook-text { color: var(--wine); font-weight: 500; }
.empty-icon { color: var(--champagne); opacity: .9; }

/* ---------- Кабинет ---------- */
.master-header {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(184, 148, 107, .35), transparent 55%),
    linear-gradient(140deg, var(--wine), var(--wine-deep));
  border-radius: 0 0 28px 28px;
}
.master-header-salon { font-size: 30px; }
.master-nav-card { background: #fff; border: 1px solid rgba(235, 217, 209, .8); border-radius: 22px; box-shadow: var(--sh-sm); }
.master-nav-icon {
  color: var(--wine);
  background: linear-gradient(145deg, #fff, var(--powder));
  box-shadow: inset 0 0 0 1px rgba(184, 148, 107, .45);
}
.master-nav-label { font-size: 18px; color: var(--ink); }
.master-nav-sub { color: var(--muted); }
.master-add-btn { background: var(--wine); color: #fff; border-radius: 999px; font-family: var(--font-body); font-weight: 500; }
.master-export-card, .master-service-row, .master-client-row, .master-sub-card {
  background: #fff; border: 1px solid rgba(235, 217, 209, .8); border-radius: 20px;
}
.master-sub-card { background: linear-gradient(145deg, var(--wine), var(--wine-deep)); border: 0; }
.master-sub-btn { background: #fff; color: var(--wine); }
.master-client-avatar { background: var(--powder); color: var(--wine); font-family: var(--font-display); }
.master-section-label { color: var(--champagne); letter-spacing: .14em; font-weight: 500; }
.master-web-badge { background: rgba(184, 148, 107, .18); color: #8A6A45; }
.btn-complete-booking { color: var(--wine); border-color: rgba(123, 34, 64, .3); }
.sched-dur-btn.active { background: var(--wine); border-color: var(--wine); color: #fff; }
.sched-checkbox:checked + .sched-toggle-track { background: var(--wine); }
.is-master .block-time-allday-btn { background: #fff; color: var(--wine); }

#toast { background: var(--ink); color: var(--milk); border-radius: 999px; font-family: var(--font-body); }
#bs-panel { background: var(--milk); }

/* ---------- Правки после проверки (07.11) ---------- */
/* кнопки и поля кабинета — Jost, без искусственного «жирного» Prata */
.is-master .master-add-btn, .is-master .btn-complete-booking, .is-master .sched-dur-btn,
.is-master .master-form-input, .is-master .master-form-textarea, .is-master .sched-time-input,
.is-master .btn, .master-add-btn, .btn-complete-booking {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .02em;
}
.master-add-btn { font-size: 14px; padding: 9px 16px; }
/* названия у Prata — обычным начертанием */
.svc-name, .booking-card-service, .master-export-title, .master-service-row-name,
.master-client-name, .detail-sticky-name {
  font-family: var(--font-display);
  font-weight: 400;
}
.booking-card-service { font-size: 18px; line-height: 1.3; }
.master-export-title { font-size: 20px; }
.success-summary-row .svc-name { text-align: right; padding-left: 12px; font-size: 17px; line-height: 1.3; }
.confirm-val.svc-name { font-size: 18px; line-height: 1.3; }
/* «Выполнено» — тонкая винная обводка вместо зелёной плашки */
.btn-complete-booking, .is-master .btn-complete-booking {
  background: transparent; color: var(--wine);
  border: 1px solid rgba(123, 34, 64, .3); font-size: 15px;
}
/* PRO — шампань на винной шапке, а не оранжевый */
.plan-badge.plan-pro {
  background: rgba(255, 255, 255, .14); color: #F3D9C7;
  border: 1px solid rgba(243, 217, 199, .45);
}
.ng-card-price { white-space: nowrap; }
.success-summary-row span.svc-name, .confirm-row .svc-name { font-weight: 400; }

/* ============================================================
   «НОГОТОК» · LUXE (07.11.2026, вечер) — по референсу Светы
   Тон в тон: пыльная роза (цвета сняты с референса пипеткой),
   тиснёная монограмма, заглавные с разрядкой, тонкие линии.
   Тёмный акцент — как чёрная крышка флакона. Винного больше нет.
   ============================================================ */
:root {
  --blush-1:   #EDC8C2;   /* фон, верх — референс */
  --blush-2:   #E7BCB6;   /* фон, середина — референс */
  --blush-3:   #DAA9A2;   /* фон, низ — референс */
  --rose-deep: #AE7974;   /* рельеф и тени букв — референс */
  --paper:     #F3D9D4;   /* карточки: светлее фона, тот же тон */
  --ink:       #4A2E2C;   /* текст */
  --muted:     #7A524E;   /* подписи (контраст на фоне ≥ 4.5) */
  --espresso:  #1E1718;   /* крышка флакона — главные кнопки */
  --hair:      rgba(174, 121, 116, .38);

  /* переназначаем прежние имена — запись и кабинет подхватят сами */
  --milk:   var(--blush-1);
  --powder: var(--paper);
  --powder-2: var(--hair);
  --wine:   var(--espresso);
  --wine-deep: #000;
  --champagne: var(--rose-deep);
  --accent: var(--espresso);
  --accent2: var(--rose-deep);
  --gold: var(--rose-deep);
  --line: rgba(174, 121, 116, .28);
  --sh-md: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 14px 30px rgba(110, 60, 56, .10);
  --sh-sm: 0 1px 0 rgba(255, 255, 255, .45) inset;
  --radius-lg: 6px;
  --radius: 6px;
}

html, body, #app { background: var(--blush-2); }
.screen {
  background: linear-gradient(180deg, var(--blush-1) 0%, var(--blush-2) 45%, var(--blush-3) 100%) fixed;
  color: var(--ink);
}
@media (min-width: 480px) { html, body { background: #CDA49E; } }

/* подписи — заглавные с широкой разрядкой, как «LOGO-DESIGN» */
.ng-studio, .ng-role, .ng-card-cat, .ng-next-label, .slots-label, .master-section-label,
.ng-foot, .master-header-title {
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .32em;
  color: var(--rose-deep);
}

/* ---------- Шапка: монограмма с тиснением ---------- */
.ng-hero {
  background: none;
  padding: 40px 24px 28px;
  text-align: center;
}
.ng-monogram {
  width: 108px; height: 108px; margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #F1D1CB, var(--blush-2) 70%);
  box-shadow:
    inset 2px 2px 3px rgba(255, 255, 255, .55),
    inset -2px -3px 5px rgba(174, 121, 116, .35),
    0 0 0 1px var(--hair), 0 0 0 9px rgba(255, 255, 255, .0), 0 0 0 10px var(--hair);
  overflow: hidden;
}
.ng-monogram span {
  font-family: var(--font-display); font-size: 60px; line-height: 1;
  color: var(--blush-2);
  text-shadow: -1px -1px 1px rgba(255, 255, 255, .75), 1px 2px 2px rgba(150, 95, 90, .55);
}
.ng-monogram img { width: 100%; height: 100%; object-fit: cover; }
.ng-studio { font-size: 10px; }
.ng-name { font-size: 46px; margin: 10px 0 6px; color: var(--ink); letter-spacing: .02em; }
.ng-role { font-size: 10px; color: var(--muted); }
.ng-rating { margin-top: 12px; font-size: 13px; font-weight: 400; color: var(--ink); letter-spacing: .04em; }
.ng-star { color: var(--rose-deep); }
.ng-muted { color: var(--muted); }
.ng-tagline {
  margin: 22px auto 0; padding: 18px 0 0; max-width: 300px;
  border-top: 1px solid var(--hair);
  font-size: 17px; line-height: 1.5; color: var(--ink);
}
.ng-hero-actions { justify-content: center; gap: 10px; margin-top: 20px; }
.ng-open, .ng-share {
  background: transparent; border: 1px solid var(--hair); border-radius: 999px;
  font-size: 10px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); padding: 9px 14px;
}
.ng-open i { background: #7E9C83; box-shadow: none; width: 6px; height: 6px; }
.ng-share .svg-ic { width: 13px; height: 13px; }
.ng-next {
  margin-top: 22px; padding: 18px 20px; border-radius: 4px;
  background: var(--espresso); color: var(--blush-1);
  box-shadow: 0 16px 30px rgba(60, 30, 30, .22);
  text-align: left;
}
.ng-next-label { color: var(--rose-deep); font-size: 9px; opacity: 1; }
.ng-next-time { font-size: 22px; color: var(--blush-1); }
.ng-next-go { color: var(--blush-1); font-size: 10px; letter-spacing: .25em; text-transform: uppercase; font-weight: 400; }

/* ---------- Услуги ---------- */
.ng-services { padding: 30px 18px 4px; }
.ng-h2 { text-align: center; font-size: 30px; margin-bottom: 6px; }
.ng-h2::after {
  content: ''; display: block; width: 40px; height: 1px; margin: 14px auto 0; background: var(--rose-deep);
}
.ng-section .ng-h2 { margin-bottom: 18px; }
.ng-chips { justify-content: flex-start; margin: 18px -18px 22px; padding: 2px 18px; }
.ng-chip {
  background: transparent; border: 1px solid var(--hair); border-radius: 999px;
  font-size: 10px; font-weight: 400; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink); padding: 10px 16px;
}
.ng-chip.active { background: var(--espresso); border-color: var(--espresso); color: var(--blush-1); }
.ng-pending { background: rgba(255, 255, 255, .3); border: 1px solid var(--hair); border-radius: 4px; }

.ng-cards { gap: 18px; }
.ng-card {
  background: rgba(243, 217, 212, .55);
  border: 1px solid var(--hair);
  border-radius: 4px;
  box-shadow: var(--sh-md);
}
.ng-card-visual {
  height: 190px;
  background:
    radial-gradient(55% 70% at 50% 62%, color-mix(in srgb, var(--shade) 22%, transparent), transparent 70%),
    linear-gradient(165deg, #F3D6D1, var(--blush-2));
  border-bottom: 1px solid var(--hair);
}
.ng-card-visual::after { display: none; }
.nail-art { height: 132px; margin: 0; filter: drop-shadow(0 12px 14px rgba(90, 45, 42, .22)); }
.ng-card-body { padding: 20px 20px 22px; text-align: center; }
.ng-card-cat { font-size: 9px; }
.ng-card-name { font-size: 22px; margin-top: 10px; }
.ng-card-desc { color: var(--muted); font-size: 14px; max-width: 290px; margin: 10px auto 0; }
.ng-card-foot {
  flex-direction: column; align-items: center; gap: 14px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair);
}
.ng-card-price { font-size: 24px; color: var(--ink); }
.ng-card-dur { justify-content: center; color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.ng-btn, .btn-primary, .btn {
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.ng-btn {
  width: 100%; padding: 15px 20px;
  background: var(--espresso); color: var(--blush-1);
  box-shadow: none;
}
.ng-btn:active { background: #000; }
.btn-primary { background: var(--espresso); color: var(--blush-1); box-shadow: none; padding-top: 16px; padding-bottom: 16px; }
.btn-primary:disabled { background: rgba(30, 23, 24, .18); color: rgba(74, 46, 44, .5); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--hair); }

/* ---------- Отзывы, контакты ---------- */
.ng-review {
  background: rgba(243, 217, 212, .55); border: 1px solid var(--hair); border-radius: 4px;
  text-align: center;
}
.ng-review-stars { color: var(--rose-deep); letter-spacing: 6px; font-size: 11px; }
.ng-review figcaption { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.ng-contact { border-bottom-color: var(--hair); justify-content: flex-start; }
.ng-contact .svg-ic { color: var(--rose-deep); }
.ng-foot { color: var(--rose-deep); font-size: 9px; padding-bottom: 14px; }

/* ---------- Нижняя панель ---------- */
#bottom-nav { background: rgba(237, 200, 194, .88); border-top: 1px solid var(--hair); }
.nav-item { color: var(--rose-deep); }
.nav-item.active { color: var(--espresso); }
.nav-label { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; }

/* ---------- Запись и «Мои записи» ---------- */
.booking-sticky, .detail-sticky { background: transparent; border-bottom: 1px solid var(--hair); }
.booking-sticky-price { color: var(--ink); }
.date-btn, .slot-btn {
  background: rgba(243, 217, 212, .55); border: 1px solid var(--hair); border-radius: 4px; color: var(--ink);
}
.date-btn.active, .slot-btn.active { background: var(--espresso); border-color: var(--espresso); color: var(--blush-1); }
.slot-btn.busy { background: transparent; color: rgba(122, 82, 78, .45); }
.confirm-card, .success-summary, .web-contact, .booking-card {
  background: rgba(243, 217, 212, .6); border: 1px solid var(--hair); border-radius: 4px; box-shadow: var(--sh-md);
}
.web-input, .comment-field, .master-form-input, .master-form-textarea {
  background: rgba(255, 255, 255, .35); border: 1px solid var(--hair); border-radius: 2px;
}
.web-input:focus, .comment-field:focus, .master-form-input:focus { border-color: var(--espresso); }
.confirm-price-val { color: var(--ink); }
.consent-row input { accent-color: var(--espresso); }
.success-icon { color: var(--espresso); }
.status-confirmed { background: transparent; border: 1px solid var(--hair); color: var(--ink); }
.status-completed { background: transparent; border: 1px solid rgba(126, 156, 131, .5); color: #4E6E55; }
.tab-btn.active { color: var(--espresso); border-color: var(--espresso); }
.btn-cancel-text, .btn-rebook-text, .confirm-map-link, .consent-link { color: var(--ink); }

/* ---------- Кабинет ---------- */
.master-header {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(174, 121, 116, .35), transparent 55%),
    var(--espresso);
  border-radius: 0;
}
.master-header-salon { color: var(--blush-1); }
.master-header-title { font-size: 9px; }
.plan-badge.plan-pro { background: transparent; color: var(--blush-1); border: 1px solid rgba(237, 200, 194, .45); letter-spacing: .2em; }
.master-nav-card, .master-export-card, .master-service-row, .master-client-row {
  background: rgba(243, 217, 212, .6); border: 1px solid var(--hair); border-radius: 4px; box-shadow: var(--sh-sm);
}
.master-nav-icon {
  color: var(--espresso); background: transparent;
  box-shadow: inset 0 0 0 1px var(--hair);
}
.master-add-btn, .is-master .master-add-btn {
  background: var(--espresso); color: var(--blush-1); border-radius: 2px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
}
.master-sub-card { background: var(--espresso); }
.master-sub-btn { background: var(--blush-1); color: var(--espresso); }
.master-client-avatar { background: transparent; border: 1px solid var(--hair); color: var(--ink); }
.master-web-badge { background: transparent; border: 1px solid var(--hair); color: var(--muted); }
.btn-complete-booking, .is-master .btn-complete-booking {
  border-radius: 2px; color: var(--ink); border-color: var(--hair);
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase; font-weight: 400;
}
.master-booking-client .svg-ic, .booking-card-service .svg-ic { color: var(--rose-deep); }
#toast { background: var(--espresso); color: var(--blush-1); border-radius: 2px; letter-spacing: .04em; }
#bs-panel { background: var(--blush-1); }
.ng-monogram {
  box-shadow: inset 2px 2px 3px rgba(255, 255, 255, .55), inset -2px -3px 5px rgba(174, 121, 116, .35), 0 0 0 1px var(--hair);
  outline: 1px solid var(--hair);
  outline-offset: 8px;
  margin-top: 8px; margin-bottom: 26px;
}
.web-contact { padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.web-contact-title { font-size: 20px; }
.status-badge { font-weight: 400; letter-spacing: .04em; }

/* ============================================================
   Кабинет · luxe — гасим старые «крупные жирные» правила общей записи
   ============================================================ */
/* кнопки — как на главной: мелкие заглавные с разрядкой */
.is-master .btn, .is-master .master-form-submit, .is-master .block-time-allday-btn, .master-sub-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  line-height: 1.3;
  border-radius: 2px;
  padding: 16px 18px;
}
.is-master .btn-secondary, .is-master .block-time-allday-btn {
  background: transparent; color: var(--ink); border: 1px solid var(--hair);
}
.is-master .master-add-btn, .is-master .btn-complete-booking { font-size: 10px; font-weight: 400; letter-spacing: .24em; }
.is-master .sched-dur-btn {
  font-family: var(--font-body); font-size: 14px; font-weight: 400; letter-spacing: .06em;
  border-radius: 2px; border: 1px solid var(--hair); background: transparent; color: var(--ink);
}
.is-master .sched-dur-btn.active { background: var(--espresso); border-color: var(--espresso); color: var(--blush-1); }

/* поля — обычное начертание, без разрядки */
.is-master .master-form-input, .is-master .master-form-textarea, .is-master .sched-time-input {
  font-family: var(--font-body); font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--ink);
}
.is-master .sched-time-input { font-size: 15px; }
.master-form-label {
  font-size: 9px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--rose-deep);
}

/* названия у Prata — без ложного жирного */
.sched-day-name, .master-sub-title, .master-header-salon { font-weight: 400; }
.sched-day-name { font-size: 18px; }
.sched-days-list { background: rgba(243, 217, 212, .55); border: 1px solid var(--hair); border-radius: 4px; }

/* телефоны и прочие мелочи — спокойно, в тон */
.master-client-phone { color: var(--ink); font-weight: 400; text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.master-client-meta, .master-service-row-meta, .master-sub-hint, .master-sub-perks { font-weight: 400; }
.master-sub-card { border-radius: 4px; }
.master-sub-badge { background: transparent; box-shadow: inset 0 0 0 1px rgba(237, 200, 194, .4); }
.master-service-row-icon { background: transparent; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); }
.master-icon-btn, .master-icon-btn.danger { color: var(--rose-deep); opacity: 1; }
.legend-dot-blocked { background: var(--espresso); }
.slot-btn.block-slot-blocked { background: var(--espresso); color: var(--blush-1); border-color: var(--espresso); }
.master-client-avatar, .master-client-name { font-weight: 400; }
.ng-monogram-sm { font-family: var(--font-display); font-size: 32px; color: var(--blush-2); text-shadow: -1px -1px 1px rgba(255,255,255,.75), 1px 2px 2px rgba(150,95,90,.55); }
.btn-cal { display: inline-flex; align-items: center; justify-content: center; gap: 10px; } .btn-cal .svg-ic { width: 16px; height: 16px; } .booking-actions { display: inline-flex; gap: 18px; align-items: center; } .btn-cal-text { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; } .btn-cal-text .svg-ic { width: 15px; height: 15px; color: var(--rose-deep); }
.ng-card-visual.has-photo { height: auto; aspect-ratio: 4 / 3; padding: 0; background: var(--blush-2); } .ng-card-visual.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Фото услуги ---------- */
.svc-photo-box {
  aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--hair); background: linear-gradient(165deg, #F3D6D1, var(--blush-2));
  display: flex; align-items: center; justify-content: center;
}
.svc-photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-photo-empty .nail-art { height: 120px; }
.svc-photo-actions { display: flex; gap: 8px; margin-top: 10px; }
.svc-photo-actions .btn { flex: 1; margin: 0; padding: 13px 8px; font-size: 10px; letter-spacing: .18em; }
.svc-photo-actions .btn[hidden] { display: none; }
.master-hint { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.master-service-row-icon.has-photo { overflow: hidden; padding: 0; box-shadow: none; }
.master-service-row-icon.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- Фото услуги — в круге, крупно пальцы (07.11) ---------- */
.ng-card-visual.has-photo {
  aspect-ratio: auto; height: 250px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(55% 70% at 50% 55%, rgba(255, 255, 255, .35), transparent 70%),
    linear-gradient(165deg, #F3D6D1, var(--blush-2));
}
.ng-card-visual.has-photo img,
.svc-photo-box img {
  width: 196px; height: 196px; border-radius: 50%; object-fit: cover; object-position: center;
  outline: 1px solid var(--hair); outline-offset: 7px;
  box-shadow: 0 14px 28px rgba(90, 45, 42, .22);
}
.svc-photo-box { aspect-ratio: auto; height: 250px; }

/* ---------- Пометка «Демо» ---------- */
.ng-demo {
  padding: 9px 16px; text-align: center;
  background: var(--espresso); color: var(--blush-1);
  font-size: 9px; letter-spacing: .28em; text-transform: uppercase;
}
.ng-demo-note {
  margin: 22px 18px 0; padding: 14px 16px; text-align: center;
  border: 1px dashed var(--hair); border-radius: 4px;
  font-size: 13px; line-height: 1.5; color: var(--muted);
}
a.ng-foot { display: block; text-decoration: none; text-transform: none; letter-spacing: .02em; font-size: 13px; color: var(--muted); padding: 22px 16px 16px; }
a.ng-foot span { display: block; margin-top: 6px; font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink); }

/* ---------- Высота во встроенных браузерах (07.11) ----------
   100vh в браузере Telegram/Viber на Android включает место под их
   нижней полосой — нижняя панель уезжала за экран. Берём видимую
   высоту: --app-h (меряет index.html) → 100dvh → 100vh. */
html, body { height: 100%; }
#app { height: 100vh; height: 100dvh; height: var(--app-h, 100dvh); }
.master-sub-demo { margin: 10px 4px 0; font-size: 12px; line-height: 1.45; color: var(--muted); text-align: center; }

/* ---------- Панель «Поделиться» ---------- */
.share-url { word-break: break-all; font-size: 13px; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 10px; }
.share-btn {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px;
  border: 1px solid var(--hair); border-radius: 2px; background: rgba(255, 255, 255, .3);
  color: var(--ink); text-decoration: none; font-family: var(--font-body);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; text-align: center;
}
.share-btn:active { background: var(--espresso); color: var(--blush-1); }
#share-copy:last-child { grid-column: 1 / -1; }
.master-sub-info .master-sub-hint + .master-sub-hint { margin-top: 4px; opacity: .8; }

/* ============================================================
   Экран услуги (08.11): шапка «назад + название», картинка,
   цена и время, описание, «Что включено», кнопка внизу
   ============================================================ */
.ng-card { cursor: pointer; }

.sd-bar {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  height: 54px; padding: 0 6px;
  background: var(--milk); border-bottom: 1px solid var(--hair);
}
.sd-back {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--rose-deep); background: none; border: 0;
}
.sd-back svg { width: 24px; height: 24px; }
.sd-back:active { opacity: .5; }
.sd-bar-title {
  text-align: center; font-family: var(--font-display); font-size: 18px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sd-visual { position: relative; border-bottom: 1px solid var(--hair); }
.sd-art {
  height: 260px; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(55% 70% at 50% 60%, color-mix(in srgb, var(--shade) 24%, transparent), transparent 70%),
    linear-gradient(165deg, #F3D6D1, var(--blush-2));
}
.sd-art .nail-art { height: 170px; }
.sd-photos {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.sd-photos::-webkit-scrollbar { display: none; }
.sd-photo { flex: 0 0 100%; height: 300px; padding: 0; border: 0; scroll-snap-align: start; background: var(--blush-2); }
.sd-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.sd-dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .6); transition: width .2s; }
.sd-dots span.on { width: 18px; background: #fff; }

.sd-body { padding: 24px 22px 8px; }
.sd-cat { font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--rose-deep); }
.sd-name {
  margin: 10px 0 0; font-family: var(--font-display); font-weight: 400;
  font-size: 28px; line-height: 1.2; color: var(--ink);
}
.sd-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--hair);
}
.sd-price { font-family: var(--font-display); font-size: 26px; color: var(--ink); }
.sd-dur {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--hair); border-radius: 999px;
  font-size: 13px; color: var(--muted); white-space: nowrap;
}
.sd-dur .svg-ic { width: 15px; height: 15px; }
.sd-desc { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.sd-inc-title {
  margin-top: 26px; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.sd-inc { list-style: none; margin: 8px 0 0; padding: 0; }
.sd-inc li {
  position: relative; padding: 14px 0 14px 22px; border-bottom: 1px solid var(--hair);
  font-size: 15px; color: var(--ink);
}
.sd-inc li:last-child { border-bottom: 0; }
.sd-inc li::before {
  content: ''; position: absolute; left: 2px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: var(--rose-deep);
}
.sd-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px 18px calc(12px + var(--safe-b, 0px));
  background: var(--milk); border-top: 1px solid var(--hair);
}
/* Экран услуги: нижнее меню прячем, место под кнопку «Записаться» */
body.on-service-detail #bottom-nav { display: none; }
body.on-service-detail .screen { padding-bottom: calc(84px + var(--safe-b, 0px)); }

/* Подсказка под полем формы кабинета («Что включено») */
.master-form-hint { margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.is-master .sf-includes { min-height: 120px; }
