.mk-bottom-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 9999;

    height: 82px;
    padding: 7px 8px;

    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr;
    align-items: end;

    background: rgba(255,255,255,.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    border-radius: 15px;
    border: 1px solid rgba(255,255,255,.8);

    box-shadow:
        0 18px 42px rgba(15,23,42,.12),
        0 4px 14px rgba(15,23,42,.06);
}

.mk-nav-item {
    position: relative;

    height: 64px;
    border-radius: 15px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;

    gap: 6px;
    padding-bottom: 8px;

    text-decoration: none !important;
    color: #7d8490 !important;

    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;

    -webkit-tap-highlight-color: transparent;
}

.mk-nav-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -4px;
    bottom: 17px;
    width: 1px;
    height: 34px;
    background: rgba(125,132,144,.18);
}

.mk-nav-icon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mk-nav-icon svg {
    width: 25px;
    height: 25px;
    display: block;
}

.mk-nav-icon path,
.mk-nav-icon rect,
.mk-nav-icon circle,
.mk-nav-circle path,
.mk-nav-circle rect {
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mk-nav-item--active {
    color: #ff5c5e !important;
}

.mk-nav-item--active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 32px;
    height: 4px;
    border-radius: 999px;
    background: #ff5c5e;
}

.mk-nav-center {
    height: 64px;
    padding-bottom: 8px;
    transform: none;
    color: #ff5c5e !important;
    font-size: 10.5px;
}

.mk-nav-center::after {
    display: none;
}

.mk-nav-circle {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);

    width: 66px;
    height: 66px;

    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4d4f 100%);

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    box-shadow:
        0 14px 28px rgba(255,92,94,.32),
        0 4px 10px rgba(255,92,94,.18);
}

.mk-nav-circle svg {
    width: 31px;
    height: 31px;
    display: block;
}

.mk-nav-center span:last-child {
    color: #ff5c5e !important;
    margin-top: 0;
    font-weight: 700;
}


/* ============================================================
   КАРТОЧКИ COMPLETED
   Один и тот же дизайн используется для desktop и mobile.
   Здесь заменён старый блок, который был привязан только к
   .box-news-item.mobile.
============================================================ */

[data-query="completed"] {
    width: 100%;
}

[data-query="completed"] .mk-completed-grid {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[data-query="completed"] .mk-completed-grid--desktop {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

[data-query="completed"] .mk-completed-grid--mobile {
    display: none;
}

[data-query="completed"] .cart-anim-hero,
[data-query="completed"] .cart-anim._100,
[data-query="completed"] .cart-anim._100.show {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

[data-query="completed"] .mk-white-card {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    padding: 14px !important;
    border: 1px solid #eceef1;
    border-radius: 12px!important;
    background: #fff;
    box-shadow:
        0 16px 38px rgba(15, 23, 42, .07),
        0 3px 10px rgba(15, 23, 42, .035);
    box-sizing: border-box;
}

[data-query="completed"] .mk-white-card *,
[data-query="completed"] .mk-white-card *::before,
[data-query="completed"] .mk-white-card *::after {
    box-sizing: border-box;
}

[data-query="completed"] .mk-white-card a {
    text-decoration: none !important;
}


/* ============================================================
   ФОТО
============================================================ */

[data-query="completed"] .mk-white-card__media {
    width: 100% !important;
    height: auto !important;
    min-width: 0;
    position: relative;
    overflow: visible !important;
    display: block !important;
    border-radius: 15px !important;
    background: #f4f5f7;
}

[data-query="completed"] .mk-white-card__main-slider {
    width: 100%;
    height: auto;
    aspect-ratio: 1.62 / 1;
    overflow: hidden;
    border-radius: 15px;
    background: #eef0f3;
}

[data-query="completed"] .mk-white-card__main-slider .swiper-wrapper,
[data-query="completed"] .mk-white-card__main-slider .swiper-slide,
[data-query="completed"] .mk-card-image-link {
    width: 100%;
    height: 100%;
}

[data-query="completed"] .mk-card-image-link {
    display: block;
}

[data-query="completed"] .mk-white-card__main-image,
[data-query="completed"] .mk-white-card__media .img-news {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    border-radius: 0 !important;
    transform: none !important;
}

/* Фолбек до загрузки Swiper. */
[data-query="completed"] .mk-white-card__main-slider:not(.swiper-initialized) .swiper-slide {
    display: none;
}

[data-query="completed"] .mk-white-card__main-slider:not(.swiper-initialized) .swiper-slide:first-child {
    display: block;
}


/* Категория слева сверху. */
[data-query="completed"] .mk-white-card .div-block-62 {
    position: absolute !important;
    z-index: 20;
    top: 14px !important;
    left: 14px !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

[data-query="completed"] .mk-white-card .vert-0-8 {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(30, 38, 44, .82) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff !important;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    text-transform: none !important;
    white-space: nowrap;
}


/* ============================================================
   ИПОТЕКА / ЛИЗИНГ
   Сами иконки и SVG в PHP НЕ менялись.
============================================================ */

[data-query="completed"] .mk-white-card .div-block-87 {
    position: absolute !important;
    z-index: 21;
    top: 14px !important;
    right: 14px !important;
    left: auto !important;
    bottom: auto !important;
    min-height: 30px;
    margin: 0 !important;
    padding: 6px 10px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(30, 38, 44, .82) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff !important;
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none !important;
}

[data-query="completed"] .mk-white-card .div-block-87::after {
    display: inline;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
}

/* [data-query="completed"] .mk-white-card .mk-finance-badge--mortgage::after {
    content: "Ипотека";
}

[data-query="completed"] .mk-white-card .mk-finance-badge--leasing::after {
    content: "Лизинг";
} */

[data-query="completed"] .mk-white-card .div-block-87 > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

[data-query="completed"] .mk-white-card .div-block-87 svg {
    display: block;
    width: 17px;
    height: 17px;
}


/* ============================================================
   МИНИАТЮРЫ
============================================================ */

[data-query="completed"] .mk-white-card__thumbs-wrap {
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
}

[data-query="completed"] .mk-white-card__thumbs {
    width: 100%;
    overflow: hidden;
}

[data-query="completed"] .mk-white-card__thumbs .swiper-wrapper {
    align-items: center;
}

[data-query="completed"] .mk-white-card__thumbs .swiper-slide {
    width: 68px;
    flex: 0 0 68px;
}

[data-query="completed"] .mk-white-card__thumb {
    appearance: none;
    display: block;
    width: 68px;
    height: 50px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #eef0f3;
    cursor: pointer;
    opacity: .9;
    transition:
        border-color .2s ease,
        opacity .2s ease,
        transform .2s ease;
}

[data-query="completed"] .mk-white-card__thumb:hover {
    opacity: 1;
}

[data-query="completed"] .mk-white-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

[data-query="completed"] .mk-white-card__thumb.is-active,
[data-query="completed"] .mk-white-card__thumbs .swiper-slide-thumb-active .mk-white-card__thumb {
    border-color: #ff5c5e;
    opacity: 1;
}


/* ============================================================
   ТЕКСТОВАЯ ЧАСТЬ
============================================================ */

[data-query="completed"] .mk-white-card__info {
    width: 100% !important;
    min-width: 0;
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column;
    padding: 17px 2px 2px !important;
    background: #fff !important;
}

[data-query="completed"] .mk-card-info-link {
    display: block;
    color: inherit;
}

[data-query="completed"] .mk-white-card__title {
    margin: 0 !important;
    color: #17191e !important;
    font-size: 20px !important;
    line-height: 1.18 !important;
    font-weight: 700 !important;
    letter-spacing: -.02em;
}

[data-query="completed"] .mk-white-card__excerpt {
    display: -webkit-box !important;
    margin-top: 12px;
    overflow: hidden;
    color: #555b64 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

[data-query="completed"] .mk-white-card__statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

[data-query="completed"] .mk-white-card__statuses .text-tin {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f5f6f8;
    color: #6e747d;
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    bottom: 275px;
}


/* ============================================================
   ХАРАКТЕРИСТИКИ
============================================================ */

[data-query="completed"] .mk-white-card__specs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 0 !important;
}

[data-query="completed"] .mk-white-card .mk-card-spec {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #2f343b;
}

[data-query="completed"] .mk-white-card .mk-card-spec__icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff4f4;
    color: #ff5c5e;
}

[data-query="completed"] .mk-white-card .mk-card-spec__icon svg {
    display: block;
    width: 21px;
    height: 21px;
    fill: none;
}

[data-query="completed"] .mk-white-card .mk-card-spec__icon path,
[data-query="completed"] .mk-white-card .mk-card-spec__icon circle {
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[data-query="completed"] .mk-card-spec__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

[data-query="completed"] .mk-card-spec__text b {
    color: #5f646d;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 600;
}

[data-query="completed"] .mk-card-spec__text > span {
    color: #23272e;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
}


/* ============================================================
   НИЖНЯЯ ЧАСТЬ: ЦЕНА / РАСЧЁТ / ПОДРОБНЕЕ
============================================================ */

[data-query="completed"] .mk-white-card__divider {
    width: 100%;
    height: 1px;
    margin: 20px 0 15px;
    background: #eceef1;
}

[data-query="completed"] .mk-white-card__bottom {
    width: 100%;
    margin-top: auto;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 46%);
    gap: 14px;
    align-items: center;
}

[data-query="completed"] .mk-white-card__price-wrap {
    min-width: 0;
}

[data-query="completed"] .mk-white-card__price {
    margin: 0 !important;
    color: #ff4f55 !important;
    font-size: 26px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

[data-query="completed"] .mk-white-card__price--request {
    font-size: 17px !important;
    white-space: normal;
}

[data-query="completed"] .mk-white-card__calc {
    width: 100% !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 0 15px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 7px !important;
    background: linear-gradient(135deg, #ff6668 0%, #ff4d52 100%) !important;
    color: #fff !important;
    box-shadow: 0 9px 22px rgba(255, 92, 94, .18);
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-align: center;
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

[data-query="completed"] .mk-white-card__calc:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(255, 92, 94, .24);
}

[data-query="completed"] .mk-white-card__more {
    align-self: flex-end;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #555b64 !important;
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
}

[data-query="completed"] .mk-white-card__more-arrow {
    color: #17191e;
    font-size: 20px;
    line-height: 1;
}


/* ============================================================
   DESKTOP / TABLET
============================================================ */

@media (min-width: 769px) and (max-width: 1250px) {
    [data-query="completed"] .mk-completed-grid--desktop {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ============================================================
   MOBILE
   Та же карточка, а не отдельный тёмный дизайн.
============================================================ */

@media (max-width: 768px) {
    [data-query="completed"] .mk-completed-grid--desktop {
        display: none !important;
    }

    [data-query="completed"] .mk-completed-grid--mobile {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    [data-query="completed"] .mk-white-card {
        padding: 10px !important;
        border-radius: 17px;
    }

    [data-query="completed"] .mk-white-card__main-slider {
        aspect-ratio: 1.48 / 1;
        border-radius: 13px;
    }

    [data-query="completed"] .mk-white-card .div-block-62 {
        top: 10px !important;
        left: 10px !important;
    }

    [data-query="completed"] .mk-white-card .vert-0-8 {
        min-height: 27px;
        padding: 7px 10px;
        font-size: 9px;
    }

    [data-query="completed"] .mk-white-card .div-block-87 {
        top: 10px !important;
        right: 10px !important;
        min-height: 27px;
        padding: 5px 8px !important;
    }

    [data-query="completed"] .mk-white-card .div-block-87::after {
        font-size: 9px;
    }

    [data-query="completed"] .mk-white-card .div-block-87 svg {
        width: 15px;
        height: 15px;
    }

    [data-query="completed"] .mk-white-card__thumbs-wrap {
        margin-top: 8px;
    }

    [data-query="completed"] .mk-white-card__thumbs .swiper-slide {
        width: 58px;
        flex-basis: 58px;
    }

    [data-query="completed"] .mk-white-card__thumb {
        width: 58px;
        height: 43px;
        border-radius: 7px;
    }

    [data-query="completed"] .mk-white-card__info {
        padding: 14px 2px 2px !important;
    }

    [data-query="completed"] .mk-white-card__title {
        font-size: 17px !important;
        line-height: 1.2 !important;
    }

    [data-query="completed"] .mk-white-card__excerpt {
        margin-top: 9px;
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    [data-query="completed"] .mk-white-card__specs {
       
        gap: 9px;
        margin-top: 16px !important;
    }

    [data-query="completed"] .mk-white-card .mk-card-spec__icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    [data-query="completed"] .mk-white-card .mk-card-spec__icon svg {
        width: 19px;
        height: 19px;
    }

    [data-query="completed"] .mk-card-spec__text b {
        font-size: 10px;
    }

    [data-query="completed"] .mk-card-spec__text > span {
        font-size: 12px;
    }

    [data-query="completed"] .mk-white-card__divider {
        margin: 16px 0 13px;
    }

    [data-query="completed"] .mk-white-card__bottom {
        grid-template-columns: minmax(0, 1fr) minmax(135px, 46%);
        gap: 10px;
    }

    [data-query="completed"] .mk-white-card__price {
        font-size: 22px !important;
    }

    [data-query="completed"] .mk-white-card__price--request {
        font-size: 14px !important;
    }

    [data-query="completed"] .mk-white-card__calc {
        min-height: 44px;
        padding: 0 10px !important;
        font-size: 11px !important;
    }

    [data-query="completed"] .mk-white-card__more {
        margin-top: 11px;
        font-size: 11px;
    }
}


@media (max-width: 420px) {
    [data-query="completed"] .mk-white-card__bottom {
        grid-template-columns: 1fr;
    }

    [data-query="completed"] .mk-white-card__calc {
        width: 100% !important;
    }

    [data-query="completed"] .mk-white-card__more {
        align-self: flex-start;
    }
}


/* Оставляем твоё правило формы. */
form .text-2-3.px {
    font-size: 25px;
    margin-bottom: 10px;
}
/* =========================================================
   КАТЕГОРИИ КАТАЛОГА
========================================================= */

.mk-catalog-nav-section {
    width: 100%;
    padding: 30px 16px 28px;
    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #f4f6f8 100%
        );
}

.mk-catalog-nav-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;

    display: flex;
    align-items: center;

    position: relative;
}


/* =========================================================
   КАРУСЕЛЬ
========================================================= */

.mk-catalog-nav {
    width: 100%;

    display: flex;
    align-items: stretch;
    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    padding: 4px 1px 8px;

    scrollbar-width: none;
}

.mk-catalog-nav::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   КНОПКА КАТЕГОРИИ
========================================================= */

.mk-catalog-nav-item {
   flex: 0 0 auto;
    min-width: 200px;
    height: 50px;
    padding: 0 22px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 13px;
    scroll-snap-align: start;
    background: rgb(255 255 255 / .96);
    border: 1px solid #dde1e6 !important;
    border-radius: 10px !important;
    color: #3c4148 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgb(15 23 42 / .025);
    transition: background-color .22s ease, border-color .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.mk-catalog-nav-item:hover {
    background: #ff5257!important;

    transform: translateY(-1px);
color: #fff !important;
    box-shadow:
        0 7px 18px rgba(15,23,42,.07);
}


/* активная */

.mk-catalog-nav-item.is-active {
    background:
        linear-gradient(
            135deg,
            #ff6467 0%,
            #ff4d52 100%
        );

    border-color: #ff5559;

    color: #ffffff !important;

    box-shadow:
        0 7px 18px rgba(255,92,94,.18);
}


/* =========================================================
   ИКОНКА
========================================================= */

.mk-catalog-nav-icon {
    width: 27px;
    height: 27px;

    min-width: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: currentColor;
}

.mk-catalog-nav-icon svg {
    width: 24px;
    height: 24px;

    display: block;

    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;

    fill: none;
}


/* =========================================================
   ТЕКСТ
========================================================= */

.mk-catalog-nav-title {
    font-size: 12px;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    font-weight: 700;

    text-transform: uppercase;
    white-space: nowrap;
}


/* =========================================================
   СТРЕЛКИ
========================================================= */

.mk-catalog-nav-arrow {
    width: 40px;
    height: 40px;

    min-width: 40px;

    display: none;

    align-items: center;
    justify-content: center;

    position: absolute;
    z-index: 10;

    top: 50%;
    transform: translateY(-50%);

    padding: 0;

    border: 1px solid #e0e3e7;
    border-radius: 50%;

    background: rgba(255,255,255,.97);

    color: #30343a;

    font-size: 26px;
    line-height: 1;

    box-shadow:
        0 5px 15px rgba(15,23,42,.10);

    cursor: pointer;
}

.mk-catalog-nav-arrow--prev {
    left: -19px;
}

.mk-catalog-nav-arrow--next {
    right: -19px;
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 1300px) {

    .mk-catalog-nav-arrow {
        display: flex;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .mk-catalog-nav-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .mk-catalog-nav-item {
        min-width: 220px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .mk-catalog-nav-section {
        padding:
            16px 0
            12px;
    }

    .mk-catalog-nav {
        gap: 9px;

        padding:
            2px 14px
            7px;
    }

    .mk-catalog-nav-item {
        min-width: auto;

        height: 48px;

        padding:
            0 15px;

        gap: 9px;

        border-radius: 7px;
    }

    .mk-catalog-nav-icon {
        width: 22px;
        height: 22px;

        min-width: 22px;
    }

    .mk-catalog-nav-icon svg {
        width: 20px;
        height: 20px;
    }

    .mk-catalog-nav-title {
        font-size: 10px;
    }

    .mk-catalog-nav-arrow {
        display: none !important;
    }

}
