/* ---------------------------------
   FOOTER
---------------------------------- */
.footer {
  --footer-top-control-height: 34px;
  --footer-top-control-gap: 24px;
  --footer-gradient: linear-gradient(
    125deg,
    var(--chrome-navy-950),
    var(--chrome-navy-800) 70%,
    #0b4773
  );
  position: relative;
  margin-top: calc(
    var(--footer-top-control-height) + var(--footer-top-control-gap)
  );
  isolation: isolate;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(56, 189, 248, 0.14),
      transparent 26%
    ),
    var(--footer-gradient);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

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

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

[data-theme="light"] .footer {
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(56, 189, 248, 0.14),
      transparent 26%
    ),
    var(--footer-gradient);
  color: rgba(255, 255, 255, 0.85);
}

.footer-scroll-top-layout {
  position: absolute;
  z-index: 2;
  /* Jednopixelové překrytí zabrání světlé spáře při subpixelovém vykreslení. */
  top: 1px;
  left: 50%;
  display: flex;
  height: var(--footer-top-control-height);
  justify-content: center;
  transform: translate(-50%, -100%);
}

.footer-scroll-top {
  display: grid;
  width: 96px;
  height: var(--footer-top-control-height);
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  background: var(--footer-gradient);
  border: 1px solid rgba(133, 212, 255, 0.28);
  border-bottom: 0;
  border-radius: 17px 17px 0 0;
  place-items: center;
  transition:
    color var(--transition),
    border-color var(--transition);
}

.footer-scroll-top svg {
  width: 54px;
  height: 16px;
  overflow: visible;
}

.footer-scroll-top path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transition: transform var(--transition);
  transform-origin: center;
}

.footer-scroll-top:hover,
.footer-scroll-top:focus-visible {
  color: #ffffff;
  border-color: rgba(133, 212, 255, 0.72);
  outline: none;
}

.footer-scroll-top:focus-visible {
  outline: 3px solid var(--blue-300);
  outline-offset: 3px;
}

.footer-scroll-top:hover path,
.footer-scroll-top:focus-visible path {
  transform: translateY(-2px);
}

.footer-scroll-top:active path {
  transform: translateY(0);
}

.footer-widgets {
  padding: 2rem 0;
}

.footer-widgets-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

@media (max-width: 960px) {
  .footer-widgets-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .footer-widgets-inner {
    grid-template-columns: 1fr;
  }
}
.footer-title {
  font-family: "Roboto Condensed", system-ui, sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--color-white);
}

[data-theme="light"] .footer-title {
  color: var(--color-white);
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-link,
.contact-link {
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid;
}

.footer-link:hover,
.footer-link:focus-visible,
.contact-link:hover,
.contact-link:focus-visible {
  color: var(--blue-300);
  outline: none;
  border-bottom: none;
}

.navbar-logo a,
a.footer-logo {
  display: inline-flex;
}

.navbar-logo a:focus-visible,
a.footer-logo:focus-visible,
a.founder-logo-card:focus-visible,
.footer-social-link:focus-visible {
  outline: 3px solid var(--action-focus);
  outline-offset: 4px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.footer-social-label {
  font-weight: 600;
  color: var(--color-white);
}

.footer-social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-bottom-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
  color: inherit;
  cursor: pointer;
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-bottom-link:hover,
.footer-bottom-link:focus-visible {
  color: var(--blue-300);
  background: transparent;
  outline: none;
  transform: none;
}

