/* ---------- Materials Page (scoped via .mp- prefix) ---------- */
.mp-section {
    --mp-blue: #3888B6;
    --mp-blue-hover: #2f7aa1;
    --mp-bg: #F4F4F4;
    --mp-rule: rgba(0, 0, 0, .35);
    --mp-shadow-btn: 2px 2px 4px rgba(0, 0, 0, .25);

    display: block;
    box-sizing: border-box;
    position: relative;
    font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
    color: #000;
    background: var(--mp-bg) url('materials-stripes-bg.png') center / cover no-repeat;
}

.mp-inner {
    max-width: var(--col, 1490px);
    margin: 0 auto;
    padding: 48px clamp(16px, 3vw, 40px) 96px;
    box-sizing: border-box;
}

@media (min-width: 1490px) {
    .mp-inner {
        padding-inline: 0;
    }
}

/* --- Кнопка «Навигация по материалам Ambrella Group» --- */
.mp-nav-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--page-gap);
}

.mp-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: var(--mp-blue);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 5px;
    padding: 8px 28px;
    width: 359px;
    max-width: 100%;
    min-height: 72px;
    box-shadow: var(--mp-shadow-btn);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    text-align: center;
}

.mp-nav-btn:hover {
    background: var(--mp-blue-hover);
    transform: translateY(-1px);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, .28);
    color: #fff !important;
}

.mp-nav-btn__label {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 400;
    flex: 1;
    text-align: center;
}

.mp-nav-btn__arrow {
    width: 40px;
    height: 14px;
    flex: 0 0 auto;
    position: relative;
}

/* --- Сетка каталогов --- */
.mp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px;
}

.mp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mp-card__cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 3/2;
    padding: 20px;
    text-decoration: none !important;
}

.mp-card__cover img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    margin: 0 !important;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .18)) drop-shadow(0 6px 10px rgba(0, 0, 0, .10));
    transition: transform .25s ease;
}

.mp-card:hover .mp-card__cover img {
    transform: translateY(-4px) scale(1.01)
}

.mp-card__links {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.mp-dl {
    font-size: 20px;
    line-height: 1.2;
    color: #000 !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--mp-rule);
    padding-bottom: 1px;
    transition: color .15s ease, border-color .15s ease;
}

.mp-dl:hover {
    color: var(--mp-blue) !important;
    border-color: var(--mp-blue)
}

/* --- Адаптив --- */
@media (max-width: 980px) {
    .mp-inner {
        padding-block: 40px 64px
    }

    .mp-nav-btn {
        width: 100%
    }

    .mp-grid {
        grid-template-columns: 1fr;
        row-gap: 56px
    }

    .mp-card__cover {
        aspect-ratio: 4/3
    }

    .mp-dl {
        font-size: 18px
    }

    .mp-card__links { 
        margin-top: 0;
    }
}

@media (max-width: 560px) {
    .mp-inner {
        padding-block: 28px 48px
    }

    .mp-nav-btn {
        min-height: 64px;
        padding: 12px 20px
    }

    .mp-nav-btn__label {
        font-size: 17px
    }

    .mp-nav-btn__arrow {
        width: 32px
    }

    .mp-dl {
        font-size: 16px
    }
}
