/* ===== ТЁМНО-СИНИЙ СТИЛЬ С КРАСНОЙ РАМОЙ ДЛЯ УПРАЖНЕНИЙ ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.body-kap {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #ffffff;
  color: #2d3748; /* тёмно-серый текст */
  line-height: 1.65;
  padding: 28px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

/* Главный заголовок — тёмно-синий */
.main-title {
  font-size: clamp(3rem, 8.5vw, 6.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 1.0;
  color: #1a365d; /* тёмно-синий */
  margin: 1.6rem 0 1.8rem;
  position: relative;
  text-align: left;
}

.main-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70px;
  height: 3px;
  background: #1a365d;
}

/* Подзаголовок */
.subtitle {
  font-size: clamp(1.3rem, 4.8vw, 2rem);
  font-weight: 700;
  color: #2c5282; /* синий */
  margin: 1.3rem 0 1.6rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-align: left;
  line-height: 1.3;
}

/* Автор */
.author {
  font-size: 0.95rem;
  font-style: italic;
  color: #4a5568;
  text-align: right;
  margin-top: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Заголовки разделов — тёмно-синие */
.tip-title {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 800;
  color: #1a365d;
  margin: 2.2rem 0 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  text-align: left;
  position: relative;
}

.tip-title::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 45px;
  height: 2px;
  background: #1a365d;
}

/* Основной текст — тёмно-серый */
.article-body {
  font-size: clamp(1rem, 3.2vw, 1.25rem);
  color: #2d3748;
  margin-bottom: 2rem;
  text-align: left;
  line-height: 1.7;
  letter-spacing: 0.3px;
}

.article-body p {
  margin-bottom: 1.2rem;
font-size: 20px;
}

.article-body strong {
  color: #1a365d;
  font-weight: 700;
}

/* Описание упражнений — КРАСНАЯ РАМА */
.exercise-description {
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  line-height: 1.7;
  margin: 1.8rem 0;
  padding: 1.5rem;
  border: 2px solid #e53e3e; /* ярко-красная рама */
  background: rgba(229, 62, 62, 0.03);
  color: #2d3748;
  text-align: left;
  border-radius: 6px;
}

/* Цитаты */
.quote {
  font-size: clamp(1.1rem, 3.6vw, 1.4rem);
  line-height: 1.72;
  margin: 1.7rem 0;
  padding: 1.5rem 1.8rem;
  border-left: 3px solid #1a365d;
  background: rgba(26, 54, 93, 0.03);
  color: #1a202c;
  text-align: left;
}

.quote-author {
  display: block;
  text-align: right;
  font-weight: 700;
  color: #2c5282;
  margin-top: 1rem;
  font-style: normal;
}

/* Таблицы */
.program-table-container {
  margin: 1.8rem 0;
  overflow-x: auto;
}

.program-table {
  width: 100%;
  border-collapse: collapse;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.program-table th,
.program-table td {
  padding: 11px 15px;
  font-size: clamp(0.9rem, 2.9vw, 1.1rem);
  color: #1a202c;
  border: 1px solid #edf2f7;
}

.program-table th {
  background: #ebf4ff;
  font-weight: 700;
  color: #1a365d;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

/* Подзаголовки */
.subheading {
  font-size: clamp(1.25rem, 4.3vw, 1.7rem);
  font-weight: 700;
  color: #2c5282;
  margin: 1.6rem 0 0.9rem;
  text-align: left;
}

/* Адаптивность */
@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  .main-title {
    font-size: clamp(1.8rem, 11vw, 2.5rem);
    letter-spacing: -1.5px;
  }

  .exercise-description {
    padding: 1.2rem;
    font-size: clamp(1rem, 3.8vw, 1.25rem);
  }
}