﻿.site-footer {
    background: #f7f6ff;
    color: #111;
    padding: 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.footer-main {
    padding: 50px 0 30px;
    background: linear-gradient(180deg, rgba(145, 151, 255, 0.18) 0%, rgba(219, 158, 255, 0.12) 45%, rgba(255, 184, 241, 0.06) 100%);
}

.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.footer-nav-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #111;
    position: relative;
    padding-bottom: 12px;
}

.footer-nav-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '›';
    font-size: 14px;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

.footer-bottom {
    background: #f0efff;
    padding: 25px 0;
    border-top: 1px solid #e2e0f5;
}

.footer-bottom-content {
    text-align: center;
}

.footer-info-block {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.footer-copyright a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 8px;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--primary-hover);
}

.footer-contact-line {
    font-size: 13px;
    color: #111;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-nav-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-contact-line {
        font-size: 12px;
    }
}

/* Contact Floating */
.footer-ad-line {
    margin-top: 6px;
}
.footer-ad-line a, .footer-contact-line a {
    text-decoration: none;
    transition: opacity 0.2s;
}
.footer-ad-line a:hover, .footer-contact-line a:hover {
    opacity: 0.8;
}

.contact-float-wrap {
    position: fixed;
    right: 22px;
    bottom: 120px;
    z-index: 1000;
}

.contact-float-btn {
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #8f7bff, #a49bff);
    color: #fff;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(96, 89, 235, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
}

.contact-float-btn:hover {
    transform: translateY(-2px);
}

.contact-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1100;
}

.contact-modal-mask.is-open {
    display: flex;
}

.contact-modal-open {
    overflow: hidden;
}

.contact-modal {
    width: min(420px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.contact-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: 1px solid #8e95ff;
    border-radius: 8px;
    background: #fff;
    color: #8e95ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.contact-modal-close:hover {
    background: #f0f0ff;
}

.contact-modal-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 8px;
    color: #111;
}

.contact-modal-subtitle {
    margin: 0 0 24px;
    color: #666;
    font-size: 13px;
}

.contact-modal-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.contact-modal-card.alt {
    background: #f4f5fc;
    border-color: #e9eaf6;
}

.contact-modal-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.contact-modal-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 20px;
    line-height: 1.2;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info .label {
    color: #888;
    font-size: 13px;
    margin-bottom: 4px;
}

.contact-info strong {
    font-size: 16px;
    color: #111;
    font-weight: bold;
}

.contact-info strong.accent {
    color: #8e95ff;
}

.contact-modal-scope {
    background: #e5adff;
    border-radius: 12px;
    padding: 20px;
}

.contact-modal-scope h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: bold;
    color: #111;
}

.contact-modal-scope ul {
    margin: 0;
    padding-left: 20px;
}

.contact-modal-scope li {
    font-size: 13px;
    color: #5c557a;
    margin-bottom: 8px;
}
.contact-modal-scope li:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .contact-float-wrap {
        right: 16px;
        bottom: 90px;
    }
    .contact-modal {
        padding: 20px;
    }
}

