.wd-page-title.page-title.mali-rasveta-hero {
    position: relative;
    padding: 0;
    background: #fdfbf9;
    border-bottom: 1px solid #eee8e3;
    color: #252236;
}

.mali-rasveta-hero-inner {
    position: relative;
    isolation: isolate;
    width: min(100%, 2560px);
    aspect-ratio: 2560 / 356;
    margin-inline: auto;
    font-family: Montserrat, system-ui, -apple-system, sans-serif;
}

.mali-rasveta-hero .mali-rasveta-picture,
.mali-rasveta-hero .mali-rasveta-picture > img {
    display: block;
    width: 100%;
    height: 100%;
}

.mali-rasveta-hero .mali-rasveta-picture { position: absolute; inset: 0; z-index: -1; }
.mali-rasveta-hero .mali-rasveta-picture > img { object-fit: contain; }
.mali-rasveta-hero .mali-rasveta-back { position: absolute; inset: 12px auto auto 12px; }
.mali-rasveta-hero .mali-rasveta-back .wd-back-btn { margin: 0; position: static; }

.mali-rasveta-hero h1.mali-rasveta-title {
    position: absolute;
    display: block;
    align-content: center;
    inset: 0 auto 0 6%;
    max-width: 17%;
    margin: 0;
    color: #252236;
    font-family: inherit;
    font-size: clamp(28px, 3.4vw, 66px);
    font-weight: 750;
    line-height: 1.03;
    letter-spacing: -.045em;
    text-align: left;
    text-transform: none;
    overflow-wrap: normal;
    text-wrap: balance;
}

.mali-rasveta-hero h1.mali-rasveta-title--long { font-size: clamp(20px, 2.25vw, 48px); }
.mali-rasveta-hero h1.mali-rasveta-title--narrow { font-size: clamp(18px, 2vw, 44px); max-width: 18%; }
.mali-rasveta-title-phrase { white-space: nowrap; }

.mali-rasveta-hero .mali-rasveta-labels {
    position: absolute;
    left: 24.4140625%;
    right: 3.90625%;
    bottom: 3%;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(var(--mali-rasveta-items), minmax(0, 1fr));
    text-align: center;
    line-height: 1.2;
    list-style: none;
}

.mali-rasveta-hero .mali-rasveta-labels li { padding: 0; margin: 0; }
.mali-rasveta-hero .mali-rasveta-labels--mobile { display: none; }
.mali-rasveta-hero .mali-rasveta-labels a {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    padding: 2px 0;
    text-decoration: none;
}
.mali-rasveta-hero .mali-rasveta-labels a:hover .mali-rasveta-sku { text-decoration: underline; }
.mali-rasveta-hero .mali-rasveta-labels a:focus-visible { outline: 2px solid #6256cd; outline-offset: 2px; }
.mali-rasveta-sku { color: #5b5569; font-size: clamp(9px, .78vw, 15px); font-weight: 620; white-space: nowrap; }
.mali-rasveta-sku--long { font-size: clamp(7px, .65vw, 12px); }
.mali-rasveta-price { color: #393378; font-size: clamp(10px, 1vw, 18px); font-weight: 750; white-space: nowrap; }
.mali-rasveta-hero .mali-rasveta-labels a:has(.mali-rasveta-price) { min-height: 30px; }

@media (max-width: 1023px) {
    .wd-page-title.page-title.mali-rasveta-hero { background: linear-gradient(90deg, #fff, #fcf9f5); }
    .mali-rasveta-hero-inner { width: min(100%, 490px); aspect-ratio: 960 / 592; }
    .mali-rasveta-hero .mali-rasveta-back { display: none; }
    .mali-rasveta-hero h1.mali-rasveta-title {
        inset: 5% 5% auto;
        max-width: none;
        font-size: clamp(24px, 6.3vw, 40px);
        line-height: 1.06;
        text-align: center;
    }
    .mali-rasveta-hero h1.mali-rasveta-title--long,
    .mali-rasveta-hero h1.mali-rasveta-title--narrow { font-size: clamp(19px, 5.15vw, 30px); }
    .mali-rasveta-hero .mali-rasveta-labels { left: 6.25%; right: 6.25%; bottom: 5%; }
    .mali-rasveta-hero .mali-rasveta-labels--desktop { display: none; }
    .mali-rasveta-hero .mali-rasveta-labels--mobile { display: grid; }
    .mali-rasveta-sku { font-size: 11px; }
    .mali-rasveta-sku--long { font-size: 8px; }
    .mali-rasveta-price { font-size: 14px; }
}

@media (max-width: 550px) {
    .mali-rasveta-hero h1.mali-rasveta-title { inset-block-start: 4%; }
}

@media (max-width: 360px) {
    .mali-rasveta-price { font-size: 12px; }
}
