/* LXF-326: load only on lxf.cz, after main.css. No shared stylesheet edits. */

/* Keep photographs visible; provide a predictable dark surface behind the copy. */
body.type-index .homepage-grid .homepage-main .homepage-content {
  padding: 56px 22px 24px !important;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0), rgba(20, 20, 20, 0.82) 40px, rgba(20, 20, 20, 0.94));
  color: #fff;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

body.type-index .homepage-grid .homepage-main .homepage-content h2 {
  margin: 0 0 10px;
  padding: 0 !important;
  color: #fff;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  text-align: left;
  text-wrap: balance;
}

body.type-index .homepage-grid .homepage-main .homepage-content p {
  margin: 0 0 18px;
  padding: 0 !important;
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  text-align: left;
}

body.type-index .homepage-grid .homepage-main .homepage-content .clanek_tlac {
  margin: 0;
  min-height: 44px;
  text-shadow: none;
  color: #262626;
}

/* The current Shoptet heading is h3; legacy rules only targeted h4. */
body #footer.newsletter-active {
  margin-top: 56px !important;
  container-type: inline-size;
}

body #footer .custom-footer__newsletter.newsletter {
  position: relative;
  z-index: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 32px;
  width: 100cqw;
  max-width: none;
  margin: 0 calc((100% - 100cqw) / 2) 40px;
  padding: 32px max(32px, calc((100cqw - 1440px) / 2)) !important;
  background: #f3f3f1;
  border-top: 3px solid #ffe02b;
  border-radius: 0;
  color: #262626;
  box-sizing: border-box;
}

body #footer .custom-footer__newsletter .newsletter-header {
  min-width: 0;
  width: auto;
  margin: 0;
  text-align: left;
}

body #footer .custom-footer__newsletter .newsletter-header h3 {
  margin: 0;
  color: #262626;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
}

body #footer .custom-footer__newsletter .subscribe-form {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

body #footer .custom-footer__newsletter .subscribe-form fieldset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  border: 0;
}

body #footer .custom-footer__newsletter .smart-label-wrapper {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  min-width: 0;
}

body #footer .custom-footer__newsletter .form-control {
  height: 48px;
  background: #fff;
  color: #262626;
  border-color: #888;
  border-radius: 4px 0 0 4px;
}

body #footer .custom-footer__newsletter .subscribe-form button[type="submit"] {
  position: static;
  grid-column: 2;
  grid-row: 1;
  min-height: 48px;
  height: auto;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid #ffe02b;
  border-radius: 0 4px 4px 0;
  background: #ffe02b !important;
  color: #262626 !important;
  line-height: 22px;
}

body #footer .custom-footer__newsletter .subscribe-form button[type="submit"]:hover {
  background: #f0cd12 !important;
  border-color: #f0cd12;
}

body #footer .custom-footer__newsletter .consents {
  position: static;
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  padding: 0;
}

body #footer .custom-footer__newsletter .consents .label,
body #footer .custom-footer__newsletter .consents a {
  color: #515151 !important;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
}

body #footer .custom-footer__newsletter .consents a {
  text-decoration: underline;
}

body #footer .custom-footer__newsletter :is(input, button, a):focus-visible,
body.type-index .homepage-content a:focus-visible {
  outline: 3px solid #777;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  body.type-index .homepage-grid .homepage-main .homepage-content {
    padding: 56px 18px 20px !important;
  }
  body.type-index .homepage-grid .homepage-main .homepage-content h2 {
    font-size: 18px;
  }
  body #footer .custom-footer__newsletter.newsletter {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 18px !important;
    margin-bottom: 24px;
  }
  body #footer .custom-footer__newsletter .newsletter-header h3 {
    font-size: 22px;
  }
  body #footer .custom-footer__newsletter .subscribe-form button[type="submit"] {
    padding-inline: 14px;
  }
}

/* Two narrow portrait cards clip their copy on phones. Stack only this pair. */
@media (max-width: 575px) {
  body.type-index .homepage-grid.profi_komponenty.profi-merged .profi-hero-square {
    grid-template-columns: minmax(0, 1fr);
    aspect-ratio: auto;
  }
  body.type-index .homepage-grid.profi_komponenty.profi-merged .profi-hero-square .homepage-main {
    height: auto;
    aspect-ratio: 4 / 5;
    min-height: 400px;
  }
}
