/* ===== FOOTER STYLES ===== */

.site-footer {
    background: linear-gradient(180deg, #0A2463 0%, #051C3F 100%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    line-height: 1.6;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: #FF6B35;
    text-decoration: underline;
}

/* Верхняя часть футера */
.footer-top {
    background: linear-gradient(135deg, #0A1A3A 0%, #0F2B5C 50%, #0A1A3A 100%);
    padding: 60px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

@media (min-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.2fr 1.1fr 1fr 1fr;
    }
}

.footer-column-title {
    color: white;
    font-size: var(--footer-column-title-size);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #FF6B35;
    position: relative;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

/* Логотип в футере */
.footer-logo {
    margin-bottom: 30px;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.logo-acronym {
    font-size: var(--footer-logo-acronym-size);
    font-weight: 800;
    color: white;
    line-height: 1;
}

.logo-full {
    font-size: var(--footer-logo-full-size);
    color: rgba(255, 255, 255, 0.7);
    max-width: 180px;
}

.footer-tagline {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--footer-tagline-size);
    border-left: 3px solid #FF6B35;
    padding-left: 10px;
    margin-left: 5px;
}

/* Контактная информация */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    align-items: flex-start;
}

.contact-icon {
    flex-shrink: 0;
    font-size: var(--footer-contact-text-size);
    margin-top: 2px;
}

.contact-text {
    flex-grow: 1;
    color: white;
    font-size: var(--footer-contact-text-size);
}

.contact-text strong {
    color: white;
    font-weight: 600;
}

/* Быстрые ссылки */
.quick-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.quick-link-title {
    color: white;
    font-size: var(--footer-quicklink-title-size);
    margin-bottom: 12px;
    font-weight: 600;
}

.quick-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-link-list li {
    margin-bottom: 8px;
}

.quick-link-list a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--footer-quicklink-text-size);
    padding-left: 15px;
    position: relative;
}

.quick-link-list a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #FF6B35;
    opacity: 0;
    transition: all 0.3s ease;
}

.quick-link-list a:hover::before {
    opacity: 1;
    left: -3px;
}

/* Срочное объявление */
.emergency-notice {
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 20px;
}

.emergency-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.emergency-content {
    flex-grow: 1;
}

.emergency-content strong {
    color: #FF6B35;
    display: block;
    margin-bottom: 5px;
}

.emergency-content p {
    margin: 0;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Социальные сети */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.social-link {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.social-link.vk .social-icon { background: #4C75A3; }
.social-link.telegram .social-icon { background: #2AABEE; }
.social-link.rutube .social-icon { background: #FF0000; }
.social-link.github .social-icon { background: #333; }

.social-name {
    font-weight: 600;
    color: white;
}

.social-followers {
    font-size: var(--footer-social-followers-size);
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

/* Кнопка в футере */
.footer-cta {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.cta-title {
    color: white;
    margin: 0 0 10px 0;
    font-size: var(--footer-cta-title-size);
}

.footer-cta p {
    margin: 0 0 15px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--footer-cta-text-size);
}

.footer-button {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B35, #E55A28);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: var(--footer-cta-button-size);
}

.footer-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    color: white;
    text-decoration: none;
}

/* Карта */
.map-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.yandex-map,
.dg-map {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.yandex-map iframe,
.dg-map iframe {
    width: 100%;
    height: 250px;
    display: block;
}

.map-address {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.map-address-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.map-address-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.map-address-text strong {
    color: white;
}

.map-link {
    display: inline-block;
    color: #FF6B35 !important;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.map-link:hover {
    text-decoration: underline !important;
    opacity: 0.8;
}

/* Виджет погоды */
.weather-widget {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
}

.weather-icon {
    font-size: 3rem;
}

.weather-temp {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.weather-desc {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Нижняя часть футера */
.footer-bottom {
    padding: 30px 0 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--footer-copyright-size);
}

.copyright-divider {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.link-divider {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
}

.footer-links a {
    font-size: var(--footer-bottom-links-size);
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: #FF6B35;
}

.developer-credits {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--footer-developer-size);
}

.tech-stack {
    display: inline-flex;
    gap: 8px;
    margin-left: 10px;
}

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: var(--footer-tech-stack-size);
    color: rgba(255, 255, 255, 0.8);
}

.back-to-top {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--footer-back-to-top-size);
    opacity: 0.8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top:hover {
    background: #FF6B35;
    border-color: #FF6B35;
    opacity: 1;
    transform: translateY(-2px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.arrow-up {
    font-size: 1.5rem;
}

/* Для плавной прокрутки всей страницы */
html {
    scroll-behavior: smooth;
}

/* Статистика */
.footer-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: var(--footer-stat-number-size);
    font-weight: 800;
    color: #FF6B35;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: var(--footer-stat-label-size);
    color: rgba(255, 255, 255, 0.7);
}

/* Адаптивность футера */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .footer-top {
        padding: 40px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column {
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-column:last-child {
        border-bottom: none;
    }

    .footer-stats {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .map-address-text {
        font-size: var(--footer-map-address-size-mobile) !important;
    }
}

@media (max-width: 768px) {
    .map-link {
        font-size: var(--footer-map-link-size-mobile) !important;
    }
}

@media (max-width: 480px) {
    .social-link {
        grid-template-columns: auto 1fr;
    }

    .social-followers {
        display: none;
    }
}