/* ===== CTA COMPONENT - GO APPOINTMENT ===== */
/* Используем переменные из global_style.css */

.cta-section {
    position: relative;
    margin: clamp(40px, 8vw, 80px) 0 clamp(20px, 5vw, 40px);
    padding: clamp(30px, 6vw, 60px) clamp(20px, 5vw, 40px);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    border-radius: var(--radius-lg);
    text-align: center;
    transform: none;
    isolation: auto;
    overflow: visible;
}

/* Декоративные элементы */
.cta-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.cta-decoration::before,
.cta-decoration::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.cta-decoration::before {
    top: -10%;
    right: -5%;
    width: min(200px, 35vw);
    height: min(200px, 35vw);
    background: rgba(255, 255, 255, 0.25);
}

.cta-decoration::after {
    bottom: -15%;
    left: -10%;
    width: min(250px, 40vw);
    height: min(250px, 40vw);
    background: rgba(255, 255, 255, 0.15);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: min(700px, 90%);
    margin: 0 auto;
}

.cta-content h2 {
    margin: 0 0 var(--space-md);
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
}

.cta-content p {
    margin: 0 0 clamp(24px, 5vw, 32px);
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(12px, 3vw, 16px);
    justify-content: center;
    align-items: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: clamp(12px, 2.5vw, 14px) clamp(24px, 5vw, 32px);
    border-radius: 50px;
    font-family: inherit;
    font-size: clamp(0.9rem, 2.2vw, 1rem);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    white-space: nowrap;
    min-height: 48px;
}

/* Primary button - светлая версия для контраста */
.cta-btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-color);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

@media (hover: hover) {
    .cta-btn-primary:hover {
        background: #ffffff;
        border-color: #ffffff;
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
}

.cta-btn-primary:active {
    transform: translateY(0);
}

/* Outline button - светлая обводка для темного фона */
.cta-btn-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

@media (hover: hover) {
    .cta-btn-outline:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.8);
        color: #ffffff;
        transform: translateY(-2px);
    }
}

.cta-btn-outline:active {
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .cta-section {
        padding: 30px 20px;
        margin: 30px 0;
    }

    .cta-btn {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 24px 16px;
        margin: 24px 0;
        border-radius: var(--radius-md);
    }

    .cta-content h2 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .cta-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-btn {
        width: 100%;
        flex: none;
        min-height: 44px;
        padding: 12px 20px;
    }

    .cta-decoration::before,
    .cta-decoration::after {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .cta-btn,
    .cta-section {
        transition: none;
    }

    .cta-btn:hover {
        transform: none;
    }
}