/* =====================================================================================
   Progressive UI — стек-независимая дизайн-система. Ядро v2.0.
   Один файл, ноль сборки, ноль зависимостей: токены + компоненты + сайт-кит + анимации
   + утилиты (имена совпадают с Tailwind, значения — с его шкалой).

   Разделы:
     0. Шрифт Manrope          4. Анимации и движение (motion kit)
     1. Токены и base          5. Утилиты
     2. Компоненты (админ-кит) 6. Адаптивные варианты утилит
     3. Сайт-кит (инфосайты)

   Правила:
   - Цвета ТОЛЬКО через переменные --c-*, прозрачность через rgb(var(--c-x) / .12).
   - Тёмная тема = класс .dark на <html>, других стилей темы нет.
   - Иконки: Font Awesome Free 6.7 (подключается отдельно); чекбокс/switch/spinner
     работают и без него (рисованы на CSS).
   - Расширять в своём проекте через отдельный файл оверрайдов, не правя этот.

   Поддержка: браузеры 2023+ (@starting-style, allow-discrete, color-mix, :focus-visible,
   dvh). Деградация graceful: тултипы/анимации исчезают, вёрстка остаётся.
   ===================================================================================== */

/* ——— 0. Шрифт Manrope (variable, локально; кириллица + латиница) ——— */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ——— 1. Токены и base ——— */

/* мини-preflight: без него отступы заголовков/списков ломают утилитный ритм */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: rgb(var(--c-line)); }
html { -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; }
body { margin: 0; line-height: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
p, figure, blockquote, dl, dd, pre, hr { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
menu, ul[role="list"], ol[role="list"] { list-style: none; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: 1em; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.5; color: inherit; margin: 0; padding: 0; }
button, select { text-transform: none; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; background-color: transparent; background-image: none; cursor: pointer; }
[role="button"] { cursor: pointer; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
table { border-collapse: collapse; }
input::placeholder, textarea::placeholder { color: rgb(var(--c-muted) / .7); opacity: 1; }
:where(input[type="checkbox"]), :where(input[type="radio"]) { accent-color: rgb(var(--c-brand)); }
[hidden] { display: none !important; }
[x-cloak] { display: none !important; }

:root {
  color-scheme: light;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* R G B без rgb(): любой цвет берёт прозрачность слэш-нотацией rgb(var(--c-x) / .12) */
  --c-bg: 243 245 250;
  --c-surface: 255 255 255;
  --c-surface2: 244 246 251;
  --c-line: 224 229 239;
  --c-ink: 20 26 40;
  --c-muted: 104 116 138;

  --c-brand: 99 102 241;        /* indigo-500 */
  --c-brand-strong: 79 70 229;  /* indigo-600 */
  --c-brand-soft: 224 231 255;  /* indigo-100 */
  --c-brand-ink: 55 48 163;     /* indigo-900 */

  --c-ok: 16 185 129;
  --c-warn: 245 158 11;
  --c-bad: 244 63 94;
  --c-info: 14 165 233;
  --c-accent: 168 85 247;

  --sh-card: 0 1px 2px rgb(15 23 42 / .05), 0 8px 24px -12px rgb(15 23 42 / .12);
  --sh-pop: 0 12px 40px -8px rgb(15 23 42 / .25);
  --r-xl: 1.25rem;   /* фирменное скругление карточек/кнопок */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

.dark {
  color-scheme: dark;
  --c-bg: 8 11 19;
  --c-surface: 17 22 35;
  --c-surface2: 24 30 47;
  --c-line: 42 51 72;
  --c-ink: 228 233 244;
  --c-muted: 148 160 184;

  --c-brand: 129 140 248;
  --c-brand-strong: 99 102 241;
  --c-brand-soft: 49 46 129;
  --c-brand-ink: 224 231 255;

  --c-ok: 52 211 153;
  --c-warn: 251 191 36;
  --c-bad: 251 113 133;
  --c-info: 56 189 248;
  --c-accent: 192 132 252;

  --sh-card: 0 1px 2px rgb(0 0 0 / .4), 0 10px 28px -12px rgb(0 0 0 / .5);
  --sh-pop: 0 16px 48px -8px rgb(0 0 0 / .6);
}

body {
  background: rgb(var(--c-bg));
  color: rgb(var(--c-ink));
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* брендированные скроллбары: thin, тумб с фирменным градиентом brand→accent */
* { scrollbar-width: thin; scrollbar-color: rgb(var(--c-muted) / .45) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(rgb(var(--c-brand) / .45), rgb(var(--c-accent) / .45));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(rgb(var(--c-brand) / .8), rgb(var(--c-accent) / .8)); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }

::selection { background: rgb(var(--c-brand) / .25); }

/* фокус с клавиатуры */
:focus-visible { outline: 2px solid rgb(var(--c-brand)); outline-offset: 2px; border-radius: 6px; }

html.js [data-reveal] { opacity: 0; }
/* остальное поведение reveal — в §4 «Motion» */

/* ——— 2. Компоненты (админ-кит) ——— */

/* карточки и цветные виджеты */
.card {
  background: rgb(var(--c-surface));
  border: 1px solid rgb(var(--c-line));
  border-radius: var(--r-xl);
  box-shadow: var(--sh-card);
  transition: all .2s;
}
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--sh-pop); }

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: .75rem; flex-shrink: 0;
  width: 2.6rem; height: 2.6rem;
  transition: transform .2s;
}
.group:hover .icon-tile, .icon-tile:hover { transform: scale(1.06) rotate(-3deg); }
.tile-brand { background: linear-gradient(135deg, rgb(var(--c-brand) / .22), rgb(var(--c-brand) / .08)); color: rgb(var(--c-brand)); }
.tile-ok    { background: linear-gradient(135deg, rgb(var(--c-ok) / .22), rgb(var(--c-ok) / .08)); color: rgb(var(--c-ok)); }
.tile-warn  { background: linear-gradient(135deg, rgb(var(--c-warn) / .25), rgb(var(--c-warn) / .08)); color: rgb(var(--c-warn)); }
.tile-bad   { background: linear-gradient(135deg, rgb(var(--c-bad) / .22), rgb(var(--c-bad) / .08)); color: rgb(var(--c-bad)); }
.tile-info  { background: linear-gradient(135deg, rgb(var(--c-info) / .22), rgb(var(--c-info) / .08)); color: rgb(var(--c-info)); }
.tile-accent{ background: linear-gradient(135deg, rgb(var(--c-accent) / .22), rgb(var(--c-accent) / .08)); color: rgb(var(--c-accent)); }

/* цветные «шапки» секций: мягкий градиент ПОВЕРХ фона карточки.
   Именно background-image: шорткат background сбросил бы background-color
   карточки в transparent (см. «Грабли» №1 в DESIGN_SYSTEM.md) */
.tint-brand  { background-image: linear-gradient(160deg, rgb(var(--c-brand) / .08) 0%, transparent 42%); }
.tint-ok     { background-image: linear-gradient(160deg, rgb(var(--c-ok) / .09) 0%, transparent 42%); }
.tint-warn   { background-image: linear-gradient(160deg, rgb(var(--c-warn) / .10) 0%, transparent 42%); }
.tint-info   { background-image: linear-gradient(160deg, rgb(var(--c-info) / .09) 0%, transparent 42%); }
.tint-accent { background-image: linear-gradient(160deg, rgb(var(--c-accent) / .09) 0%, transparent 42%); }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .875rem; line-height: 1.25rem;
  border-radius: .75rem; padding: .625rem 1rem;
  border: 1px solid transparent;
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: all .15s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn:focus-visible { outline-offset: 3px; }
.btn-primary {
  background: linear-gradient(135deg, rgb(var(--c-brand)), rgb(var(--c-brand-strong)));
  color: #fff;
  box-shadow: 0 6px 16px -6px rgb(var(--c-brand) / .6);
}
.btn-primary:hover { filter: brightness(1.07); box-shadow: 0 10px 22px -6px rgb(var(--c-brand) / .65); transform: translateY(-1px); }
.btn-soft { background: rgb(var(--c-brand) / .12); color: rgb(var(--c-brand-ink)); border-color: rgb(var(--c-brand) / .25); }
.btn-soft:hover { background: rgb(var(--c-brand) / .2); transform: translateY(-1px); }
.btn-ghost { color: rgb(var(--c-muted)); }
.btn-ghost:hover { background: rgb(var(--c-muted) / .12); color: rgb(var(--c-ink)); }
.btn-danger { background: rgb(var(--c-bad) / .12); color: rgb(var(--c-bad)); border-color: rgb(var(--c-bad) / .3); }
.btn-danger:hover { background: rgb(var(--c-bad)); color: #fff; box-shadow: 0 8px 18px -6px rgb(var(--c-bad) / .6); transform: translateY(-1px); }
.btn-ok { background: linear-gradient(135deg, rgb(var(--c-ok)), color-mix(in srgb, rgb(var(--c-ok)) 80%, black)); color: #fff; box-shadow: 0 6px 16px -6px rgb(var(--c-ok) / .55); }
.btn-ok:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-outline { border-color: rgb(var(--c-line)); color: rgb(var(--c-ink)); background: rgb(var(--c-surface)); }
.btn-outline:hover { border-color: rgb(var(--c-brand) / .5); color: rgb(var(--c-brand)); background: rgb(var(--c-brand) / .06); }
.btn-inverse { background: #fff; color: rgb(var(--c-brand-strong)); box-shadow: 0 8px 20px -8px rgb(0 0 0 / .45); }
.btn-inverse:hover { transform: translateY(-1px); box-shadow: 0 12px 26px -8px rgb(0 0 0 / .5); }
.btn-sm { padding: .375rem .75rem; font-size: .75rem; line-height: 1rem; border-radius: .5rem; }
.btn-lg { padding: .875rem 1.5rem; font-size: .9375rem; border-radius: .875rem; }
.btn-icon { width: 2.5rem; height: 2.5rem; padding: 0; border-radius: .75rem; }

/* поля */
.label { display: block; font-size: .875rem; line-height: 1.25rem; font-weight: 600; margin-bottom: .375rem; color: rgb(var(--c-ink)); }
.input {
  width: 100%;
  border-radius: .75rem;
  border: 1px solid rgb(var(--c-line));
  background: rgb(var(--c-surface2));
  padding: .625rem .875rem;
  font-size: .875rem; line-height: 1.25rem;
  color: rgb(var(--c-ink));
  transition: all .15s;
}
.input:hover { border-color: rgb(var(--c-brand) / .45); }
.input:focus { outline: none; border-color: rgb(var(--c-brand)); box-shadow: 0 0 0 4px rgb(var(--c-brand) / .15); background: rgb(var(--c-surface)); }
.input:disabled { opacity: .55; cursor: not-allowed; }
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 24' fill='none' stroke='%2368748a' stroke-width='2'%3E%3Cpath d='M10 9l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; background-size: 1.1em;
  padding-right: 2.2rem;
}
textarea.input { line-height: 1.625; resize: vertical; }

/* чекбокс (галка рисована на CSS — Font Awesome не нужен) / переключатель */
.checkbox {
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem;
  border-radius: .375rem; border: 2px solid rgb(var(--c-line));
  background: rgb(var(--c-surface2));
  cursor: pointer; flex-shrink: 0;
  transition: all .15s;
}
.checkbox:hover { border-color: rgb(var(--c-brand)); }
.checkbox:checked { background: linear-gradient(135deg, rgb(var(--c-brand)), rgb(var(--c-brand-strong))); border-color: transparent; }
.checkbox:checked::after {
  content: ""; display: block;
  width: .55rem; height: .3rem; margin-top: -.15rem;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.checkbox-radio { border-radius: 9999px; }
.checkbox-radio:checked::after {
  width: .5rem; height: .5rem; margin-top: 0;
  border: none; border-radius: 9999px; background: #fff; transform: none;
}
.switch {
  appearance: none;
  width: 2.5rem; height: 1.5rem;
  border-radius: 9999px;
  background: rgb(var(--c-muted) / .35);
  border: none;
  cursor: pointer; position: relative; flex-shrink: 0;
  transition: background-color .2s;
}
.switch::after {
  content: ""; position: absolute; top: .125rem; left: .125rem;
  width: 1.25rem; height: 1.25rem; border-radius: 9999px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(15 23 42 / .3);
  transition: transform .2s;
}
.switch:checked { background: linear-gradient(135deg, rgb(var(--c-ok)), rgb(var(--c-info))); }
.switch:checked::after { transform: translateX(1rem); }

/* чипы (теги, статусы, счётчики) */
.chip {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .25rem .625rem;
  border-radius: 9999px;
  font-size: .75rem; line-height: 1rem; font-weight: 600;
  border: 1px solid;
  transition: all .15s;
  background: rgb(var(--c-muted) / .1); border-color: rgb(var(--c-muted) / .25); color: rgb(var(--c-ink));
}
a.chip:hover, .chip.is-link:hover { transform: translateY(-1px); }
.chip .chip-x { cursor: pointer; opacity: .6; transition: transform .15s, opacity .15s; }
.chip .chip-x:hover { opacity: 1; transform: scale(1.1); }
.chip-brand { background: rgb(var(--c-brand) / .12); border-color: rgb(var(--c-brand) / .35); color: rgb(var(--c-brand-ink)); }
.chip-ok    { background: rgb(var(--c-ok) / .14); border-color: rgb(var(--c-ok) / .35); color: rgb(var(--c-ok)); }
.chip-warn  { background: rgb(var(--c-warn) / .16); border-color: rgb(var(--c-warn) / .4); color: rgb(var(--c-warn)); }
.chip-bad   { background: rgb(var(--c-bad) / .12); border-color: rgb(var(--c-bad) / .35); color: rgb(var(--c-bad)); }
.chip-info  { background: rgb(var(--c-info) / .14); border-color: rgb(var(--c-info) / .35); color: rgb(var(--c-info)); }
.chip-accent{ background: rgb(var(--c-accent) / .14); border-color: rgb(var(--c-accent) / .35); color: rgb(var(--c-accent)); }

/* сегментный переключатель (Сегодня/Неделя/Месяц, табы, RU/EN) */
.segment { display: inline-flex; padding: .25rem; gap: .25rem; border-radius: .75rem; background: rgb(var(--c-muted) / .12); }
.segment > button, .segment > a { padding: .375rem .75rem; font-size: .75rem; line-height: 1rem; font-weight: 700; border-radius: .5rem; color: rgb(var(--c-muted)); transition: all .15s; }
.segment > button:hover, .segment > a:hover { color: rgb(var(--c-ink)); }
.segment > button.active, .segment > a.active { background: rgb(var(--c-surface)); color: rgb(var(--c-brand)); box-shadow: var(--sh-card); }

/* таблицы */
.table { width: 100%; font-size: .875rem; line-height: 1.25rem; }
.table thead th {
  padding: .75rem 1rem; text-align: left;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: rgb(var(--c-muted));
  background: rgb(var(--c-surface2));
}
.table tbody td { padding: .875rem 1rem; vertical-align: middle; }
.table tbody tr { border-top: 1px solid rgb(var(--c-line)); transition: background-color .1s, color .1s; }
.table tbody tr:hover { background: rgb(var(--c-brand) / .045); }

/* навигация (сайдбар, меню профиля, списки-опции) */
.nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem 1rem;
  border-radius: .75rem;
  font-size: .875rem; line-height: 1.25rem; font-weight: 600;
  color: rgb(var(--c-muted));
  border: 1px solid transparent;
  transition: all .15s;
}
.nav-item:hover { background: rgb(var(--c-brand) / .08); color: rgb(var(--c-ink)); transform: translateX(2px); }
.nav-item.active {
  background: linear-gradient(135deg, rgb(var(--c-brand) / .16), rgb(var(--c-accent) / .1));
  color: rgb(var(--c-brand));
  border-color: rgb(var(--c-brand) / .25);
}

/* тултипы: [data-tip="…"] на любом элементе. В покое display:none — иначе невидимый
   ::after с длинным текстом торчит за край контейнера и создаёт горизонтальный
   скроллбар у overflow-x-auto (см. «Грабли» №2) */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  pointer-events: none; position: absolute; z-index: 70;
  left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  padding: .375rem .625rem;
  border-radius: .5rem;
  font-size: .75rem; line-height: 1rem; font-weight: 600;
  white-space: pre; text-align: center;
  background: rgb(var(--c-ink)); color: rgb(var(--c-bg));
  opacity: 0; display: none;
  transition: opacity .15s, transform .15s, display .15s allow-discrete;
  max-width: 16rem; width: max-content;
}
[data-tip]::before {
  content: ""; pointer-events: none; position: absolute; z-index: 70;
  left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: rgb(var(--c-ink));
  opacity: 0; display: none;
  transition: opacity .15s, display .15s allow-discrete;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after {
  display: block; opacity: 1; transform: translate(-50%, 0);
  @starting-style { opacity: 0; transform: translate(-50%, 4px); }
}
[data-tip]:hover::before, [data-tip]:focus-visible::before { display: block; opacity: 1; }
/* тултипы вниз (нижняя мобильная навигация) */
.tip-bottom::after { bottom: auto; top: calc(100% + 8px); }
.tip-bottom::before { bottom: auto; top: calc(100% - 3px); border-top-color: transparent; border-bottom-color: rgb(var(--c-ink)); }

/* модалки */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  background: rgb(var(--c-ink) / .45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal-panel {
  width: 100%;
  background: rgb(var(--c-surface));
  border: 1px solid rgb(var(--c-line));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sh-pop);
  animation: pds-scale-in .18s ease-out both;
  max-height: 92dvh; overflow-y: auto;
}
/* на десктопе модалка по центру (на мобильном — прилипает к низу) */
@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 1rem; }
  .modal-panel { border-radius: var(--r-xl); max-width: 32rem; }
}

/* тосты (всплывалки) */
.toast {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem;
  border-radius: .75rem;
  border: 1px solid rgb(var(--c-line));
  box-shadow: var(--sh-pop);
  font-size: .875rem; line-height: 1.25rem; font-weight: 600;
  background: rgb(var(--c-surface));
  animation: pds-fade-up .25s ease-out both;
  transition: opacity .3s, transform .3s;
}
.toast.is-leaving { opacity: 0; transform: translateY(8px); }
.toast-ok   { border-color: rgb(var(--c-ok) / .5); }   .toast-ok .toast-ico   { color: rgb(var(--c-ok)); }
.toast-bad  { border-color: rgb(var(--c-bad) / .5); }  .toast-bad .toast-ico  { color: rgb(var(--c-bad)); }
.toast-info { border-color: rgb(var(--c-info) / .5); } .toast-info .toast-ico { color: rgb(var(--c-info)); }

/* прогресс/лоадер */
.spinner {
  display: inline-block; width: 1em; height: 1em;
  border-radius: 9999px;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: pds-spin 1s linear infinite; /* tailwind-совместимый синоним .animate-spin тоже есть */
}

/* скелетон загрузки (+ вариант с бегущим бликом .skeleton-shimmer, см. §4) */
.skeleton { border-radius: .5rem; background: rgb(var(--c-muted) / .18); animation: pds-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }

/* пустое состояние */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; padding: 3.5rem 1rem;
  text-align: center; color: rgb(var(--c-muted));
}

/* ——— 3. Сайт-кит (инфосайты, лендинги, блоги, демо ProgressiveCMS) ——— */

/* шапка сайта: липкая, стеклянная */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid rgb(var(--c-line));
  background: rgb(var(--c-surface) / .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.site-logo { display: flex; align-items: center; gap: .75rem; font-weight: 800; letter-spacing: -.025em; color: rgb(var(--c-ink)); }
.site-nav { display: none; align-items: center; gap: .25rem; }
@media (min-width: 768px) { .site-nav { display: flex; } }
.site-nav a { padding: .5rem .875rem; border-radius: .625rem; font-size: .875rem; font-weight: 600; color: rgb(var(--c-muted)); transition: all .15s; }
.site-nav a:hover { color: rgb(var(--c-ink)); background: rgb(var(--c-brand) / .08); transform: translateY(-1px); }
.site-nav a.active {
  color: rgb(var(--c-brand));
  background: linear-gradient(135deg, rgb(var(--c-brand) / .14), rgb(var(--c-accent) / .08));
}
.site-actions { display: flex; align-items: center; gap: .5rem; }

/* мобильный drawer */
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
  width: min(20rem, 86vw);
  background: rgb(var(--c-surface));
  border-right: 1px solid rgb(var(--c-line));
  padding: 1rem;
  overflow-y: auto;
  transform: translateX(-105%);
  transition: transform .25s ease;
}
.drawer.open { transform: none; }
.drawer-scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgb(var(--c-ink) / .5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }

/* футер */
.site-footer { border-top: 1px solid rgb(var(--c-line)); background: rgb(var(--c-surface)); }
.site-footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .site-footer-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .8fr); }
}
.site-footer h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: rgb(var(--c-muted)); margin-bottom: .875rem; }
.site-footer li a { display: inline-block; padding: .25rem 0; font-size: .875rem; font-weight: 600; color: rgb(var(--c-muted)); transition: color .15s, transform .15s; }
.site-footer li a:hover { color: rgb(var(--c-brand)); transform: translateX(2px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  border-top: 1px solid rgb(var(--c-line));
  margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: .75rem; color: rgb(var(--c-muted) / .8);
}

/* герой */
.hero { position: relative; overflow: hidden; }
.hero-blob {
  position: absolute; border-radius: 9999px;
  background: rgb(var(--c-brand) / .12);
  filter: blur(64px);
  pointer-events: none;
}
.hero-blob.hero-blob-accent { background: rgb(var(--c-accent) / .12); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: rgb(var(--c-brand));
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08; font-weight: 800; letter-spacing: -.025em;
}
.hero-lead { margin-top: 1.25rem; max-width: 38rem; font-size: 1.125rem; line-height: 1.7; font-weight: 500; color: rgb(var(--c-muted)); }
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
/* сплошная брендовая панель (герой-полоса, экран входа) — только токены, без hex */
.brand-panel { background: linear-gradient(150deg, rgb(var(--c-brand-strong)) 0%, color-mix(in srgb, rgb(var(--c-brand-strong)) 55%, rgb(var(--c-accent)) 45%) 55%, rgb(var(--c-accent)) 100%); color: #fff; }

/* секции лендинга */
.section { padding: 4.5rem 0; }
.section-head { max-width: 42rem; margin: 0 auto 3rem; text-align: center; }
.section-title { font-size: clamp(1.65rem, 3.2vw, 2.35rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.section-lead { margin-top: .875rem; color: rgb(var(--c-muted)); font-size: 1.0625rem; line-height: 1.65; font-weight: 500; }

/* rich-text (поля rich_text / article body CMS) */
.prose { font-size: 1rem; line-height: 1.75; color: rgb(var(--c-ink)); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin-top: 1.9em; }
.prose h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.35; margin-top: 1.6em; }
.prose h4 { font-size: 1rem; font-weight: 700; margin-top: 1.5em; }
.prose a {
  color: rgb(var(--c-brand)); font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgb(var(--c-brand) / .35);
  text-underline-offset: 2px;
  transition: text-decoration-color .15s;
}
.prose a:hover { text-decoration-color: rgb(var(--c-brand)); }
.prose ul { list-style: disc; padding-left: 1.5rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: rgb(var(--c-brand)); }
.prose strong { font-weight: 700; }
.prose blockquote { border-left: 3px solid rgb(var(--c-brand) / .5); padding: .25rem 0 .25rem 1.25rem; color: rgb(var(--c-muted)); font-weight: 500; }
.prose code {
  font-family: var(--font-mono); font-size: .875em;
  background: rgb(var(--c-muted) / .14);
  padding: .15em .4em; border-radius: .375rem;
}
.prose pre {
  background: rgb(var(--c-surface2));
  border: 1px solid rgb(var(--c-line));
  border-radius: .75rem;
  padding: 1rem 1.25rem; overflow-x: auto;
}
.prose pre code { background: none; padding: 0; font-size: .8125rem; line-height: 1.65; }
.prose img { border-radius: var(--r-xl); }
.prose hr { border: none; border-top: 1px solid rgb(var(--c-line)); margin: 2.2em 0; }
.prose table { width: 100%; font-size: .875rem; }

/* выноска (callout: info | note | warning | success | accent) */
.callout {
  display: flex; gap: .875rem; align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: var(--r-xl);
  border: 1px solid rgb(var(--c-line));
  background: rgb(var(--c-muted) / .07);
}
.callout-ico { flex-shrink: 0; margin-top: .125rem; color: rgb(var(--c-muted)); }
.callout-title { font-weight: 700; }
.callout-body { font-size: .875rem; line-height: 1.6; color: rgb(var(--c-muted)); margin-top: .2rem; }
.callout-info    { background: rgb(var(--c-info) / .08);  border-color: rgb(var(--c-info) / .3); }
.callout-info    .callout-ico, .callout-info .callout-title { color: rgb(var(--c-info)); }
.callout-warning { background: rgb(var(--c-warn) / .1);   border-color: rgb(var(--c-warn) / .35); }
.callout-warning .callout-ico, .callout-warning .callout-title { color: rgb(var(--c-warn)); }
.callout-success { background: rgb(var(--c-ok) / .09);    border-color: rgb(var(--c-ok) / .3); }
.callout-success .callout-ico, .callout-success .callout-title { color: rgb(var(--c-ok)); }
.callout-accent  { background: rgb(var(--c-accent) / .09); border-color: rgb(var(--c-accent) / .3); }
.callout-accent  .callout-ico, .callout-accent .callout-title { color: rgb(var(--c-accent)); }
.callout-note .callout-ico, .callout-note .callout-title { color: rgb(var(--c-muted)); }

/* цитата / отзыв */
.quote-card { position: relative; }
.quote-card::before {
  content: "\201C";
  position: absolute; top: .5rem; right: 1.25rem;
  font-size: 4.5rem; line-height: 1; font-weight: 800;
  color: rgb(var(--c-brand) / .14);
  pointer-events: none;
}
.quote-text { font-size: 1.05rem; line-height: 1.65; font-weight: 600; }
.quote-author { margin-top: 1.25rem; display: flex; align-items: center; gap: .75rem; }
.quote-author-name { font-weight: 700; font-size: .875rem; }
.quote-author-role { font-size: .75rem; color: rgb(var(--c-muted)); font-weight: 600; }

/* аккордеон (FAQ) — плавная высота через grid-template-rows, работает без JS-измерений */
.acc-item { background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line)); border-radius: var(--r-xl); box-shadow: var(--sh-card); transition: border-color .2s; }
.acc-item.open { border-color: rgb(var(--c-brand) / .4); }
.acc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; text-align: left;
  padding: 1rem 1.25rem;
  font-weight: 700; font-size: .9375rem; line-height: 1.4;
  color: rgb(var(--c-ink));
}
.acc-chevron { flex-shrink: 0; color: rgb(var(--c-muted)); transition: transform .25s; font-size: .8em; }
.acc-item.open .acc-chevron { transform: rotate(180deg); color: rgb(var(--c-brand)); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease-out); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; }
.acc-body { padding: 0 1.25rem 1.25rem; font-size: .875rem; line-height: 1.65; color: rgb(var(--c-muted)); }

/* таймлайн (этапы) */
.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute;
  left: .9375rem; top: .75rem; bottom: .75rem;
  width: 2px;
  background: linear-gradient(rgb(var(--c-brand) / .5), rgb(var(--c-accent) / .5));
}
.timeline-item { position: relative; padding: 0 0 1.75rem 3rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: 0; top: 0;
  width: 1.875rem; height: 1.875rem;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800;
  background: linear-gradient(135deg, rgb(var(--c-brand) / .22), rgb(var(--c-brand) / .08));
  color: rgb(var(--c-brand));
  border: 2px solid rgb(var(--c-surface));
  box-shadow: 0 0 0 1px rgb(var(--c-brand) / .35);
}
.timeline-date { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: rgb(var(--c-brand)); }
.timeline-title { font-weight: 700; margin-top: .125rem; }
.timeline-text { font-size: .875rem; line-height: 1.6; color: rgb(var(--c-muted)); margin-top: .25rem; }

/* галерея + лайтбокс */
.gallery-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.gallery-item {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid rgb(var(--c-line));
  background: rgb(var(--c-surface2));
  cursor: zoom-in;
}
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.75rem .875rem .75rem;
  font-size: .75rem; font-weight: 600; color: #fff; text-align: left;
  background: linear-gradient(transparent, rgb(8 11 19 / .7));
  opacity: 0; transition: opacity .25s;
}
.gallery-item:hover figcaption, .gallery-item:focus-visible figcaption { opacity: 1; }
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgb(8 11 19 / .88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox img {
  max-width: 100%; max-height: 88dvh;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-pop);
  animation: pds-zoom-in .25s var(--ease-out) both;
}
.lightbox-close { position: absolute; top: 1rem; right: 1rem; color: #fff; }
.lightbox-close:hover { background: rgb(255 255 255 / .15); color: #fff; }
.lightbox-caption { position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%); font-size: .8125rem; font-weight: 600; color: rgb(255 255 255 / .85); }

/* код */
.code-block { border: 1px solid rgb(var(--c-line)); border-radius: var(--r-xl); background: rgb(var(--c-surface2)); overflow: hidden; }
.code-block-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem .75rem .5rem 1.25rem;
  border-bottom: 1px solid rgb(var(--c-line));
  font-size: .75rem; font-weight: 700; color: rgb(var(--c-muted));
}
.code-block pre { padding: 1rem 1.25rem; overflow-x: auto; font-family: var(--font-mono); font-size: .8125rem; line-height: 1.65; }

/* видео-фасад (клик → вставка iframe, см. progressive.js PDS.video) */
.video-facade {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid rgb(var(--c-line));
  background: rgb(var(--c-surface2));
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgb(8 11 19 / .25);
  border: none; cursor: pointer;
  transition: background .2s;
}
.video-play:hover { background: rgb(8 11 19 / .12); }
.video-play-btn {
  width: 4.25rem; height: 4.25rem;
  border-radius: 9999px;
  display: grid; place-items: center;
  background: rgb(var(--c-surface) / .92);
  color: rgb(var(--c-brand));
  box-shadow: var(--sh-pop);
  font-size: 1.25rem;
  padding-left: .2rem;
  transition: transform .2s var(--ease-out);
}
.video-facade:hover .video-play-btn { transform: scale(1.1); }
.video-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* тарифы */
.pricing-card { display: flex; flex-direction: column; }
.pricing-featured { border-color: rgb(var(--c-brand) / .5); box-shadow: 0 12px 40px -12px rgb(var(--c-brand) / .35); }
.pricing-badge { position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%); }
.pricing-price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.pricing-period { font-size: .875rem; font-weight: 600; color: rgb(var(--c-muted)); }
.pricing-features { margin: 1.5rem 0; display: grid; gap: .625rem; font-size: .875rem; font-weight: 500; }
.pricing-features li { display: flex; gap: .625rem; align-items: baseline; }
.pricing-features .fa-solid { color: rgb(var(--c-ok)); font-size: .75rem; }

/* карточка статьи / связанный материал */
.article-card { display: flex; flex-direction: column; overflow: hidden; }
.article-cover { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.article-card-body { padding: 1.25rem; display: grid; gap: .5rem; }
.article-meta { display: flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 600; color: rgb(var(--c-muted)); }

/* список документов */
.doc-item {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1rem;
  border: 1px solid rgb(var(--c-line));
  border-radius: var(--r-xl);
  background: rgb(var(--c-surface));
  transition: all .15s;
}
.doc-item:hover { border-color: rgb(var(--c-brand) / .4); transform: translateY(-1px); box-shadow: var(--sh-card); }

/* форма */
.form-grid { display: grid; gap: 1.25rem; }
.field-error { font-size: .75rem; font-weight: 600; color: rgb(var(--c-bad)); margin-top: .375rem; }
.hint { font-size: .75rem; color: rgb(var(--c-muted)); margin-top: .375rem; }
.consent-row { display: flex; gap: .625rem; align-items: flex-start; font-size: .8125rem; line-height: 1.5; color: rgb(var(--c-muted)); }
.consent-row .checkbox { margin-top: .125rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* квиз: вариант-карточка (radio/checkbox как карточка) */
.option-card {
  display: flex; align-items: center; gap: .75rem;
  width: 100%; text-align: left;
  padding: .875rem 1rem;
  border: 1px solid rgb(var(--c-line));
  border-radius: var(--r-xl);
  background: rgb(var(--c-surface));
  cursor: pointer;
  font-weight: 600; font-size: .875rem; line-height: 1.4;
  transition: all .15s;
}
.option-card:hover { border-color: rgb(var(--c-brand) / .5); background: rgb(var(--c-brand) / .05); transform: translateY(-1px); }
.option-card.selected {
  border-color: rgb(var(--c-brand));
  background: rgb(var(--c-brand) / .08);
  box-shadow: 0 0 0 3px rgb(var(--c-brand) / .15);
}
.option-key {
  flex-shrink: 0;
  width: 1.75rem; height: 1.75rem;
  border-radius: .5rem;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800;
  background: rgb(var(--c-muted) / .12);
  color: rgb(var(--c-muted));
}
.option-card.selected .option-key { background: rgb(var(--c-brand)); color: #fff; }

/* прогресс-бар (квиз, загрузка, мастер-формы) */
.progress { height: .5rem; border-radius: 9999px; background: rgb(var(--c-muted) / .18); overflow: hidden; }
.progress-bar {
  height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, rgb(var(--c-brand)), rgb(var(--c-accent)));
  transition: width .4s var(--ease-out);
}

/* карта-заглушка (пока не подключён провайдер карт) */
.map-card {
  position: relative; min-height: 18rem;
  display: grid; place-items: center;
  border: 1px solid rgb(var(--c-line));
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgb(var(--c-brand) / .07), transparent 50%),
    radial-gradient(circle at 75% 70%, rgb(var(--c-accent) / .07), transparent 50%),
    rgb(var(--c-surface2));
}

/* хлебные крошки */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; font-size: .8125rem; font-weight: 600; color: rgb(var(--c-muted)); }
.breadcrumb a { transition: color .15s; }
.breadcrumb a:hover { color: rgb(var(--c-brand)); }
.breadcrumb-sep { opacity: .5; }

/* пагинация */
.pagination { display: flex; justify-content: center; gap: .375rem; }
.page-btn {
  min-width: 2.5rem; height: 2.5rem; padding: 0 .5rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: .625rem;
  font-size: .875rem; font-weight: 700;
  color: rgb(var(--c-muted));
  border: 1px solid transparent;
  transition: all .15s;
}
.page-btn:hover { background: rgb(var(--c-muted) / .12); color: rgb(var(--c-ink)); }
.page-btn.active { background: rgb(var(--c-brand) / .12); border-color: rgb(var(--c-brand) / .25); color: rgb(var(--c-brand-ink)); }

/* CTA-полоса (блок cta variant=wide/accent) */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: calc(var(--r-xl) + .25rem);
  padding: 3rem 1.5rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(150deg, rgb(var(--c-brand-strong)) 0%, color-mix(in srgb, rgb(var(--c-brand-strong)) 55%, rgb(var(--c-accent)) 45%) 55%, rgb(var(--c-accent)) 100%);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 9999px;
  background: rgb(255 255 255 / .12);
  filter: blur(40px);
  pointer-events: none;
}
.cta-band::before { top: -6rem; right: -6rem; width: 18rem; height: 18rem; }
.cta-band::after { bottom: -7rem; left: -5rem; width: 15rem; height: 15rem; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.025em; }
.cta-band p { margin-top: .75rem; color: rgb(255 255 255 / .85); font-weight: 500; }

/* ——— 4. Анимации и движение (motion kit) ———
   Все локальные, CSS-first; JS только включает классы.
   prefers-reduced-motion выключает всё в конце файла. */

@keyframes pds-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pds-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pds-zoom-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes pds-scale-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes pds-slide-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pds-slide-down { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pds-slide-right { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pds-spin { to { transform: rotate(360deg); } }
@keyframes pds-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes pds-shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes pds-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* однострочные анимации входа (Tailwind-совместимые имена сохранены) */
.animate-fade-up { animation: pds-fade-up .25s ease-out both; }
.animate-fade-in { animation: pds-fade-in .3s ease-out both; }
.animate-zoom-in { animation: pds-zoom-in .2s var(--ease-out) both; }
.animate-scale-in { animation: pds-scale-in .18s ease-out both; }
.animate-slide-up { animation: pds-slide-up .4s var(--ease-out) both; }
.animate-slide-down { animation: pds-slide-down .4s var(--ease-out) both; }
.animate-slide-right { animation: pds-slide-right .4s var(--ease-out) both; }
.animate-spin { animation: pds-spin 1s linear infinite; }
.animate-pulse { animation: pds-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.animate-float { animation: pds-float 5s ease-in-out infinite; }
.animation-delay-100 { animation-delay: .1s; }
.animation-delay-200 { animation-delay: .2s; }
.animation-delay-300 { animation-delay: .3s; }
.animation-delay-500 { animation-delay: .5s; }

/* Reveal-подъезды при скролле: [data-reveal] на элементе, JS добавляет .is-revealed.
   Гейт html.js — без JS весь контент сразу виден. */
html.js [data-reveal] {
  transform: translateY(18px);
  transition:
    opacity .65s var(--ease-out),
    transform .65s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
/* will-change держит stacking context: нужен только ДО reveal, иначе дропдауны
   карточки уходят под соседние карточки, идущие позже по DOM */
html.js [data-reveal]:not(.is-revealed) { will-change: opacity, transform; }
html.js [data-reveal="fade"]  { transform: none; }
html.js [data-reveal="zoom"]  { transform: scale(.94); }
html.js [data-reveal="left"]  { transform: translateX(-24px); }
html.js [data-reveal="right"] { transform: translateX(24px); }
html.js [data-reveal="down"]  { transform: translateY(-18px); }
html.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* скелетон с бегущим бликом: .skeleton.skeleton-shimmer */
.skeleton-shimmer { position: relative; overflow: hidden; }
.skeleton-shimmer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgb(var(--c-surface) / .55), transparent);
  animation: pds-shimmer 1.6s infinite;
}

/* плавная смена темы: JS вешает .pds-theme-anim на 300мс на момент переключения */
html.pds-theme-anim, html.pds-theme-anim *,
html.pds-theme-anim *::before, html.pds-theme-anim *::after {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, fill .25s ease, stroke .25s ease, box-shadow .25s ease !important;
}

/* ——— 5. Утилиты ———
   Имена и шкала совпадают с Tailwind 3.4 (чтобы разметка из DESIGN_SYSTEM.md
   работала и здесь, и в Tailwind-проектах без правок). Прозрачные варианты —
   только те, что встречаются в канонической разметке; для прочих — inline
   style="color: rgb(var(--c-muted) / .7)". */

/* display / позиционирование */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.static { position: static; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-x-0 { left: 0; right: 0; }
.top-0 { top: 0; } .right-0 { right: 0; } .bottom-0 { bottom: 0; } .left-0 { left: 0; }
.right-4 { right: 1rem; } .right-6 { right: 1.5rem; }
.top-3 { top: .75rem; } .right-3 { right: .75rem; }
.top-1\/2 { top: 50%; } .left-1\/2 { left: 50%; }
.-top-24 { top: -6rem; } .-right-24 { right: -6rem; } .-left-16 { left: -4rem; }
.bottom-10 { bottom: 2.5rem; }
.bottom-20 { bottom: 5rem; }
.right-1\.5 { right: .375rem; }
.left-3\.5 { left: .875rem; }
.z-0 { z-index: 0; } .z-10 { z-index: 10; } .z-20 { z-index: 20; } .z-30 { z-index: 30; }
.z-40 { z-index: 40; } .z-50 { z-index: 50; }
.z-\[70\] { z-index: 70; } .z-\[80\] { z-index: 80; } .z-\[90\] { z-index: 90; }

/* flex / grid */
.flex-col { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-none { flex: none; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.gap-0\.5 { gap: .125rem; }
.gap-1 { gap: .25rem; }
.gap-1\.5 { gap: .375rem; }
.gap-2 { gap: .5rem; }
.gap-2\.5 { gap: .625rem; }
.gap-3 { gap: .75rem; }
.gap-3\.5 { gap: .875rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.col-span-full { grid-column: 1 / -1; }

/* размеры */
.w-full { width: 100%; } .h-full { height: 100%; }
.min-w-0 { min-width: 0; } .min-h-0 { min-height: 0; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; }
.h-1 { height: .25rem; }
.h-2 { height: .5rem; }
.h-3 { height: .75rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-8 { width: 2rem; } .h-8 { height: 2rem; }
.w-9 { width: 2.25rem; } .h-9 { height: 2.25rem; }
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.w-12 { width: 3rem; } .h-12 { height: 3rem; }
.w-14 { width: 3.5rem; } .h-14 { height: 3.5rem; }
.w-16 { width: 4rem; } .h-16 { height: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.w-48 { width: 12rem; }
.w-64 { width: 16rem; }
.w-72 { width: 18rem; } .h-72 { height: 18rem; }
.w-96 { width: 24rem; } .h-96 { height: 24rem; }
.w-4\/5 { width: 80%; }
.w-3\/5 { width: 60%; }
.h-dvh { height: 100dvh; }
.min-h-dvh { min-height: 100dvh; }
.min-h-screen { min-height: 100vh; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-72 { max-width: 18rem; }
.max-w-\[20rem\] { max-width: 20rem; }
.max-w-\[70\%\] { max-width: 70%; }
.max-h-72 { max-height: 18rem; }
.max-h-\[92dvh\] { max-height: 92dvh; }
.min-w-\[42rem\] { min-width: 42rem; }
.min-w-\[28rem\] { min-width: 28rem; }
.w-2\.5 { width: .625rem; }

/* отступы */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.-mt-0\.5 { margin-top: -.125rem; }
.mt-0\.5 { margin-top: .125rem; }
.mt-1 { margin-top: .25rem; } .mt-1\.5 { margin-top: .375rem; }
.mt-2 { margin-top: .5rem; } .mt-2\.5 { margin-top: .625rem; }
.mt-3 { margin-top: .75rem; } .mt-3\.5 { margin-top: .875rem; }
.mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; }
.mb-0\.5 { margin-bottom: .125rem; }
.mb-1 { margin-bottom: .25rem; } .mb-1\.5 { margin-bottom: .375rem; }
.mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; } .mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; } .mb-12 { margin-bottom: 3rem; }
.mr-1 { margin-right: .25rem; } .mr-2 { margin-right: .5rem; }
.ml-1 { margin-left: .25rem; } .ml-2 { margin-left: .5rem; } .ml-auto { margin-left: auto; }
.p-0 { padding: 0; }
.p-1 { padding: .25rem; } .p-1\.5 { padding: .375rem; }
.p-2 { padding: .5rem; } .p-2\.5 { padding: .625rem; }
.p-3 { padding: .75rem; } .p-3\.5 { padding: .875rem; }
.p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; } .p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; } .p-12 { padding: 3rem; }
.px-0 { padding-left: 0; padding-right: 0; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-2\.5 { padding-left: .625rem; padding-right: .625rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-1 { padding-left: .25rem; padding-right: .25rem; }
.px-3\.5 { padding-left: .875rem; padding-right: .875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: .125rem; padding-bottom: .125rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-1\.5 { padding-top: .375rem; padding-bottom: .375rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-2\.5 { padding-top: .625rem; padding-bottom: .625rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.pt-0 { padding-top: 0; }
.pt-2 { padding-top: .5rem; } .pt-4 { padding-top: 1rem; } .pt-5 { padding-top: 1.25rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-14 { padding-bottom: 3.5rem; }
.pb-24 { padding-bottom: 6rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-11 { padding-right: 2.75rem; }
.-m-2 { margin: -.5rem; }

/* интервал между детьми */
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-1\.5 > * + * { margin-top: .375rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-14 > * + * { margin-top: 3.5rem; }
.space-x-2 > * + * { margin-left: .5rem; }
.space-x-4 > * + * { margin-left: 1rem; }

/* текст */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 15px; }
.text-\[15px\] { font-size: 15px; line-height: 21px; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.italic { font-style: italic; }
.tracking-tight { letter-spacing: -.025em; }
.tracking-tighter { letter-spacing: -.05em; }
.tracking-wide { letter-spacing: .025em; }
.tracking-wider { letter-spacing: .05em; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.leading-none { line-height: 1; }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre { white-space: pre; }
.break-words { overflow-wrap: break-word; }
.break-all { word-break: break-all; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.underline { text-decoration-line: underline; }
.no-underline { text-decoration-line: none; }
.decoration-white\/30 { text-decoration-color: rgb(255 255 255 / .3); }

/* цвета текста */
.text-ink { color: rgb(var(--c-ink)); }
.text-muted { color: rgb(var(--c-muted)); }
.text-brand { color: rgb(var(--c-brand)); }
.text-brand-ink { color: rgb(var(--c-brand-ink)); }
.text-ok { color: rgb(var(--c-ok)); }
.text-warn { color: rgb(var(--c-warn)); }
.text-bad { color: rgb(var(--c-bad)); }
.text-info { color: rgb(var(--c-info)); }
.text-accent { color: rgb(var(--c-accent)); }
.text-white { color: #fff; }
.text-muted\/60 { color: rgb(var(--c-muted) / .6); }
.text-muted\/70 { color: rgb(var(--c-muted) / .7); }
.text-muted\/80 { color: rgb(var(--c-muted) / .8); }
.text-muted\/50 { color: rgb(var(--c-muted) / .5); }
.text-white\/80 { color: rgb(255 255 255 / .8); }
.text-white\/60 { color: rgb(255 255 255 / .6); }

/* фоны */
.bg-bg { background-color: rgb(var(--c-bg)); }
.bg-surface { background-color: rgb(var(--c-surface)); }
.bg-surface2 { background-color: rgb(var(--c-surface2)); }
.bg-ink { background-color: rgb(var(--c-ink)); }
.bg-brand { background-color: rgb(var(--c-brand)); }
.bg-white { background-color: #fff; }
.bg-transparent { background-color: transparent; }
.bg-surface\/90 { background-color: rgb(var(--c-surface) / .9); }
.bg-surface\/60 { background-color: rgb(var(--c-surface) / .6); }
.bg-surface2\/50 { background-color: rgb(var(--c-surface2) / .5); }
.bg-surface2\/60 { background-color: rgb(var(--c-surface2) / .6); }
.bg-ink\/50 { background-color: rgb(var(--c-ink) / .5); }
.bg-muted\/10 { background-color: rgb(var(--c-muted) / .1); }
.bg-white\/10 { background-color: rgb(255 255 255 / .1); }
.bg-white\/15 { background-color: rgb(255 255 255 / .15); }
.bg-brand\/5 { background-color: rgb(var(--c-brand) / .05); }
.bg-brand\/8 { background-color: rgb(var(--c-brand) / .08); }
.bg-gradient-brand { background-image: linear-gradient(135deg, rgb(var(--c-brand)), rgb(var(--c-accent))); }

/* границы и скругления */
.border { border-width: 1px; }
.border-0 { border-width: 0; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-line { border-color: rgb(var(--c-line)); }
.border-transparent { border-color: transparent; }
.border-white\/25 { border-color: rgb(255 255 255 / .25); }
.border-brand\/25 { border-color: rgb(var(--c-brand) / .25); }
.border-bad\/30 { border-color: rgb(var(--c-bad) / .3); }
.rounded-sm { border-radius: .125rem; }
.rounded { border-radius: .25rem; }
.rounded-md { border-radius: .375rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-xl2 { border-radius: var(--r-xl); }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-xl2 { border-radius: var(--r-xl) var(--r-xl) 0 0; }

/* тени / эффекты / фильтры */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(15 23 42 / .05); }
.shadow { box-shadow: 0 1px 3px 0 rgb(15 23 42 / .1), 0 1px 2px -1px rgb(15 23 42 / .1); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(15 23 42 / .1), 0 2px 4px -2px rgb(15 23 42 / .1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(15 23 42 / .1), 0 4px 6px -4px rgb(15 23 42 / .1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(15 23 42 / .1), 0 8px 10px -6px rgb(15 23 42 / .1); }
.shadow-card { box-shadow: var(--sh-card); }
.shadow-pop { box-shadow: var(--sh-pop); }
.opacity-0 { opacity: 0; }
.opacity-40 { opacity: .4; }
.opacity-50 { opacity: .5; }
.opacity-60 { opacity: .6; }
.opacity-70 { opacity: .7; }
.opacity-80 { opacity: .8; }
.opacity-90 { opacity: .9; }
.opacity-100 { opacity: 1; }
.blur-xl { filter: blur(24px); }
.blur-2xl { filter: blur(40px); }
.blur-3xl { filter: blur(64px); }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* переходы / трансформы */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(.4, 0, .2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(.4, 0, .2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(.4, 0, .2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(.4, 0, .2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(.4, 0, .2, 1); transition-duration: 150ms; }
.duration-100 { transition-duration: 100ms; }
.duration-150 { transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, .2, 1); }
.scale-95 { transform: scale(.95); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }
.scale-125 { transform: scale(1.25); }
.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-x-full { transform: translateX(-100%); }
.translate-x-0 { transform: translateX(0); }
.translate-x-4 { transform: translateX(1rem); }
.translate-y-1 { transform: translateY(.25rem); }
.-rotate-90 { transform: rotate(-90deg); }
.rotate-180 { transform: rotate(180deg); }

/* переполнение / интерактив */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-x-clip { overflow-x: clip; }
.object-cover { object-fit: cover; }
.cursor-pointer { cursor: pointer; }
.cursor-help { cursor: help; }
.cursor-zoom-in { cursor: zoom-in; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.aspect-video { aspect-ratio: 16 / 9; }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
/* иконка под активную тему (см. примеры): .dark-hidden видна в светлой, .dark-visible — в тёмной.
   !important — Font Awesome задаёт .fa-solid { display: inline-block } и перебивает одиночный класс */
.dark-visible { display: none !important; }
.dark .dark-visible { display: inline !important; }
.dark .dark-hidden { display: none !important; }
.list-none { list-style: none; }
.list-disc { list-style: disc; }
.list-inside { list-style-position: inside; }
.divide-y > * + * { border-top-width: 1px; border-top-color: rgb(var(--c-line)); }

/* hover/focus/group-варианты, встречающиеся в канонической разметке */
.hover\:text-ink:hover { color: rgb(var(--c-ink)); }
.hover\:text-brand:hover { color: rgb(var(--c-brand)); }
.hover\:text-bad:hover { color: rgb(var(--c-bad)); }
.hover\:bg-muted\/12:hover { background-color: rgb(var(--c-muted) / .12); }
.hover\:bg-brand\/8:hover { background-color: rgb(var(--c-brand) / .08); }
.hover\:shadow-pop:hover { box-shadow: var(--sh-pop); }
.hover\:opacity-100:hover { opacity: 1; }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:-translate-y-0\.5:hover { transform: translateY(-2px); }
.hover\:decoration-white:hover { text-decoration-color: #fff; }
.hover\:bg-white\/10:hover { background-color: rgb(255 255 255 / .1); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:text-brand { color: rgb(var(--c-brand)); }
.group:active .group-active\:scale-125 { transform: scale(1.25); }

/* !important-варианты, встречающиеся в канонической разметке */
.\!w-9 { width: 2.25rem !important; } .\!h-9 { height: 2.25rem !important; }
.\!w-10 { width: 2.5rem !important; } .\!h-10 { height: 2.5rem !important; }
.\!w-14 { width: 3.5rem !important; } .\!h-14 { height: 3.5rem !important; }
.\!w-8 { width: 2rem !important; } .\!h-8 { height: 2rem !important; }
.\!w-28 { width: 7rem !important; }
.\!text-muted { color: rgb(var(--c-muted)) !important; }
.\!rounded-lg { border-radius: .5rem !important; }
.\!rounded-full { border-radius: 9999px !important; }
.\!px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.\!px-2\.5 { padding-left: .625rem !important; padding-right: .625rem !important; }
.\!py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.\!py-3 { padding-top: .75rem !important; padding-bottom: .75rem !important; }
.\!pl-10 { padding-left: 2.5rem !important; }
.\!pr-11 { padding-right: 2.75rem !important; }
.\!p-0\.5 { padding: .125rem !important; }
.\!items-start { align-items: flex-start !important; }
.\!text-right { text-align: right !important; }
.\!text-bad { color: rgb(var(--c-bad)) !important; }
.\!text-brand { color: rgb(var(--c-brand)) !important; }
.\!text-white { color: #fff !important; }
.\!max-w-sm { max-width: 24rem !important; }
.\!z-\[90\] { z-index: 90 !important; }
.\!bg-white\/15 { background-color: rgb(255 255 255 / .15) !important; }
.\!bg-white\/10 { background-color: rgb(255 255 255 / .1) !important; }
.\!border-white\/25 { border-color: rgb(255 255 255 / .25) !important; }

/* ——— 6. Адаптивные варианты (sm 640 / md 768 / lg 1024 / xl 1280) ——— */

@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:hidden { display: none; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:justify-center { justify-content: center; }
  .sm\:gap-2 { gap: .5rem; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:text-left { text-align: left; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:p-12 { padding: 3rem; }
  .sm\:mt-12 { margin-top: 3rem; }
  .sm\:mb-0 { margin-bottom: 0; }
  .sm\:max-w-lg { max-width: 32rem; }
  .sm\:rounded-xl2 { border-radius: var(--r-xl); }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex-col { flex-direction: column; }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-left { text-align: left; }
  .md\:max-w-xs { max-width: 20rem; }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:static { position: static; }
  .lg\:z-auto { z-index: auto; }
  .lg\:translate-x-0 { transform: translateX(0); }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:block { display: block; }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:text-left { text-align: left; }
  .lg\:text-center { text-align: center; }
  .lg\:mx-0 { margin-left: 0; margin-right: 0; }
  .lg\:mt-0 { margin-top: 0; }
  .lg\:mb-0 { margin-bottom: 0; }
  .lg\:p-12 { padding: 3rem; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .lg\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .lg\:pb-8 { padding-bottom: 2rem; }
  .lg\:bottom-6 { bottom: 1.5rem; }
  .lg\:right-6 { right: 1.5rem; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:max-w-md { max-width: 28rem; }
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-start { align-items: flex-start; }
  .lg\:justify-end { justify-content: flex-end; }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ——— Доступность: prefers-reduced-motion гасит всю анимацию ——— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* печать: белая бумага, без теней и декора */
@media print {
  body { background: #fff; color: #000; }
  .card, .acc-item, .doc-item { box-shadow: none; }
  .site-header, .drawer, .drawer-scrim, .modal-overlay, #toasts, .toast, .lightbox, video { display: none !important; }
}
