/* ===== ВЕСЁЛЫЙ ВИБРАНТНЫЙ СТИЛЬ — ЯРКИЙ, СОВРЕМЕННЫЙ, ЖИВОЙ ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.body-f {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #fdfcff 0%, #f6f9ff 100%);
  color: #1e1e2c;
  line-height: 1.65;
  padding: 28px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

/* Главный заголовок — ЖИВОЙ ГРАДИЕНТ + АНИМАЦИЯ */
.main-title {
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -2px;
  line-height: 1.02;
  background: linear-gradient(75deg, #8A2BE2, #4A90E2, #00C9FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 1.8rem 0 2rem;
  position: relative;
  text-align: left;
  transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

.main-title:hover {
  transform: scale(1.03);
  letter-spacing: -1px;
}

.main-title::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 0;
  height: 5px;
  background: linear-gradient(to right, #8A2BE2, #00C9FF);
  border-radius: 3px;
  transition: width 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.main-title:hover::after {
  width: 140px;
}

/* Подзаголовок — с иконкой и мягким фоном */
.subtitle {
  font-size: clamp(1.4rem, 5.5vw, 2.2rem);
  font-weight: 800;
  color: #4A90E2;
  margin: 1.6rem 0 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  text-align: left;
  padding: 1rem 1.4rem;
  background: rgba(138, 43, 226, 0.06);
  border-radius: 12px;
  display: inline-block;
  border-left: 4px solid #8A2BE2;
  animation: bounceIn 0.8s ease;
}

/* Автор — с эмодзи */
.author {
  font-size: 1.05rem;
  font-style: italic;
  color: #8A2BE2;
  text-align: right;
  margin-top: 2.4rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}

.author::before {
  content: "✍️";
  margin-right: 10px;
  animation: pulse 2s infinite;
}

/* Заголовки разделов — с градиентным подчёркиванием */
.tip-title {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 800;
  color: #cf450e;
  margin: 2.6rem 0 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  text-align: left;
  position: relative;
  display: inline-block;
}

.tip-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50%;
  height: 4px;
  background: linear-gradient(to right, #8A2BE2, #00C9FF);
  border-radius: 2px;
}

/* Основной текст */
.article-body {
  font-size: clamp(1.05rem, 3.2vw, 1.3rem);
  color: #2d2d44;
  margin-bottom: 2.2rem;
  text-align: left;
  line-height: 1.72;
  letter-spacing: 0.3px;
  padding: 0 6px;
}

.article-body p {
  margin-bottom: 1.4rem;
  transition: color 0.25s ease;
}

.article-body p:hover {
  color: #4A90E2;
}

.article-body strong {
  color: #8A2BE2;
  font-weight: 700;
  position: relative;
}

.article-body strong::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(138, 43, 226, 0.15);
  z-index: -1;
  border-radius: 2px;
}

/* Цитаты — с декоративной кавычкой и тенью */
.quote {
  font-size: clamp(1.15rem, 3.8vw, 1.5rem);
  line-height: 1.78;
  margin: 2rem 0;
  padding: 1.8rem 2.2rem;
  background: white;
  color: #1e1e2c;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(138, 43, 226, 0.12);
  text-align: left;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(138, 43, 226, 0.1);
}

.quote::before {
  content: """;
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 4rem;
  color: #00C9FF;
  opacity: 0.25;
  font-family: Georgia, serif;
  line-height: 1;
}

.quote:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(138, 43, 226, 0.2);
}

.quote-author {
  display: block;
  text-align: right;
  font-weight: 800;
  color: #8A2BE2;
  margin-top: 1.4rem;
  font-style: normal;
  font-size: 1.1rem;
}

/* Яркие цитаты — с неоновым эффектом */
.final-quote,
.highlight-box {
  font-size: clamp(1.5rem, 6vw, 2.3rem);
  font-weight: 800;
  color: #8A2BE2;
  text-align: center;
  margin: 2.4rem 0;
  padding: 1.8rem;
  background: white;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  line-height: 1.4;
  letter-spacing: 0.6px;
  box-shadow: 0 8px 26px rgba(138, 43, 226, 0.18);
  border: 1px solid rgba(138, 43, 226, 0.15);
}

.final-quote::before,
.highlight-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(138,43,226,0.1) 0%, transparent 70%);
  z-index: 1;
  animation: rotate 8s linear infinite;
}

.final-quote span,
.highlight-box span {
  position: relative;
  z-index: 2;
}

/* Таблицы — с плавающими ячейками */
.program-table-container {
  margin: 2.2rem 0;
  overflow-x: auto;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.1);
}

.program-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 14px;
  overflow: hidden;
}

.program-table th,
.program-table td {
  padding: 14px 18px;
  font-size: clamp(1rem, 3.5vw, 1.2rem);
  color: #1e1e2c;
  border: 1px solid #eef2ff;
}

.program-table th {
  background: linear-gradient(to bottom, #f0f4ff, #e6eeff);
  font-weight: 800;
  color: #8A2BE2;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.program-table tr:nth-child(even) {
  background: #fafcff;
}

.program-table tr:hover {
  background: #f0f6ff !important;
  transition: background 0.2s ease;
}

/* Списки */
.exercise-options {
  margin: 1.8rem 0;
  padding-left: 1.8rem;
  color: #2d2d44;
  line-height: 1.7;
}

.exercise-options li {
  margin-bottom: 0.8rem;
  position: relative;
}

.exercise-options li::before {
  content: "•";
  color: #8A2BE2;
  font-size: 1.4rem;
  position: absolute;
  left: -1.4rem;
  top: -0.2rem;
}

/* Анимации */
@keyframes bounceIn {
  0% { opacity: 0; transform: translateY(20px); }
  60% { opacity: 1; transform: translateY(-8px); }
  80% { transform: translateY(4px); }
  100% { transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  .main-title {
    font-size: clamp(2.4rem, 12vw, 5.2rem);
    letter-spacing: -1.2px;
  }

  .quote {
    padding: 1.5rem 1.8rem;
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  }

  .final-quote,
  .highlight-box {
    font-size: clamp(1.3rem, 6.5vw, 2rem);
    padding: 1.5rem;
  }

  .program-table th,
  .program-table td {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
}