
/* Footer v2 — dark SEO hub (scope: .site-footer--v2) */
.site-footer--v2 {
  --footer-bg: #041a33;
  --footer-bg-2: #062847;
  --footer-text: rgba(255, 255, 255, 0.88);
  --footer-muted: rgba(184, 214, 240, 0.72);
  --footer-accent: #129fe1;
  --footer-accent-2: #5ec8ff;
  --footer-line: rgba(255, 255, 255, 0.1);

  position: relative;
  margin-top: clamp(80px, 12vw, 160px);
  padding: 0;
  border-radius: 0;
  background: linear-gradient(165deg, var(--footer-bg) 0%, var(--footer-bg-2) 48%, #031525 100%);
  color: var(--footer-text);
}

.site-footer__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: 28px;
  padding-left: max(var(--site-content-pad-x), calc((100% - var(--site-content-max)) / 2));
  padding-right: max(var(--site-content-pad-x), calc((100% - var(--site-content-max)) / 2));
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px);
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.site-footer__logo img {
  display: block;
  height: auto;
  max-width: 190px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.site-footer__tagline {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--footer-muted);
  max-width: 36ch;
}

.site-footer__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__contact-link {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__contact-link:hover {
  color: var(--footer-accent-2);
}

.site-footer__hours {
  font-size: 14px;
  color: var(--footer-muted);
}

.site-footer__cta.header-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  align-self: flex-start;
  margin-top: 4px;
  margin-bottom: 0;
  box-shadow: 0 8px 28px rgba(255, 120, 40, 0.35);
}

/* index.css shimmer — absolute ::before без relative уезжает в колонку подвала */
.site-footer__cta.header-button::before {
  display: none;
}

.site-footer__cta.header-button:hover {
  animation: none;
  transform: none;
  box-shadow: 0 8px 28px rgba(255, 120, 40, 0.45);
}

.site-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.site-footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--footer-line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.site-footer__social-btn:hover {
  transform: translateY(-3px);
  background: rgba(18, 159, 225, 0.2);
  border-color: rgba(18, 159, 225, 0.45);
}

.site-footer__heading {
  margin: 0 0 16px;
  font-family: Rubik, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-accent-2);
}

.site-footer__list,
.site-footer__legal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__menu-item {
  margin: 0;
  padding: 0;
}

.site-footer__list--dense {
  gap: 8px;
}

.site-footer__link {
  position: relative;
  display: inline-block;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--footer-text);
  text-decoration: none;
  padding-left: 0;
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.site-footer__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0;
  height: 2px;
  background: var(--footer-accent);
  transition: width 0.25s ease;
  opacity: 0.9;
}

.site-footer__link:hover {
  color: #fff;
  padding-left: 14px;
}

.site-footer__link:hover::before {
  width: 8px;
}

.site-footer__link--hub {
  font-weight: 400;
  color: #fff;
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--footer-line);
  opacity: 1;
  visibility: visible;
}

.site-footer__copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--footer-muted);
  max-width: 52ch;
}

.site-footer__copy-link {
  color: #fff;
  text-decoration: none;
}

.site-footer__copy-link:hover {
  color: var(--footer-accent-2);
}

.site-footer__legal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.site-footer__legal .site-footer__link,
.site-footer__legal-menu .site-footer__link {
  font-size: 13px;
  color: var(--footer-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  padding-left: 0;
}

.site-footer__legal .site-footer__link::before,
.site-footer__legal-menu .site-footer__link::before {
  display: none;
}

.site-footer__legal .site-footer__link:hover,
.site-footer__legal-menu .site-footer__link:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
  padding-left: 0;
}

/* Scroll reveal */
.footer-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer__grid .footer-reveal:nth-child(1) { transition-delay: 0.05s; }
.site-footer__grid .footer-reveal:nth-child(2) { transition-delay: 0.12s; }
.site-footer__grid .footer-reveal:nth-child(3) { transition-delay: 0.19s; }
.site-footer__grid .footer-reveal:nth-child(4) { transition-delay: 0.26s; }

/* Neutralize legacy .footer rules if both classes coexist */
.footer.site-footer--v2,
.site-footer--v2.footer {
  background: linear-gradient(165deg, var(--footer-bg) 0%, var(--footer-bg-2) 48%, #031525 100%);
}

@media (max-width: 1100px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .site-footer--v2 {
    margin-top: 64px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer__bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__cta.header-button {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-footer__link:hover {
    padding-left: 0;
  }

  .site-footer__link::before {
    display: none;
  }
}
