/* ============================================================
   Раздел «Статьи» — Онлайн Око
   Подключается только на страницах /articles/*
   ============================================================ */

/* ---------- Общие переменные раздела ---------- */
:root {
  --articles-blue: #235abe;
  --articles-cyan: #12b9e2;
  --articles-text: #1b1d21;
  --articles-bg: #f2f7f9;
  --articles-border: #dfeaf0;
  --articles-shadow: #dfeaf0;
}

/* ============================================================
   Список статей — /articles/index.php
   ============================================================ */

.articles {
  margin-top: 60px;
  margin-bottom: 100px;
}

.articles__title h3 {
  color: var(--articles-text);
  text-align: center;
  font-family: "Circe Rounded";
  font-size: 50px;
  font-style: normal;
  font-weight: 400;
  line-height: 58px;
  margin-bottom: 10px;
}

.articles__subtitle {
  text-align: center;
  color: var(--articles-text);
  font-family: Ubuntu;
  font-size: 18px;
  font-weight: 400;
  line-height: 26px;
  max-width: 760px;
  margin: 0 auto 50px;
}

/* ---------- Карточка статьи ---------- */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 32px;
  border-radius: 25px;

  text-decoration: none;
  color: var(--articles-text);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
  border-bottom: 2px solid transparent;
}
.article-card--1 {
    background: #DCE7FF;
}

.article-card--2 {
    background: #FFF1D0;
}

.article-card--3 {
    background: #D2F3BD;
}
.article-card:hover {
  text-decoration: none;
  color: var(--articles-text);
  box-shadow: 0px 14px 25px 0px var(--articles-shadow);
  border-bottom: 2px solid var(--articles-blue);
  transform: translateY(-3px);
}

.article-card__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Ubuntu;
  font-size: 14px;
  font-weight: 500;
  color: var(--articles-blue);
  margin-bottom: 16px;
}

.article-card__date:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--articles-cyan);
}

.article-card__title {
  font-family: "Circe Rounded";
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  margin-bottom: 16px;
  color: var(--articles-text);
}

.article-card__excerpt {
  font-family: Ubuntu;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--articles-text);
  flex-grow: 1;
  margin-bottom: 24px;
}

.article-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Ubuntu;
  font-size: 16px;
  font-weight: 700;
  color: var(--articles-blue);
}

.article-card__more:after {
  content: "→";
  transition: transform 0.2s ease;
}

.article-card:hover .article-card__more:after {
  transform: translateX(4px);
}

.articles .row > div {
  margin-bottom: 30px;
}

/* ============================================================
   Страница статьи — /articles/*.php
   ============================================================ */

.article-page {
  margin-top: 60px;
  margin-bottom: 100px;
}

.article-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Ubuntu;
  font-size: 16px;
  font-weight: 700;
  color: var(--articles-blue);
  text-decoration: none;
  margin-bottom: 30px;
}

.article-page__back:hover {
  text-decoration: none;
  color: var(--articles-cyan);
}

.article-page__date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Ubuntu;
  font-size: 15px;
  font-weight: 500;
  color: var(--articles-blue);
  margin-bottom: 16px;
}

.article-page__date:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--articles-cyan);
}

.article-page__title {
  font-family: "Circe Rounded";
  font-size: 42px;
  font-weight: 400;
  line-height: 52px;
  color: var(--articles-text);
  margin-bottom: 30px;
}

.article-page__lead {
  font-family: Ubuntu;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  color: var(--articles-text);
  margin-bottom: 30px;
}

.article-page__content {
  font-family: Ubuntu;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--articles-text);
}

.article-page__content h2 {
  font-family: "Circe Rounded";
  font-size: 30px;
  font-weight: 400;
  line-height: 40px;
  color: var(--articles-text);
  margin: 40px 0 20px;
}

.article-page__content h3 {
  font-family: Ubuntu;
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
  color: var(--articles-text);
  margin: 30px 0 16px;
}

.article-page__content p {
  margin-bottom: 18px;
}

.article-page__content ul {
  margin-bottom: 20px;
  padding-left: 22px;
}

.article-page__content li {
  margin-bottom: 10px;
}

.article-page__content blockquote {
  border-left: 4px solid var(--articles-cyan);
  background: var(--articles-bg);
  border-radius: 15px;
  padding: 24px 28px;
  margin: 30px 0;
  font-size: 18px;
  line-height: 28px;
}

/* ---------- Таблица-врезка ---------- */
.article-page__figure {
  background: var(--articles-bg);
  border-radius: 25px;
  padding: 24px;
  margin: 30px 0;
  font-family: Ubuntu;
  font-size: 15px;
  line-height: 22px;
  color: var(--articles-text);
}

.article-page__figure table {
  width: 100%;
  border-collapse: collapse;
}

.article-page__figure th,
.article-page__figure td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--articles-border);
  vertical-align: top;
}

.article-page__figure th {
  font-weight: 700;
  background: #e7eff3;
}

.article-page__figure tr:last-child td {
  border-bottom: none;
}

/* ---------- Навигация внизу статьи ---------- */
.article-page__nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 768px) {
  .articles {
    margin-top: 30px;
    margin-bottom: 60px;
  }

  .articles__title h3 {
    font-size: 25px;
    line-height: 32px;
  }

  .article-card {
    padding: 24px;
  }

  .article-card__title {
    font-size: 20px;
    line-height: 27px;
  }

  .article-page__title {
    font-size: 26px;
    line-height: 34px;
  }

  .article-page__lead {
    font-size: 17px;
    line-height: 26px;
  }

  .article-page__content {
    font-size: 16px;
    line-height: 25px;
  }

  .article-page__content h2 {
    font-size: 22px;
    line-height: 30px;
  }

  .article-page__content h3 {
    font-size: 18px;
    line-height: 26px;
  }

  .article-page__figure {
    padding: 16px;
    overflow-x: auto;
  }
}
ы