/*
 * Wspólne poprawki jakościowe dla czterech edytowanych stron.
 * Plik jest ładowany wyłącznie przez: główną, materiały, o firmie i kontakt.
 * Zakładka Promocje oraz jej arkusze pozostają bez zmian.
 */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body[data-page] {
  overflow-x: clip;
}

body[data-page] :is(a, button, summary) {
  -webkit-tap-highlight-color: transparent;
}

body[data-page] :is(a, button, summary):focus-visible {
  outline: 3px solid #ffdd00;
  outline-offset: 3px;
}

/* ---------- Strona główna ---------- */
body[data-page="home"] .mono-hero {
  width: 100%;
  margin-left: 0;
}

body[data-page="home"] .mono-hero-inner {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

body[data-page="home"] .mono-hero-copy {
  width: min(100%, 700px);
  max-width: 700px;
}

body[data-page="home"] .mono-hero-title {
  max-width: 700px;
  margin: 0 0 22px;
  color: #fff;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: clamp(2.25rem, 3.55vw, 3.85rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -.04em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .42);
}

body[data-page="home"] .mono-hero-title > span {
  display: block;
  white-space: nowrap;
}

body[data-page="home"] .mono-hero-lead {
  color: rgba(255, 255, 255, .88);
  font-size: 1rem;
  line-height: 1.65;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}

body[data-page="home"] .mono-benefit p {
  font-size: .86rem;
  line-height: 1.65;
}

/* ---------- O firmie ---------- */
body[data-page="about"] .about-story-copy > p:last-child,
body[data-page="about"] .about-value-card p,
body[data-page="about"] .about-review-card blockquote {
  font-size: .92rem;
  line-height: 1.75;
}

body[data-page="about"] .about-review-card cite {
  display: grid;
  gap: 2px;
  margin-top: 18px;
  font-size: .78rem;
  font-style: normal;
  font-weight: 700;
}

body[data-page="about"] .about-review-card cite span {
  color: #7a7b7d;
  font-size: .68rem;
  font-weight: 500;
}

/* ---------- Kontakt ---------- */
body[data-page="contact"] .contact-page-heading h1 {
  white-space: normal;
}

body[data-page="contact"] .contact-page-intro {
  max-width: 720px;
  margin: 16px 0 0;
  color: #6f7072;
  font-size: .96rem;
  line-height: 1.65;
}

body[data-page="contact"] .mono-contact-tile {
  position: relative;
}

body[data-page="contact"] .mono-contact-tile-action .mono-contact-tile-value a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

body[data-page="contact"] .mono-contact-tile-action .mono-contact-pill {
  position: relative;
  z-index: 2;
}

body[data-page="contact"] :is(.mono-contact-pill, .mono-contact-supplier-route) {
  min-height: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: .74rem;
}

body[data-page="contact"] .mono-contact-tile-label {
  font-size: .72rem;
}

body[data-page="contact"] .mono-contact-tile-value,
body[data-page="contact"] .mono-contact-tile-value a,
body[data-page="contact"] .mono-contact-tile-value span {
  font-size: 1rem;
}

body[data-page="contact"] .mono-contact-map-shell {
  position: relative;
  min-height: 300px;
  background:
    linear-gradient(135deg, rgba(88, 89, 91, .05), rgba(88, 89, 91, .14)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(88, 89, 91, .05) 18px 19px);
}

body[data-page="contact"] .mono-contact-map-shell iframe:not([src]) {
  display: none;
}

body[data-page="contact"] .map-consent-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 7px;
  padding: 28px;
  border: 0;
  background: transparent;
  color: #58595b;
  cursor: pointer;
  text-align: center;
}

body[data-page="contact"] .map-consent-button span {
  color: #757679;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body[data-page="contact"] .map-consent-button strong {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 19px;
  border-radius: 999px;
  background: #ffdd00;
  color: #202124;
  font-size: .86rem;
}

body[data-page="contact"] .map-consent-button em {
  max-width: 270px;
  color: #737477;
  font-size: .72rem;
  font-style: normal;
  line-height: 1.5;
}

body[data-page="contact"] .mono-contact-map-shell.is-loaded .map-consent-button {
  display: none;
}

body[data-page="contact"] .company-data-disclosure {
  border: 0;
  background: #f3f3f2;
}

body[data-page="contact"] .company-data-disclosure > summary {
  display: none;
}

body[data-page="contact"] .company-copy-section {
  padding-top: 64px;
  padding-bottom: 72px;
}

/* ---------- Wspólna wersja mobilna ---------- */
@media (max-width: 760px) {
  body[data-page] .header-row {
    min-height: 88px;
  }

  body[data-page] .mono-main-nav a,
  body[data-page] .mono-main-nav button,
  body[data-page] .menu-toggle {
    min-height: 44px;
  }

  body[data-page] :is(
    .mono-intro-section h2,
    .mono-offer-section .mono-section-heading h2,
    .mono-locations-section .mono-section-heading h2,
    .contact-page-heading h1,
    .about-story h1,
    .about-values-heading h2,
    .about-reviews-heading h2,
    .materials-hero h1,
    .materials-stage h2
  ) {
    white-space: normal !important;
    text-wrap: balance;
    letter-spacing: -.035em;
  }

  body[data-page] :is(
    .mono-question-answer p,
    .mono-benefit p,
    .mono-offer-item p,
    .mono-contact-hours-compact li span,
    .mono-contact-hours-compact li b,
    .footer-grid a,
    .footer-grid p
  ) {
    font-size: .84rem;
  }

  body[data-page="home"] .mono-hero {
    min-height: 620px;
    border-radius: 0 0 50% 50% / 0 0 5% 5%;
    background-position: 60% center;
  }

  body[data-page="home"] .mono-hero-inner {
    width: min(100% - 36px, 1240px);
    min-height: 620px;
    padding-top: 96px;
    padding-bottom: 128px;
  }

  body[data-page="home"] .mono-hero-copy {
    max-width: 100%;
    margin: 0;
    transform: translateY(8px);
  }

  body[data-page="home"] .mono-hero-title {
    max-width: 100%;
    font-size: min(2.75rem, 8.3vw);
    line-height: 1.08;
  }

  body[data-page="home"] .mono-hero-lead {
    max-width: 32rem;
    font-size: 1rem;
  }
body[data-page="home"] .mono-hero-button,
body[data-page="home"] .mono-intro-section h2,
  body[data-page="home"] .mono-offer-section .mono-section-heading h2,
  body[data-page="home"] .mono-locations-section .mono-section-heading h2 {
    font-size: clamp(1.7rem, 8vw, 2.35rem) !important;
    line-height: 1.15;
  }

  body[data-page="home"] .mono-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  body[data-page="home"] .mono-benefit h3 {
    font-size: 1rem;
  }

  body[data-page="home"] .mono-benefit p {
    font-size: .84rem;
    line-height: 1.6;
  }

  /* Zamiast ruchomej, bardzo długiej karuzeli: 12 marek w zwartej siatce. */
  body[data-page="home"] .partner-marquee-shell {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 0;
  }

  body[data-page="home"] .partner-marquee-arrow {
    display: none;
  }

  body[data-page="home"] .partner-marquee-viewport {
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body[data-page="home"] .partner-marquee-track {
    width: 100%;
    display: block;
    animation: none !important;
    transform: none !important;
  }

  body[data-page="home"] .partner-marquee-group:first-child {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page="home"] .partner-marquee-group[aria-hidden="true"],
  body[data-page="home"] .partner-marquee-group:first-child .partner-marquee-logo:nth-child(n+13) {
    display: none;
  }

  body[data-page="home"] .partner-marquee-logo {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 8px;
  }

  body[data-page="home"] .partner-marquee-logo img {
    max-width: 100%;
    max-height: 34px;
  }

  body[data-page="home"] .mono-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border: 0;
  }

  body[data-page="home"] .mono-offer-item {
    min-height: 230px;
    padding: 20px 16px;
    border: 0;
    border-radius: 18px;
  }

  body[data-page="home"] .mono-offer-item h3 {
    margin: 16px 0 8px;
    font-size: 1rem;
    line-height: 1.3;
  }

  body[data-page="home"] .mono-offer-item p {
    font-size: .76rem;
    line-height: 1.5;
  }

  body[data-page="home"] .mono-locations-section .mono-section-heading h2 {
    max-width: 100%;
  }

  body[data-page="home"] .mono-locations-section .mono-contact-layout {
    gap: 18px;
  }



body[data-page="about"] .about-story h1,
  body[data-page="about"] .about-values-heading h2,
  body[data-page="about"] .about-reviews-heading h2 {
    font-size: clamp(1.9rem, 8.5vw, 2.55rem) !important;
    line-height: 1.12;
  }

  body[data-page="about"] .about-story-copy > p:last-child,
  body[data-page="about"] .about-value-card p,
  body[data-page="about"] .about-review-card blockquote {
    font-size: .94rem;
  }

  body[data-page="about"] .about-review-card {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body[data-page="about"] .about-review-card blockquote {
    overflow: visible !important;
    padding-right: 0 !important;
  }
body[data-page="contact"] .contact-page-heading h1 {
    font-size: clamp(1.9rem, 8.8vw, 2.6rem) !important;
    line-height: 1.12;
  }

  body[data-page="contact"] .contact-page-intro {
    font-size: .94rem;
  }

  body[data-page="contact"] .mono-contact-store {
    padding: 18px;
  }

  body[data-page="contact"] .mono-contact-tile {
    min-height: 94px;
    padding: 16px;
  }

  body[data-page="contact"] .mono-contact-tile-label {
    font-size: .74rem;
  }

  body[data-page="contact"] .mono-contact-tile-value,
  body[data-page="contact"] .mono-contact-tile-value a,
  body[data-page="contact"] .mono-contact-tile-value span {
    font-size: 1rem;
  }

  body[data-page="contact"] .mono-contact-map-shell,
  body[data-page="contact"] .mono-contact-map-shell iframe {
    min-height: 250px;
  }

  body[data-page="contact"] .company-data-disclosure {
    padding: 0 18px 26px;
    background: #f3f3f2;
  }

  body[data-page="contact"] .company-data-disclosure > summary {
    min-height: 76px;
    display: grid;
    gap: 3px;
    align-content: center;
    padding: 14px 42px 14px 0;
    position: relative;
    cursor: pointer;
    list-style: none;
  }

  body[data-page="contact"] .company-data-disclosure > summary::-webkit-details-marker {
    display: none;
  }

  body[data-page="contact"] .company-data-disclosure > summary::after {
    content: "+";
    position: absolute;
    right: 3px;
    top: 50%;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid #c7c8ca;
    border-radius: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 400;
  }

  body[data-page="contact"] .company-data-disclosure[open] > summary::after {
    content: "−";
  }

  body[data-page="contact"] .company-data-disclosure > summary span {
    color: #58595b;
    font-size: 1rem;
    font-weight: 700;
  }

  body[data-page="contact"] .company-data-disclosure > summary small {
    color: #747578;
    font-size: .74rem;
    line-height: 1.35;
  }

  body[data-page="contact"] .company-copy-section {
    padding: 0;
  }

  body[data-page="contact"] .company-copy-section .container {
    width: 100%;
    padding: 0;
  }

  body[data-page="contact"] .company-copy-label {
    display: none;
  }

  body[data-page="contact"] .company-copy-card {
    margin-top: 4px;
  }
}

@media (max-width: 460px) {
  body[data-page="home"] .mono-hero-inner {
    width: min(100% - 28px, 1240px);
  }

  body[data-page="home"] .mono-hero-title {
    font-size: min(2.5rem, 8.3vw);
  }

  body[data-page="home"] .mono-hero-button,
body[data-page="home"] .mono-benefits {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .partner-marquee-group:first-child {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-page="home"] .mono-offer-grid {
    gap: 8px;
  }

  body[data-page="home"] .mono-offer-item {
    min-height: 218px;
    padding: 18px 13px;
  }

  body[data-page="home"] .mono-offer-item h3 {
    font-size: .92rem;
  }

  body[data-page="home"] .mono-offer-item p {
    font-size: .72rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  body[data-page] *,
  body[data-page] *::before,
  body[data-page] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* ---------- Kompaktowy kontakt na stronie głównej ---------- */
body[data-page="home"] .mono-home-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

body[data-page="home"] .mono-home-contact-card {
  min-width: 0;
  padding: 24px;
  background: #fff;
  border: 1px solid #dfe0e2;
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(32, 33, 36, .045);
}

body[data-page="home"] .mono-home-contact-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

body[data-page="home"] .mono-home-contact-heading h3 {
  margin: 0;
  color: #202124;
  font-size: 1.45rem;
  line-height: 1.1;
}

body[data-page="home"] .mono-home-contact-heading > a {
  color: #58595b;
  font-size: .72rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body[data-page="home"] .mono-home-contact-address {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 18px;
  color: #6f7072;
  font-size: .86rem;
  font-style: normal;
  line-height: 1.45;
}

body[data-page="home"] .mono-home-contact-address span + span::before {
  content: "·";
  margin-right: 8px;
  color: #b0b1b3;
}

body[data-page="home"] .mono-home-contact-details {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(190px, .98fr);
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e6e7;
}

body[data-page="home"] .mono-home-contact-lines,
body[data-page="home"] .mono-home-contact-hours {
  min-width: 0;
}

body[data-page="home"] .mono-home-contact-lines p {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 8px;
}

body[data-page="home"] .mono-home-contact-lines p:last-child {
  margin-bottom: 0;
}

body[data-page="home"] .mono-home-contact-lines span,
body[data-page="home"] .mono-home-contact-hours > p {
  margin: 0;
  color: #898a8c;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.45;
  text-transform: uppercase;
}

body[data-page="home"] .mono-home-contact-lines a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #202124;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

body[data-page="home"] .mono-home-contact-hours ul {
  display: grid;
  gap: 7px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

body[data-page="home"] .mono-home-contact-hours li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #6f7072;
  font-size: .78rem;
  line-height: 1.35;
}

body[data-page="home"] .mono-home-contact-hours li b {
  flex: 0 0 auto;
  color: #202124;
  font-weight: 700;
}

body[data-page="home"] .mono-home-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

body[data-page="home"] .mono-home-contact-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border: 1px solid #c8c9cb;
  border-radius: 999px;
  color: #58595b;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
}

body[data-page="home"] .mono-home-contact-actions .is-yellow {
  border-color: #ffdd00;
  background: #ffdd00;
  color: #202124;
}

body[data-page="home"] .mono-home-contact-actions .is-dark {
  border-color: #58595b;
  background: #58595b;
  color: #fff;
}

@media (max-width: 1050px) {
  body[data-page="home"] .mono-home-contact-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"] .mono-home-contact-grid {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .mono-home-contact-card {
    padding: 20px;
  }

  body[data-page="home"] .mono-home-contact-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body[data-page="home"] .mono-home-contact-heading {
    align-items: flex-start;
  }

  body[data-page="home"] .mono-home-contact-details {
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .mono-home-contact-actions a {
    flex: 1 1 auto;
    min-height: 44px;
  }
}


/* Korekta 33: trzy właściwe działania przy każdej lokalizacji. */
body[data-page="home"] .mono-home-contact-actions a {
  flex: 1 1 0;
  min-width: 132px;
  text-align: center;
}
body[data-page="home"] .mono-home-contact-actions .is-yellow:hover,
body[data-page="home"] .mono-home-contact-actions .is-yellow:focus-visible {
  border-color: #202124;
  background: #ffdd00;
  color: #202124;
}
body[data-page="home"] .mono-home-contact-actions .is-dark:hover,
body[data-page="home"] .mono-home-contact-actions .is-dark:focus-visible {
  border-color: #202124;
  background: #202124;
  color: #fff;
}
body[data-page="home"] .mono-home-contact-hours li b {
  text-align: right;
}
@media (max-width: 520px) {
  body[data-page="home"] .mono-home-contact-actions a { flex-basis: 100%; }
}
