/** Modwin footer v2 — 2026-08-09 */

.modwin-footer {
    margin-top: 78px;
    padding: 0 !important;
    overflow: visible;
    color: rgba(255,255,255,.72) !important;
    background: #142746 !important;
    border-top: 0 !important;
    font-family: var(--m-font-sans, Vazirmatn, sans-serif);
    direction: rtl;
}

.mf-shell {
    width: calc(100% - 40px);
    max-width: 1290px;
    margin: 0 auto;
}

.mf-cta {
    position: relative;
    top: -44px;
    min-height: 174px;
    margin-bottom: -6px;
    padding: 30px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    color: #182b4f;
    background:
        radial-gradient(circle at 8% 0%, rgba(223,102,114,.16), transparent 30%),
        linear-gradient(135deg, #f9f4ed 0%, #f1e6d8 100%);
    border: 1px solid #eadfD2;
    border-radius: 26px;
    box-shadow: 0 22px 55px rgba(12,28,53,.18);
    overflow: hidden;
}

.mf-cta::after {
    content: '';
    width: 210px;
    height: 210px;
    position: absolute;
    left: -65px;
    bottom: -105px;
    border: 34px solid rgba(24,43,79,.055);
    border-radius: 50%;
    pointer-events: none;
}

.mf-cta-copy { min-width: 0; max-width: 670px; position: relative; z-index: 1; }
.mf-eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 11px;
    color: #aa4654;
    background: rgba(223,102,114,.11);
    border: 1px solid rgba(223,102,114,.17);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}
.mf-cta h2 {
    margin: 0 0 8px !important;
    color: #182b4f !important;
    font-size: clamp(23px,2.5vw,34px) !important;
    font-weight: 850 !important;
    line-height: 1.35 !important;
}
.mf-cta p { margin: 0; color: #626b79; font-size: 13.5px; line-height: 1.8; }

.mf-payment-list {
    min-width: 310px;
    max-width: 100%;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.mf-payment-pill {
    grid-column: 1 / -1;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #182b4f;
    background: rgba(255,255,255,.82);
    border: 1px solid #e5d9cc;
    border-radius: 13px;
    font-size: 16px;
    font-weight: 750;
}
.mf-payment-pill img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.mf-cta-link {
    grid-column: 1 / -1;
    height: 43px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 !important;
    color: #fff !important;
    background: #182b4f;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 12px !important;
    font-weight: 750;
    transition: background .2s ease, transform .2s ease;
}
.mf-cta-link:hover { color: #fff !important; background: #df6672; transform: translateY(-1px) !important; }
.mf-cta-link svg { width: 16px !important; height: 16px !important; stroke: currentColor !important; }

.modwin-footer-grid {
    max-width: none !important;
    margin: 0 !important;
    padding: 16px 0 48px !important;
    display: grid;
    grid-template-columns: 1.65fr .8fr .8fr 1.25fr !important;
    gap: clamp(28px,4vw,62px) !important;
}

.modwin-footer-col { min-width: 0; }
.modwin-footer-col h4 {
    margin: 0 0 19px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: -.1px;
}
.modwin-footer-col h4::before {
    width: 7px !important;
    height: 7px !important;
    background: #df6672 !important;
    border-radius: 50% !important;
}

.modwin-footer-col > a:not(.mf-logo):not(.mf-contact-item) {
    width: fit-content;
    margin: 0 0 10px !important;
    padding: 2px 0;
    color: rgba(255,255,255,.68) !important;
    font-size: 12.5px !important;
    line-height: 1.7;
    text-decoration: none !important;
}
.modwin-footer-col > a:not(.mf-logo):not(.mf-contact-item)::before {
    content: '';
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,.24);
    border-radius: 50%;
    transition: background .2s ease, transform .2s ease;
}
.modwin-footer-col > a:not(.mf-logo):not(.mf-contact-item):hover {
    color: #fff !important;
    transform: translateX(-3px) !important;
}
.modwin-footer-col > a:not(.mf-logo):not(.mf-contact-item):hover::before { background: #df6672; transform: scale(1.35); }

.mf-logo {
    width: fit-content;
    display: inline-flex !important;
    margin: 0 0 18px !important;
    padding: 10px 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.modwin-footer-logo-img { width: 148px; height: auto; display: block; margin: 0 !important; }
.modwin-footer-about p {
    max-width: 385px;
    margin: 0 0 20px !important;
    color: rgba(255,255,255,.67) !important;
    font-size: 12.5px !important;
    line-height: 2 !important;
}
.mf-brand-points { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.mf-brand-points span { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.82); font-size: 11px; }
.mf-brand-points i { width: 7px; height: 7px; background: #66c691; border: 2px solid rgba(102,198,145,.22); border-radius: 50%; box-sizing: content-box; }

.mf-contact {
    padding: 20px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
}
.mf-contact-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 10px !important;
    padding: 10px !important;
    color: #fff !important;
    background: rgba(255,255,255,.055);
    border: 1px solid transparent;
    border-radius: 12px;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease !important;
}
.mf-contact-item:hover { color: #fff !important; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.10); transform: none !important; }
.mf-contact-icon { width: 34px; height: 34px; flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; color: #f0929d; background: rgba(223,102,114,.12); border-radius: 10px; }
.mf-contact-icon svg { width: 18px !important; height: 18px !important; stroke: currentColor !important; }
.mf-contact-item > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mf-contact-item small { color: rgba(255,255,255,.5); font-size: 9.5px; }
.mf-contact-item strong { color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.mf-contact-meta { padding: 5px 4px 0; display: flex; flex-direction: column; gap: 6px; }
.mf-contact-meta span { color: rgba(255,255,255,.57); font-size: 10.5px; }

.modwin-footer-bottom {
    max-width: none !important;
    min-height: 82px;
    margin: 0 !important;
    padding: 15px 0 !important;
    display: flex;
    align-items: center;
    gap: 22px;
    color: rgba(255,255,255,.48) !important;
    border-top: 1px solid rgba(255,255,255,.09) !important;
    font-size: 10.5px !important;
}
.mf-copyright { white-space: nowrap; }
.mf-bottom-links { display: flex; align-items: center; gap: 16px; }
.mf-bottom-links a { color: rgba(255,255,255,.58); text-decoration: none; font-size: 10.5px; }
.mf-bottom-links a:hover { color: #fff; }
.modwin-enamad {
    width: 68px;
    height: 58px;
    margin-right: auto;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: #fff;
    border-radius: 10px;
    line-height: 0;
}
.modwin-enamad img { max-width: 58px; max-height: 50px; width: auto; height: auto; display: block; }

@media (max-width: 999px) {
    .modwin-footer { margin-top: 64px; }
    .mf-shell { width: calc(100% - 28px); }
    .mf-cta { top: -36px; min-height: 0; padding: 26px; align-items: stretch; }
    .mf-cta-copy { max-width: 55%; }
    .mf-payment-list { min-width: 280px; }
    .modwin-footer-grid { grid-template-columns: 1.35fr 1fr !important; gap: 34px !important; padding-top: 8px !important; }
}

@media (max-width: 700px) {
    .modwin-footer { margin-top: 54px; }
    .mf-shell { width: calc(100% - 24px); }
    .mf-cta { top: -28px; margin-bottom: -2px; padding: 22px 18px; flex-direction: column; gap: 20px; border-radius: 20px; }
    .mf-cta-copy { max-width: none; }
    .mf-cta h2 { font-size: 23px !important; }
    .mf-cta p { font-size: 12.5px; }
    .mf-payment-list { min-width: 0; width: 100%; }
    .mf-payment-pill { height: 60px; }
    .modwin-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 30px 24px !important; padding: 10px 6px 38px !important; }
    .modwin-footer-about, .mf-contact { grid-column: 1 / -1; }
    .mf-contact { padding: 16px; }
    .modwin-footer-bottom { align-items: flex-start; flex-wrap: wrap; gap: 12px 18px; padding: 16px 4px 22px !important; }
    .mf-copyright { width: calc(100% - 88px); white-space: normal; line-height: 1.8; }
    .mf-bottom-links { order: 3; width: 100%; }
    .modwin-enamad { margin-right: auto; }
}

@media (max-width: 420px) {
    .mf-payment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .modwin-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 18px !important; }
    .modwin-footer-col h4 { font-size: 13px !important; }
    .modwin-footer-col > a:not(.mf-logo):not(.mf-contact-item) { font-size: 11.5px !important; }
}
