/* smfanton 2026. Part 1: CSS of the approved prototypes (design/prototypes/home-book.html: build.css_common + css_book + PAGE_CSS + brand.CSS), copied as is. */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:80px}
body{margin:0;background:var(--paper);color:var(--ink);font:var(--body-size)/1.65 var(--text-face);font-variant-numeric:tabular-nums lining-nums;-webkit-font-smoothing:antialiased}
::selection{background:var(--select);color:var(--ink)}
a{color:inherit;text-decoration-thickness:1px;text-underline-offset:.2em}
a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:2px}
img{max-width:100%;height:auto;display:block}
.progress{position:fixed;inset:0 0 auto 0;height:3px;z-index:20}
.progress span{display:block;height:100%;background:var(--accent);transform-origin:0 50%;transform:scaleX(0)}
header.site{display:flex;align-items:center;gap:32px;max-width:1180px;margin:0 auto;padding:22px 24px;border-bottom:1px solid var(--rule)}
.brand{font:600 19px/1.2 var(--head-face);text-decoration:none;letter-spacing:-.01em;white-space:nowrap}
header.site nav{flex:1}
header.site nav ul{display:flex;flex-wrap:wrap;gap:4px 22px;list-style:none;margin:0;padding:0;font:500 15px/1.4 var(--ui-face)}
header.site nav a{text-decoration:none;color:var(--muted)}
header.site nav a:hover{color:var(--ink)}
button.search{border:0;background:none;color:var(--ink);width:40px;height:40px;display:grid;place-items:center;cursor:pointer;border-radius:50%}
button.search:hover{background:var(--wash)}
button.search svg{width:22px;height:22px}
main{padding:0 24px}
article{max-width:var(--measure);margin:0 auto;padding:48px 0 32px}
.crumbs{font:500 14px/1.4 var(--ui-face);color:var(--muted);display:flex;gap:10px;flex-wrap:wrap}
.crumbs a{text-decoration:none}
.crumbs a:hover{color:var(--ink);text-decoration:underline}
h1{font:var(--h1-weight) clamp(32px,5vw,var(--h1-max))/1.12 var(--head-face);letter-spacing:-.02em;margin:18px 0 28px;text-wrap:balance}
.author{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.author img{width:64px;height:64px;border-radius:50%;object-fit:cover}
.who{display:flex;flex-direction:column;font:15px/1.35 var(--ui-face);margin-right:auto}
.who strong{font-weight:600;font-size:16px}
.who span{color:var(--muted)}
.channels{display:flex;gap:8px;list-style:none;margin:0;padding:0;font:500 15px/1 var(--ui-face)}
.channels a{display:inline-flex;align-items:center;gap:8px;text-decoration:none;padding:10px 14px;border-radius:999px;border:1px solid var(--rule);transition:background .2s,border-color .2s}
.channels a:hover{background:var(--wash);border-color:var(--ink)}
.channels svg{width:18px;height:18px}
.body{margin-top:40px}
.body p{margin:0 0 1.15em}
.body h2{font:var(--h2-weight) clamp(24px,3vw,30px)/1.25 var(--head-face);letter-spacing:-.015em;margin:2.2em 0 .7em;text-wrap:balance}
.body strong{font-weight:650}
.body a{color:var(--accent)}
figure.wide{margin:0 0 1.6em}
figure.wide img{width:100%;border-radius:4px}
.after{margin-top:64px;border-top:1px solid var(--rule);padding-top:40px}
.after h2{font:var(--h2-weight) 24px/1.3 var(--head-face);margin:0 0 10px;letter-spacing:-.01em}
.after p{margin:0 0 18px}
.subscribe .channels{margin-top:4px}
.channels.big a{padding:13px 20px;font-size:16px;background:var(--ink);color:var(--paper);border-color:var(--ink)}
.channels.big a:hover{background:var(--accent);border-color:var(--accent)}
.consult{margin-top:44px}
.write{display:flex;flex-wrap:wrap;gap:8px 24px;list-style:none;margin:0;padding:0;font:500 16px/1.4 var(--ui-face)}
.write a{display:inline-flex;gap:8px;align-items:center;color:var(--accent);text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:2px}
.write svg{width:18px;height:18px}
.disclaimer{margin-top:40px!important;font:14px/1.5 var(--ui-face);color:var(--muted)}
.discuss{display:inline-block;font:500 16px/1.4 var(--ui-face);color:var(--accent);margin-bottom:48px}
.related ul{list-style:none;margin:0;padding:0}
.related li{border-top:1px solid var(--rule)}
.related li:last-child{border-bottom:1px solid var(--rule)}
.related a{display:block;padding:16px 0;text-decoration:none;font:var(--h2-weight) 19px/1.35 var(--head-face)}
.related a:hover{color:var(--accent)}
.site-foot{border-top:1px solid var(--rule);margin-top:40px;padding:28px 24px 40px;text-align:center;font:14px/1.6 var(--ui-face);color:var(--muted)}
.site-foot p{margin:0}
@media (max-width:860px){
  header.site{flex-wrap:wrap;gap:12px 20px;padding:16px 20px}
  header.site nav{order:3;flex-basis:100%;overflow-x:auto}
  header.site nav ul{flex-wrap:nowrap;white-space:nowrap}
  button.search{margin-left:auto}
  main{padding:0 20px}
  article{padding-top:28px}
  .author .channels{flex-basis:100%}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

:root{--paper:#ffffff;--ink:#191919;--muted:#5e5a55;--accent:#8c2a1c;--rule:#e4e1dc;--wash:#f5f4f2;--select:#f1dcd6;
--text-face:"Literata",Georgia,serif;--head-face:"Literata",Georgia,serif;--ui-face:"Golos Text",system-ui,sans-serif;
--body-size:19px;--measure:660px;--h1-max:54px;--h1-weight:600;--h2-weight:600}
body{font-optical-sizing:auto;line-height:1.62}
h1{font-variation-settings:"opsz" 60}
.brand{font-family:var(--head-face);font-weight:600}
.running{position:fixed;inset:0 0 auto 0;z-index:15;background:rgba(255,255,255,.96);border-bottom:1px solid var(--rule);
  transform:translateY(-100%);transition:transform .4s cubic-bezier(.16,1,.3,1)}
.running div{max-width:1180px;margin:0 auto;padding:12px 24px;display:flex;gap:14px;font:500 14px/1.3 var(--ui-face);color:var(--muted);white-space:nowrap;overflow:hidden}
.running b{color:var(--ink);font-weight:600;overflow:hidden;text-overflow:ellipsis}
body.scrolled .running{transform:none}
.progress{z-index:25}
.author{border-top:1px solid var(--ink);border-bottom:1px solid var(--rule);padding:16px 0}
.author .channels a{border-color:transparent;padding:10px 12px;color:var(--accent)}
.author .channels a:hover{border-color:var(--rule);background:none}
.body>p:first-of-type::first-letter{float:left;font:600 4.1em/.82 var(--head-face);margin:.06em .1em 0 0;color:var(--accent)}
.body h2{text-align:left}
.ref{font:600 .62em/0 var(--ui-face);color:var(--accent);margin-left:1px}
.side{font:14.5px/1.5 var(--ui-face);color:var(--muted);margin:-.4em 0 1.2em;padding-left:22px;position:relative}
.side .n{position:absolute;left:0;top:0;font-weight:700;color:var(--accent)}
/* Text column is centred; margin notes stay inline under their paragraph (old posts have none). */
.body blockquote{margin:1.8em 0;padding:4px 0 4px 28px;font-style:italic;color:#3a3633;position:relative}
.body blockquote::before{content:"";position:absolute;left:0;top:.35em;bottom:.35em;width:1px;background:var(--accent)}
.channels.big a{background:var(--accent);border-color:var(--accent)}
.channels.big a:hover{background:var(--ink);border-color:var(--ink)}
.related a{font-weight:500}

.mosaic{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:auto;gap:28px}
.mosaic li{position:relative;display:flex;flex-direction:column}
.mosaic .ph img,.newsgrid .ph img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:8px;display:block;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.mosaic .ph,.newsgrid .ph{display:block;overflow:hidden;border-radius:8px;margin-bottom:14px}
.mosaic .ph:hover img,.newsgrid .ph:hover img{transform:scale(1.03)}
.mosaic a.t,.newsgrid a.t{display:block;font:600 20px/1.3 var(--head-face);text-decoration:none;margin-top:4px;text-wrap:balance}
.mosaic p,.newsgrid p{margin:8px 0 0;font-size:16px;line-height:1.5;color:#4a4642}
.mosaic li.big{grid-column:span 2;grid-row:span 2}
.mosaic li.big .ph img{aspect-ratio:16/10}
.mosaic li.big a.t{font-size:clamp(26px,2.6vw,34px);line-height:1.2}
.mosaic li.big p{font-size:18px}
.mosaic li.tall{grid-row:span 2}
.mosaic li.tall .ph img{aspect-ratio:3/4}
.loadmore{display:block;margin:36px auto 0;font:500 16px/1 var(--ui-face);padding:14px 26px;border-radius:999px;border:1px solid var(--ink);background:none;color:var(--ink);cursor:pointer}
.loadmore:hover{background:var(--ink);color:#fff}
.newsgrid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:28px}
.services-inline{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px;font:500 14.5px/1 var(--ui-face)}
.services-inline span{padding:9px 14px;border-radius:999px;background:var(--wash);border:1px solid var(--rule)}
.services-inline a{padding:9px 4px;color:var(--accent)}
.report-pic{margin:0;align-self:start}
.report-pic img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px}
.report-pic figcaption{margin-top:12px;font:600 18px/1.35 var(--head-face)}
.report-pic figcaption a{text-decoration:none}
.courses-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:20px}
.courses-grid li{position:relative;border:1px solid var(--rule);border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:8px}
.courses-grid li.hit{background:var(--wash);border-color:var(--wash)}
.courses-grid .cimg{height:96px;display:flex;align-items:center;margin-bottom:6px}
.courses-grid .cimg img{max-height:96px;width:auto;border-radius:6px}
.courses-grid li.hit .cimg{height:150px}.courses-grid li.hit .cimg img{max-height:150px;width:100%;object-fit:cover}
.courses-grid em{position:absolute;top:14px;right:14px;font:600 12px/1 var(--ui-face);text-transform:uppercase;letter-spacing:.06em;background:var(--accent);color:#fff;padding:6px 9px;border-radius:999px;font-style:normal}
.courses-grid b{font:600 19px/1.3 var(--head-face)}
.courses-grid li.hit b{padding-right:52px;font-size:22px}
.courses-grid span{font:15px/1.5 var(--ui-face);color:var(--muted);flex:1}
.clink{font:500 15px/1.4 var(--ui-face);color:var(--accent);text-decoration:none;margin-top:6px}
.subband{background:var(--accent);color:#fff;padding:48px 24px}
.subband .wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:32px;align-items:center}
.subband h2{font:600 34px/1.15 var(--head-face);margin:0 0 8px}
.subband p{margin:0;color:#f3dcd6}
.subband .channels.big a{background:#fff;color:var(--ink);border-color:#fff}
.subband .channels.big a:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
@media (max-width:980px){.newsgrid{grid-template-columns:1fr 1fr}.courses-grid{grid-template-columns:1fr 1fr}}
@media (max-width:860px){
  .mosaic{grid-template-columns:1fr}
  .mosaic li.big,.mosaic li.tall{grid-column:auto;grid-row:auto}
  .mosaic li.tall .ph img{aspect-ratio:3/2}
  .newsgrid{grid-template-columns:1fr;gap:24px}
  .newsgrid li{display:grid;grid-template-columns:110px 1fr;gap:14px}
  .newsgrid .ph{margin:0}.newsgrid p{display:none}.newsgrid a.t{font-size:17px}
  .courses-grid{grid-template-columns:1fr}
  .subband .wrap{grid-template-columns:1fr}
  .subband h2{font-size:28px}
}

.wrap{max-width:1080px;margin:0 auto}
.brand{display:inline-flex;align-items:center;gap:12px}
.mark{width:auto;height:38px;display:block}
.brand{font-size:21px}
.sec{padding:64px 0;border-top:1px solid var(--rule)}
.sec>h2,.head2{font:600 32px/1.2 var(--head-face);letter-spacing:-.015em;margin:0 0 30px;display:flex;align-items:baseline;justify-content:space-between;gap:20px}
.head2 a,.sec>h2 a{font:500 15px/1.4 var(--ui-face);color:var(--accent);letter-spacing:0;white-space:nowrap}
.more{font:500 15px/1.4 var(--ui-face);color:var(--accent);margin-top:22px;display:inline-block}
.band{background:var(--wash);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.band .sec{border-top:0}
/* home: author */
.hero{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:72px;align-items:start;padding:72px 0 64px}
.hero h1{font-size:clamp(38px,5vw,64px);margin:0 0 24px}
.hero .lede{font-size:22px;line-height:1.5;margin:0 0 18px;max-width:33em}
.hero p{margin:0 0 14px;max-width:36em}
.facts{display:flex;flex-wrap:wrap;gap:10px 34px;margin:30px 0 0;padding:20px 0 0;border-top:1px solid var(--rule);list-style:none;font:15px/1.35 var(--ui-face);color:var(--muted)}
.facts b{display:block;font:600 28px/1.1 var(--head-face);color:var(--ink);margin-bottom:4px}
.card{text-align:center;padding:28px 24px;background:var(--wash);border-radius:16px}
.card img{width:180px;height:180px;border-radius:50%;object-fit:cover;margin:0 auto 18px;box-shadow:0 0 0 6px #fff}
.card strong{display:block;font:600 21px/1.3 var(--head-face)}
.card>span{display:block;font:15px/1.4 var(--ui-face);color:var(--muted);margin:4px 0 20px}
.btn{display:block;white-space:nowrap;font:500 16px/1.2 var(--ui-face);text-decoration:none;padding:15px 18px;border-radius:999px;margin-bottom:10px}
.btn.primary{background:var(--accent);color:#fff}
.btn.primary:hover{background:var(--ink)}
.card .channels{justify-content:center}
.card .channels a{border-color:var(--rule);white-space:nowrap;padding:10px 12px;background:#fff}
/* services */
.services{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-top:1px solid var(--ink)}
.services li{padding:22px 24px 6px 0}
.services li+li{padding-left:24px;border-left:1px solid var(--rule)}
.services .n{display:block;font:600 14px/1 var(--ui-face);color:var(--accent);margin-bottom:14px}
.services b{display:block;font:600 20px/1.3 var(--head-face);margin-bottom:8px}
.services span{font:15.5px/1.5 var(--ui-face);color:var(--muted)}
/* posts */
.lead-post{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:40px;align-items:center;padding-bottom:40px;border-bottom:1px solid var(--rule);margin-bottom:36px}
.lead-post img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:6px}
.lead-post a.t{font:600 clamp(28px,3vw,36px)/1.2 var(--head-face);text-decoration:none;letter-spacing:-.015em;display:block;margin:6px 0 14px}
.lead-post p{margin:0;font-size:18.5px;line-height:1.55;color:#3d3a36}
.rub{display:inline-block;font:500 13.5px/1.4 var(--ui-face);color:var(--accent);text-decoration:none}
.grid3{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:36px 32px}
.grid3 img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:6px;margin-bottom:14px}
.grid3 a.t{display:block;font:600 20px/1.3 var(--head-face);text-decoration:none;margin-top:4px}
.grid3 p{margin:8px 0 0;font-size:16px;line-height:1.5;color:#4a4642}
a.t:hover{color:var(--accent)}
/* ledger */
.ledger{width:100%;border-collapse:collapse;font:16px/1.4 var(--ui-face);font-variant-numeric:tabular-nums}
.ledger th{font:600 13px/1.3 var(--ui-face);letter-spacing:.04em;text-transform:uppercase;color:var(--muted);text-align:left;padding:0 0 10px;border-bottom:1px solid var(--ink)}
.ledger td{padding:14px 0;border-bottom:1px solid var(--rule);vertical-align:baseline}
.ledger td.when{width:150px;color:var(--muted)}
.ledger td.what a{font:500 18px/1.35 var(--head-face);text-decoration:none}
.ledger td.what a:hover{color:var(--accent)}
.ledger td.res{text-align:right;font:600 18px/1.2 var(--head-face);white-space:nowrap;padding-left:20px}
.ledger .up{color:#2f6b3a}.ledger .down{color:var(--accent)}
.note-legal{font:14px/1.5 var(--ui-face);color:var(--muted);margin:14px 0 0}
.courses{list-style:none;margin:0;padding:0}
.courses li{padding:16px 0;border-bottom:1px solid var(--rule)}
.courses li:first-child{padding-top:0}
.courses a{font:600 19px/1.35 var(--head-face);text-decoration:none}
.courses span{display:block;font:15px/1.45 var(--ui-face);color:var(--muted);margin-top:4px}
.courses em{font-style:normal;font:500 13px/1 var(--ui-face);color:#fff;background:var(--accent);padding:4px 8px;border-radius:999px;margin-left:8px;vertical-align:3px}
.two{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:72px}
.rubrics{list-style:none;margin:0;padding:0;columns:3;column-gap:48px}
.rubrics li{break-inside:avoid;display:flex;align-items:baseline;gap:8px;padding:9px 0;border-bottom:1px dotted #cfcac3}
.rubrics a{font:17px/1.4 var(--head-face);text-decoration:none}
.rubrics a:hover{color:var(--accent)}
.rubrics i{flex:1}
.rubrics small{font:14px var(--ui-face);color:var(--muted);font-variant-numeric:tabular-nums}
.sub{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:40px;align-items:center}
.sub h2{font:600 30px/1.2 var(--head-face);margin:0 0 8px;letter-spacing:-.01em}
.sub p{margin:0;color:var(--muted)}
/* dark footer */
.dark-foot{background:#1d1b19;color:#d9d4cc;margin-top:0;padding:56px 24px 32px;font:15px/1.6 var(--ui-face)}
.dark-foot a{color:#fff;text-decoration:none}
.dark-foot a:hover{text-decoration:underline}
.dark-foot .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:48px}
.dark-foot h3{font:600 13px/1.3 var(--ui-face);letter-spacing:.06em;text-transform:uppercase;color:#9b958c;margin:6px 0 14px}
.dark-foot ul{list-style:none;margin:0;padding:0}
.dark-foot li{padding:4px 0}
.dark-foot .channels{margin-top:18px}
.dark-foot .channels a{border-color:#4a4642;color:#fff}
.dark-foot .channels a:hover{background:#2c2926}
.dark-foot .legal{border-top:1px solid #3a3633;margin-top:40px;padding-top:22px;color:#9b958c;font-size:13.5px}
.dark-foot .legal p{margin:0 0 4px}
/* rubric */
.rubric-top{padding:44px 0 44px}
.rubric-top h1{margin:14px 0 18px}
.rubric-top .desc{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:56px;align-items:start}
.rubric-top p{font-size:20px;line-height:1.55;margin:0}
.rubric-top .count{font:15px/1.6 var(--ui-face);color:var(--muted);border-left:1px solid var(--rule);padding-left:24px}
.rubric-top .count b{display:block;font:600 40px/1.1 var(--head-face);color:var(--ink)}
.start{padding:48px 0 8px}
.rows{list-style:none;margin:0;padding:0;border-top:1px solid var(--ink)}
.rows li{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:32px;padding:26px 0;border-bottom:1px solid var(--rule);align-items:start}
.rows a.t{font:600 23px/1.3 var(--head-face);text-decoration:none;letter-spacing:-.01em}
.rows p{margin:8px 0 0;font-size:17px;line-height:1.55;color:#3d3a36}
.rows img{width:200px;aspect-ratio:3/2;object-fit:cover;border-radius:6px}
.pager{display:flex;gap:6px;list-style:none;padding:28px 0 64px;margin:0;font:500 16px/1 var(--ui-face)}
.pager a,.pager span{display:grid;place-items:center;min-width:44px;height:44px;padding:0 12px;border-radius:999px;text-decoration:none;border:1px solid var(--rule)}
.pager a:hover{background:var(--wash)}
.pager .cur{background:var(--ink);color:#fff;border-color:var(--ink)}
.pager .gap{border:0}
.pager .next{margin-left:auto;color:var(--accent);border-color:var(--accent)}
@media (max-width:980px){
  .services{grid-template-columns:1fr 1fr}
  .services li:nth-child(3){padding-left:0;border-left:0}
  .grid3{grid-template-columns:1fr 1fr}
}
@media (max-width:860px){
  .hero{grid-template-columns:1fr;gap:28px;padding:32px 0 44px}
  .card{order:-1;display:grid;grid-template-columns:88px 1fr;gap:2px 16px;text-align:left;align-items:center;padding:18px}
  .card img{width:88px;height:88px;margin:0;grid-row:span 2;box-shadow:none}
  .card>span{margin:0}
  .card .btn,.card .channels{grid-column:1/-1}
  .card .btn{margin-top:14px;text-align:center}
  .card .channels{justify-content:flex-start}
  .facts{gap:14px 26px}
  .facts b{font-size:24px}
  .services{grid-template-columns:1fr}
  .services li,.services li+li{padding:18px 0;border-left:0;border-bottom:1px solid var(--rule)}
  .lead-post{grid-template-columns:1fr;gap:18px}
  .grid3{grid-template-columns:1fr;gap:30px}
  .two{grid-template-columns:1fr;gap:56px}
  .rubrics{columns:1}
  .sub{grid-template-columns:1fr;gap:20px}
  .sec{padding:48px 0}
  .sec>h2,.head2{font-size:26px}
  .ledger td.when{width:auto;display:block;padding-bottom:0;border-bottom:0}
  .ledger td.what{display:block;padding-top:2px}
  .ledger tr{display:grid;grid-template-columns:1fr auto;border-bottom:1px solid var(--rule)}
  .ledger td{border-bottom:0}
  .ledger td.when{grid-column:1/-1}
  .ledger thead{display:none}
  .dark-foot .cols{grid-template-columns:1fr;gap:32px}
  .rubric-top .desc{grid-template-columns:1fr;gap:20px}
  .rubric-top .count{border-left:0;padding-left:0}
  .rows li{grid-template-columns:minmax(0,1fr) 104px;gap:16px}
  .rows img{width:104px}
  .rows a.t{font-size:19px}
  .rows p{display:none}
  .pager .num:not(.cur){display:none}
}

:root{--paper:#ffffff;--ink:#313431;--muted:#6f7470;--accent:#2191dd;--accent-dark:#0366ab;--accent-edge:#1176bb;
--rule:#ebebeb;--wash:#e6f1fd;--select:#ccdeea;--shadow:0 0 15px 0 rgba(4,73,118,.2);--up:#2c8300;
--text-face:"Montserrat",Arial,sans-serif;--head-face:"Montserrat",Arial,sans-serif;--ui-face:"Montserrat",Arial,sans-serif;
--body-size:17px;--h1-weight:700;--h2-weight:700}
body{line-height:1.7}
h1{letter-spacing:-.02em;font-variation-settings:normal}
.brand{font-family:var(--head-face);font-weight:700;color:var(--accent-dark)}
/* header: white row with logo, menu as the dark-blue bar from the current site */
header.site{flex-wrap:wrap;border-bottom:0;padding-bottom:0;row-gap:16px}
header.site nav{order:3;flex-basis:100%;background:var(--accent-dark);box-shadow:0 0 0 100vmax var(--accent-dark);clip-path:inset(0 -100vmax)}
header.site nav ul{gap:0;font:600 14px/1 var(--ui-face);text-transform:none}
header.site nav a{display:block;color:#fff;padding:21px 18px;transition:background .2s}
header.site nav a:hover{background:var(--accent);color:#fff}
button.search{order:2;margin-left:auto}
/* section titles in the blog's own manner: caps, second half on a blue plate */
.sec>h2,.head2,.after h2,.block-title{font:700 24px/1.3 var(--head-face);text-transform:uppercase;letter-spacing:.01em}
.sec>h2 span,.head2 span,.after h2 span,.block-title span{background:var(--accent);color:#fff;padding:0 6px;font-weight:600}
.sec>h2,.head2{display:block}
.sec>h2 a,.head2 a{float:right;margin-top:6px;text-transform:none;font:500 14px/1.4 var(--ui-face);color:#999}
.sec>h2 a:hover,.head2 a:hover{color:var(--accent)}
/* cards: the blue hover shadow of the current theme */
.mosaic li,.newsgrid li,.grid3 li,.courses-grid li{border-radius:6px;transition:box-shadow .25s}
.mosaic li:hover,.newsgrid li:hover,.grid3 li:hover,.courses-grid li:hover{box-shadow:var(--shadow)}
.mosaic li,.newsgrid li,.grid3 li{padding-bottom:16px}
.mosaic .tx,.newsgrid .tx{padding:0 14px}
.mosaic .ph,.newsgrid .ph,.grid3 .ph{border-radius:6px 6px 0 0}
.grid3 li .t,.grid3 li p{padding:0 14px}
a.t:hover{color:var(--accent-dark)}
.rub{color:var(--accent)}
/* buttons: the site's blue button with a darker bottom edge */
.btn.primary,.channels.big a,.loadmore{background:var(--accent);color:#fff;border:0;border-bottom:2px solid var(--accent-edge);border-radius:4px;font-weight:700}
.btn.primary:hover,.channels.big a:hover,.loadmore:hover{background:var(--accent-dark);color:#fff}
.loadmore{padding:14px 34px;text-transform:uppercase;font-size:14px;letter-spacing:.03em}
.loadmore::after{content:" ↻";font-weight:700}
.channels a{border-radius:4px}
.channels a:hover{border-color:var(--accent)}
.more,.clink,.services-inline a{color:var(--accent-dark)}
/* hero card and bands in the light blue of "О блоге" */
.card{background:var(--wash);border:1px dashed var(--accent-dark);border-radius:6px}
.card img{box-shadow:0 0 0 6px #fff}
.band{background:var(--wash);border-color:#d3e6f8}
.services-inline span{background:#fff;border-color:#cfe2f6;color:var(--accent-dark)}
.facts b{color:var(--accent-dark);font-weight:700}
/* quote and lists from the current article styles */
.body blockquote{background:var(--wash);border:1px dashed var(--accent-dark);border-radius:4px;padding:14px 28px;font-style:normal;color:var(--ink)}
.body blockquote::before{display:none}
.ref,.side .n{color:var(--accent)}
.body>p:first-of-type::first-letter{float:none;font:inherit;color:inherit;margin:0}
.body a{color:var(--accent-dark)}
.author{border-top:1px solid var(--rule)}
.author .channels a{color:var(--accent-dark)}
/* ledger */
.ledger th{border-bottom-color:var(--accent-dark)}
.ledger .up{color:var(--up)}.ledger .down{color:var(--ink)}
.courses-grid li.hit{background:var(--wash);border:1px dashed var(--accent-dark)}
.courses-grid em{background:var(--accent);border-radius:3px}
/* subscribe band and footer in brand blues */
.subband{background:var(--accent);background-image:linear-gradient(100deg,var(--accent) 55%,var(--accent-dark) 55.1%)}
.subband p{color:#e6f1fd}
.subband .channels.big a{background:#fff;color:var(--accent-dark);border-bottom-color:#cfe2f6}
.subband .channels.big a:hover{background:var(--wash)}
.dark-foot{background:#0b3d63;color:#d7e6f3}
.dark-foot h3{color:#8fb8da}
.dark-foot .legal{border-top-color:#1f5683;color:#8fb8da}
.dark-foot .channels a{border-color:#2f6894}
.dark-foot .channels a:hover{background:var(--accent-dark)}
.rows{border-top-color:var(--accent-dark)}
.rubric-list{border-top-color:var(--accent-dark)}
.pager .cur{background:var(--accent);border-color:var(--accent)}
.pager .next{color:var(--accent-dark);border-color:var(--accent-dark)}
.rubric-top .count b{color:var(--accent-dark)}
.rubrics li{border-bottom:1px solid var(--rule)}
.rubrics a:hover{color:var(--accent)}
.progress span{background:var(--accent)}
.running{border-bottom-color:var(--rule)}
.running span{color:var(--accent)}
/* round "to top" button, as on the current site */
.gotop{position:fixed;right:26px;bottom:26px;width:44px;height:44px;border-radius:50%;background:var(--accent);color:#fff;border:0;display:grid;place-items:center;font:700 18px/1 var(--ui-face);cursor:pointer;opacity:0;transform:translateY(12px);transition:opacity .3s,transform .3s;z-index:30}
body.scrolled .gotop{opacity:1;transform:none}
.gotop:hover{background:var(--accent-dark)}
@media (max-width:860px){
  header.site nav a{padding:16px 14px}
  .sec>h2,.head2,.after h2{font-size:20px}
}

/* ===== Part 2: theme additions for real WordPress content (not in the prototypes) ===== */
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-9999px;top:8px;z-index:40;background:#fff;padding:8px 12px}
.skip:focus{left:8px}
header.site nav ul li{margin:0}
header.site nav .current-menu-item>a,header.site nav .current-menu-parent>a{background:var(--accent)}
.search-panel{order:4;flex-basis:100%;padding:0 0 16px}
.search-panel[hidden]{display:none}
.search-form{display:flex;gap:8px;max-width:640px}
.search-form input[type=search]{flex:1;min-width:0;font:500 16px/1.4 var(--ui-face);padding:12px 14px;border:1px solid var(--rule);border-radius:4px;color:var(--ink)}
.search-form input[type=search]:focus{outline:2px solid var(--accent);outline-offset:0;border-color:var(--accent)}
.search-form .btn{padding:12px 20px;font:700 15px/1 var(--ui-face);cursor:pointer}
/* article text from the old editor */
.body{overflow-wrap:break-word}
.body img{height:auto}
.body figure,.body .wp-caption{margin:0 0 1.6em;max-width:100%!important}
.body .wp-caption-text,.body figcaption{font:500 14px/1.4 var(--ui-face);color:var(--muted);margin-top:8px}
.body .aligncenter{display:block;margin-left:auto;margin-right:auto}
.body .alignleft{float:left;margin:.3em 1.4em .8em 0}
.body .alignright{float:right;margin:.3em 0 .8em 1.4em}
.body h3{font:600 21px/1.3 var(--head-face);margin:1.8em 0 .6em}
.body ul,.body ol{padding-left:1.4em;margin:0 0 1.15em}
.body li{margin:0 0 .4em}
.body iframe,.body video,.body object,.body embed{max-width:100%}
.body pre{overflow-x:auto}
.body::after{content:"";display:block;clear:both}
.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;margin:0 0 1.6em}
.table-wrap table{border-collapse:collapse;min-width:100%;font-size:15px;line-height:1.45}
.table-wrap td,.table-wrap th{border:1px solid var(--rule);padding:8px 10px;vertical-align:top;text-align:left}
.table-wrap th,.table-wrap thead td{background:var(--wash);font-weight:600}
.video{position:relative;aspect-ratio:16/9;margin:0 0 1.6em;background:#000;border-radius:4px;overflow:hidden}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.alink{color:var(--accent-dark);text-decoration:underline;text-underline-offset:.2em;cursor:pointer}
.toc{border:1px solid var(--rule);border-radius:6px;padding:12px 18px;margin:0 0 2em;font:500 15px/1.5 var(--ui-face)}
.toc summary{cursor:pointer;font-weight:700;color:var(--accent-dark)}
.toc ol{margin:.8em 0 .2em;padding-left:1.3em}
.toc li{margin:0 0 .35em}
.toc a{color:var(--ink);text-decoration:none}
.toc a:hover{color:var(--accent-dark);text-decoration:underline}
.updated{display:block;margin:12px 0 0;font:500 14px/1.4 var(--ui-face);color:var(--muted)}
.related .yarpp-related h3,.related .yarpp-related h2{display:none}
/* plain pages, search, 404 */
.plain-top{padding:40px 0 8px}
.plain-top h1{margin-bottom:12px}
.page-text{max-width:var(--measure,680px);margin:0 auto;padding:0 0 48px}
.empty{padding:24px 0 64px;color:var(--muted)}
.notfound{padding:24px 0 64px}
.notfound .search-form{margin:20px 0 32px}
.notfound p .btn{display:inline-block}
.archives h2{font:700 22px/1.3 var(--head-face);margin:2em 0 .6em}
.archives ul{columns:2;column-gap:40px;padding-left:1.2em}
/* old shortcodes */
.podpiska{background:var(--wash);border:1px dashed var(--accent-dark);border-radius:6px;padding:16px 20px;margin:0 0 1.6em}
.podpiska p{margin:0 0 12px;font-weight:600}
.list_report{margin:0 0 1.6em}
.list_report_title{font:700 18px/1.3 var(--head-face);margin:0 0 10px}
.list_report ul{padding-left:1.2em}
/* wide content may leave the text column on big screens */
@media (min-width:1180px){
  .body>.table-wrap{grid-column:1/-1}
}
@media (max-width:860px){
  .body .alignleft,.body .alignright{float:none;margin:0 auto 1em}
  .archives ul{columns:1}
}
.body .legacy-h1{margin:0 0 1.15em}
/* ===== Part 3: Anton's notes 2026-10-24 ===== */
/* denser home: less empty space between sections */
.hero{padding:36px 0 28px;gap:48px}
.hero h1{margin:0 0 16px}
.hero p{font-size:17px;line-height:1.65;margin:0 0 12px;max-width:40em}
.facts{margin:20px 0 0;padding:16px 0 0}
.services-inline{margin-top:16px}
.sec{padding:36px 0}
.sec>h2,.head2{margin:0 0 20px}
.mosaic,.newsgrid{gap:20px}
.loadmore{display:block;width:max-content;margin:24px auto 0;text-decoration:none}
.subband{padding:36px 24px}
.dark-foot{padding-top:40px}
/* reading progress: a bit thicker, always on top */
.progress{height:4px;z-index:1000}
/* card banner from AdsPlacer */
.card-banner{margin:0 0 1.6em}
.card-banner p{margin:0}
.card-banner img{width:100%;height:auto;border-radius:6px}
/* "Подписывайся на мои соцсети": the block of the current site (old style.css .girl), photo replaced */
.girl{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;box-shadow:0 0 15px rgba(4,73,118,.17);border-radius:4px;padding:25px 30px;margin:0 0 40px;background:#fff}
.girl9{color:#151515;font:700 21px/1.3 var(--ui-face);margin-bottom:15px}
.girl10{color:#595959;font:400 15px/1.5 var(--ui-face)}
#share-sign{display:flex;gap:15px;margin-top:20px}
#share-sign a{display:block;width:43px;height:43px;background:no-repeat center/contain}
#share-sign .youtube{background-image:url(/wp-content/uploads/2019/12/youtube.png)}
#share-sign .vKontakte{background-image:url(/wp-content/uploads/2019/12/vk.png)}
#share-sign .telegram{background-image:url(/wp-content/uploads/2019/12/tomazzo.png)}
.girl-photo{width:120px;height:120px;border-radius:50%;object-fit:cover;flex:none}
@media (max-width:860px){
  .hero{padding:24px 0 20px;gap:24px}
  .sec{padding:28px 0}
  .girl{padding:16px 18px;gap:14px}
  .girl-photo{width:80px;height:80px}
}

/* ===== Part 4: Anton's notes 2, 2026-10-24: header, hero and reading variants ===== */
/* header A: one dark-blue bar, logo and menu in a single row */
body.head-a header.site{max-width:none;margin:0;background:var(--accent-dark);padding:0 max(24px,calc((100% - 1132px)/2));flex-wrap:nowrap;gap:24px;row-gap:0;border:0}
body.head-a header.site .brand{color:#fff;font-size:18px;white-space:nowrap}
body.head-a header.site nav{order:2;flex:1 1 auto;flex-basis:auto;background:none;box-shadow:none;clip-path:none;min-width:0}
body.head-a header.site nav ul{justify-content:flex-end}
body.head-a header.site nav a{padding:22px 13px}
body.head-a header.site button.search{order:3;margin-left:0;color:#fff}
body.head-a header.site button.search:hover{background:rgba(255,255,255,.14)}
body.head-a .search-panel{padding:0 0 14px}
/* header B: one white row, dark menu links, thin line under it */
body.head-b header.site{flex-wrap:nowrap;gap:24px;row-gap:0;padding:12px 24px;border-bottom:1px solid var(--rule)}
body.head-b header.site nav{order:2;flex:1 1 auto;flex-basis:auto;background:none;box-shadow:none;clip-path:none;min-width:0}
body.head-b header.site nav ul{justify-content:flex-end}
body.head-b header.site nav a{color:var(--ink);padding:10px 12px;border-radius:4px}
body.head-b header.site nav a:hover,body.head-b header.site nav .current-menu-item>a{background:var(--wash);color:var(--accent-dark)}
body.head-b header.site button.search{order:3;margin-left:0}
@media (max-width:860px){
  body.head-a header.site,body.head-b header.site{flex-wrap:wrap;padding:10px 16px 0}
  body.head-a header.site nav,body.head-b header.site nav{order:3;flex-basis:100%}
  body.head-a header.site nav ul,body.head-b header.site nav ul{justify-content:flex-start}
  body.head-a header.site nav a{padding:14px 12px}
  body.head-a header.site button.search,body.head-b header.site button.search{order:2;margin-left:auto}
  body.head-a header.site .brand,body.head-b header.site .brand{font-size:16px;flex:1 1 0;min-width:0;white-space:normal}
  header.site .brand .mark{height:30px}
  body.head-a header.site .search-panel,body.head-b header.site .search-panel{order:4}
}
/* hero: text left, photo with name, role, channels and button right (no card); facts and services below both */
.hero{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:28px 56px;align-items:center;padding:36px 0 28px}
.hero-text p{font-size:19px;line-height:1.6;margin:0 0 14px;max-width:none}
.hero-text p:last-child{margin-bottom:0}
.hero-side{text-align:center}
.hero-side .hero-photo{width:160px;height:160px;border-radius:50%;object-fit:cover;margin:0 auto 14px;box-shadow:0 0 0 6px var(--wash)}
.hero-side h1{font:700 24px/1.2 var(--head-face);margin:0 0 4px;letter-spacing:-.01em}
.hero-side .role{font:500 15px/1.4 var(--ui-face);color:var(--muted);margin:0 0 14px}
.hero-side .channels{justify-content:center;margin-bottom:12px}
.hero-side .channels a{color:var(--accent-dark);padding:8px 12px}
.hero-side .btn{display:block;padding:13px 16px;text-decoration:none;font:700 15px/1.2 var(--ui-face)}
.hero-bottom{grid-column:1/-1}
.hero-bottom .facts{margin:0;padding:18px 0 0}
@media (max-width:860px){
  .hero{grid-template-columns:1fr;gap:20px}
  .hero-side{order:-1}
  .hero-text p{font-size:17px}
}
.services-inline{gap:8px}
.services-inline a.svc{padding:9px 14px;border-radius:999px;background:#fff;border:1px solid #cfe2f6;color:var(--accent-dark);text-decoration:none;transition:background .2s,border-color .2s}
.services-inline a.svc:hover{background:var(--wash);border-color:var(--accent)}
.services-inline a.all{padding:9px 4px;color:var(--accent-dark)}
/* article text: fewer gaps, headings left as in T—Ж */
.body h2{margin:1.6em 0 .55em}
/* reading 1: Montserrat, tuned for long reading */
body.read-1 .body{font-size:18px;line-height:1.62;color:#222}
body.read-1 .body p{margin:0 0 1em}
body.read-1 .body h2{font-size:clamp(23px,2.4vw,27px);line-height:1.25}
/* reading 2: as T—Ж: serif text, sans headings and lists */
body.read-2 .body{font:20px/1.5 "PT Serif",Georgia,serif;color:#1f1f1f}
body.read-2 .body p{margin:0 0 .9em}
body.read-2 .body li{font:17px/1.55 var(--ui-face)}
body.read-2 .body h2{font:700 clamp(24px,2.6vw,30px)/1.2 var(--head-face);letter-spacing:-.01em}
body.read-2 .body h3{font-family:var(--head-face)}
body.read-2 .body blockquote{font:17px/1.55 var(--ui-face)}
@media (max-width:860px){
  body.read-1 .body{font-size:17px}
  body.read-2 .body{font-size:18px}
}
/* author line: lighter, no heavy top rule */
.author{border-top:1px solid var(--rule)}

/* hero side: "Автор блога" label, personal-message links */
.hero-label{display:inline-block;font:700 12px/1 var(--ui-face);letter-spacing:.08em;text-transform:uppercase;color:#fff;background:var(--accent);padding:5px 9px;border-radius:3px;margin-bottom:12px}
.hero-side .write-me{font:500 13px/1.3 var(--ui-face);color:var(--muted);margin:0 0 6px}
.hero-text a{color:var(--accent-dark);text-decoration:underline;text-underline-offset:.2em}

/* ===== Showcase of design elements (?smf_demo=1, preview only) ===== */
.demo{max-width:820px}
.demo-item{padding:32px 0;border-top:1px solid var(--rule)}
.demo-item>h2{font:700 24px/1.3 var(--head-face)!important;text-transform:none;margin:0 0 6px!important;text-align:left!important}
.demo-item>h2 b{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--accent);color:#fff;margin-right:10px;font-size:18px}
.demo .where{font:500 15px/1.5 var(--ui-face);color:var(--muted);margin:0 0 14px}
.demo-cover{margin:0 0 16px;background:var(--wash);border-radius:8px;padding:28px;display:grid;place-items:center}
.demo-cover img{max-height:220px;width:auto}
.demo-cover.small img{max-height:130px}
.demo-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.demo-facts li{display:flex;flex-direction:column}
.demo-facts i{display:block;width:28px;height:28px;color:var(--accent);margin-bottom:6px}
.demo-svc a.svc{display:inline-flex;align-items:center;gap:7px}
.demo-svc svg{width:17px;height:17px}
.demo-tldr{background:var(--wash);border-left:4px solid var(--accent);border-radius:4px;padding:16px 22px;margin:0 0 1em;font:16px/1.55 var(--ui-face)}
.demo-tldr span{display:block;font:700 13px/1 var(--ui-face);letter-spacing:.08em;text-transform:uppercase;color:var(--accent-dark);margin-bottom:10px}
.demo-tldr ul{margin:0;padding-left:1.2em}
.demo-note{background:var(--wash);border:1px dashed var(--accent-dark);border-radius:4px;padding:14px 20px;margin:0 0 1em;font:16px/1.55 var(--ui-face)}
.demo-note b{display:block;color:var(--accent-dark);margin-bottom:4px}
.demo-note.tip{background:#eef7e8;border-color:var(--up)}
.demo-note.tip b{color:var(--up)}
.demo-old{width:100%;border-radius:6px;margin-bottom:16px}
.demo-banner{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:20px;align-items:center;background:var(--wash);border-radius:8px;padding:22px 26px;text-decoration:none;color:var(--ink)}
.demo-banner b{display:block;font:700 24px/1.2 var(--head-face);color:var(--accent-dark);margin-bottom:8px}
.demo-banner ul{margin:0 0 14px;padding-left:1.2em;font:16px/1.6 var(--ui-face)}
.demo-banner .btn{display:inline-block;padding:11px 18px}
.demo-service{display:grid;grid-template-columns:110px minmax(0,1fr);gap:22px;align-items:center;box-shadow:0 0 15px rgba(4,73,118,.17);border-radius:6px;padding:22px 26px}
.demo-service img{width:110px;height:110px;border-radius:50%;object-fit:cover}
.demo-service b{display:block;font:700 20px/1.3 var(--head-face);margin-bottom:6px}
.demo-service p{margin:0 0 12px;font:16px/1.55 var(--ui-face)}
.demo-service .btn{display:inline-block;padding:11px 18px;text-decoration:none}
.demo-also{display:block;border-top:2px solid var(--accent);border-bottom:1px solid var(--rule);padding:12px 0;margin:0 0 1em;font:600 18px/1.35 var(--head-face);color:var(--ink);text-decoration:none}
.demo-also span{display:block;font:700 12px/1 var(--ui-face);letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:6px}
.demo-also:hover{color:var(--accent-dark)}
@media (max-width:860px){
  .demo-row,.demo-banner{grid-template-columns:1fr}
  .demo-banner img{max-width:160px}
  .demo-service{grid-template-columns:1fr}
}
/* one-row header on mid-size screens (laptops, tablets in landscape) */
@media (min-width:861px) and (max-width:1180px){
  body.head-a header.site,body.head-b header.site{gap:12px}
  body.head-a header.site .brand,body.head-b header.site .brand{font-size:15px}
  header.site .brand .mark{height:30px}
  body.head-a header.site nav a{padding:22px 8px}
  body.head-b header.site nav a{padding:10px 7px}
  header.site nav ul{font-size:13px}
}

/* ===== Part 5: Anton's choices 2026-10-24: one serif for reading text, article elements ===== */
:root{--text-face:"PT Serif",Georgia,serif;--head-face:"PT Serif",Georgia,serif}
header.site .brand,.dark-foot .fbrand{font-family:"Montserrat",Arial,sans-serif}
body.font-all{--ui-face:"PT Serif",Georgia,serif}
body.font-all header.site .brand,body.font-all .dark-foot .fbrand{font-family:"PT Serif",Georgia,serif}
/* article: the same serif in text, headings, lists and quotes */
body.read-2 .body li,body.read-2 .body blockquote{font:inherit}
body.read-2 .body h2,body.read-2 .body h3,article h1{font-family:var(--head-face)}
body.read-2 .body h2{font-weight:700}
/* picture at the top of the article */
.lead-img{margin:20px 0 24px}
.lead-img img{width:100%;height:auto;border-radius:6px}
/* "Коротко" */
.korotko{position:relative;background:var(--wash);border-radius:8px;padding:18px 22px 16px;margin:20px 0 28px;font:17px/1.55 var(--text-face)}
.korotko-head{display:flex;align-items:center;gap:10px;font:700 14px/1 var(--ui-face);letter-spacing:.08em;text-transform:uppercase;color:var(--accent-dark);margin-bottom:12px}
.korotko-ico{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--accent);color:#fff}
.korotko-ico svg{width:16px;height:16px}
.korotko ul{list-style:none;margin:0;padding:0}
.korotko li{position:relative;padding-left:28px;margin:0 0 8px}
.korotko li:last-child{margin-bottom:0}
.korotko li::before{content:"";position:absolute;left:4px;top:.45em;width:12px;height:7px;border-left:2.5px solid var(--accent);border-bottom:2.5px solid var(--accent);transform:rotate(-45deg)}
/* [vazhno] and [sovet] */
.note{border-radius:6px;padding:14px 20px 14px 52px;margin:1.4em 0;position:relative;font-size:.92em;line-height:1.55}
.note b{display:block;font:700 14px/1.3 var(--ui-face);letter-spacing:.06em;text-transform:uppercase;margin-bottom:4px}
.note::before{position:absolute;left:16px;top:14px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font:700 15px/24px var(--ui-face);color:#fff;text-align:center}
.note.important{background:var(--wash);border:1px dashed var(--accent-dark)}
.note.important b{color:var(--accent-dark)}
.note.important::before{content:"!";background:var(--accent-dark)}
.note.tip{background:#eef7e8;border:1px dashed var(--up)}
.note.tip b{color:var(--up)}
.note.tip::before{content:"✓";background:var(--up)}
/* "Читайте также" in long articles */
.read-also{display:block;border-top:2px solid var(--accent);border-bottom:1px solid var(--rule);padding:12px 0;margin:1.6em 0;font:700 19px/1.35 var(--head-face);color:var(--ink)!important;text-decoration:none}
.read-also span{display:block;font:700 12px/1 var(--ui-face);letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:6px}
.read-also:hover{color:var(--accent-dark)!important}
/* service card at the end of the article */
.service-card{display:grid;grid-template-columns:110px minmax(0,1fr);gap:24px;align-items:center;box-shadow:0 0 15px rgba(4,73,118,.17);border-radius:6px;padding:24px 28px;margin:0 0 32px}
.service-card img{width:110px;height:110px;border-radius:50%;object-fit:cover}
.after .service-card h2{font:700 21px/1.3 var(--head-face);text-transform:none;letter-spacing:0;margin:0 0 8px}
.service-card p{margin:0 0 14px;font-size:16px;line-height:1.55}
.service-card .btn{display:inline-block;padding:12px 20px;text-decoration:none}
.service-card .write-me{margin:12px 0 0;font:14px/1.4 var(--ui-face);color:var(--muted)}
.service-card .write-me a{color:var(--accent-dark)}
@media (max-width:860px){
  .service-card{grid-template-columns:1fr;padding:20px}
  .service-card img{width:84px;height:84px}
}

/* ===== Part 6: Anton's notes 3, 2026-10-24 ===== */
/* "Автор блога" sits on the bottom edge of the round photo */
.hero-photo-wrap{position:relative;width:160px;margin:0 auto 22px}
.hero-photo-wrap .hero-photo{margin:0}
.hero-photo-wrap .hero-label{position:absolute;left:50%;bottom:-10px;transform:translateX(-50%);margin:0;white-space:nowrap;box-shadow:0 0 0 3px #fff}
/* article headings centred, as on the current site */
article h1,.body h2,.body h3{text-align:center}
/* text justified with hyphenation (?align=justify) */
body.align-justify .body p,body.align-justify .body li{text-align:justify;hyphens:auto;-webkit-hyphens:auto}
/* header fill variants (?hdr=): 1 flat, 2 left-to-right gradient, 3 gradient with light, 4 two-tone like the subscribe band */
body.hdr-2.head-a header.site{background:linear-gradient(90deg,#0366ab 0%,#1176bb 50%,#2191dd 100%)}
body.hdr-3.head-a header.site{background:radial-gradient(120% 220% at 85% -40%,rgba(255,255,255,.22) 0%,rgba(255,255,255,0) 45%),linear-gradient(100deg,#035a96 0%,#0a73b8 55%,#2191dd 100%);box-shadow:inset 0 -1px 0 rgba(255,255,255,.18)}
body.hdr-4.head-a header.site{background:linear-gradient(100deg,var(--accent-dark) 62%,var(--accent) 62.1%)}

/* search: a dropdown under the header; the menu does not move */
header.site{position:relative}
body.head-a header.site .search-panel,body.head-b header.site .search-panel{position:absolute;top:100%;right:max(24px,calc((100% - 1132px)/2));z-index:50;width:min(460px,calc(100% - 32px));padding:12px;background:#fff;border-radius:0 0 8px 8px;box-shadow:0 10px 30px rgba(4,73,118,.22);order:initial;flex-basis:auto}
.search-panel .search-form{max-width:none}
@media (max-width:860px){
  body.head-a header.site .search-panel,body.head-b header.site .search-panel{right:16px;left:16px;width:auto}
}

/* ===== Part 6: Anton's notes 3, 2026-10-24: end of article, subscribe block, hero, news feed ===== */
/* disclaimer right after the last word of the text, in passing */
.body .disclaimer{margin:1.6em 0 0!important;font:italic 15px/1.5 var(--text-face);color:var(--muted)}

/* "Читайте также" in the middle of the text: picture, label, title, arrow */
.read-also{display:grid;grid-template-columns:120px minmax(0,1fr) auto;gap:18px;align-items:center;border:1px solid var(--rule);border-left:4px solid var(--accent);border-radius:6px;padding:12px 18px 12px 12px;transition:box-shadow .25s}
.read-also:not(:has(img)){grid-template-columns:minmax(0,1fr) auto;padding-left:18px}
.read-also img{width:120px;height:80px;object-fit:cover;border-radius:4px;display:block}
.read-also .ra-label{display:block;font:700 12px/1 var(--ui-face);letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:6px}
.read-also .ra-go{font:700 24px/1 var(--ui-face);color:var(--accent)}
.read-also:hover{box-shadow:var(--shadow)}
@media (max-width:620px){.read-also{grid-template-columns:84px minmax(0,1fr);font-size:17px}.read-also img{width:84px;height:60px}.read-also .ra-go{display:none}}

/* subscribe block in the text: channels with follower counts */
.join{margin:2em 0;padding:24px 26px;border-radius:8px;background:linear-gradient(135deg,var(--accent-dark),var(--accent));color:#fff;text-align:center}
.join-title{margin:0 0 18px!important;font:700 23px/1.3 var(--head-face);text-wrap:balance}
.join ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.join li{margin:0;padding:0}
.join li::before{display:none}
.join a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:14px 8px;border-radius:6px;background:#fff;color:var(--ink);text-decoration:none;transition:transform .2s,box-shadow .2s}
.join a:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(4,40,70,.3)}
.join svg{width:26px;height:26px;margin-bottom:4px}
.join .net-tg svg{color:#229ed9}.join .net-vk svg{color:#0077ff}.join .net-yt svg{color:#ff0000}
.join b{font:700 20px/1.2 var(--ui-face)}
.join a span{font:500 13px/1.3 var(--ui-face);color:var(--muted)}
@media (max-width:620px){.join{padding:20px 14px}.join-title{font-size:20px}.join ul{gap:6px}.join b{font-size:17px}}

/* end of article: Telegram discussion as a comment thread */
.thread{margin:8px 0 36px;padding-top:28px;border-top:1px solid var(--rule)}
.after .thread h2{margin:0 0 18px}
.cmt{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;margin-bottom:16px}
.cmt.reply{margin-left:58px}
.cmt .ava{width:44px;height:44px;border-radius:50%;object-fit:cover;display:block}
.cmt .ava-q{display:grid;place-items:center;background:var(--wash);color:var(--accent-dark);font:700 20px/1 var(--ui-face)}
.cmt-body{background:#f6f8fb;border-radius:4px 14px 14px 14px;padding:12px 16px 14px}
.cmt.reply .cmt-body{background:var(--wash)}
.cmt-body p{margin:0;font:16px/1.55 var(--ui-face)}
.cmt-body .cmt-name{font:700 14px/1.3 var(--ui-face);margin-bottom:4px;color:var(--ink)}
.cmt-body .cmt-name span{font-weight:500;color:#fff;background:var(--accent);border-radius:3px;padding:1px 6px;margin-left:6px;font-size:12px}
.cmt .tg-go{display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding:10px 16px;text-decoration:none;font:700 15px/1 var(--ui-face)}
.cmt .tg-go svg{width:18px;height:18px}
@media (max-width:620px){.cmt.reply{margin-left:22px}.cmt{grid-template-columns:36px minmax(0,1fr);gap:10px}.cmt .ava{width:36px;height:36px}}

/* related posts at the end: cards with picture */
.related ul{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.related li,.related li:last-child{border:0}
.related a{display:block;padding:0 0 12px;border-radius:6px;font:600 17px/1.35 var(--head-face);color:var(--ink);transition:box-shadow .25s}
.related a:hover{box-shadow:var(--shadow);color:var(--accent-dark)}
.related img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:6px 6px 0 0;display:block;margin-bottom:10px}
.related a span{display:block;padding:0 12px}
.related a span::before{content:"→ ";color:var(--accent);font-weight:700}
@media (max-width:620px){.related ul{grid-template-columns:1fr;gap:12px}.related a{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:center;padding:0}.related img{width:96px;height:64px;margin:0;border-radius:6px 0 0 6px}.related a span{padding:0 8px 0 0}}

/* hero: section title over the text, role on two lines, everything in the side column centred */
.hero .kicker{margin:0 0 18px}
.hero-side .role{text-wrap:balance}
.hero-side .write-me,.hero-side .channels{justify-content:center;text-align:center}
.hero-bottom .facts{display:grid;grid-template-columns:repeat(4,auto);justify-content:start;gap:12px 40px}
@media (max-width:620px){.hero-bottom .facts{grid-template-columns:1fr 1fr;gap:16px 20px}}

/* news: dated text feed, unlike the article cards */
.newsfeed{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;column-gap:48px}
.newsfeed li{display:grid;grid-template-columns:130px minmax(0,1fr);gap:16px;padding:14px 0;border-bottom:1px solid var(--rule);align-items:baseline}
.newsfeed time{font:500 14px/1.4 var(--ui-face);color:var(--muted)}
.newsfeed a{font:600 18px/1.35 var(--head-face);color:var(--ink);text-decoration:none}
.newsfeed a:hover{color:var(--accent-dark)}
@media (max-width:760px){.newsfeed{grid-template-columns:1fr}.newsfeed li{grid-template-columns:1fr;gap:4px}}
.thread{border-top:0;padding-top:0}
.cmt-body .cmt-name span{display:inline-block;width:auto;vertical-align:1px}
/* notes 4: subscribe title centred (never justified), follower line under it; tighter end of text */
.join-title{margin:0 0 4px!important;text-align:center!important;hyphens:none!important;-webkit-hyphens:none!important}
.join-sub{margin:0 0 18px!important;font:500 14px/1.3 var(--ui-face);text-align:center!important;opacity:.9}
.body .disclaimer{margin:.4em 0 0!important;text-align:left!important;hyphens:none!important}
.after{margin-top:28px;padding-top:28px}
.cmt-body a{color:var(--accent-dark);text-decoration:underline;text-underline-offset:.2em}
/* notes 5: home articles four in a row, no big lead card */
.mosaic.four{grid-template-columns:repeat(4,1fr)}
.mosaic.four a.t{font-size:18px}
.mosaic.four p{font-size:15px}
@media (max-width:980px){.mosaic.four{grid-template-columns:1fr 1fr}}
@media (max-width:620px){.mosaic.four{grid-template-columns:1fr}}
.read-also .ra-tx{display:block;margin:0;font:700 19px/1.35 var(--head-face);letter-spacing:0;text-transform:none;color:var(--ink)}
.read-also .ra-go{margin:0;letter-spacing:0}
.read-also:hover .ra-tx{color:var(--accent-dark)}
/* notes 6: consultation title on one line on wide screens */
@media (min-width:700px){.after .service-card h2{white-space:nowrap;font-size:20px}}
.cmt.cmt-q{grid-template-columns:minmax(0,1fr)}

/* ===== Part 7: pages services, portfolio, about, contacts (design/prototypes/build_site_pages.py) ===== */
.pg{max-width:1080px;margin:0 auto;padding:36px 0 64px}
.pg-crumbs{font:500 14px/1.4 var(--ui-face);color:var(--muted);margin:0 0 14px}
.pg-crumbs a{color:var(--muted);text-decoration:none}
.pg h1{font:700 clamp(32px,4vw,46px)/1.15 var(--head-face);margin:0 0 16px;letter-spacing:-.01em}
.pg-lead{font:19px/1.6 var(--text-face);margin:0 0 8px;max-width:40em}
.pg-top{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:28px 56px;align-items:center;padding-bottom:32px;border-bottom:1px solid var(--rule)}
.pg-who{text-align:center}
.pg-who img{width:150px;height:150px;border-radius:50%;object-fit:cover;box-shadow:0 0 0 6px var(--wash);display:block;margin:0 auto 14px}
.pg-who b{display:block;font:700 22px/1.2 var(--head-face)}
.pg-who span{display:block;font:500 14px/1.4 var(--ui-face);color:var(--muted);margin-top:4px}
.pg .sec{padding:44px 0 0}
.pg .sec>h2{margin-bottom:24px}
.pg-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.pg-cards li{border-radius:6px;box-shadow:0 0 15px rgba(4,73,118,.13);padding:24px 26px 22px;display:flex;flex-direction:column;transition:box-shadow .25s}
.pg-cards li:hover{box-shadow:var(--shadow)}
.pg-cards li.hit{background:var(--wash);border:1px dashed var(--accent-dark);box-shadow:none}
.pg-cards h3{font:700 21px/1.3 var(--head-face);margin:0 0 8px}
.pg-cards p{font:16px/1.55 var(--text-face);margin:0 0 14px;color:#4a4642}
.pg-cards ul{margin:0 0 16px;padding:0;list-style:none;font:15px/1.5 var(--ui-face)}
.pg-cards ul li{box-shadow:none;padding:0 0 0 20px;position:relative;display:block;border-radius:0}
.pg-cards ul li::before{content:"✓";position:absolute;left:0;color:var(--up);font-weight:700}
.pg-cards .price{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--rule);padding-top:14px}
.pg-cards .price b{font:700 20px/1.2 var(--ui-face);color:var(--accent-dark)}
.pg-cards .price small{display:block;font:500 13px/1.3 var(--ui-face);color:var(--muted)}
.pg-cards .price a{font:700 14px/1 var(--ui-face);color:var(--accent-dark);text-decoration:none;white-space:nowrap}
.pg-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:28px;counter-reset:s}
.pg-steps li{counter-increment:s;font:16px/1.55 var(--text-face)}
.pg-steps li::before{content:counter(s);display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--accent);color:#fff;font:700 18px/1 var(--ui-face);margin-bottom:12px}
.pg-steps b{display:block;font:700 18px/1.3 var(--head-face);margin-bottom:6px}
.pg-contact{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;list-style:none;margin:0;padding:0}
.pg-contact a{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:22px 22px 20px;border-radius:6px;background:#fff;box-shadow:0 0 15px rgba(4,73,118,.13);text-decoration:none;color:var(--ink);transition:box-shadow .25s,transform .2s;height:100%}
.pg-contact a:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.pg-contact svg{width:30px;height:30px;margin-bottom:8px}
.pg-contact .tg svg{color:#229ed9}.pg-contact .vk svg{color:#0077ff}.pg-contact .ml svg{color:var(--accent-dark)}.pg-contact .yt svg{color:#f00}
.pg-contact b{font:700 18px/1.3 var(--ui-face)}
.pg-contact span{font:15px/1.4 var(--ui-face);color:var(--muted)}
.pg-contact em{font:700 14px/1 var(--ui-face);font-style:normal;color:var(--accent-dark);margin-top:10px}
.pg-two{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:48px;align-items:start}
.pg-text p{font:18px/1.7 var(--text-face);margin:0 0 1em}
.pg-chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.pg-chips li{font:500 14px/1 var(--ui-face);padding:10px 14px;border-radius:999px;border:1px solid #cfe2f6;color:var(--accent-dark);background:#fff}
.pg-time{list-style:none;margin:0;padding:0;border-left:2px solid var(--wash)}
.pg-time li{position:relative;padding:0 0 22px 26px}
.pg-time li::before{content:"";position:absolute;left:-7px;top:6px;width:12px;height:12px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px #fff}
.pg-time b{display:block;font:700 18px/1.2 var(--ui-face);color:var(--accent-dark);margin-bottom:4px}
.pg-time span{font:16px/1.55 var(--text-face)}
.pg-media{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.pg-media li a{display:block;padding:16px;border:1px solid var(--rule);border-radius:6px;text-decoration:none;color:var(--ink);font:700 16px/1.3 var(--ui-face);height:100%;transition:border-color .2s}
.pg-media li a:hover{border-color:var(--accent)}
.pg-media small{display:block;font:500 13px/1.4 var(--ui-face);color:var(--muted);margin-top:4px}
.pg-years{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;align-items:end;height:220px;padding:0;margin:0;list-style:none;border-bottom:1px solid var(--rule)}
.pg-years li{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;position:relative}
.pg-years i{display:block;width:64%;border-radius:4px 4px 0 0;background:var(--up)}
.pg-years li.neg{justify-content:flex-end}
.pg-years li.neg i{background:#c94a4a}
.pg-years b{font:700 18px/1 var(--ui-face);margin-bottom:8px;color:var(--up)}
.pg-years li.neg b{color:#c94a4a}
.pg-years-x{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;list-style:none;margin:8px 0 0;padding:0;text-align:center;font:600 14px/1 var(--ui-face);color:var(--muted)}
.pg-alloc{display:flex;height:22px;border-radius:4px;overflow:hidden;margin:0 0 16px}
.pg-alloc i{display:block;height:100%}
.pg-legend{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;font:15px/1.4 var(--ui-face)}
.pg-legend li{display:flex;align-items:center;gap:10px}
.pg-legend i{width:14px;height:14px;border-radius:3px;flex:none}
.pg-legend b{margin-left:auto}
.pg-note{font:italic 14px/1.5 var(--text-face);color:var(--muted);margin:14px 0 0}
@media (max-width:860px){
  .pg{padding:24px 20px 48px}
  .pg-top,.pg-two{grid-template-columns:1fr}
  .pg-who{order:-1}
  .pg-cards,.pg-steps,.pg-contact{grid-template-columns:1fr}
  .pg-media{grid-template-columns:1fr 1fr}
  .pg-legend{grid-template-columns:1fr}
  .pg-years{height:170px;gap:6px}.pg-years-x{gap:6px}.pg-years b{font-size:14px}
}
.pg-top.solo{grid-template-columns:minmax(0,1fr)}
.pg-help{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:14px 40px}
.pg-help li{position:relative;padding:0 0 0 34px;font:17px/1.55 var(--text-face)}
.pg-help li::before{content:"✓";position:absolute;left:0;top:1px;width:24px;height:24px;border-radius:50%;background:var(--wash);color:var(--accent-dark);display:grid;place-items:center;font:700 13px/1 var(--ui-face)}
.pg-help b{display:block;font:700 17px/1.35 var(--head-face)}
.pg-for{margin:22px 0 0;font:17px/1.6 var(--text-face);padding:16px 20px;background:var(--wash);border-radius:6px}
.pg-time span{display:block}
.pg-disclaimer{margin:40px 0 0;font:italic 15px/1.5 var(--text-face);color:var(--muted)}
.pg-body{max-width:var(--measure);margin:0 auto}
.pg-body h2{font:var(--h2-weight) 28px/1.25 var(--head-face);text-align:center}
@media (max-width:860px){.pg-help{grid-template-columns:1fr}}
/* old page text under the portfolio blocks: drop inline justify and side floats of 2013 */
.pg-body .body p,.pg-body .body span{text-align:left!important}
.pg-body .body img{float:none!important;display:block;margin:1.4em auto!important;max-width:100%;height:auto}
.pg-body .body p:has(>img:only-child){text-align:center!important}
.pg-lead p{margin:0 0 .6em}.pg-lead p:last-child{margin-bottom:0}
/* night audit 2026-10-25: old post content on phones */
.body div,.body iframe,.body figure,.body table{max-width:100%!important}
.body iframe{box-sizing:border-box}
.body [class^="s3gt_"],.body [class*=" s3gt_"]{display:none!important} /* leftovers of a translator browser extension saved into old posts */
h1,.body h2,.pg h1{overflow-wrap:break-word}
@media (max-width:620px){article h1,.pg h1,.body h2{hyphens:auto;-webkit-hyphens:auto;hyphenate-limit-chars:14 6 6}} /* only very long words */
.tv-box{width:100%;max-width:100%;overflow:hidden}.tv-box iframe{width:100%!important}
/* old posts: inline font-weight/size/family spans inside headings (e.g. <h1><span style="font-weight:400">) */
article h1 [style],.body h2 [style],.body h3 [style]{font-weight:inherit!important;font-size:inherit!important;font-family:inherit!important;line-height:inherit!important}
