/* Бумажная тема: кремовый фон, чернильный текст, чёрные кнопки с белыми подписями */
html:not(.qc-dark){
  --bg:#F7F4EA; --surface:#FFFDF6; --card-bg:#FFFDF6; --card:#FFFDF6;
  --border:#D8CFBA; --text:#1B1A17; --muted:#5F5749; --dim:#6B6355;
  --red:#8A2B1F; --green:#2F6B3A; --amber:#8A6D3B; --blue:#1F4E8C;
  --purple:#5B3E8A; --cyan:#1F6B6B; --sky:#1F4E8C; --accent:#8A2B1F;
  --lime:#4B6B1F; --pink:#8A2B5F;
  color-scheme:light;
}
html:not(.qc-dark) body{background:#F7F4EA !important;color:#1B1A17 !important}
html:not(.qc-dark) header,html:not(.qc-dark) .site-header{background:rgba(247,244,234,.96) !important;border-bottom:1px solid #D8CFBA !important}
html:not(.qc-dark) .site-footer,html:not(.qc-dark) footer{background:#F1ECDE !important;border-top:1px solid #D8CFBA !important}
html:not(.qc-dark) .card,html:not(.qc-dark) .review-card,html:not(.qc-dark) .product-card,
html:not(.qc-dark) .guide-card,html:not(.qc-dark) .agent-card,html:not(.qc-dark) .qc-start-card,
html:not(.qc-dark) .partner-banner,html:not(.qc-dark) .promo-card,
html:not(.qc-dark) .qc-quick-answer,html:not(.qc-dark) .install-header{
  background:#FFFDF6 !important;background-image:none !important;border-color:#D8CFBA !important;box-shadow:none !important
}
html:not(.qc-dark) .card *,html:not(.qc-dark) .qc-start-card *{color:inherit}
html:not(.qc-dark) .card-title,html:not(.qc-dark) .card-tagline,
html:not(.qc-dark) .qc-start-t,html:not(.qc-dark) .qc-start-d{color:#1B1A17 !important;-webkit-text-fill-color:#1B1A17 !important}
html:not(.qc-dark) table{background:#FFFDF6}
html:not(.qc-dark) th{background:#F1ECDE !important;color:#1B1A17 !important}
html:not(.qc-dark) td{color:#28261F;border-color:#E4DCC8 !important}
html:not(.qc-dark) tr{background:transparent !important}
html:not(.qc-dark) input,html:not(.qc-dark) textarea,html:not(.qc-dark) select{background:#FFFDF6 !important;color:#1B1A17 !important;border:1px solid #D8CFBA !important}
html:not(.qc-dark) .hero,html:not(.qc-dark) .hero-grid,html:not(.qc-dark) [class*="hero"]{
  background:#F1ECDE !important;background-image:none !important;border-color:#D8CFBA !important;color:#1B1A17 !important
}
html:not(.qc-dark) [class*="hero"] *{color:#1B1A17 !important}
html:not(.qc-dark) .hero *{background-image:none !important}

/* ВСЕ цветные кнопки — чёрные с белым текстом */
html:not(.qc-dark) .btn,html:not(.qc-dark) .button,html:not(.qc-dark) .cta,
html:not(.qc-dark) .cta-primary,html:not(.qc-dark) .cta-secondary,
html:not(.qc-dark) .nav-builder,html:not(.qc-dark) .pb-cta,
html:not(.qc-dark) .pc-cta,html:not(.qc-dark) .qc-start-go,
html:not(.qc-dark) a[class*="btn"],html:not(.qc-dark) a[class*="cta"],
html:not(.qc-dark) button[class*="btn"],html:not(.qc-dark) [class*="cta--"]{
  background:#EDE6D5 !important;background-image:none !important;color:#111111 !important;
  border:1px solid #CFC5AE !important;box-shadow:0 2px 6px rgba(27,26,23,.14),0 1px 0 rgba(27,26,23,.08) !important
}
html:not(.qc-dark) .btn *,html:not(.qc-dark) .cta *,html:not(.qc-dark) .cta-primary *,
html:not(.qc-dark) .cta-secondary *,html:not(.qc-dark) .nav-builder *,html:not(.qc-dark) .pb-cta *,
html:not(.qc-dark) .pc-cta *,html:not(.qc-dark) a[class*="cta"] *{
  color:#111111 !important;-webkit-text-fill-color:#111111 !important
}
html:not(.qc-dark) .btn:hover,html:not(.qc-dark) .cta:hover,html:not(.qc-dark) .cta-primary:hover,
html:not(.qc-dark) .pc-cta:hover,html:not(.qc-dark) a[class*="cta"]:hover{background:#E4DCC8 !important;border-color:#1B1A17 !important;box-shadow:0 3px 8px rgba(27,26,23,.18) !important}

#qc-theme-toggle{position:fixed;right:16px;bottom:16px;z-index:9999;display:flex;align-items:center;gap:8px;
  background:#FFFDF6;color:#1B1A17;border:1px solid #D8CFBA;border-radius:999px;padding:8px 14px;
  font:700 13px/1 Manrope,system-ui,sans-serif;cursor:pointer;box-shadow:0 6px 18px rgba(27,26,23,.12)}
html.qc-dark #qc-theme-toggle{background:#111827;color:#E8EEF7;border-color:rgba(148,163,184,.3)}

html:not(.qc-dark) header a.active,html:not(.qc-dark) header .active,
html:not(.qc-dark) nav a.active,html:not(.qc-dark) .nav-featured{
  background:#EDE6D5 !important;color:#111111 !important;border:1px solid #CFC5AE !important;
  box-shadow:0 2px 6px rgba(27,26,23,.14) !important
}
html:not(.qc-dark) .nav-featured *{color:#111111 !important;-webkit-text-fill-color:#111111 !important}

html:not(.qc-dark) .btn,html:not(.qc-dark) .cta,html:not(.qc-dark) .cta-primary,html:not(.qc-dark) .cta-secondary,html:not(.qc-dark) .pc-cta,html:not(.qc-dark) .pb-cta,html:not(.qc-dark) .nav-builder,html:not(.qc-dark) a[class*="cta"],html:not(.qc-dark) button{color:#111111 !important}
html:not(.qc-dark) .btn *,html:not(.qc-dark) .cta *,html:not(.qc-dark) .cta-primary *,html:not(.qc-dark) .cta-secondary *,html:not(.qc-dark) .pc-cta *,html:not(.qc-dark) .nav-builder *{color:#111111 !important;-webkit-text-fill-color:#111111 !important}

@media(min-width:1100px){.review-grid,.grid,.cards{grid-template-columns:repeat(6,minmax(0,1fr)) !important}}
.review-card,.card{background:#FFFDF6 !important;border:1px solid #D8CFBA !important;box-shadow:0 2px 6px rgba(27,26,23,.10) !important}

@media(min-width:1100px){.rating-grid,.rating-cards,[class*="rating"] .grid,[class*="rating"] .cards,#rating .grid{grid-template-columns:repeat(6,minmax(0,1fr)) !important}}
[class*="rating"] .card,[class*="rating"] .rating-card,.rating-card{background:#FFFDF6 !important;border:1px solid #D8CFBA !important;box-shadow:0 2px 6px rgba(27,26,23,.10) !important}

@media(min-width:1100px){html.qc-home .cmc-section .cmc-grid,.cmc-section [class*="grid"],.cmc-grid{grid-template-columns:repeat(6,minmax(0,1fr)) !important}}
html.qc-home .cmc-section .card,html.qc-home .cmc-item,html.qc-home .cmc-card{background:#FFFDF6 !important;border:1px solid #D8CFBA !important;box-shadow:0 2px 6px rgba(27,26,23,.10) !important}

@media(min-width:1100px){html.qc-home .cmc-cards{grid-template-columns:repeat(6,minmax(0,1fr)) !important}}

html.qc-home .cmc-cards{padding-left:40px !important;padding-right:40px !important;max-width:1560px !important;gap:12px !important}

@media(min-width:1100px){html:not(.qc-home) .review-grid,html:not(.qc-home) .grid,html:not(.qc-home) .cards{grid-template-columns:repeat(4,minmax(0,1fr)) !important}}

html.qc-home .btn,html.qc-home .cta,html.qc-home .cta-secondary,html.qc-home .cta-primary,html.qc-home a[class*="cta"]{background:#E4DCC8 !important;background-image:none !important;border:1px solid #C6BBA2 !important;box-shadow:0 3px 8px rgba(27,26,23,.18) !important;color:#111 !important}

/* Кнопки внутри тёмного 3D-демо не переводим на бумагу: на бежевом фоне белый текст нечитаем */
html:not(.qc-dark) .qc-demo-frame a.qc-demo-cta{background:linear-gradient(135deg,#8B5CF6 0%,#A855F7 35%,#D946EF 70%,#F472B6 100%) !important;background-image:linear-gradient(135deg,#8B5CF6 0%,#A855F7 35%,#D946EF 70%,#F472B6 100%) !important;border:0 !important;color:#fff !important;-webkit-text-fill-color:#fff !important;box-shadow:0 16px 38px rgba(217,70,239,.45) !important}
html:not(.qc-dark) a.qc-demo-cta-m{background:linear-gradient(135deg,#8B5CF6 0%,#A855F7 35%,#D946EF 70%,#F472B6 100%) !important;background-image:linear-gradient(135deg,#8B5CF6 0%,#A855F7 35%,#D946EF 70%,#F472B6 100%) !important;border:0 !important;color:#fff !important;-webkit-text-fill-color:#fff !important}



.tabs a,.tabs button,.tab,.tab-btn,[class*="tabs"] a,[class*="tabs"] button{box-shadow:0 5px 14px rgba(27,26,23,.22),0 1px 0 rgba(27,26,23,.08) !important}

.tabs a,.tabs button,.tab,.tab-btn,[class*="tabs"] a,[class*="tabs"] button{background:#FFFFFF !important;background-image:none !important;color:#111111 !important;border:1px solid #D8CFBA !important}
.tabs a *,.tabs button *,.tab *,.tab-btn *{color:#111111 !important;-webkit-text-fill-color:#111111 !important}

.qc-feed > *,.qc-feed .item,.qc-feed li{background:#FFFDF6 !important;border:1px solid #D8CFBA !important;box-shadow:0 5px 14px rgba(27,26,23,.12) !important;color:#111 !important;border-radius:10px}
.qc-feed > * *{color:#111 !important;-webkit-text-fill-color:#111 !important}
.qc-live{background:transparent !important;border:0 !important;box-shadow:none !important}

.featured-row > a{background:#FFFDF6 !important;border:1px solid #D8CFBA !important;box-shadow:0 5px 14px rgba(27,26,23,.12) !important;color:#111 !important;border-radius:10px}
.featured-row > a *{color:#111 !important;-webkit-text-fill-color:#111 !important}

/* ── страховка: блоки гайдов/обзоров, которые остаются тёмными литералами ── */
html:not(.qc-dark) .qx-code,html:not(.qc-dark) .qx-toc,html:not(.qc-dark) .qx-stat,
html:not(.qc-dark) .qx-table-wrap,html:not(.qc-dark) .qx-fig,html:not(.qc-dark) .qx-faq-i,
html:not(.qc-dark) .qx-rel-card,html:not(.qc-dark) pre,html:not(.qc-dark) .code-block,
html:not(.qc-dark) .mc-block,html:not(.qc-dark) blockquote{
  background:#FFFDF6 !important;background-image:none !important;
  border-color:#D8CFBA !important;color:#1B1A17 !important}
html:not(.qc-dark) .qx-code-hd{background:#F1ECDE !important;color:#4A4335 !important;border-bottom-color:#E0D6C0 !important}
html:not(.qc-dark) .qx-code pre,html:not(.qc-dark) .qx-code code,html:not(.qc-dark) pre code,
html:not(.qc-dark) .code-block code,html:not(.qc-dark) .qx-fig figcaption,html:not(.qc-dark) .qx-faq-i *,
html:not(.qc-dark) .qx-stat *,html:not(.qc-dark) .qx-rel-card *,html:not(.qc-dark) .qx-toc *,
html:not(.qc-dark) .qx-table-wrap *{color:#1B1A17 !important;-webkit-text-fill-color:#1B1A17 !important}
html:not(.qc-dark) .qx-code-hd *{color:#4A4335 !important;-webkit-text-fill-color:#4A4335 !important}
html:not(.qc-dark) .qx-stat,html:not(.qc-dark) .qx-rel-card{box-shadow:0 2px 6px rgba(27,26,23,.10) !important}

/* ── видео-вставки на страницах: на десктопе вертикальный ролик не должен занимать весь экран */
.qc-video-embed{max-width:760px;margin-left:auto;margin-right:auto}
.qc-video-embed>div:first-child{aspect-ratio:9/16;padding-top:0!important}
@media(min-width:900px){
  .qc-video-embed>div:first-child{max-width:340px;margin:0 auto}
}

.qc-video-embed.wide>div:first-child{max-width:100%;aspect-ratio:1280/738}
