.safe-newsletter {
    --safe-primary: #5f3dc4;
    --safe-accent: #ffb347;
    --safe-surface: #ffffff;
    max-width: 1120px;
    margin: 0 auto 48px;
    color: #211a33;
    font-family: inherit;
}

.safe-newsletter * {
    box-sizing: border-box;
}

.safe-newsletter a {
    color: var(--safe-primary);
    text-decoration: none;
}

.safe-newsletter a:hover {
    text-decoration: underline;
}

.safe-newsletter-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    min-height: 360px;
    background: linear-gradient(135deg, var(--safe-primary), #2b174f);
    box-shadow: 0 24px 60px rgba(29, 18, 65, 0.22);
    margin-bottom: 28px;
}

.safe-newsletter-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
}

.safe-newsletter-hero-overlay {
    position: relative;
    z-index: 2;
    padding: clamp(32px, 7vw, 76px);
    color: #ffffff;
    max-width: 840px;
}

.safe-newsletter-logo {
    max-width: 170px;
    max-height: 92px;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.28));
}

.safe-newsletter-kicker,
.safe-section-kicker {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--safe-accent);
}

.safe-newsletter-hero h1 {
    margin: 0;
    font-size: clamp(2.25rem, 6vw, 4.8rem);
    line-height: 0.95;
    color: #ffffff;
}

.safe-newsletter-subtitle {
    margin: 18px 0 0;
    max-width: 660px;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: rgba(255,255,255,0.9);
}

.safe-newsletter-section {
    margin: 28px 0;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 24px;
    background: var(--safe-surface);
    border: 1px solid rgba(95, 61, 196, 0.13);
    box-shadow: 0 16px 40px rgba(40, 25, 80, 0.08);
}

.safe-intro-card {
    font-size: 1.07rem;
    line-height: 1.7;
}

.safe-featured-notice {
    background: linear-gradient(135deg, rgba(95, 61, 196, 0.1), rgba(255, 179, 71, 0.15));
    border: 2px solid rgba(95, 61, 196, 0.18);
}

.safe-featured-notice h2,
.safe-newsletter-section h2 {
    margin: 0 0 14px;
    color: #211a33;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.safe-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.safe-section-heading h2 {
    margin-bottom: 0;
}

.safe-text-link {
    font-weight: 800;
    white-space: nowrap;
}

.safe-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.safe-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(95, 61, 196, 0.12);
    box-shadow: 0 12px 30px rgba(40, 25, 80, 0.08);
}

.safe-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.safe-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.safe-card h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
}

.safe-card p {
    margin: 0;
}

.safe-card-date {
    color: var(--safe-primary);
    font-weight: 900;
    font-size: 0.94rem;
}

.safe-muted {
    color: #665d77;
}

.safe-pill {
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(95, 61, 196, 0.1);
    color: var(--safe-primary);
    font-weight: 800;
    font-size: 0.84rem;
}

.safe-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--safe-primary);
    color: #ffffff !important;
    font-weight: 900;
    line-height: 1;
    border: 2px solid var(--safe-primary);
    text-decoration: none !important;
}

.safe-button:hover {
    filter: brightness(1.05);
    text-decoration: none !important;
}

.safe-button-alt {
    background: var(--safe-accent);
    border-color: var(--safe-accent);
    color: #211a33 !important;
}

.safe-button-ghost {
    background: transparent;
    color: var(--safe-primary) !important;
}

.safe-notice-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.safe-small-notice {
    padding: 20px;
    border-radius: 18px;
    background: rgba(95, 61, 196, 0.06);
    border: 1px solid rgba(95, 61, 196, 0.12);
}

.safe-small-notice h3 {
    margin: 0 0 8px;
}

.safe-spotlight {
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: center;
    gap: 26px;
    background: #211a33;
    color: #ffffff;
}

.safe-spotlight h2,
.safe-spotlight p {
    color: #ffffff;
}

.safe-spotlight img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    aspect-ratio: 1.25;
}

.safe-action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.safe-action-row .safe-button {
    margin-top: 0;
}

.safe-newsletter-footer {
    text-align: center;
    color: #665d77;
    padding: 22px 10px 0;
}

.safe-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.safe-social-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(95, 61, 196, 0.08);
    font-weight: 800;
}

.safe-newsletter-archive {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
}

.safe-archive-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(95, 61, 196, 0.12);
    box-shadow: 0 12px 30px rgba(40, 25, 80, 0.08);
}

.safe-archive-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.safe-archive-card-body {
    padding: 20px;
}

.safe-telegram-summary {
    white-space: pre-wrap;
    padding: 18px;
    border-radius: 14px;
    background: #f6f3ff;
}

@media (max-width: 900px) {
    .safe-card-grid,
    .safe-newsletter-archive {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .safe-spotlight {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .safe-newsletter-hero {
        border-radius: 20px;
        min-height: 300px;
    }

    .safe-card-grid,
    .safe-newsletter-archive,
    .safe-notice-list {
        grid-template-columns: 1fr;
    }

    .safe-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .safe-newsletter-section {
        border-radius: 18px;
    }
}
