.crays-top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(19, 39, 59, 0.08);
  font-family: "Montserrat", sans-serif;
}

.crays-top-nav,
.crays-top-nav *,
.crays-top-nav *::before,
.crays-top-nav *::after {
  box-sizing: border-box;
}

.crays-top-nav-inner {
  width: min(100%, calc(100% - 38px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.crays-top-nav-brand {
  flex: 0 0 auto;
  margin-right: clamp(28px, 3.75vw, 72px);
}

.crays-top-nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.crays-top-nav-logo img {
  width: clamp(150px, 9.2vw, 174px);
  height: auto;
  max-height: 48px;
  display: block;
  object-fit: contain;
}

.crays-top-nav-menu {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(20px, 3vw, 58px);
  min-width: 0;
}

.crays-top-nav-menu a {
  position: relative;
  color: #13273b;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 180ms ease;
}

.crays-top-nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  height: 2px;
  border-radius: 999px;
  background: #f31248;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.crays-top-nav-menu a:hover,
.crays-top-nav-menu a:focus-visible,
.crays-top-nav-menu a[aria-current="page"] {
  color: #071a2d;
}

.crays-top-nav-menu a:hover::after,
.crays-top-nav-menu a:focus-visible::after,
.crays-top-nav-menu a[aria-current="page"]::after {
  transform: scaleX(1);
}

.crays-top-nav-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.crays-top-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid #f31248;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #fff6f8 100%);
  color: #13273b;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(243, 18, 72, 0.12);
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.crays-top-nav-button:hover,
.crays-top-nav-button:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ff2e66 0%, #f31248 100%);
  border-color: #f31248;
  color: #fff;
  box-shadow: 0 18px 42px rgba(243, 18, 72, 0.22);
}

.crays-top-nav-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #13273b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.crays-top-nav-icon svg {
  width: 28px;
  height: 28px;
}

.crays-top-nav-language {
  position: relative;
  display: inline-flex;
}

.crays-top-nav-language > summary {
  list-style: none;
}

.crays-top-nav-language > summary::-webkit-details-marker {
  display: none;
}

.crays-top-nav-language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 184px;
  padding: 8px;
  border: 1px solid rgba(19, 39, 59, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(10, 24, 38, 0.16);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 30;
}

.crays-top-nav-language[open] .crays-top-nav-language-menu {
  display: flex;
}

.crays-top-nav-language-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #13273b;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.crays-top-nav-language-item:hover,
.crays-top-nav-language-item[aria-pressed="true"] {
  background: rgba(243, 18, 72, 0.08);
}

.crays-top-nav-language-flag {
  flex: 0 0 auto;
  width: 22px;
  height: 16px;
  display: block;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(19, 39, 59, 0.12);
}

@media (max-width: 1450px) {
  .crays-top-nav-inner {
    min-height: 78px;
  }

  .crays-top-nav-brand {
    margin-right: 34px;
  }

  .crays-top-nav-menu {
    gap: 28px;
  }

  .crays-top-nav-button {
    padding-inline: 20px;
  }
}

@media (max-width: 1180px) {
  .crays-top-nav-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 14px;
    padding: 16px 0;
  }

  .crays-top-nav-brand {
    margin-right: auto;
  }

  .crays-top-nav-menu {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 0 2px;
    scrollbar-width: none;
  }

  .crays-top-nav-menu::-webkit-scrollbar {
    display: none;
  }

  .crays-top-nav-menu a::after {
    bottom: -8px;
  }
}

@media (max-width: 720px) {
  .crays-top-nav-inner {
    width: min(100%, calc(100% - 28px));
  }

  .crays-top-nav-logo img {
    width: 138px;
  }

  .crays-top-nav-actions {
    gap: 8px;
  }

  .crays-top-nav-button {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .crays-top-nav-icon {
    width: 38px;
    height: 38px;
  }

  .crays-top-nav-menu {
    justify-content: flex-start;
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .crays-top-nav-actions {
    flex: 1 0 100%;
    justify-content: space-between;
  }

  .crays-top-nav-button {
    flex: 1 1 auto;
  }
}

html body .crays-top-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  max-width: none !important;
  background: #fff !important;
}

html body .crays-top-nav .crays-top-nav-inner {
  width: min(100%, calc(100% - 38px)) !important;
  max-width: none !important;
  min-height: 82px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
}

html body .crays-top-nav .crays-top-nav-brand {
  flex: 0 0 auto !important;
  margin-right: clamp(28px, 3.75vw, 72px) !important;
}

html body .crays-top-nav .crays-top-nav-logo img {
  width: clamp(150px, 9.2vw, 174px) !important;
  height: auto !important;
  max-height: 48px !important;
  object-fit: contain !important;
}

html body .crays-top-nav .crays-top-nav-menu {
  flex: 1 1 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(20px, 3vw, 58px) !important;
  min-width: 0 !important;
}

html body .crays-top-nav .crays-top-nav-actions {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
}

@media (max-width: 1500px) {
  html body .crays-top-nav .crays-top-nav-brand {
    margin-right: 22px !important;
  }

  html body .crays-top-nav .crays-top-nav-menu {
    gap: clamp(14px, 1.45vw, 22px) !important;
  }

  html body .crays-top-nav .crays-top-nav-actions {
    gap: 8px !important;
  }

  html body .crays-top-nav .crays-top-nav-button {
    padding-inline: 16px !important;
  }
}

@media (max-width: 1370px) {
  html body .crays-top-nav .crays-top-nav-inner {
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    row-gap: 14px !important;
    min-height: 78px !important;
    padding: 16px 0 !important;
  }

  html body .crays-top-nav .crays-top-nav-brand {
    margin-right: auto !important;
  }

  html body .crays-top-nav .crays-top-nav-actions {
    margin-left: 0 !important;
  }

  html body .crays-top-nav .crays-top-nav-menu {
    order: 3 !important;
    flex: 1 0 100% !important;
    justify-content: center !important;
    gap: clamp(16px, 2.4vw, 28px) !important;
    overflow-x: auto !important;
    padding: 4px 0 2px !important;
    scrollbar-width: none !important;
  }

  html body .crays-top-nav .crays-top-nav-menu::-webkit-scrollbar {
    display: none !important;
  }

  html body .crays-top-nav .crays-top-nav-menu a::after {
    bottom: -8px !important;
  }
}

@media (max-width: 720px) {
  html body .crays-top-nav .crays-top-nav-menu {
    display: none !important;
  }

  html body .crays-top-nav .crays-top-nav-inner {
    align-items: center !important;
    row-gap: 10px !important;
    min-height: 72px !important;
    padding: 12px 0 !important;
  }

  html body .crays-top-nav .crays-top-nav-logo img {
    width: 128px !important;
    max-height: 38px !important;
  }

  html body .crays-top-nav .crays-top-nav-actions {
    margin-left: auto !important;
    order: 2 !important;
  }

  html body .crays-top-nav .crays-top-nav-button {
    min-height: 40px !important;
    padding-inline: 14px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 520px) {
  html body .crays-top-nav .crays-top-nav-inner {
    width: min(100%, calc(100% - 24px)) !important;
  }

  html body .crays-top-nav .crays-top-nav-logo img {
    width: clamp(136px, 37vw, 148px) !important;
  }

  html body .crays-top-nav .crays-top-nav-actions {
    flex: 0 1 auto !important;
    gap: 6px !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
    min-width: 0 !important;
    order: 2 !important;
  }

  html body .crays-top-nav .crays-top-nav-button {
    flex: 0 1 auto !important;
    font-size: 11.5px !important;
    min-height: 42px !important;
    max-width: none !important;
    padding-inline: 12px !important;
  }

  html body .crays-top-nav .crays-top-nav-icon {
    flex: 0 0 34px !important;
    height: 34px !important;
    width: 34px !important;
  }

  html body .crays-top-nav .crays-top-nav-icon svg {
    height: 24px !important;
    width: 24px !important;
  }
}

@media (max-width: 520px) {
  html body.crays-fund-association-page .crays-top-nav {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  html body.crays-fund-association-page .crays-top-nav .crays-top-nav-inner {
    width: min(100%, 390px) !important;
    max-width: 390px !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-wrap: nowrap !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
  }

  html body.crays-fund-association-page .crays-top-nav .crays-top-nav-brand {
    margin-right: 0 !important;
  }

  html body.crays-fund-association-page .crays-top-nav .crays-top-nav-logo img {
    width: clamp(112px, 32vw, 126px) !important;
  }

  html body.crays-fund-association-page .crays-top-nav .crays-top-nav-actions {
    max-width: calc(100% - 132px) !important;
    flex: 0 1 auto !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  html body.crays-fund-association-page .crays-top-nav .crays-top-nav-language {
    display: none !important;
  }

  html body.crays-fund-association-page .crays-top-nav .crays-top-nav-platform-button {
    max-width: 132px !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding-inline: 10px !important;
    overflow: hidden !important;
    font-size: 11px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}
