@charset "UTF-8";
/* ==========================================================================
   World Vision Clinic — личный кабинет врача
   Дизайн-система: токены, светлая/тёмная тема, компоненты.
   Все цвета объявляются в :root (светлая), переопределяются в тёмной.
   ========================================================================== */

@import url("../fonts/montserrat.css");

/* --------------------------------------------------------------------------
   1. Токены
   -------------------------------------------------------------------------- */
:root {
  /* Бренд */
  --wv-navy: #141b4d;
  --wv-navy-700: #1d2764;
  --wv-blue: #3b4da0;
  --wv-blue-600: #344590;
  --wv-blue-400: #5b6ec5;
  --wv-blue-200: #b9c2e8;

  /* Поверхности */
  --bg: #f2f5fb;
  --bg-grad-a: #eef2fb;
  --bg-grad-b: #f7f9fd;
  --surface: #ffffff;
  --surface-2: #f7f9fd;
  --surface-3: #eef2fa;
  --surface-inset: #f4f7fc;
  --border: #e2e8f4;
  --border-strong: #cfd8ec;

  /* Текст */
  --text: #131a35;
  --text-2: #47506f;
  --text-3: #6f7899;
  --text-inv: #ffffff;

  /* Акценты */
  --accent: #3b4da0;
  --accent-hover: #2f3f89;
  --accent-soft: #eaeeff;
  --accent-soft-2: #dde3ff;
  --accent-text: #3b4da0;
  --on-accent: #ffffff;

  /* Семантика */
  --success: #0e9f6e;
  --success-soft: #e3f7ef;
  --warning: #c2760a;
  --warning-soft: #fdf1de;
  --danger: #d92d20;
  --danger-soft: #fdecea;
  --info: #0d7fc4;
  --info-soft: #e4f2fc;
  --violet: #6d4aca;
  --violet-soft: #efe9fd;

  /* Тени */
  --sh-1: 0 1px 2px rgba(19, 26, 53, .05), 0 1px 3px rgba(19, 26, 53, .04);
  --sh-2: 0 2px 6px rgba(19, 26, 53, .06), 0 8px 20px rgba(19, 26, 53, .05);
  --sh-3: 0 10px 30px rgba(19, 26, 53, .10), 0 2px 8px rgba(19, 26, 53, .05);
  --sh-accent: 0 8px 22px rgba(59, 77, 160, .28);

  /* Геометрия */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Размеры */
  --sidebar-w: 268px;
  --topbar-h: 64px;
  --bottomnav-h: 68px;
  --page-max: 1240px;

  --ring: 0 0 0 3px rgba(59, 77, 160, .22);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #080c1a;
  --bg-grad-a: #0a0f22;
  --bg-grad-b: #070b17;
  --surface: #101736;
  --surface-2: #141c40;
  --surface-3: #1a2350;
  --surface-inset: #0d1330;
  --border: #232e5e;
  --border-strong: #33407a;

  --text: #eaeefc;
  --text-2: #b3bde3;
  --text-3: #8590bb;
  --text-inv: #0b1024;

  --accent: #8296f5;
  --accent-hover: #9aabff;
  --accent-soft: #1b2350;
  --accent-soft-2: #232e63;
  --accent-text: #a3b2ff;
  --on-accent: #0b1024;

  --success: #35d39a;
  --success-soft: #10322a;
  --warning: #f0b357;
  --warning-soft: #33270f;
  --danger: #ff7a70;
  --danger-soft: #3a1a1c;
  --info: #5cb8f0;
  --info-soft: #10283c;
  --violet: #a893f5;
  --violet-soft: #241d46;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 2px 8px rgba(0, 0, 0, .45), 0 12px 28px rgba(0, 0, 0, .35);
  --sh-3: 0 16px 40px rgba(0, 0, 0, .55);
  --sh-accent: 0 8px 22px rgba(90, 110, 220, .35);

  --ring: 0 0 0 3px rgba(130, 150, 245, .28);
  color-scheme: dark;
}

/* Системная тема, когда пользователь ничего не выбирал */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #080c1a;
    --bg-grad-a: #0a0f22;
    --bg-grad-b: #070b17;
    --surface: #101736;
    --surface-2: #141c40;
    --surface-3: #1a2350;
    --surface-inset: #0d1330;
    --border: #232e5e;
    --border-strong: #33407a;

    --text: #eaeefc;
    --text-2: #b3bde3;
    --text-3: #8590bb;
    --text-inv: #0b1024;

    --accent: #8296f5;
    --accent-hover: #9aabff;
    --accent-soft: #1b2350;
    --accent-soft-2: #232e63;
    --accent-text: #a3b2ff;
    --on-accent: #0b1024;

    --success: #35d39a;
    --success-soft: #10322a;
    --warning: #f0b357;
    --warning-soft: #33270f;
    --danger: #ff7a70;
    --danger-soft: #3a1a1c;
    --info: #5cb8f0;
    --info-soft: #10283c;
    --violet: #a893f5;
    --violet-soft: #241d46;

    --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
    --sh-2: 0 2px 8px rgba(0, 0, 0, .45), 0 12px 28px rgba(0, 0, 0, .35);
    --sh-3: 0 16px 40px rgba(0, 0, 0, .55);
    --sh-accent: 0 8px 22px rgba(90, 110, 220, .35);

    --ring: 0 0 0 3px rgba(130, 150, 245, .28);
    color-scheme: dark;
  }
}

/* --------------------------------------------------------------------------
   2. База
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* hidden должен побеждать display у компонентов */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  background-image: linear-gradient(180deg, var(--bg-grad-a) 0%, var(--bg-grad-b) 420px, var(--bg) 900px);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--text); }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
p  { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-text); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }

img, svg, video { max-width: 100%; }
img { height: auto; }

hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

code, kbd, samp { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .92em; }

::selection { background: var(--accent-soft-2); color: var(--text); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

.wv-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.wv-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Скроллбары */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* --------------------------------------------------------------------------
   3. Каркас приложения
   -------------------------------------------------------------------------- */
.wv-app { min-height: 100vh; }

/* --- Сайдбар (десктоп) --- */
.wv-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 16px 16px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 60;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wv-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; }
.wv-brand__logo { height: 34px; width: auto; display: block; }
.wv-brand__logo--light { display: block; }
.wv-brand__logo--dark  { display: none; }
html[data-theme="dark"] .wv-brand__logo--light { display: none; }
html[data-theme="dark"] .wv-brand__logo--dark  { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .wv-brand__logo--light { display: none; }
  html:not([data-theme="light"]) .wv-brand__logo--dark  { display: block; }
}

.wv-nav { display: flex; flex-direction: column; gap: 2px; }
.wv-nav__group { margin-top: 14px; }
.wv-nav__title {
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-3); padding: 0 12px 8px;
}
.wv-nav__link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 14.5px; font-weight: 600;
  transition: background .16s ease, color .16s ease, transform .16s ease;
  position: relative;
}
.wv-nav__link svg { width: 20px; height: 20px; flex: none; opacity: .85; }
.wv-nav__link:hover { background: var(--surface-3); color: var(--text); }
.wv-nav__link.is-active { background: var(--accent-soft); color: var(--accent-text); }
.wv-nav__link.is-active svg { opacity: 1; }
.wv-nav__link.is-active::before {
  content: ""; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: var(--accent);
}
.wv-nav__badge {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; border-radius: var(--r-pill);
  background: var(--accent-soft-2); color: var(--accent-text);
}

.wv-sidebar__foot { margin-top: auto; padding-top: 16px; }

/* Карточка пользователя в сайдбаре */
.wv-usercard {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--border);
}
.wv-usercard__meta { min-width: 0; }
.wv-usercard__name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wv-usercard__id { font-size: 12px; color: var(--text-3); }

/* --- Основная область --- */
.wv-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wv-topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.wv-topbar__title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.wv-topbar__sub { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.wv-topbar__spacer { margin-left: auto; }
.wv-topbar__actions { display: flex; align-items: center; gap: 8px; }

.wv-page {
  flex: 1;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 24px 24px 48px;
}
/* узкие разделы (формы, карточки) всегда по центру рабочей области */
.wv-page > [style*="max-width"] { margin-left: auto; margin-right: auto; }

.wv-foot {
  padding: 20px 24px 28px;
  text-align: center;
  color: var(--text-3);
  font-size: 12.5px;
}

/* --- Мобильная шапка и нижняя навигация --- */
.wv-mobilebar { display: none; }
.wv-bottomnav { display: none; }

@media (max-width: 1023px) {
  .wv-sidebar {
    transform: translateX(-100%);
    transition: transform .26s cubic-bezier(.22,.61,.36,1);
    width: min(86vw, 320px);
    box-shadow: var(--sh-3);
  }
  body.wv-drawer-open .wv-sidebar { transform: translateX(0); }
  .wv-scrim {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(8, 12, 26, .45);
    backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity .22s ease;
  }
  body.wv-drawer-open .wv-scrim { opacity: 1; pointer-events: auto; }
  body.wv-drawer-open { overflow: hidden; }

  .wv-main { margin-left: 0; }
  .wv-topbar { display: none; }

  .wv-mobilebar {
    display: flex; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 50;
    padding: 10px 14px;
    min-height: 60px;
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .wv-mobilebar__title { font-size: 16px; font-weight: 700; line-height: 1.2; }
  .wv-mobilebar__sub { font-size: 11.5px; color: var(--text-3); font-weight: 600; }

  .wv-page { padding: 16px 14px calc(var(--bottomnav-h) + 28px); }
  .wv-foot { padding-bottom: calc(var(--bottomnav-h) + 20px); }

  .wv-bottomnav {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 58;
    height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    /* непрозрачный фон: кольцо вокруг центральной кнопки должно совпадать с панелью */
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 18px rgba(19, 26, 53, .06);
  }
  html[data-theme="dark"] .wv-bottomnav { box-shadow: 0 -6px 18px rgba(0, 0, 0, .4); }
  .wv-bottomnav__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font: inherit; font-size: 10.5px; font-weight: 700; color: var(--text-3);
    padding-top: 6px;
    background: transparent; border: 0; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .wv-bottomnav__item svg { width: 23px; height: 23px; }
  .wv-bottomnav__item.is-active { color: var(--accent-text); }
  .wv-bottomnav__fab {
    /* фиксированная ширина не растягивается — центрируем явно по обеим осям */
    justify-self: center;
    align-self: center;
    position: relative;
    z-index: 1;
    display: grid; place-items: center;
    width: 56px; height: 56px; margin-top: -24px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--wv-blue) 0%, var(--wv-navy) 100%);
    color: #fff;
    /* кольцо цветом панели «вырезает» кнопку из линии навигации */
    box-shadow: 0 0 0 5px var(--surface), var(--sh-accent);
  }
  .wv-bottomnav__fab svg { width: 26px; height: 26px; }
  html[data-theme="dark"] .wv-bottomnav__fab {
    background: linear-gradient(140deg, #4d63c9 0%, #2b3670 100%);
  }
}

@media (min-width: 1024px) {
  .wv-scrim { display: none; }
}

/* --------------------------------------------------------------------------
   4. Кнопки
   -------------------------------------------------------------------------- */
.wv-btn {
  --btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-md);
  font: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: .01em;
  cursor: pointer; user-select: none; white-space: nowrap;
  background: var(--surface-2); color: var(--text);
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .12s ease, box-shadow .16s ease;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.wv-btn svg { width: 18px; height: 18px; flex: none; }
.wv-btn:active { transform: translateY(1px); }
.wv-btn:disabled, .wv-btn.is-disabled { opacity: .55; pointer-events: none; }

.wv-btn--primary {
  background: linear-gradient(135deg, var(--wv-blue) 0%, var(--wv-navy) 100%);
  color: #fff; box-shadow: var(--sh-accent);
}
.wv-btn--primary:hover { filter: brightness(1.08); color: #fff; }
html[data-theme="dark"] .wv-btn--primary { background: linear-gradient(135deg, #4d63c9 0%, #2b3670 100%); color: #fff; }

.wv-btn--secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); box-shadow: var(--sh-1); }
.wv-btn--secondary:hover { border-color: var(--accent); color: var(--accent-text); }

.wv-btn--soft { background: var(--accent-soft); color: var(--accent-text); }
.wv-btn--soft:hover { background: var(--accent-soft-2); color: var(--accent-text); }

.wv-btn--ghost { background: transparent; color: var(--text-2); }
.wv-btn--ghost:hover { background: var(--surface-3); color: var(--text); }

.wv-btn--success { background: var(--success); color: #fff; }
.wv-btn--success:hover { filter: brightness(1.07); color: #fff; }
.wv-btn--danger  { background: var(--danger); color: #fff; }
.wv-btn--danger:hover { filter: brightness(1.07); color: #fff; }
.wv-btn--danger-soft { background: var(--danger-soft); color: var(--danger); }

.wv-btn--sm { --btn-h: 36px; padding: 0 14px; font-size: 13.5px; border-radius: var(--r-sm); }
.wv-btn--lg { --btn-h: 52px; padding: 0 26px; font-size: 16px; }
.wv-btn--block { width: 100%; }
.wv-btn--icon { width: var(--btn-h); padding: 0; }

/* Иконочная кнопка в шапке */
.wv-iconbtn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2);
  cursor: pointer; transition: all .16s ease;
}
.wv-iconbtn svg { width: 20px; height: 20px; }
.wv-iconbtn:hover { color: var(--accent-text); border-color: var(--accent); }

/* --------------------------------------------------------------------------
   5. Карточки и блоки
   -------------------------------------------------------------------------- */
.wv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.wv-card--pad { padding: 20px; }
.wv-card--flat { box-shadow: none; }
.wv-card__head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.wv-card__title { font-size: 16px; font-weight: 700; }
.wv-card__sub { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.wv-card__body { padding: 20px; }
.wv-card__foot { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.wv-card__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

@media (max-width: 640px) {
  .wv-card__head, .wv-card__body { padding: 16px; }
  .wv-card--pad { padding: 16px; }
}

/* Заголовок раздела */
.wv-section { margin: 28px 0 14px; display: flex; align-items: flex-end; gap: 12px; }
.wv-section:first-child { margin-top: 0; }
.wv-section__title { font-size: 18px; font-weight: 700; }
.wv-section__sub { font-size: 13px; color: var(--text-3); font-weight: 600; }
.wv-section__actions { margin-left: auto; }

.wv-stack { display: flex; flex-direction: column; gap: 16px; }
/* прямой картинке в flex-колонке нельзя давать растягиваться по ширине */
.wv-stack > img, .wv-sidebar > img, .wv-auth__art > img { align-self: flex-start; width: auto; }
.wv-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wv-grid { display: grid; gap: 16px; }
.wv-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wv-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wv-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .wv-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .wv-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  {
  .wv-grid--2, .wv-grid--3, .wv-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .wv-grid--keep2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* --------------------------------------------------------------------------
   6. Hero / фирменный баннер
   -------------------------------------------------------------------------- */
.wv-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(120% 140% at 85% 15%, #2b3a86 0%, rgba(43,58,134,0) 55%),
    linear-gradient(135deg, #1b2564 0%, #141b4d 55%, #0f1438 100%);
  box-shadow: var(--sh-2);
}
/* Фирменный халфтон: дотовая «радужка» */
.wv-hero::after {
  content: "";
  position: absolute; right: -70px; top: -90px;
  width: 400px; height: 400px;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1.5px, rgba(255, 255, 255, 0) 1.6px);
  background-size: 13px 13px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 36%, #000 58%, transparent 66%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 36%, #000 58%, transparent 66%);
  opacity: .8;
  pointer-events: none;
}
.wv-hero::before {
  content: "";
  position: absolute; right: 60px; top: 40px;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.22), rgba(255,255,255,.03) 60%);
  pointer-events: none;
}
.wv-hero__inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.wv-hero__eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.wv-hero h1 { color: #fff; font-size: 26px; margin: 6px 0 6px; }
.wv-hero p { color: rgba(255,255,255,.78); font-size: 14px; margin: 0; max-width: 60ch; }
.wv-hero__actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.wv-hero .wv-btn--secondary { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; box-shadow: none; }
.wv-hero .wv-btn--secondary:hover { background: rgba(255,255,255,.2); color: #fff; }
.wv-hero .wv-btn--primary { background: #fff; color: var(--wv-navy); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.wv-hero .wv-btn--primary:hover { background: #f2f4ff; color: var(--wv-navy); }

.wv-hero__avatar {
  width: 64px; height: 64px; border-radius: 20px; flex: none;
  border: 2px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.1);
  object-fit: cover;
}

@media (max-width: 767px) {
  .wv-hero { padding: 20px; border-radius: var(--r-lg); }

  /* На узком экране узор уходит в угол и не лезет под текст */
  .wv-hero::after {
    right: -80px; top: -80px;
    width: 220px; height: 220px;
    background-size: 11px 11px;
    opacity: .34;
  }
  .wv-hero::before { display: none; }

  .wv-hero__inner { gap: 16px; }
  .wv-hero__eyebrow { font-size: 10.5px; letter-spacing: .14em; }
  .wv-hero h1 { font-size: 21px; line-height: 1.2; margin: 8px 0 8px; }
  .wv-hero p { font-size: 13.5px; color: rgba(255, 255, 255, .82); }

  .wv-hero__actions { margin-left: 0; width: 100%; }
  .wv-hero__actions .wv-btn { flex: 1 1 100%; }
  .wv-hero .wv-btn--secondary { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); }
}

/* --------------------------------------------------------------------------
   7. Статистические плитки
   -------------------------------------------------------------------------- */
.wv-stat {
  position: relative;
  display: block;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  color: inherit;
  overflow: hidden;
}
a.wv-stat:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--border-strong); color: inherit; }
.wv-stat__icon {
  width: 42px; height: 42px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent-text);
}
.wv-stat__icon svg { width: 21px; height: 21px; }
.wv-stat__value { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.wv-stat__label { font-size: 13px; color: var(--text-3); font-weight: 600; margin-top: 4px; }
.wv-stat__foot { margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--accent-text); display: inline-flex; align-items: center; gap: 5px; }
.wv-stat__foot svg { width: 15px; height: 15px; }

.wv-stat--success .wv-stat__icon { background: var(--success-soft); color: var(--success); }
.wv-stat--info    .wv-stat__icon { background: var(--info-soft);    color: var(--info); }
.wv-stat--warning .wv-stat__icon { background: var(--warning-soft); color: var(--warning); }
.wv-stat--violet  .wv-stat__icon { background: var(--violet-soft);  color: var(--violet); }

/* Крупная денежная карточка */
.wv-money {
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--sh-1);
  display: flex; align-items: center; gap: 16px;
}
.wv-money__icon { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-text); }
.wv-money__icon svg { width: 26px; height: 26px; }
.wv-money__label { font-size: 13px; color: var(--text-3); font-weight: 600; }
.wv-money__value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.wv-money--accent .wv-money__icon { background: var(--success-soft); color: var(--success); }
.wv-money--accent .wv-money__value { color: var(--success); }

/* --------------------------------------------------------------------------
   8. Формы
   -------------------------------------------------------------------------- */
.wv-form { display: flex; flex-direction: column; gap: 18px; }
.wv-fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.wv-fieldset__legend {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); padding: 0; margin-bottom: 2px;
}

.wv-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.wv-label { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.wv-label .req { color: var(--danger); margin-left: 2px; }
.wv-help { font-size: 12.5px; color: var(--text-3); }

.wv-input, .wv-select, .wv-textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit; font-size: 15px; font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  appearance: none;
}
.wv-textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.wv-input::placeholder, .wv-textarea::placeholder { color: var(--text-3); opacity: .8; }
.wv-input:hover, .wv-select:hover, .wv-textarea:hover { border-color: var(--accent); }
.wv-input:focus, .wv-select:focus, .wv-textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.wv-input:disabled, .wv-select:disabled, .wv-textarea:disabled { background: var(--surface-3); color: var(--text-3); }

.wv-select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236f7899' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
html[data-theme="dark"] .wv-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238590bb' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* Файл */
.wv-file { position: relative; display: block; }
.wv-file input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.wv-file__box {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-inset);
  transition: border-color .16s ease, background .16s ease;
}
.wv-file:hover .wv-file__box { border-color: var(--accent); background: var(--accent-soft); }
.wv-file__box svg { width: 22px; height: 22px; color: var(--accent-text); flex: none; }
.wv-file__text { font-size: 14px; font-weight: 600; color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wv-file__hint { font-size: 12px; color: var(--text-3); font-weight: 500; }

/* Переключатель */
.wv-switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-2); }
.wv-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.wv-switch__track {
  width: 46px; height: 27px; border-radius: 999px; background: var(--border-strong);
  position: relative; flex: none; transition: background .18s ease;
}
.wv-switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 21px; height: 21px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.28); transition: transform .18s cubic-bezier(.3,.8,.4,1.2);
}
.wv-switch input:checked + .wv-switch__track { background: var(--accent); }
.wv-switch input:checked + .wv-switch__track::after { transform: translateX(19px); }
.wv-switch input:focus-visible + .wv-switch__track { box-shadow: var(--ring); }

/* Радио-карточки (выбор варианта) */
.wv-choices { display: grid; gap: 10px; }
.wv-choice {
  position: relative;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.wv-choice input { position: absolute; opacity: 0; }
.wv-choice__mark {
  width: 22px; height: 22px; border-radius: 50%; flex: none; margin-top: 1px;
  border: 2px solid var(--border-strong); background: var(--surface);
  display: grid; place-items: center; transition: all .16s ease;
}
.wv-choice__mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .16s cubic-bezier(.3,.8,.4,1.3); }
.wv-choice__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wv-choice__title { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); }
.wv-choice__desc { display: block; font-size: 12.5px; color: var(--text-3); font-weight: 500; line-height: 1.45; }
.wv-choice:hover { border-color: var(--accent); }
.wv-choice input:checked + .wv-choice__mark { border-color: var(--accent); }
.wv-choice input:checked + .wv-choice__mark::after { transform: scale(1); }
.wv-choice input:checked ~ .wv-choice__body .wv-choice__title { color: var(--accent-text); }
.wv-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--ring); }
.wv-choice:has(input:checked) .wv-choice__mark { border-color: var(--accent); }
.wv-choice:has(input:checked) .wv-choice__mark::after { transform: scale(1); }
.wv-choice--sq .wv-choice__mark { border-radius: 7px; }
.wv-choice--sq .wv-choice__mark::after { border-radius: 3px; }

/* Сетка полей */
.wv-fields { display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.wv-fields > .col-3  { grid-column: span 3; }
.wv-fields > .col-4  { grid-column: span 4; }
.wv-fields > .col-6  { grid-column: span 6; }
.wv-fields > .col-8  { grid-column: span 8; }
.wv-fields > .col-12 { grid-column: span 12; }
@media (max-width: 860px) {
  .wv-fields > .col-3, .wv-fields > .col-4, .wv-fields > .col-6, .wv-fields > .col-8 { grid-column: span 12; }
}

.wv-formactions {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding-top: 4px;
}
@media (max-width: 640px) {
  /* Кнопка отправки всегда под рукой — прилипает над нижней навигацией */
  .wv-form > .wv-formactions,
  .wv-card__body > .wv-formactions {
    position: sticky;
    bottom: calc(var(--bottomnav-h) + 8px);
    z-index: 20;
    margin: 4px -16px -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 20px rgba(19, 26, 53, .06);
  }
  html[data-theme="dark"] .wv-form > .wv-formactions,
  html[data-theme="dark"] .wv-card__body > .wv-formactions { box-shadow: 0 -8px 20px rgba(0, 0, 0, .35); }
  .wv-formactions .wv-btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   9. Табы / сегменты
   -------------------------------------------------------------------------- */
.wv-tabs {
  display: flex; gap: 6px;
  padding: 5px;
  background: var(--surface-3);
  border-radius: var(--r-md);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.wv-tabs::-webkit-scrollbar { display: none; }
.wv-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--text-2);
  font: inherit; font-size: 14px; font-weight: 700;
  white-space: nowrap; cursor: pointer;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.wv-tab:hover { color: var(--text); }
.wv-tab.is-active { background: var(--surface); color: var(--accent-text); box-shadow: var(--sh-1); }
.wv-tab__count {
  min-width: 22px; padding: 0 6px; height: 20px;
  display: inline-grid; place-items: center;
  font-size: 11.5px; font-weight: 800; border-radius: 999px;
  background: var(--accent-soft-2); color: var(--accent-text);
}
.wv-tab.is-active .wv-tab__count { background: var(--accent); color: var(--on-accent); }

/* --------------------------------------------------------------------------
   10. Таблицы (+ карточный режим на мобильных)
   -------------------------------------------------------------------------- */
.wv-tablewrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }
.wv-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.wv-table th {
  text-align: left; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3); padding: 12px 16px; background: var(--surface-2);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.wv-table th:first-child { border-radius: var(--r-md) 0 0 0; }
.wv-table th:last-child  { border-radius: 0 var(--r-md) 0 0; }
.wv-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
.wv-table tbody tr:last-child td { border-bottom: 0; }
.wv-table tbody tr { transition: background .14s ease; }
.wv-table tbody tr:hover { background: var(--surface-2); }
.wv-table .wv-td-strong { color: var(--text); font-weight: 700; }
.wv-table .wv-td-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wv-table tr.is-me { background: var(--accent-soft); }
.wv-table tr.is-me td { color: var(--text); font-weight: 700; }

@media (max-width: 820px) {
  .wv-table--cards thead { display: none; }
  .wv-table--cards, .wv-table--cards tbody, .wv-table--cards tr, .wv-table--cards td { display: block; width: 100%; }
  .wv-table--cards tr {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 6px 2px; margin-bottom: 12px; box-shadow: var(--sh-1);
  }
  .wv-table--cards tr:hover { background: var(--surface); }
  .wv-table--cards td { border-bottom: 1px dashed var(--border); padding: 10px 14px; display: flex; gap: 14px; align-items: baseline; }
  .wv-table--cards td:last-child { border-bottom: 0; }
  .wv-table--cards td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3);
  }
  .wv-table--cards td[data-label=""]::before { display: none; }
  .wv-table--cards td > * { min-width: 0; }
}

/* Пагинация ($obDev->navigationDev) */
.pages, .wv-pages {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  margin-top: 16px;
}
.pages button, .wv-pages button {
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text-2);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: all .15s ease;
}
.pages button:hover, .wv-pages button:hover { border-color: var(--accent); color: var(--accent-text); }
.pages button.btn-primary, .wv-pages button.btn-primary {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}
.pages span, .wv-pages span { color: var(--text-3); padding: 0 4px; }

/* Прайс-таблица (сохранена разметка cxTable) */
.cxTable {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 14.5px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
}
.cxTable td { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: top; white-space: normal; }
.cxTable tr:last-child td { border-bottom: 0; }
.cxTable td.head {
  background: var(--surface-3); color: var(--text);
  font-weight: 800; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase;
}
.cxTable td.price {
  white-space: nowrap; text-align: right; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums; width: 1%;
}
@media (max-width: 640px) {
  .cxTable td { padding: 12px 14px; font-size: 13.5px; }
  .cxTable td.price { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   10a. Список пациентов — карточки, которые на широком экране читаются как таблица
   -------------------------------------------------------------------------- */
.wv-plist { display: grid; gap: 10px; }

.wv-plist__head,
.wv-plist__row {
  display: grid;
  gap: 12px 16px;
  align-items: center;
  grid-template-columns:
    minmax(170px, 2.2fr)   /* пациент */
    minmax(158px, 1fr)     /* телефон */
    58px                   /* возраст */
    minmax(112px, 1.1fr)   /* классификация */
    minmax(92px, .9fr)     /* приём */
    minmax(92px, .9fr)     /* филиал */
    minmax(116px, 1fr);    /* статус */
  grid-template-areas: "who phone age cls appt branch status";
}

.wv-plist__head {
  padding: 0 16px 2px;
  font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-3);
}

.wv-plist__row {
  position: relative;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.wv-plist__row:hover { border-color: var(--border-strong); box-shadow: var(--sh-1); }

.wv-plist__who    { grid-area: who;    display: flex; align-items: center; gap: 12px; min-width: 0; }
.wv-plist__phone  { grid-area: phone; }
.wv-plist__age    { grid-area: age; }
.wv-plist__cls    { grid-area: cls; }
.wv-plist__appt   { grid-area: appt; }
.wv-plist__branch { grid-area: branch; }
.wv-plist__status { grid-area: status; justify-self: start; min-width: 0; max-width: 100%; }
.wv-plist__status .wv-badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.wv-plist__status .wv-dot { flex: none; }

.wv-plist__ava {
  flex: none;
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800; letter-spacing: .02em;
  background: linear-gradient(140deg, var(--accent-soft) 0%, var(--accent-soft-2) 100%);
  color: var(--accent-text);
}
.wv-plist__meta { min-width: 0; }
.wv-plist__name {
  display: block;
  font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.3;
}
.wv-plist__sub {
  display: block; margin-top: 2px;
  font-size: 12px; color: var(--text-3); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.wv-plist__cell { font-size: 14px; color: var(--text-2); min-width: 0; }
.wv-plist__cell .wv-num { font-variant-numeric: tabular-nums; }
.wv-plist__cell svg { width: 16px; height: 16px; flex: none; }
.wv-plist__cell a {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; white-space: nowrap;
}

/* Ниже ~1100px колонки уже не помещаются — строка становится карточкой */
@media (max-width: 1100px) {
  .wv-plist__head { display: none; }

  .wv-plist__row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "who"
      "status"
      "phone"
      "cls"
      "age"
      "appt"
      "branch";
    gap: 0;
    padding: 14px 16px 4px;
  }

  .wv-plist__who { padding-bottom: 12px; }
  .wv-plist__status { justify-self: stretch; padding-bottom: 12px; }

  .wv-plist__row > .wv-plist__cell {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 10px 0;
    border-top: 1px dashed var(--border);
    font-size: 14px;
  }
  .wv-plist__row > .wv-plist__cell::before {
    content: attr(data-label);
    flex: none;
    font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
    color: var(--text-3);
  }
  .wv-plist__cell > * { text-align: right; }

  /* Телефон — крупной кнопкой: по нему звонят прямо из списка */
  .wv-plist__phone { padding: 0 0 12px !important; border: 0 !important; }
  .wv-plist__phone::before { display: none !important; }
  .wv-plist__phone a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; border-radius: var(--r-sm);
    background: var(--accent-soft); color: var(--accent-text);
    font-size: 15px; font-weight: 700;
  }
  .wv-plist__phone a svg { width: 17px; height: 17px; }
}

/* Чипы классификации */
.wv-chip {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%;
  padding: 5px 11px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--surface-3); color: var(--text-2);
}
.wv-chip::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wv-chip--hot  { background: var(--danger-soft);  color: var(--danger); }
.wv-chip--warm { background: var(--warning-soft); color: var(--warning); }
.wv-chip--cold { background: var(--info-soft);    color: var(--info); }

/* --------------------------------------------------------------------------
   11. Бейджи, статусы, теги
   -------------------------------------------------------------------------- */
.wv-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; white-space: nowrap;
  background: var(--surface-3); color: var(--text-2);
}
.wv-badge svg { width: 14px; height: 14px; }
.wv-badge--success { background: var(--success-soft); color: var(--success); }
.wv-badge--warning { background: var(--warning-soft); color: var(--warning); }
.wv-badge--danger  { background: var(--danger-soft);  color: var(--danger); }
.wv-badge--info    { background: var(--info-soft);    color: var(--info); }
.wv-badge--violet  { background: var(--violet-soft);  color: var(--violet); }
.wv-badge--accent  { background: var(--accent-soft);  color: var(--accent-text); }

.wv-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* --------------------------------------------------------------------------
   12. Аватар, персона
   -------------------------------------------------------------------------- */
.wv-avatar {
  border-radius: var(--r-md); object-fit: cover; flex: none;
  background: var(--surface-3); border: 1px solid var(--border);
}
.wv-avatar--sm { width: 36px; height: 36px; border-radius: var(--r-sm); }
.wv-avatar--md { width: 46px; height: 46px; }
.wv-avatar--lg { width: 64px; height: 64px; border-radius: var(--r-lg); }
.wv-avatar--circle { border-radius: 50%; }

.wv-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wv-person__name { font-size: 14.5px; font-weight: 700; color: var(--text); }
.wv-person__role { font-size: 12.5px; color: var(--text-3); font-weight: 600; }

/* Список «ключ — значение» */
.wv-deflist { display: grid; gap: 2px; }
.wv-deflist__row {
  display: flex; gap: 16px; align-items: baseline; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px dashed var(--border);
}
.wv-deflist__row:last-child { border-bottom: 0; }
.wv-deflist__k { font-size: 13.5px; color: var(--text-3); font-weight: 600; }
.wv-deflist__v { font-size: 14.5px; color: var(--text); font-weight: 700; text-align: right; word-break: break-word; }

/* --------------------------------------------------------------------------
   13. Уведомления / подсказки
   -------------------------------------------------------------------------- */
.wv-note {
  display: flex; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--info-soft); color: var(--text-2);
  border: 1px solid var(--border);
  border-color: color-mix(in srgb, var(--info) 22%, transparent);
  font-size: 13.5px; line-height: 1.6;
}
.wv-note svg { width: 20px; height: 20px; flex: none; color: var(--info); margin-top: 1px; }
.wv-note strong { color: var(--text); }
.wv-note--warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 26%, transparent); }
.wv-note--warning svg { color: var(--warning); }
.wv-note--success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 26%, transparent); }
.wv-note--success svg { color: var(--success); }
.wv-note--danger  { background: var(--danger-soft);  border-color: color-mix(in srgb, var(--danger) 26%, transparent); }
.wv-note--danger svg { color: var(--danger); }

/* Тосты (MessageSend) */
.wv-toasts {
  position: fixed; z-index: 200;
  right: 18px; bottom: 18px;
  display: flex; flex-direction: column; gap: 10px;
  max-width: min(380px, calc(100vw - 28px));
}
@media (max-width: 640px) {
  .wv-toasts { right: 12px; left: 12px; bottom: calc(var(--bottomnav-h) + 14px); max-width: none; }
}
.wv-toast {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--info);
  box-shadow: var(--sh-3);
  animation: wv-toast-in .3s cubic-bezier(.22,.61,.36,1);
}
.wv-toast svg { width: 20px; height: 20px; flex: none; color: var(--info); }
.wv-toast--success { border-left-color: var(--success); }
.wv-toast--success svg { color: var(--success); }
.wv-toast--warn { border-left-color: var(--warning); }
.wv-toast--warn svg { color: var(--warning); }
.wv-toast--error { border-left-color: var(--danger); }
.wv-toast--error svg { color: var(--danger); }
.wv-toast__text { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5; }
.wv-toast__close { margin-left: auto; background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 2px; line-height: 0; }
.wv-toast.is-hiding { animation: wv-toast-out .22s ease forwards; }
@keyframes wv-toast-in  { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes wv-toast-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* --------------------------------------------------------------------------
   Модальное окно / шторка (инструкция по установке приложения)
   -------------------------------------------------------------------------- */
.wv-sheet {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(8, 12, 26, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: wv-fade .18s ease;
}
.wv-sheet[hidden] { display: none; }
.wv-sheet__box {
  position: relative;
  width: 100%; max-width: 420px;
  max-height: 86vh; overflow-y: auto;
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--sh-3);
  animation: wv-pop .22s cubic-bezier(.22,.61,.36,1);
}
.wv-sheet__close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: var(--r-sm);
  background: var(--surface-3); color: var(--text-2);
  cursor: pointer;
}
.wv-sheet__close:hover { color: var(--text); }
.wv-sheet__icon {
  width: 56px; height: 56px; border-radius: 18px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text);
}
.wv-sheet__icon svg { width: 28px; height: 28px; }
.wv-sheet h3 { font-size: 19px; margin-bottom: 8px; }
.wv-sheet p { font-size: 14px; color: var(--text-2); }
.wv-steps { counter-reset: wv-step; display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.wv-steps li {
  position: relative;
  padding-left: 38px;
  font-size: 14.5px; color: var(--text-2); line-height: 1.55;
}
.wv-steps li::before {
  counter-increment: wv-step; content: counter(wv-step);
  position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font-size: 13px; font-weight: 800;
}
.wv-steps b { color: var(--text); }
.wv-sheet__or {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 14px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3);
}
.wv-sheet__or::before, .wv-sheet__or::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
@keyframes wv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wv-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .wv-sheet { place-items: end center; padding: 0; }
  .wv-sheet__box {
    max-width: none; border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

/* Пустое состояние */
.wv-empty { text-align: center; padding: 44px 20px; }
.wv-empty__icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  display: grid; place-items: center; border-radius: 20px;
  background: var(--surface-3); color: var(--text-3);
}
.wv-empty__icon svg { width: 30px; height: 30px; }
.wv-empty__title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.wv-empty__text { font-size: 13.5px; color: var(--text-3); max-width: 46ch; margin: 0 auto; }

/* --------------------------------------------------------------------------
   14. Аккордеон (FAQ)
   -------------------------------------------------------------------------- */
.wv-acc { display: grid; gap: 10px; }
.wv-acc__item {
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.wv-acc__item[open] { border-color: var(--border-strong); box-shadow: var(--sh-1); }
.wv-acc__item summary {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-size: 14.5px; font-weight: 700; color: var(--text);
}
.wv-acc__item summary > svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); }
.wv-acc__item summary::-webkit-details-marker { display: none; }
.wv-acc__item summary::after {
  content: ""; margin-left: auto; flex: none;
  width: 20px; height: 20px;
  background: currentColor; color: var(--text-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .2s ease;
}
.wv-acc__item[open] summary::after { transform: rotate(180deg); }
.wv-acc__body { padding: 0 18px 18px; font-size: 14px; color: var(--text-2); line-height: 1.65; }
.wv-acc__body ul { padding-left: 20px; margin: 0; }
.wv-acc__body b, .wv-acc__body strong { color: var(--text); }

/* Частые вопросы: две колонки, нумерация, подсветка раскрытого */
.wv-faq {
  counter-reset: wv-faq;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}
.wv-faq .wv-acc__item {
  border-radius: var(--r-lg);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.wv-faq .wv-acc__item:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.wv-faq .wv-acc__item summary {
  align-items: flex-start;
  padding: 16px 18px;
  font-size: 14px; line-height: 1.4;
}
.wv-faq .wv-acc__item summary::before {
  counter-increment: wv-faq;
  content: counter(wv-faq, decimal-leading-zero);
  flex: none;
  width: 30px; height: 30px; margin-top: -2px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums;
  transition: background .18s ease, color .18s ease;
}
.wv-faq .wv-acc__item summary::after { margin-top: 4px; }
.wv-faq .wv-acc__item[open] {
  border-color: var(--accent);
  box-shadow: var(--sh-2);
}
.wv-faq .wv-acc__item[open] summary { color: var(--accent-text); }
.wv-faq .wv-acc__item[open] summary::before { background: var(--accent); color: var(--on-accent); }
.wv-faq .wv-acc__body { padding: 0 18px 18px 66px; }
.wv-faq .wv-acc__body ul { padding-left: 18px; }
.wv-faq .wv-acc__body li { margin-bottom: 4px; }

@media (max-width: 900px) {
  .wv-faq { grid-template-columns: minmax(0, 1fr); }
  .wv-faq .wv-acc__body { padding-left: 18px; }
}

/* --------------------------------------------------------------------------
   15. Рейтинг
   -------------------------------------------------------------------------- */

/* Карточка «моя позиция» */
.wv-myrank {
  position: relative; overflow: hidden;
  display: grid; gap: 20px;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 22px 24px;
  border-radius: var(--r-xl);
  color: #fff;
  background:
    radial-gradient(120% 150% at 88% 12%, #2b3a86 0%, rgba(43,58,134,0) 58%),
    linear-gradient(135deg, #1b2564 0%, #141b4d 58%, #0f1438 100%);
  box-shadow: var(--sh-2);
}
.wv-myrank::after {
  content: ""; position: absolute; right: -60px; top: -70px;
  width: 300px; height: 300px;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1.4px, rgba(255, 255, 255, 0) 1.5px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 36%, #000 58%, transparent 66%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 30%, #000 36%, #000 58%, transparent 66%);
  opacity: .55; pointer-events: none;
}
.wv-myrank__place {
  position: relative; z-index: 1;
  display: grid; place-items: center; text-align: center;
  min-width: 96px; padding: 14px 18px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
}
.wv-myrank__num { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.wv-myrank__cap { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 6px; }
.wv-myrank__body { position: relative; z-index: 1; min-width: 0; }
.wv-myrank__title { font-size: 18px; font-weight: 700; }
.wv-myrank__sub { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 2px; }
.wv-myrank__stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px; margin-top: 16px;
}
.wv-myrank__stat {
  padding: 10px 12px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .08);
}
.wv-myrank__stat b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wv-myrank__stat span { font-size: 11.5px; color: rgba(255,255,255,.65); font-weight: 600; }
@media (max-width: 640px) {
  .wv-myrank { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .wv-myrank__place { justify-self: start; min-width: 0; padding: 10px 16px; display: flex; align-items: baseline; gap: 10px; }
  .wv-myrank__cap { margin-top: 0; }
}

/* Таблица лидеров */
.wv-lead { display: grid; gap: 8px; }
.wv-lead__head,
.wv-lead__row {
  display: grid;
  gap: 12px 14px;
  align-items: center;
  grid-template-columns:
    52px                 /* место */
    minmax(150px, 2fr)   /* врач */
    76px 66px 66px       /* направления, лиды, сделки */
    minmax(120px, 1fr)   /* выручка */
    minmax(120px, 1fr);  /* бонусы */
  grid-template-areas: "rank who dir leads deals rev bonus";
}
.wv-lead__head {
  padding: 0 16px 2px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-3);
}
.wv-lead__head span:nth-child(n+3) { text-align: right; }

.wv-lead__row {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.wv-lead__row:hover { border-color: var(--border-strong); box-shadow: var(--sh-1); }
.wv-lead__row.is-me {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.wv-lead__rank {
  grid-area: rank;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 13px;
  font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
  background: var(--surface-3); color: var(--text-2);
}
.wv-lead__rank--1 { background: linear-gradient(140deg, #f6c96b, #d99b20); color: #3a2604; }
.wv-lead__rank--2 { background: linear-gradient(140deg, #dfe4ee, #b3bccd); color: #303845; }
.wv-lead__rank--3 { background: linear-gradient(140deg, #eec39a, #c68a53); color: #3d2409; }

.wv-lead__who { grid-area: who; display: flex; align-items: center; gap: 10px; min-width: 0; }
.wv-lead__ava {
  flex: none; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 800;
  background: var(--accent-soft-2); color: var(--accent-text);
}
.wv-lead__name { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.25; }
.wv-lead__id { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 600; margin-top: 1px; }

.wv-lead__cell { font-size: 14px; color: var(--text-2); text-align: right; font-variant-numeric: tabular-nums; min-width: 0; }
.wv-lead__dir   { grid-area: dir; }
.wv-lead__leads { grid-area: leads; }
.wv-lead__deals { grid-area: deals; }
.wv-lead__rev   { grid-area: rev;   font-weight: 700; color: var(--text); }
.wv-lead__bonus { grid-area: bonus; }
.wv-lead__cell small { display: block; font-size: 11px; color: var(--text-3); font-weight: 600; }

@media (max-width: 1000px) {
  .wv-lead__head { display: none; }
  .wv-lead__row {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "rank  who"
      "rev   rev"
      "dir   dir"
      "leads leads"
      "deals deals"
      "bonus bonus";
    gap: 0 12px;
    padding: 14px 16px 6px;
  }
  .wv-lead__who { padding-bottom: 12px; }
  .wv-lead__rank { margin-bottom: 12px; }

  .wv-lead__row > .wv-lead__cell {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    text-align: left;
    padding: 9px 0;
    border-top: 1px dashed var(--border);
  }
  .wv-lead__row > .wv-lead__cell::before {
    content: attr(data-label);
    font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    color: var(--text-3);
  }
  .wv-lead__cell > span { text-align: right; }
}

/* Призовые места */
.wv-prizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wv-prize {
  padding: 18px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--sh-1);
}
.wv-prize__medal {
  width: 40px; height: 40px; border-radius: 13px; margin-bottom: 12px;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.wv-prize--1 .wv-prize__medal { background: linear-gradient(140deg, #f6c96b, #d99b20); color: #3a2604; }
.wv-prize--2 .wv-prize__medal { background: linear-gradient(140deg, #dfe4ee, #b3bccd); color: #303845; }
.wv-prize--3 .wv-prize__medal { background: linear-gradient(140deg, #eec39a, #c68a53); color: #3d2409; }
.wv-prize__sum { font-size: 19px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.wv-prize__text { font-size: 13px; color: var(--text-3); margin-top: 4px; line-height: 1.5; }
@media (max-width: 720px) { .wv-prizes { grid-template-columns: 1fr; } }

/* Подиум */
.wv-podium {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end;
}
.wv-podium__place {
  text-align: center; padding: 20px 14px;
  border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); box-shadow: var(--sh-1);
  position: relative; overflow: hidden;
}
.wv-podium__place--1 {
  order: 2;
  background: linear-gradient(160deg, #1b2564 0%, #141b4d 100%);
  border-color: transparent; color: #fff; padding-top: 28px; padding-bottom: 28px;
  box-shadow: var(--sh-2);
}
.wv-podium__place--1 .wv-podium__name, .wv-podium__place--1 .wv-podium__sum { color: #fff; }
.wv-podium__place--1 .wv-podium__sub { color: rgba(255,255,255,.65); }
.wv-podium__place--2 { order: 1; }
.wv-podium__place--3 { order: 3; }
.wv-podium__medal {
  width: 46px; height: 46px; margin: 0 auto 12px;
  display: grid; place-items: center; border-radius: 50%;
  font-size: 18px; font-weight: 800;
  background: var(--surface-3); color: var(--text-2);
}
.wv-podium__place--1 .wv-podium__medal { background: linear-gradient(140deg, #f6c96b, #d99b20); color: #3a2604; }
.wv-podium__place--2 .wv-podium__medal { background: linear-gradient(140deg, #dfe4ee, #b3bccd); color: #303845; }
.wv-podium__place--3 .wv-podium__medal { background: linear-gradient(140deg, #eec39a, #c68a53); color: #3d2409; }
.wv-podium__name { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.35; }
.wv-podium__sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.wv-podium__sum { font-size: 19px; font-weight: 800; margin-top: 10px; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .wv-podium { grid-template-columns: 1fr; }
  .wv-podium__place--1, .wv-podium__place--2, .wv-podium__place--3 { order: initial; }
  .wv-podium__place { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; }
  .wv-podium__medal { margin: 0; }
  .wv-podium__sum { margin: 0 0 0 auto; }
}

/* --------------------------------------------------------------------------
   16. Лента новостей
   -------------------------------------------------------------------------- */
.wv-post { padding: 0; overflow: hidden; }
.wv-post__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 0; }
.wv-post__title { font-size: 18px; font-weight: 700; padding: 14px 18px 0; }
.wv-post__meta { font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.wv-post__body { padding: 10px 18px 16px; font-size: 14.5px; color: var(--text-2); line-height: 1.65; }
.wv-post__media { display: block; width: 100%; max-height: 460px; object-fit: cover; }
.wv-post__tools { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); }
.wv-post__tool {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: var(--r-sm); border: 0;
  background: transparent; color: var(--text-2);
  font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.wv-post__tool:hover { background: var(--surface-3); color: var(--text); }
.wv-post__tool svg { width: 18px; height: 18px; }
.wv-post__tool.active, .wv-post__tool.is-active { color: var(--danger); }
.wv-comments { border-top: 1px solid var(--border); background: var(--surface-2); padding: 14px 18px; }
.wv-comments ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.wv-comments .commenter { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; }
.wv-comments .commenter h5 { font-size: 13.5px; font-weight: 700; margin: 0; }
.wv-comments .commenter > span { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.wv-comments .commenter p { font-size: 14px; color: var(--text-2); margin: 6px 0 0; }
.wv-comments .comment-actions { display: flex; gap: 12px; margin-top: 8px; }
.wv-comments .comment-actions a { font-size: 12px; font-weight: 700; }
.wv-commentform { display: flex; gap: 10px; margin-top: 12px; }
.wv-commentform .wv-input { min-height: 44px; }
.text-field-coments { width: 100%; min-height: 70px; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm); }
.load-more-comments { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent-text); cursor: pointer; }

/* --------------------------------------------------------------------------
   17. Страница входа
   -------------------------------------------------------------------------- */
.wv-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
.wv-auth__art {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  align-items: flex-start; /* иначе flex растягивает логотип по ширине колонки */
  padding: 44px;
  color: #fff;
  background:
    radial-gradient(120% 120% at 78% 18%, #2c3c8c 0%, rgba(44,60,140,0) 58%),
    linear-gradient(150deg, #1b2564 0%, #141b4d 52%, #0d1234 100%);
}
.wv-auth__art::after {
  content: "";
  position: absolute; right: -150px; bottom: -170px;
  width: 640px; height: 640px;
  background-image: radial-gradient(rgba(255, 255, 255, .5) 1.7px, rgba(255, 255, 255, 0) 1.8px);
  background-size: 15px 15px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, transparent 26%, #000 32%, #000 56%, transparent 64%);
  mask-image: radial-gradient(circle at 50% 50%, transparent 26%, #000 32%, #000 56%, transparent 64%);
  opacity: .75;
}
/* «Зрачок» в центре халфтон-кольца */
.wv-auth__art::before {
  content: "";
  position: absolute; right: 50px; bottom: 30px;
  width: 240px; height: 240px; border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(174, 190, 255, .30) 0%, rgba(90, 110, 210, .12) 48%, rgba(255, 255, 255, 0) 70%);
}
.wv-auth__art-inner { position: relative; z-index: 1; max-width: 30ch; }
.wv-auth__art h2 { color: #fff; font-size: 32px; line-height: 1.2; margin-bottom: 14px; }
.wv-auth__art p { color: rgba(255,255,255,.72); font-size: 15px; }
.wv-auth__points { position: relative; z-index: 1; display: grid; gap: 14px; margin-top: 28px; }
.wv-auth__point { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.86); }
.wv-auth__point svg { width: 20px; height: 20px; flex: none; color: #9fb0ff; margin-top: 2px; }

.wv-auth__form { display: grid; place-items: center; padding: 40px 24px; }
.wv-auth__box { width: 100%; max-width: 400px; }
.wv-auth__logo {
  height: 40px; width: auto; max-width: none;
  align-self: flex-start; flex: none; object-fit: contain;
  margin-bottom: 28px;
}
.wv-auth__title { font-size: 26px; margin-bottom: 6px; }
.wv-auth__lead { font-size: 14.5px; color: var(--text-3); margin-bottom: 26px; }

@media (max-width: 900px) {
  .wv-auth { grid-template-columns: 1fr; }
  .wv-auth__art { display: none; }
  .wv-auth__form { align-items: start; padding-top: 56px; }
}

/* Поле пароля с кнопкой показа */
.wv-inputgroup { position: relative; }
.wv-inputgroup .wv-input { padding-right: 50px; }
.wv-inputgroup__btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text-3); cursor: pointer;
}
.wv-inputgroup__btn:hover { color: var(--accent-text); background: var(--surface-3); }
.wv-inputgroup__btn svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   18. Разное
   -------------------------------------------------------------------------- */
.wv-video { position: relative; padding-top: 56.25%; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-3); }
.wv-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.wv-contact {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--surface);
  transition: border-color .16s ease, background .16s ease;
  color: var(--text);
}
.wv-contact:hover { border-color: var(--accent); color: var(--text); }
.wv-contact__icon { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--accent-text); }
.wv-contact__icon svg { width: 20px; height: 20px; }
.wv-contact__label { font-size: 12px; color: var(--text-3); font-weight: 600; }
.wv-contact__value { font-size: 14.5px; font-weight: 700; }

.wv-linkcard {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border-radius: var(--r-lg);
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--sh-1); color: var(--text);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.wv-linkcard:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--border-strong); color: var(--text); }
.wv-linkcard__icon { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-text); }
.wv-linkcard__icon svg { width: 22px; height: 22px; }
.wv-linkcard__title { font-size: 15px; font-weight: 700; }
.wv-linkcard__desc { font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.wv-linkcard__arrow { margin-left: auto; color: var(--text-3); }

.wv-divider { height: 1px; background: var(--border); margin: 24px 0; border: 0; }

.wv-muted { color: var(--text-3); }
.wv-small { font-size: 13px; }
.wv-strong { font-weight: 700; color: var(--text); }
.wv-center { text-align: center; }
.wv-nowrap { white-space: nowrap; }
.wv-mt-0 { margin-top: 0; }
.wv-mt-8 { margin-top: 8px; }
.wv-mt-16 { margin-top: 16px; }
.wv-mt-24 { margin-top: 24px; }
.wv-mb-0 { margin-bottom: 0; }
.wv-mb-8 { margin-bottom: 8px; }
.wv-mb-16 { margin-bottom: 16px; }
.wv-gap-8 { gap: 8px; }
.wv-flex1 { flex: 1; }
.wv-hide-mobile { }
.wv-only-mobile { display: none; }
@media (max-width: 767px) {
  .wv-hide-mobile { display: none !important; }
  .wv-only-mobile { display: block; }
}

/* Скелетон загрузки */
.wv-skeleton {
  background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%);
  background-size: 400% 100%;
  animation: wv-shimmer 1.4s ease infinite;
  border-radius: var(--r-sm);
}
@keyframes wv-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

@media print {
  .wv-sidebar, .wv-topbar, .wv-mobilebar, .wv-bottomnav, .wv-toasts, .wv-foot { display: none !important; }
  .wv-main { margin: 0; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
