.ff-footer,
.ff-footer * {
    box-sizing: border-box;
}

.ff-footer {
    --ff-blue: #1a6bf0;
    --ff-blue-light: #62adff;
    --ff-ink: #0d1424;
    --ff-white: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 64px 20px 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(26, 107, 240, 0.16), transparent 27%),
        radial-gradient(circle at 92% 72%, rgba(25, 163, 255, 0.09), transparent 24%),
        var(--ff-ink);
    color: rgba(255, 255, 255, 0.7);
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
    text-align: start;
}

html[dir="ltr"] .ff-footer {
    font-family: "InterLocal", Arial, sans-serif;
}

.ff-footer::before {
    position: absolute;
    inset-block-start: 230px;
    inset-inline-end: -130px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.018), 0 0 0 140px rgba(255, 255, 255, 0.01);
    content: "";
    pointer-events: none;
}

.ff-container {
    position: relative;
    z-index: 1;
    width: min(100%, 1200px);
    margin-inline: auto;
}

.ff-cta-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    overflow: hidden;
    min-height: 218px;
    padding: 38px 42px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 26px;
    background:
        radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.22), transparent 25%),
        linear-gradient(135deg, #1a6bf0 0%, #1159d1 55%, #0b43a3 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.ff-cta-card::before,
.ff-cta-card::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.ff-cta-card::before {
    inset-block-start: -115px;
    inset-inline-end: -70px;
    width: 270px;
    height: 270px;
}

.ff-cta-card::after {
    inset-block-end: -105px;
    inset-inline-end: 18%;
    width: 220px;
    height: 220px;
}

.ff-cta-card__copy,
.ff-cta-card__actions {
    position: relative;
    z-index: 1;
}

.ff-cta-card__copy {
    max-width: 690px;
}

.ff-cta-card__copy > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-block-end: 11px;
    color: #dcecff;
    font-size: 11px;
    font-weight: 700;
}

.ff-cta-card__copy > span::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a8d3ff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1);
    content: "";
}

.ff-cta-card h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: -0.7px;
}

html[dir="ltr"] .ff-cta-card h2 {
    letter-spacing: -0.8px;
}

.ff-cta-card p {
    max-width: 620px;
    margin: 11px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    line-height: 1.9;
}

.ff-cta-card__actions {
    display: grid;
    flex: 0 0 230px;
    gap: 9px;
}

.ff-cta-primary,
.ff-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.ff-cta-primary {
    gap: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 26, 75, 0.18);
    color: #145bc9;
}

.ff-cta-primary svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html[dir="rtl"] .ff-cta-primary svg {
    transform: scaleX(-1);
}

.ff-cta-secondary {
    flex-direction: column;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.23);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    line-height: 1.5;
}

.ff-cta-secondary span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 9px;
    font-weight: 500;
}

.ff-cta-secondary strong {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.ff-cta-primary:hover,
.ff-cta-primary:focus-visible,
.ff-cta-secondary:hover,
.ff-cta-secondary:focus-visible {
    outline: none;
    transform: translateY(-2px);
}

.ff-cta-primary:hover,
.ff-cta-primary:focus-visible {
    box-shadow: 0 16px 32px rgba(0, 26, 75, 0.25);
}

.ff-cta-secondary:hover,
.ff-cta-secondary:focus-visible {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.13);
}

.ff-main {
    display: grid;
    grid-template-columns: minmax(270px, 0.9fr) minmax(0, 1.65fr);
    gap: clamp(45px, 8vw, 100px);
    padding: 62px 4px 50px;
}

.ff-brand-block {
    min-width: 0;
}

.ff-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.ff-brand__logo {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.075);
}

.ff-brand__logo img {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.ff-brand > span:last-child {
    display: grid;
    gap: 1px;
}

.ff-brand strong {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.ff-brand small {
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.ff-brand-block > p {
    max-width: 355px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    line-height: 2;
}

.ff-availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-block-start: 16px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 10.5px;
    font-weight: 600;
}

.ff-availability i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38d983;
    box-shadow: 0 0 0 5px rgba(56, 217, 131, 0.1);
}

.ff-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-start: 23px;
}

.ff-social {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.ff-social svg {
    width: 18px;
    height: 18px;
}

.ff-social:hover,
.ff-social:focus-visible {
    outline: none;
    border-color: rgba(98, 173, 255, 0.36);
    background: rgba(26, 107, 240, 0.14);
    color: #fff;
    transform: translateY(-2px);
}

.ff-social--telegram:hover,
.ff-social--telegram:focus-visible {
    color: #48aee9;
}

.ff-social--whatsapp:hover,
.ff-social--whatsapp:focus-visible {
    color: #3cdb78;
}

.ff-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.ff-column {
    min-width: 0;
}

.ff-column h2 {
    position: relative;
    margin: 0 0 19px;
    padding-block-end: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.ff-column h2::after {
    position: absolute;
    inset-block-end: 0;
    inset-inline-start: 0;
    width: 24px;
    height: 2px;
    border-radius: 99px;
    background: var(--ff-blue-light);
    content: "";
}

.ff-column ul {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ff-column a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 11.5px;
    line-height: 1.65;
    text-decoration: none;
    transition: color 150ms ease, transform 150ms ease;
}

.ff-column a::before {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(98, 173, 255, 0.6);
    content: "";
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 150ms ease, transform 150ms ease;
}

.ff-column a:hover,
.ff-column a:focus-visible {
    outline: none;
    color: #fff;
    transform: translateX(-2px);
}

html[dir="ltr"] .ff-column a:hover,
html[dir="ltr"] .ff-column a:focus-visible {
    transform: translateX(2px);
}

.ff-column a:hover::before,
.ff-column a:focus-visible::before {
    opacity: 1;
    transform: scale(1);
}

.ff-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 26px;
    min-height: 78px;
    border-block-start: 1px solid rgba(255, 255, 255, 0.085);
}

.ff-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10.5px;
    line-height: 1.7;
}

.ff-legal {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ff-legal a {
    color: rgba(255, 255, 255, 0.48);
    font-size: 10.5px;
    text-decoration: none;
    transition: color 150ms ease;
}

.ff-legal a:hover,
.ff-legal a:focus-visible {
    outline: none;
    color: #fff;
}

.ff-languages {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
}

.ff-languages a {
    display: grid;
    place-items: center;
    min-width: 32px;
    height: 29px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 9px;
    font-weight: 700;
    text-decoration: none;
    transition: color 150ms ease, background-color 150ms ease;
}

.ff-languages a:hover,
.ff-languages a:focus-visible,
.ff-languages a[aria-current="page"] {
    outline: none;
    background: rgba(26, 107, 240, 0.22);
    color: #fff;
}

@media (max-width: 930px) {
    .ff-cta-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .ff-cta-card__actions {
        display: flex;
        flex: 0 0 auto;
        flex-wrap: wrap;
        width: 100%;
    }

    .ff-cta-primary,
    .ff-cta-secondary {
        flex: 1 1 210px;
    }

    .ff-main {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ff-brand-block > p {
        max-width: 560px;
    }
}

@media (max-width: 700px) {
    .ff-footer {
        padding: 38px 14px 0;
    }

    .ff-cta-card {
        min-height: auto;
        padding: 28px 24px;
        border-radius: 20px;
    }

    .ff-main {
        padding-block: 46px 38px;
    }

    .ff-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px 28px;
    }

    .ff-column:last-child {
        grid-column: 1 / -1;
    }

    .ff-bottom {
        grid-template-columns: 1fr auto;
        gap: 15px;
        padding-block: 20px;
    }

    .ff-legal {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .ff-languages {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 470px) {
    .ff-cta-card {
        padding: 25px 20px;
    }

    .ff-cta-card h2 {
        font-size: 22px;
    }

    .ff-cta-card__actions {
        display: grid;
    }

    .ff-cta-primary,
    .ff-cta-secondary {
        flex: none;
        width: 100%;
    }

    .ff-nav-grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px 20px;
    }

    .ff-column:last-child {
        grid-column: 1 / -1;
    }

    .ff-column a {
        font-size: 11px;
    }

    .ff-bottom {
        grid-template-columns: 1fr;
    }

    .ff-bottom p,
    .ff-legal,
    .ff-languages {
        grid-column: 1;
        grid-row: auto;
    }

    .ff-languages {
        width: fit-content;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ff-footer * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ── گارد تدافعی: فقط خنثی‌سازی سلکتورهای عنصری قدیمی، بدون دست‌زدن به چیدمان ── */
footer.ff-footer {
    float: none;
    clear: both;
    width: auto;
    max-width: none;
    min-width: 0;
    transform: none;
    visibility: visible;
    opacity: 1;
}
