/* INVENTO — карточка статьи (article_card() — page-assets/article/article.php): «Материалы по теме» статьи,
   «Статьи по теме» подборки, дальше — списки разделов /news, /blog, /stories. Сетка — .acard-grid (+ .rail на мобильных). */

.acard-grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.acard__inner { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 26px; overflow: hidden; background: var(--white); color: var(--ink); box-shadow: var(--shadow-paper); transition: translate .5s var(--ease-out), box-shadow .5s; }
.acard:hover .acard__inner { translate: 0 -6px; box-shadow: var(--shadow-lift); }
.acard__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); }
.acard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-out); }
.acard:hover .acard__img { scale: 1.06; }
.acard__media--blank { display: grid; place-items: center; background: radial-gradient(60% 80% at 80% 10%, rgb(244 205 84 / .3), transparent 70%), var(--night); }
.acard__mark { width: 74px; height: 64px; color: var(--sun); opacity: .9; }
.acard__tag { position: absolute; left: 14px; top: 14px; rotate: -4deg; box-shadow: 0 10px 24px -10px rgb(0 0 0 / .5); }
.acard__body { display: grid; gap: 10px; align-content: start; flex: 1; padding: 18px 20px 20px; }
.acard__meta, .acard__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font: 700 13px/1.2 var(--font-body); color: var(--navy-3); }
.acard__meta span { color: var(--bronze); font-weight: 800; }
.acard__title { font: 700 clamp(17px, 1.5vw, 20px)/1.25 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.acard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.acard__link:focus-visible { outline: none; }
.acard__inner:has(.acard__link:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }
.acard__lead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 14.5px; line-height: 1.5; color: var(--navy-3); }
.acard__foot { margin-top: auto; padding-top: 4px; }
.acard__foot span { display: inline-flex; align-items: center; gap: 6px; }
.acard__foot .i { width: 14px; height: 14px; color: var(--bronze); }
@media (min-width: 768px) { .acard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .acard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
