@charset "UTF-8";

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

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #1f2937;
  background: #f6f7fb;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  color: #1f2937;
}

p {
  margin: 0 0 12px;
  color: #4b5563;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 20px;
  background: radial-gradient(circle at 0% 0%, rgba(180, 234, 255, 0.28), transparent 40%), radial-gradient(circle at 100% 100%, rgba(255, 215, 169, 0.24), transparent 35%), #f3f6fb;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.app-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #d7dbe2;
  border-radius: 12px;
  box-shadow: 0 3px 0 #e5e7eb;
  position: relative;
}

.app-header__top {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.app-header__bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid #eceff4;
}

.app-header__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.app-header__title {
  font-weight: 700;
  font-size: 18px;
  color: #1f2937;
}

.app-header__subtitle {
  font-size: 12px;
  color: #4b5563;
}

.app-header__menu {
  flex: 1 1 auto;
  width: 100%;
}

.app-header__menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.app-header__menu-item {
  display: flex;
}

.app-header__link {
  text-decoration: none;
  color: #1f2937;
  padding: 6px 0;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.app-header__link:hover {
  color: #1f2937;
  border-color: #d7dbe2;
}

.app-header__mini {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.app-header__mini-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #f8f9fb;
  border: 1px solid #e4e7ec;
  font-size: 12px;
  color: #4b5563;
  min-width: 120px;
}

.app-header__mini-item strong {
  font-size: 16px;
  color: #1f2937;
}

.app-header__burger {
  cursor: pointer;
  display: none;
  width: 36px;
  height: 32px;
  border: 1px solid #d7dbe2;
  border-radius: 8px;
  background: #f6f7fb;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  padding: 6px;
}

.app-header__burger span {
  width: 18px;
  height: 2px;
  background: #1f2937;
  border-radius: 2px;
}

.app-header__user-btn {
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #d7dbe2;
  background: #f3f4f8;
  position: relative;
  margin-left: 12px;
}

.app-header__user-btn::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 6px;
  background: #cbd5f5;
}

.app-header__user-panel {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid #d7dbe2;
  border-radius: 0;
  box-shadow: -12px 0 30px rgba(15, 23, 42, 0.12);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-header--user-open .app-header__user-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.app-header__user-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.app-header__user-link {
  color: #1f2937;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.app-header__user-link:hover {
  background: #f1f3f7;
}

.app-header__logout {
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #f3c4c4;
  background: #fdeaea;
  color: #b91c1c;
}

.app-header__logout:hover {
  background: #fbdcdc;
}

.page-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.page-menu__link {
  text-decoration: none;
  color: #1f2937;
  background: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #d7dbe2;
  box-shadow: 0 2px 0 #e5e7eb;
  font-weight: 600;
  transition: background 0.15s ease;
}

.page-menu__link:hover {
  background: #f7f8fa;
}

.page-menu__link:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #e5e7eb;
}

.page-menu__link--button {
  cursor: pointer;
  font-family: inherit;
}

.page-menu__link--logout {
  margin-left: auto;
}

.is-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

label {
  font-size: 14px;
  color: #1f2937;
}

input,
select,
textarea,
button {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

input,
select,
textarea {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d7dbe2;
  background: #ffffff;
  font-size: 14px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

textarea {
  resize: vertical;
}

.small-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #d7dbe2;
  background: #f5f7fb;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.small-btn:hover {
  background: #e9eef7;
}

.small-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.small-btn--primary {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
}

.small-btn--primary:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.small-btn--secondary {
  background: #ffffff;
  border-color: #d7dbe2;
  color: #1f2937;
}

.small-btn--secondary:hover {
  background: #f3f4f8;
}

.small-btn--danger {
  background: #e53935;
  border-color: #e53935;
  color: #fff;
}

.small-btn--danger:hover {
  background: #d32f2f;
  border-color: #d32f2f;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 6px;
  border: 1px solid #007bff;
  background: #007bff;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.play-btn:hover {
  background: #0056b3;
  border-color: #0056b3;
}

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

.play-btn:focus-visible {
  outline: 2px solid rgba(0, 123, 255, 0.35);
  outline-offset: 2px;
}

.play-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* 1. Глобальные настройки и переменные */

:root {
  /* Палитра цветов */
  --primary-color: #38b2ac;
  /* Тиловый цвет (как на макете) */
  --primary-hover: #319795;
  --text-main: #1a202c;
  --text-muted: #718096;
  --bg-page: #e2e8f0;
  --bg-card: #ffffff;
  --bg-visual: #f7fafc;
  /* Размеры и отступы */
  --border-radius-lg: 24px;
  --border-radius-sm: 8px;
  --spacer: 1rem;
  /* 16px */
  /* Тени для эффекта "Elevated" */
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  /* Шрифты */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Сброс базовых стилей */

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* 2. Контейнер карточки */

.product-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  /* Чтобы картинка не вылезала за скругления */
  width: 100%;
  max-width: 400px;
  /* По умолчанию узкая (мобильная) */
  transition: transform 0.3s ease;
}

/* 3. Левая часть (Визуал) */

.product-card__visual {
  background-color: var(--bg-visual);
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 250px;
}

.product-card__image-wrapper {
  width: 100%;
  max-width: 280px;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
  /* Тень именно для PNG объекта */
}

.product-card__img {
  width: 100%;
  height: auto;
  display: block;
  -o-object-fit: contain;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Эффект при смене картинки (будем добавлять класс JS-ом) */

.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

/* 4. Правая часть (Контент) */

.product-card__info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-card__category {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.product-card__title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 0.25rem;
  color: var(--text-main);
}

.product-card__description {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-card__price-row {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
}

/* 5. Опции (Цвет и Размер) */

.product-card__options {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.option-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

/* Цвета */

.color-options {
  display: flex;
  gap: 10px;
}

.color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s;
}

/* Цвета кнопок (хардкод для примера, можно через style) */

.color-btn--red {
  background-color: #e53e3e;
}

.color-btn--teal {
  background-color: #38b2ac;
}

.color-btn--grey {
  background-color: #4a5568;
}

/* Состояние Active для цвета */

.color-btn.active {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--primary-color);
}

/* Размеры */

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.size-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.size-btn.active {
  background-color: var(--text-main);
  color: white;
  border-color: var(--text-main);
}

/* 6. Кнопка и Футер */

.btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn--primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 6px rgba(56, 178, 172, 0.25);
}

.btn--primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

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

/* Класс для анимации успешного добавления (добавим через JS) */

.btn.success {
  background-color: #48bb78;
  /* Зеленый */
  pointer-events: none;
  /* Заблокировать нажатия */
}

/* 7. Адаптивность (Desktop) */

/* Если ширина экрана больше 768px, переключаемся на Grid */

.learn-frase-page {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding: 20px;
  background-color: #f4f4f9;
}

.learn-frase-container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Сетка: 3 колонки */

.grid-header,
.row {
  display: grid;
  grid-template-columns: fit-content(200px) minmax(100px, 200px) 1fr;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #eee;
  align-items: start;
}

.grid-header {
  font-weight: bold;
  background-color: #e9ecef;
  border-radius: 5px;
}

/* Стили состояний строки */

.row.success {
  background-color: #d4edda;
  /* Зеленый фон */
  border-left: 5px solid #28a745;
}

.row.warning {
  background-color: #f8d7da;
  /* Розовый фон */
  border-left: 5px solid #dc3545;
}

.row.error {
  background-color: #ffb3b3;
  /* Насыщенный красный фон */
  border-left: 5px solid #8b0000;
}

/* Интерактивные элементы */

.learn-frase-check-btn {
  padding: 8px 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
}

.learn-frase-check-btn:hover {
  background-color: #0056b3;
}

/* Первая колонка: Слова с подсказками */

.interactive-word {
  cursor: pointer;
  border-bottom: 1px dashed #666;
  position: relative;
  margin-right: 4px;
}

.interactive-word:hover {
  color: #007bff;
  border-bottom-color: #007bff;
}

.hint-icon {
  font-size: 14px;
  color: #888;
  margin-left: 5px;
  cursor: help;
}

/* Вторая колонка: Ошибки */

.word-error {
  color: #d8000c;
  font-weight: bold;
  cursor: pointer;
  -webkit-text-decoration: underline wavy red;
  text-decoration: underline wavy red;
  position: relative;
  margin-right: 4px;
}

.word-correct {
  color: #155724;
  margin-right: 4px;
}

/* Тултип (всплывашка) */

.tooltip {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  /* Показать сверху */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
  font-size: 12px;
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Показываем тултип при клике (через класс .show) */

.tooltip.show {
  visibility: visible;
  opacity: 1;
}

/* ... старые стили ... */

/* Кнопка "Показать всю фразу" */

.hint-btn {
  background: none;
  border: 1px solid #007bff;
  color: #007bff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.hint-btn:hover {
  background: #007bff;
  color: white;
}

/* Контейнер для полной фразы-подсказки */

.full-hint-text {
  display: none;
  /* Скрыто по умолчанию */
  margin-top: 8px;
  padding: 5px 10px;
  background-color: #f1f8ff;
  border-radius: 4px;
  color: #333;
  font-style: italic;
  font-size: 0.9em;
  border-left: 3px solid #007bff;
}

/* Класс для отображения */

.full-hint-text.visible {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ... предыдущие стили ... */

/* Колонка 3: Контейнер для инпутов */

.inputs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-bottom: 10px;
}

/* Стиль отдельного маленького инпута */

.word-input {
  width: 80px;
  /* Фиксированная или min-width */
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  transition: border-color 0.2s;
}

.word-input:focus {
  border-color: #007bff;
  outline: none;
}

/* Состояния инпута после проверки (опционально, для красоты) */

.word-input.input-correct {
  border-color: #28a745;
  background-color: #e8f5e9;
}

.word-input.input-error {
  border-color: #dc3545;
  background-color: #fce8e6;
}

#resultsTable .active-row {
  background: rgba(52, 84, 247, 0.1);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

header {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- ИГРОВОЕ ПОЛЕ (Две колонки) --- */

.game-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Две равные колонки */
  gap: 40px;
  /* Расстояние между колонками */
  margin-bottom: 40px;
  align-items: start;
}

.column h3 {
  text-align: center;
  color: #444;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 1px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* Расстояние между кнопками по вертикали */
}

/* --- СТИЛЬ КНОПКИ (СЛОВА) --- */

.card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  /* Скругленные углы */
  padding: 15px 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  box-shadow: 0 4px 0 #e0e0e0;
  /* Эффект 3D кнопки снизу */
  transition: all 0.1s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  position: relative;
}

/* Эффект наведения */

.card:hover {
  transform: translateY(-2px);
  /* Кнопка приподнимается */
  box-shadow: 0 6px 0 #dcdcdc;
  border-color: #dcdcdc;
}

/* Эффект нажатия (активная кнопка) */

.card:active {
  transform: translateY(2px);
  /* Кнопка вдавливается */
  box-shadow: 0 2px 0 #dcdcdc;
}

/* --- СОСТОЯНИЯ --- */

/* 1. НЕЙТРАЛЬНЫЙ ВЫБОР (Первый клик) */

.card.selected {
  background-color: #e3f2fd;
  /* Светло-голубой */
  border-color: #2196f3;
  color: #0d47a1;
  box-shadow: 0 4px 0 #2196f3;
}

/* 2. ПРАВИЛЬНО (Зеленый) */

.card.correct {
  background-color: #d4edda;
  border-color: #28a745;
  color: #155724;
  box-shadow: 0 4px 0 #28a745;
  animation: successPop 0.3s ease;
  pointer-events: none;
  /* Запрет повторного клика */
}

/* 3. ОШИБКА (Красный) */

.card.wrong {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
  box-shadow: 0 4px 0 #dc3545;
}

/* Анимация исчезновения правильной пары */

.card.hidden {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
}

@keyframes successPop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/* --- ТАБЛИЦА ВНИЗУ --- */

.finished-section {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.finished-section .app-grid__wrap {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.results-grid tr.active-row {
  background: rgba(52, 84, 247, 0.1);
}

/* ... (весь старый CSS остается) ... */

/* Блок "Продолжить" */

.next-level-container {
  text-align: center;
  background: #e8f5e9;
  border: 2px solid #a5d6a7;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  animation: fadeIn 0.5s ease;
}

.next-level-container h2 {
  color: #2e7d32;
  margin-top: 0;
}

.big-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: bold;
  box-shadow: 0 4px 0 #1e7e34;
}

.big-btn:hover {
  background-color: #218838;
}

.big-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1e7e34;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hint-btn {
  margin-left: auto;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 700;
}

.card.hint {
  outline: 3px solid #3454f7;
}

.time-panel {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #444;
  margin-left: 16px;
}

.time-item {
  line-height: 1.4;
}

.dict-stats {
  margin: 16px 0;
}

.dict-stats__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dict-stat-btn {
  border: 1px solid #cfd8e3;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}

.dict-stat-btn:hover {
  filter: brightness(0.98);
}

.dict-stats__words {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #cfd8e3;
  border-radius: 8px;
}

.dict-words {
  color: #333;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-word;
}

.dict-stats__words-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.dictation-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dictation-settings {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
}

.dictation-debug {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
}

.dictation-setting {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dictation-start {
  margin: 24px 0;
  text-align: center;
}

.dictation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.dictation-progress {
  margin-bottom: 16px;
}

.dictation-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.dictation-item.active {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

.dictation-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.dictation-translation {
  font-weight: 600;
}

.dictation-icon {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
}

.dictation-errors {
  font-size: 12px;
  color: #666;
}

.dictation-repetition {
  margin-top: 6px;
  font-size: 12px;
}

.dictation-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dictation-cell {
  width: 28px;
  height: 32px;
  border: 1px solid #bbb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--dictation-font-size, 18px);
  background: #fafafa;
  color: transparent;
  position: relative;
}

.dictation-cell.correct {
  color: #1e7e34;
  border-color: #1e7e34;
  background: #e8f5e9;
}

.dictation-cell.wrong {
  color: #c62828;
  border-color: #c62828;
  background: #ffebee;
}

.dictation-cell.hint {
  color: rgba(0, 0, 0, 0.35);
}

.dictation-cell.cursor::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 60%;
  background: #1a73e8;
  animation: dictation-caret 1s steps(1) infinite;
}

.dictation-cell.cursor.correct::after,
.dictation-cell.cursor.wrong::after,
.dictation-cell.cursor.hint::after {
  display: none;
}

.dictation-cell.space {
  border-color: transparent;
  background: transparent;
}

.dictation-results-grid tr.active-row {
  background: rgba(26, 115, 232, 0.1);
}

@keyframes dictation-caret {
  50% {
    opacity: 0;
  }
}

.articles-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.articles-start {
  margin: 24px 0;
  text-align: center;
}

.articles-board {
  margin-bottom: 24px;
}

.articles-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.articles-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.articles-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.articles-word {
  font-size: 22px;
  font-weight: 700;
  color: #222;
}

.articles-translation {
  font-size: 14px;
  color: #666;
}

.articles-errors {
  font-size: 12px;
  color: #666;
}

.articles-choices {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.articles-choice {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.articles-choice:hover {
  border-color: #999;
}

.articles-choice:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.articles-choice.is-correct {
  background: #e8f5e9;
  border-color: #1e7e34;
  color: #1e7e34;
}

.articles-choice.is-wrong {
  background: #ffebee;
  border-color: #c62828;
  color: #c62828;
}

.articles-feedback {
  min-height: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

.articles-repetition {
  margin-top: 6px;
  font-size: 12px;
}

.articles-queue {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

.stats-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.page-menu__link {
  text-decoration: none;
  color: #1f2937;
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #d7dbe2;
  box-shadow: 0 2px 0 #e5e7eb;
  font-weight: 600;
  transition: background 0.15s ease;
}

.page-menu__link:hover {
  background: #f7f8fa;
}

.page-menu__link:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #e5e7eb;
}

.stats-header {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.stats-section {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stats-title {
  margin: 0 0 12px;
  font-size: 20px;
}

.stats-month {
  margin-top: 16px;
}

.stats-month:first-of-type {
  margin-top: 0;
}

.stats-month h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.stats-table th,
.stats-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
}

.stats-table th {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #555;
}

.stats-total td {
  font-weight: 700;
}

.stats-empty {
  color: #666;
  margin: 8px 0 0;
}

.stats-chart {
  margin: 12px 0 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.stats-chart-layout {
  display: flex;
  gap: 16px;
}

.stats-chart-menu {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-chart-menu__title {
  font-weight: 600;
  font-size: 14px;
  color: #374151;
}

.stats-chart-menu__empty {
  font-size: 12px;
  color: #777;
}

.stats-chart-main {
  flex: 1;
  min-width: 0;
}

.stats-period {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  padding: 6px 8px;
}

.stats-period + .stats-period {
  margin-top: 8px;
}

.stats-period__summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  color: #1f2937;
  list-style: none;
}

.stats-period__summary::-webkit-details-marker {
  display: none;
}

.stats-period__months {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.stats-period__month {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1f2937;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.stats-period__month:hover:not(.is-disabled) {
  background: #f3f4f6;
}

.stats-period__month.is-active {
  border-color: #007bff;
  background: #eff6ff;
  color: #0056b3;
}

.stats-period__month.is-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.stats-chart__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.stats-chart__frame {
  width: 100%;
  height: 350px;
}

.stats-chart__canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stats-chart-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 12px;
}

.stats-chart-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.stats-chart-group__label {
  font-weight: 600;
  font-size: 13px;
  color: #374151;
}

.stats-chart-group__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stats-chart-tab {
  border: 1px solid #d1d5db;
  background: transparent;
  color: #1f2937;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.stats-chart-tab:hover {
  background: #f3f4f6;
}

.stats-chart-tab.is-active {
  border-color: #007bff;
  background: #eff6ff;
  color: #0056b3;
}

.stats-chart-panel {
  margin-bottom: 16px;
}

.stats-progress {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stats-progress__note {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.stats-progress__mode {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-progress__tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stats-progress__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.stats-efficiency {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stats-efficiency__note {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.stats-efficiency__mode {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stats-efficiency__table td:first-child {
  font-weight: 600;
}

.stats-compare {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-compare__note {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.stats-compare__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.stats-compare__control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.stats-compare__select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
  background: #fff;
  color: #1f2937;
}

.stats-compare__button {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 13px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  font-weight: 600;
}

.stats-compare__button:hover {
  background: #f3f4f6;
}

.stats-compare__chart {
  margin-top: 4px;
}

.stats-retention {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-retention__note {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.stats-difficulty {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stats-difficulty__note {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.stats-sessions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stats-sessions__note {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.stats-sessions__block h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.stats-sessions__mode {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}

.stats-sessions__mode:last-child {
  margin-bottom: 0;
}

.conjugation-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.conjugation-settings {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
}

.conjugation-setting {
  display: flex;
  gap: 8px;
  align-items: center;
}

.conjugation-start {
  margin: 24px 0;
  text-align: center;
}

.conjugation-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px;
  background: #fff;
}

.conjugation-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.conjugation-verb {
  font-size: 20px;
  font-weight: 700;
}

.conjugation-translation {
  font-size: 14px;
  color: #555;
}

.conjugation-icon {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
}

.conjugation-errors {
  font-size: 12px;
  color: #666;
  margin-left: auto;
}

.conjugation-forms {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.conjugation-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.conjugation-past {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed #d7dbe2;
}

.conjugation-group__title {
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
}

.conjugation-form {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.conjugation-form.active .conjugation-label {
  font-weight: 700;
  color: #1a73e8;
}

.conjugation-label {
  width: 110px;
  font-size: 14px;
  color: #555;
  text-transform: lowercase;
}

.conjugation-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.conjugation-cell {
  width: 28px;
  height: 32px;
  border: 1px solid #bbb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--conjugation-font-size, 18px);
  background: #fafafa;
  color: transparent;
  position: relative;
}

.conjugation-cell.correct {
  color: #1e7e34;
  border-color: #1e7e34;
  background: #e8f5e9;
}

.conjugation-cell.prefill {
  color: #111;
}

.conjugation-cell.wrong {
  color: #c62828;
  border-color: #c62828;
  background: #ffebee;
}

.conjugation-cell.hint {
  color: rgba(0, 0, 0, 0.35);
}

.conjugation-cell.cursor::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 60%;
  background: #1a73e8;
  animation: conjugation-caret 1s steps(1) infinite;
  left: 7px;
}

.conjugation-cell.cursor.correct::after,
.conjugation-cell.cursor.wrong::after {
  display: none;
}

.conjugation-cell.space {
  border-color: transparent;
  background: transparent;
}

.conjugation-article {
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.conjugation-article__btn {
  align-self: flex-start;
  border: 1px solid #cfd8e3;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  background-color: transparent;
  cursor: pointer;
  font-weight: 600;
  color: inherit;
  -moz-appearance: none;
  appearance: none;
  -webkit-appearance: none;
}

.conjugation-article__btn:hover {
  background: transparent;
  filter: brightness(0.98);
}

.conjugation-article__btn:active {
  background: transparent;
}

.conjugation-article__content {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  line-height: 1.5;
}

.conjugation-article__content h2,
.conjugation-article__content h3 {
  margin: 12px 0 8px;
}

.conjugation-article__content p {
  margin: 6px 0;
}

.conjugation-article__table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 14px;
}

.conjugation-article__table th,
.conjugation-article__table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.conjugation-results {
  margin-top: 24px;
  overflow-x: auto;
}

.conjugation-results tr.is-active {
  background: #e3f2fd;
}

.conjugation-result__word {
  font-weight: 700;
}

.conjugation-result__translation {
  font-size: 12px;
  color: #555;
}

.conjugation-result__line {
  font-size: 12px;
  line-height: 1.35;
}

@keyframes conjugation-caret {
  50% {
    opacity: 0;
  }
}

.words-edit-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
}

.words-edit-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.words-edit-summary {
  font-size: 13px;
  color: #444;
}

.words-edit-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.words-edit-filters,
.words-edit-bulk,
.words-edit-import {
  background: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.words-edit-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.words-edit-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #444;
}

.words-edit-field__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.words-edit-field__row select {
  flex: 1 1 auto;
}

.words-edit-sort__dir {
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.words-edit-field input,
.words-edit-field select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #d7dbe2;
}

.words-edit-bulk {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.words-edit-bulk__select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #444;
}

.words-edit-bulk__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.small-btn--danger {
  background: #e53935;
  border: 1px solid #e53935;
  color: #fff;
}

.small-btn--danger:hover {
  background: #d32f2f;
  border-color: #d32f2f;
}

.words-edit-bulk__actions select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #d7dbe2;
}

.words-edit-import {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.words-edit-import__right {
  margin-left: auto;
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.words-edit-table .app-grid__table {
  min-width: 900px;
}

.words-edit__col-word {
  min-width: 200px;
}

.words-edit__word {
  font-weight: 600;
  color: #1f2937;
}

.words-edit__translation {
  font-size: 13px;
  color: #555;
}

.words-edit__meta {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

.words-edit__mode {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.words-edit__label {
  font-size: 12px;
  color: #666;
}

.words-edit__status {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #d7dbe2;
}

.words-edit__progress {
  font-size: 12px;
  color: #555;
}

.words-edit__progress.is-ready {
  color: #d32f2f;
  font-weight: 600;
}

.words-edit__queue {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.words-edit__queue-open {
  align-self: flex-start;
  padding: 4px 8px;
  font-size: 12px;
}

.words-edit-queue {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.words-edit-queue__info {
  font-size: 13px;
  color: #444;
}

.words-edit-queue__warning {
  background: #fff3e0;
  border: 1px solid #ffe0b2;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  color: #6d4c41;
}

.words-edit-queue__confirm {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.words-edit-queue__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.words-edit-queue__insert {
  display: flex;
  align-items: center;
  gap: 6px;
}

.words-edit-queue__select {
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid #d7dbe2;
  font-size: 12px;
}

.words-edit-queue__note {
  font-size: 12px;
  color: #777;
}

.words-edit-queue__list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: #444;
  max-height: 240px;
  overflow-y: auto;
}

.words-edit-queue__item {
  padding: 6px 4px;
}

.words-edit-queue__item:not(:last-child) {
  border-bottom: 1px solid #eee;
}

.words-edit-queue__item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.words-edit-queue__item-label {
  flex: 1 1 auto;
}

.words-edit-queue__item-controls {
  display: flex;
  gap: 6px;
}

.words-edit-queue__item-btn {
  padding: 3px 6px;
  font-size: 12px;
}

.words-edit-queue__item.is-current {
  font-weight: 600;
  color: #1f2937;
}

.words-edit-queue__empty {
  list-style: none;
  color: #777;
}

.words-edit__history {
  font-size: 12px;
  color: #666;
  min-width: 180px;
}

.words-edit__apply[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.words-edit-row.is-dirty {
  background: #fff8e1;
}

.app-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-grid__wrap {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow-x: auto;
  width: 100%;
}

.app-grid__table {
  width: 100%;
  border-collapse: collapse;
}

.app-grid__wrap > .app-grid {
  display: table;
  width: 100%;
  border-collapse: collapse;
}

.app-grid__wrap > .app-grid th,
.app-grid__wrap > .app-grid td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.app-grid__wrap > .app-grid th {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #555;
  white-space: nowrap;
}

.app-grid__wrap > .app-grid th.is-sortable {
  cursor: pointer;
}

.app-grid__wrap > .app-grid th.is-desc::after,
.app-grid__wrap > .app-grid th.is-asc::after {
  margin-left: 6px;
  font-size: 10px;
  text-transform: uppercase;
  color: #888;
}

.app-grid__wrap > .app-grid th.is-asc::after {
  content: "^";
}

.app-grid__wrap > .app-grid th.is-desc::after {
  content: "v";
}

.app-grid__table th,
.app-grid__table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.app-grid__table th {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #555;
  white-space: nowrap;
}

.app-grid__table th.is-sortable {
  cursor: pointer;
}

.app-grid__table th.is-sorted::after {
  content: attr(data-direction);
  margin-left: 6px;
  font-size: 10px;
  text-transform: uppercase;
  color: #888;
}

.app-grid__table th.is-sorted[data-direction=asc]::after {
  content: "^";
}

.app-grid__table th.is-sorted[data-direction=desc]::after {
  content: "v";
}

.app-grid__col-select {
  width: 34px;
}

.app-grid__col-index {
  width: 44px;
  text-align: right;
  color: #666;
  white-space: nowrap;
}

.app-grid__state {
  text-align: center;
  color: #666;
  padding: 18px 12px;
}

.app-grid__state--error {
  color: #c62828;
}

.app-grid__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #555;
  padding-top: 8px;
  padding-bottom: 8px;
}

.app-grid__pager {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.app-grid__btn {
  border: 1px solid #d7dbe2;
  background: #fff;
  color: #333;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 12px;
}

.app-grid__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.app-grid__page-input {
  border: 1px solid #d7dbe2;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  width: 64px;
  text-align: center;
}

.app-grid__size {
  border: 1px solid #d7dbe2;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
}

.app-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.app-modal.is-visible {
  display: flex;
}

.app-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.app-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 90vw);
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-modal__title {
  margin: 0;
  font-size: 18px;
}

.app-modal__body {
  color: #333;
  font-size: 14px;
}

.app-modal__body h4 {
  margin: 12px 0 6px;
  font-size: 15px;
}

.app-modal__body ul {
  margin: 0 0 8px 18px;
}

.app-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.app-modal__btn {
  border: 1px solid #ccc;
  background: transparent;
  color: #111;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 600;
}

.app-modal__btn--confirm {
  background: #007bff;
  border-color: #007bff;
  color: #fff;
}

.app-modal__btn--confirm:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.app-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #555;
  font-size: 12px;
  --progress-fill: #1a73e8;
  --progress-track: #e6e6e6;
  --progress-size: 96px;
  --progress-thickness: 8px;
}

.app-progress__bar {
  position: relative;
  background: var(--progress-track);
  height: 10px;
  overflow: hidden;
}

.app-progress.is-rounded .app-progress__bar,
.app-progress.is-rounded .app-progress__fill {
  border-radius: 999px;
}

.app-progress__track {
  position: absolute;
  inset: 0;
  background: var(--progress-track);
}

.app-progress__fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--progress-fill);
  transition: width 0.2s ease;
}

.app-progress.is-static .app-progress__fill,
.app-progress.is-static .app-progress__ring-value {
  transition: none;
}

.app-progress.is-striped .app-progress__fill {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.2) 75%, transparent 75%, transparent);
  background-size: 24px 24px;
}

.app-progress__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.app-progress__label {
  font-weight: 600;
  color: #333;
}

.app-progress__value,
.app-progress__remaining,
.app-progress__percent {
  color: #666;
}

.app-progress__ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.app-progress__ring-track,
.app-progress__ring-value {
  fill: none;
}

.app-progress__ring-track {
  stroke: var(--progress-track);
}

.app-progress__ring-value {
  stroke: var(--progress-fill);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.2s ease;
}

.app-progress__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #333;
}

.app-progress[data-mode=linear] .app-progress__ring,
.app-progress[data-mode=linear] .app-progress__center {
  display: none;
}

.app-progress[data-mode=radial] {
  align-items: center;
}

.app-progress[data-mode=radial] .app-progress__bar {
  width: var(--progress-size);
  height: var(--progress-size);
  background: transparent;
}

.app-progress[data-mode=radial] .app-progress__track,
.app-progress[data-mode=radial] .app-progress__fill {
  display: none;
}

.goal-progress {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.goal-progress.is-hidden {
  display: none;
}

.summary-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: none;
  width: calc(100% - 240px);
  margin: 0 0 0 240px;
  padding-left: 20px;
}

.summary-header {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 220px;
  background: #fff;
  padding: 20px 14px;
  border-right: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow-y: auto;
  z-index: 10;
  transition: transform 0.2s ease;
}

.summary-nav__hide {
  border: 1px solid #1a73e8;
  background: #fff;
  color: #1a73e8;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  margin-bottom: 12px;
}

.summary-nav__hide:hover {
  background: rgba(26, 115, 232, 0.08);
}

.summary-nav.is-collapsed {
  transform: translateX(-100%);
}

.summary-page.summary-page--collapsed {
  margin: 0;
}

.summary-burger {
  position: fixed;
  top: 16px;
  left: 12px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #1a73e8;
  background: #fff;
  color: #1a73e8;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.summary-page:not(.summary-page--collapsed) .summary-burger {
  opacity: 0;
  pointer-events: none;
}

.summary-burger:hover {
  background: rgba(26, 115, 232, 0.08);
}

.summary-nav__title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.summary-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-nav__link {
  text-decoration: none;
  color: #1a73e8;
  font-size: 14px;
}

.summary-nav__link:hover {
  text-decoration: underline;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.summary-section {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.summary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.summary-action {
  border: 1px solid #1a73e8;
  background: #fff;
  color: #1a73e8;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease;
}

.summary-action:hover {
  background: rgba(26, 115, 232, 0.08);
}

.summary-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.summary-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.summary-toggle.is-active,
.summary-toggle[aria-pressed=true] {
  background: rgba(26, 115, 232, 0.15);
  border-color: #1a73e8;
  color: #1a73e8;
}

.summary-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.summary-speak-all.is-stop {
  border-color: #d32f2f;
  color: #d32f2f;
}

.summary-copy.is-copied {
  border-color: #2e7d32;
  color: #2e7d32;
  background: rgba(46, 125, 50, 0.08);
}

.summary-section .app-grid__wrap {
  background: transparent;
  box-shadow: none;
}

.summary-section .app-grid__row.summary-row--speaking {
  background: rgba(26, 115, 232, 0.1);
}

.summary-empty {
  color: #666;
  font-size: 14px;
}

.summary-speak {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
}

.summary-stop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  border: none;
  background: #d32f2f;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(211, 47, 47, 0.35);
}

.summary-stop:hover {
  background: #c62828;
}

.phonetics-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.phonetics-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.phonetics-rules {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.phonetics-rules__header {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.phonetics-rules__header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.phonetics-rules__header h2 {
  margin: 0;
  font-size: 20px;
}

.phonetics-rules__header p {
  margin: 6px 0 0;
  color: #555;
}

.phonetics-header {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.phonetics-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.phonetics-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.phonetics-action {
  border: 1px solid #1a73e8;
  background: transparent;
  color: #1a73e8;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease;
}

.phonetics-action:hover {
  background: rgba(26, 115, 232, 0.08);
}

.phonetics-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.phonetics-play-all.is-stop {
  border-color: #d32f2f;
  color: #d32f2f;
}

.phonetics-action.is-stop {
  border-color: #d32f2f;
  color: #d32f2f;
}

.phonetics-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.phonetics-toggle.is-active,
.phonetics-toggle[aria-pressed=true] {
  background: rgba(26, 115, 232, 0.15);
  border-color: #1a73e8;
  color: #1a73e8;
}

.phonetics-section {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.phonetics-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.phonetics-section__header h2 {
  margin: 0;
  font-size: 18px;
}

.phonetics-section--rules .phonetics-section__header h2 {
  font-size: 17px;
}

.phonetics-section .app-grid__wrap {
  background: transparent;
  box-shadow: none;
}

.phonetics-section .app-grid__row.phonetics-row--speaking {
  background: rgba(26, 115, 232, 0.1);
}

.phonetics-speak {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
}

.phonetics-stop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  border: none;
  background: #d32f2f;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(211, 47, 47, 0.35);
}

.phonetics-stop:hover {
  background: #c62828;
}

.phonetics-grapheme {
  font-weight: 600;
}

.phonetics-phoneme {
  font-weight: 600;
  white-space: nowrap;
}

.phonetics-sound {
  white-space: nowrap;
}

.phonetics-note {
  color: #555;
}

.phonetics-examples strong {
  font-weight: 700;
  color: #1a73e8;
}

.srs-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.srs-header {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.srs-form {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.srs-section h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.srs-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.srs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.srs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #555;
}

.srs-field__hint {
  font-size: 12px;
  color: #777;
}

.srs-field input {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
}

.srs-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.srs-stepper input {
  width: 90px;
  text-align: center;
}

.srs-stepper__btn {
  width: 32px;
  height: 32px;
  border: 1px solid #1a73e8;
  background: #fff;
  color: #1a73e8;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.srs-stepper__btn:hover {
  background: rgba(26, 115, 232, 0.08);
}

.srs-intervals {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.srs-intervals__note {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.srs-intervals__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.srs-goals {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.srs-goal {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.srs-goal__title {
  font-weight: 600;
  color: #333;
}

.srs-goal__meta {
  font-size: 12px;
  color: #666;
}

.srs-goal__info {
  font-size: 12px;
  color: #444;
  background: #fff;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 8px 10px;
}

.srs-interval {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
}

.srs-interval__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #333;
}

.srs-interval__hint {
  font-size: 12px;
  color: #777;
}

.srs-interval input {
  width: 120px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 8px;
}

.srs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.srs-action {
  border: 1px solid #1a73e8;
  background: #fff;
  color: #1a73e8;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.15s ease;
}

.srs-action:hover {
  background: rgba(26, 115, 232, 0.08);
}

.srs-save {
  background: #1a73e8;
  color: #fff;
  border-color: #1a73e8;
}

.srs-save:hover {
  background: #1565c0;
}

.srs-message {
  min-height: 18px;
  margin: 0;
  font-size: 13px;
}

.srs-message.is-success {
  color: #2e7d32;
}

.srs-message.is-error {
  color: #d32f2f;
}

.srs-note {
  margin: 0;
  font-size: 12px;
  color: #666;
}

.settings-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.settings-role-user .settings-lock {
  display: none;
}

.settings-role-admin #settingsCancel {
  display: none;
}

.settings-section {
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-section__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-head--inline {
  justify-content: flex-start;
  gap: 16px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #444;
}

.settings-field input,
.settings-field select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #d7dbe2;
}

.settings-field--inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.settings-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-status__head {
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.settings-status__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.settings-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #444;
}

.settings-status-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-status-group--hidden {
  display: none;
}

.settings-status__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.settings-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-intervals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.settings-interval {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #444;
}

.settings-interval input {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #d7dbe2;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.settings-message {
  font-size: 13px;
  color: #444;
}

.settings-note {
  font-size: 12px;
  color: #666;
}

.settings-user__content.is-hidden {
  display: none;
}

.learn-page__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.learn-page__header h1 {
  font-size: 28px;
}

.learn-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.learn-card {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  max-width: 320px;
}

.learn-card__media {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 120px;
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(135deg, #1f2937, #0f172a);
  color: #fff;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.learn-card__media--fallback {
  background: linear-gradient(135deg, #111827, #0b1020);
}

.learn-card__media--fallback::before {
  content: "◆";
  font-size: 28px;
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.65);
}

.learn-card__media h2 {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.learn-card h2 {
  font-size: 18px;
  margin: 0;
}

.learn-card p {
  margin: 0;
  color: #667085;
}

.learn-card__code {
  font-size: 12px;
  color: #6b7280;
}

.learn-card__action {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-weight: 600;
}

.learn-card__action:hover {
  background: #1f2937;
}

.learn-page__loading,
.learn-page__empty,
.learn-page__error {
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
  .product-card {
    max-width: 900px;
    /* Расширяем карточку */
    display: grid;
    /* Две колонки: 1-я занимает 45%, 2-я все остальное */
    grid-template-columns: 45% 1fr;
  }

  .product-card__visual {
    /* Высота теперь автоматическая на всю высоту карточки */
    height: 100%;
    min-height: auto;
  }

  .product-card__info {
    padding: 3rem;
    /* Больше воздуха на десктопе */
    justify-content: center;
  }

  .product-card__title {
    font-size: 2.25rem;
  }
}

@media (max-width: 980px) {
  .summary-page {
    width: 100%;
    margin: 0;
    padding-left: 0;
  }

  .summary-nav {
    position: static;
    width: auto;
    height: auto;
    border-right: none;
    transform: none;
  }

  .summary-nav.is-collapsed {
    display: none;
  }

  .summary-burger {
    top: 12px;
    left: 12px;
  }

  .summary-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 12px;
  }
}

@media (max-width: 960px) {
  .app-header {
    align-items: flex-start;
  }

  .app-header__top {
    flex-wrap: wrap;
  }

  .app-header__menu {
    width: 100%;
    display: none;
  }

  .app-header__menu-list {
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
  }

  .app-header__burger {
    display: flex;
  }

  .app-header--menu-open .app-header__menu {
    display: block;
  }

  .app-header__mini {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .stats-progress__tables {
    grid-template-columns: 1fr;
  }

  .stats-chart-layout {
    flex-direction: column;
  }

  .stats-chart-menu {
    width: 100%;
  }

  .stats-period__months {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}