/* Footer-only styles */
:root {
    --footer-bg-top: #2a3a72;
    --footer-bg-mid: #22305f;
    --footer-bg-end: #1a2748;
    --footer-text-strong: #f5f9ff;
    --footer-text-main: rgba(234, 243, 255, 0.86);
    --footer-text-soft: rgba(219, 233, 252, 0.7);
    --footer-line: rgba(206, 223, 247, 0.26);
    --footer-link-hover: #ffffff;
    --footer-accent: #a7d2ff;
    --footer-title-color: #f5f9ff;
    --footer-title-size: 18px;
    --footer-title-size-mobile: 18px;
    --footer-shadow: 0 14px 40px rgba(7, 16, 38, 0.34);
    --radius-sm: 8px;
    --radius-md: 14px;
    --transition: 0.28s ease;
}

.footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(270deg, #2A3A72 0%, #1A2748 100%);
    color: var(--footer-text-main);
    box-shadow: var(--footer-shadow);
}

.footer::before {
    display: none;
}

.footer::after {
    display: none;
}

.footer a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition), transform var(--transition);
}

.footer img {
    max-width: 100%;
    display: block;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-main {
    display: flex;
    gap: 64px;
    padding: 72px 0 56px;
}

.footer-brand {
    width: 280px;
    flex-shrink: 0;
}

.footer-brand .footer-logo img {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 26px;
}

.footer-brand p {
    margin: 0;
    font-size: 13px;
    line-height: 1.85;
    letter-spacing: 0.01em;
    color: var(--footer-text-main);
}

.footer-wrap {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-partner,
.footer-contact {
    flex-shrink: 0;
}

.footer-partner {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.footer-partner h3,
.footer-contact h3 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    font-size: var(--footer-title-size);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--footer-title-color);
    border-bottom: 1px solid var(--footer-line);
}

.footer-partner h3 {
    margin-bottom: 0;
}

.footer-partner-image {
    flex: 1;
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-partner-image img {
    width: auto;
    height: 220px;
    display: block;
    object-fit: contain;
}

.footer-contact {
    width: 260px;
    flex-shrink: 0;
}

.footer-contact .tel {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--footer-text-strong);
}

.footer-contact .tel:hover {
    color: var(--footer-accent);
}

.footer-contact .service-item {
    font-size: 14px;
    line-height: 1.6;
    color: var(--footer-text-soft);
    margin-bottom: 10px;
}

.footer-contact .service-time {
    /* margin: 0 0 22px; */
    font-size: 14px;
    line-height: 1.6;
    color: var(--footer-text-soft);
}

.footer-contact .service-address {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--footer-text-soft);
}

.footer-contact .qrcode {
    width: 120px;
}

.footer-contact .qrcode img {
    width: 120px;
    height: 120px;
    padding: 7px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.footer-contact .qrcode p {
    margin: 9px 0 0;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    color: var(--footer-text-soft);
}

.footer-bottom {
    border-top: 1px solid var(--footer-line);
    background: rgba(7, 14, 30, 0.26);
    padding: 16px 0;
}

.footer-bottom .footer-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: rgba(226, 240, 255, 0.62);
    text-align: center;
}

.footer-bottom a {
    color: rgba(236, 246, 255, 0.8);
}

.footer-bottom a:hover {
    color: var(--footer-link-hover);
}

@media (max-width: 1200px) {
    .footer-main {
        gap: 42px;
    }

    .footer-brand {
        width: 240px;
    }

    .footer-partner {
        min-width: 320px;
    }

    .footer-contact .tel {
        font-size: 29px;
    }
}

@media (max-width: 1024px) {
    .footer-main {
        flex-wrap: wrap;
        padding: 58px 20px 44px;
        gap: 36px;
    }

    .footer-brand {
        width: 100%;
        max-width: 560px;
    }

    .footer-partner {
        order: 2;
        width: 100%;
        min-height: 0;
    }

    .footer-partner-image {
        min-height: 0;
    }

    .footer-partner-image img {
        width: 100%;
        height: auto;
    }

    .footer-contact {
        order: 3;
        width: 100%;
    }

    .footer-contact .qrcode {
        width: 120px;
    }

    .footer-contact .qrcode img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .footer-wrap {
        padding: 0 18px;
    }

    .footer-main {
        padding: 44px 20px 34px;
        gap: 28px;
    }

    .footer-brand p {
        font-size: 14px;
    }

    .footer-partner h3,
    .footer-contact h3 {
        font-size: var(--footer-title-size-mobile);
        margin-bottom: 14px;
    }

    .footer-contact .tel {
        font-size: 27px;
    }
}
