/* ══════════ АромаПак · Новости ══════════ */
:root {
    --apb-ink: #14203a;
    --apb-ink-soft: #3d4756;
    --apb-faint: #8a93a2;
    --apb-accent: #0052b1;
    --apb-bg: #eef3f9;
    --apb-line: #e8ecf2;
    --apb-font: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --apb-font-head: 'Oswald', 'Inter', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.apb { font-family: var(--apb-font); color: var(--apb-ink); background: var(--apb-bg); font-size: 15px; line-height: 1.6; }
.apb-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.apb-main a { color: var(--apb-accent); }

/* прежняя автономная шапка (больше не используется; блог наследует шапку магазина) */
.apb-header { background: #0a1322; color: #fff; }
.apb-header__in { display: flex; align-items: center; gap: 34px; height: 68px; padding: 0 20px; }
.apb-logo { font-family: var(--apb-font-head); font-size: 21px; font-weight: 700; letter-spacing: .06em; color: #fff !important; text-decoration: none; }
.apb-logo em { font-style: normal; color: #7eb0ff; }
.apb-nav { display: flex; gap: 24px; }
.apb-nav a { color: rgba(255,255,255,.72) !important; text-decoration: none; font-size: 14px; font-weight: 600; transition: color .15s; }
.apb-nav a:hover, .apb-nav a.is-active { color: #fff !important; }
.apb-header__btn { margin-left: auto; padding: 10px 18px; border-radius: 11px; background: var(--apb-accent); color: #fff !important; text-decoration: none; font-size: 13.5px; font-weight: 700; transition: background .18s; white-space: nowrap; }
.apb-header__btn:hover { background: #003c83; }
@media (max-width: 640px) { .apb-nav { display: none; } }

.apb-main { padding: 40px 0 70px; min-height: 55vh; }

/* заголовок раздела */
.apb-head { margin-bottom: 30px; }
.apb-h1 { margin: 0 0 8px; font-family: var(--apb-font-head); font-size: clamp(30px, 4vw, 44px); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; }
.apb-h1 em { font-style: normal; color: var(--apb-accent); }
.apb-sub { margin: 0; color: var(--apb-faint); font-size: 15px; max-width: 560px; }

/* сетка карточек */
.apb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 940px) { .apb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .apb-grid { grid-template-columns: 1fr; } }
.apb-card {
    display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
    text-decoration: none !important; box-shadow: 0 2px 14px rgba(20,32,58,.06);
    transition: transform .25s ease, box-shadow .25s ease;
    opacity: 0; transform: translateY(14px); animation: apbIn .5s ease forwards; animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes apbIn { to { opacity: 1; transform: none; } }
.apb-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(20,32,58,.14); }
.apb-card__img { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #dfe7f1; }
.apb-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.apb-card:hover .apb-card__img img { transform: scale(1.06); }
.apb-card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #1d2f4e, #0a1322); }
.apb-card__date { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(10,19,34,.72); color: #fff; font-size: 11.5px; font-weight: 600; }
.apb-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1 1 auto; }
.apb-card__title { font-size: 16.5px; font-weight: 800; line-height: 1.35; color: var(--apb-ink); transition: color .15s; }
.apb-card:hover .apb-card__title { color: var(--apb-accent); }
.apb-card__x { font-size: 13px; color: var(--apb-faint); line-height: 1.55; }
.apb-card__more { margin-top: auto; padding-top: 6px; color: var(--apb-accent); font-size: 13.5px; font-weight: 700; }
.apb-card__more span { display: inline-block; transition: transform .2s ease; }
.apb-card:hover .apb-card__more span { transform: translateX(4px); }

/* пагинация/лейзи-лоад из дефолтной темы */
.pageless-wrapper { margin: 26px 0 0; color: var(--apb-faint); font-size: 13.5px; text-align: center; }
.pageless-link { color: var(--apb-accent); font-weight: 700; }

/* ── страница новости ── */
.apb-post { max-width: 800px; margin: 0 auto; }
.apb-back { display: inline-block; margin-bottom: 22px; color: var(--apb-faint) !important; text-decoration: none; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; transition: color .15s; }
.apb-back:hover { color: var(--apb-ink) !important; }
.apb-post__title { margin: 0 0 14px; font-family: var(--apb-font-head); font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; line-height: 1.12; text-transform: uppercase; }
.apb-post__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.apb-post__chip { padding: 6px 13px; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(20,32,58,.06); font-size: 12.5px; font-weight: 700; color: var(--apb-accent); }
.apb-post__author { color: var(--apb-faint); font-size: 13px; font-weight: 600; }
.apb-post__hero { margin: 0 0 28px; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(20,32,58,.16); animation: apbIn .5s ease; }
.apb-post__hero img { width: 100%; display: block; }
.apb-post__body { background: #fff; border-radius: 20px; padding: 34px 38px; box-shadow: 0 2px 14px rgba(20,32,58,.05); font-size: 16px; line-height: 1.75; color: var(--apb-ink-soft); }
.apb-post__body p { margin: 0 0 16px; }
.apb-post__body p:last-child { margin-bottom: 0; }
.apb-post__body img { max-width: 100%; height: auto; border-radius: 14px; }
.apb-post__body h2, .apb-post__body h3 { color: var(--apb-ink); line-height: 1.3; margin: 26px 0 12px; }
.apb-post__body b, .apb-post__body strong { color: var(--apb-ink); }
@media (max-width: 640px) { .apb-post__body { padding: 22px 20px; font-size: 15px; } }

/* CTA под статьёй */
.apb-post__cta {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    margin-top: 22px; padding: 24px 28px; border-radius: 18px; color: #fff;
    background: radial-gradient(120% 140% at 12% 0%, #1d2f4e 0%, #14203a 55%, #0a1322 100%);
}
.apb-post__cta b { display: block; font-size: 17px; margin-bottom: 3px; }
.apb-post__cta span { color: rgba(255,255,255,.65); font-size: 13.5px; }
.apb-post__cta-btn { padding: 13px 24px; border-radius: 12px; background: var(--apb-accent); color: #fff !important; text-decoration: none; font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: background .18s, transform .18s; }
.apb-post__cta-btn:hover { background: #1466cc; transform: translateY(-2px); }

/* читайте также */
.apb-more { margin-top: 46px; }
.apb-more__t { font-family: var(--apb-font-head); font-size: 22px; font-weight: 700; text-transform: uppercase; margin-bottom: 18px; }
.apb-grid--more { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 800px) { .apb-grid--more { grid-template-columns: 1fr; } }

/* подвал */
.apb-footer { background: #0a1322; color: rgba(255,255,255,.55); font-size: 13px; }
.apb-footer__in { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.apb-footer a { color: #7eb0ff !important; text-decoration: none; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
    .apb-card, .apb-post__hero { animation: none !important; opacity: 1; transform: none; }
}
