/* Блог: список, карточки, статья. Дополняет css/site.css */
.blog-list{padding-top:clamp(1.5rem,3vw,2.5rem)}
.bsearch{display:flex;align-items:center;gap:.6rem;background:#fff;border:1.5px solid var(--line);border-radius:999px;padding:.35rem .4rem .35rem 1.1rem;max-width:620px;box-shadow:0 14px 30px -26px rgba(31,65,81,.6)}
.bsearch:focus-within{border-color:var(--teal)}
.bsearch svg{width:20px;height:20px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;flex:none}
.bsearch input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:1rem;color:var(--navy);padding:.5rem 0;outline:0}
.bsearch input::-webkit-search-cancel-button{display:none}
.bsearch button{border:0;background:var(--navy);color:#fff;font:inherit;font-weight:700;border-radius:999px;padding:.6rem 1.2rem;cursor:pointer}
.bsearch button:hover{background:#173340}
.chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:1.2rem 0 1.6rem}
.chip{display:inline-flex;align-items:center;gap:.4rem;text-decoration:none;font-weight:700;font-size:.9rem;padding:.5rem 1rem;border-radius:99px;background:#fff;border:1.5px solid var(--line);color:var(--navy);transition:background .15s,border-color .15s,color .15s}
.chip small{font-size:.75rem;font-weight:700;color:var(--muted);background:var(--sky);border-radius:99px;padding:0 .45rem}
.chip:hover{border-color:var(--teal)}
.chip.on{background:var(--navy);border-color:var(--navy);color:#fff}
.chip.on small{background:rgba(255,255,255,.2);color:#fff}
#results{transition:opacity .15s}
#results.busy{opacity:.45}
.count{color:var(--muted);font-size:.92rem;font-weight:600;margin-bottom:1rem}
.bgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.8rem 1.5rem}
.bcard{display:flex;flex-direction:column;gap:.65rem}
.bimg{display:block;aspect-ratio:4/3;border-radius:26px;overflow:hidden;background:var(--sky);box-shadow:0 14px 30px -24px rgba(31,65,81,.55)}
.bimg img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.bcard:hover .bimg img{transform:scale(1.04)}
.noimg{display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--mint),var(--sky))}
.bmeta{display:flex;align-items:center;gap:.7rem;font-size:.8rem;color:var(--muted);font-weight:600;flex-wrap:wrap}
.btag{text-decoration:none;color:var(--teal-d);background:var(--sky);border-radius:99px;padding:.15rem .7rem;font-weight:700}
.btag:hover{background:var(--mint)}
.bcard h3{font-size:1.15rem;line-height:1.28}
.bcard h3 a{text-decoration:none}
.bcard h3 a:hover{color:var(--teal-d)}
.bcard p{color:var(--muted);font-size:.93rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
mark{background:var(--mint);color:var(--navy);border-radius:4px;padding:0 .1em}
.pager{display:flex;gap:.4rem;justify-content:center;align-items:center;margin-top:2.4rem;flex-wrap:wrap}
.pager a,.pager .cur{min-width:42px;height:42px;display:grid;place-items:center;border-radius:50%;text-decoration:none;font-weight:700;border:1.5px solid var(--line);background:#fff}
.pager a:hover{border-color:var(--teal)}
.pager .cur{background:var(--navy);border-color:var(--navy);color:#fff}
.pager .gap{padding:0 .3rem;color:var(--muted)}
.empty{background:#fff;border-radius:28px;padding:2.4rem 1.5rem;text-align:center;box-shadow:0 14px 30px -26px rgba(31,65,81,.55)}
.empty b{font-size:1.25rem;display:block;margin-bottom:.4rem}
.empty p{color:var(--muted);margin-bottom:1.2rem}

/* статья */
.article{padding-top:clamp(1.5rem,3vw,2.5rem)}
.wrap-narrow{max-width:800px;margin:0 auto;padding:0 var(--gutter)}
.cover{margin:0 0 2rem;border-radius:30px;overflow:hidden;box-shadow:0 18px 36px -24px rgba(31,65,81,.55)}
.cover img{width:100%;height:auto;max-height:460px;object-fit:cover}
.post-body{font-size:1.08rem;line-height:1.75;color:#2a4553;overflow-wrap:break-word}
.post-body h2{font-size:clamp(1.5rem,2.6vw,1.9rem);margin:2.2rem 0 .8rem}
.post-body h3{font-size:1.25rem;margin:1.8rem 0 .6rem}
.post-body h4{font-size:1.08rem;margin:1.4rem 0 .5rem}
.post-body p{margin:0 0 1.15rem}
.post-body a{color:var(--teal-d);text-decoration:underline;text-underline-offset:3px}
.post-body ul,.post-body ol{margin:0 0 1.2rem 1.4rem}
.post-body li{margin-bottom:.45rem}
.post-body img{display:block;max-width:100%;height:auto;border-radius:20px;margin:1.4rem auto}
.post-body figure{margin:1.6rem 0}
.post-body figure img{margin:0 auto}
.post-body figcaption{text-align:center;color:var(--muted);font-size:.88rem;margin-top:.5rem}
.post-body blockquote{margin:1.6rem 0;padding:1rem 1.4rem;border-left:4px solid var(--teal);background:var(--sky);border-radius:0 18px 18px 0;font-family:var(--serif);font-style:italic;font-size:1.15rem}
.post-body hr{border:0;border-top:1px dashed rgba(31,65,81,.25);margin:2rem 0}
.post-body table{width:100%;border-collapse:collapse;margin:1.4rem 0;font-size:.95rem;display:block;overflow-x:auto}
.post-body th,.post-body td{border:1px solid var(--line);padding:.55rem .8rem;text-align:left}
.post-body th{background:var(--sky)}
.post-body iframe,.post-body video{display:block;width:100%;max-width:100%;aspect-ratio:16/9;border:0;border-radius:20px;margin:1.4rem 0;background:#000}
.post-body video[height]{aspect-ratio:auto;max-height:80vh;width:auto;margin-left:auto;margin-right:auto}
.post-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin:1.6rem 0}
.post-gallery a{display:block;aspect-ratio:1;overflow:hidden;border-radius:16px}
.post-gallery img{width:100%;height:100%;object-fit:cover;margin:0;border-radius:0;transition:transform .4s}
.post-gallery a:hover img{transform:scale(1.05)}
.post-foot{display:flex;gap:1rem 1.6rem;flex-wrap:wrap;margin:2.4rem 0;padding-top:1.4rem;border-top:1px dashed rgba(31,65,81,.22)}
.back{font-weight:700;color:var(--teal-d);text-decoration:none}
.back:hover{text-decoration:underline}
.post-cta{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;background:linear-gradient(135deg,#1F4151 35%,#0C7F86);color:#fff;border-radius:34px 34px 90px 34px;padding:clamp(1.5rem,3.5vw,2.4rem);margin:2rem 0 3.5rem}
.post-cta .hand{display:block;font-size:1.6rem;color:var(--mint);margin-bottom:.2rem}
.post-cta h2{font-size:clamp(1.4rem,2.4vw,1.9rem);margin-bottom:.4rem}
.post-cta p{color:rgba(255,255,255,.85);max-width:46ch}
.rel-h{margin:1rem 0 1.6rem}

@media (max-width:900px){.bgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.bgrid{grid-template-columns:minmax(0,1fr)}.bsearch button{padding:.6rem .9rem}.post-gallery{grid-template-columns:repeat(2,1fr)}.post-cta{border-radius:26px 26px 60px 26px}}
@media (prefers-reduced-motion:reduce){.bimg img,.post-gallery img,#results{transition:none}}
