/* Статья блога — дополняет style.css, course.css и blog.css */
.art-hero { padding: 2.4rem 0 1.6rem; }
.art-hero .crumbs { margin-bottom: 2.4rem; }
.art-hero__text { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 2rem; align-self: center; }
.art-hero__text h1 { font-size: 4.4rem; line-height: 1.08; letter-spacing: -0.03em; }
.art-hero__text .chero__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.art-hero__img { grid-column: 8 / -1; border-radius: var(--r); overflow: hidden; background: var(--tint-sand); aspect-ratio: 4 / 3; }
.art-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.art__side { grid-column: 1 / span 3; align-self: start; position: sticky; top: 9rem; display: flex; flex-direction: column; gap: var(--gap); }
.art__toc { padding: 2rem; border-radius: var(--r); background: var(--white); }
.art__toc ol { margin: 1.2rem 0 0; padding: 0; list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: .2rem; }
.art__toc li { counter-increment: toc; }
.art__toc a { display: flex; gap: .8rem; padding: .5rem 0; font-size: 1.15rem; line-height: 1.4; color: var(--ink-2); transition: color .2s; }
.art__toc a::before { content: counter(toc, decimal-leading-zero); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.art__toc a:hover { color: var(--ink); }
.art__cta { display: flex; flex-direction: column; gap: 1rem; padding: 2rem; border-radius: var(--r); background: var(--tint-rose); }
.art__cta b { font-family: var(--f-display); font-weight: 500; font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1.2; }
.art__cta p { font-size: 1.2rem; color: var(--ink-2); }
.art__cta .btn { align-self: flex-start; margin-top: .4rem; }

.art__body { grid-column: 5 / span 7; font-size: 1.5rem; line-height: 1.7; color: var(--ink); }
.art__body > * + * { margin-top: 1.4rem; }
.art__body h2 { margin-top: 4rem; font-family: var(--f-display); font-weight: 500; font-size: 2.8rem; line-height: 1.15; letter-spacing: -0.025em; scroll-margin-top: 9rem; }
.art__body h3 { margin-top: 2.8rem; font-family: var(--f-display); font-weight: 500; font-size: 2rem; line-height: 1.2; letter-spacing: -0.02em; }
.art__body h4 { margin-top: 2.2rem; font-weight: 500; font-size: 1.6rem; }
.art__body h2:first-child { margin-top: 0; }
.art__body p { color: var(--ink-2); }
.art__body strong { color: var(--ink); font-weight: 500; }
.art__body ol, .art__body ul { padding-left: 2.2rem; color: var(--ink-2); }
.art__body li + li { margin-top: .6rem; }
.art__body a { color: var(--copper-dk); text-decoration: underline; text-underline-offset: .3rem; }

.related--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.posts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1279px) {
  .art-hero__text, .art-hero__img { grid-column: 1 / -1; }
  .art-hero__img { margin-top: 2.4rem; aspect-ratio: 16 / 9; }
  .art__side { grid-column: 1 / -1; position: static; }
  .art__toc { display: none; }
  .art__body { grid-column: 1 / -1; margin-top: 2.4rem; }
  .related--3, .posts--3 { grid-template-columns: minmax(0, 1fr); }
  .art__side { order: 2; margin-top: 3.2rem; }
}
@media (max-width: 767px) {
  .art-hero__text h1 { font-size: 3rem; }
  .art__body { font-size: 1.4rem; }
  .art__body h2 { font-size: 2.2rem; margin-top: 3.2rem; }
}
