/* components/geography/geography.css */

.geography {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray-bg) 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.geography-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.geography-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.geography.animate-in .geography-header {
    opacity: 1;
    transform: translateY(0);
}

.geography-subtitle {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.geography-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark-gray);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.geography-description {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.geography-maps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.map-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
    height: fit-content;
}

.geography.animate-in .map-card {
    opacity: 1;
    transform: translateY(0);
}

.geography.animate-in .map-card:nth-child(1) {
    transition-delay: 0.2s;
}

.geography.animate-in .map-card:nth-child(2) {
    transition-delay: 0.4s;
}

.geography.animate-in .map-card:nth-child(3) {
    transition-delay: 0.6s;
}

.map-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-red);
}

.map-visual {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-radius: 20px 20px 0 0;
}

.country-map {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s ease;
}

.map-card:hover .country-map img {
    transform: scale(1.08);
}

.map-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.map-card:hover .map-highlight {
    opacity: 1;
}

.map-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.map-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.map-description {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.map-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 0.25rem;
    font-family: 'Oswald', sans-serif;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .map-visual {
        height: 250px;
    }
}

@media (max-width: 1024px) {
    .geography-maps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .map-visual {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .geography {
        padding: 4rem 0;
    }
    
    .geography-container {
        padding: 0 1.5rem;
    }
    
    .geography-title {
        font-size: 2.2rem;
    }
    
    .geography-description {
        font-size: 1.05rem;
    }
    
    .geography-maps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .map-visual {
        height: 220px;
    }
    
    .map-content {
        padding: 1.5rem;
    }
    
    .map-stats {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .geography-title {
        font-size: 1.8rem;
    }
    
    .map-visual {
        height: 200px;
    }
    
    .map-title {
        font-size: 1.3rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
}