/* ================================================= */
/* =============== ARTICLE PAGE ==================== */
/* ================================================= */

/* Общий контейнер статьи */
.article-section {
  padding: 60px 0 40px;
}

.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ================================================= */
/* =============== TITLE BLOCK ===================== */
/* ================================================= */

.article-title-wrapper {
  display: flex;
  align-items: stretch;   /* ключевое: растягиваем элементы по высоте строки */
  gap: 18px;
  margin-bottom: 40px;
}

.article-accent {
  width: 6px;
  background: #f3619c;
  border-radius: 6px;
  flex-shrink: 0;

  /* ключевое: высота берётся от flex-контейнера (то есть от h1) */
  height: auto;
}

.article-title-wrapper h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.25;
  margin: 0;
  color: #111;
}

/* ================================================= */
/* =============== ARTICLE CONTENT ================= */
/* ================================================= */

.article-content {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.article-content p {
  margin-bottom: 15px;
}

.article-content h2 {
  font-size: 26px;
  margin-top: 50px;
  margin-bottom: 16px;
  font-weight: 600;
  color: #111;
}

.article-content h3 {
  font-size: 22px;
  margin-top: 35px;
  margin-bottom: 14px;
  font-weight: 600;
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
  margin-bottom: 24px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content blockquote {
  border-left: 4px solid #f3619c;
  padding-left: 16px;
  margin: 30px 0;
  font-style: italic;
  opacity: 0.9;
}

/* ================================================= */
/* =============== ARTICLE CTA BUTTON ============== */
/* ================================================= */

.article-more {
  margin-top: 60px;
  text-align: center;
}

.article-cta {
  display: inline-block;
  background: #f3619c;
  color: #ffffff;
  padding: 18px 42px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.article-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(243, 97, 156, 0.35);
}

.article-cta:active {
  transform: translateY(0);
  box-shadow: 0 6px 15px rgba(243, 97, 156, 0.25);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .article-cta {
    padding: 16px 32px;
    font-size: 15px;
  }
}

/* ================================================= */
/* =============== ARTICLE META ==================== */
/* ================================================= */

.article-meta-block {
  margin-top: 10px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.article-author {
  font-size: 15px;
  margin-bottom: 6px;
  color: #333;
}

.article-author-link {
  font-weight: 600;
  color: #111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-author-link:hover {
  color: #f3619c;
}

.article-date {
  font-size: 14px;
  color: #8a8a8a;
} 

/* ================================================= */
/* =============== MOBILE ========================== */
/* ================================================= */

@media (max-width: 768px) {

  .article-title-wrapper {
    gap: 14px;
    margin-bottom: 30px;
  }

  .article-accent {
    width: 4px;
  }

  .article-title-wrapper h1 {
    font-size: 26px;
  }

  .article-content {
    font-size: 16px;
    line-height: 1.7;
  }

  .article-content h2 {
    font-size: 22px;
    margin-top: 40px;
  }

  .related-title {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .article-card {
    min-width: 240px;
    padding: 18px;
  }

  }

  /* ================================================= */
/* =============== MOBILE FONT FIX ================= */
/* ================================================= */
@media (max-width: 768px) {

  /* Заголовок статьи — делаем плотнее, как на десктопе */
  .article-title-wrapper h1 {
    font-weight: 800;
    -webkit-text-stroke: 0.01px transparent; /* микрохак против "тонкости" на мобилке */
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
  }

  /* Подзаголовки */
  .article-content h3 {
    font-size: 18px;   /* опционально */
    font-weight: 700;
  }

  .article-content h2 {
  font-size: 18px;
  font-weight: 700;
}

  /* Кнопка CTA — чтобы тоже была уверенной */
  .article-cta {
    font-weight: 800;
  }

  /* Автор */
  .article-author-link {
    font-weight: 700;
  }

}
