:root {
  --header-bottom-height: 57px;
}

.logo img {
  display: inline-block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.burger-button {
  margin: 0;
  padding: 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 3px;
  transition: all 300ms ease;
}

.burger-button:hover {
  opacity: 0.75;
}

.burger-button__line {
  display: block;
  position: absolute;
  height: 3px;
  width: 18px;
  background-color: #ff6766;
  border-radius: 3px;
  transition: all 300ms ease;
}

.burger-button.active {
  background-color: rgba(61, 39, 66, 0.8);
  z-index: 700;
}

.burger-button__line {
  top: 50%;
  transform: translateY(-50%);
}

.burger-button__line:first-child {
  transform: translateY(calc(-50% - 6px));
}

.burger-button__line:last-child {
  transform: translateY(calc(-50% + 6px));
  width: 9px;
}

.burger-button.active .burger-button__line:first-child {
  transform: translateY(-50%) rotateZ(45deg);
  transform-origin: center;
}

.burger-button.active .burger-button__line:nth-child(2) {
  opacity: 0;
}

.burger-button.active .burger-button__line:last-child {
  transform: translateY(-50%) rotateZ(-45deg);
  transform-origin: center;
  width: 18px;
}

.user-profile-button {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  cursor: pointer;
  position: relative;
}

.user-profile-button.active {
  z-index: 700;
}

.user-profile-button img {
  display: block;
}

.user-profile-button__image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 14px;
}

.user-profile-button__image--bordered {
  border: 2px solid #ff6766;
}

.user-profile-button__arrow {
  width: 7px;
  height: auto;
}

/****************
*** Header
****************/

.header {
  font-family: "Oksana", "Oksana Sans Narrow", "Montserrat-Bold", sans-serif;
}

.header .header-top {
  width: 100% !important;
}

.header-top {
  background-color: #290b2e;
  padding: 12px 20px;
  position: relative;
  height: auto !important;
}

.header-top__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  gap: 20px;
  width: 100%;
  max-width: 1190px;
  margin: 0 auto;
}

.header-top__left,
.header-top__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.header-top__left {
  flex-grow: 1;
}

.header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  margin-right: 20px;
}

.header__notification {
  margin-left: 16px;
}

.header__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.header__user-block {
  display: flex;
  align-items: center;
}

.header__user {
  margin-left: 16px;
}

.header__auth-buttons .toggle__button {
  min-width: 120px;
  font-size: 12px;
  padding: 8px 10px;
  height: auto;
  min-height: 36px;
}

.header-top-links {
  list-style-type: none;
  margin: 0;
  padding: 0;
  padding-left: 40px;
  align-items: center;
  flex-wrap: wrap;
  display: none;
}

.header-top-links__item {
  margin-right: 20px;
}

.header-top-links__item:last-child {
  margin-right: 0;
}

.header-top-links__link {
  color: inherit;
  text-decoration: none;
  transition: color 200ms;
  font-size: 12px;
  display: flex;
  align-items: center;
  height: 100%;
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.09);
  padding: 5px 0;
}

.header-top-links__link img {
  display: block;
  max-width: 18px;
  height: auto;
  margin-right: 10px;
}

.header-top-links__link:hover {
  color: #ff6766;
  text-decoration: none;
}

.header-top-menu {
  margin: 0;
  border-radius: 25px;
  z-index: 700;
  overflow: auto;
  width: 300px;
  padding: 15px;
  -webkit-transition: all 0.22s ease-out;
  -o-transition: all 220ms ease-out;
  transition: all 220ms ease-out;
  border-radius: 20px;
  background-color: #1e1548;
  animation: fadeInMenu 300ms ease forwards;
}

.header-top-menu__logo {
  display: block;
  max-width: 100px;
  margin-bottom: 20px;
}

.header-top-menu__logo img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes fadeInMenu {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-top-menu__list {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.header-top-menu__item:not(:last-child) {
  margin-bottom: 22px;
}

.header-top-menu__link {
  display: flex;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 220ms ease-out;
}

.header-top-menu__link:hover {
  color: #ff6766;
}

.header-top-menu__link img {
  display: block;
  width: 20px;
  height: 20px;
  margin-right: 11px;
}

.header-top-menu__link i {
  font-size: 22px;
  width: 20px;
  margin-right: 11px;
  color: rgba(113, 100, 255, 0.5);
}

.header-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
}

.header-menu.active {
  display: block;
}

.header-user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  display: none;
}

.header-user-menu.active {
  display: block;
}

@media (min-width: 576px) {
  .header__logo {
    display: none;
  }
}

@media (min-width: 768px) {
  .header__user {
    margin-left: 30px;
  }

  .header-top__links {
    display: flex;
  }

  .header-top-menu {
    padding: 22px;
    font-size: 18px;
  }
}

/**************
*** navigation
***************/

.navigation {
  --container-padding: 20px;
  --container-max-width: 1190px;
  --logo-width: 0px;
  --nav-bg-color: transparent;
  --navigation-padding-x: calc(100vw - var(--container-max-width));

  display: flex;
  line-height: 1.2;
  min-height: var(--header-bottom-height);
}

.navigation__left {
  background-color: var(--nav-bg-color);
  padding-left: max(
    calc(var(--navigation-padding-x) / 2),
    var(--container-padding)
  );
}

.navigation__items {
  flex: 1;
  padding-right: max(
    calc(var(--navigation-padding-x) / 2),
    var(--container-padding)
  );
  background-color: var(--nav-bg-color);
  overflow-x: auto;
}

.navigation__logo {
  display: none;
  position: relative;
}

.navigation__tagline {
  display: none;
  font-size: 10px;
  text-transform: uppercase;
  margin: 0;
  padding-right: 20px;
  margin-right: 25px;
  position: relative;
}

.navigation__tagline::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 50px;
  width: 3px;
  background-color: #fff;
}

.navigation__list-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: calc(var(--container-padding) * -1);
}

.navigation-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  padding: 10px 0;
}

.navigation-list::-webkit-scrollbar {
  display: none;
}

.navigation-list__item {
  margin-right: 10px;
}

.navigation-list__link {
  display: inline-block;
  position: relative;
  color: inherit;
  font-size: 9px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  padding: 11px 7px 9px;
  background-color: rgb(61, 39, 66, 0.8);
  text-align: center;
  min-width: 80px;
  white-space: nowrap;
  transition: color 200ms;
}

.navigation-list__link::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ff6766;
  display: none;
}

.navigation-list__link:not(.navigation-list__link--active):hover {
  color: #ff6766;
  text-decoration: none;
}

.navigation-list__link--active::after {
  display: block;
}

@media (min-width: 411px) {
  .navigation-list__link {
    font-size: 12px;
    padding: 12px 10px 10px;
  }

  .navigation-list__item {
    margin-right: 12px;
  }
}

@media (min-width: 576px) {
  .navigation {
    --logo-width: 110px;
    --nav-bg-color: rgba(61, 39, 66, 0.8);
  }

  .navigation__logo {
    display: flex;
    width: var(--logo-width);
    height: 100%;
    padding-right: 30px;
  }

  .navigation__left {
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 15px) 100%, 0% 100%);
  }

  .navigation__items {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    clip-path: polygon(15px 0%, 100% 0%, 100% 100%, 0% 100%);
    margin-left: -10px;
  }

  .navigation-list {
    flex-wrap: wrap;
  }

  .navigation-list__link {
    background-color: transparent;
    padding: 12px 0 10px;
    min-width: 60px;
  }

  .navigation-list__link::after {
    width: 50px;
    left: 50%;
    transform: translateX(-50%);
    top: initial;
    bottom: 2px;
  }

  .navigation-list__item:last-child {
    margin-right: 0;
  }

  .navigation__list-wrapper {
    margin-right: 0;
  }
}

@media (min-width: 768px) {
  :root {
    --header-bottom-height: 70px;
  }

  .navigation {
    --logo-width: 140px;
  }

  .navigation__logo {
    padding-right: 40px;
  }

  .navigation__left {
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
  }

  .navigation__items {
    clip-path: polygon(20px 0%, 100% 0%, 100% 100%, 0% 100%);
  }

  .navigation-list__link {
    font-size: 16px;
  }

  .navigation-list__item {
    margin-right: 20px;
  }
}

@media (min-width: 992px) {
  :root {
    --header-bottom-height: 90px;
  }

  .navigation {
    --logo-width: 190px;
  }

  .navigation__logo {
    padding-right: 50px;
  }

  .navigation__left {
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 30px) 100%, 0% 100%);
  }

  .navigation__items {
    justify-self: auto;
    display: flex;
    align-items: center;
    clip-path: polygon(30px 0%, 100% 0%, 100% 100%, 0% 100%);
    margin-left: -20px;
    padding-left: 55px;
  }

  .navigation__tagline {
    display: block;
  }

  .navigation__list {
    justify-content: space-between;
    width: 100%;
  }

  .navigation__list-wrapper {
    flex: 1;
  }

  .navigation-list__link {
    font-size: 14px;
  }

  .navigation-list__link {
    font-size: 18px;
  }
}

@media (min-width: 1200px) {
  :root {
    --header-bottom-height: 116px;
  }

  .navigation {
    --logo-width: 230px;
  }

  .navigation__tagline {
    font-size: 12px;
    padding-right: 22px;
  }

  .navigation-list__link {
    font-size: 20px;
  }
}

/*****************
*** Toggle
*****************/

.toggle {
  display: flex;
  align-items: center;
  border-radius: 25px;
  font-family: "Nunito", "Oksana", "Oksana Sans Narrow", "Montserrat-Bold",
    sans-serif;
}

.toggle__button {
  font-family: inherit;
  font-weight: 900;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 2px solid #6d61ff;
  height: 100%;
  height: 40px;
  margin: 0;
  font-size: 14px;
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.09);
  transition: color 200ms;
}

.toggle__button--active {
  background: radial-gradient(
    133% 155% at 32% -12%,
    #9186ff 0%,
    #6d61ff 33%,
    #574aff 91%
  );
  border: none;
}

.toggle__button:not(:disabled) {
  cursor: pointer;
}

.toggle__button:not(:disabled):hover {
  color: rgba(255, 255, 255, 0.8);
}

.toggle__button:last-child {
  border-top-right-radius: inherit;
  border-bottom-right-radius: inherit;
}

.toggle__button:first-child {
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
}

@media only screen and (max-width: 991px) {
  .header-top {
    height: auto;
  }
}

@media (min-width: 576px) {
  .header-top .header__logo {
    display: none !important;
  }
}

@media only screen and (max-width: 1300px) {
  .header-top {
    width: 100% !important;
    height: auto;
  }
}

.hero--trainer {
  padding-top: var(--header-bottom-height);
}

@media only screen and (max-width: 767px) {
  .hero--trainer {
    padding: 16px 0 58px;
    padding-top: var(--header-bottom-height);
  }
}

@media only screen and (max-width: 991px) {
  .hero--trainer {
    padding: 60px 0;
    padding-top: var(--header-bottom-height);
  }
}

@media only screen and (max-width: 1220px) {
  .hero--trainer {
    padding: 85px 0 90px;
    padding-top: var(--header-bottom-height);
  }
}

@media (max-width: 400px) {
  .header-top__right {
    flex: 1;
    justify-content: flex-end;
  }

  .header__auth-buttons {
    width: 100%;
  }
}
