/* ===========================================================================
   MiraFloor skin v3 «Шари» — template layer: ARTICLES (statti/*, ru/statti/*).
   Loads after claude-skin.css (tokens + shared blocks) and mf-tools.css.
   Figma «C — Шари» → Article — Mobile 375 (6:1902).

   The 27 articles carry 9 different inline <style> sets and a lot of
   style="" attributes (callout boxes, CTA blocks, FAQ headings, form).
   Rules here are therefore scoped (body …, .article-body …) and use
   !important wherever a style="" attribute has to lose. HTML is untouched.
   =========================================================================== */

/* ---------- Latin subset of Manrope ----------
   11 articles (epoxy / hydro family) declare only the Cyrillic @font-face, so
   digits, «MiraFloor», «Mira 6700» fell back to the system font. Same files
   as the other articles use — cached, no extra weight there. */
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/manrope-latin-400.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/manrope-latin-600.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/manrope-latin-700.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Manrope';font-style:normal;font-weight:800;font-display:swap;src:url('fonts/manrope-latin-800.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- page ground & reading text ---------- */
body{font-size:16px!important;line-height:1.625!important;color:var(--ink-2)!important}
@media (min-width:768px){body{font-size:17px!important;line-height:1.65!important}}

/* ---------- header: white bar, hairline, logo square r8 ---------- */
body .header{background:var(--surface)!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  border-bottom:1px solid var(--line)!important;box-shadow:none!important}
body .header-inner{max-width:75rem!important;height:60px!important;padding:0 16px!important;gap:12px}
@media (min-width:768px){body .header-inner{padding:0 24px!important}}
@media (min-width:1024px){body .header-inner{height:76px!important}}
body .header-inner > a:first-child{gap:10px!important;min-width:0}
body .header-inner > a:first-child > div{width:36px!important;height:36px!important;border-radius:8px!important;background:var(--accent)!important;flex:0 0 36px}
body .header-inner > a:first-child > div span{color:#fff!important;font-weight:800!important;font-size:18px!important}
body .header-inner > a:first-child > span,body .header .mf-logo-txt{font-weight:800!important;font-size:20px!important;line-height:1!important;letter-spacing:-.01em;color:var(--ink)!important}
body .header a[href^="tel:"]{display:inline-flex;align-items:center;min-height:44px;font-weight:800!important;font-size:16px!important;color:var(--ink)!important;white-space:nowrap;text-decoration:none!important}
body .header a[href^="tel:"]:hover{color:var(--accent-ink)!important}
@media (max-width:359px){body .header a[href^="tel:"]{font-size:14px!important}}
/* empty language switch left a 2 px grey pill next to the phone */
body .header .lang-switch:not(:has(*)){display:none!important}
body .header .lang-switch{background:var(--paper-2)!important;border-radius:var(--r-sm)!important}
body .header .lang-btn{border-radius:6px!important;color:var(--ink-2)!important}
body .header .lang-btn.active{background:var(--surface)!important;color:var(--ink)!important}
body .header .mf-lang{min-height:40px;padding:0 12px;border:1.5px solid var(--line)!important;border-radius:var(--r-sm)!important;
  color:var(--ink)!important;font-weight:800;background:var(--surface)}
body .header .mf-lang:hover{border-color:var(--ink)!important;color:var(--ink)!important}

/* ---------- reading column: ~68ch at 17 px ---------- */
body .article-container{max-width:47rem!important;padding:20px 16px 32px!important}
@media (min-width:768px){body .article-container{padding:32px 24px 48px!important}}

/* ---------- breadcrumbs: 13 px, ink-3, links ink-2 underlined ---------- */
body .breadcrumb{font-size:13px!important;line-height:20px;color:var(--ink-3)!important;gap:4px 8px!important;margin-bottom:16px!important;font-weight:500}
body .breadcrumb a{color:var(--ink-2)!important;font-weight:600!important;text-decoration:underline!important;
  text-decoration-color:var(--line)!important;text-decoration-thickness:1.5px!important;text-underline-offset:3px}
body .breadcrumb a:hover{text-decoration-color:var(--ink-2)!important}
body .breadcrumb > span{color:var(--ink-3)!important}
@media (min-width:768px){body .breadcrumb{margin-bottom:20px!important}}

/* ---------- cover photo (not in the Figma frame): compact, r16/r18 ---------- */
body .article-hero{height:180px!important;border-radius:16px!important;margin-bottom:20px!important;background:var(--ph);box-shadow:var(--shadow-card)}
@media (min-width:768px){body .article-hero{height:280px!important;border-radius:var(--r-card)!important;margin-bottom:28px!important}}
body .article-hero-overlay{background:linear-gradient(to top,rgba(18,20,23,.38),rgba(18,20,23,0) 55%)!important}
body .article-hero-cat{left:12px!important;bottom:12px!important;background:var(--ink)!important;color:#fff!important;
  font-size:12px!important;line-height:16px;font-weight:800!important;letter-spacing:.08em!important;padding:6px 10px!important;border-radius:var(--r-sm)!important}

/* ---------- headings ---------- */
body .article-body h1{font-size:32px!important;line-height:38px!important;font-weight:800!important;letter-spacing:-.015em!important;
  color:var(--ink)!important;margin:0 0 14px!important;overflow-wrap:break-word;hyphens:manual}
@media (min-width:768px){body .article-body h1{font-size:38px!important;line-height:44px!important}}
@media (min-width:1024px){body .article-body h1{font-size:44px!important;line-height:50px!important;letter-spacing:-.02em!important}}

body .article-body h2{font-size:24px!important;line-height:30px!important;font-weight:800!important;letter-spacing:-.01em!important;
  color:var(--ink)!important;margin:40px 0 12px!important}
@media (min-width:768px){body .article-body h2{font-size:30px!important;line-height:36px!important;margin:56px 0 16px!important}}

body .article-body h3{font-size:19px!important;line-height:25px!important;font-weight:700!important;color:var(--ink)!important;margin:28px 0 8px!important}
@media (min-width:768px){body .article-body h3{font-size:20px!important;line-height:27px!important}}
body .article-body h4{color:var(--ink)!important}

/* meta / lead lines under H1 */
body .article-body .mf-meta{display:flex;align-items:center;gap:10px;font-size:13px!important;line-height:20px;color:var(--ink-3)!important;margin:0 0 20px!important;font-weight:600}
body .article-body .mf-meta::before{content:"";flex:0 0 32px;height:6px;border-radius:3px;background:var(--strata-x)}
body .article-body .mf-updated{margin:0 0 20px!important;font-size:13px!important;line-height:20px!important;color:var(--ink-3)!important}
body .article-body .lede,body .article-body .mf-lead{font-size:17px!important;line-height:27px!important;color:var(--ink-2)!important;margin-bottom:20px!important}
@media (min-width:768px){body .article-body .lede,body .article-body .mf-lead{font-size:19px!important;line-height:30px!important}}

/* ---------- body copy ---------- */
body .article-body p,body .article-body li{font-size:16px;line-height:26px;color:var(--ink)}
body .article-body > p,body .article-body > ul > li,body .article-body > ol > li,
body .article-body section > p{color:var(--ink)!important}
body .article-body p{margin:0 0 16px}
@media (min-width:768px){
  body .article-body p,body .article-body li{font-size:17px;line-height:28px}
  body .article-body p{margin-bottom:18px}
}
body .article-body strong,body .article-body b{color:var(--ink);font-weight:700}

/* links inside reading text: deep red, underlined (≥4.5:1 on paper and white) */
body .article-body :is(p,li,td,div,span):not(.mft *,.mf-cta *,.mf-mid-cta *) > a:not([class]){color:var(--accent-ink)!important;font-weight:600!important;
  text-decoration:underline!important;text-decoration-thickness:1px!important;text-underline-offset:3px!important}
body .article-body :is(p,li,td,div,span):not(.mft *,.mf-cta *,.mf-mid-cta *) > a:not([class]):hover{text-decoration-thickness:2px!important}

/* ---------- lists ---------- */
body .article-body ul.mf-list,body .article-body ul.mf-ul{list-style:disc!important;padding-left:1.35rem!important;margin:0 0 18px!important}
/* lists with a typed «•» (price/consumption articles): hanging bullet, no second marker */
body .article-body > ul[style*="padding-left:1.25rem"]{list-style:none!important;padding-left:1.1rem!important;margin:0 0 18px!important}
body .article-body > ul[style*="padding-left:1.25rem"] > li{text-indent:-.72em}
body .article-body ol.mf-steps,body .article-body ol.mf-ol{list-style:decimal!important;padding-left:1.6rem!important;margin:0 0 18px!important}
body .article-body :is(.mf-list,.mf-ul,.mf-steps,.mf-ol) li,
body .article-body > ul[style*="padding-left:1.25rem"] > li{margin-bottom:8px!important;padding-left:2px;color:var(--ink)!important}
body .article-body :is(.mf-list,.mf-ul) li::marker{color:var(--layer-hydro)}
body .article-body :is(.mf-steps,.mf-ol) li::marker{color:var(--ink);font-weight:800}

body .article-body ul.dot li,body .article-body ul.chk li,body .article-body ul.x li{color:var(--ink)!important;margin-bottom:10px!important}
body .article-body ul.dot li::before{background:var(--layer-hydro)!important;top:.62rem!important;border-radius:2px!important;width:.5rem!important;height:.5rem!important}
body .article-body ul.chk li::before{color:var(--layer-hydro)!important}
body .article-body ul.x li::before{color:var(--accent-ink)!important}

/* numbered steps (.steps-num): one counter only — the <ol> marker doubled it
   on gidroizolyatsiya-pidlogi / gidroizolyatsiya-vannoi-pomylky & co. */
body .article-body ol.steps-num,body .steps-num{list-style:none!important;padding-left:0!important;margin:20px 0!important}
body .steps-num li{list-style:none!important;padding-left:48px!important;margin-bottom:16px!important;color:var(--ink)!important;min-height:32px}
body .steps-num li::marker{content:none}
body .steps-num li::before{width:32px!important;height:32px!important;top:-1px!important;border-radius:10px!important;
  background:var(--ink)!important;color:var(--on-dark)!important;font-size:15px!important;font-weight:800!important;font-variant-numeric:tabular-nums}
body .steps-num li strong{color:var(--ink)!important}

/* ---------- tables: r14 card, ink head, zebra ---------- */
body .article-body :is(.tbl-wrap,.mf-table,.mf-scroll,.mf-table-wrap,.overflow-x-auto),
body .article-body div[style*="overflow-x:auto"]{overflow-x:auto!important;-webkit-overflow-scrolling:touch;max-width:100%;
  margin:20px 0 24px!important;border:0!important;border-radius:14px}
body .article-body table:not(.mf-price-table):not(.mft-table){width:100%;border-collapse:separate!important;border-spacing:0!important;
  margin:0!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:14px!important;
  overflow:hidden!important;box-shadow:none!important;font-size:14px!important;line-height:20px;font-variant-numeric:tabular-nums}
body .article-body > table:not(.mf-price-table):not(.mft-table){margin:20px 0 24px!important}
body .article-body table:not(.mf-price-table):not(.mft-table) th{background:var(--ink)!important;color:var(--on-dark)!important;
  font-size:13px!important;line-height:18px!important;font-weight:700!important;letter-spacing:.01em;padding:12px 10px!important;
  border:0!important;vertical-align:top;text-align:left}
body .article-body table:not(.mf-price-table):not(.mft-table) td{background:var(--surface)!important;color:var(--ink)!important;
  padding:12px 10px!important;border:0!important;border-top:1px solid var(--line)!important;vertical-align:top;font-size:14px!important;line-height:20px!important}
body .article-body table:not(.mf-price-table):not(.mft-table) tbody tr:nth-child(even) td{background:var(--row-alt)!important}
body .article-body table:not(.mf-price-table):not(.mft-table) tbody tr:first-child td,
body .article-body table:not(.mf-price-table):not(.mft-table) > tr:first-child td{border-top:0!important}
body .article-body table:not(.mf-price-table):not(.mft-table) td:first-child{font-weight:700}
body .article-body table:not(.mf-price-table):not(.mft-table) :is(td,th) strong{color:inherit!important}
/* highlighted rows and section rows inside a table */
body .article-body table:not(.mf-price-table):not(.mft-table) tbody tr[style*="background"] td{background:var(--paper-2)!important}
body .article-body table:not(.mf-price-table):not(.mft-table) td[colspan]{background:var(--paper-2)!important;color:var(--ink)!important;font-weight:800!important}
@media (min-width:768px){
  body .article-body table:not(.mf-price-table):not(.mft-table){font-size:15px!important}
  body .article-body table:not(.mf-price-table):not(.mft-table) th{padding:14px 16px!important}
  body .article-body table:not(.mf-price-table):not(.mft-table) td{padding:14px 16px!important;font-size:15px!important;line-height:22px!important}
}
/* the wide tables scroll inside their wrapper instead of squeezing to 375 */
body .article-body .mf-table.mf-wide table,body .article-body table.mf-table:not(.mf-table--narrow){min-width:520px}

/* ---------- callout boxes (inline-styled) ----------
   Light boxes → white card, hairline, r16, left stratum bar coloured by role.
   Text inside goes back to ink — the slate/amber/violet inline colours. */
body .article-body div[style*="background:#f" i]:not(.mf-mid-cta):not(.mf-answer),
body .article-body div[style*="background:linear-gradient(90deg,#fffbeb" i],
body .article-body .note,body .mf-note,
body .article-body div.rounded-2xl{
  position:relative;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:16px!important;
  padding:16px 16px 16px 22px!important;margin:20px 0 24px!important;color:var(--ink)!important;box-shadow:var(--shadow-card);overflow:hidden;text-align:left!important}
body .article-body div[style*="background:#f" i]:not(.mf-mid-cta):not(.mf-answer)::before,
body .article-body div[style*="background:linear-gradient(90deg,#fffbeb" i]::before,
body .article-body .note::before,body .mf-note::before,body .article-body div.rounded-2xl::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--layer-level)}
/* role colours of the bar */
body .article-body div[style*="background:#fffbeb" i]::before,body .article-body div[style*="background:#fff7ed" i]::before,
body .article-body div[style*="linear-gradient(90deg,#fffbeb" i]::before,body .article-body .note.amber::before,
body .article-body div.bg-amber-50::before,body .article-body div.from-amber-50::before{background:var(--layer-primer)}
body .article-body .note.teal::before,body .article-body div[style*="background:#faf5ff" i]::before,body .article-body div.bg-emerald-50::before{background:var(--layer-hydro)}
body .article-body .note.red::before,body .mf-note::before,body .article-body div.bg-rose-50::before{background:var(--accent)}
/* formula box (centered, no title) — the Figma «formula» plate: paper-2, no bar */
body .article-body div[style*="background:#f1f5f9" i]{background:var(--paper-2)!important;border-color:transparent!important;box-shadow:none!important;padding:16px 18px!important}
body .article-body div[style*="background:#f1f5f9" i]::before{content:none!important}
/* small item cards inside a group (cost parts, tips, FAQ in price articles) */
body .article-body div[style*="background:#f8fafc" i]{padding:14px 16px 14px 20px!important;margin:0 0 10px!important}
body .article-body div[style*="margin-bottom:1.5rem"] > div[style*="background:#f8fafc" i]:last-child{margin-bottom:0!important}
body .article-body div.bg-slate-50.rounded-2xl,body .article-body div.bg-white.rounded-2xl{margin:0!important}
body .article-body div.bg-slate-50.rounded-2xl::before,body .article-body div.bg-white.rounded-2xl::before{background:var(--layer-level)}
/* text inside light boxes */
body .article-body :is(div[style*="background:#f" i]:not(.mf-mid-cta):not(.mf-answer),div[style*="linear-gradient(90deg,#fffbeb" i],.note,.mf-note,div.rounded-2xl)
  :is(p,li,span,div,strong,b){color:var(--ink)!important}
body .article-body :is(div[style*="background:#f" i]:not(.mf-mid-cta):not(.mf-answer),div[style*="linear-gradient(90deg,#fffbeb" i],.note,.mf-note,div.rounded-2xl)
  :is(p,li){color:var(--ink-2)!important;font-size:15px!important;line-height:24px!important}
body .article-body :is(div[style*="background:#f" i]:not(.mf-mid-cta):not(.mf-answer),div[style*="linear-gradient(90deg,#fffbeb" i],.note,.mf-note,div.rounded-2xl)
  > div:first-child:not([class*="grid"]){font-weight:800!important;font-size:16px!important;line-height:22px!important;color:var(--ink)!important}
body .article-body :is(div[style*="background:#f" i]:not(.mf-mid-cta):not(.mf-answer),div[style*="linear-gradient(90deg,#fffbeb" i],.note,.mf-note,div.rounded-2xl)
  a{color:var(--accent-ink)!important}
body .article-body :is(div[style*="background:#f" i],div.rounded-2xl) > span[style*="color:#E31E24" i],
body .article-body span.text-amber-600,body .article-body span[style*="color:#b45309" i],body .article-body span[style*="color:#15803d" i]{color:var(--accent-ink)!important;font-weight:800!important}
body .article-body div[style*="background:#f1f5f9" i] p:first-child{font-size:17px!important;line-height:25px!important;font-weight:800!important;color:var(--ink)!important}
body .article-body div[style*="background:#f1f5f9" i] p + p{color:var(--ink-3)!important;font-size:14px!important;line-height:20px!important}
@media (min-width:768px){
  body .article-body div[style*="background:#f" i]:not(.mf-mid-cta):not(.mf-answer),
  body .article-body div[style*="linear-gradient(90deg,#fffbeb" i],body .article-body .note,body .mf-note{padding:20px 22px 20px 28px!important}
  body .article-body :is(div[style*="background:#f" i]:not(.mf-mid-cta):not(.mf-answer),div[style*="linear-gradient(90deg,#fffbeb" i],.note,.mf-note,div.rounded-2xl)
    :is(p,li){font-size:16px!important;line-height:26px!important}
}
/* Tailwind-utility text colours (derevo/OSB article) back to ink */
body .article-body :is(.text-amber-600,.text-amber-800,.text-amber-900,.text-emerald-500,.text-emerald-600,.text-emerald-700,.text-emerald-800,
  .text-rose-500,.text-rose-600,.text-rose-700,.text-rose-800,.text-slate-600,.text-slate-900){color:var(--ink)!important}
body .article-body td:is(.text-emerald-500,.text-emerald-600){color:var(--layer-hydro)!important}
body .article-body td:is(.text-rose-500,.text-rose-600){color:var(--accent-ink)!important}

/* dark feature boxes («Наш вибір — Mira 6700») */
body .article-body div[style*="background:linear-gradient(135deg,#0f172a" i],
body .article-body div[style*="background:#141413" i]:not(.mf-cta){position:relative;background:var(--dark)!important;border-radius:var(--r-card)!important;
  padding:20px!important;margin:24px 0!important;color:var(--on-dark)!important;overflow:hidden}
body .article-body :is(div[style*="background:linear-gradient(135deg,#0f172a" i],div[style*="background:#141413" i]:not(.mf-cta)) :is(p,li,ul){color:var(--on-dark-2)!important;font-size:15px!important;line-height:24px!important}
body .article-body :is(div[style*="background:linear-gradient(135deg,#0f172a" i],div[style*="background:#141413" i]:not(.mf-cta)) :is(strong,b,div){color:var(--on-dark)!important}
body .article-body :is(div[style*="background:linear-gradient(135deg,#0f172a" i],div[style*="background:#141413" i]:not(.mf-cta)) > div:first-child{font-size:18px!important;line-height:24px!important;font-weight:800!important}
body .article-body :is(div[style*="background:linear-gradient(135deg,#0f172a" i],div[style*="background:#141413" i]:not(.mf-cta)) a{color:#fff!important;text-decoration:underline!important}
@media (min-width:768px){body .article-body :is(div[style*="background:linear-gradient(135deg,#0f172a" i],div[style*="background:#141413" i]:not(.mf-cta)){padding:28px!important}}

/* ---------- FAQ ---------- */
body .mf-faq{margin-top:8px}
body .mf-faq .mf-faq-item{border-top:1px solid var(--line)!important;padding:4px 0 2px!important}
body .mf-faq .mf-faq-item:last-child{border-bottom:1px solid var(--line)}
body .mf-faq .mf-faq-item h3,body .mf-faq h3{font-size:17px!important;line-height:24px!important;font-weight:800!important;color:var(--ink)!important;margin:16px 0 6px!important}
body .mf-faq .mf-faq-item p{margin-bottom:14px!important}
/* <details> FAQ (11 articles): white cards with a +/– */
body .article-body details,body .article-container details{background:var(--surface);border:1px solid var(--line);border-radius:14px;margin:0 0 10px;overflow:hidden}
body .article-body details summary,body .article-container details summary{list-style:none;cursor:pointer;position:relative;
  padding:14px 48px 14px 16px;font-weight:800;font-size:16px;line-height:23px;color:var(--ink);min-height:48px}
body .article-container details summary::-webkit-details-marker{display:none}
body .article-container details summary::after{content:"+";position:absolute;right:14px;top:50%;width:26px;height:26px;margin-top:-13px;
  border-radius:8px;background:var(--paper-2);color:var(--ink);font-weight:800;font-size:18px;line-height:26px;text-align:center}
body .article-container details[open] summary::after{content:"–"}
body .article-container details > p,body .article-container details > div{padding:0 16px 14px;margin:0!important;color:var(--ink-2)!important;font-size:15px!important;line-height:24px!important}
body .article-container details[open] summary{border-bottom:1px solid var(--line);margin-bottom:12px}
@media (min-width:768px){body .article-container details summary{padding:16px 52px 16px 20px;font-size:17px}
  body .article-container details > p,body .article-container details > div{padding:0 20px 16px;font-size:16px!important;line-height:26px!important}}

/* ---------- mid-article CTA: dark card, 24 px stratum on top ---------- */
body .mf-mid-cta{position:relative;background:var(--dark)!important;border:0!important;border-radius:var(--r-card)!important;
  padding:44px 20px 20px!important;margin:32px 0!important;color:var(--on-dark)!important;overflow:hidden;box-shadow:var(--shadow-pop)}
body .mf-mid-cta::before{content:"";position:absolute;left:0;right:0;top:0;height:24px;background:var(--strata-h)}
body .mf-mid-cta > div:first-child{font-size:22px!important;line-height:28px!important;font-weight:800!important;letter-spacing:-.01em;color:var(--on-dark)!important;margin-bottom:10px!important}
body .mf-mid-cta > p{color:var(--on-dark-2)!important;font-size:16px!important;line-height:25px!important;margin:0 0 18px!important;max-width:none}
body .mf-mid-cta > div:last-child{gap:10px!important}
body .mf-mid-cta > div:last-child > a{justify-content:center;min-height:52px!important;padding:0 24px!important;border-radius:var(--r-btn)!important;
  font-size:16px!important;font-weight:700!important;line-height:20px;text-decoration:none!important}
body .mf-mid-cta > div:last-child > a:first-child{background:var(--accent)!important;color:#fff!important;border:1.5px solid var(--accent)!important}
body .mf-mid-cta > div:last-child > a:first-child:hover{background:var(--accent-ink)!important;border-color:var(--accent-ink)!important}
body .mf-mid-cta > div:last-child > a + a{background:transparent!important;color:var(--on-dark)!important;border:1.5px solid var(--on-dark)!important}
body .mf-mid-cta > div:last-child > a + a:hover{background:var(--on-dark)!important;color:var(--dark)!important}
@media (max-width:600px){body .mf-mid-cta > div:last-child > a{flex:1 1 100%}}
@media (min-width:768px){body .mf-mid-cta{padding:48px 28px 28px!important;margin:40px 0!important}
  body .mf-mid-cta > div:first-child{font-size:24px!important;line-height:30px!important}}
body .mf-mid-cta a:focus-visible,body .mf-cta a:focus-visible{outline-color:var(--on-dark)!important}

/* ---------- bottom CTA (+ quick lead form) ---------- */
body .mf-cta{position:relative;background:var(--dark)!important;border:0!important;border-radius:var(--r-card)!important;
  padding:44px 20px 20px!important;margin:48px 0 0!important;color:var(--on-dark)!important;text-align:left!important;overflow:hidden;box-shadow:var(--shadow-pop)}
body .mf-cta::before{content:"";position:absolute;left:0;right:0;top:0;height:24px;background:var(--strata-h)}
body .mf-cta > div:first-child,body .mf-cta > h2,body .mf-cta > h3{font-size:22px!important;line-height:28px!important;font-weight:800!important;
  letter-spacing:-.01em;color:var(--on-dark)!important;margin:0 0 10px!important;text-align:left}
body .mf-cta > p{color:var(--on-dark-2)!important;font-size:16px!important;line-height:25px!important;margin:0 0 18px!important;max-width:none!important;text-align:left}
body .mf-cta > div[style*="flex"],body .mf-cta .mf-cta-row{display:flex!important;flex-wrap:wrap;gap:10px!important;justify-content:flex-start!important}
body .mf-cta > div[style*="flex"] > a,body .mf-cta .mf-cta-row > a{display:inline-flex!important;align-items:center;justify-content:center;min-height:52px!important;
  padding:0 20px!important;border-radius:var(--r-btn)!important;font-size:16px!important;font-weight:700!important;line-height:20px;text-decoration:none!important;
  background:transparent!important;color:var(--on-dark)!important;border:1.5px solid var(--on-dark)!important;opacity:1!important}
body .mf-cta > div[style*="flex"] > a:first-child,body .mf-cta .mf-cta-row > a:first-child{background:var(--accent)!important;border-color:var(--accent)!important;color:#fff!important}
body .mf-cta > div[style*="flex"] > a:first-child:hover,body .mf-cta .mf-cta-row > a:first-child:hover{background:var(--accent-ink)!important;border-color:var(--accent-ink)!important}
body .mf-cta > div[style*="flex"] > a + a:hover,body .mf-cta .mf-cta-row > a + a:hover{background:var(--on-dark)!important;color:var(--dark)!important}
@media (max-width:600px){body .mf-cta > div[style*="flex"] > a,body .mf-cta .mf-cta-row > a{flex:1 1 100%;width:100%}}
@media (min-width:768px){body .mf-cta{padding:52px 32px 32px!important;margin-top:64px!important}
  body .mf-cta > div:first-child,body .mf-cta > h2,body .mf-cta > h3{font-size:26px!important;line-height:32px!important}}

/* the form: white card on the dark block (Figma: form on dark = white r20) */
body .mf-quick{margin:20px 0 0!important;padding:20px 16px!important;border:0!important;border-radius:16px!important;
  background:var(--surface)!important;color:var(--ink)!important;box-shadow:0 16px 40px -12px rgba(0,0,0,.3)}
@media (min-width:768px){body .mf-quick{padding:24px!important;border-radius:20px!important}}
body .mf-quick label[for="mfq-phone"]{color:var(--ink)!important;font-size:16px!important;line-height:22px!important;font-weight:800!important;margin-bottom:12px!important}
body .mf-quick > div[style*="flex"]{gap:10px!important}
body .mf-quick input[type=tel]{min-height:52px!important;height:52px;padding:0 14px!important;border:1.5px solid var(--input-line)!important;border-radius:var(--r-btn)!important;
  background:var(--paper)!important;color:var(--ink)!important;font-size:16px!important;font-weight:600;flex:1 1 200px!important}
body .mf-quick input[type=tel]::placeholder{color:var(--ink-3);opacity:1}
body .mf-quick input[type=tel]:focus{border-color:var(--ink)!important;background:var(--surface)!important}
body .mf-quick button[type=submit]{min-height:52px!important;padding:0 24px!important;border-radius:var(--r-btn)!important;background:var(--accent)!important;
  color:#fff!important;font-weight:700!important;font-size:16px!important;border:0!important;flex:1 1 180px}
body .mf-quick button[type=submit]:hover{background:var(--accent-ink)!important}
body .mf-quick button[type=submit][disabled]{background:var(--ink-3)!important;cursor:progress}
body .mf-quick .mfq-status{color:var(--ink-2)!important;font-size:14px!important;font-weight:600}
body .mf-quick .mfq-status:empty{display:none}
body .mf-quick > p:last-child{color:var(--ink-3)!important;font-size:12.5px!important;line-height:18px!important;margin-top:10px!important}
body .mf-quick > p:last-child a{color:var(--ink-2)!important;text-decoration:underline!important}
@media (max-width:600px){body .mf-quick button[type=submit]{flex:1 1 100%}}

/* legacy .cta-block (1 article) */
body .cta-block:not(.mf-cta){background:var(--dark)!important;border-radius:var(--r-card)!important}
body .cta-block:not(.mf-cta) h3{color:var(--on-dark)!important}
body .cta-block:not(.mf-cta) p{color:var(--on-dark-2)!important}
body .cta-btn{border-radius:var(--r-btn)!important;min-height:52px;background:var(--accent)!important;color:#fff!important;font-weight:700!important;opacity:1!important}
body .cta-btn:hover{background:var(--accent-ink)!important}

/* ---------- calculators & quizzes (.mft) in article context ---------- */
body .article-container .mft:not(.mft-card){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:var(--r-card)!important;
  box-shadow:var(--shadow-card);padding:20px 16px!important;margin:32px 0!important}
@media (min-width:768px){body .article-container .mft:not(.mft-card){padding:28px!important;border-radius:20px!important}}
body .mft .mft-eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:12px!important;letter-spacing:.08em!important;font-weight:700!important;color:var(--ink-3)!important}
body .mft .mft-eyebrow::before{content:"";flex:0 0 40px;width:40px;height:6px;border-radius:3px;background:var(--strata-x)}
body .mft .mft-title{font-size:22px!important;line-height:28px!important;letter-spacing:-.01em!important;color:var(--ink)!important}
body .mft .mft-sub,body .mft .mft-hint{color:var(--ink-2)!important}
body .mft .mft-q-label,body .mft .mft-field > span,body .mft .mft-check{color:var(--ink)!important}
body .mft .mft-q-hint{color:var(--ink-3)!important}
body .mft .mft-chip{background:var(--paper)!important;border:1.5px solid var(--line)!important;border-radius:var(--r-btn)!important;color:var(--ink)!important;min-height:48px}
body .mft .mft-chip small{color:var(--ink-3)!important}
body .mft .mft-chip:hover{border-color:var(--ink)!important}
body .mft .mft-chip[aria-pressed="true"]{background:var(--ink)!important;border-color:var(--ink)!important;color:var(--on-dark)!important}
body .mft .mft-chip[aria-pressed="true"] small{color:var(--on-dark-2)!important}
body .mft .mft-step,body .mft .mft-date{border:1.5px solid var(--input-line)!important;border-radius:var(--r-btn)!important;background:var(--paper)!important;height:52px!important}
body .mft .mft-step input{border-color:var(--line)!important;color:var(--ink)!important}
body .mft .mft-step button{color:var(--ink)!important;border-radius:0!important}
body .mft .mft-step button:first-child{border-radius:10px 0 0 10px!important}
body .mft .mft-step button:last-of-type{border-radius:0 10px 10px 0!important}
body .mft .mft-unit{color:var(--ink-3)!important}
body .mft .mft-result{background:var(--dark)!important;border-radius:14px!important;position:relative;overflow:hidden;padding-top:28px!important}
body .mft .mft-result::before{content:"";position:absolute;left:0;right:0;top:0;height:6px;background:var(--strata-x)}
body .mft.mft-card .mft-result{padding-top:28px!important}
body .mft .mft-result-main em{color:#FF8A8D}
body .mft .mft-btn-primary,body .mft .mft-btn-calc{border-radius:var(--r-btn)!important;min-height:52px;font-weight:700!important}
body .mft .mft-btn-primary{background:var(--accent)!important}
body .mft .mft-btn-primary:hover{background:var(--accent-ink)!important}
body .mft .mft-btn-primary[disabled]{background:var(--ink-3)!important}
body .mft .mft-btn-calc{background:var(--ink)!important;color:var(--on-dark)!important}
body .mft .mft-btn-calc:hover{background:var(--dark-2)!important}
body .mft .mft-btn-ghost,body .mft .mft-alt a{border-radius:var(--r-btn)!important;border-width:1.5px!important}
body .mft .mft-lead-form input[type=tel],body .mft .mft-lead-form input[type=text]{height:52px!important;border-radius:var(--r-btn)!important;border-width:1.5px!important}
body .mft .mft-warn,body .mft .mft-ok{border-radius:10px!important}

/* ---------- «Інші статті» / service previews ---------- */
body .article-container > div[style*="margin-top:3rem"],body .article-container > div[style*="margin-top:2.5rem"]{margin-top:48px!important}
body .article-container > div[style*="margin-top"] > h3,
body div[style*="max-width:48rem;margin:2.5rem auto 0"] > h3{font-size:20px!important;line-height:26px!important;font-weight:800!important;color:var(--ink)!important;margin-bottom:4px!important}
body div[style*="max-width:48rem;margin:2.5rem auto 0"]{max-width:47rem!important;padding:0 16px!important;margin-top:40px!important}
@media (min-width:768px){body div[style*="max-width:48rem;margin:2.5rem auto 0"]{padding:0 24px!important}}
body .related-grid{gap:12px!important;margin-top:16px!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr))!important}
body .related-card{display:flex;flex-direction:column;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:16px!important;
  overflow:hidden;box-shadow:var(--shadow-card);text-decoration:none!important;transition:border-color .15s ease}
body .related-card:hover{border-color:var(--ink)!important;box-shadow:var(--shadow-pop)!important}
body .related-card img{height:132px!important;background:var(--ph)}
body .related-card-body{padding:14px 16px 16px!important}
body .related-card-body h4{font-size:16px!important;line-height:22px!important;font-weight:700!important;color:var(--ink)!important;margin:0!important}
body .related-card-body p{font-size:14px!important;line-height:20px;color:var(--ink-2)!important;margin-top:4px}
@media (max-width:600px){
  /* phones: horizontal cards, photo left — shorter scroll than three 140 px images */
  body .related-card{flex-direction:row;align-items:stretch;min-height:84px}
  body .related-card img{width:104px!important;height:auto!important;min-height:84px;flex:0 0 104px;object-fit:cover}
  body .related-card-body{display:flex;flex-direction:column;justify-content:center;padding:12px 14px!important}
}

/* service link boxes: .svc-box, .mf-services, inline «max-width:760px» box */
body .svc-box,body .mf-services,body div[style*="max-width:760px;margin:2.5rem auto 0"]{max-width:calc(47rem - 32px)!important;margin:40px auto 0!important;
  padding:20px 16px!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:var(--r-card)!important;box-shadow:var(--shadow-card)}
@media (max-width:767px){body .svc-box,body .mf-services,body div[style*="max-width:760px;margin:2.5rem auto 0"]{margin-left:16px!important;margin-right:16px!important}}
@media (min-width:768px){body .svc-box,body .mf-services,body div[style*="max-width:760px;margin:2.5rem auto 0"]{max-width:calc(47rem - 48px)!important;padding:24px!important}}
body .svc-box .t,body .mf-services-title,body div[style*="max-width:760px;margin:2.5rem auto 0"] > div:first-child{font-size:18px!important;line-height:24px!important;font-weight:800!important;color:var(--ink)!important;margin-bottom:14px!important}
body .svc-box .links,body .mf-services-list,body div[style*="max-width:760px;margin:2.5rem auto 0"] > div[style*="flex"]{gap:8px!important}
body .svc-box a,body .mf-services-list a,body div[style*="max-width:760px;margin:2.5rem auto 0"] > div[style*="flex"] > a{display:inline-flex!important;align-items:center;min-height:40px;
  padding:8px 12px!important;background:var(--paper)!important;border:1px solid var(--line)!important;border-radius:var(--r-sm)!important;
  color:var(--ink)!important;font-size:14px!important;line-height:18px;font-weight:700!important;text-decoration:none!important}
body .svc-box a:hover,body .mf-services-list a:hover,body div[style*="max-width:760px;margin:2.5rem auto 0"] > div[style*="flex"] > a:hover{border-color:var(--ink)!important;color:var(--ink)!important}
/* «усі послуги →» line under the box */
body div[style*="max-width:760px;margin:2.5rem auto 0"] + div,body div[style*="margin-top:1rem;max-width:48rem"] > a[style*="color:#E31E24" i]{color:var(--accent-ink)!important}
body a[style*="font-weight:800;font-size:.9rem;color:#E31E24" i]{color:var(--accent-ink)!important;text-decoration:underline!important;text-underline-offset:3px}

/* ---------- back link: ghost ---------- */
body .back-link{display:inline-flex!important;align-items:center;min-height:44px;margin-top:32px!important;color:var(--ink)!important;font-weight:700!important;font-size:16px!important;
  text-decoration:underline!important;text-decoration-color:var(--accent)!important;text-decoration-thickness:2px!important;text-underline-offset:4px!important}
body .back-link:hover{color:var(--accent-ink)!important}

/* ---------- footer: dark-2, stratum on top ---------- */
body .footer{position:relative;background:var(--dark-2)!important;color:var(--on-dark-2)!important;border-top:0!important;
  margin-top:56px!important;padding:32px 0 28px!important}
body .footer::before{content:"";position:absolute;left:0;right:0;top:-24px;height:24px;background:var(--strata-h)}
body .footer-inner{max-width:75rem!important;padding:0 16px!important;font-size:14px!important;line-height:20px;gap:12px 24px!important;align-items:flex-start!important}
@media (min-width:768px){body .footer-inner{padding:0 24px!important}body .footer{margin-top:72px!important}}
body .article-container .svc-box,body .article-container .mf-services{margin-left:0!important;margin-right:0!important;max-width:none!important}
body .footer-inner > span:first-child{color:var(--on-dark-2)!important}
body .footer-inner > span[style*="flex"]{gap:6px 18px!important}
body .footer a{color:var(--on-dark)!important;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;min-height:32px}
body .footer a:hover{color:#fff!important;text-decoration:underline}
body .footer > .mf-foot-pos{max-width:75rem!important;padding:16px 16px 0!important;margin-top:16px!important;border-top:1px solid var(--line-dark)}
@media (min-width:768px){body .footer > .mf-foot-pos{padding:16px 24px 0!important;border-top:0;
  background:linear-gradient(var(--line-dark),var(--line-dark)) top/calc(100% - 48px) 1px no-repeat}}
@media (max-width:767px){body .footer > .mf-foot-pos{margin:16px 16px 0!important;padding:16px 0 0!important}}
body .footer a:focus-visible{outline-color:var(--on-dark)!important}

/* ---------- floating messengers (desktop / pages without the bar) ---------- */
body .float a{box-shadow:var(--shadow-pop)!important}
body .float .ph{background:var(--accent)!important}
