/* NPK footer enhancement layer. Data continues to come from existing ACF Options. */
.footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(207, 164, 86, 0.13), transparent 28%),
    linear-gradient(145deg, #111714 0%, #181d1a 58%, #101310 100%);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

.footer > .wrapper {
  position: relative;
  z-index: 1;
}

.footer__top,
.footer__logo {
  border-color: rgba(255, 255, 255, 0.14);
}

.footer__logo a:focus-visible,
.footer__social a:focus-visible,
.footer-list a:focus-visible,
.footer__bottom a:focus-visible,
.footer__contact a:focus-visible,
.footer__contact-button:focus-visible {
  outline: 3px solid rgba(225, 186, 112, 0.55);
  outline-offset: 4px;
}

.footer-title {
  color: #f7f4ec;
  letter-spacing: 0.06em;
}

.footer-list a,
.footer-list span,
.footer-text {
  color: rgba(255, 255, 255, 0.68);
}

.footer-list a {
  text-decoration-color: rgba(207, 164, 86, 0.45);
  text-underline-offset: 0.3em;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #fff;
  text-decoration-color: var(--npk-gold, #cfa456);
}

.footer__social > div a {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 2rem;
}

.footer__contact > span {
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(11px, 0.72vw, 14px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__contact > a {
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 650;
  white-space: nowrap;
}

.footer__contact-button {
  min-height: 42px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(207, 164, 86, 0.65);
  border-radius: var(--npk-radius-pill, 999px);
  background: transparent;
  color: #e4bd73;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.footer__contact-button:hover {
  background: var(--npk-gold, #cfa456);
  color: #111714;
  transform: translateY(-1px);
}

.footer__bottom {
  border-top: 0;
}

.footer__bottom-item p {
  color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 768px) {
  .footer::before { background-size: 32px 32px; }

  .footer__top {
    padding-top: 34vw;
  }

  .footer__top-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer__contact {
    align-items: center;
    margin-top: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .footer__contact > span { font-size: 11px; }
  .footer__contact > a { font-size: 20px; }
  .footer__contact-button { width: min(100%, 280px); }

  .footer__social > div a {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer * { transition-duration: 0.01ms !important; }
}

/* Мёртвые фоны с чужого домена baza-paradigma.ru (правила плагина YellowPencil): файлы там удалены (410),
   браузер зря делал 3 запроса на каждой странице. Реальные фоны блоков заданы отдельно. */
body.page #download-price,
body.page .warranty,
body.page .get-consultation { background-image: none; }
