@import url('./header.css');
@import url('./main.css');
@import url('./footer.css');

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  color: var(--font-main-color-1);
  font-family: 'Roboto';
  margin: 0;
  min-height: 100%;
}

body > .topbar {
  position: fixed;
  background-color: var(--secondary-color-8);
  border-bottom: 1px solid var(--secondary-color-10);
  width: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}

body > .topbar .topbar__container {
  position: relative;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 70px;
  padding-right: 70px;
  margin: 0 auto;
  width: 100%;
  max-width: 1700px;
  height: 150px;
}

@media (max-width: 1024px) {
  body > .topbar .topbar__container {
    height: 100px;
  }
}

@media (max-width: 1699px) {
  body > .topbar .topbar__container {
    padding-left: 70px;
    padding-right: 70px;
  }
}

@media (max-width: 499px) {
  body > .topbar .topbar__container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

body > .topbar .topbar__brand-container {
  display: flex;
  align-items: center;
}

body > .topbar .topbar__brand img {
  width: 100%;
}

@media (max-width: 1024px) {
  body > .topbar .topbar__brand {
    width: 96px;
  }
}

body > .topbar .topbar__brand-link {
  display: flex;
}

body > .topbar .topbar__title-container {
  display: flex;
  align-items: center;
  text-align: center;
  max-width: 370px;
}

@media (max-width: 799px) {
  body > .topbar .topbar__title-container {
    display: none;
  }
}

body > .topbar .topbar__title {
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 400;
  user-select: none;
}

@media (max-width: 1699px) {
  body > .topbar .topbar__title {
    font-size: 14px;
  }
}

body > .topbar .topbar__navigation-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: end;
}

@media (max-width: 1699px) {
  body > .topbar .topbar__navigation-container {
    flex-direction: row-reverse;
    align-items: center;
  }
}

body > .topbar .navigation__list,
body > .topbar .social-block__list {
  display: flex;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 1699px) {
  body > .topbar .social-block__list {
    align-items: center;
    height: 100%;
  }
}

body > .topbar .navigation {
  border: 1px solid var(--secondary-color-9-opacity-0-5);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 10px;
}

@media (max-width: 1699px) {
  body > .topbar .navigation {
    margin-bottom: unset;
  }
}

body > .topbar .navigation .navigation__button {
  background-color: var(--secondary-color-8);
  border: 0;
  padding: 10px;
  cursor: pointer;
  transition: background-color .2s;
}

body > .topbar .navigation .navigation__button.button_burger {
  display: none;
  border-radius: 50px;
}

body > .topbar .navigation .navigation__button .button__icon {
  stroke: var(--icon-main-color-1);
  width: 32px;
  height: 32px;
}

@media (max-width: 1699px) {
  body > .topbar .navigation .navigation__button.button_burger {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  body > .topbar .navigation .navigation__button.button_burger:hover,
  body > .topbar .navigation .navigation__button.button_burger:active,
  body > .topbar .navigation .navigation__button.button_is-active {
    background-color: var(--secondary-color-15);
  }

  body > .topbar .navigation .navigation__button.button_burger:focus {
    background-color: var(--secondary-color-3);
  }
}

@media (max-width: 1699px) {
  body > .topbar .navigation .navigation__list {
    position: absolute;
    display: none;
    flex-direction: column;
    right: 0;
    top: 100%;
  }

  body > .topbar .navigation .list__item:first-child {
    border-top: 1px solid var(--secondary-color-15);
  }

  body > .topbar .navigation .list__item:not(:last-child) {
    border-bottom: 1px solid var(--secondary-color-15);
  }
}

body > .topbar .navigation .list__item .item__link {
  display: flex;
  background-color: var(--empty);
  text-decoration: none;
  color: var(--font-main-color-1);
  border-radius: 50px;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  transition: background-color .2s;
}

@media (max-width: 1699px) {
  body > .topbar .navigation .list__item .item__link {
    background-color: var(--secondary-color-8);
    border-radius: 0;
    padding: 20px 70px;
  }

  body > .topbar .navigation .list__item:last-child .item__link {
    border-bottom-left-radius: 50px;
  }

  body > .topbar .navigation .list__item .item__link:hover,
  body > .topbar .navigation .list__item .item__link:active {
    background-color: var(--secondary-color-15);
  }

  body > .topbar .navigation .list__item .item__link:focus {
    background-color: var(--secondary-color-3);
  }
}

@media (min-width: 1700px) {
  body > .topbar .navigation .list__item .item__link:hover,
  body > .topbar .navigation .list__item .item__link:active {
    background-color: var(--secondary-color-3-opacity-0-5);
  }

  body > .topbar .navigation .list__item .item__link:focus {
    background-color: var(--secondary-color-3);
  }
}

body > .topbar .navigation .list__item .item__label {
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 500;
}

@media (max-width: 1699px) {
  body > .topbar .navigation .list__item .item__label {
    font-size: 16px;
  }
}

body > .topbar .social-block {
  display: flex;
  align-items: center;
}

@media (max-width: 1699px) {
  body > .topbar .social-block {
    margin-right: 20px;
  }
}

body > .topbar .social-block__label,
body > .topbar .social-block__label::after {
  font-size: 20px;
  font-weight: 500;
}

@media (max-width: 1699px) {
  body > .topbar .social-block__label,
  body > .topbar .social-block__label::after {
    display: none;
  }
}

body > .topbar .social-block__label::after {
  content: ':';
  margin-right: 20px;
}

body > .topbar .social-block__list > .item:not(:last-child) {
  margin-right: 20px;
}

body > .topbar .social-block .link {
  display: flex;
}

@media (max-width: 1699px) {
  body > .topbar .social-block .link {
    justify-content: center;
    align-items: center;
  }
}

body > .topbar .social-block .link__icon {
  fill: var(--icon-main-color-1);
  width: 30px;
  height: 30px;
  transition: fill .2s;
}

@media (max-width: 1699px) {
  body > .topbar .social-block .link__icon {
    width: 48px;
    height: 48px;
  }
}

body > .topbar .social-block .link__icon:hover,
body > .topbar .social-block .link__icon:focus {
  fill: var(--secondary-color-9);
}

body > .topbar .social-block .link__icon:active {
  fill: var(--secondary-color-3);
}