/* about.css - рефакторинг */
:root {
    --primary-green: #2e7d32;
    --light-green: #4caf50;
    --dark-green: #1b5e20;
}

/* Общие стили */
html {
    scroll-padding-top: 180px;
}

body.about-page {
    padding-top: 80px !important;
}

/* Hero Section */
.page-hero {
    margin-top: 0;
    padding-top: 50px !important;
}

.about-hero {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #388e3c 100%) !important;
}

.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);
}

/* Card Styles */
.mission-card, .eco-card, .award-card, .goal-card, .achievement-card, .team-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.mission-card:hover, .eco-card:hover, .award-card:hover, .goal-card:hover,
.achievement-card:hover, .team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.mission-card, .eco-card, .award-card {
    border-top: 4px solid var(--primary-green);
}

/* Enhanced Timeline */
.timeline-enhanced {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-enhanced::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-green), var(--light-green));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 120px;
    text-align: center;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.timeline-content {
    flex: 1;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 0 30px;
    border-left: 4px solid var(--primary-green);
}

.timeline-item:nth-child(odd) .timeline-content {
    border-left: none;
    border-right: 4px solid var(--primary-green);
    text-align: right;
}

.timeline-stats .badge {
    font-size: 0.7rem;
    margin-right: 5px;
}

/* Values Card */
.values-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

/* Achievement Cards */
.achievement-card {
    background: white;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    background: linear-gradient(135deg, #f8fff8 0%, #f0fff0 100%);
}

/* Goal Cards */
.goal-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.goal-card:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: translateY(-5px);
}

.goal-total {
    border: 2px solid rgba(255,255,255,0.3);
}

/* Floating Animation */
.floating-animation {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* AOS animations */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Statistics */
.stat-item {
    padding: 1rem;
    text-align: center;
}

.stat-number {
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* CTA Buttons */
.btn-warning {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    border: none;
    color: #1b5e20;
    font-weight: 600;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 179, 0, 0.3);
}

/* Recycling Stats */
.recycling-stats .badge {
    font-size: 0.7rem;
    padding: 0.4em 0.8em;
}

/* CTA Section */
.about-cta {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #1b5e20 100%) !important;
    position: relative;
    overflow: hidden;
}

.about-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;
}

.about-cta .display-5,
.about-cta .lead {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.about-cta .btn {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    margin: 0.25rem;
}

.about-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);
}

.about-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);
}

.about-cta .btn-outline-light {
    color: white !important;
    border: 2px solid white;
    background-color: transparent;
    font-weight: 600;
}

.about-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);
}

.about-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);
}

.about-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);
}

/* Якорные секции */
#mission, #history, #team, #eco, #achievements, #goals, #awards {
    padding-top: 40px;
    scroll-margin-top: 120px;
}

section.py-5 {
    padding-top: 140px !important;
}

/* Анимация для кнопки "Цели 2034" */
.quick-nav-btn[href="#goals"] {
    animation: goals-pulse 2s infinite;
    position: relative;
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%) !important;
    border-color: #ffb300 !important;
    color: #1b5e20 !important;
    font-weight: 600;
}

@keyframes goals-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 179, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 179, 0, 0);
    }
}

.quick-nav-btn[href="#goals"]:hover {
    animation: none;
    transform: scale(1.1);
    background: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%) !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .quick-nav {
        top: 90px;
        padding: 6px 0;
    }

    body.about-page {
        padding-top: 120px !important;
    }

    section.py-5 {
        padding-top: 120px !important;
    }

    #mission, #history, #team, #eco, #achievements, #goals, #awards {
        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;
    }

    .timeline-enhanced::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        align-items: flex-start;
    }

    .timeline-year {
        flex: 0 0 80px;
        margin-right: 20px;
        margin-left: 0 !important;
    }

    .timeline-content {
        margin: 0;
        text-align: left !important;
        border-left: 4px solid var(--primary-green) !important;
        border-right: none !important;
    }

    .display-4 {
        font-size: 2.2rem;
    }

    .btn-lg {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .about-cta .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }

    .about-cta .display-5 {
        font-size: 2rem;
    }

    .about-cta .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .quick-nav {
        top: 110px;
    }

    body.about-page {
        padding-top: 130px !important;
    }

    section.py-5 {
        padding-top: 100px !important;
    }

    #mission, #history, #team, #eco, #achievements, #goals, #awards {
        scroll-margin-top: 150px;
    }

    .display-4 {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }
}