/* Nativní textové bannery v patičce a systémový podpis. */
.template-13 #footer {
  background: #111;
  color: #d5d5d5;
  border-top: 3px solid var(--mg-orange);
  margin-top: 48px;
}
.template-13 #footer:has(.mg-footer-column) { padding-top: 0; }
.template-13 #footer :is(h2, h3, h4, a) { color: #fff; }

.template-13 #footer .custom-footer:has(.mg-footer-column) {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 50px 0 38px;
}
.template-13 #footer .custom-footer:has(.mg-footer-column)::before,
.template-13 #footer .custom-footer:has(.mg-footer-column)::after { content: none; }
.template-13 #footer .custom-footer > :is(.custom-footer__articles, div:has(.mg-footer-column)) {
  width: auto;
  min-width: 0;
  padding: 0;
}
.template-13 #footer .custom-footer .banner:has(.mg-footer-column) {
  min-height: 0;
  margin: 0;
}
.template-13 #footer .banner-wrapper:has(.mg-footer-column) { margin: 0; }
.template-13 #footer :is(.mg-footer-column, .custom-footer__articles) {
  font-size: 15px;
  line-height: 1.55;
}
.template-13 #footer :is(.mg-footer-column, .custom-footer__articles) h3 { margin: 0 0 16px; font-size: 17px; line-height: 1.3; }
.template-13 #footer .mg-footer-column p { margin: 0 0 12px; }
.template-13 #footer .mg-footer-column p:last-child { margin-bottom: 0; }
.template-13 #footer :is(.mg-footer-column, .custom-footer__articles) ul {
  display: grid;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.template-13 #footer :is(.mg-footer-column, .custom-footer__articles) li { margin: 0; padding: 0; }
.template-13 .mg-footer__logo {
  display: block;
  width: min(100%, 194px);
  margin: 0 0 16px;
}
.template-13 .mg-footer__logo img { display: block; max-width: 100%; height: auto; }
.template-13 #footer :is(.mg-footer-column, .custom-footer__articles) :where(ul a, .mg-footer__contact a) {
  color: inherit;
  font-size: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.template-13 #footer .footer-bottom { background: #111; border-top: 1px solid #373737; color: #bfbfbf; font-size: 13px; }
.template-13 #footer .footer-bottom .mg-footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-inline-start: 10px;
}
.template-13 #footer .footer-bottom :is(.mg-footer-links > a, .cookies-settings) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.template-13 #signature a { color: #d5d5d5; }
.template-13 #signature a[href="https://www.pekneweby.cz"] { color: var(--mg-orange); }

@media (max-width: 991px) {
  .template-13 #footer .custom-footer:has(.mg-footer-column) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-13 #footer .footer-bottom .mg-footer-links { display: flex; margin: 4px 0 0; }
}
@media (max-width: 767px) {
  .template-13 #footer .custom-footer:has(.mg-footer-column) { gap: 28px 20px; padding: 32px 0; }
  .template-13 #footer .custom-footer > div:has(.mg-footer-column--brand, .mg-footer-column--contact) { grid-column: 1 / -1; }
}
@media (width < 375px) {
  .template-13 #footer .custom-footer:has(.mg-footer-column) {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .template-13 #footer .mg-footer__logo { margin-inline: auto; }
  .template-13 #footer .footer-bottom .container {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
  }
  .template-13 #footer #signature { float: none; width: auto; margin: 0; }
  .template-13 #footer .footer-bottom .mg-footer-links {
    flex-direction: column;
    align-items: center;
    margin-top: 8px;
  }
}

.template-13 .benefitBanner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  border: 0;
  padding: 0;
  margin: 24px 0;
}
.template-13 .benefitBanner__item {
  width: auto;
  max-width: none;
  display: flex;
  flex: none;
  gap: 12px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 16px;
  margin: 0;
  background: var(--mg-paper);
  text-align: left;
}
.template-13 .benefitBanner__content { flex: 1 1 auto; min-width: 0; padding: 0; }
.template-13 .benefitBanner__title {
  color: var(--mg-ink);
  font-family: 'Exo 2', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.template-13 .benefitBanner__data { margin-top: 5px; color: #535353; font-size: 14px; line-height: 1.4; }
.template-13 .benefitBanner__picture {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  max-width: 43px;
  width: 43px;
  height: 43px;
  padding: 0;
  margin: 0;
  background: var(--mg-orange);
}
.template-13 .benefitBanner__picture img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0) invert(1); }

.template-13 .benefitBanner__picture:has(> img[data-src*="03-doprava-po-cele-cr."]) {
  --mg-benefit-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M1 4h13v4h4l5 5v5h-2.8a3.3 3.3 0 0 0-6.4 0h-3.6a3.3 3.3 0 0 0-6.4 0H1V4zm14 6v3h5l-3-3z'/%3E%3Ccircle cx='7' cy='19' r='2.2'/%3E%3Ccircle cx='17' cy='19' r='2.2'/%3E%3C/svg%3E");
}
.template-13 .benefitBanner__picture:has(> img[data-src*="04-individualni-pristup."]) {
  --mg-benefit-symbol: var(--mg-phone-symbol);
}
.template-13 .benefitBanner__picture:has(> img[data-src*="02-osobni-prohlidka."]) {
  --mg-benefit-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 4C6.8 4 2.6 7.6.8 12c1.8 4.4 6 8 11.2 8s9.4-3.6 11.2-8C21.4 7.6 17.2 4 12 4zm0 3.2a4.8 4.8 0 1 0 0 9.6 4.8 4.8 0 0 0 0-9.6z'/%3E%3Ccircle cx='12' cy='12' r='2.7'/%3E%3C/svg%3E");
}
.template-13 .benefitBanner__picture:has(> img[data-src*="01-skutecne-stroje."]) {
  --mg-benefit-symbol: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3 6h4l1.5-2.5h7L17 6h4a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2zm9 3a4.6 4.6 0 1 0 0 9.2A4.6 4.6 0 0 0 12 9z'/%3E%3Ccircle cx='12' cy='13.6' r='2.8'/%3E%3C/svg%3E");
}
.template-13 .benefitBanner__picture:has(> img:is(
  [data-src*="03-doprava-po-cele-cr."], [data-src*="04-individualni-pristup."],
  [data-src*="02-osobni-prohlidka."], [data-src*="01-skutecne-stroje."]
)) > img { display: none; }
.template-13 .benefitBanner__picture::before {
  content: "";
  grid-area: 1 / 1;
  width: 25px;
  height: 25px;
  background: var(--mg-on-orange);
  mask: var(--mg-benefit-symbol, linear-gradient(transparent, transparent)) center / contain no-repeat;
}
.template-13 .benefitBanner__picture > img { grid-area: 1 / 1; }

@media (width < 1200px) {
  .template-13 .benefitBanner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (hover: hover) and (pointer: fine) {
  .template-13 #footer a:hover { color: var(--mg-orange); }
}
