body.zef-footer-active footer.site-footer:not(.zef-footer) {
    display: none !important;
}

.zef-footer {
    --zef-gold: #d8a52f;
    --zef-gold-light: #f2cf70;
    --zef-purple: #4e245f;
    --zef-panel: #081722;
    --zef-deep: #030a10;
    --zef-title: #f4ead2;
    --zef-text: #bdb4a8;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    border-top: 1px solid rgba(216, 165, 47, 0.42);
    background:
        radial-gradient(circle at 9% 20%, rgba(78, 36, 95, 0.32), transparent 27%),
        radial-gradient(circle at 90% 100%, rgba(216, 165, 47, 0.09), transparent 31%),
        linear-gradient(145deg, #02070b, var(--zef-deep) 50%, #06131c);
    color: var(--zef-text);
    font-family: Vazirmatn, Tahoma, Arial, sans-serif;
    box-sizing: border-box;
}

.zef-footer *,
.zef-footer *::before,
.zef-footer *::after {
    box-sizing: border-box;
}

.zef-footer__tricolour {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    left: 0;
    height: 9px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
}

.zef-footer__tricolour span:nth-child(1),
.zef-footer__mini-flag span:nth-child(1) {
    background: #239f40;
}

.zef-footer__tricolour span:nth-child(2),
.zef-footer__mini-flag span:nth-child(2) {
    background: #f3eee5;
}

.zef-footer__tricolour span:nth-child(3),
.zef-footer__mini-flag span:nth-child(3) {
    background: #da0000;
}

.zef-footer__glow {
    position: absolute;
    z-index: -1;
    top: -230px;
    left: 50%;
    width: 680px;
    height: 430px;
    border: 1px solid rgba(216, 165, 47, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(216, 165, 47, 0.012),
        0 0 0 140px rgba(216, 165, 47, 0.008);
    transform: translateX(-50%);
}

.zef-footer__shell {
    width: min(1180px, calc(100% - 44px));
    margin-inline: auto;
}

.zef-footer__grid {
    display: grid;
    grid-template-columns: 1.05fr 1.15fr 1.15fr minmax(150px, 0.7fr);
    gap: clamp(27px, 4vw, 52px);
    align-items: start;
    padding: 62px 0 38px;
}

.zef-footer__column,
.zef-footer__brand {
    min-width: 0;
}

.zef-footer h2 {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 11px;
    color: var(--zef-gold-light);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.6;
}

.zef-footer h2::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 42px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--zef-gold));
    content: "";
}

.zef-footer a {
    color: inherit;
    text-decoration: none;
}

.zef-footer__links ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.zef-footer__links li {
    margin: 0;
    padding: 0;
}

.zef-footer__links a {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    color: var(--zef-text);
    font-size: 0.83rem;
    line-height: 1.7;
    transition: color 170ms ease, transform 170ms ease;
}

.zef-footer__links a > span {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: rgba(216, 165, 47, 0.58);
    box-shadow: 0 0 0 3px rgba(216, 165, 47, 0.06);
}

.zef-footer__links a:hover,
.zef-footer__links a:focus-visible {
    transform: translateX(-3px);
    color: var(--zef-gold-light);
}

.zef-footer__social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.zef-footer__social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(216, 165, 47, 0.26);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(78, 36, 95, 0.34), rgba(8, 23, 34, 0.7));
    color: var(--zef-gold-light);
    font-size: 0.7rem;
    font-weight: 900;
    direction: ltr;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.zef-footer__social-icons a:hover,
.zef-footer__social-icons a:focus-visible {
    transform: translateY(-3px);
    border-color: var(--zef-gold);
    background: var(--zef-gold);
    color: #130d05;
}

.zef-footer__social > p {
    margin: 16px 0 0;
    color: var(--zef-text);
    font-size: 0.8rem;
    line-height: 1.8;
}

.zef-footer__mini-flag {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    overflow: hidden;
    width: min(230px, 100%);
    height: 15px;
    margin-top: 16px;
    border: 1px solid rgba(216, 165, 47, 0.26);
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

.zef-footer__contact {
    display: block;
}

.zef-footer__contact p {
    display: grid;
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0 0 11px;
    color: var(--zef-text);
    font-size: 0.82rem;
    line-height: 1.7;
}

.zef-footer__contact svg {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--zef-gold);
}

.zef-footer__contact a {
    overflow-wrap: anywhere;
}

.zef-footer__contact a:hover,
.zef-footer__contact a:focus-visible {
    color: var(--zef-gold-light);
}

.zef-footer__contact bdi {
    direction: ltr;
    unicode-bidi: isolate;
}

.zef-footer__phone {
    display: inline-block;
    width: max-content;
    max-width: 100%;
    text-align: left;
}

.zef-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.zef-footer__logo {
    display: block;
    position: relative;
    width: 126px;
    height: 126px;
    margin-bottom: 13px;
    border: 2px solid var(--zef-gold);
    border-radius: 50%;
    background: var(--zef-panel);
    box-shadow:
        0 13px 35px rgba(0, 0, 0, 0.34),
        0 0 0 7px rgba(216, 165, 47, 0.05);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.zef-footer__logo::after {
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(242, 207, 112, 0.25);
    border-radius: 50%;
    pointer-events: none;
    content: "";
}

.zef-footer__logo:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.42),
        0 0 0 8px rgba(216, 165, 47, 0.07);
}

.zef-footer__logo img {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
}

.zef-footer__brand strong {
    color: var(--zef-title);
    font-size: 0.83rem;
    font-weight: 900;
    line-height: 1.7;
}

.zef-footer__brand small {
    margin-top: 4px;
    color: #8f887e;
    font-size: 0.68rem;
    line-height: 1.7;
}

.zef-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 18px 0 23px;
    border-top: 1px solid rgba(216, 165, 47, 0.17);
    color: #918a80;
    font-size: 0.71rem;
    line-height: 1.7;
}

.zef-footer__bottom p {
    margin: 0;
}

.zef-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.zef-footer__legal a:hover,
.zef-footer__legal a:focus-visible {
    color: var(--zef-gold-light);
}

.zef-footer a:focus-visible {
    outline: 2px solid var(--zef-gold);
    outline-offset: 3px;
    border-radius: 3px;
}

@media (max-width: 980px) {
    .zef-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zef-footer__brand {
        align-items: flex-start;
        text-align: right;
    }
}

@media (max-width: 600px) {
    .zef-footer__shell {
        width: min(100% - 28px, 1180px);
    }

    .zef-footer__grid {
        grid-template-columns: 1fr;
        gap: 31px;
        padding-top: 52px;
    }

    .zef-footer__brand {
        align-items: center;
        text-align: center;
    }

    .zef-footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .zef-footer__legal {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .zef-footer *,
    .zef-footer *::before,
    .zef-footer *::after {
        transition-duration: 0.01ms !important;
    }
}
