.site-header .nav--mega > a:is([aria-current], :hover, :focus-visible),
.site-header .nav--mega > .nav__item > a[aria-current],
.site-header .nav--mega > .nav__item:is(.nav__item--open, :hover, :focus-within) > a {
  color: var(--green);
}

.site-header .nav--mega > a:active,
.site-header .nav--mega > .nav__item > a:active {
  color: color-mix(in srgb, var(--green) 50%, transparent);
}

.site-header .nav--mega .nav__submenu a:is([aria-current], :hover, :focus-visible) {
  color: var(--green);
}

@media (min-width: 1400px) {
  .site-header .nav--mega > a:is([aria-current], :hover, :focus-visible)::before,
  .site-header .nav--mega > .nav__item > a[aria-current]::before,
  .site-header .nav--mega > .nav__item:is(.nav__item--open, :hover, :focus-within) > a::before {
    content: "";
    position: absolute;
    inset: -1px 0 auto;
    height: 1px;
    background-color: currentColor;
    pointer-events: none;
  }

  .site-header--scrolled.site-header .nav--mega > a::before,
  .site-header--scrolled.site-header .nav--mega > .nav__item > a::before {
    top: 0;
  }
}

.site-header .header__actions .button {
  --button-border: transparent;
  --button-hover-background: var(--green);
  --button-hover-color: #fff;
  background-color: color-mix(in srgb, var(--green) 10%, transparent);
  color: var(--green);
}

.site-header .header__actions .button--outline {
  --button-hover-background: #fff;
  --button-hover-color: #101010;
  background-color: #ffffff0d;
  color: #fff;
}

.site-header .header__actions .button:not(:disabled):is(:hover, :focus-visible) {
  background-color: var(--button-hover-background);
  color: var(--button-hover-color);
}

.site-header .header__actions .button:not(:disabled):active {
  background-color: color-mix(in srgb, var(--green) 50%, transparent);
  color: #ffffff80;
}

.site-header .header__actions .button--outline:not(:disabled):active {
  background-color: #ffffff80;
  color: #101010;
}

.site-header .header__social a,
.site-footer .site-footer__phone {
  transition: color .2s;
}

.site-header .header__social a:is(:hover, :focus-visible),
.site-footer .site-footer__phone:is(:hover, :focus-visible) {
  color: var(--green);
}

.site-header .header__social a:active,
.site-footer .site-footer__phone:active {
  color: color-mix(in srgb, var(--green) 50%, transparent);
}

.site-footer .site-footer__nav a[aria-current] {
  background: #000;
  color: var(--green);
}

@media (min-width: 601px) and (max-width: 1100px) {
  .site-footer .site-footer__nav {
    flex: 0 1 280px;
    justify-content: flex-start;
  }

  .site-footer .site-footer__nav a:nth-child(n) {
    min-width: 0;
  }
}

.site-footer .site-footer__consultation {
  transition: background-color .2s, color .2s;
}

.site-footer .site-footer__consultation:not(:disabled):is(:hover, :focus-visible) {
  background-color: var(--green);
  color: #fff;
}

.site-footer .site-footer__consultation:not(:disabled):active {
  background-color: color-mix(in srgb, var(--green) 50%, transparent);
  color: #ffffff80;
}

@media (forced-colors: none) {
  .site-footer .site-footer__social:has(img[src$="/footer-telegram.svg"]) {
    --social-icon: url("../img/footer-telegram.svg");
  }

  .site-footer .site-footer__social:has(img[src$="/footer-whatsapp.svg"]) {
    --social-icon: url("../img/footer-whatsapp.svg");
  }

  .site-footer .site-footer__social:has(img:is([src$="/footer-telegram.svg"], [src$="/footer-whatsapp.svg"])) {
    &:is(:hover, :focus-visible) {
      position: relative;
      opacity: 1;
    }

    &:is(:hover, :focus-visible) > img {
      opacity: 0;
    }

    &:is(:hover, :focus-visible)::after {
      content: "";
      position: absolute;
      inset: 0;
      background-color: var(--green);
      mask: var(--social-icon) center / contain no-repeat;
    }

    &:active::after {
      opacity: .5;
    }
  }
}
