.box_new-card {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 0;
}

/* Базовый стиль для карточек — мобильная версия: 1 колонка */
.box_new-card .new-card-cat,
.box_new-card .new-card-cat-device {
    flex: 0 0 100%;
    box-sizing: border-box;
}

/* От 768px — две колонки */
@media (min-width: 768px) {

    .box_new-card .new-card-cat,
    .box_new-card .new-card-cat-device {
        flex-basis: 50%;
    }
}

/* От 992px — четыре колонки (исправлено с 25% на 33.333% если нужно 3 колонки) */
@media (min-width: 992px) {

    .box_new-card .new-card-cat,
    .box_new-card .new-card-cat-device {
        flex-basis: 25%;
    }

    .box_new-card .new-card-cat-device {
        flex-basis: 25%;
    }
}

/* Базовые стили карточки */
.new-card-cat,
.new-card-cat-device {
    position: relative;
}

.new-card-cat .text,
.new-card-cat-device .text {
    height: 80px;
}

.new-card-cat .text a,
.new-card-cat-device .text a {
    color: #666;
    font-size: 22px;
    line-height: 120%;
    font-weight: 600;
}

.new-card-cat .text a:hover,
.new-card-cat-device .text a:hover {
    color: var(--color_brand);
}

.bg-card {
    background-color: #f3f3f3;
    padding: 32px 28px;
    height: 100%;
    width: 100%;
    border-radius: 20px;
    height: 286px;
    position: relative;
}

.bg-card:hover {
    border: 1px solid #7f8081;
}

.card-name {
    font-size: 20px;
    font-weight: 600;
}

.new-card-cat .content,
.new-card-cat-device .content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: 100%;
}

.new-card-cat .content .left,
.new-card-cat-device .content .left {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 16px;
}

.new-card-cat .content .left .li-div,
.new-card-cat-device .content .left .li-div {
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    text-decoration: underline;
    text-decoration-style: solid;
    position: relative;
}

.new-card-cat .content .left .li-div:hover,
.new-card-cat-device .content .left .li-div:hover {
    text-decoration: none;
    cursor: pointer;
}

.new-card-cat .content .right,
.new-card-cat-device .content .right {
    position: relative;
    max-height: 172px;
    overflow: hidden;
    right: -14px;
}

.new-card-cat .content .right img,
.new-card-cat-device .content .right img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    margin: 30px 0 0 0;
    max-width: 100%;
}

/* Стили для выпадающего меню */
.card-menu {
    display: none;
    position: absolute;
    top: 100%;
    background-color: white;
    padding: 24px;
    border-radius: 6px;
    z-index: 5;
    box-shadow: 0px 0px 10px 0px #00000033;
    max-height: 300px;
    overflow-y: auto;
}

.card-menu::-webkit-scrollbar {
    width: 4px;
}

.card-menu::-webkit-scrollbar-track {
    background: transparent;
}

.card-menu::-webkit-scrollbar-thumb {
    background-color: var(--color_brand);
    border-radius: 4px;
}

.card-menu::-webkit-scrollbar-thumb:hover {
    background-color: darken(var(--color_brand), 10%);
}

.li-div:hover .card-menu {
    display: block;
}

.poligon {
    position: absolute;
    top: -10px;
    width: 32px;
    height: 32px;
    left: 30px;
}

.card-menu ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.li-line {
    display: flex;
    width: 200px;
    font-family: Roboto;
    font-weight: 400;
    font-size: 18px;
    text-decoration: underline;
    text-decoration-style: solid;
}

.li-line:hover {
    text-decoration: none;
}

.triangle {
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    border-radius: 4px;
    position: absolute;
    top: -14px;
    left: 63px;
}

/* Псевдоэлементы для заголовков */
.title-before-1::before {
    content: "Услуги";
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    text-decoration: underline;
    text-decoration-style: solid;
    position: relative;
}

.title-before-2::before {
    content: "Модели";
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    text-decoration: underline;
    text-decoration-style: solid;
    position: relative;
}

/* Медиа-запросы для адаптива */
@media (max-width: 992px) {
    .bg-card {
        padding: 12px;
        height: 190px;
    }

    .new-card-cat .content .right,
    .new-card-cat-device .content .right {
        right: 0px;
        top: 0;
        max-height: 128px;
    }

    .new-card-cat .text,
    .new-card-cat-device .text {
        height: 50px;
    }

    .new-card-cat .text a,
    .new-card-cat-device .text a {
        font-size: 22px;
    }

    .new-card-cat .content .right img,
    .new-card-cat-device .content .right img {
        margin-top: 0;
        width: 100%;
        object-fit: contain;
    }

    .new-card-cat .content .left,
    .new-card-cat-device .content .left {
        padding-top: 16px;
    }

    .new-card-cat .content .left .li-div,
    .new-card-cat-device .content .left .li-div {
        font-size: 16px;
    }
}

/* Стили для консультационного баннера */
:root {
    --cbg: #ff6a00;
    --ctext: #ffffff;
    --caccent: #ffe9bf;
    --cbtn-border: #ffffff;
}

.consult-banner {
    background: var(--color_brand);
    color: var(--ctext);
    padding: 24px 32px;
    border-radius: 16px;
}

.consult-banner__inner {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.consult-banner__title {
    margin: 0 0 0px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: white;
}

.consult-banner__accent {
    font-style: italic;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    color: var(--caccent);
    white-space: nowrap;
}

.consult-banner__accent i[tooltip] {
    border-bottom: none;
}

.consult-banner__bottom {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

a.consult-banner__phone-number {
    color: white;
    font-size: 22px;
    font-weight: 700;
    transition: all 0.3s;
}

a.consult-banner__phone-number:hover {
    color: #282828;
}

.consult-banner__btn {
    padding: 12px 28px;
    border-radius: 4px;
    border: 2px solid var(--cbtn-border);
    background: transparent;
    color: var(--ctext);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.consult-banner__btn:hover {
    background: #ffffff;
    color: var(--color_brand);
}

.consult-banner__left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.consult-banner__right {
    flex-shrink: 0;
}

.consult-banner__icon {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 2px solid #ffe9bf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    position: relative;
}

/* Стили для таблицы услуг */
.service-table {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 20px;
}

.service-table__item {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid #e3e5eb;
    background-color: #ffffff;
    color: #111827;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.service-table__icon {
    font-size: 20px;
    flex-shrink: 0;
}

.service-table__title {
    font-weight: 600;
    font-size: 17px;
}

.service-table__info {
    margin-left: auto;
    font-size: 18px;
    color: #6b7280;
}

.service-table__info--accent {
    color: var(--color_brand);
    font-weight: 500;
}

/* Общие медиа-запросы */
@media (max-width: 1399px) {
    .consult-banner__left {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .service-table {
        gap: 12px;
    }

    .service-table__item {
        flex: 1 1 calc(50% - 12px);
        padding: 14px 18px;
    }
}

@media (max-width: 992px) {
    .consult-banner__title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .consult-banner {
        padding: 20px 16px;
    }

    .consult-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .consult-banner__title {
        font-size: 18px;
    }

    .consult-banner__phone-number {
        font-size: 20px;
    }

    .consult-banner__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .consult-banner__btn {
        width: 100%;
        text-align: center;
    }

    .consult-banner__right {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .consult-banner__phone {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .service-table {
        flex-direction: column;
    }

    .service-table__item {
        flex: 1 1 100%;
        padding: 12px 16px;
    }

    .service-table__title {
        font-size: 15px;
    }

    .service-table__info {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .consult-banner__title {
        font-size: 16px;
    }

    .consult-banner__phone-number {
        font-size: 18px;
    }
}