/* Страница статьи блога: хлебные крошки, оглавление, источники, CTA, похожие статьи, кнопка наверх */

.article__breadcrumbs {
  margin-bottom: 2.4rem;
  font-size: 1.4rem;
  line-height: 2rem;
  color: #6b7a8c;
}

.article__breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article__breadcrumbs li + li::before {
  content: '›';
  margin: 0 0.8rem;
  color: #a3b1c2;
}

.article__breadcrumbs a {
  color: #396ca7;
  text-decoration: none;
}

.article__breadcrumbs a:hover {
  text-decoration: underline;
}

.article__toc {
  margin: 3.2rem 0 0;
  padding: 2rem 2.8rem;
  border: 0.1rem solid #dceaf5;
  border-radius: 1.6rem;
  background: #f7fafc;
  font-size: 1.5rem;
  line-height: 2.2rem;
}

.article__toc-title {
  margin-bottom: 1rem;
  color: #1e2228;
  font-size: 1.8rem;
  font-weight: 600;
}

.article__toc ol {
  margin: 0;
  padding-left: 2.2rem;
  columns: 2;
  column-gap: 3.6rem;
}

.article__toc ol ol {
  columns: 1;
  margin-top: 0.4rem;
  padding-left: 1.8rem;
  font-size: 1.4rem;
  color: #6b7a8c;
}

.article__toc li {
  margin: 0.4rem 0;
  break-inside: avoid;
}

.article__toc a {
  color: #396ca7;
  text-decoration: none;
}

.article__toc a:hover {
  text-decoration: underline;
}

.article__text h2[id],
.article__text h3[id] {
  scroll-margin-top: 2rem;
}

.article__sources {
  margin: 3rem 0 0;
  padding: 1.4rem 2.2rem;
  border: 0.1rem solid #dceaf5;
  border-radius: 1.4rem;
  background: #fafcfe;
  font-size: 1.4rem;
  line-height: 2.1rem;
}

.article__sources summary {
  cursor: pointer;
  color: #396ca7;
  font-size: 1.6rem;
  font-weight: 600;
}

.article__sources-body {
  margin-top: 1.2rem;
}

.article__sources-body ul,
.article__sources-body ol {
  margin: 0;
  padding-left: 2.2rem;
}

.article__sources-body li {
  margin-bottom: 0.6rem;
}

.article__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.4rem;
  margin: 3.4rem 0 0;
  padding: 2.8rem 3.2rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, #396ca7, #2b5283);
  color: #fff;
}

.article__cta-title {
  margin-bottom: 0.6rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: 2.6rem;
}

.article__cta-note {
  font-size: 1.4rem;
  line-height: 2rem;
  opacity: 0.9;
}

.article__cta-button {
  flex-shrink: 0;
  padding: 1.3rem 2.4rem;
  border-radius: 1.2rem;
  background: #fff;
  color: #2b5283;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.article__cta-button:hover {
  background: #eef3f8;
  color: #2b5283;
  text-decoration: none;
}

.article__related {
  margin: 4rem 0 0;
}

.article__related-title {
  margin-bottom: 1.8rem;
  color: #1e2228;
  font-size: 2.2rem;
  font-weight: 600;
}

.article__related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.article__related-card {
  display: block;
  overflow: hidden;
  border: 0.1rem solid #dceaf5;
  border-radius: 1.6rem;
  background: #fff;
  color: #1e2228;
  text-decoration: none;
}

.article__related-card:hover {
  box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.06);
  color: #1e2228;
  text-decoration: none;
}

.article__related-pic {
  height: 11rem;
  background: #dbe8f5 center center / cover no-repeat;
}

.article__related-name {
  padding: 1.4rem 1.6rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2.1rem;
}

.article__related-date {
  padding: 0.6rem 1.6rem 1.4rem;
  color: #8b97a6;
  font-size: 1.3rem;
}

.to-top {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 10;
  width: 4.6rem;
  height: 4.6rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #396ca7;
  box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.15);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.to-top::before {
  content: '';
  position: absolute;
  top: 55%;
  left: 50%;
  width: 1.2rem;
  height: 1.2rem;
  border-top: 0.25rem solid #fff;
  border-left: 0.25rem solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.to-top--visible {
  opacity: 1;
  pointer-events: auto;
}

@media only screen and (max-width: 1050px) {
  .article__toc ol {
    columns: 1;
  }
}

@media only screen and (max-width: 576px) {
  .article__breadcrumbs {
    margin: 1.6rem 0 0;
  }

  .article__toc {
    padding: 1.6rem 1.8rem;
  }

  .article__cta {
    flex-direction: column;
    align-items: stretch;
    padding: 2.2rem 2rem;
    text-align: center;
  }

  .article__related-grid {
    grid-template-columns: 1fr;
  }

  .to-top {
    bottom: 1.6rem;
  }
}

@media print {
  .to-top {
    display: none;
  }
}
