/* Стили подвала сайта, кнопки «Наверх» и окна с QR-кодом приложения (раньше были встроены в blocks/footer.ftl) */

.footer-gradient {
    background: linear-gradient(135deg, #1e5f99 0%, #357abd 50%, #4a90e2 100%);
    color: white;
    line-height: 1.3;
}

.logo-icon {
    /*background: white;*/
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #4a90e2;
    font-size: 18px;
    margin-right: 12px;
}

.logo-icon img {
    height: 55px;
}

.contact-item {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.contact-item svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    fill: rgba(255, 255, 255, 0.7);
}

.social-icon-footer {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.social-icon-footer:hover {
    /*background: rgba(255, 255, 255, 0.3);*/
    background: #57D5FF;
    transform: translateY(-2px);
    color: white;
}

.social-icon-footer svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
}

/* ========== QR MODAL ========== */

.qr-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(6px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

[data-theme="light"] .qr-modal-overlay {
    background: rgba(15, 31, 61, 0.45) !important;
}

.qr-modal-overlay.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

.qr-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 32px 28px 28px;
    max-width: 450px;
    width: calc(100% - 40px);
    box-shadow: var(--shadow-modal);
    transform: translateY(12px) scale(0.97);
    transition: transform 0.22s ease;
    position: relative;
    z-index: 1000000;
}

.qr-modal-overlay.open .qr-modal {
    transform: translateY(0) scale(1);
}

.qr-modal-title {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.qr-modal-desc {
    text-align: center;
    color: #fff;
    font-size: 13.5px;
    margin-bottom: 24px;
    line-height: 1.6;

}

.qr-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #fff;
}

.qr-wrapper {
    display: flex;
    justify-content: center;
}

.qr-image {
    width: 270px;
    height: 270px;
    object-fit: contain;
}

@media (max-width: 1199px) {
}



#scrollTopBtn {
    position: fixed;
    right: 24px;
    bottom: calc(140px + env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #2363B0;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background: #1c4f8f;
}

@media (max-width: 600px) {
    #scrollTopBtn {
        right: 16px;
        bottom: calc(150px + env(safe-area-inset-bottom));
        width: 40px;
        height: 40px;
        font-size: 17px;
    }
}
