/* ОСНОВНЫЕ ПЕРЕМЕННЫЕ И СБРОС */
:root {
  --primary: #4361ee;
  --primary-hover: #3a56d4;
  --accent: #ff7b00;
  --accent-hover: #e06d00;
  --secondary: #7209b7;
  --bg-main: #ffffff;
  --bg-light: #f8f9fc;
  --bg-card: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 30px -10px rgba(67, 97, 238, 0.15);
  --font-heading: 'Comfortaa', cursive, sans-serif;
  --font-body: 'Nunito', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* КНОПКИ */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

.btn-accent {
  background: linear-gradient(135deg, #ff8c00, #ff5400);
  color: #ffffff;
}

.btn-accent:hover {
  background: linear-gradient(135deg, #e67e00, #e64c00);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 123, 0, 0.35);
}

.btn-large {
  padding: 16px 36px;
  font-size: 18px;
  border-radius: 18px;
}

.btn-subtext {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.95;
  margin-top: 4px;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-block {
  width: 100%;
}

/* ШАПКА */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 19px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
  flex-shrink: 0;
}

.logo-text {
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1;
}

.logo-text strong {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.nav-menu a {
  text-decoration: none;
  color: #4b5563;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  transition: all 0.2s ease;
  line-height: 1;
}

.nav-menu a:hover {
  color: var(--primary);
  background-color: #f0f4ff;
}

.header-actions {
  flex-shrink: 0;
}

.header-btn {
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(67, 97, 238, 0.25);
}


/* HERO SECTION */
.hero-section {
  padding: 70px 0 90px;
  background: radial-gradient(circle at top right, rgba(67, 97, 238, 0.08), transparent 50%),
              radial-gradient(circle at bottom left, rgba(255, 123, 0, 0.06), transparent 50%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #eef2ff;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
  border: 1px solid #c7d2fe;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 42px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 20px;
}

.highlight {
  color: var(--primary);
  background: linear-gradient(120deg, rgba(255, 123, 0, 0.15) 0%, rgba(255, 123, 0, 0.25) 100%);
  padding: 2px 8px;
  border-radius: 6px;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 580px;
}

.hero-features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 35px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.feature-item .icon {
  font-size: 20px;
}

/* HERO ИНТЕРАКТИВНАЯ КАРТОЧКА */
.hero-interactive-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 25px 60px -15px rgba(67, 97, 238, 0.15), 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f6;
  position: relative;
}

/* Статус онлайн-урока */
.live-status-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 8px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.live-indicator {
  position: relative;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #16a34a;
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.live-dot-pulse {
  position: absolute;
  width: 16px;
  height: 16px;
  background: rgba(22, 163, 74, 0.4);
  border-radius: 50%;
  animation: pulseLive 1.8s infinite ease-out;
}

@keyframes pulseLive {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.live-text {
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
  flex-grow: 1;
}

.live-time-pill {
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Карточка педагога */
.hero-teacher-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.teacher-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.teacher-avatar {
  font-size: 32px;
  background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.teacher-verified {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #059669;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.teacher-details {
  flex-grow: 1;
}

.teacher-header-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.teacher-header-line h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.2;
}

.pedagog-pill {
  background: #fef3c7;
  color: #b45309;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.teacher-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Блок класса и детей */
.classroom-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}

.classroom-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.classroom-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slots-pill {
  background: #fee2e2;
  color: #dc2626;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

.kids-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kid-chip {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.kc-avatar {
  font-size: 22px;
  flex-shrink: 0;
}

.kc-info strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.kc-info span {
  font-size: 11px;
  color: var(--text-muted);
}

.kid-chip-free {
  border: 1.5px dashed var(--accent);
  background: #fffcf8;
  cursor: pointer;
}

.kid-chip-free:hover {
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 123, 0, 0.15);
}

.kc-avatar-add {
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.text-accent {
  color: var(--accent);
}

.link-take-seat {
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
}

/* Мини-преимущества */
.hero-mini-perks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.mini-perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.mp-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.mp-text strong {
  display: block;
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.3;
}

.mp-text p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Парящий отзыв */
.hero-floating-review {
  background: linear-gradient(135deg, #4361ee, #7209b7);
  color: #ffffff;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 10px 25px rgba(67, 97, 238, 0.25);
}

.hfr-stars {
  font-size: 12px;
  display: block;
  margin-bottom: 2px;
}

.hero-floating-review p {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.4;
}

.hfr-author {
  font-size: 11px;
  opacity: 0.85;
}

/* ОБЩИЕ СЕКЦИИ */
.section {
  padding: 85px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

.section-header {
  margin-bottom: 50px;
}

.text-center {
  text-align: center;
}

.section-tag {
  color: var(--primary);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* СЕТКА ПРЕДМЕТОВ 4 В 1 */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.subject-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.subject-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.subject-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.subject-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}

.subject-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.subject-perks {
  list-style: none;
  border-top: 1px solid #f0f0f0;
  padding-top: 15px;
}

.subject-perks li {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.subject-perks li::before {
  content: "•";
  color: var(--primary);
  font-size: 20px;
  position: absolute;
  left: 0;
  top: -4px;
}

/* БЛОК СКРИПТОВ И ИХ ВЫРАВНИВАНИЕ */
.scripts-container {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 50px;
  align-items: center;
}

.scripts-text-col {
  display: flex;
  flex-direction: column;
}

.scripts-action-box {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scripts-action-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.benefit-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}

.benefit-item {
  display: flex;
  gap: 15px;
}

.benefit-item .check {
  background: #e0f2fe;
  color: #0284c7;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.benefit-item strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.benefit-item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* КАРТОЧКА ГАЛЕРЕИ СКРИПТОВ */
.scripts-showcase-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  overflow: hidden;
}

.script-tabs-nav {
  display: flex;
  background: #f1f5f9;
  padding: 8px;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.script-tab-btn {
  flex: 1;
  padding: 11px 8px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.script-tab-btn:hover {
  color: var(--primary);
}

.script-tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.script-sheet-view {
  display: none;
  padding: 16px;
}

.script-sheet-view.active {
  display: block;
  animation: fadeInSheet 0.3s ease;
}

@keyframes fadeInSheet {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.sheet-paper {
  background: #fffdf9;
  border: 1.5px solid #fef08a;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: inset 0 0 15px rgba(254, 240, 138, 0.15);
}

.sheet-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 2px solid #fef08a;
  padding-bottom: 10px;
}

.sheet-logo {
  font-weight: 800;
  font-size: 15px;
  color: #854d0e;
}

.sheet-meta {
  font-size: 12px;
  font-weight: 700;
  background: #fef9c3;
  color: #a16207;
  padding: 3px 10px;
  border-radius: 6px;
}

.sheet-topic-title {
  font-size: 15px;
  font-family: var(--font-heading);
  color: #1e293b;
  margin-bottom: 16px;
}

.sheet-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.sheet-task-item {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.task-badge-num {
  background: #eff6ff;
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.task-body {
  flex-grow: 1;
}

.task-instruction {
  font-size: 13px;
  color: #334155;
  line-height: 1.4;
  margin-bottom: 6px;
}

.task-visual-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  margin-top: 6px;
}

.sheet-answer-box {
  background: #f8fafc;
  border: 1.5px dashed var(--primary);
  border-radius: 6px;
  padding: 2px 8px;
}

.sheet-result-number {
  font-weight: 800;
  color: var(--primary);
}

.number-house-preview {
  display: inline-flex;
  flex-direction: column;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.house-roof {
  background: #fde68a;
  text-align: center;
  padding: 3px;
  font-weight: 800;
  color: #854d0e;
}

.house-floor {
  display: flex;
  border-top: 1px solid #cbd5e1;
}

.house-floor span {
  padding: 3px 12px;
  min-width: 28px;
  text-align: center;
}

.house-floor span:first-child {
  border-right: 1px solid #cbd5e1;
  background: #f8fafc;
}

.empty-cell {
  color: var(--primary);
  font-weight: 800;
}

.grid-path-preview, .syllable-train-preview, .two-hand-preview, .shading-preview, .slant-lines-preview, .animal-homes-preview {
  background: #f8fafc;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
  display: inline-block;
}

.syllable-box {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--primary);
  font-weight: 800;
}

.sound-scheme-row {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.sound-cell {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}

.blue-cell { background: #3b82f6; }
.red-cell { background: #ef4444; }

.sheet-bottom-bar {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  border-top: 1px dashed #cbd5e1;
  padding-top: 10px;
}

.scripts-footer-info {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ТАБЛИЦА СРАВНЕНИЯ */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid var(--border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.comparison-table thead th {
  font-size: 16px;
  font-weight: 700;
  background: #fafafa;
}

.col-competitor {
  color: #94a3b8;
  width: 38%;
}

.col-our {
  color: var(--primary);
  background-color: #f5f7ff !important;
  width: 42%;
}

.comparison-table tbody tr td:last-child {
  background-color: #fbfcfe;
}

/* ПЕРЕКЛЮЧАТЕЛЬ ФОРМАТОВ ТАРИФОВ */
.pricing-format-switch {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 45px;
  background: #eef2f6;
  padding: 6px;
  border-radius: 18px;
  max-width: 580px;
}

.format-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.format-btn:hover {
  color: var(--text-main);
}

.format-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

@media (max-width: 600px) {
  .pricing-format-switch {
    flex-direction: column;
  }
}

/* СЕТКА ТАРИФОВ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: center;
}

.pricing-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 40px rgba(67, 97, 238, 0.15);
  transform: scale(1.04);
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 20px;
}

.pricing-plan {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 10px;
}

.price-value {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
}

.old-price {
  font-size: 20px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 8px;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.pricing-perks {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.pricing-perks li {
  margin-bottom: 12px;
  font-size: 15px;
}

/* ОТЗЫВЫ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.review-stars {
  font-size: 16px;
  margin-bottom: 15px;
}

.review-text {
  font-size: 15px;
  color: var(--text-main);
  margin-bottom: 20px;
  font-style: italic;
  flex-grow: 1;
}

.reviewer-info strong {
  display: block;
  font-size: 16px;
}

.reviewer-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ПОДВАЛ */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 70px 0 30px;
  font-size: 14px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-desc {
  margin-top: 15px;
  max-width: 350px;
  line-height: 1.6;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 25px;
  font-size: 13px;
}

/* МОДАЛЬНОЕ ОКНО (<dialog>) */
.modal-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 480px;
  width: 90%;
  margin: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
}

.modal-content {
  padding: 35px;
  position: relative;
  background: #ffffff;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

.modal-header {
  margin-bottom: 25px;
}

.modal-badge {
  background: #ecfdf5;
  color: #059669;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 10px;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 8px;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-legal {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* КНОПКА МОБИЛЬНОГО МЕНЮ (ГАМБУРГЕР) */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: background-color 0.2s;
  z-index: 1001;
}

.mobile-menu-btn:hover {
  background-color: #f1f5f9;
}

.mobile-menu-btn .bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ========================================================
   МЕТОДИКА, ТЕХНИКИ И ЛОГИКА ВЗАИМОДЕЙСТВИЯ С РЕБЕНКОМ
   ======================================================== */
.section-methodology {
  background: #ffffff;
  position: relative;
  padding: 85px 0;
}

.methodology-intro {
  max-width: 820px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ТАЙМЛАЙН 30-МИНУТНОГО УРОКА */
.lesson-flow-wrapper {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  margin-bottom: 60px;
}

.flow-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--primary);
}

.flow-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 35px;
  font-size: 15px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  position: relative;
}

.timeline-step {
  background: #ffffff;
  padding: 24px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  border-top: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
}

.timeline-step:nth-child(2) { border-top-color: var(--secondary); }
.timeline-step:nth-child(3) { border-top-color: #10b981; }
.timeline-step:nth-child(4) { border-top-color: var(--accent); }
.timeline-step:nth-child(5) { border-top-color: #f59e0b; }

.step-time {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  display: inline-block;
}

.timeline-step h4 {
  font-size: 17px;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.timeline-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

/* СЕТКА ТЕХНИК И МЕТОДИК */
.techniques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.technique-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  gap: 20px;
}

.technique-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.technique-icon {
  font-size: 34px;
  background: #f0f4ff;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.technique-content h3 {
  font-size: 19px;
  font-family: var(--font-heading);
  margin-bottom: 8px;
  color: var(--text-main);
}

.technique-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.technique-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* БЛОК РАЗВЕИВАНИЯ СТРАХОВ МАМ */
.fears-resolved-box {
  background: linear-gradient(135deg, #f8faff 0%, #edf2ff 100%);
  border-radius: var(--radius-lg);
  padding: 45px 35px;
  border: 1px solid #dbeafe;
}

.fears-resolved-box h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  margin-bottom: 12px;
  text-align: center;
  color: var(--text-main);
}

.fears-resolved-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 35px;
}

.fears-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.fear-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid #eef2f6;
}

.fear-question {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  color: #b91c1c;
  margin-bottom: 14px;
}

.fear-answer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #1e293b;
  line-height: 1.6;
}

.fear-answer strong {
  color: #059669;
}


/* ========================================================
   ИНТЕРАКТИВНЫЙ МИНИ-ТРЕНАЖЕР
   ======================================================== */
.section-trainer {
  background: radial-gradient(circle at center, rgba(67, 97, 238, 0.05) 0%, transparent 70%);
  padding: 85px 0;
}

.trainer-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.trainer-tabs {
  display: flex;
  background: #f1f5f9;
  padding: 8px;
  gap: 8px;
}

.trainer-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border: none;
  background: transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.trainer-tab:hover {
  color: var(--primary);
}

.trainer-tab.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.trainer-play-area {
  padding: 45px 30px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-view {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.game-view.active {
  display: flex;
}

.mascot-badge {
  background: #fff3e0;
  color: #d97706;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
}

.game-task-desc h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 8px;
}

.game-target-visual {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 25px 0 15px;
}

.target-emoji {
  font-size: 68px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.1));
}

.target-word-slots {
  display: flex;
  gap: 12px;
}

.word-slot {
  width: 65px;
  height: 65px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  background: #f8fafc;
  color: #94a3b8;
  transition: all 0.2s;
}

.word-slot.filled {
  border-style: solid;
  border-color: var(--primary);
  background: #eef2ff;
  color: var(--primary);
  transform: scale(1.05);
}

.game-hint {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.syllables-pool, .math-options-pool {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.btn-syllable, .btn-math-opt {
  min-width: 68px;
  height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.btn-syllable:hover, .btn-math-opt:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(67, 97, 238, 0.15);
}

.btn-syllable.used, .btn-math-opt.used {
  opacity: 0.35;
  pointer-events: none;
  transform: none;
}

/* МАТЕМАТИКА */
.math-visual-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

.math-basket {
  background: #fffbeb;
  border: 2px solid #fde68a;
  padding: 14px 28px;
  border-radius: 20px;
  display: flex;
  gap: 10px;
  font-size: 36px;
}

.math-formula {
  font-size: 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #1e293b;
}

#math-answer-slot {
  display: inline-block;
  min-width: 40px;
  text-align: center;
  border-bottom: 3px solid var(--primary);
  color: var(--primary);
}

/* ЛОГИКА */
.logic-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 25px 0 15px;
  width: 100%;
  max-width: 600px;
}

.logic-item-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.logic-item-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.logic-emoji {
  font-size: 44px;
}

.logic-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

/* ОБРАТНАЯ СВЯЗЬ ИГРЫ */
.game-feedback {
  min-height: 44px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s;
}

.feedback-success {
  color: #059669;
  animation: popSuccess 0.4s ease;
}

.feedback-error {
  color: #dc2626;
}

@keyframes popSuccess {
  0% { transform: scale(0.85); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* ПОДВАЛ ТРЕНАЖЕРА */
.trainer-cta-footer {
  background: #f8faff;
  border-top: 1px solid var(--border);
  padding: 24px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.trainer-cta-text strong {
  display: block;
  font-size: 17px;
  color: var(--text-main);
}

.trainer-cta-text p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========================================================
   ЕДИНАЯ СИСТЕМА АДАПТИВНОСТИ (ПЛАНШЕТЫ И СМАРТФОНЫ)
   ======================================================== */

/* Защита от автозума в iOS Safari и улучшение тач-интерфейса */
input, select, textarea {
  font-size: 16px !important;
}

button, a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 1. ПЛАНШЕТЫ (до 1024px) */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 25px;
  }

  .hero-features-list {
    align-items: center;
  }

  .scripts-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* 2. ПЛАНШЕТЫ В ПОРТРЕТЕ И МОБИЛЬНЫЕ (до 992px) */
@media (max-width: 992px) {
  .mobile-menu-btn {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 20px 16px 25px;
    gap: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-bottom: 2px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav-menu.mobile-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    font-size: 16px;
    padding: 13px 18px;
    width: 100%;
    text-align: left;
    border-radius: 12px;
    background-color: #f8fafc;
    border: 1px solid #f1f5f9;
  }

  .nav-menu a:hover, .nav-menu a:active {
    background-color: #eef2ff;
    color: var(--primary);
  }
}

/* 3. СТАНДАРТНЫЕ СМАРТФОНЫ (до 768px) */
@media (max-width: 768px) {
  .section {
    padding: 45px 0;
  }

  .hero-section {
    padding: 30px 0 50px;
  }

  .hero-title {
    font-size: clamp(24px, 5.5vw, 36px);
    line-height: 1.25;
  }

  .section-title {
    font-size: clamp(22px, 5vw, 30px);
    line-height: 1.25;
  }

  .section-desc {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .hero-cta-group button {
    width: 100%;
    max-width: 100%;
  }

  .hero-interactive-card {
    padding: 18px 14px;
    border-radius: 18px;
  }

  .teacher-header-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .kids-chips-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-mini-perks {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  /* Тренажёр: 3 компактные вкладки в 1 строку вместо длинных вертикальных блоков */
  .trainer-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .trainer-tab {
    flex-direction: column;
    gap: 4px;
    padding: 9px 4px;
    font-size: 12px;
    text-align: center;
    border-radius: 10px;
    min-height: 52px;
    justify-content: center;
  }

  .trainer-tab span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .trainer-play-area {
    padding: 22px 12px;
    min-height: 290px;
  }

  .game-task-desc h3 {
    font-size: 18px;
  }

  .game-target-visual {
    gap: 16px;
    margin: 15px 0 10px;
  }

  .target-emoji {
    font-size: 52px;
  }

  .word-slot {
    width: 52px;
    height: 52px;
    font-size: 22px;
    border-radius: 12px;
  }

  .syllables-pool, .math-options-pool {
    gap: 10px;
    margin-bottom: 16px;
  }

  .btn-syllable, .btn-math-opt {
    min-width: 58px;
    height: 50px;
    font-size: 20px;
    padding: 0 14px;
    border-radius: 12px;
  }

  .math-basket {
    gap: 6px;
    padding: 8px 14px;
  }

  .basket-item, .basket-placeholder {
    font-size: 24px;
  }

  .math-formula {
    font-size: 24px;
  }

  .logic-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 380px;
  }

  .logic-item-card {
    padding: 14px 10px;
    border-radius: 14px;
  }

  .logic-emoji {
    font-size: 36px;
  }

  .logic-label {
    font-size: 14px;
  }

  .trainer-cta-footer {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 16px;
  }

  /* Скрипты: удобная сетка 2х2 для переключения предметов */
  .scripts-showcase-card {
    border-radius: 18px;
  }

  .script-tabs-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 6px;
  }

  .script-tab-btn {
    padding: 10px 8px;
    font-size: 12px;
    border-radius: 8px;
    text-align: center;
  }

  .sheet-paper {
    padding: 16px 12px;
    border-radius: 14px;
  }

  .sheet-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Таблица преимуществ */
  .table-responsive {
    border-radius: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .comparison-table {
    min-width: 580px;
  }

  .comparison-table th, .comparison-table td {
    padding: 12px 14px;
    font-size: 14px;
  }

  /* Методика */
  .lesson-flow-wrapper {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .timeline-step-card {
    padding: 18px 14px;
  }

  .techniques-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .technique-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 16px;
    border-radius: 18px;
  }

  .fears-resolved-box {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .fears-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Тарифы */
  .pricing-format-switch {
    flex-direction: column;
    width: 100%;
    margin-bottom: 25px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-card-featured {
    transform: none;
  }

  .pricing-card {
    padding: 26px 18px;
    border-radius: 18px;
  }

  /* Отзывы */
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .review-card {
    padding: 22px 16px;
    border-radius: 16px;
  }

  /* Подвал */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }

  .footer-desc {
    margin: 12px auto 0;
  }
}

/* 4. МАЛЕНЬКИЕ СМАРТФОНЫ (до 480px, iPhone SE и компактные) */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .header-container {
    gap: 6px;
  }

  .logo-badge {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .logo-text {
    font-size: 17px;
  }

  .header-btn {
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 8px;
  }

  .hero-title {
    font-size: 23px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .badge-pill {
    font-size: 12px;
    padding: 4px 10px;
  }

  .word-slot {
    width: 48px;
    height: 48px;
    font-size: 19px;
  }

  .btn-syllable, .btn-math-opt {
    min-width: 50px;
    height: 46px;
    font-size: 18px;
    padding: 0 10px;
  }

  .modal-dialog {
    width: calc(100% - 20px);
    margin: auto;
    border-radius: 18px;
  }

  .modal-content {
    padding: 24px 14px;
  }

  .modal-header h3 {
    font-size: 19px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}

/* 5. УЛЬТРАКОМПАКТНЫЕ ЭКРАНЫ (до 380px) */
@media (max-width: 380px) {
  .header-btn {
    display: none; /* Скрываем кнопку в шапке, т.к. есть плавающая нижняя панель и CTA в меню */
  }

  .logo-text {
    font-size: 16px;
  }

  .trainer-tab {
    font-size: 11px;
    padding: 7px 2px;
  }

  .word-slot {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}
