[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: #f8fafc; }
.cms-host { display: block; font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #0f172a; background: #f8fafc; -webkit-font-smoothing: antialiased; }
.blog-page, .art-page { overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; animation: page-in 0.3s ease; }
.cms-host a { color: #5670df; text-decoration: none; }
.cms-host a:hover { color: #3b52c4; }

/* ---------- Шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 60; background: #6379c3; box-shadow: 0 2px 14px rgba(15, 23, 42, 0.18); transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease; }
.topbar.is-scrolled { background: rgba(99, 121, 195, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 14px rgba(15, 23, 42, 0.12); }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; }
.cms-host .brand { color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 6px; }
.cms-host .brand:hover { color: #fff; }
.brand img { display: block; }
.pubnav { display: flex; align-items: center; gap: 12px 34px; flex-wrap: wrap; }
.cms-host .pubnav a { color: rgba(255, 255, 255, 0.85); font-size: 1.04rem; font-weight: 600; }
.cms-host .pubnav a:hover { color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.cms-host .login-link { color: #fff; font-size: 0.89rem; font-weight: 700; }
.cms-host .login-link:hover { color: #fff; }

/* ---------- Hero разводящей ---------- */
.blog-hero { background: linear-gradient(to bottom, #6379c3, #546ee5); }
.blog-hero-inner { max-width: 1160px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) 24px clamp(44px, 6vw, 68px); text-align: center; position: relative; }
.deco { position: absolute; animation: float-y 7s ease-in-out infinite; }
.blog-title { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 800; line-height: 1.22; margin: 0 auto 14px; max-width: 720px; text-wrap: balance; }
.blog-sub { color: rgba(255, 255, 255, 0.72); font-size: 1.05rem; line-height: 1.7; margin: 0 auto; max-width: 560px; }

/* ---------- Теги + сетка ---------- */
.blog-main { flex: 1; }
.blog-inner { max-width: 1160px; margin: 0 auto; padding: 36px 24px 96px; }
.tagbar { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.tag-pill { padding: 11px 24px; border-radius: 50px; font-size: 0.92rem; font-weight: 600; border: 2px solid #e2e8f0; background: #fff; color: #64748b; cursor: pointer; font-family: inherit; transition: border-color 0.18s ease, color 0.18s ease; }
.tag-pill.is-active { border-color: #5670df; background: #5670df; color: #fff; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.cms-host .post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; color: inherit; transition: transform 0.25s ease, box-shadow 0.25s ease; will-change: transform; }
.cms-host .post-card:hover { color: inherit; transform: translateY(-6px); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12); }
.post-cover { height: 150px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.post-cover i { font-size: 44px; color: rgba(255, 255, 255, 0.85); }
.post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; flex: 1; }
.post-tag { align-self: flex-start; background: #e8ecfb; color: #5670df; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 12px; border-radius: 50px; }
.post-title { margin: 0; font-size: 1.08rem; font-weight: 800; color: #0f172a; line-height: 1.35; }
.post-excerpt { font-size: 0.9rem; color: #64748b; line-height: 1.6; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 14px; color: #94a3b8; font-size: 0.82rem; font-weight: 600; }
.post-mins { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Шапка статьи ---------- */
.art-hero { background: linear-gradient(to bottom, #6379c3, #546ee5); }
.art-hero-inner { max-width: 800px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) 24px clamp(44px, 6vw, 64px); }
.cms-host .art-back { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.cms-host .art-back:hover { color: #fff; }
.art-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.art-chip { background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 12px; border-radius: 50px; }
.art-meta > span:not(.art-chip) { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; font-weight: 600; }
.art-mins { display: inline-flex; align-items: center; gap: 5px; }
.art-title { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.22; margin: 0; text-wrap: balance; }
.art-lead { color: rgba(255, 255, 255, 0.72); font-size: 1.05rem; line-height: 1.7; margin: 16px 0 0; }

/* ---------- Тело статьи ---------- */
.art-main { flex: 1; }
.art-inner { max-width: 800px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) 24px 40px; }
.art-p { font-size: 1.02rem; color: #374151; line-height: 1.8; margin: 0 0 16px; }
.art-p.intro { margin-bottom: 28px; }
.art-p.last { margin-bottom: 0; }
.cms-host .art-link { font-weight: 700; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-item { display: flex; gap: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px 22px; margin-bottom: 12px; }
.check-num { flex: none; width: 38px; height: 38px; border-radius: 50%; background: #e8ecfb; color: #5670df; font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.check-title { font-size: 1rem; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.check-text { font-size: 0.92rem; color: #64748b; line-height: 1.65; }
.art-h2 { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin: 36px 0 14px; }
.art-h3 { font-size: 1.15rem; font-weight: 800; color: #0f172a; margin: 28px 0 12px; }
.art-quote { margin: 24px 0; padding: 18px 22px; border-left: 4px solid #5670df; background: #fff; border-radius: 0 16px 16px 0; font-size: 1.02rem; color: #374151; line-height: 1.8; }
.art-figure { margin: 24px 0; }
.art-figure img { display: block; max-width: 100%; height: auto; border-radius: 16px; }
.art-hr { border: none; border-top: 1px solid #e2e8f0; margin: 32px 0; }
.art-btn-row { margin: 24px 0; }
.sources-list { list-style: none; margin: 0; padding: 0; }
.sources-list li { font-size: 1.02rem; line-height: 1.8; margin: 0 0 8px; }
.sources-list li:last-child { margin-bottom: 0; }
ul.sources-list.ins1658-marked-list { list-style: disc; padding-inline-start: 1.5em; }

/* ---------- Mixed content (blockVersion 3) ---------- */
.cms-mixed-content { overflow-wrap: anywhere; }
.cms-content-text { margin: 0; min-height: 1lh; }
.cms-content-list { margin: 0; padding-inline-start: 1.5em; font-size: 1.02rem; line-height: 1.8; overflow-wrap: anywhere; }
.cms-content-list--bulleted { list-style-type: disc; }
.cms-content-list--numbered { list-style-type: decimal; }
.cms-content-list--markerless { list-style: none; padding-inline-start: 0; }
.cms-content-list li { margin: 0; min-height: 1lh; }
.art-cta-sub .cms-content-list { text-align: start; color: inherit; font-size: inherit; line-height: inherit; }

/* ---------- Раскрывающийся пункт (INS-1615) ---------- */
.collapsible { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; margin: 0 0 12px; overflow: hidden; }
.collapsible:last-child { margin-bottom: 0; }
.collapsible-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; font-size: 1rem; font-weight: 700; color: #0f172a; cursor: pointer; list-style: none; }
.collapsible-head::-webkit-details-marker { display: none; }
.collapsible-head::marker { content: ""; }
.collapsible-head:focus-visible { outline: 2px solid #5670df; outline-offset: -2px; }
.collapsible-title { min-width: 0; overflow-wrap: anywhere; }
.collapsible-chevron { flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b; transform: rotate(45deg); transform-origin: 60% 60%; transition: transform .2s ease; }
.collapsible[open] .collapsible-chevron { transform: rotate(225deg); }
.collapsible-body { padding: 0 22px 14px; color: #64748b; font-size: .94rem; line-height: 1.65; }
@media (prefers-reduced-motion: reduce) { .collapsible-chevron { transition: none; } }

/* ---------- Автор ---------- */
.author-box { margin-top: 44px; display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px 22px; }
.author-ava { flex: none; width: 52px; height: 52px; border-radius: 50%; background: #e8ecfb; color: #5670df; font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.author-ava img { width: 100%; height: 100%; object-fit: cover; }
.cms-host .author-name { display: block; font-size: 1rem; font-weight: 800; color: #0f172a; margin-bottom: 2px; }
.cms-host a.author-name:hover { color: #0f172a; text-decoration: underline; }
.author-role { font-size: 0.88rem; color: #64748b; line-height: 1.5; }

/* ---------- Поделиться ---------- */
.share-row { margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-label { font-size: 0.9rem; font-weight: 700; color: #0f172a; margin-right: 4px; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; color: #5670df; font-size: 18px; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.share-btn-max { font-size: 10px; font-weight: 800; letter-spacing: 0.02em; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12); }
.share-copied { font-size: 0.82rem; font-weight: 700; color: #059669; }

/* ---------- Кнопки ---------- */
.cms-host .btn-green { display: inline-block; background: #10b981; color: #fff; font-size: 1rem; font-weight: 700; padding: 14px 36px; border: none; border-radius: 50px; cursor: pointer; font-family: inherit; text-align: center; box-shadow: 0 6px 22px rgba(16, 185, 129, 0.4); transition: box-shadow 0.18s ease; }
.cms-host .btn-green:hover { color: #fff; box-shadow: 0 6px 22px rgba(16, 185, 129, 0.4), 0 0 0 4px rgba(255, 255, 255, 0.28); }

/* ---------- CTA ---------- */
.art-cta { position: relative; overflow: hidden; background: linear-gradient(135deg, #5a6be0, #6379c3); border-radius: 24px; padding: clamp(28px, 5vw, 44px); text-align: center; margin-top: 24px; }
.art-cta-glow { position: absolute; top: -70px; right: -50px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 70%); }
.art-cta-body { position: relative; }
.art-cta-title { color: #fff; font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; margin: 0 0 10px; line-height: 1.3; }
.art-cta-sub { color: rgba(255, 255, 255, 0.78); font-size: 0.98rem; line-height: 1.65; margin: 0 auto 24px; max-width: 440px; }

/* ---------- Подписка ---------- */
.sub-box { margin-top: 24px; background: #fff; border: 1px solid #e2e8f0; border-radius: 24px; padding: clamp(24px, 4vw, 36px); }
.sub-icon, .news-icon { width: 54px; height: 54px; border-radius: 16px; background: #e8ecfb; color: #5670df; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.sub-title, .news-heading { font-size: 1.25rem; font-weight: 800; color: #0f172a; margin: 0 0 18px; line-height: 1.35; }
.sub-form, .news-form { display: flex; flex-direction: column; gap: 12px; }
.sub-form input[type='email'], .news-form input[type='email'] { border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 15px; font-size: 0.95rem; font-family: inherit; background: #fff; color: #0f172a; }
.sub-consent, .news-consent { display: flex; gap: 10px; align-items: flex-start; color: #64748b; font-size: 0.82rem; line-height: 1.5; cursor: pointer; }
.sub-consent input[type='checkbox'], .news-consent input[type='checkbox'] { flex: none; width: 16px; height: 16px; margin-top: 2px; accent-color: #10b981; cursor: pointer; }
.cms-host .sub-submit, .cms-host .news-submit { padding: 14px; box-shadow: 0 6px 22px rgba(16, 185, 129, 0.35); }
.cms-host .sub-submit:hover, .cms-host .news-submit:hover { box-shadow: 0 6px 22px rgba(16, 185, 129, 0.35), 0 0 0 4px rgba(16, 185, 129, 0.3); }
.sub-sent, .news-sent { text-align: center; padding: 14px 0 6px; }
.sub-sent i, .news-sent i { font-size: 46px; color: #10b981; }
.sub-sent-title, .news-sent-title { font-size: 1.2rem; font-weight: 800; color: #0f172a; margin: 10px 0 6px; }
.sub-sent-text, .news-sent-text { font-size: 0.92rem; color: #64748b; line-height: 1.6; }

/* ---------- Читайте также ---------- */
.related { margin-top: 52px; }
.related-title { font-size: 1.15rem; font-weight: 800; color: #0f172a; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cms-host .related-card { display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px 22px; color: inherit; transition: transform 0.25s ease, box-shadow 0.25s ease; will-change: transform; }
.cms-host .related-card:hover { color: inherit; transform: translateY(-6px); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12); }
.related-tag { display: inline-block; background: #e8ecfb; color: #5670df; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 50px; margin-bottom: 10px; }
.related-name { font-size: 0.98rem; font-weight: 800; color: #0f172a; line-height: 1.4; }
.art-page .site-footer { margin-top: 48px; }

/* ---------- Поп-ап рассылки ---------- */
.news-ov { position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, 0.55); display: flex; align-items: center; justify-content: center; padding: 24px; overflow-y: auto; animation: ov-fade 0.18s ease; }
.news-ov.is-closing { animation: ov-fade-out 0.2s ease both; }
.news-card { position: relative; background: #fff; border-radius: 24px; width: 100%; max-width: 460px; margin: auto; padding: clamp(24px, 4vw, 36px); box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35); animation: ov-pop 0.22s ease; }
.news-ov.is-closing .news-card { animation: ov-pop-out 0.2s ease both; }
.news-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: #f1f5f9; color: #64748b; font-size: 16px; cursor: pointer; font-family: inherit; }

/* ---------- Футер ---------- */
.site-footer { background: #0f172a; font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 64px 24px 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; margin-bottom: 40px; }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr 1.1fr; } }
.footer-brand { color: #fff; font-size: 1.1rem; display: block; margin-bottom: 12px; }
.footer-tag { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; line-height: 1.65; margin: 0; }
.footer-col h4 { color: #fff; font-size: 0.95rem; font-weight: 700; margin: 0 0 16px; }
.cms-host .footer-col a { display: block; color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; margin-bottom: 8px; text-decoration: none; }
.cms-host .footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px; text-align: center; }
.footer-bottom p { color: rgba(255, 255, 255, 0.4); font-size: 0.85rem; margin: 0; }

/* ---------- Анимации ---------- */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ov-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ov-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes ov-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ov-pop-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(12px); } }

/* ---------- Адаптивность ---------- */
@media (max-width: 1179px) { .deco { display: none; } }
@media (max-width: 640px) {
  .topbar-inner { padding: 10px 16px; }
  .pubnav { order: 3; width: 100%; justify-content: center; gap: 6px 18px; }
  .cms-host .pubnav a { font-size: 0.92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-page, .art-page, .deco, .news-ov, .news-card, .news-ov.is-closing, .news-ov.is-closing .news-card { animation: none !important; }
  .post-card, .related-card, .tag-pill, .share-btn, .btn-green { transition: none !important; }
}

/* ---------- Страница авторов (/author, INS-1582) ---------- */
.author-page { overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column; animation: page-in 0.3s ease; }
.author-hero { background: linear-gradient(to bottom, #6379c3, #546ee5); }
.author-hero-inner { max-width: 800px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) 24px clamp(44px, 6vw, 64px); }
.cms-host .author-back { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.cms-host .author-back:hover { color: #fff; }
.author-title { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; line-height: 1.22; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.author-main { flex: 1; }
.author-inner { max-width: 800px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) 24px 40px; }
.author-p { font-size: 1.02rem; color: #374151; line-height: 1.8; margin: 0; overflow-wrap: anywhere; }
.author-h2 { font-size: 1.4rem; font-weight: 800; color: #0f172a; margin: 36px 0 16px; overflow-wrap: anywhere; }
.author-empty { font-size: 0.95rem; color: #64748b; margin: 0; }
.persons-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.person-card { min-width: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 26px 24px; }
.person-ava { width: 64px; height: 64px; border-radius: 50%; background: #e8ecfb; color: #5670df; font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; overflow: hidden; }
.person-ava img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person-name { font-size: 1.12rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; overflow-wrap: anywhere; }
.person-role { font-size: 0.88rem; font-weight: 700; color: #5670df; line-height: 1.5; margin-bottom: 10px; overflow-wrap: anywhere; }
.person-bio { font-size: 0.92rem; color: #64748b; line-height: 1.65; margin: 0; overflow-wrap: anywhere; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.author-page .site-footer { margin-top: 48px; }
@media (prefers-reduced-motion: reduce) {
  .author-page { animation: none !important; }
}