/* =========================================================
   Файно Склад — головна (модульна) v2
   Скоуп: body.theme-m.m-is-home — інші сторінки не зачіпає.
   ========================================================= */

:root {
  --mh-ink: #11141a;
  --mh-ink-soft: #1a1d23;
  --mh-yellow: var(--m-brand, #ffb800);
  --mh-wrap: 1180px;
}

/* ── Шапка: біла Stitch-смуга й на головній (компонентні стилі — у stylesheet.css) ── */
body.theme-m.m-is-home .bl-content { padding-top: 0; }

body.theme-m.m-is-home #top.m-top {
  background: #f7f7f4;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

/* ── Загальне ── */
.mh { display: block; }
.mh-wrap { max-width: none; margin: 0 auto; padding: 0 var(--m-gutter); }

.mh-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0; font-size: 0.8125rem; font-weight: 600; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25); padding: 5px 13px; border-radius: 999px;
}
.mh-eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mh-yellow); }

.mh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 0.9375rem; font-weight: 600; line-height: 1;
  padding: 0.875rem 1.4rem; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, border-color .15s;
  font-family: inherit;
}
.mh-btn:hover { text-decoration: none; }
.mh-btn:active { transform: scale(.98); }
.mh-btn svg { width: 17px; height: 17px; }
.mh-btn--primary { background: var(--mh-yellow); color: var(--mh-ink); }
.mh-btn--primary:hover { background: var(--m-brand-hover, #e6a600); color: var(--mh-ink); }
.mh-btn--dark { background: var(--mh-ink); color: #fff; }
.mh-btn--dark:hover { background: #000; color: #fff; }
.mh-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.mh-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.mh-btn--sm { padding: 0.625rem 1rem; font-size: 0.875rem; }

/* ── HERO ── */
.mh-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(580px, 88vh, 800px);
}
.mh-hero__bg {
  position: absolute; inset: 0;
  background-color: var(--mh-dot-bg);
  background-image: var(--mh-dot);
  background-size: var(--mh-dot-size);
  background-position: center;
}
.mh-hero__scrim { position: absolute; inset: 0; background: rgba(11, 16, 21, 0.72); }
.mh-hero__inner {
  position: relative; z-index: 2; width: 100%;
  padding-top: calc(var(--m-header-h) + 2rem);
  padding-bottom: calc(var(--m-header-h) + 0.5rem);
}

.mh-hero__title {
  margin: 1.5rem 0 1.1rem; color: #fff; font-weight: 600; line-height: 1.04; letter-spacing: -0.02em;
  font-size: clamp(2rem, 5vw, 2.6rem);
}
.mh-hero__accent { display: block; color: var(--mh-yellow); font-size: clamp(3rem, 8.5vw, 4.6rem); margin-top: 0.2rem; }
.mh-hero__lead { margin: 0; color: #c2c8d0; font-size: 1.0625rem; line-height: 1.65; max-width: 32rem; }
.mh-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.mh-hero__stats { display: flex; gap: clamp(1.75rem, 5vw, 3.25rem); margin-top: 2.75rem; }
.mh-stat { text-align: center; }
.mh-stat strong { display: block; color: #fff; font-size: 1.85rem; font-weight: 700; line-height: 1; }
.mh-stat span { display: block; color: #9ca3af; font-size: 0.875rem; margin-top: 5px; }

/* ── Секція ── */
.mh-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; background: #fff; }
.mh-section--alt { background: #f7f7f5; }
.mh-section--dark { background: var(--mh-ink); }
.mh-section--cta { background: var(--mh-ink); border-top: 1px solid rgba(17, 20, 26, 0.08); }
.mh-section__label { text-align: center; margin: 0; color: #9ca3af; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }
.mh-section__label--dark { color: #6b7280; }
.mh-section__title { text-align: center; margin: 0.5rem 0 0.4rem; color: var(--mh-ink); font-size: clamp(1.5rem, 3.6vw, 1.9rem); font-weight: 700; line-height: 1.2; }
.mh-section__title--dark { color: #fff; }
.mh-section__desc {     margin: 0 auto 2.5rem;
  font-size: 4rem;
  line-height: 1.6;
  color: var(--mh-yellow);
}

/* ── Калькулятор ── */
.mh-calc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.25rem; align-items: start; }
.mh-calc__list { border: 1px solid var(--m-line, #ececec); border-radius: 16px; overflow: hidden; background: #fff; }
.mh-calc__base { display: flex; justify-content: space-between; align-items: center; background: var(--mh-ink); padding: 1rem 1.1rem; }
.mh-calc__base-name { color: #fff; font-size: 0.9375rem; font-weight: 600; }
.mh-calc__base-sub { color: #9ca3af; font-size: 0.8125rem; margin-top: 2px; }
.mh-calc__base-price { color: var(--mh-yellow); font-size: 1.05rem; font-weight: 600; }
.mh-calc__group-h { padding: 0.85rem 1.1rem 0.45rem; border-top: 1px solid var(--m-line-soft, #f5f5f5); background: #fafaf8; color: #9ca3af; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.mh-calc__row { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1.1rem; border-top: 1px solid var(--m-line-soft, #f5f5f5); cursor: pointer; transition: background .12s; }
.mh-calc__row:hover { background: #fafaf8; }
.mh-calc__row-l { display: flex; align-items: center; gap: 11px; color: var(--m-ink-2, #3f3f46); font-size: 0.9375rem; }
.mh-calc__ic { display: inline-flex; color: #9ca3af; }
.mh-calc__ic svg { width: 20px; height: 20px; }
.mh-calc__row-r { display: flex; align-items: center; gap: 13px; }
.mh-calc__price { color: #9ca3af; font-size: 0.875rem; white-space: nowrap; }
.mh-calc__tog { width: 36px; height: 21px; border-radius: 21px; background: #e3e3dd; position: relative; transition: background .15s; flex-shrink: 0; }
.mh-calc__tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: left .15s; }
.mh-calc__row.is-on { background: #fffdf4; }
.mh-calc__row.is-on .mh-calc__row-l,
.mh-calc__row.is-on .mh-calc__ic,
.mh-calc__row.is-on .mh-calc__price { color: var(--mh-ink); }
.mh-calc__row.is-on .mh-calc__tog { background: var(--mh-yellow); }
.mh-calc__row.is-on .mh-calc__tog::after { left: 17px; }
.mh-calc__row--locked { cursor: default; }
.mh-calc__row--locked:hover { background: #fffdf4; }
.mh-calc__lock { display: inline-flex; align-items: center; justify-content: center; width: 36px; color: var(--mh-yellow); }
.mh-calc__lock svg { width: 16px; height: 16px; }
.mh-calc__row.is-on.mh-calc__row--locked .mh-calc__price { color: #8a6d00; }

.mh-calc__summary { border: 1.5px solid var(--mh-yellow); border-radius: 16px; padding: 1.35rem; background: #fffdf2; position: sticky; top: calc(var(--m-header-h) + 0.75rem); }
.mh-calc__sum-label { color: #9ca3af; font-size: 0.8125rem; }
.mh-calc__sum-total { display: flex; align-items: baseline; gap: 4px; margin: 4px 0 2px; }
.mh-calc__sum-total span:first-child { color: var(--mh-ink); font-size: 2.3rem; font-weight: 700; }
.mh-calc__sum-cur { color: var(--mh-ink); font-size: 1.05rem; font-weight: 600; }
.mh-calc__sum-count { color: #6b7280; font-size: 0.8125rem; }
.mh-calc__sum-note { display: inline-flex; margin: 0.7rem 0 0; padding: 4px 10px; background: #fff8e1; color: #8a6d00; font-size: 0.75rem; font-weight: 500; border-radius: 999px; }
.mh-calc__sum-rows { border-top: 1px solid #efe6bf; padding-top: 0.8rem; display: flex; flex-direction: column; gap: 6px; }
.mh-calc__sum-row { display: flex; justify-content: space-between; font-size: 0.8125rem; color: #6b7280; }
.mh-calc__sum-row.is-mod { color: var(--mh-ink); }
.mh-calc__sum-cta { width: 100%; margin-top: 1rem; }

/* ── Кроки ── */
.mh-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.mh-step { position: relative; border: 1px solid var(--m-line, #ececec); border-radius: 16px; padding: 1.5rem 1.25rem; background: #fff; }
.mh-step--accent { border: 1.5px solid var(--mh-yellow); background: #fffdf2; }
.mh-step__num { position: absolute; top: 1rem; right: 1.2rem; color: #ececec; font-size: 2rem; font-weight: 700; line-height: 1; }
.mh-step--accent .mh-step__num { color: #f0e3a0; }
.mh-step__ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: #f4f4f0; color: var(--mh-ink); }
.mh-step--accent .mh-step__ic { background: var(--mh-yellow); }
.mh-step__ic svg { width: 25px; height: 25px; }
.mh-step__title { margin: 1rem 0 0; color: var(--mh-ink); font-size: 1.0625rem; font-weight: 600; }
.mh-step__text { margin: 0.4rem 0 0; color: var(--m-muted, #6b7280); font-size: 0.875rem; line-height: 1.55; }

/* ── Цифри ── */
.mh-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.75rem; }
.mh-num { text-align: center; }
.mh-num strong { display: block; color: var(--mh-yellow); font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 700; line-height: 1; }
.mh-num span { display: block; color: #cbd0d8; font-size: 0.875rem; margin-top: 0.6rem; line-height: 1.4; }

/* ── Інтеграції ── */
.mh-int { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.mh-int__item { background: #fff; border: 1px solid var(--m-line, #ececec); border-radius: 12px; padding: 0.9rem 1.4rem; color: var(--mh-ink); font-size: 0.9375rem; font-weight: 600; }
.mh-int__core { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mh-yellow); color: var(--mh-ink); flex-shrink: 0; }
.mh-int__core svg { width: 23px; height: 23px; }
.mh-int__cta { text-align: center; margin-top: 1.6rem; }
.mh-int__cta-text { margin: 0 0 0.8rem; color: var(--m-muted, #6b7280); font-size: 0.875rem; }

/* ── CTA + QR ── */
.mh-cta { text-align: center; }
.mh-cta__title { margin: 0 auto; color: #fff; font-size: clamp(1.5rem, 4vw, 1.85rem); font-weight: 700; max-width: 28rem; }
.mh-cta__lead { margin: 0.65rem 0 1.4rem; color: #9ca3af; font-size: 0.9375rem; }
.mh-cta__card { display: inline-flex; gap: 16px; align-items: center; background: var(--mh-ink-soft); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 1.1rem 1.4rem; }
.mh-cta__qr { width: 78px; height: 78px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.mh-cta__qr img, .mh-cta__qr canvas { display: block; }
.mh-cta__card-text { text-align: left; }
.mh-cta__card-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.6rem; }
.mh-cta__ver { display: block; color: #6b7280; font-size: 0.75rem; margin-top: 0.6rem; }

/* ── Адаптив ── */
@media (max-width: 860px) {
  .mh-calc { grid-template-columns: 1fr; }
  .mh-calc__summary { position: static; }
  .mh-steps { grid-template-columns: 1fr; }
  .mh-nums { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
}
@media (max-width: 560px) {
  .mh-hero__stats { flex-wrap: wrap; gap: 1.25rem 2rem; }
  .mh-int { gap: 10px; }
  .mh-int__item { padding: 0.7rem 1.05rem; font-size: 0.875rem; }
}

/* ============================================================
   Brander-style: Unbounded, анімований hero, scroll-reveal,
   marquee, hover-інтеракції. Усе під prefers-reduced-motion.
   ============================================================ */
:root { --mh-display: 'Unbounded', 'Manrope', ui-sans-serif, system-ui, sans-serif; }

/* дисплейна типографіка */
.mh-hero__title,
.mh-section__title,
.mh-cta__title { font-family: var(--mh-display); letter-spacing: -0.02em; }
.mh-hero__title { font-weight: 600; }
.mh-hero__accent { font-weight: 700; }
.mh-section__title { font-weight: 600; }

/* анімований hero-заголовок (поява рядків знизу) */
.mh-hero__title--anim .mh-line { display: block; overflow: hidden; line-height: 1.06; padding-bottom: 0.06em; }
.mh-hero__title--anim .mh-line > span { display: inline-block; transform: translateY(115%); animation: mhRise 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.mh-hero__title--anim .mh-line:nth-child(1) > span { animation-delay: 0.12s; }
.mh-hero__title--anim .mh-line:nth-child(2) > span { animation-delay: 0.28s; }
@keyframes mhRise { to { transform: translateY(0); } }

/* поява решти hero-контенту */
.mh-hero__inner .mh-eyebrow,
.mh-hero__inner .mh-hero__lead,
.mh-hero__inner .mh-hero__actions,
.mh-hero__inner .mh-hero__stats { opacity: 0; animation: mhFadeUp 0.7s ease forwards; }
.mh-hero__inner .mh-eyebrow { animation-delay: 0.05s; margin-bottom: 4rem;}
.mh-hero__inner .mh-hero__lead { animation-delay: 0.45s; }
.mh-hero__inner .mh-hero__actions { animation-delay: 0.6s; }
.mh-hero__inner .mh-hero__stats { animation-delay: 0.78s; }
@keyframes mhFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* scroll-reveal */
.mh-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); }
.mh-reveal.is-in { opacity: 1; transform: none; }

/* marquee */
.mh-marquee {     display: flex;
  overflow: hidden;
  background: var(--mh-ink);
  padding: 1.05rem 0;
  white-space: nowrap;
  position: absolute;
  bottom: 0;
}
.mh-marquee__track { display: flex; flex-shrink: 0; align-items: center; animation: mhMarquee 30s linear infinite; will-change: transform; backface-visibility: hidden; background: var(--mh-ink);  }
.mh-marquee__track > * { margin-right: 1.6rem; flex-shrink: 0; }
.mh-marquee__track span { font-family: var(--mh-display); font-size: clamp(1.2rem, 3vw, 1.9rem); font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: -0.01em; }
.mh-marquee__track i { font-style: normal; color: var(--mh-yellow); font-size: 0.9rem; }
@keyframes mhMarquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-100%, 0, 0); } }

/* hover-інтеракції */
.mh-btn { transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.15s, border-color 0.15s; }
.mh-step { transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.mh-step:hover { transform: translateY(-5px); border-color: var(--mh-yellow); box-shadow: 0 12px 34px rgba(17, 17, 17, 0.08); }
.mh-int__item { transition: transform 0.18s ease, border-color 0.18s ease; }
.mh-int__item:hover { transform: translateY(-3px); border-color: var(--mh-yellow); }

@media (prefers-reduced-motion: reduce) {
  .mh-hero__title--anim .mh-line > span,
  .mh-hero__inner .mh-eyebrow,
  .mh-hero__inner .mh-hero__lead,
  .mh-hero__inner .mh-hero__actions,
  .mh-hero__inner .mh-hero__stats { animation: none; opacity: 1; transform: none; }
  .mh-reveal { opacity: 1; transform: none; transition: none; }
  .mh-marquee__track { animation: none; }
}

/* ── Outline-типографіка (Brander-стиль) ── */
.mh-hero__accent { text-transform: uppercase; }
.mh-hero__accent,
.mh-hero__accent > span {
  color: transparent;
  -webkit-text-stroke: 2px var(--mh-yellow);
}

#mh-pricing .mh-section__label,
#mh-pricing .mh-section__title,
#mh-pricing .mh-section__desc { text-align: left; }
#mh-pricing .mh-section__desc { margin-left: 0;}
.mh-section__title--outline {
  text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0.9rem;
  color: transparent;
  -webkit-text-stroke: 1.8px var(--mh-ink);
}

@media (max-width: 600px) {
  .mh-section__title--outline { -webkit-text-stroke-width: 1.2px; }
  .mh-hero__accent,
  .mh-hero__accent > span { -webkit-text-stroke-width: 1.4px; }
}

/* ── Контурні заголовки: Onest + заливка на ховер (фінал) ── */
:root { --mh-display-alt: 'Onest', 'Manrope', ui-sans-serif, system-ui, sans-serif; }

/* hero-заголовок цілком на Onest для цілісності */
.mh-hero__title { font-family: var(--mh-display-alt); font-weight: 700; }
.mh-hero__accent {
  font-family: var(--mh-display-alt);
  font-weight: 800;
  -webkit-text-stroke: 1.6px var(--mh-yellow);
  transition: color 0.25s ease;
}
.mh-hero__accent:hover,
.mh-hero__accent:hover > span { color: var(--mh-yellow); }

.mh-section__title--outline {
  font-family: var(--mh-display-alt);
  font-weight: 800;
  font-size: clamp(2.2rem, 6.5vw, 4.6rem);
  line-height: 0.9;
  -webkit-text-stroke: 1.6px var(--mh-ink);
  transition: color 0.25s ease, -webkit-text-stroke-color 0.25s ease;
  cursor: default;
}
.mh-section__title--outline:hover {
  color: var(--mh-yellow);
  -webkit-text-stroke-color: var(--mh-ink);
}

@media (max-width: 600px) {
  .mh-hero__accent { -webkit-text-stroke-width: 1.3px; }
  .mh-section__title--outline { -webkit-text-stroke-width: 1.2px; }
}

/* ============================================================
   Onest усюди + більший шрифт + Z-патерн заголовків секцій
   ============================================================ */
:root { --mh-display: 'Onest', 'Manrope', ui-sans-serif, system-ui, sans-serif; }

.mh-hero__title { font-size: clamp(2.3rem, 5.5vw, 3.2rem); }
.mh-hero__accent { font-size: clamp(3.6rem, 10vw, 5.6rem); }
.mh-section__title { font-family: var(--mh-display); font-weight: 800; font-size: clamp(2rem, 4.8vw, 3rem); letter-spacing: -0.02em; }
.mh-cta__title { font-family: var(--mh-display); font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.1rem); }
.mh-section__title--outline { font-size: clamp(2.6rem, 7.5vw, 5.6rem); }

/* Z-патерн: чергування вирівнювання заголовків секцій */
.mh-section--right .mh-section__label,
.mh-section--right .mh-section__title,
.mh-section--right .mh-section__desc { text-align: right; }
.mh-section--right .mh-section__desc { margin-left: auto; margin-right: 0; }
.mh-section--left .mh-section__label,
.mh-section--left .mh-section__title,
.mh-section--left .mh-section__desc { text-align: left; }
.mh-section--left .mh-section__desc { margin-left: 0; margin-right: auto; }

@media (max-width: 640px) {
  .mh-section--right .mh-section__label,
  .mh-section--right .mh-section__title,
  .mh-section--right .mh-section__desc,
  .mh-section--left .mh-section__label,
  .mh-section--left .mh-section__title,
  .mh-section--left .mh-section__desc { text-align: left; }
}

/* ── «У цифрах»: Brander staggered layout ── */
.mh-section__title--outline-light {
  text-transform: uppercase;
  font-family: var(--mh-display-alt);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.6px #fff;
  margin: 0.3rem 0 0;
}
.mh-fig__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 6rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.mh-fig__col { display: flex; flex-direction: column; gap: clamp(3rem, 8vw, 6rem); }
.mh-fig__col--a { margin-top: clamp(1.5rem, 7vw, 6rem); }
.mh-fig__line { display: block; height: 1px; background: rgba(255, 255, 255, 0.22); margin-bottom: 1.3rem; }
.mh-fig__num {
  display: block;
  font-family: var(--mh-display);
  font-weight: 800;
  color: var(--mh-yellow);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}
.mh-fig__text { margin: 0; color: #cbd0d8; font-size: 1rem; line-height: 1.6; max-width: 26rem; }

@media (max-width: 700px) {
  .mh-fig__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .mh-fig__col { gap: 2.5rem; }
  .mh-fig__col--a { margin-top: 0; }
  .mh-fig__text { max-width: none; }
}

/* ── Staggered кроки «Як це працює» + крапка-акцент + тюнінг цифр ── */
@media (min-width: 800px) {
  .mh-steps { align-items: start; }
  .mh-steps .mh-step:nth-child(2) { margin-top: 3rem; }
  .mh-steps .mh-step:nth-child(3) { margin-top: 6rem; }
}

/* крапка між колонками */
.mh-fig__grid { position: relative; }
.mh-fig__dot {
  position: absolute;
  left: 50%;
  top: -0.5rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--mh-yellow);
}

/* тюнінг: більше зміщення колонок, крупніші цифри, чіткіша лінія */
.mh-fig__col--a { margin-top: clamp(2rem, 9vw, 7.5rem); }
.mh-fig__num { font-size: clamp(2.8rem, 6.5vw, 4.8rem); }
.mh-fig__line { height: 2px; background: rgba(255, 255, 255, 0.28); }

@media (max-width: 700px) {
  .mh-fig__dot { display: none; }
}

/* hover-fill для білого контуру (темні секції) */
.mh-section__title--outline-light { transition: color 0.25s ease, -webkit-text-stroke-color 0.25s ease; cursor: default; }
.mh-section__title--outline-light:hover { color: var(--mh-yellow); -webkit-text-stroke-color: var(--mh-yellow); }

/* ============================================================
   Більше повітря (Brander-мінімалізм): вертикальний ритм,
   простір навколо заголовків, ширші проміжки в сітках.
   ============================================================ */
.mh-wrap { padding: 0 var(--m-gutter); }

/* секції — значно більший вертикальний ритм */
.mh-section { padding: clamp(5rem, 11vw, 9.5rem) 0; }
.mh-section__label { margin-bottom: 1.1rem; }
.mh-section__title { margin-top: 0; margin-bottom: 0.7rem; }
.mh-section__desc { margin-bottom: clamp(2.75rem, 5.5vw, 4.5rem); }

/* hero — більше повітря всередині */
.mh-hero { min-height: clamp(640px, 92vh, 880px); }
.mh-hero__inner { padding-top: calc(var(--m-header-h) + 4rem); padding-bottom: calc(var(--m-header-h) + 2.5rem); }
.mh-hero__lead { margin-top: 0.4rem; }
.mh-hero__actions { margin-top: 2.6rem; }
.mh-hero__stats { margin-top: 3.4rem; gap: clamp(2.25rem, 5vw, 4rem); }

/* сітки — ширші проміжки */
.mh-calc { gap: clamp(1.75rem, 4vw, 3rem); }
.mh-calc__row { padding: 0.95rem 1.3rem; }
.mh-calc__base { padding: 1.2rem 1.3rem; }
.mh-steps { gap: clamp(1.5rem, 3.5vw, 2.5rem); }
.mh-step { padding: 1.85rem 1.6rem; }
.mh-fig__grid { margin-top: clamp(3.25rem, 7vw, 5.5rem); }
.mh-int { gap: 16px; }
.mh-int__cta { margin-top: clamp(2.75rem, 5.5vw, 4.5rem); }

/* CTA — простір навколо */
.mh-cta__lead { margin: 1rem 0 2rem; }

/* ── «Як це працює» як структурований ряд-список (Brander expertise) ── */
.mh-list { margin-top: clamp(2rem, 4vw, 3.5rem); }
.mh-list__row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 132px;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  border-top: 1px solid var(--m-line, #ececec);
}
.mh-list__row:last-child { border-bottom: 1px solid var(--m-line, #ececec); }
.mh-list__visual {
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--m-line, #ececec); border-radius: 18px;
  color: var(--mh-ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.mh-list__visual svg { width: 38px; height: 38px; }
.mh-list__row--accent .mh-list__visual { background: var(--mh-yellow); border-color: transparent; }
.mh-list__row:hover .mh-list__visual { border-color: var(--mh-yellow); }
.mh-list__title {
  font-family: var(--mh-display); font-weight: 800;
  font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.1;
  margin: 0 0 0.7rem; color: var(--mh-ink); letter-spacing: -0.01em;
}
.mh-list__text { margin: 0; color: var(--m-muted, #6b7280); font-size: 1.0625rem; line-height: 1.65; max-width: 42rem; }
.mh-list__meta {
  text-align: right; align-self: start; padding-top: 0.3rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #9ca3af;
}

@media (max-width: 760px) {
  .mh-list__row { grid-template-columns: 64px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
  .mh-list__meta { display: none; }
  .mh-list__visual { width: 60px; height: 60px; border-radius: 14px; }
  .mh-list__visual svg { width: 26px; height: 26px; }
}

/* ── Hero золото-перетин 62/38 + мокап телефона ── */
.mh-hero__inner--split { display: grid; grid-template-columns: 1.618fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.mh-hero__visual { display: flex; justify-content: center; }
.mh-phone {
  position: relative; width: clamp(230px, 24vw, 300px); aspect-ratio: 300 / 610;
  background: #0e1116; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 34px;
  padding: 16px 12px 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.mh-phone__notch { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 44%; height: 6px; border-radius: 6px; background: #2b2f37; }
.mh-phone__screen { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.mh-phone__head { background: var(--mh-yellow); border-radius: 14px; padding: 12px 13px; }
.mh-phone__doc { display: block; color: #11141a; font-weight: 700; font-size: 0.8125rem; }
.mh-phone__sub { display: block; color: #6b5a00; font-size: 0.6875rem; margin-top: 2px; }
.mh-phone__r { display: flex; justify-content: space-between; align-items: center; background: #1b1f27; border-radius: 11px; padding: 11px 13px; color: #cbd0d8; font-size: 0.75rem; }
.mh-phone__r b { font-weight: 600; }
.mh-phone__r b.ok { color: #6ee7a8; }
.mh-phone__r b.part { color: #f0b343; }

/* ── CTA золото-перетин 62/38 ── */
.mh-cta--split { display: grid; grid-template-columns: 1.618fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; text-align: left; }
.mh-cta--split .mh-cta__title { margin: 0 0 0.7rem; max-width: none; }
.mh-cta--split .mh-cta__lead { margin: 0; }
.mh-cta--split .mh-cta__card { justify-self: end; }

/* інтеграційний CTA зліва */
.mh-int__cta { text-align: left; }

@media (max-width: 880px) {
  .mh-hero__inner--split { grid-template-columns: 1fr; }
  .mh-hero__visual { display: none; }
  .mh-cta--split { grid-template-columns: 1fr; }
  .mh-cta--split .mh-cta__card { justify-self: start; }
}

/* ============================================================
   Калькулятор · концепт «Чек» (ряди + живий чек)
   ============================================================ */
.mh-conf { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(1.75rem, 4vw, 3rem); }
.mh-conf__group { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9ca3af; padding: 1.5rem 0 0.6rem; }
.mh-conf__group:first-child { padding-top: 0; }
.mh-conf__row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; width: 100%; text-align: left; background: none; border: none; border-top: 1px solid var(--m-line, #ececec); padding: 1rem 0.4rem; cursor: pointer; font-family: inherit; transition: background 0.12s; border-radius: 8px; }
.mh-conf__list .mh-conf__row:last-child { border-bottom: 1px solid var(--m-line, #ececec); }
.mh-conf__row:hover { background: #fafaf8; }
.mh-conf__name { font-size: 1.0625rem; font-weight: 600; color: var(--mh-ink); }
.mh-conf__price { font-size: 0.9375rem; color: #9ca3af; white-space: nowrap; }
.mh-conf__mark { width: 27px; height: 27px; border-radius: 8px; border: 1.5px solid #d4d4d8; display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: all 0.15s; flex-shrink: 0; }
.mh-conf__mark svg { width: 15px; height: 15px; }
.mh-conf__row.is-on { background: #fffdf4; }
.mh-conf__row.is-on .mh-conf__price { color: var(--mh-ink); }
.mh-conf__row.is-on .mh-conf__mark { background: var(--mh-yellow); border-color: var(--mh-yellow); color: var(--mh-ink); transform: rotate(45deg); }
.mh-conf__row--locked { cursor: default; }
.mh-conf__row--locked:hover { background: none; }
.mh-conf__mark--lock { color: var(--mh-yellow); border-color: transparent; }
.mh-conf__mark--lock svg { width: 16px; height: 16px; }

.mh-conf__aside { position: sticky; top: calc(var(--m-header-h) + 1rem); }
.mh-conf__receipt { background: #fff; border: 1px solid var(--m-line, #ececec); border-radius: 14px; padding: 1.7rem 1.5rem; box-shadow: 0 14px 44px rgba(17, 17, 17, 0.07); }
.mh-conf__r-brand { text-align: center; font-family: var(--mh-display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mh-ink); }
.mh-conf__r-sub { text-align: center; color: #9ca3af; font-size: 0.75rem; margin: 0.25rem 0 1.3rem; }
.mh-conf__r-base, .mh-conf__r-line { font-family: 'JetBrains Mono', ui-monospace, monospace; display: flex; justify-content: space-between; }
.mh-conf__r-base { border-top: 1px dashed #d4d4d8; padding-top: 1rem; font-size: 0.8125rem; color: #6b7280; }
.mh-conf__r-lines { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.45rem; }
.mh-conf__r-line { font-size: 0.8125rem; color: var(--mh-ink); animation: mhRcptIn 0.25s ease; }
@keyframes mhRcptIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.mh-conf__r-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed #d4d4d8; margin-top: 1rem; padding-top: 1rem; }
.mh-conf__r-total > span:first-child { font-family: var(--mh-display); font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mh-ink); }
.mh-conf__r-total b { font-family: var(--mh-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--mh-ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mh-conf__r-note { text-align: center; color: #9ca3af; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 1rem; }
.mh-conf__r-note::before, .mh-conf__r-note::after { content: '\2605'; color: var(--mh-yellow); margin: 0 6px; }
.mh-conf__r-cta { width: 100%; margin-top: 1.3rem; }

@media (max-width: 820px) {
  .mh-conf { grid-template-columns: 1fr; }
  .mh-conf__aside { position: static; }
}

/* ── Мінімалістична таб-секція модулів (Brander) ── */
.mh-modtabs__head { text-transform: uppercase; font-size: clamp(2.4rem, 7.5vw, 6rem); line-height: 0.92; margin: 0.3rem 0 0; }
.mh-modtabs__nav { display: flex; align-items: center; gap: 16px; margin-top: 1.7rem; flex-wrap: wrap; }
.mh-modtab { background: none; border: none; font-family: var(--mh-display); font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: #9ca3af; cursor: pointer; padding: 4px 0; position: relative; transition: color 0.15s; }
.mh-modtab:hover { color: var(--mh-ink); }
.mh-modtab.is-active { color: var(--mh-ink); }
.mh-modtab.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--mh-ink); }
.mh-modtabs__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mh-yellow); flex-shrink: 0; }
.mh-modtabs__panel { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.mh-modtabs__panel[hidden] { display: none; }
.mh-modgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 4.5rem); }
.mh-moditem { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: clamp(1.3rem, 3vw, 2rem) 0; border-top: 1px solid var(--m-line, #ececec); align-items: start; }
.mh-moditem__no { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.8125rem; color: var(--mh-yellow); font-weight: 700; padding-top: 0.4rem; }
.mh-moditem__name { font-family: var(--mh-display); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.8rem); margin: 0 0 0.45rem; color: var(--mh-ink); line-height: 1.1; }
.mh-moditem__desc { margin: 0; color: var(--m-muted, #6b7280); font-size: 0.9375rem; line-height: 1.55; max-width: 32rem; }

@media (max-width: 720px) {
  .mh-modgrid { grid-template-columns: 1fr; }
}

/* ── CTA-картка — просторніше ── */
.mh-cta--split { align-items: center; }
.mh-cta--split .mh-cta__card { justify-self: stretch; width: 100%; }
.mh-cta__card { display: flex; gap: 24px; align-items: center; padding: 1.9rem; border-radius: 20px; }
.mh-cta__qr { width: 124px; height: 124px; border-radius: 14px; flex-shrink: 0; padding: 8px; }
.mh-cta__qr img, .mh-cta__qr canvas { width: 100% !important; height: 100% !important; }
.mh-cta__card-text { flex: 1; min-width: 0; }
.mh-cta__card-title { font-size: 1.0625rem; margin-bottom: 16px; }
.mh-cta__card-text .mh-btn { width: 100%; }
.mh-cta__ver { margin-top: 14px; font-size: 0.8125rem; }

@media (max-width: 560px) {
  .mh-cta__card { flex-direction: column; text-align: center; }
  .mh-cta__card-text { width: 100%; }
}

/* ── Калькулятор: таби + просторні рядки ── */
.mh-conf__tabs { display: flex; align-items: center; gap: 14px; margin-bottom: 0.25rem; flex-wrap: wrap; }
.mh-conf__tab:hover { color: var(--mh-ink); }
.mh-conf__tab.is-active { color: var(--mh-ink); }
.mh-conf__tab.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--mh-ink); }
.mh-conf__tab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mh-yellow); flex-shrink: 0; }
.mh-conf__panel[hidden] { display: none; }

.mh-conf__row { align-items: center; gap: 18px; padding: 1.4rem 0.5rem; }
.mh-conf__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mh-conf__name { font-size: 1.125rem; font-weight: 600; line-height: 1.2; }
.mh-conf__desc { font-size: 0.875rem; color: var(--m-muted, #6b7280); line-height: 1.45; }
.mh-conf__row.is-on .mh-conf__desc { color: #7a6f4a; }
.mh-conf__price { font-size: 21px; font-weight: 600; }
.mh-conf__mark { width: 30px; height: 30px; }

/* ── Фікс калькулятора: відступ табів, жирні назви, прямі лінії ── */
.mh-conf__tabs { margin: clamp(40px, 3vh, 70px) 0 0;}
.mh-conf__row { border-radius: 0; }
.mh-conf__name { font-weight: 700; }

/* ── Hero ще просторніше ── */
.mh-hero { min-height: clamp(680px, 94vh, 940px); }
.mh-hero__inner { padding-top: calc(var(--m-header-h) - 7rem); padding-bottom: calc(var(--m-header-h) + 3.5rem); }
.mh-hero__title { margin: 2.4rem 0 0; }
.mh-hero__lead { margin-top: 1.8rem; line-height: 1.7; }
.mh-hero__actions { margin-top: 3.2rem; }
.mh-hero__stats { margin-top: 4.2rem; gap: clamp(2.25rem, 5vw, 4.5rem); }

/* ── Hero на всю ширину (по хедеру) + кричущий заголовок ── */
.mh-hero__inner.mh-wrap { max-width: none; padding-left: var(--m-gutter); padding-right: var(--m-gutter); }
.mh-hero__inner--split { grid-template-columns: 1.55fr 1fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.mh-hero__title { font-size: clamp(2.4rem, 5.2vw, 4.4rem); line-height: 1.0; }
.mh-hero__accent { font-size: clamp(3rem, 8vw, 7.2rem); margin-top: 0.3rem; }
.mh-hero__lead { font-size: 1.125rem; max-width: 34rem; }
.mh-phone { width: clamp(260px, 27vw, 360px); }
.mh-hero__visual { justify-content: flex-end; }

@media (max-width: 880px) {
  .mh-hero__inner--split { grid-template-columns: 1fr; }
}

/* ── Hero: гігантський заголовок на всю ширину (Brander-scale) ── */
/* контент розподілений по вертикалі (центрований), marquee лишається внизу */
.mh-hero { display: flex; flex-direction: column; }
.mh-hero__inner--big {
  display: flex; flex-direction: column; justify-content: center;
  flex: 1 1 auto;
  padding-top: calc(var(--m-header-h) + 1.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 3rem);
}
.mh-hero .mh-marquee { margin-top: auto; }
.mh-hero__title { font-size: clamp(2.8rem, 8.5vw, 7rem); line-height: 0.98; margin: 2rem 0 0; }
.mh-hero__accent { font-size: clamp(3.6rem, 13vw, 10.5rem); margin-top: 0.4rem; }
.mh-hero__bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-top: clamp(2.5rem, 4vw, 4rem);
}
.mh-hero__visual { justify-content: flex-end; }
.mh-phone { width: clamp(250px, 23vw, 340px); }

@media (max-width: 880px) {
  .mh-hero__bottom { grid-template-columns: 1fr; }
  .mh-hero__visual { display: none; }
}

/* ── Hero без телефона: нижній ряд в одну колонку ── */
.mh-hero__bottom { grid-template-columns: 1fr; }

/* ── Hero: кнопки + стати в один ряд ── */
.mh-hero__cta-row { display: flex; align-items: center; gap: clamp(1.75rem, 4vw, 3.25rem); flex-wrap: wrap; margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.mh-hero__cta-row .mh-hero__actions { margin-top: 0; }
.mh-hero__cta-row .mh-hero__stats { margin-top: 0; gap: clamp(2.5rem, 5vw, 4.5rem); }
.mh-hero__cta-row .mh-stat strong { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

/* ── Hero: кнопка завантаження + підпис версії ── */
.mh-hero__dl { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.mh-hero__ver { font-size: 0.8125rem; color: #9ca3af; font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.01em; }

/* ── Hero: QR «скануй, щоб встановити» ── */
.mh-hero__qr { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; }
.mh-hero__qr-tile {
  width: 116px; height: 116px; flex-shrink: 0;
  background: #fff; border-radius: 16px; padding: 9px;
  box-shadow: 0 12px 34px rgba(17, 17, 17, 0.09);
}
.mh-hero__qr-tile #qrcode-hero, .mh-hero__qr-tile canvas, .mh-hero__qr-tile img { width: 100% !important; height: 100% !important; display: block; }
.mh-hero__qr-cap { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: #4b5563; max-width: 7.5rem; }
@media (max-width: 880px) { .mh-hero__qr { margin-left: 0; } }

/* ── Hero: крупніші лід, кнопки, стати, eyebrow ── */
.mh-eyebrow { font-size: 0.9375rem; padding: 7px 17px; }
.mh-eyebrow__dot { width: 8px; height: 8px; }
.mh-hero__lead { font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.65; max-width: 42rem; }
.mh-hero__actions .mh-btn { font-size: 1.0625rem; padding: 1.05rem 1.9rem; border-radius: 13px; }
.mh-hero__actions .mh-btn svg { width: 19px; height: 19px; }
.mh-hero__cta-row .mh-stat strong { font-size: clamp(2rem, 3vw, 2.8rem); }
.mh-hero__cta-row .mh-stat span { font-size: 0.9375rem; margin-top: 7px; }

/* ── Hero: ще крупніше ── */
.mh-eyebrow { font-size: 1.0625rem; padding: 9px 20px;width: fit-content;}
.mh-eyebrow__dot { width: 9px; height: 9px; }
.mh-hero__lead { font-size: clamp(1.4rem, 2.1vw, 1.95rem); line-height: 1.6; max-width: 48rem; }
.mh-hero__actions .mh-btn { font-size: 1.25rem; padding: 1.25rem 2.4rem; border-radius: 15px; gap: 11px; }
.mh-hero__actions .mh-btn svg { width: 22px; height: 22px; }
.mh-hero__cta-row { gap: clamp(2.5rem, 6vw, 6rem); }
.mh-hero__cta-row .mh-stat strong { font-size: clamp(2.6rem, 4vw, 3.6rem); }
.mh-hero__cta-row .mh-stat span { font-size: 1.0625rem; margin-top: 12px; }

/* ── Hero-стати: центровані, з тонкими роздільниками ── */
.mh-hero__cta-row .mh-hero__stats { gap: 0; align-items: stretch; }
.mh-hero__cta-row .mh-stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 clamp(1.6rem, 3.5vw, 3rem);
}
.mh-hero__cta-row .mh-stat:first-child { padding-left: 0; }
.mh-hero__cta-row .mh-stat:last-child { padding-right: 0; }
.mh-hero__cta-row .mh-stat + .mh-stat { border-left: 1px solid rgba(17, 20, 26, 0.12); }

/* ── Hero: ще більший заголовок ── */
.mh-hero__title { font-size: clamp(3.2rem, 10vw, 8.6rem); line-height: 0.96; }
.mh-hero__accent { font-size: clamp(4rem, 15vw, 13rem); margin-top: 0.5rem; }

/* ── Менший відступ між оглядом модулів і калькулятором ── */
.mh-modtabs { padding-bottom: clamp(2.5rem, 4vw, 4rem); }
#mh-pricing { padding-top: clamp(2.5rem, 4vw, 4rem); }

/* ============================================================
   Горизонтальний слайд-скрол (десктоп) — прогресивне покращення.
   Вмикається лише коли JS додає body.mh-h-on. Без нього — звичайно.
   ============================================================ */
@media (min-width: 1024px) {
  body.mh-h-on .mh-h { position: relative; }
  body.mh-h-on .mh-h__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
  body.mh-h-on .mh-h__track { display: flex; height: 100vh; will-change: transform; }
  body.mh-h-on .mh-h__track > * {
    flex: 0 0 100vw; width: 100vw; height: 100vh;
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
    display: flex; flex-direction: column;
    /* safe center: коли контент вищий за 100vh — не ріже верх, а вирівнює зверху */
    justify-content: safe center;
  }
  body.mh-h-on .mh-h__track > .mh-section { min-height: 0; }
  /* шапка (лейбл + заголовок + таби) прибита до верху — стабільна позиція між секціями,
     щоб контурні заголовки не «пригали». Контент центрується у просторі під шапкою. */
  body.mh-h-on .mh-h__track > .mh-section:not(.mh-section--cta) {
    justify-content: flex-start;
    padding-top: clamp(82px, 11vh, 120px);
    padding-bottom: clamp(1.75rem, 5vh, 3.25rem);
  }
  body.mh-h-on .mh-h__track > .mh-section--cta { padding-top: 3vh; padding-bottom: 3vh; }
  body.mh-h-on .mh-h__track > #mh-pricing { padding-top: clamp(82px, 11vh, 120px); }
  body.mh-h-on .mh-h__track > .mh-section:not(.mh-section--cta) > .mh-wrap {
    flex: 1 1 auto; width: 100%; display: flex; flex-direction: column; padding-top: calc(var(--m-header-h));
  }
  /* контент-блоки центруються у вільному просторі під шапкою */
  body.mh-h-on .mh-wrap > .mh-modtabs__panel:not([hidden]),
  body.mh-h-on .mh-wrap > .mh-fig__grid { margin-top: auto; margin-bottom: auto; }
  /* ціна: таби+конфігуратор одразу під заголовком — той самий відступ, що в «Типи документів» */
  body.mh-h-on #mh-pricing .mh-section__desc { margin-bottom: 0; }
  body.mh-h-on .mh-wrap > .mh-conf, body.mh-h-on .mh-wrap > .mh-mods { margin-top: 1.7rem; margin-bottom: auto; margin-left: 30%;}
  body.mh-h-on .mh-wrap > .mh-list { margin-top: auto; }
  body.mh-h-on .mh-wrap > .mh-list:last-child,
  body.mh-h-on .mh-wrap > .mh-int__cta:last-child { margin-bottom: auto; }
  /* найдовша секція (інтеграції: заголовок + 4 рядки + CTA) — щільніше, щоб вміститись у 100vh */
  body.mh-h-on .mh-figures .mh-list__row,
  body.mh-h-on .mh-section--alt .mh-list__row { padding-top: clamp(0.7rem, 1.4vw, 1.1rem); padding-bottom: clamp(0.7rem, 1.4vw, 1.1rem); }
  body.mh-h-on .mh-section__title--outline { font-size: clamp(2.4rem, 6vw, 4.6rem); }
  body.mh-h-on .mh-hero { min-height: 0; }
  body.mh-h-on .mh-marquee { background-color: #000000; z-index: 2;}
  body.mh-h-on .mh-reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Контурні заголовки — точне попадання у Brander-стиль
   (вага 900, тонке обведення 1.4px, щільний трекінг).
   Стосується всіх прокручуваних блоків home + заголовка «Модулі».
   ============================================================ */
.mh-section__title--outline,
.mh-section__title--outline-light {
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.03em;
}
.mh-section__title--outline { -webkit-text-stroke-width: 1.4px; }
.mh-section__title--outline-light { -webkit-text-stroke-width: 1.4px; }
.mh-hero__accent { font-weight: 900; -webkit-text-stroke-width: 1.4px; }

/* заголовок блоку «Модулі» — центрований контур, як решта секцій */
.mh-modtabs__head.mh-section__title--outline { margin: 0.4rem 0 1.6rem; }

@media (max-width: 600px) {
  .mh-section__title--outline,
  .mh-section__title--outline-light { -webkit-text-stroke-width: 1px; }
  .mh-hero__accent { -webkit-text-stroke-width: 1px; }
}

/* ============================================================
   Модулі — індекс-лист (Brander): широкі рядки, гігантські
   контурні цифри, hover-заливка рядка + стрілка. Лише home.
   ============================================================ */
.mh-modtabs .mh-modgrid { display: block; grid-template-columns: none; gap: 0; }
.mh-modtabs .mh-moditem {
  display: grid;
  grid-template-columns: minmax(0, auto) 1fr auto;
  align-items: center;
  gap: clamp(1.1rem, 4vw, 3.25rem);
  padding: clamp(1.25rem, 3vw, 2.2rem) clamp(0.9rem, 2.5vw, 1.9rem);
  border-top: 1px solid var(--m-line, #ececec);
  position: relative;
  isolation: isolate;
}
.mh-modtabs .mh-modgrid .mh-moditem:last-child { border-bottom: 1px solid var(--m-line, #ececec); }

/* заливка рядка знизу вгору на hover */
.mh-modtabs .mh-moditem::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--mh-ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mh-modtabs .mh-moditem:hover::before { transform: scaleY(1); }

/* гігантська контурна цифра */
.mh-modtabs .mh-moditem__no {
  font-family: var(--mh-display-alt, 'Onest', sans-serif);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  padding: 0;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--mh-ink);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.mh-modtabs .mh-moditem:hover .mh-moditem__no {
  color: var(--mh-yellow);
  -webkit-text-stroke-color: var(--mh-yellow);
  transform: translateX(4px);
}

.mh-modtabs .mh-moditem__body { min-width: 0; }
.mh-modtabs .mh-moditem__name {
  font-family: var(--mh-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  line-height: 1.05;
  margin: 0;
  color: var(--mh-ink);
  transition: color 0.25s ease;
}
.mh-modtabs .mh-moditem__desc {
  margin: 0.4rem 0 0;
  color: var(--m-muted, #6b7280);
  font-size: 0.9375rem;
  line-height: 1.5;
  max-width: 42rem;
  transition: color 0.25s ease;
}
.mh-modtabs .mh-moditem:hover .mh-moditem__name { color: var(--mh-ink); }
.mh-modtabs .mh-moditem:hover .mh-moditem__desc { color: #4b5563; }

/* стрілка */
.mh-modtabs .mh-moditem__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(2rem, 4vw, 2.8rem); height: clamp(2rem, 4vw, 2.8rem);
  flex-shrink: 0;
  color: var(--mh-ink);
  opacity: 0.35;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease, opacity 0.25s ease;
}
.mh-modtabs .mh-moditem__arrow svg { width: 60%; height: 60%; }
.mh-modtabs .mh-moditem:hover .mh-moditem__arrow {
  color: var(--mh-yellow);
  opacity: 1;
  transform: translateX(8px);
}

@media (prefers-reduced-motion: reduce) {
  .mh-modtabs .mh-moditem::before { transition: none; }
  .mh-modtabs .mh-moditem__no,
  .mh-modtabs .mh-moditem__arrow { transition: color 0.2s ease; }
}

@media (max-width: 600px) {
  .mh-modtabs .mh-moditem { gap: 0.9rem 1.1rem; grid-template-columns: auto 1fr; }
  .mh-modtabs .mh-moditem__no { font-size: 1.9rem; -webkit-text-stroke-width: 1px; }
  .mh-modtabs .mh-moditem__arrow { display: none; }
}

/* ============================================================
   Blueprint-тло: точкова сітка на світлих секціях (сучасний
   «креслярський» вигляд). Темні секції/CTA лишаються темними.
   ============================================================ */
:root {
  --mh-dot-bg: #f7f7f4;
  --mh-dot: radial-gradient(circle, rgba(17, 20, 26, 0.06) 1px, transparent 1.6px);
  --mh-dot-size: 24px 24px;
}
.mh-section:not(.mh-section--dark):not(.mh-section--cta) {
  background-color: var(--mh-dot-bg);
  background-image: var(--mh-dot);
  background-size: var(--mh-dot-size);
  background-position: -2px -2px;
}

/* ── «У цифрах» + CTA: світла точкова заливка замість темної ── */
.mh-section--dark,
.mh-section--cta {
  background-color: var(--mh-dot-bg);
  background-image: var(--mh-dot);
  background-size: var(--mh-dot-size);
  background-position: -2px -2px;
}
.mh-section--dark .mh-section__title--outline-light,
.mh-section--cta .mh-section__title--outline-light { -webkit-text-stroke-color: var(--mh-ink); }
.mh-section--dark .mh-fig__text { color: #4b5563; }
.mh-section--dark .mh-fig__line { background: rgba(17, 20, 26, 0.16); }
.mh-section--cta .mh-cta__lead { color: #4b5563; }

/* ── CTA «Спробуйте без ризику»: заголовок зверху (як «Типи документів»/калькулятор), тіло — 2 колонки ── */
.mh-cta__label { text-align: left; color: #9ca3af; margin: 0 0 1.1rem; }
.mh-section--cta .mh-cta__title { margin: 0; max-width: none; }
.mh-section--cta .mh-cta__lead { text-align: left; margin: 1rem 0 0; max-width: 40rem; font-size: 1.0625rem; line-height: 1.65; }
.mh-cta__body {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 880px) { .mh-cta__body { grid-template-columns: 1fr; gap: 2.5rem; } }

/* права колонка: QR без темної рамки + кнопка завантаження */
.mh-cta__dl { display: flex; gap: clamp(1.5rem, 3vw, 2.25rem); align-items: center; }
.mh-cta__qr {
  width: clamp(150px, 16vw, 200px); aspect-ratio: 1; flex-shrink: 0;
  background: #fff; border-radius: 18px; padding: 12px;
  box-shadow: 0 14px 44px rgba(17, 17, 17, 0.08);
}
.mh-cta__qr img, .mh-cta__qr canvas { width: 100% !important; height: 100% !important; display: block; }
.mh-cta__dl-info { min-width: 0; }
.mh-section--cta .mh-cta__card-title { color: var(--mh-ink); font-size: 1.0625rem; font-weight: 700; margin-bottom: 14px; }
.mh-cta__dl-btn { font-size: 1rem; padding: 1rem 1.7rem; }
@media (max-width: 560px) { .mh-cta__dl { flex-direction: column; align-items: flex-start; } }

.mh-cta__benefits {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.95rem; max-width: 34rem;
}
.mh-cta__benefits li {
  display: flex; align-items: flex-start; gap: 13px;
  color: #3f4651; font-size: 1.0625rem; line-height: 1.45;
}
.mh-cta__ic {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 184, 0, 0.16); color: #a06f00;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.mh-cta__ic svg { width: 14px; height: 14px; }
.mh-cta__meta {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.mh-cta__meta li {
  position: relative; color: #9ca3af; font-size: 0.8125rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.mh-cta__meta li + li::before {
  content: '·'; position: absolute; left: -12px; color: #6b7280;
}

/* лише картка-чек лишається білою (спливає над сіткою); список — прозорий, рядки лежать на сітці */
.mh-conf__list { background: none; border: none; border-radius: 0; padding: 0; }
.mh-conf__receipt { background-color: #fff; }

/* ============================================================
   Калькулятор — рядки в стилі індекс-листа модулів:
   контурні цифри (CSS-лічильник), uppercase-назви, лінії,
   hover-заливка. Ціна + мітка-перемикач і стан «вибрано» збережені.
   ============================================================ */
.mh-conf__panel { counter-reset: confrow; }
.mh-conf__row {
  grid-template-columns: minmax(0, auto) 1fr auto auto;
  gap: clamp(1.1rem, 4vw, 3.25rem);
  padding: clamp(1.25rem, 3vw, 2.2rem) clamp(0.9rem, 2.5vw, 1.9rem);
  border-radius: 0;
  position: relative;
  isolation: isolate;
}
/* контурна цифра 01–06 — той самий розмір, що в індекс-листі модулів */
.mh-conf__row::before {
  counter-increment: confrow;
  content: counter(confrow, decimal-leading-zero);
  font-family: var(--mh-display-alt, 'Onest', sans-serif);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  color: transparent;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
/* заливка рядка знизу вгору на hover */
.mh-conf__row::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  border-radius: 16px;
  opacity: 0;
  transform: scale(0.97);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.mh-conf__row:not(.mh-conf__row--locked):hover { background: none; }
.mh-conf__row:not(.mh-conf__row--locked):hover::after { opacity: 1; transform: scale(1); }
.mh-conf__row:not(.mh-conf__row--locked):hover::before { color: var(--mh-yellow); -webkit-text-stroke-color: var(--mh-yellow); transform: translateX(4px); }

/* назва — uppercase, як у moditem */
.mh-conf__name { text-transform: uppercase; font-family: var(--mh-display); font-weight: 800; letter-spacing: -0.01em; }

.mh-conf__row:not(.mh-conf__row--locked):hover .mh-conf__name { color: #fff; }
.mh-conf__row:not(.mh-conf__row--locked):hover .mh-conf__desc { color: rgba(255, 255, 255, 0.72); }
.mh-conf__row:not(.mh-conf__row--locked):hover .mh-conf__price { color: var(--mh-yellow); }
.mh-conf__row:not(.mh-conf__row--locked):hover .mh-conf__mark { border-color: var(--mh-yellow); color: var(--mh-yellow); }

/* стан «вибрано» (додано до суми) — жовтий акцент лишається після кліку */
.mh-conf__row.is-on::before { color: var(--mh-yellow); -webkit-text-stroke-color: var(--mh-yellow); }
/* «у базовому» (locked) — цифра вже залита, бо входить у базовий */
.mh-conf__row--locked::before { color: var(--mh-yellow); -webkit-text-stroke-color: var(--mh-yellow); }

@media (max-width: 600px) {
  .mh-conf__row { grid-template-columns: auto 1fr auto; gap: 0.8rem 1rem; }
  .mh-conf__row::before { font-size: 1.5rem; -webkit-text-stroke-width: 1px; }
  .mh-conf__price { grid-column: 2 / -1; font-size: 0.9rem; }
}

/* ============================================================
   Stitch-макет «Типи документів»: суцільний заголовок зверху-зліва,
   каптіон-таби під ним, сітка 3×2 зі зсувом праворуч. Точна копія.
   ============================================================ */
.mh-modtabs > .mh-wrap { display: block; }
.mh-modtabs .mh-section__label { display: none; }

/* суцільний чорний заголовок (text-7xl=72px, extrabold, uppercase) */
.mh-modtabs__head.mh-section__title--outline {
  color: var(--mh-ink);
  -webkit-text-stroke: 0;
  font-family: var(--mh-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(44px, 7.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}
.mh-modtabs__head.mh-section__title--outline:hover { color: var(--mh-ink); }

/* каптіон-таби під заголовком (mt-24=96px, text-xs=12px, tracking-widest) */
.mh-modtabs__nav {
  margin: clamp(40px, 3vh, 70px) 0 70px;
  display: flex; align-items: center; gap: 12px;
}
.mh-modtabs__sep { color: #d1d5db; font-weight: 400; font-size: 12px; }
.mh-modtab, .mh-conf__tab {
  background: none; border: 0; padding: 0 0 3px; cursor: pointer; font-family: var(--mh-display);
  font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #9ca3af; position: relative; transition: color .15s;
}
.mh-modtab:hover, .mh-conf__tab.is-active { color: var(--mh-ink); }
.mh-modtab.is-active, .mh-conf__tab.is-active { color: var(--mh-ink); }
.mh-modtab.is-active::after, .mh-conf__tab.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mh-yellow);
}

/* сітка 3 колонки × 2 ряди, зсув праворуч ml-[30%], gap-y-16=64px gap-x-24=96px */
.mh-modtabs__panel { margin: clamp(40px, 9vh, 96px) 0 0; }
.mh-modtabs .mh-modgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 6vh, 64px) clamp(40px, 5vw, 96px);
  margin-left: 0;
}
.mh-modtabs .mh-moditem {
  display: flex; flex-direction: column; gap: 8px;
  padding: 0; border: 0; position: static; isolation: auto; max-width: 320px;
}
.mh-modtabs .mh-moditem::before { display: none; }
.mh-modtabs .mh-moditem__head {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: left;
  width: 100%;
  margin: 0.25rem 0 1.3rem;
}
.mh-modtabs .mh-moditem__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--mh-yellow); flex-shrink: 0;
}
.mh-modtabs .mh-moditem__no,
.mh-modtabs .mh-moditem__name {
  font-family: var(--mh-display); font-weight: 700;
  font-size: 21px; line-height: 1.4;
  color: var(--mh-ink); margin: 0; text-transform: none; letter-spacing: 0;
  -webkit-text-stroke: 0; padding: 0;
}
.mh-modtabs .mh-moditem__desc {
  margin: 0; font-size: 14px; line-height: 1.625; max-width: 320px;
  color: #4b5563;
}

/* перший пункт: жовте «світіння» цифри замість крапки */
.mh-modtabs .mh-modgrid .mh-moditem:first-child .mh-moditem__dot { display: none; }
.mh-modtabs .mh-modgrid .mh-moditem:first-child .mh-moditem__no { position: relative; isolation: isolate; }
.mh-modtabs .mh-modgrid .mh-moditem:first-child .mh-moditem__no::before {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.6) 0%, rgba(255, 184, 0, 0) 70%);
  filter: blur(5px);
}

/* pinned: вміст зверху (як у Stitch), панель без auto-margin */
body.mh-h-on .mh-h__track > .mh-section.mh-modtabs > .mh-wrap { display: block; padding-top: calc(var(--m-header-h)); }
body.mh-h-on .mh-h__track > .mh-section.mh-modtabs > .mh-wrap > .mh-modtabs__panel { margin-top: clamp(40px, 9vh, 96px); margin-bottom: 0; padding-left: 30%; }
body.mh-h-on .mh-h__track .mh-modtabs__head.mh-section__title--outline { font-size: clamp(44px, 7.5vw, 72px); line-height: 0.95; }



@media (max-width: 900px) {
  .mh-modtabs .mh-modgrid { grid-template-columns: repeat(2, 1fr); margin-left: 0; }
}
@media (max-width: 560px) {
  .mh-modtabs .mh-modgrid { grid-template-columns: 1fr; }
}

/* ============================================================
   Hero — світла точкова заливка (як секції) замість темного фону,
   текст чорний замість білого.
   ============================================================ */
.mh-hero { background-color: var(--mh-dot-bg); }
.mh-hero__bg {
  background: var(--mh-dot-bg);
  background-image: var(--mh-dot);
  background-size: var(--mh-dot-size);
  background-position: -2px -2px;
}
.mh-hero__scrim { display: none; }

.mh-hero__title { color: var(--mh-ink); }
.mh-hero__lead { color: #4b5563; }

.mh-eyebrow { color: var(--mh-ink); border-color: rgba(17, 20, 26, 0.18); }

.mh-stat strong { color: var(--mh-ink); }
.mh-stat span { color: #6b7280; }

.mh-btn--ghost { color: var(--mh-ink); border-color: rgba(17, 20, 26, 0.22); }
.mh-btn--ghost:hover { background: rgba(17, 20, 26, 0.05); color: var(--mh-ink); }

/* ════════════════════════════════════════════════════════════════════════
   АДАПТИВНА ВЕРСТКА (home) — єдиний шар, синхронізований з breakpoint-логером
   у home.twig. База вище = десктоп (≥1280). Нижче — оверрайди по спаданню.
   Брейкпоінти: 1279 / 1023 / 767 / 479.
   Pinned горизонтальний режим вмикається лише ≥1024px (JS), тож ≤1023 —
   звичайний вертикальний скрол, і ми просто акуратно складаємо секції.
   ════════════════════════════════════════════════════════════════════════ */

/* ─── XL ≤1279px · desktop (pinned) — стриманіші заголовки ──────────────── */
@media (max-width: 1279px) {
  .mh-hero__title  { font-size: clamp(2.6rem, 7.5vw, 6rem); }
  .mh-hero__accent { font-size: clamp(3.2rem, 11vw, 8.5rem); }
}

/* ─── MD ≤1023px · планшет і нижче (вертикальний скрол) ─────────────────── */
@media (max-width: 1023px) {
  /* менший вертикальний ритм секцій */
  .mh-section { padding: clamp(3rem, 8vw, 5rem) 0; }

  /* hero більше не на повний екран — звичайний потік, висота за контентом.
     marquee у hero має position:absolute (для повноекранного десктопу), але у
     вертикальному режимі він видимий і накладався на контент → повертаємо в потік */
  .mh-hero { min-height: auto; display: block; }
  .mh-hero__inner--big { flex: none; padding-top: calc(var(--m-header-h) + 2rem); padding-bottom: 0; }
  /* усі marquee — у потоці (не absolute, інакше інтринсік-ширина ≈4000px давала
     горизонтальний скрол). Симетричний margin — однаково зверху й знизу.
     ЯВНА фіксована висота + центрування тексту — щоб внутрішні відступи й розмір
     смуги були ГАРАНТОВАНО однакові в усіх стрічках (без залежності від padding/line-height). */
  .mh-marquee {
    position: static; width: 100%;
    /* вертикальний відступ довкола стрічки = горизонтальному гутеру (однакова рамка) */
    margin: var(--m-gutter) 0;
    height: 40px; padding: 0;
    display: flex; align-items: center;
  }
  /* у hero margin-top:auto (для повноекранного десктопу) у вертикальному режимі
     давав 0 зверху → стрічка липла до статистики. Повертаємо симетричний гутер. */
  .mh-hero .mh-marquee { margin-top: var(--m-gutter); }
  .mh-marquee__track { align-items: center; height: 40px;}
  /* ФІКСОВАНИЙ розмір тексту стрічки — щоб УСІ смуги були однакові на будь-якій
     ширині (було clamp(1.2rem,3vw,1.9rem): текст ріс із вікном → різні смуги). */
  .mh-marquee__track span { font-size: 14px; }
  .mh-marquee__track i { font-size: 9px; }
  /* прибираємо вертикальний padding секцій — простір довкола КОЖНОЇ стрічки задає
     ЛИШЕ її симетричний margin (однаково зверху й знизу), інакше знизу додавався
     ще padding-top наступної секції і стрічка виглядала притиснутою зверху.
     #mh-pricing має власний padding-top через ID — окремо гасимо. */
  .mh-section { padding-top: 0; padding-bottom: 0; }
  #mh-pricing { padding-top: 0; }

  /* вимикаємо scroll-reveal на мобільному: коли секція лише визирає з-під фолду,
     поріг видимості 15% не спрацьовував і контент лишався opacity:0 (невидимий,
     «блок Модулі не відображається після завантаження») */
  .mh-reveal { opacity: 1 !important; transform: none !important; }

  /* калькулятор: список + чек в одну колонку, чек не липкий */
  .mh-conf { grid-template-columns: 1fr; }
  .mh-conf__aside { position: static; }

  /* CTA: переваги + завантаження в одну колонку */
  .mh-cta__body { grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3rem); }

  /* документи: максимум 2 колонки, без зсуву праворуч */
  .mh-modtabs .mh-modgrid { grid-template-columns: repeat(2, 1fr); margin-left: 0; }

  /* ── Внутрішній вертикальний ритм = гутеру (однакові зовнішні й внутрішні відступи) ──
     На мобільному проміжки заголовок→опис→таби→список були 0/40/76px — хаотично.
     Зводимо всі до одного кроку --m-gutter, як і рамка сторінки. */
  .mh-section__desc { margin-bottom: var(--m-gutter); }
  .mh-modtabs__nav { margin: var(--m-gutter) 0; }
  .mh-modtabs__panel { margin-top: var(--m-gutter); }
  /* .mh-conf вже дає верхній відступ (--m-gutter), тож таби всередині — без свого */
  .mh-conf__tabs { margin: 0; }
}

/* ─── SM ≤767px · мобільні ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .mh-hero__title  { font-size: clamp(2.4rem, 11vw, 4rem); }
  .mh-hero__accent { font-size: clamp(3rem, 15vw, 5.5rem); }
  /* root=10px, тому 1.05rem давало лише ~10px — лід був менший за описи модулів.
     Робимо читабельний лід ~15px і line-height під нього. */
  .mh-hero__lead   { font-size: 1.55rem; line-height: 1.6; }
  /* жовті описи секцій: 4rem(40px) гігантські на мобільному → ~16-20px, дихають */
  .mh-section__desc { font-size: clamp(1.6rem, 4.5vw, 2rem); line-height: 1.5; margin-bottom: var(--m-gutter); }

  /* заголовки секцій «Модулі»/«Збери свій додаток» — того ж розміру, що акцент
     «У СМАРТФОНІ» (той самий clamp), щоб не дрібнішали на вузьких екранах */
  .mh-modtabs__head.mh-section__title--outline { font-size: clamp(2.4rem, 13vw, 3.2rem); line-height: 1.02; }

  /* бейдж-eyebrow «Модульна версія» — компактніший і з меншим відступом під ним
     (був масивний 9×20 з відступом 40px і майже прилипав до шапки) */
  .mh-eyebrow { padding: 6px 14px; font-size: 1.15rem; }
  .mh-hero__inner .mh-eyebrow { margin-bottom: 2.25rem; }

  /* hero CTA-ряд: кнопки → статистика → QR одне під одним */
  .mh-hero__cta-row { flex-direction: column; align-items: stretch; gap: clamp(1.75rem, 6vw, 2.5rem); }

  /* кнопки в стовпчик, на всю ширину (обмежено для планшета) */
  .mh-hero__actions { flex-direction: column; align-items: stretch; gap: 0.75rem; width: 100%; max-width: 24rem; }
  .mh-hero__actions .mh-btn { width: 100%; justify-content: center; }
  .mh-hero__dl { align-items: stretch; }

  /* статистика — рівномірно в ряд на всю ширину */
  .mh-hero__cta-row .mh-hero__stats { width: 100%; gap: 0; justify-content: space-between; }
  .mh-hero__cta-row .mh-stat { padding: 0 clamp(0.6rem, 3vw, 1.4rem); }

  /* QR ховаємо на мобільному: його неможливо відсканувати телефоном, на якому ти вже
     сидиш (для завантаження є кнопка вище). Заодно hero коротшає — блок «Модулі» визирає. */
  .mh-hero__qr { display: none; }

  /* документи: одна колонка */
  .mh-modtabs .mh-modgrid { grid-template-columns: 1fr; gap: 1.75rem; }

  /* контурні заголовки тонші */
  .mh-section__title--outline, .mh-section__title--outline-light { -webkit-text-stroke-width: 1px; }

  /* калькулятор: компактні рядки */
  .mh-conf__row { gap: 0.7rem 1rem; padding: clamp(1rem, 4vw, 1.4rem) 0.4rem; }

  /* CTA: QR над текстом завантаження */
  .mh-cta__dl { flex-direction: column; align-items: flex-start; }
}

/* ─── XS ≤479px · малі телефони ─────────────────────────────────────────── */
@media (max-width: 479px) {
  .mh-hero__title  { font-size: clamp(2rem, 10vw, 3rem); }
  .mh-hero__accent { font-size: clamp(2.4rem, 13vw, 4.2rem); line-height: 1; }
  .mh-hero__lead   { font-size: 1.5rem; }
  /* компактніший hero, щоб на невисоких телефонах стрічка не обрізалась фолдом,
     а блок «Модулі» визирав знизу (не виглядав як увесь сайт). Проміжки між
     бейджем/заголовком/лідом були по ~43px — завеликі. */
  .mh-hero__inner--big { padding-top: calc(var(--m-header-h) + 1rem); }
  .mh-hero__inner .mh-eyebrow { margin-bottom: 1rem; }
  .mh-hero__title { margin-top: 1rem; }
  .mh-hero__lead { margin-top: 1.1rem; }
  .mh-hero__cta-row { gap: 1.6rem; margin-top: 1.4rem; }

  /* статистика лишається горизонтальною 3-в-ряд (успадковано з ≤767): вертикальний
     стовпчик виглядав розріджено. Числа трохи менші, щоб не тіснились на вузькому. */
  .mh-hero__cta-row .mh-stat strong { font-size: 2rem; }
  .mh-hero__cta-row .mh-stat span { font-size: 0.95rem; }

  /* калькулятор: ціна окремим рядком */
  .mh-conf__row { grid-template-columns: auto 1fr auto; gap: 0.6rem 0.9rem; }
  .mh-conf__price { grid-column: 2 / -1; }
}

/* ════════════════════════════════════════════════════════════════════════
   Оверлей деталей модуля — окремий шаблон common/module_detail.twig.
   Відкривається від шапки донизу при кліку на пункт модуля; хрестик зверху-справа.
   ════════════════════════════════════════════════════════════════════════ */
.mh-moddetail {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--m-header-h);
  z-index: 80;
  background-color: var(--mh-dot-bg);
  background-image: var(--mh-dot);
  background-size: var(--mh-dot-size);
  background-position: -2px -2px;
  overflow: hidden;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.mh-moddetail.is-open { opacity: 1; transform: none; }
.mh-moddetail[hidden] { display: none; }
body.mh-moddetail-open { overflow: hidden; }

.mh-moddetail__close {
  position: absolute; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 5rem);
  width: 48px; height: 48px; border-radius: 50%; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--m-line, #ececec); color: var(--mh-ink);
  cursor: pointer; box-shadow: 0 6px 20px rgba(17, 17, 17, 0.08);
  transition: background 0.15s, color 0.15s, transform 0.2s;
}
.mh-moddetail__close:hover { background: var(--mh-ink); color: #fff; transform: rotate(90deg); }
.mh-moddetail__close svg { width: 22px; height: 22px; }

.mh-moddetail__scroll { height: 100%; overflow-y: auto; padding: clamp(2.5rem, 6vw, 5rem) 0; }

/* заголовок панелі — як «Модулі документів»: зліва, великий, залитий */
.mh-moddetail__panel .mh-modtabs__lead { text-align: left; margin: 0; }
.mh-moddetail__panel .mh-modtabs__head.mh-section__title--outline { text-align: left; font-size: clamp(2.8rem, 7.5vw, 7.2rem); margin: 0; }
/* опис/бейдж/кнопка — теж зліва (не центрований блок) */
.mh-moddetail__inner { max-width: 48rem; margin: 1.5rem 0 0; }
.mh-moddetail__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 18px; margin-bottom: 1.5rem;
  background: rgba(255, 184, 0, 0.16); color: #a06f00;
}
.mh-moddetail__icon svg { width: 32px; height: 32px; }
.mh-moddetail__eyebrow { margin: 0 0 0.75rem; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9ca3af; }
.mh-moddetail__title { margin: 0; font-family: var(--mh-display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.02em; color: var(--mh-ink); text-transform: uppercase; }
.mh-moddetail__lead { margin: 1.25rem 0 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; color: #4b5563; max-width: 40rem; }
.mh-moddetail__meta { margin-top: 1.75rem; display: flex; gap: 1rem; align-items: center; }
.mh-moddetail__badge { font-size: 0.875rem; font-weight: 700; color: #a06f00; background: rgba(255, 184, 0, 0.16); padding: 0.4rem 0.9rem; border-radius: 999px; }
.mh-moddetail__price { font-family: var(--mh-display); font-weight: 800; font-size: 1.5rem; color: var(--mh-ink); }
.mh-moddetail__cta { margin-top: 2rem; }

/* пункт модуля — клікабельний */
.mh-moditem--clickable { cursor: pointer; }

@media (max-width: 767px) {
  .mh-moddetail__icon { width: 52px; height: 52px; }
  .mh-moddetail__icon svg { width: 26px; height: 26px; }
  .mh-moddetail__close { width: 42px; height: 42px; }
}


:root { --mh-price: 'Unbounded', 'Onest', ui-sans-serif, sans-serif; }

.mh-conf { display: block; margin-top: var(--m-gutter); }

.bl-line_flex {
  display: flex;
  justify-content: space-between;
}

.mh-conf__total {     display: flex;
  float: right;
  justify-content: flex-end;
  align-items: flex-end;
  padding-bottom: clamp(1.1rem, 2.5vw, 1.6rem);
  border-bottom: 2px solid var(--mh-ink);
}
.mh-conf__total-num { display: inline-flex; align-items: baseline; gap: 8px; }
.mh-conf__total #mh-total { font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 10rem);
  line-height: 0.8;
  letter-spacing: -0.01em;
  color: var(--mh-ink);
  font-variant-numeric: tabular-nums; }
.mh-conf__total-cur { font-family: var(--mh-price); font-weight: 800; font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--mh-ink); }

/* рядки реєстру: глушимо «індекс-лист» (контурний номер + hover-заливку),
   лишаємо 3 колонки — мітка · назва · ціна */
.mh-conf__row::before { content: none; }
.mh-conf__row::after { content: none; }
.mh-conf__row { grid-template-columns: auto 1fr auto; gap: 16px; padding: clamp(1rem, 2.2vw, 1.25rem) 0.4rem; border-radius: 0; }
.mh-conf__mark { order: -1; }
.mh-conf__panel > .mh-conf__row:first-child { border-top: none; }
.mh-conf__price { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 500; font-variant-numeric: tabular-nums; }
.mh-conf__row.is-on .mh-conf__price { font-weight: 700; }
/* мітка обраного — галочка в жовтому квадраті (без повороту плюса) */
.mh-conf__row.is-on .mh-conf__mark { transform: none; }
/* лагідний hover замість темної інверсії */
.mh-conf__row:not(.mh-conf__row--locked):hover { background: #fafaf8; }
.mh-conf__row:not(.mh-conf__row--locked):hover .mh-moditem__name,
.mh-conf__row:not(.mh-conf__row--locked):hover .mh-conf__name { color: var(--mh-ink); }
.mh-conf__row:not(.mh-conf__row--locked):hover .mh-conf__desc { color: var(--m-muted, #6b7280); }
.mh-conf__row:not(.mh-conf__row--locked):hover .mh-conf__price { color: inherit; }
.mh-conf__row:not(.mh-conf__row--locked):hover .mh-conf__mark { border-color: #d4d4d8; color: transparent; }
.mh-conf__row.is-on:hover .mh-conf__mark { border-color: var(--mh-yellow); color: var(--mh-ink); }

@media (max-width: 820px) {
  .mh-conf__total #mh-total { font-size: clamp(2.6rem, 13vw, 3.4rem); }
}
