/* client.css - РЕФАКТОРИНГ */
:root {
    --primary-green: #2e7d32;
    --light-green: #4caf50;
    --dark-green: #1b5e20;
}

/* Общие стили */
html {
    scroll-padding-top: 180px;
}

body.client-page {
    padding-top: 80px !important;
}

/* Hero Section */
.client-hero.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 50px !important;
}

.client-hero.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff" fill-opacity="0.03" points="0,0 1000,1000 0,1000"/></svg>');
    background-size: cover;
}

.min-vh-80 {
    min-height: 40vh;
    display: flex;
    align-items: center;
}

/* Quick Navigation - ОБЪЕДИНЕННЫЕ СТИЛИ */
.quick-nav {
    position: fixed;
    top: 98px;
    left: 0;
    right: 0;
    z-index: 1025;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #dee2e6;
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.quick-nav.hidden {
    transform: translateY(-100%);
}

.quick-nav.fixed {
    transform: translateY(0);
}

.quick-nav-btn {
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: white;
    border: 2px solid #dee2e6;
    color: #6c757d;
    border-radius: 20px;
    text-decoration: none;
}

.quick-nav-btn:hover,
.quick-nav-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.quick-nav-btn:hover:not(.active) {
    background: rgba(46, 125, 50, 0.1);
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-1px);
}

/* Якорные секции */
#benefits, #smart, #comparison, #upgrade, #decision, #contact {
    padding-top: 40px;
    scroll-margin-top: 120px;
}

section.py-5 {
    padding-top: 140px !important;
}

/* Card Components */
.benefit-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-top: 4px solid var(--primary-green);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.benefit-icon {
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

/* Smart Features */
.smart-item {
    padding: 1.5rem;
    border-radius: 10px;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.smart-item:hover {
    border-left-color: var(--primary-green);
    transform: translateX(5px);
}

.smart-icon {
    transition: transform 0.3s ease;
}

.smart-item:hover .smart-icon {
    transform: rotate(5deg);
}

/* Comparison Section */
.comparison-card {
    background: white;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.comparison-card:hover {
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.comparison-item {
    transition: all 0.3s ease;
    flex: 1;
}

.comparison-item:not(.bg-success):hover {
    background: #f8f9fa !important;
}

.comparison-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Upgrade Cards */
.upgrade-card {
    background: white;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.upgrade-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-top-color: var(--primary-green);
}

.upgrade-icon {
    transition: all 0.3s ease;
}

.upgrade-card:hover .upgrade-icon {
    transform: scale(1.1) rotate(5deg);
}

.upgrade-cta {
    border-left: 4px solid var(--primary-green);
    background: linear-gradient(135deg, #f8fff8 0%, #f0fff0 100%);
}

/* Decision Cards */
.decision-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.decision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.decision-card:hover::before {
    left: 100%;
}

.decision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.decision-card:first-child:hover {
    border-color: #ffc107;
}

.decision-card:last-child:hover {
    border-color: #6c757d;
}

.feature-item {
    transition: all 0.3s ease;
    padding: 0.3rem 0;
}

.expert-advice {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Исправления для раздела выбора пути */
.decision-card:last-child {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
}

.decision-card:last-child h4 {
    color: #333 !important;
}

.decision-card:last-child p {
    color: #666 !important;
}

.decision-card:last-child .feature-item {
    color: #333 !important;
}

.decision-card:last-child .feature-item span.opacity-75 {
    opacity: 0.9 !important;
    color: #666 !important;
}

.decision-card:last-child .btn-outline-light {
    border-color: #333 !important;
    color: #333 !important;
}

.decision-card:last-child .btn-outline-light:hover {
    background: #333 !important;
    color: white !important;
}

.decision-card:last-child * {
    color: inherit !important;
}

.decision-card:last-child .text-light {
    color: #333 !important;
}

#decision.bg-gradient-success {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%) !important;
}

.decision-card:last-child .fa-check {
    color: var(--primary-green) !important;
}

.decision-card:last-child .fa-times {
    color: #dc3545 !important;
}

/* Button Styles */
.contact-buttons .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.contact-buttons .btn:hover::before {
    left: 100%;
}

.contact-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cta-buttons .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cta-buttons .btn:hover::before {
    left: 100%;
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.4);
}

/* Typography */
.display-6 {
    font-size: 2rem;
    font-weight: 700;
}

.comparison-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Адаптивность */
@media (max-width: 768px) {
    .quick-nav {
        top: 90px;
        padding: 6px 0;
    }

    body.client-page {
        padding-top: 120px !important;
    }

    section.py-5 {
        padding-top: 120px !important;
    }

    #benefits, #smart, #comparison, #upgrade, #decision, #contact {
        scroll-margin-top: 140px;
    }

    .quick-nav .row {
        justify-content: flex-start !important;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
        margin: 0 -5px;
        -webkit-overflow-scrolling: touch;
    }

    .quick-nav .col-auto {
        flex: 0 0 auto;
        padding: 0 3px;
    }

    .client-hero .display-4 {
        font-size: 2.2rem;
    }

    .comparison-card {
        margin-top: 2rem;
    }

    .smart-item {
        margin-bottom: 1rem;
        text-align: center;
        flex-direction: column;
    }

    .smart-icon {
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }

    .decision-cards .col-md-6 {
        margin-bottom: 1.5rem;
    }

    .contact-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .display-6 {
        font-size: 1.8rem;
    }

    .comparison-card h3 {
        font-size: 1.6rem;
    }

    .decision-card:last-child {
        background: rgba(255, 255, 255, 0.98) !important;
    }
}

@media (max-width: 576px) {
    .quick-nav {
        top: 110px;
    }

    body.client-page {
        padding-top: 130px !important;
    }

    section.py-5 {
        padding-top: 100px !important;
    }

    #benefits, #smart, #comparison, #upgrade, #decision, #contact {
        scroll-margin-top: 150px;
    }

    .client-hero .display-4 {
        font-size: 1.8rem;
    }

    .upgrade-card {
        margin-bottom: 1.5rem;
    }

    .display-6 {
        font-size: 1.6rem;
    }

    .comparison-card h3 {
        font-size: 1.4rem;
    }
}