/* Блог: лента, рубрики, статья. Поверх assets/site.css. */
.nav ul a.cur { background: var(--selected); }

/* Общее для шапок сценариев и блога */
.blog-hero { padding: 72px 0 40px; }
.blog-hero h1 { font-size: clamp(36px, 5.4vw, 64px); max-width: 900px; margin: 0 0 18px; }
.blog-hero .lead { color: var(--muted); font-size: 20px; max-width: 640px; margin: 0 0 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 9px 16px; border-radius: 999px; background: var(--soft-2); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .2s; }
.chips a:hover { background: var(--soft-3); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.blog-list { padding: 24px 0 40px; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.wave-art { width: 120px; height: 40px; fill: rgba(13,13,13,.28); }
.g-night .wave-art { fill: rgba(255,255,255,.4); }
.g-blue { background: var(--g-blue); } .g-lime { background: var(--g-lime); } .g-peach { background: var(--g-peach); } .g-night { background: var(--g-night); }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--g-blue); border-radius: 24px; padding: 30px 32px; margin: 40px 0; }
.cta-box h3 { margin: 0 0 6px !important; font-size: 22px; color: var(--ink); }
.cta-box p { margin: 0 !important; font-size: 16px !important; line-height: 1.5 !important; color: var(--ink-2); }
.cta-box .btn { flex: none; }

/* блог: сетка 400 + 800, дата слева, обложка в рамке */
header.top:has(~ main .blog-tint):not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.blog-tint { position: absolute; inset: 0 0 auto; height: 560px; z-index: -1; pointer-events: none; background: radial-gradient(50% 70% at 12% 0, #EAF1FF 0, rgba(234,241,255,0) 70%), radial-gradient(50% 70% at 88% 0, #E4EEFF 0, rgba(228,238,255,0) 70%), linear-gradient(#F3F7FF, rgba(243,247,255,0)); }
.journal { max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.column { max-width: 808px; margin: 0 auto; padding: 0 24px; }
.empty { color: var(--muted); }

.blog-bar { border-block: 1px solid rgba(13,13,13,.07); }
.blog-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.blog-bar nav { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.blog-bar nav a { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .2s; }
.blog-bar nav a:hover, .blog-bar nav a.on { color: var(--ink); }
.rss { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.5); box-shadow: 0 0 0 1px rgba(13,13,13,.06), 0 1px 3px rgba(13,13,13,.06); color: var(--ink); }
.rss svg { width: 16px; height: 16px; }

.journal-hero { padding: 96px 24px; text-align: center; }
.journal-hero h1 { font-size: 56px; line-height: 1; margin: 0 0 16px; }
.journal-hero p { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0; }

.cover { position: relative; padding: 40px 0; }
.frame { position: absolute; top: 0; bottom: 0; left: -40px; width: 100%; overflow: hidden; opacity: .7; -webkit-mask: linear-gradient(120deg, #000, transparent 70%); mask: linear-gradient(120deg, #000, transparent 70%); }
.frame img { width: 100%; height: 100%; object-fit: cover; filter: blur(40px); transform: scale(1.3); }
.cover .pic { position: relative; width: 100%; height: auto; border-radius: 16px; }

.feed { display: flex; flex-direction: column; gap: 96px; }
.entry { display: grid; grid-template-columns: 1fr 2fr; }
.entry > * { grid-column: 2; min-width: 0; }
.entry .byline { grid-column: 1; grid-row: 1 / span 4; align-self: start; flex-wrap: nowrap; white-space: nowrap; }
.byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; font-size: 15px; line-height: 24px; color: #6B6B6B; }
.byline a { font-size: 15px; color: var(--blue); text-decoration: none; }
.entry h2 { font-size: 40px; line-height: 48px; margin: 0 0 12px; }
.entry h2 a { text-decoration: none; transition: color .2s; }
.entry h2 a:hover { color: var(--muted); }
.lede { color: var(--muted); font-size: 20px; line-height: 32px; margin: 0 0 20px; }
.more { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); text-decoration: none; }
.more span { display: inline-block; margin-left: 4px; transition: transform .2s; }
a:hover > .more span, a.more:hover span { transform: translateX(4px); }

.minis { border-block: 1px solid var(--line); padding: 60px 0; }
.post ~ .journal .minis { margin-top: 96px; border-bottom: 0; padding-bottom: 0; }
.minis-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.minis-head h2 { font-size: 40px; line-height: 48px; }
.minis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.teaser { display: flex; flex-direction: column; text-decoration: none; }
.teaser img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 24px; }
.teaser .thumb { height: 200px; border-radius: 12px; margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 20px; }
.teaser .thumb span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: rgba(13,13,13,.7); }
.teaser h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 32px; margin: 0 0 8px; }
.teaser p { color: var(--ink-2); font-size: 15px; line-height: 24px; margin: 0 0 12px; }

/* статья */
.post-head { padding-top: 96px; }
.post-head .crumbs { font-size: 15px; font-weight: 400; margin-bottom: 12px; }
.post-head .crumbs .cat { color: var(--blue); }
.post-head h1 { font-size: 56px; line-height: 1.05; margin: 0 0 24px; }
.author { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 15px; color: var(--ink-2); }
.author img { width: 24px; height: 24px; }
.author time, .author span { color: #6B6B6B; }
.post-cover { max-width: 872px; margin: 40px auto 0; padding: 0 24px; }
.post-cover .frame { right: -40px; width: auto; -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr); align-items: start; padding: 60px 24px 0; }
.prose { grid-column: 2; }
.toc { grid-column: 3; grid-row: 1; position: sticky; top: 100px; max-width: 216px; margin-left: 112px; font-size: 14px; }
.toc p { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: var(--ink); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li a { display: block; padding: 6px 0; color: var(--ink-2); text-decoration: none; line-height: 20px; }
.toc li a:hover { color: var(--blue); }

.prose { font-size: 16px; line-height: 24px; color: var(--ink-2); }
.prose > p:first-child, .prose > p:first-child + p { font-size: 20px; line-height: 32px; color: var(--ink); }
.prose h2 { font-size: 32px; line-height: 40px; color: var(--ink); margin: 60px 0 20px; scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 32px; color: var(--ink); margin: 36px 0 12px; scroll-margin-top: 90px; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose code { font: 14px var(--mono); background: var(--soft-2); padding: 2px 6px; border-radius: 6px; }
.prose blockquote { margin: 28px 0; padding-left: 20px; border-left: 3px solid var(--blue); font-size: 20px; line-height: 32px; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose .table { overflow-x: auto; margin: 0 0 28px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--soft-0); color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.prose .note { background: var(--blue-soft); border-radius: 12px; padding: 20px 24px; margin: 0 0 28px; }
.prose .note p:last-child, .prose .note ul:last-child { margin-bottom: 0; }
.prose .cta-box .btn { color: #fff; font-weight: 700; text-decoration: none; }

.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 48px; font-size: 15px; font-weight: 600; }
.post-share p { width: 100%; margin: 0; font-weight: 400; color: var(--muted); }
.post-share a { text-underline-offset: 3px; }
.copy-link { padding: 0; border: 0; background: none; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.post-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.post-foot .label { margin: 0 0 16px; color: var(--muted); }
.post-foot p { margin: 0; }
.post-foot ul { list-style: none; margin: 0; padding: 0; }
.post-foot li { margin-bottom: 8px; }
.post-foot li a { font-weight: 600; color: var(--ink); text-decoration: none; }
.post-foot li a:hover { color: var(--blue); }
.post-foot li span { margin: 0 10px 0 4px; }
.post-foot .who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 16px; color: var(--ink); }

@media (max-width: 1360px) {
  .post-grid { display: block; max-width: 808px; margin: 0 auto; }
  .toc { display: none; }
}
@media (max-width: 1248px) {
  .journal { max-width: 808px; }
  .entry { display: block; }
  .entry .byline { margin-bottom: 12px; flex-wrap: wrap; white-space: normal; }
}
@media (max-width: 1000px) {
  .posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .frame { left: -24px; }
  .post-cover .frame { left: -24px; right: -24px; }
}
@media (max-width: 640px) {
  .blog-hero { padding: 44px 0 28px; }
  .blog-hero .lead { font-size: 18px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .chips a { white-space: nowrap; }
  .posts { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .blog-bar .wrap { min-height: 64px; }
  .blog-bar nav { gap: 18px; }
  .journal-hero { padding: 56px 24px; }
  .journal-hero h1 { font-size: 44px; }
  .feed { gap: 64px; }
  .cover { padding: 24px 0; }
  .cover .pic { border-radius: 12px; }
  .entry h2, .minis-head h2 { font-size: 28px; line-height: 36px; }
  .lede { font-size: 17px; line-height: 28px; }
  .minis { padding: 40px 0; }
  .post ~ .journal .minis { margin-top: 64px; }
  .minis-head { margin-bottom: 28px; }
  .minis-grid { grid-template-columns: 1fr; gap: 32px; }
  .post-head { padding-top: 40px; }
  .post-head h1 { font-size: 36px; }
  .post-cover { margin-top: 8px; }
  .post-grid { padding-top: 32px; }
  .prose > p:first-child, .prose > p:first-child + p { font-size: 18px; line-height: 28px; }
  .prose h2 { font-size: 26px; line-height: 34px; margin-top: 44px; }
  .post-foot { grid-template-columns: 1fr; gap: 36px; }
}
@media (prefers-color-scheme: dark) {
  .blog-tint { background: radial-gradient(50% 70% at 12% 0, rgba(45,107,255,.12) 0, rgba(45,107,255,0) 70%), radial-gradient(50% 70% at 88% 0, rgba(45,107,255,.1) 0, rgba(45,107,255,0) 70%); }
  .blog-bar { border-color: rgba(255,255,255,.08); }
  .frame { opacity: .3; }
  .rss { background: rgba(255,255,255,.08); box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
  .byline, .author time, .author span { color: #9A9AA2; }
  .byline a, .post-head .crumbs .cat { color: #9CC0FF; }
  .prose .note { background: rgba(110,155,255,.14); }
}

/* сценарии /solutions/ */
.sol-card { display: flex; flex-direction: column; text-decoration: none; background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease; }
.sol-card:hover { transform: translateY(-4px); }
.sol-card .thumb { height: 150px; display: flex; align-items: flex-end; justify-content: space-between; padding: 18px 22px; }
.sol-card .thumb span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: rgba(13,13,13,.7); }
.sol-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.sol-card h3 { font-size: 21px; margin: 0 0 8px; }
.sol-card p { color: var(--muted); font-size: 15px; margin: 0 0 16px; flex: 1; }
.sol-card .more { font-weight: 600; font-size: 14px; color: var(--ink); }
.sol-hero { padding: 48px 0 72px; }
.sol-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.sol-hero h1 { font-size: clamp(34px, 4.8vw, 58px); margin: 0 0 18px; }
.sol-hero .lead { font-size: 19px; color: var(--ink-2); margin: 0 0 28px; max-width: 560px; }
.sol-doc { min-height: 0; }
.sol-doc .label { margin-top: 0; }
.sol-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.sol-cols h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 22px; }
.pain { list-style: none; margin: 0; padding: 0; }
.pain li { padding: 16px 0 16px 34px; border-top: 1px solid var(--line); position: relative; font-size: 17px; color: var(--ink-2); }
.pain li::before { content: "—"; position: absolute; left: 4px; color: var(--muted); }
.sol-steps div { display: grid; grid-template-columns: 48px 1fr; padding: 16px 0; border-top: 1px solid var(--line); }
.sol-steps .n { font-weight: 600; color: var(--blue); font-size: 14px; padding-top: 3px; }
.sol-steps p { margin: 0; font-size: 17px; }
.sol-tpls h3 { font-size: 20px; margin: 0 0 14px; }
.sol-tpls .chips span { padding: 9px 16px; border-radius: 999px; background: var(--soft-2); font-weight: 600; font-size: 15px; }
.sol-more { font-size: 28px; margin: 56px 0 18px; }
.sol-minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sol-mini { display: block; padding: 20px 22px; border-radius: 18px; background: var(--surface); text-decoration: none; }
.sol-mini b { display: block; font-size: 17px; margin-bottom: 6px; }
.sol-mini span { color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) { .sol-grid, .sol-cols { grid-template-columns: 1fr; gap: 32px; } .sol-minis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .sol-minis { grid-template-columns: 1fr; } .sol-hero { padding: 28px 0 48px; } }

/* ---------- аудит мобильной версии ---------- */
/* таблицы в статьях: на телефоне компактнее, а тень у края показывает, что таблицу можно прокрутить вбок */
.prose .table {
  background:
    linear-gradient(90deg, var(--bg) 30%, rgba(0,0,0,0)) left / 40px 100% no-repeat local,
    linear-gradient(270deg, var(--bg) 30%, rgba(0,0,0,0)) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.16), rgba(0,0,0,0)) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.16), rgba(0,0,0,0)) right / 14px 100% no-repeat scroll;
}
@media (max-width: 640px) {
  .prose table { font-size: 14px; line-height: 1.45; }
  .prose th, .prose td { padding: 10px 12px; }
  .prose td:first-child, .prose th:first-child { min-width: 96px; }
}
/* шаблоны сценария — пилюли в одну строку, лента прокручивается */
.sol-tpls .chips span { flex: none; white-space: nowrap; }
.sol-mini span { display: block; line-height: 1.5; }

/* подписи на обложках: в тёмной теме градиенты тёмные, тёмный текст на них не читается */
@media (prefers-color-scheme: dark) { .teaser .thumb span, .sol-card .thumb span { color: rgba(255,255,255,.8); } }
