/* Блог myconsolestore: список статей, статья и блок на главной.
   Всё под префиксом .mb, чтобы не задевать стили темы. Цвета и шрифты — как у витрины:
   заголовки Bounded, текст Inter, акцент жёлтый. */

.mb {
    --mb-accent: #ffde00;
    --mb-text: rgba(255, 255, 255, .88);
    --mb-muted: rgba(255, 255, 255, .58);
    --mb-card: rgba(255, 255, 255, .045);
    --mb-card-hover: rgba(255, 255, 255, .07);
    --mb-line: rgba(255, 255, 255, .09);
    --mb-radius: 22px;
    --mb-head: "Bounded", "Inter", sans-serif;
    color: var(--mb-text);
    font-family: "Inter", sans-serif;
}
.mb *, .mb *::before, .mb *::after { box-sizing: border-box; }
.mb a { color: inherit; text-decoration: none; }

/* ---------- шапка списка ---------- */

.mb-head { margin: 0 0 28px; }
.mb-head__sub { margin: -6px 0 22px; font-size: 16px; line-height: 1.5; color: var(--mb-muted); max-width: 640px; }
.mb-head__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.mb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 38px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--mb-line); background: var(--mb-card);
    font-size: 14px; font-weight: 600; color: var(--mb-text);
    transition: border-color .2s, background .2s, color .2s;
}
.mb-chip:hover { border-color: rgba(255, 222, 0, .55); }
.mb-chip small { font-weight: 500; color: var(--mb-muted); font-size: 12px; }
.mb-chip_active, .mb-chip_active:hover { background: var(--mb-accent); border-color: var(--mb-accent); color: #111 !important; }
.mb-chip_active small { color: rgba(0, 0, 0, .55); }

.mb-search { position: relative; width: 300px; max-width: 100%; }
.mb-search input {
    width: 100%; height: 42px; padding: 0 44px 0 16px; border-radius: 14px;
    border: 1px solid var(--mb-line); background: var(--mb-card);
    color: #fff; font: 14px "Inter", sans-serif; outline: none; transition: border-color .2s;
}
.mb-search input::placeholder { color: var(--mb-muted); }
.mb-search input:focus { border-color: rgba(255, 222, 0, .6); }
.mb-search button {
    position: absolute; right: 4px; top: 4px; width: 34px; height: 34px;
    border: 0; border-radius: 10px; background: transparent; color: var(--mb-muted); cursor: pointer;
}
.mb-search button:hover { color: var(--mb-accent); }
.mb-search svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- мета: дата, время чтения ---------- */

.mb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--mb-muted); }
.mb-meta span { display: inline-flex; align-items: center; gap: 6px; }
.mb-meta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.mb-tag {
    display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 8px;
    background: rgba(255, 222, 0, .14); color: var(--mb-accent); font-size: 12px; font-weight: 700;
    letter-spacing: .02em; text-transform: uppercase;
}

/* ---------- главная статья в списке ---------- */

.mb-feature {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    margin: 0 0 32px; border-radius: 28px; overflow: hidden;
    background: var(--mb-card); border: 1px solid var(--mb-line);
    transition: border-color .25s, background .25s;
}
.mb-feature:hover { border-color: rgba(255, 222, 0, .45); background: var(--mb-card-hover); }
.mb-feature__img { position: relative; min-height: 360px; overflow: hidden; background: #15151b; }
.mb-feature__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mb-feature:hover .mb-feature__img img { transform: scale(1.04); }
.mb-feature__body { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 44px 44px 44px 40px; }
.mb-feature__title { margin: 0; font-family: var(--mb-head); font-weight: 400; font-size: 30px; line-height: 1.25; color: #fff; }
.mb-feature__ex { margin: 0; font-size: 16px; line-height: 1.65; color: var(--mb-muted);
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.mb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 50px; padding: 0 28px; border-radius: 15px; border: 0;
    background: var(--mb-accent); color: #111 !important; font: 600 15px "Inter", sans-serif;
    cursor: pointer; transition: transform .2s, box-shadow .2s; align-self: flex-start;
}
.mb-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 222, 0, .25); }
.mb-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mb-btn_ghost { background: transparent; color: #fff !important; border: 1px solid var(--mb-line); }
.mb-btn_ghost:hover { border-color: var(--mb-accent); box-shadow: none; }

/* ---------- сетка карточек ---------- */

.mb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mb-card {
    display: flex; flex-direction: column; min-width: 0;
    border-radius: var(--mb-radius); overflow: hidden;
    background: var(--mb-card); border: 1px solid var(--mb-line);
    transition: transform .25s, border-color .25s, background .25s;
}
.mb-card:hover { transform: translateY(-4px); border-color: rgba(255, 222, 0, .45); background: var(--mb-card-hover); }
.mb-card__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #15151b; }
.mb-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.mb-card:hover .mb-card__img img { transform: scale(1.06); }
.mb-card__noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 30% 20%, rgba(255, 222, 0, .18), transparent 60%), #17171e;
    font-family: var(--mb-head); font-size: 22px; color: rgba(255, 255, 255, .25); }
.mb-card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 20px 22px 22px; }
.mb-card__title { margin: 0; font-family: var(--mb-head); font-weight: 400; font-size: 18px; line-height: 1.35; color: #fff;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mb-card__ex { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--mb-muted);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mb-card__more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--mb-accent); }
.mb-card__more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.mb-card:hover .mb-card__more svg { transform: translateX(4px); }

.mb-empty { padding: 48px 24px; text-align: center; border-radius: var(--mb-radius); background: var(--mb-card); color: var(--mb-muted); font-size: 16px; }

/* ---------- пагинация ---------- */

.mb-pager { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 40px 0 10px; }
.mb-pager .pagin { margin: 0; }
.mb-pager__more[hidden] { display: none; }
.mb-pager .mb-btn { align-self: center; }

/* ---------- статья: обложка ---------- */

.mb-post { max-width: 1240px; margin: 0 auto; }
.mb-hero { position: relative; border-radius: 30px; overflow: hidden; background: #15151b; margin: 0 0 40px; min-height: 340px; }
.mb-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mb-hero::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 13, .05) 0%, rgba(10, 10, 13, .45) 45%, rgba(10, 10, 13, .96) 100%); }
.mb-hero_noimg { background: radial-gradient(circle at 15% 0%, rgba(255, 222, 0, .22), transparent 55%), radial-gradient(circle at 90% 100%, rgba(140, 80, 255, .25), transparent 60%), #14141a; }
.mb-hero__body { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px;
    min-height: 460px; padding: 48px 52px; max-width: 980px; }
.mb-hero h1, .mb-hero__title { margin: 0 !important; font-family: var(--mb-head); font-weight: 400; color: #fff;
    font-size: 44px; line-height: 1.15; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.mb-hero .mb-meta { color: rgba(255, 255, 255, .78); font-size: 14px; }

/* ---------- статья: колонки ---------- */

.mb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.mb-layout_single { grid-template-columns: minmax(0, 1fr); }
.mb-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.mb-box { border-radius: var(--mb-radius); background: var(--mb-card); border: 1px solid var(--mb-line); padding: 22px; }
.mb-box__title { margin: 0 0 14px; font-family: var(--mb-head); font-size: 15px; font-weight: 400; color: #fff; letter-spacing: .02em; }

.mb-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: mbtoc; }
.mb-toc li { counter-increment: mbtoc; }
.mb-toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; line-height: 1.4; color: var(--mb-muted);
    transition: color .2s, background .2s; }
.mb-toc a::before { content: counter(mbtoc, decimal-leading-zero); font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .3); padding-top: 1px; }
.mb-toc a:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.mb-toc a.is-active { color: #fff; background: rgba(255, 222, 0, .08); }
.mb-toc a.is-active::before { color: var(--mb-accent); }
.mb-toc-m { display: none; }

.mb-cta p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--mb-muted); }
.mb-cta__links { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-cta__links .mb-chip { height: 34px; padding: 0 14px; font-size: 13px; }

.mb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mb-share a, .mb-share button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px;
    border-radius: 12px; border: 1px solid var(--mb-line); background: transparent; color: var(--mb-text);
    font: 600 13px "Inter", sans-serif; cursor: pointer; transition: border-color .2s, color .2s;
}
.mb-share a:hover, .mb-share button:hover { border-color: var(--mb-accent); color: #fff; }
.mb-share svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- статья: текст ---------- */

.mb-article { font-size: 17px; line-height: 1.78; color: var(--mb-text); max-width: 780px; overflow-wrap: anywhere; }
.mb-article > *:first-child { margin-top: 0 !important; }
.mb-article p { margin: 0 0 1.15em; font-size: inherit; line-height: inherit; color: inherit; }
.mb-article p:empty { display: none; }
.mb-article h2 { margin: 2.1em 0 .75em; font-family: var(--mb-head); font-weight: 400; font-size: 27px; line-height: 1.3; color: #fff; scroll-margin-top: 96px; }
.mb-article h3 { margin: 1.7em 0 .6em; font-family: var(--mb-head); font-weight: 400; font-size: 21px; line-height: 1.35; color: #fff; scroll-margin-top: 96px; }
.mb-article h4 { margin: 1.5em 0 .5em; font-size: 18px; font-weight: 700; color: #fff; }
.mb-article h1:empty { display: none; }
.mb-article strong, .mb-article b { color: #fff; font-weight: 600; }
.mb-article a { color: var(--mb-accent); text-decoration: underline; text-decoration-color: rgba(255, 222, 0, .4); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.mb-article a:hover { text-decoration-color: var(--mb-accent); }
.mb-article ul, .mb-article ol { margin: 0 0 1.25em; padding: 0 0 0 1.4em; }
.mb-article li { margin: 0 0 .5em; padding-left: .2em; }
.mb-article ul li::marker { color: var(--mb-accent); }
.mb-article ol li::marker { color: var(--mb-accent); font-weight: 700; }
.mb-article img { max-width: 100%; height: auto; border-radius: 18px; display: block; margin: 1.6em auto; }
.mb-article figure { margin: 1.6em 0; }
.mb-article figcaption { margin-top: 8px; font-size: 14px; color: var(--mb-muted); text-align: center; }
.mb-article blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 3px solid var(--mb-accent); border-radius: 0 16px 16px 0;
    background: rgba(255, 222, 0, .06); color: #fff; font-size: 17px; }
.mb-article blockquote p:last-child { margin: 0; }
.mb-article hr { border: 0; height: 1px; background: var(--mb-line); margin: 2.2em 0; }
.mb-article table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6em 0; font-size: 15px; line-height: 1.5;
    border: 1px solid var(--mb-line); border-radius: 16px; overflow: hidden; display: block; overflow-x: auto; }
.mb-article th, .mb-article td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--mb-line); }
.mb-article th { background: rgba(255, 255, 255, .05); color: #fff; font-weight: 600; }
.mb-article tr:last-child td { border-bottom: 0; }
.mb-article iframe, .mb-article video { max-width: 100%; border-radius: 18px; border: 0; }

/* товары внутри статьи (плагин «Товары в тексте») */
.mb-products { margin: 2.2em 0 1em; padding: 26px; border-radius: 26px; background: linear-gradient(135deg, rgba(255, 222, 0, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 222, 0, .22); }
.mb-products__title { margin: 0 0 18px; font-family: var(--mb-head); font-size: 22px; line-height: 1.3; color: #fff; }
.mb-products__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.mb .mb-prod, .mb-prod { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; background: rgba(10, 10, 13, .55);
    border: 1px solid var(--mb-line); color: #fff !important; text-decoration: none !important; transition: transform .2s, border-color .2s; }
.mb-prod:hover { transform: translateY(-3px); border-color: rgba(255, 222, 0, .55); }
.mb-prod__img { display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #1a1a21; }
.mb-prod__img img { width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; border-radius: 0 !important; }
.mb-prod__name { font-size: 14px; line-height: 1.4; font-weight: 600; color: #fff;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.mb-prod__row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.mb-prod__price { font-size: 17px; font-weight: 700; color: #fff; white-space: nowrap; }
.mb-prod__old { font-size: 13px; color: var(--mb-muted); white-space: nowrap; }
.mb-prod__btn { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 12px; background: var(--mb-accent); color: #111; font-size: 14px; font-weight: 600; }

/* ---------- после статьи ---------- */

.mb-after { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    max-width: 780px; margin: 40px 0 0; padding: 22px 0 0; border-top: 1px solid var(--mb-line); }
.mb-after__label { font-size: 14px; color: var(--mb-muted); margin-right: 4px; }

.mb-related { margin: 72px 0 0; }
.mb-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.mb-section-head__title { margin: 0; font-family: var(--mb-head); font-weight: 400; font-size: 30px; line-height: 1.2; color: #fff; }
.mb-section-head__link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--mb-accent) !important; white-space: nowrap; }
.mb-section-head__link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.mb-section-head__link:hover svg { transform: translateX(4px); }

/* ---------- блок на главной ---------- */

.mb-home { margin: 0; }
.mb-home .mb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mb-home .mb-card__title { font-size: 16px; }
.mb-home .mb-card__body { padding: 18px 18px 20px; gap: 10px; }

/* ---------- адаптив ---------- */

@media (max-width: 1200px) {
    .mb-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
    .mb-home .mb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mb-home .mb-grid > .mb-card:nth-child(4) { display: none; }
}
@media (max-width: 1024px) {
    .mb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .mb-feature { grid-template-columns: 1fr; }
    .mb-feature__img { min-height: 0; aspect-ratio: 16 / 9; }
    .mb-feature__body { padding: 28px; }
    .mb-feature__title { font-size: 25px; }
    .mb-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .mb-aside { position: static; margin-top: 40px; }
    .mb-aside .mb-toc { display: none; }
    .mb-toc-m { display: block; margin: 0 0 32px; }
    .mb-toc-m summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; font-family: var(--mb-head); font-size: 15px; color: #fff; }
    .mb-toc-m summary::-webkit-details-marker { display: none; }
    .mb-toc-m summary::after { content: "+"; font-family: "Inter", sans-serif; font-size: 22px; color: var(--mb-accent); line-height: 1; }
    .mb-toc-m[open] summary::after { content: "–"; }
    .mb-toc-m[open] summary { margin-bottom: 12px; }
    .mb-article, .mb-after { max-width: none; }
    .mb-hero__body { min-height: 380px; padding: 36px; }
    .mb-hero h1, .mb-hero__title { font-size: 34px; }
    .mb-home .mb-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; scrollbar-width: none; }
    .mb-home .mb-grid::-webkit-scrollbar { display: none; }
    .mb-home .mb-grid > .mb-card { flex: 0 0 300px; scroll-snap-align: start; }
    .mb-home .mb-grid > .mb-card:nth-child(4) { display: flex; }
}
@media (max-width: 640px) {
    .mb-head__bar { flex-direction: column; align-items: stretch; }
    .mb-search { width: 100%; }
    .mb-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + 30px); max-width: calc(100% + 30px); margin: 0 -15px; padding: 0 15px; }
    .mb-chips::-webkit-scrollbar { display: none; }
    .mb-chip { flex: 0 0 auto; }
    .mb-grid { grid-template-columns: 1fr; gap: 16px; }
    .mb-feature { border-radius: 22px; margin-bottom: 20px; }
    .mb-feature__body { padding: 22px 20px 24px; gap: 14px; }
    .mb-feature__title { font-size: 21px; }
    .mb-feature__ex { font-size: 15px; -webkit-line-clamp: 3; }
    .mb-btn { height: 46px; padding: 0 22px; }
    .mb-hero { border-radius: 22px; margin-bottom: 28px; min-height: 0; }
    .mb-hero__body { min-height: 340px; padding: 24px 20px; gap: 14px; }
    .mb-hero h1, .mb-hero__title { font-size: 25px; line-height: 1.22; }
    .mb-hero .mb-meta { font-size: 13px; }
    .mb-article { font-size: 16px; line-height: 1.72; }
    .mb-article h2 { font-size: 22px; }
    .mb-article h3 { font-size: 18px; }
    .mb-products { padding: 18px; border-radius: 20px; }
    .mb-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .mb-prod { padding: 10px; }
    .mb-prod__name { font-size: 13px; }
    .mb-prod__price { font-size: 15px; }
    .mb-section-head__title { font-size: 23px; }
    .mb-related { margin-top: 52px; }
    .mb-home .mb-grid > .mb-card { flex-basis: 82%; }
}
