:root {
    --primary-color: #003566;
    --secondary-color: #3b82f6;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
}

/* Modern Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer_wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

@media (min-width: 992px) {
    .footer_wrapper {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* Footer Block - About Section */
.footer_block[data-order="1"] {
    max-width: 100%;
}

.footer_block {
    animation: fadeInUp 0.6s ease-out;
}

.footer_block[data-order="2"] {
    animation-delay: 0.1s;
    animation-fill-mode: both;
}

.footer_block[data-order="3"] {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer_block-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 400;
}

.footer_block-text::first-letter {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

/* Contact Links */
.wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link--contacts {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
}

.link--contacts:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.link--contacts .icon {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.link--contacts:hover .icon {
    color: #ffffff;
    transform: scale(1.1);
}

/* Footer Block Headers */
.footer_block-header {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    display: inline-block;
}

.footer_block-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
    border-radius: 2px;
}

/* Footer Navigation */
.footer_block-nav,
.footer_block-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer_block-nav_item,
.footer_block-list_item {
    margin-bottom: 0.75rem;
}

.footer_block-nav_item:last-child,
.footer_block-list_item:last-child {
    margin-bottom: 0;
}

.footer_block-nav_item .link,
.footer_block-list_item .link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
    position: relative;
}

.footer_block-nav_item .link::before,
.footer_block-list_item .link::before {
    content: '→';
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer_block-nav_item .link:hover::before,
.footer_block-list_item .link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer_block-nav_item .link:hover,
.footer_block-list_item .link:hover {
    color: #ffffff;
    padding-left: 1rem;
    transform: translateX(5px);
}

/* Footer Secondary */
.footer_secondary {
    background: rgba(0, 0, 0, 0.15);
    padding: 2rem 0 !important;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer_secondary-copyright {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

.footer_secondary-copyright a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    margin-left: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.footer_secondary-copyright a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: width 0.3s ease;
}

.footer_secondary-copyright a:hover {
    color: #ffffff;
}

.footer_secondary-copyright a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 0;
    }
    
    .footer_wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer_block-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .footer_block-header {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }
    
    .link--contacts {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }
    
    .footer_secondary {
        padding: 1.5rem 0 !important;
        margin-top: 2rem;
    }
}

@media (max-width: 575px) {
    .footer {
        padding: 2.5rem 0 0;
    }
    
    .footer_wrapper {
        gap: 2rem;
    }
    
    .footer_block {
        margin-bottom: 0;
    }
}

