.article-page {}

.article-page .container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

.article-page__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 64px;
}

@media (min-width: 992px) {
  .article-page__layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 44px;
    align-items: start;
  }
}

.article-page__figure {
  margin: 24px 0;
}

.article-page__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-page__wysiwyg>* {
  /* типографика берётся из typography-content.css */
}

.article-page__sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.article-page__widget {
  background: var(--berloga-blue-lightest);
  border: 1px solid var(--berloga-blue-10);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 16px;
}

/* Виджет: категории — новая flex-верстка как в footer services */
.article-page__widget-cats {
  width: 100%;
}

.article-page__cat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-page__cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  text-decoration: none;
}

.article-page__cat-text {
  color: var(--berloga-text);
  font-family: var(--regular-text-font-family);
  font-size: var(--regular-text-font-size);
  line-height: var(--regular-text-line-height);
  font-weight: var(--regular-text-font-weight);
}

.article-page__cat-icon {
  width: 7px;
  height: 12px;
  background: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="7" height="12" viewBox="0 0 7 12" fill="none"><path d="M1 1L6 6L1 11" stroke="%231A1A1A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="7" height="12" viewBox="0 0 7 12" fill="none"><path d="M1 1L6 6L1 11" stroke="%231A1A1A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
  color: var(--berloga-blue);
}

.article-page__cat-item:hover .article-page__cat-text {
  color: var(--berloga-magenta);
  text-decoration: underline;
}

.article-page__cat-item:hover .article-page__cat-icon {
  color: var(--berloga-magenta);
}

/* DUPLICATE (old ul/li styles) — оставлено для ревью, можно удалить после проверки */
/*
.article-page__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.article-page__list .cat-item { margin: 0; }
.article-page__list .cat-item > a {
  color: var(--berloga-dark-blue);
  text-decoration: none;
  position: relative;
  padding-left: 18px;
}
.article-page__list .cat-item > a:hover {
  color: var(--berloga-magenta);
  text-decoration: underline;
}
.article-page__list .cat-item > a:before {
  content: "\00BB";
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1;
  color: var(--berloga-dark-blue);
  font-size: 16px;
}
*/

.article-page__widget-title {
  margin: 0 0 12px 0;
  font-family: var(--h3-font-family);
  font-size: var(--h3-font-size);
  line-height: var(--h3-line-height);
  font-weight: var(--h3-font-weight);
  color: var(--berloga-dark-blue);
  text-align: center;
}

.article-page__widget-illustration {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.article-page__widget-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.article-page__widget-title {
  margin: 0 0 12px 0;
  font-family: var(--h3-font-family);
  font-size: var(--h3-font-size);
  line-height: var(--h3-line-height);
  font-weight: var(--h3-font-weight);
  color: var(--berloga-dark-blue);
}

.article-page__posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-page__post {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
}

.article-page__post-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}

.article-page__post-title {
  color: var(--berloga-text);
}

/* Дополнительные отступы по референсу Roxvet */
.article-page__content .article-page__wysiwyg>h2,
.article-page__content .article-page__wysiwyg>h3,
.article-page__content .article-page__wysiwyg>p,
.article-page__content .article-page__wysiwyg>ul,
.article-page__content .article-page__wysiwyg>ol,
.article-page__content .article-page__wysiwyg>blockquote {
  text-align: left;
  /* типографика и маргины уже задаются глобально, при необходимости точечно усиливаем ниже */
}

/* Списки в статьях: шевроны слева + меньший шрифт для li */
.article-page__content .article-page__wysiwyg ul {
  list-style: none;
  padding-left: 24px;
}

.article-page__content .article-page__wysiwyg li {
  position: relative;
  font-size: calc(var(--regular-text-font-size) - 2px);
}

.article-page__content .article-page__wysiwyg li::before {
  content: '';
  position: absolute;
  left: -18px;
  /* top: 0.3em; */
  width: 7px;
  height: 12px;
  background: currentColor;
  color: var(--berloga-blue);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="7" height="12" viewBox="0 0 7 12" fill="none"><path d="M1 1L6 6L1 11" stroke="%231A1A1A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="7" height="12" viewBox="0 0 7 12" fill="none"><path d="M1 1L6 6L1 11" stroke="%231A1A1A" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') no-repeat center / contain;
}

@media (min-width: 1200px) {
  .article-page .container {
    padding: 0 24px;
  }
}