/* Шрифт Onest (SIL Open Font License), локальные файлы: без запросов к Google. */
@font-face{font-family:Onest;font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/onest-cyrillic.woff2) format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}
@font-face{font-family:Onest;font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/onest-cyrillic-ext.woff2) format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:Onest;font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/onest-latin-ext.woff2) format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:Onest;font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/onest-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--font-sans:Onest}
/* Атрибут hidden сильнее display у классов: так скрываются зависимые поля формы и пустые блоки. */
[hidden]{display:none !important}


/* ===== globals.css ===== */
/*
 * Дизайн-токены. Градиент подобран по изображению palette-source-only.jpg
 * (усреднение цветных пикселей по горизонтальным полосам). Это визуально подобранная
 * палитра, не официальный брендбук. Подробнее — docs/DESIGN.md.
 */
:root {
  /* Градиент из образца: синий → бирюзовый → мятный */
  --grad-blue: #40a2dc;
  --grad-teal: #5cb2c6;
  --grad-mint: #85c590;
  --gradient: linear-gradient(120deg, var(--grad-blue) 0%, var(--grad-teal) 52%, var(--grad-mint) 100%);

  /* Интерфейс */
  --accent: #1e6fa8; /* основной синий для кнопок и ссылок: контраст с белым 5.4:1 */
  --accent-hover: #185c8c;
  --accent-soft: #e8f3fa;
  --mint-soft: #ebf6ee;
  --teal-ink: #26746e; /* второй акцент для текста — контраст ≥ 4.9:1 на светлых поверхностях */

  --ink: #10243a;
  --ink-2: #3c5064;
  --ink-3: #5f7183; /* вторичный текст — контраст 4.9:1 на белом */
  --line: #dde6ec;
  --line-strong: #c4d2dc;
  --surface: #ffffff;
  --surface-2: #f5f8fa;
  --page: #f8fafb;

  --danger: #b42318;
  --danger-soft: #fdf0ef;
  --success: #1f7a4d;
  --success-soft: #edf7f1;
  --warning-soft: #fff7e6;
  --warning-ink: #7a4b00;

  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 20px;
  --shadow-s: 0 1px 2px rgba(16, 36, 58, 0.06);
  --shadow: 0 6px 24px -8px rgba(16, 36, 58, 0.14);
  --focus: 0 0 0 3px rgba(30, 111, 168, 0.35);

  --container: 1200px;
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);

  color-scheme: light;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 650;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-s);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ------------------------------------------------------------------ кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Ключевой CTA главной: градиентная подсветка рамки, текст на тёмном синем — контраст сохраняется. */
.btn-glow {
  background:
    linear-gradient(var(--accent), var(--accent)) padding-box,
    var(--gradient) border-box;
  border: 2px solid transparent;
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(64, 162, 220, 0.75);
}

.btn-glow:hover {
  background:
    linear-gradient(var(--accent-hover), var(--accent-hover)) padding-box,
    var(--gradient) border-box;
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  padding-inline: 14px;
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

/* ------------------------------------------------------------------ уведомления */

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 15px;
}

.notice strong {
  font-weight: 650;
}

.notice-success {
  background: var(--success-soft);
  border-color: #b9e0c9;
  color: #134d31;
}

.notice-error {
  background: var(--danger-soft);
  border-color: #f3c3be;
  color: #7a1810;
}

.notice-warning {
  background: var(--warning-soft);
  border-color: #f1d9a6;
  color: var(--warning-ink);
}

.notice-info {
  background: var(--accent-soft);
  border-color: #c6e0f1;
  color: #164e78;
}

.demo-banner {
  background: var(--warning-soft);
  color: var(--warning-ink);
  border-bottom: 1px solid #f1d9a6;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  padding: 6px 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.badge-available {
  background: var(--success-soft);
  color: var(--success);
  border-color: #b9e0c9;
}

.badge-pending {
  background: var(--surface-2);
  color: var(--ink-3);
}

.badge-demo {
  background: var(--warning-soft);
  color: var(--warning-ink);
  border-color: #f1d9a6;
}

/* ------------------------------------------------------------------ появление блоков (только главная) */

[data-reveal] {
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.8s ease;
}

/* Blur Fade: блок проявляется из лёгкого размытия */
[data-reveal="pending"] {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition: none;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ------------------------------------------------------------------ анимационные приёмы главной
 * Источники идей — каталоги 21st.dev и Magic UI (Text Animate, Shimmer Button, Border Beam,
 * Magic Card, Ripple). Реализованы на CSS без зависимостей. Включаются только при
 * prefers-reduced-motion: no-preference; кабинет и формы их не используют.
 */

@property --beam-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* Border Beam: по рамке карточки бежит световой импульс градиента */
.border-beam {
  position: relative;
  isolation: isolate;
}

.border-beam::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  background: conic-gradient(
    from var(--beam-angle),
    transparent 0deg,
    transparent 250deg,
    var(--grad-blue) 300deg,
    var(--grad-mint) 345deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
}

/* Magic Card: мягкая подсветка, следующая за курсором (координаты задаёт Spotlight) */
.spotlight {
  position: relative;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    rgba(92, 178, 198, 0.16),
    rgba(64, 162, 220, 0.06) 40%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .spotlight:hover::after {
    opacity: 1;
  }
}

/* Text Animate: слова заголовка проявляются по очереди из размытия */
.word {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .border-beam::before {
    opacity: 1;
    animation: beam-spin 7s linear infinite;
  }

  .word {
    animation: word-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--i, 0) * 70ms + 80ms);
  }

  .fade-up {
    animation: fade-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: var(--d, 0ms);
  }

  /* Shimmer Button: по ключевой кнопке периодически проходит блик */
  .btn-glow {
    position: relative;
    overflow: hidden;
  }

  .btn-glow::after {
    content: "";
    position: absolute;
    inset: -2px;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.38) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: shimmer 4.5s ease-in-out 1.6s infinite;
  }
}

@keyframes beam-spin {
  to {
    --beam-angle: 360deg;
  }
}

@keyframes word-in {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(0.35em);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-120%);
  }
  45%,
  100% {
    transform: translateX(120%);
  }
}

/* Scroll Progress: тонкая градиентная полоса прогресса чтения главной */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 2px;
  background: var(--gradient);
  transform-origin: left center;
  transform: scaleX(var(--page-p, 0));
  pointer-events: none;
}

/* Акцентная строка заголовка: тёмный вариант градиента (контраст крупного текста ≥ 3:1),
   цвета медленно перетекают. Градиент — на каждом слове, т. к. слова анимируются отдельно. */
.accent-flow .word {
  background: linear-gradient(90deg, #1e6fa8 0%, #2a86a8 30%, #26746e 50%, #2a86a8 70%, #1e6fa8 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

@media (prefers-reduced-motion: no-preference) {
  .accent-flow .word {
    animation:
      word-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both,
      accent-flow 9s ease-in-out infinite alternate;
    animation-delay: calc(var(--i, 0) * 70ms + 80ms), 1.2s;
  }
}

@keyframes accent-flow {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}


/* ===== SiteHeader.module.css → префикс hdr- ===== */
.hdr-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 251, 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(221, 230, 236, 0.7);
}

.hdr-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.hdr-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
  font-size: 17px;
  white-space: nowrap;
}

.hdr-brandText {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.hdr-brandSub {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-2);
}

.hdr-brand:hover {
  color: var(--ink);
}

.hdr-mark {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background:
    linear-gradient(var(--page), var(--page)) padding-box,
    var(--gradient) border-box;
  border: 2px solid transparent;
}

.hdr-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 2px;
  background: var(--gradient);
  opacity: 0.85;
}

.hdr-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.hdr-nav a {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.hdr-nav a:hover {
  color: var(--ink);
  background: rgba(16, 36, 58, 0.05);
}

.hdr-cta {
  flex: none;
}

@media (max-width: 860px) {
  .hdr-nav {
    display: none;
  }

  .hdr-cta {
    margin-left: auto;
  }

  .hdr-brand {
    min-width: 0;
    white-space: normal;
  }

  .hdr-brandText {
    font-size: 15px;
  }

  .hdr-brandSub {
    display: none;
  }
}

@media (max-width: 480px) {
  .hdr-inner {
    gap: 12px;
  }

  .hdr-brandText {
    font-size: 14px;
  }
}

.hdr-menu {
  display: none;
  position: relative;
}

.hdr-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: var(--surface);
}

.hdr-menu summary::-webkit-details-marker {
  display: none;
}

.hdr-menuPanel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  min-width: 210px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hdr-menuPanel a {
  padding: 12px;
  border-radius: var(--radius-s);
  color: var(--ink);
  text-decoration: none;
}

.hdr-menuPanel a:hover {
  background: var(--surface-2);
}

@media (max-width: 860px) {
  .hdr-menu {
    display: block;
    margin-left: auto;
  }

  .hdr-menu ~ .hdr-cta {
    margin-left: 0;
  }
}

.hdr-ctaShort {
  display: none;
}

@media (max-width: 480px) {
  .hdr-ctaFull {
    display: none;
  }

  .hdr-ctaShort {
    display: inline;
  }
}

@media (max-width: 340px) {
  .hdr-brandText {
    display: none;
  }
}

@media (max-width: 400px) {
  .hdr-brandText {
    font-size: 13px;
  }
}

/* Название регистра длинное: до 1100 px ссылки разделов уходят в «Меню», иначе шапка шире окна */
@media (max-width: 1100px) {
  .hdr-nav {
    display: none;
  }

  .hdr-menu {
    display: block;
    margin-left: auto;
  }

  .hdr-menu ~ .hdr-cta {
    margin-left: 0;
  }
}


/* ===== home.module.css → префикс home- ===== */
/* ================================================================== первый экран: схема 02 */

/* Контент поверх фиксированной фоновой сцены */
.home-main {
  position: relative;
  z-index: 1;
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Ровно один экран под шапкой: ниже ничего не выглядывает */
  min-height: max(560px, calc(100svh - var(--header-h)));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/*
 * Мягкий параллакс (по распространённой практике: лёгкий сдвиг только в первом экране,
 * родная прокрутка, ничего не закрепляется). Первый экран уезжает как обычно; его фон
 * отстаёт примерно на 20%, текст слегка бледнеет у верхнего края. Включается только
 * без prefers-reduced-motion (класс hero-motion ставит ScrollProgress).
 */
html.hero-motion .home-heroInner {
  opacity: clamp(0, calc(1.15 - var(--hero-p, 0) * 1.5), 1);
  transform: translateY(calc(var(--hero-p, 0) * -40px));
}

html.hero-motion .home-scrollHint {
  opacity: clamp(0, calc(1 - var(--hero-p, 0) * 5), 1);
}

/* Мягкий переход дуги в фон страницы у нижнего края */
.home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(248, 250, 251, 0), var(--page));
  pointer-events: none;
}

.home-heroInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* нижний отступ держит текст выше светящегося горизонта */
  padding-block: 48px 210px;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 550;
}

.home-eyebrowDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px rgba(92, 178, 198, 0.18);
}

.home-heroTitle {
  margin-top: 26px;
  font-size: clamp(36px, 5.3vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 1120px;
}

.home-heroTitleLine {
  display: block;
}

.home-heroTitleTail {
  margin-top: 0.35em;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink-2);
}


.home-heroLead {
  position: relative;
  margin-top: 24px;
  max-width: 640px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-2);
}

.home-heroActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.home-heroFacts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.home-heroFacts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-heroFacts li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

/* Подсказка прокрутки */
.home-scrollHint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: grid;
  place-items: start center;
  width: 26px;
  height: 40px;
  padding-top: 8px;
  border-radius: 999px;
  border: 1.5px solid rgba(30, 111, 168, 0.35);
  background: rgba(255, 255, 255, 0.6);
}

.home-scrollHint span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .home-scrollHint span {
    animation: home-hint 1.8s ease-in-out infinite;
  }
}

@keyframes home-hint {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(12px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

/* ================================================================== о регистре */

.home-aboutGrid {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-aboutCard {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 26px 30px;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--surface);
}

.home-aboutCard h3 {
  font-size: 19px;
}

.home-aboutCard p {
  color: var(--ink-2);
  font-size: 15px;
}

.home-principleIcon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--accent);
  background:
    linear-gradient(var(--accent-soft), var(--accent-soft)) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
}

@media (max-width: 860px) {
  .home-hero {
    min-height: 0;
  }

  .home-heroInner {
    padding-block: 36px 170px;
  }

  .home-heroActions {
    width: 100%;
  }

  .home-heroActions .btn {
    flex: 1 1 100%;
  }

  .home-heroFacts {
    flex-direction: column;
    align-items: center;
  }

  .home-scrollHint {
    display: none;
  }

  .home-aboutGrid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .home-aboutCard {
    padding: 20px 18px 22px;
  }
}

/* ================================================================== общие секции */

.home-section {
  position: relative;
  z-index: 1;
  padding-block: clamp(64px, 9vw, 112px) 0;
}

.home-sectionHead {
  max-width: 680px;
}

.home-kicker {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.home-sectionTitle {
  margin-top: 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.025em;
}

.home-sectionLead {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 17px;
}

/* ================================================================== шаги */

.home-steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.home-step {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 26px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  counter-increment: step;
}

.home-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-3);
}

.home-step h3 {
  font-size: 19px;
  /* место под номер шага в правом верхнем углу */
  padding-right: 34px;
}

.home-step p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
}

.home-stepIcon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--accent);
  background:
    linear-gradient(var(--accent-soft), var(--accent-soft)) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
}

@media (max-width: 860px) {
  .home-steps {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .home-step {
    grid-template-columns: 48px 1fr;
    padding: 20px 18px;
  }
}

/* ================================================================== направления */

.home-directionsSection {
  isolation: isolate;
  overflow-x: clip;
}

/* Тонкая статичная сетка — повтор мотива hero без анимации. */
.home-gridWash {
  position: absolute;
  inset: 40px 0 -40px;
  z-index: -1;
  background-image:
    linear-gradient(rgba(90, 120, 146, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 120, 146, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0;
  -webkit-mask-image: radial-gradient(60% 55% at 70% 55%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 55% at 70% 55%, #000 0%, transparent 75%);
}

.home-directions {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.home-dirStack {
  display: grid;
  gap: 20px;
}

.home-dirCard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.home-dirFeatured {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow);
}

.home-dirFeaturedArt {
  position: relative;
  min-height: 180px;
  background:
    radial-gradient(70% 90% at 80% 110%, rgba(133, 197, 144, 0.35), transparent 60%),
    radial-gradient(60% 80% at 30% 0%, rgba(64, 162, 220, 0.22), transparent 60%),
    var(--surface-2);
  overflow: hidden;
}

.home-dirFeaturedArt::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 120, 146, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 120, 146, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000);
  mask-image: linear-gradient(180deg, transparent, #000);
}

.home-dirBody {
  display: grid;
  gap: 10px;
  padding: 24px 24px 26px;
}

.home-dirMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.home-dirFlag {
  font-size: 13px;
  font-weight: 650;
  color: var(--accent);
}

.home-dirTitle {
  font-size: 22px;
}

.home-dirFeatured .home-dirTitle {
  font-size: clamp(24px, 2.4vw, 30px);
}

.home-dirText {
  color: var(--ink-2);
  font-size: 15px;
}

@media (max-width: 860px) {
  .home-directions {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .home-dirStack {
    gap: 12px;
  }

  .home-dirFeaturedArt {
    min-height: 120px;
  }

  .home-dirBody {
    padding: 18px 18px 20px;
  }
}

/* ================================================================== приватность */

.home-privacy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.home-privacyHead {
  position: sticky;
  top: 100px;
}

.home-privacyList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.home-privacyList li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.home-privacyList h3 {
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-privacyList h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gradient);
  flex: none;
}

.home-privacyList p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15.5px;
  padding-left: 18px;
}

@media (max-width: 860px) {
  .home-privacy {
    grid-template-columns: 1fr;
  }

  .home-privacyHead {
    position: static;
  }
}

/* ================================================================== финал */

.home-final {
  position: relative;
  z-index: 1;
  padding-block: clamp(56px, 8vw, 96px);
}

.home-finalCard {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.home-finalArt {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 120% at 100% 100%, rgba(133, 197, 144, 0.22), transparent 60%),
    radial-gradient(40% 100% at 100% 0%, rgba(64, 162, 220, 0.16), transparent 60%);
}

.home-finalText {
  flex: 0 1 560px;
}

.home-finalText .home-sectionTitle {
  margin-top: 0;
}

@media (max-width: 860px) {
  .home-finalCard {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}

/* ================================================================== подвал */

.home-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding-block: 28px 36px;
  color: var(--ink-3);
  font-size: 14px;
}

.home-footerInner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

/* ================================================================== анимационные детали секций */

/* Animated Beam над шагами: линия-путь случая с бегущим импульсом */
.home-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  height: 18px;
  margin-top: 36px;
}

.home-trackNode {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin: 2px 0 0 41px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--grad-teal);
  box-shadow: 0 0 0 4px rgba(92, 178, 198, 0.15);
}

.home-trackLine {
  position: absolute;
  top: 8px;
  left: 48px;
  /* до центра третьего узла: две колонки и два зазора */
  width: calc((100% - 40px) / 3 * 2 + 40px);
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.home-trackFill {
  position: absolute;
  inset: 0;
  background: var(--gradient);
  transform-origin: left center;
}

.home-trackPulse {
  position: absolute;
  top: -1px;
  left: 0;
  width: 90px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  opacity: 0;
}

.home-steps {
  margin-top: 14px;
}

@media (prefers-reduced-motion: no-preference) {
  .home-trackPulse {
    opacity: 0.9;
    animation: home-track-pulse 3.2s cubic-bezier(0.45, 0, 0.25, 1) infinite;
  }

  /* Заполнение пути связано с прокруткой (Scroll-driven animations; без поддержки — линия просто заполнена) */
  @supports (animation-timeline: view()) {
    .home-trackFill {
      animation: home-track-fill linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 45%;
    }
  }

  .home-gridCell {
    animation: home-grid-cell 9s ease-in-out infinite;
    animation-delay: var(--d, 0s);
  }

  @supports (animation-timeline: view()) {
    .home-highlight {
      animation: home-highlight-in linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 40%;
    }
  }
}

@keyframes home-track-pulse {
  from {
    transform: translateX(-90px);
  }
  to {
    transform: translateX(calc(100vw));
  }
}

@keyframes home-track-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 860px) {
  .home-track {
    display: none;
  }

  .home-steps {
    margin-top: 28px;
  }
}

/* Animated Grid Pattern: отдельные клетки мягко подсвечиваются */
.home-gridCell {
  position: absolute;
  left: calc(var(--c) * 40px + 1px);
  top: calc(var(--r) * 40px + 1px);
  width: 39px;
  height: 39px;
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(64, 162, 220, 0.22), rgba(133, 197, 144, 0.22));
  opacity: 0.35;
}

@keyframes home-grid-cell {
  0%,
  100% {
    opacity: 0;
  }
  45%,
  60% {
    opacity: 0.9;
  }
}

/* Ripple в декоративной части карточки направления и в финальном блоке */
.home-dirRipple {
  left: 50%;
  top: 105%;
  transform: translate(-50%, -50%);
}

.home-finalRipple {
  right: -230px;
  top: 50%;
  transform: translateY(-50%);
}

/* Text Highlighter: ключевая фраза подчёркивается градиентной «маркерной» полосой */
.home-highlight {
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(64, 162, 220, 0.2), rgba(133, 197, 144, 0.28)) no-repeat 0 85% / 100% 42%;
}

@keyframes home-highlight-in {
  from {
    background-size: 0% 42%;
  }
  to {
    background-size: 100% 42%;
  }
}


@media (max-width: 860px) {
  .home-finalRipple {
    right: -300px;
    opacity: 0.55;
  }
}



/* Регистр в цифрах */
.home-statsNotice {
  margin-top: 24px;
}

.home-statsEmpty {
  margin-top: 32px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--surface);
  color: var(--ink-2);
}

.home-participants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.home-participants li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14.5px;
}

.home-statsTiles {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.home-statsTile {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.home-statsBig {
  display: block;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-statsLabel {
  display: block;
  margin-top: 8px;
  color: var(--ink-2);
}

.home-statsTileTitle {
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-ink);
  margin-bottom: 10px;
}

.home-statsList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.home-statsList li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}

.home-statsList strong {
  font-variant-numeric: tabular-nums;
}

.home-statsMap {
  margin-top: 14px;
}

@media (max-width: 960px) {
  .home-statsTiles {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .home-statsTiles {
    grid-template-columns: 1fr;
  }
}

/* Второй экран: карта центров на всю ширину (созвон 09.11.2026) */
.home-mapSection {
  padding-bottom: 0;
}

.home-mapHead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 24px;
}

.home-mapHead .home-sectionTitle {
  margin: 0;
}

.home-mapWide {
  position: relative;
  margin-top: 24px;
}

.home-counters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.home-counter,
.home-counterMain {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
}

.home-counter dt,
.home-counterMain dt {
  order: 2;
  color: var(--ink-2);
}

.home-counter dd,
.home-counterMain dd {
  order: 1;
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.home-counterMain {
  background: var(--accent);
  border-color: var(--accent);
}

.home-counterMain dt,
.home-counterMain dd {
  color: #fff;
}

@media (max-width: 860px) {
  .home-counter,
  .home-counterMain {
    padding: 6px 12px;
    font-size: 13px;
  }
}


/* ===== BackgroundScene.module.css → префикс bgs- ===== */
/* Фиксированный фон всей главной: под контентом, не перехватывает события. */
.bgs-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bgs-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Статичная подложка: остаётся единственным визуалом, если canvas недоступен. */
.bgs-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(28% 30% at 70% 50%, rgba(64, 162, 220, 0.1), transparent 70%),
    radial-gradient(36% 30% at 68% 62%, rgba(133, 197, 144, 0.08), transparent 70%);
}

.bgs-scene[data-ready="true"] .bgs-fallback {
  display: none;
}


/* ===== HeroBackground.module.css → префикс hbg- ===== */
.hbg-bg {
  position: absolute;
  /* запас сверху под параллакс: при сдвиге вниз верх первого экрана остаётся закрытым */
  inset: -20svh 0 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--page);
}

/* ---------------------------------------------------------------- Aurora */

.hbg-aurora {
  position: absolute;
  inset: -10% -10% 30%;
}

.hbg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.hbg-blobBlue {
  width: 46vw;
  height: 46vw;
  max-width: 720px;
  max-height: 720px;
  left: 4%;
  top: 6%;
  background: radial-gradient(circle, rgba(64, 162, 220, 0.55), rgba(64, 162, 220, 0) 70%);
}

.hbg-blobTeal {
  width: 40vw;
  height: 40vw;
  max-width: 640px;
  max-height: 640px;
  right: 6%;
  top: 0;
  background: radial-gradient(circle, rgba(92, 178, 198, 0.5), rgba(92, 178, 198, 0) 70%);
}

.hbg-blobMint {
  width: 42vw;
  height: 42vw;
  max-width: 660px;
  max-height: 660px;
  left: 34%;
  top: 30%;
  background: radial-gradient(circle, rgba(133, 197, 144, 0.45), rgba(133, 197, 144, 0) 70%);
}

.hbg-blobSky {
  width: 30vw;
  height: 30vw;
  max-width: 480px;
  max-height: 480px;
  left: 58%;
  top: 38%;
  background: radial-gradient(circle, rgba(127, 196, 230, 0.45), rgba(127, 196, 230, 0) 70%);
}

/* ---------------------------------------------------------------- сетка и зерно */

.hbg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 111, 168, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 111, 168, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 10%, transparent 75%);
}

.hbg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.14 0 0 0 0 0.23 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* ---------------------------------------------------------------- горизонт */

.hbg-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  /* при прокрутке горизонт плавно опускается */
  transform: translateY(calc(var(--hero-p, 0) * 60px));
}

.hbg-ripple {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hbg-blobBlue {
    animation: hbg-drift-a 26s ease-in-out infinite alternate;
  }

  .hbg-blobTeal {
    animation: hbg-drift-b 30s ease-in-out infinite alternate;
  }

  .hbg-blobMint {
    animation: hbg-drift-c 34s ease-in-out infinite alternate;
  }

  .hbg-blobSky {
    animation: hbg-drift-a 22s ease-in-out -8s infinite alternate-reverse;
  }

  .hbg-ripple {
    animation: hbg-surface-ripple 7s cubic-bezier(0.25, 0.6, 0.3, 1) infinite;
    animation-delay: calc(var(--k, 0) * 2.33s);
  }

  .hbg-point {
    transform-box: fill-box;
    transform-origin: center;
    animation: hbg-point-glow 3.5s ease-in-out infinite;
  }

}

@keyframes hbg-drift-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(6vw, 4vh) scale(1.12);
  }
}

@keyframes hbg-drift-b {
  from {
    transform: translate(0, 0) scale(1.05);
  }
  to {
    transform: translate(-7vw, 6vh) scale(0.92);
  }
}

@keyframes hbg-drift-c {
  from {
    transform: translate(0, 0) scale(0.95);
  }
  to {
    transform: translate(-4vw, -5vh) scale(1.1);
  }
}

@keyframes hbg-surface-ripple {
  0% {
    transform: scale(0.04);
    opacity: 0;
  }
  12% {
    opacity: 0.6;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

@keyframes hbg-point-glow {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@media (max-width: 860px) {
  .hbg-blob {
    filter: blur(60px);
  }

  .hbg-blobBlue {
    width: 90vw;
    height: 90vw;
    left: -20%;
  }

  .hbg-blobTeal {
    width: 80vw;
    height: 80vw;
    right: -25%;
    top: 10%;
  }

  .hbg-blobMint {
    width: 80vw;
    height: 80vw;
    left: 10%;
    top: 45%;
  }

}

/* ---------------------------------------------------------------- WebGL-слой */

.hbg-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hbg-shader[data-ready="true"] {
  opacity: 1;
}

/* Шейдер сам добавляет зерно — CSS-зерно не дублируем */
.hbg-shader[data-ready="true"] ~ .hbg-grain {
  display: none;
}

/* Параллакс: фон первого экрана отстаёт от прокрутки примерно на 20% — едва заметная глубина */
html.hero-motion .hbg-bg {
  transform: translate3d(0, calc(var(--hero-p, 0) * 20svh), 0);
  will-change: transform;
}


/* ===== RippleRings.module.css → префикс rr- ===== */
.rr-ripple {
  position: absolute;
  width: 520px;
  aspect-ratio: 1;
  pointer-events: none;
}

.rr-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(64, 162, 220, 0.28);
  width: calc(20% + var(--i) * 20%);
  height: calc(20% + var(--i) * 20%);
  opacity: calc(1 - var(--i) * 0.16);
}

.rr-ring:first-child {
  background: radial-gradient(circle, rgba(64, 162, 220, 0.22), rgba(92, 178, 198, 0.06) 70%);
  border-color: rgba(64, 162, 220, 0.4);
}

@media (prefers-reduced-motion: no-preference) {
  .rr-ring {
    animation: rr-ripple 5.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.35s);
  }
}

@keyframes rr-ripple {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.92);
  }
}


/* ===== ClinicMap.module.css → префикс cmap- ===== */
.cmap-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: stretch;
}

.cmap-mapBox {
  position: relative;
  background:
    radial-gradient(120% 90% at 30% 20%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(90% 80% at 85% 90%, var(--mint-soft) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.cmap-svg {
  display: block;
  width: 100%;
  height: auto;
}

.cmap-grid {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 6;
}

.cmap-link {
  stroke: var(--grad-teal);
  stroke-width: 1.2;
  stroke-opacity: 0.45;
  stroke-dasharray: 4 6;
}

.cmap-cityLabel {
  font-size: 15px;
  font-weight: 600;
  fill: var(--ink-2);
}

.cmap-point {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
}

.cmap-point:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.cmap-pointDot {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--gradient);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(16, 36, 58, 0.25);
  transition: transform 0.2s ease;
}

.cmap-pointGlow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 162, 220, 0.35) 0%, rgba(64, 162, 220, 0) 70%);
}

.cmap-pointActive .cmap-pointDot,
.cmap-point:hover .cmap-pointDot {
  transform: scale(1.25);
}

@media (prefers-reduced-motion: no-preference) {
  .cmap-pointGlow {
    animation: cmap-map-pulse 3.2s ease-out infinite;
    animation-delay: var(--d, 0s);
  }
}

@keyframes cmap-map-pulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.cmap-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  align-self: start;
}

.cmap-cardCity {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.cmap-cardTitle {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.25;
}

.cmap-cardTotal {
  margin-top: 6px;
  color: var(--ink-2);
}

.cmap-cardRows {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cmap-cardRows li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.cmap-cardCount {
  min-width: 2.2em;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.cmap-cardMuted {
  color: var(--ink-3);
}

.cmap-unplaced {
  grid-column: 1 / -1;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-2);
}

.cmap-cityGhost circle {
  fill: var(--line-strong);
}

.cmap-cityGhost text {
  font-size: 13px;
  fill: var(--ink-3);
}

@media (max-width: 860px) {
  .cmap-wrap {
    grid-template-columns: 1fr;
  }

  .cmap-cityLabel {
    font-size: 22px;
  }

  .cmap-cityGhost text {
    font-size: 19px;
  }
}

.cmap-cardAddress {
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-3);
}

/* «Операций в 2026 году» — главная цифра карточки, как у Eurocrine */
.cmap-cardYear {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 600;
}

.cmap-cardYearNum {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}


/* ===== YandexClinicMap.module.css → префикс ymap- ===== */
/* Карта на всю ширину окна; карточка центра и список лежат поверх карты справа,
   выровненные по правому краю контентной колонки страницы. */
.ymap-wrap {
  position: relative;
}

.ymap-mapBox {
  position: relative;
  height: max(480px, calc(100vh - 250px));
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface-2);
}

.ymap-map {
  position: absolute;
  inset: 0;
}

/* Приглушённая подложка: карта остаётся фоном, внимание — на метках и карточке */
.ymap-map [class*="-ground-pane"] {
  filter: saturate(0.35) brightness(1.04) contrast(0.95);
}

.ymap-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
}

.ymap-side {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: max(16px, calc((100vw - var(--container)) / 2 + var(--gutter)));
  width: 340px;
  max-height: calc(100% - 32px);
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 10px;
  pointer-events: none;
}

.ymap-side > * {
  pointer-events: auto;
  box-shadow: 0 8px 28px rgba(16, 36, 58, 0.14);
}

.ymap-list {
  box-shadow: none !important;
}

.ymap-list .ymap-listItem {
  box-shadow: 0 4px 16px rgba(16, 36, 58, 0.1);
}

.ymap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ymap-listItem {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.ymap-listItem:hover {
  border-color: var(--accent);
}

.ymap-listItemActive {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.ymap-listCity {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
}

/* Метка клиники (разметку создаёт API карт, поэтому классы глобальные) */
.registry-ymark {
  position: relative;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  cursor: pointer;
}

.registry-ymark__glow {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 162, 220, 0.45), rgba(64, 162, 220, 0) 70%);
}

.registry-ymark__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(16, 36, 58, 0.28);
  color: #fff;
  font: 700 13px/1 var(--font-sans, system-ui), sans-serif;
  font-variant-numeric: tabular-nums;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.registry-ymark:hover .registry-ymark__dot {
  transform: translate(-50%, -50%) scale(1.08);
}

.registry-ymark--active .registry-ymark__dot {
  transform: translate(-50%, -50%) scale(1.18);
  background: var(--teal-ink);
}

@media (prefers-reduced-motion: no-preference) {
  .registry-ymark--active .registry-ymark__glow {
    animation: ymap-ymark-pulse 2.4s ease-in-out infinite;
  }
}

@keyframes ymap-ymark-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.4;
  }
}

@media (max-width: 860px) {
  .ymap-mapBox {
    height: 380px;
  }

  .ymap-side {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 14px var(--gutter) 0;
  }

  .ymap-side > * {
    box-shadow: none;
  }
}

/* Возврат к обзору всех центров после приближения к одному */
.ymap-showAll {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 36, 58, 0.12);
  cursor: pointer;
}

.ymap-showAll:hover {
  border-color: var(--accent);
}

.ymap-empty {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 15px;
}

/* Панель справа: список городов, центров города или карточка центра */
.ymap-panel,
.ymap-cardWrap {
  display: grid;
  gap: 10px;
}

.ymap-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.ymap-cardWrap {
  box-shadow: none !important;
}

.ymap-cardWrap > :last-child {
  box-shadow: 0 8px 28px rgba(16, 36, 58, 0.14);
}

.ymap-panelTitle {
  margin: 0;
  font-weight: 650;
  color: var(--ink);
}

.ymap-back {
  justify-self: start;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.ymap-back:hover {
  border-color: var(--accent);
  color: var(--ink);
}

/* Подпись города под меткой */
.registry-ymark__label {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: 600 12px/1.4 var(--font-sans, system-ui), sans-serif;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(16, 36, 58, 0.15);
  pointer-events: none;
}


/* ===== LegalDocument.module.css → префикс legal- ===== */
.legal-page {
  padding-block: 32px 64px;
}

.legal-doc {
  max-width: 820px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.legal-doc h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal-doc h2 {
  margin: 32px 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

.legal-doc h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.legal-doc p,
.legal-doc ul {
  margin: 0 0 12px;
}

.legal-doc ul {
  padding-left: 22px;
}

.legal-doc li + li {
  margin-top: 4px;
}

.legal-tableWrap {
  overflow-x: auto;
  margin: 8px 0 16px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--surface-2);
  font-weight: 650;
}


/* ===== login.module.css → префикс login- ===== */
.login-page {
  min-height: calc(100svh - 34px);
  display: grid;
  place-items: center;
  padding: 32px var(--gutter);
  background:
    radial-gradient(50% 40% at 85% 0%, rgba(64, 162, 220, 0.1), transparent 70%),
    radial-gradient(45% 35% at 0% 100%, rgba(133, 197, 144, 0.12), transparent 70%),
    var(--page);
}

.login-card {
  width: 100%;
  max-width: 420px;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  justify-self: start;
}

.login-title {
  font-size: 28px;
  margin-top: 8px;
}

.login-lead {
  color: var(--ink-2);
  margin-top: -6px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-field {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
}

.login-field input {
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.login-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.login-field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.login-help {
  font-size: 14px;
  color: var(--ink-3);
}


/* ===== AppShell.module.css → префикс shell- ===== */
.shell-shell {
  min-height: 100svh;
  background: var(--page);
}

.shell-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.shell-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-height: 64px;
  padding-block: 8px;
}

.shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.shell-nav {
  display: flex;
  gap: 4px;
}

.shell-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.shell-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.shell-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.shell-userName {
  display: grid;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.shell-role {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
}

.shell-main {
  padding-block: 28px 64px;
}

@media (max-width: 720px) {
  .shell-inner {
    gap: 4px 12px;
  }

  .shell-nav {
    order: 3;
    width: 100%;
    margin-inline: -12px;
  }

  .shell-userName {
    display: none;
  }

  .shell-main {
    padding-block: 20px 48px;
  }
}


/* ===== ui.module.css → префикс ui- ===== */
.ui-pageHead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.ui-pageTitle {
  font-size: clamp(24px, 3vw, 32px);
}

.ui-pageLead {
  margin-top: 6px;
  color: var(--ink-2);
}

.ui-crumbs {
  font-size: 14px;
  margin-bottom: 10px;
}

.ui-crumbs a {
  color: var(--ink-3);
  text-decoration: none;
}

.ui-crumbs a:hover {
  color: var(--accent);
}

.ui-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(18px, 3vw, 28px);
}

.ui-panelTitle {
  font-size: 18px;
  margin-bottom: 14px;
}

.ui-stack {
  display: grid;
  /* minmax(0, 1fr): широкая таблица прокручивается в своём блоке, а не растягивает страницу */
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.ui-empty {
  padding: 28px 20px;
  text-align: center;
  color: var(--ink-3);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.ui-empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.ui-tableWrap {
  /* relative: скрытые подписи (visually-hidden) остаются внутри прокрутки, а не расширяют страницу */
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.ui-table th,
.ui-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.ui-table th {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--surface-2);
}

.ui-table tr:last-child td {
  border-bottom: 0;
}

.ui-mono {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.ui-muted {
  color: var(--ink-3);
}

/* Список карточек случаев для узких экранов */
.ui-caseList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ui-caseItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  min-height: 56px;
}

.ui-caseItem:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.ui-caseItemTitle {
  font-weight: 600;
}

.ui-caseItemMeta {
  font-size: 13.5px;
  color: var(--ink-3);
}

.ui-dl {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2fr;
  margin: 0;
}

.ui-dl dt,
.ui-dl dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ui-dl dt {
  color: var(--ink-3);
  padding-right: 16px;
}

.ui-dl dd {
  font-weight: 550;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .ui-dl {
    grid-template-columns: 1fr;
  }

  .ui-dl dt {
    border-bottom: 0;
    padding-bottom: 2px;
    font-size: 14px;
  }

  .ui-dl dd {
    padding-top: 0;
  }
}

.ui-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 16px;
}

.ui-searchField {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-2);
  flex: 1 1 200px;
  max-width: 280px;
}

.ui-searchField input {
  font: inherit;
  font-size: 16px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.ui-searchField input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.ui-searchActions {
  display: flex;
  gap: 8px;
}

.ui-panelHead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.ui-panelHead .ui-panelTitle {
  margin-bottom: 0;
}

.ui-subTitle {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 8px;
}


/* ===== CaseForm.module.css → префикс cf- ===== */
.cf-form {
  display: grid;
  gap: 20px;
  max-width: 760px;
}

.cf-summary:focus {
  outline: none;
  box-shadow: var(--focus);
}

.cf-summary ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.cf-summary a {
  color: inherit;
  font-weight: 600;
}

.cf-fields {
  display: grid;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}

.cf-field {
  margin: 0;
  min-width: 0;
  border: 0;
  padding: 20px clamp(16px, 3vw, 24px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.cf-field:last-child {
  border-bottom: 0;
}

.cf-field:focus {
  outline: none;
}

.cf-invalid {
  background: var(--danger-soft);
}

/* legend по умолчанию «садится» на рамку fieldset; float делает его обычным элементом сетки. */
fieldset.cf-field > legend {
  float: left;
  width: 100%;
}

.cf-label {
  padding: 0;
  font-weight: 650;
  font-size: 16px;
  line-height: 1.35;
}

.cf-labelNote {
  font-weight: 400;
  color: var(--ink-3);
  font-size: 14px;
}

.cf-req {
  color: var(--danger);
}

.cf-hint {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: -2px;
}

.cf-error {
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
}

.cf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.cf-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 550;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.cf-chip:hover {
  border-color: var(--accent);
}

.cf-chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.cf-chip:has(input:focus-visible) {
  box-shadow: var(--focus);
}

.cf-chipOn {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cf-chipOn:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.cf-clear {
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--ink-3);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cf-control {
  font: inherit;
  font-size: 16px;
  min-height: 48px;
  padding: 0 14px;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

select.cf-control {
  padding-right: 36px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 21px,
    calc(100% - 15px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.cf-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.cf-control[aria-invalid="true"] {
  border-color: var(--danger);
}

.cf-numberRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cf-number {
  max-width: 180px;
}

.cf-unit {
  color: var(--ink-2);
}

.cf-monthRow {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 8px;
  max-width: 420px;
}

/* Панель сохранения: на телефоне закреплена внизу экрана, чтобы кнопка была всегда под рукой. */
.cf-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(248, 250, 251, 0), var(--page) 30%);
}

.cf-saveHint {
  font-size: 14px;
  color: var(--ink-3);
}

@media (max-width: 600px) {
  .cf-actions {
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  }

  .cf-actions .btn {
    width: 100%;
  }

  .cf-chip {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Заголовок раздела формы («Общие данные», «Узел», «Процедура») */
.cf-section {
  margin: 0;
  padding: 14px clamp(16px, 3vw, 24px) 10px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-ink);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}


/* ===== cabinet.module.css → префикс cab- ===== */
.cab-directions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.cab-dir {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  min-height: 160px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  color: var(--ink);
  text-decoration: none;
}

.cab-dir[aria-disabled="true"] {
  background: var(--surface-2);
}

.cab-dir[aria-disabled="true"] .cab-dirTitle {
  color: var(--ink-2);
}

.cab-dirActive {
  border-color: #b9d7ea;
  box-shadow: var(--shadow-s);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cab-dirActive:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.cab-dirTop {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.cab-flag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
}

.cab-dirTitle {
  font-size: 18px;
  font-weight: 650;
  line-height: 1.25;
  margin-top: 4px;
}

.cab-dirText {
  font-size: 14.5px;
  color: var(--ink-3);
}

.cab-dirAction {
  margin-top: 6px;
  font-weight: 600;
  color: var(--accent);
}

.cab-recentHead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.cab-allLink {
  font-size: 14.5px;
  font-weight: 600;
}


/* ===== admin.module.css → префикс admin- ===== */
.admin-dirGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.admin-dirCard {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}

.admin-dirTop {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.admin-dirTitle {
  font-weight: 650;
  font-size: 16.5px;
  line-height: 1.3;
}

.admin-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-metrics > div {
  display: grid;
}

.admin-metricValue {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.admin-metricLabel {
  font-size: 13px;
  color: var(--ink-3);
}

.admin-note {
  font-size: 14px;
  color: var(--ink-3);
  margin-bottom: 14px;
}

.admin-recordsHead {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.admin-filters a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}

.admin-filters a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.admin-exports {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/* ===== users.module.css → префикс users- ===== */
.users-formWrap {
  display: grid;
  gap: 14px;
}

.users-form {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.users-field {
  display: grid;
  gap: 6px;
  width: 100%;
  max-width: 560px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 15px;
}

.users-field > span,
.users-field legend {
  font-weight: 600;
  margin-bottom: 6px;
  padding: 0;
}

.users-field small {
  color: var(--ink-3);
  font-size: 13.5px;
}

.users-field input:not([type]),
.users-field input[type="text"] {
  font: inherit;
  font-size: 16px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  max-width: 420px;
}

.users-field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.users-field input[aria-invalid="true"],
.users-field[aria-invalid="true"] .users-checks {
  border-color: var(--danger);
}

.users-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.users-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--surface);
}

.users-choice span {
  display: grid;
  gap: 2px;
}

.users-choice input {
  margin-top: 3px;
}

.users-choiceOn {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.users-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.users-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}

.users-check:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.users-password {
  display: grid;
  gap: 10px;
}

.users-passwordRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.users-passwordValue {
  font-size: 18px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: var(--radius-s);
  background: var(--surface);
  border: 1px solid var(--line);
  user-select: all;
}

.users-after {
  font-size: 15px;
}

.users-linkButton {
  font: inherit;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}


/* ===== password.module.css → префикс pw- ===== */
.pw-form,
.pw-done {
  display: grid;
  gap: 18px;
  justify-items: start;
  max-width: 460px;
}

.pw-field {
  display: grid;
  gap: 6px;
  width: 100%;
  font-size: 15px;
}

.pw-field > span {
  font-weight: 600;
}

.pw-field small {
  color: var(--ink-3);
  font-size: 13.5px;
}

.pw-field input {
  font: inherit;
  font-size: 16px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.pw-field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Галочка согласия с политикой (страница согласия использует эти же стили) */
.pw-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

.pw-check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--accent);
}
