/* Świat Dachu: ekspozycja producentów (slider, baner nad menu, pas marki, kafel menu), liczby i blog. */
.sd-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 22px; border-radius: 12px;
	font-weight: 800; font-size: 15px; line-height: 1.2; text-decoration: none; transition: transform .2s, filter .2s, background .2s;
}
.sd-btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
.sd-btn--primary { background: linear-gradient(135deg, var(--wp--preset--color--orange-light, #F29A3E), var(--wp--preset--color--orange, #E8760E)); color: #fff !important; }
.sd-btn--light { background: #fff; color: var(--wp--preset--color--navy-900, #07182B) !important; }

/* ---------- Slider strony głównej: ramka z białym marginesem, jak na Allegro ---------- */
.sd-hero2 { margin-block: 18px 8px; }
.sd-slider { position: relative; border-radius: 20px; overflow: hidden; background: var(--wp--preset--color--cream, #F7F4EE); }
.sd-slider__track { display: grid; }
.sd-slide {
	grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 40px);
	min-height: 360px; padding: clamp(24px, 4vw, 52px) clamp(24px, 4.5vw, 60px) clamp(56px, 5vw, 64px);
	opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s;
}
.sd-slide.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease; z-index: 1; }
.sd-slide--own { background: linear-gradient(120deg, #0E2A47 0%, #123457 55%, #1B4A78 100%); color: #fff; }
.sd-slide--brand { background: var(--tint, #EEF2F6); color: var(--wp--preset--color--navy-900, #07182B); }
.sd-slide__text { max-width: 640px; }
.sd-slide__kicker { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #7A5210; } /* kontrast min. 4,5:1 na jasnych tłach producentów */
.sd-slide--own .sd-slide__kicker { color: var(--wp--preset--color--gold-light, #F1CF7D); }
.sd-slide__title { margin: 0 0 14px; font-size: clamp(26px, 3.3vw, 46px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; color: inherit; }
.sd-slide__title span { display: block; margin-top: 8px; font-size: .6em; line-height: 1.2; color: var(--wp--preset--color--gold-light, #F1CF7D); }
.sd-slide--brand .sd-slide__title { font-size: clamp(24px, 2.8vw, 38px); }
.sd-slide__lead { margin: 0 0 20px; font-size: 16px; line-height: 1.55; max-width: 60ch; opacity: .92; }
.sd-slide__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.sd-slide__logo { display: block; margin-bottom: 14px; }
.sd-slide__logo img { height: 36px; width: auto; max-width: 180px; object-fit: contain; }
.sd-slide__media { justify-self: center; display: grid; place-items: center; width: 100%; }
.sd-slide--brand .sd-slide__media img { max-height: 300px; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.sd-hero2__collage { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; }
.sd-hero2__img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .55); }
.sd-hero2__img--2 { transform: translateY(-18px); }
.sd-slider__nav { position: absolute; z-index: 2; right: 18px; bottom: 14px; display: flex; align-items: center; gap: 8px; }
.sd-slider__arrow, .sd-slider__pause {
	width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
	background: rgba(255, 255, 255, .92); color: var(--wp--preset--color--navy-900, #07182B); box-shadow: 0 2px 8px rgba(7, 24, 43, .18);
}
.sd-slider__arrow span { width: 9px; height: 9px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateX(2px) rotate(45deg); }
.sd-slider__arrow--next span { transform: translateX(-2px) rotate(-135deg); }
.sd-slider__pause span { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.sd-slider__pause.is-paused span { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; transform: translateX(2px); }
.sd-slider__dots { display: flex; gap: 0; padding: 0 2px; }
/* Cel dotyku 24x24 px (WCAG 2.5.8), widoczna kropka w środku. */
.sd-slider__dot { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.sd-slider__dot::before { content: ""; width: 9px; height: 9px; border-radius: 5px; background: rgba(7, 24, 43, .32); transition: width .2s, background .2s; }
.sd-slider:has(.sd-slide--own.is-active) .sd-slider__dot::before { background: rgba(255, 255, 255, .55); } /* granatowy slajd: jasne kropki */
.sd-slider__dot.is-active::before { width: 22px; background: var(--wp--preset--color--orange, #E8760E); }

/* Liczby pod sliderem */
.sd-stats { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sd-stats li { display: grid; gap: 4px; align-content: start; background: #fff; border: 1px solid var(--wp--custom--line, #E6E1D6); border-radius: 14px; padding: 14px 16px; }
.sd-stats b { font-size: clamp(20px, 2vw, 26px); font-weight: 800; letter-spacing: -.02em; color: var(--wp--preset--color--navy-900, #07182B); line-height: 1.1; }
.sd-stats span { font-size: 13.5px; line-height: 1.35; color: var(--wp--preset--color--ink-2, #3A4855); }

/* ---------- Baner producentów nad menu (komputer) ---------- */
.sd-topb { position: relative; max-width: var(--wp--style--global--wide-size, 1320px); margin: 8px auto 0; height: 56px; border-radius: 12px; overflow: hidden; display: grid; }
.sd-topb .sd-slider__track { height: 56px; }
.sd-topb__slide {
	display: flex; align-items: center; gap: 18px; height: 56px; padding: 0 56px; background: var(--tint, #EEF2F6);
	color: var(--wp--preset--color--navy-900, #07182B); text-decoration: none; font-size: 15px; min-height: 0;
}
.sd-topb__logo img { height: 26px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.sd-topb__text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-topb__text b { font-weight: 800; }
.sd-topb__cta { margin-left: 8px; color: var(--wp--preset--color--orange, #E8760E); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.sd-topb__img { height: 48px; width: auto; mix-blend-mode: multiply; flex: none; }
.sd-topb__arrow { position: absolute; z-index: 2; top: 12px; left: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); cursor: pointer; display: grid; place-items: center; color: var(--wp--preset--color--navy-900, #07182B); }
.sd-topb__arrow span { width: 8px; height: 8px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateX(2px) rotate(45deg); }
.sd-topb__arrow--next { left: auto; right: 10px; }
.sd-topb__arrow--next span { transform: translateX(-2px) rotate(-135deg); }
@media (max-width: 1360px) { .sd-topb { margin-inline: 16px; } }
@media (max-width: 781px) { .sd-topb { display: none; } }

/* ---------- Pas producenta: panel marki + 4 produkty ---------- */
.sd-strip { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(0, 3.2fr); gap: 14px; background: #fff; border: 1px solid var(--wp--custom--line, #E6E1D6); border-radius: 20px; padding: 14px; margin-block: clamp(28px, 4vw, 48px); }
.sd-strip__panel { background: var(--tint, #EEF2F6); border-radius: 14px; padding: clamp(18px, 2vw, 28px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.sd-strip__logo img { height: 34px; width: auto; max-width: 170px; object-fit: contain; display: block; }
.sd-strip__kicker { margin: 4px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #7A5210; }
.sd-strip__title { margin: 0 0 6px; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; font-weight: 800; color: var(--wp--preset--color--navy-900, #07182B); }
.sd-strip .sd-strip__grid .wc-block-product-template { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* ---------- Kafel producenta w rozwijanym menu ---------- */
.sd-mmtile { display: flex; flex-direction: column; gap: 8px; width: 250px; flex: none; align-self: stretch; padding: 16px; border-radius: 14px; background: var(--tint, #EEF2F6); color: var(--wp--preset--color--navy-900, #07182B); text-decoration: none; }
.sd-mmtile__logo img { height: 24px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.sd-mmtile__title { font-size: 16px; line-height: 1.25; }
.sd-mmtile__img { width: 100%; height: 140px; object-fit: contain; mix-blend-mode: multiply; margin-top: auto; }
.sd-mmtile__cta { color: var(--wp--preset--color--orange, #E8760E); font-weight: 800; }
.sd-mmtile:hover .sd-mmtile__cta { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Blog na stronie głównej ---------- */
.sd-blogteaser__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sd-blogteaser__all { font-weight: 800; color: var(--wp--preset--color--orange, #E8760E); }
.sd-blogteaser__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sd-blogteaser__list a { display: grid; gap: 8px; height: 100%; padding: 12px; border: 1px solid var(--wp--custom--line, #E6E1D6); border-radius: 14px; background: #fff; color: var(--wp--preset--color--ink-2, #3A4855); text-decoration: none; }
.sd-blogteaser__list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.sd-blogteaser__list b { color: var(--wp--preset--color--navy-900, #07182B); font-size: 17px; line-height: 1.3; }

@media (max-width: 1100px) {
	.sd-strip { grid-template-columns: 1fr; }
	.sd-strip .sd-strip__grid .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 781px) {
	.sd-hero2 { margin-top: 12px; }
	.sd-slide { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 12px; min-height: 0; padding: 20px 18px 62px; }
	.sd-slide__media { order: -1; }
	.sd-slide--own .sd-slide__lead { display: none; } /* telefon: zwarty baner, kategorie i produkty wyżej */
	.sd-slide__title { font-size: 26px; }
	.sd-slide--brand .sd-slide__title { font-size: 21px; }
	.sd-slide__logo img { height: 26px; }
	.sd-slide__lead { margin-bottom: 14px; }
	.sd-btn { min-height: 44px; padding: 10px 16px; font-size: 14.5px; }
	.sd-slide--own .sd-slide__media { order: 2; } /* telefon: kolaż pod przyciskami, wysokość jak slajdy producentów */
	.sd-slide--brand .sd-slide__lead { display: none; }
	.sd-slide--brand .sd-slide__media img { max-height: 130px; }
	.sd-hero2__collage { max-width: 340px; justify-self: start; }
	.sd-hero2__img { border-radius: 12px; padding: 6px; }
	.sd-hero2__img--2 { transform: translateY(-8px); }
	.sd-slide__lead { font-size: 15px; }
	.sd-slider__nav { right: 50%; transform: translateX(50%); }
	.sd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sd-blogteaser__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .sd-slide { transition: none; } }
