.announcement-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 22, 36, .68);
}

.announcement-card {
    position: relative;
    width: min(100%, 680px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.25);
    border-radius: 4px;
    font-family: 'RNS Sanz', Arial, sans-serif;
    line-height: 1.5;
}

.announcement-accent {
    height: 5px;
    background: #ea3345;
}

.announcement-content {
    padding: 34px 40px 38px;
}

.announcement-title {
    margin: 0 48px 20px 0;
    color: #17314c;
    font-size: clamp(23px, 3vw, 30px);
    line-height: 1.2;
    font-weight: 700;
}

.announcement-text {
    color: #263748;
    font-size: 24px;
    /* line-height: 1.6; */
    /* white-space: pre-line; */
    overflow-wrap: anywhere;
}

.announcement-image {
    display: block;
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.announcement-link {
    display: inline-block;
    margin-top: 24px;
    padding: 11px 20px;
    background: #ea3345;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
}

.announcement-link:hover, .announcement-link:focus-visible {
    background: #c92234;
    color: #fff !important;
}

.announcement-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1;
    width: 44px;
    height: 44px;
    border: 0;
    background: #f2f4f6;
    color: #17314c;
    font: 32px/1 Arial, sans-serif;
    cursor: pointer;
    border-radius: 50%;
}

.announcement-close:hover {
    background: #e2e7eb;
}



@media (max-width: 600px) {
    .announcement-overlay {
        padding: 14px;
    }

    .announcement-card {
        max-height: calc(100vh - 28px);
    }

    .announcement-content {
        padding: 26px 22px 28px;
    }

    .announcement-title {
        margin-right: 44px;
    }

    .announcement-image {
        max-height: 55vh;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .announcement-card {
        animation: announcement-in .22s ease-out;
    }

    @keyframes announcement-in {
        from {
            opacity: 0;
            transform: translateY(12px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
