#footer :is(.bd-footer-kontakt, .bd-footer-odkazy) {
  min-width: 0;
  color: #142b30;
  font-family: var(--template-font), sans-serif;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#footer .bd-footer-kontakt { padding-block-start: 14px; }
#footer .bd-footer-kontakt :is(p, address) { margin: 0; }
#footer .bd-footer-kontakt .bd-footer-kontakt__description { margin-block-end: 18px; }
#footer .footer-rows:has(> .site-name img) .bd-footer-kontakt__name { display: none; }

#footer .bd-footer-kontakt :is(.bd-footer-kontakt__line, .bd-footer-kontakt__address) {
  position: relative;
  min-height: 26px;
  margin-block-start: 9px;
  padding-inline-start: 35px;
  font-style: normal;
}

#footer .bd-footer-kontakt__line:has(a[href^="tel:"]) {
  --bd-footer-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M22 16.5v3.3a2 2 0 0 1-2.2 2 18 18 0 0 1-7.8-2.8 18 18 0 0 1-5.5-5.5 18 18 0 0 1-2.8-7.9A2 2 0 0 1 5.7 3H9l1.6 5-2.1 2a14 14 0 0 0 5.5 5.5l2-2.1 6 3.1Z'/%3E%3C/svg%3E");
}

#footer .bd-footer-kontakt__line:has(a[href^="mailto:"]) {
  --bd-footer-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='m3 6 9 7 9-7'/%3E%3C/svg%3E");
}

#footer .bd-footer-kontakt__address {
  --bd-footer-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E");
}

#footer .bd-footer-kontakt :is(.bd-footer-kontakt__line, .bd-footer-kontakt__address)::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 24px;
  height: 24px;
  background: #e49b00;
  mask: var(--bd-footer-contact-icon) center / contain no-repeat;
}

#footer .bd-footer-kontakt .bd-footer-kontakt__link {
  color: #0b2025;
  font-weight: 700;
  text-decoration: none;
}

#footer .bd-footer-odkazy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3.2vw, 52px);
}

#footer .bd-footer-odkazy__column { min-width: 0; }

#footer .bd-footer-odkazy__heading {
  margin: 0 0 12px;
  color: #0b2025;
  font-family: var(--template-headings-font), sans-serif;
  font-size: clamp(18px, 1.65vw, 25px);
  font-weight: 700;
  line-height: 1.2;
}

#footer .bd-footer-odkazy__heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-block-start: 13px;
  border-radius: 4px;
  background: #ffbd00;
}

#footer .bd-footer-odkazy__list { margin: 0; padding: 0; list-style: none; }
#footer .bd-footer-odkazy .bd-footer-odkazy__item { margin: 0; padding: 0; }
#footer .bd-footer-odkazy__item + .bd-footer-odkazy__item { border-top: 1px solid #e4ecee; }

#footer .bd-footer-odkazy :is(.bd-footer-odkazy__link, .bd-footer-odkazy__cookies, .bd-footer-odkazy__pending) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 8px 2px;
  color: #142b30;
  text-align: start;
  text-decoration: none;
}

#footer .bd-footer-odkazy__cookies {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

#footer .bd-footer-odkazy :is(.bd-footer-odkazy__link, .bd-footer-odkazy__cookies)::after {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-inline-end: 3px;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}

#footer .bd-footer-odkazy .bd-footer-odkazy__pending { color: #596c70; }
#footer :is(.bd-footer-odkazy__link, .bd-footer-odkazy__cookies, .bd-footer-kontakt__link):is(:hover, :focus-visible) {
  color: #00685f;
  text-decoration: underline;
}

#footer .bd-footer-band { background: #0b3034; }

#footer .bd-footer-band .footer-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 24px;
  min-height: 48px;
  padding-block: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
}

#footer .bd-footer-band .footer-bottom::before,
#footer .bd-footer-band .footer-bottom::after,
#footer .bd-footer-band .footer-bottom > .copyright { display: none; }
#footer .bd-footer-band #signature { flex: 0 0 auto; float: none; width: auto; margin: 0; }
#footer .bd-footer-band .bd-footer-credit { padding-block: 4px; }
#footer .bd-footer-band a { color: #e2eeee; }
#footer .bd-footer-band a:is(:hover, :focus-visible) { color: #fff; text-decoration: underline; }

@media (max-width: 46rem) {
  #footer .bd-footer-odkazy { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
