.hx-site-header,
.hx-site-header *,
.hx-mobile-nav,
.hx-mobile-nav * {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body img,
body svg,
body video {
  max-width: 100%;
}

.hx-site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px solid transparent;
  background: rgba(245, 245, 247, 0.84);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition:
    padding 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hx-site-header.scrolled {
  padding: 12px 0;
  border-bottom-color: rgba(76, 77, 79, 0.12);
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.04);
}

.hx-header-container {
  width: min(1300px, 100%);
  margin: 0 auto;
  padding: 0 4%;
}

.hx-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.hx-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #171b18 !important;
  font-family: "Space Grotesk", "Sora", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: clamp(1.46rem, 2vw, 1.92rem) !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  transition: color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hx-header-logo::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(135deg, #7ab541 0%, #2f7f22 100%);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(122, 181, 65, 0.12);
}

.hx-header-logo:hover {
  color: #1f2a1f !important;
  transform: translateY(-1px);
}

.hx-header-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 44px);
  margin-left: auto;
  color: #444848 !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 650 !important;
  line-height: 1 !important;
}

.hx-header-nav a,
.hx-mobile-nav a {
  color: inherit !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}

.hx-header-nav a {
  transition: color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hx-header-nav a:hover {
  color: #2f7f22 !important;
}

.hx-site-footer {
  margin-top: clamp(54px, 8vw, 96px);
  background: #142113;
  color: #eef6e8;
}

.hx-footer-container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.hx-footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) repeat(3, minmax(145px, 0.6fr));
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(42px, 6vw, 72px) 0 34px;
}

.hx-footer-brand {
  max-width: 430px;
}

.hx-footer-logo {
  display: inline-flex;
  color: #ffffff !important;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}

.hx-footer-brand p {
  margin: 18px 0 0;
  color: rgba(238, 246, 232, 0.72);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.hx-footer-links {
  display: grid;
  align-content: start;
  gap: 11px;
  color: rgba(238, 246, 232, 0.74);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

.hx-footer-links span {
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hx-footer-links a,
.hx-footer-bottom a {
  color: inherit !important;
  text-decoration: none !important;
}

.hx-footer-links a {
  font-size: 0.95rem;
  font-weight: 650;
}

.hx-footer-links a:hover,
.hx-footer-bottom a:hover {
  color: #cfe58f !important;
}

.hx-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(238, 246, 232, 0.14);
  padding: 22px 0 28px;
  color: rgba(238, 246, 232, 0.62);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 0.9rem;
}

.hx-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 22px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hx-btn-outline {
  border: 1px solid rgba(76, 77, 79, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #333537 !important;
}

.hx-btn-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(76, 77, 79, 0.42);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.hx-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hx-menu-toggle:hover {
  transform: translateY(-1px);
}

.hx-menu-toggle:focus-visible {
  outline: 2px solid rgba(47, 127, 34, 0.58);
  outline-offset: 5px;
}

.hx-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #333537;
  transition:
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hx-menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.hx-menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hx-mobile-nav {
  display: none;
}

body:not(.hx-home) .hx-site-header + main,
body:not(.hx-home) .hx-site-header + .elementor {
  padding-top: 88px;
}

@media (max-width: 820px) {
  .hx-site-header {
    padding: 14px 0;
  }

  .hx-site-header.scrolled {
    padding: 12px 0;
  }

  .hx-header-nav,
  .hx-header-contact {
    display: none;
  }

  .hx-menu-toggle {
    display: inline-flex;
  }

  .hx-mobile-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 4%;
    right: 4%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    max-height: 0;
    padding: 0;
    border: 1px solid rgba(76, 77, 79, 0.11);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(36, 38, 36, 0.11);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition:
      max-height 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
      transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
      padding 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .hx-mobile-nav.open {
    max-height: 320px;
    padding: 10px 0;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hx-mobile-nav a {
    padding: 14px 18px;
    color: #333537;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    font-weight: 750;
    text-align: center;
  }

  .hx-mobile-nav a:hover {
    background: #f5f5f7;
  }

  body:not(.hx-home) .hx-site-header + main,
  body:not(.hx-home) .hx-site-header + .elementor {
    padding-top: 74px;
  }

  .hx-footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hx-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hx-footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .hx-mobile-nav {
    grid-template-columns: 1fr;
  }
}
