:root {
      --primary: #d78fa3;
      --primary-dark: #b96882;
      --screen-bg: #f7f3f4;
      --card: #ffffff;
      --line: #ece3e6;
      --text: #161215;
      --muted: #746b70;
      --shadow: 0 10px 30px rgba(28, 21, 24, 0.06);
      --radius-xl: 24px;
      --radius-lg: 18px;
      --radius-md: 14px;
      --maxw: 430px;
    }

    * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
    html,
body {
  margin: 0;
  padding: 0;
  background: var(--screen-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overscroll-behavior-y: none;
}
    body {
  min-height: 100vh;
  background: var(--screen-bg);
}

body.loading-data,
html:has(body.loading-data) {
  background: #ffffff !important;
}

body.loading-data .app {
  opacity: 0;
  pointer-events: none;
  background: #ffffff !important;
}

.missing-page {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: #ffffff;
  padding: calc(30vh + env(safe-area-inset-top)) 26px 24px;
  text-align: center;
}

.missing-page.show {
  display: flex;
}

.missing-page-inner {
  width: 100%;
  max-width: 360px;
  position: relative;
  min-height: 260px;
}

/* 🔥 ЛОГО */
.missing-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin-bottom: 22px;
  opacity: 0.95;
}

/* 🔥 ПЕРВАЯ СТРОКА */
.missing-title {
  margin: 0 0 12px;
  color: #161215;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 750;
}

.missing-subtitle {
  margin: 4px 0 0;   /* было 0 → теперь ближе к заголовку */
  color: #746b70;
  font-size: 16px;
  line-height: 1.32;
  min-height: 48px;
}


.missing-app {
  position: absolute;
  left: 0;
  right: 0;
  top: 220px;
  text-align: center;
}

.missing-app a {
  color: #161215;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  border-bottom: 1px solid rgba(22,18,21,.28);
}

.app {
  width: 100%;
  max-width: var(--maxw);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--screen-bg);
  position: relative;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.02);
  padding-bottom: 96px;
  opacity: 1;
  transition: opacity 0.22s ease;
}

    .screen { display: none; }
    .screen.active { display: block; }

    .topbar {
      padding: calc(18px + env(safe-area-inset-top)) 22px 14px;
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
    }

    .brand-name {
      font-family: "Times New Roman", Georgia, serif;
      letter-spacing: 2.8px;
      font-size: 26px;
      margin: 0;
      text-transform: uppercase;
      font-weight: 500;
      line-height: 1;
    }

    .brand-type {
      margin-top: 3px;
      color: var(--muted);
      font-size: 13px;
      letter-spacing: 0.8px;
    }

    .menu-btn, .back-btn {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      border: 1px solid transparent;
      background: transparent;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--text);
    }

    .menu-lines, .back-icon {
      width: 24px;
      height: 20px;
      position: relative;
      display: inline-block;
    }

    .menu-lines::before, .menu-lines::after, .menu-lines span {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      height: 1.75px;
      border-radius: 10px;
      background: var(--text);
    }

    .menu-lines::before { top: 3px; }
    .menu-lines span { top: 9px; }
    .menu-lines::after { top: 15px; }
    .back-icon { width: 20px; }
    .back-icon::before {
      content: "";
      width: 10px;
      height: 10px;
      border-left: 2px solid var(--text);
      border-bottom: 2px solid var(--text);
      transform: rotate(45deg);
      position: absolute;
      left: 6px;
      top: 4px;
    }



.hero {
  padding: 0px 22px 22px;
}

.hero-image {
  width: calc(100% + 44px);
  margin-left: -22px;
  margin-right: -22px;
  margin-bottom: 0px;

  aspect-ratio: 0.86 / 1;

  border-radius: 0;
  overflow: hidden;

  background: linear-gradient(180deg, #efe6e9 0%, #f7f1f3 100%);
  position: relative;
}

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

.hero-image:not(.placeholder)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 120px;
  z-index: 2;
  pointer-events: none;

  background: linear-gradient(
    to top,
    var(--screen-bg) 0%,
    color-mix(in srgb, var(--screen-bg) 88%, transparent) 28%,
    color-mix(in srgb, var(--screen-bg) 55%, transparent) 55%,
    color-mix(in srgb, var(--screen-bg) 20%, transparent) 78%,
    transparent 100%
  );
}

.hero-image.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 62% 35%, rgba(227,193,204,0.95) 0 7%, transparent 7.5%),
    radial-gradient(circle at 58% 48%, rgba(223,187,199,0.95) 0 7%, transparent 7.5%),
    radial-gradient(circle at 55% 61%, rgba(228,196,206,0.95) 0 7%, transparent 7.5%),
    linear-gradient(135deg, #f3ebee 0%, #e6d6db 100%);
  opacity: 0.95;
}

.hero-image.placeholder::after {
  content: "";
  position: absolute;
  width: 62%;
  height: 74%;
  right: 4%;
  top: 9%;
  border-radius: 38% 38% 30% 34% / 40% 44% 28% 30%;
  background: linear-gradient(145deg, #ddb19c 0%, #f0d2bf 55%, #f2d5c4 100%);
  box-shadow: inset -22px -24px 40px rgba(164,104,76,0.10), inset 12px 14px 20px rgba(255,255,255,0.45);
  transform: rotate(-14deg);
  opacity: 0.9;
}

    .hero-title {
      font-family: "Times New Roman", Georgia, serif;
      font-size: 34px;
      line-height: 1.06;
      letter-spacing: -0.4px;
      margin: 0 0 12px;
      white-space: pre-line;
    }

    .hero-subtitle {
      margin: 0 0 22px;
      color: #40373b;
      font-size: 18px;
      line-height: 1.34;
    }
    
    /* нажатие — как в iOS */
.cta:active {
  transform: scale(0.985);
  box-shadow:
    0 6px 14px color-mix(in srgb, var(--primary) 22%, transparent),
    inset 0 2px 6px rgba(0,0,0,0.08);
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.35) 0%,
    rgba(255,255,255,0.12) 35%,
    transparent 100%
  );

  pointer-events: none;
}

.cta {
  position: relative;
  overflow: hidden;

  width: 100%;
  border: none;
  border-radius: 18px;

  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );

  color: white;
  font-size: 18px;
  font-weight: 650;

  padding: 17px 18px;
  cursor: pointer;

  /* 🔥 ВОТ ЭТО ГЛАВНОЕ */
  box-shadow:
    0 16px 32px color-mix(in srgb, var(--primary) 40%, transparent), /* основная глубина */
    0 6px 14px rgba(0,0,0,0.08),                                     /* реальная тень */
    inset 0 1px 0 rgba(255,255,255,0.35);                            /* свет сверху */

  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;

  margin-top: 14px;
}

    .features {
      margin-top: 26px;
      padding-top: 18px;
      border-top: 1px solid var(--line);
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      text-align: center;
    }

    .feature-icon {
      width: 28px; height: 28px; margin: 0 auto 10px; display: block; color: var(--text);
    }
    .feature-title { font-size: 14px; line-height: 1.32; color: #292327; }



    .menu-sheet {
      position: fixed;
      inset: 0;
      background: rgba(20, 14, 17, 0.22);
      backdrop-filter: blur(10px) saturate(120%);
      -webkit-backdrop-filter: blur(10px) saturate(120%);
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: calc(76px + env(safe-area-inset-top)) 16px 24px;
      z-index: 40;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transition: opacity .22s ease, visibility .22s ease;
    }
    .menu-sheet.show {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }
    .menu-panel {
  width: min(100%, calc(var(--maxw) - 24px));

  background: linear-gradient(
  180deg,
  color-mix(in srgb, var(--screen-bg) 97%, white) 0%,
  color-mix(in srgb, var(--screen-bg) 96%, white) 100%
);

  border: 1px solid color-mix(in srgb, var(--screen-bg) 80%, white);

  border-radius: 30px;

  box-shadow:
    0 28px 70px color-mix(in srgb, black 18%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--screen-bg) 70%, white);

  overflow: hidden;
  transform: translateY(-10px) scale(0.985);
  transition: transform .24s ease;
}
    .menu-sheet.show .menu-panel {
      transform: translateY(0) scale(1);
    }
    .menu-header {
      padding: 10px 18px 8px;
      font-size: 13px;
      letter-spacing: 0.7px;
      text-transform: uppercase;
      color: var(--muted);
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .menu-grabber {
      width: 44px;
      height: 5px;
      border-radius: 999px;
      background: rgba(102, 92, 97, 0.18);
      margin: 0 auto;
    }
    .menu-toprow {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .menu-close {
      width: 34px;
      height: 34px;
      border: none;
      border-radius: 999px;
      background: rgba(54, 42, 48, 0.06);
      color: var(--text);
      font-size: 22px;
      line-height: 34px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex: 0 0 34px;
    }
    .menu-list { padding: 6px 12px 14px; display: grid; gap: 6px; }
    .menu-item {
      width: 100%;
      border: none;
      background: rgba(255,255,255,0.62);
      border-radius: 20px;
      padding: 15px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 16px;
      color: var(--text);
      cursor: pointer;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    }
    .menu-item.active {
  background: color-mix(in srgb, var(--primary) 13%, white);
  color: var(--primary-dark);
  font-weight: 600;
}
    .menu-item-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .menu-item-icon {
      width: 34px;
      height: 34px;
      border-radius: 12px;
      background: color-mix(in srgb, var(--primary) 10%, white);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: currentColor;
    }
    .menu-item-icon svg {
      width: 18px;
      height: 18px;
      display: block;
      stroke: currentColor;
    }
    .menu-item-arrow {
      width: 8px; height: 8px;
      border-top: 1.8px solid currentColor;
      border-right: 1.8px solid currentColor;
      transform: rotate(45deg);
      opacity: 0.75;
      margin-right: 4px;
    }

    .section-head {
      display: flex; align-items: center; gap: 12px;
      padding: calc(18px + env(safe-area-inset-top)) 18px 12px;
    }
    .section-title { margin: 0; font-size: 18px; font-weight: 700; flex: 1; text-align: center; }
    .section-spacer { width: 38px; height: 38px; }

    .stepper { padding: 0 18px 16px; }
    .stepper-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: start; }
    .stepper-track::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 12px;
  height: 2px;
  background: color-mix(in srgb, var(--screen-bg) 88%, #8f858a);
}
    .step { position: relative; text-align: center; z-index: 1; }
    .step-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--screen-bg) 88%, #8f858a);
  margin: 4px auto 12px;
  border: 2px solid var(--screen-bg);
}
    .step.done .step-dot, .step.active .step-dot { background: var(--primary); }
    .step-label { font-size: 13px; color: var(--muted); line-height: 1.2; }
    .step.active .step-label { color: var(--primary-dark); }

    .content { padding: 0 18px 26px; }
    .block-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; }

    .service-list, .staff-list, .bookings-list { display: grid; gap: 14px; }

    .card {
      border: 1px solid var(--line);
      background: var(--card);
      border-radius: 18px;
      box-shadow: var(--shadow);
      padding: 12px;
      transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    }
    .card.clickable { cursor: pointer; }
    .card.clickable:active { transform: scale(0.995); }
    .card.selected {
  border-color: var(--primary);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--primary) 22%, transparent);
}

    .service-card { display: grid; grid-template-columns: 92px minmax(0,1fr) 28px; align-items: center; gap: 14px; padding-right:10px; }
    .thumb {
      width: 92px; height: 92px; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #ead8de 0%, #f2ecee 100%);
      flex-shrink: 0;
    }
    .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .thumb.placeholder { position: relative; }
    .thumb.placeholder {
  position: relative;
  overflow: hidden;
}

.thumb.placeholder {
  position: relative;
  overflow: hidden;
}

.thumb.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(135deg, #f8f8f8 0%, #eeeeee 100%);
  opacity: 1;
}

.thumb.placeholder {
  position: relative;
  overflow: hidden;
}

/* фон оставляем как сделали (серый premium) */
.thumb.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(135deg, #f8f8f8 0%, #eeeeee 100%);
}

/* 🔥 ИКОНКА КАМЕРЫ */
.thumb.placeholder::after {
  content: "";
  position: absolute;
  inset: 0;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px;

  opacity: 0.35;

  /* тонкая iOS-style камера */
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'>\
<path d='M3 7.5A2.5 2.5 0 0 1 5.5 5h2l1.2-1.6A1.5 1.5 0 0 1 10 3h4a1.5 1.5 0 0 1 1.3.7L16.5 5h2A2.5 2.5 0 0 1 21 7.5v9A2.5 2.5 0 0 1 18.5 19h-13A2.5 2.5 0 0 1 3 16.5z'/>\
<circle cx='12' cy='12' r='3.2'/>\
</svg>");
}

    .service-name, .staff-name { font-size: 17px; line-height: 1.2; margin: 0 0 6px; font-weight: 600; }
    .service-meta, .staff-meta, .booking-meta { color: var(--muted); font-size: 15px; line-height: 1.3; margin: 0; }
    .service-price { color: var(--primary-dark); font-size: 18px; line-height: 1.2; margin-top: 8px; }
    .arrow { color: #b5adb0; font-size: 28px; font-weight: 300; text-align: right; }

    .dates-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 26px; }
    .date-chip, .time-chip {
      border: 1px solid #e8dee2; background: white; border-radius: 14px; color: #2c2428;
      cursor: pointer; transition: .15s ease; text-align: center;
    }
    .date-chip { padding: 12px 4px; min-height: 86px; display: flex; flex-direction: column; justify-content: center; }
    .date-weekday { font-size: 15px; margin-bottom: 8px; }
    .date-day { font-size: 14px; color: var(--muted); }
    .date-chip.selected,
.time-chip.selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, white);
  color: var(--primary-dark);
}

    .times-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
    .time-chip { padding: 16px 8px; font-size: 22px; font-weight: 500; }
    .time-chip.disabled { opacity: 0.34; cursor: not-allowed; }

    .primary-bar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--screen-bg) 0%, transparent) 0%,
    var(--screen-bg) 18%,
    var(--screen-bg) 40%
  );
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
}
    .selection-summary { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.45; }
    .selection-summary strong { display: block; color: var(--text); font-size: 18px; line-height: 1.35; margin-top: 6px; font-weight: 500; }

    .form-card { padding: 18px; display: grid; gap: 14px; }
    .field {
  display: grid;
  gap: 7px;
  margin-top: 14px; /* ← расстояние между полями */
}
    .field label {
  font-size: 14px;
  color: #544b50;
  font-weight: 600;
  margin-bottom: 2px; /* ← маленький, но важный зазор */
}
    .field input, .field textarea {
      width: 100%; border: 1px solid #e6dde1; background: white; border-radius: 14px; padding: 14px 15px; font-size: 16px; outline: none;
    }
    .field textarea { min-height: 90px; resize: vertical; }
    .field input:focus,
.field textarea:focus {
  border-color: var(--primary);
}
    .hint { font-size: 13px; color: var(--muted); }

    .empty-state, .loading-state { color: var(--muted); font-size: 15px; text-align: center; padding: 30px 12px; }

    .bottom-nav {
      position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: var(--maxw);
      background: var(--screen-bg); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 6px calc(10px + env(safe-area-inset-bottom));
      display: grid; grid-template-columns: repeat(4, 1fr); z-index: 20;
    }
    .nav-item {
      background: transparent; border: none; display: grid; justify-items: center; gap: 6px; color: #6f666b; font-size: 12px; padding: 4px 4px; cursor: pointer;
    }
    .nav-item svg { width: 22px; height: 22px; }
    .nav-item.active { color: var(--primary-dark); }

    .mini-title {
  font-size: 16px;
  font-weight: 700;
  margin: 18px 0 16px; /* ← больше воздуха снизу */
}
    .profile-card { padding: 18px; }
    .profile-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .profile-row:last-child { border-bottom: none; }
    .profile-key { color: var(--muted); font-size: 14px; }
    .profile-val { font-size: 15px; text-align: right; }

    .status-banner {
      margin: 0 18px 14px; border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.4;
      background: #fff4f6; color: #8d3c56; border: 1px solid #f1d8e0; display: none;
    }
    .status-banner.show { display: block; }
    .status-banner.ok { background: #f0fbf5; color: #1d6a43; border-color: #d7efdf; }

    .muted { color: var(--muted); }
    .hidden { display: none !important; }



    .home-info { margin-top: 18px; display: grid; gap: 10px; }
    .info-card { border: 1px solid var(--line); background: rgba(255,255,255,0.72); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
    .info-title { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
    .info-value { font-size: 16px; color: var(--text); margin: 0; line-height: 1.35; }
    .social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
    .social-link {
  text-decoration: none;
  color: var(--text);

  background: color-mix(in srgb, var(--screen-bg) 92%, white);
  border: 1px solid color-mix(in srgb, var(--screen-bg) 70%, #cfcfcf);

  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 600;
}
    .lang-btn { border: 1px solid var(--line); background: rgba(255,255,255,0.76); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
    .lang-btn.active { color: white; background: var(--primary); border-color: var(--primary); }
    .booking-mode-note { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.4; text-align: center; }


    .feature-action { border: none; background: transparent; padding: 0; margin: 0; color: inherit; font: inherit; cursor: pointer; text-align: center; }
    .feature-action:active { transform: scale(0.985); }
    .feature-action .feature-icon { transition: transform .18s ease; }
    .feature-action:active .feature-icon { transform: scale(0.96); }

    .auth-row { display:flex; gap:10px; padding: 10px 14px 16px; }
    .auth-action {
  flex: 1;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, white);
  border-radius: 16px;
  padding: 12px 10px;
  background: rgba(255,255,255,.72);
  color: var(--primary-dark);
  font-weight: 750;
  cursor: pointer;
}
    .auth-action.primary { background: var(--primary); color:white; border-color: var(--primary); }
    .auth-user { padding: 6px 18px 10px; color: var(--text); font-size:16px; line-height:1.35; font-weight:800; text-align:center; text-transform:none; letter-spacing:0; }
    .menu-auth-bottom { border-top:1px solid rgba(236,227,230,.85); margin:4px 12px 0; padding:10px 0 0; }
    .menu-auth-bottom .auth-row { padding-left:0; padding-right:0; padding-bottom:4px; }
    .feature-action .feature-icon { width: 38px; height: 38px; stroke-width: 1.75; }

    .page-grid { display:grid; gap:14px; }
    .gallery-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; }
    .gallery-item { border-radius:18px; overflow:hidden; aspect-ratio:1; background: linear-gradient(135deg, #f3e8ec, #fff); border:1px solid var(--line); box-shadow: var(--shadow); }
    .gallery-item img { width:100%; height:100%; object-fit:cover; display:block; }
    .review-card { padding:16px; display:grid; gap:8px; }
    .review-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
    .review-name { font-weight:750; font-size:15px; }
    .review-date { color: var(--muted); font-size:12px; white-space:nowrap; }
    .review-comment { margin:0; color:#40373b; font-size:15px; line-height:1.45; white-space:pre-wrap; }
    .review-photo { width:100%; max-height:220px; object-fit:cover; border-radius:16px; border:1px solid var(--line); }
    .counter-row { display:flex; justify-content:flex-end; color: var(--muted); font-size:12px; margin-top:-6px; }
    .auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
    .auth-tab { border:1px solid var(--line); border-radius:16px; padding:12px; background:white; color:var(--muted); font-weight:750; cursor:pointer; text-align:center; }
    .auth-tab.active { background: var(--primary); color:white; border-color:var(--primary); }
    .about-list { display:grid; gap:10px; }
    .about-row { padding:14px; border:1px solid var(--line); border-radius:16px; background:rgba(255,255,255,.74); }
    .about-key { color:var(--muted); font-size:13px; margin-bottom:5px; }
    .about-value { font-size:16px; line-height:1.35; }



    .feature-icon { width: 36px; height: 36px; stroke-width: 1.9; }
    .service-list .card { padding-left: 12px; padding-right: 12px; }
    .service-card { padding-right: 2px; }
    .home-info { display: none !important; }
    .about-company { padding:18px; border-radius:20px; background:rgba(255,255,255,.78); border:1px solid var(--line); box-shadow:var(--shadow); }
    .about-company-name { font-family:"Times New Roman", Georgia, serif; font-size:26px; line-height:1.1; letter-spacing:.6px; margin:0 0 6px; }
    .about-company-type { color:var(--muted); font-size:14px; margin:0; }
    .about-value a { color: var(--text); text-decoration: none; opacity: 0.9; } .about-value a:active { opacity: 0.6; }
    .schedule-list { display:grid; gap:8px; }
    .schedule-row { display:flex; justify-content:space-between; gap:14px; padding:8px 0; border-bottom:1px solid var(--line); }
    .schedule-row:last-child { border-bottom:none; }
    .schedule-day { color:var(--muted); }
    .schedule-time { text-align:right; font-weight:600; }



    /* v5 polish */
    .feature-icon { width: 34px; height: 34px; stroke-width: 1.35 !important; }
    .feature-action { cursor:pointer; }
    .service-list { padding-right: 0; }
    .service-card { grid-template-columns: 92px minmax(0, 1fr) 24px; padding-right: 2px; }
    .service-card > div:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
    .multi-check { width:24px; height:24px; border-radius:999px; border:1.5px solid #d7cdd1; display:inline-flex; align-items:center; justify-content:center; color:white; font-size:15px; font-weight:800; }
    .card.selected .multi-check { background: var(--primary); border-color: var(--primary); }
    .month-title { margin: 2px 0 12px; text-align:center; font-size:17px; font-weight:750; color:#2c2428; }
    .calendar-grid { display:grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap:7px; margin-bottom:22px; }
    .calendar-weekday { text-align:center; font-size:12px; color:var(--muted); padding:0 0 4px; }
    .date-chip.month-cell { min-height:46px; aspect-ratio:1/1; padding:5px 2px; border-radius:13px; }
    .date-chip.month-cell .date-weekday { display:none; }
    .date-chip.month-cell .date-day { font-size:15px; color:inherit; }
    .date-chip.disabled { opacity:.34; cursor:not-allowed; background:rgba(255,255,255,.52); }
    .date-chip.closed-day { text-decoration: line-through; }
    .times-grid { gap: 9px; }
    .time-chip { padding: 11px 6px; font-size: 17px; border-radius: 13px; }
    .activity-dots { min-height:120px; display:grid; grid-template-columns:1fr 1fr 1fr; align-items:center; gap:18px; padding:26px 20px; }
    .activity-dot { width:12px; height:12px; border-radius:999px; background:var(--primary); opacity:.38; animation: dotPulse 1.1s infinite ease-in-out; }
    .activity-dot:nth-child(1){ justify-self:start; animation-delay:0s; }
    .activity-dot:nth-child(2){ justify-self:center; animation-delay:.16s; }
    .activity-dot:nth-child(3){ justify-self:end; animation-delay:.32s; }
    @keyframes dotPulse { 0%, 80%, 100% { transform:scale(.72); opacity:.28; } 40% { transform:scale(1.15); opacity:.95; } }
    .birthday-hint { margin-top:-3px; font-size:12px; line-height:1.35; color:var(--muted); }



    /* v6 updates */
    .language-switcher { display:flex; gap:8px; padding:10px 2px 12px; flex-wrap:wrap; justify-content:center; }
    .menu-auth-bottom { padding-top:12px; }
    .feature-action .feature-icon { width:42px !important; height:42px !important; stroke-width:1.18 !important; }
    .feature-action[hidden] { display:none !important; }
    .features:has(.feature-action[hidden]) { grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); }
    #servicesScreen .content, #bookingScreen .content { padding-left:18px; padding-right:18px; }
    .service-list .card, .staff-list .card { margin-left:0; margin-right:0; }
    .service-card { padding-right:10px !important; }
    .date-chip.month-cell { display:flex; align-items:center; justify-content:center; text-align:center; }
    .date-chip.month-cell .date-day { width:100%; text-align:center; line-height:1; }
    .month-nav { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0 0 12px; }
    .month-title { margin:0; flex:1; }
    .month-btn { width:36px; height:36px; border-radius:999px; border:1px solid var(--line); background:rgba(255,255,255,.82); color:var(--text); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
    .month-btn::before { content:""; width:9px; height:9px; border-top:1.8px solid currentColor; border-right:1.8px solid currentColor; display:block; }
    .month-btn.prev::before { transform:rotate(-135deg); margin-left:3px; }
    .month-btn.next::before { transform:rotate(45deg); margin-right:3px; }
    .selected-services-list { margin-top:10px; display:grid; gap:5px; }
    .selected-services-list { display:grid; gap:8px; margin-top:8px; text-align:left; }
    .selected-service-line { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:12px; color:var(--text); font-size:15px; line-height:1.35; }
    .selected-service-line-name { min-width:0; overflow-wrap:anywhere; }
    .selected-service-line-meta { white-space:nowrap; text-align:right; color:var(--muted); font-size:14px; }
    .selected-total-line { display:flex; justify-content:space-between; gap:12px; margin-top:10px; padding-top:10px; border-top:1px solid var(--line); color:var(--primary-dark); font-weight:750; font-size:15px; text-align:left; }
    .selected-total-line span:last-child { text-align:right; white-space:nowrap; }
    .auth-required-actions { display:grid; grid-template-columns:1fr; gap:10px; margin-top:12px; }
    .auth-required-actions .auth-action { width:100%; }


    /* client booking details/actions */
    .booking-card { display:grid; gap:10px; padding:16px; }
    .booking-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
    .booking-status-pill {
      flex:0 0 auto; border-radius:999px; padding:6px 10px; font-size:12px; font-weight:800;
      background: color-mix(in srgb, var(--primary) 12%, white); color: var(--primary-dark);
      border:1px solid color-mix(in srgb, var(--primary) 22%, white);
      white-space:nowrap;
    }
    .booking-status-pill.pending { background:#fff8e8; color:#9a6500; border-color:#f2dfac; }
    .booking-status-pill.confirmed { background:#eefaf3; color:#1f7548; border-color:#cfeedd; }
    .booking-status-pill.completed { background:#eefaf3; color:#1f7548; border-color:#cfeedd; }
    .booking-status-pill.canceled,
    .booking-status-pill.cancelled,
    .booking-status-pill.declined { background:#f4f1f2; color:#776d72; border-color:#e3dcdf; }
    .booking-details { display:grid; gap:7px; padding-top:2px; }
    .booking-detail-row { display:flex; justify-content:space-between; gap:12px; font-size:14px; line-height:1.35; }
    .booking-detail-key { color:var(--muted); }
    .booking-detail-value { color:var(--text); text-align:right; font-weight:600; overflow-wrap:anywhere; }
    .booking-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:4px; }
    .booking-action-btn {
      border:1px solid color-mix(in srgb, var(--primary) 26%, white); border-radius:14px;
      background:rgba(255,255,255,.74); color:var(--primary-dark); font-weight:800;
      padding:12px 10px; cursor:pointer;
    }
    .booking-action-btn.danger { border-color:#efd2dc; color:#9b3d59; background:#fff7f9; }
    .booking-action-btn:disabled { opacity:.55; cursor:not-allowed; }

.profile-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-edit-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

    @media (max-width: 380px) {
      .hero-title { font-size: 30px; }
      .times-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .service-card { grid-template-columns: 78px 1fr 22px; }
      .thumb { width: 78px; height: 78px; }
      .date-chip { min-height: 78px; }
    }
    
/* текст — чуть ниже центра */
.auth-empty-title {
  grid-row: 2;
  align-self: center;
  justify-self: center;

  margin-top: 64px; /* ≈ 4 строки вниз */

  text-align: center;
  padding: 0 18px;

  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 750;
}

/* кнопки — еще ниже */
.auth-empty-actions {
  grid-row: 3;

  margin-top: 48px; /* ≈ ещё 3 строки вниз */

  padding: 0 18px 20px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding-top: 40px;   /* контролируем высоту сверху */
  padding-bottom: 20px; /* и снизу */

  gap: 24px; /* расстояние между текстом и кнопками */
}

/* убираем растяжение карточки */
#profileScreen .profile-card {
  height: auto;              /* главное */
  min-height: unset;         /* сброс если где-то задано */
}

/* контейнер не тянем на весь экран */
#profileScreen .content {
  min-height: auto;          /* было calc(...) → убираем */
  display: block;            /* убираем flex центр */
  padding-bottom: 0;         /* убираем лишний воздух */
}

#profileScreen .profile-card {
  margin-bottom: 16px;
}

.service-text-wrap {
  min-width: 0;
}


.service-description-toggle {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0 0 2px;

  font-size: 15px;
  line-height: 1.3;
  text-align: left;

  cursor: pointer;

  color: var(--muted); /* основной текст серый */
}

/* только More Details */
.more-details {
  color: #0a84ff;
  text-decoration: underline;
  font-weight: 500;
}

.service-description-toggle.expanded {
  white-space: normal;
}

.multi-check {
  cursor: pointer;
}    


.date-chip.month-cell {
  position: relative;
}

.date-chip.off-day {
  color: #d33;
  background: rgba(255, 59, 48, 0.08);
  border-color: rgba(255, 59, 48, 0.22);
}

.date-chip.full-day {
  border-color: rgba(255, 59, 48, 0.35);
}

.day-status {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 5px;
}

.day-status-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(52, 199, 89, 0.85);
}

.day-status-off {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 59, 48, 0.75);
}

.day-status-line {
  width: 16px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 59, 48, 0.75);
}


/* ✅ облегченный календарь */
.date-chip.month-cell {
  position: relative;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;

  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

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

.schedule-day {
  color: var(--muted);
  font-size: 14px;
}

.schedule-time {
  font-weight: 600;
  font-size: 15px;
  text-align: right;
}

/* выбранная дата — зеленая обводка + слабый зеленый фон */
.date-chip.month-cell.selected {
  border-color: rgba(52, 199, 89, 0.75) !important;
  background: rgba(52, 199, 89, 0.10) !important;
  color: #1f7a43 !important;
  box-shadow: 0 8px 18px rgba(52, 199, 89, 0.12);
}

/* выходной / нерабочий — серый, не активный, без зачеркивания */
.date-chip.month-cell.disabled,
.date-chip.month-cell.closed-day {
  opacity: 0.38;
  cursor: not-allowed;
  background: rgba(255,255,255,.52);
  color: var(--muted);
  text-decoration: none !important;
  box-shadow: none;
}

/* ===== src/styles.css ===== */
.lang-btn {
  flex:1;
  padding:10px 0;
  border-radius:12px;
  border:1px solid #e6dde1;
  background:white;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}

.lang-btn.active {
  background: var(--primary);
  color:white;
  border-color: var(--primary);
}

.bottom-nav {
transition: transform 0.2s ease, opacity 0.2s ease;
}

.bottom-nav.nav-hidden {
  transform: translateX(-50%) translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.grid-3 > :nth-child(1) {
  grid-column: 1;
}
.grid-3 > :nth-child(2) {
  grid-column: 2;
}
.grid-3 > :nth-child(3) {
  grid-column: 1 / span 2;
  justify-self: center;
  width: 50%;
}

.selected-services-list {
  width: 100%;
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  text-align: left;
}

.selected-service-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
}

.selected-service-line-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.selected-service-line-meta {
  white-space: nowrap;
  text-align: right;
  color: var(--muted);
  font-size: 15px;
}

.selected-total-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 16px;
}

.selected-total-line span:last-child {
  text-align: right;
  white-space: nowrap;
}

.booking-mode-note {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.feature-icon {
  width: 30px;
  height: 30px;
  margin: 0 auto -2px; /* было 5 → стало 2 (ещё в 2 раза ближе) */
}

.auth-empty-state {
  min-height: calc(100vh - 260px); /* центр с учетом шапки и nav */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 18px;
}

.auth-empty-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ТЕКСТ */
.auth-empty-title {
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 750;
  text-align: center;
}

/* 👉 ровно 2 строки расстояние */
.auth-empty-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;          /* расстояние между кнопками */
  margin-top: 32px;   /* 2 строки от текста */
  width: 100%;
}

/* КНОПКИ */
.auth-empty-actions .auth-action {
  width: 100%;
  height: 48px;       /* фикс высота */
  border-radius: 14px;
  font-weight: 700;
}