/* Resonika 1.8.1 — hero cover/autoplay polish + synchronized footer submenus. */

/* The first RESONIKA slide used an old split-layout rule that reduced the
   skyline image to a right-side illustration. Restore it as a true backdrop. */
html body .hero-slider .slide:first-child {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Footer navigation mirrors the header hierarchy. Submenus appear beside the
   parent item on pointer hover or keyboard focus without shifting the layout. */
html body .site-footer .footer-links > a { display: none; }
html body .site-footer .res-footer-menu {
  display: flex;
  flex-direction: column;
  width: 100%;
}
html body .site-footer .res-footer-menu-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, .42fr) minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
}
html body .site-footer .res-footer-main-link {
  display: flex;
  align-items: center;
  min-height: 45px;
  padding: 12px 0;
  font: 500 .72rem/1.25 var(--res-font-menu);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #f2f0eb;
  transition: color .18s ease, transform .18s ease;
}
html body .site-footer .res-footer-menu-row:hover .res-footer-main-link,
html body .site-footer .res-footer-menu-row:focus-within .res-footer-main-link {
  color: var(--muted);
  transform: translateX(6px);
}
html body .site-footer .res-footer-submenu {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 8px 0 8px 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-7px);
  transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}
html body .site-footer .res-footer-menu-row:hover .res-footer-submenu,
html body .site-footer .res-footer-menu-row:focus-within .res-footer-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
html body .site-footer .res-footer-submenu a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 0;
  color: #bdb7ae;
  font: 500 .61rem/1.35 var(--res-font-menu);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: normal;
  transition: color .16s ease;
}
html body .site-footer .res-footer-submenu a:hover,
html body .site-footer .res-footer-submenu a:focus-visible { color: #fff; }
html body .site-footer .res-footer-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  min-width: 20px;
  color: #77716a;
  font: 600 .75rem/1 var(--res-font-menu);
}

@media (max-width: 900px) {
  html body .site-footer .res-footer-menu-row {
    grid-template-columns: minmax(130px, .38fr) minmax(0, 1fr);
  }
  html body .site-footer .res-footer-submenu { padding-left: 12px; }
}

@media (max-width: 620px) {
  html body .hero-slider .slide:first-child { background-position: 58% center; }
  html body .site-footer .res-footer-menu-row {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 0;
  }
  html body .site-footer .res-footer-main-link { min-height: 44px; }
  html body .site-footer .res-footer-submenu {
    display: none;
    padding: 0 0 12px 14px;
  }
  html body .site-footer .res-footer-menu-row:focus-within .res-footer-submenu {
    display: flex;
  }
}
