/* Pokrycia dachowe — system wizualny zgodny z podstroną Kostka brukowa. */
.roof-detailed-page {
  --roof-graphite: #58595b;
  --roof-yellow: #ffdd00;
  --roof-silver: #c7c8ca;
  --roof-ink: #222326;
  --roof-soft: #f3f3f1;
  --roof-line: rgba(88, 89, 91, .16);
  --roof-radius: 18px;
  color: var(--roof-graphite);
  background: #fff;
}

.roof-detailed-page main {
  overflow: clip;
}

.roof-detailed-page main h1,
.roof-detailed-page main h2,
.roof-detailed-page main h3,
.roof-detailed-page main p,
.roof-detailed-page main li,
.roof-detailed-page main a,
.roof-detailed-page main th,
.roof-detailed-page main td,
.roof-detailed-page main summary {
  font-family: "Open Sans", Arial, sans-serif;
}

.roof-detailed-page main p,
.roof-detailed-page main li,
.roof-detailed-page main td {
  text-wrap: pretty;
}

/* Hero: ten sam zaokrąglony, dwuczęściowy baner co na podstronie Kostka brukowa. */
.roof-detailed-page .materials-hero {
  padding: 28px 0 26px;
  background: #fff;
}

.roof-detailed-page .materials-hero-inner {
  height: 460px;
  min-height: 460px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #eeeeed 0%, #f7f7f5 100%);
}

.roof-detailed-page .materials-hero-inner::after {
  content: "";
  min-width: 0;
  background:
    linear-gradient(90deg, rgba(244, 244, 242, .68), transparent 18%),
    url("../img/home-pokrycia-dachowe-2026.webp") center 8% / cover no-repeat;
}

.roof-detailed-page .roof-hero-visual-mobile {
  display: none;
}

.roof-detailed-page .materials-hero-copy {
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px clamp(34px, 4.6vw, 60px);
}

.roof-detailed-page .materials-hero .materials-kicker {
  margin-bottom: 10px;
}

body.roof-detailed-page main .materials-hero h1:not(.visually-hidden) {
  max-width: 690px;
  margin: 0;
  color: var(--roof-ink);
  font-size: clamp(1.75rem, 2.5vw, 2.65rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.roof-detailed-page .materials-hero-copy > p:not(.materials-kicker) {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--roof-graphite);
  font-size: .82rem;
  line-height: 1.52;
  text-align: left;
}

.roof-detailed-page .roof-hero-cta {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.roof-detailed-page .roof-hero-cta p {
  max-width: 700px;
  margin: 0;
  padding: 11px 13px;
  border-left: 3px solid var(--roof-yellow);
  border-radius: 0 12px 12px 0;
  background: var(--roof-soft);
  color: var(--roof-ink);
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.48;
}

.roof-detailed-page .roof-hero-cta .roof-button {
  margin-top: 0;
}

/* Przyciski i nawigacja sekcji. */
.roof-detailed-page .roof-hero-actions,
.roof-detailed-page .roof-inline-actions,
.roof-detailed-page .roof-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.roof-detailed-page .roof-button {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 20px;
  border: 1px solid var(--roof-yellow);
  border-radius: 999px;
  background: var(--roof-yellow);
  color: var(--roof-ink);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.roof-detailed-page .roof-button:hover,
.roof-detailed-page .roof-button:focus-visible {
  border-color: var(--roof-ink);
  background: transparent;
  color: var(--roof-ink);
  transform: translateY(-1px);
}

.roof-detailed-page .roof-button.is-secondary {
  border-color: var(--roof-line);
  background: transparent;
  color: var(--roof-ink);
}

.roof-detailed-page .roof-button.is-secondary:hover,
.roof-detailed-page .roof-button.is-secondary:focus-visible {
  border-color: var(--roof-graphite);
  background: var(--roof-graphite);
  color: #fff;
}

.roof-detailed-page .materials-jump-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Wspólny rytm sekcji i nagłówków. */
.roof-detailed-page .roof-section,
.roof-detailed-page .roof-product-section {
  padding: 38px 0;
  scroll-margin-top: 98px;
  background: #fff;
}

.roof-detailed-page .roof-section.is-soft,
.roof-detailed-page .roof-product-section.is-soft {
  background: var(--roof-soft);
}

.roof-detailed-page .roof-copy-wide {
  max-width: none;
}

.roof-detailed-page .roof-section-heading {
  max-width: 910px;
  margin: 0 0 20px;
}

.roof-detailed-page .roof-section-number {
  width: fit-content;
  display: block;
  margin-bottom: 7px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--roof-yellow);
  color: rgba(88, 89, 91, .56);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.roof-detailed-page .roof-section-kicker {
  display: block;
  margin: 0 0 7px;
  color: var(--roof-graphite);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.roof-detailed-page .roof-section-heading h2,
.roof-detailed-page .roof-product-copy h2,
.roof-detailed-page .roof-decision-lead h2 {
  max-width: 780px;
  margin: 0;
  color: var(--roof-ink);
  font-size: clamp(1.8rem, 2.75vw, 2.65rem);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -.044em;
  text-wrap: balance;
}

.roof-detailed-page .roof-section-heading > p,
.roof-detailed-page .roof-product-copy > p,
.roof-detailed-page .roof-brand-lead > p,
.roof-detailed-page .roof-decision-lead > p {
  max-width: 850px;
  margin: 11px 0 0;
  color: var(--roof-graphite);
  font-size: .91rem;
  line-height: 1.64;
  text-align: justify;
}

.roof-detailed-page .roof-list-intro {
  margin: 15px 0 8px;
  color: var(--roof-ink);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Listy, ramki informacyjne i moduły wspierające. */
.roof-detailed-page .roof-check-list,
.roof-detailed-page .roof-decision-list,
.roof-detailed-page .roof-error-list,
.roof-detailed-page .roof-product-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.roof-detailed-page .roof-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  border-top: 1px solid var(--roof-line);
}

.roof-detailed-page .roof-check-list li {
  position: relative;
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--roof-line);
  color: var(--roof-graphite);
  font-size: .84rem;
  line-height: 1.55;
}

.roof-detailed-page .roof-decision-list,
.roof-detailed-page .roof-product-list,
.roof-detailed-page .roof-error-list {
  display: grid;
  gap: 8px;
}

.roof-detailed-page .roof-decision-list li,
.roof-detailed-page .roof-product-list li,
.roof-detailed-page .roof-error-list li {
  position: relative;
  padding: 0 0 0 16px;
  border: 0;
  color: var(--roof-graphite);
  font-size: .83rem;
  line-height: 1.52;
}

.roof-detailed-page .roof-check-list li::before,
.roof-detailed-page .roof-decision-list li::before,
.roof-detailed-page .roof-product-list li::before,
.roof-detailed-page .roof-error-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .67em;
  width: 7px;
  height: 3px;
  background: var(--roof-yellow);
}

.roof-detailed-page .roof-benefit-note,
.roof-detailed-page .roof-note,
.roof-detailed-page .roof-warranty-note,
.roof-detailed-page .roof-practical-tip {
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 0;
  border-left: 3px solid var(--roof-yellow);
  border-radius: 0 12px 12px 0;
  background: var(--roof-soft);
  color: var(--roof-graphite);
  font-size: .8rem;
  line-height: 1.62;
}

.roof-detailed-page .roof-benefit-note {
  margin-top: 16px;
}

.roof-detailed-page .roof-benefit-note strong,
.roof-detailed-page .roof-note strong {
  color: var(--roof-ink);
}

.roof-detailed-page .roof-warranty-note a {
  color: var(--roof-ink);
  font-weight: 700;
  text-decoration-color: var(--roof-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.roof-detailed-page .roof-product-section.is-soft .roof-practical-tip,
.roof-detailed-page .roof-section.is-soft .roof-note {
  background: #fff;
}

/* Wycena: dwa spokojne, zaokrąglone moduły. */
.roof-detailed-page .roof-valuation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: clamp(30px, 4vw, 52px);
  align-items: start;
}

.roof-detailed-page .roof-steps {
  display: grid;
  gap: 0;
  margin-top: 17px;
  border-top: 1px solid var(--roof-line);
}

.roof-detailed-page .roof-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--roof-line);
}

.roof-detailed-page .roof-step > span {
  color: rgba(88, 89, 91, .56);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.roof-detailed-page .roof-step p {
  margin: 0;
  color: var(--roof-graphite);
  font-size: .83rem;
  line-height: 1.55;
}

.roof-detailed-page .roof-valuation-aside {
  padding: 22px;
  border: 1px solid var(--roof-line);
  border-left: 4px solid var(--roof-yellow);
  border-radius: 0 14px 14px 0;
  background: #fff;
  color: var(--roof-graphite);
}

.roof-detailed-page .roof-valuation-aside h3 {
  margin: 0;
  color: var(--roof-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.38;
}

.roof-detailed-page .roof-valuation-aside p {
  margin: 11px 0 0;
  color: var(--roof-graphite);
  font-size: .82rem;
  line-height: 1.66;
  text-align: justify;
}

.roof-detailed-page .roof-aside-cta {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--roof-line);
}

.roof-detailed-page .roof-aside-cta p {
  margin: 0 0 13px;
  color: var(--roof-ink);
  font-weight: 600;
  text-align: left;
}

.roof-detailed-page .roof-valuation-aside .roof-button {
  width: 100%;
  border-color: var(--roof-yellow);
  background: var(--roof-yellow);
  color: var(--roof-ink);
}

.roof-detailed-page .roof-valuation-aside .roof-button:hover,
.roof-detailed-page .roof-valuation-aside .roof-button:focus-visible {
  border-color: var(--roof-ink);
  background: transparent;
}

/* Porównanie i decyzja. */
.roof-detailed-page .roof-comparison-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.roof-detailed-page .roof-comparison-intro article,
.roof-detailed-page .roof-surface-card,
.roof-detailed-page .roof-brand-card,
.roof-detailed-page .roof-feature-card,
.roof-detailed-page .roof-seven-card {
  padding: 19px 18px;
  border: 1px solid var(--roof-line);
  border-top: 3px solid var(--roof-yellow);
  border-radius: 14px;
  background: #fff;
}

.roof-detailed-page .roof-comparison-intro h3,
.roof-detailed-page .roof-surface-card h3,
.roof-detailed-page .roof-brand-card h3,
.roof-detailed-page .roof-feature-card h3,
.roof-detailed-page .roof-seven-card h3,
.roof-detailed-page .roof-errors-panel h3 {
  margin: 0;
  color: var(--roof-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.38;
}

.roof-detailed-page .roof-comparison-intro p,
.roof-detailed-page .roof-surface-card p,
.roof-detailed-page .roof-brand-card p,
.roof-detailed-page .roof-feature-card p,
.roof-detailed-page .roof-seven-card p,
.roof-detailed-page .roof-errors-panel p {
  margin: 11px 0 0;
  color: var(--roof-graphite);
  font-size: .82rem;
  line-height: 1.66;
  text-align: justify;
}

.roof-detailed-page .roof-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--roof-line);
  border-radius: 14px;
  background: #fff;
}

.roof-detailed-page .roof-compare-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.roof-detailed-page .roof-compare-table th,
.roof-detailed-page .roof-compare-table td {
  padding: 12px 14px;
  border-right: 1px solid var(--roof-line);
  border-bottom: 1px solid var(--roof-line);
  color: var(--roof-graphite);
  font-size: .79rem;
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}

.roof-detailed-page .roof-compare-table th:last-child,
.roof-detailed-page .roof-compare-table td:last-child {
  border-right: 0;
}

.roof-detailed-page .roof-compare-table tbody tr:last-child th,
.roof-detailed-page .roof-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.roof-detailed-page .roof-compare-table thead th {
  background: var(--roof-graphite);
  color: #fff;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.roof-detailed-page .roof-compare-table thead th:first-child {
  color: #fff;
}

.roof-detailed-page .roof-compare-table tbody tr:nth-child(even) {
  background: var(--roof-soft);
}

.roof-detailed-page .roof-compare-table tbody th {
  color: var(--roof-ink);
  font-weight: 700;
}

.roof-detailed-page .roof-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.roof-detailed-page .roof-decision-lead {
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--roof-line);
  border-left: 4px solid var(--roof-yellow);
  border-radius: 0 16px 16px 0;
  background: #fff;
  color: var(--roof-graphite);
}

.roof-detailed-page .roof-decision-lead h2 {
  color: var(--roof-ink);
}

.roof-detailed-page .roof-decision-lead p {
  color: var(--roof-graphite);
}

.roof-detailed-page .roof-decision-lead .roof-decision-summary {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--roof-line);
  color: var(--roof-graphite);
  font-size: .84rem;
  line-height: 1.68;
}

.roof-detailed-page .roof-decision-grid > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--roof-line);
  border-radius: 16px;
  background: #fff;
}

/* Powtarzalny moduł zdjęcie–tekst. */
.roof-detailed-page .roof-product-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: clamp(32px, 4.2vw, 54px);
  align-items: start;
}

.roof-detailed-page .roof-product-section.is-soft .roof-product-grid {
  grid-template-columns: 340px minmax(0, 1fr);
}

.roof-detailed-page .roof-product-section.is-soft .roof-product-media {
  order: 0;
}

.roof-detailed-page .roof-product-media {
  position: relative;
  width: 340px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: var(--roof-radius);
  background: var(--roof-silver);
}

.roof-detailed-page .roof-product-media::after {
  display: none;
}

.roof-detailed-page .roof-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: inherit;
}

.roof-detailed-page .roof-product-copy > h3.roof-section-kicker {
  margin-top: 26px;
}

.roof-detailed-page .roof-product-copy .roof-product-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}

.roof-detailed-page .roof-surface-heading {
  margin-top: 22px;
}

.roof-detailed-page .roof-surface-heading h3 {
  margin: 0 0 14px;
  color: var(--roof-ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.roof-detailed-page .roof-surface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
  border: 0;
  background: transparent;
}

.roof-detailed-page .roof-product-section.is-soft .roof-surface-card {
  background: #fff;
}

/* Marki. */
.roof-detailed-page .roof-swissporton-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  gap: clamp(24px, 3.5vw, 40px);
  align-items: start;
}

.roof-detailed-page .roof-brand-lead h3 {
  margin: 0;
  color: var(--roof-ink);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
}

.roof-detailed-page .roof-swissporton-banner {
  display: block;
  width: 100%;
  max-width: 440px;
  margin: 0 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--roof-line);
  border-radius: var(--roof-radius);
  background: #fff;
  line-height: 0;
  transition: border-color .18s ease, transform .18s ease;
}

.roof-detailed-page .roof-swissporton-banner:hover,
.roof-detailed-page .roof-swissporton-banner:focus-visible {
  border-color: var(--roof-yellow);
  transform: translateY(-2px);
}

.roof-detailed-page .roof-swissporton-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.roof-detailed-page .roof-other-brands-intro {
  margin: 22px 0 0;
  color: var(--roof-ink);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.roof-detailed-page .roof-brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 11px;
}

.roof-detailed-page .roof-brand-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}

.roof-detailed-page .roof-brand-card:hover,
.roof-detailed-page .roof-brand-card:focus-visible {
  border-color: var(--roof-yellow);
  transform: translateY(-2px);
}

.roof-detailed-page .roof-brand-card img {
  width: auto;
  max-width: 220px;
  height: 58px;
  display: block;
  margin-bottom: 16px;
  object-fit: contain;
  object-position: left center;
}

.roof-detailed-page .roof-inline-actions {
  margin-top: 18px;
}

/* System, siedem kroków i wsparcie. */
.roof-detailed-page .roof-system-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  list-style: none;
}

.roof-detailed-page .roof-system-list li {
  position: relative;
  min-height: 0;
  padding: 14px 16px 14px 36px;
  border: 1px solid var(--roof-line);
  border-radius: 12px;
  background: #fff;
  color: var(--roof-graphite);
  font-size: .82rem;
  line-height: 1.55;
}

.roof-detailed-page .roof-system-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 21px;
  width: 7px;
  height: 3px;
  background: var(--roof-yellow);
}

.roof-detailed-page .roof-seven-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  background: transparent;
}

.roof-detailed-page .roof-seven-card {
  min-height: 0;
}

.roof-detailed-page .roof-seven-card:last-child {
  grid-column: 1 / -1;
  min-height: 0;
}

.roof-detailed-page .roof-seven-card > span {
  display: block;
  width: fit-content;
  margin-bottom: 15px;
  padding: 0;
  border: 0;
  color: rgba(88, 89, 91, .56);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.roof-detailed-page .roof-errors-panel {
  margin-top: 10px;
  padding: 20px 22px;
  border: 1px solid var(--roof-line);
  border-left: 4px solid var(--roof-yellow);
  border-radius: 0 14px 14px 0;
  background: var(--roof-soft);
}

.roof-detailed-page .roof-errors-panel .roof-error-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin-top: 14px;
}

.roof-detailed-page .roof-errors-panel .roof-error-list li {
  border: 0;
  color: var(--roof-graphite);
}

.roof-detailed-page .roof-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  background: transparent;
}

.roof-detailed-page .roof-feature-card {
  min-height: 0;
}

.roof-detailed-page .roof-feature-card > span {
  display: none;
}

.roof-detailed-page .roof-feature-card:last-child {
  grid-column: auto;
}

.roof-detailed-page .roof-story-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--roof-line);
  border-left: 4px solid var(--roof-yellow);
  border-radius: 0 14px 14px 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(34, 35, 38, .04);
}

.roof-detailed-page .roof-story-cta p {
  max-width: 780px;
  margin: 0;
  color: var(--roof-graphite);
  font-size: .83rem;
  line-height: 1.62;
  text-align: justify;
}

.roof-detailed-page .roof-story-cta .roof-button {
  flex: 0 0 auto;
}

/* FAQ: te same dwie kolumny i zaokrąglone elementy. */
.roof-detailed-page .roof-faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 0;
}

.roof-detailed-page .roof-faq-item {
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--roof-line);
  border-radius: 12px;
  background: #fff;
}

.roof-detailed-page .roof-faq-item summary {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  color: var(--roof-ink);
  cursor: pointer;
  font-size: .83rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
}

.roof-detailed-page .roof-faq-item summary::-webkit-details-marker {
  display: none;
}

.roof-detailed-page .roof-faq-item summary::after {
  content: "+";
  width: auto;
  height: auto;
  flex: 0 0 auto;
  display: block;
  background: transparent;
  color: var(--roof-graphite);
  font-size: 1.1rem;
  font-weight: 400;
}

.roof-detailed-page .roof-faq-item[open] summary::after {
  content: "−";
  background: transparent;
}

.roof-detailed-page .roof-faq-answer {
  max-width: none;
  padding: 0 17px 18px;
}

.roof-detailed-page .roof-faq-answer p {
  margin: 0;
  color: var(--roof-graphite);
  font-size: .8rem;
  line-height: 1.62;
  text-align: justify;
}

/* Dolny baner identyczny z podstroną Kostka brukowa. */
.roof-detailed-page .roof-final-cta {
  padding: 0;
  background: var(--roof-yellow);
  color: var(--roof-graphite);
  box-shadow: none;
}

.roof-detailed-page .roof-final-cta-inner {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.roof-detailed-page .roof-final-cta-inner > div:first-child {
  max-width: 920px;
  display: grid;
  grid-template-columns: minmax(270px, .86fr) minmax(360px, 1.14fr);
  grid-template-areas:
    "kicker kicker"
    "title description";
  gap: 7px 24px;
  align-items: start;
}

.roof-detailed-page .roof-final-cta .materials-cta-kicker {
  grid-area: kicker;
  display: block;
  margin: 0;
  color: var(--roof-graphite);
  font-size: .64rem;
  line-height: 1.3;
}

.roof-detailed-page .roof-final-cta .materials-cta-kicker::before {
  display: none;
}

.roof-detailed-page .roof-final-cta h2 {
  grid-area: title;
  max-width: 790px;
  margin: 0;
  color: var(--roof-ink);
  font-size: clamp(1.45rem, 1.9vw, 1.8rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.roof-detailed-page .roof-final-cta-inner > div:first-child > p:not(.materials-cta-kicker) {
  grid-area: description;
  max-width: 790px;
  margin: 1px 0 0;
  color: var(--roof-graphite);
  font-size: .76rem;
  line-height: 1.5;
}

.roof-detailed-page .roof-final-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-top: 0;
}

.roof-detailed-page .roof-final-actions .roof-button:not(.is-secondary) {
  border-color: var(--roof-ink);
  background: var(--roof-ink);
  color: #fff;
}

.roof-detailed-page .roof-final-actions .roof-button:not(.is-secondary):hover,
.roof-detailed-page .roof-final-actions .roof-button:not(.is-secondary):focus-visible {
  border-color: var(--roof-ink);
  background: transparent;
  color: var(--roof-ink);
}

@media (max-width: 1100px) {
  .roof-detailed-page .materials-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  }

  .roof-detailed-page .roof-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roof-detailed-page .roof-seven-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .roof-detailed-page .roof-product-grid,
  .roof-detailed-page .roof-product-section.is-soft .roof-product-grid {
    grid-template-columns: 1fr;
    gap: 27px;
  }

  .roof-detailed-page .roof-product-media {
    width: min(100%, 520px);
  }

  .roof-detailed-page .roof-product-copy {
    width: 100%;
    max-width: 820px;
  }
}

@media (max-width: 980px) {
  .roof-detailed-page .materials-hero-inner,
  .roof-detailed-page .roof-valuation-grid,
  .roof-detailed-page .roof-decision-grid,
  .roof-detailed-page .roof-swissporton-feature {
    grid-template-columns: 1fr;
  }

  .roof-detailed-page .materials-hero-inner {
    height: auto;
    min-height: 0;
  }

  .roof-detailed-page .materials-hero-inner::after {
    min-height: 390px;
    background-position: center 8%;
  }

  .roof-detailed-page .roof-swissporton-banner {
    margin: 0;
  }
}

@media (max-width: 860px) {
  .roof-detailed-page .materials-hero {
    padding: 24px 0 30px;
  }

  .roof-detailed-page .materials-hero-copy {
    max-width: 760px;
    padding: 42px 32px;
  }

  .roof-detailed-page .materials-jump-section .container {
    width: 100%;
  }

  .roof-detailed-page .materials-jump-grid {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .roof-detailed-page .materials-jump-grid::-webkit-scrollbar {
    display: none;
  }

  .roof-detailed-page .materials-jump-card {
    min-width: 188px;
    flex: 0 0 auto;
  }

  .roof-detailed-page .roof-section,
  .roof-detailed-page .roof-product-section {
    padding: 32px 0;
  }

  .roof-detailed-page .roof-product-grid,
  .roof-detailed-page .roof-product-section.is-soft .roof-product-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .roof-detailed-page .roof-product-media {
    width: min(100%, 440px);
  }

  .roof-detailed-page .roof-final-cta-inner {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .roof-detailed-page .roof-final-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .roof-detailed-page .materials-hero-copy {
    padding: 36px 24px 32px;
  }

  .roof-detailed-page .materials-hero h1 {
    font-size: clamp(1.6rem, 6.5vw, 2.2rem);
  }

  .roof-detailed-page .materials-hero-inner::after {
    display: none;
  }

  .roof-detailed-page .roof-hero-visual-mobile {
    width: calc(100% + 48px);
    height: 250px;
    display: block;
    margin: 22px -24px 0;
    overflow: hidden;
    background: var(--roof-silver);
  }

  .roof-detailed-page .roof-hero-visual-mobile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 8%;
  }

  .roof-detailed-page .roof-hero-cta {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .roof-detailed-page .roof-hero-cta .roof-button {
    width: 100%;
  }

  .roof-detailed-page .roof-section-heading > p,
  .roof-detailed-page .roof-product-copy > p,
  .roof-detailed-page .roof-brand-lead > p,
  .roof-detailed-page .roof-decision-lead > p,
  .roof-detailed-page .roof-comparison-intro p,
  .roof-detailed-page .roof-surface-card p,
  .roof-detailed-page .roof-brand-card p,
  .roof-detailed-page .roof-feature-card p,
  .roof-detailed-page .roof-seven-card p,
  .roof-detailed-page .roof-valuation-aside p,
  .roof-detailed-page .roof-story-cta p,
  .roof-detailed-page .roof-faq-answer p {
    text-align: left;
  }

  .roof-detailed-page .roof-check-list,
  .roof-detailed-page .roof-comparison-intro,
  .roof-detailed-page .roof-surface-grid,
  .roof-detailed-page .roof-brand-grid,
  .roof-detailed-page .roof-system-list,
  .roof-detailed-page .roof-seven-grid,
  .roof-detailed-page .roof-errors-panel .roof-error-list,
  .roof-detailed-page .roof-feature-grid,
  .roof-detailed-page .roof-faq-list {
    grid-template-columns: 1fr;
  }

  .roof-detailed-page .roof-product-copy .roof-product-list {
    grid-template-columns: 1fr;
  }

  .roof-detailed-page .roof-seven-card:last-child {
    grid-column: auto;
  }

  .roof-detailed-page .roof-seven-card,
  .roof-detailed-page .roof-feature-card {
    min-height: 0;
  }

  .roof-detailed-page .roof-story-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .roof-detailed-page .roof-story-cta .roof-button {
    width: 100%;
  }

  .roof-detailed-page .roof-final-cta-inner > div:first-child {
    display: block;
  }

  .roof-detailed-page .roof-final-cta h2 {
    margin-top: 7px;
  }

  .roof-detailed-page .roof-final-cta-inner > div:first-child > p:not(.materials-cta-kicker) {
    margin-top: 9px;
  }
}

@media (max-width: 620px) {
  .roof-detailed-page .materials-hero {
    padding: 20px 0 26px;
  }

  .roof-detailed-page .materials-hero-inner {
    border-radius: 16px;
  }

  .roof-detailed-page .materials-hero-copy {
    padding: 30px 20px 26px;
  }

  .roof-detailed-page .roof-section,
  .roof-detailed-page .roof-product-section {
    padding: 28px 0;
  }

  .roof-detailed-page .roof-hero-visual-mobile {
    width: calc(100% + 40px);
    height: 190px;
    margin: 22px -20px 0;
  }

  .roof-detailed-page .roof-hero-actions,
  .roof-detailed-page .roof-inline-actions,
  .roof-detailed-page .roof-final-actions {
    display: grid;
    width: 100%;
  }

  .roof-detailed-page .roof-hero-actions,
  .roof-detailed-page .roof-inline-actions {
    grid-template-columns: 1fr;
  }

  .roof-detailed-page .roof-final-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roof-detailed-page .roof-button {
    width: 100%;
    min-height: 48px;
  }

  .roof-detailed-page .roof-product-media {
    width: 100%;
    border-radius: 14px;
  }

  .roof-detailed-page .roof-comparison-intro article,
  .roof-detailed-page .roof-surface-card,
  .roof-detailed-page .roof-brand-card,
  .roof-detailed-page .roof-feature-card,
  .roof-detailed-page .roof-seven-card {
    padding: 21px 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .roof-detailed-page .roof-button,
  .roof-detailed-page .roof-brand-card,
  .roof-detailed-page .roof-swissporton-banner {
    transition: none;
  }

  .roof-detailed-page .roof-button:hover,
  .roof-detailed-page .roof-button:focus-visible,
  .roof-detailed-page .roof-brand-card:hover,
  .roof-detailed-page .roof-brand-card:focus-visible,
  .roof-detailed-page .roof-swissporton-banner:hover,
  .roof-detailed-page .roof-swissporton-banner:focus-visible {
    transform: none;
  }
}
