

#main-header {
  width: 100%;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  justify-content: center;
}

.header-content-wrapper {
  width: 1303px;
  max-width: 95%;
  justify-content: space-between;
  align-items: center;
  display: flex;
  gap: 16px;
}

.header-logo-link {
  display: inline-block;
  margin-right: 8px;
}

.header-logo-icon-container {
  width: 53.18px;
  height: 53.18px;
  position: relative;
  overflow: hidden;
}

.header-logo-icon-element1 {
  width: 50.34px;
  height: 50.34px;
  left: -2.38px;
  top: 47.28px;
  position: absolute;
  transform: rotate(-81deg);
  transform-origin: top left;
  border: 2.83px white solid;
}

.header-logo-icon-element2 {
  width: 30.87px;
  height: 27.34px;
  left: 9.53px;
  top: 12.24px;
  position: absolute;
  background: white;
}

.header-search-bar {
  display: flex;
  align-items: center;
  min-width: 120px;
  max-width: 320px;
  flex-grow: 1;
  flex-shrink: 1;
  padding: 8px 20px;
  background: rgb(255 255 255 / 19%);
  border-radius: 99px;
  border: 1px #004e9f solid;
  gap: 8px;
}

.header-search-icon-container {
  width: 22px;
  height: 22px;
  position: relative;
  opacity: 0.6;
  overflow: hidden;
}

.header-search-icon-element1 {
  width: 14.67px;
  height: 14.67px;
  left: 1.75px;
  top: 2.75px;
  position: absolute;
  border: 1.5px #a1a0a0 solid;
}

.header-search-icon-element2 {
  width: 3.99px;
  height: 3.99px;
  left: 14.26px;
  top: 15.26px;
  position: absolute;
  border: 1.5px #a1a0a0 solid;
}

.header-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #a1a0a0;
  font-size: 12px;
  font-family: Unbounded, sans-serif;
  font-weight: 300;
  letter-spacing: 0.12px;
  flex-grow: 1;
}

.header-nav {
  justify-content: flex-end;
  align-items: center;
  gap: 48px;
  display: flex;
}

.header-nav-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
}

.header-nav-link {
  padding: 8px 16px;
  border-radius: 5px;
  color: var(--Color5, white);
  font-size: 14px !important;
  font-family: Unbounded, sans-serif;
  font-weight: 300 !important;
  line-height: 18px;
  word-wrap: break-word;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}


.header-nav-link:hover,
.catalog-dropdown-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}


.header-nav-link.cosmochat-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-auth-section {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
  gap: 8px;
}

.header-login-button {
  height: 40px;
  padding: 0 25px;
  background: linear-gradient(180deg, #ffef2b 0%, #f9f7d6 100%);
  box-shadow: 2px 2px 4px rgb(0 0 0 / 25%);
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 9px;
  display: inline-flex;
  color: black;
  font-size: 14px !important;
  font-family: Unbounded, sans-serif;
  font-weight: 400;
  line-height: 16px;
  text-decoration: none;
}

.header-login-button .header-auth-button-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) !important;
}

.profile-dropdown-container {
  position: relative;
  display: inline-block;
}

.profile-dropdown-button {
  background-color: transparent !important;
  border: none !important;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

.profile-dropdown-button:hover,
.profile-dropdown-button:focus,
.profile-dropdown-button:active {
  background-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.profile-avatar-wrapper {
  width: 58px;
  height: 58px;
  box-sizing: border-box;
  aspect-ratio: 1/1;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #004e9f;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent !important;
  position: relative;
  box-shadow: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.profile-dropdown-button:hover .profile-avatar-wrapper {
  border-color: #ffef2b !important;
  box-shadow: inset 0 0 0 4px #ffef2b !important;
}

.profile-dropdown-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-dropdown-chevron {
}

.profile-dropdown-menu {
  display: none;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  min-width: 250px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 100;
  right: 0;
  top: calc(100% + 10px);
  padding: 10px 0;
}

@supports not (backdrop-filter: blur(15px)) {
  .profile-dropdown-menu {
    background-color: rgba(255, 255, 255, 0.98);
  }
}

.profile-dropdown-container.open .profile-dropdown-menu {
  display: block;
}

.profile-dropdown-item {
  color: #000;
  padding: 12px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-family: Unbounded, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  white-space: nowrap;
}

.profile-dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #000 !important;
}

.profile-dropdown-notifications {
  color: #004e9f !important;
}

.profile-dropdown-notifications:hover {
  color: #004e9f !important;
}

.profile-dropdown-item-icon {
  width: 20px;
  height: 20px;
  filter: none;
}

.profile-dropdown-notifications .profile-dropdown-item-icon {
  filter: none;
}

.notification-icon-background {
  display: flex;
  width: 35px;
  height: 35px;
  padding: 5px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 50px;
  background: rgba(0, 78, 159, 0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.notification-icon-background img.profile-dropdown-item-icon {
  color: #fff;
}

.profile-dropdown-logout {
  color: #000;
}

.profile-dropdown-logout:hover {
  color: #000 !important;
}

.header-logo-icon-img {
  height: 50px;
  width: auto;
}

.header-logo-icon-container,
.header-logo-icon-element1,
.header-logo-icon-element2 {
  display: none;
}

.header-role-button {
  padding: 8px 12px;
  font-size: 14px;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  gap: 16px;
}


.header-search-icon-img {
  width: 22px; 
  height: 22px; 
  opacity: 0.8; 
}

.header-search-input {
  flex-grow: 1;
}


nav.nav-menu > a.header-nav-link.header-role-button.create-startup-button {
  background: #3fff47 !important;
  color: #000 !important;
  padding: 8px 16px !important;
  border-radius: 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: Unbounded, sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 18px !important;
  text-decoration: none !important;
  border: none !important;
}


nav.nav-menu
  > a.header-nav-link.header-role-button.create-startup-button
  .create-startup-icon {
  filter: invert(0) brightness(0) saturate(100%) !important;
}


.catalog-dropdown-container {
  position: relative;
  display: inline-block;
}

.catalog-dropdown-button {
  background-color: transparent !important;
  border: none !important;
  padding: 8px 16px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--Color5, white) !important;
  font-size: 14px !important;
  font-family: Unbounded, sans-serif !important;
  font-weight: 300 !important;
  line-height: 18px !important;
}

.catalog-dropdown-button:hover {
  background-color: transparent;
}

.catalog-dropdown-button:focus + .catalog-dropdown-menu,
.catalog-dropdown-container:hover .catalog-dropdown-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}


.catalog-dropdown-menu {
  display: none !important; 
  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  z-index: 100;
  left: 0;
  top: calc(100% + 10px);
  padding: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-direction: column; 
  align-items: stretch;
  transform: none;
  opacity: 1;
  transition: none;
}

@supports not (backdrop-filter: blur(15px)) {
  .catalog-dropdown-menu {
    background-color: rgba(255, 255, 255, 0.98);
  }
}


.catalog-dropdown-container.open .catalog-dropdown-menu {
  display: flex !important; 
  transform: none;
  opacity: 1;
}

.catalog-dropdown-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

@media (min-width: 768px) {
  .catalog-dropdown-overlay {
    display: none !important;
  }
  
  .catalog-dropdown-menu {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
  
  .catalog-dropdown-container.open .catalog-dropdown-menu {
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 767px) {
  .catalog-dropdown-container.open + .catalog-dropdown-overlay {
    display: block;
  }
  
  body.catalog-menu-open {
    overflow: hidden;
  }
  
  body.create-menu-open {
    overflow: hidden;
  }
}





.catalog-dropdown-item.no-wave-effect {
  all: unset !important;

  
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 10px 15px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: Unbounded, sans-serif !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  line-height: 18px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  outline: none !important;
  appearance: none !important;
  appearance: none !important;
  appearance: none !important;

  
  color: #000 !important;
  transition:
    transform 0.2s ease,
    font-weight 0.2s ease !important;
}

.catalog-dropdown-item.no-wave-effect:hover {
  
  background: none !important;
  background-color: rgba(0, 0, 0, 0.05) !important;
  border: none !important;
  box-shadow: none !important;

  
  color: #000 !important;

  
  font-weight: 700 !important;
  transform: scale(1.05) !important;
}

.catalog-dropdown-item-icon {
  width: 25px;
  height: 25px;
}

.catalog-dropdown-menu .catalog-dropdown-item-icon[src*="rocket-sharp.svg"],
.catalog-dropdown-menu .catalog-dropdown-item-icon[alt="Франшизы"] {
  filter: grayscale(100%);
}

.create-dropdown-container {
  position: relative;
  display: inline-block;
}

.create-dropdown-button {
  background: #3fff47 !important;
  color: #000 !important;
  padding: 8px 16px !important;
  border-radius: 5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: Unbounded, sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 18px !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer;
}

.create-dropdown-button:hover {
  background: #2dd835 !important;
  color: #000 !important;
}

.create-dropdown-button:focus + .create-dropdown-menu,
.create-dropdown-container:hover .create-dropdown-menu {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.create-dropdown-menu {
  display: none !important; 
  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  min-width: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  z-index: 100;
  left: 0;
  top: calc(100% + 10px);
  padding: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-direction: column; 
  align-items: stretch;
  transform: none;
  opacity: 1;
  transition: none;
}

@supports not (backdrop-filter: blur(15px)) {
  .create-dropdown-menu {
    background-color: rgba(255, 255, 255, 0.98);
  }
}

.create-dropdown-container.open .create-dropdown-menu {
  display: flex !important; 
  transform: none;
  opacity: 1;
}

.create-dropdown-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.create-dropdown-item.no-wave-effect {
  all: unset !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 10px 15px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: Unbounded, sans-serif !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  line-height: 18px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  outline: none !important;
  appearance: none !important;
  color: #000 !important;
  transition:
    transform 0.2s ease,
    font-weight 0.2s ease !important;
}

.create-dropdown-item.no-wave-effect:hover {
  background: none !important;
  background-color: rgba(0, 0, 0, 0.05) !important;
  border: none !important;
  box-shadow: none !important;
  color: #000 !important;
  font-weight: 700 !important;
  transform: scale(1.05) !important;
}

.create-dropdown-item-icon {
  width: 25px;
  height: 25px;
  color: #000;
}


@media (min-width: 1400px) {
  .header-content-wrapper {
    width: 1303px;
  }
  
  .header-search-bar {
    max-width: 400px;
  }
}

@media (max-width: 1399px) {
  .header-content-wrapper {
    width: 1200px;
  }
  
  .header-search-bar {
    max-width: 300px;
  }
}

@media (max-width: 1199px) {
  .header-content-wrapper {
    width: 100%;
    max-width: 95%;
    gap: 12px;
  }
  
  .header-search-bar {
    max-width: 250px;
    padding: 6px 15px;
  }
  
  .header-nav-links {
    gap: 20px;
  }
  
  .header-nav-link {
    font-size: 13px;
    padding: 8px 12px;
  }
}

@media (max-width: 991px) {
  .header-content-wrapper {
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
  }
  
  .header-search-bar {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin-top: 10px;
  }
  
  .header-nav {
    order: 2;
  }
  
  .header-nav-links {
    gap: 15px;
  }
  
  .header-nav-link {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .header-auth-section {
    order: 1;
  }
}

@media (max-width: 767px) {
  #main-header {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  
  .header-content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  
  .header-logo-link {
    align-self: center;
    margin-right: 0;
  }
  
  .header-nav {
    order: 2;
    width: 100%;
  }
  
  .header-nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .header-nav-link {
    font-size: 11px;
    padding: 5px 8px;
    min-width: auto;
  }
  
  .catalog-dropdown-container {
    position: relative;
  }
  
  .catalog-dropdown-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 300px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    padding: 20px 0;
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .catalog-dropdown-container.open .catalog-dropdown-menu {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  
  .catalog-dropdown-item.no-wave-effect {
    padding: 15px 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .catalog-dropdown-item.no-wave-effect:last-child {
    border-bottom: none;
  }
  
  .catalog-dropdown-item-icon {
    width: 20px;
    height: 20px;
  }
  
  .catalog-dropdown-container:hover .catalog-dropdown-menu {
    display: none !important;
  }
  
  .create-dropdown-container:hover .create-dropdown-menu {
    display: none !important;
  }
  
  .create-dropdown-container {
    position: relative;
  }
  
  .create-dropdown-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 300px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    padding: 20px 0;
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .create-dropdown-container.open .create-dropdown-menu {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  
  .create-dropdown-item.no-wave-effect {
    padding: 15px 20px;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .create-dropdown-item.no-wave-effect:last-child {
    border-bottom: none;
  }
  
  .create-dropdown-item-icon {
    width: 20px;
    height: 20px;
    color: #000;
  }
  
  .create-dropdown-container:hover .create-dropdown-menu {
    display: none !important;
  }
  
  .header-search-bar {
    order: 3;
    margin-top: 15px;
    padding: 8px 15px;
  }
  
  .header-auth-section {
    order: 1;
    align-self: center;
  }
  
  .profile-dropdown-button {
    padding: 8px 12px;
  }
  
  .profile-dropdown-avatar {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .header-content-wrapper {
    gap: 15px;
  }
  
  .header-nav-links {
    gap: 8px;
  }
  
  .header-nav-link {
    font-size: 10px;
    padding: 4px 6px;
  }
  
  .header-search-bar {
    padding: 6px 12px;
  }
  
  .header-search-input {
    font-size: 11px;
  }
  
  .profile-dropdown-button {
    padding: 6px 10px;
  }
  
  .profile-dropdown-avatar {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 360px) {
  .header-nav-links {
    flex-direction: column;
    gap: 5px;
  }
  
  .header-nav-link {
    width: 100%;
    text-align: center;
  }
  
  .catalog-dropdown-menu {
    width: 95%;
    max-width: 280px;
  }
  
  .catalog-dropdown-item.no-wave-effect {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .catalog-dropdown-item-icon {
    width: 18px;
    height: 18px;
  }
  
  .catalog-dropdown-container:hover .catalog-dropdown-menu {
    display: none !important;
  }
    font-size: 11px;
    padding: 6px;
  }
  
  .header-search-bar {
    padding: 5px 10px;
  }
  
  .header-search-input {
    font-size: 10px;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .header-content-wrapper {
    flex-direction: row;
    gap: 15px;
  }
  
  .header-nav-links {
    flex-direction: row;
    gap: 10px;
  }
  
  .header-search-bar {
    order: 2;
    margin-top: 0;
    flex: 1;
  }
}

@media (min-height: 800px) and (max-width: 767px) {
  #main-header {
    padding-top: 25px;
    padding-bottom: 25px;
  }
}

@media (max-height: 600px) {
  #main-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  
  .header-content-wrapper {
    gap: 10px;
  }
}
