.header {
  position: relative;
  background-color: var(--bg-tertiary-color);
  z-index: 5;
}

.header__container {
  width: 100%;
  max-height: 60px;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  background-color: var(--bg-tertiary-color);
  box-sizing: border-box;
}

.header__navbar.navbar {
  width: 100%;
  max-width: 1920px;
  padding: 8px 64px;
  display: flex;
  justify-content: space-between;
}

.header__navbar.navbar_light {
  background-color: var(--bg-primary-color);
}

.header__navbar.navbar_mob {
  display: none;
}

.logo__link {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo__image {
  max-height: 44px;
}

.logo_image_mob {
  max-height: 84px;
}

.logo__title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-family-logo);
  color: var(--logo-color);
}

.nav {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav.nav_mob {
  padding: 24px 12px;
  flex-direction: column;
}

.nav__item {
  display: flex;
  align-items: center;
}

.nav__link {
  font-weight: 500;
  color: var(--text-tertiary-color);
}

.navbar_light .nav__link {
  color: var(--text-secondary-color);
}

.nav_mob > li > .nav__link {
  padding: 0 16px;
  font-weight: 600;
  color: var(--text-secondary-color);
}

.header__dropdown-header {
  width: 100%;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.header__dropdown-header_open {
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--bg-tertiary-color);
}

.header__dropdown-header_light {
  background-color: var(--bg-primary-color);
}

.header__dropdown-content {
  width: 100%;
  height: 100dvh;
  max-height: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--bg-primary-color);
  overflow: hidden;
  transition: var(--transition);
}

.header__dropdown-content_opened {
  max-height: 100dvh;
}

.header__menu-button {
  width: 32px;
  height: 32px;
  background-color: transparent;
  border: 0;
  padding: 0;
}

.header__content {
  max-width: 1920px;
  margin: 60px auto 0;
  padding: 76px 96px 76px;
}

.header__title {
  margin-bottom: 40px;
  font-size: 120px;
}

.header__subtitle {
  font-size: 20px;
  font-weight: 500;
}

.header__title,
.header__subtitle {
  text-align: center;
  color: var(--text-tertiary-color);
}

.main {
  padding: 0 60px;
  flex: 1 0;
  background-color: var(--bg-primary-color);
}

.main_empty {
  margin-top: 60px;
}

.footer {
  padding: 76px 60px 24px;
  background-color: var(--bg-tertiary-color);
}

.footer_empty {
  padding-top: 48px;
}

.footer__container {
  margin: 0 auto;
  max-width: 1920px;
}

.footer__logo .logo__image {
  max-height: 50px;
}

.footer__contacts {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__contacts_empty {
  margin-bottom: 48px;
}

.footer__contacts-list {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
  list-style: none;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact__icon {
  width: 50px;
  height: 50px;
  padding: 9px;
  background-color: var(--bg-primary-color);
  border-radius: 50%;
}

.footer__divider {
  margin-bottom: 24px;
  width: 100%;
  height: 1px;
  background-color: var(--divider-color);
}

.footer__agreements {
  display: flex;
  justify-content: space-between;
}

.footer__agreements-list {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  list-style: none;
}

.contact__name,
.footer__agreements > p,
.footer__agreements-list > li > a {
  margin: 0;
  color: var(--text-tertiary-color);
  font-weight: 700;
}

@media (max-width: 1280px) {
  .header__content {
    padding: 64px;
  }
  .header__title {
    font-size: 96px;
  }

  .main {
    padding: 0 48px;
  }

  .footer {
    padding: 76px 48px 24px;
  }

  .footer__agreements {
    flex-direction: column;
    gap: 12px;
  }

  .footer__agreements > p {
    text-align: center;
  }

  .footer__agreements-list {
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .header__navbar.navbar {
    padding: 8px 32px;
  }
  .nav {
    gap: 32px;
  }
  .header__content {
    padding: 48px 32px;
  }
  .header__title {
    font-size: 76px;
  }
  .main {
    padding: 0 32px;
  }
  .footer {
    padding: 76px 32px 24px;
  }
}

@media (max-width: 840px) {
  .footer {
    padding: 64px 32px 24px;
  }

  .footer__contacts {
    margin-bottom: 16px;
  }

  .footer_empty {
    padding-top: 32px;
  }

  .footer__contacts_empty {
    margin-bottom: 32px;
  }

  .footer__agreements > p,
  .footer__agreements-list > li > a {
    font-size: 14px;
  }
  .footer__contacts-list {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 800px) {
  .header__navbar.navbar {
    padding: 8px 24px;
  }
  .header__content {
    padding: 40px 24px;
  }
  .header__title {
    font-size: 76px;
  }
  .header__subtitle {
    margin-bottom: 0;
  }
  .main {
    padding: 0 20px;
  }
  .footer {
    padding: 64px 20px 24px;
  }
}

@media (max-width: 768px) {
  .header__navbar.navbar {
    display: none;
  }

  .header__navbar.navbar_mob {
    display: block;
  }

  .header__content {
    margin-top: 100px;
  }

  .header__title {
    margin-bottom: 32px;
  }

  .header__subtitle {
    font-size: 16px;
  }

  .main_empty {
    margin-top: 100px;
  }
}

@media (max-width: 740px) {
  .header__title {
    font-size: 56px;
  }
  .main {
    padding: 0 16px;
  }
  .footer__agreements-list {
    flex-direction: column;
    gap: 12px;
  }
  .footer__agreements-list > li > a {
    width: 100%;
    text-align: center;
    display: inline-block;
  }
  .footer__agreements {
    flex-direction: column-reverse;
  }
}

@media (max-width: 576px) {
  .header__content {
    padding: 32px 16px;
  }
  .header__title {
    margin-bottom: 20px;
    font-size: 48px;
  }

  .header__subtitle {
    font-size: 14px;
  }
  .footer {
    padding: 24px;
  }
  .footer__contacts {
    margin-top: 8px;
  }
  .footer__contacts_empty {
    margin-top: 0;
    margin-bottom: 24px;
  }
  .footer__logo .logo__image {
    max-height: 72px;
  }

  .contact__icon {
    width: 32px;
    height: 32px;
  }
  .footer__logo .logo__title {
    display: none;
  }
}

@media (max-width: 500px) {
  .header__title {
    font-size: 36px;
  }
}
