/* ===== Раздел «Полезное»: список статей и статья ===== */

.blog-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(10, 10, 10, .5);
  font-size: 13px;
}

.blog-crumbs a {
  color: inherit;
  text-decoration: none;
}

.blog-crumbs a:hover {
  color: var(--quantum-black);
}

.blog-meta {
  margin: -12px 0 28px;
  color: rgba(10, 10, 10, .5) !important;
  font-size: 14px !important;
}

.text-page .blog-lead {
  margin: 0 0 32px;
  color: rgba(10, 10, 10, .78);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
}

.blog-answer {
  margin: 0 0 32px;
  padding: 22px 26px;
  border-radius: 22px;
  color: var(--neural-white);
  background: var(--quantum-black);
}

.text-page .blog-answer p {
  margin: 0;
  color: rgba(247, 247, 244, .82);
}

.text-page .blog-answer strong {
  color: var(--solar-core);
}

.text-page .blog-answer .blog-answer__label {
  margin-bottom: 8px;
  color: rgba(247, 247, 244, .5);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}

.blog-toc {
  margin: 0 0 12px;
  padding: 20px 24px;
  border: 1px solid rgba(10, 10, 10, .1);
  border-radius: 22px;
}

.text-page .blog-toc__title {
  margin: 0 0 8px;
  color: rgba(10, 10, 10, .5);
  font-size: 13px;
  font-weight: 600;
}

.blog-toc ol {
  margin: 0;
  padding-left: 20px;
}

.text-page .blog-toc li {
  font-size: 15px;
  line-height: 1.8;
}

.text-page .blog-article h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.blog-article h2 {
  scroll-margin-top: 100px;
}

.blog-checklist {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
  counter-reset: checklist;
}

.text-page .blog-checklist li {
  position: relative;
  padding: 14px 18px 14px 52px;
  border-radius: 16px;
  background: rgba(10, 10, 10, .04);
  counter-increment: checklist;
}

.blog-checklist li::before {
  position: absolute;
  top: 14px;
  left: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: var(--quantum-black);
  background: var(--solar-core);
  content: counter(checklist);
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.blog-cases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.text-page__main .blog-case {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(10, 10, 10, .08);
  border-radius: 20px;
  color: var(--quantum-black);
  background: #ffffff;
  text-decoration: none;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.blog-case:hover {
  box-shadow: 0 18px 40px rgba(10, 10, 10, .1);
  transform: translateY(-3px);
}

.blog-case img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-case span {
  padding: 16px 18px 0;
  color: rgba(10, 10, 10, .5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.blog-case strong {
  padding: 6px 18px 0;
  font-size: 18px;
  font-weight: 600;
}

.text-page .blog-case p {
  margin: 4px 0 0;
  padding: 0 18px 18px;
  font-size: 14px;
  line-height: 1.5;
}

.text-page .blog-source {
  margin-top: 36px;
  color: rgba(10, 10, 10, .55);
  font-size: 14px;
}

.text-page code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(10, 10, 10, .06);
  font-size: .92em;
}

.blog-cta {
  margin-top: 48px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 28px;
  background: #e9e9e5;
}

.text-page .blog-cta h2 {
  margin-top: 0;
}

/* Список статей */
.blog-list {
  display: grid;
  gap: 12px;
}

.text-page__main .blog-card {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid rgba(10, 10, 10, .08);
  border-radius: 24px;
  color: var(--quantum-black);
  background: #ffffff;
  text-decoration: none;
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.blog-card:hover {
  box-shadow: 0 18px 40px rgba(10, 10, 10, .1);
  transform: translateY(-3px);
}

.blog-card__tag,
.blog-card__meta {
  color: rgba(10, 10, 10, .5);
  font-size: 12px;
}

.blog-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.text-page .blog-card h2 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 30px);
}

.text-page .blog-card p {
  margin: 0;
}

@media (max-width: 560px) {
  .blog-cases {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-answer,
  .blog-toc {
    padding: 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-case,
  .blog-card {
    transition: none;
  }
}

/* ===== Картинка в статье с подписью ===== */
.blog-figure {
  margin: 28px 0;
}

.blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(10, 10, 10, .08);
  border-radius: 18px;
}

.blog-figure figcaption {
  margin-top: 10px;
  color: rgba(10, 10, 10, .55);
  font-size: 14px;
  line-height: 1.5;
}

/* ===== Бесплатный разбор карточки внутри статьи =====
   Та же жёлтая полоса, что на главной (стили — в styles.css), без её внешних отступов */
.blog-article .audit-band {
  margin: 40px 0;
  padding: 0;
}

.text-page .audit-band h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
}

.text-page .audit-band__text > p:last-child {
  margin-top: 14px;
}

/* Ссылки на текстовых страницах наследуют цвет текста — кнопке возвращаем белый */
.text-page .audit-band__button {
  color: #ffffff;
  text-decoration: none;
}
