/* ==========================================================================
   СТИЛИ ПОДВАЛА САЙТА
   ========================================================================== */
.site-footer {
    background: linear-gradient(135deg, var(--color-sky-dark) 0%, #1864ab 100%);
    color: rgba(255, 255, 255, 0.95);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--color-sky-base) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        var(--color-sky-base) 100%);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.footer-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

/* Блок наших проектов */
.footer-projects {
    margin-bottom: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.project-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.project-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.project-logo-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.project-item:hover .project-logo-wrapper {
    background: white;
    transform: scale(1.05);
}

.project-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.project-info {
    flex: 1;
}

.project-name {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.project-description {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    opacity: 0.9;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

/* Социальные сети */
.footer-social {
    margin-bottom: 0;
}

.social-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: #FFF;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* Цвета для иконок соцсетей */
.social-link.youtube .social-icon {
    background: rgba(299, 299, 299, 0.2);
    color: #E6E6E6;
}

.social-link.youtube:hover .social-icon {
    background: rgba(299, 299, 299, 0.3);
    color: #FFF;
}

.social-link.vk .social-icon {
    background: rgba(299, 299, 299, 0.2);
    color: #E6E6E6;
}

.social-link.vk:hover .social-icon {
    background: rgba(299, 299, 299, 0.3);
    color: #FFF;
}

.social-text-wrapper {
    flex: 1;
}

.social-text {
    display: block;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}


.social-subtext {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.9;
}

/* Нижняя часть футера */
.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.footer-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.footer-menu a:hover {
    color: white;
    text-decoration: none;
}

.footer-menu a:hover::after {
    width: 100%;
}

.site-info {
    text-align: right;
}

.copyright {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.footer-credits {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-credits .fa-heart {
    color: #ff6b6b;
    margin: 0 0.25rem;
    animation: heartbeat 1.5s ease infinite;
}

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

/* Кнопка "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-sky-base), var(--color-sky-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(28, 126, 214, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(28, 126, 214, 0.4);
}

/* ==========================================================================
   АДАПТИВНОСТЬ ПОДВАЛА
   ========================================================================== */
@media (max-width: 992px) {
    .site-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-container {
        gap: 2.5rem;
    }
    
    .project-logo-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .project-name {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2.5rem 0 1.25rem;
        margin-top: 3rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .projects-grid {
        gap: 1.5rem;
    }
    
    .project-link {
        gap: 1.25rem;
    }
    
    .project-logo-wrapper {
        width: 60px;
        height: 60px;
        padding: 0.75rem;
    }
    
    .social-link {
        padding: 1rem;
        gap: 1rem;
    }
    
    .social-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .footer-menu {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .site-info {
        text-align: center;
    }
    
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-title {
        font-size: 1.375rem;
    }
    
    .project-item {
        padding: 1.25rem;
    }
    
    .project-link {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .project-logo-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .footer-menu {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .social-text {
        font-size: 1rem;
    }
    
    .social-subtext {
        font-size: 0.8125rem;
    }
}