.header {
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  background: transparent;
}

.header__content {
  width: 100%;
}

.header__logo img {
  display: block;
  height: 3.625rem;
  width: 8rem;
  object-fit: contain;
}

.header__logo-text {
  font-family: var(--heading-font-family);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.header__menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__menu li a {
  display: inline-block;
  padding: 0.875rem 1.5625rem;
  background-color: var(--light-black);
  color: var(--white);
  text-decoration: none;
  border-radius: 2rem;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 135%;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header__menu li a:hover,
.header__menu li.current-menu-item a {
  background-color: rgba(255, 255, 255, 0.25);
}

.header__btn--phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5625rem;
  background-color: var(--white);
  color: var(--black);
  text-decoration: none;
  border-radius: 2rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 135%;
  font-weight: 700;
}

.header__btn--menu {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  background-color: var(--light-black);
  border: 1px solid var(--light-black);
  color: var(--white);
  border-radius: 31px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.header.header--solid .header__menu li a {
  color: var(--black);
  background-color: rgba(0, 0, 0, 0.06);
}

.header.header--solid .header__menu li a:hover,
.header.header--solid .header__menu li.current-menu-item a {
  color: var(--black);
  background-color: rgba(0, 0, 0, 0.12);
}

.header.header--solid .header__btn--menu {
  background-color: transparent;
  border-color: var(--black);
  color: var(--black);
}

@media (max-width: 959px) {
  .header {
    top: 0;
    padding: 1.25rem 0.5rem;
  }

  .header__logo img {
    height: 2.625rem;
    width: 5.75rem;
  }
}

.footer {
  padding: 2rem 0.5rem 0.5rem;
  color: var(--white);
}

.footer__card {
  background-color: var(--light-black);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2rem;
  padding: 3.5rem 4rem 2.5rem;
}

.footer__columns { gap: 4.5rem; }

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
  display: block;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__list li,
.footer__list li a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1.4;
}

.footer__list li a:hover { color: var(--white); }

.footer__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 3.5rem 0 2rem;
}

.footer__socials { gap: 0.75rem; }

.footer__social-link {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  text-decoration: none;
}

.footer__social-link svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
}

.footer__social-link:hover {
  border-color: var(--white);
  color: var(--black);
  background-color: var(--white);
}

.footer__copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

@media (max-width: 959px) {
  .footer__card {
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 1.5rem;
  }

  .footer__top {
    flex-direction: column;
    gap: 3rem;
  }

  .footer__columns {
    flex-direction: column;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer__divider { margin: 2.5rem 0 1.5rem; }

  .footer__list li,
  .footer__list li a {
    font-size: 0.875rem;
  }
}

.burger-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--black);
  color: var(--white);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.burger-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.burger-menu__container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.25rem;
  box-sizing: border-box;
}

.burger-menu__header { width: 100%; }

.burger-menu__close {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.25rem;
  padding: 0.5rem 1rem;
  color: var(--white);
  font-size: 0.875rem;
  cursor: pointer;
}

.burger__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 1.5rem;
}

.burger__menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 500;
}

.burger-menu__content {
  flex-grow: 1;
  margin: 0 auto;
}

.burger-menu__socials {
  gap: 0.5rem;
  margin-top: 2.375rem;
  margin-bottom: 2.375rem;
}

.burger-menu__phone {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
}

body.error-404 .header {
  position: relative;
}

.error-404-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
}

.error-404-page .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error-404-page__code {
  font-family: var(--heading-font-family);
  font-size: var(--heading-1);
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  margin-bottom: 1rem;
}

.error-404-page .heading { margin: 0 0 1.5rem; }
.error-404-page .text { max-width: 36rem; margin: 0 0 2.5rem; }

@media screen and (max-width: 959px) {
  .error-404-page__code { font-size: var(--heading-1-m); }
}
