img { max-width: 100%; height: auto; }
html { overflow-x: hidden; }
html.nav-open,
body.nav-open { overflow: hidden; }
#dc-root,
#dc-root > .sc-host {
  height: auto !important;
  overflow: visible !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  overflow: visible;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #E7E9F0;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: -1;
  pointer-events: none;
}
.site-nav {
  position: relative;
  z-index: 6;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px clamp(14px, 4vw, 36px);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  flex: 0 1 auto;
  z-index: 2;
}
.site-nav__logo img {
  height: 32px;
  width: auto;
  max-width: min(220px, calc(100vw - 92px));
  object-fit: contain;
  object-position: left center;
  display: block;
}
.site-nav__toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 6;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  border-radius: 8px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.site-nav__toggle:hover,
.site-nav__toggle:focus-visible {
  background: #F4F6FA;
  outline: none;
}
.site-nav__burger {
  display: block;
  width: 18px;
  height: 2px;
  background: #0B0E14;
  border-radius: 1px;
  position: relative;
  pointer-events: none;
}
.site-nav__burger::before,
.site-nav__burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #0B0E14;
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease;
}
.site-nav__burger::before { top: -6px; }
.site-nav__burger::after { top: 6px; }
html.nav-open .site-nav__burger {
  background: transparent;
}
html.nav-open .site-nav__burger::before {
  top: 0;
  transform: rotate(45deg);
}
html.nav-open .site-nav__burger::after {
  top: 0;
  transform: rotate(-45deg);
}
.site-nav__panel {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
}
.nav-link {
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #3A4254;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover { color: #0033FF; }
.nav-link.is-active {
  color: #0033FF;
  border-bottom-color: #0033FF;
  font-weight: 600;
}
.nav-text-short { display: none; }
.nav-link--drawer { display: none; }
.nav-dd { position: relative; }
.nav-dd__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-top: 2px;
  border: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  flex: none;
  cursor: pointer;
  transform: none;
  transition: transform 0.2s ease;
}
.nav-dd:hover .nav-caret,
.nav-dd:focus-within .nav-caret,
.nav-dd.is-open .nav-caret {
  transform: rotate(180deg);
  margin-top: 0;
}
.nav-dd__menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 168px;
  background: #fff;
  border: 1px solid #E7E9F0;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(11, 14, 20, 0.12);
  z-index: 5;
}
.nav-dd__menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #3A4254;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.nav-dd__menu a:hover,
.nav-dd__menu a.is-active {
  background: #F4F6FA;
  color: #0033FF;
}
.nav-dd:hover .nav-dd__menu,
.nav-dd:focus-within .nav-dd__menu,
.nav-dd.is-open .nav-dd__menu { display: block; }
.site-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0033FF;
  color: #fff !important;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  flex: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.site-nav__cta:hover {
  background: #0026C2;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 51, 255, 0.28);
  color: #fff !important;
}
.site-nav__backdrop {
  display: none;
}

@media (min-width: 1181px) {
  .nav-text-full { display: none; }
  .nav-text-short { display: inline; }
}

@media (max-width: 1180px) {
  .site-nav__toggle { display: inline-flex; }
  .nav-text-full { display: inline; }
  .nav-text-short { display: none; }
  .nav-caret { display: none; }
  .nav-dd__menu { display: none !important; }
  .nav-link--drawer { display: flex; }
  .site-nav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(11, 14, 20, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 4;
  }
  html.nav-open .site-nav__backdrop,
  .site-header.is-open .site-nav__backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav__panel {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - 64px);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 8px 20px 28px;
    border-top: 1px solid #E7E9F0;
    box-shadow: 0 24px 40px rgba(11, 14, 20, 0.12);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 5;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease;
  }
  html.nav-open .site-nav__panel,
  .site-header.is-open .site-nav__panel {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .site-nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav__links .nav-link,
  .nav-dd .nav-link {
    display: flex;
    align-items: center;
    padding: 15px 2px;
    border-bottom: 1px solid #EEF1F7;
    font-size: 17px;
    white-space: normal;
  }
  .site-nav__links .nav-link.is-active {
    border-bottom-color: #EEF1F7;
    box-shadow: inset 3px 0 0 #0033FF;
    padding-left: 10px;
  }
  .nav-dd { display: contents; }
  .site-nav__cta {
    margin-top: 20px;
    width: 100%;
    padding: 16px 22px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  [style*="repeat(auto-fit,minmax"],
  [style*="repeat(auto-fill,minmax"],
  [style*="grid-template-columns:1.6fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="min-width:240px"] { min-width: 0 !important; }
  main h1 { font-size: clamp(28px, 8.2vw, 40px) !important; }
  .footer-cta { white-space: normal !important; }
  main [style*="min-height:440px"] {
    min-height: 300px !important;
    padding: 22px !important;
  }
}

@media (max-width: 640px) {
  .site-nav { padding: 8px 14px; min-height: 56px; }
  .site-nav__logo img { height: 28px; max-width: calc(100vw - 78px); }
  .site-nav__toggle { width: 36px; height: 36px; flex-basis: 36px; }
  .site-nav__panel { top: 56px; max-height: calc(100dvh - 56px); }
}
