/* ============================================
   ФУТЕР - ТЁМНЫЙ ПРЕМИУМ
   ============================================ */

.site-footer {
    background: #0A1929;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.site-footer::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 163, 61, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ===== ОСНОВНОЙ ФУТЕР ===== */
.footer-main {
    padding: 70px 0 40px;
    position: relative;
    z-index: 1;
}

.footer-widgets-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 50px;
}

.footer-widget-column {
    display: flex;
    flex-direction: column;
}

/* ===== ЛОГОТИП ===== */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
}

.footer-logo-link {
    display: inline-block;
}

/* ===== ОПИСАНИЕ ===== */
.footer-about-text {
    margin-bottom: 25px;
}

.footer-about-text p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

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

.footer-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer-social .social-icon.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.footer-social .social-icon.tiktok {
    background: #000;
}

.footer-social .social-icon.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
}

.footer-social .social-icon.viber {
    background: linear-gradient(135deg, #7360f2 0%, #8b7ff5 100%);
}

.footer-social .social-icon.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.footer-social .social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* ===== ЗАГОЛОВКИ КОЛОНОК ===== */
.footer-widget-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: linear-gradient(90deg, #0D6EFD, #4D9FFF);
    border-radius: 3px;
}

/* ===== МЕНЮ В ФУТЕРЕ ===== */
.footer-menu ul,
.footer-primary-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li,
.footer-primary-menu li {
    margin-bottom: 12px;
}

.footer-menu a,
.footer-primary-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    line-height: 1.5;
}

.footer-menu a:hover,
.footer-primary-menu li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-menu a i,
.footer-primary-menu li a i {
    font-size: 10px;
    color: #0D6EFD;
    transition: color 0.3s;
}

.footer-menu a:hover i,
.footer-primary-menu li a:hover i {
    color: #4D9FFF;
}

/* Скрываем подменю в футере */
.footer-primary-menu .sub-menu {
    display: none !important;
}

/* ===== КОНТАКТЫ ===== */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(13, 110, 253, 0.15);
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-contact-icon i {
    font-size: 16px;
    color: #4D9FFF;
}

.footer-contact-content {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 600;
}

.footer-contact-content a,
.footer-contact-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    line-height: 1.5;
    margin: 0 0 3px;
    transition: color 0.3s;
}

.footer-contact-content a:hover {
    color: #4D9FFF;
}

.footer-contact-content .contact-phone {
    font-weight: 600;
    font-size: 15px;
}

/* ===== НИЖНЯЯ ПОЛОСА ===== */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

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

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.footer-legal a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-legal a:hover {
    color: #fff;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.callback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.callback-modal.active {
    display: flex;
}

.callback-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.callback-modal-content {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: modalIn 0.3s ease;
    z-index: 1;
}

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

.callback-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.callback-close:hover {
    background: #DC2626;
    color: #fff;
    transform: rotate(90deg);
}

.callback-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0D6EFD 0%, #4D9FFF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.4);
}

.callback-modal-content h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #0B2545;
    margin-bottom: 10px;
}

.callback-modal-content > p {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 25px;
}

.callback-form-modal {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.callback-form-modal .callback-form-group {
    position: relative;
}

.callback-form-modal .callback-form-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #0D6EFD;
    font-size: 15px;
    z-index: 2;
}

.callback-form-modal .callback-form-group input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    background: #F8FAFC;
    color: #1F2937;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.callback-form-modal .callback-form-group input:focus {
    outline: none;
    border-color: #0D6EFD;
    background: #fff;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.15);
}

.callback-form-modal .btn {
    width: 100%;
    padding: 16px 30px;
    font-size: 15px;
    margin-top: 5px;
}

.callback-note {
    font-size: 12px;
    color: #6B7280;
    text-align: center;
    margin-top: 15px;
    line-height: 1.5;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .footer-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 50px 0 30px;
    }
    
    .footer-widgets-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal {
        margin-left: 0;
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-separator {
        display: none;
    }
    
    .callback-modal-content {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .footer-social .social-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .callback-modal-content {
        padding: 25px 20px;
    }
    
    .callback-modal-content h3 {
        font-size: 22px;
    }
}
/* ============================================
   ПЛАВАЮЩАЯ ПАНЕЛЬ СВЯЗИ
   ============================================ */

.floating-contact-panel {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.floating-contact-panel > * {
    pointer-events: auto;
}

/* ============================================
   ОСНОВНАЯ КНОПКА (ПУЛЬСИРУЮЩАЯ)
   ============================================ */

.floating-contact-toggle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0D6EFD 0%, #4D9FFF 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    order: 2;
}

.floating-contact-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.55);
}

.floating-contact-toggle i {
    transition: transform 0.4s;
}

.floating-contact-panel.active .floating-contact-toggle i {
    transform: rotate(135deg);
}

/* Пульсирующее кольцо */
.floating-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.5);
    animation: floating-pulse 2s infinite;
    z-index: -1;
}

@keyframes floating-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ============================================
   СПИСОК КНОПОК СВЯЗИ
   ============================================ */

.floating-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    order: 1;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-contact-panel.active .floating-contact-list {
    max-height: 500px;
    opacity: 1;
}

/* Каждая кнопка */
.floating-contact-item {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.5);
    opacity: 0;
}

.floating-contact-panel.active .floating-contact-item {
    transform: scale(1);
    opacity: 1;
}

/* Задержка появления — снизу вверх */
.floating-contact-panel.active .floating-contact-item:nth-child(1) { transition-delay: 0.05s; }
.floating-contact-panel.active .floating-contact-item:nth-child(2) { transition-delay: 0.1s; }
.floating-contact-panel.active .floating-contact-item:nth-child(3) { transition-delay: 0.15s; }
.floating-contact-panel.active .floating-contact-item:nth-child(4) { transition-delay: 0.2s; }
.floating-contact-panel.active .floating-contact-item:nth-child(5) { transition-delay: 0.25s; }

.floating-contact-item:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Цвета кнопок */
.floating-contact-item.phone {
    background: linear-gradient(135deg, #0D6EFD 0%, #4D9FFF 100%);
}

.floating-contact-item.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #00a8e8 100%);
}

.floating-contact-item.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #4ade80 100%);
}

.floating-contact-item.viber {
    background: linear-gradient(135deg, #7360f2 0%, #9384f5 100%);
}

.floating-contact-item.email {
    background: linear-gradient(135deg, #E8A33D 0%, #F5C97A 100%);
}

/* Tooltip слева от кнопки */
.floating-contact-item::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--st-primary-dark, #0B2545);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}

.floating-contact-item::after {
    content: '';
    position: absolute;
    right: calc(100% + 4px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--st-primary-dark, #0B2545);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
}

.floating-contact-item:hover::before,
.floating-contact-item:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* ============================================
   КНОПКА «НАВЕРХ»
   ============================================ */

.floating-scroll-top {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #E5E7EB;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #0B2545;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    order: 3;
    margin-top: 5px;
}

.floating-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-scroll-top:hover {
    background: linear-gradient(135deg, #0D6EFD 0%, #4D9FFF 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.4);
}

/* ============================================
   АДАПТИВ
   ============================================ */

@media (max-width: 768px) {
    .floating-contact-panel {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }
    
    .floating-contact-toggle {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }
    
    .floating-contact-item {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    
    .floating-scroll-top {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }
    
    /* На мобильных tooltip скрываем */
    .floating-contact-item::before,
    .floating-contact-item::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .floating-contact-panel {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }
    
    .floating-contact-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .floating-contact-item {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .floating-scroll-top {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
}