.site-header {
  right: 0 !important;
}

.header-contact-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: calc(84px + (var(--space-3) * 2));
  z-index: 360;
  width: min(460px, calc(100vw - 2rem));
  max-height: none;
  padding: 1.55rem;
  display: flex;
  flex-direction: column;
  overflow: visible;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(7, 30, 46, 0.08);
  border-radius: 22px;
  box-shadow: 0 22px 64px rgba(7, 30, 46, 0.16), 0 4px 18px rgba(7, 30, 46, 0.07);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(0.982);
  transform-origin: top right;
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  transition:
    opacity 0.16s ease,
    visibility 0s linear 0.16s,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-contact-open .header-contact-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.16s ease,
    visibility 0s linear 0s,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-contact-open .nav-contact {
  background: #025C97 !important;
  transform: translateY(-1px);
}

.header-contact-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}

.header-contact-panel__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid rgba(7, 30, 46, 0.09);
}

.header-contact-panel__head h2 {
  margin: 0;
  color: #025C97;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.header-contact-panel__close {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #025C97;
  border: 1px solid rgba(2, 92, 151, 0.25);
  border-radius: 999px;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.header-contact-panel__close:hover {
  background: rgba(2, 92, 151, 0.08);
  border-color: rgba(2, 92, 151, 0.42);
  transform: translateY(-1px);
}

.header-contact-panel__intro {
  margin: 1.55rem 0 1.4rem;
  color: rgba(17, 17, 17, 0.86);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.58;
}

.header-contact-panel__quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.header-contact-panel__quick a,
.header-contact-panel__quick button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0.45rem 0.78rem;
  color: #008440;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(7, 30, 46, 0.11);
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s ease;
}

.header-contact-panel__quick a:hover,
.header-contact-panel__quick button:hover,
.header-contact-panel__quick button[aria-expanded="true"] {
  color: #025C97;
  background: rgba(2, 92, 151, 0.07);
  border-color: rgba(2, 92, 151, 0.22);
  transform: translateY(-1px);
}

.header-contact-panel__form-wrap {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    grid-template-rows 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.16s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-contact-form-open .header-contact-panel__form-wrap {
  grid-template-rows: 1fr;
  margin-top: 1.45rem;
  opacity: 1;
  transform: translateY(0);
}

.header-contact-form {
  display: grid;
  min-height: 0;
  overflow: hidden;
  gap: 1rem;
}

.header-contact-form label {
  display: grid;
  gap: 0.42rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(17, 17, 17, 0.86);
}

.header-contact-form input,
.header-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(7, 30, 46, 0.1);
  border-radius: 7px;
  background: rgba(238, 247, 243, 0.9);
  color: var(--color-text);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.26s ease, box-shadow 0.26s ease, background-color 0.26s ease;
}

.header-contact-form input {
  height: 48px;
  padding-inline: 0.9rem;
}

.header-contact-form textarea {
  min-height: 108px;
  resize: vertical;
  padding: 0.85rem 0.9rem;
}

.header-contact-form input:focus,
.header-contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 132, 64, 0.38);
  box-shadow: 0 0 0 3px rgba(0, 132, 64, 0.09);
}

.header-contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.header-contact-form__submit {
  min-height: 48px;
  color: #fff;
  background: #008440;
  border-radius: 7px;
  font-weight: 700;
  transition: background-color 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}

.header-contact-form__submit:hover {
  background: #00743a;
  transform: translateY(-1px);
}

.header-contact-form__submit:disabled {
  opacity: 0.62;
  cursor: wait;
  transform: none;
}

.header-contact-form__status {
  min-height: 1.2em;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.header-contact-form__status.is-success {
  color: #008440;
}

.header-contact-form__status.is-error {
  color: #b42318;
}

.header-account {
  position: relative;
  display: inline-flex;
}

.header-account-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 365;
  width: min(330px, calc(100vw - 2rem));
  max-height: calc(100svh - var(--nav-height) - 2rem);
  padding: 1.15rem;
  overflow: auto;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(7, 30, 46, 0.08);
  border-radius: 20px;
  box-shadow: 0 22px 64px rgba(7, 30, 46, 0.14), 0 4px 18px rgba(7, 30, 46, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(0.982);
  transform-origin: top right;
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  transition:
    opacity 0.16s ease,
    visibility 0s linear 0.16s,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 1024px) {
  .nav-menu {
    gap: clamp(0.55rem, 0.9vw, 1rem) !important;
  }

  .nav-actions {
    gap: 0.35rem !important;
  }

  .site-header.is-search-open .site-logo {
    flex: 0 0 clamp(180px, 18vw, 240px) !important;
  }

  .site-header.is-search-open .nav-links {
    flex: 1 1 auto !important;
  }

  .site-header.is-search-open .nav-actions {
    flex: 0 0 auto !important;
    gap: 0.35rem !important;
  }

  .header-search.is-open {
    width: min(190px, 22vw) !important;
  }

  .header-account-panel {
    right: calc(-42px - 0.35rem);
    width: min(310px, calc(100vw - 2rem));
  }
}

.site-header.is-account-open .header-account-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity 0.16s ease,
    visibility 0s linear 0s,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-account-open .header-account__toggle {
  color: #fff;
  background: #025C97;
  border-color: rgba(44, 126, 179, 0.2);
}

.header-account-panel__head {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(7, 30, 46, 0.08);
}

.header-account-panel__head span {
  display: block;
  color: #025C97;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
}

.header-account-panel__text {
  margin: 1rem 0;
  color: rgba(17, 17, 17, 0.74);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.55;
}

.header-account-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.header-account-panel__head + .header-account-panel__actions {
  margin-top: 1rem;
}

.header-account-panel__actions a,
.header-account-panel__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.8rem;
  color: #008440;
  background: rgba(238, 247, 243, 0.72);
  border: 1px solid rgba(0, 132, 64, 0.13);
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  transition:
    color 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease,
    transform 0.24s ease;
}

.header-account-panel__actions a:hover,
.header-account-panel__actions button:hover,
.header-account-panel__actions button[aria-expanded="true"] {
  color: #025C97;
  background: rgba(2, 92, 151, 0.07);
  border-color: rgba(2, 92, 151, 0.22);
  transform: translateY(-1px);
}

.header-account-panel__login {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    grid-template-rows 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.16s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-account-login-open .header-account-panel__login {
  grid-template-rows: 1fr;
  margin-top: 0.95rem;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-account-login {
  display: grid;
  min-height: 0;
  overflow: hidden;
  gap: 0.8rem;
}

.header-account-login label {
  display: grid;
  gap: 0.38rem;
  color: rgba(17, 17, 17, 0.76);
  font-size: 0.78rem;
  font-weight: 550;
}

.header-account-login input[type="text"],
.header-account-login input[type="password"] {
  width: 100%;
  height: 42px;
  padding-inline: 0.8rem;
  color: var(--color-text);
  background: rgba(238, 247, 243, 0.92);
  border: 1px solid rgba(7, 30, 46, 0.1);
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.26s ease, box-shadow 0.26s ease, background-color 0.26s ease;
}

.header-account-login input[type="text"]:focus,
.header-account-login input[type="password"]:focus {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 132, 64, 0.36);
  box-shadow: 0 0 0 3px rgba(0, 132, 64, 0.09);
}

.header-account-login__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(17, 17, 17, 0.58);
  font-size: 0.74rem;
}

.header-account-login__meta label {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.header-account-login__meta input {
  width: 14px;
  height: 14px;
  accent-color: #008440;
}

.header-account-login__meta a {
  color: #025C97;
  text-decoration: none;
}

.header-account-login > button {
  min-height: 42px;
  color: #fff;
  background: #008440;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background-color 0.22s ease, transform 0.22s ease;
}

.header-account-login > button:hover {
  background: #00743a;
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .site-header {
    right: 0 !important;
    width: 100% !important;
  }

  .site-nav {
    justify-content: space-between !important;
    padding-inline: 1rem !important;
  }

  .site-logo {
    min-width: 0 !important;
  }

  .nav-actions {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    gap: 0.25rem !important;
  }

  .nav-contact {
    display: inline-flex !important;
    flex: 0 0 38px !important;
    width: 38px !important;
    max-width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding-inline: 0 !important;
    gap: 0 !important;
    color: #fff !important;
    background: #025C97 !important;
    font-size: 0 !important;
  }

  .nav-contact > svg:not(.nav-contact__phone) {
    display: none !important;
  }

  .nav-contact .nav-contact__phone {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    opacity: 1 !important;
    transform: scale(1) !important;
  }

  .nav-contact:hover {
    background: #025C97 !important;
    transform: none !important;
  }

  .header-search,
  .header-icon-btn,
  .nav-burger {
    width: 38px !important;
    height: 38px !important;
  }

  .header-search input {
    height: 38px !important;
    padding-right: 40px !important;
  }

  .header-contact-panel {
    position: fixed;
    top: calc(var(--nav-height) + var(--admin-bar-offset) + 10px);
    right: 1rem;
    left: 1rem;
    width: auto;
    max-height: calc(100dvh - var(--nav-height) - var(--admin-bar-offset) - 1.5rem);
    padding: 1.25rem;
    overflow-y: auto;
    transform-origin: top center;
  }

  .header-account-panel {
    position: fixed;
    top: calc(var(--nav-height) + var(--admin-bar-offset) + 10px);
    right: 1rem;
    left: 1rem;
    width: auto;
    max-height: calc(100dvh - var(--nav-height) - var(--admin-bar-offset) - 1.5rem);
    padding: 1.15rem;
    transform-origin: top center;
  }

  .header-account-panel__actions {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .header-contact-panel {
    right: calc(126px + (var(--space-3) * 3));
  }
}

@media (max-width: 1023px) {
  body.vb-mobile-menu-open {
    overflow: hidden !important;
  }

  .site-header.is-menu-open,
  .site-header.is-scrolled.is-menu-open {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .site-header.is-menu-open .nav-links.is-open {
    position: fixed !important;
    inset: calc(var(--nav-height) + var(--admin-bar-offset)) 0 0 0 !important;
    z-index: 120 !important;
    display: flex !important;
    height: auto !important;
    min-height: calc(100dvh - var(--nav-height) - var(--admin-bar-offset)) !important;
    max-height: calc(100dvh - var(--nav-height) - var(--admin-bar-offset)) !important;
    padding: 1.35rem var(--container-padding) 2rem !important;
    overflow-y: auto !important;
    background: var(--color-white) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 340px) {
  .site-nav {
    padding-inline: 0.5rem !important;
  }

  .site-logo img,
  .site-logo .custom-logo {
    width: 90px !important;
    height: auto !important;
  }

  .nav-actions {
    gap: 0.125rem !important;
  }

  .nav-contact {
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  .header-search,
  .header-icon-btn,
  .nav-burger {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }
}
