/* Premium Modern UI Variables */
:root {
    /* Color Scheme */
    --primary-color: #1a5f7a;
    --secondary-color: #86c6da;
    --accent-color: #ff6b6b;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --danger-color: #e74c3c;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-dark: rgba(26, 95, 122, 0.8);
    --blur-effect: blur(12px);
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1a5f7a 0%, #86c6da 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.2);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 24px 48px rgba(0, 0, 0, 0.15);
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    /* Z-index */
    --z-drawer: 100;
    --z-sticky: 200;
    --z-header: 300;
    --z-dropdown: 400;
    --z-modal: 500;
    --z-toast: 600;
}

/* Modern Reset with Enhanced Features */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: var(--radius-full);
    border: 3px solid var(--background-color);
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--secondary-color);
    }

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Enhanced Container */
.container {
    width: min(100% - 3rem, 1440px);
    margin-inline: auto;
    padding-inline: 1.5rem;
    position: relative;
}

/* Premium Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.95) 0%, rgba(134, 198, 218, 0.95) 100%);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    transform: translateZ(0);
    transition: var(--transition-medium);
    box-shadow: var(--shadow-md);
}

    .header.scrolled {
        background: linear-gradient(135deg, rgba(26, 95, 122, 0.98) 0%, rgba(134, 198, 218, 0.98) 100%);
    }

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

/* Logo and Title Styles */
.top-header {
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.95) 0%, rgba(134, 198, 218, 0.95) 100%);
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transform-style: preserve-3d;
    transition: all 0.4s var(--transition-bounce);
}

.gerb-img {
    height: 80px;
    width: auto;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--transition-bounce);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.logo:hover .gerb-img {
    transform: translateZ(30px) rotateY(15deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--surface-color);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    transition: all 0.4s var(--transition-bounce);
}

.logo:hover .logo-title {
    transform: translateZ(25px);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
}

.logo-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    transform: translateZ(15px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.75rem;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    z-index: 10;
}

.lang-switch {
    color: var(--surface-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s var(--transition-bounce);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .lang-switch:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
        border-color: rgba(255, 255, 255, 0.3);
    }

    .lang-switch.active {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: var(--shadow-sm);
    }

@media (max-width: 768px) {
    .logo-title {
        font-size: 2rem;
    }

    .logo-subtitle {
        font-size: 1rem;
    }

    .gerb-img {
        height: 60px;
    }

    .lang-switcher {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-title {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.9rem;
    }

    .gerb-img {
        height: 50px;
    }

    .lang-switcher {
        position: relative;
        right: 0;
        margin-top: 1rem;
        justify-content: center;
    }
}

/* Navigation Enhancement */
.main-nav {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

    .nav-list li a {
        position: relative;
        display: block;
        padding: 1rem 1.5rem;
        color: var(--surface-color);
        text-decoration: none;
        font-weight: 600;
        transition: var(--transition-medium);
        overflow: hidden;
        z-index: 1;
    }

        .nav-list li a::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 2px;
            background: var(--surface-color);
            transition: width 0.3s ease;
            transform: translateX(-50%);
        }

        .nav-list li a::after {
            content: '';
            position: absolute;
            inset: 0;
            background: var(--gradient-primary);
            opacity: 0;
            z-index: -1;
            transition: var(--transition-medium);
        }

        .nav-list li a:hover::before,
        .nav-list li a.active::before {
            width: 100%;
        }

        .nav-list li a:hover {
            color: var(--surface-color);
        }

            .nav-list li a:hover::after {
                opacity: 0.2;
            }

/* Обновляем стили для языковых ссылок */
.site-title-lang a {
    color: var(--surface-color);
    opacity: 0.8;
}

    .site-title-lang a:hover {
        opacity: 1;
    }

/* Обновляем цвет заголовка сайта */
.site-title-text {
    color: var(--surface-color);
}

    .site-title-text:hover {
        color: rgba(255, 255, 255, 0.9);
    }

/* Enhanced Card Styles */
.card {
    position: relative;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: var(--transition-medium);
}

    .card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-primary);
        opacity: 0;
        transition: var(--transition-medium);
        z-index: -1;
    }

    .card:hover {
        transform: translateY(-8px) rotateX(2deg) rotateY(2deg);
        box-shadow: var(--shadow-hover);
    }

        .card:hover::before {
            opacity: 0.05;
        }

/* Button Enhancement */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-decoration: none;
    color: var(--surface-color);
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: var(--transition-medium);
    will-change: transform;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient( to right, transparent, rgba(255, 255, 255, 0.2), transparent );
        transform: translateX(-100%);
        transition: var(--transition-medium);
    }

    .btn:hover {
        transform: translateY(-2px) translateZ(10px);
        box-shadow: var(--shadow-lg);
    }

        .btn:hover::before {
            transform: translateX(100%);
        }

    .btn:active {
        transform: translateY(0) translateZ(5px);
    }

/* Grid System Enhancement */
.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* Loading Animation Enhancement */
.loading {
    position: fixed;
    inset: 0;
    background: var(--glass-bg-dark);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity var(--transition-medium);
}

    .loading.hidden {
        opacity: 0;
        pointer-events: none;
    }

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Document Cards Enhancement */
.document-card {
    position: relative;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transform-style: preserve-3d;
    transition: var(--transition-medium);
}

.document-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    transform: translateZ(20px);
    transition: var(--transition-medium);
}

.document-info {
    transform: translateZ(10px);
}

.document-card:hover {
    transform: scale(1.02) translateY(-8px);
    box-shadow: var(--shadow-hover);
}

    .document-card:hover .document-icon {
        transform: translateZ(30px) rotateY(10deg);
        color: var(--accent-color);
    }

/* Hero Section Enhancement */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    transform-style: preserve-3d;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(40px);
    animation: heroTitleAnim 1s var(--transition-bounce) forwards;
}

/* Site Header Styles */
.site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.95) 0%, rgba(134, 198, 218, 0.95) 100%);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.site-title-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--transition-bounce);
}

    .site-title-wrapper:hover {
        transform: translateZ(20px) rotateX(5deg);
    }

.site-title-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--surface-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-title-wrapper:hover .site-title-text {
    transform: translateZ(30px);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), 0 12px 24px rgba(0, 0, 0, 0.2);
}

.site-logo {
    height: 80px;
    width: auto;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--transition-bounce);
}

.site-title-wrapper:hover .site-logo {
    transform: translateZ(40px) rotateY(15deg);
}

.site-title-lang {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    transform: translateZ(10px);
}

    .site-title-lang a {
        color: var(--surface-color);
        text-decoration: none;
        font-size: 1rem;
        font-weight: 500;
        opacity: 0.8;
        transition: all 0.3s ease;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }

        .site-title-lang a:hover {
            opacity: 1;
            transform: translateZ(5px);
        }

        .site-title-lang a.active {
            opacity: 1;
            font-weight: 600;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

@media (max-width: 768px) {
    .site-title {
        padding: 0.75rem;
    }

    .site-title-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        padding: 0.5rem;
    }

    .site-title-text {
        font-size: 1.1rem;
    }
}

/* News Item Enhancement */
.news-item {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.6s var(--transition-bounce) forwards;
}

/* News Grid Enhancement */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

/* Premium News Card */
.news-card {
    position: relative;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    isolation: isolate;
    transform: translateZ(0);
    height: 480px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--transition-bounce), box-shadow 0.3s var(--transition-medium);
}

    .news-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
    }

/* Advanced Image Container */
.news-image-container {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: var(--background-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

    .news-image-container::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-primary);
        opacity: 0;
        z-index: 1;
        transition: opacity 0.3s ease;
    }

.news-card:hover .news-image-container::before {
    opacity: 0.1;
}

/* Premium Image Styling */
.news-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.001); /* Prevents subpixel rendering issues */
    transition: transform 0.5s var(--transition-bounce);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.news-card:hover .news-image {
    transform: translate(-50%, -50%) scale(1.08);
}

/* Enhanced Content Area */
.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--surface-color);
    position: relative;
}

    .news-content::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        width: 90%;
        height: 1px;
        background: var(--gradient-primary);
        transform: translateX(-50%);
        opacity: 0.1;
    }

    /* Typography Enhancement */
    .news-content h3 {
        font-family: var(--font-heading);
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--primary-color);
        line-height: 1.4;
        margin: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

.news-description {
    font-size: 1rem;
    color: var(--text-secondary, #666);
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 0;
    opacity: 0.85;
}

/* Enhanced Meta Section */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,0.08);
    position: relative;
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-secondary, #666);
    font-weight: 500;
}

/* Premium Button Style */
.read-more-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .read-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* Modal Enhancement */
.modal-news-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: var(--background-color);
    transition: transform 0.3s var(--transition-bounce);
}

    .modal-news-image:hover {
        transform: scale(1.02);
    }

/* Premium Section Block */
.section-block {
    position: relative;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    overflow: hidden;
    isolation: isolate;
}

    .section-block::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-primary);
        opacity: 0;
        transition: opacity var(--transition-medium);
        z-index: -1;
    }

    .section-block:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

        .section-block:hover::before {
            opacity: 0.02;
        }

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: relative;
}

    .section-header::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 100px;
        height: 2px;
        background: var(--gradient-primary);
        border-radius: var(--radius-full);
    }

.section-icon {
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: transform var(--transition-medium);
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* Section Content */
.section-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Section Item */
.section-item {
    position: relative;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

    .section-item:hover {
        transform: translateX(5px);
        box-shadow: var(--shadow-sm);
    }

/* Section Grid */
.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Section Card */
.section-card {
    background: var(--background-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition-medium);
}

    .section-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }

/* Section Footer */
.section-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

/* Premium Links */
.section-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-fast);
}

    .section-link:hover {
        color: var(--secondary-color);
    }

    .section-link i {
        font-size: 1.25em;
        transition: transform var(--transition-fast);
    }

    .section-link:hover i {
        transform: translateX(3px);
    }

/* Section Statistics */
.section-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast);
}

    .stat-item:hover {
        transform: translateY(-3px);
    }

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary, #666);
    opacity: 0.85;
}

/* Info Blocks Enhancement */
.info-block {
    position: relative;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-medium);
    overflow: hidden;
    cursor: pointer;
}

    .info-block:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

    .info-block::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-primary);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 0;
    }

    .info-block:hover::before {
        opacity: 0.03;
    }

.info-block-content {
    position: relative;
    z-index: 1;
}

.info-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.info-value {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Main Info Blocks */
.info-blocks-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1440px;
    margin: 0 auto;
}

.main-info-block {
    position: relative;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--transition-bounce);
    overflow: hidden;
    transform-style: preserve-3d;
}

    .main-info-block::before {
        content: '';
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        transition: all 0.3s ease;
        z-index: -1;
        opacity: 0.95;
    }

    /* Уникальные градиенты для каждого блока */
    .main-info-block:nth-child(1)::before {
        background: linear-gradient(135deg, rgba(26, 95, 122, 0.95) 0%, rgba(134, 198, 218, 0.95) 100%);
        filter: blur(3px);
    }

    .main-info-block:nth-child(2)::before {
        background: linear-gradient(135deg, rgba(52, 152, 219, 0.95) 0%, rgba(26, 95, 122, 0.95) 100%);
        filter: blur(3px);
    }

    .main-info-block:nth-child(3)::before {
        background: linear-gradient(135deg, rgba(134, 198, 218, 0.95) 0%, rgba(52, 152, 219, 0.95) 100%);
        filter: blur(3px);
    }

    .main-info-block:hover::before {
        filter: blur(0);
        transform: scale(1.02);
        opacity: 1;
    }

    .main-info-block:hover {
        transform: translateY(-5px) translateZ(20px);
        box-shadow: var(--shadow-xl);
    }

.info-block-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

    .info-block-header::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 60px;
        height: 2px;
        background: var(--surface-color);
        border-radius: var(--radius-full);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

.info-block-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--surface-color);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.info-block-content {
    position: relative;
    z-index: 1;
}

/* Стили для элементов внутри блоков */
.key-stat, .village-item, .section-link-block {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

    .key-stat:hover, .village-item:hover, .section-link-block:hover {
        transform: translateX(5px);
        background: rgba(255, 255, 255, 0.2);
        box-shadow: var(--shadow-md);
        border-color: rgba(255, 255, 255, 0.2);
    }

.key-stat-label, .village-item-name, .section-link-title {
    font-weight: 500;
    color: var(--surface-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.key-stat-value, .village-item-population, .section-link-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Стили для ссылок */
.section-link-block {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.section-link-content {
    flex: 1;
}

/* About Page Styles */
.about-overview {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    animation: fadeIn 0.7s ease-out;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    animation: titleBounce 1.5s ease-in-out infinite;
}

@keyframes titleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.about-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.05) 0%, rgba(134, 198, 218, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(26, 95, 122, 0.1);
    animation: fadeIn 0.8s ease-out;
}

.about-meta-item {
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--transition-bounce);
}

    .about-meta-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.about-meta-label {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.about-meta-value {
    font-size: 1.25rem;
    color: var(--text-color);
    line-height: 1.4;
}

/* Stats Section */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.about-stat-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--transition-bounce);
    border: 1px solid rgba(26, 95, 122, 0.1);
    animation: fadeIn 0.7s ease-out;
}

    .about-stat-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.about-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Villages Section */
.about-villages {
    margin-top: 3rem;
}

.villages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.village-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--transition-bounce);
    border: 1px solid rgba(26, 95, 122, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .village-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.village-name {
    font-size: 1.25rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.village-population {
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .village-population i {
        color: var(--primary-color);
        opacity: 0.8;
    }

/* Adaptive styles */
@media (max-width: 768px) {
    .about-overview {
        padding: 2rem;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-meta {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-overview {
        padding: 1.5rem;
    }

    .about-title {
        font-size: 1.75rem;
    }

    .about-meta {
        padding: 1rem;
    }

    .about-stat-value {
        font-size: 2rem;
    }
}

/* Motion Reduction */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

#home.content-section {
    padding-top: 220px; /* Увеличиваем отступ с 160px до 220px */
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    #home.content-section {
        padding-top: 260px; /* Увеличиваем отступ для мобильных с 200px до 260px */
    }
}

.info-blocks-wrapper {
    padding-top: 20px;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    #home.content-section {
        padding-top: 200px; /* Увеличенный отступ для мобильных устройств */
    }
}

#news.content-section {
    padding-top: 160px;
    min-height: calc(100vh - 160px);
    background: var(--background-color);
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
}

.section-title {
    padding: 20px;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    max-width: 1440px;
}

.news-container {
    width: min(100% - 3rem, 1440px);
    margin: 0 auto;
    padding: 20px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.news-item {
    opacity: 1 !important; /* Важно для видимости */
    animation: none !important; /* Отключаем анимацию, которая могла скрывать элементы */
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--transition-bounce), box-shadow 0.3s var(--transition-medium);
}

    .news-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.news-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.news-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.read-more-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .read-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* Full Article Styles */
.full-article {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin: 1rem auto;
    max-width: 1000px;
}

    .full-article h3 {
        font-size: 1.75rem;
        color: var(--primary-color);
        margin-bottom: 1rem;
        line-height: 1.4;
    }

.full-article-photo {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

.full-article-content {
    line-height: 1.8;
    color: var(--text-color);
}

.back-to-news-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .back-to-news-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* Documents Section */
#documents.content-section {
    padding-top: 160px;
    min-height: calc(100vh - 160px);
    background: var(--background-color);
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
}

.documents-container {
    width: min(100% - 3rem, 1440px);
    margin: 0 auto;
    padding: 20px;
}

.documents-section-title {
    padding: 20px;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    max-width: 1440px;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    #documents.content-section {
        padding-top: 200px;
    }

    .documents-section-title {
        font-size: 1.75rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .documents-container {
        padding: 10px;
    }

    .documents-section-title {
        font-size: 1.5rem;
        padding: 10px;
    }
}

#about.content-section {
    padding-top: 160px;
    min-height: calc(100vh - 160px);
    background: var(--background-color);
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
}

.about-container {
    width: min(100% - 3rem, 1440px);
    margin: 0 auto;
    padding: 20px;
}

.about-section-title {
    padding: 20px;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    max-width: 1440px;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    #about.content-section {
        padding-top: 200px;
    }

    .about-section-title {
        font-size: 1.75rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .about-container {
        padding: 10px;
    }

    .about-section-title {
        font-size: 1.5rem;
        padding: 10px;
    }
}

#appeals.content-section {
    padding-top: 160px;
    min-height: calc(100vh - 160px);
    background: var(--background-color);
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
}

.appeals-container {
    width: min(100% - 3rem, 1440px);
    margin: 0 auto;
    padding: 20px;
}

.appeals-section-title {
    padding: 20px;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    max-width: 1440px;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    #appeals.content-section {
        padding-top: 200px;
    }

    .appeals-section-title {
        font-size: 1.75rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .appeals-container {
        padding: 10px;
    }

    .appeals-section-title {
        font-size: 1.5rem;
        padding: 10px;
    }
}

/* Site Title Styles */
.site-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    padding: 1rem;
}

.site-title-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
    margin: 0;
    padding: 0;
    text-decoration: none;
    transition: color var(--transition-medium);
}

    .site-title-text:hover {
        color: var(--secondary-color);
    }

.site-title-lang {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

    .site-title-lang a {
        color: var(--primary-color);
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        opacity: 0.8;
        transition: opacity var(--transition-fast);
    }

        .site-title-lang a:hover {
            opacity: 1;
        }

        .site-title-lang a.active {
            opacity: 1;
            font-weight: 600;
        }

.header-title {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    perspective: 1000px;
    transform-style: preserve-3d;
    width: 100%;
}

.header-title-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    position: relative;
    padding: 0.5rem 2rem;
    color: var(--surface-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    transition: all 0.4s var(--transition-bounce);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .header-title-text:hover {
        transform: translateZ(20px) rotateX(5deg);
        text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(0, 0, 0, 0.2);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    .header-title-text::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: inherit;
    }

    .header-title-text:hover::before {
        opacity: 0.2;
    }

    .header-title-text::after {
        content: '';
        position: absolute;
        inset: -2px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
        border-radius: inherit;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .header-title-text:hover::after {
        opacity: 1;
    }

@media (max-width: 768px) {
    .header-title-text {
        font-size: 1.8rem;
        padding: 0.4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-title-text {
        font-size: 1.4rem;
        padding: 0.3rem 1rem;
    }
}

/* Общие стили для страниц разделов */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    background: var(--gradient-primary);
    overflow: hidden;
    margin-bottom: 4rem;
}

    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('/images/pattern.png');
        opacity: 0.1;
        mix-blend-mode: overlay;
    }

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--surface-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Карточки для всех разделов */
.development-grid,
.cooperation-grid,
.ecology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.development-card,
.cooperation-card,
.ecology-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s var(--transition-bounce);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--primary-color);
}

    .development-card:hover,
    .cooperation-card:hover,
    .ecology-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-xl);
    }

    .development-card::before,
    .cooperation-card::before,
    .ecology-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-primary);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 0;
    }

    .development-card:hover::before,
    .cooperation-card:hover::before,
    .ecology-card:hover::before {
        opacity: 0.05;
    }

.development-card-icon,
.cooperation-card-icon,
.ecology-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: var(--surface-color);
    position: relative;
    z-index: 1;
}

    .development-card-icon i,
    .cooperation-card-icon i,
    .ecology-card-icon i {
        font-size: 2rem;
    }

/* Timeline стили */
.development-timeline,
.ecology-projects {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
}

.timeline-items {
    position: relative;
    padding-left: 2rem;
}

    .timeline-items::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--gradient-primary);
    }

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
  padding-left: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.timeline-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
 position: absolute;
    left: -2.5rem;
    top: 0.5rem;
  width: 12px;
    height: 12px;
    background: var(--surface-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(26, 95, 122, 0.2);
 transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.2);
 box-shadow: 0 0 0 6px rgba(26, 95, 122, 0.3);
}

.timeline-date {
font-size: 0.9rem;
 font-weight: 700;
 color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
  margin-bottom: 0.75rem;
}

.timeline-dates {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(26, 95, 122, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.timeline-dates span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.timeline-dates i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Enhanced Status Bar in Timeline */
.timeline-item .status-bar {
    margin-top: 0.75rem;
    height: 8px;
    background: rgba(26, 95, 122, 0.1);
    position: relative;
 overflow: hidden;
    border-radius: var(--radius-full);
}

.timeline-item .status-progress {
  height: 100%;
    background: var(--gradient-primary);
    position: relative;
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.timeline-item .status-progress::after {
  content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
     90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer-move 2s infinite;
}

@keyframes shimmer-move {
    0% {
        transform: translateX(-100%);
 }
    100% {
        transform: translateX(100%);
    }
}

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--surface-color);
    box-shadow: var(--shadow-md);
}

/* Partners Grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.partner-item {
 text-align: center;
 padding: 1.5rem;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

    .partner-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

    .partner-item img {
        width: 120px;
        height: 120px;
        object-fit: contain;
    margin-bottom: 1rem;
    }

/* Project Progress */
.project-item {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.project-date {
 color: var(--primary-color);
 font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-progress {
    margin-top: 1rem;
    background: var(--background-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 0.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1s ease;
    text-align: right;
    font-size: 0.75rem;
    color: var(--surface-color);
    padding: 0 0.5rem;
}

/* Восстанавливаем стили для блоков на главной странице */
.info-overview {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
 box-shadow: var(--shadow-md);
}

.info-overview-header {
    text-align: center;
    margin-bottom: 2rem;
}

.info-overview-title {
  font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-overview-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.info-overview-item {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--transition-bounce);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    display: block;
}

.info-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-overview-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    z-index: -1;
    opacity: 0.95;
}

/* Уникальные градиенты для каждого блока */
.info-overview-item:nth-child(1)::before {
    background: linear-gradient(135deg, rgba(26, 95, 122, 0.95) 0%, rgba(46, 204, 113, 0.95) 100%);
    filter: blur(3px);
}

.info-overview-item:nth-child(2)::before {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.95) 0%, rgba(155, 89, 182, 0.95) 100%);
    filter: blur(3px);
}

.info-overview-item:nth-child(3)::before {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.95) 0%, rgba(52, 152, 219, 0.95) 100%);
    filter: blur(3px);
}

.info-overview-item:hover::before {
    filter: blur(0);
    transform: scale(1.05);
    opacity: 1;
}

.info-overview-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.info-overview-item-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--surface-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

    .info-overview-item-title i {
        font-size: 1.5rem;
        color: var(--surface-color);
        opacity: 0.9;
    }

.info-overview-item-text {
    color: var(--surface-color);
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Добавляем анимацию свечения при наведении */
.info-overview-item:hover .info-overview-item-title i {
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px rgba(255, 255, 255, 0.5);
    }

    to {
  text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px rgba(255, 255, 255, 0.5);
    }
}

/* ============================================
   PROJECT PAGES UNIVERSAL STYLES
 (Infrastructure, Housing, Social, Greening)
   ============================================ */

/* Containers */
.infrastructure-container,
.housing-container,
.social-container,
.greening-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
    opacity: 1;
 transform: translateY(0);
  }
}

/* Hero Sections with Animation */
.infrastructure-hero,
.housing-hero,
.social-hero,
.greening-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 2rem;
text-align: center;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
 position: relative;
    overflow: hidden;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
   opacity: 0;
        transform: translateY(-50px);
    }
    to {
   opacity: 1;
      transform: translateY(0);
    }
}

/* Animated background pattern */
.infrastructure-hero::before,
.housing-hero::before,
.social-hero::before,
.greening-hero::before {
  content: '';
    position: absolute;
  top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
    linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.05) 75%);
    background-size: 50px 50px;
  background-position: 0 0, 0 25px, 25px -25px, -25px 0;
    animation: backgroundMove 20s linear infinite;
    pointer-events: none;
}

@keyframes backgroundMove {
    0% {
        background-position: 0 0, 0 25px, 25px -25px, -25px 0;
    }
    100% {
        background-position: 50px 50px, 50px 75px, 75px 25px, 25px 50px;
    }
}

.infrastructure-hero .hero-title,
.housing-hero .hero-title,
.social-hero .hero-title,
.greening-hero .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    animation: titlePulse 2s ease-in-out infinite;
}

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

.infrastructure-hero .hero-subtitle,
.housing-hero .hero-subtitle,
.social-hero .hero-subtitle,
.greening-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
transform: translateY(30px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
  }
}

/* Project Grid with Staggered Animation */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Project Card with Advanced Animations */
.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    animation: cardSlideIn 0.6s ease-out backwards;
}

/* Staggered animation for cards */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.project-card:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Project Image with Parallax Effect */
.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.project-image::after {
    content: '';
    position: absolute;
 inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
 transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
filter: brightness(1);
}

.project-card:hover .project-image img {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1);
}

/* Animated Project Badge */
.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
    animation: badgePulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }
}

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

/* Project Content with Smooth Transitions */
.project-content {
    padding: 1.5rem;
    position: relative;
}

.project-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary-color), 
        transparent
    );
    opacity: 0;
 transform: scaleX(0);
    transition: all 0.4s ease;
}

.project-card:hover .project-content::before {
    opacity: 1;
    transform: scaleX(1);
}

.project-content h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.project-card:hover .project-content h3 {
    color: var(--primary-color);
}

.project-content h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.project-card:hover .project-content h3::after {
    width: 100%;
}

/* Project Meta with Icon Animation */
.project-meta {
 display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
  overflow: hidden;
}

.project-meta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(26, 95, 122, 0.05), 
    transparent
    );
    transition: left 0.6s ease;
}

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

.project-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    opacity: 0.9;
  transition: all 0.3s ease;
}

.project-card:hover .project-meta-item {
    opacity: 1;
  transform: translateX(5px);
}

.project-meta-item:nth-child(1) { transition-delay: 0.05s; }
.project-meta-item:nth-child(2) { transition-delay: 0.1s; }
.project-meta-item:nth-child(3) { transition-delay: 0.15s; }
.project-meta-item:nth-child(4) { transition-delay: 0.2s; }
.project-meta-item:nth-child(5) { transition-delay: 0.25s; }

.project-meta-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
   transform: translateY(-3px);
    }
}

/* Animated Progress Bar */
.project-status {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f0f7ff;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.project-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
      transparent, 
        rgba(255,255,255,0.5), 
        transparent
    );
    animation: statusShine 3s ease-in-out infinite;
}

@keyframes statusShine {
 0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.status-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.status-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: 0 0 10px rgba(26, 95, 122, 0.5);
}

.status-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
 0% {
      transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Animated Details Section */
.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
    opacity: 0;
}

.project-card.expanded .project-details {
    max-height: 3000px;
 padding: 1.5rem;
    opacity: 1;
  animation: detailsExpand 0.6s ease-out;
}

@keyframes detailsExpand {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated Button */
.btn-view-details {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-view-details::before {
    content: '';
    position: absolute;
  top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-view-details:hover::before {
    width: 300px;
    height: 300px;
}

.btn-view-details:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-view-details i {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.project-card.expanded .btn-view-details i {
    transform: rotate(180deg);
}

/* Plants, Stages, Timeline с Анимацией */
.plants-list,
.stages-list {
    display: grid;
    gap: 0.8rem;
}

.plant-item,
.stage-item,
.timeline-item {
    opacity: 0;
    animation: itemSlideIn 0.5s ease-out forwards;
}

.plant-item:nth-child(1), .stage-item:nth-child(1), .timeline-item:nth-child(1) { animation-delay: 0.1s; }
.plant-item:nth-child(2), .stage-item:nth-child(2), .timeline-item:nth-child(2) { animation-delay: 0.2s; }
.plant-item:nth-child(3), .stage-item:nth-child(3), .timeline-item:nth-child(3) { animation-delay: 0.3s; }
.plant-item:nth-child(4), .stage-item:nth-child(4), .timeline-item:nth-child(4) { animation-delay: 0.4s; }
.plant-item:nth-child(5), .stage-item:nth-child(5), .timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes itemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
  to {
      opacity: 1;
        transform: translateX(0);
    }
}

.plant-item,
.stage-item,
.timeline-item {
    padding: 1.2rem;
    background: white;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.plant-item:hover,
.stage-item:hover,
.timeline-item:hover {
    transform: translateX(10px);
 box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left-width: 6px;
}

/* Stage Progress Bar Animation */
.stage-progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.stage-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
 padding-right: 0.5rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 10px rgba(26, 95, 122, 0.5);
    position: relative;
}

.stage-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShimmer 2s infinite;
}

/* Empty State Animation */
.projects-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    animation: fadeIn 0.8s ease-out;
}

.projects-empty i {
    font-size: 5rem;
    color: #d0d0d0;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .infrastructure-container,
    .housing-container,
    .social-container,
    .greening-container {
        padding: 1rem;
    }

    .infrastructure-hero,
    .housing-hero,
    .social-hero,
    .greening-hero {
      padding: 3rem 1.5rem;
    }

    .infrastructure-hero .hero-title,
    .housing-hero .hero-title,
    .social-hero .hero-title,
    .greening-hero .hero-title {
   font-size: 2rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
  gap: 1.5rem;
    }

    .project-image {
      height: 200px;
    }

    .stage-header {
        flex-direction: column;
      align-items: flex-start;
    }

    .btn-view-details {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .infrastructure-hero .hero-title,
    .housing-hero .hero-title,
    .social-hero .hero-title,
    .greening-hero .hero-title {
        font-size: 1.7rem;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

.project-meta {
        padding: 0.8rem;
    }

    .greening-section,
    .project-timeline {
    padding: 1rem;
  }
}

/* ============================================
   CONTACTS PAGE STYLES
   ============================================ */

#contacts.content-section {
    padding-top: 160px;
    min-height: calc(100vh - 160px);
 background: var(--background-color);
}

/* Contacts Hero */
.contacts-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
    padding: 4rem 2rem;
    text-align: center;
border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    animation: slideDown 0.8s ease-out;
}

.contacts-hero::before {
 content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
bottom: 0;
    background: 
    linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
     linear-gradient(-45deg, rgba(255,255,255,0.05) 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.05) 75%);
    background-size: 50px 50px;
    background-position: 0 0, 0 25px, 25px -25px, -25px 0;
  animation: backgroundMove 20s linear infinite;
    pointer-events: none;
}

.contacts-hero .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    animation: titlePulse 2s ease-in-out infinite;
}

.contacts-hero .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Contacts Content */
.contacts-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    animation: fadeIn 0.6s ease-out;
}

/* Contact Info Grid */
.contacts-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  margin-bottom: 4rem;
}

/* Contact Card */
.contact-info-card {
    background: white;
padding: 2.5rem 2rem;
    border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
    animation: cardSlideIn 0.6s ease-out backwards;
}

.contact-info-card:nth-child(1) { animation-delay: 0.1s; }
.contact-info-card:nth-child(2) { animation-delay: 0.2s; }
.contact-info-card:nth-child(3) { animation-delay: 0.3s; }
.contact-info-card:nth-child(4) { animation-delay: 0.4s; }

.contact-info-card::before {
    content: '';
  position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
   rgba(26, 95, 122, 0.05), 
        transparent
    );
  transition: left 0.6s ease;
}

.contact-info-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

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

/* Contact Icon */
.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: white;
  font-size: 2rem;
    animation: iconPulse 2s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(26, 95, 122, 0.3);
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(26, 95, 122, 0.3);
    }
    50% {
     transform: scale(1.05);
box-shadow: 0 8px 20px rgba(26, 95, 122, 0.4);
    }
}

.contact-info-card:hover .contact-icon {
    animation: iconBounceUp 0.6s ease-out;
}

@keyframes iconBounceUp {
    0% {
   transform: translateY(0);
    }
    50% {
   transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Contact Text */
.contact-title {
    font-size: 1.25rem;
    color: var(--primary-color);
  margin-bottom: 1rem;
    font-weight: 600;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-text a {
 color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.contact-text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
  background: var(--primary-color);
    transition: width 0.3s ease;
}

.contact-text a:hover {
    color: var(--secondary-color);
}

.contact-text a:hover::after {
    width: 100%;
}

.contact-subtext {
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0.85;
}

/* Map Section */
.map-section {
    margin-top: 4rem;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.map-section .section-title {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    width: 100%;
}

.map-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

/* Map Container */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    position: relative;
    animation: mapZoomIn 0.8s ease-out;
}

@keyframes mapZoomIn {
    from {
        opacity: 0;
 transform: scale(0.95);
    }
    to {
   opacity: 1;
      transform: scale(1);
    }
}

.map-container iframe {
  width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

/* Responsive Design */
@media (max-width: 768px) {
    #contacts.content-section {
      padding-top: 200px;
    }

    .contacts-hero {
        padding: 3rem 1.5rem;
    }

    .contacts-hero .hero-title {
        font-size: 2rem;
    }

    .contacts-info-grid {
        grid-template-columns: 1fr;
  gap: 1.5rem;
    }

    .map-container {
    height: 400px;
    }

    .map-section .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .contacts-hero .hero-title {
        font-size: 1.7rem;
    }

    .contact-info-card {
        padding: 2rem 1.5rem;
    }

    .contact-icon {
        width: 70px;
 height: 70px;
        font-size: 1.75rem;
    }

    .map-container {
   height: 350px;
    }
}
