:root{
  --mint:#3ECFB2;
  --mint-deep:#1FB294;
  --mint-soft:#D8F5ED;
  --mint-mist:#EBFAF5;
  --coral:#FF7A6B;
  --coral-deep:#F05C4D;
  --coral-soft:#FFE4DE;
  --sunny:#FFC857;
  --sunny-deep:#E8A82A;
  --sunny-soft:#FFF1CF;
  --ink:#0B2545;
  --ink-soft:#2C4767;
  /* Тёмные плашки (CTA, aside): не смешивать с --ink при смене контраста в a11y */
  --surface-ink:#0B2545;
  --surface-ink-deep:#194f86;
  --on-surface-ink:#FFFFFF;
  --gray:#5A6E8A;
  --gray-light:#E8EEF5;
  --cream:#FFF8EE;
  --cream-deep:#FFEFD8;
  --sky:#B8E8FF;
  --sky-deep:#7BCFEC;
  --lilac:#C9B8FF;
  --lilac-deep:#8A6FE0;
  --alarm:#E8504C;
  --alarm-deep:#C73E3A;
  --alarm-soft:#FBDFDD;
  --relief:#1FB294;
  --white:#FFFFFF;
  --on-brand:#FFFFFF;
  --header-glass-bg:rgba(255,248,238,.92);
  --header-glass-border:rgba(11,37,69,.06);
  --r-sm:14px;
  --r-md:24px;
  --r-lg:36px;
  --r-xl:48px;
  --shadow-sm:0 8px 24px rgba(11,37,69,.06);
  --shadow-md:0 20px 48px rgba(11,37,69,.10);
  --shadow-lg:0 40px 100px rgba(11,37,69,.18);
  --shadow-coral:0 18px 40px rgba(240,92,77,.28);
  --shadow-mint:0 18px 40px rgba(31,178,148,.28);
  --shadow-alarm:0 18px 40px rgba(232,80,76,.32);
  --topbar-bg:#0B2545;
  --topbar-fg:#FFFFFF;
  --header-bg:#FFF8EE;
  --header-fg:#0B2545;
  --header-muted:#5A6E8A;
  --footer-bg:#0B2545;
  --footer-fg:#FFFFFF;
  --font-head:'Unbounded', system-ui, sans-serif;
  --font-body:'Manrope', system-ui, sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
}

html[data-theme="dark"]{
  --mint:#59d9bf;
  --mint-deep:#36bea2;
  --mint-soft:#143f38;
  --mint-mist:#0f3530;
  --coral:#ff8d81;
  --coral-deep:#ff7465;
  --coral-soft:#3d2826;
  --sunny-soft:#3d3420;
  --sky-deep:#5aaee0;
  --lilac-deep:#a78feb;
  --ink:#e8f0ff;
  --ink-soft:#c8d3ea;
  --gray:#9db0d0;
  --gray-light:#2a3548;
  --cream:#0f1724;
  --cream-deep:#1a2436;
  --white:#162234;
  --header-bg:#171f2e;
  --header-fg:#e8eefc;
  --header-muted:#9db0d0;
  --footer-bg:#070b11;
  --footer-fg:#dde8fc;
  --topbar-bg:#070b11;
  --topbar-fg:#e8eefc;
  --header-glass-bg:rgba(23,31,46,.94);
  --header-glass-border:rgba(232,240,255,.08);
  --shadow-sm:0 8px 24px rgba(0,0,0,.35);
  --shadow-md:0 20px 48px rgba(0,0,0,.42);
  --shadow-lg:0 40px 100px rgba(0,0,0,.55);
  --shadow-coral:0 18px 40px rgba(255,116,101,.22);
  --shadow-mint:0 18px 40px rgba(54,190,162,.22);
}

/* Тёмная тема: промо-колонка мегаменю — не из светлых --ink/--ink-soft (иначе светлый фон + светлый текст) */
html[data-theme="dark"] .mega-aside{
  background:
    radial-gradient(ellipse at top right, rgba(62,207,178,.22) 0%, transparent 58%),
    linear-gradient(145deg, #0b1a2e 0%, #142a46 52%, #0c1522 100%);
  color:var(--on-brand);
}
html[data-theme="dark"] .mega-aside-title{
  color:var(--on-brand);
}
html[data-theme="dark"] .mega-aside-text{
  color:rgba(248,250,255,.9);
  opacity:1;
}
html[data-theme="dark"] .mega-aside-badge{
  background:rgba(62,207,178,.2);
  color:#9cf5df;
}
html[data-theme="dark"] .mega-aside-btn{
  color:#0b2545;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{margin:0;padding:0}
html{
  scroll-behavior:smooth;
  scroll-padding-top:120px;
  max-width:100%;
  /* Root canvas must match the top chrome color so no white seam appears above the site */
  background-color:var(--topbar-bg);
  /* Отрезаем любой горизонтальный overflow от position:fixed (.m-menu, .a11y-panel и т.п.).
     overflow-x:hidden — fallback; clip — современный, не создаёт scroll-context и не ломает sticky header. */
  overflow-x:hidden;
  overflow-x:clip;
}
@media(max-width:1024px){
  html{scroll-padding-top:80px}
  /* Горизонтальный клип только на html — см. комментарий к #denta-a11y-filter-root (двойной вертикальный скролл). */
  body{
    max-width:100%;
  }
}
body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
/* Обёртка контента из denta-shared.js (a11y zoom/filter).
   Не задаём overflow-x на этом блоке: иначе по CSS Overflow «visible» на Y схлопывается в auto —
   появляется второй вертикальный скролл внутри страницы. Горизонт режем на html (overflow-x: clip). */
#denta-a11y-filter-root{
  max-width:100%;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;border:none;background:none;cursor:pointer;color:inherit}

.container{max-width:1240px;margin:0 auto;padding:0 clamp(24px, 4vw, 56px)}

/* Shared underline for emphasized words inside headings (inset shadow — stable on line wrap) */
:where(h1,h2,h3) :is(.accent,.accent-sun,.accent-coral,.accent-alarm,.save,.alarm){
  position:relative;
  display:inline;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
  --hl-thickness:clamp(8px, .28em, 14px);
  --hl-shadow-y:-.48;
  padding:0 .02em;
  transition:box-shadow .35s var(--ease);
}
:where(h1,h2,h3) :is(.accent,.save){
  --hl-shadow-color:rgba(31,178,148,.30);
  --hl-shadow-color-hover:rgba(31,178,148,.44);
  color:#14af93;
  box-shadow:inset 0 calc(var(--hl-thickness) * var(--hl-shadow-y)) 0 0 var(--hl-shadow-color);
}
:where(h1,h2,h3) .accent-sun{
  --hl-shadow-color:rgba(232,168,42,.30);
  --hl-shadow-color-hover:rgba(232,168,42,.44);
  color:#e3a32b;
  box-shadow:inset 0 calc(var(--hl-thickness) * var(--hl-shadow-y)) 0 0 var(--hl-shadow-color);
}
:where(h1,h2,h3) .accent-coral{
  --hl-shadow-color:rgba(240,92,77,.30);
  --hl-shadow-color-hover:rgba(240,92,77,.44);
  color:#ea6053;
  box-shadow:inset 0 calc(var(--hl-thickness) * var(--hl-shadow-y)) 0 0 var(--hl-shadow-color);
}
:where(h1,h2,h3) :is(.accent-alarm,.alarm){
  --hl-shadow-color:rgba(232,80,76,.30);
  --hl-shadow-color-hover:rgba(232,80,76,.44);
  color:#e8504c;
  box-shadow:inset 0 calc(var(--hl-thickness) * var(--hl-shadow-y)) 0 0 var(--hl-shadow-color);
}

:where(h1,h2,h3):hover :is(.accent,.accent-sun,.accent-coral,.accent-alarm,.save,.alarm),
:where(h1,h2,h3) :is(.accent,.accent-sun,.accent-coral,.accent-alarm,.save,.alarm):hover{
  box-shadow:inset 0 calc(var(--hl-thickness) * var(--hl-shadow-y)) 0 0 var(--hl-shadow-color-hover, var(--hl-shadow-color));
}

@media(max-width:640px){
  :where(h1,h2,h3) :is(.accent,.accent-sun,.accent-coral,.accent-alarm,.save,.alarm){
    --hl-thickness:clamp(6px, .22em, 11px);
  }
}

/* Чек-листы с галочкой: flex + static ::before (иначе absolute из ul li::before наезжает на текст) */
ul.checklist{
  list-style:none;
  padding:0;
  margin:0 0 22px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
ul.checklist li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding-left:0;
  margin:0;
  position:relative;
}
ul.checklist li::before{
  content:"";
  position:static;
  left:auto;
  top:auto;
  flex:0 0 20px;
  width:20px;
  height:20px;
  margin-top:2px;
  border-radius:50%;
  background-color:var(--mint);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  background-size:11px 11px;
}

/* Списки с иконкой слева (hero, method, compare) */
:is(.hero-compare__items,.method-list,.hero-pc-list,.offer-bonus ul) li::before{
  position:static;
  left:auto;
  top:auto;
}

/* Плашки «иконка + подпись» (hero-tag, hero-badge, hero-pill): на WebKit/Android
   inline-flex + текстовый узел без обёртки даёт съезд; grid стабильнее эмулятора DevTools */
:is(.hero-tag-dot,.hero-badge-dot,.hero-badge-ico,.hero-badge-icon,.hero-pill-ico){
  flex-shrink:0;
  line-height:0;
}
:is(.hero-tag-dot,.hero-badge-dot,.hero-badge-ico,.hero-badge-icon,.hero-pill-ico) svg{
  display:block;
}
.hero-badge-text{
  min-width:0;
  line-height:1.35;
}
@media(max-width:640px){
  :is(.hero-tag,.hero-badge,.hero-pill):is(
    :has(.hero-tag-dot),
    :has(.hero-badge-dot),
    :has(.hero-badge-ico),
    :has(.hero-badge-icon),
    :has(.hero-pill-ico),
    :has(> span)
  ){
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:8px;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    flex-wrap:nowrap !important;
    border-radius:16px;
  }
  :is(.hero-tag,.hero-badge,.hero-pill) :is(.hero-badge-text, .hero-tag-text){
    line-height:1.4;
    text-wrap:pretty;
  }
}

/* Shared top menu */
.topbar{
  background:var(--topbar-bg);
  color:var(--topbar-fg);
  font-size:13px;
  padding:10px 0;
}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.topbar-left{display:flex;gap:28px;opacity:.85}
.topbar-left span{display:flex;align-items:center;gap:8px}
.topbar-right{display:flex;gap:20px;opacity:.85}

/* v2: базовая кроссбраузерная схема (без :has) */
body.denta-v2-body{
  display:flex;
  flex-direction:column;
  min-height:100svh;
  min-height:100dvh;
}
body.denta-v2-body > footer.footer,
body.denta-v2-body > footer{
  margin-top:auto;
}
.header{
  position:sticky;
  position:-webkit-sticky;
  top:0;
  z-index:100;
  background:var(--header-glass-bg);
  color:var(--header-fg);
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--header-glass-border);
}
/* Full-source routes (/kids, services, /contact) use standalone hero HTML.
   Keep their header fully opaque to avoid sticky/compositing seams above the topbar. */
body.denta-v2-body:not(.text-page) .header{
  background:var(--header-bg);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
/* Стык шапки и первого hero (/kids и посадки): субпиксельный зазор + border-bottom дают «белую полоску» */
body.denta-v2-body:has(header.header ~ section.hero) .header{
  border-bottom-color:transparent;
}
body.denta-v2-body header.header ~ section.hero{
  margin-top:-1px;
  position:relative;
  z-index:0;
}
body.has-fixed-header .header{
  position:fixed;
  top:-1px;
  left:0;
  right:0;
  width:100%;
  background:var(--header-bg);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border-top:1px solid var(--header-bg);
}
.header-fixed-spacer{
  display:none;
  height:0;
}
body.has-fixed-header .header-fixed-spacer{
  display:block;
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 0;gap:32px;
}
.logo{
  display:flex;align-items:center;gap:10px;
  font-family:var(--font-head);font-weight:800;font-size:26px;
  color:var(--header-fg);
  letter-spacing:-.02em;
}
.logo-mark{
  width:42px;height:42px;border-radius:12px;
  background:linear-gradient(135deg,var(--mint) 0%,var(--mint-deep) 100%);
  display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-mint);
  color:var(--on-brand);
  flex:0 0 42px;
  min-width:42px;
  min-height:42px;
  aspect-ratio:1;
  flex-shrink:0;
}
.logo-mark svg{width:26px;height:26px;stroke:currentColor;flex-shrink:0;aspect-ratio:1}
.logo-sub{font-family:var(--font-body);font-weight:500;font-size:12px;color:var(--header-muted);letter-spacing:.08em;text-transform:uppercase;margin-top:2px}
@media (min-width:641px){
  .logo > div:not(.logo-mark){
    display:flex;
    flex-direction:column;
    justify-content:center;
    line-height:1;
    gap:1px;
  }
  .logo-sub{
    margin-top:0;
    line-height:1.1;
    font-size:11px;
    letter-spacing:.07em;
  }
}

.nav{display:flex;gap:28px;font-weight:600;font-size:15px;align-items:center}
.nav-link{position:relative;padding:6px 0;transition:color .2s;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.nav-link:hover{color:var(--mint-deep)}
.nav-link::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--mint);transform:scaleX(0);transition:transform .3s var(--ease)}
.nav-link:hover::after{transform:scaleX(1)}
.nav-link-current{color:var(--mint-deep);cursor:default}
.nav-link-current::after{transform:scaleX(1)}
.nav-link .chev{width:10px;height:10px;transition:transform .3s var(--ease);opacity:.6}
.nav-item-services{position:static}
.nav-item-services.open .nav-link{color:var(--mint-deep)}
.nav-item-services.open .nav-link::after{transform:scaleX(1)}
.nav-item-services.open .nav-link .chev{transform:rotate(180deg)}

.mega{
  position:absolute;
  left:0;right:0;top:100%;
  background:var(--white);
  border-radius:0 0 32px 32px;
  box-shadow:0 30px 80px rgba(11,37,69,.15);
  padding:0;
  opacity:0;visibility:hidden;
  transform:translateY(-12px);
  transition:opacity .35s var(--ease),transform .35s var(--ease),visibility .35s;
  overflow:hidden;
  border-top:1px solid rgba(11,37,69,.05);
}
.nav-item-services.open .mega{opacity:1;visibility:visible;transform:translateY(0)}
.mega-inner{
  max-width:1240px;margin:0 auto;
  padding:40px 24px 36px;
  display:grid;
  grid-template-columns:260px 1fr;
  gap:40px;
  position:relative;
}
.mega-aside{
  position:relative;
  padding:26px;
  border-radius:24px;
  background:radial-gradient(ellipse at top right, rgba(62,207,178,.25) 0%, transparent 60%),linear-gradient(145deg, var(--surface-ink) 0%, var(--surface-ink-deep) 100%);
  color:var(--on-surface-ink);
  display:flex;flex-direction:column;justify-content:space-between;
  overflow:hidden;
  min-height:320px;
}
.mega-aside::before{
  content:"";position:absolute;bottom:-40px;left:-40px;
  width:160px;height:160px;border-radius:50%;
  background:radial-gradient(circle,var(--coral) 0%,transparent 70%);
  opacity:.3;
}
.mega-aside-badge{
  display:inline-flex;align-items:center;gap:6px;
  background:rgba(62,207,178,.2);color:var(--mint);
  padding:6px 12px;border-radius:999px;
  font-size:11px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;align-self:flex-start;
  position:relative;z-index:2;
}
.mega-aside-title{
  font-family:var(--font-head);font-size:22px;font-weight:700;
  line-height:1.2;margin:16px 0 10px;
  position:relative;z-index:2;
}
.mega-aside-text{
  font-size:13px;opacity:.75;line-height:1.5;
  margin-bottom:20px;
  position:relative;z-index:2;
}
.mega-aside-btn{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--mint);color:var(--ink);
  padding:12px 18px;border-radius:999px;
  font-weight:700;font-size:13px;
  align-self:flex-start;
  transition:transform .2s var(--ease);
  position:relative;z-index:2;
}
.mega-aside-btn:hover{transform:translateX(3px)}
.mega-groups{display:grid;grid-template-columns:repeat(3,1fr);gap:28px 32px}
.mega-group-title{
  font-family:var(--font-head);font-size:12px;font-weight:700;
  color:var(--mint-deep);letter-spacing:.1em;text-transform:uppercase;
  margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--gray-light);
  display:flex;align-items:center;gap:8px;
}
.mega-group-title .dot{width:8px;height:8px;border-radius:50%;background:var(--mint)}
.mega-group:nth-child(2) .mega-group-title .dot{background:var(--coral)}
.mega-group:nth-child(3) .mega-group-title .dot{background:var(--sunny)}
.mega-group:nth-child(4) .mega-group-title .dot{background:#7B5EE8}
.mega-group:nth-child(5) .mega-group-title .dot{background:#4FB3DC}
.mega-group:nth-child(6) .mega-group-title .dot{background:var(--mint-deep)}
.mega-group:nth-child(2) .mega-group-title{color:var(--coral-deep)}
.mega-group:nth-child(3) .mega-group-title{color:#D97706}
.mega-group:nth-child(4) .mega-group-title{color:#5E3DC4}
.mega-group:nth-child(5) .mega-group-title{color:#2E7FA8}
.mega-list{list-style:none;display:flex;flex-direction:column;gap:2px}
.mega-list a{
  display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:10px;
  font-size:14px;font-weight:500;color:var(--ink-soft);transition:all .2s var(--ease);
}
.mega-list a:hover{background:var(--mint-mist);color:var(--ink);transform:translateX(3px)}
.mega-list a.menu-link-current,
.mega-list a.menu-link-current:hover{
  background:linear-gradient(135deg, rgba(62,207,178,.16) 0%, rgba(43,127,255,.08) 100%);
  color:var(--ink);
  font-weight:700;
  transform:none;
  box-shadow:inset 0 0 0 1px rgba(62,207,178,.18);
}
.mega-list a.menu-link-current .arrow,
.mega-list a.menu-link-current .new{
  display:none;
}
.mega-list a .arrow{margin-left:auto;opacity:0;transform:translateX(-4px);transition:all .2s var(--ease)}
.mega-list a:hover .arrow{opacity:1;transform:translateX(0)}
.mega-list a .hot{font-size:10px;font-weight:700;padding:2px 6px;background:var(--coral);color:var(--on-brand);border-radius:4px;margin-left:auto;letter-spacing:.04em}
.mega-list a .new{font-size:10px;font-weight:700;padding:2px 6px;background:var(--mint);color:var(--ink);border-radius:4px;margin-left:auto;letter-spacing:.04em}

.mega-overlay{
  position:fixed;inset:0;top:var(--header-offset,130px);
  background:rgba(11,37,69,.3);
  backdrop-filter:blur(4px);
  opacity:0;visibility:hidden;
  transition:opacity .3s,visibility .3s;
  z-index:99;
}
.mega-overlay.active{opacity:1;visibility:visible}

.burger{
  display:none;width:44px;height:44px;border-radius:12px;background:var(--white);box-shadow:var(--shadow-sm);
  position:relative;flex-shrink:0;
  color:var(--header-fg);
}
.burger span{
  position:absolute;left:50%;width:20px;height:2px;margin-left:-10px;
  background:currentColor;border-radius:2px;
  transition:transform .3s var(--ease),opacity .2s,top .3s var(--ease);
}
.burger span:nth-child(1){top:calc(50% - 8px)}
.burger span:nth-child(2){top:calc(50% - 1px)}
.burger span:nth-child(3){top:calc(50% + 6px)}
.burger.active span:nth-child(1),
.burger.active span:nth-child(3){
  top:50%;
  margin-top:-1px;
}
.burger.active span:nth-child(1){transform:rotate(45deg)}
.burger.active span:nth-child(2){opacity:0}
.burger.active span:nth-child(3){transform:rotate(-45deg)}

.m-menu{
  position:fixed;top:var(--m-menu-top, 72px);right:0;bottom:0;width:min(380px,92vw);background:var(--cream);z-index:200;
  transform:translateX(100%);transition:transform .4s var(--ease);display:flex;flex-direction:column;box-shadow:-20px 0 60px rgba(11,37,69,.2);
}
.m-menu.open{transform:translateX(0)}
.m-menu-backdrop{
  position:fixed;left:0;right:0;bottom:0;top:var(--m-menu-top, 72px);
  background:rgba(11,37,69,.5);backdrop-filter:blur(4px);z-index:199;
  opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s;
}
.m-menu-backdrop.open{opacity:1;visibility:visible}

/* Открытое меню: шапка всегда fixed (overflow:hidden на body ломает sticky), скролл только в .m-menu-body */
html.m-menu-open,
body.m-menu-open{
  overflow:hidden;
  overscroll-behavior:none;
}
body.m-menu-open .header-fixed-spacer{
  display:none !important;
}
body.m-menu-open .header{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  z-index:210;
  background:var(--header-bg) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  border-bottom-color:var(--header-glass-border, rgba(11,37,69,.08));
}
body.m-menu-open .m-menu-backdrop{
  top:var(--m-menu-top, 56px);
}
body.m-menu-open .m-menu{
  top:var(--m-menu-top, 56px);
  bottom:0;
  height:auto;
  max-height:none;
  padding-top:0;
  overflow:hidden;
  overscroll-behavior:none;
}
.m-menu-head{padding:20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(11,37,69,.08)}
.m-menu-close{width:40px;height:40px;border-radius:12px;background:var(--white);box-shadow:var(--shadow-sm);display:flex;align-items:center;justify-content:center;color:var(--ink)}
.m-menu-body{flex:1 1 auto;min-height:0;overflow-y:auto;padding:20px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.m-menu-body > a,.m-menu-accordion-head{
  display:flex;align-items:center;justify-content:space-between;padding:16px 14px;
  font-family:var(--font-head);font-weight:600;font-size:16px;color:var(--ink);
  border-radius:14px;width:100%;text-align:left;transition:background .2s;
}
.m-menu-body > a:hover,.m-menu-accordion-head:hover{background:var(--white)}
.m-menu-accordion-head .chev{width:18px;height:18px;transition:transform .3s var(--ease)}
.m-menu-accordion.open .m-menu-accordion-head .chev{transform:rotate(180deg)}
.m-menu-accordion-body{max-height:0;overflow:hidden;transition:max-height .4s var(--ease)}
.m-menu-accordion.open .m-menu-accordion-body{max-height:2000px}
.m-menu-section{padding:8px 0 16px}
.m-menu-section-title{font-size:11px;font-weight:700;color:var(--mint-deep);letter-spacing:.1em;text-transform:uppercase;padding:10px 14px 6px}
.m-menu-section a{display:block;padding:10px 14px;font-size:14px;color:var(--ink-soft);border-radius:10px;transition:background .2s}
.m-menu-section a:hover{background:var(--white);color:var(--ink)}
.m-menu-section a.menu-link-current,
.m-menu-section a.menu-link-current:hover,
.m-menu-body > a.menu-link-current,
.m-menu-body > a.menu-link-current:hover{
  background:linear-gradient(135deg, rgba(62,207,178,.16) 0%, rgba(43,127,255,.08) 100%);
  color:var(--ink);
  font-weight:700;
  box-shadow:inset 0 0 0 1px rgba(62,207,178,.18);
}
.m-menu-foot{flex-shrink:0;padding:20px;border-top:1px solid rgba(11,37,69,.08);display:flex;flex-direction:column;gap:10px}
.m-menu-phone{font-family:var(--font-head);font-size:18px;font-weight:700;padding:14px;background:var(--white);border-radius:14px;text-align:center;box-shadow:var(--shadow-sm);color:var(--ink)}
.m-menu-cta{padding:16px;background:var(--coral);color:var(--on-brand);border-radius:14px;text-align:center;font-weight:700;box-shadow:var(--shadow-coral)}

.header-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}
.phone{font-family:var(--font-head);font-weight:600;font-size:18px;color:var(--header-fg)}
.header-cta{background:var(--coral);color:var(--on-brand);padding:12px 22px;border-radius:999px;font-weight:700;font-size:14px;box-shadow:var(--shadow-coral);transition:transform .2s var(--ease)}
.header-cta:hover{transform:translateY(-2px)}
.theme-toggle{
  width:42px;
  height:42px;
  border-radius:12px;
  background:var(--white);
  box-shadow:var(--shadow-sm);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
  font-size:18px;
  color:var(--header-fg);
}
/* Accessibility quick toggle */
.a11y-toggle{
  width:42px;height:42px;padding:0;
  border-radius:12px;background:var(--white);box-shadow:var(--shadow-sm);
  display:flex;align-items:center;justify-content:center;
  color:var(--header-fg);
  position:relative;
  overflow:hidden;
  transition:transform .22s var(--ease), box-shadow .22s var(--ease), background-color .22s var(--ease), color .22s var(--ease);
}
.a11y-toggle::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:11px;
  background:radial-gradient(circle at 30% 20%, rgba(62,207,178,.18) 0%, rgba(62,207,178,0) 62%);
  opacity:.8;
  pointer-events:none;
}
.a11y-toggle:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(31,178,148,.24);
}
.a11y-toggle:active{
  transform:translateY(0);
  box-shadow:0 6px 18px rgba(31,178,148,.2);
}
.a11y-toggle[aria-pressed="true"]{
  background:linear-gradient(145deg, var(--mint) 0%, var(--mint-deep) 100%);
  color:var(--on-brand);
  box-shadow:0 14px 32px rgba(31,178,148,.34);
}
.a11y-toggle__icon{
  width:18px;height:18px;
  position:relative;
  z-index:1;
}
.theme-toggle__sun,
.theme-toggle__moon{
  position:absolute;
  transition:transform .28s var(--ease),opacity .28s var(--ease);
}
.theme-toggle__sun{opacity:1;transform:translateY(0)}
.theme-toggle__moon{opacity:0;transform:translateY(14px)}
html[data-theme="dark"] .theme-toggle__sun{opacity:0;transform:translateY(-14px)}
html[data-theme="dark"] .theme-toggle__moon{opacity:1;transform:translateY(0)}

/* Accessibility panel — своя палитра, не зависит от high-contrast на странице */
.a11y-panel{
  --a11y-ui-bg:#ffffff;
  --a11y-ui-ink:#0b2545;
  --a11y-ui-ink-soft:#2c4767;
  --a11y-ui-muted:#5a6e8a;
  --a11y-ui-border:rgba(11,37,69,.14);
  --a11y-ui-cream:#fff8ee;
  position:fixed;top:0;right:0;bottom:0;width:min(360px,94vw);
  background:var(--a11y-ui-bg);color:var(--a11y-ui-ink);z-index:420;
  box-shadow:-20px 0 50px rgba(11,37,69,.25);
  transform:translateX(100%);transition:transform .28s var(--ease);
  display:flex;flex-direction:column;
}
.a11y-panel :is(.a11y-panel__head,.a11y-panel__toolbar,.a11y-panel__foot){
  border-color:var(--a11y-ui-border);
}
.a11y-panel__head h3{color:var(--a11y-ui-ink)}
.a11y-panel__hint{color:var(--a11y-ui-muted)}
.a11y-panel__close{background:var(--a11y-ui-cream);color:var(--a11y-ui-ink)}
.a11y-row{
  border-color:var(--a11y-ui-border);
}
.a11y-row span{color:var(--a11y-ui-ink-soft)}
.a11y-row select{
  background:var(--a11y-ui-bg);color:var(--a11y-ui-ink);border-color:var(--a11y-ui-border);
}
.a11y-stepper{border-color:var(--a11y-ui-border);background:var(--a11y-ui-bg)}
.a11y-stepper__btn{background:var(--a11y-ui-cream);color:var(--a11y-ui-ink)}
.a11y-stepper__value{color:var(--a11y-ui-ink-soft)}
.a11y-action-btn,.a11y-reset-btn{
  background:var(--a11y-ui-bg);color:var(--a11y-ui-ink);border-color:var(--a11y-ui-border);
}
.a11y-preset-btn{
  background:var(--a11y-ui-bg);
  color:var(--a11y-ui-ink-soft);
  border-color:var(--a11y-ui-border);
}
.a11y-preset-btn:hover{
  color:var(--a11y-ui-ink);
  background:var(--a11y-ui-cream);
  border-color:rgba(31,178,148,.45);
}
body.a11y-open .a11y-panel{transform:translateX(0)}
.a11y-backdrop{
  position:fixed;
  inset:0;
  z-index:410;
  background:rgba(11,37,69,.42);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  opacity:0;
  visibility:hidden;
  transition:opacity .28s var(--ease),visibility .28s var(--ease);
}
.a11y-backdrop.is-visible{
  opacity:1;
  visibility:visible;
}
html[data-theme="dark"] .a11y-backdrop{
  background:rgba(0,0,0,.58);
}
.a11y-panel__toolbar{
  padding:12px 16px;
  border-bottom:1px solid rgba(11,37,69,.1);
  flex-shrink:0;
}
.a11y-disable-btn{
  width:100%;
  padding:12px 14px;
  border-radius:12px;
  font-family:inherit;
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  border:none;
  background:linear-gradient(135deg,var(--coral) 0%,var(--coral-deep) 100%);
  color:var(--on-brand);
  box-shadow:var(--shadow-coral);
  transition:transform .2s var(--ease),box-shadow .2s var(--ease);
}
.a11y-disable-btn:hover{transform:translateY(-1px)}
.a11y-disable-btn:active{transform:translateY(0)}
.a11y-panel__hint{
  margin:0;
  font-size:13px;
  line-height:1.45;
}
.a11y-panel__foot{
  padding:14px 16px;
  border-top:1px solid rgba(11,37,69,.1);
  flex-shrink:0;
}
.a11y-panel__head{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 18px;border-bottom:1px solid rgba(11,37,69,.1);
}
.a11y-panel__head h3{margin:0;font-size:16px;font-family:var(--font-head)}
.a11y-panel__close{
  width:36px;height:36px;border-radius:10px;
  font-size:24px;line-height:1;
}
.a11y-panel__body{padding:14px 16px;display:flex;flex-direction:column;gap:10px;flex:1;min-height:0;overflow:auto}
.a11y-presets{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.a11y-preset-btn{
  padding:9px 10px;
  border-radius:10px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:background .2s var(--ease),border-color .2s var(--ease),color .2s var(--ease),box-shadow .2s var(--ease);
}
.a11y-preset-btn:focus-visible{
  outline:2px solid var(--mint-deep);
  outline-offset:2px;
}
.a11y-preset-btn[aria-pressed="true"]{
  background:linear-gradient(135deg,var(--mint) 0%,var(--mint-deep) 100%);
  border-color:var(--mint-deep);
  color:var(--on-brand);
  box-shadow:0 4px 16px rgba(31,178,148,.32);
}
.a11y-preset-btn[aria-pressed="true"]:hover{
  filter:brightness(1.03);
  color:var(--on-brand);
}
html[data-theme="dark"] .a11y-preset-btn[aria-pressed="true"]{
  box-shadow:0 4px 18px rgba(0,0,0,.35);
}
.a11y-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px 12px;border-radius:12px;border:1px solid var(--a11y-ui-border);
}
.a11y-row span{font-size:14px;font-weight:600}
.a11y-row select{
  min-width:138px;padding:7px 10px;border-radius:10px;
}
.a11y-row input[type="checkbox"]{width:18px;height:18px}
.a11y-stepper{
  display:inline-flex;align-items:center;gap:8px;
  border-radius:10px;padding:4px;
}
.a11y-stepper__btn{
  width:30px;height:30px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  font-size:18px;font-weight:800;line-height:1;
}
.a11y-stepper__btn:disabled{opacity:.4;cursor:not-allowed}
.a11y-stepper__value{
  min-width:106px;text-align:center;
  font-size:13px;font-weight:700;
}
.a11y-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.a11y-action-btn,
.a11y-reset-btn{
  min-height:38px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--a11y-ui-border);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:background .2s var(--ease),border-color .2s var(--ease),color .2s var(--ease),box-shadow .2s var(--ease);
}
.a11y-action-btn:focus-visible{
  outline:2px solid var(--mint-deep);
  outline-offset:2px;
}
.a11y-action-btn:hover:not([aria-pressed="true"]):not(.is-active){
  border-color:rgba(31,178,148,.35);
  background:var(--mint-mist);
}
.a11y-action-btn[aria-pressed="true"],
.a11y-action-btn.is-active{
  background:linear-gradient(135deg,var(--mint) 0%,var(--mint-deep) 100%);
  border-color:var(--mint-deep);
  color:var(--on-brand);
  box-shadow:0 4px 14px rgba(31,178,148,.28);
}
.a11y-action-btn[aria-pressed="true"]:hover,
.a11y-action-btn.is-active:hover{
  filter:brightness(1.03);
  color:var(--on-brand);
}
.a11y-action-btn--ghost{
  color:var(--a11y-ui-ink-soft);
}
.a11y-action-btn--ghost[aria-pressed="true"],
.a11y-action-btn--ghost.is-active{
  background:linear-gradient(135deg,var(--mint) 0%,var(--mint-deep) 100%);
  color:var(--on-brand);
}
.a11y-reset-btn{
  width:100%;
  background:linear-gradient(135deg,var(--coral) 0%,var(--coral-deep) 100%);
  color:var(--on-brand);
  border:none;
}

/* A11y mode tokens and behaviour */
html[data-a11y-enabled="1"][data-a11y-contrast="high"]{
  --cream:#0f141d;
  --white:#1a2434;
  --on-brand:#ffffff;
  /* Светлый текст на тёмной подложке страницы */
  --ink:#f2f7ff;
  --ink-soft:#d0daf0;
  --gray:#b0bed6;
  --gray-light:#3d4f6e;
  --mint:#6ff3d6;
  --mint-deep:#52dfc2;
  --coral:#ff9f92;
  --coral-deep:#ff8a7b;
  /* «Пастели» на карточках — тёмные, чтобы белый --ink читался */
  --mint-soft:#153530;
  --mint-mist:#0f2822;
  --cream-deep:#1a2a38;
  --coral-soft:#3d2520;
  --sunny-soft:#3a3020;
  --sunny:#ffd080;
  --sunny-deep:#e8a82a;
  --sky:#6aaee0;
  --sky-deep:#7bcfec;
  --lilac:#c4b8f5;
  --lilac-deep:#a78feb;
  /* Шапка остаётся светлой полосой: тёмный текст и иконки (не глобальный --ink) */
  --header-bg:#e8edf6;
  --header-fg:#050a14;
  --header-glass-bg:rgba(232,237,246,.96);
  --header-glass-border:rgba(5,10,20,.28);
  --header-muted:#2a3d5c;
  /* Тёмные блоки остаются тёмными; --ink — только цвет текста на светлых/тёмных подложках */
  --surface-ink:#0b2545;
  --surface-ink-deep:#153d73;
  --on-surface-ink:#f2f7ff;
}
/* Вшитые белые подложки → токены темы (иначе светлый --ink на #fff) */
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root :is(
  .doctor-profile__hero,
  .doctor-profile__section,
  .doctor-profile__tag,
  .doctor-profile__card,
  .doctor-profile__fact,
  .doctor-profile__btn--ghost,
  .symptoms,
  .methods,
  .method-card,
  .compare-col,
  .blog-card,
  .blog-featured,
  .prices-v2-card,
  .prices-v2-row,
  .team-card,
  .faq-v2-item,
  .calc-card,
  .card-white,
  [class*="__card"]:not([class*="cta"]):not(.doctor-profile__aside)
){
  background-color:var(--white) !important;
  background-image:none !important;
}
/* Блоки с фоном var(--ink) — отдельный токен, иначе «светлая» плашка + белый текст */
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root :is(
  .doctor-profile__aside,
  .doctor-profile__cta,
  .cta-final,
  .myths,
  .safety,
  .safety-section,
  .cta-form-wrap,
  .blog-cta,
  .blog-post-hero,
  .hero-service-cta
){
  background:linear-gradient(160deg,var(--surface-ink) 0%,var(--surface-ink-deep) 100%) !important;
  color:var(--on-surface-ink) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root :is(
  .doctor-profile__aside,
  .doctor-profile__cta,
  .cta-final,
  .myths,
  .safety
) :is(h1,h2,h3,h4,p,li,span,a,label,div){
  color:inherit;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .doctor-profile__aside-title{
  color:var(--on-surface-ink) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .doctor-profile__aside-text{
  color:rgba(242,247,255,.88) !important;
}

/* --- High contrast: тёмные полосы (фон через var(--ink), не цвет текста) --- */
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root :is(
  .sleep,
  .safety,
  .safety-section,
  .myths,
  .cta-final,
  .service.s-ink,
  .hero-fears,
  .compare-dark,
  .ind-section--dark
){
  background:linear-gradient(160deg,var(--surface-ink) 0%,var(--surface-ink-deep) 100%) !important;
  background-image:none !important;
  color:var(--on-surface-ink) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root :is(
  .sleep,
  .safety,
  .safety-section,
  .myths,
  .cta-final,
  .service.s-ink
) :is(h1,h2,h3,h4,h5,p,li,span,label,div,a,button){
  color:inherit;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .sleep :is(.section-title,.section-sub,.sleep-card-title,.sleep-card-text,.sleep-form-title,.sleep-form-sub,.sleep-form-note,.sleep-form-note span){
  color:var(--on-surface-ink) !important;
  opacity:1 !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .sleep .section-sub{
  color:rgba(242,247,255,.92) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .sleep-card{
  background:rgba(255,255,255,.1) !important;
  border-color:rgba(242,247,255,.35) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .sleep-card-icon{
  background:var(--mint) !important;
  color:#050a14 !important;
  border:1px solid rgba(242,247,255,.4) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .sleep-card-icon svg{
  stroke:currentColor !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .sleep-visual{
  background:var(--white) !important;
  border:1px solid var(--gray-light) !important;
  color:var(--ink) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .sleep-visual :is(.sleep-form-title,.sleep-form-sub,.sleep-form-note,.sleep-form-note span){
  color:var(--ink) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .sleep-form-sub{
  color:var(--ink-soft) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .sleep-form-badge{
  background:var(--coral) !important;
  color:#050a14 !important;
  border:1px solid #050a14 !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .sleep-form-btn,
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .btn-primary{
  background:var(--mint) !important;
  color:#050a14 !important;
  border:2px solid #050a14 !important;
  box-shadow:none !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .btn-primary :is(svg,path){
  stroke:currentColor !important;
}

/* --- High contrast: шаги / карточки с жёстким светлым фоном --- */
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .step{
  background-color:var(--white) !important;
  border:1px solid var(--gray-light) !important;
  color:var(--ink) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .step:nth-child(1){background-color:var(--mint-mist) !important}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .step:nth-child(2){background-color:var(--coral-soft) !important}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .step:nth-child(3){background-color:var(--cream-deep) !important}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .step:nth-child(4){
  background-color:var(--white) !important;
  background-image:none !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .step :is(.step-title,.step-text){
  color:var(--ink) !important;
  opacity:1 !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .step-text{
  color:var(--ink-soft) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .step-num{
  color:var(--white) !important;
  -webkit-text-stroke:2px var(--ink) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .step-icon{
  background:var(--cream) !important;
  color:var(--ink) !important;
  border:1px solid var(--gray-light) !important;
  box-shadow:none !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .step-icon svg{
  stroke:currentColor !important;
}

/* --- High contrast: подписи и вторичный текст на светлых блоках --- */
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root :is(
  .section-sub,
  .micro-story-before,
  .micro-story-after,
  .service-desc,
  .why-text,
  .faq-a,
  .price-note
){
  color:var(--ink-soft) !important;
  opacity:1 !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root :is(
  .section-title,
  .step-title,
  .why-title,
  .service-name,
  h1,h2,h3,h4
){
  color:var(--ink) !important;
}

/* --- High contrast: иконки в цветных плашках (не белые на пастели) --- */
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root :is(
  .why-icon,
  .method-ico,
  .hero-pill-ico,
  .pain-card-ico,
  .what-card-ico
){
  color:#050a14 !important;
  border:1px solid rgba(5,10,20,.25) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root :is(
  .why-icon,
  .method-ico,
  .hero-pill-ico
) svg{
  stroke:currentColor !important;
}

/* --- High contrast: шапка вне filter-root (переключатели темы и a11y) --- */
html[data-a11y-enabled="1"][data-a11y-contrast="high"] .theme-toggle,
html[data-a11y-enabled="1"][data-a11y-contrast="high"] .a11y-toggle:not([aria-pressed="true"]){
  background:#ffffff !important;
  color:#050a14 !important;
  border:2px solid #050a14 !important;
  box-shadow:none !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] .a11y-toggle[aria-pressed="true"]{
  background:#0b2545 !important;
  color:#ffffff !important;
  border:2px solid #ffffff !important;
  box-shadow:none !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] .theme-toggle__sun,
html[data-a11y-enabled="1"][data-a11y-contrast="high"] .theme-toggle__moon,
html[data-a11y-enabled="1"][data-a11y-contrast="high"] .a11y-toggle__icon{
  color:inherit !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] .a11y-toggle__icon{
  stroke:currentColor !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] .phone,
html[data-a11y-enabled="1"][data-a11y-contrast="high"] .header-cta{
  color:var(--header-fg) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] .header-cta{
  background:var(--coral) !important;
  color:#050a14 !important;
  border:2px solid #050a14 !important;
}

/* --- High contrast: заголовки на посадках cariesv3 (светлые инлайн-фоны + градиентный текст) --- */
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root :is(
  .faq-svc,
  .section.faq-svc,
  .section.calc,
  .section.prices-sed,
  .cariesv3-section--milk,
  .cariesv3-section--sky,
  .cariesv3-section--mint,
  .cariesv3-section--peach,
  .cariesv3-section--violet,
  .cariesv3-section--rose
){
  background:var(--cream) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .cariesv3-hero{
  background:var(--cream) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root :is(
  .cariesv3-hero .cariesv3-title,
  .cariesv3-hero .cariesv3-title :is(.accent,.accent-sun,.accent-coral),
  .cariesv3-head .cariesv3-title,
  .section-head .section-title
){
  color:var(--ink) !important;
  background:none !important;
  -webkit-background-clip:unset !important;
  background-clip:unset !important;
  -webkit-text-fill-color:unset !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .cariesv3-title .accent,
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .section-title .accent{
  color:var(--mint-deep) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .cariesv3-title .accent-sun,
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .section-title .accent-sun{
  color:var(--sunny) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .cariesv3-title .accent-coral,
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .section-title .accent-coral{
  color:var(--coral) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .cariesv3-sub{
  color:var(--ink-soft) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root :is(
  .cariesv3-head .cariesv3-title::after,
  .section-head .section-title::after
){
  display:none !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .cariesv3-compare__item--bad{
  background:var(--coral-soft) !important;
  color:var(--ink) !important;
}
html[data-a11y-enabled="1"][data-a11y-contrast="high"] #denta-a11y-filter-root .cariesv3-compare__item--good{
  background:var(--mint-mist) !important;
  color:var(--ink) !important;
}

/* Крупный текст: в лендингах много font-size в px — zoom на корне контента; хром вне #denta-a11y-filter-root (см. denta-shared.js). */
html[data-a11y-enabled="1"][data-a11y-font="lg"] #denta-a11y-filter-root{zoom:1.125}
html[data-a11y-enabled="1"][data-a11y-font="xl"] #denta-a11y-filter-root{zoom:1.25}
/* Интервал строк — текст, не заголовки и не span внутри h1–h3 */
html[data-a11y-enabled="1"][data-a11y-spacing="wide"] :is(body,p,li,button,a,textarea,label,select,blockquote,figcaption){
  line-height:1.8 !important;
}
/* Заголовки не трогаем — у каждой посадки свой line-height в CSS */
html[data-a11y-enabled="1"][data-a11y-links="underline"] a{text-decoration:underline !important;text-underline-offset:3px}
html[data-a11y-enabled="1"][data-a11y-motion="off"] *,
html[data-a11y-enabled="1"][data-a11y-motion="off"] *::before,
html[data-a11y-enabled="1"][data-a11y-motion="off"] *::after{
  animation:none !important;
  transition:none !important;
  scroll-behavior:auto !important;
}
html[data-a11y-enabled="1"][data-a11y-images="off"] img{opacity:0 !important;visibility:hidden !important}
html[data-a11y-enabled="1"]{
  --a11y-bright-amount:1;
}
html[data-a11y-enabled="1"][data-a11y-brightness="high"]{
  --a11y-bright-amount:1.2;
}
/* На тёмной HC-схеме усиление заметнее */
html[data-a11y-enabled="1"][data-a11y-contrast="high"][data-a11y-brightness="high"]{
  --a11y-bright-amount:1.28;
}
html[data-a11y-enabled="1"] #denta-a11y-filter-root{
  filter:brightness(var(--a11y-bright-amount));
}
html[data-a11y-enabled="1"][data-a11y-saturation="high"] #denta-a11y-filter-root{
  filter:saturate(1.25) brightness(var(--a11y-bright-amount));
}
html[data-a11y-enabled="1"][data-a11y-saturation="mono"] #denta-a11y-filter-root{
  filter:grayscale(1) brightness(var(--a11y-bright-amount));
}
/* Шапка вне filter-root — та же яркость, что и у контента */
html[data-a11y-enabled="1"][data-a11y-brightness="high"] body > :is(.topbar,header.header){
  filter:brightness(var(--a11y-bright-amount));
}
html[data-a11y-enabled="1"][data-a11y-invert="on"]{
  --cream:#ffffff;
  --white:#ffffff;
  --ink:#0b2545;
  --ink-soft:#2c4767;
  --gray:#435973;
  --gray-light:#d1dbe7;
}

/* Filter на #denta-a11y-filter-root: чуть ярче inset-подсветка акцентов */
html[data-a11y-enabled="1"] #denta-a11y-filter-root :where(h1,h2,h3) :is(.accent,.accent-sun,.accent-coral,.accent-alarm,.save,.alarm){
  --hl-shadow-color-hover:var(--hl-shadow-color);
}

/* Shared service breadcrumbs */
.crumbs{
  padding:18px 0 6px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  box-sizing:border-box;
}
.crumbs-inner{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:8px;
  font-size:13px;
  line-height:1.35;
  color:var(--gray);
  text-align:left;
  width:100%;
}
.crumbs-inner a{color:var(--gray);transition:color .2s}
.crumbs-inner a:hover{color:var(--mint-deep)}
.crumbs-sep{opacity:.5}
.crumbs-current{color:var(--ink);font-weight:600}

/* Shared footer */
.footer{
  background:var(--footer-bg);
  color:var(--footer-fg);
  padding:60px 0 calc(30px + env(safe-area-inset-bottom, 0px));
  position:relative;
}
/* Глобальный анти-шов: перекрываем возможный 1-2px seam на границе footer/root canvas */
.footer::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-22px;
  height:22px;
  background:var(--footer-bg);
  pointer-events:none;
}
/* /contact: выравниваем нижний край с root-canvas, чтобы исключить видимую полосу под footer */
body.page-contact .footer{
  background:var(--topbar-bg);
}
.footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:40px;
  margin-bottom:40px;
}
/* Расширенный подвал: те же группы, что в мега-меню шапки */
.footer-grid.footer-grid--extended{
  grid-template-columns:minmax(200px,1.15fr) repeat(3,minmax(0,1fr));
  grid-template-rows:auto auto;
  grid-template-areas:
    "brand therapy comfort prevent"
    "brand ortho surgery early"
    "meta meta meta meta";
  gap:36px 28px;
  align-items:start;
}
.footer-grid--extended .footer-col--brand{grid-area:brand}
.footer-grid--extended .footer-svc-therapy{grid-area:therapy}
.footer-grid--extended .footer-svc-comfort{grid-area:comfort}
.footer-grid--extended .footer-svc-prevent{grid-area:prevent}
.footer-grid--extended .footer-svc-ortho{grid-area:ortho}
.footer-grid--extended .footer-svc-surgery{grid-area:surgery}
.footer-grid--extended .footer-svc-early{grid-area:early}
.footer-meta-grid{
  grid-area:meta;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:28px 36px;
  padding-top:28px;
  border-top:1px solid rgba(255,255,255,.1);
  align-items:start;
}
.footer-meta-grid .footer-col ul{
  gap:10px;
}
@media (max-width:1100px){
  .footer-meta-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:26px 32px;
  }
}
.footer-col h4{
  font-family:var(--font-head);
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:16px;
  color:rgba(255,255,255,.85);
}
.footer-col ul{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.footer-col ul a{
  font-size:14px;
  opacity:.75;
  transition:opacity .2s var(--ease);
}
.footer-col ul a:hover{opacity:1}
.footer-col ul a.footer-sitemap-html{
  opacity:.92;
  font-weight:700;
  color:rgba(159,231,217,.95);
}
.footer-col ul a.footer-sitemap-html:hover{
  opacity:1;
  text-decoration:underline;
  text-underline-offset:2px;
}
.footer-desc{
  font-size:14px;
  opacity:.65;
  margin-top:18px;
  line-height:1.55;
  max-width:320px;
}
.price-disclaimer-note{
  margin:0 0 32px;
  padding:12px 16px;
  border-left:3px solid var(--mint, #38c1a6);
  background:rgba(56,193,166,.08);
  border-radius:0 10px 10px 0;
  font-size:13px;
  line-height:1.55;
  color:var(--muted, #5a6e8a);
}
.price-disclaimer-note a{color:inherit;font-weight:700;text-decoration:underline;text-underline-offset:2px;}
.price-disclaimer-note--auto{
  margin:28px auto 0;
  max-width:760px;
}
.presale-services-note-wrap{
  max-width:1240px;
  margin:0 auto;
  padding:0 clamp(24px, 4vw, 56px);
}
.presale-services-note-wrap .presale-services-note{
  margin:18px 0 28px;
  max-width:none;
}
.footer-disclaimer{
  margin:28px 0 0;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.1);
  font-size:12px;
  line-height:1.6;
  opacity:.5;
  max-width:960px;
}
.footer-disclaimer__official{
  color:rgba(255,255,255,.85);
  text-decoration:underline;
  text-underline-offset:2px;
}
.footer-disclaimer__official:hover{
  opacity:1;
  color:#fff;
}
.footer-disclaimer a[href^="tel:"]{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:2px;
}
.footer-demo-project{
  margin:18px 0 24px;
  font-size:12px;
  line-height:1.55;
  max-width:960px;
}
.footer-demo-project__link{
  color:rgba(255,255,255,.88);
  text-decoration:underline;
  text-underline-offset:2px;
  transition:color .2s var(--ease);
}
.footer-demo-project__link:hover{
  color:#fff;
}
.footer-bottom{
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.1);
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:18px;
  font-size:12px;
}
.footer-bottom__legal{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
  opacity:.55;
}
.footer-bottom__legal a{
  color:inherit;
  text-decoration:underline;
  text-underline-offset:2px;
  opacity:.9;
}
.footer-bottom__legal a:hover{opacity:1}
/* Планшет и мобильный: нижний юридический блок не в одну горизонтальную полосу */
@media (max-width:900px){
  .footer-bottom__legal{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:
      "copy a11y"
      "policy policy";
    gap:12px 16px;
    justify-items:center;
    text-align:center;
  }
  .footer-bottom__legal > div:nth-child(1){grid-area:copy}
  .footer-bottom__legal > div:nth-child(2){grid-area:policy}
  .footer-bottom__legal > div:nth-child(3){grid-area:a11y}
}
.footer-bottom__studio{
  margin:10px 0 0;
  padding:0;
  text-align:center;
}
.footer-bottom__studio-link{
  display:inline;
  font-size:11px;
  line-height:1.5;
  font-weight:400;
  letter-spacing:normal;
  text-transform:none;
  text-decoration:none;
  color:rgba(255,255,255,.36);
  background:none;
  border:none;
  box-shadow:none;
  padding:0;
  transition:color .2s var(--ease);
}
.footer-bottom__studio-link:hover{
  color:rgba(255,255,255,.52);
  text-decoration:underline;
  text-underline-offset:2px;
  transform:none;
  box-shadow:none;
  border-color:transparent;
}

/* Shared floating contacts + to-top */
.fab-wrap{
  position:fixed;
  left:24px;
  bottom:calc(28px + env(safe-area-inset-bottom, 0px));
  display:flex;flex-direction:column;
  gap:12px;
  z-index:98;
}
.fab{
  width:56px;height:56px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:var(--on-brand);
  position:relative;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(11,37,69,.2);
  transition:transform .25s var(--ease),box-shadow .25s var(--ease);
  opacity:0;
  transform:translateX(-30px) scale(.6);
  animation:fabIn .5s var(--ease) forwards;
  will-change:transform,opacity;
}
.fab:nth-child(1){animation-delay:.3s}
.fab:nth-child(2){animation-delay:.45s}
.fab:nth-child(3){animation-delay:.6s}
@keyframes fabIn{
  to{opacity:1;transform:translateX(0) scale(1)}
}
.fab svg{width:24px;height:24px;position:relative;z-index:2}
.fab:hover{transform:translateY(-4px) scale(1.08)}
.fab::before{
  content:"";position:absolute;inset:0;border-radius:50%;
  background:inherit;opacity:.4;
  animation:pulseRing 2.5s ease-out infinite;
  pointer-events:none;
  will-change:transform,opacity;
}
/* Desktop: пульсация по очереди сверху вниз (равномерная фаза по циклу), не синхронно */
.fab:nth-child(1)::before{animation-delay:0s}
.fab:nth-child(2)::before{animation-delay:calc(2.5s / 3)}
.fab:nth-child(3)::before{animation-delay:calc(2 * 2.5s / 3)}
@keyframes pulseRing{
  0%{transform:scale(1);opacity:.4}
  80%,100%{transform:scale(1.6);opacity:0}
}
.fab-phone{
  background:linear-gradient(135deg,#0B9FA8 0%,#077580 100%);
  box-shadow:0 10px 30px rgba(11,159,168,.4);
}
.fab-phone:hover{box-shadow:0 18px 44px rgba(11,159,168,.55)}
.fab-whatsapp{
  background:linear-gradient(135deg,#25D366 0%,#128C7E 100%);
  box-shadow:0 10px 30px rgba(37,211,102,.4);
}
.fab-whatsapp:hover{box-shadow:0 18px 44px rgba(37,211,102,.55)}
.fab-telegram{
  background:linear-gradient(135deg,#2AABEE 0%,#1781C2 100%);
  box-shadow:0 10px 30px rgba(42,171,238,.4);
}
.fab-telegram:hover{box-shadow:0 18px 44px rgba(42,171,238,.55)}
@media(max-width:640px){
  .fab-phone:hover,.fab-whatsapp:hover,.fab-telegram:hover{box-shadow:none}
}
.fab-label{
  position:absolute;left:calc(100% + 14px);top:50%;
  transform:translateY(-50%) translateX(-6px);
  background:var(--ink);color:var(--on-brand);
  padding:8px 14px;border-radius:10px;
  font-family:var(--font-head);font-weight:600;font-size:12px;
  letter-spacing:.02em;white-space:nowrap;
  opacity:0;pointer-events:none;
  transition:opacity .25s var(--ease),transform .25s var(--ease);
  box-shadow:0 8px 20px rgba(11,37,69,.25);
}
.fab-label::before{
  content:"";position:absolute;
  left:-5px;top:50%;transform:translateY(-50%);
  width:0;height:0;
  border-right:6px solid var(--ink);
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
}
.fab:hover .fab-label{
  opacity:1;transform:translateY(-50%) translateX(0);
}
html[data-theme="dark"] .fab-label{
  background:var(--white);
  color:var(--ink);
  box-shadow:var(--shadow-md);
}
html[data-theme="dark"] .fab-label::before{
  border-right-color:var(--white);
}

.to-top{
  position:fixed;
  right:28px;
  bottom:calc(28px + env(safe-area-inset-bottom, 0px));
  width:58px;height:58px;
  border-radius:50%;
  background:var(--white);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  z-index:99;
  opacity:0;pointer-events:none;
  transform:translateY(20px) scale(.8);
  transition:opacity .4s var(--ease),transform .4s var(--ease),box-shadow .3s var(--ease);
  box-shadow:0 12px 36px rgba(11,37,69,.18), 0 2px 8px rgba(11,37,69,.1);
}
.to-top.visible{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}
.to-top:hover{
  box-shadow:0 20px 50px rgba(62,207,178,.45), 0 2px 8px rgba(11,37,69,.1);
  transform:translateY(-4px) scale(1.05);
}
.to-top:active{transform:translateY(-2px) scale(1)}
.to-top-progress{
  position:absolute;inset:0;
  width:100%;height:100%;
  transform:rotate(-90deg);
  pointer-events:none;
}
.to-top-progress circle{
  fill:none;
  stroke-width:3;
  stroke-linecap:round;
}
.to-top-progress .bg{stroke:var(--gray-light)}
.to-top-progress .fg{
  stroke:var(--mint-deep);
  stroke-dasharray:169.6;
  stroke-dashoffset:169.6;
  transition:stroke-dashoffset .15s linear;
}
.to-top:hover .to-top-progress .fg{stroke:var(--coral)}
.to-top-core{
  position:relative;
  width:42px;height:42px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--mint) 0%,var(--mint-deep) 100%);
  display:flex;align-items:center;justify-content:center;
  color:var(--on-brand);
  transition:background .3s var(--ease);
}
.to-top:hover .to-top-core{
  background:linear-gradient(135deg,var(--coral) 0%,var(--coral-deep) 100%);
}
.to-top-core svg{
  width:20px;height:20px;
  transition:transform .3s var(--ease);
}
.to-top:hover .to-top-core svg{transform:translateY(-3px)}
.to-top-tooltip{
  position:absolute;right:calc(100% + 14px);top:50%;
  transform:translateY(-50%) translateX(6px);
  background:var(--ink);color:var(--on-brand);
  padding:8px 14px;border-radius:10px;
  font-family:var(--font-head);font-weight:600;font-size:12px;
  letter-spacing:.02em;white-space:nowrap;
  opacity:0;pointer-events:none;
  transition:opacity .25s var(--ease),transform .25s var(--ease);
  box-shadow:0 8px 20px rgba(11,37,69,.2);
}
.to-top-tooltip::after{
  content:"";position:absolute;
  right:-5px;top:50%;transform:translateY(-50%);
  width:0;height:0;
  border-left:6px solid var(--ink);
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
}
.to-top:hover .to-top-tooltip{
  opacity:1;
  transform:translateY(-50%) translateX(0);
}
html[data-theme="dark"] .to-top-tooltip{
  background:var(--white);
  color:var(--ink);
  box-shadow:var(--shadow-md);
}
html[data-theme="dark"] .to-top-tooltip::after{
  border-left-color:var(--white);
}

@media(max-width:1258px){
  /* Раньше margin перебивал margin:auto у .container → двойной отступ с padding (главная vs услуги расходились) */
  .header-inner{margin:0 15px}
  .header > .container.header-inner,
  .container.crumbs{
    margin-left:auto;
    margin-right:auto;
    padding-left:clamp(24px, 4vw, 56px);
    padding-right:clamp(24px, 4vw, 56px);
  }
}

@media(max-width:1024px){
  .nav,.topbar{display:none}
  .burger{display:flex}
  .phone{display:none}
  .header-cta{padding:10px 16px;font-size:13px}
  .mega,.mega-overlay{display:none}
  .header-inner{padding:16px 0;min-height:72px;align-items:center}
}
@media(max-width:640px){
  /* /contact: only reserve footer space for mobile action bar */
  body.page-contact footer.footer:last-of-type{
    padding-bottom:calc(52px + 24px + env(safe-area-inset-bottom,0));
    margin-bottom:0;
  }
  /* Только вертикаль — иначе shorthand padding обнуляет горизонталь у .container.crumbs */
  .crumbs{
    padding-top:8px;
    padding-bottom:8px;
    min-height:40px;
  }
  /* Посадки с hero-service: компактная высота строки крошек */
  .container.crumbs:has(+ section.hero-service){
    padding-top:4px;
    padding-bottom:6px;
    min-height:0;
  }
  .container.crumbs:has(+ section.hero-service) .crumbs-inner{
    min-height:0;
    font-size:11px;
    line-height:1.35;
    gap:6px;
  }
  .crumbs-inner{
    width:100%;
    min-height:24px;
    font-size:12px;
    line-height:1.4;
    color:var(--ink-soft);
  }
  .crumbs-inner a{color:var(--ink-soft)}
  .crumbs-current{color:var(--ink)}
  /* Крошки в одной сетке с шапкой и hero (inline .container на главной не сбрасывает горизонталь здесь) */
  .container.crumbs{
    padding-left:clamp(24px, 4vw, 56px);
    padding-right:clamp(24px, 4vw, 56px);
  }
  /* Единая мобильная шапка на всех страницах (перебивает denta-*-landing.css у посадок) */
  body .header > .container.header-inner{
    margin-left:auto !important;
    margin-right:auto !important;
    padding-top:0 !important;
    padding-bottom:0 !important;
    padding-left:clamp(24px, 4vw, 56px) !important;
    padding-right:clamp(24px, 4vw, 56px) !important;
    min-height:56px !important;
  }
  body .header-inner{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto;
    align-items:center;
    gap:12px !important;
    min-height:56px !important;
    margin:0 !important;
    /* Только вертикаль: shorthand padding обнуляет горизонталь у .container.header-inner */
    padding-top:8px !important;
    padding-bottom:8px !important;
  }
  body .header-inner > .logo{
    grid-column:1;
    grid-row:1;
    min-width:0;
    max-width:100%;
    overflow:hidden;
    justify-content:flex-start;
    align-items:center;
  }
  body .header-inner > .logo > div:not(.logo-mark){
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  body .header-inner > .header-actions{
    grid-column:2;
    grid-row:1;
    flex:0 0 auto;
    flex-shrink:0;
  }
  body .header .logo-sub{display:none !important}
  body .header-cta{display:none}
  body .header-actions{gap:8px;flex-wrap:nowrap}
  body .header .burger{width:38px;height:38px;border-radius:11px}
  body .header .a11y-toggle{width:38px;height:38px;border-radius:11px;flex-shrink:0}
  body .header .theme-toggle{width:38px;height:38px;border-radius:11px;flex-shrink:0}
  body .header .smart-search-launch{width:38px !important;height:38px !important;flex-shrink:0}
  body .header .logo{
    font-size:20px !important;
    gap:8px !important;
    line-height:1;
  }
  body .header .logo-mark{
    width:34px !important;
    height:34px !important;
    border-radius:10px;
    flex:0 0 34px !important;
    min-width:34px !important;
    min-height:34px !important;
    aspect-ratio:1;
    flex-shrink:0;
  }
  body .header .logo-mark svg{width:19px !important;height:19px !important;flex-shrink:0;aspect-ratio:1}
  .to-top{display:none!important}
  .fab-wrap{
    left:0;right:0;bottom:0;top:auto;
    width:100%;
    max-width:100%;
    overflow-x:hidden;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:minmax(52px,auto);
    gap:0;
    padding:0;
    background:var(--white);
    box-shadow:0 -10px 40px rgba(11,37,69,.12);
    padding-bottom:env(safe-area-inset-bottom,0);
    z-index:99;
    border-top:1px solid rgba(11,37,69,.1);
  }
  .fab{
    flex:unset;
    width:auto;
    height:100%;
    min-width:0;
    min-height:52px;
    border-radius:0;
    flex-direction:row;
    gap:8px;
    font-family:var(--font-head);font-weight:700;font-size:12px;letter-spacing:.01em;
    opacity:1;transform:none;animation:none;
    box-shadow:none;
    transition:filter .2s var(--ease),opacity .2s var(--ease);
    /* ::before pulseRing scale(1.6) — без clip даёт микроскролл у правого края экрана */
    overflow:hidden;
  }
  .fab:nth-child(1){
    grid-column:1;
    grid-row:1;
    border-right:1px solid rgba(11,37,69,.1);
  }
  .fab:nth-child(2){
    grid-column:2;
    grid-row:1;
    border-right:1px solid rgba(11,37,69,.1);
  }
  .fab:nth-child(3){
    grid-column:3;
    grid-row:1;
  }
  .fab:hover{
    transform:none !important;
    filter:brightness(1.07);
  }
  .fab:active{filter:brightness(0.94)}
  .fab::before{display:none}
  .fab svg{width:20px;height:20px}
  .fab-label{
    position:static;opacity:1;transform:none;pointer-events:auto;
    background:transparent;color:inherit;
    padding:0;border-radius:0;box-shadow:none;
    font-size:12px;font-weight:700;letter-spacing:.01em;
    display:inline-block;
    min-width:0;
    max-width:100%;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .fab-label::before{display:none}
  /* Отступ под нижнюю плашку — в футере */
  body:has(.fab-wrap){
    padding-bottom:0;
  }
  /* +24px — зазор под однострочную плашку FAB (52px) */
  body:has(.fab-wrap) footer:last-of-type{
    padding-bottom:calc(52px + 24px + env(safe-area-inset-bottom,0));
  }
  /* Fallback для браузеров без надежной поддержки :has() */
  @supports not selector(body:has(.fab-wrap)){
    footer:last-of-type{
      padding-bottom:calc(52px + 24px + env(safe-area-inset-bottom,0));
    }
  }
  .footer-grid{grid-template-columns:1fr}
  .footer-grid.footer-grid--extended{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "brand brand"
      "therapy comfort"
      "prevent ortho"
      "surgery early"
      "meta meta";
    gap:14px 10px;
    align-items:stretch;
    margin-bottom:32px;
  }
  /* Карточки групп услуг: два визуальных ряда по 3, чуть мельче типографика, заметная рамка */
  .footer-grid--extended > .footer-col[class*="footer-svc"]{
    min-width:0;
    padding:12px 8px 14px;
    border-radius:12px;
    border:1px solid rgba(159,231,217,.38);
    background:rgba(255,255,255,.05);
    box-sizing:border-box;
  }
  .footer-grid--extended > .footer-col[class*="footer-svc"] h4{
    font-size:10px;
    letter-spacing:.07em;
    margin-bottom:10px;
    line-height:1.25;
    color:rgba(255,255,255,.92);
  }
  .footer-grid--extended > .footer-col[class*="footer-svc"] ul{
    gap:6px;
  }
  .footer-grid--extended > .footer-col[class*="footer-svc"] ul a{
    font-size:12px;
    line-height:1.35;
    opacity:.82;
    overflow-wrap:break-word;
  }
  .footer-grid--extended .footer-col--brand{
    padding-bottom:4px;
  }
  .footer-meta-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:20px 18px;
    padding-top:22px;
  }
}
@media(max-width:960px){
  .footer-grid{grid-template-columns:1fr 1fr;gap:30px}
}
/* Планшет: две колонки услуг; ниже 640px — одна колонка (см. блок выше) */
@media(min-width:641px) and (max-width:960px){
  .footer-grid.footer-grid--extended{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "brand brand"
      "therapy comfort"
      "prevent ortho"
      "surgery early"
      "meta meta";
    gap:28px 24px;
  }
}
@media(max-width:380px){
  .header-cta,.phone{display:none}
  .fab{font-size:11px;gap:6px}
  .fab-label{font-size:11px}
  .fab svg{width:18px;height:18px}
  .footer-grid--extended > .footer-col[class*="footer-svc"]{
    padding:10px 6px 12px;
  }
  .footer-grid--extended > .footer-col[class*="footer-svc"] ul a{
    font-size:11px;
  }
}
