/* 16.10 тумблер «светлая / тёмная» на всех страницах сайта (слово АВБ 16.10, записка Мака 17.10).
   Тёмная — как раньше. Светлая — инверсия тёмной палитры: фоны светлеют, золото темнеет (контраст сохраняется зеркально),
   фото, видео и карты возвращаются в свои цвета. Выбор помнится (localStorage bd_theme), без выбора — по настройке системы. */
html[data-theme="light"]{color-scheme:light;background:#fff;filter:invert(1) hue-rotate(180deg) sepia(.08)}
html[data-theme="light"] img,html[data-theme="light"] video,html[data-theme="light"] canvas,
html[data-theme="light"] iframe,html[data-theme="light"] [style*="url("],html[data-theme="light"] .bd-keep{filter:invert(1) hue-rotate(180deg)}
html[data-theme="light"] img img,html[data-theme="light"] [style*="url("] img,html[data-theme="light"] .bd-keep img{filter:none}
.bd-theme{position:fixed;right:8px;bottom:calc(76px + env(safe-area-inset-bottom,0px));z-index:790;width:40px;height:40px;opacity:.88;border-radius:50%;border:1px solid rgba(201,163,102,.55);background:#131110;color:#e5c894;font:600 18px/1 system-ui,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(0,0,0,.35);padding:0}
.bd-theme:focus-visible{outline:2px solid #e5c894;outline-offset:2px}
html[data-theme="light"] .bd-theme{filter:invert(1) hue-rotate(180deg) sepia(.08)}
@media(min-width:821px){.bd-theme{right:16px;bottom:24px;width:44px;height:44px;opacity:1}}
@media(min-width:821px){body:has(#bdmsg) .bd-theme{right:179px;bottom:22px}}
body:has(#cookieBar.show) .bd-theme,body:has(.bd-cookie.show) .bd-theme{display:none}
/* контраст светлой темы: серые подписи и подписи на схемах — не ниже 4,5:1 (#9b9186 → 5,4; #8a8078 на схемах → 6,6) */
html[data-theme="light"]{--muted:#a79d90}
html[data-theme="light"] svg text[fill="#8a8078"]{fill:#b4aa9d}
@media print{.bd-theme{display:none}}
/* 20.10 телефон (разбор «тайного покупателя»): только вид, логика страниц и согласия не менялась.
   1) шапка и нижние панели непрозрачные — текст под ними не просвечивает; якоря не уезжают под шапку */
header:not(#header),.hdr{background:#050505!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
#header.scrolled{background:#050505!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.mcta{background:#050505!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
[id]{scroll-margin-top:72px}
@media(max-width:640px){
  /* 2) шапка посадочных: строка «логотип + телефон-кнопка» (до 56 px); кнопка «Пришлите план» — под шапкой только в первом экране */
  header:not(#header):has(.hdr-chk){padding:8px 0!important}
  header:not(#header):has(.hdr-chk) .nav{flex-wrap:nowrap!important;gap:10px!important}
  header:not(#header):has(.hdr-chk) .logo{white-space:nowrap}
  header:not(#header):has(.hdr-chk) .nav .tel{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:0 12px;border:1px solid rgba(201,163,102,.6);border-radius:100px;font-size:14px;line-height:1;white-space:nowrap;color:var(--text,#ece7df)}
  header:not(#header):has(.hdr-chk) .nav .tel::before{content:"";flex:none;width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center/contain no-repeat}
  header:not(#header) .hdr-chk{position:absolute;left:4%;right:4%;top:calc(100% + 8px);width:auto!important;transition:opacity .2s,visibility .2s}
  header:not(#header) .hdr-chk .hdr-note{display:none!important}
  header:not(#header) .hdr-chk .btn{display:flex!important;width:100%;justify-content:center;min-height:42px;padding:8px 14px!important;font-size:14px!important;white-space:normal!important;text-align:center}
  header:not(#header):has(.hdr-chk)+*{margin-top:58px!important}
  html.bd-sc header:not(#header) .hdr-chk{opacity:0;visibility:hidden;pointer-events:none}
  /* главная: при прокрутке шапка — одна строка */
  #header.scrolled{padding-top:0!important;padding-bottom:0!important}#header.scrolled .nav{padding-top:5px!important;padding-bottom:5px!important;min-height:0!important}
  /* 3) нижняя панель: отступ страницы = высоте панели + вырез экрана; «Позвонить» с номером, «Написать» — куда */
  body:has(.mcta){padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))!important}
  .mcta a{flex-direction:column;line-height:1.15;text-align:center}
  .mcta a[href^="tel:"]::after{content:"+7 952 930-03-33";display:block;margin-top:3px;font-size:10.5px;font-weight:400;letter-spacing:0;opacity:.85;white-space:nowrap}
  .mcta a.mcta-msg::after{content:"WhatsApp · Telegram · MAX";display:block;margin-top:3px;font-size:9px;font-weight:400;letter-spacing:-.01em;opacity:.85;white-space:nowrap}
}
/* 4) Москва: блок доверия под заголовком московских страниц (вставка 20.10) */
.msk-trust{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:4px 0 14px}
.msk-trust>div{border:1px solid rgba(201,163,102,.3);border-radius:12px;padding:10px 12px;background:#0d0b09;font-size:13.5px;line-height:1.4;color:var(--muted,#9b9186)}
.msk-trust b{display:block;margin-bottom:3px;color:var(--gold-l,#e5c894);font-weight:500;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.msk-pk{margin:-6px 0 12px;font-size:13.5px;line-height:1.45;color:var(--muted,#9b9186)}
.msk-pk a{white-space:nowrap}
@media(max-width:640px){.msk-trust{grid-template-columns:1fr;gap:0;border:1px solid rgba(201,163,102,.3);border-radius:12px;background:#0d0b09;padding:2px 12px}.msk-trust>div{border:0;border-radius:0;background:none;padding:7px 0;font-size:13px;line-height:1.35}.msk-trust>div+div{border-top:1px solid rgba(201,163,102,.15)}.msk-trust b{display:inline;margin:0 6px 0 0;font-size:11px}.msk-pk{margin:-4px 0 12px;font-size:13px}}
/* 5) светлая тема: образцы цвета (кружки, плашки) — в своих цветах, без инверсии */
html[data-theme="light"] i[style*="background"],html[data-theme="light"] button[style*="background"],html[data-theme="light"] span.sw[style*="background"],
html[data-theme="light"] .wallstage{filter:invert(1) hue-rotate(180deg)}
html[data-theme="light"] .wallstage img{filter:none}
