/**
 * Витрина Каллисто — «Звёздная ночь».
 *
 * Отдельный файл от кабинета намеренно. Витрина и рабочее пространство решают разные
 * задачи: витрина объясняет и уговаривает, кабинет — рабочий инструмент, в котором
 * украшения мешают. Общее у них одно — палитра из брендбука, и она продублирована здесь
 * осознанно: связывать витрину переменными кабинета значит, что правка кнопки в календаре
 * поедет на главную страницу.
 *
 * Витрина всегда ночная: это фирменный стиль, а не выбор пользователя. Светлая тема —
 * только у рабочего пространства, где человек проводит часы.
 */

:root {
  --night: #060a13;
  --night-2: #0a1220;
  --night-3: #0f1a2c;
  --surface: rgba(18, 28, 46, 0.72);
  --surface-solid: #101a2c;
  --line: rgba(120, 160, 220, 0.16);
  --line-strong: rgba(120, 160, 220, 0.3);

  --ink: #e9eff9;
  --ink-2: #c3d0e4;
  --muted: #8ba0c0;

  --accent: #6ba5e7;
  --accent-2: #8fc0f0;
  --accent-deep: #4b86cf;
  --accent-soft: rgba(107, 165, 231, 0.14);

  --ok: #5ed3a2;
  --danger: #f08585;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 0.75, 0.28, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Небо лежит под всем и не прокручивается: звёзды — это фон комнаты, а не элемент
   страницы. Canvas без указателя, чтобы не перехватывать нажатия. */
#sky {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(90rem 60rem at 20% -20%, #101d33 0%, transparent 60%),
    radial-gradient(70rem 50rem at 100% 10%, #0d1728 0%, transparent 55%),
    linear-gradient(180deg, #070c17 0%, #060a13 45%, #05080f 100%);
}

.wrap { position: relative; z-index: 1; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 640; }
h1 { font-size: clamp(32px, 5.2vw, 56px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: 19px; }
p { color: var(--ink-2); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── Шапка ───────────────────────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(6, 10, 19, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .container { display: flex; align-items: center; gap: 20px; height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 640; letter-spacing: -0.01em; }
.logo svg { width: 26px; height: 26px; }
.logo span { font-size: 17px; }

.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 14.5px; transition: color 160ms var(--ease); }
.site-nav a:hover { color: var(--ink); }

/* Две кнопки в шапке: вход тихий, регистрация заметная */
.head-actions { display: flex; gap: 8px; align-items: center; margin-left: 22px; }
@media (max-width: 720px) {
  /* На телефоне в шапке помещается ровно одно действие — оставляем главное */
  .head-actions .btn.ghost { display: none; }
  .head-actions { margin-left: auto; }
}

/* ── Кнопки ──────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer;
  font-size: 15px; font-weight: 560; font-family: inherit;
  background: var(--accent); color: #05101f;
  transition: transform 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
  box-shadow: 0 8px 28px -12px rgba(107, 165, 231, 0.8);
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none;
}
.btn.ghost:hover { background: rgba(107, 165, 231, 0.1); border-color: var(--accent); }
.btn.sm { padding: 8px 15px; font-size: 13.5px; }
.btn.wide { width: 100%; }

/* ── Первый экран ────────────────────────────────────────── */

.hero { padding: clamp(56px, 9vw, 110px) 0 clamp(40px, 6vw, 72px); }
.hero-inner { max-width: 780px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line-strong);
  padding: 6px 13px; border-radius: var(--radius-pill); margin-bottom: 22px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .soft { color: var(--muted); }
.hero .lead { font-size: clamp(16.5px, 2vw, 19px); max-width: 620px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { font-size: 13.5px; color: var(--muted); margin-top: 16px; }

/* ── Секции ──────────────────────────────────────────────── */

.section { padding: clamp(48px, 7vw, 90px) 0; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 16.5px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(10px);
}

.grid { display: grid; gap: 18px; }
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 640; margin-bottom: 14px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 14.5px; }

/* ── Демонстрация ────────────────────────────────────────── */

.demo {
  display: grid; grid-template-columns: 1fr 380px; gap: 18px;
  align-items: stretch;
}
.demo-pane {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; min-height: 460px;
  backdrop-filter: blur(10px);
}
.pane-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.pane-head b { color: var(--ink); font-weight: 560; font-size: 14px; }

/* Левая половина — то, что видит салон */
.day-strip { display: flex; gap: 6px; padding: 12px 16px 4px; }
.day-chip {
  font-size: 12px; padding: 5px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); color: var(--muted);
}
.day-chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.sched { padding: 10px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.slot {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 12px;
  border: 1px dashed var(--line); color: var(--muted); font-size: 14px;
  transition: all 260ms var(--ease);
}
.slot .time { font-variant-numeric: tabular-nums; font-size: 13px; min-width: 44px; color: var(--muted); }
.slot.free { border-style: dashed; }
.slot.hl { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }
.slot.busy {
  border-style: solid; border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03); color: var(--ink-2);
}
.slot.booked {
  border-style: solid; border-color: rgba(94, 211, 162, 0.5);
  background: rgba(94, 211, 162, 0.1); color: var(--ink);
  animation: land 520ms var(--ease);
}
.slot .who { font-weight: 560; }
.slot .meta { margin-left: auto; font-size: 12px; color: var(--muted); }

@keyframes land {
  0% { opacity: 0; transform: translateY(-8px) scale(0.98); }
  60% { opacity: 1; transform: translateY(2px) scale(1.005); }
  100% { opacity: 1; transform: none; }
}

.sched-note {
  margin: 0 16px 16px; padding: 11px 13px; border-radius: 12px;
  background: rgba(94, 211, 162, 0.08); border: 1px solid rgba(94, 211, 162, 0.28);
  font-size: 13px; color: var(--ink-2);
}

/* Правая половина — чат клиента */
.chat { flex: 1; display: flex; flex-direction: column; }
.chat-log {
  flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  overflow-y: auto; max-height: 340px; scroll-behavior: smooth;
}
.msg {
  max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5;
  animation: pop 260ms var(--ease);
  white-space: pre-line;
}
.msg.bot { background: var(--surface-solid); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.me {
  align-self: flex-end; background: var(--accent); color: #05101f;
  border-bottom-right-radius: 5px; font-weight: 500;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.typing { display: flex; gap: 4px; padding: 12px 14px; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: blink 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

.chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; }
.chip {
  font-size: 13px; padding: 7px 13px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2);
  cursor: pointer; font-family: inherit;
  transition: all 160ms var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.chat-input { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.chat-input input {
  flex: 1; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: var(--ink); border-radius: var(--radius-pill); padding: 10px 15px;
  font-size: 14px; font-family: inherit; min-width: 0;
}
.chat-input input::placeholder { color: var(--muted); }
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-input button {
  border: none; background: var(--accent); color: #05101f; cursor: pointer;
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.chat-input button svg { width: 17px; height: 17px; }

.demo-foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 14px; font-size: 13.5px; color: var(--muted);
}

/* ── Тарифы ──────────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--accent); box-shadow: 0 24px 60px -30px rgba(107, 165, 231, 0.55); }
.plan-tag {
  position: absolute; top: -11px; left: 26px;
  background: var(--accent); color: #05101f; font-size: 11.5px; font-weight: 620;
  padding: 3px 11px; border-radius: var(--radius-pill);
}
.plan h3 { margin-bottom: 4px; }
.plan .tagline { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.plan .price { font-size: 34px; font-weight: 660; letter-spacing: -0.03em; }
.plan .price span { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 9px; }
.plan li { font-size: 14px; color: var(--ink-2); display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--accent); }
.plan .btn { margin-top: auto; }

/* ── Таблица и списки ────────────────────────────────────── */

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 34px; }
.fact { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fact dt { font-size: 12.5px; color: var(--muted); }
.fact dd { font-size: 15px; color: var(--ink); }

/* Незаполненный реквизит должен быть виден издалека, иначе он уедет на модерацию */
.todo { color: var(--danger); border-bottom: 1px dashed var(--danger); }

/*
 * Вопросы и ответы.
 *
 * Раскрытие анимировано, и это не украшение: без анимации ответ выскакивает рывком,
 * страница под ним прыгает, и человек теряет строку, которую читал.
 *
 * Почему не нативный <details>. Он выглядел бы уместнее всего, но содержимое закрытого
 * <details> браузер не отрисовывает вообще, и при открытии оно появляется сразу нужной
 * высоты — анимировать нечего (проверено: шесть кадров подряд одна и та же высота).
 * Поэтому здесь обычная кнопка с панелью: панель существует всегда, просто сжата в ноль.
 *
 * Высота едет через `grid-template-rows: 0fr → 1fr` — так панель доезжает до своей
 * собственной высоты, какой бы длины ни был ответ. Жёсткий `max-height` пришлось бы
 * задавать «с запасом», и на длинном ответе он либо обрезает текст, либо анимация
 * половину времени идёт по пустоте.
 */
.qa { display: flex; flex-direction: column; gap: 2px; }
.qa-item { border-bottom: 1px solid var(--line); }

.qa-q {
  width: 100%; background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 540; color: var(--ink);
  text-align: left; padding: 18px 0;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  transition: color 180ms var(--ease);
}
.qa-q:hover { color: var(--accent-2); }

/* Знак «+» — две палочки, а не символ: типографский плюс скачет по базовой линии от
   шрифта к шрифту, а фигура поворачивается плавно и одинаково везде. */
.qa-q .sign {
  position: relative; flex: none; width: 16px; height: 16px; color: var(--accent);
  transition: transform 320ms var(--ease);
}
.qa-q .sign::before,
.qa-q .sign::after {
  content: ''; position: absolute; inset: 50% 0 auto 0;
  height: 1.6px; background: currentColor; border-radius: 2px; transform: translateY(-50%);
  transition: transform 320ms var(--ease), opacity 200ms var(--ease);
}
.qa-q .sign::after { transform: translateY(-50%) rotate(90deg); }
.qa-q[aria-expanded='true'] .sign { transform: rotate(180deg); }
/* Вертикальная палочка исчезает — «плюс» становится «минусом» */
.qa-q[aria-expanded='true'] .sign::after { transform: translateY(-50%) rotate(90deg) scaleX(0); opacity: 0; }

.qa .answer {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows 340ms var(--ease), opacity 260ms var(--ease);
}
.qa .answer > div { overflow: hidden; }
.qa .answer.on { grid-template-rows: 1fr; opacity: 1; }

.qa p { margin: 0 0 18px; font-size: 14.5px; }

@media (prefers-reduced-motion: reduce) {
  .qa .answer { transition: none; }
}

/* ── Подвал ──────────────────────────────────────────────── */

.site-foot { border-top: 1px solid var(--line); padding: 40px 0 56px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { font-size: 13px; color: var(--muted); font-weight: 560; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a, .foot-links span { font-size: 14px; color: var(--ink-2); }
.foot-note { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ── Вход поверх витрины ─────────────────────────────────── */

.auth-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(4, 8, 15, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity 300ms var(--ease);
}
.auth-overlay.on { opacity: 1; pointer-events: auto; }

.auth-panel {
  width: 400px; max-width: 100%;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform 340ms var(--ease), opacity 300ms var(--ease);
}
.auth-overlay.on .auth-panel { transform: none; opacity: 1; }

.auth-panel h3 { margin-bottom: 6px; font-size: 22px; }
.auth-panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 11px 14px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: var(--ink); font-size: 15px; font-family: inherit;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field select {
  width: 100%; padding: 11px 14px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  color: var(--ink); font-size: 15px; font-family: inherit; appearance: none;
  /* Стрелка своя: системная в тёмной теме рисуется чёрным по тёмному и пропадает */
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field select option { background: #0d1526; color: var(--ink); }
.field .hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* Две вкладки вместо двух страниц: переключение без перезагрузки */
.auth-tabs {
  display: flex; gap: 4px; margin-bottom: 20px; padding: 4px;
  background: rgba(255, 255, 255, 0.04); border-radius: 12px;
}
.auth-tab {
  flex: 1; padding: 9px 12px; border: none; border-radius: 9px; cursor: pointer;
  background: none; color: var(--muted); font-family: inherit; font-size: 14px; font-weight: 540;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.auth-tab.on { background: rgba(107, 165, 231, 0.16); color: var(--ink); }
.auth-tab:hover:not(.on) { color: var(--ink); }

/* Виды переключаются мгновенно, но с проявлением: панель не должна «моргать» */
.auth-view { display: none; }
.auth-view.on { display: block; animation: viewIn 260ms var(--ease); }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--muted); margin: 16px 0 18px; cursor: pointer;
}
.check input { margin-top: 2px; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent-2); }

.auth-swap { margin-top: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-swap .linkish {
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit;
  font-size: 13px; color: var(--accent-2); text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .auth-view.on { animation: none; }
}

.auth-err {
  background: rgba(240, 133, 133, 0.12); border: 1px solid rgba(240, 133, 133, 0.4);
  color: #ffc9c9; font-size: 13.5px; padding: 10px 13px; border-radius: 11px; margin-bottom: 14px;
}
.auth-close {
  position: absolute; top: 18px; right: 20px; background: none; border: none;
  color: var(--muted); font-size: 22px; cursor: pointer; line-height: 1;
}

/*
 * Занавес перехода в рабочее пространство.
 *
 * Кабинет — отдельная страница, и без занавеса переход выглядит как моргание: ночь,
 * белая вспышка, кабинет. Занавес закрывает этот стык: витрина уходит в ночь, кабинет
 * из ночи проявляется (там свой такой же элемент). Ночь общая — стыка не видно.
 */
.curtain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: radial-gradient(60rem 40rem at 50% 40%, #10203a, #060a13 70%);
  opacity: 0; transition: opacity 420ms var(--ease);
}
.curtain.on { opacity: 1; pointer-events: auto; }
.curtain .mark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
  width: 54px; height: 54px; color: var(--accent); opacity: 0;
  transition: opacity 380ms var(--ease) 60ms, transform 520ms var(--ease) 60ms;
}
.curtain.on .mark { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ── Телефон ─────────────────────────────────────────────── */

.only-narrow { display: none; }

@media (max-width: 940px) {
  .only-wide { display: none; }
  .only-narrow { display: block; }
  .demo { grid-template-columns: 1fr; }
  /* На телефоне сначала показываем чат: человек трогает пальцем именно его, а результат
     смотрит следом. На широком экране порядок обратный — глаз идёт слева направо. */
  .demo-chat { order: -1; min-height: 0; }
  .chat-log { max-height: 260px; }
  .demo-sched { min-height: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .container { padding: 0 18px; }
  .card { padding: 20px; }
  .hero { padding-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Подключение ВКонтакте ───────────────────────────────── */

.vk-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px 18px; }
.vk-card {
  width: 100%; max-width: 560px; padding: 34px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.vk-card .logo { margin-bottom: 22px; }
.vk-card h1 { font-size: 24px; margin-bottom: 10px; }
.vk-card .lead { font-size: 15px; margin-bottom: 22px; }

.vk-groups { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.vk-group {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 14px; border-radius: 14px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  color: var(--ink); font-family: inherit;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), transform 180ms var(--ease);
}
.vk-group:hover { border-color: var(--accent); background: rgba(107, 165, 231, 0.08); }
.vk-group:active { transform: scale(0.995); }
.vk-group img, .vk-ph { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; }
.vk-ph { background: rgba(255, 255, 255, 0.08); }
.vk-group-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.vk-group-text b { font-size: 15px; font-weight: 560; }
.vk-group-text span { font-size: 12.5px; color: var(--muted); }
.vk-pick { font-size: 13px; color: var(--accent-2); flex: none; }

.vk-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vk-note {
  font-size: 13px; color: var(--muted); line-height: 1.6;
  padding: 14px 16px; margin-bottom: 20px;
  background: rgba(107, 165, 231, 0.07); border: 1px solid rgba(107, 165, 231, 0.2);
  border-radius: 12px;
}
.vk-warn {
  font-size: 13.5px; color: #ffd9a0; line-height: 1.6;
  padding: 14px 16px; margin-bottom: 18px;
  background: rgba(224, 164, 88, 0.1); border: 1px solid rgba(224, 164, 88, 0.3);
  border-radius: 12px;
}

/* Ожидание: круг вращается, а не «прыгает» — так меньше ощущение зависания */
.vk-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2.5px solid rgba(107, 165, 231, 0.2); border-top-color: var(--accent);
  animation: vkSpin 900ms linear infinite;
}
@keyframes vkSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .vk-spinner { animation-duration: 2.4s; }
}

@media (max-width: 560px) {
  .vk-card { padding: 24px 20px; }
  .vk-pick { display: none; }
}
