/* Раздел «Статьи»: общая типографика для страниц гайдов.
   Токены и шрифты те же, что на лендинге (Design.md, locked) - раздел должен
   читаться как часть одного сайта, а не как приклеенный блог. */

:root{
  --accent:#1F3A5F; --accent-hover:#162C49; --accent-soft:#E9EEF5;
  --bg:#FAF6EF; --surface:#FFFFFF; --surface-warm:#F3ECE0;
  --text:#26313C; --text-muted:#5C6B7A; --border:#E5DCCC; --ember:#C98A4B;
  --ember-ink:#8D6135;
  --ease-out-strong:cubic-bezier(0.23,1,0.32,1);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:96px}
body{background:var(--bg);color:var(--text);font-family:'Golos Text',system-ui,sans-serif;
  line-height:1.6;-webkit-font-smoothing:antialiased}

/* зерно поверх фона: тот же приём, что на лендинге */
.grain{position:fixed;inset:0;z-index:60;pointer-events:none;opacity:.35;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.55 0 0 0 0 0.47 0 0 0 0 0.36 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")}

/* ===== шапка ===== */
.hdr{position:sticky;top:0;z-index:50;background:rgba(250,246,239,.9);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border)}
.hdr-inner{max-width:1160px;margin:0 auto;padding:15px 22px;display:flex;align-items:center;gap:16px}
@media(min-width:1024px){.hdr-inner{padding:18px 48px;gap:24px}}
.logo{font-family:'Lora',Georgia,serif;font-weight:600;font-size:19px;color:var(--text);
  text-decoration:none;letter-spacing:.02em;white-space:nowrap;flex:none}
.logo .pro{color:var(--ember-ink);font-family:'Golos Text',sans-serif;font-weight:500;font-size:11px;
  letter-spacing:.14em;vertical-align:.5em;margin-left:3px}
.nav{margin-left:auto;display:flex;gap:20px;align-items:center}
.nav a{font-size:15px;color:var(--text);text-decoration:none;padding:4px 0;position:relative;white-space:nowrap}
.nav a::after{content:"";position:absolute;left:0;right:100%;bottom:0;height:2px;border-radius:1px;
  background:var(--ember);opacity:.7;transition:right .25s var(--ease-out-strong)}
.nav a:hover::after,.nav a:focus-visible::after{right:0}
.nav a:focus-visible{outline:3px solid var(--ember);outline-offset:3px;border-radius:6px}
.nav .hdr-cta{background:var(--accent);color:#fff;font-weight:500;padding:10px 16px;border-radius:10px;
  transition:background .2s ease,transform .16s var(--ease-out-strong)}
.nav .hdr-cta::after{display:none}
.nav .hdr-cta:hover{background:var(--accent-hover);transform:translateY(-1px)}
.nav .nav-hide{display:none}
@media(min-width:640px){.nav .nav-hide{display:inline-block}}

/* ===== каркас страницы ===== */
.wrap{max-width:760px;margin:0 auto;padding:0 22px}
.crumbs{font-size:14px;color:var(--text-muted);padding:26px 0 0}
.crumbs a{color:var(--text-muted);text-decoration:none;border-bottom:1px solid var(--border)}
.crumbs a:hover{color:var(--ember-ink);border-bottom-color:var(--ember)}
.crumbs span{margin:0 7px;opacity:.6}

article{padding:14px 0 10px}
h1{font-family:'Lora',Georgia,serif;font-weight:600;font-size:clamp(30px,4.6vw,44px);
  line-height:1.15;letter-spacing:-.015em;margin:16px 0 18px;text-wrap:balance}
.meta{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;font-size:14.5px;color:var(--text-muted);
  padding-bottom:26px;margin-bottom:30px;border-bottom:1px solid var(--border)}
.meta .tag{background:var(--surface-warm);color:var(--ember-ink);font-weight:500;font-size:13px;
  padding:4px 11px;border-radius:20px;letter-spacing:.01em}

article p{font-size:18.5px;line-height:1.72;margin:0 0 20px}
article p b,article p strong{font-weight:500;color:var(--text)}
article h2{font-family:'Lora',Georgia,serif;font-weight:600;font-size:clamp(25px,3.2vw,32px);
  line-height:1.25;letter-spacing:-.01em;margin:52px 0 20px;text-wrap:balance}
article h3{font-family:'Golos Text',sans-serif;font-weight:500;font-size:20.5px;line-height:1.35;
  margin:36px 0 14px;color:var(--text)}
article ul,article ol{margin:0 0 22px;padding-left:2px;list-style:none;counter-reset:li}
article li{font-size:18.5px;line-height:1.66;margin-bottom:12px;padding-left:30px;position:relative}
article ul li::before{content:"";position:absolute;left:6px;top:12px;width:7px;height:7px;
  border-radius:50%;background:var(--ember);opacity:.85}
article ol li{counter-increment:li}
article ol li::before{content:counter(li);position:absolute;left:0;top:1px;width:22px;height:22px;
  border-radius:50%;background:var(--accent-soft);color:var(--accent);
  font-size:13px;font-weight:500;display:flex;align-items:center;justify-content:center}
article a{color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(31,58,95,.3)}
article a:hover{border-bottom-color:var(--accent)}

/* цитата чужой речи: янтарная полоса слева */
blockquote{margin:28px 0;padding:4px 0 4px 22px;border-left:3px solid var(--ember);
  font-size:18.5px;line-height:1.66;color:var(--text)}
blockquote p:last-child{margin-bottom:0}

hr{border:0;height:1px;background:var(--border);margin:44px 0}

/* врезка «на полях»: уточнение, которое не рвёт основной ход */
.note{background:var(--surface);border:1px solid var(--border);border-radius:14px;
  padding:20px 22px;margin:28px 0}
.note p{font-size:17px;line-height:1.65;margin:0}
.note p+p{margin-top:12px}

/* ===== оглавление ===== */
.toc{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:22px 24px;margin:0 0 38px}
.toc-t{font-family:'Golos Text',sans-serif;font-weight:500;font-size:14px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--text-muted);margin-bottom:14px}
.toc ol{margin:0;padding:0;counter-reset:toc}
.toc li{font-size:16.5px;line-height:1.5;margin-bottom:10px;padding-left:26px;position:relative;counter-increment:toc}
.toc li:last-child{margin-bottom:0}
.toc li::before{content:counter(toc);position:absolute;left:0;top:2px;color:var(--ember-ink);
  font-size:13px;font-weight:500}
.toc a{color:var(--text);text-decoration:none;border-bottom:1px solid transparent}
.toc a:hover{border-bottom-color:var(--ember)}

/* ===== блок продукта в конце статьи ===== */
.promo{background:var(--surface);border:1px solid var(--border);border-radius:20px;
  padding:30px 26px;margin:44px 0;box-shadow:0 18px 44px rgba(31,58,95,.05)}
@media(min-width:640px){.promo{padding:36px 34px}}
.promo h2{margin-top:0;font-size:clamp(23px,3vw,28px)}
.promo p{font-size:17.5px}
.promo p:last-of-type{margin-bottom:26px}
.cta{display:inline-block;background:var(--accent);color:#fff;font-size:17px;font-weight:500;
  padding:15px 28px;border-radius:12px;text-decoration:none;border:0;
  transition:background .2s ease,transform .16s var(--ease-out-strong)}
.cta:hover{background:var(--accent-hover);transform:translateY(-1px);border:0}
.cta:active{transform:scale(.98)}
.cta:focus-visible{outline:3px solid var(--ember);outline-offset:3px}

/* ===== вход в бесплатную Аптечку внутри статьи ===== */
/* Спокойнее блока продукта: это подарок за дочитывание, а не продажа */
.gift{background:var(--surface-warm);border:1px solid var(--border);border-radius:16px;
  padding:24px 24px 26px;margin:36px 0}
.gift p{font-size:17px;line-height:1.6;margin:0 0 18px}
.gift p:first-child{font-weight:500}
.cta-soft{display:inline-block;background:transparent;color:var(--text);font-size:16.5px;
  font-weight:500;padding:13px 24px;border-radius:12px;text-decoration:none;
  border:1.5px solid var(--accent);
  transition:background .2s ease,color .2s ease,transform .16s var(--ease-out-strong)}
.cta-soft:hover{background:var(--accent);color:#fff;border-color:var(--accent);transform:translateY(-1px)}
.cta-soft:active{transform:scale(.98)}
.cta-soft:focus-visible{outline:3px solid var(--ember);outline-offset:3px}
.gift-note{display:block;margin-top:12px;font-size:14.5px;color:var(--text-muted)}

/* ===== блок быстрого ответа под H1 ===== */
/* Работа у него своя: капсула выше отвечает на запрос, этот блок даёт
   следующий шаг. Пересказывать капсулу тут нельзя, читатель прочёл её строкой выше */
.quick{background:var(--surface);border:1px solid var(--border);border-left:3px solid var(--ember);
  border-radius:14px;padding:22px 24px;margin:28px 0 34px}
.quick .q-t{font-family:'Golos Text',sans-serif;font-weight:500;font-size:13.5px;letter-spacing:.08em;
  text-transform:uppercase;color:var(--ember-ink);margin-bottom:10px}
.quick p{font-size:17.5px;line-height:1.62;margin:0}

/* ===== собственные кадры статьи ===== */
figure{margin:36px 0}
figure img{display:block;width:100%;height:auto;border:1px solid var(--border);border-radius:16px;
  background:var(--surface)}
figcaption{font-size:15px;line-height:1.55;color:var(--text-muted);margin-top:12px;padding-left:2px}

/* ===== таблицы ===== */
/* Обёртка со своей прокруткой: на телефоне таблица не должна тянуть страницу вбок */
.tablewrap{overflow-x:auto;margin:30px 0;border:1px solid var(--border);border-radius:14px;
  background:var(--surface)}
table{border-collapse:collapse;width:100%;min-width:560px}
th,td{text-align:left;padding:14px 18px;font-size:16.5px;line-height:1.5;
  border-bottom:1px solid var(--border);vertical-align:top}
th{font-weight:500;font-size:14px;letter-spacing:.04em;text-transform:uppercase;
  color:var(--ember-ink);background:var(--surface-warm);white-space:nowrap}
tr:last-child td{border-bottom:0}

/* ===== памятка в хвосте ===== */
#checklist ol{counter-reset:ch}
#checklist li{counter-increment:ch}
#checklist li::before{content:counter(ch);background:var(--surface-warm);color:var(--ember-ink)}

/* ===== хвостовой призыв после памятки ===== */
/* Мягче блока продукта: тут не продажа, а бесплатный вход */
.cta-final{background:var(--surface-warm);border:1px solid var(--border);border-radius:16px;
  padding:24px 24px 26px;margin:36px 0}
.cta-final p{font-size:17px;line-height:1.6;margin:0 0 18px}

/* ===== дисклеймер и источники ===== */
.legal{background:var(--surface-warm);border-radius:14px;padding:20px 22px;margin:38px 0 0}
.legal p{font-size:15px;line-height:1.6;color:var(--text-muted);margin:0}
.sources{margin:30px 0 0}
.sources h2{font-size:19px;font-family:'Golos Text',sans-serif;font-weight:500;margin:0 0 12px}
.sources li{font-size:15px;line-height:1.55;color:var(--text-muted);margin-bottom:8px}
.sources li::before{top:9px;width:5px;height:5px;opacity:.6}

/* ===== список статей ===== */
.list-head{padding:34px 0 8px}
.list-head h1{margin-bottom:14px}
.list-head p{font-size:19px;color:var(--text-muted);max-width:620px}
.cards{display:grid;gap:18px;padding:30px 0 10px}
.card{display:block;background:var(--surface);border:1px solid var(--border);border-radius:18px;
  padding:26px 24px;text-decoration:none;color:var(--text);
  transition:transform .2s var(--ease-out-strong),box-shadow .2s ease,border-color .2s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 16px 40px rgba(31,58,95,.07);border-color:var(--ember)}
.card .tag{display:inline-block;background:var(--surface-warm);color:var(--ember-ink);font-weight:500;
  font-size:12.5px;padding:4px 11px;border-radius:20px;margin-bottom:13px}
.card h2{font-family:'Lora',Georgia,serif;font-weight:600;font-size:23px;line-height:1.25;margin:0 0 10px}
.card p{font-size:16.5px;line-height:1.6;color:var(--text-muted);margin:0}
.card .more{display:inline-block;margin-top:15px;font-size:15.5px;font-weight:500;color:var(--accent)}
.empty{background:var(--surface);border:1px dashed var(--border);border-radius:18px;padding:30px 24px;
  font-size:17px;color:var(--text-muted)}

/* Вводный текст раздела и маршрут по состояниям. Заведены 10.09.2026: Яндекс
   пометил /guides/ «малоценной или маловостребованной» - страница была голым
   каталогом из четырёх карточек без собственного смысла. Типографика статей
   привязана к тегу article, поэтому у блоков раздела свои правила */
.lead{max-width:660px;padding:4px 0 2px}
.lead p{font-size:18px;line-height:1.7;margin:0 0 16px}
.lead p:last-child{margin-bottom:0}
.route{background:var(--surface);border:1px solid var(--border);border-left:3px solid var(--ember);
  border-radius:14px;padding:24px 24px 20px;margin:28px 0 6px}
.route h2{font-family:'Golos Text',sans-serif;font-weight:500;font-size:19px;margin:0 0 14px}
.route ul{margin:0;padding:0;list-style:none}
.route li{font-size:17px;line-height:1.62;margin-bottom:12px;padding-left:22px;position:relative}
.route li:last-child{margin-bottom:0}
.route li::before{content:"";position:absolute;left:4px;top:10px;width:6px;height:6px;
  border-radius:50%;background:var(--ember);opacity:.85}
.route a{color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(31,58,95,.3)}
.route a:hover{border-bottom-color:var(--accent)}

/* ===== раздел статей: тезисы, поиск, фильтр, карточки (переделано 2026-09-15 по замечаниям автора) ===== */
.wrap-wide{max-width:980px}
.wrap-wide .list-head{padding:36px 0 6px}
.wrap-wide .list-head p{max-width:640px;font-size:20px;line-height:1.55}
.tezisy{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:12px}
@media(min-width:720px){.tezisy{grid-template-columns:repeat(3,1fr);gap:14px}}
.tezisy li{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:18px 20px;
  font-size:15.5px;line-height:1.55;color:var(--text-muted);position:relative}
.tezisy li::before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:3px;border-radius:3px;background:var(--ember)}
.tezisy li b{display:block;font-weight:500;font-size:17px;color:var(--text);margin-bottom:4px}

.finder{margin:40px 0 8px;background:var(--surface);border:1px solid var(--border);border-radius:22px;
  padding:26px 22px 22px;box-shadow:0 18px 44px rgba(31,58,95,.05)}
@media(min-width:720px){.finder{padding:32px 34px 28px}}
.finder-title{font-family:'Lora',Georgia,serif;font-weight:600;font-size:clamp(22px,2.8vw,27px);line-height:1.2;margin:0 0 6px}
.finder-sub{font-size:15.5px;color:var(--text-muted);margin:0 0 18px}
.finder-row{position:relative}
.finder-ico{position:absolute;left:18px;top:50%;width:22px;height:22px;transform:translateY(-50%);color:var(--text-muted);pointer-events:none}
.finder-input{width:100%;font:inherit;font-size:18px;color:var(--text);background:var(--bg);
  border:1.5px solid var(--border);border-radius:16px;padding:17px 50px 17px 52px;outline:none;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}
.finder-input::placeholder{color:var(--text-muted);opacity:.75}
.finder-input:focus{border-color:var(--accent);background:var(--surface);box-shadow:0 0 0 4px var(--accent-soft)}
.finder-input::-webkit-search-cancel-button{display:none}
.finder-clear{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:34px;height:34px;
  border:0;border-radius:50%;background:var(--surface-warm);color:var(--text-muted);font-size:22px;
  line-height:1;cursor:pointer}
.finder-clear:hover{color:var(--text)}
.chips{display:flex;gap:8px;margin-top:16px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.chips::-webkit-scrollbar{display:none}
@media(min-width:720px){.chips{flex-wrap:wrap;overflow:visible}}
.chip{flex:none;font:inherit;font-size:14.5px;font-weight:500;color:var(--text);background:var(--surface-warm);
  border:1.5px solid transparent;border-radius:999px;padding:9px 15px;cursor:pointer;white-space:nowrap;
  transition:background .2s ease,color .2s ease,border-color .2s ease}
.chip span{color:var(--ember-ink);font-weight:500;margin-left:5px}
.chip:hover{border-color:var(--ember)}
.chip.is-on{background:var(--accent);color:#fff}
.chip.is-on span{color:rgba(255,255,255,.75)}
.chip:focus-visible{outline:3px solid var(--ember);outline-offset:2px}
.finder-count{font-size:15px;color:var(--text-muted);margin:12px 0 0;min-height:1.4em}

.wrap-wide .cards{grid-template-columns:1fr;gap:18px;padding-top:24px}
@media(min-width:720px){.wrap-wide .cards{grid-template-columns:1fr 1fr;gap:22px}}
.wrap-wide .card{padding:0;overflow:hidden;display:flex;flex-direction:column}
.card-media{display:block;position:relative;aspect-ratio:16/9;background:var(--surface-warm)}
.card-img{display:block;width:100%;height:100%;object-fit:cover}
.card-cat{position:absolute;left:14px;top:14px;background:rgba(250,246,239,.94);color:var(--ember-ink);
  font-size:12.5px;font-weight:500;letter-spacing:.02em;padding:6px 12px;border-radius:999px;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.card-body{display:flex;flex-direction:column;flex:1;padding:20px 22px 20px}
.wrap-wide .card h2{font-size:21px;margin:0 0 8px}
.wrap-wide .card p{font-size:15.5px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:16px;
  font-size:14.5px;color:var(--text-muted)}
.card-foot .more{margin:0;font-size:15px}
.card-foot .more::after{content:" →"}
.card[hidden]{display:none}

.route{margin-top:34px}
.route h2{font-size:21px}
.route-group{margin-top:18px}
.route-group h3{font-family:'Golos Text',sans-serif;font-weight:500;font-size:13.5px;letter-spacing:.08em;
  text-transform:uppercase;color:var(--ember-ink);margin:0 0 10px}
/* блок свёрнут по умолчанию и раскрывается нажатием (просьба автора 17.09): details/summary без скриптов */
details.route{padding-bottom:20px}
.route summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin:-4px 0;padding:4px 0;-webkit-tap-highlight-color:transparent}
.route summary::-webkit-details-marker{display:none}
.route summary h2{margin:0}
.route summary::after{content:"";flex:none;width:10px;height:10px;margin:0 6px 4px 0;
  border-right:2px solid var(--ember-ink);border-bottom:2px solid var(--ember-ink);transform:rotate(45deg);transition:transform .2s ease}
.route[open] summary::after{transform:rotate(-135deg);margin-bottom:-4px}
.route summary:focus-visible{outline:3px solid var(--ember);outline-offset:4px;border-radius:6px}
.route-body{padding-top:2px}
@media(min-width:720px){.route-body{display:grid;grid-template-columns:1fr 1fr;column-gap:32px}}
/* обложка статьи: первый экран после мета-строки */
figure.cover{margin:0 0 34px}
figure.cover img{border-radius:18px}

/* соседние статьи в хвосте (ставит vstavit-sosedey.py) */
.related{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:22px 24px;margin:36px 0 0}
.related-t{font-family:'Golos Text',sans-serif;font-weight:500;font-size:13.5px;letter-spacing:.08em;
  text-transform:uppercase;color:var(--ember-ink);margin-bottom:12px}
.related ul{margin:0}
.related li{font-size:16.5px;line-height:1.5;margin-bottom:10px;padding-left:22px}
.related li::before{top:10px;width:6px;height:6px}
.related li:last-child{margin-bottom:0}
.related a{color:var(--text)}
.related-cat{display:inline-block;margin-left:10px;font-size:13px;color:var(--text-muted)}

/* ===== подвал ===== */
footer{border-top:1px solid var(--border);margin-top:56px;padding:30px 0 44px}
.f-inner{max-width:760px;margin:0 auto;padding:0 22px;display:flex;flex-wrap:wrap;gap:12px 24px;
  align-items:center;font-size:14.5px;color:var(--text-muted)}
.f-inner a{color:var(--text-muted);text-decoration:none;border-bottom:1px solid var(--border)}
.f-inner a:hover{color:var(--ember-ink);border-bottom-color:var(--ember)}
.f-inner .sep{margin-left:auto}

@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  html{scroll-behavior:auto}
}
