/* ========== Header ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transform: translateY(0);
  transition:
    background-color 0.3s ease,
    transform 0.3s ease 0s;
  background-color: transparent;
}

.header.is-hidden {
  transform: translateY(-100%);
  transition:
    background-color 0.3s ease,
    transform 0.3s ease 0.5s;
}

.header__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 32px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
  padding: 20px 16px;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.header__menu {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.header__menu li {
  position: relative;
}

.header__menu li a {
  text-decoration: none;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  color: var(--text-primary);
  transition: color 0.2s ease;
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
}

.header__menu li a.red {
  color: var(--text-danger);
}

.header__menu li a.light-blue {
  color: var(--text-light-blue);
}

.header__menu li a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-primary);
  transition:
    width 0.3s ease,
    left 0.3s ease;
  transform: translateX(-50%);
}

.header__menu li a.red::after {
  background-color: var(--text-danger);
}

.header__menu li a.light-blue::after {
  background-color: var(--text-light-blue);
}

.header__menu li a:hover::after {
  width: 100%;
  left: 50%;
}

.header__menu li a:hover {
}

.header__menu li a.active:hover,
.header__menu li a.highlight:hover {
}

.header__divider {
  width: 2px;
  height: 20px;
  background-color: var(--border-primary, #d6d6d6);
  margin: 0 24px;
}

.header.scrolled {
  background-color: var(--bg-primary);
}

.header.scrolled .header__nav {
  background-color: transparent;
}

.header:hover {
  background-color: var(--bg-primary);
}

.header:hover .header__nav {
  background-color: transparent;
}

.header:not(:hover) .header__nav {
  background-color: var(--bg-primary);
}

.header.scrolled:not(:hover) .header__nav {
  background-color: transparent;
}

@media (max-width: 1279px) {
  .header {
    /* position: static; */
    height: auto;
    background-color: var(--bg-primary);
  }

  .header__container {
    justify-content: center;
    padding: 20px 0;
    height: auto;
  }

  .header__nav,
  .header__divider {
    display: none;
  }

  .header__logo img {
    height: 16px;
  }

  .header.scrolled {
    /* background-color: transparent; */
  }

  .header.scrolled .header__nav {
    background-color: var(--bg-primary);
  }

  .header:hover {
    /* background-color: transparent; */
  }
}

.footer {
  background-color: var(--bg-darkBlue);
  color: var(--text-inverse);
  padding: 32px;
}

.footer__container {
  max-width: 1216px;
  margin: 0 auto;
}

/* Десктоп по умолчанию (1280px+) */
.footer__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer__col--mission {
  display: block;
  max-width: 80%;
}

.footer__col--info {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer__col--mrg-left {
  margin-left: 32px;
}

.footer__title {
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer__col--info .footer__title {
  font-feature-settings:
    "liga" off,
    "clig" off;
  font-size: 16px;
  line-height: 22px;
  text-transform: none;
}

.footer__text,
.footer__list,
.footer__link {
  font-feature-settings:
    "liga" off,
    "clig" off;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  color: var(--text-inverse);
}

.footer__text--mrg-bot {
  margin-bottom: 12px;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  margin-bottom: 16px;
}

.footer__list li:last-child {
  margin-bottom: 0;
}

.footer__link {
  /* position: relative; */
  -webkit-text-decoration-line: underline;
  text-decoration-line: underline;
  -webkit-text-decoration-color: transparent;
  text-decoration-color: transparent;
  transition: -webkit-text-decoration-color 0.25s linear;
  transition: text-decoration-color 0.25s linear;
  transition:
    text-decoration-color 0.25s linear,
    -webkit-text-decoration-color 0.25s linear;
  transition:
    text-decoration-color 0.25s linear,
    -webkit-text-decoration-color 0.25s linear;
}

.footer__link:hover {
  -webkit-text-decoration-color: var(--text-inverse);
  text-decoration-color: var(--text-inverse);
}

.footer__bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: 32px;
}

.footer__copy {
  font-feature-settings:
    "liga" off,
    "clig" off;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
}

/* Планшет: max-width 1279px */
@media (max-width: 1279px) {
  .footer {
    padding: 40px 56px 24px;
  }

  .footer__col--mission {
    display: none; /* Скрываем колонку «Наша миссия» */
  }

  .footer__main {
    display: flex;
  }

  .footer__col--info {
    width: 100%;
    gap: 16px;
  }

  .footer__bottom {
    padding-top: 24px;
  }
}

/* Мобилка: max-width 767px */
@media (max-width: 767px) {
  .footer {
    padding: 32px 16px;
  }

  .footer__main {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0;
  }

  .footer__col-min {
    border-bottom: 1px solid var(--footer-border);
  }

  .footer__col-min {
    padding-bottom: 16px;
  }

  .footer__col-min:last-child {
    padding-bottom: 24px;
  }

  .footer__col--info {
    display: flex;
    flex-direction: column;
  }

  .footer__link {
    padding-left: 16px;
  }

  .footer__title {
    margin-bottom: 12px;
  }

  .footer__bottom {
    border-top: none;
    padding-top: 16px;
  }
}
