/* MJM theme — page-specific styles. Секції додаються по сторінках. */

/* ===== checkout header ===== */
.mjm-cheader { background: var(--surface); border-bottom: 1px solid var(--border); }
.mjm-cheader__inner { height: 76px; display: flex; align-items: center; gap: 24px; }
.mjm-cheader .mjm-logo__name { font-size: 16px; }
.mjm-stepper { list-style: none; margin: 0 auto; padding: 0; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--muted); }
.mjm-stepper li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.mjm-stepper li span { width: 24px; height: 24px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.mjm-stepper li.is-done span { background: var(--ink); color: #fff; }
.mjm-stepper li.is-done { color: var(--ink); }
.mjm-stepper li.is-active span { background: var(--brand); color: #fff; }
.mjm-stepper li.is-active { color: var(--ink); font-weight: 600; }
.mjm-stepper li + li::before { content: ''; width: 28px; height: 1px; background: var(--border-3); margin-right: 4px; }
.mjm-cheader__secure { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.mjm-cheader__secure a { color: var(--ink); font-weight: 600; }
@media (max-width: 767px) {
  .mjm-cheader__inner { height: 56px; gap: 12px; }
  .mjm-cheader__secure { display: none; }
  .mjm-stepper { font-size: 12px; gap: 6px; }
  .mjm-stepper li + li::before { width: 10px; }
  .mjm-stepper li span { width: 20px; height: 20px; font-size: 11px; }
}

/* ===== contact ===== */
.mjm-contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; align-items: start; }
.mjm-contact .mjm-prose { max-width: none; }
.mjm-contact__care { grid-column: 1 / -1; }
.mjm-contact__list { margin: 12px 0 0; display: grid; }
.mjm-contact__list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.mjm-contact__list dt { display: flex; align-items: center; gap: 8px; align-self: start; min-height: 24px; font-size: 13px; font-weight: 500; color: var(--muted); }
.mjm-contact__list dt svg { color: var(--ink); flex-shrink: 0; }
.mjm-contact__list dd { margin: 0; display: grid; gap: 4px; justify-items: start; font-size: 15px; line-height: 22px; color: var(--ink); }
.mjm-contact__list dd small { font-size: 12.5px; color: var(--muted); }
.mjm-contact__list dd span { color: var(--text-2); }
.mjm-contact__info a { color: var(--ink); font-weight: 600; text-decoration: none; }
.mjm-contact__info a:hover { color: var(--brand); }
.mjm-contact__info a.mjm-contact__phone { font-size: 20px; line-height: 26px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mjm-contact__info .mjm-msgs__btn { color: #fff; }
.mjm-contact__list dd span.mjm-contact__247 { color: var(--ink); font-weight: 600; }
.mjm-contact__care { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.mjm-contact__prep-h { margin-top: 16px !important; font-weight: 600; color: var(--ink); }
.mjm-contact__prep { margin: 0 !important; }
.mjm-contact__service { display: grid; gap: 6px; padding: 20px; border-radius: var(--r-card); background: var(--surface-2); }
.mjm-contact__service-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.mjm-contact__care a.mjm-contact__service-num { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; line-height: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.mjm-contact__care a.mjm-contact__service-num:hover { color: var(--brand); }
.mjm-contact__service small { font-size: 13px; line-height: 18px; color: var(--muted); }
.mjm-contact__links { display: grid; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.mjm-contact__links b { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.mjm-contact__care .mjm-contact__links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.mjm-contact__care .mjm-contact__links a:hover { color: var(--brand); }
.mjm-contact__links a svg { color: var(--muted); }
@media (max-width: 991px) { .mjm-contact__care { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .mjm-contact__list > div { grid-template-columns: 1fr; gap: 6px; } }
.mjm-contact__form { display: flex; flex-direction: column; gap: 14px; }
.mjm-contact__form h2 { margin-bottom: 4px; }
@media (max-width: 991px) { .mjm-contact { grid-template-columns: 1fr; } }

/* ===== legacy (bootstrap) pages: account, compare, returns… ===== */
.mjm-legacy-page { display: flex; flex-direction: column; gap: 20px; }
.mjm-legacy-page .breadcrumb { font-size: 12.5px; color: var(--muted); margin: 0; }
.mjm-legacy-page .breadcrumb a { color: var(--muted); }
.mjm-legacy-page .breadcrumb-item + .breadcrumb-item::before { color: var(--border-3); }
.mjm-legacy-page h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.mjm-legacy-page h2, .mjm-legacy-page h3, .mjm-legacy-page legend { font-weight: 700; letter-spacing: -0.015em; }
.mjm-legacy-page #content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-tile); padding: 28px 32px; }
.mjm-legacy-page .list-group { border-radius: var(--r-card); overflow: hidden; }
.mjm-legacy-page .list-group-item { border-color: var(--border); padding: 12px 16px; font-size: 14px; }
.mjm-legacy-page .list-group-item.active { background: var(--ink); border-color: var(--ink); }
.mjm-legacy-page .btn-primary { background: var(--ink); border-color: var(--ink); border-radius: var(--r-btn); font-weight: 600; height: 44px; padding: 0 18px; }
.mjm-legacy-page .btn-primary:hover { background: var(--brand); border-color: var(--brand); }
.mjm-legacy-page .btn-light, .mjm-legacy-page .btn-secondary { border-radius: var(--r-btn); border: 1.5px solid var(--border-2); background: #fff; color: var(--ink); font-weight: 600; height: 44px; padding: 0 18px; }
.mjm-legacy-page .btn-danger { border-radius: var(--r-btn); }
.mjm-legacy-page .form-control, .mjm-legacy-page .form-select { height: 46px; border: 1.5px solid var(--border-2); border-radius: var(--r-input); font-size: 14px; }
.mjm-legacy-page textarea.form-control { height: auto; }
.mjm-legacy-page .form-control:focus, .mjm-legacy-page .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.mjm-legacy-page .form-label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.mjm-legacy-page .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.mjm-legacy-page .card { border: 1px solid var(--border); border-radius: var(--r-card); }
.mjm-legacy-page .table { font-size: 14px; }
.mjm-legacy-page .table > :not(caption) > * > * { padding: 12px 10px; border-color: var(--row-sep); }
.mjm-legacy-page a { color: var(--brand); }
.mjm-legacy-page .btn a, .mjm-legacy-page .list-group-item a { color: inherit; }
.mjm-legacy-page .alert { border-radius: 12px; }
.mjm-legacy-page .required .form-label::before { content: '* '; color: var(--price-sale); }
@media (max-width: 767px) { .mjm-legacy-page #content { padding: 18px; } }
.mjm-legacy-page a.btn, .mjm-legacy-page .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.mjm-legacy-page a.btn-primary { color: #fff; }
.mjm-legacy-page a.btn-light, .mjm-legacy-page a.btn-secondary { color: var(--ink); }
.mjm-legacy-page .btn-primary:hover { color: #fff; }
/* account: приховати непотрібні розділи, колонка меню на телефоні, таблиці зі скролом */
.mjm-legacy-page a[href*="route=account/subscription"], .mjm-legacy-page a[href*="route=account/download"], .mjm-legacy-page a[href*="route=account/reward"], .mjm-legacy-page a[href*="route=account/transaction"], .mjm-legacy-page a[href*="route=account/affiliate"], .mjm-legacy-page a[href*="route=account/newsletter"],
.mjm-legacy-page a[href*="/subscription"][href*="customer_token"], .mjm-legacy-page a[href*="/download"][href*="customer_token"], .mjm-legacy-page a[href*="/reward"][href*="customer_token"], .mjm-legacy-page a[href*="/transaction"][href*="customer_token"], .mjm-legacy-page a[href*="/affiliate"][href*="customer_token"], .mjm-legacy-page a[href*="/newsletter"][href*="customer_token"] { display: none !important; }
@media (max-width: 991px) {
  .mjm-legacy-page #column-right.d-none, .mjm-legacy-page #column-left.d-none { display: block !important; margin-top: 16px; }
  .mjm-legacy-page .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ===== Вхід / реєстрація (account/login, account/register) ===== */
.mjm-auth { display: grid; grid-template-columns: minmax(0, 480px) minmax(240px, 320px); gap: 48px; align-items: start; justify-content: start; }
.mjm-auth__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-tile); padding: 32px 36px 28px; display: flex; flex-direction: column; gap: 16px; }
.mjm-auth__card h1 { font-size: 28px; line-height: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.mjm-auth__lead { margin: -8px 0 4px; font-size: 14.5px; line-height: 21px; color: var(--text-2); max-width: 36ch; }
.mjm-auth__msg { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 19px; font-weight: 500; }
.mjm-auth__msg svg { flex-shrink: 0; margin-top: 2px; }
.mjm-auth__msg--ok { background: var(--brand-tint); color: var(--ink); }
.mjm-auth__msg--err { background: var(--price-sale-tint); color: var(--price-sale); }
.mjm-auth__or { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); margin: 2px 0; }
.mjm-auth__or::before, .mjm-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.mjm-auth__form { display: flex; flex-direction: column; gap: 14px; }
.mjm-auth__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mjm-auth__labelrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mjm-auth__forgot { font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-3); }
.mjm-auth__forgot:hover { color: var(--ink); text-decoration-color: currentColor; }
.mjm-auth__submit { width: 100%; margin-top: 4px; }
.mjm-auth__captcha { min-height: 65px; }
.mjm-auth__switch { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); text-align: center; }
.mjm-auth__switch a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-3); }
.mjm-auth__switch a:hover { color: var(--brand); text-decoration-color: currentColor; }
.mjm-auth__side { padding-top: 12px; }
.mjm-auth__side h2 { font-size: 15px; line-height: 20px; font-weight: 700; margin: 0 0 16px; color: var(--muted); }
.mjm-auth__benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.mjm-auth__benefits li { display: flex; gap: 14px; align-items: flex-start; }
.mjm-auth__benefits svg { flex-shrink: 0; color: var(--brand); margin-top: 1px; }
.mjm-auth__benefits strong { display: block; font-size: 14.5px; line-height: 20px; font-weight: 600; color: var(--ink); }
.mjm-auth__benefits span { display: block; font-size: 13px; line-height: 19px; color: var(--text-2); margin-top: 2px; }

/* Кнопки соцвходу (спільні для входу, реєстрації та форми відгуку) */
.mjm-social { display: flex; flex-direction: column; gap: 10px; }
.mjm-social__btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: var(--h-btn); padding: 0 18px; border-radius: var(--r-btn); border: 1.5px solid var(--border-2); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color var(--t-fast) ease, background var(--t-fast) ease, transform var(--t-fast) ease; }
.mjm-social__btn:hover { border-color: var(--ink); color: var(--ink); }
.mjm-social__btn:active { transform: translateY(1px); }
.mjm-social__btn svg { flex-shrink: 0; }
.mjm-social--lg .mjm-social__btn { height: var(--h-btn-lg); font-size: 15px; border-radius: 14px; }
.mjm-social--row { flex-direction: row; flex-wrap: wrap; }
.mjm-social--row .mjm-social__btn { flex: 1 1 180px; }

@media (max-width: 991px) {
  .mjm-auth { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mjm-auth__side { padding: 0 4px; }
}
@media (max-width: 640px) {
  .mjm-auth__card { padding: 22px 18px 20px; }
  .mjm-auth__card h1 { font-size: 24px; line-height: 28px; }
  .mjm-auth__grid2 { grid-template-columns: 1fr; }
}
/* Штатні сторінки кабінету на мобільному: бічне меню під контентом, а не у вузькій колонці */
@media (max-width: 767px) {
  .mjm-legacy-page > .row, .mjm-legacy-page .container > .row { flex-direction: column; }
  .mjm-legacy-page > .row > [class*="col"], .mjm-legacy-page .container > .row > [class*="col"] { width: 100%; flex: 0 0 auto; max-width: 100%; }
}

/* ===== blog ===== */
.mjm-blog__head { display: grid; gap: 6px; max-width: 60ch; }
.mjm-blog__head p { margin: 0; font-size: 16px; line-height: 24px; color: var(--muted); }
.mjm-blog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mjm-blog__grid--3 { gap: 16px; }
.mjm-post { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-tile); overflow: hidden; min-width: 0; transition: box-shadow var(--t-fast) ease, transform var(--t-fast) ease; }
.mjm-post:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.mjm-post__img { display: block; aspect-ratio: 16 / 10; background: var(--tint-warm); overflow: hidden; }
.mjm-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mjm-post__body { display: grid; gap: 8px; padding: 18px 20px 20px; }
.mjm-post__meta { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-caption); color: var(--muted); }
.mjm-post__meta i { width: 3px; height: 3px; border-radius: 999px; background: var(--border-3); }
.mjm-post h2, .mjm-post h3 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
.mjm-post h3 { font-size: 15px; line-height: 20px; }
.mjm-post h2 a, .mjm-post h3 a { color: var(--ink); }
.mjm-post h2 a:hover, .mjm-post h3 a:hover { color: var(--brand); }
.mjm-post p { margin: 0; font-size: var(--fs-body); line-height: 20px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mjm-post__read { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: var(--fs-small); font-weight: 600; color: var(--brand); }
.mjm-post--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
.mjm-post--lead .mjm-post__img { aspect-ratio: auto; min-height: 340px; }
.mjm-post--lead .mjm-post__body { padding: 32px; align-content: center; gap: 12px; }
.mjm-post--lead h2 { font-size: 28px; line-height: 34px; letter-spacing: -0.02em; }
.mjm-post--lead p { font-size: 15px; line-height: 23px; -webkit-line-clamp: 4; }
.mjm-blog__empty { color: var(--muted); }
/* стаття */
.mjm-article { gap: 24px; }
.mjm-article__head { display: grid; gap: 10px; }
.mjm-article__head h1 { font-size: 36px; line-height: 42px; text-wrap: balance; }
.mjm-article__cover { border-radius: var(--r-tile); overflow: hidden; background: var(--tint-warm); }
.mjm-article__cover img { width: 100%; height: auto; display: block; }
/* Стаття: широка колонка тексту + праворуч товари зі статті (липкий блок); без товарів — одна колонка до 980px */
.mjm-article__layout { display: grid; grid-template-columns: minmax(0, 980px); gap: 48px; align-items: start; }
.mjm-article__layout.has-aside { grid-template-columns: minmax(0, 1fr) 320px; }
.mjm-article__main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
/* Текст статті — у пропорціях старого сайту: базовий 14px, h2 21px, h3 16px, абзац 8.4px униз, списки з тире,
   картинки у власному розмірі (значки 14px лишаються значками). Усе множиться на --art-scale, щоб читалось зручніше. */
.mjm-prose.mjm-article__body { --art-scale: 1.143; max-width: none; font-size: calc(14px * var(--art-scale)); line-height: 1.6; color: var(--ink); }
.mjm-prose.mjm-article__body > p:first-child:has(> img:only-child) { display: none; }   /* перша картинка статті — це вже обкладинка вище */
.mjm-prose.mjm-article__body p { margin: 0 0 .6em; }
.mjm-prose.mjm-article__body h2 { margin: .67em 0 .38em; font-size: calc(21px * var(--art-scale)); line-height: 1.23; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.mjm-prose.mjm-article__body h3 { margin: .75em 0 .5em; font-size: calc(16px * var(--art-scale)); line-height: 1.4; font-weight: 700; color: var(--ink); }
.mjm-prose.mjm-article__body img { display: inline-block; max-width: 100%; height: auto; margin: 0; border-radius: 0; vertical-align: middle; }
.mjm-prose.mjm-article__body ul { list-style: none; margin: 0 0 .6em; padding: 0; display: block; }
.mjm-prose.mjm-article__body ul > li { position: relative; margin: 0 0 .6em; padding-left: 1.7em; }
.mjm-prose.mjm-article__body ul > li::before { content: '—'; position: absolute; left: 0; }
.mjm-prose.mjm-article__body ol { margin: 0 0 .6em; padding-left: 1.6em; display: block; }
.mjm-prose.mjm-article__body ol > li { margin: 0 0 .6em; }
.mjm-prose.mjm-article__body strong, .mjm-prose.mjm-article__body b { font-weight: 700; color: inherit; }
.mjm-prose.mjm-article__body big { font-size: larger; }
.mjm-prose.mjm-article__body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mjm-prose.mjm-article__body hr { border: 0; border-top: 1px solid var(--ink); margin: 1em 0; }

/* картка товару в тексті статті */
.mjm-art-product { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0; margin: 24px 0 28px; border: 1px solid var(--border); border-radius: var(--r-tile); background: var(--surface); overflow: hidden; transition: box-shadow var(--t-hover) ease, border-color var(--t-hover) ease; }
.mjm-art-product:hover { box-shadow: var(--shadow-card-hover); border-color: var(--border-3); }
.mjm-art-product__media { display: block; background: var(--tint-warm); align-self: stretch; }
.mjm-prose.mjm-article__body .mjm-art-product__media img { width: 100%; height: 100%; min-height: 200px; object-fit: contain; padding: 16px; margin: 0; border-radius: 0; mix-blend-mode: multiply; }
.mjm-art-product__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 24px; min-width: 0; }
.mjm-art-product__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.mjm-prose.mjm-article__body .mjm-art-product__name { font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.mjm-prose.mjm-article__body .mjm-art-product__name:hover { color: var(--brand); }
.mjm-art-product__rate { display: flex; align-items: center; gap: 8px; font-size: 13.5px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mjm-art-product__rate b { color: var(--ink); font-weight: 700; }
.mjm-art-product__stars { display: inline-flex; gap: 1px; color: var(--border-3); }
.mjm-art-product__stars i { display: flex; }
.mjm-art-product__stars i.is-on { color: var(--star); }
.mjm-art-product__foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.mjm-art-product__price { display: flex; flex-direction: column; line-height: 1.15; }
.mjm-art-product__price s { font-size: 13px; color: var(--muted-2); }
.mjm-prose.mjm-article__body .mjm-art-product__price strong { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.mjm-prose.mjm-article__body .mjm-art-product__price strong.is-sale { color: var(--price-sale); }
.mjm-art-product__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mjm-prose.mjm-article__body .mjm-art-product__actions .mjm-btn { text-decoration: none; }
.mjm-prose.mjm-article__body .mjm-art-product__actions .mjm-btn--accent { color: #fff; font-weight: 600; }
.mjm-prose.mjm-article__body .mjm-art-product__actions .mjm-btn--ghost { color: var(--ink); font-weight: 600; }
.mjm-art-product__out { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.mjm-art-product.is-out .mjm-art-product__media img { opacity: .6; }

/* бічний блок «Товари зі статті» */
.mjm-article__aside { position: sticky; top: 96px; display: grid; gap: 4px; padding: 18px 14px 12px; border: 1px solid var(--border); border-radius: var(--r-tile); background: var(--surface); }
.mjm-article__aside h2 { margin: 0 6px 6px; font-size: 15px; line-height: 20px; font-weight: 700; }
.mjm-art-mini { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 12px; color: var(--ink); transition: background var(--t-fast) ease; }
.mjm-art-mini:hover { background: var(--surface-2); color: var(--ink); }
.mjm-art-mini img { width: 60px; height: 60px; flex-shrink: 0; border-radius: 10px; background: var(--tint-warm); object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.mjm-art-mini > span { display: grid; gap: 3px; min-width: 0; }
.mjm-art-mini strong { font-size: 13px; line-height: 17px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mjm-art-mini__rate { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mjm-art-mini__rate svg { color: var(--star); fill: currentColor; }
.mjm-art-mini__rate b { color: var(--ink); }
.mjm-art-mini__price { display: inline-flex; align-items: baseline; gap: 6px; font-size: 14px; }
.mjm-art-mini__price s { font-size: 11.5px; color: var(--muted-2); }
@media (max-width: 1199px) {
  .mjm-article__layout.has-aside { grid-template-columns: minmax(0, 1fr); }
  .mjm-article__aside { display: none; }
}
@media (max-width: 767px) {
  .mjm-prose.mjm-article__body { --art-scale: 1.1; }
  .mjm-art-product { grid-template-columns: 1fr; }
  .mjm-prose.mjm-article__body .mjm-art-product__media img { height: 220px; min-height: 0; }
  .mjm-art-product__body { padding: 16px; }
  .mjm-art-product__actions { width: 100%; }
  .mjm-art-product__actions form, .mjm-art-product__actions .mjm-btn { flex: 1 1 0; }
  .mjm-art-product__actions form .mjm-btn { width: 100%; }
}
.mjm-article__body h2 { font-size: 24px; line-height: 30px; margin: 28px 0 10px; letter-spacing: -0.015em; }
.mjm-article__body h3 { font-size: 19px; line-height: 25px; font-weight: 700; color: var(--ink); margin: 22px 0 8px; }
.mjm-article__body p { margin: 0 0 14px; }
.mjm-article__body img { max-width: 100%; height: auto; margin: 8px 0 16px; }
.mjm-article__body table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
.mjm-article__body td, .mjm-article__body th { padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.mjm-article__body blockquote { margin: 0 0 14px; padding: 12px 18px; border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.mjm-article__back { align-self: flex-start; }
.mjm-article__back svg { transform: rotate(180deg); }
.mjm-article__more { display: grid; gap: 16px; padding-top: 8px; }
.mjm-article__more h2 { margin: 0; font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; letter-spacing: -0.02em; }
/* інфосторінки: таблиці та картинки зі старого сайту */
.mjm-prose table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.mjm-prose td, .mjm-prose th { padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.mjm-prose td img { height: 20px; width: auto; vertical-align: middle; border-radius: 0; }
.mjm-prose p > img { max-width: 100%; height: auto; }
.mjm-prose p > img[src$=".svg"], .mjm-prose p > img[height="40"] { width: auto; height: 40px; display: inline-block; vertical-align: middle; margin: 4px 12px 4px 0; border-radius: 8px; }
.mjm-prose hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
@media (max-width: 991px) {
  .mjm-blog__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .mjm-post--lead { grid-template-columns: 1fr; }
  .mjm-post--lead .mjm-post__img { aspect-ratio: 16 / 9; min-height: 0; }
  .mjm-post--lead .mjm-post__body { padding: 20px; }
  .mjm-post--lead h2 { font-size: 22px; line-height: 28px; }
}
@media (max-width: 640px) {
  .mjm-blog__grid { grid-template-columns: 1fr; }
  .mjm-post__body { padding: 14px 16px 16px; }
  .mjm-article__head h1 { font-size: 26px; line-height: 32px; }
  .mjm-article__body { font-size: 15px; line-height: 24px; }
  .mjm-article__body h2 { font-size: 20px; line-height: 26px; }
}

/* ===== інфосторінки (покупцям) ===== */
.mjm-info { gap: 16px; }
.mjm-info__grid { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 32px; align-items: start; }
.mjm-info__side { position: sticky; top: 96px; display: grid; gap: 16px; }
.mjm-info__nav, .mjm-info__toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 10px; display: grid; gap: 2px; }
.mjm-info__navtitle { padding: 8px 12px 6px; font-size: var(--fs-overline); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.mjm-info__navlink { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: var(--fs-body); font-weight: 500; color: var(--text-2); transition: background var(--t-fast) ease, color var(--t-fast) ease; }
.mjm-info__navlink svg { color: var(--muted-2); flex-shrink: 0; }
.mjm-info__navlink:hover { background: var(--surface-2); color: var(--ink); }
.mjm-info__navlink.is-active { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.mjm-info__navlink.is-active svg { color: var(--brand); }
.mjm-info__toc ol { margin: 0; padding: 0 4px 6px; list-style: none; display: grid; gap: 2px; max-height: 50vh; overflow: auto; }
.mjm-info__toc a { display: block; padding: 6px 8px; border-left: 2px solid transparent; font-size: var(--fs-small); line-height: 18px; color: var(--muted); }
.mjm-info__toc a:hover { color: var(--ink); }
.mjm-info__toc a.is-active { color: var(--brand); border-color: var(--brand); }
.mjm-info__main { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-tile); padding: 40px 56px 48px; }
.mjm-info__head { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.mjm-info__head h1 { margin: 0; font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 800; letter-spacing: -0.02em; }
.mjm-info__badge { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-tint); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mjm-info__body { max-width: 860px; font-size: 16px; line-height: 27px; color: var(--text-2); }
.mjm-info__body > :first-child { margin-top: 0; }
.mjm-info__body p { margin: 0 0 14px; }
.mjm-info__body h2, .mjm-info__body h3, .mjm-info__body h4,
.mjm-info__body p:has(> strong:only-child), .mjm-info__body p:has(> b:only-child) { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); margin: 32px 0 12px; scroll-margin-top: 100px; }
.mjm-info__body h3, .mjm-info__body h4 { font-size: 18px; line-height: 24px; margin: 24px 0 8px; }
.mjm-info__body h2.is-long, .mjm-info__body h3.is-long, .mjm-info__body h4.is-long { font-size: 17px; line-height: 25px; font-weight: 600; margin: 20px 0 10px; }
.mjm-info__body h2 strong, .mjm-info__body h3 strong, .mjm-info__body h4 strong { font-weight: inherit; }
.mjm-info__body strong, .mjm-info__body b { color: var(--ink); font-weight: 600; }
.mjm-info__body var, .mjm-info__body em { font-style: normal; }
.mjm-info__body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mjm-info__body ul, .mjm-info__body ol { margin: 0 0 16px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.mjm-info__body ul li { position: relative; padding-left: 26px; }
.mjm-info__body ul li::before { content: ''; position: absolute; left: 6px; top: 11px; width: 7px; height: 7px; border-radius: 999px; background: var(--brand); }
.mjm-info__body ol { counter-reset: n; }
.mjm-info__body ol li { position: relative; padding-left: 40px; counter-increment: n; }
.mjm-info__body ol li::before { content: counter(n); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-3); color: var(--ink); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.mjm-info__body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 20px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.mjm-info__body td, .mjm-info__body th { padding: 14px 18px; border: 0; border-top: 1px solid var(--border); vertical-align: middle; font-size: 15px; line-height: 22px; }
.mjm-info__body tr:first-child td, .mjm-info__body tr:first-child th { border-top: 0; }
.mjm-info__body tr:nth-child(even) td { background: var(--surface-2); }
.mjm-info__body td:last-child { color: var(--ink); }
.mjm-info__body td img { height: 22px; width: auto; display: inline-block; vertical-align: middle; margin-right: 6px; border-radius: 0; }
.mjm-info__body p > img[src$=".svg"], .mjm-info__body p > img[height="40"] { width: auto; height: 40px; display: inline-block; vertical-align: middle; margin: 4px 12px 4px 0; border-radius: 8px; }
.mjm-info__body p > img:not([src$=".svg"]):not([height="40"]) { max-width: 100%; height: auto; border-radius: 14px; margin: 8px 0 16px; }
.mjm-info__body hr { border: 0; height: 1px; background: var(--border); margin: 28px 0; }
.mjm-info__body > div > :first-child { margin-top: 0; }
.mjm-info__help { margin-top: 40px; padding: 22px 24px; border-radius: var(--r-card); background: var(--tint-cool); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mjm-info__help > div:first-child { display: grid; gap: 2px; }
.mjm-info__help b { font-size: 16px; }
.mjm-info__help span { font-size: var(--fs-small); color: var(--muted); }
.mjm-info__helpbtns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1199px) {
  .mjm-info__grid { grid-template-columns: 232px minmax(0, 1fr); gap: 20px; }
  .mjm-info__main { padding: 32px 36px 36px; }
}
@media (max-width: 991px) {
  .mjm-info__grid { grid-template-columns: 1fr; }
  .mjm-info__side { position: static; }
  .mjm-info__toc { display: none; }
  .mjm-info__nav { display: flex; overflow-x: auto; gap: 6px; padding: 8px; scrollbar-width: none; }
  .mjm-info__nav::-webkit-scrollbar { display: none; }
  .mjm-info__navtitle { display: none; }
  .mjm-info__navlink { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--border-2); font-size: var(--fs-small); }
  .mjm-info__navlink.is-active { border-color: var(--brand); }
}
@media (max-width: 767px) {
  .mjm-info { gap: 12px; }
  .mjm-info__main { padding: 20px 16px 24px; border-radius: var(--r-card); }
  .mjm-info__head { gap: 12px; padding-bottom: 16px; margin-bottom: 18px; }
  .mjm-info__head h1 { font-size: 24px; line-height: 30px; }
  .mjm-info__badge { width: 42px; height: 42px; border-radius: 12px; }
  .mjm-info__body { font-size: 15px; line-height: 24px; }
  .mjm-info__body h2, .mjm-info__body p:has(> strong:only-child), .mjm-info__body p:has(> b:only-child) { font-size: 19px; line-height: 25px; margin: 24px 0 10px; }
  .mjm-info__body td, .mjm-info__body th { padding: 10px 12px; font-size: 14px; line-height: 20px; }
  .mjm-info__body table { display: block; overflow-x: auto; }
  .mjm-info__help { margin-top: 28px; padding: 18px; }
}

/* ===== оптовим клієнтам ===== */
.mjm-opt { display: grid; gap: 8px; }
.mjm-info__body .mjm-opt__lead { font-size: 19px; line-height: 29px; color: var(--ink); max-width: 44ch; margin: 0 0 12px; }
.mjm-opt__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 20px; }
.mjm-opt__card { padding: 18px 20px; border-radius: var(--r-card); background: var(--surface-2); border: 1px solid var(--border); display: grid; gap: 6px; align-content: start; }
.mjm-opt__card b { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ink); }
.mjm-info__body .mjm-opt__card p { margin: 0; font-size: 14px; line-height: 21px; color: var(--text-2); }
.mjm-info__body .mjm-opt__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 20px; counter-reset: s; }
.mjm-info__body .mjm-opt__steps li { padding: 16px 16px 16px 16px; border: 1px solid var(--border); border-radius: var(--r-card); display: grid; gap: 4px; counter-increment: s; }
.mjm-info__body .mjm-opt__steps li::before { position: static; width: 28px; height: 28px; margin-bottom: 6px; border-radius: 9px; background: var(--brand); color: #fff; content: counter(s); font-size: 13px; }
.mjm-opt__steps b { font-size: 15px; color: var(--ink); }
.mjm-opt__steps span { font-size: 13.5px; line-height: 19px; color: var(--muted); }
.mjm-opt__no { padding: 14px 18px; border-radius: 12px; background: var(--warn-tint); color: var(--warn); font-size: 14px; line-height: 20px; margin: 0 0 8px; }
.mjm-opt__no b { color: inherit; }
.mjm-opt__contacts { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 12px; margin: 4px 0 12px; }
.mjm-info__body a.mjm-opt__contact { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border-2); text-decoration: none; color: var(--ink); transition: border-color var(--t-fast) ease, background var(--t-fast) ease; min-width: 0; }
.mjm-info__body a.mjm-opt__contact:hover { border-color: var(--brand); background: var(--brand-tint); }
.mjm-opt__contact b { font-size: 15px; overflow-wrap: anywhere; }
.mjm-opt__contact span { font-size: 13px; color: var(--muted); }
.mjm-info__body .mjm-opt__hours { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 1199px) { .mjm-opt__cards { grid-template-columns: 1fr 1fr; } .mjm-info__body .mjm-opt__steps, .mjm-opt__contacts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .mjm-opt__cards, .mjm-info__body .mjm-opt__steps, .mjm-opt__contacts { grid-template-columns: 1fr; } .mjm-info__body .mjm-opt__lead { font-size: 17px; line-height: 26px; } }
.mjm-contact__info .mjm-msgs { flex-wrap: wrap; }
.mjm-contact__list > div { grid-template-columns: 132px minmax(0, 1fr); }
@media (max-width: 520px) { .mjm-contact__list > div { grid-template-columns: 1fr; } }
.mjm-contact__list dd .mjm-msgs__btn span { color: inherit; }

/* ===== sitemap (HTML-карта сайту, /siteindex/) ===== */
.mjm-map { gap: 0; }
.mjm-map__head { display: grid; gap: 8px; max-width: 60ch; margin-top: 20px; }
.mjm-map__head p { margin: 0; font-size: 16px; line-height: 24px; color: var(--muted); }
.mjm-map__section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border-2); min-width: 0; }
.mjm-map__section h2 { margin: 0; font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; letter-spacing: -0.02em; }
.mjm-map a { transition: color var(--t-fast) ease; }
.mjm-map a:hover { color: var(--brand); }
.mjm-map ul { list-style: none; margin: 0; padding: 0; }
.mjm-map__bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.mjm-map__extra { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--brand); }
.mjm-map__extra a:hover { color: var(--ink); }
/* розділи каталогу — колонками; розділ не розривається між колонками */
.mjm-map__cols { margin-top: 24px; columns: 4 250px; column-gap: 40px; }
.mjm-map__group { break-inside: avoid; padding-bottom: 32px; }
.mjm-map__group h3 { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.mjm-map__subs { margin-top: 10px !important; display: grid; gap: 8px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.mjm-map__subs .mjm-map__subs { margin-top: 8px !important; padding-left: 14px; border-left: 1px solid var(--border-2); }
/* сторінки під запити: третій рівень — дрібніше і тихіше за розділи */
.mjm-map__queries { margin-top: 6px !important; display: grid; gap: 4px; font-size: 13px; line-height: 18px; font-weight: 400; color: var(--muted); }
.mjm-map__queries.is-long:not(.is-open) li:nth-child(n+7) { display: none; }
.mjm-map__more { margin-top: 4px; padding: 0; border: 0; background: none; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--brand); }
.mjm-map__more:hover { color: var(--ink); }
.mjm-map__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 56px; }
.mjm-map__list { margin-top: 20px !important; display: grid; gap: 10px; font-size: 14px; line-height: 20px; color: var(--text-2); }
.mjm-map__list--articles { max-width: 72ch; }
@media (max-width: 760px) {
  .mjm-map__head { margin-top: 16px; }
  .mjm-map__head p { font-size: 15px; line-height: 22px; }
  .mjm-map__section { margin-top: 28px; padding-top: 24px; }
  .mjm-map__section h2 { font-size: 22px; line-height: 28px; }
  .mjm-map__cols { columns: 1; }
  .mjm-map__group { padding-bottom: 24px; }
  .mjm-map__pair { grid-template-columns: 1fr; }
  .mjm-map__subs, .mjm-map__list { gap: 12px; font-size: 15px; line-height: 22px; }   /* більші проміжки — зручніше влучити пальцем */
  .mjm-map__queries { gap: 8px; font-size: 14px; line-height: 20px; }
}
