@charset "UTF-8";
/* ============================================================
   ARTICLES LIST — articles.css
   Подключается глобально или на странице блога
   ============================================================ */
/* ── ОБЁРТКА СТРАНИЦЫ ──────────────────────────────────────── */
/* Добавь этот класс на обёртку в db:article2.tpl вокруг
   {include file="global:article2.list.tpl"}               */
.atm-articles-page {
  padding: clamp(48px, 6vw, 100px) var(--px) clamp(60px, 8vw, 120px);
}
.atm-articles-page__hero {
  margin-bottom: clamp(40px, 5vw, 80px);
}
.atm-articles-page__title {
  font-family: var(--font-u);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 80px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}
.atm-articles-page__sub {
  font-family: var(--font-m);
  font-size: clamp(14px, 1.1vw, 18px);
  color: rgba(243, 245, 245, 0.55);
}
/* ── СБРОС БАЗОВЫХ СТИЛЕЙ CMS ──────────────────────────────── */
/* Базовые стили articles2 от CMS могут добавлять border/outline/padding.
   Точечно нейтрализуем только проблемные свойства. */
.atm-articles .g-article, .atm-articles .g-article__body, .atm-articles .g-article__image, .atm-articles .g-article__text, .atm-articles .g-article__container, .atm-articles .g-article__name, .atm-articles .g-article__date {
  border: none !important;
  outline: none !important;
  background: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: revert !important;
}
/* ── СПИСОК СТАТЕЙ ─────────────────────────────────────────── */
.atm-articles {
  display: flex;
  flex-direction: column;
}
.atm-articles > * + * {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
/* ── ОДНА КАРТОЧКА ─────────────────────────────────────────── */
.atm-article {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0 clamp(24px, 3vw, 48px);
  padding: clamp(28px, 3.5vw, 56px) 0;
  position: relative;
  transition: background 0.2s;
  /* Если есть фото — три колонки */
}
.atm-article--has-img {
  grid-template-columns: 100px 1fr clamp(220px, 24vw, 360px);
}
/* ── НОМЕР ─────────────────────────────────────────────────── */
.atm-article__num {
  font-family: var(--font-u);
  font-weight: 700;
  font-size: clamp(32px, 3.5vw, 56px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  align-self: start;
  padding-top: 6px;
  transition: color 0.3s;
  user-select: none;
}
.atm-article:hover .atm-article__num {
  color: var(--blue);
}
/* ── ТЕЛО КАРТОЧКИ ─────────────────────────────────────────── */
.atm-article__body {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vw, 16px);
  min-width: 0;
}
/* ── МЕТА ──────────────────────────────────────────────────── */
.atm-article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.atm-article__date {
  font-family: var(--font-m);
  font-size: clamp(12px, 0.85vw, 14px);
  color: rgba(243, 245, 245, 0.4);
  letter-spacing: 0.04em;
}
.atm-article__tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 100px;
  border: 1px solid rgba(63, 115, 211, 0.4);
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.atm-article__tag:hover {
  background: rgba(63, 115, 211, 0.15);
  border-color: var(--blue);
}
/* ── ЗАГОЛОВОК ─────────────────────────────────────────────── */
.atm-article__title {
  font-family: var(--font-u);
  font-weight: 700;
  font-size: clamp(18px, 1.9vw, 30px);
  line-height: 1.25;
  text-transform: none;
  margin: 0;
}
.atm-article__title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  /* Анимированное подчёркивание при ховере */
}
.atm-article__title a::after {
  content: none;
  /* отменяем глобальный ::after у ссылок */
}
.atm-article__title a::before {
  content: none;
}
.atm-article__title a:hover {
  color: rgba(243, 245, 245, 0.75);
}
/* ── АНОНС ─────────────────────────────────────────────────── */
.atm-article__anonce {
  font-family: var(--font-m);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.65;
  color: rgba(243, 245, 245, 0.6);
  max-width: 72ch;
}
.atm-article__anonce p {
  margin: 0;
}
/* ── ФУТЕР КАРТОЧКИ ────────────────────────────────────────── */
.atm-article__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: clamp(6px, 0.8vw, 12px);
}
.atm-article__stats {
  display: flex;
  align-items: center;
  gap: 16px;
}
.atm-article__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-m);
  font-size: 12px;
  color: rgba(243, 245, 245, 0.35);
}
.atm-article__stat svg {
  flex-shrink: 0;
}
.atm-article__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-u);
  font-weight: 500;
  font-size: clamp(12px, 0.85vw, 14px);
  color: var(--blue);
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
  /* Отменяем глобальное подчёркивание */
}
.atm-article__link::before, .atm-article__link::after {
  content: none !important;
}
.atm-article__link:hover {
  gap: 10px;
  color: #6b9ee8;
}
.atm-article__link svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.atm-article__link:hover svg {
  transform: translateX(2px);
}
/* ── ФОТО ──────────────────────────────────────────────────── */
.atm-article__img-wrap {
  display: block;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-dark);
  align-self: stretch;
  min-height: 180px;
}
.atm-article__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s;
  opacity: 0;
}
.atm-article__img.ll-loaded {
  opacity: 1;
}
.atm-article:hover .atm-article__img {
  transform: scale(1.04);
}
/* ── ПАГИНАЦИЯ ─────────────────────────────────────────────── */
/* Перебиваем стили системной пагинации под нашу тему */
.g-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: clamp(40px, 5vw, 80px);
  flex-wrap: wrap;
}
.g-pagination a, .g-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--r-input);
  font-family: var(--font-u);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.g-pagination a {
  background: var(--bg-dark);
  color: rgba(243, 245, 245, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.g-pagination a:hover {
  background: #484848;
  color: var(--text);
}
.g-pagination .g-pagination__current, .g-pagination span {
  background: var(--blue);
  color: var(--text);
  border: 1px solid var(--blue);
}
/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Фото под текстом, на всю правую колонку */
  .atm-article {
    grid-template-columns: 72px 1fr;
  }
  .atm-article--has-img {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
  }
  .atm-article--has-img .atm-article__img-wrap {
    grid-column: 2 / 3;
    min-height: 200px;
    align-self: auto;
  }
  .atm-article__num {
    font-size: clamp(28px, 5vw, 44px);
  }
}
@media (max-width: 640px) {
  /* Карточка без картинки — компактная двухколонная */
  /* Карточка с картинкой — полный рефлоу:
     картинка сверху на 100%, ниже контент без номера */
  /* Цифра — прячем, она не нужна в карточном виде */
  /* Картинка — первой, на всю ширину */
  /* Тело — на всю ширину под картинкой */
  .atm-article {
    grid-template-columns: 48px 1fr;
    gap: 0 14px;
  }
  .atm-article__num {
    font-size: 20px;
    padding-top: 3px;
  }
  .atm-article--has-img {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .atm-article--has-img .atm-article__num {
    display: none;
  }
  .atm-article--has-img .atm-article__img-wrap {
    order: -1;
    width: 100%;
    aspect-ratio: 1.5;
    min-height: unset;
    border-radius: var(--r-card);
    margin-bottom: clamp(14px, 4vw, 20px);
  }
  .atm-article--has-img .atm-article__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .atm-article--has-img .atm-article__body {
    width: 100%;
  }
  .atm-article__title {
    font-size: clamp(16px, 5vw, 22px);
  }
  .atm-article__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
/* ============================================================
   ARTICLE VIEW PAGE — стили страницы статьи
   ============================================================ */
/* ── ОБЁРТКА СТРАНИЦЫ СТАТЬИ ───────────────────────────────── */
.atm-post {
  max-width: calc(820px + var(--px) * 2);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 80px) var(--px) clamp(60px, 8vw, 120px);
}
/* ── ШАПКА СТАТЬИ ─────────────────────────────────────────── */
.atm-post__header {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(24px, 3vw, 48px);
}
/* ── НАВИГАЦИЯ ПРЕД/СЛЕД ───────────────────────────────────── */
.atm-post__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.atm-post__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-u);
  font-weight: 500;
  font-size: clamp(12px, 0.85vw, 14px);
  color: rgba(243, 245, 245, 0.5);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
  /* Отменяем глобальное подчёркивание */
}
.atm-post__nav-link::before, .atm-post__nav-link::after {
  content: none !important;
}
.atm-post__nav-link:hover {
  color: var(--text);
}
.atm-post__nav-link--prev:hover {
  gap: 12px;
}
.atm-post__nav-link--next:hover {
  gap: 12px;
}
/* ── МЕТА ──────────────────────────────────────────────────── */
.atm-post__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.atm-post__date {
  font-family: var(--font-m);
  font-size: clamp(12px, 0.85vw, 14px);
  color: rgba(243, 245, 245, 0.4);
  letter-spacing: 0.04em;
}
.atm-post__stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-m);
  font-size: 12px;
  color: rgba(243, 245, 245, 0.35);
}
.atm-post__stat svg {
  flex-shrink: 0;
}
/* ── HERO-КАРТИНКА ─────────────────────────────────────────── */
.atm-post__cover {
  width: 100%;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--bg-dark);
  aspect-ratio: 1.7777777778;
  margin-bottom: clamp(32px, 4vw, 64px);
}
.atm-post__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s;
}
.atm-post__cover-img.ll-loaded {
  opacity: 1;
}
/* ── ТЕЛО СТАТЬИ ───────────────────────────────────────────── */
.atm-post__body {
  font-family: var(--font-m);
  font-weight: 400;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.85;
  color: rgba(243, 245, 245, 0.82);
  letter-spacing: 0.01em;
  /* ── Заголовки внутри статьи ─────────────── */
  /* ── Параграфы ───────────────────────────── */
  /* ── Ссылки ──────────────────────────────── */
  /* ── Обычный список ──────────────────────── */
  /* ── Нумерованный список ─────────────────── */
  /* ── Картинки ────────────────────────────── */
  /* Картинка с подписью */
  /* ── Цитата ──────────────────────────────── */
  /* ── Горизонтальная линия ────────────────── */
  /* ── Код ─────────────────────────────────── */
  /* ── Таблица ─────────────────────────────── */
}
.atm-post__body p {
  line-height: 1.7;
}
.atm-post__body h1, .atm-post__body h2, .atm-post__body h3, .atm-post__body h4, .atm-post__body h5, .atm-post__body h6 {
  font-family: var(--font-u);
  font-weight: 700;
  text-transform: none;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: 0;
  margin-top: clamp(36px, 4.5vw, 64px);
  margin-bottom: clamp(14px, 1.8vw, 22px);
}
.atm-post__body h1:first-child, .atm-post__body h2:first-child, .atm-post__body h3:first-child, .atm-post__body h4:first-child, .atm-post__body h5:first-child, .atm-post__body h6:first-child {
  margin-top: 0;
}
.atm-post__body h2 {
  font-size: clamp(22px, 2.2vw, 36px);
}
.atm-post__body h3 {
  font-size: clamp(18px, 1.7vw, 28px);
}
.atm-post__body h4 {
  font-size: clamp(16px, 1.4vw, 23px);
}
.atm-post__body h5 {
  font-size: clamp(15px, 1.2vw, 19px);
}
.atm-post__body h6 {
  font-size: clamp(14px, 1vw, 16px);
  color: rgba(243, 245, 245, 0.55);
}
.atm-post__body p {
  margin-bottom: clamp(18px, 2vw, 28px);
}
.atm-post__body p:last-child {
  margin-bottom: 0;
}
.atm-post__body a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(63, 115, 211, 0.35);
  transition: color 0.2s, border-color 0.2s;
  /* Отменяем глобальный псевдо-элемент */
}
.atm-post__body a::before, .atm-post__body a::after {
  content: none !important;
}
.atm-post__body a:hover {
  color: #6b9ee8;
  border-color: #6b9ee8;
}
.atm-post__body ul {
  list-style: none;
  padding: 0;
  margin: clamp(14px, 1.8vw, 24px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 12px);
  /* Вложенный список */
}
.atm-post__body ul li {
  position: relative;
  padding-left: 24px;
  color: rgba(243, 245, 245, 0.85);
  /* Синяя точка */
}
.atm-post__body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.atm-post__body ul ul {
  margin: clamp(6px, 0.8vw, 10px) 0 0 0;
}
.atm-post__body ul ul li::before {
  width: 5px;
  height: 5px;
  background: transparent;
  border: 1.5px solid var(--blue);
}
.atm-post__body ol {
  list-style: none;
  padding: 0;
  margin: clamp(14px, 1.8vw, 24px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 12px);
  counter-reset: atm-ol;
}
.atm-post__body ol li {
  position: relative;
  padding-left: 36px;
  color: rgba(243, 245, 245, 0.85);
  counter-increment: atm-ol;
}
.atm-post__body ol li::before {
  content: counter(atm-ol);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(63, 115, 211, 0.15);
  border: 1px solid rgba(63, 115, 211, 0.4);
  font-family: var(--font-u);
  font-weight: 700;
  font-size: 11px;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.atm-post__body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--r-card);
  margin: clamp(24px, 3vw, 48px) auto;
}
.atm-post__body figure {
  margin: clamp(24px, 3vw, 48px) 0;
}
.atm-post__body figure img {
  margin: 0;
}
.atm-post__body figure figcaption {
  margin-top: 10px;
  font-family: var(--font-m);
  font-size: 13px;
  color: rgba(243, 245, 245, 0.4);
  text-align: center;
  font-style: italic;
}
.atm-post__body blockquote {
  position: relative;
  margin: clamp(24px, 3vw, 48px) 0;
  padding: clamp(20px, 2.5vw, 36px) clamp(20px, 2.5vw, 36px) clamp(20px, 2.5vw, 36px) clamp(28px, 3.5vw, 52px);
  background: var(--bg-dark);
  border-radius: var(--r-card);
  border-left: 3px solid var(--blue);
  /* Кавычка-декор */
}
.atm-post__body blockquote::before {
  content: "“";
  position: absolute;
  top: clamp(10px, 1.5vw, 20px);
  left: clamp(14px, 1.8vw, 24px);
  font-family: Georgia, serif;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1;
  color: var(--blue);
  opacity: 0.4;
  pointer-events: none;
}
.atm-post__body blockquote p {
  font-size: clamp(15px, 1.2vw, 20px);
  font-style: italic;
  color: rgba(243, 245, 245, 0.85);
  margin-bottom: 0;
  line-height: 1.6;
}
.atm-post__body blockquote cite, .atm-post__body blockquote footer {
  display: block;
  margin-top: 12px;
  font-family: var(--font-u);
  font-size: 13px;
  font-style: normal;
  color: rgba(243, 245, 245, 0.4);
}
.atm-post__body blockquote cite::before, .atm-post__body blockquote footer::before {
  content: "— ";
}
.atm-post__body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: clamp(32px, 4vw, 56px) 0;
}
.atm-post__body code {
  font-family: "Courier New", monospace;
  font-size: 0.875em;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  padding: 2px 7px;
  color: #a8d8ff;
}
.atm-post__body pre {
  background: var(--bg-dark);
  border-radius: var(--r-card);
  padding: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  margin: clamp(20px, 2.5vw, 36px) 0;
}
.atm-post__body pre code {
  background: none;
  padding: 0;
  border-radius: 0;
}
.atm-post__body table {
  width: 100%;
  border-collapse: collapse;
  margin: clamp(20px, 2.5vw, 36px) 0;
  font-size: clamp(13px, 0.95vw, 16px);
}
.atm-post__body th {
  background: var(--bg-dark);
  font-family: var(--font-u);
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}
.atm-post__body td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(243, 245, 245, 0.8);
  vertical-align: top;
}
.atm-post__body tr:last-child td {
  border-bottom: none;
}
.atm-post__body tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
/* ── ТЕГИ СТАТЬИ ───────────────────────────────────────────── */
.atm-post__tags {
  margin-top: clamp(32px, 4vw, 56px);
  padding-top: clamp(20px, 2.5vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  /* Перебиваем системные стили тегов под тёмную тему */
}
.atm-post__tags .g-tags__item {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 100px;
  border: 1px solid rgba(63, 115, 211, 0.35);
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  margin: 4px;
  transition: background 0.2s, border-color 0.2s;
}
.atm-post__tags .g-tags__item::before, .atm-post__tags .g-tags__item::after {
  content: none !important;
}
.atm-post__tags .g-tags__item:hover {
  background: rgba(63, 115, 211, 0.15);
  border-color: var(--blue);
}
/* ── РЕКОМЕНДОВАННЫЕ ───────────────────────────────────────── */
.atm-post__recommended {
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(24px, 3vw, 40px);
  background: var(--bg-dark);
  border-radius: var(--r-card);
}
.atm-post__recommended-title {
  font-family: var(--font-u);
  font-weight: 700;
  font-size: clamp(16px, 1.35vw, 22px);
  color: var(--text);
  text-transform: none;
  margin: 0 0 clamp(16px, 2vw, 24px);
}
.atm-post__recommended-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.atm-post__recommended-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.atm-post__recommended-item .atm-post__date {
  flex-shrink: 0;
}
.atm-post__recommended-link {
  font-family: var(--font-m);
  font-size: clamp(13px, 1vw, 16px);
  color: rgba(243, 245, 245, 0.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.2s, border-color 0.2s;
}
.atm-post__recommended-link::before, .atm-post__recommended-link::after {
  content: none !important;
}
.atm-post__recommended-link:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.4);
}
/* ── КОММЕНТАРИИ ───────────────────────────────────────────── */
.atm-post__comments {
  max-width: calc(820px + var(--px) * 2);
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) var(--px) clamp(60px, 8vw, 120px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.atm-post__comments-title {
  font-family: var(--font-u);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 32px);
  color: var(--text);
  text-transform: none;
  margin-bottom: clamp(24px, 3vw, 40px);
}
/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .atm-post {
    padding-top: clamp(28px, 5vw, 48px);
  }
  .atm-post__cover {
    aspect-ratio: 1.5;
    /* border-radius уже задан на десктопе */
  }
  .atm-post__body {
    font-size: 17px;
    line-height: 1.8;
  }
  .atm-post__body blockquote {
    padding-left: 20px;
  }
  .atm-post__body blockquote::before {
    display: none;
  }
  .atm-post__body ol li {
    padding-left: 32px;
  }
  .atm-post__body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
