/* ═══════════════════════════════════════════════════════════════════
   ДИЗАЙН-СИСТЕМА: компоненты chat-home + sidebar shell.
   Подключается ТОЛЬКО шаблонами на базе templates/shells/chat_shell.html.
   Не загружается на legacy-страницах — никаких глобальных переопределений.

   Зависит от:  tokens.css  (CSS-переменные палитры/радиусов/типографики)
   Соседствует: chat.css    (мессенджер, /messenger/*) — после Фазы 4 будет
                            переписан под общие токены отсюда.

   Структура:
     1. Reset и базовая раскладка
     2. Shell (sidebar + main, mobile drawer)
     3. Bubbles (терапевт / user / system / pending)
     4. Avatar, BrandMark, StatusPill
     5. Chip, GlyphTile, CtaCard
     6. Composer
     7. Navigation (NavItem, BottomBar)
     8. Utilities
═══════════════════════════════════════════════════════════════════ */

/* ─── 1. Reset и базовая раскладка ────────────────────────────── */
.ds-shell,
.ds-shell *,
.ds-shell *::before,
.ds-shell *::after {
  box-sizing: border-box;
}

.ds-shell {
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg-shell);
  min-height: 100vh;
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

:where(.ds-shell) button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}

:where(.ds-shell) a {
  color: var(--c-brand);
  text-decoration: none;
  transition: color var(--t-fast);
}

:where(.ds-shell) a:hover {
  color: var(--c-brand-hover);
}

/* ─── 2. Shell layout ─────────────────────────────────────────── */
.ds-layout {
  display: flex;
  min-height: 100vh;
  background: var(--c-surface);
}

.ds-layout__sidebar {
  width: var(--w-sidebar);
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.ds-layout__main {
  flex: 1;
  background: var(--c-bg-chat);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ds-layout__content {
  flex: 1;
  padding: 32px 24px;
}

/* ── Chat-home top bar (только «shilko.ru» справа) ────────────── */
.ds-chat-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 48px;
  padding: 0 28px;
  border-bottom: 1px solid var(--c-border-soft);
  background: var(--c-bg-chat);
}
.ds-chat-topbar__host { font-size: 12px; color: var(--c-text-muted, #8a8693); }
@media (max-width: 1023px) { .ds-chat-topbar { display: none; } }

/* ── Хлебные крошки (плашка над контентом) ────────────────────── */
.ds-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-bottom: 1px solid var(--c-border-soft);
  background: var(--c-bg-chat);
  font-size: 13px;
  color: var(--c-text-secondary);
}
.ds-breadcrumbs__item {
  color: var(--c-text-secondary);
  text-decoration: none;
}
.ds-breadcrumbs__item:hover { color: var(--c-brand); }
.ds-breadcrumbs__item--current { color: var(--c-text); font-weight: var(--fw-medium); }
.ds-breadcrumbs__sep { color: var(--c-text-muted, #8a8693); }
.ds-breadcrumbs__host { margin-left: auto; font-size: 12px; color: var(--c-text-muted, #8a8693); }
@media (max-width: 1023px) {
  .ds-breadcrumbs { display: none; }
}

.ds-layout__content--centered > * {
  max-width: var(--w-content-max);
  margin-left: auto;
  margin-right: auto;
}

.ds-layout__content--chat > * {
  max-width: var(--w-content-chat);
}

/* CTA-кнопки в контенте — никаких transform/scale на hover, только цвет фона. */
.ds-btn:hover,
.ds-btn:focus-visible {
  transform: none;
}
.ds-btn--primary,
.ds-btn--secondary,
.ds-btn--sm {
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

/* Mobile shell — нет sidebar по умолчанию, есть drawer */
@media (max-width: 1023px) {
  .ds-layout__sidebar {
    display: none;
  }
}

/* ─── 2a. Mobile header (бургер + brand + войти) ─────────────── */
.ds-mobile-header {
  display: none;
  height: var(--h-mobile-header);
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  background: rgba(253, 252, 253, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border-soft);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

@media (max-width: 1023px) {
  .ds-mobile-header { display: flex; }
}

.ds-mobile-header__burger {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  border-radius: var(--r-md);
}

.ds-mobile-header__login {
  color: var(--c-brand-hover);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  padding: 6px 8px;
}

/* ─── 2b. Drawer (mobile offcanvas слева) ──────────────────── */
.ds-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45, 42, 50, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
  z-index: var(--z-overlay);
}

.ds-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--c-surface);
  transform: translateX(-100%);
  transition: transform var(--t-base);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
}

.ds-drawer[data-open="true"] {
  transform: translateX(0);
}

.ds-drawer-overlay[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

/* ─── 3. Bubbles ──────────────────────────────────────────────── */
.ds-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.ds-bubble-row--user {
  justify-content: flex-end;
}

.ds-bubble-row--system {
  justify-content: center;
  margin: 10px 0;
}

.ds-bubble-row--compact {
  margin-bottom: 6px;
}

.ds-bubble {
  border-radius: var(--r-2xl) var(--r-2xl) var(--r-2xl) var(--r-sm);
  padding: 12px 16px;
  max-width: 78%;
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--c-text);
  word-wrap: break-word;
}

.ds-bubble--therapist {
  background: var(--c-surface);
  border: 1px solid var(--c-border-brand);
  box-shadow: var(--shadow-sm);
}

.ds-bubble--user {
  background: var(--c-brand-bubble);
  border: 1px solid transparent;
  border-radius: var(--r-2xl) var(--r-2xl) var(--r-sm) var(--r-2xl);
}

.ds-bubble--pending {
  border: 1px dashed var(--c-brand-pending);
  opacity: 0.65;
}

.ds-bubble--system {
  color: var(--c-text-secondary);
  font-size: var(--fs-sm);
  font-style: italic;
  text-align: center;
  max-width: 85%;
  padding: 6px 12px;
  background: var(--c-surface-muted);
  border-radius: var(--r-pill);
}

.ds-bubble--compact {
  padding: 10px 14px;
}

.ds-bubble__time {
  color: var(--c-text-muted);
  font-size: 11px;
  margin-top: 4px;
  text-align: right;
}

.ds-bubble__action {
  margin-top: 10px;
}

/* ─── 4. Avatar, BrandMark, StatusPill ────────────────────────── */
.ds-avatar {
  flex-shrink: 0;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-medium);
  width: 40px;
  height: 40px;
  font-size: 16px;
  background: linear-gradient(135deg, #ebe3f3 0%, #d6c9e7 100%);
  color: var(--c-brand-active);
  letter-spacing: -0.02em;
  overflow: hidden;
  line-height: 1;
}

.ds-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ds-avatar--sm  { width: 32px; height: 32px; font-size: 13px; }
.ds-avatar--md  { width: 40px; height: 40px; font-size: 16px; }
.ds-avatar--lg  { width: 44px; height: 44px; font-size: 18px; }
.ds-avatar--xl  { width: 64px; height: 64px; font-size: 26px; }

.ds-avatar-slot {
  width: 40px;
  flex-shrink: 0;
}

/* Brand mark — реальный логотип + текст */
.ds-brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ds-brand-mark__logo {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  object-fit: contain;
  flex-shrink: 0;
}

.ds-brand-mark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.ds-brand-mark__name {
  color: var(--c-text);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
}

.ds-brand-mark__role {
  color: var(--c-text-muted);
  font-size: 11.5px;
  margin-top: 1px;
}

/* Status pill — "Никита онлайн / Отвечу за ~2 часа" */
.ds-status-pill {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--c-bg-chat);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}

.ds-status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--c-online);
  box-shadow: 0 0 0 3px var(--c-online-ring);
  margin-top: 6px;
  flex-shrink: 0;
}

.ds-status-pill__title {
  color: var(--c-text);
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.ds-status-pill__sub {
  color: var(--c-text-secondary);
  font-size: 12px;
  margin-top: 1px;
}

/* ─── 5. Chip, GlyphTile, CtaCard ─────────────────────────────── */
.ds-chip {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  transition: all var(--t-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ds-chip:hover {
  border-color: var(--c-brand-accent);
  background: var(--c-brand-softer);
}

.ds-chip--active,
.ds-chip[aria-selected="true"] {
  border-color: var(--c-brand-accent);
  background: var(--c-brand-softer);
  color: var(--c-brand-active);
  font-weight: var(--fw-medium);
}

.ds-chip--square { border-radius: var(--r-md); }

.ds-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 24px;
}

.ds-chip-row--start { justify-content: flex-start; }

/* ── Услуги: список и detail ───────────────────────────────────── */
.ds-page-intro { margin-bottom: 28px; }
.ds-page-intro__title {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: var(--fw-medium);
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.ds-page-intro__sub {
  margin: 0;
  font-size: 15px;
  color: var(--c-text-secondary);
  line-height: 1.55;
  max-width: 580px;
}

.ds-service-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-service-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(45, 42, 50, 0.03);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.ds-service-row:hover {
  border-color: var(--c-brand-accent, #9579bf);
  box-shadow: 0 4px 16px rgba(112, 81, 174, 0.10);
}
.ds-service-row__mark { flex-shrink: 0; }
.ds-service-row__body { flex: 1; min-width: 0; }
.ds-service-row__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.ds-service-row__title {
  font-size: 16.5px;
  font-weight: var(--fw-medium);
  color: var(--c-text);
}
.ds-service-row__pill {
  font-size: 12px;
  color: var(--c-text-muted);
  padding: 2px 8px;
  background: #f3f1f5;
  border-radius: 999px;
}
.ds-service-row__desc {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--c-text-secondary);
  line-height: 1.45;
}
.ds-service-row__meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--c-brand-active, #5d4293);
  font-weight: var(--fw-medium);
}
.ds-service-row__sep { color: #d6c9e7; }
.ds-service-row__arrow {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--c-brand-accent, #9579bf);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-service-hint {
  margin-top: 22px;
  padding: 18px 22px;
  background: var(--c-brand-softer);
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--c-brand-active);
  line-height: 1.5;
}
.ds-service-hint__icon { color: var(--c-brand); flex-shrink: 0; display: inline-flex; }
.ds-service-hint__link {
  color: var(--c-brand);
  font-weight: var(--fw-medium);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Service detail ───────────────────────────────────────────── */
.ds-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-brand-active);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 24px;
}
.ds-back-pill:hover { background: var(--c-brand-softer); }

.ds-service-detail {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.ds-service-detail__mark {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: 22px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ds-service-detail__pill {
  display: inline-block;
  padding: 4px 10px;
  background: var(--c-brand-soft, #ebe3f3);
  color: var(--c-brand-active);
  font-size: 12px;
  font-weight: var(--fw-medium);
  border-radius: 999px;
  margin-bottom: 10px;
}
.ds-service-detail__title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: var(--fw-medium);
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.ds-service-detail__desc {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-secondary);
}
.ds-service-detail__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ds-service-metrics {
  display: flex;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--c-border-soft);
  border-bottom: 1px solid var(--c-border-soft);
  margin-bottom: 22px;
}
.ds-service-metrics__sep {
  width: 1px;
  background: var(--c-border-soft);
}
.ds-service-metrics__label {
  font-size: 11.5px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.ds-service-metrics__value {
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--c-text);
}

.ds-service-stages { margin-top: 36px; }
.ds-service-stages__title {
  font-size: 13px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  font-weight: var(--fw-medium);
}
.ds-service-stages__timeline {
  position: relative;
  padding-left: 26px;
}
.ds-service-stages__timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: linear-gradient(180deg, #d6c9e7 0%, #ebe3f3 100%);
}
.ds-service-stages__step {
  position: relative;
  margin-bottom: 18px;
}
.ds-service-stages__num {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--c-surface);
  border: 1.5px solid var(--c-brand-accent, #9579bf);
  color: var(--c-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 600;
}
.ds-service-stages__step-title {
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--c-text);
  margin-bottom: 4px;
}
.ds-service-stages__step-body {
  margin: 0;
  font-size: 14px;
  color: var(--c-text-secondary);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .ds-service-detail { grid-template-columns: 1fr; }
  .ds-service-detail__mark { padding: 22px; }
  .ds-service-row { flex-wrap: wrap; }
  .ds-service-row__arrow { display: none; }
  .ds-service-metrics { flex-wrap: wrap; gap: 18px; }
  .ds-service-metrics__sep { display: none; }
}

/* ── Контакты: 2-колоночная сетка (desktop) ──────────────────── */
.ds-contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.ds-contacts-grid__left { display: flex; flex-direction: column; gap: 12px; }
.ds-contacts-grid__right { position: sticky; top: 24px; }
.ds-contacts-row {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.ds-contacts-row__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--c-brand-softer);
  color: var(--c-brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ds-contacts-row__label { font-size: 12.5px; color: var(--c-text-muted); margin-bottom: 2px; }
.ds-contacts-row__value { font-size: 16px; font-weight: var(--fw-medium); color: var(--c-text); }
.ds-contacts-subhead { font-size: var(--fs-lg); font-weight: var(--fw-medium); color: var(--c-text); margin: 16px 0 8px; }
.ds-contacts-messengers { display: flex; flex-direction: column; gap: 10px; }
.ds-contacts-meta-notice { margin-top: 10px; font-size: 11.5px; color: var(--c-text-muted); line-height: 1.5; }

.ds-contacts-coop {
  margin-top: 18px;
  padding: 18px 22px;
  background: var(--c-brand-softer);
  border-radius: var(--r-xl);
}
.ds-contacts-coop__title { font-size: 15px; font-weight: var(--fw-medium); color: var(--c-text); margin-bottom: 4px; }
.ds-contacts-coop__sub { font-size: 13.5px; color: var(--c-text-secondary); margin-bottom: 12px; }

.ds-contacts-place {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-xl);
  padding: 22px;
}
.ds-contacts-place__title {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--fw-medium);
}
.ds-contacts-place__cover {
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-brand-softer), var(--c-brand-soft));
  margin-bottom: 8px;
}
.ds-contacts-place__cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ds-contacts-place__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.ds-contacts-place__thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-brand-softer), var(--c-brand-soft));
}
.ds-contacts-place__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ds-contacts-place__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .ds-contacts-grid { grid-template-columns: 1fr; }
  .ds-contacts-grid__right { position: static; }
}

/* ── Wizard: полная замена chat-stream опросной панелью ──────── */
.ds-wizard {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border-radius: var(--r-2xl);
  border: 1px solid var(--c-border-soft);
  overflow: hidden;
  margin: 0 auto;
  max-width: var(--w-content-chat);
  min-height: 560px;
}
.ds-wizard__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--c-border-soft);
}
.ds-wizard__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: transparent;
  color: var(--c-text-secondary);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
}
.ds-wizard__back:hover { background: var(--c-brand-softer); color: var(--c-brand); }
.ds-wizard__title { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: center; }
.ds-wizard__name { font-size: 13px; color: var(--c-text); font-weight: var(--fw-medium); }
.ds-wizard__progress { display: flex; gap: 4px; }
.ds-wizard__step {
  width: 32px; height: 4px; border-radius: 2px;
  background: var(--c-border);
}
.ds-wizard__step--done { background: var(--c-brand); }
.ds-wizard__step--current { background: var(--c-brand-accent, #d6c9e7); }
.ds-wizard__count { font-size: 12px; color: var(--c-text-muted); white-space: nowrap; }

.ds-wizard__body {
  padding: 28px 28px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ds-wizard__system {
  align-self: center;
  font-size: 12px;
  color: var(--c-text-secondary);
  font-style: italic;
  padding: 5px 14px;
  background: var(--c-brand-softer);
  border-radius: 999px;
  margin-bottom: 18px;
}
.ds-wizard__question {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: var(--fw-medium);
  color: var(--c-text);
  text-align: center;
  letter-spacing: -0.01em;
}
.ds-wizard__hint {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--c-text-secondary);
  text-align: center;
}

.ds-wizard__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 0 auto 22px;
  max-width: 640px;
}
.ds-wizard__list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.ds-wizard__list--column { flex-direction: column; align-items: stretch; max-width: 560px; margin-left: auto; margin-right: auto; }

.ds-wizard-tile { cursor: pointer; }
.ds-wizard-tile input { position: absolute; opacity: 0; pointer-events: none; }
.ds-wizard-tile__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-secondary);
  font-size: 12px;
  transition: all var(--t-fast);
}
.ds-wizard-tile:hover .ds-wizard-tile__inner {
  border-color: var(--c-brand-accent);
  background: var(--c-brand-softer);
}
.ds-wizard-tile input:checked + .ds-wizard-tile__inner {
  border-color: var(--c-brand);
  background: var(--c-brand-softer);
  color: var(--c-brand-active);
  box-shadow: 0 0 0 2px rgba(112,81,174,0.12);
}
.ds-wizard-tile__label { font-weight: var(--fw-medium); }

.ds-wizard-pill { cursor: pointer; }
.ds-wizard-pill input { position: absolute; opacity: 0; pointer-events: none; }
.ds-wizard-pill__inner {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text);
  font-size: 14px;
  transition: all var(--t-fast);
}
.ds-wizard-pill--block .ds-wizard-pill__inner {
  display: flex;
  border-radius: var(--r-lg);
  text-align: left;
  white-space: normal;
}
.ds-wizard-pill:hover .ds-wizard-pill__inner {
  border-color: var(--c-brand-accent);
  background: var(--c-brand-softer);
}
.ds-wizard-pill input:checked + .ds-wizard-pill__inner {
  border-color: var(--c-brand);
  background: var(--c-brand-softer);
  color: var(--c-brand-active);
  box-shadow: 0 0 0 2px rgba(112,81,174,0.12);
}

.ds-wizard__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 22px;
  margin-top: auto;
  border-top: 1px solid var(--c-border-soft);
  margin-left: -28px;
  margin-right: -28px;
  padding-left: 28px;
  padding-right: 28px;
}
.ds-wizard__skip {
  background: transparent;
  border: none;
  color: var(--c-text-muted);
  font-size: 14px;
  padding: 10px 16px;
  cursor: pointer;
}
.ds-wizard__skip:hover { color: var(--c-brand); }
.ds-wizard__next { padding: 12px 28px; }

@media (max-width: 720px) {
  .ds-wizard { min-height: 0; }
  .ds-wizard__grid { grid-template-columns: repeat(3, 1fr); }
  .ds-wizard__header { padding: 12px 14px; }
  .ds-wizard__body { padding: 20px 16px 0; }
  .ds-wizard__footer { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
}

/* ── Опросная плашка с прогрессом и «Пропустить» ──────────────── */
.ds-survey-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  margin: 0 auto 14px;
  max-width: 560px;
  background: var(--c-brand-softer, #f5f1fa);
  border: 1px solid var(--c-brand-accent, #d6c9e7);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--c-text-secondary, #6e6b74);
}
.ds-survey-bar__label { font-weight: var(--fw-medium); color: var(--c-brand, #5d4293); white-space: nowrap; }
.ds-survey-bar__progress { display: flex; gap: 3px; flex: 1; }
.ds-survey-bar__step { flex: 1; height: 3px; border-radius: 2px; background: #eae6f0; }
.ds-survey-bar__step--done { background: var(--c-brand, #7051ae); }
.ds-survey-bar__step--current { background: var(--c-brand-accent, #d6c9e7); }
.ds-survey-bar__skip {
  background: transparent;
  border: none;
  color: var(--c-text-muted, #8a8693);
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 6px;
  text-decoration: none;
  white-space: nowrap;
}
.ds-survey-bar__skip:hover { color: var(--c-brand, #5d4293); }

/* Glyph-tile — для генератора эмоций */
.ds-glyph-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-secondary);
  font-size: 12px;
  transition: all var(--t-fast);
  cursor: pointer;
}

.ds-glyph-tile:hover {
  border-color: var(--c-brand-accent);
  background: var(--c-brand-softer);
}

.ds-glyph-tile[aria-pressed="true"] {
  border-color: var(--c-brand-accent);
  background: var(--c-brand-softer);
  color: var(--c-brand-active);
}

.ds-glyph-tile__icon {
  width: 26px;
  height: 26px;
  color: var(--c-brand);
}

.ds-glyph-tile__emoji-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ds-glyph-tile__emoji {
  width: 40px;
  height: 40px;
  display: block;
  pointer-events: none;
}

.ds-glyph-tile__emoji--native {
  font-size: 34px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
               "Noto Color Emoji", "Twemoji Mozilla", system-ui, sans-serif;
}

.ds-glyph-tile--square { border-radius: var(--r-lg); }

.ds-glyph-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 20px 0 28px;
}

@media (max-width: 640px) {
  .ds-glyph-grid { grid-template-columns: repeat(3, 1fr); }
}

/* CTA-card — карточка-приглашение */
.ds-cta-card {
  border-radius: var(--r-2xl);
  background: var(--c-surface);
  border: 1px solid var(--c-border-brand);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  max-width: 420px;
  margin: 12px auto;
}

.ds-cta-card__stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--c-brand-decor) 0%, var(--c-brand-accent) 50%, var(--c-brand) 100%);
}

.ds-cta-card__body {
  padding: 18px 20px;
  text-align: center;
}

.ds-cta-card__title {
  color: var(--c-text);
  font-weight: var(--fw-medium);
  font-size: var(--fs-md);
  margin: 0 0 4px;
}

.ds-cta-card__sub {
  color: var(--c-text-secondary);
  font-size: 13px;
  margin: 0 0 14px;
}

/* ─── 6. Composer ──────────────────────────────────────────────── */
.ds-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px;
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.ds-composer:focus-within {
  border-color: var(--c-brand-pending);
  box-shadow: var(--shadow-focus);
}

.ds-composer__input {
  flex: 1;
  padding: 9px 10px;
  color: var(--c-text);
  font-size: var(--fs-base);
  min-height: 22px;
  max-height: 160px;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  background: transparent;
  line-height: var(--lh-normal);
}

.ds-composer__input::placeholder {
  color: var(--c-text-muted);
}

.ds-composer__send {
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  background: var(--c-brand-soft);
  color: var(--c-brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}

.ds-composer__send--active,
.ds-composer:focus-within .ds-composer__send {
  background: var(--c-brand);
  color: var(--c-text-on-brand);
}

.ds-composer__hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--c-text-muted);
  text-align: center;
}

/* ─── 7. Navigation ────────────────────────────────────────────── */
.ds-nav {
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.ds-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  background: transparent;
  color: var(--c-text);
  text-decoration: none;
  transition: background var(--t-fast);
  width: 100%;
}

.ds-nav-item:hover {
  background: var(--c-brand-ghost);
  color: var(--c-text);
}

.ds-nav-item[aria-current="page"],
.ds-nav-item--active {
  background: var(--c-brand-soft);
  color: var(--c-brand-active);
}

.ds-nav-item__icon {
  width: 18px;
  height: 18px;
  color: var(--c-text-secondary);
  flex-shrink: 0;
}

.ds-nav-item[aria-current="page"] .ds-nav-item__icon,
.ds-nav-item--active .ds-nav-item__icon {
  color: var(--c-brand);
}

.ds-nav-item__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.ds-nav-item__label {
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
}

.ds-nav-item[aria-current="page"] .ds-nav-item__label,
.ds-nav-item--active .ds-nav-item__label {
  font-weight: var(--fw-medium);
}

.ds-nav-item__hint {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-top: 1px;
}

.ds-nav-item__indicator {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--c-brand);
  flex-shrink: 0;
}

/* Sidebar header / footer */
.ds-sidebar-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--c-border-soft);
}

.ds-sidebar-footer {
  padding: 14px;
  border-top: 1px solid var(--c-border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── 7b. Bottom-bar (sticky на контентных страницах) ─────────── */
.ds-bottom-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(253, 252, 253, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--c-border-soft);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  gap: 8px;
  z-index: var(--z-sticky);
}

.ds-bottom-bar > * { flex: 1; }
.ds-bottom-bar > .ds-btn--icon { flex: 0 0 auto; }

/* На desktop bottom-bar не нужен — sidebar содержит CTA «Записаться» и «Войти». */
@media (min-width: 1024px) {
  .ds-bottom-bar { display: none; }
}

/* ─── 8. Buttons ───────────────────────────────────────────────── */
.ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.ds-btn--primary {
  background: var(--c-brand);
  color: var(--c-text-on-brand);
}

.ds-btn--primary:hover {
  background: var(--c-brand-hover);
  color: var(--c-text-on-brand);
}

.ds-btn--secondary {
  background: transparent;
  color: var(--c-brand-hover);
  border-color: #d6c9e7;
}

.ds-btn--secondary:hover {
  background: var(--c-brand-ghost);
  color: var(--c-brand-active);
}

.ds-btn--ghost {
  background: transparent;
  color: var(--c-text-secondary);
}

.ds-btn--ghost:hover {
  background: var(--c-brand-ghost);
  color: var(--c-text);
}

.ds-btn--sm {
  padding: 8px 14px;
  font-size: 13.5px;
}

.ds-btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--r-pill);
}

.ds-btn__icon {
  width: 14px;
  height: 14px;
}

/* ─── 9. Utilities ─────────────────────────────────────────────── */
.ds-icon {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ds-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ds-divider {
  height: 1px;
  background: var(--c-border-soft);
  margin: 16px 0;
  border: none;
}

/* Анимация многоточия typing-индикатора */
@keyframes ds-tdot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

.ds-typing {
  display: inline-flex;
  gap: 4px;
}

.ds-typing__dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--c-brand-pending);
  animation: ds-tdot 1.2s ease-in-out infinite;
}

.ds-typing__dot:nth-child(2) { animation-delay: 0.15s; }
.ds-typing__dot:nth-child(3) { animation-delay: 0.30s; }

/* ─── 10. Контентные страницы ─────────────────────────────────── */

.ds-page-hero {
  border-radius: var(--r-2xl);
  background: linear-gradient(135deg, var(--c-brand-softer) 0%, var(--c-brand-soft) 100%);
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}

.ds-section-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-medium);
  color: var(--c-text);
  margin: 32px 0 16px;
  padding: 0 4px;
}

.ds-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--r-pill);
  background: var(--c-brand-soft);
  color: var(--c-brand-active);
  font-size: 13.5px;
  font-weight: var(--fw-medium);
  text-decoration: none;
  margin-bottom: 20px;
  transition: background var(--t-fast);
}

.ds-back-link:hover {
  background: var(--c-brand-softer);
  color: var(--c-brand-active);
}

.ds-service-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 28px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-xl);
  margin-bottom: 28px;
}

.ds-service-metrics__label {
  font-size: 11.5px;
  color: var(--c-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ds-service-metrics__value {
  font-size: 17px;
  font-weight: var(--fw-medium);
  color: var(--c-text);
}

@media (max-width: 640px) {
  .ds-service-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 20px;
  }
}

.ds-process-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-xl);
  padding: 8px 24px;
}

.ds-btn-oauth {
  flex: 1;
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: var(--fw-medium);
  text-decoration: none;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.ds-btn-oauth:hover {
  background: var(--c-brand-softer, #f5f1fa);
  border-color: var(--c-brand-accent, #d6c9e7);
  color: var(--c-text);
}

.ds-btn-oauth__logo {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.ds-btn-oauth--yandex .ds-btn-oauth__logo {
  background: #fc3f1d;
  border-radius: 999px;
}

.ds-btn-oauth--vk .ds-btn-oauth__logo {
  background: #0077ff;
  border-radius: 4px;
}

.ds-page-hero__kicker {
  font-size: 11px;
  color: var(--c-brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
  margin-bottom: 8px;
}

.ds-page-hero__title {
  margin: 0;
  font-size: var(--fs-3xl);
  font-weight: var(--fw-medium);
  color: var(--c-text);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.ds-page-hero__sub {
  margin-top: 10px;
  font-size: var(--fs-base);
  color: var(--c-text-secondary);
}

.ds-page-hero__pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(112, 81, 174, 0.18);
  margin-top: 10px;
}

.ds-page-hero__pill strong {
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--c-brand-active);
  letter-spacing: -0.01em;
}

.ds-page-hero__pill span {
  font-size: 12px;
  color: var(--c-text-secondary);
}

.ds-page-hero__photo {
  width: 160px;
  height: 180px;
  border-radius: var(--r-xl);
  object-fit: cover;
}

@media (max-width: 768px) {
  .ds-page-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .ds-page-hero__photo {
    width: 120px;
    height: 140px;
    margin: 0 auto;
  }
  .ds-page-hero__title { font-size: var(--fs-2xl); }
}

.ds-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--c-border-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.ds-tabs::-webkit-scrollbar { display: none; }

.ds-tabs__item {
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--c-text-secondary);
  font-size: 13.5px;
  font-weight: var(--fw-regular);
  cursor: pointer;
  position: relative;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--t-fast);
}

.ds-tabs__item:hover {
  color: var(--c-text);
}

.ds-tabs__item[aria-current="page"] {
  color: var(--c-brand-hover);
  font-weight: var(--fw-medium);
}

.ds-tabs__item[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--c-brand);
  border-radius: 2px;
}

.ds-content-card {
  padding: 18px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-xl);
}

.ds-content-card--accent {
  border-color: var(--c-border-brand);
}

.ds-content-card__title {
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--c-text);
  margin: 0 0 6px;
}

.ds-content-card__body {
  font-size: 13.5px;
  color: var(--c-text-secondary);
  line-height: 1.55;
  margin: 0;
}

.ds-content-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--c-brand-softer);
  color: var(--c-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ds-content-grid {
  display: grid;
  gap: 14px;
}

.ds-content-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ds-content-grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
  .ds-content-grid--2,
  .ds-content-grid--3 { grid-template-columns: 1fr; }
}

.ds-timeline {
  display: flex;
  flex-direction: column;
}

.ds-timeline__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-border-soft);
}

.ds-timeline__row:last-child { border-bottom: none; }

.ds-timeline__period {
  font-size: 12.5px;
  color: var(--c-brand);
  font-weight: var(--fw-medium);
  padding-top: 2px;
}

.ds-timeline__title {
  font-size: 15.5px;
  font-weight: var(--fw-medium);
  color: var(--c-text);
}

.ds-timeline__org {
  color: var(--c-text-muted);
  font-weight: var(--fw-regular);
}

.ds-timeline__desc {
  font-size: 13.5px;
  color: var(--c-text-secondary);
  margin-top: 4px;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .ds-timeline__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.ds-publication-row {
  padding: 16px 4px;
  border-bottom: 1px solid var(--c-border-soft);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--c-text);
  text-decoration: none;
}

.ds-publication-row:last-child { border-bottom: none; }

.ds-publication-row:hover {
  background: var(--c-brand-ghost);
}

.ds-publication-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--c-brand-softer);
  color: var(--c-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ds-publication-row__source {
  font-size: 11.5px;
  color: var(--c-brand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: var(--fw-medium);
  margin-bottom: 4px;
}

.ds-publication-row__title {
  font-size: 15px;
  color: var(--c-text);
  font-weight: var(--fw-medium);
}

.ds-publication-row__meta {
  font-size: 12.5px;
  color: var(--c-text-muted);
  margin-top: 2px;
}

.ds-review-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--c-brand-softer);
  border-radius: var(--r-xl);
  margin-bottom: 18px;
}

.ds-review-summary__rating {
  font-size: 28px;
  font-weight: var(--fw-medium);
  color: var(--c-brand-active);
  letter-spacing: -0.01em;
}

.ds-faq-item {
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg);
  margin-bottom: 8px;
  overflow: hidden;
}

.ds-faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: var(--fw-medium);
  color: var(--c-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ds-faq-item summary::-webkit-details-marker { display: none; }

.ds-faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--c-text-muted);
  font-weight: var(--fw-regular);
  transition: transform var(--t-fast);
}

.ds-faq-item[open] summary::after { transform: rotate(45deg); }

.ds-faq-item__body {
  padding: 0 18px 16px;
  font-size: 13.5px;
  color: var(--c-text-secondary);
  line-height: 1.6;
}

.ds-service-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  padding: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-xl);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.ds-service-card:hover {
  border-color: var(--c-border-brand);
  box-shadow: var(--shadow-md);
}

.ds-service-card__mark {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--c-brand-softer), var(--c-brand-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-brand);
  font-weight: var(--fw-semibold);
  font-size: 22px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.ds-service-card__title {
  font-size: 16px;
  font-weight: var(--fw-medium);
  color: var(--c-text);
  margin: 0 0 6px;
}

.ds-service-card__sub {
  font-size: 13px;
  color: var(--c-text-secondary);
  margin: 0;
}

.ds-service-card__price {
  font-size: 18px;
  font-weight: var(--fw-medium);
  color: var(--c-brand-active);
  white-space: nowrap;
}

.ds-service-card__price-sub {
  font-size: 12px;
  color: var(--c-text-muted);
  text-align: right;
}

@media (max-width: 640px) {
  .ds-service-card {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }
  .ds-service-card__price-wrap {
    grid-column: 1 / -1;
    text-align: left;
  }
}

.ds-process-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 16px 0;
  align-items: flex-start;
  border-bottom: 1px solid var(--c-border-soft);
}

.ds-process-step:last-child { border-bottom: none; }

.ds-process-step__num {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: var(--c-brand-soft);
  color: var(--c-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-medium);
  font-size: 14px;
}

.ds-process-step__title {
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--c-text);
  margin: 0 0 4px;
}

.ds-process-step__body {
  font-size: 13.5px;
  color: var(--c-text-secondary);
  line-height: 1.55;
  margin: 0;
}

.ds-road-step {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.ds-road-step__photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-brand-soft);
  aspect-ratio: 4 / 3;
}

.ds-road-step__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ds-road-step__num {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-brand-active);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .ds-road-step { grid-template-columns: 1fr; }
}
