/* ============================================================
   Expertise Hub — styles.css
   Single stylesheet for every page. Page-specific blocks are kept
   in clearly banner-marked sections; search a section by its title.

   CONTENTS
   · DESIGN TOKENS (:root) — colors, spacing, radius, shadow, fonts
   · SEARCH INPUTS — hero / catalog search
   · SHARED CHROME — header · footer · buttons
   · LANDING / HOME PAGE
   · CATALOG — categories · expert grid · filters
   · BOOKING — cards · slots · status badges
   · HOW-IT-WORKS PAGE
   · ACCOUNT / DASHBOARD — requests · balance · transactions
   · EXPERT EDITOR (dashboard form)
   · EXPERT DETAIL PAGE (v1 layout)
   · INTERNAL SHELL — account · booking detail · panels
   · CONSULTATION ROOM (video call)
   · MODALS & AUTH
   · BOOKING CALENDAR
   · BOOKING MODAL (bk-* redesign)
   · MOBILE NAV (hamburger + drawer)
   · EXPERT EDITOR LAYOUT (ed-*)
   · EXPERT PROFILE PAGE (.va-*)
   · BECOME-EXPERT WIZARD (.wz-*)
   ============================================================ */


:root {
  --blue: #246bfe;
  --blue-dark: #0f3ea8;
  --blue-soft: #edf4ff;
  --navy: #071426;
  --ink: #0c1729;
  --muted: #566681;
  --mono-muted: #8b9ab0;
  --line: #d8e2f0;
  --surface: #ffffff;
  --surface-soft: #f5f9ff;
  --green: #0f9b73;
  --star: #f5b341;
  --amber: #f5b341;
  --amber-dark: #b87a14;
  --amber-soft: rgba(245, 179, 65, 0.16);
  --amber-line: rgba(245, 179, 65, 0.32);
  --shadow: 0 32px 80px -38px rgba(15, 30, 80, 0.34);
  --soft-shadow: 0 18px 46px -30px rgba(15, 30, 80, 0.32);
  /* Shared page chrome — keep all internal (non-landing) pages consistent */
  --page-max: 1200px;            /* max content width on wide screens */
  --page-pad: 72px; /* horizontal page padding — matches homepage; stepped down in media queries below */
  --page-title: clamp(1.9rem, 3vw, 2.75rem); /* one size for page H1 */
  --catalog-max: 1760px;        /* catalog is wide (Airbnb-style) — exception */

  /* ── Spacing scale (4px base) — use instead of ad-hoc rem gaps ── */
  --space-1: 0.25rem;  /*  4px */
  --space-2: 0.5rem;   /*  8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */

  /* ── Radius scale — replaces scattered 8–22px / 0.4–2.2rem values ── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* ── Elevation scale — replaces 15+ one-off box-shadows ── */
  --shadow-sm: 0 8px 32px rgba(35, 74, 130, 0.1);
  --shadow-md: 0 18px 50px rgba(35, 74, 130, 0.1);
  /* --soft-shadow / --shadow (above) remain the large editorial elevations */

  /* ── Fonts ──
     Inter Tight is the brand UI font on every platform. Keep system fonts as
     fallbacks only, otherwise Safari on macOS picks Avenir Next while other
     browsers render Inter Tight. */
  --font-ui: "Inter Tight", "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Type scale — pairs with the existing --page-title ── */
  --fs-eyebrow: 0.78rem;  /* JetBrains Mono labels/eyebrows */
  --fs-sm: 0.85rem;
  --fs-body: 0.95rem;
  --fs-lg: 1.1rem;
  --fs-h3: 1.35rem;
  --fs-h2: clamp(1.5rem, 2.2vw, 1.9rem);

  /* ── Standard breakpoints (consolidated) — use only these in @media ──
     480px  — phone
     768px  — tablet / mobile collapse (absorbed old 600/720/760)
     880px  — tablet tier for 2-stage layouts (va-hero, ed-layout, wz-layout)
     1080px — desktop max (absorbed old 1024) */
}

/* Результат возврата с платёжной формы: сервер всё равно ждёт подписанный
   webhook банка, поэтому отдельное pending-состояние — штатное. */
.payment-return-banner {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f7fa;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.payment-return-banner.is-success {
  border-color: #b9e5ca;
  background: #eefaf2;
  color: #17663a;
}

.payment-return-banner.is-error {
  border-color: #f0c4c4;
  background: #fff2f2;
  color: #9f2828;
}

.payment-result-modal {
  align-items: center;
}

.payment-result-card {
  width: min(100%, 430px);
  padding: 2rem;
  text-align: center;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(8, 24, 45, 0.22);
}

.payment-result-icon {
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  margin: 0 auto 0.2rem;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 1.75rem;
  font-weight: 800;
}

.payment-result-modal.is-success .payment-result-icon {
  background: #e9f8ef;
  color: var(--green);
}

.payment-result-modal.is-error .payment-result-icon {
  background: #fff0f0;
  color: #c33b3b;
}

.payment-result-card h2,
.payment-result-card p {
  margin: 0;
}

.payment-result-card p {
  color: var(--muted);
  line-height: 1.5;
}

.payment-result-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.payment-result-actions.has-retry {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-result-actions .secondary-button {
  width: 100%;
}


/* ── Booking-mode picker (shared by wizard + dashboard) ───── */
.mode-picker {
  display: grid;
  gap: 0.7rem;
}
.mode-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.mode-option:hover { border-color: rgba(36, 107, 254, 0.4); }
.mode-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.mode-option input {
  width: 16px; height: 16px;
  margin: 0.25rem 0 0;
  accent-color: var(--blue);
}
.mode-option-body strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.mode-option-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Catalog: wide container exception (Airbnb-style) ──────── */
.catalog-wide .page-hero,
.catalog-wide .categories,
.catalog-wide .catalog-page {
  max-width: var(--catalog-max);
}
/* Cards fill the width — up to 4 columns on wide screens */
.catalog-wide .expert-grid {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

* {
  box-sizing: border-box;
}

/* Атрибут hidden всегда прячет элемент. Без этого классы с display:flex
   (кнопки, чипсы) перебивают браузерное [hidden]{display:none}, и скрытые
   JS-ом элементы остаются на экране («Начать консультацию» на pending-брони,
   кнопка Яндекса в модалке и т.п.). */
[hidden] {
  display: none !important;
}

html {
  /* НЕ ставим scroll-behavior: smooth глобально — иначе любая микропрокрутка
     (фокус на чекбоксе, якорь, сдвиг раскладки) превращается в анимацию-«дёрготню».
     Где нужна плавность — передаём behavior:'smooth' точечно в JS (scrollIntoView). */
  /* Page background lives on <html> (not <body>) so the body::before film-grain
     overlay (z-index:-1) paints above it instead of being hidden behind an
     opaque body background. */
  background:
    radial-gradient(circle at 8% -8%, rgba(36, 107, 254, 0.1), transparent 34rem),
    radial-gradient(circle at 92% 6%, rgba(245, 179, 65, 0.08), transparent 26rem),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

body {
  margin: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-ui);
  letter-spacing: -0.005em;
  /* Sticky footer: тянем body на всю высоту экрана, основной блок растёт,
     подвал прижимается к низу даже когда контента мало. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Защищённые страницы не показывают содержимое до проверки сессии. */
html.auth-guard-pending .vd-header,
html.auth-guard-pending body > main,
html.auth-guard-pending .site-footer,
html.auth-guard-pending .hamburger-btn,
html.auth-guard-pending .nav-drawer {
  visibility: hidden;
}

.auth-session-status {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  color: #111;
  background: #fff;
  text-align: center;
  font: 500 16px/1.5 system-ui, sans-serif;
}
.auth-session-status[hidden] { display: none; }
body > main { flex: 1 0 auto; }
body > .site-footer { flex-shrink: 0; }

/* User profile (profile.html) — clean field stacks */
.profile-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}
.profile-fields > label:nth-child(n+3) { grid-column: 1 / -1; }
@media (max-width: 768px) {
  .profile-fields { grid-template-columns: 1fr; }
}
/* Подсветка поля с ошибкой (например, email/телефон уже заняты). */
.profile-fields .is-error {
  border-color: #ef5f5f !important;
  box-shadow: 0 0 0 3px rgba(239, 95, 95, 0.15);
}
.profile-fields .field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #d6453b;
}
.profile-notify {
  display: grid;
  gap: 0.6rem;
}
.profile-notify .check-row {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface-soft);
  border-radius: 10px;
  font-size: 0.93rem;
  cursor: pointer;
}
.profile-notify .check-row input { accent-color: var(--blue); }
.telegram-profile-channel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
  padding: 0.85rem;
  background: #f0faf5;
  border: 1px solid #c9ead8;
  border-radius: 10px;
}
.telegram-profile-channel[hidden] { display: none; }
.telegram-profile-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #229ed9;
  background: white;
  border-radius: 50%;
}
.telegram-profile-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.telegram-profile-copy strong {
  font-size: 0.93rem;
  font-weight: 650;
}
.telegram-profile-copy span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
.telegram-profile-channel .secondary-button {
  padding: 0.6rem 0.9rem;
}
@media (max-width: 640px) {
  .telegram-profile-channel { grid-template-columns: auto 1fr; }
  .telegram-profile-channel .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}
.profile-security {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.profile-danger {
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(192, 57, 43, 0.25);
  background: rgba(192, 57, 43, 0.06);
  color: #c0392b;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  margin-left: auto;
}
.profile-danger:hover { background: rgba(192, 57, 43, 0.12); border-color: rgba(192, 57, 43, 0.5); }
.profile-save-bar {
  display: flex; align-items: center;
  padding: 1rem 1.2rem;
  background: var(--surface-soft);
  border-radius: 14px;
  margin-top: 0.5rem;
}
/* Кнопка всегда прижата вправо — не «скачет» при появлении/скрытии надписи. */
.profile-save-bar .primary-button { margin-left: auto; }
.profile-save-hint {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.profile-save-hint[hidden] { display: none; }
.profile-save-hint svg { color: var(--green); }

/* Catalog: classic search bar */
.catalog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 680px;
  margin: 1.6rem 0 0;
  padding: 8px 8px 8px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 40px -22px rgba(36, 107, 254, 0.32);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.catalog-search:focus-within {
  border-color: rgba(36, 107, 254, 0.5);
  box-shadow: 0 16px 44px -18px rgba(36, 107, 254, 0.45);
}
.catalog-search-icon { flex-shrink: 0; }
.catalog-search input,
.catalog-search input:focus {
  flex: 1;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 8px 0;
}
.catalog-search-clear {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--mono-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.catalog-search-clear:hover {
  color: var(--ink);
  background: var(--surface-soft);
}
.catalog-search-submit {
  flex-shrink: 0;
  padding: 12px 22px;
  background: var(--blue);
  color: var(--surface);
  border: 0;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.catalog-search-submit:hover { background: var(--blue-dark); }
.catalog-search-submit:active { transform: scale(0.97); }
.catalog-search-submit:disabled {
  background: #c7d2e3;
  color: var(--surface);
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}
.catalog-search-submit.is-loading {
  background: var(--blue-dark);
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.catalog-search-submit.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--surface);
  border-radius: 50%;
  animation: catalog-spin 0.6s linear infinite;
}
@keyframes catalog-spin { to { transform: rotate(360deg); } }

/* Catalog: AI search loader */
.catalog-results-col { display: grid; }
.ai-search {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 4rem 1rem 4.5rem;
  text-align: center;
}
.ai-search[hidden] { display: none; }
.ai-search-spark {
  display: inline-flex;
  gap: 8px;
}
.ai-search-spark .ai-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue);
  animation: ai-bounce 1.1s ease-in-out infinite;
}
.ai-search-spark .ai-dot:nth-child(2) { animation-delay: 0.15s; background: #5a8cff; }
.ai-search-spark .ai-dot:nth-child(3) { animation-delay: 0.3s; background: var(--amber); }
@keyframes ai-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-10px); opacity: 1; }
}
.ai-search-status {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  min-height: 1.4em;
}
.ai-search-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 560px;
}
.ai-search-tag {
  padding: 7px 14px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  animation: ai-tag-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes ai-tag-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Catalog: search context strip + empty state */

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}
.catalog-empty-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  filter: grayscale(20%);
}
.catalog-empty h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.catalog-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 480px;
}
.catalog-empty-reset {
  margin-top: 0.75rem;
  padding: 0.7rem 1.4rem;
}

/* Micro-noise overlay across the whole page (subtle film grain) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.12; /* barely-there film grain; reads over the page/gradient background, hidden under opaque cards. (0.06 was invisible, 0.18 read too gray.) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* ── New shared header ──────────────────────────────────── */
/* ════════════════════════════════════════════════════════════
   SHARED CHROME — header · footer · buttons
   ════════════════════════════════════════════════════════════ */


.vd-header {
  position: sticky; top: 0; z-index: 20;
  padding: 18px var(--page-pad);
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #e6edf7;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  font-family: var(--font-ui);
}
.vd-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.vd-logo-mark {
  width: 44px; height: 38px;
  background: transparent url("assets/slon512.png") center / 44px auto no-repeat;
  color: var(--surface);
  display: grid; place-items: center; border-radius: 0;
  box-shadow: none;
  font-weight: 800; font-size: 14px; letter-spacing: -0.07em; flex-shrink: 0;
}
.vd-logo-name { font-weight: 700; font-size: 17px; }

/* Полный маскот в основном логотипе; favicon-файлы и упрощённый знак футера не меняются. */
.vd-logo-mark .brand-elephant { display: none; }
.brand-elephant { width: 68%; height: 68%; display: block; }
.vd-nav { display: flex; gap: 30px; align-items: center; }
.vd-nav a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .15s; }
.vd-nav a:hover { color: var(--ink); }
.vd-btn-ghost {
  padding: 10px 18px; color: var(--blue-dark); background: var(--blue-soft);
  border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; border: 0;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.vd-btn-ghost:hover { background: #dce8ff; }
.vd-btn-solid {
  padding: 10px 18px; color: var(--surface); background: var(--blue);
  border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; border: 0;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.vd-btn-solid:hover { background: #1a5ce0; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(150px, 0.5fr)) auto;
  gap: 2rem;
  align-items: start;
  margin-top: 3rem;
  padding: 2.3rem var(--page-pad);
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 420px;
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

/* Штамп сборки: микрошрифт, едва заметный. Живёт внутри .footer-note —
   строкой под копирайтом, чтобы не занимать отдельный ряд сетки подвала. */
.build-stamp {
  display: block;
  margin-top: 0.35rem;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: none;
  color: var(--muted);
  opacity: 0.4;
  user-select: none;
}

.site-footer nav {
  display: grid;
  gap: 0.7rem;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .15s;
}

/* Как в подвале главной: при наведении ссылка темнеет до основного цвета текста. */
.site-footer a:hover { color: var(--ink); }

.site-footer .logo {
  color: var(--ink);
  display: inline-grid;
  grid-template-columns: 44px auto;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  align-items: center;
  text-transform: none;
  letter-spacing: -0.02em;
}

.site-footer .logo-mark {
  grid-row: 1 / 3;
  width: 44px;
  height: 38px;
  border-radius: 0;
  background: transparent url("assets/slon512.png") center / 44px auto no-repeat;
}

.site-footer .logo-mark .brand-elephant { display: none; }

.site-footer .logo > span:not(.logo-mark) {
  align-self: end;
  font-size: 15px;
  line-height: 1;
}

.site-footer .logo::after {
  content: "Консультации с практиками";
  align-self: start;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.footer-note {
  justify-self: end;
  text-align: right;
  color: var(--mono-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.logo-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--surface);
  background: var(--blue);
  border-radius: 0.8rem;
  letter-spacing: -0.08em;
}

.nav-links,
.header-actions,
.trust-row,
.profile-top,
.status-line {
  display: flex;
  align-items: center;
}






.header-actions {
  gap: 0.75rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.disabled-button {
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.primary-button:active,
.secondary-button:active,
.ghost-button:active {
  transform: scale(0.98);
}
.secondary-button:hover,
.ghost-button:hover {
  background: #dce8ff;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary-button {
  color: var(--surface);
  background: var(--blue);
  box-shadow: 0 22px 44px -20px rgba(36, 107, 254, 0.72);
  padding: 0.95rem 1.35rem;
}

.primary-button:hover {
  background: var(--blue-dark);
}

.primary-button:disabled {
  background: var(--blue);
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}
.primary-button:disabled:hover { background: var(--blue); }
.primary-button:disabled:active { transform: none; }

.secondary-button,
.ghost-button {
  color: var(--blue-dark);
  background: var(--blue-soft);
  padding: 0.9rem 1.2rem;
}

/* Отмена — единственное необратимое действие в панели, поэтому она не должна
   выглядеть как «Добавить в календарь». Мягкий красный, не сплошной: это всё
   ещё второстепенная кнопка, а не главный призыв. */
.secondary-button.is-danger {
  color: #b32d1f;
  background: #fdecea;
}
.secondary-button.is-danger:hover {
  background: #fbdcd8;
}
.secondary-button.is-danger.disabled-button,
.secondary-button.is-danger:disabled {
  color: #8a97aa;
  background: #eef3f8;
}

/* Иконки в кнопках: подпись живёт в .btn-label, иконка не должна сжиматься. */
.btn-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}
.action-stack .primary-button,
.action-stack .secondary-button,
.action-stack .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.disabled-button {
  color: #8a97aa;
  background: #eef3f8;
  padding: 0.9rem 1.2rem;
  cursor: not-allowed;
}

/* Нейтральная кнопка: просто текст с иконкой, без плашки. Для действий, которые
   не относятся к основному сценарию экрана («Пожаловаться», «Открепить») —
   они не должны конкурировать по весу с настоящими кнопками. */
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.25rem;
  color: var(--muted);
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.25em;
  cursor: pointer;
  transition: color 0.15s;
}
/* Выглядит текстом — значит и ведёт себя как текст: подчёркивание и цвет,
   без плашки-ореола, которая превращала бы её обратно в кнопку. */
.text-button:hover {
  color: var(--ink);
  text-decoration: underline;
}

.small {
  padding: 0.75rem 1rem;
}

.full {
  width: 100%;
}

main {
  overflow: hidden;
}

/* ════════════════════════════════════════════════════════════
   LANDING / HOME PAGE
   ════════════════════════════════════════════════════════════ */
















.eyebrow {
  color: var(--blue);
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.035em;
}

h1 {
  max-width: 800px;
  margin-top: 1rem;
  font-size: clamp(2.8rem, 6.4vw, 5.9rem);
  font-weight: 500;
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1.02;
}

h3 {
  margin: 0;
}

p {
  color: var(--muted);
  line-height: 1.7;
}


.search-card,
.hero-panel,
.filters,
.expert-card,
.profile-card,
.booking-card,
.how article,
.dashboard-card,
.detail-booking,
.review-card,
.modal-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}




input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  outline: 0;
  padding: 0.95rem 1rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(36, 107, 254, 0.5);
  box-shadow: 0 0 0 4px rgba(36, 107, 254, 0.08);
}

textarea {
  min-height: 120px;
  resize: vertical;
}












.people-strip,
.categories,
.section-head,
.expert-layout,
.profile-preview,
.how,
.dashboard {
  padding-inline: var(--page-pad);
}













/* ════════════════════════════════════════════════════════════
   CATALOG — categories · expert grid · filters
   ════════════════════════════════════════════════════════════ */


.categories {
  max-width: var(--page-max);
  margin-inline: auto;
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.5rem var(--page-pad) 3rem;
}

.category-chip {
  flex: 0 0 auto;
  color: var(--blue-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.8rem 1rem;
  font-weight: 800;
}

.category-chip.active {
  color: var(--surface);
  background: var(--blue);
  border-color: var(--blue);
}



.expert-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.3rem;
  align-items: start;
}

.filters,
.expert-card,
.profile-card,
.booking-card,
.how article,
.dashboard-card {
  border-radius: 1.6rem;
}

.filters {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  box-shadow: var(--soft-shadow);
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

label > span {
  color: var(--muted);
  font-weight: 600;
}

.field-group {
  display: grid;
  gap: 0.55rem;
}

.field-group > span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.category-picker,
.language-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-picker button,
.language-picker button {
  color: var(--blue-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.65rem 0.85rem;
  font-weight: 700;
}

.category-picker button.active,
.language-picker button.active {
  color: var(--surface);
  background: var(--blue);
  border-color: var(--blue);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.check-row input {
  width: auto;
  cursor: pointer;
}

/* Hand cursor on all checkboxes / radios and their labels */
input[type="checkbox"],
input[type="radio"],
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  cursor: pointer;
}

.expert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* ── Skeleton loaders — list placeholders shown during the initial fetch ── */
@keyframes skel-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel,
.skeleton-card .ec-photo,
.skel-tags span {
  background: linear-gradient(90deg, var(--surface-soft) 25%, #e3eaf4 37%, var(--surface-soft) 63%);
  background-size: 200% 100%;
  animation: skel-shimmer 1.3s linear infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card { pointer-events: none; cursor: default; }
.skeleton-card .ec-photo { aspect-ratio: 1.25; }
.skel-line { height: 12px; }
.skel-line--meta  { width: 42%; height: 10px; }
.skel-line--title { width: 68%; height: 17px; }
.skel-line--sub   { width: 92%; }
.skel-line--price { width: 46%; }
.skel-tags { display: flex; gap: 6px; }
.skel-tags span { width: 52px; height: 20px; border-radius: var(--radius-pill); }
@media (prefers-reduced-motion: reduce) {
  .skel, .skeleton-card .ec-photo, .skel-tags span { animation: none; }
}

/* Колонка на flex, а не grid: в сетке каталога карточки тянутся до высоты
   самой высокой в ряду, и grid-ряды раздували фото и теги. Теперь лишнюю
   высоту забирает только блок тегов (flex-grow ниже), остальное — по контенту. */
.expert-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  gap: 1rem;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.expert-card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 107, 254, 0.22);
  box-shadow: 0 30px 70px -36px rgba(36, 107, 254, 0.48);
}

.ec-photo {
  border-radius: 0.9rem;
  overflow: hidden;
  background: var(--surface-soft);
  line-height: 0;
  /* promote to own layer — kills Chrome's 1px hairline seam on the
     right/bottom edge of overflow:hidden + border-radius containers */
  transform: translateZ(0);
  isolation: isolate;
}
.expert-card img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  display: block;
  /* slightly wider than the box so cover-crop hides the sub-pixel seam
     that Chrome leaves on the right edge of rounded <img> */
  border-radius: 0;
}

.expert-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.ec-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 600;
}
.ec-star {
  color: var(--star);
  font-size: 18px;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  transform: translateY(-1px);
}

.expert-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tag-list {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  /* теги всегда своей высоты: не растягиваются, когда места в карточке больше,
     чем рядов тегов — ряды прижаты к верху, свободное место остаётся снизу */
  align-items: flex-start;
  align-content: flex-start;
  gap: 0.45rem;
}

/* Свободную высоту карточки забирает блок тегов — цена остаётся у нижнего края. */
.expert-card > .tag-list {
  flex: 1 1 auto;
}

.tag-list span,
.verified {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}



.tag-list span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.verified {
  color: var(--green);
  background: #e9fbf5;
}



.tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.65rem);
  z-index: 5;
  width: min(280px, 80vw);
  padding: 0.8rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 18px 40px rgba(35, 74, 130, 0.16);
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}


.verified.muted {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

/* ════════════════════════════════════════════════════════════
   BOOKING — cards · slots · status badges
   ════════════════════════════════════════════════════════════ */


.status-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge.success {
  color: var(--green);
  background: #e9fbf5;
}

.status-badge.warning {
  color: #9a5b00;
  background: #fff3d8;
}

.status-badge.cancelled {
  color: #c0392b;
  background: #fdecea;
}

.status-badge.pending {
  color: var(--blue);
  background: #e8f0ff;
}

.card-status-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.card-booking-number {
  color: var(--mono-muted);
  font: 500 0.72rem/1.2 "JetBrains Mono", ui-monospace, monospace;
}

.danger-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: #c0392b;
  color: var(--surface);
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s;
}

.danger-button:hover {
  background: #a93226;
}

.modal-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.booking-action-note {
  margin: 0.5rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.cancel-hint {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 0.2rem;
}

.price {
  font-weight: 900;
}







.slot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.duration-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.date-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.duration-tabs button,
.date-tabs button {
  color: var(--blue-dark);
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.65rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.duration-tabs .active,
.date-tabs .active {
  color: var(--surface);
  background: var(--blue);
  border-color: var(--blue);
}

.slot-list button.active {
  position: relative;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-color: rgba(36, 107, 254, 0.45);
  font-weight: 900;
  box-shadow: none;
}

.slot-list button {
  color: var(--blue-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.72rem 0.55rem;
  font-weight: 800;
}

/* ════════════════════════════════════════════════════════════
   ACCOUNT / DASHBOARD — requests · balance · transactions
   ════════════════════════════════════════════════════════════ */





.balance-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.4rem 1.1rem 1.6rem;
  background:
    radial-gradient(circle at 86% 20%, rgba(15, 155, 115, 0.11), transparent 18rem),
    var(--surface);
  border: 1px solid rgba(15, 155, 115, 0.25);
  border-left: 4px solid var(--green);
  border-radius: 1.25rem;
  box-shadow: var(--soft-shadow);
}

.balance-bar-amount {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.balance-bar-amount span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.76rem;
}

.balance-bar-amount strong {
  color: var(--green);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.balance-bar-actions {
  display: flex;
  gap: 0.6rem;
}

.transaction-list {
  display: grid;
  gap: 0.7rem;
}

.transaction-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.transaction-row:hover {
  background: #fbfdff;
  border-color: rgba(36, 107, 254, 0.18);
  box-shadow: 0 12px 28px -24px rgba(36, 107, 254, 0.5);
}

.transaction-row-clickable {
  cursor: pointer;
}

.transaction-row-clickable:focus-visible {
  outline: 3px solid rgba(36, 107, 254, 0.28);
  outline-offset: 2px;
  border-color: rgba(36, 107, 254, 0.45);
}

.transaction-row strong,
.transaction-row p {
  margin: 0;
}

.transaction-row p {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.transaction-row b {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.tx-icon {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.tx-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.tx-in {
  color: var(--green);
  background: rgba(15, 155, 115, 0.1);
}

.tx-card-refund {
  color: #c43b42;
  background: #fff0f0;
}

.tx-card-refund-note {
  display: inline-block;
  margin-left: 0.35rem;
  color: #a23b40;
  font-size: 0.76rem;
  font-weight: 600;
}

.tx-out {
  color: #d94f4f;
  background: rgba(217, 79, 79, 0.1);
}

.tx-payout {
  color: #c97c10;
  background: rgba(217, 140, 20, 0.12);
}

.tx-date {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.tx-pos {
  color: var(--green);
}

.tx-neg {
  color: #d94f4f;
}

/* ════════════════════════════════════════════════════════════
   EXPERT EDITOR (dashboard form)
   ════════════════════════════════════════════════════════════ */





/* No outer card around the form — it sits flat on the page */

/* Sections are separated by space and a thin top divider, not boxes */


.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

/* Availability flat — no nested box, just spacing */




.week-picker,
.duration-picker {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.6rem;
}

.week-picker button {
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.75rem 0.35rem;
  font-weight: 700;
}

.week-picker button.active {
  color: var(--surface);
  background: var(--blue);
  border-color: var(--blue);
}

.time-window {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.7rem;
  align-items: end;
}

.schedule-builder {
  display: grid;
  gap: 1.1rem;
  padding: 1.25rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.schedule-builder-head {
  display: grid;
  gap: 0.35rem;
}
.schedule-builder-head h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}
.schedule-builder-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.schedule-inline-legend {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.schedule-inline-legend i {
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 4px;
}
.schedule-validation[hidden] { display: none; }
.schedule-validation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  color: #8a5412;
  background: #fff8eb;
  border: 1px solid #f0d39d;
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s, transform 0.2s;
}
.schedule-validation.is-highlighted {
  box-shadow: 0 0 0 4px rgba(240, 166, 35, 0.18);
  transform: translateY(-1px);
}
.schedule-validation strong { display: block; color: var(--ink); font-size: 0.9rem; }
.schedule-validation p { margin: 0.18rem 0 0; font-size: 0.82rem; line-height: 1.45; }
.schedule-validation button {
  flex: 0 0 auto;
  padding: 0.55rem 0.7rem;
  color: var(--blue-dark);
  background: var(--surface);
  border: 1px solid rgba(36, 107, 254, 0.28);
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.schedule-validation button:hover { background: var(--blue-soft); }
.schedule-draft-summary {
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.schedule-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.schedule-presets > span {
  margin-right: 0.15rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}
.schedule-presets button {
  padding: 0.48rem 0.7rem;
  color: var(--blue-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.schedule-presets button:hover {
  border-color: rgba(36, 107, 254, 0.45);
  background: var(--blue-soft);
}
.schedule-presets button.is-clear { color: var(--muted); }
.schedule-presets button.is-clear:hover {
  color: #a63a31;
  background: #fff5f3;
  border-color: #efc2bd;
}
.schedule-grid-scroll {
  max-width: 100%;
  overflow-x: auto;
  padding: 0.2rem 0 0.45rem;
  scrollbar-width: thin;
}
.schedule-hours-grid {
  display: grid;
  grid-template-columns: 52px repeat(16, minmax(38px, 1fr));
  gap: 3px;
  min-width: 760px;
  user-select: none;
  touch-action: pan-x pan-y;
}
.schedule-grid-corner,
.schedule-hour-label,
.schedule-day-label {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}
.schedule-grid-corner {
  justify-items: start;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}
.schedule-day-label {
  position: sticky;
  left: 0;
  z-index: 2;
  justify-items: start;
  padding-left: 0.2rem;
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 0.82rem;
  font-weight: 700;
}
.schedule-day-label.is-weekend {
  color: #b55252;
  background: var(--surface-soft);
}
.schedule-hour-cell {
  min-width: 0;
  height: 36px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: crosshair;
  transition: background 0.12s, border-color 0.12s, transform 0.12s;
}
.schedule-hour-cell:hover {
  border-color: rgba(36, 107, 254, 0.55);
  transform: translateY(-1px);
}
.schedule-hour-cell.active {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.schedule-hour-cell.partial {
  background: repeating-linear-gradient(135deg, var(--blue-soft) 0 6px, #fff 6px 12px);
  border-color: rgba(36, 107, 254, 0.45);
}
.schedule-hours-grid.is-painting .schedule-hour-cell { transition: none; }
.schedule-exact {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
.schedule-exact summary {
  color: var(--blue-dark);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
.schedule-exact-body {
  display: grid;
  gap: 0.85rem;
  padding-top: 1rem;
}
.schedule-saved-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.35rem;
}
.schedule-count {
  flex: 0 0 auto;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.schedule-list {
  display: grid;
  gap: 0.55rem;
}

/* Schedule rows: subtle horizontal lines, no card frames */
.schedule-list > [data-window-i] {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.6rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.schedule-list > [data-window-i]:last-child {
  border-bottom: 0;
}

.schedule-list > [data-window-i] strong {
  font-size: 0.92rem;
}

.schedule-list > [data-window-i] span {
  color: var(--muted);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.schedule-list > [data-window-i] button {
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 0.4rem;
  transition: color 0.15s, background 0.15s;
}
.schedule-list > [data-window-i] button:hover {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.06);
}


/* Duration checkboxes look like chips, no separate borders */
.duration-picker label:has(input:checked) {
  color: var(--ink);
  /* Жирность через text-shadow, а не font-weight — текст не меняет ширину
     и соседние чипы не «дёргаются» при выборе. */
  text-shadow: 0.4px 0 0 currentColor;
}


/* Tiny inline hint inside a field label (e.g. "до 3") */
.hint-inline {
  font-style: normal;
  font-weight: 500;
  color: var(--mono-muted);
  font-size: 0.82em;
  margin-left: 0.35em;
}

/* Private tag (e.g. Telegram field — admin-only visibility) */
.ed-private-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 0.5em;
  padding: 2px 7px;
  background: rgba(255, 159, 28, 0.12);
  color: #a86600;
  border-radius: var(--radius-pill);
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9.5px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.ed-private-tag svg { flex-shrink: 0; }


/* Sidebar cards: flat, just spacing — no heavy borders */









/* ════════════════════════════════════════════════════════════
   EXPERT DETAIL PAGE (v1 layout)
   ════════════════════════════════════════════════════════════ */


.page-hero {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 3rem var(--page-pad) 1.5rem;
}

.page-hero h1 {
  max-width: 900px;
  margin-top: 0.5rem;
  font-size: var(--page-title);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.page-hero p {
  max-width: 680px;
  font-size: 1.05rem;
  color: var(--muted);
}

.catalog-page {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 0 var(--page-pad) 5rem;
}

/* Возврат на уровень выше — один компонент на весь сервис: карточка эксперта
   («Назад в каталог») и карточка брони («Вернуться в кабинет»). */
.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.back-pill:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-color: var(--blue);
}

/* Полоса с кнопкой возврата на страницах с общей шириной контента. */
.page-back {
  max-width: var(--page-max);
  margin: 2rem auto 0;
  padding-inline: var(--page-pad);
}

.expert-detail,
.detail-content {
  display: grid;
  gap: 1.2rem;
  padding-inline: var(--page-pad);
}

.expert-detail {
  grid-template-columns: 1fr 380px;
  align-items: start;
  padding-top: 2rem;
}

.internal-shell .expert-detail,
.internal-shell .detail-content {
  padding-inline: 0;
  padding-top: 0;
}



/* Version toggle pill (between classic & alt expert page) */



.detail-photo {
  width: 100%;
  aspect-ratio: 0.86;
  object-fit: cover;
  border-radius: 1rem;
}


.detail-title {
  max-width: 680px;
  font-size: 1.16rem;
}

.detail-booking {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
  border-radius: 1.25rem;
}

.detail-booking .expert-meta {
  align-items: center;
}

#detail-price {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
}





#expert-description-sections {
  display: grid;
  gap: 1rem;
}









.review-card {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 1.1rem;
  box-shadow: var(--soft-shadow);
}

.review-card strong {
  color: #08182d;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 500;
  line-height: 1.45;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--ink);
  font-weight: 700;
}

.review-author div {
  display: grid;
  gap: 0.2rem;
}

.review-author small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.review-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  color: var(--surface);
  background: var(--avatar-color, var(--blue));
  border-radius: 50%;
  font-weight: 800;
}

/* ════════════════════════════════════════════════════════════
   INTERNAL SHELL — account · booking detail · panels
   ════════════════════════════════════════════════════════════ */


.internal-shell {
  max-width: var(--page-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.2rem;
  padding: 1.2rem var(--page-pad) 5rem;
}

.app-header {
  max-width: var(--page-max);
  margin-inline: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 3rem var(--page-pad) 0;
}

.app-header h1 {
  margin-top: 0.45rem;
  font-size: var(--page-title);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.app-header p {
  margin-bottom: 0;
}

.side-menu,
.internal-panel,
.video-panel,
.booking-detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.side-menu {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 0.55rem;
  align-self: start;
  padding: 0.75rem;
  box-shadow: var(--soft-shadow);
}

.side-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font-weight: 700;
  text-decoration: none;
}

.side-menu a.active,
.side-menu a:hover {
  color: var(--blue-dark);
  background: var(--blue-soft);
}
.side-menu a[hidden] { display: none; }

.expert-menu-alert {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e5484d;
  box-shadow: 0 0 0 3px #fff0f0;
}

.account-stack,
.list-stack {
  display: grid;
  gap: 1rem;
}

.telegram-connect {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  color: var(--ink);
  background: linear-gradient(135deg, #eef8ff, #f7fbff);
  border: 1px solid #cde9fa;
  border-radius: 1.25rem;
  box-shadow: var(--soft-shadow);
}
.telegram-connect[hidden] { display: none; }
.telegram-connect.is-connected {
  background: linear-gradient(135deg, #f0faf5, #f8fcfa);
  border-color: #c9ead8;
}
.telegram-connect-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #229ed9;
  background: white;
  border-radius: 50%;
  box-shadow: 0 8px 24px -16px rgba(34, 158, 217, 0.8);
}
.telegram-connect-copy h2 {
  margin: 0 0 0.2rem;
  font-size: 1.08rem;
  font-weight: 650;
}
.telegram-connect-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.telegram-connect-actions {
  display: flex;
  gap: 0.55rem;
}

.internal-panel {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  box-shadow: var(--soft-shadow);
}
/* display:grid перебивает атрибут hidden — возвращаем скрытие явно. */
.internal-panel[hidden] { display: none; }

/* Единый пустой экран кабинета (нет ни одной записи) */
.account-empty-state {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 3rem 1.5rem;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}
.account-empty-state[hidden] { display: none; }
.account-empty-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 0.4rem;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}
.account-empty-state h2,
.account-empty-state h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.account-empty-state p {
  color: var(--muted);
  max-width: 30rem;
  margin: 0 0 0.6rem;
}

/* Компактная заглушка внутри секции предстоящих консультаций */
.account-empty-state--section {
  padding: 2.5rem 1.5rem;
  background: linear-gradient(145deg, #f8fbff 0%, var(--blue-soft) 100%);
  border: 1px solid rgba(36, 107, 254, 0.12);
  box-shadow: none;
}
.account-empty-state--section .account-empty-icon {
  background: var(--surface);
  box-shadow: 0 12px 28px -20px rgba(36, 107, 254, 0.7);
}
.account-empty-state--section .link-button {
  margin-top: 0.2rem;
}

.internal-panel h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.counter-pill {
  flex: 0 0 auto;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.internal-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.internal-card:hover {
  background: #fbfdff;
  border-color: rgba(36, 107, 254, 0.22);
  box-shadow: 0 12px 28px -24px rgba(36, 107, 254, 0.55);
}

/* Скелетон брони — резервирует высоту, пока грузятся данные,
   чтобы карточки не «впрыгивали» и не дёргали раскладку.
   Не путать со .skeleton-card каталога — там скелетон карточки эксперта. */
.booking-skeleton {
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(100deg, var(--surface-soft) 30%, #eef3fb 50%, var(--surface-soft) 70%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  from { background-position: 100% 0; }
  to   { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .booking-skeleton, .ed-photo.is-loading { animation: none; }
}

.internal-card:hover .card-side strong {
  color: var(--blue);
}

.internal-card.is-muted {
  background: var(--surface);
}

.internal-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 0.85rem;
}

.internal-card h3,
.internal-card p {
  margin: 0.25rem 0 0;
}

.internal-card h3 {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 600;
}

.internal-card p {
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 400;
}

.internal-card strong {
  color: var(--blue-dark);
  font-weight: 600;
}

.card-side {
  display: grid;
  gap: 0.2rem;
  justify-items: end;
  text-align: right;
}

.card-side small {
  color: var(--muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.card-side small .card-clock {
  flex-shrink: 0;
  opacity: 0.8;
}
/* Бейдж «через 2 ч» у предстоящей встречи в списке кабинета */
.countdown-pill {
  margin-top: 0.15rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--blue-dark);
  background: var(--blue-soft);
}
.countdown-pill[hidden] { display: none; }
.countdown-pill.is-live {
  color: #1f9d55;
  background: rgba(31, 157, 85, 0.12);
}

/* ════════════════════════════════════════════════════════════
   CONSULTATION ROOM (video call)
   ════════════════════════════════════════════════════════════ */


.video-layout {
  max-width: var(--page-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  /* start, а не stretch: колонка со сценой звонка держит высоту своего
     содержимого (окно 16:9 + панель), а не тянется под высокий сайдбар —
     иначе под панелью остаётся пустое синее поле. */
  align-items: start;
  gap: 1rem;
  padding: 2rem var(--page-pad) 5rem;
}

/* Компактная «шапка» на странице звонка: во время консультации крупный
   заголовок с описанием только съедает высоту и выталкивает панель под
   кромку. Ужимаем — освобождаем место видео. */
#video-room .page-hero {
  padding-top: 1.25rem;
  padding-bottom: 0.5rem;
}
#video-room .page-hero h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.4rem;
}
#video-room .page-hero p {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 64ch;
}

.video-stage {
  /* Высота окна звонка зависит от высоты вьюпорта: чтобы видео + нижняя
     панель («Пожаловаться» / «Завершить») помещались без обрезки на
     невысоких экранах. dvh — корректная высота с учётом панелей мобильных
     браузеров; floor 300px, потолок 620px. Вычитаемое ≈ высота хедера +
     компактной шапки + отступов + нижней панели. */
  --call-h: clamp(280px, calc(100dvh - 400px), 620px);
  padding: 1rem;
  color: var(--surface);
  background: linear-gradient(145deg, var(--navy), #12366f);
  border-radius: 2rem;
}

.video-main {
  display: grid;
  /* Та же коробка 16:9, что и у #call-frame (consultation.html), чтобы
     заглушка с собеседником не «прыгала» при открытии комнаты. */
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: calc(var(--call-h) * 16 / 9);
  max-height: var(--call-h);
  margin-inline: auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.5rem;
}

.video-main img {
  width: min(42vw, 220px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.call-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
}

.call-controls button {
  color: var(--surface);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1rem;
  font-weight: 800;
}


.video-sidebar,
.booking-detail-card {
  display: grid;
  gap: 1rem;
  align-self: start;
  padding: 1.2rem;
}

.booking-layout {
  max-width: var(--page-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 1rem;
  padding: 2rem var(--page-pad) 5rem;
}

.booking-person {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.booking-person img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 1.2rem;
}

.booking-topic {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
/* Вертикальный ритм карточки задаёт gap самой карточки (1rem). Свои
   margin-top у секций ломали его: между шапкой и панелью выходило 20px,
   а между панелью и разделителем — 40px. Отступ от линеек — тот же 1rem. */
.booking-request {
  display: grid;
  gap: 0.65rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.booking-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* Шапка карточки: служебная строка (статус + номер), затем собеседник.
   Раньше между ними стоял H1 «Бронь консультации» — самый крупный элемент
   страницы, не сообщавший ничего. Теперь это надзаголовок, а заголовок —
   имя того, с кем встреча. */
.booking-head {
  display: grid;
  gap: 0.9rem;
}
.booking-head-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.booking-person-text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.booking-kind {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.booking-person-text h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  line-height: 1.15;
}
.booking-person-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Номер заявки живёт в надзаголовке, сразу после «Бронь консультации», —
   отдельной плашкой было непонятно, что это за число. Клик копирует. */
.booking-number {
  padding: 0;
  color: var(--muted);
  background: none;
  border: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-underline-offset: 0.25em;
  transition: color 0.15s;
}
.booking-number:hover {
  color: var(--ink);
  text-decoration: underline;
}
.booking-number.is-copied {
  color: var(--green);
  text-decoration: none;
}
.booking-number[hidden] { display: none; }

/* Правка запроса, пока эксперт не ответил: текстовая кнопка (.text-button),
   уменьшенная под строку-заголовок секции. */
.request-edit-btn {
  padding: 0;
  font-size: 0.76rem;
  letter-spacing: normal;
  text-transform: none;
}
.request-edit-btn[hidden] { display: none; }
.request-edit-btn .btn-icon {
  width: 0.85rem;
  height: 0.85rem;
}

.request-edit-form {
  display: grid;
  gap: 0.7rem;
}
.request-edit-form[hidden] { display: none; }
.request-edit-label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.request-edit-label input,
.request-edit-label textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  resize: vertical;
}
.request-edit-label input:focus,
.request-edit-label textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: -1px;
  border-color: var(--blue);
}
.request-edit-hint,
.request-edit-error {
  margin: 0;
  font-size: 0.82rem;
}
.request-edit-hint { color: var(--muted); }
.request-edit-error { color: #b32d1f; font-weight: 600; }
.request-edit-error[hidden] { display: none; }
.request-edit-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Файл внутри формы правки: текущий — строкой с «Открепить», ниже выбор нового. */
.request-edit-file {
  display: grid;
  gap: 0.4rem;
}
.request-edit-label-text {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.request-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.5rem 0.55rem 0.85rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}
.request-file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.request-file-name.is-empty { color: var(--muted); }
.request-file-remove {
  flex: 0 0 auto;
  padding: 0.25rem 0.35rem;
  font-size: 0.82rem;
}
.request-file-remove:hover { color: #b32d1f; }
.request-file-remove[hidden] { display: none; }
.request-edit-file .bk-file-btn { width: max-content; }
.booking-request p { margin: 0; }
.booking-request p > span { display: block; }
.booking-followup {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(36, 107, 254, 0.18);
  border-radius: 0.9rem;
  background: var(--blue-soft);
}
.booking-followup[hidden] { display: none; }
.booking-followup-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}
.booking-followup-head strong { color: var(--blue-dark); }
.booking-followup-head span { color: var(--muted); font-size: 0.85rem; }
.booking-followup p {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Срок ответа эксперта и судьба денег на заявке в статусе «ожидает». */
.booking-deadline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--amber-line);
  border-radius: 0.9rem;
  background: var(--amber-soft);
}
.booking-deadline[hidden] { display: none; }
.booking-deadline-icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  color: var(--amber-dark);
}
.booking-deadline-body {
  display: grid;
  gap: 0.3rem;
}
.booking-deadline-body strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
}
.booking-deadline-money {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Факты о брони: одна полоса с разделителями вместо трёх вложенных карточек.
   Подпись мелкая и приглушённая, значение — крупное и тёмное. */
.booking-facts {
  display: grid;
  /* Дата — самое длинное значение (список окон), цена — самое короткое. */
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-soft);
  overflow: hidden;
}
.booking-fact {
  display: grid;
  align-content: start;
  gap: var(--space-1);
  padding: 0.85rem 1rem;
  border-left: 1px solid var(--line);
}
.booking-fact:first-child { border-left: 0; }
.booking-fact-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.booking-fact p {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}
/* Список окон вместо назначенного времени — строк много, вес нужен меньший. */
.booking-fact.is-windows p {
  font-size: 0.92rem;
  font-weight: 500;
}
/* Отсчёт живёт внутри ячейки даты и не должен весить как само значение. */
.booking-fact .booking-countdown {
  font-size: 0.86rem;
  color: var(--blue-dark);
}
.booking-fact-sub {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.card-refund-note {
  color: #1c8250;
}
.booking-price-row {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.booking-refund-note {
  color: #1c8250;
  font-size: 0.82rem;
  font-weight: 600;
}
.booking-refund-note[hidden] { display: none; }
.card-refund-note {
  margin-top: 0.45rem !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
}
.incoming-card-client { margin-top: 0.4rem !important; }
.clickable-profile-name { cursor: pointer; }
.clickable-profile-name:hover { color: var(--blue-dark); }

.fs-request-topic {
  margin: 0 0 -0.35rem;
  font-weight: 700;
  color: var(--ink);
}

.action-stack {
  display: grid;
  gap: 0.7rem;
}

.compact-review p {
  margin: 0;
}




/* ════════════════════════════════════════════════════════════
   MODALS & AUTH
   ════════════════════════════════════════════════════════════ */


.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: start;
  justify-items: center;
  overflow-y: auto;
  padding: 1.5rem 1rem;
}

.modal.is-open {
  display: grid;
  background: rgba(8, 24, 45, 0.42);
  backdrop-filter: blur(5px);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  /* transparent click zone — background is on .modal itself */
}

.modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 540px);
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1.8rem;
}

.transaction-detail-card {
  width: min(100%, 620px);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
}

.transaction-detail-card h2 {
  margin: 0;
  padding-right: 2.5rem;
}

.transaction-detail-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-soft);
}

.transaction-detail-total span,
.transaction-detail-row dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.transaction-detail-total strong {
  font-size: 1.35rem;
}

.transaction-detail-grid {
  display: grid;
  gap: 0;
  margin: 0.8rem 0 0;
}

.transaction-detail-row {
  display: grid;
  grid-template-columns: minmax(9rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--line);
}

.transaction-detail-row dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}

.transaction-detail-row code,
.transaction-receipt code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--ink);
}

.transaction-receipt-section {
  margin-top: 1.4rem;
}

.transaction-receipt-section h3 {
  margin: 0.15rem 0 0.75rem;
}

.transaction-receipt {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface-soft);
}

.transaction-receipt > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.transaction-status {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #f5f7fa;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
}

.transaction-status.is-success {
  background: #e8f6ee;
  color: #237347;
}

.transaction-status.is-error {
  background: #fde9e9;
  color: #b42318;
}

.transaction-status.is-pending {
  background: #fff3df;
  color: #8a5a00;
}

.transaction-detail-empty {
  padding: 0.8rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.transaction-detail-error {
  margin: 0.75rem 0 0;
  color: #b42318;
  font-size: 0.82rem;
}

/* ── Auth modal ─────────────────────────────────────────── */
/* ════════════════════════════════════════════════════════════
   Auth modal — Airbnb-style: clean header, single contact field,
   "или" divider, social (Yandex) button. Stays a popup.
   ════════════════════════════════════════════════════════════ */
.auth-card {
  width: min(100%, 420px);
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.auth-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--line);
}
.auth-head-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}
.auth-close {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
}
.auth-close:hover { background: var(--surface-soft); }

.auth-body {
  padding: 1.5rem 1.5rem 1.6rem;
}
.auth-step {
  display: grid;
  gap: 0;
}
.auth-step[hidden] { display: none; }

.auth-welcome {
  margin: 0 0 1.1rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.auth-sub {
  margin: -0.4rem 0 1.1rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}
.auth-sub strong { color: var(--ink); font-weight: 600; }

.auth-field { margin-bottom: 0.7rem; }
/* Поле пароля с «глазом»: кнопка прижата к правому краю инпута.
   top фиксированный (половина высоты инпута), а не 50% — под инпутом
   может появиться строка ошибки, растягивающая .auth-field. */
.auth-field-pw { position: relative; }
.auth-field-pw .auth-input { padding-right: 3rem; }
.auth-eye {
  position: absolute;
  top: 27px;
  right: 0.55rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--mono-muted);
  cursor: pointer;
}
.auth-eye:hover { color: var(--ink); background: var(--surface-soft); }

/* Экран «вы вошли» — показывается две секунды после успешного входа */
.auth-success {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 2.2rem 0 2.6rem;
  text-align: center;
}
.auth-success-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  color: #1f9d55;
  background: rgba(31, 157, 85, 0.12);
}
.auth-success-progress {
  position: absolute;
  inset: -8px;
  width: 72px;
  height: 72px;
  overflow: visible;
  transform: rotate(-90deg) scaleX(-1);
  pointer-events: none;
}
.auth-success-progress circle {
  fill: none;
  stroke: #1f9d55;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 0;
  animation: auth-success-countdown 2s linear forwards;
}
@keyframes auth-success-countdown {
  to { stroke-dashoffset: 100; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-success-progress circle { animation: none; }
}
/* Типографика — как у .auth-welcome, чтобы экран не выглядел «чужим» */
.auth-success-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.auth-success-sub { color: var(--muted); }
.auth-input {
  width: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-input::placeholder { color: var(--mono-muted); }
.auth-input:focus {
  outline: 0;
  border-color: rgba(36, 107, 254, 0.5);
  box-shadow: 0 0 0 4px rgba(36, 107, 254, 0.1);
}
.auth-otp {
  text-align: center;
  letter-spacing: 0.5em;
  font-size: 1.4rem;
  font-weight: 700;
  padding-left: 0.5em;
}

.auth-input-note {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.auth-primary {
  width: 100%;
  padding: 0.95rem 1.2rem;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: var(--surface);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.auth-primary:hover { background: var(--blue-dark); }
.auth-primary:active { transform: scale(0.99); }
.auth-primary:disabled {
  background: var(--blue);
  opacity: 0.45;
  cursor: not-allowed;
}
.auth-primary:disabled:hover { background: var(--blue); }
.auth-primary:disabled:active { transform: none; }

/* ── Вход через Яндекс ── */
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 0.9rem 0;
  color: var(--muted); font-size: 0.78rem;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.auth-yandex {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-size: 0.95rem; font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
}
.auth-yandex:hover { background: #1c1c1c; }
.auth-yandex:active { transform: scale(0.99); }
.auth-yandex-badge {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fc3f1d; color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; line-height: 1;
}

.auth-legal {
  margin: 1.1rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.5;
}
.auth-legal a { color: var(--blue); text-decoration: none; }
.auth-legal a:hover { text-decoration: underline; }

/* Чекбокс согласия на обработку ПД (режим регистрации) */
.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.2rem 0 0.9rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.auth-consent input {
  width: auto; /* глобальный input { width:100% } растягивает чекбокс */
  padding: 0;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.auth-consent a { color: var(--blue); text-decoration: none; }
.auth-consent a:hover { text-decoration: underline; }
.auth-consent.is-error { color: #c0392b; }
.auth-consent.is-error input { outline: 1px solid #c0392b; outline-offset: 1px; }

.ghost-link {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  padding: 0.5rem;
  width: 100%;
  font-family: inherit;
  transition: color 0.15s;
}
.ghost-link:hover { color: var(--ink); }

/* Auth form error states */
#auth-modal input.is-error {
  border-color: #c0392b;
  box-shadow: 0 0 0 1px #c0392b;
}
#auth-modal .auth-error {
  display: block;
  margin: 0.4rem 0 0.3rem;
  font-size: 0.78rem;
  color: #c0392b;
  font-weight: 500;
  line-height: 1.4;
}
#auth-modal .auth-note {
  display: block;
  margin: 0.4rem 0 0.3rem;
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 500;
  line-height: 1.4;
}

/* «Забыли пароль?» под полем пароля */
.auth-forgot {
  margin: -0.2rem 0 0.6rem;
  text-align: right;
  font-size: 0.8rem;
}
.auth-forgot a {
  color: var(--muted);
  text-decoration: none;
}
.auth-forgot a:hover { color: var(--blue); text-decoration: underline; }

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  transition: border-color 0.15s;
}

.user-pill:hover {
  border-color: var(--blue);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--surface);
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Профиль в шапке: выпадающее меню */
.user-menu { position: relative; }
button.user-pill {
  cursor: pointer;
  font-family: inherit;
}
.user-pill-chevron {
  color: var(--muted);
  transition: transform 0.15s;
}
.user-pill[aria-expanded="true"] .user-pill-chevron {
  transform: rotate(180deg);
}
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 11rem;
  display: flex;
  flex-direction: column;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: 0 12px 30px rgba(16, 32, 51, 0.12);
  z-index: 60;
}
.user-menu-dropdown[hidden] { display: none; }
.user-menu-dropdown a,
.user-menu-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border: none;
  background: none;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s;
}
.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover {
  background: var(--surface-soft);
}
.user-menu-dropdown .user-menu-logout { color: #d23b3b; }

/* ════════════════════════════════════════════════════════════
   BOOKING CALENDAR
   ════════════════════════════════════════════════════════════ */



.calendar-head {
  display: grid;
  grid-template-columns: 2.2rem 1fr 2.2rem;
  gap: 0.6rem;
  align-items: center;
  text-align: center;
}

.calendar-head button {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  color: var(--blue-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 900;
}


.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.calendar-grid span,
.calendar-grid button {
  display: grid;
  min-height: 2.15rem;
  place-items: center;
  border-radius: 0.7rem;
  font-size: 0.85rem;
}

.calendar-grid span {
  color: var(--muted);
  font-weight: 800;
}

.calendar-grid button {
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
}

.calendar-grid button.available {
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-color: rgba(36, 107, 254, 0.22);
}

.calendar-grid button.active {
  color: var(--surface);
  background: var(--blue);
  border-color: var(--blue);
}

.calendar-grid button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.modal-time-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.modal-time-grid button {
  color: var(--blue-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.72rem 0.45rem;
  font-weight: 800;
}

.modal-time-grid button.active {
  background: var(--blue-soft);
  border-color: rgba(36, 107, 254, 0.45);
}

/* Unified modal close button — same look everywhere */
.close-button,
.bk-close,
.nav-drawer-close {
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
}
.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.close-button:hover,
.bk-close:hover,
.nav-drawer-close:hover {
  background: var(--line);
  color: var(--ink);
}

@media (max-width: 1080px) {
  :root { --page-pad: 24px; } /* match homepage stepped side padding */

  .vd-header {
    align-items: center;
    gap: 1rem;
    padding: 16px var(--page-pad);
  }

  .vd-nav {
    gap: 16px;
  }

  .hero,
  .people-strip,
  .expert-layout,
  .profile-preview,
  .dashboard,
  .home-cta,
  .task-grid,
  .expert-detail,
  .detail-content,
  .detail-main,
  .reviews-grid,
  .standalone .steps,
  .requests-board {
    grid-template-columns: 1fr;
  }

  

  .transaction-row {
    grid-template-columns: 1fr;
  }

  .transaction-detail-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .internal-shell,
  .video-layout,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .side-menu {
    position: static;
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.55rem;
    scrollbar-width: none;
  }

  .side-menu::-webkit-scrollbar {
    display: none;
  }

  .side-menu a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .internal-card {
    grid-template-columns: 64px 1fr;
  }

  .internal-card.incoming-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .internal-card strong {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-note {
    justify-self: start;
    text-align: left;
  }

  .filters {
    position: static;
  }

  .detail-booking {
    position: static;
  }

  

  .detail-photo {
    max-height: 420px;
  }

  .expert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root { --page-pad: 16px; } /* match homepage mobile side padding */

  body {
    background:
      radial-gradient(circle at 0% -8%, rgba(36, 107, 254, 0.12), transparent 22rem),
      linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  }

  .vd-header {
    position: sticky;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    padding: 12px 16px;
  }

  .vd-logo-mark {
    width: 38px;
    height: 34px;
    border-radius: 0;
    background-size: 38px auto;
    font-size: 12px;
  }

  .vd-logo-name {
    font-size: 15px;
  }

  /* vd-nav hidden on mobile — hamburger drawer is used instead */
  .vd-nav { display: none; }

  .nav-links,
  .header-actions {
    display: none;
  }

  main {
    overflow: visible;
  }

  

  

  .search-card div,
  .expert-grid,
  .steps,
  .price-grid,
  .time-window,
  .duration-picker,
  .modal-time-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .app-header,
  .internal-shell,
  .expert-editor,
  .video-layout,
  .booking-layout,
  .requests-board,
  .reviews-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero {
    padding-top: 3rem;
    padding-bottom: 1rem;
  }

  .page-hero h1 {
    font-size: clamp(2.25rem, 15vw, 3.6rem);
    line-height: 0.98;
  }

  .app-header {
    display: grid;
    gap: 1rem;
    padding-top: 2rem;
  }

  .app-header h1 {
    font-size: clamp(1.9rem, 11vw, 2.7rem);
  }

  .app-header .link-button,
  .app-header button {
    width: 100%;
  }

  .internal-shell {
    gap: 0.9rem;
    padding-top: 1rem;
    padding-bottom: 3rem;
  }

  .telegram-connect {
    grid-template-columns: auto 1fr;
  }

  .telegram-connect-actions {
    grid-column: 1 / -1;
  }

  .telegram-connect-actions .primary-button,
  .telegram-connect-actions .secondary-button {
    width: 100%;
  }

  .side-menu {
    margin: 0 -16px;
    padding: 0 16px 0.2rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .side-menu a {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 10px 28px -24px rgba(15, 30, 80, 0.5);
  }

  .expert-detail,
  .detail-content {
    gap: 0.9rem;
  }

  

  .detail-photo {
    aspect-ratio: 1.05;
    max-height: none;
    border-radius: 0.85rem;
  }

  

  .detail-title {
    font-size: 1rem;
    line-height: 1.55;
  }

  .detail-booking,
  .internal-panel,
  .expert-reviews,
  .detail-content article,
  .booking-detail-card,
  .video-sidebar,
  .editor-form,
  .upload-card,
  .moderation-card {
    border-radius: 1rem;
  }

  /* Три факта в строку на телефоне не читаются — раскладываем в столбик,
     разделители переезжают с боковых на верхние. */
  .booking-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-fact {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .booking-fact:first-child { border-top: 0; }

  .detail-booking {
    gap: 0.85rem;
    padding: 1rem;
  }

  .detail-booking .expert-meta {
    display: grid;
    gap: 0.45rem;
  }

  .duration-tabs,
  .date-tabs {
    gap: 0.35rem;
  }

  .duration-tabs button,
  .date-tabs button,
  .slot-list button {
    padding: 0.7rem 0.4rem;
    font-size: 0.84rem;
  }

  .slot-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  

  

  .tag-list {
    gap: 0.35rem;
  }

  .tag-list span,
  .verified {
    max-width: 100%;
    white-space: nowrap;
  }

  

  

  .review-card {
    padding: 1rem;
  }

  .internal-card {
    grid-template-columns: 48px 1fr;
    gap: 0.7rem;
  }

  .internal-card.incoming-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .internal-card img {
    width: 48px;
    height: 48px;
  }

  .internal-card strong,
  .card-side {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
  }

  .panel-head,
  .balance-bar,
  .balance-bar-actions {
    display: grid;
    gap: 0.8rem;
    align-items: stretch;
  }

  .balance-bar-actions {
    grid-template-columns: 1fr 1fr;
  }

  .transaction-row {
    gap: 0.6rem;
  }

  

  .week-picker {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .week-picker button {
    padding: 0.65rem 0.2rem;
  }

  .schedule-list > [data-window-i] {
    grid-template-columns: 44px 1fr;
  }

  .schedule-list > [data-window-i] button {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 0;
  }

  .booking-layout,
  .video-layout {
    padding-top: 1rem;
  }

  .video-stage {
    border-radius: 1.1rem;
  }

  .modal {
    align-items: end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-height: min(92vh, 760px);
    overflow-y: auto;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 1.25rem 1rem 1rem;
  }

  

  .calendar-grid {
    gap: 0.25rem;
  }

  .calendar-grid span,
  .calendar-grid button {
    min-height: 2rem;
    border-radius: 0.55rem;
    font-size: 0.78rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin-top: 1rem;
    padding: 2rem 16px;
  }

  .site-footer p {
    margin-top: 0.7rem;
  }

  .footer-note {
    justify-self: start;
    text-align: left;
  }




}

/* ── Booking modal: price row ─────────────────────────────── */

/* ── Booking modal: file attachment ──────────────────────── */

/* ── Booking modal: quick slots ──────────────────────────── */
#quick-slots-panel {
  display: grid;
  gap: 0.55rem;
}

/* ── Booking success panel ───────────────────────────────── */
/* ════════════════════════════════════════════════════════════
   BOOKING MODAL (bk-* redesign)
   ════════════════════════════════════════════════════════════ */


.bk-card {
  width: min(100%, 520px);
  padding: 0;
  gap: 0;
  display: flex;
  flex-direction: column;
  max-height: 92vh;            /* never taller than the viewport… */
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;            /* …card clips; the body (.bk-form) scrolls instead */
  box-shadow: 0 40px 90px -20px rgba(15, 30, 80, 0.35);
}

.bk-form, .bk-success {
  display: grid;
  gap: 1.4rem;
  padding: 1.6rem 1.5rem 1.3rem;
  min-height: 0;              /* allow the flex child to shrink below content… */
  overflow-y: auto;          /* …and scroll, so the CTA at the bottom is always reachable */
  -webkit-overflow-scrolling: touch;
}

.bk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bk-head h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.bk-step {
  display: grid;
  gap: 0.7rem;
}
.bk-step[hidden] { display: none; }

.bk-step-title {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Duration with price */
.bk-duration {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
.bk-duration button {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.5rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.bk-duration button:hover {
  border-color: rgba(36, 107, 254, 0.4);
}
.bk-duration button.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.bk-dur-len {
  font-size: 0.85rem;
  font-weight: 700;
}
.bk-dur-price {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bk-duration button.active .bk-dur-price {
  color: var(--blue-dark);
}

/* Day tabs */
.bk-day-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}
.bk-day-tabs button {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.3rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.2;
}
.bk-day-tabs button strong {
  font-size: 0.82rem;
  font-weight: 700;
}
.bk-day-tabs button small {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.bk-day-tabs button:hover {
  border-color: rgba(36, 107, 254, 0.4);
}
.bk-day-tabs button.active {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.bk-day-tabs button.active small {
  color: var(--blue-dark);
}
.bk-day-tabs .bk-day-more {
  color: var(--muted);
  display: grid;
  place-items: center;
  gap: 0.18rem;
}
.bk-day-tabs .bk-day-more svg {
  flex-shrink: 0;
}

/* Slots */
.bk-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}
.bk-slots-empty {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--blue-soft), #f7faff);
  border: 1px solid rgba(36, 107, 254, 0.18);
  border-radius: var(--radius-md);
}
.bk-slots-empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--blue);
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 8px 24px -18px rgba(36, 107, 254, 0.8);
}
.bk-slots-empty-copy { min-width: 0; }
.bk-slots-empty-copy strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink);
  font-size: 0.88rem;
}
.bk-slots-empty-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}
.bk-slots-empty-action {
  padding: 0.62rem 0.75rem;
  color: var(--surface);
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.bk-slots-empty-action:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}
.bk-when-schedule.has-no-slots > .bk-request-link { display: none; }
.bk-slot {
  padding: 0.6rem 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all 0.15s;
}
.bk-slot:hover {
  border-color: rgba(36, 107, 254, 0.4);
}
.bk-slot.active {
  background: var(--blue);
  color: var(--surface);
  border-color: var(--blue);
}

/* Calendar (hidden by default, shown when "Другая") */
.bk-calendar {
  display: grid;
  gap: 0.6rem;
  padding: 0.85rem;
  background: var(--surface-soft);
  border-radius: var(--radius-md);
}
.bk-calendar[hidden] {
  display: none;
}
.bk-calendar .calendar-head {
  margin: 0;
}

/* ── Назначение времени экспертом (карточка брони) ── */
.confirm-time-block {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  margin-bottom: 0.35rem;
}
.confirm-time-title { font-size: 0.95rem; }
.confirm-time-sub {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
}
.confirm-time-label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.confirm-time-label select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.55rem 0.65rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
.incoming-windows {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Карточка входящей заявки (панель «Я эксперт»): без аватарки, поэтому
   базовый грид .internal-card (56px 1fr auto) не подходит — текст попадал
   в узкую колонку под фото. Тут колонок две: текст и кнопка действия. */
.internal-card.incoming-card {
  grid-template-columns: minmax(0, 1fr) auto;
}
.incoming-card-body {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

/* «Начнётся через …» под датой подтверждённой брони */
.booking-countdown {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--blue-dark);
}

/* Надпись в панели действий вместо кнопки «Начать» до −10 минут */
/* Не кнопка, а строка ожидания: ни фона-пилюли, ни жирного веса — иначе её
   принимают за «Начать» и жмут впустую. */
.join-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.join-note[hidden] { display: none; }
.join-note-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  color: var(--mono-muted);
}

/* Аватар эксперта в карточке брони — ссылка на его профиль. */
.clickable-avatar {
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.clickable-avatar:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(36, 107, 254, 0.28);
}

/* ── Блок отзыва в карточке брони ────────────────────────────── */
.review-block {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.review-block[hidden] { display: none; }
.review-block-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}
.star-input {
  display: flex;
  gap: 0.15rem;
}
.star-input[hidden] { display: none; }
.star-input button {
  background: none;
  border: none;
  padding: 0 0.1rem;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  color: var(--line);
  transition: color 0.12s, transform 0.12s;
}
.star-input button:hover { transform: scale(1.12); }
.star-input button.on { color: var(--star); }
/* Тема консультации в форме отзыва: чипы из тегов эксперта */
.review-topic { display: flex; flex-direction: column; gap: 0.5rem; }
.review-topic[hidden] { display: none; }
.review-topic-label { font-size: 0.85rem; color: var(--muted); }
.review-topic-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.review-topic-chips button {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.review-topic-chips button:hover { border-color: var(--blue); }
.review-topic-chips button.on {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
#review-text {
  width: 100%;
  resize: vertical;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}
#review-text[hidden] { display: none; }
#review-text:focus { outline: none; border-color: var(--blue); }
.review-sent {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #fff;
}
.review-sent[hidden] { display: none; }
.review-sent-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.review-sent-rating {
  font-weight: 700;
  color: var(--ink);
}
.review-sent-stars {
  color: var(--star);
  letter-spacing: 0.04em;
}
.review-publication-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  color: #1c8250;
  font-size: 0.78rem;
  font-weight: 700;
}
.review-publication-status::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  color: #fff;
  background: #1c8250;
  font-size: 0.68rem;
}
.review-publication-status[hidden] { display: none; }
.review-sent-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
  white-space: pre-wrap;
}
.review-state {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--blue-soft);
  color: var(--blue-dark);
}
.review-state[hidden] { display: none; }
.review-state.approved { background: rgba(34, 160, 90, 0.12); color: #1c8250; }
.review-state.rejected { background: rgba(200, 60, 60, 0.1); color: #b23838; }

/* Ссылка на файл заявки в карточке брони */
.booking-file-link {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}
.booking-file-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.booking-file-link a:hover { text-decoration: underline; }

/* ── «Не хватает средств» в модалке записи ── */
.bk-topup {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--amber-line);
  border-radius: var(--radius-md);
  background: var(--amber-soft);
}
.bk-topup-title {
  font-size: 0.95rem;
  color: var(--amber-dark);
}
.bk-topup-text {
  font-size: 0.88rem;
  color: var(--ink);
  margin: 0;
}
.bk-topup-btn {
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--blue);
  color: var(--surface);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.bk-topup-btn:hover { background: var(--blue-dark); }
.bk-topup-btn:disabled { opacity: 0.6; cursor: default; }
.bk-topup-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

/* ── Пикер окон доступности (request-режим) ── */
.bk-win-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin: -0.35rem 0 0.7rem;
}
#bk-win-picker {
  display: grid;
  gap: 0.7rem;
  transition: opacity 0.15s;
}
#bk-win-picker.bk-win-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.bk-win-calendar {
  display: grid; /* всегда виден, в отличие от .bk-calendar[hidden] */
}
.bk-win-days {
  display: grid;
  gap: 0.55rem;
}
.bk-win-day {
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  display: grid;
  gap: 0.5rem;
}
.bk-win-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
}
.bk-win-remove {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
}
.bk-win-remove:hover { color: var(--ink); }
.bk-win-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.bk-win-chip {
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.bk-win-chip:hover { border-color: rgba(36, 107, 254, 0.4); }
.bk-win-chip.active {
  background: rgba(36, 107, 254, 0.08);
  border-color: var(--blue);
  color: var(--blue);
}
.bk-win-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
.bk-win-day--empty {
  border-color: var(--amber-line);
  background: var(--amber-soft);
}
.bk-win-day-warn {
  font-size: 0.8rem;
  color: var(--amber-dark);
  margin: 0;
}
.bk-any-time {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.bk-any-time input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* Request topic + textarea */
.bk-label {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}
.bk-form textarea {
  font-family: inherit;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  padding: 0.75rem 0.85rem;
  min-height: 80px;
  resize: vertical;
}
.bk-form input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  padding: 0.75rem 0.85rem;
}
.bk-form input[type="text"]:focus {
  border-color: rgba(36, 107, 254, 0.55);
  box-shadow: 0 0 0 4px rgba(36, 107, 254, 0.08);
  outline: none;
}
.bk-form textarea:focus {
  border-color: rgba(36, 107, 254, 0.55);
  box-shadow: 0 0 0 4px rgba(36, 107, 254, 0.08);
}

/* File attachment */
.bk-file-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 0.2rem;
}
.bk-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1.5px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.bk-file-btn:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-style: solid;
}
.bk-file-hint {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--mono-muted);
  text-transform: uppercase;
  margin-left: 0.25rem;
}
.bk-file-name {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
}

/* CTA */
.bk-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: var(--surface);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  text-align: left;
}
.bk-cta:hover {
  background: #1a2942;
  transform: translateY(-1px);
}
.bk-cta-text {
  font-weight: 500;
}
.bk-cta-text strong {
  font-weight: 700;
}
.bk-cta-price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 1rem;
}

.bk-footnote {
  margin: 0;
  font-size: 0.78rem;
  color: var(--mono-muted);
  text-align: center;
  line-height: 1.5;
}

/* Payment-info card — different copy per booking mode */
.bk-pay-info {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(15, 155, 115, 0.07);
  border: 1px solid rgba(15, 155, 115, 0.18);
  border-radius: var(--radius-md);
  color: #2d4a3e;
}
.bk-pay-info > svg { margin-top: 2px; color: var(--green); flex-shrink: 0; }
.bk-pay-info-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1b4534;
  margin-bottom: 3px;
}
.bk-pay-info-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #355a4c;
}
.bk-pay-info-text b { color: #1b4534; }
.bk-is-request .bk-pay-info {
  background: rgba(36, 107, 254, 0.07);
  border-color: rgba(36, 107, 254, 0.2);
  color: #1a3a7a;
}
.bk-is-request .bk-pay-info > svg { color: var(--blue); }
.bk-is-request .bk-pay-info-title { color: var(--blue-dark); }
.bk-is-request .bk-pay-info-text { color: #2a4d8f; }
.bk-is-request .bk-pay-info-text b { color: var(--blue-dark); }

/* "Не нашли удобное время? Оставить заявку →" link in schedule-mode booking */
.bk-request-link {
  background: none;
  border: 0;
  padding: 0.7rem 0;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  transition: color 0.15s;
}
.bk-request-link strong {
  color: var(--blue-dark);
  font-weight: 700;
}
.bk-request-link:hover strong { color: var(--blue); }

/* Success panel */
.bk-success {
  text-align: center;
  padding-top: 2.4rem;
  padding-bottom: 1.8rem;
  position: relative;
}
.bk-success > .bk-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.bk-success[hidden] {
  display: none;
}
.bk-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, #0c8562 100%);
  color: var(--surface);
  font-size: 1.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px -10px rgba(15, 155, 115, 0.5);
}
.bk-success-title {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.bk-success-body {
  margin: 0;
  color: var(--muted);
}
.bk-success-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mono-muted);
  line-height: 1.55;
  padding: 0 0.5rem;
}
.bk-cta-link {
  display: block;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}
.bk-cta-link:hover { background: #1a2942; }
.bk-secondary {
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s;
}
.bk-secondary:hover { border-color: var(--blue); }

@media (max-width: 480px) {
  .bk-form, .bk-success { padding: 1.2rem 1rem; }
  .bk-day-tabs { grid-template-columns: repeat(2, 1fr); }
  .bk-slots { grid-template-columns: repeat(3, 1fr); }
  .bk-slots-empty { grid-template-columns: 42px minmax(0, 1fr); }
  .bk-slots-empty-action { grid-column: 2; justify-self: start; }
  .bk-cta { flex-direction: column; align-items: stretch; gap: 0.35rem; padding: 0.85rem; }
  .bk-cta-price { text-align: right; }
}

/* ── Hamburger button ────────────────────────────────────── */
/* ════════════════════════════════════════════════════════════
   MOBILE NAV (hamburger + drawer)
   ════════════════════════════════════════════════════════════ */


.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: var(--surface-soft);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.15s;
}

/* ── Nav drawer ──────────────────────────────────────────── */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.nav-drawer.is-open {
  display: block;
}
.nav-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 45, 0.44);
  backdrop-filter: blur(4px);
}
.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 82vw);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: -8px 0 56px rgba(15, 30, 80, 0.2);
  overflow-y: auto;
  animation: slideInRight 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.nav-drawer-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.75rem;
  gap: 0.2rem;
}
.nav-drawer-links a {
  display: block;
  padding: 0.75rem 0.75rem;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.65rem;
  transition: background 0.15s;
}
.nav-drawer-links a:hover {
  background: var(--surface-soft);
}
.nav-drawer-actions {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.nav-drawer-actions .vd-btn-ghost,
.nav-drawer-actions .vd-btn-solid {
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  width: 100%;
  text-align: center;
}
/* Залогиненный пользователь в дровере: аватар + имя вместо кнопок входа */
.nav-drawer-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.85rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  background: var(--surface-soft);
}
.nav-drawer-user:hover { background: var(--blue-soft); }

/* ── Mobile: show hamburger, hide nav ────────────────────── */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }
  .vd-nav {
    display: none !important;
  }
  .vd-header .header-actions {
    display: none;
  }
}

/* Match homepage horizontal padding (clamp 1rem … 72px) — content goes full
   site-wide width. Forms inside get their own readable max-width. */
/* ════════════════════════════════════════════════════════════
   EXPERT EDITOR LAYOUT (ed-*)
   ════════════════════════════════════════════════════════════ */


.ed-main {
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 1.2rem var(--page-pad) 4rem;
  overflow: visible;
}
.ed-main > * {
  max-width: none;
  margin-inline: 0;
}

.ed-profile-header {
  align-items: flex-end;
}

.ed-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  padding-bottom: 0.15rem;
}

/* ── Identity hero ─────────────────────────────────────────── */
/* Верх редактора. Превью входит только в начальную группу полей и не
   сопровождает длинную форму ниже раздела с ценами. */
.ed-page {
  display: block;
}
.ed-preview-rail {
  min-width: 0;
  position: static;
  align-self: start;
}
.ed-preview-rail.is-following {
  position: fixed;
  top: var(--ed-preview-fixed-top, 1.5rem);
  left: var(--ed-preview-fixed-left);
  z-index: 5;
  width: var(--ed-preview-fixed-width);
}
.ed-preview-rail.is-stopped {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--ed-preview-fixed-width, 300px);
}

.ed-moderation-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.2rem;
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid #f1b9bd;
  border-left: 5px solid #df3f45;
  border-radius: 1.2rem;
  background: linear-gradient(110deg, #fff4f4, #fffafa);
  box-shadow: 0 16px 42px -32px rgba(172, 36, 43, 0.45);
}

.ed-moderation-alert-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #df3f45;
  color: white;
  font-size: 1.45rem;
  font-weight: 800;
}

.ed-moderation-alert-copy {
  min-width: 0;
}

.ed-moderation-alert-copy h2,
.ed-moderation-alert-copy p {
  margin: 0;
}

.ed-moderation-alert-eyebrow {
  margin-bottom: 0.25rem !important;
  color: #b3262e;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ed-moderation-alert-copy h2 {
  margin-bottom: 0.3rem;
  font-size: 1.18rem;
}

.ed-moderation-alert-copy > p:not(.ed-moderation-alert-eyebrow) {
  color: #6f3a3d;
  line-height: 1.45;
}

.ed-moderation-alert blockquote {
  margin: 0.8rem 0 0;
  padding: 0.65rem 0.8rem;
  border-left: 2px solid #df3f45;
  border-radius: 0 0.5rem 0.5rem 0;
  background: rgba(255, 255, 255, 0.7);
  color: #732b30;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.ed-moderation-alert .primary-button {
  white-space: nowrap;
}

.ed-preview-shell {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}
.ed-preview-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.ed-catalog-preview {
  gap: 0.72rem;
  padding: 0.85rem;
  border-radius: 1.15rem;
  box-shadow: 0 18px 44px -34px rgba(15, 30, 80, 0.42);
  cursor: default;
}
.ed-catalog-preview:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 18px 44px -34px rgba(15, 30, 80, 0.42);
}
.ed-catalog-preview .expert-meta {
  font-size: 0.76rem;
}
.ed-catalog-preview .card-footer {
  min-height: 1.2rem;
}
.ed-catalog-preview .price {
  color: var(--ink);
  font-size: 0.87rem;
}
.ed-catalog-preview .ed-identity-name,
.ed-catalog-preview .ed-identity-name h3,
.ed-catalog-preview .ed-identity-name p {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ed-card-tags { min-height: 1.85rem; }
.ed-photo-guidance {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.ed-photo {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.25;
  border-radius: 0.9rem;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-soft);
  transform: translateZ(0);
  isolation: isolate;
}
/* Пока фото профиля не загрузилось из API — скелетон-шиммер */
.ed-photo.is-loading {
  background: linear-gradient(100deg, var(--surface-soft) 30%, #eef3fb 50%, var(--surface-soft) 70%);
  background-size: 220% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
/* Абсолютное позиционирование, а не height:100% — Safari не резолвит
   проценты против высоты из aspect-ratio, и портретное фото раздувало
   карточку до натуральной высоты */
.ed-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.ed-photo-overlay {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: max-content;
  max-width: calc(100% - 1.7rem);
  padding: 0.5rem 0.65rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px -18px rgba(8, 24, 45, 0.75);
  backdrop-filter: blur(8px);
  opacity: 1;
  transform: translateX(-50%);
  transition: background 0.15s, transform 0.15s;
  font-size: 0.76rem;
  font-weight: 600;
}
.ed-photo:hover .ed-photo-overlay,
.ed-photo:focus-within .ed-photo-overlay {
  background: var(--surface);
  transform: translate(-50%, -1px);
}
.ed-photo:hover img {
  transform: scale(1.03);
}

.ed-identity-name {
  display: grid;
  gap: 0.38rem;
}
.ed-identity-name h3 {
  min-height: 1.3em;
  font-size: 1.1rem;
  line-height: 1.2;
}
.ed-identity-name p {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.ed-identity-name.is-empty h3,
.ed-identity-name.is-empty p { color: var(--mono-muted); }

.ed-identity-visibility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ed-identity-visibility strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.2;
}
.ed-identity-visibility p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.3;
}
.ed-publication-setting {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.ed-publication-setting .ed-hidden-warning {
  margin-top: 0.85rem;
}

.ed-identity-name.is-loading h3,
.ed-identity-name.is-loading p {
  color: transparent;
  background: linear-gradient(100deg, var(--surface-soft) 30%, #eef3fb 50%, var(--surface-soft) 70%);
  background-size: 220% 100%;
  border-radius: 7px;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.ed-identity-name.is-loading h3 {
  width: min(210px, 70%);
  height: 1.35rem;
}
.ed-identity-name.is-loading p {
  width: min(260px, 90%);
  height: 1rem;
}

.ed-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}
.ed-status-pill.is-ok {
  background: transparent;
  border-color: transparent;
  color: #0d7d5d;
}
.ed-status-pill.is-pending {
  background: transparent;
  border-color: transparent;
  color: #a86600;
}
.ed-status-pill.is-rejected {
  background: transparent;
  border-color: transparent;
  color: #b3262e;
}
.ed-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ed-status-pill.is-ok .ed-status-dot {
  background: var(--green);
  box-shadow: none;
}
.ed-status-pill.is-pending .ed-status-dot {
  background: #ff9f1c;
  box-shadow: none;
}
.ed-status-pill.is-rejected .ed-status-dot {
  background: #df3f45;
  box-shadow: none;
}

.ed-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-dark);
  background: transparent;
  text-decoration: none;
  transition: color 0.15s;
}
.ed-preview-link:hover {
  background: transparent;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ed-preview-link.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

/* ── Tabs ──────────────────────────────────────────────────── */
/* ── Work experience rows (shared by wizard + dashboard) ───── */
/* Work experience — one card per entry */
.wz-exp-list { display: grid; gap: 14px; }
.wz-exp-row {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.wz-exp-row label {
  display: grid;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.wz-exp-row input[type="text"] {
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
}

/* Dates row: С — По + "работаю сейчас" */
.wz-exp-dates {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.wz-exp-dates label { width: 96px; }
.wz-exp-dash {
  align-self: flex-end;
  display: grid;
  place-items: center;
  height: 42px;
  color: var(--mono-muted);
}
.wz-exp-row label.wz-exp-current {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  margin: 0;
  white-space: nowrap;
}
.wz-exp-current input[type="checkbox"] {
  width: 15px; height: 15px;
  margin: 0;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.wz-exp-current-period {
  display: grid;
  gap: 5px;
}
.wz-exp-period-caption {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.wz-exp-current-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 42px;
}
.wz-exp-now {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

/* Role + company row */
.wz-exp-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Remove × — top-right of the card */
.wz-exp-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--mono-muted);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.wz-exp-remove:hover { color: #c0392b; background: rgba(192, 57, 43, 0.08); }

.wz-exp-add {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 11px 18px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--blue-dark);
  font-family: inherit;
  font-size: 0.92rem; font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.wz-exp-add:hover { border-color: var(--blue); background: var(--blue-soft); border-style: solid; }

@media (max-width: 768px) {
  .wz-exp-main { grid-template-columns: 1fr; }
  .wz-exp-dates label { width: calc(50% - 24px); }
}

/* ── Section nav + form layout ─────────────────────────────── */
.ed-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1rem;
}
.ed-section-nav {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 2px;
}
.ed-section-nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.ed-section-nav a:hover {
  color: var(--ink);
}
.ed-section-nav a.active {
  color: var(--blue-dark);
  font-weight: 600;
  border-left-color: var(--blue);
  background: var(--blue-soft);
}
.ed-form {
  display: grid;
  gap: 3rem;
}

.ed-form-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}
.ed-form-intro-fields {
  display: grid;
  gap: 3rem;
}

/* На средней ширине превью остаётся в начале, но перестаёт сжимать поля. */
@media (max-width: 1180px) {
  .ed-form-intro { grid-template-columns: 1fr; }
  .ed-preview-rail,
  .ed-preview-rail.is-following,
  .ed-preview-rail.is-stopped { grid-row: 1; position: static; width: auto; }
  .ed-preview-shell { max-width: 380px; }
}

@media (max-width: 880px) {
  .ed-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .ed-section-nav {
    position: static;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
  }
  .ed-section-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; }
  .ed-section-nav a.active { border-left: 0; border-bottom-color: var(--blue); }
}

.ed-section {
  display: grid;
  gap: 1rem;
}

.ed-telegram-connect {
  box-shadow: none;
}

.ed-section-head {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 0.15rem;
}
.ed-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.ed-section-head p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.ed-service-section {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(248, 250, 253, 0.72);
}
.ed-tax-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.15rem 0 0.35rem;
}
.ed-tax-status label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
}
.ed-tax-status input {
  flex: none;
  width: 1rem;
  height: 1rem;
  accent-color: var(--blue);
}

/* Platform recommendations for the expert's public profile copy. */
.ed-ai-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
  overflow: hidden;
  background: #fffdf7;
  border: 1px solid rgba(245, 179, 65, 0.24);
  border-radius: var(--radius-md);
}
.ed-ai-card[hidden] { display: none; }
.ed-ai-card-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
}
.ed-ai-mark,
.ed-ai-mascot {
  display: grid;
  place-items: center;
  width: 58px;
  height: 48px;
}
.ed-ai-mascot img {
  display: block;
  width: 58px;
  height: 48px;
  object-fit: contain;
}
.ed-ai-card-copy { min-width: 0; }
.ed-ai-eyebrow {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
}
.ed-ai-card-copy h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}
.ed-ai-card-copy p,
.ed-ai-empty-draft,
.ed-ai-privacy,
.ed-ai-status,
.ed-ai-summary,
.ed-ai-reason,
.ed-ai-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.ed-ai-card-copy p { margin-top: 0.35rem; max-width: 720px; }
.ed-ai-empty-draft {
  padding: 0.7rem 0.8rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(245, 179, 65, 0.18);
  border-radius: 8px;
  font-size: 0.82rem;
}
.ed-ai-empty-draft[hidden] { display: none; }
.ed-ai-start { white-space: nowrap; }
.ed-ai-start[hidden] { display: none; }
.ed-ai-start.is-loading { cursor: progress; }
.ed-ai-privacy {
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(245, 179, 65, 0.18);
  border-radius: 8px;
  font-size: 0.8rem;
}
.ed-ai-status {
  padding: 0.75rem 0.85rem;
  color: var(--blue-dark);
  background: rgba(36, 107, 254, 0.08);
  border-radius: 10px;
}
.ed-ai-status[hidden],
.ed-ai-results[hidden],
.ed-ai-questions[hidden] { display: none; }
.ed-ai-status.is-error {
  color: #a62d2d;
  background: rgba(210, 59, 59, 0.08);
}
.ed-ai-results { display: grid; gap: 1rem; }
.ed-ai-suggestion-stage { display: grid; gap: 0.9rem; }
.ed-ai-suggestion-stage[hidden] { display: none; }
.ed-ai-suggestion-intro {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.2rem;
}
.ed-ai-suggestion-intro > span,
.ed-ai-answered-title {
  color: var(--mono-muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0;
}
.ed-ai-more-questions {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 0.9rem;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.ed-ai-more-questions[hidden] { display: none; }
.ed-ai-more-questions p { margin: 0; color: var(--ink); font-size: 0.84rem; line-height: 1.45; }
.ed-ai-survey-icon { display: block; width: 56px; height: 56px; object-fit: contain; }
.ed-ai-more-questions-content { display: grid; gap: 0.65rem; min-width: 0; }
.ed-ai-more-questions-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; justify-content: flex-end; }
.ed-ai-text-button {
  padding: 0.5rem 0.35rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.ed-ai-text-button:hover { color: var(--ink); }
.ed-ai-summary {
  color: var(--ink);
  font-weight: 500;
}
.ed-ai-suggestions { display: grid; gap: 0.75rem; }
.ed-ai-suggestion {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.ed-ai-suggestion.is-applied {
  border-color: rgba(15, 155, 115, 0.35);
  box-shadow: inset 3px 0 0 var(--green);
}
.ed-ai-suggestion > header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.ed-ai-suggestion-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  margin-left: auto;
}
.ed-ai-suggestion h4,
.ed-ai-questions h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}
.ed-ai-inference {
  padding: 0.25rem 0.55rem;
  color: var(--muted);
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}
.ed-ai-after-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.ed-ai-after-heading > span { margin: 0; }
.ed-ai-regenerate {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.48rem;
  color: var(--blue-dark);
  background: #fff;
  border: 1px solid rgba(36, 107, 254, 0.24);
  border-radius: 7px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ed-ai-regenerate:hover,
.ed-ai-regenerate:focus-visible {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 5px 14px rgba(36, 107, 254, 0.2);
  transform: translateY(-1px);
}
.ed-ai-regenerate:focus-visible { outline: 2px solid rgba(36, 107, 254, 0.28); outline-offset: 2px; }
.ed-ai-regenerate.is-loading {
  color: var(--blue);
  background: var(--blue-soft);
  cursor: progress;
}
.ed-ai-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: stretch;
}
.ed-ai-before,
.ed-ai-after {
  padding: 0.75rem;
  background: var(--surface-soft);
  border-radius: 10px;
}
.ed-ai-after { background: rgba(36, 107, 254, 0.07); }
.ed-ai-before > span,
.ed-ai-after-heading > span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--mono-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
}
.ed-ai-before p,
.ed-ai-after p,
.ed-ai-proposal-input {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.5;
  white-space: pre-line;
}
.ed-ai-before p { color: var(--muted); }
.ed-ai-proposal-input {
  display: block;
  width: 100%;
  min-height: 80px;
  padding: 0.55rem 0.65rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(36, 107, 254, 0.18);
  border-radius: 8px;
  font-family: inherit;
  resize: vertical;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.ed-ai-proposal-input[data-suggestion-input="title"] { min-height: 66px; resize: vertical; }
.ed-ai-proposal-input:hover { background: #fff; border-color: rgba(36, 107, 254, 0.36); }
.ed-ai-proposal-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 107, 254, 0.11);
}
.ed-ai-regenerate-error {
  margin: -0.2rem 0 0;
  color: #a62d2d;
  font-size: 0.8rem;
  line-height: 1.4;
}
.ed-ai-regenerate-error[hidden] { display: none; }
.ed-ai-arrow {
  align-self: center;
  color: var(--blue);
  text-align: center;
}
.ed-ai-apply { justify-self: end; padding: 0.55rem 0.8rem; }
.ed-ai-apply:disabled {
  color: var(--green);
  background: rgba(15, 155, 115, 0.08);
  border-color: rgba(15, 155, 115, 0.25);
  cursor: default;
}
.ed-ai-question-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.ed-ai-question-modal[hidden] { display: none; }
.ed-ai-question-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  background: rgba(17, 32, 55, 0.46);
  border: 0;
  cursor: default;
}
.ed-ai-questions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  width: min(680px, 100%);
  max-height: min(700px, calc(100vh - 2rem));
  padding: 1.1rem;
  overflow: auto;
  background: #fffdf7;
  border: 1px solid rgba(245, 179, 65, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 55px rgba(17, 32, 55, 0.24);
}
.ed-ai-question-modal-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
}
.ed-ai-question-modal-icon { display: block; width: 48px; height: 48px; object-fit: contain; }
.ed-ai-question-modal-head > div { display: grid; gap: 0.18rem; }
.ed-ai-question-modal-head span {
  color: var(--mono-muted);
  font-size: 0.72rem;
  font-weight: 600;
}
.ed-ai-question-modal-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}
.ed-ai-question-modal-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
.ed-ai-question-close {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
  place-items: center;
  cursor: pointer;
}
.ed-ai-question-close:hover,
.ed-ai-question-close:focus-visible { color: var(--ink); background: rgba(17, 32, 55, 0.07); }
.ed-ai-question-close:focus-visible { outline: 2px solid rgba(36, 107, 254, 0.28); outline-offset: 2px; }
body.ed-ai-question-modal-open { overflow: hidden; }
.ed-ai-question-list { display: grid; gap: 0.7rem; }
.ed-ai-question-list[hidden],
.ed-ai-question-actions[hidden],
.ed-ai-answered[hidden] { display: none; }
.ed-ai-answered {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.ed-ai-answered-list { display: grid; gap: 0.55rem; }
.ed-ai-answered-item {
  display: grid;
  gap: 0.2rem;
}
.ed-ai-answered-item + .ed-ai-answered-item {
  padding-top: 0.55rem;
  border-top: 1px solid rgba(15, 155, 115, 0.14);
}
.ed-ai-answered-item > span {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}
.ed-ai-answered-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-line;
}
.ed-ai-question {
  display: grid;
  gap: 0.4rem;
}
.ed-ai-question > span {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
}
.ed-ai-question textarea {
  width: 100%;
  min-height: 78px;
  padding: 0.65rem 0.7rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.45;
  resize: vertical;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.ed-ai-question textarea:hover { background: #fff; border-color: rgba(36, 107, 254, 0.28); }
.ed-ai-question textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(36, 107, 254, 0.11);
}
.ed-ai-question-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: center;
  justify-content: flex-end;
}
.ed-ai-enrich,
.ed-ai-finish {
  min-height: 42px;
  padding: 0.58rem 0.8rem;
}
.ed-ai-enrich.is-loading { cursor: progress; }
.ed-ai-question-status {
  margin: 0;
  color: #a62d2d;
  font-size: 0.8rem;
  line-height: 1.4;
}
.ed-ai-question-status[hidden] { display: none; }

@media (max-width: 720px) {
  .ed-ai-card-head { grid-template-columns: 1fr; }
  .ed-ai-mascot { justify-self: start; }
  .ed-ai-start { width: 100%; }
  .ed-ai-comparison { grid-template-columns: 1fr; }
  .ed-ai-arrow { height: 22px; font-size: 0; line-height: 22px; transform: none; }
  .ed-ai-arrow::before { content: "↓"; font-size: 1rem; }
  .ed-ai-apply { width: 100%; }
  .ed-ai-enrich { width: 100%; }
  .ed-ai-finish { width: 100%; }
  .ed-ai-question-modal { padding: 0.75rem; }
  .ed-ai-questions { max-height: calc(100vh - 1.5rem); padding: 0.95rem; }
  .ed-ai-question-modal-head { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 0.55rem; }
  .ed-ai-question-modal-icon { width: 42px; height: 42px; }
}

/* Positioning is compact, but tall enough to read and edit two lines. */
textarea.profile-title-input {
  min-height: 76px;
  resize: vertical;
}

.wz-ai-card {
  margin-top: 0.25rem;
}

/* Duration + price combined rows */
.ed-duration-prices {
  display: grid;
  gap: 0.55rem;
}
.ed-dp-row {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem 0;
}
.ed-dp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
  background: none;
  border: 0;
}
.ed-dp-toggle input {
  width: auto;
  accent-color: var(--blue);
  margin: 0;
}
.ed-dp-toggle:has(input:not(:checked)) span {
  color: var(--muted);
  text-decoration: line-through;
}
.ed-dp-price {
  position: relative;
  display: flex;
  align-items: center;
}
.ed-dp-price input {
  padding-right: 2rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ed-dp-currency {
  position: absolute;
  right: 0.95rem;
  color: var(--muted);
  font-size: 0.92rem;
  pointer-events: none;
}
.ed-dp-toggle:has(input:not(:checked)) ~ .ed-dp-price input {
  opacity: 0.4;
  pointer-events: none;
}
.ed-dp-row:has(.ed-dp-toggle input:not(:checked)) .ed-dp-price input {
  opacity: 0.4;
  pointer-events: none;
}

/* Schedule: inline hint + empty state */
.ed-window-hint[hidden] {
  display: none;
}
.ed-window-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  color: #b8761e;
  background: rgba(255, 159, 28, 0.1);
  border: 1px solid rgba(255, 159, 28, 0.25);
  border-radius: 10px;
  align-self: start;
  width: fit-content;
}
.ed-window-hint svg { color: #b8761e; flex-shrink: 0; }

.schedule-empty {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: left;
  border: 1px dashed var(--line);
}
.schedule-empty-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--blue);
  background: var(--surface);
  border-radius: 50%;
  font-size: 1.25rem;
}
.schedule-empty strong { display: block; color: var(--ink); }
.schedule-empty p { margin: 0.2rem 0 0; line-height: 1.45; }
.schedule-empty button {
  color: var(--blue);
  background: transparent;
  border: 0;
  padding: 0.45rem 0;
  font-weight: 700;
  cursor: pointer;
}
.schedule-empty button:hover { text-decoration: underline; }

.ed-window-del {
  cursor: pointer;
}

/* Language picker: active chips get × to hint "click to remove" */
.ed-form .language-picker button.active {
  padding-right: 0.85rem;
}
.ed-form .language-picker button.active::after {
  content: "×";
  margin-left: 0.55em;
  font-weight: 600;
  font-size: 1.15em;
  line-height: 0.8;
  opacity: 0.55;
  display: inline-block;
  transform: translateY(0.05em);
  transition: opacity 0.15s;
}
.ed-form .language-picker button.active:hover {
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.35);
}
.ed-form .language-picker button.active:hover::after {
  opacity: 1;
}

/* Language suggestions row */
.ed-lang-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: -0.25rem;
}
.ed-lang-suggest-label {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--mono-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 0.25rem;
}
.ed-lang-suggest button {
  padding: 0.35rem 0.7rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.ed-lang-suggest button:hover {
  border-style: solid;
  border-color: var(--blue);
  color: var(--blue-dark);
  background: var(--blue-soft);
}

/* ── Sticky action bar ─────────────────────────────────────── */
.ed-actions {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.ed-actions-inner {
  position: relative;
  padding: 0.95rem 1.1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}
.ed-saved-hint {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: calc(100% - 12rem);
  transform: translateY(-50%);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}
.ed-saved-hint[hidden] {
  display: none;
}
.ed-saved-hint svg { color: var(--green); }
.ed-actions-buttons {
  display: inline-flex;
  gap: 0.6rem;
  justify-self: end;
}
.ed-actions-buttons .primary-button {
  padding: 0.7rem 1.1rem;
}
.ed-actions-buttons .secondary-button {
  padding: 0.7rem 1.1rem;
}

/* Mobile */
@media (max-width: 768px) {
  .ed-moderation-alert {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
  .ed-moderation-alert .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .ed-photo {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1.25;
    border-radius: 0.9rem;
  }
  .ed-preview-shell { padding: 1rem; }
  .ed-catalog-preview { width: 100%; max-width: 380px; margin: 0 auto; }
  .ed-actions-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    align-items: stretch;
    gap: 0;
  }
  .ed-actions-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .ed-saved-hint {
    top: auto;
    bottom: calc(100% + 0.45rem);
    left: 50%;
    width: max-content;
    max-width: calc(100vw - 2rem);
    padding: 0.45rem 0.7rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 8px 24px -18px rgba(12, 23, 41, 0.45);
    transform: translateX(-50%);
  }
  .schedule-builder { padding: 1rem; }
  .schedule-empty {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .schedule-empty button {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }
}



/* ============================================================
   EXPERT PROFILE PAGE (expert.html) — ".va-*" redesigned layout
   Moved out of the page's inline <style> for a single CSS source.
   ============================================================ */
/* ════════════════════════════════════════════════════
   Alternative expert profile page styles (prefix: va-)
   ════════════════════════════════════════════════════ */

.va-main {
  padding: 0 var(--page-pad);
  max-width: var(--page-max);
  margin: 0 auto;
  overflow: visible;
}

.va-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0 18px;
}
.va-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase;
}
.va-version-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink);
  text-decoration: none; transition: color .15s, border-color .15s, background .15s;
}
.va-topbar-left {
  display: flex; align-items: center; gap: 14px;
}

/* ── Single-column layout ───────────────────────────── */
.va-layout {
  display: grid;
  gap: 48px;
  padding: 12px 0 60px;
}

/* ── Hero (full width, photo + info) ────────────────── */
.va-hero {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 56px;
  align-items: start;
}

.va-photo-frame {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  background: #f0f4fb;
  box-shadow: 0 40px 80px -40px rgba(15,30,80,.3);
  transform: translateZ(0);
  isolation: isolate;
}
.va-photo-frame img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.va-photo-badge {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px;
  background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: var(--radius-pill);
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  backdrop-filter: blur(8px);
}
.va-photo-badge .va-check {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); color: var(--surface);
  display: grid; place-items: center;
  font-size: 9px; font-weight: 800;
}

/* ── Info column ────────────────────────────────────── */
.va-info { padding-top: 4px; }

.va-langs-row {
  display: flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px;
  color: var(--muted); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 22px;
}
.va-langs-row #detail-languages {
  display: inline-flex; gap: 6px;
}
.va-langs-row #detail-languages span {
  padding: 0; background: none; border: 0; color: var(--ink); font-weight: 600;
}
.va-langs-row #detail-languages span:not(:last-child)::after {
  content: " ·"; color: #c7d2e3; margin-left: 6px;
}

.va-name {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 12px;
}
.va-name em {
  font-style: italic;
  color: var(--blue);
  font-weight: 400;
}

.va-title {
  font-size: 17px; color: var(--muted);
  line-height: 1.5;
  max-width: 520px;
  margin: 0 0 28px;
}

.va-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 36px;
}
.va-tags span {
  padding: 7px 13px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
}

/* Trust stats row */
.va-trust {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.va-trust-cell {
  display: flex; flex-direction: column; gap: 6px;
}
.va-trust-cell:nth-child(2) {
  text-align: center;
  align-items: center;
}
.va-trust-cell:last-child {
  text-align: right;
  align-items: flex-end;
}
.va-trust-num {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 42px; font-weight: 500;
  color: var(--ink); line-height: 1;
  letter-spacing: -0.025em;
}
.va-trust-num .va-star {
  color: var(--star); font-size: 36px;
  display: inline-block; transform: translateY(-3px);
}
.va-trust-label {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px; color: var(--muted);
  letter-spacing: .14em; text-transform: uppercase;
}

/* ── Inline booking block (inside info column) ──────── */
.va-book-inline {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.va-book-price {
  display: flex; flex-direction: column; gap: 4px;
}
.va-book-price-value {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 28px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1;
}
.va-book-price-unit {
  font-size: 12px; color: var(--muted);
  font-weight: 500;
}
.va-book-microcopy {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted);
  line-height: 1.45;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.va-book-microcopy svg {
  flex-shrink: 0; color: var(--green);
}
.va-cta {
  padding: 13px 22px;
  border: 0; border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--surface);
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .15s;
}
.va-cta:hover { background: #1a2942; transform: translateY(-1px); }

/* ── Collapsible "О себе" ───────────────────────────── */
.va-collapsible-body { position: relative; }
.va-content article.va-collapsible.is-collapsed .va-collapsible-body {
  max-height: 168px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 62%, transparent 100%);
}
.va-collapse-toggle {
  margin-top: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--blue-dark);
  cursor: pointer;
}
.va-collapse-toggle:hover { text-decoration: underline; }
.va-collapse-toggle .chev {
  font-size: 11px; line-height: 1;
  transition: transform .18s ease;
}
.va-content article.va-collapsible:not(.is-collapsed) .va-collapse-toggle .chev {
  transform: rotate(180deg);
}

/* ── Content sections (description articles) ────────── */
.va-content { display: grid; gap: 28px; }
.va-content article {
  position: relative;
  padding: 4px 0 4px 24px;
  margin: 0;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.va-content article::before {
  content: "";
  position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 2px; border-radius: 1px;
  background: linear-gradient(180deg, var(--blue), rgba(36,107,254,0));
}
.va-content article h2 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif !important;
  font-weight: 500 !important;
  font-size: 26px !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.015em !important;
  color: var(--ink) !important;
}
.va-content article p {
  margin: 0 !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  color: var(--muted) !important;
}

/* ── Reviews ────────────────────────────────────────── */
.va-reviews {
  padding: 60px var(--page-pad);
  margin: 0 calc(-1 * var(--page-pad));
  /* No section background: sits on the continuous page surface so the
     film-grain reads uniformly and no seam shows against neighbours. */
}
.va-reviews-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 32px;
}
.va-reviews-head h2 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif; font-weight: 500;
  font-size: clamp(28px, 3vw, 36px);
  margin: 6px 0 0; letter-spacing: -0.02em;
}
.va-reviews-count {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
}
.va-reviews-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.va-review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: grid; gap: 16px;
}
.va-review-top {
  display: flex; justify-content: space-between; align-items: center;
}
.va-review-author {
  display: flex; align-items: center; gap: 12px;
}
.va-review-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: var(--surface);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.va-review-meta strong {
  display: block; font-size: 14px; color: var(--ink);
}
.va-review-meta small {
  font-size: 12px; color: var(--muted);
}
.va-review-rating {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px; color: var(--ink); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  line-height: 1;
}
.va-review-rating .va-star {
  color: var(--star);
  font-size: 30px;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  transform: translateY(-1px);
}
.va-review-expand {
  background: none; border: 0; padding: 0;
  font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--blue-dark); cursor: pointer;
  margin-top: -6px;
  align-self: flex-start;
}
.va-review-expand:hover { color: var(--blue); }
.va-review-footer {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase;
}
.va-review-tag {
  padding: 4px 10px; background: var(--blue-soft);
  color: var(--blue-dark); border-radius: var(--radius-pill);
  font-weight: 700;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 880px) {
  .va-hero { grid-template-columns: 280px 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .va-hero { grid-template-columns: 1fr; gap: 20px; }
  .va-photo-frame { max-width: 100%; }
  .va-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; padding: 20px 0; }
  .va-trust-cell,
  .va-trust-cell:nth-child(2),
  .va-trust-cell:last-child { min-width: 0; text-align: center; align-items: center; }
  .va-trust-num { font-size: 30px; white-space: nowrap; }
  .va-trust-label { font-size: 9px; letter-spacing: .04em; line-height: 1.25; }
  .va-reviews-grid { grid-template-columns: 1fr; }
  .va-reviews { padding: 40px 16px; }
  .va-book-inline { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
}

/* ════════════════════════════════════════════════════
   v2 additions — slots, sticky CTA, scope lists, similar experts
   ════════════════════════════════════════════════════ */

/* Better eyebrow above name */

/* Languages — small row near trust stats */
.va-langs-aside {
  display: flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px;
  color: var(--muted); letter-spacing: .1em; text-transform: uppercase;
  margin-top: 14px;
}
.va-langs-aside b { color: var(--ink); font-weight: 600; }

/* Restyled booking card — more prominent */
.va-book-inline {
  background: var(--surface) !important;
  border: 1.5px solid #c7d2e3 !important;
  box-shadow: 0 24px 60px -30px rgba(15,30,80,.22);
  padding: 22px !important;
  gap: 16px !important;
}
.va-book-price-value {
  font-size: 38px !important;
}
.va-cta {
  padding: 15px 26px !important;
  font-size: 15px !important;
  background: linear-gradient(180deg, var(--blue), #1f59d8) !important;
  box-shadow: 0 14px 26px -10px rgba(36,107,254,.5) !important;
}
.va-cta:hover { background: linear-gradient(180deg, #1f59d8, #1547b8) !important; }

/* Quick slots row inside booking card */
.va-quick-slots {
  grid-column: 1 / -1;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.va-quick-slots-label {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase;
  margin-right: 6px;
  display: inline-flex; align-items: center; gap: 6px;
}
.va-quick-slots-label .va-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(15,155,115,.18);
}
.va-quick-slot {
  padding: 7px 13px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; color: var(--ink);
  cursor: pointer; font-family: inherit;
  transition: border-color .15s, color .15s, background .15s;
}
.va-quick-slot:hover { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-soft); }
.va-quick-slot-more {
  margin-left: auto; background: none; border: 0;
  color: var(--blue-dark); font-weight: 700; font-size: 13px;
  cursor: pointer; font-family: inherit;
  padding: 7px 4px;
}
.va-quick-slot-more:hover { color: var(--blue); }

/* Refund microcopy — restyled with shield + soft green */
.va-book-microcopy {
  background: rgba(15,155,115,.07);
  border: 1px solid rgba(15,155,115,.18) !important;
  border-radius: var(--radius-md);
  padding: 12px 14px !important;
  margin-top: 4px;
  font-size: 13px !important;
  color: #2d4a3e !important;
  line-height: 1.55 !important;
  align-items: flex-start !important;
  gap: 10px !important;
}
.va-book-microcopy svg {
  color: var(--green) !important;
  margin-top: 1px;
}
.va-book-microcopy b { color: var(--green); font-weight: 700; }

/* Two-col scope: Помогу с / Кому подойдёт */
.va-scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .va-scope {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.va-scope-col h3 {
  font-family: var(--font-ui);
  font-size: 15px; color: var(--ink);
  letter-spacing: -0.005em; text-transform: none;
  margin: 0 0 16px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.va-scope-col h3 .va-icn {
  width: 18px; height: 18px; border-radius: 6px;
  display: grid; place-items: center;
  color: var(--blue-dark);
  background: var(--blue-soft);
}
.va-scope-col h3 .va-icn.fit {
  color: var(--amber-dark);
  background: var(--amber-soft);
}
.va-scope-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.va-scope-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px; line-height: 1.45;
  color: var(--ink);
}
.va-scope-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--blue);
  border: 0;
}
.va-scope-col.fit .va-scope-list li::before {
  background: var(--amber);
  border: 0;
  border-radius: 50%;
  top: 8px;
  width: 9px; height: 9px;
}
.va-scope-prose {
  margin: 0;
  font-size: 15px; line-height: 1.55;
  color: var(--ink);
}



/* Work experience block (lives inside .va-content as an article) */
.va-exp-list {
  display: grid;
  gap: 0;
  margin-top: 4px;
}
.va-exp-row {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.va-exp-row:last-child { border-bottom: 0; }
.va-exp-row:first-of-type { padding-top: 14px; }
.va-exp-period {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
  white-space: nowrap;
}
.va-exp-body strong {
  display: block;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  line-height: 1.35 !important;
  margin-bottom: 3px !important;
}
.va-exp-body { min-width: 0; }
.va-exp-body span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 768px) {
  .va-exp-row { grid-template-columns: 1fr; gap: 4px; }
}

/* Sticky bottom CTA bar */
.va-sticky-bar {
  position: fixed;
  left: 50%; transform: translate(-50%, 120%);
  bottom: 18px;
  z-index: 30;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  gap: 18px;
  width: min(720px, calc(100vw - 32px));
  padding: 12px 14px 12px 14px;
  background: rgba(12,23,41,.98);
  color: var(--surface);
  border-radius: var(--radius-pill);
  box-shadow: 0 30px 60px -20px rgba(12,23,41,.6), 0 0 0 1px rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .35s;
  opacity: 0;
  pointer-events: none;
}
.va-sticky-bar img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.1);
}
.va-sticky-name {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.va-sticky-name strong {
  font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.va-sticky-name span {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: #b8c7df;
}
.va-sticky-price {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 20px; font-weight: 500;
  white-space: nowrap;
  padding: 0 4px;
}
.va-sticky-cta {
  padding: 11px 22px;
  border: 0; border-radius: var(--radius-pill);
  background: var(--blue);
  color: var(--surface);
  font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  white-space: nowrap;
  transition: background .15s;
}
.va-sticky-cta:hover { background: var(--blue-dark); }

/* Similar experts */
.va-similar {
  padding: 40px 0 80px;
}
.va-similar-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 28px;
}
.va-similar-head h2 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif; font-weight: 500;
  font-size: clamp(28px, 3vw, 36px);
  margin: 6px 0 0; letter-spacing: -0.02em;
}
.va-similar-head a {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px; color: var(--blue-dark);
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.va-similar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.va-similar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  text-decoration: none; color: inherit;
  display: grid; grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.va-similar-card:hover {
  transform: translateY(-2px);
  border-color: #c7d2e3;
  box-shadow: 0 24px 50px -28px rgba(15,30,80,.22);
}
.va-similar-card img {
  width: 88px; height: 110px;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.va-similar-card strong {
  display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.005em;
}
.va-similar-card small {
  display: block; font-size: 12px; color: var(--muted);
  margin-top: 4px; line-height: 1.4;
}
.va-similar-card .va-sim-foot {
  margin-top: 10px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: .08em;
}
.va-similar-card .va-sim-price {
  color: var(--blue-dark); font-weight: 700;
}
.va-similar-card .va-sim-rating {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.va-similar-card .va-sim-rating .va-star {
  color: var(--star);
  font-size: 22px;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .va-similar-grid { grid-template-columns: 1fr; }
}

/* Reviews — show-more */
.va-reviews-more-wrap {
  margin-top: 24px;
  display: flex; justify-content: center;
}
.va-reviews-more {
  padding: 12px 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  cursor: pointer; font-family: inherit;
  transition: border-color .15s, color .15s;
}
.va-reviews-more:hover { border-color: var(--blue); color: var(--blue-dark); }


/* ============================================================
   BECOME-EXPERT WIZARD (become-expert.html) — ".wz-*" onboarding flow
   Moved out of the page's inline <style> for a single CSS source.
   (Work-experience ".wz-exp-*" + ".mode-picker" stay in their shared sections above.)
   ============================================================ */
/* ════════════════════════════════════════════════════
   Mentor onboarding wizard (wz-* namespace)
   ════════════════════════════════════════════════════ */

.wz-main {
  padding: 2rem var(--page-pad) 9rem;
  overflow: visible;
}

.wz-breadcrumb {
  max-width: 1080px;
  margin: 0 auto 1.5rem;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Progress bar */
.wz-progress {
  max-width: 1080px;
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.wz-progress-step {
  height: 6px;
  background: var(--line);
  border-radius: 4px;
  transition: background 0.3s;
}
.wz-progress-step.is-done,
.wz-progress-step.is-current {
  background: var(--blue);
}
.wz-progress-label {
  max-width: 1080px;
  margin: 0 auto 1.6rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.wz-progress-text {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.wz-progress-text strong {
  color: var(--ink);
}

/* Layout: form + preview */
.wz-layout {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.wz-step-head {
  margin-bottom: 1.6rem;
}
.wz-step-head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.wz-step-head p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.55;
}

.wz-step { display: grid; gap: 1.5rem; }
.wz-step[hidden] { display: none; }

.wz-section {
  display: grid;
  gap: 0.85rem;
}
.wz-section-title {
  font-family: inherit;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.005em;
  text-transform: none;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.3;
}
.wz-section-title .hint-inline {
  font-size: 0.78em;
}
.wz-hint {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
.wz-hint.is-tip {
  padding: 0.7rem 0.9rem;
  background: rgba(36, 107, 254, 0.06);
  border-left: 2px solid var(--blue);
  border-radius: 6px;
  color: var(--ink);
}
.wz-hint.is-tip strong {
  color: var(--blue-dark);
}

/* Photo + LinkedIn block on step 1 */
.wz-photo {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface-soft);
  border: 1.5px dashed var(--line);
}
.wz-photo input { display: none; }
.wz-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}
.wz-photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}
.wz-photo:hover {
  border-color: var(--blue);
}
.wz-photo:hover .wz-photo-placeholder { color: var(--blue-dark); }
.wz-photo.is-invalid { border-color: #d94848; box-shadow: 0 0 0 3px rgba(217,72,72,.1); }
.wz-photo-guidance { max-width: 620px; margin-top: -4px !important; }
.wz-photo-guidance strong { color: var(--ink); }
.wz-field-error { margin: -4px 0 4px; color: #b42318; font-size: .82rem; line-height: 1.4; }

.wz-preview-tags span,
.wz-final-card-tags span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ── Expert photo cropper (shared by onboarding + dashboard) ── */
body.photo-crop-open { overflow: hidden; }
.photo-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.photo-crop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 38, 0.72);
  backdrop-filter: blur(5px);
}
.photo-crop-card {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 35px 100px rgba(8, 20, 38, 0.34);
}
.photo-crop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.photo-crop-head h2 { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.2; }
.photo-crop-head p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.photo-crop-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  font: 400 25px/1 var(--font-ui);
  cursor: pointer;
}
.photo-crop-close:hover { background: var(--blue-soft); color: var(--blue-dark); }
.photo-crop-stage {
  position: relative;
  width: min(100%, clamp(240px, calc((100vh - 320px) * 0.8), 400px));
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  background: #eef3fb;
  box-shadow: 0 0 0 1px var(--line);
}
.photo-crop-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.photo-crop-stage canvas.is-dragging { cursor: grabbing; }
.photo-crop-grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 33.15%, rgba(255,255,255,.55) 33.15%, rgba(255,255,255,.55) 33.5%, transparent 33.5%, transparent 66.5%, rgba(255,255,255,.55) 66.5%, rgba(255,255,255,.55) 66.85%, transparent 66.85%),
    linear-gradient(transparent 33.15%, rgba(255,255,255,.55) 33.15%, rgba(255,255,255,.55) 33.5%, transparent 33.5%, transparent 66.5%, rgba(255,255,255,.55) 66.5%, rgba(255,255,255,.55) 66.85%, transparent 66.85%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.86);
}
.photo-crop-zoom {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 18px 4px 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.photo-crop-zoom input { width: 100%; accent-color: var(--blue); cursor: pointer; }
.photo-crop-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.photo-crop-note svg {
  flex: 0 0 auto;
  margin-top: 0.08rem;
  color: var(--blue);
}
.photo-crop-note strong { color: var(--ink); }
.photo-crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.photo-crop-actions button { padding: 0.75rem 1.05rem; }
@media (max-width: 560px) {
  .photo-crop-modal { padding: 0; align-items: end; }
  .photo-crop-card { max-height: 94vh; border-radius: 22px 22px 0 0; padding: 18px; }
  .photo-crop-stage { width: min(100%, 330px); }
  .photo-crop-actions { display: grid; grid-template-columns: 1fr 1fr; }
}


/* Mode picker styles are shared — see .mode-picker in styles.css */

/* Schedule mini builder */
.wz-schedule-block {
  padding: 1rem 1.1rem;
  background: var(--surface-soft);
  border-radius: 14px;
  display: grid;
  gap: 0.85rem;
}
.wz-schedule-block[hidden] { display: none; }

/* Duration + price rows (compact, similar to dashboard) */

/* Work experience styles are shared with dashboard, see styles.css */

/* Private tag inside a field label */
.wz-private-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 0.5em;
  padding: 2px 7px;
  background: rgba(255, 159, 28, 0.12);
  color: #a86600;
  border-radius: var(--radius-pill);
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 9.5px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.wz-private-tag svg { flex-shrink: 0; }

/* Bigger, more prominent chips inside wizard */
.wz-main .category-picker,
.wz-main .language-picker {
  gap: 8px;
}
.wz-main .category-picker button,
.wz-main .language-picker button {
  padding: 0.7rem 1.05rem;
  font-size: 14px;
}

/* Languages: active chips show × on hover (like dashboard) */
.wz-main .language-picker button.active {
  padding-right: 0.85rem;
}
.wz-main .language-picker button.active::after {
  content: "×";
  margin-left: 0.55em;
  font-weight: 600;
  font-size: 1.15em;
  line-height: 0.8;
  opacity: 0.55;
  display: inline-block;
  transform: translateY(0.05em);
  transition: opacity 0.15s;
}
.wz-main .language-picker button.active:hover {
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.35);
}
.wz-main .language-picker button.active:hover::after { opacity: 1; }

/* Preview card */
.wz-preview {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 0.8rem;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 25px 60px -40px rgba(15, 30, 80, 0.25);
}
.wz-preview-eyebrow {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.wz-preview-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #f0f4fb 0%, #e1e9f5 100%);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}
.wz-preview-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.wz-preview-photo-empty {
  color: var(--mono-muted);
  font-size: 0.8rem;
}
.wz-preview-rating {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-pill);
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.wz-preview-name {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  min-height: 1.3em;
}
.wz-preview-name.is-empty { color: var(--mono-muted); font-style: italic; font-weight: 500; }
.wz-preview-role {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  min-height: 1.2em;
}
.wz-preview-tags {
  display: flex; flex-wrap: wrap; gap: 5px;
}
.wz-preview-tags span {
  padding: 3px 8px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}
.wz-preview-price {
  margin-top: 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-dark);
}

/* Nav buttons */
.wz-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  z-index: 25;
}
.wz-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.95rem var(--page-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.wz-nav-back, .wz-nav-next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.wz-nav-back {
  background: transparent;
  color: var(--muted);
  padding-left: 0.5rem;
}
.wz-nav-back:hover { color: var(--ink); }
.wz-nav-back:disabled { opacity: 0.3; cursor: not-allowed; }
.wz-nav-next {
  background: var(--ink);
  color: var(--surface);
}
.wz-nav-next:hover { background: #1a2942; transform: translateY(-1px); }

.wz-consent {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.wz-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
}
.wz-consent-check input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: var(--blue);
}

/* Final step: big card preview + checklist */
.wz-final-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 2rem;
  align-items: start;
}
.wz-final-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(15, 30, 80, 0.25);
  transition: transform 0.3s;
}
.wz-final-card:hover { transform: translateY(-3px); }
.wz-final-card-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #f0f4fb 0%, #e1e9f5 100%);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.wz-final-card-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.wz-final-photo-empty {
  color: var(--mono-muted);
  font-size: 0.9rem;
}
.wz-final-card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: grid;
  gap: 0.5rem;
}
.wz-final-badge {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.wz-final-badge span { color: var(--star); }
.wz-final-card-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}
.wz-final-card-role {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}
.wz-final-card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 0.3rem;
}
.wz-final-card-tags span {
  padding: 4px 10px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}
.wz-final-card-price {
  margin-top: 0.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.wz-final-side { display: grid; gap: 1.5rem; padding-top: 0.25rem; }
.wz-final-side-title {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.wz-checklist {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 0.5rem;
}
.wz-checklist li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}
.wz-check-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.wz-checklist li:not(.is-done) {
  color: var(--mono-muted);
}
/* Заполненный пункт — зелёная точка с галочкой */
.wz-checklist li.is-done .wz-check-dot {
  background: var(--green);
}
.wz-checklist li.is-done .wz-check-dot::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

.wz-final-promise {
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  border-radius: 14px;
  display: grid;
  gap: 0.6rem;
}
.wz-final-promise-row {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.4;
}
.wz-final-promise-row svg { color: var(--green); flex-shrink: 0; }

/* Hide right preview sidebar on final step */
.wz-layout:has(#wz-step-5:not([hidden])) .wz-preview {
  display: none;
}
.wz-layout:has(#wz-step-5:not([hidden])) {
  grid-template-columns: 1fr;
}

.wz-success {
  max-width: 860px;
  margin: 2.5rem auto 0;
  text-align: left;
  display: grid;
  gap: 2rem;
}
.wz-success[hidden] { display: none; }
.wz-success-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
}
.wz-success-icon {
  width: 72px; height: 72px;
  margin: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, #0c8562 100%);
  color: var(--surface);
  font-size: 1.9rem;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px -10px rgba(15, 155, 115, 0.5);
}
.wz-success h2 {
  margin: 0.15rem 0 0.35rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}
.wz-success p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.wz-success-eyebrow {
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wz-setup-list {
  display: grid;
  gap: 0.8rem;
}
.wz-setup-item {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}
.wz-setup-number {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
}
.wz-setup-copy {
  display: grid;
  gap: 0.35rem;
}
.wz-setup-copy h3 {
  font-size: 1rem;
  line-height: 1.3;
}
.wz-setup-copy > p {
  font-size: 0.88rem;
}
.wz-setup-item > button {
  align-self: center;
  white-space: nowrap;
}
.wz-setup-state {
  align-self: center;
  padding: 0.38rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 155, 115, 0.1);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
}
.wz-setup-item.is-ready .wz-setup-number {
  background: var(--green);
  color: var(--surface);
}
.wz-tax-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  margin-top: 0.35rem;
}
.wz-tax-status label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.86rem;
}
.wz-tax-status input {
  flex: none;
  width: 1rem;
  height: 1rem;
  accent-color: var(--blue);
}
.wz-tax-inn {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.45rem;
}
.wz-tax-inn > span:first-child {
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 600;
}
.wz-tax-inn input {
  max-width: 320px;
}
.wz-setup-feedback {
  color: var(--green) !important;
  font-size: 0.82rem;
}
.wz-setup-feedback.is-error,
#wz-telegram-status.is-error {
  color: #b42318 !important;
}
.wz-success-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}
.wz-success-actions > span {
  color: var(--muted);
  font-size: 0.83rem;
}

/* Responsive */
@media (max-width: 880px) {
  .wz-layout {
    grid-template-columns: 1fr;
  }
  .wz-preview {
    position: static;
  }
}
@media (max-width: 768px) {
  .wz-progress { grid-template-columns: repeat(6, 1fr); }
  .wz-final-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .wz-success-head { grid-template-columns: 1fr; }
  .wz-setup-item { grid-template-columns: 2rem minmax(0, 1fr); }
  .wz-setup-item > button,
  .wz-setup-item > .wz-setup-state { grid-column: 2; justify-self: start; }
  .wz-success-actions { align-items: stretch; flex-direction: column; }
  .wz-success-actions .bk-cta-link { text-align: center; }
}
/* Expert public page settings */
.ed-slug-field {
  display: flex;
  align-items: stretch;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.ed-slug-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,107,254,.1); }
.ed-slug-prefix {
  display: flex;
  align-items: center;
  padding: 0 0 0 13px;
  color: var(--muted);
  white-space: nowrap;
  font-size: 14px;
}
.ed-slug-field input {
  min-width: 100px;
  padding-left: 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px !important;
}
.ed-copy-url {
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0 14px;
  color: var(--blue);
  background: #f7f9ff;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s;
}
.ed-copy-url:hover { background: var(--blue-soft); }
.ed-switch { display: flex !important; flex-direction: row !important; align-items: center; gap: 9px; cursor: pointer; white-space: nowrap; }
.ed-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ed-switch > span { position: relative; width: 42px; height: 24px; border-radius: 99px; background: #b8c1ce; transition: background .2s; }
.ed-switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(16,32,51,.25); transition: transform .2s; }
.ed-switch input:checked + span { background: var(--green); }
.ed-switch input:checked + span::after { transform: translateX(18px); }
.ed-switch input:disabled + span { opacity: 0.52; }
.ed-switch input:focus-visible + span { outline: 3px solid rgba(36,107,254,.22); outline-offset: 2px; }
.ed-switch em { color: var(--ink); font-style: normal; font-size: 13px; font-weight: 600; }
.ed-hidden-warning { margin-top: 16px; padding: 11px 13px; border: 1px solid #f0cf9d; border-radius: 9px; background: #fff8ed; color: #845711; font-size: 13px; line-height: 1.45; }

.va-hidden-notice { margin: 0 auto 20px; max-width: 1120px; padding: 12px 16px; border: 1px solid #f0cf9d; border-radius: 10px; background: #fff8ed; color: #754c0d; font-size: 14px; }

@media (max-width: 640px) {
  .ed-slug-field { flex-wrap: wrap; }
  .ed-slug-prefix { padding-top: 11px; padding-bottom: 2px; width: 100%; }
  .ed-slug-field input { flex: 1; }
  .ed-copy-url { min-height: 42px; }
  .ed-header-meta { justify-content: flex-start; }
  .ed-identity-visibility { width: 100%; margin-left: 0; justify-content: space-between; }
}
