footer.site-footer {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 40px;
    padding: 0;
    background: transparent;
}

.footer-container {
    display: grid;
    /* make side columns narrower and give center more space */
    grid-template-columns: minmax(120px, 0.8fr) minmax(360px, 2.4fr) minmax(120px, 0.8fr);
    gap: 14px;
    align-items: stretch;
}

.footer-ad,
.footer-content {
    padding: 24px;
    border-radius: 22px;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.footer-content p {
    margin: 0;
    line-height: 1.6;
    color: #4f5f78;
    /* smaller, responsive font to help one-line display */
    font-size: clamp(12px, 1.1vw, 14px);
    white-space: nowrap;
}

.footer-content a {
    color: #2563eb;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    footer.site-footer {
        width: min(100% - 24px, 1000px);
        margin-bottom: 24px;
    }

    .footer-ad,
    .footer-content {
        padding: 20px;
    }
}