.ws-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.96);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.ws-header--scrolled {
  border-bottom-color: rgba(22, 36, 51, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(22, 36, 51, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ws-header__inner {
  display: flex;
  align-items: center;
  min-height: 82px;
  transition: min-height 0.25s ease;
}

.ws-header--scrolled .ws-header__inner {
  min-height: 72px;
}

.ws-header__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.ws-header__brand img {
  display: block;
  width: auto;
  max-width: 178px;
  max-height: 48px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.ws-header--scrolled .ws-header__brand img {
  transform: scale(0.95);
  transform-origin: left center;
}

.ws-header__nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: 70px;
}

.ws-header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 30px 0;
  border: 0;
  background: transparent;
  color: #32465a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ws-header__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #2eabe1;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.ws-header__link:hover,
.ws-header__link:focus-visible {
  color: #168fc6;
  text-decoration: none;
}

.ws-header__link:hover::after,
.ws-header__link:focus-visible::after {
  transform: scaleX(1);
}

.ws-header__link i {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.ws-header__dropdown--open .ws-header__dropdown-toggle i {
  transform: rotate(180deg);
}

.ws-header__dropdown {
  position: relative;
}

.ws-header__dropdown-menu {
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  width: 370px;
  padding: 12px;
  border: 1px solid rgba(22, 36, 51, 0.08);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 55px rgba(22, 36, 51, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

.ws-header__dropdown--open .ws-header__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.ws-header__dropdown-menu a {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px;
  border-radius: 13px;
  color: #32465a;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.ws-header__dropdown-menu a:hover {
  background: #f3f9fc;
  transform: translateX(2px);
}

.ws-header__dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #eaf7fc;
  color: #168fc6;
}

.ws-header__dropdown-menu strong,
.ws-header__dropdown-menu small {
  display: block;
}

.ws-header__dropdown-menu strong {
  margin-bottom: 3px;
  color: #1f3143;
  font-size: 13px;
}

.ws-header__dropdown-menu small {
  color: #6b7d8e;
  font-size: 12px;
  line-height: 1.45;
}

.ws-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.ws-header__dropdown-toggle {
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-shadow: none;
}

.ws-header__dropdown-toggle:focus,
.ws-header__dropdown-toggle:active {
  outline: none;
  box-shadow: none;
}

.ws-header__dropdown-toggle:focus-visible {
  outline: 2px solid rgba(46, 171, 225, 0.45);
  outline-offset: 5px;
  border-radius: 4px;
}
.ws-header__login,
.ws-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.ws-header__login {
  padding: 0 19px;
  border: 1px solid rgba(46, 171, 225, 0.42);
  color: #168fc6;
  background: #ffffff;
}

.ws-header__login:hover {
  border-color: #2eabe1;
  background: #f2faff;
  color: #107dac;
  text-decoration: none;
}

.ws-header__cta {
  gap: 9px;
  padding: 0 21px;
  border: 1px solid #2eabe1;
  background: #2eabe1;
  color: #ffffff;
  box-shadow: 0 9px 20px rgba(46, 171, 225, 0.22);
}

.ws-header__cta:hover {
  background: #168fc6;
  border-color: #168fc6;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(46, 171, 225, 0.28);
}

.ws-header__cta i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.ws-header__cta:hover i {
  transform: translateX(3px);
}

.ws-header__menu-button {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid rgba(22, 36, 51, 0.09);
  border-radius: 11px;
  background: #ffffff;
  cursor: pointer;
}

.ws-header__menu-button span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #263b4f;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease,
    top 0.22s ease;
}

.ws-header__menu-button span:nth-child(1) {
  top: 14px;
}

.ws-header__menu-button span:nth-child(2) {
  top: 21px;
}

.ws-header__menu-button span:nth-child(3) {
  top: 28px;
}

.ws-header--menu-open .ws-header__menu-button span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.ws-header--menu-open .ws-header__menu-button span:nth-child(2) {
  opacity: 0;
}

.ws-header--menu-open .ws-header__menu-button span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.ws-header__mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  background: #ffffff;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.25s ease,
    border-color 0.25s ease;
}

.ws-header--menu-open .ws-header__mobile-menu {
  max-height: 620px;
  border-top-color: rgba(22, 36, 51, 0.08);
  opacity: 1;
}

.ws-header__mobile-nav {
  display: grid;
  gap: 4px;
  padding: 20px 0 14px;
}

.ws-header__mobile-nav a {
  padding: 12px 4px;
  border-bottom: 1px solid rgba(22, 36, 51, 0.06);
  color: #263b4f;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.ws-header__mobile-nav a:hover {
  color: #168fc6;
}

.ws-header__mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  padding: 10px 0 24px;
}

.ws-nav-free-trial {
  color: #1d92bd !important;
  font-weight: 700;
}

.ws-nav-free-trial:hover {
  color: #126f91 !important;
}

@media (max-width: 991px) {
  .ws-header__inner {
    min-height: 72px;
  }

  .ws-header__brand img {
    max-width: 165px;
  }

  .ws-header__nav,
  .ws-header__actions {
    display: none;
  }

  .ws-header__menu-button,
  .ws-header__mobile-menu {
    display: block;
  }

  .ws-mobile-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .ws-header__brand img {
    max-width: 148px;
  }

  .ws-header__mobile-actions {
    grid-template-columns: 1fr;
  }
}
