/* Homepage presentation only. No content, layout, visibility or image-source changes. */
:root {
  --mb-bg:#0f1316;
  --mb-surface:#192126;
  --mb-raised:#222d33;
  --mb-line:#344149;
  --mb-text:#e9eef1;
  --mb-muted:#b4c0c6;
  --mb-accent:#c4f23d;
  --mb-ink:#142006;
}
body { background:var(--mb-bg);color:var(--mb-text); }
body > :is(section,#quiz,#portfolio,#leads,#sell,.footer) {
  color:var(--mb-text);background-color:transparent!important;
}
.info-fixed {color:var(--mb-text);background-color:var(--mb-bg)!important;}
:is(.black,.black2,.text-black) {color:var(--mb-text)!important;}
:is(.red,.red2,.text-red),a.link-hover:hover {color:var(--mb-accent)!important;}
:is(.gray,.grey,.text-gray) {color:var(--mb-muted)!important;}
body > :is(section,#quiz,#portfolio,#leads,#sell,.footer) :is(h2,h3,h4,h5,h6) {color:var(--mb-text);}
body > :is(section,#quiz,#portfolio,#leads,#sell,.footer) a {border-color:var(--mb-line);}

/* Hero waves keep their native silhouettes and graphite lower portions. */
.main .main__m2 img,#lev.lev2 {
  filter:brightness(0) saturate(100%) invert(12.367%) sepia(45.974%) saturate(204.823%) hue-rotate(159.592deg)!important;
}
.line-block-item_gr,.line-block-item_gr-2 {
  background-image:linear-gradient(var(--mb-bg),var(--mb-bg))!important;
}
.sell .bordered,.sell .bordered::before {border-color:var(--mb-line)!important;background-color:var(--mb-bg)!important;}
.sell .bordered .red {color:var(--mb-accent)!important;}

/* Controls share one accent; semantic media and portfolio covers stay original. */
.btn,.quiz__next.active,.btn-tooltip.active,.play-wrap,.to_top,
.widget-wheel-open button,.widget-wheel-open .button,.widget-wheel-open__text,
.priceform .wrap .f input[type=submit],.priceform .wrap #submit_btn,.big_form .form #submit_btn,
.modals input[type=submit],.modals button[type=submit] {
  background:var(--mb-accent)!important;color:var(--mb-ink)!important;
  border-color:var(--mb-accent)!important;box-shadow:none!important;
}
.btn :is(span,.white),.quiz__next.active *,.btn-tooltip.active * {color:var(--mb-ink)!important;}
.btn:hover,.quiz__next.active:hover {background:#d4fc68!important;}
.play-wrap img {filter:brightness(0)!important;}
.play-wrap::before,.play-wrap::after {border-color:rgba(196,242,61,.45)!important;}
.to_top::before {border-bottom-color:var(--mb-ink)!important;}
.arrows {background-color:var(--mb-raised)!important;border-color:var(--mb-line)!important;}
.arrows img {filter:brightness(0) invert(1);}
.arrows svg path {fill:var(--mb-text);}
.portfolio__more {box-shadow:none!important;}
.portfolio__case-btn::before {background-color:var(--mb-accent)!important;}
.portfolio__it.black {color:#142006!important;}
.portfolio__more-a a,.kompleks__link {color:var(--mb-accent)!important;border-color:var(--mb-accent)!important;}

/* Quiz, including the steps reached after the first question. */
.test__cont,.quiz-right,.quiz .video_wrap_bonus,.quiz .qw2__img+.text,
.quiz .v6,.quiz .quiz-form {background-color:var(--mb-surface)!important;color:var(--mb-text)!important;}
.quiz-right::before,.quiz-right::after {border-color:transparent var(--mb-surface) transparent transparent;}
.quiz .quiz-right::before {border-left-color:var(--mb-bg)!important;}
.btn-tooltip,.btn-tooltip.disable,.quiz__next.disable {background:var(--mb-raised)!important;color:var(--mb-muted)!important;box-shadow:none!important;}
.btn-tooltip.active {background:var(--mb-accent)!important;color:var(--mb-ink)!important;}
.quiz :is(.video-wrap__yel,.video_wrap_bonus__red,.b-title,.check_bonus,.title-b),.quiz-right .name {
  background:var(--mb-raised)!important;color:var(--mb-text)!important;
}
.quiz .tiem {border-color:var(--mb-line);}
.quiz :is(.tiem__text,.quiz__q,.quiz__item,.test-item__title) {color:var(--mb-text);}
.quiz a,.quiz__check-label .red {color:var(--mb-accent)!important;}
.quiz .quiz-right .item button {color:var(--mb-accent)!important;border-color:var(--mb-accent)!important;}
.quiz__check-label::before {background-color:var(--mb-surface)!important;border-color:var(--mb-line)!important;}
.quiz input:checked+label::before {border-color:var(--mb-accent)!important;}

/* Video links and author callouts. */
.otz .links a,.otz .t a {background:var(--mb-raised)!important;color:var(--mb-text)!important;}
.otz .links a:first-child,.otz .t a:first-of-type {background:var(--mb-accent)!important;color:var(--mb-ink)!important;}
.otz .left a {background:var(--mb-accent)!important;color:var(--mb-ink)!important;}
.otz .left a#yandex {background:var(--mb-raised)!important;color:var(--mb-text)!important;box-shadow:inset 0 0 0 1px var(--mb-line);}
.leads__yel,.rk-name .name,.studia .name {
  background:var(--mb-accent)!important;color:var(--mb-ink)!important;box-shadow:none!important;
}
.rk-name .position,.rk-name .work,.rk-name p,.leads .today {
  background:var(--mb-surface)!important;color:var(--mb-muted)!important;box-shadow:none!important;
}
.leads .today::before {background:var(--mb-accent)!important;}
.rk-name .dl,.studia .t .left .dl {background:var(--mb-surface)!important;color:var(--mb-muted)!important;}
.sell-block {border-color:var(--mb-line)!important;}
.sell-block::after {background:var(--mb-bg)!important;border-color:var(--mb-line)!important;}

/* Task and implementation tabs retain their original switching logic. */
:is(.conversion,.etapu) .tabs__caption li {
  background:var(--mb-raised)!important;color:var(--mb-muted)!important;box-shadow:none!important;
}
:is(.conversion,.etapu) .tabs__caption li.active {
  background:var(--mb-accent)!important;color:var(--mb-ink)!important;
}
:is(.conversion,.etapu) .tabs__caption li::before {
  background:var(--mb-surface)!important;color:var(--mb-text)!important;box-shadow:none!important;
}
.conversion .tabs__caption li.active::before {color:var(--mb-accent)!important;}
:is(.conversion,.etapu) .tabs__content :is(p,li) {color:var(--mb-muted)!important;}
.conversion .tabs__content a,.conversion .tabs .im .t a {color:var(--mb-accent)!important;border-color:var(--mb-accent)!important;}

/* Alternating service tiles use two graphite surfaces, keeping the grid intact. */
.dop .grid .item {background:var(--mb-surface)!important;border-color:var(--mb-line)!important;}
.dop .grid .item.revers {background:var(--mb-raised)!important;}
.dop .grid .item :is(h4,p) {color:var(--mb-text)!important;}
.dop .grid .item .t {color:var(--mb-muted)!important;opacity:.12;}
.dop .grid .item a {color:var(--mb-accent)!important;border-color:var(--mb-accent)!important;}
.dop .grid .item a:hover {background:var(--mb-accent)!important;color:var(--mb-ink)!important;}
.studia .team .owl-carousel .item {background:var(--mb-raised)!important;}
.studia .team .owl-carousel .item:is(.slick-current,:hover) {background:var(--mb-accent)!important;}
.studia .t .num {color:var(--mb-raised)!important;text-shadow:none!important;}
.ogorchim .bordered {background:var(--mb-surface)!important;border-color:var(--mb-line)!important;box-shadow:inset 0 0 0 1px var(--mb-line);}
.ogorchim .bordered :is(h2,h3,h4,p) {color:var(--mb-text)!important;}

/* Native forms, inputs and consent controls. */
.priceform .wrap,.big_form .form,.modals .form,.modals .form-wrap {
  background:var(--mb-surface)!important;color:var(--mb-text)!important;
  box-shadow:0 18px 60px rgba(0,0,0,.22)!important;
}
input:is([type=text],[type=tel],[type=email]),textarea,select,
.dashboardcode-bsmultiselect .form-control {
  background:var(--mb-bg)!important;color:var(--mb-text)!important;border-color:var(--mb-line)!important;
}
input::placeholder,textarea::placeholder {color:#a7b5bd!important;opacity:1;}
input:focus,textarea:focus,select:focus {outline-color:var(--mb-accent);border-color:var(--mb-accent)!important;}
.priceform .wrap .f #check label,.big_form .form #check label {color:var(--mb-muted)!important;}
.priceform .wrap .f #check a,.big_form .form #check a {color:var(--mb-accent)!important;}
.priceform #form-check:checked+label::before,.big_form #form-check:checked+label::before {
  background:var(--mb-accent)!important;border-color:var(--mb-accent)!important;
}
.priceform .wrap .f #form-check:checked+label::after,.big_form #form-check:checked+label::after {border-color:var(--mb-ink)!important;}
.big_form .form label {color:var(--mb-muted)!important;border-color:var(--mb-line)!important;}
.big_form .form input[type=radio]:checked+label {background:var(--mb-accent)!important;color:var(--mb-ink)!important;}
.big_form .form input[type=radio]:checked+label path {fill:var(--mb-ink)!important;}
.dashboardcode-bsmultiselect .dropdown-menu {background:var(--mb-raised)!important;color:var(--mb-text)!important;}

/* Footer and the existing menu panel. */
.info,.info-fixed,.info.fixed {background:var(--mb-bg)!important;color:var(--mb-text)!important;}
.info :is(a,h3,h4,p),.info-fixed :is(a,h3,h4,p) {color:var(--mb-text)!important;}
.info a:hover,.info-fixed a:hover {color:var(--mb-accent)!important;}
.footer__cont {background:#0a0e10!important;color:var(--mb-muted)!important;}
.info__img img {filter:grayscale(1) brightness(2);}
.info .kr-text {background:var(--mb-raised)!important;}
.info .kr-text .white {color:var(--mb-accent)!important;}
.close svg path {stroke:var(--mb-text);}

/* Existing modal structure and all fields remain intact. */
.modals .mdl,.modals .modal,.modal-wrap,.wheel-modal .wheel-modal-content,
#modal-politics .info {background-color:var(--mb-surface)!important;color:var(--mb-text)!important;}
.modals :is(h2,h3,h4,p,label),.wheel-modal :is(h2,h3,p) {color:var(--mb-text);}
.modals .progress {background-color:var(--mb-raised)!important;}
.modals .progress-bar {background-color:var(--mb-accent)!important;}
.modals #slov19 .cls-pg19,.modals #leav_mdl .next,.modals #price_mdl #submit_btn {
  background:var(--mb-accent)!important;color:var(--mb-ink)!important;
}
.modals .cssProgress .cssProgress-bar {background-color:var(--mb-accent)!important;}
.modals .cssProgress .progress3 {background-color:var(--mb-raised)!important;}
.modals #leav_mdl #next-form {background:var(--mb-accent)!important;color:var(--mb-ink)!important;}
.modals .grid-wrap label {background:var(--mb-raised)!important;color:var(--mb-muted)!important;border-color:var(--mb-line)!important;}
.modals .grid-wrap input[type=radio]:checked+label,
.modals #leav_mdl input[type=radio]:checked+label {background:var(--mb-accent)!important;color:var(--mb-ink)!important;border-color:var(--mb-accent)!important;}
.modals #leav_mdl input[type=radio]:checked+label path {fill:var(--mb-ink)!important;}
.modals #slov19 :is(#v1,#v2) {filter:brightness(0) saturate(100%) invert(12.367%) sepia(45.974%) saturate(204.823%) hue-rotate(159.592deg)!important;}
.modals .close-case:not(.cls-pg19) {background-color:var(--mb-raised)!important;color:var(--mb-text)!important;}
.wheel-modal-body {background:var(--mb-surface)!important;color:var(--mb-text)!important;}
.wheel-modal__title span {color:var(--mb-accent)!important;}
.wheel-modal__hint {border-color:var(--mb-line)!important;}
.wheel-modal-form__text,.wheel-modal-form-policy__text {color:var(--mb-muted)!important;}
.wheel-modal-form__arrow {filter:invert(1);}
.wheel-modal-form-policy__checkbox {background:var(--mb-accent)!important;}
@media(prefers-reduced-motion:reduce) { .btn {transition:none;} }

/* Neutral artwork: darker green lettering on white paper, lime on dark covers. */


:is(.kompleks__list,.priceform__list,.tab-cont__img,.list-block__img) img,
.dop .item:not(.it6) #img_bg,
.etapu .tabs__content .left img:not(#red),
.ogorchim__img img:not([data-src*="alexey"]) {filter:var(--mb-artwork-lime);}
.kompleks__book img,.quiz img[data-src*="kviz-mobile-vopros"],
.etapu img[data-src*="ai-shtab-plan-folder"],
.big_form img:is(#right,#right-mob,#mob_mok),
.modals #leav_mdl img.mok,.wheel-modal-main__bg {filter:var(--mb-artwork-lime);}
.wheel-modal-main-logo {background-color:var(--mb-accent)!important;}
.wheel-modal-main-logo img {filter:brightness(0);}
.etapu .tabs__content li::before {background-color:var(--mb-accent)!important;}

/* Validation errors remain distinct from the green brand accent. */
input.red,textarea.red,.modals input.red,.big_form input.red {color:#ff9ca3!important;border-color:#ff7d88!important;}
