.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
  background: #1f255a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Equal side columns keep logo optically centered. */
.header--header-2 .header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  position: relative;
}

.header--header-2 .header__nav {
  display: block;
  justify-self: start;
  min-width: 0;
}

.header--header-2 .header__logo {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  grid-column: 2;
  flex-shrink: 0;
}

.header--header-2 .header__logo img {
  display: block;
  width: 118px;
  height: 49px;
}

.header--header-2 .header__list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 70px;
  align-items: center;
}

.header--header-2 .header__link {
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  line-height: 21px;
  transition: color 0.2s ease;
}

.header--header-2 .header__link:hover {
  color: rgba(255, 255, 255, 0.82);
}

.header--header-2 .header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
  justify-self: end;
  min-width: 0;
  flex-shrink: 0;
}

.header--header-2 .header__buttons {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header--header-2 .header__login,
.header--header-2 .header__register {
  width: auto;
  min-width: 0;
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
  box-sizing: border-box;
}

.header--header-2 .header__login {
  background: #8b5cf6;
  color: #ffffff;
  border: 0;
  font-size: 12px;
}

.header--header-2 .header__register {
  background: transparent;
  color: #8b5cf6;
  border: 1px solid #8b5cf6;
  font-size: 11px;
}

.header--header-2 .header-search {
  display: inline-flex;
  align-items: center;
  width: 180px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--header-search-bg, #2a2f67);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.header--header-2 .header-search__input {
  display: inline-flex;
  align-items: center;
  width: calc(100% - 40px);
  height: 100%;
  padding: 0 0 0 13px;
  border: 0;
  background: transparent;
  color: var(--header-search-text, #ffffff);
  font-size: 12px;
  font-weight: 500;
  line-height: 21px;
  outline: none;
  user-select: none;
}

.header--header-2 .header-search__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 34px;
  border: 0;
  background: var(--header-search-btn-bg, #7c3aed);
  color: var(--header-search-icon, #ffffff);
  flex-shrink: 0;
}

.header--header-2 .header-search__button svg {
  width: 16px;
  height: 17px;
}

.header--header-2 .header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 11px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.header--header-2 .header__burger svg {
  display: block;
  width: 20px;
  height: 11px;
}

@media (max-width: 1180px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .header--header-2 .header__list {
    gap: 24px 40px;
  }

  .header--header-2 .header__actions {
    gap: 16px;
  }

  .header--header-2 .header__buttons {
    gap: 16px;
  }
}

@media (max-width: 991px) {
  .header--header-2 .header__inner {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .header--header-2 .header__nav {
    display: none;
  }

  .header--header-2 .header__nav.header__nav--open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 16px 20px;
    background: var(--header-nav-open-bg, #1f255a);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 20;
  }

  .header--header-2 .header__nav--open .header__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header--header-2 .header__logo {
    grid-column: 1;
    justify-self: start;
  }

  .header--header-2 .header__logo img {
    width: 85px;
    height: 35px;
  }

  .header--header-2 .header__actions {
    grid-column: 2;
    justify-self: end;
    gap: 20px;
  }

  .header--header-2 .header__burger {
    display: inline-flex;
  }

  .header--header-2 .header-search {
    display: none;
  }

  .header--header-2 .header__buttons {
    gap: 20px;
  }
}
