.mx-acts-page {
    --mx-primary: #0071AE;
    --mx-primary-dark: #003f66;
    --mx-primary-light: #4BC9E9;
    --mx-text: #102033;
    --mx-muted: #647887;
    --mx-bg: #f4f9fc;
    --mx-white: #ffffff;
    --mx-border: rgba(0, 113, 174, 0.13);
    --mx-shadow: 0 24px 70px rgba(0, 63, 102, 0.12);

    background: var(--mx-bg);
    color: var(--mx-text);
}

.mx-acts-container {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.mx-acts-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 9vw, 110px) 0;
    background:
        radial-gradient(circle at 12% 12%, rgba(75, 201, 233, 0.34), transparent 34%),
        radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(135deg, var(--mx-primary), var(--mx-primary-dark));
    color: var(--mx-white);
}

.mx-acts-hero__content {
    max-width: 820px;
}

.mx-acts-label {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 14px;
    font-weight: 700;
}

.mx-acts-hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.mx-acts-hero p {
    max-width: 720px;
    margin: 22px 0 0;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.75;
    opacity: 0.94;
}

.mx-acts-section {
    padding: clamp(44px, 7vw, 82px) 0;
}

.mx-acts-panel {
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--mx-border);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(75, 201, 233, 0.12), transparent 32%),
        var(--mx-white);
    box-shadow: var(--mx-shadow);
}

.mx-acts-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 28px;
    margin-bottom: 30px;
}

.mx-acts-subtitle {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--mx-primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mx-acts-top h2 {
    margin: 0 0 8px;
    color: var(--mx-primary-dark);
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.03em;
}

.mx-acts-top p {
    margin: 0;
    color: var(--mx-muted);
    line-height: 1.6;
}

.mx-acts-search {
    width: min(360px, 100%);
}

.mx-acts-search input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid var(--mx-border);
    border-radius: 16px;
    outline: none;
    background: #fff;
    color: var(--mx-text);
    font-size: 15px;
}

.mx-acts-search input:focus {
    border-color: var(--mx-primary);
    box-shadow: 0 0 0 4px rgba(0, 113, 174, 0.10);
}

.mx-acts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.mx-act-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--mx-border);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mx-act-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0, 63, 102, 0.11);
}

.mx-act-card__badge {
    width: 62px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--mx-primary), var(--mx-primary-light));
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.mx-act-card__category {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--mx-primary);
    font-size: 14px;
    font-weight: 800;
}

.mx-act-card h3 {
    margin: 0 0 10px;
    color: var(--mx-text);
    font-size: 21px;
    line-height: 1.25;
}

.mx-act-card p {
    margin: 0 0 14px;
    color: var(--mx-muted);
    line-height: 1.65;
}

.mx-act-card__date {
    color: #80919c;
    font-size: 14px;
    font-weight: 600;
}

.mx-act-card__actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 4px;
}

.mx-act-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.mx-act-btn:hover {
    transform: translateY(-2px);
}

.mx-act-btn--primary {
    background: var(--mx-primary);
    color: #fff;
}

.mx-act-btn--secondary {
    background: rgba(0, 113, 174, 0.08);
    color: var(--mx-primary);
}

.mx-acts-empty {
    display: none;
    margin-top: 24px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(0, 113, 174, 0.06);
    color: var(--mx-muted);
    text-align: center;
    font-weight: 700;
}

.mx-viewer-section {
    display: none;
    padding: 0 0 clamp(55px, 8vw, 90px);
}

.mx-viewer-section.is-visible {
    display: block;
}

.mx-viewer {
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid var(--mx-border);
    background: #fff;
    box-shadow: var(--mx-shadow);
}

.mx-viewer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px 28px;
    background:
        radial-gradient(circle at 10% 10%, rgba(75, 201, 233, 0.28), transparent 36%),
        linear-gradient(135deg, var(--mx-primary), var(--mx-primary-dark));
    color: #fff;
}

.mx-viewer__header span {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.86;
}

.mx-viewer__header h2 {
    margin: 0;
    font-size: clamp(21px, 3vw, 32px);
    line-height: 1.2;
}

.mx-viewer__close {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
}

.mx-viewer__close:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-2px);
}

.mx-viewer__body {
    height: min(78vh, 820px);
    min-height: 560px;
    background: #eef6fa;
}

.mx-viewer__body iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

@media (max-width: 900px) {
    .mx-acts-top {
        flex-direction: column;
        align-items: stretch;
    }

    .mx-acts-search {
        width: 100%;
    }

    .mx-acts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .mx-acts-container {
        width: min(100% - 24px, 1180px);
    }

    .mx-acts-panel {
        border-radius: 24px;
        padding: 18px;
    }

    .mx-act-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .mx-act-card__badge {
        width: 56px;
        height: 68px;
    }

    .mx-act-card__actions {
        flex-direction: column;
    }

    .mx-act-btn {
        width: 100%;
    }

    .mx-viewer__header {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }

    .mx-viewer__close {
        width: 100%;
    }

    .mx-viewer__body {
        height: 70vh;
        min-height: 480px;
    }
}