/* ==========================================================================
   Site footer
   ========================================================================== */

.site-footer {
    align-self: stretch;
    width: 100%;
    margin-top: 8px;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 13, 19, 0.85) 24%);
    border-top: 1px solid #FFFFFF12;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.site-footer__main {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    width: 100%;
    padding: 44px 40px 30px;
    overflow: hidden;
    box-sizing: border-box;
}

.site-footer__brand {
    width: 600px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.site-footer__brand-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 16px;
    overflow: hidden;
}

.site-footer__logo {
    width: 156px;
    height: 38px;
    border-radius: 11px;
    object-fit: contain;
    display: block;
}

.site-footer__desc {
    align-self: stretch;
    color: #676d85;
    font-size: 13px;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-weight: 400;
    line-height: 22.75px;
}

.site-footer__links {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: center;
    gap: 0 22px;
    width: 100%;
    overflow: hidden;
}

.footer-nav__label {
    flex-shrink: 0;
    color: #676d85;
    font-size: 13px;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-weight: 400;
    line-height: 1;
}

.footer-nav__links {
    display: contents;
}

.footer-nav__links li {
    display: inline;
}

.footer-nav__links a {
    color: #a7acc2;
    font-size: 13px;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.footer-nav__links a:hover {
    color: #eef0f8;
}

.friend-links {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    overflow: hidden;
}

.friend-links__label {
    flex-shrink: 0;
    color: #676d85;
    font-size: 13px;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-weight: 400;
    line-height: 1;
}

.friend-links__list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.friend-links__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.friend-links__name {
    color: #a7acc2;
    font-size: 13px;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
}

.footer-link__url {
    color: #a7acc2;
    font-size: 13px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.footer-link__url:hover {
    color: #eef0f8;
}

.contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.contact__label {
    flex-shrink: 0;
    color: #676d85;
    font-size: 13px;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-weight: 400;
    line-height: 1;
}

.contact__icon {
    width: 38px;
    height: 38px;
    justify-content: center;
    align-items: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact__icon:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.contact__icon img {
    width: 100%;
    height: 100%;
}

.site-footer__bar {
    display: flex;
    width: 100%;
    padding: 20px 40px 28px;
    border-top: 1px solid #FFFFFF12;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer__copy {
    color: #676d85;
    font-size: 12px;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.4;
}

.contact__icons {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.contact__icon {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.contact__icon img {
    display: block;
}

/* ==========================================================================
   Site footer — Desktop narrow (max-width: 1400px)
   ========================================================================== */

@media (max-width: 1400px) {
    .site-footer__main {
        gap: 48px;
    }

    .site-footer__brand {
        width: 100%;
        max-width: 600px;
    }
}

/* ==========================================================================
   Site footer — Desktop compact (max-width: 1200px)
   ========================================================================== */

@media (max-width: 1200px) {
    .friend-links__list {
        gap: 16px;
    }

    .site-footer__bar {
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* ==========================================================================
   Site footer — Tablet (min-width: 768px and max-width: 1024px)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    .site-footer__main {
        flex-direction: column;
        gap: 32px;
        padding: 36px 24px 28px;
    }

    .site-footer__brand {
        max-width: none;
    }
}
