:root {
    --dark-bg: #1a1a1a;
    --darker-bg: #0d0d0d;
    --accent-green: #4a7c59;
    --accent-rust: #8c5e3c;
    --text-light: #e6e6e6;
    --text-muted: #999;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Навигация */
.navbar {
    background-color: var(--darker-bg) !important;
    border-bottom: 1px solid var(--accent-green);
}

.navbar-brand {
    font-weight: bold;
    color: var(--accent-green) !important;
}

.nav-link {
    color: var(--text-light) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-green) !important;
}

/* Герой секция */
.hero-section {
    background:url('../img/zabroshka.jpg') center/cover;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section-top-cities {
    background:url('../img/zabroshenoeZdanie.jpg') center/cover;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

/* Карточки городов */
.city-card {
    background: var(--darker-bg);
    border: 1px solid #333;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.city-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(74, 124, 89, 0.2);
    border-color: var(--accent-green);
}

.city-image {
    min-height: 60px;
    max-height: 327px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
}

.city-card:hover .city-image {
    transform: scale(0.95);
}

/* Контент города */
.city-content {
    padding: 2.5rem;
}

.city-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Блоки контента */
.content-block {
    margin-bottom: 2.5rem;
}

.content-block p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Секции с причинами, фактами и мифами */
.reason-section,
.myth-section,
.fact-section,
.intro-section,
.stats-section {
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 2rem;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.reason-section {
    background: linear-gradient(135deg, var(--darker-bg) 0%, #1a1a1a 100%);
}

.myth-section {
    background: linear-gradient(135deg, var(--darker-bg) 0%, #2a1a1a 100%);
    border-color: var(--accent-rust);
}

.fact-section {
    background: linear-gradient(135deg, var(--darker-bg) 0%, #1a2a1a 100%);
    border-color: var(--accent-green);
}

.intro-section {
    background: linear-gradient(135deg, var(--darker-bg) 0%, #2a2a2a 100%);
    padding: 4rem 0;
}

.stats-section {
    background: linear-gradient(135deg, var(--darker-bg) 0%, #1a2a1a 100%);
    padding: 4rem 0;
}

.reason-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-rust));
}

/* Заголовок причины */
.reason-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.reason-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    background: rgba(74, 124, 89, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-green);
}

.reason-content {
    flex: 1;
}

/* Примеры и карточки */
.reason-examples {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.example-card,
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--accent-green);
    transition: all 0.3s ease;
}

.feature-card {
    padding: 2rem;
    margin-bottom: 2rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(74, 124, 89, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(74, 124, 89, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-green);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Таймлайн */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--accent-green);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-content {
    background: var(--darker-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #333;
    position: relative;
    width: 45%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--accent-green);
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -10px;
    transform: translateX(-100%);
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -10px;
    transform: translateX(100%);
}

/* Особенности города */
.city-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.city-feature-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--accent-green);
}

/* Цитаты */
.quote-block {
    border-left: 4px solid var(--accent-rust);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

/* Галерея */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* Выделяющие элементы */
.highlight-text {
    color: var(--accent-green);
    font-weight: 600;
}

.highlight-box {
    background: linear-gradient(135deg, var(--darker-bg) 0%, #2a2a2a 100%);
    border-left: 4px solid var(--accent-green);
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box h5 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-weight: 600;
}

.highlight-box p {
    margin-bottom: 1.2rem;
}

/* Ссылки */
.text-link {
    color: #2c5530;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #4a7c59;
    transition: all 0.3s ease;
    padding: 0 2px;
}

.text-link:hover {
    color: #4a7c59;
    background-color: #f8f9fa;
    border-bottom-color: #2c5530;
    text-decoration: none;
}

.feature-card .text-link {
    color: #2c5530;
    border-bottom: 1px solid #4a7c59;
}

.feature-card .text-link:hover {
    background-color: #e9ecef;
}

/* Футер */
.footer {
    background-color: var(--darker-bg);
    border-top: 1px solid #333;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

/* Анимации */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .city-card {
        margin-bottom: 2rem;
    }
    
    .reason-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .reason-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .reason-section,
    .myth-section,
    .fact-section {
        padding: 1.5rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-content::before {
        left: -40px !important;
        right: auto !important;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .city-content {
        padding: 2rem 1.5rem;
    }
    
    .highlight-box {
        padding: 1.5rem;
        margin: 2rem 0;
    }
}