/* Editovatelný obsah textových bannerů a stránek. */
.template-13 .mg-home { text-align: left; }
.template-13 .welcome-wrapper:has(.mg-home) { margin: 0; padding: 20px 0 0; }
.template-13.type-index .welcome-wrapper:has(.mg-category-grid) { margin: 0; padding: 0; }
.template-13.type-index .welcome-wrapper:has(.mg-section) { margin: 0; padding-top: 0; padding-bottom: 0; }
.template-13.type-index .welcome .mg-category-section { padding-top: clamp(32px, 3.5vw, 42px); text-align: center; }
.template-13.type-index .banners-row:has(.mg-hero) { margin: 0 0 20px; }
.template-13.type-index .banners-row > div:has(.mg-hero) { width: 100%; padding: 0; }
.template-13 #carousel .item > span:has(.mg-hero) { display: block; }
.template-13 .mg-home *, .template-13 .mg-footer-column *, .template-13 .mg-page * { box-sizing: border-box; }
.template-13 .mg-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: #111; overflow: hidden; margin-bottom: 0; }
.template-13 .mg-hero__copy { padding: clamp(24px, 4vw, 58px); align-self: center; }
.template-13 .mg-hero :is(h1, h2) { color: #fff; font-size: clamp(32px, 3.8vw, 54px); line-height: 1.06; letter-spacing: -.045em; margin: 0 0 20px; }
.template-13 .mg-hero :is(h1, h2) span { color: var(--mg-orange); }
.template-13 .mg-hero p { color: #e0e0e0; max-width: 440px; font-size: 18px; line-height: 1.55; margin: 0 0 28px; }
.template-13 .mg-hero__image { min-width: 0; position: relative; }
.template-13 .mg-hero__image img { display: block; width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.template-13 #carousel .mg-hero__image { min-height: clamp(410px, 32vw, 455px); }
.template-13 #carousel .mg-hero__image img { position: absolute; inset: 0; height: 100%; min-height: 0; object-fit: cover; }
@media (min-width: 768px) {
  .template-13 .mg-hero__image::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -14px;
    width: 32px;
    background: var(--mg-orange);
    clip-path: polygon(12px 0, 100% 0, 19px 100%, 0 100%);
    pointer-events: none;
  }
}
.template-13 .mg-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.template-13 .mg-button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; min-height: 48px; border: 1px solid transparent; font-weight: 700; line-height: 1.35; text-align: center; }

.template-13 .mg-button--light { background: transparent; color: #fff; border-color: #777b6e; }

.template-13 .mg-section { padding: 46px 0; }
.template-13 .mg-section > h2 { margin: 0 0 24px; }
.template-13 .mg-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.template-13 .mg-category {
  display: grid;
  grid-template-rows: auto 1fr;
  isolation: isolate;
  overflow: hidden;
  background: #111;
  color: #fff;
  text-decoration: none;
}
.template-13 .mg-category img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.template-13 .mg-category > span {
  display: flex;
  z-index: 1;
  background: inherit;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 62px;
  padding: 14px 18px;
  font-family: 'Exo 2', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}
.template-13 .mg-category:focus-visible { outline-offset: 3px; }
.template-13 .mg-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(26px, 4vw, 48px);
  text-align: left;
}
.template-13 .mg-welcome__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0;
}
.template-13 .mg-welcome__copy [data-testid="eshopHeader"] {
  margin: 0 0 18px;
  text-align: left;
}
.template-13 .mg-welcome__copy p { margin: 0 0 14px; }
.template-13 .mg-welcome__copy .mg-button { margin-top: 8px; }
@media (min-width: 992px) {
  .template-13 .mg-welcome { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.template-13 .mg-contact-strip {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: clamp(24px, 4vw, 52px);
  background: var(--mg-orange);
  color: var(--mg-on-orange);
}
.template-13 .mg-contact-strip h2 { margin: 0 0 8px; color: inherit; }
.template-13 .mg-contact-strip p { margin: 0; }
.template-13 .mg-contact-strip__phone {
  gap: 12px;
  font-family: 'Exo 2', Arial, sans-serif;
  font-size: 23px;
  font-weight: 700;
  white-space: nowrap;
}
.template-13 #content .mg-contact-strip__phone {
  background-color: #111;
  border-color: transparent;
  color: #fff;
  text-decoration: none;
}
.template-13 #content .mg-contact-strip__phone:focus-visible { outline-color: #111; }
.template-13.type-page #content.content.wide { padding-inline: 0; }
.template-13.type-page #content .pageArticleDetail { overflow-wrap: anywhere; }
.template-13 .mg-page h2 { margin-top: 34px; }
.template-13 .mg-page li { margin-bottom: 12px; }
.template-13 .mg-page a:not(.mg-button) { color: var(--mg-ink); text-decoration: underline var(--mg-orange); }
.template-13 .mg-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 30px 0; }
.template-13 .mg-panel { padding: 28px; background: var(--mg-paper); }
.template-13 .mg-panel h2 { margin-top: 0; }
.template-13 .mg-panel address { font-style: normal; }
.template-13 .mg-panel p:last-child { margin-bottom: 0; }

@media (hover: hover) and (pointer: fine) {
  .template-13 .mg-button--light:hover { background: #35382f; border-color: #a2a594; color: #fff; }
  .template-13 #content .mg-contact-strip__phone:hover { background-color: #303030; }
  .template-13 .mg-category:hover { background: #282828; color: #fff; text-decoration: none; }
  .template-13 .mg-category:hover img { transform: scale(1.04); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .template-13 .mg-category img { transition: transform 220ms ease-out; }
}

/* Kontakty a převzetí z katalogu. */
.template-13 :is(.mg-contact-layout, .mg-delivery-grid) {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  margin-block: 24px 32px;
}
.template-13 .mg-contact-layout { align-items: start; }
.template-13 .mg-contact-details { display: grid; gap: 24px; }
.template-13 .mg-contact-details > section { display: grid; gap: 12px; }
.template-13 #content .mg-contact-details :is(h2, p, address, iframe) { margin: 0; }
.template-13 .mg-delivery-grid .mg-panel,
.template-13 .mg-contact-form {
  padding: clamp(18px, 2.5vw, 32px);
}
.template-13 .mg-contact-layout h2, .template-13 .mg-delivery-grid h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2vw, 26px);
}
.template-13 .mg-contact-quick-links { display: grid; gap: 6px; justify-items: start; }
.template-13 .mg-contact-quick-links a { font-weight: 700; }
.template-13 .mg-contact-details address { font-style: normal; line-height: 1.55; }
.template-13 .mg-contact-map {
  display: block;
  width: 100%;
  height: clamp(230px, 26vw, 310px);
  border: 0;
}
@media (width < 992px) {
  .template-13 .mg-contact-map { height: clamp(340px, 46vw, 420px); }
}
.template-13 .mg-contact-form #formContact,
.template-13 .mg-contact-form #formContact .form-control-wrapper { width: 100%; max-width: none; }
.template-13 .mg-contact-form #formContact textarea { min-height: 144px; resize: vertical; }
.template-13 .mg-contact-form #formContact :is(.btn, button[type="submit"], input[type="submit"]) {
  min-height: 46px;
  padding-inline: 24px;
}
.template-13 .mg-delivery-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 32px;
  padding: clamp(18px, 3vw, 36px);
  background: var(--mg-paper);
}
.template-13 .mg-delivery-help h2 { margin: 0 0 6px; font-size: clamp(22px, 2.4vw, 30px); }
.template-13 .mg-delivery-help p { margin: 0; }
@media (min-width: 992px) {
  .template-13 .mg-contact-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: min(4vw, 48px);
  }
  .template-13 .mg-delivery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
