/* Scoped contrast and keyboard-focus corrections; retain the theme layout. */
.homeAbout .next-arrow,
.news > .next-arrow {
  color: #066dbf;
}

/* The partners heading sits on #131316, unlike the light next-arrow blocks. */
.homePartners:not(.gray-bg) .next-arrow {
  color: #1085dd;
}

.homePartners:not(.gray-bg) .next-arrow:hover,
.homePartners:not(.gray-bg) .next-arrow:focus-visible {
  text-decoration: underline;
}

.blue-btn.btn,
.header-btn.btn,
.footer-btn.btn,
#consult .modal-btn.btn {
  background-color: #0877cc;
  color: #fff;
}

.blue-btn.btn:hover,
.header-btn.btn:hover,
.footer-btn.btn:hover,
#consult .modal-btn.btn:hover {
  background-color: #1373bc;
  color: #fff;
}

/* Keep the dark-header controls blue normally and white when hovered/focused. */
.white-wrapper .header-catalog__current,
.white-wrapper .header-nav ul li.nav-item > a[href="/where-to-buy"] {
  background-color: #0877cc;
  color: #fff;
}

.white-wrapper .header-catalog .header-catalog__current > a.main-catalog-link {
  color: inherit;
}

.white-wrapper .header-catalog:hover .header-catalog__current,
.white-wrapper .header-catalog:focus-within .header-catalog__current,
.white-wrapper .header-nav ul li.nav-item:hover > a[href="/where-to-buy"],
.white-wrapper .header-nav ul li.nav-item > a[href="/where-to-buy"]:focus-visible {
  background-color: #fff;
  color: #066dbf;
}

.white-wrapper .header-catalog:focus-within .header-catalog__current b {
  filter: none;
}

.white-wrapper .header-catalog .header-catalog__current > a.main-catalog-link:focus-visible,
.white-wrapper .header-nav ul li.nav-item > a[href="/where-to-buy"]:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 3px;
}

/* 70% black guarantees readable text even above a completely white page. */
body #cookiesck {
  background: rgba(0, 0, 0, 0.7);
}

#cookiesck #cookiesck_text,
#cookiesck #cookiesck_text a {
  color: #fff;
}

#cookiesck #cookiesck_text a {
  text-decoration: underline;
}

#cookiesck #cookiesck_accept {
  background: #0877cc;
  color: #fff;
}

#cookiesck #cookiesck_accept:hover {
  background: #1373bc;
  color: #fff;
}

.homeAbout .next-arrow:focus-visible,
.homePartners:not(.gray-bg) .next-arrow:focus-visible,
.news > .next-arrow:focus-visible,
.contact-soc__item:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 4px;
}

.other-item__link:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: -3px;
}

.footer-soc__item:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 4px;
}

.blue-btn.btn:focus-visible,
.header-btn.btn:focus-visible,
.footer-btn.btn:focus-visible,
#consult .modal-btn.btn:focus-visible,
#cookiesck #cookiesck_accept:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: -3px;
}

#cookiesck #cookiesck_text a:focus-visible {
  outline: 2px solid #fff !important;
  outline-offset: 2px;
}

/* On phones, quality information is visible as soon as its card enters the screen. */
@media (max-width: 992px) {
  .spec-block[data-aos]:has(> .spec-white) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Card links stay below the separate slider arrows (z-index: 3). */
.spec-item__catalog-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.spec-item__catalog-link:focus-visible {
  outline: 3px solid #1085dd !important;
  outline-offset: -3px;
}

/* The visible caption must not intercept clicks on its full-card link. */
.spec-item:has(> .spec-item__catalog-link) > .spec-item__wrapper {
  pointer-events: none;
}

/* Keep the card/title navigation, with a separate direct PDF download target. */
.support#instr .support-item__title {
  flex: 1;
  min-width: 0;
  color: inherit;
}

.support#instr .support-item__title::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.support#instr .support-item__download {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 40px;
  min-height: 44px;
  margin-right: 8px;
}

.support#instr .support-item__download img {
  margin-right: 0;
}

.support#instr .support-item__download:focus-visible,
.support#instr .support-item__title:focus-visible::after {
  outline: 2px solid #fff !important;
  outline-offset: 3px;
}

/* Instruction tabs are a fixed two-column choice on mobile, not a cramped strip. */
@media (max-width: 992px) {
  /* Keep accordion display/animation intact; only split its brand list. */
  .mobile-menu__nav > ul > .item-166 > .mod-menu__sub {
    column-count: 2;
    column-gap: 16px;
  }

  .mobile-menu__nav > ul > .item-166 > .mod-menu__sub > .item-264 {
    column-span: all;
  }

  .mobile-menu__nav > ul > .item-166 > .mod-menu__sub > li:not(.item-264) {
    break-inside: avoid;
    margin: 0;
  }

  .mobile-menu__nav > ul > .item-166 > .mod-menu__sub > li:not(.item-264) > a {
    min-height: 36px;
    margin-bottom: 0;
    padding: 8px 4px;
    line-height: 20px;
    overflow-wrap: anywhere;
  }

  .support#instr .support-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    overflow: visible;
    padding-bottom: 0;
  }

  .support#instr .support-tabs > .support-tab {
    min-width: 0;
    min-height: 60px;
    padding: 12px 10px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    border: 1px solid #55555d;
    border-radius: 8px;
    background: #2b2b30;
    color: #f3f3f3;
    font-size: 16px;
    line-height: 1.35;
  }

  .support#instr .support-tabs > .support-tab.active {
    background: #164969;
    border-color: #63b6e8;
    box-shadow: inset 0 0 0 1px #63b6e8;
  }
}
