/* ═══════════════════════════════════════════════════════════════
   Majstor Aca — SSQ-faithful design system (light/blue)
   Palette + components ported from the SSQ /ai/ build.
   Scoped under body.maca-ssq; loads after main.css to override.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --soft: #f4f6fa;
  --line: #e7ebf1;
  --tx: #0d1320;
  --mut: #5b6678;
  --ink2: #374256;
  --brand: #1f5fff;
  --brand2: #0a44d6;
  --brandsoft: #eaf1ff;
  --star: #f5a623;
  --ok: #15a86b;
  --warn: #e0900f;
  --danger: #e0533f;
  --maxw: 1120px;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", var(--sans);
  --radius: 18px;
  --radius-s: 12px;
  --shadow-s: 0 1px 2px rgba(13,19,32,.05), 0 8px 24px -16px rgba(13,19,32,.18);
  --shadow-m: 0 18px 44px -28px rgba(13,19,32,.4);
  --shadow-l: 0 40px 90px -50px rgba(13,19,32,.5);
}

body.maca-ssq {
  font-family: var(--sans);
  color: var(--tx);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* The base theme sets html/body to near-black; force light under the redesign
   so transparent sections (hero, steps, faq, about) don't show a dark page. */
html:has(body.maca-ssq) { background: #fff !important; }
body.maca-ssq { background: #fff !important; }
.maca-ssq .site-main { background: #fff; }
.maca-ssq .hero,
.maca-ssq .section,
.maca-ssq .band,
.maca-ssq .final,
.maca-ssq .about,
.maca-ssq .reviews,
.maca-ssq .page-hero { background-color: #fff; }
.maca-ssq .section--soft { background-color: var(--soft); }

/* Safety net: base theme forces white text on several section selectors that
   assume a dark background. Default all redesign text to dark; the only
   intentionally-light surfaces are the gradient final CTA and dark buttons. */
.maca-ssq .site-main,
.maca-ssq .site-main h1,
.maca-ssq .site-main h2,
.maca-ssq .site-main h3,
.maca-ssq .site-main h4,
.maca-ssq .site-main p,
.maca-ssq .site-main li,
.maca-ssq .site-main span { color: inherit; }
.maca-ssq .hero, .maca-ssq .section, .maca-ssq .band, .maca-ssq .about,
.maca-ssq .reviews, .maca-ssq .page-hero, .maca-ssq .layout { color: var(--ink2); }
.maca-ssq .hero h1, .maca-ssq .section h2, .maca-ssq .section h3,
.maca-ssq .band h2, .maca-ssq .about h2, .maca-ssq .page-hero h1 { color: var(--tx); }
/* Light text kept only on the gradient CTA card. */
.maca-ssq .final__card, .maca-ssq .final__card h2, .maca-ssq .final__card p { color: #fff; }
.maca-ssq .final__card .btn--white { color: var(--brand); }
/* Elements that sit ON a blue/dark surface must stay white — exempt them from
   the dark-text safety net above (which would otherwise force them dark). */
.maca-ssq .section .step__n,
.maca-ssq .section .card__ic,
.maca-ssq .section .card__ic .icon,
.maca-ssq .step__n,
.maca-ssq .card__ic,
.maca-ssq .card__ic .icon,
.maca-ssq .btn--primary,
.maca-ssq .btn--dark,
.maca-ssq .btn--primary .icon,
.maca-ssq .iconbtn--book,
.maca-ssq .fix__ic,
.maca-ssq .fix__ic .icon { color: #fff !important; }
.maca-ssq .step__n { background: var(--brand) !important; }
/* page-hero icon + soft-blue tiles: brand-colored on light, not white. */
.maca-ssq .page-hero__ic, .maca-ssq .page-hero__ic .icon,
.maca-ssq .svc-card__ic, .maca-ssq .svc-card__ic .icon,
.maca-ssq .related-card__ic, .maca-ssq .related-card__ic .icon,
.maca-ssq .causes__dot, .maca-ssq .causes__dot .icon,
.maca-ssq .embed-ai .eyebrow,
.maca-ssq .aside-card__list .icon { color: var(--brand) !important; }
.maca-ssq *, .maca-ssq *::before, .maca-ssq *::after { box-sizing: border-box; }
.maca-ssq .container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.maca-ssq a { color: inherit; text-decoration: none; }
.maca-ssq .sora { font-family: var(--display); line-height: 1.1; }
.maca-ssq h1.sora, .maca-ssq h2.sora { line-height: 1.08; letter-spacing: -.02em; }
.maca-ssq img { max-width: 100%; display: block; }
.maca-ssq .icon { width: 1.1em; height: 1.1em; vertical-align: -.15em; flex: none; }

/* ── buttons ── */
.maca-ssq .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1;
  border: none; border-radius: var(--radius-s); padding: 14px 22px; cursor: pointer;
  transition: transform .12s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap;
}
.maca-ssq .btn:active { transform: translateY(1px); }
.maca-ssq .btn--full { width: 100%; }
.maca-ssq .btn--lg { padding: 16px 26px; font-size: 1.05rem; }
.maca-ssq .btn--primary { position: relative; overflow: hidden; background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(31,95,255,.6); }
.maca-ssq .btn--primary:hover { background: var(--brand2); }
.maca-ssq .btn--dark { background: var(--tx); color: #fff; }
.maca-ssq .btn--dark:hover { background: #000; }
/* secondary = blue outline */
.maca-ssq .btn--ghost { background: #fff; color: var(--brand); border: 2px solid var(--brand); padding: 12px 20px; }
.maca-ssq .btn--ghost:hover { background: var(--brandsoft); }
.maca-ssq .btn--white { background: #fff; color: var(--brand); font-weight: 800; }

.maca-ssq .iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; background: #fff; border: 1.5px solid var(--line); cursor: pointer; transition: .15s; }
.maca-ssq .iconbtn:hover { border-color: var(--brand); background: var(--brandsoft); }
.maca-ssq .iconbtn--call { color: var(--brand); }
.maca-ssq .iconbtn--viber { color: #7360f2; }
.maca-ssq .iconbtn--wa { color: #25d366; }
.maca-ssq .iconbtn--book { width: auto; gap: 8px; padding: 0 16px; background: var(--brand); color: #fff; border: none; font-weight: 700; font-family: var(--sans); }
.maca-ssq .iconbtn--book:hover { background: var(--brand2); }

/* ── header ── */
.maca-ssq .site-header { position: relative; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.maca-ssq .site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.maca-ssq .site-header__logo img { height: 46px; width: auto; }
@media (max-width: 600px) { .maca-ssq .site-header__logo img { height: 54px; } }
.maca-ssq .site-header__actions { display: flex; align-items: center; gap: 8px; }
/* Hamburger toggle — hidden on desktop, shown on mobile. */
.maca-ssq .navToggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--tx); align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.maca-ssq .navToggle .icon { width: 24px; height: 24px; }
.maca-ssq .site-header.nav-open .navToggle { background: var(--brand); border-color: var(--brand); color: #fff; }
/* Desktop nav base (placed BEFORE the mobile media query so mobile rules win). */
.maca-ssq .site-nav { margin: 0 auto 0 38px; }
.maca-ssq .site-nav__list { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.maca-ssq .site-nav__list a { font-weight: 600; font-size: .95rem; color: var(--ink2); padding: 6px 0; position: relative; }
.maca-ssq .site-nav__list a:hover { color: var(--brand); }
.maca-ssq .site-nav__list .current-menu-item > a { color: var(--brand); }
.maca-ssq .site-nav__list a::after { display: none; }
.maca-ssq .site-nav__cta { display: none; }
.maca-ssq .site-nav__ic { display: none; }
@media (max-width: 900px) {
  .maca-ssq .navToggle { display: inline-flex; }
  .maca-ssq .site-header.nav-open .navToggle { background: var(--brand); border-color: var(--brand); color: #fff; }
  /* Dimmed backdrop behind the dropdown. */
  .maca-ssq .site-header::after { content: ""; position: fixed; inset: 0; background: rgba(13,19,32,.45); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 38; }
  .maca-ssq .site-header.nav-open::after { opacity: 1; visibility: visible; }
  /* Premium dropdown card — fixed, clamped to viewport, never overflows. */
  .maca-ssq .site-nav { display: block; position: fixed; top: 78px; left: 12px; right: 12px; width: auto; max-width: none;
    background: #fff; border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 30px 70px -20px rgba(13,19,32,.55);
    overflow: hidden; transform-origin: top right; margin: 0; z-index: 39;
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97);
    transition: opacity .28s ease, transform .28s cubic-bezier(.2,.9,.3,1), visibility .28s; }
  .maca-ssq .site-header.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .maca-ssq .site-nav__list { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 12px; margin: 0; list-style: none; width: 100%; }
  .maca-ssq .site-nav__list li { display: block; width: 100%; margin: 0; border: none; }
  .maca-ssq .site-nav__list a { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
    padding: 13px 14px; font-size: 1.02rem; font-weight: 700; color: var(--tx);
    background: var(--soft); border: 1px solid var(--line); border-radius: 14px;
    transition: background .18s, color .18s, border-color .18s, transform .18s; }
  .maca-ssq .site-nav__ic { flex: none; width: 38px; height: 38px; border-radius: 11px; background: #fff;
    border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); transition: .18s; }
  .maca-ssq .site-nav__ic .icon { width: 20px; height: 20px; }
  .maca-ssq .site-nav__txt { flex: 1; }
  .maca-ssq .site-nav__list a::after { content: ""; display: block; flex: none; margin-left: auto; width: 18px; height: 18px; color: var(--mut);
    background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform .18s, color .18s; }
  .maca-ssq .site-nav__list a:hover, .maca-ssq .site-nav__list a:active { background: var(--brandsoft); color: var(--brand); border-color: #cfe0ff; transform: translateX(3px); }
  .maca-ssq .site-nav__list a:hover .site-nav__ic, .maca-ssq .site-nav__list a:active .site-nav__ic { background: var(--brand); border-color: var(--brand); color: #fff; }
  .maca-ssq .site-nav__list a:hover::after, .maca-ssq .site-nav__list a:active::after { color: var(--brand); transform: translateX(2px); }
  .maca-ssq .site-nav__list .current-menu-item > a { background: var(--brandsoft); color: var(--brand); border-color: var(--brand); }
  /* Phone CTA pinned at the bottom of the card. */
  .maca-ssq .site-nav__cta { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px 12px 14px;
    padding: 16px; border-radius: 14px; background: var(--brand); color: #fff !important; font-weight: 800; font-size: 1.05rem;
    box-shadow: 0 16px 30px -12px rgba(31,95,255,.6); }
  .maca-ssq .site-nav__cta .icon { width: 20px; height: 20px; color: #fff; }
}
@media (max-width: 720px) { .maca-ssq .navBookTxt { display: none; } .maca-ssq .iconbtn--book { width: 42px; padding: 0; } }

/* ── eyebrow / section heads ── */
.maca-ssq .eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; padding: 0; background: none; border: 0; box-shadow: none; text-indent: 0; }
.maca-ssq .section:not(.section--light) .eyebrow,
.maca-ssq .section .eyebrow { color: var(--brand); background: none; border: 0; box-shadow: none; padding: 0; margin: 0 0 14px; }
.maca-ssq .eyebrow--light { color: #9fc4f5; }
.maca-ssq .section { padding: 88px 0; }
.maca-ssq .section--soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.maca-ssq .section-head { max-width: 720px; margin: 0 auto 40px; }
.maca-ssq .section-head--center { text-align: center; }
.maca-ssq .section-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem,4vw,2.6rem); color: var(--tx); margin: 0; line-height: 1.08; letter-spacing: -.02em; }
.maca-ssq .section-lead { color: var(--ink2); margin-top: 12px; font-size: 1.06rem; line-height: 1.6; }

/* ── hero ── */
.maca-ssq .hero { padding: 20px 0 64px; position: relative; overflow: hidden; }
@media (max-width: 600px) { .maca-ssq .hero { padding-top: 14px; } }
.maca-ssq .hero__in { text-align: center; max-width: 860px; margin: 0 auto; }
.maca-ssq .hero__eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(11px, 2.4vw, 15px) clamp(16px, 3.4vw, 22px); font-size: clamp(.9rem, 2.6vw, 1.05rem); font-weight: 600; color: var(--ink2); margin-bottom: 22px; box-shadow: 0 6px 18px -12px rgba(13,19,32,.3); max-width: 100%; }
.maca-ssq .hero__rating { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--mut); }
.maca-ssq .hero__rating .hero__stars { font-size: clamp(1rem, 3vw, 1.2rem); }
@media (max-width: 560px) {
  .maca-ssq .hero__eyebrow { line-height: 1.35; }
  .maca-ssq .hero__eyebrow .hero__dot { display: none; }
}
.maca-ssq .hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: maca-pulse 2s infinite; }
.maca-ssq .hero__eyebrow b { color: var(--tx); }
.maca-ssq .hero__stars { color: var(--star); letter-spacing: 1px; }
.maca-ssq .hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem,5vw,3.3rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 auto 18px; color: var(--tx); }
.maca-ssq .hero__title .accent { color: var(--brand); }
.maca-ssq .hero__desc { font-size: 1.15rem; color: var(--ink2); max-width: 620px; margin: 0 auto 18px; }
.maca-ssq .hero__subline { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 26px; font-size: .94rem; color: var(--mut); }
.maca-ssq .hero__subline b { color: var(--tx); }
.maca-ssq .hero__subline .sep { color: var(--line); }
.maca-ssq .hero__subline .ok { color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.maca-ssq .hero__trust { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.maca-ssq .hero__cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.maca-ssq .hero__trust--top { margin: 0 0 26px; }
.maca-ssq .hero__stars { color: var(--star) !important; letter-spacing: 1px; }
.maca-ssq .ai__eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); margin-bottom: 16px; }
.maca-ssq .ai__ai-badge { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: .72rem; color: var(--ok); }
.maca-ssq .ai__ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.maca-ssq .hero__trust span { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--ink2); }
.maca-ssq .hero__trust .ok { color: var(--ok); }

/* ── AI smart-check card ── */
.maca-ssq .ai { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-l); overflow: hidden; max-width: 720px; margin: 0 auto; text-align: left; }
.maca-ssq .ai__head { padding: 20px 22px 0; text-align: center; }
.maca-ssq .ai__title { font-family: var(--display); font-weight: 800; font-size: 1.15rem; margin: 0 0 4px; }
.maca-ssq .ai__sub { font-size: .9rem; color: var(--mut); margin-bottom: 14px; }
.maca-ssq .ai__sub button { background: none; border: none; color: var(--brand); font-weight: 700; cursor: pointer; padding: 0; font-family: var(--sans); font-size: .9rem; }
.maca-ssq .ai__label { font-size: .9rem; font-weight: 700; color: var(--mut); margin-bottom: 12px; }
.maca-ssq .ai__chips { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }
.maca-ssq .ai__reveal .ai__label { text-align: left; }
.maca-ssq .ai__chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink2); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: .95rem; cursor: pointer; transition: .18s; font-family: var(--sans); }
.maca-ssq .ai__chip:hover { border-color: var(--brand); }
.maca-ssq .ai__chip.is-on { border-color: var(--brand); background: var(--brand); color: #fff; }
.maca-ssq .ai__reveal { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s, opacity .3s; padding: 0 22px; }
.maca-ssq .ai__reveal.is-open { max-height: 360px; opacity: 1; padding: 14px 22px 0; }
.maca-ssq .ai__ta { width: 100%; border: 1.5px solid var(--line); border-radius: 13px; padding: 13px 14px; font-family: var(--sans); font-size: 1.05rem; color: var(--tx); resize: none; outline: none; line-height: 1.5; transition: .18s; }
.maca-ssq .ai__ta:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,95,255,.12); }
.maca-ssq .ai__foot { padding: 14px 22px 20px; }
.maca-ssq .ai__hint { margin-top: 16px; font-size: .76rem; color: var(--mut); text-align: center; }
.maca-ssq .ai__spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: maca-spin .7s linear infinite; }
.maca-ssq .ai--embed { box-shadow: var(--shadow-m); }

/* diag result */
.maca-ssq .diag { animation: maca-slide .35s ease; margin-top: 18px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.maca-ssq .diag__top { padding: 18px; border-bottom: 1px solid var(--line); }
.maca-ssq .diag__k { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); margin-bottom: 6px; }
.maca-ssq .diag__cause { font-family: var(--display); font-weight: 800; font-size: 1.1rem; line-height: 1.25; }
.maca-ssq .diag__grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.maca-ssq .diag__cell { padding: 16px; }
.maca-ssq .diag__cell + .diag__cell { border-left: 1px solid var(--line); }
.maca-ssq .diag__pill { display: inline-block; color: #fff; font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; }
.maca-ssq .diag__price { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.maca-ssq .diag__also { padding: 16px; border-bottom: 1px solid var(--line); }
.maca-ssq .diag__also-row { display: flex; flex-wrap: wrap; gap: 7px; }
.maca-ssq .diag__chip { font-size: .85rem; color: var(--ink2); background: var(--soft); padding: 5px 11px; border-radius: 999px; }
.maca-ssq .diag__cta { padding: 16px; background: var(--brandsoft); }
.maca-ssq .diag__note { font-size: .76rem; color: var(--mut); margin-top: 10px; text-align: center; }

/* ── repair band (light) ── */
.maca-ssq .band { padding: 64px 0; }
.maca-ssq .band__card { background: var(--brandsoft); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px,5vw,52px); position: relative; overflow: hidden; }
.maca-ssq .band__glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(31,95,255,.10); filter: blur(20px); top: -130px; right: -80px; }
.maca-ssq .band__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem,4.4vw,2.6rem); line-height: 1.1; max-width: 720px; position: relative; color: var(--tx); }
.maca-ssq .band__title .accent { color: var(--brand); }
.maca-ssq .band__text { font-size: 1rem; color: var(--ink2); line-height: 1.6; max-width: 680px; margin-top: 16px; position: relative; }

/* ── cards grids ── */
.maca-ssq .grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.maca-ssq .grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.maca-ssq .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.maca-ssq .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; height: 100%; transition: transform .18s, box-shadow .18s; }
.maca-ssq .section--soft .card { }
.maca-ssq .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.maca-ssq .section-head { max-width: 720px; margin: 0 0 40px; text-align: left; }
.maca-ssq .section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.maca-ssq .card__ic { width: 48px; height: 48px; border-radius: 14px; background: var(--brand) !important; color: #fff !important; display: grid; place-items: center; margin-bottom: 18px; }
.maca-ssq .card__ic .icon { width: 24px; height: 24px; color: #fff !important; stroke: #fff; }
.maca-ssq .card h3 { font-family: var(--display); font-size: 1.18rem; margin: 0 0 10px; }
.maca-ssq .card p { color: var(--ink2); font-size: .96rem; margin: 0; line-height: 1.55; }

/* service fork cards */
.maca-ssq .svc-card { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: inherit; box-shadow: var(--shadow-s); transition: transform .18s, box-shadow .18s; }
.maca-ssq .svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.maca-ssq .svc-card__ic { flex: none; width: 66px; height: 66px; border-radius: 16px; background: var(--brandsoft); color: var(--brand); display: grid; place-items: center; }
.maca-ssq .svc-card__ic .icon { width: 36px; height: 36px; }
.maca-ssq .svc-card__title { display: block; font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: 6px; }
.maca-ssq .svc-card__desc { display: block; color: var(--ink2); font-size: .95rem; margin-bottom: 12px; line-height: 1.5; }
.maca-ssq .svc-card__more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; font-size: .92rem; }
.maca-ssq .svc-card__more .icon { width: 16px; height: 16px; }

/* ── stats ── */
.maca-ssq .stat { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.maca-ssq .about .stat { background: #fff; }
.maca-ssq .stat__n { font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: var(--brand); line-height: 1; }
.maca-ssq .stat__l { font-size: .88rem; color: var(--mut); margin-top: 8px; }

/* ── about / behind ── */
.maca-ssq .about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.maca-ssq .about p { color: var(--ink2); font-size: 1.06rem; line-height: 1.6; margin: 0 0 16px; }
.maca-ssq .about p.mut { color: var(--mut); font-size: .98rem; margin: 0; }

/* ── steps ── */
.maca-ssq .step__n { font-family: var(--display); font-weight: 800; font-size: 1rem; color: #fff; background: var(--brand); width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; }
.maca-ssq .step h3 { font-family: var(--display); font-size: 1.1rem; margin: 0 0 8px; color: var(--tx); }
.maca-ssq .step p { color: var(--ink2); font-size: .94rem; margin: 0; line-height: 1.55; }

/* ── reviews ── */
.maca-ssq .reviews__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.maca-ssq .reviews__stars { color: var(--star); font-size: 1rem; letter-spacing: 2px; }
.maca-ssq .reviews__meta strong { font-family: var(--display); font-size: 1.1rem; }
.maca-ssq .reviews__meta .mut { color: var(--mut); font-size: .92rem; }
.maca-ssq .rev { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: 100%; }
.maca-ssq .rev__stars { color: var(--star); font-size: .9rem; letter-spacing: 2px; margin-bottom: 12px; }
.maca-ssq .rev__text { font-size: .96rem; color: var(--tx); margin: 0; line-height: 1.55; }
.maca-ssq .rev__who { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.maca-ssq .rev__av { width: 38px; height: 38px; border-radius: 50%; background: var(--brand) !important; color: #fff !important; display: grid; place-items: center; font-weight: 700; }
.maca-ssq .rev__name { font-weight: 700; font-size: .9rem; }
.maca-ssq .rev__city { font-size: .8rem; color: var(--mut); }
.maca-ssq .reviews__more { text-align: center; margin-top: 32px; }
.maca-ssq .gbtn { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--brand); color: var(--brand); padding: 12px 22px; border-radius: 999px; font-weight: 700; }
.maca-ssq .gbtn:hover { background: var(--brandsoft); }

/* ── coverage ── */
.maca-ssq .cover__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.maca-ssq .cover__pills { display: flex; flex-wrap: wrap; gap: 9px; }
.maca-ssq .pill { background: #fff; border: 1px solid var(--line); color: var(--ink2); padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.maca-ssq .section--soft .cover__pills .pill { background: #fff; }

/* ── faq ── */
.maca-ssq .faq { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; overflow: hidden; transition: box-shadow .25s; }
.maca-ssq .faq.is-open { box-shadow: var(--shadow-m); }
.maca-ssq .faq__q { width: 100%; text-align: left; border: none; background: none; cursor: pointer; padding: 20px 22px; font-family: var(--display); font-weight: 700; font-size: 1.04rem; color: var(--tx); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.maca-ssq .faq__icon { color: var(--brand); transition: .2s; flex: none; }
.maca-ssq .faq.is-open .faq__icon { transform: rotate(45deg); }
.maca-ssq .faq__a { padding: 0 22px 20px; color: var(--ink2); line-height: 1.6; }

/* ── final cta ── */
.maca-ssq .final { padding: 64px 0; }
.maca-ssq .final__card { background: linear-gradient(135deg, var(--brand2), var(--brand)); color: #fff; border-radius: 24px; padding: clamp(36px,6vw,64px); text-align: center; position: relative; overflow: hidden; }
.maca-ssq .final__glow { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.12); filter: blur(8px); top: -130px; left: -80px; animation: maca-floaty 7s ease-in-out infinite; }
.maca-ssq .final__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem,4.6vw,2.8rem); margin: 0 0 12px; position: relative; }
.maca-ssq .final__sub { font-size: 1.1rem; color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 28px; position: relative; }
.maca-ssq .final__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
.maca-ssq .final__alt { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; position: relative; }
.maca-ssq .final .altbtn { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: .92rem; }
.maca-ssq .final .altbtn:hover { background: rgba(255,255,255,.22); }

/* ── footer ── */
.maca-ssq .site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 56px 0 0; }
.maca-ssq .site-footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; max-width: var(--maxw); margin: 0 auto; padding: 0 22px 40px; }
.maca-ssq .site-footer__logo img { height: 34px; margin-bottom: 12px; }
.maca-ssq .site-footer__brand p { color: var(--ink2); font-size: .95rem; line-height: 1.6; max-width: 34ch; margin: 0 0 16px; }
.maca-ssq .site-footer__phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; color: var(--brand); font-size: 1.15rem; }
.maca-ssq .footer-col h4 { font-family: var(--display); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--mut); margin: 0 0 14px; }
.maca-ssq .footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.maca-ssq .footer-col a, .maca-ssq .footer-col li span { color: var(--ink2); font-size: .92rem; }
.maca-ssq .footer-col a:hover { color: var(--brand); }
.maca-ssq .site-footer__bar { border-top: 1px solid var(--line); }
.maca-ssq .site-footer__bar-in { max-width: var(--maxw); margin: 0 auto; padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--mut); }

/* ── floating CTA ── */
.maca-ssq .floatCTA { position: fixed; right: 22px; bottom: 22px; z-index: 140; display: flex; flex-direction: row; align-items: center; gap: 9px; opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.25,1); }
.maca-ssq .floatCTA.show { opacity: 1; transform: none; pointer-events: auto; }
.maca-ssq .floatCTA button { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 700; font-size: 1rem; border: none; border-radius: 999px; padding: 13px 22px; cursor: pointer; background: var(--brand); color: #fff; box-shadow: 0 16px 36px -12px rgba(31,95,255,.7); }
.maca-ssq .floatCTA small { display: block; font-size: .72rem; font-weight: 600; opacity: .9; }

/* ── breadcrumb ── */
.maca-ssq .crumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--mut); margin-bottom: 20px; flex-wrap: wrap; }
.maca-ssq .crumb a { color: var(--brand); }
.maca-ssq .crumb a:hover { text-decoration: underline; }

/* ── article / prose (symptom/service/brand pages) ── */
.maca-ssq .page-hero { padding: clamp(34px,5vw,56px) 0 clamp(28px,4vw,44px); background: linear-gradient(180deg, var(--brandsoft), transparent); border-bottom: 1px solid var(--line); }
.maca-ssq .page-hero__head { display: flex; align-items: flex-start; gap: 18px; }
.maca-ssq .page-hero__ic { flex: none; width: 64px; height: 64px; border-radius: 16px; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow-s); }
.maca-ssq .page-hero__ic .icon { width: 32px; height: 32px; }
.maca-ssq .page-hero__badge { display: inline-block; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 11px; border-radius: 999px; margin-bottom: 8px; }
.maca-ssq .page-hero__badge--low { background: #e3f6ee; color: var(--ok); }
.maca-ssq .page-hero__badge--medium { background: #fdf0d9; color: var(--warn); }
.maca-ssq .page-hero__badge--high { background: #fbe5e3; color: var(--danger); }
.maca-ssq .page-hero__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem,4.5vw,2.4rem); color: var(--tx); margin: 0; line-height: 1.12; }
.maca-ssq .page-hero__cta { margin-top: 22px; }

.maca-ssq .layout { display: grid; grid-template-columns: 1fr 330px; gap: 40px; align-items: start; }
.maca-ssq .prose { color: var(--ink2); line-height: 1.75; font-size: 1.05rem; }
.maca-ssq .prose > h2 { font-family: var(--display); color: var(--tx); font-size: 1.6rem; margin: 1.7em 0 .5em; letter-spacing: -.01em; }
.maca-ssq .prose > h3 { color: var(--tx); font-size: 1.25rem; margin: 1.4em 0 .4em; font-family: var(--display); }
.maca-ssq .prose p { margin: 0 0 1.1em; }
.maca-ssq .prose ul, .maca-ssq .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.maca-ssq .prose li { margin-bottom: .5em; }
.maca-ssq .prose a { color: var(--brand); }
.maca-ssq .prose strong { color: var(--tx); }
.maca-ssq .prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .96rem; }
.maca-ssq .prose th, .maca-ssq .prose td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.maca-ssq .prose th { background: var(--soft); font-family: var(--display); }

.maca-ssq .causes { margin-top: 32px; }
.maca-ssq .causes h2 { font-family: var(--display); font-size: 1.4rem; margin: 0 0 16px; }
.maca-ssq .causes__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.maca-ssq .causes__item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; box-shadow: var(--shadow-s); }
.maca-ssq .causes__dot { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--brandsoft); color: var(--brand); display: grid; place-items: center; }
.maca-ssq .causes__dot .icon { width: 17px; height: 17px; }

.maca-ssq .fix { margin-top: 36px; }
.maca-ssq .fix h2 { font-family: var(--display); font-size: 1.4rem; margin: 0 0 16px; }
.maca-ssq .fix__steps { display: grid; gap: 14px; }
.maca-ssq .fix__step { display: flex; gap: 14px; align-items: flex-start; }
.maca-ssq .fix__ic { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.maca-ssq .fix__ic .icon { width: 20px; height: 20px; }
.maca-ssq .fix__step h3 { font-size: 1.06rem; margin: 0 0 3px; color: var(--tx); font-family: var(--display); }
.maca-ssq .fix__step p { margin: 0; color: var(--ink2); font-size: .96rem; }

.maca-ssq .inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--brandsoft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-top: 36px; }
.maca-ssq .inline-cta h2 { font-family: var(--display); font-size: 1.3rem; margin: 0 0 6px; color: var(--tx); }
.maca-ssq .inline-cta p { margin: 0; color: var(--ink2); }

.maca-ssq .aside-card { position: sticky; top: 86px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-m); }
.maca-ssq .aside-card h3 { font-family: var(--display); font-size: 1.2rem; margin: 0 0 8px; }
.maca-ssq .aside-card p { color: var(--ink2); font-size: .95rem; margin: 0 0 16px; }
.maca-ssq .aside-card .btn { width: 100%; }
.maca-ssq .aside-card__list { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.maca-ssq .aside-card__list li { display: flex; align-items: center; gap: 10px; color: var(--ink2); font-size: .92rem; }
.maca-ssq .aside-card__list .icon { width: 17px; height: 17px; color: var(--brand); flex: none; }
.maca-ssq .aside-actions { display: flex; gap: 8px; margin-top: 12px; }
.maca-ssq .aside-actions a { flex: 1; }

.maca-ssq .embed-ai { margin-top: 40px; padding: 28px; background: var(--brandsoft); border: 1px solid var(--line); border-radius: var(--radius); }
.maca-ssq .embed-ai .eyebrow { display: block; }
.maca-ssq .embed-ai h2 { font-family: var(--display); font-size: 1.4rem; margin: 0 0 16px; }
.maca-ssq .embed-ai .ai { background: #fff; }

.maca-ssq .related-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 14px; }
.maca-ssq .related-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 16px; color: inherit; box-shadow: var(--shadow-s); transition: transform .16s, box-shadow .16s; }
.maca-ssq .related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.maca-ssq .related-card__ic { flex: none; width: 44px; height: 44px; border-radius: 11px; background: var(--brandsoft); color: var(--brand); display: grid; place-items: center; }
.maca-ssq .related-card__ic .icon { width: 22px; height: 22px; }
.maca-ssq .related-card__t { display: block; font-weight: 700; color: var(--tx); }
.maca-ssq .related-card__d { display: block; color: var(--mut); font-size: .86rem; }

/* brands grid on brand/service pages */
.maca-ssq .brandwall { display: flex; flex-wrap: wrap; gap: 10px; }
.maca-ssq .brand-chip { background: #fff; border: 1px solid var(--line); color: var(--ink2); padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.maca-ssq .brand-chip:hover { border-color: var(--brand); color: var(--brand); }

/* ── chat / booking modal ── */
.maca-chat-ovl { position: fixed; inset: 0; z-index: 1000; background: rgba(13,19,32,.5); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.maca-chat { background: #fff; border-radius: 20px; box-shadow: 0 40px 90px -40px rgba(13,19,32,.6); width: 100%; max-width: 440px; height: min(620px,86vh); display: flex; flex-direction: column; overflow: hidden; animation: maca-pop .3s ease; }
.maca-chat__top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.maca-chat__av { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: var(--display); }
.maca-chat__top strong { display: block; font-size: .98rem; font-family: var(--display); }
.maca-chat__status { font-size: .76rem; color: var(--ok); display: flex; align-items: center; gap: 6px; }
.maca-chat__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: maca-pulse 2s infinite; }
.maca-chat__x { margin-left: auto; background: var(--soft); border: none; border-radius: 8px; width: 32px; height: 32px; display: grid; place-items: center; cursor: pointer; color: var(--mut); }
.maca-chat__ai { display: flex; gap: 9px; align-items: flex-start; padding: 10px 16px; background: var(--brandsoft); border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--ink2); line-height: 1.4; }
.maca-chat__ai b { flex: none; font-weight: 800; color: var(--brand); font-size: .72rem; border: 1px solid var(--brand); border-radius: 6px; padding: 2px 6px; margin-top: 1px; }
.maca-chat__body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--soft); }
.maca-bub { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: .95rem; line-height: 1.5; }
.maca-bub--assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.maca-bub--user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.maca-bub--typing { display: flex; gap: 4px; }
.maca-bub--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mut); animation: maca-blink 1.2s infinite; }
.maca-bub--typing i:nth-child(2){animation-delay:.2s}.maca-bub--typing i:nth-child(3){animation-delay:.4s}
.maca-chat__input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.maca-chat__input input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 16px; font-family: var(--sans); font-size: .95rem; outline: none; }
.maca-chat__input input:focus { border-color: var(--brand); }
.maca-chat__input button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; }
.maca-chat__input button:disabled { background: #c3cee0; }
.maca-chat__done { display: flex; align-items: center; gap: 12px; padding: 18px 16px; background: var(--brandsoft); color: var(--brand2); font-weight: 600; }
.maca-chat__done > .icon { flex: none; width: 26px; height: 26px; color: var(--ok); }
.maca-chat__done strong { display: block; font-size: 1.02rem; color: var(--tx); }
.maca-chat__done span { display: block; font-size: .86rem; font-weight: 500; color: var(--ink2); margin-top: 2px; line-height: 1.35; }
.maca-chat__done-x { flex: none; margin-left: auto; align-self: center; padding: 9px 16px; border-radius: 10px; border: none; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; cursor: pointer; }

/* ── animations ── */
@keyframes maca-pulse { 0%{box-shadow:0 0 0 0 rgba(21,168,107,.5)} 70%{box-shadow:0 0 0 9px rgba(21,168,107,0)} 100%{box-shadow:0 0 0 0 rgba(21,168,107,0)} }
@keyframes maca-spin { to { transform: rotate(360deg); } }
@keyframes maca-slide { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }
@keyframes maca-pop { from{opacity:0;transform:translateY(12px) scale(.97)} to{opacity:1;transform:none} }
@keyframes maca-floaty { 50%{transform:translateY(-12px)} }
@keyframes maca-blink { 0%,100%{opacity:1} 50%{opacity:.25} }
.maca-ssq .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; transition-delay: var(--d,0ms); }
.maca-ssq .reveal.is-in { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 900px) {
  .maca-ssq .layout { grid-template-columns: 1fr; }
  .maca-ssq .aside-card { position: static; }
  .maca-ssq .about__grid, .maca-ssq .cover__grid { grid-template-columns: 1fr; gap: 28px; }
  .maca-ssq .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .maca-ssq .grid-3, .maca-ssq .grid-4, .maca-ssq .grid-2 { grid-template-columns: 1fr; }
  .maca-ssq .grid-4 { grid-template-columns: 1fr 1fr; }
  .maca-ssq .diag__grid { grid-template-columns: 1fr; }
  .maca-ssq .site-footer__inner { grid-template-columns: 1fr; }
  .maca-ssq .inline-cta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .maca-ssq *, .maca-ssq *::before, .maca-ssq *::after { animation: none !important; transition: none !important; }
  .maca-ssq .reveal { opacity: 1; transform: none; }
}
.maca-ssq :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

/* review attribution */
.maca-ssq .rev__who { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.maca-ssq .rev__av { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--brand) !important; color: #fff !important; display: grid; place-items: center; font-weight: 700; }
.maca-ssq .rev__name { font-weight: 700; font-size: .9rem; color: var(--tx); }
.maca-ssq .rev__src { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--mut); margin-top: 2px; }

/* review score label */
.maca-ssq .rev__stars { display: flex; align-items: center; gap: 8px; }
.maca-ssq .rev__score { font-weight: 700; font-size: .82rem; color: var(--tx) !important; letter-spacing: normal; }

/* ============ Mobile polish pass ============ */
@media (max-width: 640px) {
  /* Tighter line-height on inner-page prose + headings (was too airy). */
  .maca-ssq .prose { line-height: 1.6; font-size: 1.02rem; }
  .maca-ssq .prose > h2 { line-height: 1.18; margin: 1.4em 0 .45em; }
  .maca-ssq .prose > h3 { line-height: 1.2; }
  .maca-ssq .page-hero__title { line-height: 1.12; }
  /* Reduce the gap under the service/symptom hero CTA before the body copy. */
  .maca-ssq .page-hero { padding-bottom: 18px; }
  .maca-ssq .page-hero__cta { margin-top: 16px; }
  .maca-ssq .layout { padding-top: 24px; }
  /* The .section wrapper after the page-hero adds a large top pad → big gap
     before the body copy. Pull it in tight on inner pages. */
  .maca-ssq .page-hero + .section { padding-top: 18px; }
  /* Footer breathing room on mobile. */
  .maca-ssq .site-footer { padding-top: 40px; }
  .maca-ssq .site-footer__inner { gap: 28px; padding: 0 22px 28px; }
  .maca-ssq .site-footer__col { padding-bottom: 6px; }
  /* Extra bottom pad so the fixed floating CTA never covers footer text. */
  .maca-ssq .site-footer__bar-in { padding: 22px 22px 96px; }
}

/* Chat: when the on-screen keyboard opens it eats vertical space; use dynamic
   viewport units and a smaller welcome message so the latest message stays in
   view. dvh accounts for the keyboard on modern mobile browsers. */
@media (max-width: 640px) {
  /* Don't vertically center the chat — when the keyboard opens, centering
     pushes messages off the top of the screen. Anchor it to fill the panel
     from the top instead, sized to the *visible* viewport (set via JS). */
  .maca-chat-ovl { place-items: stretch; padding: 0; background: #fff; height: 100dvh; }
  .maca-chat { height: 100%; max-width: 100%; border-radius: 0; }
  .maca-chat__body { padding: 14px 14px; gap: 9px; }
  /* Push messages to the bottom (just above the input) only when there's spare
     space; when they overflow, normal scrolling still works without clipping. */
  .maca-chat__body > :first-child { margin-top: auto; }
  .maca-chat__ai { font-size: .74rem; padding: 8px 14px; }
  .maca-bub { font-size: .95rem; padding: 10px 13px; }
  /* Tighten input bar so it sits flush above the keyboard, no page bleed. */
  .maca-chat__input { padding: 8px 10px; }
}

/* Floating CTA quick-contact icons (phone / Viber / WhatsApp). */
.maca-ssq .floatCTA__icons { display: flex; gap: 9px; align-items: center; }
.maca-ssq .floatCTA__ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 10px 26px -10px rgba(13,19,32,.45); border: 1px solid var(--line); transition: transform .15s; }
.maca-ssq .floatCTA__ic:hover { transform: translateY(-2px); }
.maca-ssq .floatCTA__ic .icon { width: 22px; height: 22px; }
.maca-ssq .floatCTA__ic--call { background: var(--brand); border-color: var(--brand); }
.maca-ssq .floatCTA__ic--call .icon { color: #fff; }
.maca-ssq .floatCTA__ic--viber { background: #7360f2; border-color: #7360f2; }
.maca-ssq .floatCTA__ic--viber .icon { color: #fff; }
.maca-ssq .floatCTA__ic--wa { background: #25d366; border-color: #25d366; }
.maca-ssq .floatCTA__ic--wa .icon { color: #fff; }

/* Floating bar: keep all four buttons on one row, compact on small phones. */
@media (max-width: 560px) {
  .maca-ssq .floatCTA { left: 12px; right: 12px; gap: 7px; justify-content: flex-end; }
  .maca-ssq .floatCTA__icons { gap: 7px; }
  .maca-ssq .floatCTA__ic { width: 42px; height: 42px; }
  .maca-ssq .floatCTA__ic .icon { width: 20px; height: 20px; }
  .maca-ssq .floatCTA button { padding: 11px 16px; font-size: .92rem; gap: 8px; }
  .maca-ssq .floatCTA small { font-size: .68rem; }
}
@media (max-width: 380px) {
  .maca-ssq .floatCTA__ic { width: 40px; height: 40px; }
  .maca-ssq .floatCTA button { padding: 10px 13px; font-size: .86rem; }
  .maca-ssq .floatCTA small { display: none; }
}

/* Numeric rating before the stars in the hero eyebrow. */
.maca-ssq .hero__score { font-weight: 800; color: var(--tx); }
