/* Header contact bar — Halavach Finans */
.hf-header {
  position: relative;
  z-index: 60;
  background: #fbfaf6;
}

.hf-header-topbar {
  color: #f7f9f5;
  background: #071631;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.hf-header-topbar .hf-container,
.hf-header-main .hf-container {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.hf-header-topbar-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hf-header-contact-list,
.hf-header-contact-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hf-header-contact-actions {
  justify-content: flex-end;
  gap: 22px;
}

.hf-header-contact {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.hf-header-contact-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  color: #dce9d8;
  border: 1px solid rgba(220, 233, 216, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.hf-header-contact-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hf-header-contact-copy {
  display: grid;
  gap: 2px;
  line-height: 1.15;
}

.hf-header-contact-copy strong {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
}

.hf-header-contact-copy small {
  color: rgba(247, 249, 245, .7);
  font-size: 11px;
  letter-spacing: .01em;
}

.hf-header-contact:hover .hf-header-contact-copy strong,
.hf-header-email:hover {
  color: #d9e9d7;
}

.hf-header-email {
  color: rgba(247, 249, 245, .78);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.hf-header-main {
  background: rgba(251, 250, 246, .97);
  border-bottom: 1px solid rgba(7, 22, 49, .08);
}

.hf-header-main .hf-header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.hf-header-main .hf-logo {
  flex: 0 0 auto;
}

.hf-header-main .hf-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 40px);
  margin-left: auto;
}

.hf-header-main .hf-nav a {
  color: #071631;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.hf-header-main .hf-nav a:hover,
.hf-header-main .hf-nav a:focus-visible {
  color: #236148;
}

.hf-header-main .hf-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hf-header-main .hf-header-actions > .hf-phone {
  display: none;
}

.hf-header-main .hf-lang-select select {
  min-width: 58px;
  height: 40px;
  padding: 0 28px 0 13px;
  color: #205d47;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  border: 1px solid rgba(32, 93, 71, .22);
  border-radius: 999px;
  background-color: #e7efe8;
}

.hf-header-main .hf-lang-select::after {
  color: #205d47;
}

.hf-header-main .hf-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(32, 93, 71, .12);
}

.hf-header-main .hf-menu {
  color: #071631;
}

.hf-header-contact:focus-visible,
.hf-header-email:focus-visible,
.hf-header-main .hf-nav a:focus-visible,
.hf-header-main .hf-button:focus-visible,
.hf-header-main .hf-menu:focus-visible,
.hf-header-main .hf-lang-select select:focus-visible {
  outline: 3px solid rgba(211, 157, 78, .55);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hf-header-topbar-inner {
    gap: 18px;
  }

  .hf-header-contact-list,
  .hf-header-contact-actions {
    gap: 14px;
  }

  .hf-header-email {
    display: none;
  }

  .hf-header-main .hf-nav {
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .hf-header-topbar .hf-container,
  .hf-header-main .hf-container {
    width: min(100% - 32px, 1240px);
  }

  .hf-header-topbar-inner {
    min-height: 68px;
    align-items: center;
    gap: 12px;
  }

  .hf-header-contact-list {
    align-items: flex-start;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
  }

  .hf-header-contact-list .hf-header-contact-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .hf-header-contact-list .hf-header-contact-icon svg {
    width: 14px;
    height: 14px;
  }

  .hf-header-contact-copy strong {
    font-size: 10px;
  }

  .hf-header-contact-copy small {
    font-size: 10px;
  }

  .hf-header-contact-actions {
    flex: 0 0 auto;
  }

  .hf-header-contact-actions .hf-header-contact-copy small {
    display: none;
  }

  .hf-header-contact-actions .hf-header-contact-copy strong {
    font-size: 11px;
    white-space: nowrap;
  }

  .hf-header-contact-actions .hf-header-contact-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .hf-header-main .hf-header-inner {
    min-height: 72px;
    gap: 12px;
  }

  .hf-header-main .hf-nav,
  .hf-header-main .hf-button {
    display: none;
  }

  .hf-header-main .hf-header-actions {
    margin-left: auto;
    gap: 9px;
  }

  .hf-header-main .hf-lang-select select {
    height: 38px;
  }
}

@media (max-width: 430px) {
  .hf-header-topbar .hf-container,
  .hf-header-main .hf-container {
    width: min(100% - 24px, 1240px);
  }

  .hf-header-contact-actions .hf-header-contact-copy strong {
    font-size: 10px;
  }

  .hf-header-contact-list .hf-header-contact:first-child .hf-header-contact-copy small {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
