:root{
  --ink:#1c2420; --muted:#5d6b63; --line:#e3e8e4;
  --bg:#fbfcfb; --accent:#2f7d4f; --accent-d:#256340; --card:#fff;
  --maxw:720px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font:17px/1.7 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
a{color:var(--accent); text-decoration:none}
a:hover{text-decoration:underline}

.top{
  display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
  padding:13px 20px; border-bottom:1px solid var(--line); background:#fff;
}
.brand{display:inline-flex; align-items:center; gap:10px; color:var(--ink)}
.brand:hover{text-decoration:none}
.brand-mark{border-radius:7px; display:block}
.brand-name{font-weight:800; font-size:20px; letter-spacing:-.02em}
.tagline{color:var(--muted); font-size:14px}
.nav{display:flex; align-items:center; gap:6px}
.nav a{font-size:15px; color:var(--muted); padding:7px 12px; border-radius:9px}
.nav a:hover{color:var(--ink); text-decoration:none}
.nav .nav-cta{background:var(--accent); color:#fff; font-weight:600}
.nav .nav-cta:hover{background:var(--accent-d); color:#fff}

.wrap{max-width:var(--maxw); margin:0 auto; padding:28px 20px 60px}

.post h1, .wrap > h1{font-size:30px; line-height:1.25; margin:.2em 0 .6em; letter-spacing:-.01em}
.post figure{margin:0 0 22px}
.post figure img{width:100%; height:auto; border-radius:14px; display:block}
.body{font-size:17px}
.body h2{font-size:23px; margin:1.6em 0 .5em; line-height:1.3}
.body h3{font-size:19px; margin:1.3em 0 .4em}
.body p{margin:0 0 1.05em}
.body ul,.body ol{margin:0 0 1.1em; padding-left:1.3em}
.body li{margin:.3em 0}
.body img{max-width:100%; height:auto; border-radius:12px; margin:.6em 0}
.body blockquote{margin:1.2em 0; padding:.4em 1em; border-left:3px solid var(--accent); color:var(--muted)}
.crumb{font-size:14px; margin:0 0 4px}
.crumb a{color:var(--accent)}
.meta{color:var(--muted); font-size:14px; margin:-2px 0 18px}

.faq{margin:2.4em 0 1.4em; border-top:1px solid var(--line); padding-top:1.2em}
.faq h2{font-size:22px; margin:0 0 .6em}
.faq details{border-bottom:1px solid var(--line); padding:.7em 0}
.faq summary{cursor:pointer; font-weight:600; list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq summary::before{content:"+"; color:var(--accent); font-weight:700; margin-right:10px}
.faq details[open] summary::before{content:"–"}
.faq details p{margin:.6em 0 0; color:var(--ink)}

.cta{margin:2em 0; text-align:center}
.cta a{
  display:inline-block; background:var(--accent); color:#fff; font-weight:600;
  padding:14px 28px; border-radius:12px; font-size:17px;
}
.cta a:hover{background:var(--accent-d); text-decoration:none}

.sources{margin:2.2em 0 0; font-size:14px; color:var(--muted)}
.sources h2{font-size:16px; margin:0 0 .4em; color:var(--ink)}
.sources ul{margin:0; padding-left:1.2em}

.wrap.list{max-width:1040px}
.grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:8px}
@media(max-width:720px){ .grid{grid-template-columns:repeat(2,1fr); gap:14px} }
.card{
  background:var(--card); border:1px solid var(--line); border-radius:14px; overflow:hidden;
  display:flex; flex-direction:column; color:var(--ink);
}
.card:hover{border-color:var(--accent); text-decoration:none}
.card img{width:100%; aspect-ratio:4/3; object-fit:cover; display:block}
.card-body{padding:13px 15px 15px; display:flex; flex-direction:column; gap:7px}
.card-cat{font-size:12px; color:var(--accent); font-weight:600; text-transform:uppercase; letter-spacing:.02em}
.card-t{font-weight:600; line-height:1.35; font-size:16px; color:var(--ink)}
.card-d{font-size:14px; color:var(--muted); line-height:1.45}
.card-m{font-size:13px; color:var(--muted); margin-top:2px}

.cats{display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 22px}
.cats .cat{font-size:14px; padding:7px 14px; border:1px solid var(--line); border-radius:999px; color:var(--muted); background:#fff}
.cats .cat:hover{border-color:var(--accent); color:var(--accent); text-decoration:none}
.cats .cat.on{background:var(--accent); border-color:var(--accent); color:#fff}

.pager{display:flex; flex-wrap:wrap; gap:8px; margin:26px 0 6px; justify-content:center}
.pager .pg{min-width:38px; text-align:center; padding:8px 12px; border:1px solid var(--line); border-radius:10px; color:var(--ink)}
.pager .pg:hover{border-color:var(--accent); text-decoration:none}
.pager .pg.on{background:var(--accent); border-color:var(--accent); color:#fff}

.tryblock{margin:34px 0 6px; padding:26px 20px; text-align:center; background:#f1f6f2; border:1px solid var(--line); border-radius:16px}
.tryblock-t{margin:0 0 14px; font-size:19px; font-weight:600}
.tryblock-b{display:inline-block; background:var(--accent); color:#fff; font-weight:600; padding:13px 26px; border-radius:12px}
.tryblock-b:hover{background:var(--accent-d); text-decoration:none}

.foot-cols{display:flex; flex-wrap:wrap; gap:30px; margin-bottom:18px}
.foot-c{display:flex; flex-direction:column; gap:6px; font-size:14px}
.foot-c b{color:var(--ink); margin-bottom:2px}
.foot-c a{color:var(--muted)}
.foot-c a:hover{color:var(--accent)}
.foot-tag{color:var(--muted); max-width:280px}
.foot-copy{font-size:13px; color:var(--muted); border-top:1px solid var(--line); padding-top:14px}

.toc{margin:6px 0 22px; padding:14px 18px; background:#f6f8f6; border:1px solid var(--line); border-radius:12px}
.toc-h{display:block; font-weight:700; font-size:15px; margin-bottom:8px}
.toc ol{margin:0; padding-left:1.2em}
.toc li{margin:.3em 0}
.toc a{color:var(--accent)}
.related{margin:36px 0 0; padding-top:18px; border-top:1px solid var(--line)}
.related > h2{font-size:21px; margin:0 0 14px}
.author{display:flex; gap:14px; align-items:flex-start; margin:30px 0 0; padding:16px 18px; background:#f6f8f6; border:1px solid var(--line); border-radius:14px}
.author-av{flex:0 0 auto; width:44px; height:44px; border-radius:50%; background:var(--accent); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:20px}
.author-n{display:block; font-weight:700; margin-bottom:3px}
.author-b{display:block; font-size:14px; color:var(--muted); line-height:1.5}

.foot{
  max-width:var(--maxw); margin:0 auto; padding:24px 20px 40px;
  color:var(--muted); font-size:14px; border-top:1px solid var(--line);
}

@media(max-width:560px){
  .post h1,.wrap > h1{font-size:25px}
  .body h2{font-size:21px}
  .wrap{padding:20px 16px 48px}
}

/* Таблицы в статьях (добавлено 30.07) */
.body table{width:100%; border-collapse:collapse; margin:1.5em 0; font-size:15px; line-height:1.5}
.body th,.body td{border:1px solid var(--line); padding:10px 14px; text-align:left; vertical-align:top}
.body thead th{background:#eef4f0; color:var(--ink); font-weight:600}
.body tbody tr:nth-child(even) td{background:#fafcfa}

/* Генератор стихов в статье — .gen (СЕОН 12.09.2026) */
.gen{margin:1.6em 0 1.8em; padding:20px 20px 16px; background:#f3f8f4; border:1px solid #cfe3d5; border-radius:16px}
.gen-h{margin:0 0 14px}
.gen-h b{display:block; font-size:20px; line-height:1.3}
.gen-h span{display:block; color:var(--muted); font-size:14px; margin-top:3px}
.gen-f{display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px 12px}
.gen-l{display:flex; flex-direction:column; gap:5px; font-size:13px; color:var(--muted); font-weight:600}
.gen-wide{grid-column:1 / -1}
.gen-in{font-family:inherit; font-size:16px; line-height:1.3; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); width:100%}
.gen-in:focus{outline:none; border-color:var(--accent)}
.gen-hide{display:none !important}
.gen-chips{display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 14px}
.gen-chip{font-family:inherit; font-size:14px; padding:7px 13px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--muted); cursor:pointer}
.gen-chip.on{background:var(--accent); border-color:var(--accent); color:#fff}
.gen-btn{display:block; width:100%; font-family:inherit; font-size:17px; font-weight:600; padding:14px 20px; border:0; border-radius:12px; background:var(--accent); color:#fff; cursor:pointer}
.gen-btn:hover{background:var(--accent-d)}
.gen-btn:disabled{opacity:.6; cursor:wait}
.gen-msg{min-height:1.4em; font-size:14px; color:var(--muted); margin:10px 0 0}
.gen-msg.err{color:#b23a3a}
.gen-res{margin-top:14px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px 20px}
.gen-out{white-space:pre-wrap; font-size:17px; line-height:1.65; font-style:italic}
.gen-acts{display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; align-items:center}
.gen-song{display:inline-block; background:var(--accent); color:#fff !important; font-weight:600; padding:11px 18px; border-radius:10px; text-decoration:none !important}
.gen-song:hover{background:var(--accent-d)}
.gen-sec{font-family:inherit; font-size:14px; padding:10px 14px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); cursor:pointer}
.gen-sec:hover{border-color:var(--accent)}
.gen-sec:disabled{opacity:.6}
.gen-note{font-size:13px; color:var(--muted); margin-top:12px}
@media(max-width:560px){ .gen{padding:16px 14px 14px} .gen-f{grid-template-columns:1fr 1fr} .gen-song{width:100%; text-align:center} }

/* Подписи к картинкам (figure из markdown-картинки с alt) — СЕОН 17.09 */
.body figure.fig{margin:1.6em 0 1.8em}
.body figure.fig img{width:100%; height:auto; border-radius:12px; display:block; margin:0}
.body figure.fig figcaption{font-size:14px; line-height:1.5; color:var(--muted); margin-top:10px; text-align:center}

/* Тёмная тема статьи (frontmatter theme: dark) — стиль редакционных гайдов: чёрный фон, светлый текст, промпты в тонких рамках — СЕОН 17.09 */
body.theme-dark{
  --ink:#ededed; --muted:rgba(237,237,237,.72); --line:#2a2a2a;
  --bg:#000; --accent:#b7ff5c; --accent-d:#9de63f; --card:#0f0f0f;
  --maxw:820px;
  background:#000; color:var(--ink);
}
body.theme-dark .top{background:#000; border-bottom-color:#1f1f1f}
body.theme-dark .brand{color:#fff}
body.theme-dark .nav a{color:rgba(255,255,255,.7)}
body.theme-dark .nav a:hover{color:#fff}
body.theme-dark .nav .nav-cta{background:#fff; color:#000}
body.theme-dark .nav .nav-cta:hover{background:#e6e6e6; color:#000}
body.theme-dark a{color:#fff; text-decoration:underline; text-underline-offset:3px; text-decoration-color:rgba(255,255,255,.35)}
body.theme-dark a:hover{text-decoration-color:#fff}
body.theme-dark .post h1,body.theme-dark .wrap > h1{font-size:40px; line-height:1.1; letter-spacing:-.02em; font-weight:800; text-transform:uppercase; color:#fff; margin:.3em 0 .5em}
body.theme-dark .body{font-size:18px; line-height:1.75; color:rgba(237,237,237,.86)}
body.theme-dark .body h2{font-size:30px; line-height:1.2; letter-spacing:-.01em; font-weight:800; color:#fff; margin:2.2em 0 .6em; padding-top:1.2em; border-top:1px solid #1f1f1f}
body.theme-dark .body h3{font-size:22px; font-weight:700; color:#fff; margin:1.8em 0 .5em}
body.theme-dark .body h4{font-size:18px; font-weight:700; color:#fff; margin:1.5em 0 .4em}
body.theme-dark .body strong{color:#fff}
body.theme-dark .body em{color:rgba(237,237,237,.7)}
body.theme-dark .body blockquote{margin:1.3em 0; padding:16px 20px; border:1px solid #2a2a2a; border-left:3px solid var(--accent); border-radius:10px; background:#0a0a0a; color:rgba(237,237,237,.85); font-style:normal}
body.theme-dark .body blockquote p{margin:0 0 .6em}
body.theme-dark .body blockquote p:last-child{margin:0}
body.theme-dark .body blockquote strong{color:var(--accent)}
body.theme-dark .body table{border:0; font-size:15px}
body.theme-dark .body th,body.theme-dark .body td{border:0; border-bottom:1px solid #222; padding:12px 14px; color:rgba(237,237,237,.78)}
body.theme-dark .body thead th{background:transparent; color:#fff; font-weight:700; border-bottom:1px solid #444}
body.theme-dark .body tbody tr:nth-child(even) td{background:transparent}
body.theme-dark .body tbody td:first-child{color:#fff; font-weight:600}
body.theme-dark .body figure.fig{margin:2em 0 2.2em}
body.theme-dark .body figure.fig img{border-radius:6px; border:1px solid #1f1f1f}
body.theme-dark .body figure.fig figcaption{color:rgba(237,237,237,.55); font-size:14px}
body.theme-dark .post figure img{border-radius:6px}
body.theme-dark .meta{color:rgba(237,237,237,.55)}
body.theme-dark .crumb a{color:rgba(237,237,237,.6); text-decoration:none}
body.theme-dark .toc{background:#0a0a0a; border-color:#2a2a2a}
body.theme-dark .toc-h{color:#fff}
body.theme-dark .toc a{color:rgba(237,237,237,.8); text-decoration:none}
body.theme-dark .toc a:hover{color:#fff}
body.theme-dark .cta a{background:#fff; color:#000; text-decoration:none}
body.theme-dark .cta a:hover{background:#e6e6e6}
body.theme-dark .faq{border-top-color:#1f1f1f}
body.theme-dark .faq h2{color:#fff}
body.theme-dark .faq details{border-bottom-color:#1f1f1f}
body.theme-dark .faq summary{color:#fff}
body.theme-dark .faq details p{color:rgba(237,237,237,.8)}
body.theme-dark .author{background:#0a0a0a; border-color:#2a2a2a}
body.theme-dark .author-av{background:#fff; color:#000}
body.theme-dark .author-b{color:rgba(237,237,237,.65)}
body.theme-dark .related{border-top-color:#1f1f1f}
body.theme-dark .related > h2{color:#fff}
body.theme-dark .card{background:#0f0f0f; border-color:#2a2a2a; color:#ededed}
body.theme-dark .card:hover{border-color:#666}
body.theme-dark .card-t{color:#fff}
body.theme-dark .card-d,body.theme-dark .card-m{color:rgba(237,237,237,.6)}
body.theme-dark .card-cat{color:var(--accent)}
body.theme-dark .tryblock{background:#0a0a0a; border-color:#2a2a2a}
body.theme-dark .tryblock-b{background:#fff; color:#000; text-decoration:none}
body.theme-dark .foot{color:rgba(237,237,237,.55); border-top-color:#1f1f1f}
body.theme-dark .foot-c a{color:rgba(237,237,237,.6)}
body.theme-dark .foot-c b{color:#fff}
@media(max-width:560px){ body.theme-dark .post h1,body.theme-dark .wrap > h1{font-size:28px} body.theme-dark .body h2{font-size:24px} }

/* СЕОН 04.10.2026: сезонный блок в середине статьи (зима / Новый год) */
.sb{margin:1.8em 0 2em; padding:20px 20px 18px; background:var(--card); border:1px solid var(--line); border-radius:16px; box-shadow:0 2px 14px rgba(20,40,30,.06)}
.sb-h{margin:0 0 6px; font-size:19px; font-weight:700; color:var(--ink); line-height:1.35}
.sb-t{margin:0 0 14px; font-size:15px; color:var(--muted); line-height:1.55}
.sb-g{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0 0 14px}
.sb-i{display:block; position:relative; border-radius:12px; overflow:hidden; background:var(--line); aspect-ratio:1/1; text-decoration:none}
.sb-i img{display:block; width:100%; height:100%; object-fit:cover; transition:transform .25s ease}
.sb-i:hover img{transform:scale(1.04)}
.sb-i span{position:absolute; left:0; right:0; bottom:0; padding:22px 8px 7px; font-size:12.5px; font-weight:600; line-height:1.25; color:#fff; background:linear-gradient(to top,rgba(0,0,0,.72),rgba(0,0,0,0))}
.sb-i:hover{text-decoration:none}
.sb-b{margin:0; display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px}
.sb-btn{display:inline-block; background:var(--accent); color:#fff; font-weight:600; padding:11px 20px; border-radius:11px; font-size:16px}
.sb-btn:hover{background:var(--accent-d); text-decoration:none}
.sb-l{font-size:14px; color:var(--muted)}
.sb-song,.sb-video{border-left:4px solid var(--accent)}
body.theme-dark .sb{box-shadow:none}
body.theme-dark .sb-btn{color:#0b0f14}
@media (max-width:640px){
  .sb{padding:16px 14px 14px}
  .sb-g{grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px}
  .sb-h{font-size:17px}
  .sb-btn{width:100%; text-align:center}
}

/* СЕОН 04.10.2026: конверсия статьи → бесплатная проба */
.offer{display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; margin:12px 0 18px; padding:14px 16px; background:var(--card); border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:12px}
.offer-t{flex:1 1 280px; font-size:15.5px; line-height:1.5; color:var(--ink)}
.offer-btn{display:inline-block; background:var(--accent); color:#fff; font-weight:700; padding:11px 18px; border-radius:11px; font-size:15.5px; white-space:nowrap}
.offer-btn:hover{background:var(--accent-d); text-decoration:none}
.fig-go .fig-a{display:block}
.fig-go .fig-a img{transition:opacity .2s ease}
.fig-go .fig-a:hover img{opacity:.92}
.fig-btn{display:inline-block; margin-top:4px; font-weight:700; color:var(--accent)}
.stk{position:fixed; left:10px; right:10px; bottom:10px; z-index:50; display:flex; gap:8px; align-items:center; background:var(--card); border:1px solid var(--line); border-radius:14px; padding:8px; box-shadow:0 6px 24px rgba(0,0,0,.18)}
.stk[hidden]{display:none !important}
.stk-btn{flex:1; text-align:center; background:var(--accent); color:#fff; font-weight:700; padding:12px 14px; border-radius:10px; font-size:16px}
.stk-btn:hover{text-decoration:none}
.stk-x{border:0; background:transparent; color:var(--muted); font-size:24px; line-height:1; padding:4px 8px; cursor:pointer}
@media (min-width:761px){.stk{display:none !important}}
body.theme-dark .offer-btn, body.theme-dark .stk-btn{color:#0b0f14}
@media (max-width:640px){.offer-btn{width:100%; text-align:center}}
.lp-links{margin:-1.2em 0 2em; text-align:center; font-size:14.5px; color:var(--muted)}

/* SEO restore: keep wide article tables scrollable on phones. */
@media(max-width:760px){.body table{display:block;max-width:100%;overflow-x:auto}}
