/* ═══════════════════════════════════════════════════════
   Variant: Card
   ═══════════════════════════════════════════════════════ */

.cta-section {
    background-color: #FAFAFA;
}

.cta-card {
    background: var(--card-gradient);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 48px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
    transition: box-shadow 0.45s var(--ease-card),
                border-color 0.3s ease;
}

.cta-card:hover {
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(242, 101, 34, 0.22);
}

.cta-card__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cta-card__title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-main);
}

.cta-card__text {
    font-size: 16px;
    line-height: 1.6;
    color: #1f1f1f;
    max-width: 500px;
}

.cta-card__actions {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-top: 8px;
}

.cta-card__link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, gap 0.3s;
}

.cta-card__link:hover {
    color: var(--color-primary);
    gap: 12px;
}

.cta-card__link svg {
    transition: transform 0.3s;
}

.cta-card__link:hover svg {
    transform: translateX(4px);
}

.cta-card__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-visual-box {
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-card__logo {
    width: 220px;
    height: auto;
    animation: floatCTA 4s ease-in-out infinite alternate;
}

@keyframes floatCTA {
    0%   { transform: translateY(-10px); }
    100% { transform: translateY(10px); }
}

/* ═══════════════════════════════════════════════════════
   Variant: Banner
   ═══════════════════════════════════════════════════════ */

.banner-cta {
    background-color: #0d0f12;
}

.banner-cta__box {
    background: linear-gradient(135deg, #1c1f24 0%, #0d0f12 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-card);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28), 0 8px 20px rgba(0, 0, 0, 0.16);
    padding: 64px 80px;
    position: relative;
    overflow: hidden;
}

.banner-cta__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.banner-cta__text {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.banner-cta__title {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.banner-cta__description {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.65;
    margin: 0;
}

.banner-cta__actions {
    margin: 0;
}

/* Image variant */
.banner-cta__visual {
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 280px;
    margin-right: -40px;
    margin-bottom: -64px;
}

.banner-cta__image {
    width: 100%;
    height: auto;
    max-width: 280px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}

/* Stats chips variant */
.banner-cta__stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.banner-cta__stat-chip {
    display: flex;
    align-items: baseline;
    gap: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-icon);
    padding: 12px 18px;
    white-space: nowrap;
}

.banner-cta__stat-chip:nth-child(odd) {
    margin-right: 28px;
}

.banner-cta__stat-number {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.banner-cta__stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

/* Fallback glow when no image */
.banner-cta__accent {
    position: absolute;
    top: 50%;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(242, 101, 34, 0.12) 0%, transparent 65%);
    transform: translateY(-50%);
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
}

/* Без зображення і чіпів — контент по центру банера */
.banner-cta__box--centered .banner-cta__content {
    justify-content: center;
}

.banner-cta__box--centered .banner-cta__text {
    max-width: 680px;
    align-items: center;
    text-align: center;
}

.banner-cta__box--centered .banner-cta__accent {
    right: 50%;
    transform: translate(50%, -50%);
}

/* ═══════════════════════════════════════════════════════
   Variant: Dark
   ═══════════════════════════════════════════════════════ */

section.cta-dark .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
}

section.cta-dark .section-title {
    margin-bottom: 0;
    max-width: 900px;
}

section.cta-dark .section-description {
    margin-bottom: 0;
    max-width: 800px;
}

/* ═══════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════ */

@media (max-width: 992px) {
    .cta-card {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .cta-card__title {
        font-size: 24px;
    }

    .cta-card__visual {
        display: none;
    }

    .banner-cta__box {
        padding: 48px 40px;
    }

    .banner-cta__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .banner-cta__visual {
        width: 200px;
        margin-right: -16px;
        margin-bottom: -48px;
        align-self: flex-end;
    }

    .banner-cta__stats {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        align-self: flex-start;
    }

    .banner-cta__stat-chip:nth-child(odd) {
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .banner-cta__box {
        padding: 40px 24px;
    }

    /* Нульовий нижній відступ лише для варіанта з картинкою (bleed) */
    .banner-cta__box--with-image {
        padding-bottom: 0;
    }

    .banner-cta__title {
        font-size: 26px;
    }

    .banner-cta__description {
        font-size: 15px;
    }

    .banner-cta__visual {
        width: 160px;
        margin-right: 0;
        margin-bottom: 0;
        align-self: center;
    }

    .cta-card__actions {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .cta-card__actions .btn {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .cta-card__actions .cta-card__link {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}
