.mgd-realizacje {
--plytka-gap: clamp(0.5rem, 0.75vw, 0.75rem);
position: relative;
overflow: hidden;
padding-block: var(--wp--preset--spacing--70);
background: var(--wp--preset--color--base);
color: var(--wp--preset--color--contrast);
} .mgd-realizacje__naglowek {
width: 100%;
max-width: 110rem;
margin-inline: auto;
margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
padding-inline: clamp(1.25rem, 5.56vw, 5rem);
text-align: center;
}
.mgd-realizacje__badge {
display: flex;
align-items: center;
justify-content: center;
gap: 1.1rem;
margin: 0 0 0.35rem;
font-family: var(--wp--preset--font-family--display);
font-size: clamp(1.25rem, 2vw, 1.65rem);
line-height: 1.1;
color: var(--wp--preset--color--accent); will-change: transform, opacity;
backface-visibility: hidden;
} .mgd-realizacje__badge::before,
.mgd-realizacje__badge::after {
content: "";
width: clamp(2.5rem, 6vw, 5.5rem);
height: 1px;
background: var(--wp--preset--color--accent);
opacity: 0.55;
}
.mgd-realizacje__tytul {
margin: 0;
font-family: var(--wp--preset--font-family--heading);
font-size: clamp(2.1rem, 4.6vw, 4.25rem);
font-weight: 700;
line-height: 0.98;
letter-spacing: -0.02em;
text-transform: uppercase;
}
.mgd-realizacje__tytul span {
color: var(--wp--preset--color--accent-light);
}
.mgd-realizacje__opis {
max-width: 44rem;
margin: 1.25rem auto 0;
font-size: var(--wp--preset--font-size--md);
line-height: 1.75;
color: var(--wp--preset--color--muted);
} .mgd-realizacje__siatka {
display: grid;
grid-template-columns: 394fr 525fr 657fr;
gap: var(--plytka-gap);
width: 100%;
max-width: 120rem;
margin-inline: auto;
padding-inline: clamp(1rem, 2.5vw, 2.5rem); aspect-ratio: 1600 / 692;
}
.mgd-realizacje__kolumna {
display: grid;
grid-template-rows: 210fr 470fr;
gap: var(--plytka-gap);
min-height: 0;
}
.mgd-realizacje__kolumna--srodek {
grid-template-rows: 338fr 342fr;
}
.mgd-realizacje__kolumna--prawa {
grid-template-rows: 290fr 392fr;
}
.mgd-realizacje__para {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--plytka-gap);
min-height: 0;
}
.mgd-realizacje__para--nierowna {
grid-template-columns: 258fr 387fr;
} .mgd-plytka {
position: relative;
display: block;
min-height: 0;
overflow: hidden;
border-radius: 0.5rem;
background: var(--wp--preset--color--surface);
text-decoration: none;
color: #fff;
}
.mgd-plytka__obraz {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1);
} .mgd-plytka::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(to top, rgba(14, 11, 9, 0.82) 0%, rgba(14, 11, 9, 0.34) 38%, rgba(14, 11, 9, 0) 70%);
opacity: 0;
transition: opacity 0.4s ease;
}
.mgd-plytka__podpis {
position: absolute;
z-index: 2;
right: 1rem;
bottom: 0.9rem;
left: 1rem;
font-size: var(--wp--preset--font-size--xs);
line-height: 1.35;
opacity: 0;
transform: translateY(0.6rem);
transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (hover: hover) {
.mgd-plytka:hover .mgd-plytka__obraz,
.mgd-plytka:focus-visible .mgd-plytka__obraz {
transform: scale(1.06);
}
.mgd-plytka:hover::after,
.mgd-plytka:focus-visible::after {
opacity: 1;
}
.mgd-plytka:hover .mgd-plytka__podpis,
.mgd-plytka:focus-visible .mgd-plytka__podpis {
opacity: 1;
transform: none;
}
}  .mgd-realizacje__stopka {
display: flex;
justify-content: center;
margin-top: clamp(2rem, 3.5vw, 3rem);
padding-inline: clamp(1rem, 2.5vw, 2.5rem);
}
.mgd-realizacje__cta {
display: inline-flex;
align-items: center;
gap: 0.8rem;
min-height: 3.25rem;
padding: 0.9rem 1.9rem;
border: 1px solid var(--wp--preset--color--contrast);
border-radius: 0.5rem;
font-size: var(--wp--preset--font-size--xs);
letter-spacing: 0.16em;
text-transform: uppercase;
text-decoration: none;
color: var(--wp--preset--color--contrast);
will-change: transform, opacity;
backface-visibility: hidden;
transition: background-color 0.3s ease, color 0.3s ease;
}
.mgd-realizacje__cta svg {
width: 1.1rem;
height: 1.1rem;
transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (hover: hover) {
.mgd-realizacje__cta:hover {
background: var(--wp--preset--color--contrast);
color: var(--wp--preset--color--base);
}
.mgd-realizacje__cta:hover svg {
transform: translateX(0.25rem);
}
}  @media (max-width: 74.9375rem) {
.mgd-realizacje__siatka {
grid-template-columns: repeat(2, minmax(0, 1fr));
aspect-ratio: auto;
}
.mgd-realizacje__kolumna,
.mgd-realizacje__para {
display: contents;
}
.mgd-plytka {
aspect-ratio: 1 / 1;
}
.mgd-plytka--szeroka {
grid-column: span 2;
aspect-ratio: 16 / 7;
}
}
@media (max-width: 47.9375rem) {
.mgd-plytka--szeroka {
aspect-ratio: 16 / 9;
}
.mgd-realizacje__cta {
width: 100%;
justify-content: center;
white-space: normal;
text-align: center;
}
}