/* Радикс · дизайн-система · тёмная тема · v1
   Для Jinja2 + HTMX. Без зависимостей.
   Источник — design/handoff/radix.css. Отличия от хендоффа (README, «Дизайн-система»):
   * шрифты — свои файлы из /static/fonts (@font-face ниже), без Google Fonts и внешних CDN;
   * .rx-card__kind — свойства .rx-overline вместо `composes` (это синтаксис CSS Modules,
     браузер его игнорирует);
   * в конце — «Дополнения Радикса»: классы вместо inline-стилей из макросов и
     components.html (CSP style-src 'self' запрещает атрибут style).
   Начертания: Manrope 400/500/600/700, Cormorant Garamond 500/600 и курсив 400 — вариативные
   файлы (ось wght) закрывают их все. Сабсеты (static/fonts/README.md): кириллица + «basic»
   (ASCII, цифры, пробелы и знаки, без которых не обходится ни одна русская строка), «₽» Manrope
   отдельным файлом в 1 КБ, курсив — только буквы подписей осей (Asc, MC); полные latin и
   latin-ext остались для редких букв с диакритикой. unicode-range не пересекаются.
   ?v= у шрифтов — те же версии содержимого, что даёт static_url() для <link rel="preload">
   (иначе предзагрузка качала бы файл второй раз); проверяет tests/web/test_static_cache.py.
*/
@font-face { /* кириллица */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/manrope-cyrillic-wght-normal.woff2?v=c268b459a9) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face { /* ASCII, цифры, пробелы, «», —, …, °, · — нужен почти каждой русской строке */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/manrope-basic-wght-normal.woff2?v=f3adecb8ce) format('woff2');
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B0, U+00B7, U+00BB, U+00D7, U+2010-2014, U+2018-201E, U+2026, U+2032-2033, U+2039-203A, U+2212;
}
@font-face { /* только «₽» (1 КБ вместо набора latin-ext) */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/manrope-rub-wght-normal.woff2?v=21016977b6) format('woff2');
  unicode-range: U+20BD;
}
@font-face { /* остальная латиница (буквы с диакритикой в названиях мест) */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/manrope-latin-wght-normal.woff2?v=a30ddcd349) format('woff2');
  unicode-range: U+0000-001F, U+007F-009F, U+00A1-00A8, U+00AA, U+00AC-00AF, U+00B1-00B6, U+00B8-00BA, U+00BC-00D6, U+00D8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200F, U+2015-2017, U+201F-2025, U+2027-2031, U+2034-2038, U+203B-206F, U+20AC, U+2122, U+2191, U+2193, U+2215, U+FEFF, U+FFFD;
}
@font-face { /* расширенная латиница — без «₽» */
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(../fonts/manrope-latin-ext-wght-normal.woff2?v=3911b66d9f) format('woff2');
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20BC, U+20BE-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { /* кириллица */
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-cyrillic-wght-normal.woff2?v=017fab69b4) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face { /* ASCII, цифры, пробелы и знаки заголовков */
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-basic-wght-normal.woff2?v=f6268cc5c9) format('woff2');
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B0, U+00B7, U+00BB, U+00D7, U+2010-2014, U+2018-201E, U+2026, U+2032-2033, U+2039-203A, U+2212;
}
@font-face { /* остальная латиница */
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-wght-normal.woff2?v=d80df8ff5a) format('woff2');
  unicode-range: U+0000-001F, U+007F-009F, U+00A1-00A8, U+00AA, U+00AC-00AF, U+00B1-00B6, U+00B8-00BA, U+00BC-00D6, U+00D8-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-200F, U+2015-2017, U+201F-2025, U+2027-2031, U+2034-2038, U+203B-206F, U+20AC, U+2122, U+2191, U+2193, U+2215, U+FEFF, U+FFFD;
}
@font-face { /* курсив подписей осей: Asc, MC, IC, Dsc (2 КБ) */
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-axis-wght-italic.woff2?v=0cf01a9fff) format('woff2');
  unicode-range: U+0041, U+0043-0044, U+0049, U+004D, U+0063, U+0073;
}
@font-face { /* кириллица курсивом */
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-cyrillic-wght-italic.woff2?v=cb13c04533) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face { /* остальная латиница курсивом */
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(../fonts/cormorant-garamond-latin-wght-italic.woff2?v=6f2f5c3b1a) format('woff2');
  unicode-range: U+0000-0040, U+0042, U+0045-0048, U+004A-004C, U+004E-0062, U+0064-0072, U+0074-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* фон и поверхности */
  --rx-bg-0: #0B0D17;
  --rx-bg-1: #141A2E;
  --rx-surface-1: rgba(242,240,234,.04);
  --rx-surface-2: #161C30;
  --rx-scrim: rgba(5,6,12,.64);
  /* текст */
  --rx-text: #F2F0EA;
  --rx-text-2: #B9BDCC;
  --rx-text-3: #7F8494;
  --rx-on-gold: #0B0D17;
  /* акценты */
  --rx-gold: #E8C36A;
  --rx-gold-hover: #F0D07F;
  --rx-gold-press: #D9B45C;
  --rx-blue: #9DB4FF;
  --rx-error: #EF8F80;
  /* линии */
  --rx-line: rgba(242,240,234,.10);
  --rx-line-strong: rgba(242,240,234,.18);
  --rx-wheel: rgba(242,240,234,.55);
  --rx-wheel-soft: rgba(242,240,234,.22);
  --rx-aspect-hard: rgba(157,180,255,.55);
  --rx-aspect-soft: rgba(232,195,106,.5);
  /* шрифты */
  --rx-serif: 'Cormorant Garamond', Georgia, serif;
  --rx-sans: Manrope, system-ui, sans-serif;
  /* отступы (сетка 8) */
  --rx-s-1: 4px; --rx-s-2: 8px; --rx-s-3: 12px; --rx-s-4: 16px; --rx-s-5: 20px;
  --rx-s-6: 24px; --rx-s-8: 32px; --rx-s-10: 40px; --rx-s-12: 48px; --rx-s-16: 64px; --rx-s-24: 96px;
  --rx-gutter: 20px;           /* 64px на ≥ 1024 */
  --rx-max: 1152px;
  /* формы */
  --rx-r-m: 12px; --rx-r-l: 16px; --rx-r-pill: 999px;
  --rx-dur: 200ms; --rx-ease: cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 1024px) { :root { --rx-gutter: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--rx-bg-0); }
body {
  margin: 0; min-height: 100vh; color: var(--rx-text); font: 400 16px/1.5 var(--rx-sans);
  background: linear-gradient(180deg, var(--rx-bg-0) 0%, var(--rx-bg-1) 100%) fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rx-gold); text-decoration: none; }
a:hover { color: var(--rx-gold-hover); }
:focus-visible { outline: 2px solid var(--rx-text); outline-offset: 2px; }
.rx-num { font-variant-numeric: tabular-nums; }

/* ——— типографика ——— */
.rx-display { font: 500 44px/1.02 var(--rx-serif); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.rx-h1 { font: 500 32px/1.12 var(--rx-serif); margin: 0; text-wrap: balance; }
.rx-h2 { font: 600 24px/1.16 var(--rx-serif); margin: 0; }
@media (min-width: 1024px) {
  .rx-display { font-size: 76px; line-height: 1; }
  .rx-h1 { font-size: 40px; line-height: 1.1; }
  .rx-h2 { font-size: 28px; }
}
.rx-reading { font-size: 17px; line-height: 1.65; max-width: 68ch; text-wrap: pretty; }
@media (min-width: 1024px) { .rx-reading { font-size: 18px; } }
.rx-body-l { font-size: 18px; line-height: 1.5; color: var(--rx-text-2); }
.rx-small { font-size: 14px; line-height: 1.45; }
.rx-caption { font-size: 13px; line-height: 1.4; color: var(--rx-text-2); }
.rx-overline { font: 600 12px/1.3 var(--rx-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rx-blue); }
.rx-config { font: 500 13px/1.4 var(--rx-sans); color: var(--rx-blue); }

/* ——— кнопки ——— */
.rx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--rx-s-2);
  height: 52px; padding: 0 var(--rx-s-6); border: 1px solid transparent; border-radius: var(--rx-r-m);
  font: 600 16px/1.2 var(--rx-sans); cursor: pointer; text-decoration: none;
  transition: background var(--rx-dur), border-color var(--rx-dur);
}
.rx-btn--lg { height: 56px; padding: 0 28px; }
.rx-btn--block { display: flex; width: 100%; }
.rx-btn--primary { background: var(--rx-gold); color: var(--rx-on-gold); }
.rx-btn--primary:hover { background: var(--rx-gold-hover); color: var(--rx-on-gold); }
.rx-btn--primary:active { background: var(--rx-gold-press); }
.rx-btn--secondary { background: transparent; color: var(--rx-text); border-color: rgba(242,240,234,.24); }
.rx-btn--secondary:hover { border-color: rgba(242,240,234,.5); background: var(--rx-surface-1); color: var(--rx-text); }
.rx-btn--pill { height: 44px; padding: 0 var(--rx-s-4); border-radius: var(--rx-r-pill); font-size: 14px; font-weight: 500; }
.rx-btn--text { height: 44px; padding: 0 var(--rx-s-1); background: none; color: var(--rx-gold); font-size: 14px; }
.rx-btn:disabled, .rx-btn[aria-disabled="true"] { background: rgba(242,240,234,.08); color: var(--rx-text-3); border-color: transparent; cursor: default; }
.rx-btn .rx-spinner { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(11,13,23,.25); border-top-color: currentColor; animation: rx-spin .8s linear infinite; }
/* HTMX: <button class="rx-btn rx-btn--primary" hx-post=… hx-indicator="this"> */
.rx-btn.htmx-request { pointer-events: none; }

/* ——— поля ——— */
.rx-field { display: flex; flex-direction: column; gap: 6px; }
.rx-field__label { display: flex; justify-content: space-between; font-size: 13px; color: var(--rx-text-2); }
.rx-input {
  width: 100%; height: 52px; padding: 0 var(--rx-s-4); border-radius: var(--rx-r-m);
  border: 1px solid var(--rx-line-strong); background: var(--rx-surface-1); color: var(--rx-text);
  font: 500 16px/1 var(--rx-sans); font-variant-numeric: tabular-nums; outline: none;
  transition: border-color var(--rx-dur);
}
.rx-input::placeholder { color: var(--rx-text-3); }
.rx-input:focus { border-color: var(--rx-gold); background: rgba(242,240,234,.06); }
.rx-input[aria-invalid="true"] { border-color: var(--rx-error); }
.rx-field__error { font-size: 13px; line-height: 1.45; color: var(--rx-error); }
.rx-field__hint { font-size: 13px; line-height: 1.5; color: var(--rx-text-2); }
.rx-field__hint a { border-bottom: 1px solid rgba(232,195,106,.4); }

.rx-suggest { border: 1px solid rgba(242,240,234,.14); border-radius: var(--rx-r-m); background: var(--rx-surface-2); padding: 4px; margin: 0; list-style: none; }
.rx-suggest__item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; cursor: pointer; min-height: 44px; }
.rx-suggest__item[aria-selected="true"], .rx-suggest__item:hover { background: rgba(242,240,234,.06); }
.rx-suggest__name { font-size: 15px; font-weight: 600; }
.rx-suggest__name mark { background: none; color: var(--rx-gold); }
.rx-suggest__meta { font-size: 13px; color: var(--rx-text-2); }

/* сегментированный переключатель — радио-группа */
.rx-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: var(--rx-r-m); border: 1px solid rgba(242,240,234,.14); background: rgba(242,240,234,.03); }
.rx-seg input { position: absolute; opacity: 0; pointer-events: none; }
.rx-seg label { height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--rx-text-2); cursor: pointer; }
.rx-seg input:checked + label { background: var(--rx-text); color: var(--rx-bg-0); font-weight: 600; }
.rx-seg input:focus-visible + label { outline: 2px solid var(--rx-gold); outline-offset: 1px; }

.rx-chips { display: flex; flex-wrap: wrap; gap: var(--rx-s-2); }
.rx-chip { height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; border-radius: var(--rx-r-pill); border: 1px solid var(--rx-line-strong); font-size: 14px; color: var(--rx-text); background: none; cursor: pointer; }
.rx-chip[aria-pressed="true"], input:checked + .rx-chip { border-color: var(--rx-gold); background: rgba(232,195,106,.12); font-weight: 600; }

.rx-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--rx-text-2); cursor: pointer; }
.rx-check input { appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1px solid rgba(242,240,234,.4); border-radius: 6px; display: grid; place-content: center; }
.rx-check input:checked { background: var(--rx-gold); border-color: var(--rx-gold); }
.rx-check input:checked::after { content: ""; width: 10px; height: 6px; border: solid var(--rx-on-gold); border-width: 0 0 1.5px 1.5px; transform: translateY(-1px) rotate(-45deg); }

/* ——— карточки ——— */
.rx-card { border: 1px solid var(--rx-line); border-radius: var(--rx-r-l); background: var(--rx-surface-1); padding: var(--rx-s-5); display: flex; flex-direction: column; gap: var(--rx-s-3); }
@media (min-width: 1024px) { .rx-card { padding: var(--rx-s-6); } }
.rx-card__kind { font: 600 12px/1.3 var(--rx-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rx-blue); }
.rx-card__title { font: 600 28px/1.15 var(--rx-serif); margin: 0; }
.rx-insight__n { font: 500 28px/1 var(--rx-serif); color: var(--rx-gold); }

.rx-list { border: 1px solid var(--rx-line); border-radius: var(--rx-r-l); background: var(--rx-surface-1); }
.rx-list__row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto 56px; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid rgba(242,240,234,.08); font-variant-numeric: tabular-nums; }
.rx-list__row > :nth-child(n+3) { font-size: 14px; color: var(--rx-text-2); }
.rx-list__row > :last-child { text-align: right; }
.rx-list details > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 14px 20px; font-size: 14px; font-weight: 600; cursor: pointer; }
.rx-list details > summary::-webkit-details-marker { display: none; }

/* ——— тултип термина ——— */
.rx-term { border-bottom: 1px dashed var(--rx-blue); cursor: pointer; background: none; padding: 0; font: inherit; color: inherit; }
.rx-term[aria-expanded="true"] { background: rgba(157,180,255,.1); border-radius: 2px; }
.rx-tip {
  position: absolute; z-index: 30; width: min(300px, calc(100vw - 32px));
  border: 1px solid rgba(242,240,234,.16); border-radius: var(--rx-r-m); background: var(--rx-surface-2);
  padding: var(--rx-s-4); display: flex; flex-direction: column; gap: var(--rx-s-2);
  animation: rx-fade var(--rx-dur) var(--rx-ease);
}
.rx-tip__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rx-tip__title { font: 600 22px/1.1 var(--rx-serif); }
.rx-tip__pos { font-size: 13px; color: var(--rx-gold); font-variant-numeric: tabular-nums; }
.rx-tip__body { font-size: 14px; line-height: 1.5; }
.rx-tip__more { font-size: 13px; font-weight: 600; }

/* ——— нижняя шторка ——— */
.rx-scrim { position: fixed; inset: 0; z-index: 40; background: var(--rx-scrim); animation: rx-fade var(--rx-dur) ease-out; }
.rx-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92vh; overflow-y: auto;
  background: var(--rx-surface-2); border-top: 1px solid rgba(242,240,234,.12); border-radius: var(--rx-r-l) var(--rx-r-l) 0 0;
  padding: var(--rx-s-2) var(--rx-gutter) calc(var(--rx-s-6) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--rx-s-4);
  animation: rx-up 240ms var(--rx-ease);
}
@media (min-width: 1024px) { .rx-sheet { left: 50%; right: auto; width: 480px; bottom: 50%; transform: translate(-50%, 50%); border-radius: var(--rx-r-l); border: 1px solid rgba(242,240,234,.12); padding: var(--rx-s-6); animation: rx-fade var(--rx-dur); } }
.rx-sheet__handle { width: 36px; height: 4px; border-radius: 2px; background: rgba(242,240,234,.3); align-self: center; }
@media (min-width: 1024px) { .rx-sheet__handle { display: none; } }
.rx-sheet__head { display: flex; justify-content: space-between; align-items: center; }
.rx-sheet__title { font: 600 26px/1.15 var(--rx-serif); margin: 0; }
.rx-sheet__close { width: 44px; height: 44px; margin-right: -12px; border: 0; background: none; color: var(--rx-text-2); cursor: pointer; }

/* ——— липкая CTA-панель ——— */
.rx-cta {
  position: sticky; bottom: 0; z-index: 20;
  padding: 12px var(--rx-gutter) calc(16px + env(safe-area-inset-bottom));
  background: rgba(11,13,23,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--rx-line);
}
.rx-cta .rx-btn { width: 100%; height: 60px; flex-direction: column; gap: 2px; }
.rx-cta__sub { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.rx-cta__was { text-decoration: line-through; opacity: 0.62; margin-right: 0.35em; }
/* Экран предложения на всё окно (3 с), затем форма. Без скрипта форма видна сразу. */
.rx-stage { display: none; }
html.rx-drop-wait body > :not(.rx-stage) { visibility: hidden; }
html.rx-drop-wait,
html.rx-drop-wait body { overflow: hidden; }
html.rx-drop-wait .rx-stage,
html.rx-drop-leave .rx-stage {
  display: flex; position: fixed; inset: 0; z-index: 80; visibility: visible; opacity: 1;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 32px var(--rx-gutter) calc(32px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--rx-bg-0) 0%, var(--rx-bg-1) 100%);
  text-align: center;
  transition: opacity 480ms ease;
}
html.rx-drop-leave .rx-stage { opacity: 0; pointer-events: none; }
.rx-stage__wheel { position: relative; width: min(68vw, 300px); height: min(68vw, 300px); flex: none; }
.rx-stage__ring {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: repeating-conic-gradient(from -8deg, var(--rx-gold) 0 14deg, rgba(232,195,106,.16) 14deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 57.5%);
  mask: radial-gradient(circle, transparent 56%, #000 57.5%);
}
html.rx-drop-wait .rx-stage__ring { animation: rx-drop-spin 3s cubic-bezier(.12, .6, .08, 1) forwards; }
.rx-stage__hub {
  position: absolute; inset: 22%; border-radius: 50%;
  border: 1px solid rgba(232,195,106,.4);
  background: radial-gradient(circle, rgba(232,195,106,.16), transparent 70%);
}
.rx-stage__wheel::after {
  content: ""; position: absolute; top: -2px; left: 50%; width: 0; height: 0; margin-left: -9px;
  border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-top: 16px solid var(--rx-gold);
}
.rx-stage__title {
  margin: 8px 0 0; max-width: 14ch;
  font: 500 clamp(32px, 8vw, 48px)/1.05 var(--rx-serif); text-wrap: balance;
}
.rx-stage__line { margin: 0; font-size: 16px; line-height: 1.4; color: var(--rx-text-2); }
html.rx-drop-wait .rx-cta__was,
html.rx-drop-wait .prices-card__was {
  display: inline-block; width: 0; height: 0; margin: 0; overflow: hidden; opacity: 0;
}
.rx-drop__land {
  display: block; margin: 4px 0 0; text-align: center;
  font: 500 28px/1.15 var(--rx-serif);
}
html.rx-drop-wait .rx-drop__land { display: none; }
@keyframes rx-drop-spin { to { transform: rotate(1080deg); } }
body:has(.rx-sheet) .rx-cta { visibility: hidden; }
@media (min-width: 1024px) { .rx-cta { display: flex; justify-content: flex-end; } .rx-cta .rx-btn { width: 360px; } }

/* ——— глифы ——— */
.rx-glyph { width: 24px; height: 24px; display: inline-block; vertical-align: middle; color: var(--rx-gold); flex: none; }
.rx-glyph--sign { color: var(--rx-blue); }
.rx-glyph--16 { width: 16px; height: 16px; } .rx-glyph--20 { width: 20px; height: 20px; } .rx-glyph--32 { width: 32px; height: 32px; }
.rx-axis { font: italic 400 1.2em/1 var(--rx-serif); color: var(--rx-gold); }

@keyframes rx-fade { from { opacity: 0; } }
@keyframes rx-up { from { transform: translateY(100%); } }
@keyframes rx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* ——— плашка-уведомление (нет сети, ручная доработка) ——— */
.rx-notice { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 10px 12px; align-items: center; border: 1px solid rgba(157,180,255,.35); border-radius: var(--rx-r-m); background: var(--rx-surface-2); padding: 12px 12px 12px 14px; animation: rx-fade var(--rx-dur) var(--rx-ease); }
.rx-notice--info { grid-template-columns: 20px minmax(0,1fr); align-items: start; background: rgba(157,180,255,.06); border-radius: var(--rx-r-l); padding: 18px; }
.rx-notice--info .rx-notice__action { grid-column: 1 / -1; }
.rx-notice__icon { width: 20px; height: 20px; fill: none; stroke: var(--rx-blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rx-notice__icon circle[r="1.1"] { fill: var(--rx-blue); stroke: none; }
.rx-notice__title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.rx-notice--info .rx-notice__title { font-size: 16px; }
.rx-notice__body { font-size: 13px; line-height: 1.45; color: var(--rx-text-2); }
.rx-notice--info .rx-notice__body { font-size: 14px; line-height: 1.5; margin-top: 4px; }

/* ——— Дополнения Радикса (не из хендоффа) ———
   Классы вместо inline-стилей макросов components/rx и разметки components.html:
   CSP сайта — style-src 'self', атрибут style браузер не применяет. */
[hidden] { display: none !important; }   /* .rx-tip { display: flex } иначе перебивает hidden */
.rx-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* формы */
.rx-form { display: flex; flex-direction: column; gap: var(--rx-s-6); }
.rx-form__group { display: flex; flex-direction: column; gap: 10px; }
.rx-form__city { position: relative; }
.rx-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.rx-fieldset > legend.rx-field__label { padding: 0; margin-bottom: 6px; }
.rx-field__value { color: var(--rx-text); font-variant-numeric: tabular-nums; }
.rx-chip__meta { color: var(--rx-text-2); font-variant-numeric: tabular-nums; }
.rx-chips input:focus-visible + .rx-chip { outline: 2px solid var(--rx-gold); outline-offset: 1px; }
/* строка под кнопкой формы и оплаты (content/legal/ui.md): «Нажимая кнопку, вы принимаете…» */
.rx-consent { margin: 0; font-size: 13px; line-height: 1.45; color: var(--rx-text-2); text-align: center; text-wrap: pretty; }
.rx-consent a { border-bottom: 1px solid rgba(232,195,106,.4); }
/* блок платёжного сервиса у кнопки оплаты (partials/pay_provider.html; M9, модерация Robokassa):
   логотип ссылкой и строка ui.md v6 рядом */
.pay-provider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; }
.pay-provider__link { flex: none; display: inline-flex; line-height: 0; }
.pay-provider__logo { display: block; height: 24px; width: auto; }
.pay-provider__link--text { line-height: 1.5; font-size: 13px; font-weight: 600; color: var(--rx-text-2); }
.pay-provider__line { margin: 0; font-size: 12px; line-height: 1.5; color: var(--rx-text-2); text-wrap: pretty; }

/* кнопки */
.rx-btn--sm { height: 40px; padding: 0 14px; font-size: 14px; }

/* глифы спрайта: у символов glyphs.svg нет своих fill/stroke — без этого <use> рисует их чёрной
   заливкой. Линия 1.5 px при любом размере (как non-scaling-stroke глифов в макете; viewBox 24). */
.rx-glyph { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rx-glyph--16 { stroke-width: 2.25; } .rx-glyph--20 { stroke-width: 1.8; } .rx-glyph--32 { stroke-width: 1.125; }

/* карточки */
.rx-card__head { display: flex; justify-content: space-between; align-items: center; }
.rx-card__head .rx-axis { font-size: 24px; }
.rx-card__text { margin: 0; font-size: 15px; line-height: 1.5; }
.rx-insight__head { display: flex; align-items: baseline; gap: 12px; }
.rx-insight__text { margin: 0; }

/* шторка */
.rx-sheet__text { margin: 0; color: var(--rx-text-2); }

/* cookie-баннер (partials/cookie_banner.html, radix.web.consent; тексты — content/legal/ui.md):
   плашка снизу экрана, над липкой панелью и карточкой планеты, под шторками (z-index 40+). Фон
   непрозрачный — поверх содержимого; на телефоне не закрывает треть экрана. Кнопки одинакового
   размера и веса (обе secondary, flex 1 1 0): отказ не сложнее согласия. */
.rx-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 38; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.rx-cookie__box { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 0 auto; padding: 14px 16px 16px; border: 1px solid var(--rx-line-strong); border-radius: var(--rx-r-l); background: var(--rx-surface-2); box-shadow: 0 12px 40px rgba(5,6,12,.55); pointer-events: auto; }
.rx-cookie__text { margin: 0; font-size: 14px; line-height: 1.45; color: var(--rx-text); text-wrap: pretty; }
.rx-cookie__text a { border-bottom: 1px solid rgba(232,195,106,.4); }
.rx-cookie__actions { display: flex; flex-wrap: wrap; gap: var(--rx-s-2); }
.rx-cookie__actions .rx-btn { flex: 1 1 0; min-width: max-content; white-space: nowrap; }
/* ответ сервера с ошибкой (503 — журнал недоступен, 429 — слишком часто): строка под текстом,
   баннер остаётся открытым (static/radix/analytics.js) */
.rx-cookie__error { margin: 0; font-size: 13px; line-height: 1.45; color: var(--rx-error); }
@media (min-width: 1024px) { .rx-cookie { left: auto; right: 0; width: 480px; padding: 0 var(--rx-s-6) var(--rx-s-6); } }
/* CJM 29.10.2026 (5.5): уведомление режима notice на телефоне — одной полосой у нижнего края
   (не выше 88 px), «Понятно» — в той же строке; текст ui.md и кнопка — прежние. На странице
   «Настройки cookie» коробка — в потоке, как была. */
@media (max-width: 1023px) {
  .rx-cookie:has(> .rx-cookie__box--notice) { padding: 0; }
  .rx-cookie > .rx-cookie__box--notice { flex-flow: row wrap; align-items: center; gap: 6px 10px; max-width: none; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 0; box-shadow: 0 -8px 24px rgba(5,6,12,.45); }
  .rx-cookie > .rx-cookie__box--notice .rx-cookie__text { flex: 1 1 0; min-width: 0; font-size: 12.5px; line-height: 1.35; }
  .rx-cookie > .rx-cookie__box--notice .rx-cookie__actions { flex: none; }
  .rx-cookie > .rx-cookie__box--notice .rx-cookie__actions .rx-btn { padding: 0 14px; }
  .rx-cookie > .rx-cookie__box--notice .rx-cookie__error { flex: 1 0 100%; }
}
/* страница «Настройки cookie» (/cookies); баннер выбора — в потоке страницы, без тени */
.cookie-page__list { display: flex; flex-direction: column; gap: var(--rx-s-3); }
.cookie-page__banner .rx-cookie__box { max-width: none; margin: 0; box-shadow: none; }
.cookie-page__list code { font-size: .92em; color: var(--rx-text); }
.cookie-page__list a { border-bottom: 1px solid rgba(232,195,106,.4); }

/* юридические документы (/privacy, /offer, /consent/*, radix.web.legal): текст заказчика из
   content/legal — markdown без своих классов, оформление по тегам внутри .legal-doc__body */
/* .page.legal-doc: site.css грузится позже и задаёт .page ширину 560 px */
.page.legal-doc { max-width: 720px; gap: var(--rx-s-5); }
.legal-doc__meta { margin: 0; font-size: 13px; line-height: 1.4; color: var(--rx-text-2); }
.legal-doc__archived { margin: 0; padding: 12px 16px; border: 1px solid var(--rx-line-strong); border-radius: var(--rx-r-m); background: var(--rx-surface-1); font-size: 14px; line-height: 1.5; }
.legal-doc__body { font-size: 16px; line-height: 1.6; text-wrap: pretty; overflow-wrap: anywhere; }
.legal-doc__body > :first-child { margin-top: 0; }
.legal-doc__body h1 { font: 500 32px/1.12 var(--rx-serif); margin: 0 0 var(--rx-s-4); text-wrap: balance; }
.legal-doc__body h2 { font: 600 22px/1.2 var(--rx-serif); margin: var(--rx-s-8) 0 var(--rx-s-3); scroll-margin-top: var(--rx-s-6); }
.legal-doc__body p { margin: 0 0 var(--rx-s-3); }
.legal-doc__body ul, .legal-doc__body ol { margin: 0 0 var(--rx-s-3); padding-left: 1.3em; }
.legal-doc__body li + li { margin-top: 6px; }
.legal-doc__body a { border-bottom: 1px solid rgba(232,195,106,.4); }
/* таблица политики (п. 2) на телефоне прокручивается сама, страница — нет */
.legal-doc__body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 var(--rx-s-4); font-size: 14px; line-height: 1.45; }
.legal-doc__body th, .legal-doc__body td { min-width: 150px; padding: 10px 12px; border: 1px solid var(--rx-line); text-align: left; vertical-align: top; }
.legal-doc__body th { font-weight: 600; background: var(--rx-surface-1); }
.legal-doc__versions { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--rx-text-2); }
.legal-doc__index { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--rx-s-4); }
.legal-doc__index li { display: flex; flex-direction: column; gap: 2px; }

/* чекбокс рассылки у «Сохранить карту» (partials/chart_email.html): снят по умолчанию, ссылка на
   текст согласия — рядом, не внутри подписи чекбокса */
.chart-email__consent { display: flex; flex-direction: column; gap: 6px; }
.chart-email__consent-link { align-self: flex-start; margin-left: 34px; font-size: 13px; }
.chart-email__consent-link a { border-bottom: 1px solid rgba(232,195,106,.4); }
.pay-nl { display: flex; flex-direction: column; gap: 6px; }
.pay-nl__link { align-self: flex-start; margin-left: 34px; font-size: 13px; }
.pay-nl__link a { border-bottom: 1px solid rgba(232,195,106,.4); }
/* CRM 2.0 (CRM_CONSENT_COPY_V2, CRM_POST_OPTIN): компактная галочка — подпись в одну строку мельче
   основного текста, чтобы главная кнопка формы доминировала; предложение подписки после действия */
.rx-check--compact, .rx-check--compact span { font-size: 13px; line-height: 1.4; gap: 10px; }
.rx-check--compact input { width: 20px; height: 20px; }
.rx-consent-note { align-self: flex-start; margin-left: 30px; font-size: 12px; color: var(--rx-text-3); }
.rx-consent-note a { color: inherit; border-bottom: 1px solid rgba(242,240,234,.25); }
.crm-offer { margin-top: var(--rx-s-4); padding: var(--rx-s-4); border: 1px solid var(--rx-line); border-radius: var(--rx-r-m); display: flex; flex-direction: column; gap: var(--rx-s-2); }
.crm-offer__title { margin: 0; font-size: 15px; line-height: 1.35; color: var(--rx-text); }
.crm-offer__text { margin: 0; font-size: 13px; line-height: 1.4; color: var(--rx-text-2); }
.crm-offer__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--rx-s-3); }
.crm-offer__row form { margin: 0; }
.crm-offer__terms { font-size: 12px; color: var(--rx-text-3); }
.crm-offer__terms a { color: inherit; border-bottom: 1px solid rgba(242,240,234,.25); }

/* печать: документы и любые страницы — без шапки, подвала, баннера, кнопок и шторок; тёмный текст
   на белом (дополнение M4, п. 3: печатная версия без навигации) */
@media print {
  .site-header, .site-footer, .rx-cookie, .rx-skip, #net-root, #sheet-root, .rx-cta, .rx-btn,
  .page__actions, .legal-doc__versions, .cookie-page__banner { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; }
  body .site-main { max-width: none; padding: 0; }
  .page.legal-doc { max-width: none; }
  .legal-doc__body, .legal-doc__meta, .legal-doc__archived, .legal-doc__body th { color: #000; background: none; }
  .legal-doc__body a, .legal-doc__archived a { color: #000; border-bottom: 0; text-decoration: underline; }
  .legal-doc__body table { display: table; overflow: visible; }
  .legal-doc__body th, .legal-doc__body td { border-color: #999; }
  .legal-doc__body h2 { break-after: avoid; }
  .legal-doc__body tr { break-inside: avoid; }
}

/* ——— вход одной кнопкой у карты аккаунта (решение заказчика от 27.10.2026, правка 1;
   partials/owner_login.html, radix.web.owner_login) ——— */
.owner-login { display: flex; flex-direction: column; gap: var(--rx-s-3); margin-top: var(--rx-s-3); }
.owner-login__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--rx-text-2); }
.owner-login__text:focus { outline: none; }
.owner-login__form { margin: 0; }
