/* Strona glowna wg makiety strona-glowna.dc.html (kafle produktow z archive.css, opinie z product.css). */

.dm-front { padding-top: 0; }
.dm-front .dm-h2 { font-size: 44px; line-height: 1.05; margin: 0; }
.dm-btn--duzy { min-height: 54px; padding: 0 30px; font-size: 14px; letter-spacing: .08em; }
.dm-linkcaps { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--dm-ink); padding-bottom: 2px; }
.dm-sekcja__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 28px; }
.dm-sekcja__head p { margin: 6px 0 0; color: var(--dm-ink-2); }

/* Hero: zdjecie po prawej przechodzace gradientem w jasne tlo */
.dm-hero { position: relative; overflow: hidden; background: var(--dm-cream); min-height: 640px; display: flex; align-items: center; }
.dm-hero__img { position: absolute; top: 0; right: 0; width: 68%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.dm-hero__fade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--dm-cream) 0%, var(--dm-cream) 34%, rgba(245,243,239,.85) 44%, rgba(245,243,239,0) 62%); }
.dm-hero__in { position: relative; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.dm-hero__txt { max-width: 520px; display: flex; flex-direction: column; gap: 22px; }
.dm-hero__h { margin: 0; font-family: var(--dm-serif); font-weight: 400; font-size: 64px; line-height: 1.02; letter-spacing: -.01em; }
.dm-hero__h em { color: var(--dm-akcent); }
.dm-hero__p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--dm-ink-2); max-width: 440px; }
.dm-hero .dm-btn--duzy { align-self: flex-start; }
.dm-promo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 10px; padding: 14px 16px; background: rgba(255,255,255,.85); border: 1px solid var(--dm-line-4); border-radius: var(--dm-r-card); max-width: 460px; }
.dm-promo__txt { flex: 1 1 200px; display: flex; flex-direction: column; line-height: 1.4; }
.dm-promo__txt strong { font-size: 15px; }
.dm-promo__txt span { font-size: 13px; color: var(--dm-ink-3); }
.dm-promo__kod { display: inline-flex; align-items: center; min-height: 44px; border: 1px dashed var(--dm-akcent); border-radius: var(--dm-r-btn); background: #fff; }
.dm-promo__kod > span { padding: 0 12px; font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.dm-promo__kopiuj { align-self: stretch; padding: 0 12px; border: 0; border-left: 1px dashed var(--dm-akcent); background: transparent; font: inherit; font-size: 12px; font-weight: 600; color: var(--dm-akcent-ciemny); cursor: pointer; }
.dm-hero__produkt { position: absolute; right: 24px; bottom: 24px; background: rgba(255,255,255,.95); border-radius: var(--dm-r-card); padding: 10px 14px; font-size: 13px; display: flex; align-items: center; gap: 12px; line-height: 1.35; }
.dm-hero__produkt > span:first-child { display: flex; flex-direction: column; }
.dm-hero__produkt > span:first-child > span { color: var(--dm-muted); font-size: 12px; }
@media (max-width: 860px) {
	.dm-hero { flex-direction: column; align-items: stretch; min-height: 0; }
	.dm-hero__img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; }
	.dm-hero__fade { display: none; }
	.dm-hero__in { padding-top: 32px; padding-bottom: 40px; }
	.dm-hero__h { font-size: 42px; }
	.dm-hero__produkt { right: 12px; bottom: auto; top: 12px; }
}

/* Pasek korzysci */
.dm-korzysci { border-bottom: 1px solid var(--dm-line-5); }
.dm-korzysci ul { list-style: none; margin: 0 auto; padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; }
.dm-korzysci li { display: flex; gap: 14px; align-items: center; }
.dm-korzysci .dm-usp__ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--dm-cream); display: flex; align-items: center; justify-content: center; color: var(--dm-akcent-ciemny); }
.dm-korzysci li > span:last-child { display: flex; flex-direction: column; line-height: 1.4; font-size: 13px; color: var(--dm-ink-3); }
.dm-korzysci strong { font-size: 14px; color: var(--dm-ink); }

/* Czego szukasz? – bento */
.dm-czego { padding-top: 72px; padding-bottom: 24px; }
.dm-szukam { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dm-szukam > span { font-size: 13px; color: var(--dm-ink-3); margin-right: 4px; }
.dm-szukam a { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border: 1px solid var(--dm-line-2); border-radius: 20px; font-size: 13px; font-weight: 500; background: #fff; }
.dm-szukam a:hover { border-color: var(--dm-ink); color: var(--dm-ink); }
.dm-bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 16px; }
.dm-tile { position: relative; display: block; overflow: hidden; border-radius: var(--dm-r-big); background: var(--dm-cream); color: #fff; }
.dm-tile:hover { color: #fff; }
.dm-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dm-tile:hover img { transform: scale(1.04); }
.dm-tile--1 { grid-column: 1; grid-row: 1 / span 2; }
.dm-tile--4 { grid-column: 2 / span 2; }
.dm-tile__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,24,20,0) 45%, rgba(30,24,20,.62) 100%); }
.dm-tile__txt { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.dm-tile__txt > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.dm-tile__name { font-family: var(--dm-serif); font-style: italic; font-size: 32px; line-height: 1.05; }
.dm-tile--1 .dm-tile__name { font-size: 44px; }
.dm-tile--4 .dm-tile__name { font-size: 36px; }
.dm-tile__sub { font-size: 13px; opacity: .9; }
.dm-tile__arr { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center; font-size: 18px; transition: background .2s, border-color .2s; }
.dm-tile:hover .dm-tile__arr { background: var(--dm-akcent); border-color: var(--dm-akcent); }
@media (max-width: 860px) {
	.dm-bento { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
	.dm-tile--1, .dm-tile--4 { grid-column: auto; grid-row: auto; }
	.dm-tile { aspect-ratio: 4 / 5; }
	.dm-tile__name, .dm-tile--1 .dm-tile__name, .dm-tile--4 .dm-tile__name { font-size: 26px; }
	.dm-tile__sub { display: none; }
	.dm-tile__txt { left: 14px; right: 14px; bottom: 14px; }
	.dm-tile__arr { width: 36px; height: 36px; }
}

/* Jeden wzor, piec wnetrz */
.dm-pokoj { background: var(--dm-cream); margin-top: 72px; }
.dm-pokoj__in { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: stretch; }
.dm-pokoj__txt { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.dm-pokoj .dm-h2 { font-size: 48px; }
.dm-pokoj__txt p { margin: 0; color: var(--dm-ink-2); font-size: 16px; line-height: 1.7; }
.dm-pokoj__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dm-pokoj__tabs button { min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--dm-line-2); background: #fff; color: var(--dm-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.dm-pokoj__tabs button:hover { border-color: var(--dm-ink); }
.dm-pokoj__tabs button[aria-selected="true"] { background: var(--dm-ink); border-color: var(--dm-ink); color: #fff; }
.dm-pokoj__foto { flex: 1.6 1 560px; position: relative; border-radius: var(--dm-r-big); overflow: hidden; min-height: 520px; background: var(--dm-cream); }
.dm-pokoj__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.dm-pokoj__img.is-active { opacity: 1; }
.dm-pokoj__strz { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--dm-ink); font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(28,28,28,.15); }
.dm-pokoj__strz--wstecz { right: auto; left: 16px; }
.dm-pokoj__strz:hover { background: #fff; }
.dm-pokoj__strz[hidden], .dm-pokoj__karta[hidden] { display: none; }
.dm-pokoj__karta { z-index: 2; }
.dm-pokoj__karta { position: absolute; left: 20px; bottom: 20px; right: 20px; max-width: 520px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: rgba(255,255,255,.96); border-radius: var(--dm-r-big); padding: 14px 16px; }
.dm-pokoj__karta > span { display: flex; flex-direction: column; line-height: 1.35; font-size: 12px; color: var(--dm-muted); min-width: 0; }
.dm-pokoj__karta strong { font-size: 16px; color: var(--dm-ink); }
.dm-pokoj__cena { font-size: 14px; font-weight: 600; color: var(--dm-price); }
.dm-pokoj__cena .dm-od, .dm-pokoj__cena .dm-price__unit { font-weight: 400; font-size: 12px; color: var(--dm-muted); }
.dm-pokoj__cena .dm-omnibus, .dm-pokoj__cena .screen-reader-text { display: none; }
@media (max-width: 860px) {
	.dm-pokoj .dm-h2 { font-size: 34px; }
	.dm-pokoj__foto { flex-basis: 100%; min-height: 0; aspect-ratio: 4 / 5; }
	.dm-pokoj__karta { left: 12px; right: 12px; bottom: 12px; }
}

/* Bestsellery */
.dm-best { padding-top: 56px; padding-bottom: 80px; }
.dm-best .dm-h2 { font-size: 40px; }
.dm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .dm-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dm-pcard__var { font-size: 12px; color: var(--dm-ink-3); }

/* Twoj indywidualny projekt */
.dm-projekt { background: var(--dm-cream); }
.dm-projekt__in { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.dm-projekt__in > img { flex: 1 1 380px; max-width: 560px; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--dm-r-big); }
.dm-projekt__txt { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.dm-projekt__txt p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--dm-ink-2); }
.dm-projekt__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Opinie: trzy karty zamiast przewijanego paska */
.dm-reviews--front { border-top: 0; padding: 80px var(--dm-gutter) 40px; }
.dm-reviews--front .dm-h2 { font-size: 40px; margin-bottom: 28px; }
.dm-reviews__grid { flex: 999 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.dm-reviews--front .dm-reviews__stars, .dm-reviews--front .dm-review__stars { color: var(--dm-akcent); }

/* Blog */
.dm-blog { padding-top: 48px; padding-bottom: 88px; }
.dm-blog .dm-h2 { font-size: 40px; }
.dm-blog__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.dm-blog__wpis { display: flex; flex-direction: column; gap: 14px; }
.dm-blog__wpis:hover { color: var(--dm-ink); }
.dm-blog__img { display: block; overflow: hidden; border-radius: var(--dm-r-card); aspect-ratio: 3 / 2; background: var(--dm-cream); }
.dm-blog__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dm-blog__wpis:hover .dm-blog__img img { transform: scale(1.04); }
.dm-blog__tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dm-akcent-ciemny); }
.dm-blog__tytul { font-size: 19px; line-height: 1.35; margin-top: -6px; }
.dm-blog__lead { font-size: 14px; line-height: 1.6; color: var(--dm-ink-2); }

@media (max-width: 600px) {
	.dm-front .dm-h2, .dm-best .dm-h2, .dm-blog .dm-h2, .dm-reviews--front .dm-h2 { font-size: 32px; }
	.dm-blog__grid { grid-template-columns: minmax(0, 1fr); }
}
