/* SPINEXA footer v15 — aktualizované menu a responzivní rozložení */

.spx8-footer,
.spx8-footer *,
.spx8-footer *::before,
.spx8-footer *::after {
  box-sizing: border-box;
}

.spx8-footer {
  width: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(0, 168, 156, 0.10), transparent 30%),
    linear-gradient(135deg, #071f35 0%, #082b49 58%, #063347 100%);
  color: #ffffff;
  font-family: "Inter", Arial, sans-serif;
}

.spx8-footer .spx8-wrap {
  width: min(100% - 40px, 1440px);
  margin: 0 auto;
}

.spx8-footer-main {
  padding: 68px 0 28px;
}

.spx8-footer-grid {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.2fr)
    repeat(4, minmax(132px, 0.88fr))
    minmax(190px, 1.15fr);
  gap: 34px;
  align-items: start;
}

.spx8-footer h3 {
  margin: 0 0 18px;
  color: #ffffff !important;
  font-family: "Inter", Arial, sans-serif !important;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spx8-footer ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spx8-footer li {
  margin: 0;
  padding: 0;
}

.spx8-footer a {
  color: rgba(255, 255, 255, 0.86) !important;
  text-decoration: none !important;
  transition:
    color 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.spx8-footer li a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.spx8-footer li a::after {
  content: "→";
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.spx8-footer li a:hover,
.spx8-footer li a:focus-visible {
  color: #7be0d8 !important;
}

.spx8-footer li a:hover::after,
.spx8-footer li a:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.spx8-footer-brand {
  min-width: 0;
}

.spx8-footer-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 146px;
  min-height: 72px;
  padding: 13px 16px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.spx8-footer-logo-chip img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 46px;
  object-fit: contain;
}

.spx8-footer-brand p {
  max-width: 250px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 13px;
  line-height: 1.72;
  font-weight: 500;
}

.spx8-footer-trust {
  display: grid;
  gap: 12px;
}

.spx8-footer-trust-item {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.spx8-footer-trust-item strong {
  display: block;
  margin-bottom: 7px;
  color: #ffffff !important;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
}

.spx8-footer-trust-item span {
  display: block;
  color: rgba(255, 255, 255, 0.74) !important;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
}

.spx8-footer-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 46px;
  padding: 24px 28px;
  border: 1px solid rgba(0, 197, 183, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(100deg, rgba(0, 168, 156, 0.18), rgba(255, 255, 255, 0.035));
}

.spx8-footer-account strong {
  display: block;
  margin-bottom: 7px;
  color: #ffffff !important;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
}

.spx8-footer-account span {
  display: block;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 13px;
  line-height: 1.55;
}

.spx8-footer-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.spx8-footer-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.spx8-footer-btn-primary {
  border: 1px solid #00bdb0;
  background: #00bdb0;
  color: #ffffff !important;
  box-shadow: 0 12px 28px rgba(0, 189, 176, 0.20);
}

.spx8-footer-btn-primary:hover,
.spx8-footer-btn-primary:focus-visible {
  border-color: #20d0c3;
  background: #20d0c3;
  color: #05243d !important;
}

.spx8-footer-btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #ffffff !important;
}

.spx8-footer-btn-secondary:hover,
.spx8-footer-btn-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
}

.spx8-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.spx8-footer-bottom .spx8-wrap {
  padding: 22px 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.4;
}

/* Notebook a menší desktop */
@media (max-width: 1220px) {
  .spx8-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 30px;
  }

  .spx8-footer-brand p {
    max-width: 320px;
  }
}

/* Tablet */
@media (max-width: 820px) {
  .spx8-footer-main {
    padding-top: 52px;
  }

  .spx8-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 26px;
  }

  .spx8-footer-brand,
  .spx8-footer-trust {
    grid-column: 1 / -1;
  }

  .spx8-footer-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spx8-footer-account {
    grid-template-columns: 1fr;
  }

  .spx8-footer-account-actions {
    justify-content: flex-start;
  }
}

/* Mobil */
@media (max-width: 560px) {
  .spx8-footer .spx8-wrap {
    width: min(100% - 28px, 1440px);
  }

  .spx8-footer-main {
    padding: 42px 0 22px;
  }

  .spx8-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .spx8-footer-brand,
  .spx8-footer-trust {
    grid-column: auto;
  }

  .spx8-footer-trust {
    grid-template-columns: 1fr;
  }

  .spx8-footer h3 {
    margin-bottom: 14px;
  }

  .spx8-footer-account {
    margin-top: 36px;
    padding: 22px 18px;
  }

  .spx8-footer-account-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .spx8-footer-btn {
    width: 100%;
  }

  .spx8-footer-bottom .spx8-wrap {
    padding: 18px 0;
    text-align: center;
  }
}