/* Unified site footer — mobile-first */

:root {
  --sf-bg-0: #07182f;
  --sf-bg-1: #102a4d;
  --sf-bg-2: #1a1a2e;
  --sf-text: #ffffff;
  --sf-muted: rgba(255, 255, 255, 0.78);
  --sf-gold: #ffd166;
  --sf-gold-soft: #ffe08a;
  --sf-cta: #f39c12;
  --sf-cta-2: #e67e22;
  --sf-surface: rgba(255, 255, 255, 0.08);
  --sf-border: rgba(255, 255, 255, 0.14);
  --sf-tap: 48px;
  --footer-heading: #f5c518;
  --footer-link: #ffffff;
  --footer-link-muted: #94a3b8;
}

footer.site-footer.site-footer--unified,
#contacts.site-footer.site-footer--unified {
  color: var(--sf-text) !important;
  background: linear-gradient(135deg, var(--sf-bg-0) 0%, var(--sf-bg-1) 55%, var(--sf-bg-2) 100%) !important;
  padding: 1.25rem 0 1.1rem !important;
  overflow-x: clip;
}

.site-footer--unified .site-footer__inner {
  max-width: 1140px;
}

.site-footer--unified .site-footer__grid {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.site-footer--unified .site-footer__block + .site-footer__block {
  margin-top: 0.85rem;
}

.site-footer--unified .site-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff !important;
}

.site-footer--unified .site-footer__status-text {
  color: #ffffff !important;
}

.site-footer--unified .site-footer__status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}

.site-footer--unified .site-footer__status.is-open .site-footer__status-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28);
}

.site-footer--unified .site-footer__address-contact {
  margin: 0;
  font-style: normal;
}

.site-footer--unified .site-footer__phone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  text-decoration: none !important;
  background: var(--sf-surface);
  border: 1px solid var(--sf-border);
  color: var(--sf-text) !important;
}

.site-footer--unified .site-footer__phone-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sf-muted) !important;
}

.site-footer--unified .site-footer__phone-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--sf-gold-soft) !important;
  line-height: 1.2;
}

.site-footer--unified .site-footer__hours-note {
  margin: 0.35rem 0 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92) !important;
}

.site-footer--unified .site-footer__email {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.2rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sf-gold) !important;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.site-footer--unified .site-footer__cta,
body.page-home .site-footer.site-footer--unified .site-footer__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 0.55rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  text-shadow: none !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  box-shadow: 0 8px 22px rgba(243, 156, 18, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.page-home .site-footer.site-footer--unified .site-footer__cta:hover,
body.page-home .site-footer.site-footer--unified .site-footer__cta:focus-visible,
.site-footer--unified .site-footer__cta:hover,
.site-footer--unified .site-footer__cta:focus-visible {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  text-decoration: none !important;
  filter: brightness(1.05);
}

.site-footer--unified .site-footer__cta:active,
.site-footer--unified .site-footer__phone:active,
.site-footer--unified .site-footer__social:active,
.site-footer--unified .site-footer__to-top:active {
  transform: scale(0.98);
}

.site-footer--unified .site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.55rem;
  justify-content: center;
}

.site-footer--unified .site-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  color: #fff !important;
  border: 1px solid var(--sf-border);
  background: var(--sf-surface);
}

.site-footer--unified .site-footer__social--vk {
  background: linear-gradient(135deg, #0077ff, #0055cc);
  border-color: transparent;
}

.site-footer--unified .site-footer__social--telegram {
  background: linear-gradient(135deg, #2aabee, #229ed9);
  border-color: transparent;
}

.site-footer--unified .site-footer__social--max {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-color: transparent;
}

.site-footer--unified .site-footer__accordion-trigger,
.site-footer--unified .site-footer__place-trigger,
.site-footer--unified .site-footer__map-load,
.site-footer--unified .site-footer__to-top {
  appearance: none;
  border: 1px solid var(--sf-border);
  background: var(--sf-surface);
  color: var(--sf-text) !important;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.site-footer--unified .site-footer__accordion-trigger,
.site-footer--unified .site-footer__place-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  text-align: left;
}

.site-footer--unified .site-footer__chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--sf-gold);
  border-bottom: 2px solid var(--sf-gold);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.site-footer--unified .site-footer__accordion-trigger[aria-expanded="true"] .site-footer__chevron,
.site-footer--unified .site-footer__place-trigger[aria-expanded="true"] .site-footer__chevron {
  transform: rotate(-135deg);
}

.site-footer--unified .site-footer__accordion-panel {
  margin-top: 0.65rem;
}

.site-footer--unified .site-footer__accordion-panel.is-open {
  animation: siteFooterPanelIn 0.2s ease;
}

@keyframes siteFooterPanelIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.site-footer--unified .site-footer__place {
  margin-bottom: 0.5rem;
}

.site-footer--unified .site-footer__place-body {
  padding: 0.65rem 0.85rem 0.85rem;
}

.site-footer--unified .site-footer__place-body.is-open {
  animation: siteFooterPanelIn 0.2s ease;
}

.site-footer--unified .site-footer__place-body p {
  margin: 0 0 0.45rem;
  color: var(--sf-text) !important;
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
}

.site-footer--unified .site-footer__place-note {
  color: var(--sf-muted) !important;
  font-weight: 500 !important;
  font-size: 0.84rem !important;
}

.site-footer--unified .site-footer__place-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--sf-tap);
  color: var(--sf-gold) !important;
  font-weight: 700;
  text-decoration: none;
}

.site-footer--unified .site-footer__map {
  margin-top: 0.85rem;
}

.site-footer--unified .site-footer__map-load {
  width: 100%;
  min-height: var(--sf-tap);
  margin-bottom: 0.65rem;
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.14);
  border-color: rgba(255, 209, 102, 0.4);
  color: var(--sf-gold-soft) !important;
}

.site-footer--unified .site-footer__map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 14px;
  background: #1a2332;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: var(--sf-muted) !important;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.site-footer--unified .site-footer__map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 14px;
  background: #1a2332;
}

/* Legal titles keep previous accent style */
.site-footer--unified .site-footer__block--legal .site-footer__nav-title,
.site-footer--unified p.site-footer__nav-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd166 !important;
}

/* ===== Footer nav (block 3) — hierarchy, compact ===== */
.site-footer.site-footer--unified .footer-nav {
  padding: 8px 0 4px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer.site-footer--unified .footer-nav__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.site-footer.site-footer--unified .footer-nav__section + .footer-nav__section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
}

.site-footer.site-footer--unified .footer-nav-title,
body.page-home .site-footer.site-footer--unified .footer-nav-title {
  margin: 0 0 8px;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-heading) !important;
  text-align: left;
  line-height: 1.3;
  text-shadow: none !important;
}

.site-footer.site-footer--unified .footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-footer.site-footer--unified .footer-nav__list > li + li {
  margin-top: 2px;
}

.site-footer.site-footer--unified .footer-nav__section:first-child .footer-nav__list > li:first-child + li {
  margin-top: 2px;
}

.site-footer.site-footer--unified .footer-nav__item--summary {
  margin-top: 8px !important;
}

.site-footer.site-footer--unified .footer-nav__link,
body.page-home .site-footer.site-footer--unified .footer-nav__link {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  text-decoration: none !important;
  line-height: 1.3;
  letter-spacing: normal;
  text-shadow: none !important;
  transition: color 150ms ease;
}

.site-footer.site-footer--unified .footer-nav__link--parent,
body.page-home .site-footer.site-footer--unified .footer-nav__link--parent {
  color: var(--footer-link) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.site-footer.site-footer--unified .footer-nav__link--child,
body.page-home .site-footer.site-footer--unified .footer-nav__link--child {
  color: var(--footer-link-muted) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  padding-left: 12px;
}

.site-footer.site-footer--unified .footer-nav__link:hover,
.site-footer.site-footer--unified .footer-nav__link:focus-visible,
body.page-home .site-footer.site-footer--unified .footer-nav__link:hover,
body.page-home .site-footer.site-footer--unified .footer-nav__link:focus-visible {
  color: var(--footer-heading) !important;
  text-decoration: none !important;
}

.site-footer.site-footer--unified .footer-nav__link:focus-visible {
  outline: 2px solid #f5c518;
  outline-offset: 2px;
}

.site-footer--unified .site-footer__legal a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0.2rem 0;
  color: var(--sf-gold) !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  line-height: 1.3;
}

.site-footer--unified .site-footer__legal a:hover,
.site-footer--unified .site-footer__email:hover,
.site-footer--unified .site-footer__place-link:hover {
  color: #fff !important;
}

.site-footer--unified .site-footer__legal {
  display: grid;
  gap: 0.1rem;
}

.site-footer--unified .site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--sf-border);
}

.site-footer--unified .site-footer__copy-line,
.site-footer--unified p.site-footer__copy-line {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff !important;
  line-height: 1.45;
  opacity: 1 !important;
}

.site-footer--unified .site-footer__copy-line + .site-footer__copy-line,
.site-footer--unified p.site-footer__copy-line + p.site-footer__copy-line {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
}

.site-footer--unified .site-footer__to-top {
  align-self: flex-start;
  min-height: var(--sf-tap);
  min-width: var(--sf-tap);
  padding: 0.65rem 1rem;
  border-radius: 12px;
}

.site-footer--unified .site-footer__phone:focus-visible,
.site-footer--unified .site-footer__email:focus-visible,
.site-footer--unified .site-footer__cta:focus-visible,
.site-footer--unified .site-footer__social:focus-visible,
.site-footer--unified .site-footer__accordion-trigger:focus-visible,
.site-footer--unified .site-footer__place-trigger:focus-visible,
.site-footer--unified .site-footer__map-load:focus-visible,
.site-footer--unified .site-footer__to-top:focus-visible,
.site-footer--unified .site-footer__legal a:focus-visible,
.site-footer--unified .site-footer__place-link:focus-visible {
  outline: 2px solid var(--sf-cta);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  footer.site-footer.site-footer--unified,
  #contacts.site-footer.site-footer--unified {
    padding: 2rem 0 1.5rem !important;
  }

  .site-footer--unified .site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    gap: 2rem;
    align-items: start;
  }

  .site-footer.site-footer--unified .footer-nav {
    padding: 0;
  }

  .site-footer.site-footer--unified .footer-nav__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .site-footer.site-footer--unified .footer-nav__section + .footer-nav__section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .site-footer--unified .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .site-footer--unified .site-footer__to-top {
    align-self: center;
  }

  .site-footer--unified .site-footer__social {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer--unified .site-footer__accordion-panel.is-open,
  .site-footer--unified .site-footer__place-body.is-open,
  .site-footer--unified .site-footer__chevron,
  .site-footer--unified .site-footer__cta,
  .site-footer--unified .site-footer__phone,
  .site-footer--unified .site-footer__social,
  .site-footer--unified .site-footer__to-top,
  .site-footer--unified .footer-nav__link,
  .site-footer.site-footer--unified .footer-nav__link {
    animation: none !important;
    transition: none !important;
  }

  .site-footer--unified .site-footer__cta:active,
  .site-footer--unified .site-footer__phone:active,
  .site-footer--unified .site-footer__social:active,
  .site-footer--unified .site-footer__to-top:active {
    transform: none;
  }
}
