/* business.css - Refactored */
:root {
    --primary-green: #1b5e20;
    --light-green: #388e3c;
}

/* Общие стили */
html {
    scroll-padding-top: 180px;
}

body.business-page {
    padding-top: 80px !important;
}

/* Hero Section */
.page-hero {
    margin-top: 0;
    padding-top: 50px !important;
}

.partner-hero.bg-gradient-success {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #388e3c 100%) !important;
    position: relative;
    overflow: hidden;
}

.partner-hero.bg-gradient-success::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="1000,0 0,1000 0,0"/></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;
    position: relative;
}

.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);
}

/* Cards Common Styles */
.system-card,
.income-source,
.support-card {
    background: white;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* System Cards */
.system-card {
    border-left: 4px solid var(--primary-green);
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-green), var(--light-green));
    transition: height 0.3s ease;
}

.system-card:hover::before {
    height: 100%;
}

.system-card:hover,
.income-source:hover,
.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* System Features */
.system-features .feature-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

.system-features .feature-item:last-child {
    border-bottom: none;
}

.system-features .feature-item:hover {
    padding-left: 0.5rem;
    color: var(--primary-green);
}

/* Income Sources */
.income-source {
    border-top: 4px solid var(--primary-green);
}

.income-source::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    transition: height 0.3s ease;
    z-index: 1;
}

.income-source:hover::after {
    height: 100%;
    opacity: 0.1;
}

.income-source:hover {
    transform: translateY(-8px);
}

.income-icon,
.support-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.income-source:hover .income-icon {
    transform: scale(1.1) rotate(5deg);
}

.income-source:hover .support-icon {
    transform: scale(1.1);
}

.income-amount {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.income-source:hover .income-amount {
    transform: scale(1.1);
}

/* Total Income & CTA Sections */
.total-income,
.start-cta {
    border: 2px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.total-income::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

.start-cta::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 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" fill-opacity="0.1"/></svg>');
    background-size: 50px 50px;
    animation: float 20s infinite linear;
}

/* Support Cards */
.support-card {
    border-top: 4px solid var(--primary-green);
}

.support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.support-card:hover::before {
    opacity: 0.05;
}

/* Start Features */
.start-features .feature-item {
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.start-features .feature-item:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

.feature-text {
    transition: all 0.3s ease;
}

.feature-item:hover .feature-text {
    color: #ffc107 !important;
    font-weight: 600;
}

/* Buttons */
.btn-warning {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    border: none;
    color: #1b5e20 !important;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.btn-warning:hover::before {
    left: 100%;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 179, 0, 0.4);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    animation: pulse-glow 2s infinite;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    animation: none;
}

/* Animations */
@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes float {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Якорные секции */
#systems, #income, #support, #start {
    padding-top: 40px;
    scroll-margin-top: 120px;
}

section.py-5 {
    padding-top: 140px !important;
}

/* CTA Section */
.start-cta {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #1b5e20 100%) !important;
    position: relative;
    overflow: hidden;
}

.start-cta::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 100 100" fill="%23ffffff" fill-opacity="0.03"><circle cx="50" cy="50" r="2"/></svg>') repeat;
    pointer-events: none;
}

.start-cta .display-5,
.start-cta .lead {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.start-cta .btn {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    margin: 0.25rem;
}

.start-cta .btn-light {
    background-color: white !important;
    color: #1b5e20 !important;
    border: 2px solid white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.start-cta .btn-light:hover {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.4);
}

.start-cta .btn-outline-light {
    color: white !important;
    border: 2px solid white;
    background-color: transparent;
    font-weight: 600;
}

.start-cta .btn-outline-light:hover {
    background-color: white !important;
    color: #1b5e20 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.3);
}

.start-cta .btn-warning {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%) !important;
    border: 2px solid #ffb300;
    color: #1b5e20 !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 179, 0, 0.3);
}

.start-cta .btn-warning:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.4);
}

/* Z-index fixes */
.start-cta {
    position: relative;
}

.start-cta::before {
    z-index: 1;
}

.start-cta .btn {
    position: relative;
    z-index: 10;
}

/* Accessibility */
a[target="_blank"]:not([href]),
a[href="#"] {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.start-cta a {
    text-decoration: none;
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quick-nav {
        top: 90px;
        padding: 6px 0;
    }

    body.business-page {
        padding-top: 120px !important;
    }

    section.py-5 {
        padding-top: 120px !important;
    }

    #systems, #income, #support, #start {
        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;
    }

    .partner-hero .display-4 {
        font-size: 2.2rem;
    }

    .system-card,
    .income-source,
    .support-card {
        margin-bottom: 1.5rem;
    }

    .start-cta .btn,
    .btn-lg {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .start-cta .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .start-cta .display-5 {
        font-size: 2rem;
    }

    .start-cta .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .quick-nav {
        top: 110px;
    }

    body.business-page {
        padding-top: 130px !important;
    }

    section.py-5 {
        padding-top: 100px !important;
    }

    #systems, #income, #support, #start {
        scroll-margin-top: 150px;
    }

    .partner-hero .display-4 {
        font-size: 1.8rem;
    }

    .start-features .col-md-4 {
        margin-bottom: 1rem;
    }
}