.preview-footer {
    border-top: 1px solid var(--line, #dbe4ef);
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.90), rgba(236, 253, 245, 0.88)),
        #fff;
    padding: 32px 0 28px;
    overflow: hidden;
}

.footer-cta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--line, #dbe4ef);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    padding: 26px;
    box-shadow: var(--shadow, 0 18px 48px rgba(15, 23, 42, 0.08));
}

.footer-cta > div {
    min-width: 0;
}

.footer-cta span {
    display: inline-flex;
    margin-bottom: 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--blue-600, var(--blue, #2563eb));
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.footer-cta h2 {
    max-width: 760px;
    margin: 0;
    color: var(--text, #0f172a);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.12;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.footer-cta div:last-child {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.footer-primary,
.footer-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    text-align: center;
}

.footer-primary {
    background: var(--blue-600, var(--blue, #2563eb));
    color: #fff;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.2);
}

.footer-secondary {
    border: 1px solid var(--line, #dbe4ef);
    background: #fff;
    color: #334155;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(130px, 1fr));
    gap: 28px;
    padding: 34px 0 26px;
}

.footer-grid > div {
    min-width: 0;
}

.preview-footer .brand {
    color: var(--text, #0f172a);
    text-decoration: none;
}

.footer-brand .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.preview-footer .brand-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #10a37f);
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.18);
}

.preview-footer .brand strong {
    display: block;
    color: var(--text, #0f172a);
    font-size: 22px;
    line-height: 1;
}

.preview-footer .brand small {
    display: block;
    margin-top: 4px;
    color: var(--blue-600, var(--blue, #2563eb));
    font-size: 12px;
    font-weight: 950;
}

.footer-brand p {
    max-width: 360px;
    margin: 16px 0 0;
    color: var(--muted, #64748b);
    line-height: 1.65;
}

.footer-grid h3 {
    margin: 0 0 12px;
    color: var(--text, #0f172a);
    font-size: 13px;
    text-transform: uppercase;
}

.footer-grid div:not(.footer-brand) a {
    display: block;
    margin: 9px 0;
    color: #475569;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.footer-grid a:hover,
.footer-bottom a:hover {
    color: var(--blue-600, var(--blue, #2563eb));
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--line, #dbe4ef);
    padding-top: 18px;
    color: var(--muted, #64748b);
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .footer-cta,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .preview-footer {
        padding: 24px 0 22px;
    }

    .preview-footer .container {
        width: min(100% - 20px, 1280px);
    }

    .footer-cta {
        gap: 18px;
        border-radius: 14px;
        padding: 18px;
    }

    .footer-cta span {
        font-size: 10px;
        padding: 6px 10px;
    }

    .footer-cta h2 {
        font-size: 23px;
        line-height: 1.18;
    }

    .footer-cta div:last-child {
        width: 100%;
        flex-direction: column;
    }

    .footer-primary,
    .footer-secondary {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 26px 0 20px;
    }

    .footer-brand p {
        max-width: none;
    }

    .footer-grid h3 {
        margin-bottom: 8px;
    }

    .footer-grid div:not(.footer-brand) a {
        margin: 7px 0;
    }

    .footer-bottom {
        width: min(100% - 20px, 1280px);
        align-items: flex-start;
        gap: 8px;
        padding-top: 14px;
        font-size: 12px;
        line-height: 1.45;
    }
}

@media (max-width: 380px) {
    .footer-cta h2 {
        font-size: 21px;
    }

    .preview-footer .brand strong {
        font-size: 19px;
    }
}
