/* Блог (mn-blog-ocstore, 21.11): список /blog, рубрики, стаття. Підключається лише на сторінках блогу (подія manezh_blog_assets), токени й базові класи — з manezh.css.
   Усе нижче — оформлення асистента в межах слів автора («розділи на початку, щоб швидко перемикатись», «під SEO і ШІ-пошук»); автор цього не казав — не довіряти, уточнити в автора. Текст на жовтому — лише var(--ink). */

/* ---------- Список і рубрики ---------- */
.mz-blog,.mz-post{padding-bottom:clamp(56px,7vw,96px)}
.mz-blog__head{margin:clamp(20px,3vw,40px) 0 clamp(20px,2.5vw,32px)}
.mz-blog__title{margin:0;font:700 clamp(28px,16px + 3vw,56px)/1.02 var(--f-disp);letter-spacing:-.02em;text-wrap:balance;overflow-wrap:break-word}
.mz-blog__lead{max-width:62ch;margin-top:16px;font-size:var(--step-lead);line-height:1.35;color:var(--ink)}
.mz-blog__lead p{margin:0}
.mz-blog__chips{margin:0 0 clamp(28px,4vw,48px)}
a.mz-chip{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.mz-chip[aria-current="page"]{background:var(--ink);color:#fff}
.mz-chip[aria-current="page"] .mz-count{color:rgba(255,255,255,.78)}
.mz-blog__empty{max-width:62ch;color:var(--muted)}

.mz-posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:clamp(20px,2.5vw,32px);margin:0;padding:0;list-style:none}
.mz-posts__item{min-width:0}
.mz-pcard{display:flex;flex-direction:column;height:100%;gap:16px}
.mz-pcard__media{display:block;aspect-ratio:4/3;border-radius:var(--r-sm);overflow:hidden;background:var(--tint)}
.mz-pcard__media img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
@media (hover:hover){.mz-pcard:hover .mz-pcard__media img{transform:scale(1.03)}}
.mz-pcard__body{display:flex;flex-direction:column;gap:8px;flex:1}
.mz-pcard__tag{align-self:flex-start;padding:5px 12px;border-radius:999px;background:var(--sun);color:var(--ink);font-weight:600;font-size:var(--step-small);line-height:1.1}
.mz-pcard__title{font:600 var(--step-lead)/1.2 var(--f-text);letter-spacing:-.01em;text-wrap:balance}
.mz-pcard:hover .mz-pcard__title{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:5px;text-decoration-color:var(--sun-deep)}
.mz-pcard__desc{color:var(--ink);font-size:var(--step-body);line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.mz-pcard__meta{margin-top:auto;color:var(--muted);font-size:var(--step-small);font-weight:500}
.mz-blog__pages{margin-top:40px}
.mz-blog__pages .pagination{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.mz-blog__pages .pagination a,.mz-blog__pages .pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 14px;border-radius:999px;background:var(--tint);font-weight:600}
.mz-blog__pages .pagination .active span{background:var(--ink);color:#fff}

/* ---------- Стаття ---------- */
.mz-post__article{max-width:760px}
.mz-post__head{margin:clamp(20px,3vw,40px) 0 clamp(20px,3vw,32px)}
.mz-post__tag{display:inline-block;margin-bottom:16px;padding:6px 14px;border-radius:999px;background:var(--sun);color:var(--ink);font-weight:600;font-size:var(--step-small);line-height:1.1}
.mz-post__tag:hover{background:var(--sun-deep)}
.mz-post__title{margin:0;font:700 clamp(26px,14px + 2.8vw,46px)/1.08 var(--f-disp);letter-spacing:-.02em;text-wrap:balance;overflow-wrap:break-word}
.mz-post__meta{margin-top:16px;color:var(--muted);font-size:var(--step-body)}

.mz-post__body{font-size:var(--step-body);line-height:1.65;overflow-wrap:break-word}
.mz-post__intro>:first-child{margin-top:0}
.mz-post__body p{margin:0 0 14px}
.mz-post__body .lead{font-size:var(--step-lead);line-height:1.4;margin-bottom:18px}
.mz-post__body h2{margin:clamp(40px,5vw,56px) 0 14px;font:700 clamp(22px,18px + 1vw,30px)/1.15 var(--f-disp);letter-spacing:-.015em;text-wrap:balance}
.mz-post__body h3{margin:28px 0 8px;font:600 calc(var(--step-body) + 2px)/1.3 var(--f-text)}
.mz-post__body ul,.mz-post__body ol{margin:0 0 16px;padding-left:1.4em}
.mz-post__body ul{list-style:disc}
.mz-post__body ol{list-style:decimal}
.mz-post__body li{margin:0 0 8px;padding-left:.2em}
.mz-post__body li::marker{color:var(--muted)}
.mz-post__body a{text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:4px;text-decoration-color:var(--sun-deep)}
.mz-post__body a:hover{background:var(--sun)}
.mz-post__body b,.mz-post__body strong{font-weight:600}
.mz-post__body figure{margin:28px 0}
.mz-post__body figure img{width:100%;height:auto;border-radius:var(--r);background:var(--tint)}
.mz-post__body figcaption{margin-top:8px;color:var(--muted);font-size:var(--step-small);line-height:1.4}
.mz-post__body .note{margin:22px 0;padding:18px 20px;border-radius:var(--r-sm);background:var(--tint)}
.mz-post__body .sunbox{margin:26px 0;padding:22px 24px;border-radius:var(--r);background:var(--sun);color:var(--ink)}
.mz-post__body .note>:last-child,.mz-post__body .sunbox>:last-child{margin-bottom:0}
.mz-post__body .tbl{margin:20px 0 24px;overflow-x:auto}
.mz-post__body table{width:100%;min-width:520px;border-collapse:collapse;font-size:var(--step-small);line-height:1.45}
.mz-post__body th,.mz-post__body td{padding:12px 14px;text-align:left;vertical-align:top}
.mz-post__body th{background:var(--tint);font-weight:600}
.mz-post__body tr:nth-child(even) td{background:#F3F4F6}

/* Картки товарів у статті */
.mz-post__body .cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:16px;margin:22px 0 30px}
.mz-post__body .card{display:flex;flex-direction:column;padding:12px;border-radius:var(--r-sm);background:var(--tint);text-decoration:none}
.mz-post__body .card:hover{background:#E3E6EA}
.mz-post__body .card .ph{display:block;aspect-ratio:1/1;border-radius:var(--r-xs);overflow:hidden;background:#fff}
.mz-post__body .card img{width:100%;height:100%;object-fit:cover}
.mz-post__body .card .nm{margin:10px 2px 6px;font-weight:600;font-size:16px;line-height:1.3}
.mz-post__body .card .pr{margin:auto 2px 2px;font:700 18px/1 var(--f-disp);letter-spacing:-.02em}

/* FAQ статті */
.mz-post__body .faq{margin-top:clamp(40px,5vw,56px)}
.mz-post__body .faq h2{margin-top:0}
.mz-post__body .faq h3{margin:0;padding-top:22px;border-top:1px solid rgba(20,22,31,.12)}
.mz-post__body .faq h3:first-of-type{border-top:0;padding-top:0}
.mz-post__body .faq h3+p{margin:8px 0 22px}
.mz-post__body .faq h3+p:last-child{margin-bottom:0}

/* Зміст: на ПК розгорнутий, на телефоні згорнутий (details; скрипт у шаблоні лише знімає open до першого малювання) */
.mz-toc{margin:24px 0 8px;padding:0 clamp(18px,2.5vw,28px);border-radius:var(--r);background:var(--tint)}
.mz-toc>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;font:700 var(--step-lead)/1.2 var(--f-disp);letter-spacing:-.01em;cursor:pointer;list-style:none}
.mz-toc>summary::-webkit-details-marker{display:none}
.mz-toc>summary::after{content:"+";flex:none;font:600 var(--step-lead)/1 var(--f-text);transition:transform .2s}
.mz-toc[open]>summary::after{transform:rotate(45deg)}
.mz-toc ol{margin:0;padding:0 0 20px 1.4em;list-style:decimal}
.mz-toc li{margin:0 0 8px;padding-left:.3em;font-size:var(--step-body);line-height:1.4}
.mz-toc li::marker{color:var(--muted);font-weight:600}
.mz-toc a{text-decoration:none}
.mz-toc a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px;text-decoration-color:var(--sun-deep)}
.mz-post__body [id]{scroll-margin-top:88px}

/* Читайте також */
.mz-more{margin-top:clamp(56px,7vw,96px)}
.mz-more__title{margin:0 0 clamp(20px,3vw,32px);font:700 var(--step-lead)/1.15 var(--f-disp);letter-spacing:-.02em}

/* Бічна колонка (≥1100 px): липкий зміст з підсвіткою поточного розділу і 1–2 товари зі статті. Нижче 1100 px зміст стоїть під вступом, товарів немає (вони є в тексті). */
.mz-aside__shop{display:none}
.mz-aside__title{margin:0 0 12px;font:700 16px/1.2 var(--f-disp);letter-spacing:-.01em}
.mz-aside .mz-aside__list{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.mz-aside .mz-mini{margin:0;padding:10px 12px 10px 10px}
.mz-aside .mz-mini:hover{background:#E3E6EA}
.mz-aside a{text-decoration:none}
.mz-aside a:hover{background:none}
.mz-aside .mz-aside__title{margin:0 0 12px}
.mz-aside .mz-toc a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px;text-decoration-color:var(--sun-deep)}
.mz-aside .mz-toc a[aria-current],.mz-aside .mz-toc a[aria-current]:hover{background:var(--sun);color:var(--ink);box-shadow:0 0 0 4px var(--sun);border-radius:2px;text-decoration:none}
@media (min-width:1100px){
  .mz-post__article{display:grid;grid-template-columns:minmax(0,760px) minmax(0,340px);column-gap:clamp(48px,5vw,88px);justify-content:start;max-width:none}
  .mz-post__body{display:contents}
  .mz-post__head,.mz-post__intro,.mz-post__rest{grid-column:1}
  .mz-aside{grid-column:2;grid-row:1 / span 3;align-self:start;position:sticky;top:96px;margin-top:clamp(20px,3vw,40px)}
  .mz-aside .mz-toc ol{max-height:max(220px,calc(100vh - 460px));overflow-y:auto;overscroll-behavior:contain;padding-right:12px;scrollbar-width:thin}
  .mz-aside .mz-toc li{font-size:15px;line-height:1.35;margin-bottom:6px}
  .mz-aside .mz-toc{margin-top:0}
  .mz-aside__shop{display:block;margin-top:24px}
}

@media (max-width:899px){
  .mz-post__body .sunbox,.mz-post__body .note{padding:18px}
}
