/* ============================================
   FOOTER.CSS — Премиум подвал (светлая версия)
   Фон: #f4f4f4 | Текст: #1a1a1a | Акцент: #fd6513
   ============================================ */

.site-footer {
    background: #f4f4f4; /* Светло-серый фон */
    color: #333333; /* Темный текст */
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e0e0e0; /* Легкая граница */
}

/* Лёгкая текстурная сетка (сделали едва заметной) */
.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(31, 85, 155, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 85, 155, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

/* ==================== */
/* СЕТКА                */
/* ==================== */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 40px;
    padding: 64px 0 40px;
}

/* ==================== */
/* КОЛОНКА БРЕНДА       */
/* ==================== */
.footer-col-brand {}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #1f559b; /* Синий акцент */
}

.footer-logo-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}
.footer-logo-icon svg {
    width: 100%;
    height: 100%;
}

.footer-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a; /* Темный текст */
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.footer-logo-text span {
    color: #fd6513; /* Оранжевый акцент */
}

.footer-about {
    color: #555555;
    line-height: 1.75;
    font-size: 1.02rem;
    margin-bottom: 14px;
    max-width: 340px;
}

/* ==================== */
/* БЕЙДЖ "25+ ЛЕТ"      */
/* ==================== */
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    background: rgba(31, 85, 155, 0.08);
    border: 1px solid rgba(31, 85, 155, 0.15);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f559b;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.footer-badge:hover {
    border-color: rgba(31, 85, 155, 0.3);
    background: rgba(31, 85, 155, 0.12);
}
.footer-badge svg {
    color: #1f559b;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* ==================== */
/* СОЦСЕТИ              */
/* ==================== */
.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    transition: all 0.3s ease;
}
.footer-social-link svg {
    width: 20px;
    height: 20px;
}
.footer-social-link:hover {
    background: #1f559b;
    border-color: #1f559b;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(31, 85, 155, 0.3);
}

/* ==================== */
/* ЗАГОЛОВКИ КОЛОНОК    */
/* ==================== */
.footer-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #1a1a1a; /* Темный заголовок */
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}
.footer-title svg {
    color: #1f559b;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* ==================== */
/* МЕНЮ                 */
/* ==================== */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 11px;
}

.footer-menu li a {
    color: #333333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.02rem;
    display: inline-block;
}
.footer-menu li a:hover {
    color: #fd6513;
    transform: translateX(4px);
}

/* Ссылка "Все категории/услуги" */
.footer-menu-all {
    color: #1f559b !important;
    font-weight: 600 !important;
}
.footer-menu-all:hover {
    color: #fd6513 !important;
}

/* ==================== */
/* КОНТАКТЫ             */
/* ==================== */
.footer-col-contacts {}

.footer-contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.footer-contact-icon {
    width: 42px;
    height: 42px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f559b;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.footer-contact-icon svg {
    width: 20px;
    height: 20px;
}
.footer-contact-item:hover .footer-contact-icon {
    background: #1f559b;
    border-color: #1f559b;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(31, 85, 155, 0.25);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer-contact-link {
    display: block;
    color: #1a1a1a; /* Темный текст */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.08rem;
    transition: all 0.3s ease;
}
a.footer-contact-link:hover {
    color: #1f559b;
}

.footer-contact-label {
    display: block;
    color: #666666;
    font-size: 0.92rem;
    margin-top: 3px;
}

/* ==================== */
/* КНОПКА CTA           */
/* ==================== */
.footer-cta-btn {
    margin-top: 22px;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
}

/* ==================== */
/* НИЖНЯЯ ПОЛОСА        */
/* ==================== */
.footer-bottom {
    border-top: 1px solid #e0e0e0; /* Светлая граница */
    padding: 22px 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-bottom p {
    color: #666666;
    font-size: 0.95rem;
}

.footer-bottom-links {
    display: flex;
    gap: 22px;
}
.footer-bottom-links a {
    color: #666666;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-bottom-links a:hover {
    color: #1f559b;
}

/* ==================== */
/* АНИМАЦИЯ SVG ЛОГО    */
/* ==================== */
.footer-logo-gear {
    transform-origin: 20px 20px;
    animation: footerLogoSpin 30s linear infinite;
}
@keyframes footerLogoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.footer-logo-dot {
    animation: footerLogoPulse 3s ease-in-out infinite;
}
@keyframes footerLogoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

/* ==================== */
/* КАСТОМНЫЙ ЛОГОТИП    */
/* ==================== */
.footer-logo .custom-logo {
    max-height: 46px !important;
    width: auto !important;
}
.footer-logo .custom-logo-link {
    display: flex;
    align-items: center;
}

/* ==================== */
/* RESPONSIVE           */
/* ==================== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
        gap: 28px;
    }
    .footer-about { font-size: 0.98rem; }
    .footer-menu li a { font-size: 0.98rem; }
    .footer-contact-link { font-size: 1.02rem; }
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 48px 0 32px;
    }
    
    .footer-about {
        max-width: 100%;
        font-size: 1rem;
    }
    
    .footer-logo-text { font-size: 1.25rem; }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    .footer-contact-item {
        margin-bottom: 14px;
    }
}

/* ============================================
   MODAL FORM — Стили для модального окна
   ============================================ */

/* Оверлей */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85); /* Светлый оверлей */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Контент */
.modal-content {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(31, 85, 155, 0.06);
    max-height: 90vh;
    overflow-y: auto;
}

/* Кнопка закрытия */
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    transition: all 0.2s ease;
    z-index: 1;
}
.modal-close:hover {
    color: #1a1a1a;
    background: #e0e0e0;
    border-color: #555555;
}

/* Заголовок */
.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    padding-right: 44px;
}

/* Подзаголовок */
.modal-subtitle {
    color: #666666;
    font-size: 1.05rem;
    margin-bottom: 22px;
    line-height: 1.6;
}

/* Форма */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-form .form-input {
    width: 100%;
    padding: 15px 18px;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    color: #1a1a1a;
    font-family: var(--font-main);
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.modal-form .form-input:focus {
    outline: none;
    border-color: #1f559b;
    box-shadow: 0 0 0 3px rgba(31, 85, 155, 0.08);
    background: #FFFFFF;
}

.modal-form .form-input::placeholder {
    color: #666666;
    opacity: 0.7;
}

.modal-form textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

/* Кнопка отправки */
.modal-form .form-submit {
    margin-top: 4px;
    width: 100%;
    padding: 15px 28px;
    font-size: 1.02rem;
    font-weight: 600;
}

/* Согласие */
.modal-form .form-agreement,
.form-agreement {
    font-size: 0.9rem;
    color: #666666;
    margin-top: 14px;
    text-align: center;
    line-height: 1.55;
}

.modal-form .form-agreement a,
.form-agreement a {
    color: #1f559b;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.modal-form .form-agreement a:hover,
.form-agreement a:hover {
    color: #fd6513;
}

/* Адаптив */
@media (max-width: 480px) {
    .modal-content {
        padding: 28px 22px;
        max-width: 95%;
    }
    .modal-title {
        font-size: 1.3rem;
    }
    .modal-subtitle {
        font-size: 0.98rem;
    }
    .modal-form .form-input {
        padding: 13px 15px;
        font-size: 1rem;
    }
}