/* R138: final home-page contrast hardening for Lighthouse accessibility */

/* Small pills / tags */
.tagRow span,
.moduleGrid .tagRow span,
article.moduleCard .tagRow span,
.badge,
.chip,
.pill,
.kicker,
.eyebrow{
  color:#07182d!important;
  background:#ffffff!important;
  border-color:rgba(7,24,45,.34)!important;
  font-weight:850!important;
  text-shadow:none!important;
}

/* Muted text inside light cards */
.card p,
.moduleCard p,
.enterpriseCard p,
.featureCard p,
.solutionCard p,
.processCard p,
.roadmapCard p,
.contactLine,
.contactLine span,
.contactList,
.contactList span,
.muted,
.lead,
.subtitle,
.sectionLead,
.heroLead,
.enterpriseHeroLead{
  color:#10233f!important;
  text-shadow:none!important;
}

/* Contact rows */
.contactLine,
.container .card .contactList .contactLine{
  background:#ffffff!important;
  color:#07182d!important;
  border:1px solid rgba(7,24,45,.28)!important;
}

.contactLine strong,
.card .contactList .contactLine strong{
  color:#061426!important;
  font-weight:900!important;
}

.contactLine span,
.card .contactList .contactLine span{
  color:#10233f!important;
  font-weight:850!important;
}

/* Links in light cards */
.card a,
.moduleCard a,
.enterpriseCard a,
.contactLine a{
  color:#064b9b!important;
  font-weight:850!important;
  text-decoration-thickness:1.5px!important;
  text-underline-offset:2px!important;
}

/* Ghost/light buttons need readable borders/text */
.btnGhost,
.btnGhostLight,
a.btnGhost,
a.btnGhostLight{
  color:#07182d!important;
  background:#ffffff!important;
  border-color:rgba(7,24,45,.42)!important;
  text-shadow:none!important;
}

/* Dark buttons stay high contrast */
.btnDark,
a.btnDark{
  color:#ffffff!important;
  background:#07182d!important;
  border-color:#07182d!important;
}

/* Dark sections: keep text light */
.dark,
.dark *,
.heroDark,
.heroDark *,
.sectionDark,
.sectionDark *,
.footer,
.footer *{
  text-shadow:none!important;
}

.dark p,
.dark span,
.dark .muted,
.dark .lead,
.heroDark p,
.heroDark span,
.heroDark .muted,
.sectionDark p,
.sectionDark span,
.sectionDark .muted,
.footer p,
.footer span{
  color:#f4f8ff!important;
}

/* Screen-reader-only helper kept from R137B */
.fc-sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

/* R139: exact Lighthouse contrast fix for moduleGrid tagRow spans */
html body div.moduleGrid > article.moduleCard > div.tagRow > span,
html body main div.moduleGrid > article.moduleCard > div.tagRow > span,
html body .moduleGrid article.moduleCard .tagRow span{
  color:#000000!important;
  background:#ffffff!important;
  background-color:#ffffff!important;
  border:1px solid #5b677a!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  text-shadow:none!important;
  box-shadow:none!important;
  font-weight:900!important;
}

/* R139B: override later homeEnterpriseMain active-card tag styles */
html body .homeEnterpriseMain div.moduleGrid.moduleGridRich > article.moduleCard.moduleCardRich > div.tagRow > span,
html body .homeEnterpriseMain div.moduleGrid.moduleGridRich > article.moduleCard.moduleCardRich.moduleCardActive > div.tagRow > span,
html body .homeEnterpriseMain .moduleGrid .moduleCard .tagRow span,
html body .homeEnterpriseMain .moduleGrid .moduleCard.moduleCardActive .tagRow span,
html body .homeEnterpriseMain .moduleCard .tagRow span,
html body .homeEnterpriseMain .moduleCard.moduleCardActive .tagRow span{
  color:#000000!important;
  background:#ffffff!important;
  background-color:#ffffff!important;
  border:1px solid #4b5567!important;
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  text-shadow:none!important;
  box-shadow:none!important;
  font-weight:900!important;
}


/* FC_HOME_BRAND_RESTORE_R145_START */

/* не позволяем внутренним span/svg у кнопок получать белые плашки */
html body .homeEnterpriseMain .btn span,
html body .homeEnterpriseMain .btn em,
html body .homeEnterpriseMain .btn strong,
html body .homeEnterpriseMain .btn svg,
html body .homeEnterpriseMain .btnIcon{
  background:transparent!important;
  color:inherit!important;
  fill:currentColor!important;
  stroke:currentColor!important;
}

/* презентация / скачать */
html body .homeEnterpriseMain a[href$=".pdf"],
html body .homeEnterpriseMain a[href*="concept.pdf"],
html body .homeEnterpriseMain a[href*="presentation"]{
  background:linear-gradient(90deg,#2b59f0 0%,#25a5f4 100%)!important;
  color:#ffffff!important;
  border-color:transparent!important;
}
html body .homeEnterpriseMain a[href$=".pdf"] *,
html body .homeEnterpriseMain a[href*="concept.pdf"] *,
html body .homeEnterpriseMain a[href*="presentation"] *{
  color:#ffffff!important;
  background:transparent!important;
}

/* обсудить внедрение */
html body .homeEnterpriseMain a[href^="mailto:"],
html body .homeEnterpriseMain a[href*="#request"]{
  background:#031b43!important;
  color:#ffffff!important;
  border-color:#031b43!important;
}
html body .homeEnterpriseMain a[href^="mailto:"] *,
html body .homeEnterpriseMain a[href*="#request"] *{
  color:#ffffff!important;
  background:transparent!important;
}

/* получить доступ */
html body .homeEnterpriseMain a[href*="#access"]{
  background:#ffffff!important;
  color:#18324d!important;
  border-color:#cfe0f3!important;
}
html body .homeEnterpriseMain a[href*="#access"] *{
  color:#18324d!important;
  background:transparent!important;
}

/* вернуть фирменные синие выделения/плашки там, где их убил broad override */
html body .homeEnterpriseMain .kicker,
html body .homeEnterpriseMain .eyebrow,
html body .homeEnterpriseMain .badge{
  background:linear-gradient(90deg,#2b59f0 0%,#25a5f4 100%)!important;
  color:#ffffff!important;
  border-color:transparent!important;
}
html body .homeEnterpriseMain .kicker *,
html body .homeEnterpriseMain .eyebrow *,
html body .homeEnterpriseMain .badge *{
  color:#ffffff!important;
  background:transparent!important;
}

/* сохранить нужный контраст tagRow */
html body .homeEnterpriseMain .moduleGrid .moduleCard .tagRow span,
html body .homeEnterpriseMain article.moduleCard .tagRow span{
  color:#000000!important;
  background:#ffffff!important;
  border-color:#d9e4f2!important;
}

/* счётчик и cookies оставить читабельными, не трогая hero/CTA */
html body .fc-page-counter-r109{
  background:#ffffff!important;
  border-color:#d9e4f2!important;
}
html body .fc-page-counter-r109,
html body .fc-page-counter-r109 span,
html body .fc-page-counter-r109 b,
html body .fc-page-counter-r109 em,
html body .fc-cookie-settings{
  color:#0f172a!important;
}
html body .fc-page-counter-r109 span,
html body .fc-page-counter-r109 b,
html body .fc-page-counter-r109 em{
  background:transparent!important;
}

/* FC_HOME_BRAND_RESTORE_R145_END */

