/* =========================================
   ivEng — СТРАНИЦА «МАТЕРИАЛЫ» (PDF)
   Использует стили главной: home-hero-label,
   home-section-heading, home-section-kicker
========================================= */

/* ---------- Шапка ---------- */

.materials-hero {
    position: relative;
    overflow: hidden;
    padding: 24px 0 64px;

    background:
        radial-gradient(ellipse at 85% 15%, rgba(112, 231, 162, 0.30), transparent 48%),
        radial-gradient(ellipse at 15% 100%, rgba(134, 239, 172, 0.22), transparent 50%),
        linear-gradient(135deg, #f5fff8 0%, #e6faee 55%, #c9f5da 100%);
}

.materials-hero::before {
    content: "";
    position: absolute;
    width: 850px;
    height: 400px;
    right: -250px;
    top: -280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(-18deg);
    pointer-events: none;
}

.materials-hero .container {
    position: relative;
    z-index: 1;
}

.materials-hero-inner {
    max-width: 720px;
    margin: 18px auto 0;
    text-align: center;
}

.materials-hero-title {
    margin-bottom: 18px;

    color: #064e3b;
    font-size: clamp(32px, 3.4vw, 48px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
}

.materials-hero-title span {
    color: #16a34a;
}

.materials-hero-description {
    max-width: 560px;
    margin: 0 auto 24px;

    color: #426457;
    font-size: 17px;
    line-height: 1.75;
}

.materials-hero-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.materials-hero-facts span {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 14px;

    background: rgba(255, 255, 255, 0.75);
    border: 1px solid #d3efdc;
    border-radius: 30px;

    color: #285c44;
    font-size: 14px;
    font-weight: 500;
}

.materials-hero-facts i {
    color: #16a34a;
}

.materials-hero-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ---------- Секции ---------- */

.materials-section {
    scroll-margin-top: 70px;
}

.materials-section--tinted {
    background: #f7fbf8;
    border-top: 1px solid #edf4ef;
}


/* ---------- Карточка PDF ---------- */

.materials-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    padding: 28px;

    background: #fff;
    border: 1px solid #e2eee6;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.025);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.materials-card:hover {
    transform: translateY(-6px);
    border-color: #86efac;
    box-shadow:
        0 12px 30px rgba(22, 163, 74, 0.12),
        0 4px 12px rgba(22, 163, 74, 0.06);
}

.materials-card--featured {
    border-color: #b8e7c7;
    background: linear-gradient(160deg, #ffffff 0%, #f1fcf5 100%);
}

.materials-badge {
    position: absolute;
    top: 22px;
    right: 22px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 12px;

    background: #d8f8e4;
    border-radius: 30px;

    color: #166534;
    font-size: 12px;
    font-weight: 600;
}

.materials-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;
    margin-bottom: 18px;

    border-radius: 14px;
    background: #edf9f1;
    color: #16a34a;
    font-size: 24px;

    transition: transform .3s ease;
}

.materials-card:hover .materials-icon {
    transform: translateY(-3px) scale(1.06);
}

.materials-icon--solid {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    margin-bottom: 0;

    background: #168447;
    color: #fff;
}

.materials-card h3,
.materials-wide h3 {
    margin-bottom: 8px;

    color: #183d2c;
    font-size: 20px;
    font-weight: 700;
}

.materials-card p,
.materials-wide p {
    margin-bottom: 14px;

    color: #718278;
    font-size: 14px;
    line-height: 1.7;
}

.materials-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 22px;

    color: #6b8074;
    font-size: 13px;
}

.materials-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.materials-meta i {
    color: #16a34a;
}

.materials-download {
    margin-top: auto;
}

.materials-more {
    margin-top: 30px;
    text-align: center;
}

.materials-more-link {
    color: #168447;
    font-weight: 600;
    text-decoration: none;
}

.materials-more-link:hover {
    color: #0f6b38;
    text-decoration: underline;
}


/* ---------- Широкая карточка (модальные) ---------- */

.materials-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    max-width: 980px;
    margin: 0 auto;
    padding: 32px;

    background: #fff;
    border: 1px solid #e2eee6;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(22, 101, 52, 0.06);
}

.materials-wide-main {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
}

.materials-wide .materials-meta {
    margin-bottom: 0;
}

.materials-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.materials-tags span {
    padding: 4px 11px;

    background: #edf9f1;
    border-radius: 8px;

    color: #166534;
    font-size: 13px;
    font-weight: 600;
}

.materials-wide-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}


/* ---------- Адаптив ---------- */

@media (max-width: 991.98px) {

    .materials-wide {
        flex-direction: column;
        align-items: stretch;
    }

    .materials-wide-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {

    .materials-hero {
        padding: 16px 0 44px;
    }

    .materials-hero-description {
        font-size: 15px;
    }

    .materials-hero-nav .btn {
        width: 100%;
    }

    .materials-card {
        padding: 22px;
    }

    .materials-badge {
        position: static;
        margin-bottom: 14px;
    }

    .materials-download {
        width: 100%;
    }

    .materials-wide {
        padding: 22px;
    }

    .materials-wide-main {
        flex-direction: column;
        gap: 16px;
    }

    .materials-wide-actions .btn {
        width: 100%;
    }
}
