.mgd-hero {
position: relative;
display: flex;
min-height: 100svh;
width: 100%;
overflow: hidden;
background: #120f0c;
color: #fff;
isolation: isolate;
} .mgd-hero__media {
position: absolute;
inset: 0;
z-index: 0; pointer-events: none;
-webkit-user-select: none;
user-select: none;
}
.mgd-hero__img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center 46%;
} .mgd-hero__mask {
position: absolute;
inset: 0;
background:
linear-gradient(105deg, rgba(16, 13, 11, 0.66) 0%, rgba(16, 13, 11, 0.44) 45%, rgba(16, 13, 11, 0.36) 100%),
linear-gradient(to top, rgba(16, 13, 11, 0.48) 0%, rgba(16, 13, 11, 0) 38%);
} .mgd-hero__front {
position: absolute;
inset: 0;
z-index: 3;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center 46%;
pointer-events: none;
} .mgd-hero__inner {
--hero-gutter: clamp(1.25rem, 5.56vw, 5rem); position: relative;
display: grid;
grid-template-columns: minmax(0, 425fr) minmax(0, 445fr) minmax(0, 425fr); grid-template-rows: 4.5rem minmax(0, 1fr) auto;
width: 100%;
max-width: 110rem;
margin-inline: auto;
padding: clamp(1.5rem, 4.5svh, 2.75rem) var(--hero-gutter) clamp(1.75rem, 5svh, 3rem);
} .mgd-hero__title { position: absolute;
top: 50%;
left: var(--hero-gutter);
translate: 0 -50%; margin: 0; width: max-content;
max-width: 100%;
font-family: var(--wp--preset--font-family--heading); font-size: min(25.3vw, calc((min(100vw, 110rem) - 11rem) / 3.45));
font-weight: 400;
line-height: 0.86;
letter-spacing: -0.005em; color: rgba(255, 255, 255, 0.82);
text-transform: uppercase;
white-space: nowrap;
} .mgd-hero__letter {
color: rgba(161, 53, 43, 0.9);
} .mgd-hero__word {
display: inline-block;
} .mgd-hero__script {
position: absolute;
z-index: 4;
right: 0.04em;
bottom: 0;
font-family: var(--wp--preset--font-family--display);
font-size: 0.144em;
font-weight: 400;
line-height: 1;
letter-spacing: 0;
text-transform: none; color: #f6f1ea;
transform: translateY(48%);
} .mgd-hero__lead {
grid-column: 1;
grid-row: 3;
align-self: end;
max-width: 27rem;
margin: 0;
font-size: var(--wp--preset--font-size--xs);
line-height: 1.85;
letter-spacing: 0.06em;
text-transform: uppercase;
text-align: justify;
color: rgba(255, 255, 255, 0.82);
}  .mgd-hero__akcje {
grid-column: 2 / -1;
grid-row: 3;
align-self: end;
justify-self: end;
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 0.75rem;
} .mgd-hero__cta {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 3rem;
padding: 0.8rem 1.6rem;
border: 1px solid rgba(255, 255, 255, 0.45);
border-radius: 0.5rem;
background: rgba(16, 13, 11, 0.42);
backdrop-filter: blur(6px);
font-size: var(--wp--preset--font-size--xs);
font-weight: 400;
letter-spacing: 0.1em;
white-space: nowrap;
text-transform: uppercase;
text-decoration: none;
color: #fff;
will-change: transform, opacity;
backface-visibility: hidden;
transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
@media (hover: hover) {
.mgd-hero__cta:hover {
background: var(--wp--preset--color--accent-light);
border-color: var(--wp--preset--color--accent-light);
color: #fff;
}
} @keyframes mgd-hero-in {
from {
opacity: 0;
transform: translateY(14px);
filter: blur(7px);
}
to {
opacity: 1;
transform: none;
filter: none;
}
} @keyframes mgd-hero-word-in {
from {
opacity: 0;
transform: translateX(-9%);
filter: blur(18px);
}
to {
opacity: 1;
transform: none;
filter: none;
}
}
@keyframes mgd-hero-script-in {
from {
opacity: 0;
transform: translate(22%, 48%);
filter: blur(10px);
}
to {
opacity: 1;
transform: translateY(48%);
filter: none;
}
} .mgd-hero__word {
animation: mgd-hero-word-in 1.25s cubic-bezier(0.22, 0.61, 0.36, 1) both;
animation-delay: 0.25s;
}
.mgd-hero__script {
animation: mgd-hero-script-in 1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
animation-delay: 1.15s;
}
.mgd-hero__lead,
.mgd-hero__cta {
animation: mgd-hero-in 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.mgd-hero__lead { animation-delay: 1.6s; }
.mgd-hero__cta { animation-delay: 1.75s; }
.mgd-hero__cta + .mgd-hero__cta { animation-delay: 1.87s; } @media (max-width: 63.9375rem) { .mgd-hero__inner {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: 3.25rem minmax(min-content, 1fr) auto auto;
row-gap: clamp(1rem, 3svh, 2rem);
} .mgd-hero__title {
position: relative;
top: auto;
left: auto;
translate: none;
grid-column: 1;
grid-row: 2;
align-self: center;
margin-bottom: 0.2em;
font-size: calc((100vw - 2 * var(--hero-gutter)) / 3.5);
} .mgd-hero__lead {
grid-column: 1;
grid-row: 3;
max-width: 34rem;
text-align: left;
}
.mgd-hero__akcje {
grid-column: 1;
grid-row: 4;
justify-self: start;
justify-content: flex-start;
}
} @media (max-width: 47.9375rem) {
.mgd-hero__inner { padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
} .mgd-hero__img {
object-position: center 34%;
} .mgd-hero__front {
display: none;
} .mgd-hero__mask {
background:
linear-gradient(180deg, rgba(16, 13, 11, 0.6) 0%, rgba(16, 13, 11, 0.52) 45%, rgba(16, 13, 11, 0.62) 100%),
linear-gradient(to top, rgba(16, 13, 11, 0.35) 0%, rgba(16, 13, 11, 0) 35%);
} .mgd-hero__lead {
text-align: left;
line-height: 1.75;
letter-spacing: 0.04em;
} .mgd-hero__akcje {
justify-self: stretch;
gap: 0.6rem;
}
.mgd-hero__cta {
flex: 1 1 auto;
padding-inline: 1rem;
text-align: center;
} .mgd-hero__script {
font-size: 0.25em;
}
} @media (max-height: 34rem) and (orientation: landscape) {
.mgd-hero {
min-height: auto;
}
.mgd-hero__inner {
min-height: 34rem;
}
}