/* =========================================================
   Бизнес Оригами — тёмная тема
   Включается атрибутом data-theme="dark" на <html>
   (переключатель в шапке, выбор сохраняется в localStorage)
   ========================================================= */

html[data-theme="dark"] {
  --ff-accent: #a78bfa;
  --ff-accent-hover: #8b5cf6;
  --ff-accent-deep: #c4b5fd;
  --ff-accent-soft: rgba(139, 92, 246, 0.16);
  --ff-danger: #f87171;
  --ff-danger-soft: rgba(248, 113, 113, 0.12);
  --ff-success: #4ade80;
  --ff-hero: #7c3aed;
  --ff-black: #f2f2f6;
  --ff-ink: #ececf2;
  --ff-muted: #a2a2b0;
  --ff-soft: #9a9aab;
  --ff-line: #2a2a35;
  --ff-line-2: #232330;
  --ff-bg: #101017;
  --ff-bg-2: #191922;
  --ff-bg-3: #14141c;
  --ff-shadow-card: 0 16px 40px rgba(0, 0, 0, 0.5);
  --ff-shadow-float: 0 24px 56px -20px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .bo-site {
  background: var(--ff-bg);
  color: var(--ff-ink);
}

/* --- шапка, меню, ящик --- */
html[data-theme="dark"] .bo-top { background: #14141d; border-bottom: 1px solid var(--ff-line); }
html[data-theme="dark"] .bo-top__logo { color: var(--ff-black); }
html[data-theme="dark"] .bo-top__logo span { color: #f2f2f6; }
html[data-theme="dark"] .bo-top__link { color: #d0d0dc; }
html[data-theme="dark"] .bo-top__phone { color: #f2f2f6; }
html[data-theme="dark"] .bo-top__hours { color: #8d8d9c; }
html[data-theme="dark"] .bo-mega { background: #14141d; border-bottom-color: var(--ff-line); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55); }
html[data-theme="dark"] .bo-mega__item { color: #d0d0dc; }
html[data-theme="dark"] .bo-mega__item strong { color: #f2f2f6; }
html[data-theme="dark"] .bo-mega__item:hover { background: #1d1d28; }
html[data-theme="dark"] .bo-drawer { background: #14141d; border-top-color: var(--ff-line); }
html[data-theme="dark"] .bo-drawer a,
html[data-theme="dark"] .bo-drawer button.bo-drawer__link { color: #ececf2; }
html[data-theme="dark"] .bo-drawer__sub { background: #191922; }

/* --- кнопки --- */
html[data-theme="dark"] .bo-btn--black { background: #f2f2f6; color: #101017; border-color: #f2f2f6; }
html[data-theme="dark"] .bo-btn--black:hover { background: #d8d8e2; border-color: #d8d8e2; }
html[data-theme="dark"] .bo-btn--outline { color: #ececf2; border-color: rgba(255, 255, 255, 0.28); }
html[data-theme="dark"] .bo-btn--outline:hover { background: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .bo-btn--light { background: #1d1d28; color: #f2f2f6; }
html[data-theme="dark"] .bo-btn--ghost { color: #ececf2; }

/* --- белые поверхности --- */
html[data-theme="dark"] .bo-logos { background: #14141c; border-bottom-color: var(--ff-line); }
html[data-theme="dark"] .bo-logos__track span { color: #77778a; }
html[data-theme="dark"] .bo-logos__track span:hover { color: var(--ff-accent-deep); }
html[data-theme="dark"] .bo-section--soft { background: #14141c; }
html[data-theme="dark"] .bo-page-hero { background: #14141c; border-bottom-color: var(--ff-line); }
html[data-theme="dark"] .bo-step,
html[data-theme="dark"] .bo-review,
html[data-theme="dark"] .bo-card,
html[data-theme="dark"] .bo-faq,
html[data-theme="dark"] .bo-why__card,
html[data-theme="dark"] .bo-svc-card { background: #17171f; border-color: var(--ff-line); }
html[data-theme="dark"] .bo-card__title { color: #f2f2f6; }
html[data-theme="dark"] .bo-review p { color: #d3d3dd; }
html[data-theme="dark"] .bo-faq details { border-top-color: var(--ff-line); }
html[data-theme="dark"] .bo-step--c2 .bo-step__badge,
html[data-theme="dark"] .bo-step--c3 .bo-step__badge,
html[data-theme="dark"] .bo-step--c4 .bo-step__badge { background: rgba(139, 92, 246, 0.16); }
html[data-theme="dark"] .bo-folio-card__media { background: linear-gradient(145deg, #1d1a2b, #221f33); }
html[data-theme="dark"] .bo-cat__links a { color: #a2a2b0; border-bottom-color: var(--ff-line); }
html[data-theme="dark"] .bo-tag,
html[data-theme="dark"] .bo-chip { background: #22222e; color: #b9b9c8; }
html[data-theme="dark"] .bo-svc-card__cat { color: #c4b5fd; }
html[data-theme="dark"] .bo-crumbs { color: #8d8d9c; }
html[data-theme="dark"] .bo-crumbs a { color: #a7a7b8; }

/* --- формы --- */
html[data-theme="dark"] .bo-form { background: #17171f; color: #ececf2; box-shadow: 0 24px 64px -20px rgba(0, 0, 0, 0.75); }
html[data-theme="dark"] .bo-form input,
html[data-theme="dark"] .bo-form textarea { background: #101017; border-color: #2e2e3b; color: #ececf2; }
html[data-theme="dark"] .bo-form input:focus,
html[data-theme="dark"] .bo-form textarea:focus { border-color: var(--ff-accent); background: #12121a; }
html[data-theme="dark"] .bo-form input::placeholder,
html[data-theme="dark"] .bo-form textarea::placeholder { color: #6f6f80; }
html[data-theme="dark"] .bo-form__agree { color: #9a9aab; }

/* --- тёмные секции: чуть мягче, чтобы отличались от фона --- */
html[data-theme="dark"] .bo-section--black { background: #0a0a0e; }
html[data-theme="dark"] .bo-band { background: #0a0a0e; }
html[data-theme="dark"] .bo-foot { background: #0a0a0e; }
html[data-theme="dark"] .bo-stat { border-color: rgba(255, 255, 255, 0.09); }

/* --- KPI-карточки в герое: в тёмной теме они были белыми плитами --- */
html[data-theme="dark"] .bo-award {
  background: var(--ff-bg-2);
  color: var(--ff-ink);
  box-shadow: var(--ff-shadow-card);
}
html[data-theme="dark"] .bo-award strong { color: var(--ff-black); }
html[data-theme="dark"] .bo-award p { color: var(--ff-muted); }
html[data-theme="dark"] .bo-award span { color: var(--ff-soft); }

/* --- плагины Yoast/комментарии и прочее --- */
html[data-theme="dark"] .bo-faq__ico { background: #22222e; }

/* --- таймлайн «Этапы» --- */
html[data-theme="dark"] .bo-timeline__body { background: #17171f; border-color: var(--ff-line); }
html[data-theme="dark"] .bo-timeline__item:hover .bo-timeline__body { border-color: rgba(167, 139, 250, 0.5); }
html[data-theme="dark"] .bo-timeline__item::before { background: linear-gradient(180deg, rgba(167, 139, 250, 0.4), rgba(167, 139, 250, 0.06)); }
html[data-theme="dark"] .bo-timeline__num { box-shadow: 0 10px 24px -10px rgba(124, 58, 237, 0.7); }
/* --- форма заявки v2: тёмная тема --- */
html[data-theme="dark"] .bo-form__legend,
html[data-theme="dark"] .bo-form__hint,
html[data-theme="dark"] .bo-form__note {
  color: #a9a9bd;
}

html[data-theme="dark"] .bo-field input,
html[data-theme="dark"] .bo-field textarea {
  background: #101017;
  border-color: #2e2e3b;
  color: #ececf2;
}

html[data-theme="dark"] .bo-field input:focus,
html[data-theme="dark"] .bo-field textarea:focus {
  border-color: var(--ff-accent);
  background: #12121a;
}

html[data-theme="dark"] .bo-field label {
  color: #9a9aab;
}

html[data-theme="dark"] .bo-field input:focus + label,
html[data-theme="dark"] .bo-field textarea:focus + label {
  color: #a78bfa;
}

html[data-theme="dark"] .bo-field.is-invalid input,
html[data-theme="dark"] .bo-field.is-invalid textarea {
  border-color: #f87171;
  background: #1b1113;
}

html[data-theme="dark"] .bo-chip {
  background: #17171f;
  border-color: #2e2e3b;
  color: #ececf2;
}

html[data-theme="dark"] .bo-chip[aria-pressed="true"] {
  background: rgba(124, 58, 237, 0.22);
  border-color: #a78bfa;
  color: #ddd6fe;
}

html[data-theme="dark"] .bo-form__done-ico {
  background: rgba(124, 58, 237, 0.2);
  color: #c4b5fd;
}

html[data-theme="dark"] .bo-form__status.is-ok {
  color: #4ade80;
}

html[data-theme="dark"] .bo-form__status.is-err {
  color: #f87171;
}
/* --- модальные окна: тёмная тема --- */
html[data-theme="dark"] .bo-modal__panel {
  background: #17171f;
  color: #ececf2;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
}

html[data-theme="dark"] .bo-modal__title {
  color: #f4f4f8;
}

html[data-theme="dark"] .bo-modal__eyebrow {
  color: #c4b5fd;
}

html[data-theme="dark"] .bo-modal-person__role {
  color: #c4b5fd;
}

html[data-theme="dark"] .bo-modal-person__bio,
html[data-theme="dark"] .bo-modal-review__text {
  color: #b9b9c9;
}

html[data-theme="dark"] .bo-modal-review__company,
html[data-theme="dark"] .bo-modal__counter {
  color: #8f8fa3;
}

html[data-theme="dark"] .bo-modal-person__skills li {
  background: rgba(124, 58, 237, 0.22);
  color: #ddd6fe;
}

html[data-theme="dark"] .bo-modal__close,
html[data-theme="dark"] .bo-modal__navbtn {
  background: #1d1d28;
  border-color: #2e2e3b;
  color: #ececf2;
}

html[data-theme="dark"] .bo-modal__close:hover,
html[data-theme="dark"] .bo-modal__navbtn:hover {
  border-color: #a78bfa;
}

html[data-theme="dark"] .bo-modal__nav {
  border-top-color: #2a2a37;
}

html[data-theme="dark"] .bo-review.bo-review {
  background: #17171f;
  border-color: var(--ff-line);
}

html[data-theme="dark"] .bo-review .bo-review__text {
  color: #d3d3dd;
}

html[data-theme="dark"] .bo-team .bo-team__more,
html[data-theme="dark"] .bo-review .bo-review__more {
  color: #c4b5fd;
}

html[data-theme="dark"] button.bo-link-more {
  color: #f2f2f6;
  border-bottom-color: #f2f2f6;
}
/* --- тёмная тема: основные кнопки. Белый текст на светлом #a78bfa не проходил AA (2.7), вернули плотный фиолетовый --- */
html[data-theme="dark"] .bo-btn--primary,
html[data-theme="dark"] .bo-btn--accent,
html[data-theme="dark"] .bo-btn--yellow {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

html[data-theme="dark"] .bo-btn--primary:hover,
html[data-theme="dark"] .bo-btn--accent:hover,
html[data-theme="dark"] .bo-btn--yellow:hover {
  background: #6d28d9;
  border-color: #6d28d9;
}
/* --- отзывы v5: тёмная тема --- */
html[data-theme="dark"] .bo-reviews__score {
  color: #f4f4f8;
}

html[data-theme="dark"] .bo-reviews__count {
  color: #8f8fa3;
}

html[data-theme="dark"] .bo-review .bo-review__text {
  border-left-color: color-mix(in srgb, var(--bo-accent, #6d28d9) 55%, #ffffff);
  color: #b9b9c9;
}

html[data-theme="dark"] .bo-review .bo-review__text strong {
  color: #f4f4f8;
}

html[data-theme="dark"] .bo-review .bo-review__badge {
  background: rgba(124, 58, 237, 0.22);
  color: #ddd6fe;
}

html[data-theme="dark"] .bo-review .bo-review__stats {
  border-top-color: #2a2a37;
}

/* акценты клиентов на тёмном фоне светлее — иначе не проходят по контрасту */
html[data-theme="dark"] .bo-review .bo-rstat__value,
html[data-theme="dark"] .bo-modal-stats .bo-rstat__value {
  color: color-mix(in srgb, var(--bo-accent, #6d28d9) 42%, #ffffff);
}

html[data-theme="dark"] .bo-review .bo-rstat__label .bo-ico,
html[data-theme="dark"] .bo-modal-stats .bo-rstat__label .bo-ico,
html[data-theme="dark"] .bo-review .bo-rstat--text .bo-ico,
html[data-theme="dark"] .bo-modal-stats .bo-rstat--text .bo-ico,
html[data-theme="dark"] .bo-review .bo-review__author .bo-ico,
html[data-theme="dark"] .bo-modal-review__meta .bo-ico {
  color: color-mix(in srgb, var(--bo-accent, #6d28d9) 42%, #ffffff);
}

html[data-theme="dark"] .bo-review .bo-rstat__label,
html[data-theme="dark"] .bo-modal-stats .bo-rstat__label {
  color: #9a9aab;
}

html[data-theme="dark"] .bo-review .bo-rstat--text,
html[data-theme="dark"] .bo-modal-stats .bo-rstat--text {
  color: #e4e4ec;
}

html[data-theme="dark"] .bo-modal-stats .bo-rstat--big .bo-rstat__label {
  color: #cdcddb;
}

html[data-theme="dark"] .bo-review .bo-review__author strong,
html[data-theme="dark"] .bo-modal-review__id .bo-modal__title {
  color: #f4f4f8;
}

html[data-theme="dark"] .bo-review .bo-review__author > span {
  color: #9a9aab;
}

html[data-theme="dark"] .bo-review__who {
  border-top-color: #2a2a37;
}

html[data-theme="dark"] .bo-review__ava,
html[data-theme="dark"] .bo-modal-review__ava {
  box-shadow: 0 14px 28px -16px rgba(0, 0, 0, 0.9);
}

html[data-theme="dark"] .bo-review.bo-review:hover {
  border-color: color-mix(in srgb, var(--bo-accent, #6d28d9) 55%, #ffffff);
}

html[data-theme="dark"] .bo-modal-review__results {
  border-top-color: #2a2a37;
}

html[data-theme="dark"] .bo-modal-project {
  background: #1b1b24;
  border-color: #2e2e3b;
}

html[data-theme="dark"] .bo-modal-project__body strong {
  color: #f4f4f8;
}

html[data-theme="dark"] .bo-modal-review__cta {
  border-top-color: #2a2a37;
}

html[data-theme="dark"] .bo-modal__dot::before {
  background: #3a3a4a;
}

html[data-theme="dark"] .bo-modal__dot.is-active::before {
  background: #a78bfa;
}

html[data-theme="dark"] .bo-modal__hint {
  color: #8f8fa3;
}

html[data-theme="dark"] .bo-star--off {
  fill: #34343f;
}

html[data-theme="dark"] .bo-review .bo-rstat__ico,
html[data-theme="dark"] .bo-modal-stats .bo-rstat__ico,
html[data-theme="dark"] .bo-review .bo-review__industry,
html[data-theme="dark"] .bo-modal-review__industry {
  background: rgba(255, 255, 255, 0.07);
  background: color-mix(in srgb, var(--bo-accent, #6d28d9) 26%, transparent);
  color: color-mix(in srgb, var(--bo-accent, #6d28d9) 42%, #ffffff);
}

html[data-theme="dark"] .bo-review .bo-review__badge-ico {
  background: color-mix(in srgb, var(--bo-accent, #6d28d9) 45%, #ffffff);
  color: #14141c;
}

html[data-theme="dark"] button.bo-link-more {
  color: #f2f2f6;
}
/* --- процесс и футер: тёмная тема --- */
html[data-theme="dark"] .bo-section__hint {
  color: #9a9aab;
}

html[data-theme="dark"] .bo-process__step:not(:last-child)::before {
  background: #2a2a37;
}

html[data-theme="dark"] .bo-process__node {
  background: #17171f;
  border-color: #34343f;
  color: #c4b5fd;
}

html[data-theme="dark"] .bo-process__step:hover .bo-process__node {
  background: var(--ff-accent);
  border-color: var(--ff-accent);
  color: #1a1023;
}

html[data-theme="dark"] .bo-process__time {
  background: rgba(124, 58, 237, 0.22);
  color: #ddd6fe;
}

html[data-theme="dark"] .bo-process__title {
  color: #f4f4f8;
}

html[data-theme="dark"] .bo-process__step:hover .bo-process__title {
  color: #c4b5fd;
}

html[data-theme="dark"] .bo-process__text,
html[data-theme="dark"] .bo-process__foot p {
  color: #b9b9c9;
}

html[data-theme="dark"] .bo-process__out {
  border-top-color: #2a2a37;
}

html[data-theme="dark"] .bo-process__out li {
  color: #e4e4ec;
}

html[data-theme="dark"] .bo-process__out .bo-ico {
  color: #a78bfa;
}

html[data-theme="dark"] .bo-process__foot strong {
  color: #f4f4f8;
}

html[data-theme="dark"] .bo-foot__cta {
  background: none;
}


/* --- страница политики: тёмная тема --- */
html[data-theme="dark"] .bo-legal {
  background: rgba(124, 58, 237, 0.12);
  border-color: #2a2a37;
}

html[data-theme="dark"] .bo-legal p {
  color: #e4e4ec;
}

html[data-theme="dark"] .bo-legal p span {
  color: #9a9aab;
}

html[data-theme="dark"] .bo-page-content h2 {
  color: #f4f4f8;
}

html[data-theme="dark"] .bo-page-content a {
  color: #c4b5fd;
}

html[data-theme="dark"] .bo-page-content hr {
  border-top-color: #2a2a37;
}


/* =========================================================
   v3.9.0 — светлые заглушки, найденные аудитом вёрстки
   ========================================================= */

/* чек согласия в форме: фон оставался светлым, текст — тёмно-серым */
html[data-theme="dark"] .bo-form__agree {
	background: #17171f;
	color: #9a9aab;
}
html[data-theme="dark"] .bo-form__agree a { color: var(--ff-black); }

/* превью этапов: светлый подложник под картинкой */

/* таблицы в текстах: шапка была #fafafa */
html[data-theme="dark"] .bo-page-content th,
html[data-theme="dark"] .bo-prose th {
	background: #191922;
	color: #ececf2;
}


/* инлайн-код: светлая плашка на тёмной странице */
html[data-theme="dark"] .bo-page-content code,
html[data-theme="dark"] .bo-prose code {
	background: rgba(139, 92, 246, 0.16);
	color: #c4b5fd;
}
html[data-theme="dark"] .bo-page-content pre,
html[data-theme="dark"] .bo-prose pre {
	background: #0b0b11;
	color: #e6e6ef;
	border: 1px solid #23232f;
}
html[data-theme="dark"] .bo-page-content pre code,
html[data-theme="dark"] .bo-prose pre code { background: none; color: inherit; }

/* пилюли навигации по таксономиям: белый фон */
html[data-theme="dark"] .bo-tax-nav a {
	background: #191922;
	border-color: #2a2a35;
	color: #ececf2;
}
html[data-theme="dark"] .bo-tax-nav a:hover,
html[data-theme="dark"] .bo-tax-nav--sub a {
	background: var(--ff-accent-soft);
	border-color: transparent;
	color: var(--ff-accent-deep);
}


/* блоки, которые аудит нашёл в тёмной теме недокрытыми */
html[data-theme="dark"] .bo-cat__num {
	background: #23232e;
	color: #9a9aab;
}
html[data-theme="dark"] .bo-folio-featured__media {
	background: linear-gradient(145deg, #1d1a2b, #241f38);
}
html[data-theme="dark"] .bo-team__photo--empty {
	background: linear-gradient(145deg, #241f38, #322a4d);
}
