#esg-grid-5-1-wrap {
    container-type: inline-size;
    padding-bottom: clamp(2rem, 5vw, 4rem);
    background: #fff;
}
.catalog-intro {
    max-width: 54rem;
    margin: 16px auto 32px;
    padding: 0 24px;
    text-align: center;
    line-height: 1.6;
}
#esg-grid-5-1 > ul {
    --columns: 1;
    display: grid;
    grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
    grid-auto-rows: calc(100cqw / var(--columns));
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}
#esg-grid-5-1 > ul > li {
    --span: 1;
    grid-column: span var(--span);
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
}
#esg-grid-5-1 .esg-media-cover-wrapper,
#esg-grid-5-1 .esg-entry-media {
    width: 100%;
    height: 100%;
}
#esg-grid-5-1 .esg-entry-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#esg-grid-5-1 .esg-entry-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 150ms;
}
#esg-grid-5-1 li:hover .esg-entry-cover,
#esg-grid-5-1 li:focus-within .esg-entry-cover {
    opacity: 1;
}
#esg-grid-5-1 .esg-entry-cover > br,
#esg-grid-5-1 .esg-overlay {
    display: none;
}
#esg-grid-5-1 .eg-default-menu-skin-element-21-a {
    box-sizing: border-box;
    width: 90%;
    margin: 0 !important;
    padding: 30px 15px;
    background: #fff;
    text-align: center;
}
@container (min-width: 640px) {
    #esg-grid-5-1 > ul { --columns: 2; }
    #esg-grid-5-1 li:nth-child(3n + 1) { --span: 2; }
}
@container (min-width: 960px) {
    #esg-grid-5-1 > ul { --columns: 3; }
    #esg-grid-5-1 li:nth-child(n) { --span: 1; }
    #esg-grid-5-1 li:nth-child(4n + 2),
    #esg-grid-5-1 li:nth-child(4n + 3) { --span: 2; }
}
@container (min-width: 1170px) {
    #esg-grid-5-1 > ul { --columns: 4; }
    #esg-grid-5-1 li:nth-child(n) { --span: 1; }
    #esg-grid-5-1 li:nth-child(6n + 3),
    #esg-grid-5-1 li:nth-child(6n + 4) { --span: 2; }
}
@container (min-width: 1400px) {
    #esg-grid-5-1 > ul { --columns: 5; }
    #esg-grid-5-1 li:nth-child(n) { --span: 1; }
    #esg-grid-5-1 li:nth-child(6n + 2),
    #esg-grid-5-1 li:nth-child(6n + 3),
    #esg-grid-5-1 li:nth-child(6n + 4),
    #esg-grid-5-1 li:nth-child(6n + 5) { --span: 2; }
}

.product-details-overlay .mfp-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.product-details-overlay .mfp-container::before {
    display: none;
}
.product-details-overlay .mfp-content {
    width: auto;
    max-width: 100%;
}
.white-popup-block.product-detail {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    position: relative;
    width: min(1080px, calc(100vw - 48px));
    height: min(660px, calc(100dvh - 48px));
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px #001c3440;
    text-align: left;
}
.product-detail .product-detail-photo {
    min-height: 0;
    background: #edf2f4;
}
.product-detail .product-detail-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-detail .product-detail-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-height: 0;
    padding: 44px 40px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: #263c4a;
    font-size: 16px;
    line-height: 1.6;
}
.product-detail .product-detail-label {
    margin: 0 0 10px;
    color: #005596;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.product-detail .product-detail-heading h2 {
    margin: 0 24px 12px 0;
    color: #12354c;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.03em;
    text-transform: none;
    overflow-wrap: anywhere;
}
.product-detail .product-detail-intro {
    margin: 0;
    color: #647785;
    font-size: 14px;
}
.product-detail .product-variants {
    display: grid;
    gap: 16px;
}
.product-detail .product-variant {
    padding: 20px;
    border: 1px solid #e1e9ed;
    border-radius: 12px;
    background: #f7fafb;
}
.product-detail .product-variant h3 {
    margin: 0 0 12px;
    color: #164c70;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}
.product-detail .product-formats {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.product-detail .product-formats li {
    position: relative;
    margin: 0;
    padding-left: 16px;
    font-size: 16px;
    line-height: 1.5;
}
.product-detail .product-formats li::before {
    content: "";
    position: absolute;
    top: .65em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4c92b7;
}
.product-detail .product-formats strong {
    color: #12354c;
    font-weight: 700;
}
.product-detail .product-note {
    margin: 0;
    padding: 0 0 0 14px;
    border-left: 3px solid #b9d7e7;
    color: #647785;
    font-size: 14px;
    line-height: 1.6;
}
.product-detail .product-detail-contact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #e1e9ed;
}
.product-detail .product-detail-contact p {
    margin: 0;
    font-size: 14px;
    color: #647785;
}
.product-detail .product-detail-contact a {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 8px;
    background: #005596;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.product-detail .product-detail-contact a:hover {
    background: #12354c;
}
.product-detail button.product-detail-close {
    position: absolute;
    z-index: 5;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #dce5ea;
    border-radius: 50%;
    background: #fff;
    color: #12354c;
    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.product-detail button.product-detail-close:hover {
    background: #edf4f8;
    color: #12354c;
}
.product-detail a:focus-visible,
.product-detail button:focus-visible {
    outline: 3px solid #4c92b7;
    outline-offset: 3px;
}
@media (max-width: 700px) {
    .white-popup-block.product-detail {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: min(26dvh, 200px) minmax(0, 1fr);
        width: calc(100vw - 24px);
        height: calc(100dvh - 24px);
        margin: 0 auto;
        border-radius: 14px;
    }
    .product-detail .product-detail-content {
        padding: 24px 20px;
        gap: 24px;
    }
    .product-detail .product-detail-heading h2 {
        margin-right: 0;
    }
    .product-detail .product-variant {
        padding: 16px;
    }
    .product-detail .product-detail-contact {
        flex-wrap: wrap;
    }
}
