/**
 * Desktop AFYC footer + плашка «В каталог…» над футером.
 * Активируется классом .big_wrapper-footer.is-afyc-desk (ставится из common/footer.php).
 */

/* Блок «Уже размещено…» перед футером (все контуры AFYC) */
.afyc-cta {
    margin: 48px auto 8px;
    max-width: 1220px;
    background: #fff;
    color: #000;
    border: 1px solid #e23737;
    border-radius: 18px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-sizing: border-box;
}
.afyc-cta--stat,
.afyc-cta--stat-footer {
    margin: 32px auto 24px;
    justify-content: center;
    text-align: center;
    padding-left: 24px;
    padding-right: 24px;
}
.afyc-cta__text {
    margin: 0;
    flex: 1 1 220px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: #000 !important;
}
.afyc-cta--stat .afyc-cta__text,
.afyc-cta--stat-footer .afyc-cta__text {
    flex: 0 1 auto;
    text-align: center;
}
.afyc-cta__num {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #e23737;
}
@media (max-width: 640px) {
    .afyc-cta {
        margin: 24px 16px;
        padding: 22px;
    }
    .afyc-cta--stat-footer {
        margin: 24px 16px 16px;
    }
    .afyc-cta__text {
        font-size: 17px;
    }
}

/* Fixed .ks-mp-bottom-nav (56px) до 1008px — иначе «Уже размещено» обрезается. */
@media (max-width: 1008px) {
    .afyc-cta--stat-footer {
        margin-bottom: 75px;
    }
}

.afyc-footer-plaque {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 45px 0;
    padding: 0 16px;
    box-sizing: border-box;
}
.afyc-footer-plaque .link_btn__light_footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.afyc-footer-desk {
    display: none;
}

@media (min-width: 901px) {
    .big_wrapper-footer.is-afyc-desk {
        background: #fff;
        border-top: 1px solid #eeedec;
    }
    .big_wrapper-footer.is-afyc-desk .new-container > *:not(.afyc-footer-desk) {
        display: none !important;
    }
    .big_wrapper-footer.is-afyc-desk > .new-container {
        max-width: 1220px;
        width: 100%;
        margin: 0 auto;
        padding: 0;
    }
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk {
        display: block;
        background: #fff;
        padding: 40px 0 24px;
        font-size: 14px;
        color: #6b6562;
        font-family: Inter-Medium, Inter, sans-serif;
    }
    .afyc-footer-desk__grid {
        max-width: 1220px;
        margin: 0 auto;
        padding: 0 24px;
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 24px;
    }
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk a {
        display: block;
        margin: 6px 0;
        text-decoration: none;
        font-family: Inter-Medium, sans-serif;
        font-size: 12px;
        color: #353433;
        cursor: pointer;
    }
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk a:hover {
        color: #E23737;
    }
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk p,
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk span {
        font-family: Inter-Medium, sans-serif;
        font-size: 12px;
        color: #353433;
    }
    .afyc-footer-desk__logo {
        height: 22px;
        display: block;
        margin-bottom: 10px;
    }
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk__tel {
        font-size: 22px;
        font-weight: 400;
        color: #e23737 !important;
    }
    .afyc-footer-desk__contact {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .afyc-footer-desk__contact > b {
        display: block;
        margin-bottom: 2px;
        color: #353433;
        font-size: 14px;
    }
    /* Кнопка чата: не наследовать block/12px от ссылок футера; morph-reveal из support-widget.css */
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk .ks-support-footer-btn {
        margin-top: 8px;
        align-self: flex-start;
    }
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk .ks-support-footer-btn span {
        font-size: 15px !important;
        color: #353433 !important;
    }
    .afyc-footer-desk__pay {
        max-width: 1220px;
        margin: 24px auto 0;
        padding: 0 24px;
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
        color: #6b6562;
        font-size: 12px;
    }
    .afyc-footer-desk__pay img {
        height: 18px;
    }
    /* Блок статистики с главной: не наследовать 12px/#353433 от футера AFYC */
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk .ks-traffic-stats {
        margin-top: 20px;
        padding: 0 24px 8px;
        max-width: 1220px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk .ks-traffic-stats,
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk .ks-traffic-stats p,
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk .ks-traffic-stats span,
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk .ks-traffic-stats a,
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk .ks-traffic-stats time {
        font-family: inherit;
        font-size: inherit;
        color: inherit;
    }
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk .ks-traffic-stats__title {
        font-size: 20px;
        font-weight: 600;
        color: var(--ks-ts-text, #4b5563);
    }
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk .ks-traffic-stats__line {
        font-size: 12px;
        color: var(--ks-ts-text, #4b5563);
    }
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk .ks-traffic-stats__meta {
        font-size: 11px;
        color: var(--ks-ts-muted, #6b7280);
    }
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk .ks-traffic-stats__meta a {
        display: inline;
        margin: 0;
        color: var(--ks-ts-line, #dc2626);
        text-decoration: underline;
        font-size: inherit;
    }
    .big_wrapper-footer.is-afyc-desk .afyc-footer-desk .ks-traffic-stats__lbl {
        font-size: 9px;
        color: var(--ks-ts-muted, #6b7280);
    }
}
