errefacil-header {
  display: block;
}

.site-header-refactored {
  min-height: 76px;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
  background:
    linear-gradient(
      90deg,
      #0d2b50 0%,
      #123a67 55%,
      #174877 100%
    );
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 8px 24px rgba(13, 43, 80, .18);
}

.compact-site-nav {
  gap: 6px;
  margin-left: auto;
}

.compact-site-nav a {
  position: relative;
  padding: 11px 13px;
  border-radius: 10px;
  color: #dce8f6;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background .18s ease,
    color .18s ease,
    transform .18s ease;
}

.compact-site-nav a:hover {
  background: rgba(255, 255, 255, .10);
  color: #ffffff;
  transform: translateY(-1px);
}

.compact-site-nav a.active {
  font-weight: 600;
  background: #1767d8;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(23, 103, 216, .28);
}

.compact-site-nav a[data-auth-link] {
  margin-left: 6px;
  padding-inline: 17px;
  background: #ffffff;
  color: #17365d;
  font-weight: 600;
  box-shadow: 0 7px 16px rgba(0, 0, 0, .12);
}

.compact-site-nav a[data-auth-link]:hover {
  background: #eaf2fb;
  color: #17365d;
}

.site-header-refactored #installBtn:not([hidden]) {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .92);
  color: #17365d;
  box-shadow: 0 7px 16px rgba(0, 0, 0, .10);
}

@media (max-width: 1000px) {
  .compact-site-nav a {
    padding-inline: 10px;
    font-size: 12px;
  }

  }

@media (max-width: 900px) {
  .site-header-refactored {
    position: relative;
    min-height: 66px;
    padding-inline: 16px;
  }

  .site-header-refactored .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, .10);
    color: #ffffff;
  }

  .compact-site-nav {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 8px);
    right: 12px;
    left: 12px;
    display: none;
    margin: 0;
    padding: 10px;
    border: 1px solid #d8e3ef;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(10, 34, 66, .22);
  }

  .compact-site-nav.open {
    display: grid;
    gap: 5px;
  }

  .compact-site-nav a {
    display: block;
    padding: 13px 14px;
    color: #17365d;
    font-size: 14px;
    font-weight: 500;
  }

  .compact-site-nav a:hover,
  .compact-site-nav a.active {
    font-weight: 600;
    background: #edf4fb;
    color: #17365d;
    box-shadow: none;
    transform: none;
  }

  .compact-site-nav a[data-auth-link] {
    margin: 5px 0 0;
    font-weight: 600;
    background: #173f70;
    color: #ffffff;
    text-align: center;
  }

  .compact-site-nav a[data-auth-link]:hover {
    background: #12335d;
    color: #ffffff;
  }

  .site-header-refactored #installBtn:not([hidden]) {
    display: none;
  }
}

@media (max-width: 400px) {
  }
.brand-errefacil {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: #ffffff;
  text-decoration: none;
}

.brand-icon {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand-text strong {
  display: block;
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-text small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .brand-errefacil {
    gap: 9px;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-text strong {
    font-size: 21px;
  }

  .brand-text small {
    font-size: 8px;
    letter-spacing: 0.09em;
  }
}

@media (max-width: 380px) {
  .brand-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .brand-text strong {
    font-size: 19px;
  }
}
