/* ==========================================================================
   ДИЗАЙН-СИСТЕМА «УМНАЯ ТЕТРАДЬ» v14.0
   Чистый семантический CSS-каркас: Breakout Grid + Dual-Shell Trainer
   ========================================================================== */

/* --- 0. ЛОКАЛЬНЫЕ ШРИФТЫ (INTER И NUNITO) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700-latin.woff2') format('woff2');
  unicode-range: U+0000-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-800-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-800-latin.woff2') format('woff2');
  unicode-range: U+0000-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;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito-700-latin.woff2') format('woff2');
  unicode-range: U+0000-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;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/nunito-900-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/nunito-900-latin.woff2') format('woff2');
  unicode-range: U+0000-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;
}

/* --- 1. ПЕРЕМЕННЫЕ ДИЗАЙН-СИСТЕМЫ --- */
:root {
  /* Базовая палитра поверхностей (Световая стратификация) */
  --bg-canvas: #F9F7F2;          /* Теплый оттенок бумаги / молока */
  --bg-surface: #FFFFFF;         /* Чистый лист для карточек и таблиц */
  --bg-muted: #F1EFEA;           /* Вторичные подложки (TL;DR, табы, thead) */
  --bg-glass: rgba(249, 247, 242, 0.94);

  /* Типографическая палитра (WCAG AAA) */
  --text-primary: #1C1E21;       /* Глубокий графит (контраст 15.2:1) */
  --text-secondary: #595E66;     /* Сланцевый для метаданных (контраст 6.1:1) */
  --text-tertiary: #868C96;      /* Вспомогательные метки и номера */
  --text-on-dark: #F8FAFC;       /* Меловой белый для экрана тренажера */

  /* Брендовые и функциональные акценты */
  --brand-primary: #2B5CE6;      /* Интеллектуальный кобальт */
  --brand-primary-hover: #1E46B8;
  --brand-soft: #E6EEFF;         /* Подложка рубрик и номеров */
  --brand-soft-text: #17327A;
  --brand-highlight: #F59E0B;    /* Янтарный акцент внимания */

  /* Палитра встроенного тренажера («Школьная доска») */
  --board-bg: #183028;           /* Глубокий матовый изумрудно-аспидный */
  --board-border: rgba(255, 255, 255, 0.12);
  --board-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35);

  /* Семантические дидактические цвета */
  --didactic-error-bg: #FDF3F2;
  --didactic-error-accent: #D93829;
  --didactic-error-text: #6E1B14;

  --didactic-success-bg: #F1F8F4;
  --didactic-success-accent: #1E7E48;
  --didactic-success-text: #114628;

  --didactic-rule-bg: #FEF8EC;
  --didactic-rule-accent: #D97706;
  --didactic-rule-text: #5C3404;

  --didactic-info-bg: #F0F5FF;
  --didactic-info-accent: #2B5CE6;
  --didactic-info-text: #17327A;

  /* Линии, скругления и тени */
  --border-subtle: #E4E1DA;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --shadow-card: 0 12px 32px -8px rgba(28, 30, 33, 0.06);
  --shadow-tab: 0 2px 6px rgba(28, 30, 33, 0.08);

  /* Сетка и типографика */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Nunito', 'Inter', sans-serif;
  --gutter: clamp(1rem, 4vw, 2rem);
  --col-content: 700px;          /* Узкая колонка чтения */
  --ext-popout: 80px;            /* Вынос тренажеров и инфографики (до 860px) */
  --ext-feature: 130px;          /* Вынос широких таблиц и сеток (до 960px) */
}

/* --- Сброс и базовые настройки страницы --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: clamp(1.125rem, 1.08rem + 0.2vw, 1.1875rem); /* 18px Mobile -> 19px Desktop */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ==========================================================================
   МОДУЛЬНАЯ ВЫНОСНАЯ СЕТКА (CSS GRID BREAKOUT)
   ========================================================================== */
.article-layout {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [feature-start] minmax(0, var(--ext-feature))
    [popout-start] minmax(0, var(--ext-popout))
    [content-start] min(var(--col-content), 100% - (var(--gutter) * 2)) [content-end]
    minmax(0, var(--ext-popout)) [popout-end]
    minmax(0, var(--ext-feature)) [feature-end]
    minmax(var(--gutter), 1fr) [full-end];
  padding-bottom: 4rem;
}

/* По умолчанию элементы статьи идут в узкой колонке чтения (700px) */
.article-layout > * {
  grid-column: content;
}

/* Автоматический вынос компонентов на треки popout (860px) и feature (960px) */
.article-layout > .trainer-shell,
.article-layout > .infographic,
.article-layout > .exercise-grid,
.article-layout > .pdf-cta {
  grid-column: popout;
}

.article-layout > .table-wrapper,
.article-layout > .related-section,
.article-layout > .site-footer {
  grid-column: feature;
}

/* ==========================================================================
   ТИПОГРАФИКА И ВЕРТИКАЛЬНЫЙ РИТМ
   ========================================================================== */
p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  line-height: 1.18;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4375rem, 1.25rem + 0.8vw, 1.8125rem);
  line-height: 1.24;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  line-height: 1.32;
  margin-top: 2.25rem;
  margin-bottom: 0.625rem;
}

h2 + h3 {
  margin-top: 0.5rem;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.625rem;
  line-height: 1.6;
}

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

/* ==========================================================================
   1. ШАПКА САЙТА И ХЛЕБНЫЕ КРОШКИ
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.site-logo span {
  color: var(--brand-primary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.4vw, 1.5rem);
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand-primary);
}

.site-nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  background: var(--brand-primary, #2B5CE6) !important;
  color: #FFFFFF !important;
  padding: 0.45rem 1.05rem !important;
  border-radius: 100px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 1px 4px rgba(43, 92, 230, 0.3) !important;
  transition: all 0.15s ease !important;
}

.site-nav-btn:hover {
  background: var(--brand-primary-hover, #1E46B8) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(43, 92, 230, 0.4) !important;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs .current {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   2. ПЕРВЫЙ ЭКРАН СТАТЬИ (HERO-БЛОК)
   ========================================================================== */
.article-hero {
  margin-bottom: 2rem;
}

.hero-rubric {
  display: inline-block;
  color: #0F172A !important;
  background-color: #E2E8F0 !important;
  font-weight: 700 !important;
  font-size: 0.8125rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm, 6px);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

.meta-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.meta-verified svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--didactic-success-accent);
}

.article-lead {
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  line-height: 1.55;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* ==========================================================================
   3. КОНТЕЙНЕР ИНТЕРАКТИВНОГО ТРЕНАЖЕРА (DUAL-SHELL)
   ========================================================================== */
.trainer-shell {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-2xl);
  padding: clamp(1rem, 3vw, 1.5rem);
  margin-block: 2.25rem;
  box-shadow: var(--shadow-card);
}

.trainer-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.trainer-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.trainer-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
}

.trainer-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.trainer-tabs {
  display: inline-flex;
  background-color: var(--bg-muted);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  gap: 0.25rem;
  flex-wrap: wrap;
}

.trainer-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.trainer-tab:hover {
  color: var(--text-primary);
}

.trainer-tab[aria-selected="true"],
.trainer-tab.active {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-tab);
}

/* Внутренний темный экран «Школьная доска» */
.trainer-board {
  background-color: var(--board-bg);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  border: 1px solid var(--board-border);
  box-shadow: var(--board-shadow);
  padding: clamp(1.25rem, 4vw, 2rem);
  text-align: center;
}

.trainer-panel {
  display: none;
}

.trainer-panel.active {
  display: block;
}

/* --- Вкладка 1: Экспресс-диагностика --- */
.diag-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 16px;
  text-align: left;
}

.diag-q-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-highlight);
  margin-bottom: 12px;
}

.diag-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.diag-opt-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-on-dark);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.diag-opt-label:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--brand-highlight);
}

.diag-opt-label.selected {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--brand-highlight);
  color: var(--brand-highlight);
  font-weight: 700;
}

.diag-opt-label input[type="radio"] {
  display: none;
}

.diag-submit-btn {
  background-color: var(--brand-highlight);
  color: #183028;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 15px;
}

.diag-submit-btn:hover {
  background-color: #D97706;
}

.diag-result-box {
  display: none;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
  text-align: left;
  color: var(--text-on-dark);
}

.diag-result-header {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-highlight);
  margin-bottom: 12px;
}

.diag-verdict-support {
  background: rgba(255, 255, 255, 0.06);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border-left: 3px solid var(--brand-highlight);
}

.diag-verdict-desc {
  margin: 0;
  line-height: 1.65;
  font-size: 0.98rem;
}

/* --- Вкладка 2: Игровой тренажер --- */
.game-subnav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.game-mode-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-on-dark);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.game-mode-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--brand-highlight);
}

.game-mode-btn.active {
  background: var(--brand-highlight);
  color: #183028;
  border-color: var(--brand-highlight);
}

.trainer-score-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 18px;
  color: rgba(248, 250, 252, 0.9);
  flex-wrap: wrap;
  gap: 8px;
}

.trainer-streak {
  color: var(--brand-highlight);
  font-weight: 700;
}

.trainer-score-val {
  color: #86EFAC;
  font-weight: 700;
}

.trainer-visual-anchor {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.anchor-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-on-dark);
}

.anchor-badge.belka { border-color: rgba(234, 88, 12, 0.6); }
.anchor-badge.dyatel { border-color: rgba(37, 99, 235, 0.6); }
.anchor-badge.chelovek { border-color: rgba(5, 150, 105, 0.6); }
.anchor-badge.taburet { border-color: rgba(124, 58, 237, 0.6); }

.trainer-word-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 18px 0;
  color: var(--text-on-dark);
}

.trainer-word-display .blank {
  color: var(--brand-highlight);
  border-bottom: 3px dashed var(--brand-highlight);
  padding: 0 4px;
}

.trainer-btn-group {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.trainer-choice-btn {
  min-width: 150px;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 0 #CBD5E1;
  transition: transform 0.1s, background-color 0.15s;
}

.trainer-choice-btn:hover {
  background-color: #F0F5FF;
}

.trainer-choice-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #CBD5E1;
}

.trainer-choice-btn span {
  font-size: 1.35rem;
  font-weight: 900;
}

.trainer-choice-btn small {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.trainer-feedback-msg {
  min-height: 32px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.trainer-feedback-msg.correct {
  background: rgba(30, 126, 72, 0.25);
  color: #86EFAC;
  border: 1px solid rgba(30, 126, 72, 0.4);
}

.trainer-feedback-msg.wrong {
  background: rgba(217, 56, 41, 0.25);
  color: #FCA5A5;
  border: 1px solid rgba(217, 56, 41, 0.4);
}

/* Режим Незнайки (Шпионский текст) */
.spy-text-container {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-align: left;
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.spy-word {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.spy-word:hover {
  background: rgba(255, 255, 255, 0.15);
}

.spy-word.error-fixed {
  background: #1E7E48;
  color: #FFFFFF;
  font-weight: 800;
  border-bottom: none;
  cursor: default;
}

.spy-word.wrong-click {
  animation: spyShake 0.3s ease;
  background: rgba(217, 56, 41, 0.35);
}

@keyframes spyShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* (Партнерский блок САЛИД вынесен в блок 3) */

/* --- Вкладка 3: Печать памятки --- */
.svg-sheet-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  text-align: left;
}

.svg-pair-select {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: inherit;
  font-size: 0.9rem;
}

.print-action-btn {
  background-color: var(--brand-primary);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}

.print-action-btn:hover {
  background-color: var(--brand-primary-hover);
}

.svg-sheet-viewport {
  background: #FDFBF7;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  overflow-x: auto;
}

.print-tip {
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.85);
  line-height: 1.5;
  text-align: left;
}

/* ==========================================================================
   4. БЛОК «ГЛАВНОЕ ЗА 30 СЕКУНД» (TL;DR) И СЕМАНТИЧЕСКИЕ ПЛАШКИ
   ========================================================================== */
.tldr-summary {
  background-color: var(--bg-muted);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-block: 2rem;
}

.tldr-summary__heading {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-top: 0;
  margin-bottom: 1rem;
}

.tldr-summary ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.callout {
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
  border-left: 4px solid transparent;
}

.callout__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout--error {
  background-color: var(--didactic-error-bg);
  border-left-color: var(--didactic-error-accent);
  color: var(--didactic-error-text);
}
.callout--error .callout__label { color: var(--didactic-error-accent); }

.callout--success {
  background-color: var(--didactic-success-bg);
  border-left-color: var(--didactic-success-accent);
  color: var(--didactic-success-text);
}
.callout--success .callout__label { color: var(--didactic-success-accent); }

.callout--rule {
  background-color: var(--didactic-rule-bg);
  border-left-color: var(--didactic-rule-accent);
  color: var(--didactic-rule-text);
}
.callout--rule .callout__label { color: var(--didactic-rule-accent); }

.callout--info {
  background-color: var(--didactic-info-bg);
  border-left-color: var(--didactic-info-accent);
  color: var(--didactic-info-text);
}
.callout--info .callout__label { color: var(--didactic-info-accent); }

/* ==========================================================================
   5. ДИДАКТИЧЕСКАЯ ИНФОГРАФИКА (<figure class="infographic">)
   ========================================================================== */
.infographic {
  margin: 2.5rem 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.infographic__title {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.compare-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.compare-card {
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.compare-card--before {
  background-color: var(--didactic-error-bg);
  color: var(--didactic-error-text);
}

.compare-card--after {
  background-color: var(--didactic-success-bg);
  color: var(--didactic-success-text);
}

.compare-card--neutral {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.svg-card {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 8px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.infographic__img {
  max-width: 380px;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  margin: 0 auto 1.25rem;
  border: 1px solid var(--border-subtle);
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.milestone-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.125rem;
}

.milestone-card__age {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--brand-primary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.milestone-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.milestone-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.infographic figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   6. КАРТОЧКИ ПРАКТИЧЕСКИХ ИГР И УПРАЖНЕНИЙ
   ========================================================================== */
.exercise-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-block: 2rem;
}

.exercise-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.exercise-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}

.exercise-card__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.exercise-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--brand-soft);
  color: var(--brand-primary);
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exercise-card h3 {
  margin: 0;
}

.exercise-duration {
  background-color: var(--bg-muted);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.exercise-card p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   7. СРАВНИТЕЛЬНАЯ ТАБЛИЦА (DESKTOP & MOBILE DATA-LABEL CARDS)
   ========================================================================== */
.table-wrapper {
  margin-block: 2.25rem;
  contain: layout style;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  font-size: 1rem;
}

.comparison-table thead {
  background-color: var(--bg-muted);
}

.comparison-table th {
  text-align: left;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table td {
  padding: 1.125rem 1.25rem;
  vertical-align: top;
  line-height: 1.5;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* Третья колонка «Как подсказать спокойно» */
.comparison-table td:nth-child(3) {
  background-color: #F8FBF9;
  color: var(--didactic-success-text);
  font-weight: 500;
}

@media screen and (max-width: 680px) {
  .comparison-table {
    background: transparent;
    border: none;
    border-radius: 0;
  }

  .comparison-table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .comparison-table tr {
    display: block;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
  }

  .comparison-table td {
    display: block;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .comparison-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
  }
}

/* ==========================================================================
   8. ИНТЕРАКТИВНЫЙ ЧЕК-ЛИСТ С ПРОГРЕСС-БАРОМ
   ========================================================================== */
.checklist-widget {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-block: 2rem;
}

.checklist-widget h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.checklist-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.checklist-bar {
  flex: 1;
  height: 10px;
  background-color: var(--bg-muted);
  border-radius: 100px;
  overflow: hidden;
}

.checklist-bar__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-primary), var(--didactic-success-accent));
  border-radius: 100px;
  transition: width 0.3s ease;
}

.checklist-counter-text {
  font-weight: 700;
  color: var(--didactic-success-accent);
  font-size: 0.95rem;
  white-space: nowrap;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s;
}

.checklist-item:hover {
  background-color: var(--bg-canvas);
}

.checklist-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 0.15rem;
  accent-color: var(--didactic-success-accent);
  flex-shrink: 0;
  cursor: pointer;
}

.checklist-item span {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-primary);
}

.checklist-verdict {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
}

/* ==========================================================================
   9. БЛОК FAQ (ЧАСТЫЕ ВОПРОСЫ НА <details>)
   ========================================================================== */
.faq-section {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 0.5rem clamp(1.25rem, 3vw, 1.75rem);
  margin-block: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 1.25rem 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease, background-color 0.2s, color 0.2s;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background-color: var(--brand-soft);
  color: var(--brand-primary);
}

.faq-answer {
  padding-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ==========================================================================
   10. ФИНАЛЬНЫЙ БЛОК PDF-ПАМЯТКИ И СЕТКА «ЧИТАЙТЕ ТАКЖЕ»
   ========================================================================== */
.pdf-cta {
  background: linear-gradient(135deg, #EEF4FF 0%, #E0EAFF 100%);
  border-radius: var(--radius-2xl);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin-block: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid rgba(43, 92, 230, 0.15);
}

.pdf-cta h3 {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.pdf-cta p {
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background-color: var(--brand-primary);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9375rem 1.5rem;
  border-radius: var(--radius-md);
  transition: background-color 0.15s;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--brand-primary-hover);
}

.related-section {
  margin-top: 3.5rem;
}

.related-section h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.related-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.15s ease, border-color 0.15s;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--text-tertiary);
}

.related-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.related-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin: 0.25rem 0 0.5rem;
}

.related-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.related-card__meta {
  font-size: 0.8125rem;
  color: var(--brand-primary);
  font-weight: 600;
}

.diag-result-box.active {
  display: block;
}

.checklist-verdict--excellent {
  color: #114628;
  background-color: #F1F8F4;
  border-color: #1E7E48;
}

.checklist-verdict--good {
  color: #5C3404;
  background-color: #FEF8EC;
  border-color: #D97706;
}

.checklist-verdict--progress {
  color: #6E1B14;
  background-color: #FDF3F2;
  border-color: #D93829;
}

.checklist-verdict--start {
  color: #1C1E21;
  background-color: #F9F7F2;
  border-color: #E4E1DA;
}

.letter-correct {
  color: #86EFAC;
}

.letter-wrong {
  color: #FCA5A5;
}

.diag-submit-wrap {
  margin-top: 1.25rem;
  text-align: center;
}

.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden;
}

.spy-counter-text {
  color: #60A5FA;
  font-weight: 700;
}

/* ==========================================================================
   ПОДВАЛ САЙТА
   ========================================================================== */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.site-footer p {
  margin-bottom: 0.5rem;
}

.mh-disclaimer {
  color: #475569 !important; /* контраст > 5.5:1 к фону #F9F7F2 (WCAG AAA) */
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
  max-width: 680px;
  margin: 0.75rem auto 0;
}

/* ==========================================================================
   АДАПТИВНОСТЬ И ВЕРСИЯ ДЛЯ ПЕЧАТИ
   ========================================================================== */
@media screen and (max-width: 680px) {
  .pdf-cta {
    grid-template-columns: 1fr;
  }
  .site-nav {
    display: none;
  }
}

@media print {
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .site-header,
  .site-footer,
  .breadcrumbs,
  .article-hero,
  .tldr-summary,
  .callout,
  .infographic,
  .exercise-stack,
  .table-wrapper,
  .checklist-widget,
  .faq-section,
  .pdf-cta,
  .related-section,
  .trainer-header,
  .game-subnav,
  .salid-offer-box,
  .svg-sheet-controls {
    display: none !important;
  }
  .article-layout {
    display: block !important;
    padding: 0 !important;
  }
  .trainer-shell {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }
  .trainer-board {
    background: transparent !important;
    color: #000000 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .trainer-panel {
    display: none !important;
  }
  #pane-print {
    display: block !important;
  }
  .svg-sheet-viewport {
    background: transparent !important;
    padding: 0 !important;
  }
}

/* ==========================================================================
   v14.0 PROTECTIVE RULES: CONTAINER ISOLATION & COMPONENT STYLES
   ========================================================================== */
.infographic {
  margin: 2.5rem 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  overflow: hidden;
  height: auto;
}
.infographic__img {
  max-width: 380px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-md);
}
.milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.milestone-card {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.milestone-card__age {
  font-weight: 800;
  color: var(--brand-primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.milestone-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.milestone-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}
.compare-card--neutral {
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.svg-card {
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin: 0.5rem 0 0.75rem;
  border: 1px solid var(--border-subtle);
  text-align: center;
}
.svg-card svg {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}


/* === ТЕМАТИЧЕСКИЕ СТИЛИ ТРЕНАЖЕРОВ ДЛЯ QW_01, QW_02, QW_03 === */

/* --- QW_01: Звуко-буквенный разбор слова --- */
.word-presets-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
}
.word-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.word-pill:hover {
  background: rgba(255, 209, 102, 0.2);
  border-color: #ffd166;
}
.analyzer-input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.analyzer-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1.1rem;
  color: #ffffff;
  font-family: inherit;
}
.analyzer-input:focus {
  outline: none;
  border-color: #ffd166;
}
.analyzer-submit-btn {
  background: #ffd166;
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}
.analyzer-submit-btn:hover {
  opacity: 0.9;
}
.sound-tiles-visual {
  display: flex;
  gap: 10px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.sound-tile, .res-tile-box {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}
.sound-tile--red, .res-tile-box.red {
  background-color: #ef4444;
  border: 2px solid #b91c1c;
}
.sound-tile--blue, .res-tile-box.blue {
  background-color: #3b82f6;
  border: 2px solid #1d4ed8;
}
.sound-tile--green, .res-tile-box.green {
  background-color: #22c55e;
  border: 2px solid #15803d;
}
.game-modes-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.game-mode-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 12px;
  color: #e2e8f0;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.game-mode-pill.active {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  font-weight: 700;
}
.game-opt-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 16px;
  margin-bottom: 8px;
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.game-opt-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffd166;
}
.svg-sheet-container {
  background: #ffffff;
  color: #1a1a1a;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
}
.btn-print-trigger {
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.btn-print-trigger:hover {
  opacity: 0.9;
}

/* --- QW_02: Калькулятор времени СанПиН --- */
.grade-pill-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.grade-pill-btn.active {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}
.time-input-field {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1rem;
  color: #ffffff;
  font-family: inherit;
  box-sizing: border-box;
}
.time-input-field:focus {
  outline: none;
  border-color: #ffd166;
}
.timer-mode-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.timer-mode-btn.active {
  background-color: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

/* --- QW_03: Таблицы Шульте --- */
.schulte-grid {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 20px auto;
  max-width: 420px;
  user-select: none;
}
.schulte-grid--3x3 { grid-template-columns: repeat(3, 1fr); }
.schulte-grid--4x4 { grid-template-columns: repeat(4, 1fr); }
.schulte-grid--5x5 { grid-template-columns: repeat(5, 1fr); }

.schulte-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: #ef4444;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
}
.schulte-cell {
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.schulte-cell:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  transform: scale(1.02);
}
.schulte-cell:active {
  transform: scale(0.97);
}
.schulte-cell.correct {
  background: #10b981 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}
.schulte-cell.wrong {
  background: #ef4444 !important;
  border-color: #dc2626 !important;
  animation: shake 0.3s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Печатные правила для тренажеров */
@media print {
  .schulte-dot { display: none !important; }
  .sound-tile, .res-tile-box { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* === КАРТОЧКА НАУЧНОЙ БАЗЫ МАТЕРИАЛА (v14.4) === */
.author-badge-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid #183028;
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(28, 30, 33, 0.04);
}
.article-meta__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #183028;
  color: #F59E0B;
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(245, 158, 11, 0.35);
}
.article-meta__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.article-meta__author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.article-meta__verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--didactic-success-bg, #ECFDF5);
  color: var(--didactic-success-text, #065F46);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}
.article-meta__date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   Числовые домики и блиц-тренажер (QW_05)
   ========================================================================== */
.house-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.house-pill {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.house-pill:hover {
  background: var(--bg-muted);
  border-color: #24493e;
}
.house-pill.active {
  background: #183028;
  color: #ffffff;
  border-color: #183028;
}
.house-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 1rem auto;
  max-width: 380px;
}
.house-structure {
  width: 100%;
  background: var(--bg-surface);
  border: 2px solid #24493e;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.house-roof {
  background: linear-gradient(135deg, #183028 0%, #24493e 100%);
  color: #ffffff;
  text-align: center;
  padding: 1rem 0.5rem;
}
.house-roof-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #ffd166;
  display: block;
}
.house-roof-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
  margin-top: 0.25rem;
  display: block;
}
.house-body {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
}
.house-row {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  height: 54px;
}
.house-row:last-child {
  border-bottom: none;
}
.house-cell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  height: 100%;
}
.house-cell.given {
  background: var(--bg-muted);
  color: var(--text-primary);
  border-right: 1px dashed var(--border-subtle);
}
.house-cell.target {
  background: var(--bg-surface);
  position: relative;
}
.house-input {
  width: 56px;
  height: 38px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-primary);
  transition: all 0.2s ease;
}
.house-input:focus {
  outline: none;
  border-color: #24493e;
  box-shadow: 0 0 0 3px rgba(36, 73, 62, 0.15);
}
.house-input.correct {
  border-color: #10b981;
  background: #ecfdf5;
  color: #065f46;
}
.house-input.wrong {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}
.house-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  max-width: 380px;
  padding: 0.6rem 1rem;
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
}
.house-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
}
.house-btn {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.house-btn:hover {
  background: var(--bg-muted);
  border-color: #183028;
}
.house-btn.primary {
  background: #183028;
  color: #ffffff;
  border-color: #183028;
}
.house-btn.primary:hover {
  background: #24493e;
}

/* Блиц-игра с корзинкой */
.blitz-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}
.blitz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--bg-muted);
  border-radius: var(--radius-md);
}
.blitz-timer {
  font-size: 1.25rem;
  font-weight: 800;
  color: #b45309;
}
.blitz-score {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.blitz-stage {
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.blitz-task-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}
.blitz-basket-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 2.75rem;
  margin: 0.5rem 0;
}
.blitz-choices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  width: 100%;
}
.blitz-choice-btn {
  padding: 0.75rem 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.blitz-choice-btn:hover {
  background: var(--bg-surface);
  border-color: #183028;
  transform: translateY(-2px);
}
.blitz-feedback {
  min-height: 24px;
  font-size: 0.95rem;
  font-weight: 600;
}
.blitz-feedback.correct {
  color: #065f46;
}
.blitz-feedback.wrong {
  color: #991b1b;
}

/* Партнерская врезка */
.trainer-partner-box {
  width: 100%;
  max-width: 480px;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #fdfbf7;
  border: 1px solid #e8dec8;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.4;
}
.trainer-partner-box .partner-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #8c7851;
  margin-bottom: 0.25rem;
  display: block;
}
.trainer-partner-box a {
  color: #183028;
  font-weight: 700;
  text-decoration: underline;
}
.trainer-partner-box .partner-erid {
  font-size: 0.65rem;
  color: #a09886;
  margin-top: 0.25rem;
  display: block;
}

/* Генератор печати А4 */
.print-houses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  width: 100%;
  margin: 1rem 0;
}
.print-mini-house {
  border: 2px solid #222222;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}
.print-mini-roof {
  background: #333333;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  font-size: 1.5rem;
  padding: 0.35rem;
}
.print-mini-row {
  display: flex;
  border-bottom: 1px solid #cccccc;
  height: 32px;
  font-size: 1rem;
  font-weight: 700;
}
.print-mini-cell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.print-mini-cell:first-child {
  border-right: 1px solid #cccccc;
  background: #f9f9f9;
}
.print-sheet-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.print-sheet-subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Единый стандарт панелей управления внутри темной доски .trainer-board */
.trainer-board .trainer-header-tools,
.trainer-board .trainer-presets-block,
.trainer-board .trainer-controls-bar,
.trainer-board .rhythm-top-bar,
.trainer-board .rhythm-control-panel,
.trainer-board .print-config-toolbar {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  color: #F8FAFC;
}
.trainer-board .trainer-header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.trainer-board .trainer-input-wrap {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trainer-board #propis-word-input {
  width: 100% !important;
  max-width: 100% !important;
  height: 46px;
  padding: 8px 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1C1E21;
  background: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  text-align: left;
}
.trainer-board .trainer-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.trainer-board .trainer-btn-group .game-opt-btn {
  width: auto;
  padding: 10px 18px;
  height: 46px;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}
.trainer-board .trainer-btn-group .game-opt-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.trainer-board .trainer-label,
.trainer-board .trainer-sublabel {
  display: block;
  color: #FDE68A !important;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.trainer-board .trainer-pill-grid,
.trainer-board .game-modes-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trainer-board .trainer-controls-bar,
.trainer-board .rhythm-top-bar,
.trainer-board .print-config-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.trainer-board .trainer-control-group,
.trainer-board .print-toolbar-group,
.trainer-board .rhythm-letter-selector,
.trainer-board .rhythm-speed-selector {
  display: flex;
  flex-direction: column;
}
/* Универсальные контрастные кнопки-пилюли внутри .trainer-board */
.trainer-board .house-pill,
.trainer-board .game-mode-pill {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.trainer-board .house-pill:hover,
.trainer-board .game-mode-pill:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}
.trainer-board .house-pill.active,
.trainer-board .game-mode-pill.active {
  background: #F59E0B !important;
  color: #183028 !important;
  border-color: #F59E0B !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}
/* Белые листы предпросмотра бумаги внутри доски */
.trainer-board .propis-canvas-box,
.trainer-board .rhythm-stage-card,
.trainer-board .print-a4-preview-card {
  background: #FFFFFF;
  color: #1C1E21;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.trainer-board .propis-canvas-hint {
  margin-top: 10px;
  font-size: 0.88rem;
  color: #E2E8F0;
  text-align: center;
}
.trainer-board .rhythm-beat-indicator {
  color: #F8FAFC;
  font-size: 1rem;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}
.trainer-board .print-sheet-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E2E8F0;
}

/* QW_07: Нормы скорости чтения */
.reading-story-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}
.story-words-total {
  font-size: 0.85rem;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}
.reading-text-content {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #1e293b;
  padding: 0.5rem;
}
.read-word-token {
  cursor: pointer;
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
  transition: all 0.15s ease;
}
.read-word-token:hover {
  background: #e0f2fe;
}
.read-word-token.word-read {
  background: #dcfce7;
  color: #166534;
}
.reading-click-hint {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 1rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #cbd5e1;
}
.reading-result-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1.25rem;
}
.reading-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.metric-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
}
.metric-label {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}
.metric-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
}
.metric-val--highlight {
  color: #047857;
}
.norm-compare-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.norm-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #334155;
}
.reading-verdict-box {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #1e40af;
  line-height: 1.45;
}
.meaning-intro-banner {
  background: #f8fafc;
  border-left: 4px solid #10b981;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
}
.meaning-intro-banner h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
  color: #1e293b;
}
.meaning-intro-banner p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}
.meaning-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.meaning-q-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 0.75rem;
}
.meaning-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.meaning-opt-btn {
  text-align: left;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.meaning-opt-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.meaning-opt-btn.correct {
  background: #dcfce7;
  border-color: #16a34a;
  color: #166534;
  font-weight: 700;
}
.meaning-opt-btn.incorrect {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}


/* ==========================================================================
   ВЕРХОВНЫЙ АУДИТОР v16.0: КОНТРАСТНЫЕ КНОПКИ В БЕЛЫХ КАРТОЧКАХ ТРЕНАЖЕРОВ
   ========================================================================== */
.trainer-board [style*="background: #ffffff"] .house-pill,
.trainer-board [style*="background:#ffffff"] .house-pill,
.trainer-board [style*="background: white"] .house-pill,
.trainer-board .test-question-card .house-pill,
.trainer-board [id*="test-"] .house-pill {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 700 !important;
}
.trainer-board [style*="background: #ffffff"] .house-pill:hover,
.trainer-board [style*="background:#ffffff"] .house-pill:hover,
.trainer-board .test-question-card .house-pill:hover,
.trainer-board [id*="test-"] .house-pill:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
.trainer-board [style*="background: #ffffff"] .house-pill.active,
.trainer-board [style*="background:#ffffff"] .house-pill.active,
.trainer-board .test-question-card .house-pill.active,
.trainer-board [id*="test-"] .house-pill.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  font-weight: 800 !important;
}

.trainer-board [style*="background: #ffffff"] .game-opt-btn,
.trainer-board [style*="background:#ffffff"] .game-opt-btn,
.trainer-board [style*="background: white"] .game-opt-btn,
.trainer-board #step-choices-grid .game-opt-btn, .trainer-board #choices-grid .game-opt-btn,
.trainer-board #sprint-options-grid .game-opt-btn {
  background: #2563eb !important;
  color: #ffffff !important;
  border: 1px solid #1d4ed8 !important;
  font-weight: 800 !important;
}

.trainer-board [style*="background: #ffffff"] .game-mode-pill,
.trainer-board [style*="background:#ffffff"] .game-mode-pill,
.trainer-board [style*="background: white"] .game-mode-pill {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  font-weight: 700 !important;
}
.trainer-board [style*="background: #ffffff"] .game-mode-pill.active,
.trainer-board [style*="background:#ffffff"] .game-mode-pill.active,
.trainer-board [style*="background: white"] .game-mode-pill.active,
.trainer-board [style*="background: #ffffff"] .game-mode-pill.is-active,
.trainer-board [style*="background:#ffffff"] .game-mode-pill.is-active,
.trainer-board [style*="background: white"] .game-mode-pill.is-active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  font-weight: 800 !important;
}

/* ==========================================================================
   ВЕРХОВНЫЙ АУДИТОР v16.4: ДИЗАЙН КАРТОЧЕК УПРАЖНЕНИЙ (.exercise-card)
   ========================================================================== */
.exercise-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}
.exercise-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle, #E4E1DA);
  border-left: 5px solid #183028;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 14px rgba(28, 30, 33, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.exercise-card__title,
.exercise-card h3 {
  grid-column: 2;
  margin: 0 !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #1C1E21 !important;
  line-height: 1.35 !important;
}
.exercise-card p {
  margin: 0.25rem 0 0 0 !important;
  color: #334155 !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
}
.exercise-card__norm {
  margin-top: 0.5rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: #1E293B;
}
.exercise-card__norm strong {
  color: #047857;
}

/* ==========================================================================
   ВЕРХОВНЫЙ АУДИТОР v17.2: ЖУРНАЛЬНАЯ СЕТКА Т-Ж / МЕЛ.ФМ (1180px)
   Главная страница и 4 Хаба рубрик (.portal-layout)
   ========================================================================== */
.portal-layout,
.article-layout.portal-layout {
  display: block !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 1.5rem 1.25rem 4rem !important;
}

.portal-layout > *,
.article-layout.portal-layout > * {
  max-width: 100% !important;
  grid-column: unset !important;
}

/* 1. Двухколоночный компактный приветственный баннер (.portal-hero) */
.portal-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 2rem;
  align-items: stretch;
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle, #E4E1DA);
  border-radius: 24px;
  padding: clamp(1.35rem, 3vw, 2rem);
  margin: 0.75rem 0 2.5rem;
  box-shadow: 0 14px 36px -12px rgba(24, 48, 40, 0.07);
}

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

.portal-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.95rem;
}

.portal-hero__top-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.portal-hero__verified-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.portal-hero__content h1 {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1.18;
  margin: 0.3rem 0 0.45rem;
  color: #142820;
}

.portal-hero__content .article-lead {
  font-size: 1.06rem;
  line-height: 1.52;
  color: #334155;
  margin: 0;
}

.portal-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.btn-secondary-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #F1EFEA;
  color: #1C1E21;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.3rem;
  border-radius: 12px;
  border: 1px solid #D6D3CB;
  transition: all 0.15s ease;
}

.btn-secondary-portal:hover {
  background-color: #E4E1DA;
  border-color: #183028;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 0.35rem;
  padding-top: 0.95rem;
  border-top: 1px solid #EBE8E0;
}

@media (max-width: 680px) {
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero-stat-pill {
  background-color: #F9F7F2;
  border: 1px solid #E4E1DA;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
}

.hero-stat-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 900;
  color: #183028;
  line-height: 1.2;
}

.hero-stat-pill span {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: #4B5563;
  margin-top: 0.15rem;
  line-height: 1.25;
}

/* Правая светлая теплая витрина маскотов (.portal-hero__visual) */
.portal-hero__visual {
  background-color: #F5F1E8;
  background-image: linear-gradient(145deg, #FFFFFF 0%, #F3EFE6 100%);
  color: #1C1E21;
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  border: 1px solid #E4E1DA;
  box-shadow: inset 0 1px 0 #FFFFFF;
}

.portal-hero__visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid #E4E1DA;
  padding-bottom: 0.65rem;
}

.portal-hero__visual-badge {
  background-color: #183028;
  color: #FDE68A;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
}

.portal-hero__visual-note {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
}

.mascots-collage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  flex: 1;
  align-content: stretch;
}

.mascot-mini-card {
  background-color: #FFFFFF;
  border: 1px solid #E4E1DA;
  border-radius: 14px;
  padding: 0.55rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #1C1E21;
  box-shadow: 0 4px 10px -4px rgba(24, 48, 40, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.mascot-mini-card:hover {
  transform: translateY(-2px);
  border-color: #2B5CE6;
  box-shadow: 0 8px 18px -6px rgba(43, 92, 230, 0.14);
}

.mascot-mini-card--wide {
  grid-column: 1 / -1;
}

.mascot-mini-card img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 12px;
  background-color: #FFFFFF;
  padding: 2px;
  flex-shrink: 0;
}

.mascot-mini-card__info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #142820;
  line-height: 1.25;
}

.mascot-mini-card__info span {
  display: block;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.3;
  margin-top: 2px;
}

/* Светлый подиум маскота в Хабах рубрик (100% высоты без пустоты) */
.hub-mascot-spotlight {
  background-color: #FFFFFF;
  border: 1px solid #E4E1DA;
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  flex: 1;
  box-shadow: 0 6px 18px -8px rgba(24, 48, 40, 0.06);
}

.hub-mascot-avatars {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.hub-mascot-avatars img {
  width: 136px;
  height: 136px;
  object-fit: contain;
  background-color: #FFFFFF;
  border-radius: 20px;
  padding: 4px;
}

.hub-mascot-quote {
  background-color: #F9F7F2;
  border: 1px solid #E4E1DA;
  border-left: 4px solid #183028;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.48;
  color: #1E293B;
  text-align: left;
  width: 100%;
}

.hub-mascot-quote strong {
  color: #142820;
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

/* 2. Сетка 4 Bento-карточек рубрик (2x2 на ПК) */
.bento-rubrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
  margin: 1.25rem 0 2.75rem;
}

@media (max-width: 820px) {
  .bento-rubrics-grid {
    grid-template-columns: 1fr;
  }
}

.bento-rubric-card {
  background-color: #FFFFFF;
  border-radius: 20px;
  padding: 1.5rem 1.65rem;
  border: 1.5px solid #E4E1DA;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: #1C1E21;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 24px -8px rgba(28, 30, 33, 0.06);
}

.bento-rubric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -8px rgba(28, 30, 33, 0.12);
}

.bento-rubric-card--rech {
  background-color: #F6FBF8;
  background-image: linear-gradient(145deg, #FFFFFF 0%, #F1F8F4 100%);
  border-color: #A7F3D0;
}

.bento-rubric-card--arifmetika {
  background-color: #FFFDF6;
  background-image: linear-gradient(145deg, #FFFFFF 0%, #FEF8EC 100%);
  border-color: #FDE68A;
}

.bento-rubric-card--vnimanie {
  background-color: #F6F9FF;
  background-image: linear-gradient(145deg, #FFFFFF 0%, #F0F5FF 100%);
  border-color: #BFDBFE;
}

.bento-rubric-card--sanpin {
  background-color: #FAF8FF;
  background-image: linear-gradient(145deg, #FFFFFF 0%, #F5F3FF 100%);
  border-color: #DDD6FE;
}

.bento-rubric-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bento-rubric-card__avatar {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  object-fit: contain;
  background-color: #FFFFFF;
  border: 1.5px solid rgba(24, 48, 40, 0.1);
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bento-rubric-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #142820;
  margin: 0.35rem 0 0.25rem;
  line-height: 1.25;
}

.bento-rubric-card__mascot-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
}

.bento-rubric-card__pains {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.94rem;
  color: #334155;
  line-height: 1.5;
}

.bento-rubric-card__pains li {
  margin-bottom: 0.35rem;
}

.bento-rubric-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(28, 30, 33, 0.08);
  font-weight: 800;
  font-size: 0.92rem;
  color: #1E46B8;
}

/* 3. Интерактивная панель фильтрации и поиска (.catalog-filter-bar) */
.catalog-filter-bar {
  background-color: #FFFFFF;
  border: 1.5px solid #D6D3CB;
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0 2rem;
  box-shadow: 0 8px 24px -8px rgba(28, 30, 33, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.catalog-filter-bar__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.catalog-filter-btn {
  appearance: none;
  background-color: #F1EFEA;
  color: #1C1E21;
  border: 1px solid #D6D3CB;
  border-radius: 100px;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.catalog-filter-btn:hover {
  background-color: #E4E1DA;
}

.catalog-filter-btn.active {
  background-color: #183028;
  color: #FDE68A;
  border-color: #183028;
}

.catalog-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 250px;
  max-width: 380px;
}

.catalog-search-input {
  width: 100%;
  min-width: 220px;
  background-color: #F9F7F2;
  color: #1C1E21;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
}

.catalog-search-input:focus {
  outline: 2px solid #2B5CE6;
  background-color: #FFFFFF;
}

.catalog-counter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 4. Журнальная витрина карточек с широкими SVG-обложками (.showcase-grid & .showcase-card) */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 1020px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-card {
  background-color: #FFFFFF;
  border: 1px solid #E4E1DA;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  color: #1C1E21;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  box-shadow: 0 6px 18px -6px rgba(28, 30, 33, 0.05);
  overflow: hidden;
}

.showcase-card:hover {
  transform: translateY(-3px);
  border-color: #2B5CE6;
  box-shadow: 0 14px 28px -8px rgba(43, 92, 230, 0.14);
}

.showcase-card--featured {
  grid-column: span 2;
}

@media (max-width: 680px) {
  .showcase-card--featured {
    grid-column: span 1;
  }
}

/* Широкоформатная графическая обложка карточки (148px) */
.showcase-card__cover {
  height: 148px;
  margin: -1.5rem -1.5rem 1.15rem -1.5rem;
  border-radius: 15px 15px 0 0;
  border-bottom: 1px solid rgba(28, 30, 33, 0.06);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 0.5rem;
  overflow: hidden;
}

.showcase-card__cover--rech {
  background-color: #ECFDF5;
  background-image: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
}

.showcase-card__cover--arifmetika {
  background-color: #FFFBEB;
  background-image: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
}

.showcase-card__cover--vnimanie {
  background-color: #EFF6FF;
  background-image: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.showcase-card__cover--sanpin {
  background-color: #FDF4FF;
  background-image: linear-gradient(135deg, #FDF4FF 0%, #FAE8FF 100%);
}

.showcase-card__cover .hero-rubric {
  position: absolute;
  top: 12px;
  left: 14px;
  background-color: #FFFFFF;
  color: #142820;
  border: 1px solid rgba(24, 48, 40, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  z-index: 2;
}

.showcase-card__cover svg {
  width: 240px;
  height: 100px;
  max-width: 100%;
  display: block;
}

.showcase-card--featured .showcase-card__cover svg {
  width: 280px;
  height: 108px;
}

.showcase-card .related-card__title {
  font-size: 1.14rem;
  line-height: 1.32;
  margin: 0 0 0.45rem;
  color: #142820;
}

.showcase-card--featured .related-card__title {
  font-size: 1.28rem;
}

.showcase-card .related-card__desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.54;
  margin: 0;
}

.showcase-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.showcase-pill {
  background-color: #F1F5F9;
  color: #1E293B;
  border: 1px solid #E2E8F0;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
}

.showcase-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #F0F5FF;
  color: #17327A !important;
  padding: 0.65rem 0.95rem;
  border-radius: 10px;
  font-weight: 800 !important;
  font-size: 0.88rem !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.showcase-card:hover .showcase-card__cta {
  background-color: #2B5CE6;
  color: #FFFFFF !important;
}

/* 5. Двухколоночный журнальный разворот текста и карточек принципов (.editorial-two-col) */
.editorial-two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.25rem;
  align-items: start;
  background-color: #FFFFFF;
  border: 1px solid #E4E1DA;
  border-radius: 22px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin: 1.25rem 0 2.5rem;
  box-shadow: 0 8px 24px -8px rgba(28, 30, 33, 0.05);
}

@media (max-width: 900px) {
  .editorial-two-col {
    grid-template-columns: 1fr;
  }
}

.editorial-two-col__prose p:last-child {
  margin-bottom: 0;
}

.editorial-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

@media (max-width: 560px) {
  .editorial-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.editorial-pillar-card {
  background-color: #F9F7F2;
  border: 1px solid #E4E1DA;
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.editorial-pillar-card__num {
  display: inline-block;
  background-color: #183028;
  color: #FDE68A;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.45rem;
}

.editorial-pillar-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #142820;
  line-height: 1.3;
}

.editorial-pillar-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.45;
}

/* Двухколоночная сетка FAQ на портальных страницах (.portal-layout .faq-section) */
.portal-layout .faq-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 1rem;
  background-color: transparent;
  border: none;
  padding: 0;
}

@media (max-width: 680px) {
  .portal-layout .faq-section {
    grid-template-columns: 1fr;
  }
}

.portal-layout .faq-item {
  background-color: #FFFFFF;
  border: 1px solid #E4E1DA;
  border-radius: 16px;
  padding: 0 1.35rem;
  box-shadow: 0 4px 12px -4px rgba(28, 30, 33, 0.04);
}

/* 6. Интерактивный подборщик по симптомам в Хабах (.symptom-picker-box) */
.symptom-picker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin: 0.75rem 0 1.25rem;
}

.symptom-verdict-card {
  background-color: #FFFFFF;
  color: #1C1E21;
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  text-align: left;
  border: 2px solid #F59E0B;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.symptom-verdict-card__tag {
  display: inline-block;
  background-color: #FEF3C7;
  color: #92400E;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}

.symptom-verdict-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #142820;
}

.symptom-verdict-card p {
  margin: 0 0 1rem;
  font-size: 0.96rem;
  color: #334155;
  line-height: 1.55;
}





/* ==========================================================================
   v20.1 FIX: EXERCISE CARD TITLE WRAP + INTERACTIVE LIGHTBOX & CPI TOOLBAR
   ========================================================================== */
.ut-figure-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle, #E4E1DA);
}
.ut-fig-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #1E293B;
  transition: all 0.15s ease;
  font-family: var(--font-sans, 'Inter', sans-serif);
}
.ut-fig-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}
.ut-fig-btn--primary {
  background: #183028;
  color: #FDE68A !important;
  border-color: #183028;
}
.ut-fig-btn--primary:hover {
  background: #0F291E;
  color: #FFFFFF !important;
}
figure.infographic img.infographic__img,
figure.infographic svg {
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
figure.infographic img.infographic__img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(24, 48, 40, 0.12);
}
.ut-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ut-lightbox-overlay.is-open {
  display: flex;
}
.ut-lightbox-modal {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.ut-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #183028;
  color: #FFFFFF;
}
.ut-lightbox-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  color: #F8FAFC;
}
.ut-lightbox-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}
.ut-lightbox-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8F6F0;
  flex: 1;
}
.ut-lightbox-body img,
.ut-lightbox-body svg {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  display: block;
}
.ut-lightbox-footer {
  padding: 14px 20px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ut-lightbox-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ut-lightbox-cpa {
  width: 100%;
  background: #FFFDF7;
  border: 1.5px solid #FDE68A;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-sizing: border-box;
}
.ut-lightbox-cpa__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ut-lightbox-cpa__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #92400E;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ut-lightbox-cpa__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #451A03;
  font-weight: 500;
}
.ut-fig-btn--cpa {
  background: #0284C7;
  color: #FFFFFF !important;
  border-color: #0284C7;
  white-space: nowrap;
}
.ut-fig-btn--cpa:hover {
  background: #0369A1;
  color: #FFFFFF !important;
}
body.ut-modal-open {
  overflow: hidden !important;
}
@media print {
  body * {
    visibility: hidden !important;
  }
  .ut-lightbox-overlay.is-open,
  .ut-lightbox-overlay.is-open .ut-lightbox-modal,
  .ut-lightbox-overlay.is-open .ut-lightbox-body,
  .ut-lightbox-overlay.is-open .ut-lightbox-body img {
    visibility: visible !important;
  }
  .ut-lightbox-overlay.is-open {
    position: absolute !important;
    inset: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
  }
  .ut-lightbox-modal {
    box-shadow: none !important;
    max-width: 100% !important;
    border-radius: 0 !important;
  }
  .ut-lightbox-header,
  .ut-lightbox-footer {
    display: none !important;
  }
  .ut-lightbox-body img {
    max-height: 98vh !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}
@media (max-width: 640px) {
  .ut-lightbox-overlay {
    padding: 10px;
  }
  .ut-lightbox-modal {
    max-height: 96vh;
    border-radius: 12px;
  }
  .ut-lightbox-header {
    padding: 10px 14px;
  }
  .ut-lightbox-title {
    font-size: 0.9rem;
  }
  .ut-lightbox-body {
    padding: 10px;
  }
  .ut-lightbox-body img {
    max-height: 55vh;
  }
  .ut-lightbox-footer {
    padding: 10px 14px;
    gap: 8px;
  }
  .ut-lightbox-actions {
    width: 100%;
    justify-content: stretch;
  }
  .ut-lightbox-actions .ut-fig-btn {
    flex: 1;
    justify-content: center;
    font-size: 0.8rem;
    padding: 8px 10px;
    text-align: center;
  }
  .ut-lightbox-cpa {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 10px;
    gap: 10px;
  }
  .ut-lightbox-cpa .ut-fig-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   v20.6: УНИФИЦИРОВАННЫЙ СТАНДАРТ СЕТКИ КАРТОЧЕК, САЛИД, PDF-CTA, FEEDBACK И COOKIE
   ========================================================================== */

/* 1. Выносные треки для всех широких блоков внутри .article-layout */
.article-layout > .trainer-shell,
.article-layout > .infographic,
.article-layout > .exercise-grid,
.article-layout > .exercise-stack,
.article-layout > .pdf-cta,
.article-layout > .ut-feedback-bar {
  grid-column: popout;
}

/* 2. Карточки практических упражнений: поддержка обеих структур DOM (с .exercise-card__title-wrap и без) */
.exercise-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
  margin: 2rem 0 !important;
}
.exercise-card {
  background: #FFFFFF !important;
  border: 1px solid var(--border-subtle, #E4E1DA) !important;
  border-left: 5px solid #183028 !important;
  border-radius: 16px !important;
  padding: 1.5rem 1.75rem !important;
  box-shadow: 0 4px 14px rgba(28, 30, 33, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}
.exercise-card__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 0.85rem 1rem !important;
  margin-bottom: 0.35rem !important;
}
.exercise-card__title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  order: 1 !important;
}
.exercise-card__num,
.exercise-num {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #183028 !important;
  color: #FDE68A !important;
  font-weight: 800 !important;
  font-size: 1.02rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(24, 48, 40, 0.18) !important;
  order: 1 !important;
}
.exercise-card__title,
.exercise-card__title-wrap h3,
.exercise-card h3 {
  margin: 0 !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: #183028 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  order: 2 !important;
}
.exercise-card__tag,
.exercise-duration {
  display: inline-flex !important;
  align-items: center !important;
  background: #ECFDF5 !important;
  color: #065F46 !important;
  border: 1px solid #A7F3D0 !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 0.25rem 0.7rem !important;
  border-radius: 100px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
  order: 3 !important;
}
.exercise-card p {
  color: var(--text-secondary, #334155) !important;
  line-height: 1.62 !important;
  margin: 0 !important;
  font-size: 0.96rem !important;
}
@media (max-width: 640px) {
  .exercise-card__header {
    flex-wrap: wrap !important;
  }
  .exercise-card__tag,
  .exercise-duration {
    margin-left: 0 !important;
  }
}

/* 3. Партнерский блок САЛИД: эталонная адаптивная раскладка с теплым фоном #FFFDF7 */
.salid-offer-box {
  background: #FFFDF7 !important;
  border: 1.5px solid #FDE68A !important;
  border-radius: 14px !important;
  padding: 1.25rem 1.5rem !important;
  margin: 1.75rem 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

/* Внутри тренажеров, карточек, вкладок и панелей: вертикальная раскладка на 100% ширины */
.trainer-shell .salid-offer-box,
.trainer-board .salid-offer-box,
.trainer-panel .salid-offer-box,
.print-a4-preview-card .salid-offer-box,
.tab-content .salid-offer-box,
.interactive-panel .salid-offer-box,
.trainer-tab-content .salid-offer-box {
  background: #FFFDF7 !important;
  border: 1.5px solid #FDE68A !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 1.15rem !important;
}

.salid-offer-info,
.trainer-shell .salid-offer-info,
.trainer-board .salid-offer-info,
.trainer-panel .salid-offer-info,
.print-a4-preview-card .salid-offer-info,
.tab-content .salid-offer-info {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

.salid-offer-info h4,
.trainer-shell .salid-offer-info h4,
.trainer-board .salid-offer-info h4,
.trainer-panel .salid-offer-info h4,
.print-a4-preview-card .salid-offer-info h4,
.tab-content .salid-offer-info h4 {
  margin: 0 0 0.45rem 0 !important;
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  color: #92400E !important;
  line-height: 1.35 !important;
}

.salid-offer-info p,
.trainer-shell .salid-offer-info p,
.trainer-board .salid-offer-info p,
.trainer-panel .salid-offer-info p,
.print-a4-preview-card .salid-offer-info p,
.tab-content .salid-offer-info p {
  margin: 0 0 0.55rem 0 !important;
  font-size: 0.93rem !important;
  line-height: 1.55 !important;
  color: #451A03 !important;
}

.salid-offer-info .erid-label,
.trainer-shell .salid-offer-info .erid-label,
.trainer-board .salid-offer-info .erid-label,
.trainer-panel .salid-offer-info .erid-label,
.print-a4-preview-card .salid-offer-info .erid-label,
.tab-content .salid-offer-info .erid-label {
  display: block !important;
  font-size: 0.72rem !important;
  color: #78350F !important;
}

.salid-offer-btn {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  background-color: #183028 !important;
  color: #FDE68A !important;
  text-decoration: none !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  transition: all 0.15s ease !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.trainer-shell .salid-offer-btn,
.trainer-board .salid-offer-btn,
.trainer-panel .salid-offer-btn,
.print-a4-preview-card .salid-offer-btn,
.tab-content .salid-offer-btn,
.interactive-panel .salid-offer-btn,
.trainer-tab-content .salid-offer-btn {
  width: 100% !important;
  white-space: normal !important;
  background-color: #183028 !important;
  color: #FDE68A !important;
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 13px 20px !important;
}

.salid-offer-btn:hover,
.trainer-shell .salid-offer-btn:hover,
.trainer-board .salid-offer-btn:hover,
.trainer-panel .salid-offer-btn:hover,
.print-a4-preview-card .salid-offer-btn:hover,
.tab-content .salid-offer-btn:hover {
  background-color: #24483c !important;
  filter: brightness(1.1) !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 860px) {
  .salid-offer-box,
  .trainer-shell .salid-offer-box,
  .trainer-board .salid-offer-box,
  .trainer-panel .salid-offer-box,
  .print-a4-preview-card .salid-offer-box,
  .tab-content .salid-offer-box {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.15rem !important;
  }
  .salid-offer-btn,
  .trainer-shell .salid-offer-btn,
  .trainer-board .salid-offer-btn,
  .trainer-panel .salid-offer-btn,
  .print-a4-preview-card .salid-offer-btn,
  .tab-content .salid-offer-btn {
    width: 100% !important;
    white-space: normal !important;
    justify-content: center !important;
  }
}


/* 4. Финальный блок PDF-памятки (ВК-бот): flex-раскладка без разрывов строк */
.pdf-cta {
  background: linear-gradient(135deg, #EEF4FF 0%, #E0EAFF 100%) !important;
  border-radius: var(--radius-2xl, 16px) !important;
  padding: clamp(1.25rem, 2.5vw, 2rem) !important;
  margin-block: 2.25rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.5rem !important;
  border: 1px solid rgba(43, 92, 230, 0.18) !important;
  text-align: left !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.pdf-cta > div:first-child {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.pdf-cta__actions,
.pdf-cta > div:last-child {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  flex-shrink: 0 !important;
  width: 320px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.pdf-cta h3 {
  margin: 0.4rem 0 0.5rem 0 !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: #1E293B !important;
}
.pdf-cta p {
  color: #475569 !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  font-size: 0.92rem !important;
}
.pdf-cta .hero-rubric {
  background-color: #1E3A8A !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  display: inline-block !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 0.25rem !important;
}
.pdf-cta .btn-primary,
.pdf-cta .btn-secondary-portal,
.pdf-cta__actions .btn-primary,
.pdf-cta__actions .btn-secondary-portal {
  flex-shrink: 0 !important;
  white-space: normal !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0.85rem 1.25rem !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}
.pdf-cta .btn-primary,
.pdf-cta__actions .btn-primary {
  background-color: var(--brand-primary, #183028) !important;
  color: #FFFFFF !important;
}
.pdf-cta .btn-primary:hover,
.pdf-cta__actions .btn-primary:hover {
  background-color: #24483c !important;
  transform: translateY(-1px) !important;
}
.pdf-cta .btn-secondary-portal,
.pdf-cta__actions .btn-secondary-portal {
  background-color: #F1EFEA !important;
  color: #1C1E21 !important;
  border: 1px solid #D5D2CA !important;
}
.pdf-cta .btn-secondary-portal:hover,
.pdf-cta__actions .btn-secondary-portal:hover {
  background-color: #E4E1DA !important;
  border-color: #183028 !important;
  transform: translateY(-1px) !important;
}
@media (max-width: 900px) {
  .pdf-cta {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1.25rem !important;
  }
  .pdf-cta__actions,
  .pdf-cta > div:last-child {
    width: 100% !important;
  }
}

/* 5. Плашка обратной связи с редакцией (.ut-feedback-bar) */
.ut-feedback-bar {
  background: #FFFFFF !important;
  border: 1px solid var(--border-subtle, #E4E1DA) !important;
  border-radius: 16px !important;
  padding: 1.25rem 1.5rem !important;
  margin: 2.5rem auto 1rem !important;
  max-width: 1100px !important;
  width: calc(100% - 32px) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.25rem !important;
  box-shadow: 0 4px 12px rgba(28, 30, 33, 0.03) !important;
}
.ut-feedback-bar__text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.ut-feedback-bar__title {
  margin: 0 0 0.3rem 0 !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  color: #183028 !important;
  line-height: 1.35 !important;
}
.ut-feedback-bar__sub {
  margin: 0 !important;
  font-size: 0.88rem !important;
  color: #475569 !important;
  line-height: 1.5 !important;
}
.ut-feedback-bar__actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.65rem !important;
  flex-shrink: 0 !important;
}
@media (max-width: 768px) {
  .ut-feedback-bar {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .ut-feedback-bar__actions .ut-fig-btn {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* 6. Плашка Cookie и Яндекс.Метрики (ФЗ-152) — WCAG Dialog v29.1 */
.ut-cookie-banner {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 99999 !important;
  background: #183028 !important; /* Темный изумруд школьной доски */
  color: #F8FAFC !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2) !important;
  border-top: 1px solid rgba(245, 158, 11, 0.35) !important;
  padding: 12px 16px !important;
  animation: cookieFadeIn 0.3s ease-out forwards;
}
.ut-cookie-banner.is-visible {
  display: block !important;
}
.ut-cookie-banner__inner {
  max-width: 1180px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}
@media (max-width: 640px) {
  .ut-cookie-banner__inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
}
.ut-cookie-banner__icon {
  font-size: 22px !important;
  flex-shrink: 0 !important;
}
.ut-cookie-banner__text {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: #E2E8F0 !important;
  flex-grow: 1 !important;
}
.ut-cookie-banner__text a {
  color: #FDE68A !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}
.ut-cookie-banner__btn {
  background: #F59E0B !important; /* Янтарное золото */
  color: #183028 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 8px 20px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: opacity 0.2s ease !important;
  min-height: 38px !important;
}
.ut-cookie-banner__btn:hover {
  opacity: 0.9 !important;
}
@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* v20.7: ЮРИДИЧЕСКИЙ ПОДВАЛ И СТРАНИЦЫ ДОКУМЕНТОВ */
.ut-footer-nav{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem;margin:0 0 1rem;font-size:.88rem}
.ut-footer-nav a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.ut-footer-legal{font-size:.78rem;line-height:1.5;max-width:860px;margin:.75rem auto 0;color:#334155 !important;font-weight:500;opacity:1 !important}
.ut-footer-legal a{color:#0F172A !important;font-weight:700;text-decoration:underline}
.legal-doc{max-width:820px;margin:0 auto}
.legal-doc h2{font-size:1.25rem;margin:2rem 0 .75rem}
.legal-doc p{font-size:1rem;line-height:1.65}
.legal-box{background:#F8FAFC;border:1px solid #E2E8F0;border-radius:16px;padding:1.25rem 1.5rem;margin:2rem 0}
.legal-box h2{margin-top:0;font-size:1.2rem}
.legal-box p{font-size:.95rem;margin:0 0 .6rem}



/* Семантический ориентир main для доступности (WCAG & Lighthouse) */
main#main-content, .page-wrapper {
  display: block;
  width: 100%;
}

.portal-hero--404{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;justify-content:center!important;max-width:960px!important;margin:0.75rem auto 2.5rem!important;padding:clamp(2rem,4vw,3rem) clamp(1.25rem,3vw,2.5rem)!important}
.portal-hero--404>div{display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;margin:0 auto!important;width:100%!important}
.portal-hero--404 h1,.portal-hero--404 p,.portal-hero--404 .portal-hero__lead{text-align:center!important;margin-left:auto!important;margin-right:auto!important}
.portal-hero--404 .portal-hero__actions{display:flex!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important;gap:12px!important;margin:0 auto!important;width:100%!important}


/* ===== v30.0 (152-ФЗ / 38-ФЗ): cookie-баннер со строгим opt-in и маркировка рекламы ===== */
.ut-cookie-banner__actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}
@media (max-width: 640px) {
  .ut-cookie-banner__actions {
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
}
/* Две визуально равноценные кнопки: одинаковый размер, вес шрифта и площадь */
.ut-cookie-banner__btn,
.ut-cookie-banner__btn--secondary {
  background: #F59E0B !important;
  color: #183028 !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  border: 2px solid #F59E0B !important;
  border-radius: 6px !important;
  padding: 8px 20px !important;
  min-height: 38px !important;
  min-width: 150px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  text-align: center !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}
.ut-cookie-banner__btn--secondary {
  background: transparent !important;
  color: #FDE68A !important;
  border-color: #FDE68A !important;
}
.ut-cookie-banner__btn:hover,
.ut-cookie-banner__btn--secondary:hover {
  opacity: 0.92 !important;
}
.ut-cookie-banner__btn:focus-visible,
.ut-cookie-banner__btn--secondary:focus-visible {
  outline: 2px solid #FDE68A !important;
  outline-offset: 2px !important;
}

/* Читаемый юридический футер рекламного блока: Реклама • Рекламодатель • ИНН • erid */
.cpa-legal-footer,
.erid-label.cpa-legal-footer {
  display: block !important;
  margin-top: 6px !important;
  font-size: 0.72rem !important;
  line-height: 1.45 !important;
  color: #64748B !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
.salid-offer-info .cpa-legal-footer,
.salid-offer-info .erid-label {
  color: #78350F !important;
}

/* v30.1: две РАВНЫЕ по размеру кнопки cookie-баннера (152-ФЗ) + видимый рекламный блок статьи */
.ut-cookie-banner__btn,
.ut-cookie-banner__btn--secondary {
  width: 190px !important;
  min-width: 190px !important;
  flex: 0 0 190px !important;
  padding: 8px 12px !important;
  box-sizing: border-box !important;
}
@media (max-width: 640px) {
  .ut-cookie-banner__btn,
  .ut-cookie-banner__btn--secondary {
    width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 auto !important;
  }
}
/* === v30.1 Точка 1: главный конвертер строго под тренажером (выносная колонка popout) === */
.article-layout > .ut-offer-visible {
  grid-column: popout;
  margin: 1.25rem 0 2rem 0;
}
.ut-offer-visible .salid-offer-box {
  margin: 0 !important;
}
.ut-offer-visible.ut-offer-highlight .salid-offer-box {
  box-shadow: 0 0 0 3px rgba(43, 92, 230, 0.28), 0 10px 25px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.35s ease;
}
/* === v30.1 Точка 2: кнопка из чек-листа к согласованному офферу (без клонирования текста) === */
.ut-offer-cta-row {
  margin-top: 10px;
}
.ut-offer-cta-btn {
  background: #2B5CE6;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  line-height: 1.35;
}
.ut-offer-cta-btn:hover,
.ut-offer-cta-btn:focus-visible {
  background: #1E4BD8;
}
