.main-footer {
    width: 100%;
    background: #1b1b1b;
    color: #ddd;
    padding: 30px 16px 18px;
    direction: rtl;
    box-sizing: border-box;
    overflow: visible;
}

.main-footer * {
    box-sizing: border-box;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
}

.footer-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.branch-right {
    align-items: flex-start;
    text-align: right;
}

.branch-left {
    align-items: flex-end;
    text-align: right;
}

.footer-center {
    align-items: center;
    text-align: center;
    justify-content: center;
}

.footer-brand h3 {
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.5;
    color: #fff;
}

.footer-brand h3 span {
    color: var(--gold);
}

.footer-copy {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.9;
    color: #bcbcbc;
}

.footer-branch {
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.9;
    max-width: 360px;
    min-width: 0;
}

.footer-branch strong {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.footer-branch span {
    color: #ccc;
    font-size: 15px;
    line-height: 1.9;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-branch span:last-child {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    direction: ltr;
    unicode-bidi: embed;
}

.footer-bottom {
    max-width: 1200px;
    margin: 22px auto 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.footer-bottom p {
    margin: 0;
    color: #999;
    font-size: 13px;
    line-height: 1.8;
}

.scroll-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold, #dcbf83);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 14px;
    border: 1px solid rgba(220,191,131,.35);
    border-radius: 20px;
    transition: .25s ease;
    background: transparent;
    white-space: nowrap;
}

.scroll-to-top:hover {
    background: var(--gold, #dcbf83);
    color: #111;
}

@media (max-width: 992px) {
    .footer-content {
        gap: 18px;
    }

    .footer-brand h3 {
        font-size: 25px;
    }

    .footer-branch strong {
        font-size: 17px;
    }

    .footer-branch span {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 24px 12px 16px;
    }

    .footer-content {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 14px;
    }

    .footer-col,
    .branch-right,
    .branch-left,
    .footer-center {
        width: 100%;
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .footer-center {
        order: 1;
    }

    .footer-branch {
        width: 100%;
        max-width: 100%;
        padding: 12px 10px;
        gap: 6px;
        background: rgba(255,255,255,.03);
        border: 1px solid rgba(255,255,255,.06);
        border-radius: 12px;
        min-height: unset;
        height: auto;
    }

    .footer-branch strong {
        font-size: 16px;
        line-height: 1.7;
    }

    .footer-branch span {
        font-size: 13px;
        line-height: 1.85;
    }

    .footer-brand h3 {
        font-size: 22px;
        line-height: 1.5;
    }

    .footer-copy {
        margin-top: 10px;
        font-size: 12px;
        line-height: 1.85;
    }

    .footer-bottom {
        margin-top: 16px;
        padding-top: 12px;
    }

    .footer-bottom-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 20px 10px 14px;
    }

    .footer-content {
        gap: 12px;
    }

    .footer-brand h3 {
        font-size: 20px;
    }

    .footer-branch span {
        font-size: 12.5px;
    }

    .scroll-to-top {
        font-size: 12px;
        padding: 6px 12px;
    }
}
