.site-footer {
  padding-block: 64px 24px;
  background: var(--paspoint-blue);
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 48px;
}

.footer-main > * {
  min-width: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.footer-logo img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-description {
  max-width: 310px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.65;
}

.footer-title {
  margin: 0 0 22px;
  color: #fff;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 250ms ease;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--paspoint-cyan);
  outline-offset: 5px;
  border-radius: 3px;
}

.site-footer a:focus-visible:not(.footer-logo) {
  color: var(--paspoint-cyan);
}

@media (hover: hover) {
  .site-footer a:hover:not(.footer-logo) {
    color: var(--paspoint-cyan);
  }
}

.footer-address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  font-style: normal;
  line-height: 1.6;
}

.footer-address strong {
  color: #fff;
  font-weight: 600;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.footer-contact-link span {
  font-size: 22px;
  line-height: 1;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding-block: 7px;
  font-size: 17px;
  line-height: 1.5;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.footer-social span {
  font-size: 22px;
  line-height: 1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  padding-block: 6px;
  color: rgba(255, 255, 255, 0.8);
}

/* Počítač: tři kolečka na pravém okraji. */
.quick-actions {
  position: fixed;
  top: 50%;
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}

.quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--paspoint-blue);
  color: #fff;
  box-shadow: 0 3px 12px rgba(39, 48, 112, 0.16);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 300ms ease;
}

.quick-action svg {
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.quick-action:focus-visible {
  outline: 3px solid var(--paspoint-cyan);
  outline-offset: 4px;
  background: var(--paspoint-cyan);
}

@media (hover: hover) {
  .quick-action:hover {
    background: var(--paspoint-cyan);
  }
}

@media (max-width: 900px) {
  .footer-main {
    gap: 32px;
  }

  .footer-title {
    font-size: 24px;
  }

  .footer-description,
  .footer-address,
  .footer-links a {
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  /* Rezerva odpovídá výšce spodní lišty. */
  body.has-quick-actions {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  html {
    scroll-padding-bottom: calc(
      80px + env(safe-area-inset-bottom, 0px)
    );
  }

  .site-footer {
    padding-block: 48px 24px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .footer-logo img {
    width: 160px;
  }

  .footer-description {
    max-width: 380px;
    margin-top: 16px;
  }

  .footer-title {
    margin-bottom: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 36px;
    padding-top: 20px;
  }

  /* Mobil: pevná spodní lišta přes celou šířku. */
  .quick-actions {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding:
      10px
      max(16px, env(safe-area-inset-right, 0px))
      calc(10px + env(safe-area-inset-bottom, 0px))
      max(16px, env(safe-area-inset-left, 0px));
    background: var(--paspoint-blue);
    box-shadow: 0 -4px 20px rgba(39, 48, 112, 0.15);
    transform: none;
  }

  .quick-action {
    width: 44px;
    height: 44px;
    background: transparent;
    box-shadow: none;
  }

  .quick-action svg {
    width: 22px;
    height: 22px;
  }

  .quick-action:active {
    background: var(--paspoint-cyan);
  }

  .quick-action:focus-visible {
    outline-offset: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer a,
  .quick-action {
    transition: none;
  }
}