/* Подвал сайта (include/footer_inc.php, меню — components/bitrix/menu/footer).
   Подключается после css/style.css и переопределяет его старые правила .footer*.
   Тёмный подвал с синим акцентом: бренд и CTA, колонки ссылок, внизу реквизиты и разработчик. */

.footer {
  --ft-bg: #0e1726;
  --ft-ink: #fff;
  --ft-muted: rgba(255, 255, 255, .64);
  --ft-line: rgba(255, 255, 255, .1);
  --ft-primary: #008aff;
  --ft-primary-hover: #2a9dff;
  position: relative;
  overflow: hidden;
  padding: 64px 0 32px;
  background: var(--ft-bg);
  color: var(--ft-ink);
}
/* синяя подсветка в углу и тонкая линия сверху */
.footer::before {
  content: "";
  position: absolute;
  top: -240px;
  left: -160px;
  width: 560px;
  height: 480px;
  background: radial-gradient(closest-side, rgba(0, 138, 255, .22), transparent);
  pointer-events: none;
}
.footer::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 138, 255, .7), transparent);
}

.footer .footer__container {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 15px;
  line-height: 1.5;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
  padding-bottom: 48px;
}

.footer__logo {
  display: inline-block;
}
.footer__logo img {
  display: block;
  width: auto;
  height: 32px;
}
.footer__tagline {
  max-width: 360px;
  margin: 20px 0 24px;
  color: var(--ft-muted);
}
.footer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
  color: var(--ft-ink);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.footer__btn--primary {
  border-color: var(--ft-primary);
  background: var(--ft-primary);
}
@media (any-hover: hover) {
  .footer__btn:hover {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .06);
  }
  .footer__btn--primary:hover {
    border-color: var(--ft-primary-hover);
    background: var(--ft-primary-hover);
  }
}

.footer__title {
  margin-bottom: 16px;
  color: var(--ft-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__link {
  color: var(--ft-muted);
  transition: color .15s ease;
}
.footer__link.is-active {
  color: var(--ft-ink);
}
@media (any-hover: hover) {
  .footer__link:hover {
    color: var(--ft-ink);
  }
}

.footer__social {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: var(--ft-ink);
  transition: background-color .15s ease;
}
@media (any-hover: hover) {
  .footer__social-link:hover {
    background: var(--ft-primary);
  }
}

.footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  padding-top: 24px;
  border-top: 1px solid var(--ft-line);
}
.footer .footer__requisites {
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 1;
  color: rgba(255, 255, 255, .48);
  font-size: 13px;
  line-height: 1.6;
}
.footer__dev {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .48);
  font-size: 13px;
  transition: color .15s ease;
}
.footer__dev img {
  display: block;
  height: 30px;
  width: auto;
  opacity: .8;
  transition: opacity .15s ease;
}
@media (any-hover: hover) {
  .footer__dev:hover {
    color: var(--ft-ink);
  }
  .footer__dev:hover img {
    opacity: 1;
  }
}

.footer a:focus-visible {
  outline: 2px solid var(--ft-primary);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (max-width: 61.99875em) {
  .footer__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 47.99875em) {
  .footer {
    padding: 48px 0 96px; /* снизу место под плавающие кнопки мессенджеров */
  }
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
    padding-bottom: 36px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 29.99875em) {
  /* две короткие колонки рядом, длинные «Документы» — на всю ширину ниже */
  .footer__col:nth-child(3) {
    grid-column: 1 / -1;
    order: 1;
  }
  .footer__actions .footer__btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
