content .main_page_table .main_page_tr .main_page_td .cat_top_items div.to_cart {
    background: #aa292e;
    background-image: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    width: 100%;
    max-width: 185px;
    margin: 20px auto 10px;
}

.cat_top_items a {
    flex: 1 1 0%;
}

.is_avaliable.is_avaliable_y {
    color: #97ba00;
}

.is_avaliable {
    font-weight: 400;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: underline;
    gap: 5px;
    line-height: 1.2;
    color: #ff7a4e;
}

.is_avaliable::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: block;
    background: #ff7a4e;
}

.is_avaliable.is_avaliable_y::before {
    background: #97ba00;
}

.articul {
    text-align: center;
    margin: 3px 0;
}

.content .main_page_table .main_page_tr .main_page_td .cat_top_items div.name {
    position: static;
    margin: 5px auto;
}


.content .main_page_table .main_page_tr .main_page_td .cat_top_items div.photos {
    position: static;
    margin: 5px auto;
}

.cat_top_items .price_ {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.content .main_page_table .main_page_tr .main_page_td div.cat_top_items {
    flex: 0 0 calc(33% - 10px);
    width: auto;
    height: auto;
    margin: 0;
}

.content .main_page_table .main_page_tr .main_page_td .cat_top_items div.card_num_block {
    width: calc(100% + 4px);
    left: -2px;
    right: -2px;
}


.content .main_page_table .main_page_tr .main_page_td.left, .content .main_page_table .main_page_tr .main_page_td.left>:not(.cat_top_items) {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    row-gap: 10px;
    padding-right: 20px;
}

.content .main_page_table .main_page_tr .main_page_td.left .clear {
    display: none;
}

.content .main_page_table .main_page_tr .main_page_td div.cat_top_items {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: column;
    margin: 0;
}


body .right_block_for_content, .result_cat {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: start;
    align-items: stretch;
}

body .right_block_for_content .clear {
    display: none;
}

body .content .list_cat_top_items {
    margin: 0;
    width: auto;
    height: auto;
    flex: 0 0 calc(25% - 10px);
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

body .content .list_cat_top_items div.pic {
    width: 60%;
    height: auto;
    aspect-ratio: 1/1;
    position: static;
}

body .content .list_cat_top_items a:empty {
    display: none;
}

body .content .list_cat_top_items .name {
    position: static;
    width: auto;
    margin: 10px;
}


body .content .list_cat_top_items .to_cart {
    display: block;
    width: 100%;
    max-width: 90%;
    margin: 10px auto;
    background: #aa292e;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    border-radius: 6px;
}


body .content .list_cat_top_items .article {
    position: static;
    width: auto;
}

body .content .list_cat_top_items .price {
    position: static;
    height: auto;
    width: 100%
}

body .content .list_cat_top_items .to_cart {
    position: static;
    height: auto;
    padding: 8px 0;
    order: 2;
}

body .content .list_cat_top_items .card_num_block {
    bottom: -40px;
    width: calc(100% + 4px);
    background: #fff;
    left: -2px;
    right: 0;
    z-index: 10;
    border: 2px solid #aa292e;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    padding: 5px 10px 10px;
    height: auto;
    order: 2;
}

body .content .list_cat_top_items .card_num_block div.card_num {
    position: relative !important;
    margin: 0 auto;
}

body .content .list_cat_top_items .to_cart::before {
    content: 'В корзину';
    display: block;
    text-align: center;
}

body .content .list_cat_top_items .vendor {
    position: static;
    padding-left: 12px;
    width: 100%;
    order: 1;
}

body .content .list_cat_top_items:hover .vendor {
    display: block;
}

body .content .list_cat_top_items .to_cart.to_cart_text::before {
    display: none;
}

span.far [data-id="2382"], span.far [data-id="2380"] {
    display: none;
}

body .content .list_cat_top_items .photos {
    position: static;
}

.section_desc {
    flex: 0 0 100%;
}

.popup-fade {
    display: none;
}

.popup-fade:before {
    content: '';
    background: #000;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    z-index: 9999;
}

.popup {
    position: fixed;
    top: 20%;
    left: 50%;
    padding: 20px;
    width: 360px;
    margin-left: -200px;
    background: #fff;
    border: 1px solid orange;
    border-radius: 4px;
    z-index: 99999;
    opacity: 1;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
}


.order-popup-fade {
    display: none;
}

.order-popup-fade:before {
    content: '';
    background: #000;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
    z-index: 9999;
}

.order-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    padding: 20px;
    width: 360px;
    margin-left: -200px;
    background: #fff;
    border: 1px solid orange;
    border-radius: 4px;
    z-index: 99999;
    opacity: 1;
}

.order-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.content .main_page_table .main_page_tr .main_page_td .cat_top_items div.order-good {
    background: #aa292e;
    background-image: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    width: 100%;
    max-width: 185px;
    margin: 20px auto 10px;
}

.content .main_page_table .main_page_tr .main_page_td .cat_top_items .order-good {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 185px;
    height: 36px;
    margin-left: -92px;
    cursor: pointer;
    background-image: url(/bitrix/templates/adamant/img/to_cart.png);
}

.order-popup-header {
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 18px;
}

.order-popup-form__input {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    width: 100%;
    height: 48px;
    padding-left: 15px;
    margin-bottom: 10px;
    border: 2px solid #cbcbcb;
    border-radius: 5px;
}

.order-popup-form-row {
    display: flex;
    justify-content: center;
}

.order-popup-form-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    margin: 0 auto;
    background-color: #aa292e;
    border: 1px solid #aa292e;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    cursor: pointer;
}

.content .list_cat_top_items .order-good {
    position: absolute;
    bottom: 8px;
    left: 6px;
    width: 28px;
    height: 26px;
    margin-left: 0px;
    cursor: pointer;
    background-image: url(/bitrix/templates/adamant/img/to_cart_new.png);
    border-radius: 3px;
    background-size: 28px 26px;
}

.content .list_cat_top_items .order-good {
    position: absolute;
    bottom: 8px;
    left: 6px;
    width: 28px;
    height: 26px;
    margin-left: 0px;
    cursor: pointer;
    background-image: url(/bitrix/templates/adamant/img/to_cart_new.png);
    border-radius: 3px;
    background-size: 28px 26px;
}

body .content .list_cat_top_items .order-good {
    display: block;
    width: 100%;
    max-width: 90%;
    margin: 10px auto;
    background: #aa292e;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    border-radius: 6px;
}

body .content .list_cat_top_items .order-good::before {
    content: '';
    display: block;
    text-align: center;
}

body .content .list_cat_top_items .order-good {
    position: static;
    height: auto;
    padding: 8px 0;
    order: 2;
}

.content .td-order-good {
    position: relative;
    width: 44px;
    height: 36px;
    margin-left: 0px;
    cursor: pointer;
    background-image: url(/bitrix/templates/adamant/img/to_cart_new.png);
    border-radius: 3px;
    background-size: 44px 36px;
}

.content .card_block .detail-order-good {
    position: relative;
    margin-top: 20px;
    width: 220px;
    height: 44px;
    background-image: url(/bitrix/templates/adamant/img/to_cart_big-order.png);
    background-size: 220px 44px;
    cursor: pointer;
    z-index: 2;
}

.card_table .price_block {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-block {
    display: inline-flex;
    align-items: center;
}

.popup-cart__row {
    display: flex;
    justify-content: flex-end;
}

.popup-cart__link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    margin: 0;
    background-color: #aa292e;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
}

/*----- Карточка товара ----*/
.card {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: calc((100% - (var(--gap) * (var(--items) - 1))) / var(--items));
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    transition: box-shadow 0.3s;
}

.card:focus-visible {
    box-shadow: 0px 0px 10px 5px rgba(34, 60, 80, 0.2);
}

.card:hover {
    box-shadow: 0px 0px 10px 5px rgba(34, 60, 80, 0.2);
}

.card:active {
    box-shadow: 0px 0px 10px 5px rgba(34, 60, 80, 0.2);
}

.card__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 220px;
    margin-bottom: 5px;
}

.card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.card__name {
    align-self: flex-start;
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500px;
    font-size: 18px;
    line-height: 20px;
    color: #000;
}

.card__bottom {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.card__not-in-stock {
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
    line-height: 1;
    color: #ff7a4e;
}

/* .card__not-in-stock::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #ff7a4e;
    border-radius: 50%;
} */

.card__in-stock {
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 14px;
    line-height: 1;
    color: #97ba00;
}

/* .card__in-stock::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: #97ba00;
    border-radius: 50%;
} */

.card__article {
    margin-bottom: 10px;
    align-self: center;
    font-size: 14px;
    line-height: 1;
}

.card__price {
    margin-bottom: 10px;
    align-self: center;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
}

.card__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card__nums {
	position: relative;
    display: inline-flex;
    align-items: center;
	width: 109px;
	height: 27px;
	line-height: 27px;
	background: #9f9f9f;
	border-radius: 3px;
	background-image: url('/local/templates/adamant/img/num_.png');

}

.card__nums-value {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 52px;
	height: 27px;
	line-height: 27px;
	text-align: center;
	color: #000;
}

.card__nums-plus {
	position: absolute;
	top: 0px;
	right: 0px;
	width: 27px;
	height: 27px;
	line-height: 27px;
	cursor: pointer;
	z-index: 2;
}

.card__nums-minus {
	position: absolute;
	top: 0px;
	left: 54px;
	width: 27px;
	height: 27px;
	line-height: 27px;
	cursor: pointer;
	z-index: 2;
}

.card__add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 27px;
    padding: 0 16px;
    background-color: #aa292e;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: #fff;
}

.card__add-to-cart:focus {
    text-decoration: none;
    background-color: red;
    color: #fff;
}

.card__add-to-cart:focus-visible {
    text-decoration: none;
    background-color: red;
    color: #fff;
}

.card__add-to-cart:hover {
    text-decoration: none;
    background-color: red;
    color: #fff;
}

.card__add-to-cart:active {
    text-decoration: none;
    background-color: red;
    color: #fff;
}

.card__add-to-cart_in_cart {
    background-color: green !important;
}
/*----- Конец карточки товара ----*/

/*----- Карточка товара списком -----*/
.list-card {
    display: flex;
    height: 100px;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

.list-card:first-child {
    border-top: 1px solid #ccc;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.list-card:last-child {
    border-bottom: 1px solid #ccc;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.list-card__image-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    width: 100px;
    height: 100%;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.list-card:last-child .list-card__image-wrapper {
    border-bottom: none;
}

.list-card__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.list-card__name {
    display: inline-flex;
    align-items: center;
    width: 300px;
    height: 100%;
    padding: 10px;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    text-decoration: none;
    font-size: 18px;
    line-height: 20px;
}

.list-card:last-child .list-card__name {
    border-bottom: none;
}

.list-card__brand {
    display: inline-flex;
    align-items: center;
    width: 200px;
    height: 100%;
    padding: 10px;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    font-size: 18px;
    line-height: 20px;
}

.list-card:last-child .list-card__brand {
    border-bottom: none;
}

.list-card__in-stock {
    display: inline-flex;
    align-items: center;
    width: 150px;
    height: 100%;
    padding: 10px;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    font-weight: 600;
    font-size: 18px;
    line-height: 20px;
    color: #97ba00;
}

.list-card:last-child .list-card__in-stock {
    border-bottom: none;
}

.list-card__not-in-stock {
    display: inline-flex;
    align-items: center;
    width: 150px;
    height: 100%;
    padding: 10px;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    font-weight: 600;
    font-size: 18px;
    line-height: 20px;
    color: #ff7a4e;
}

.list-card:last-child .list-card__not-in-stock {
    border-bottom: none;
}

.list-card__price {
    display: inline-flex;
    align-items: center;
    width: 150px;
    height: 100%;
    padding: 10px;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    font-size: 18px;
    line-height: 20px;
}

.list-card:last-child .list-card__price {
    border-bottom: none;
}

.list-card__actions {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: calc(100% - 900px);
    height: 100%;
    border-bottom: 1px solid #ccc;
}

.list-card:last-child .list-card__actions {
    border-bottom: none;
}

.list-card__nums {
	position: relative;
    display: inline-flex;
    align-items: center;
	width: 109px;
	height: 27px;
	line-height: 27px;
	background: #9f9f9f;
	border-radius: 3px;
	background-image: url('/local/templates/adamant/img/num_.png');

}

.list-card__nums-value {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 52px;
	height: 27px;
	line-height: 27px;
	text-align: center;
	color: #000;
}

.list-card__nums-plus {
	position: absolute;
	top: 0px;
	right: 0px;
	width: 27px;
	height: 27px;
	line-height: 27px;
	cursor: pointer;
	z-index: 2;
}

.list-card__nums-minus {
	position: absolute;
	top: 0px;
	left: 54px;
	width: 27px;
	height: 27px;
	line-height: 27px;
	cursor: pointer;
	z-index: 2;
}

.list-card__add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 109px;
    height: 27px;
    padding: 0 16px;
    background-color: #aa292e;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: #fff;
}

.list-card__add-to-cart:focus {
    text-decoration: none;
    background-color: red;
    color: #fff;
}

.list-card__add-to-cart:focus-visible {
    text-decoration: none;
    background-color: red;
    color: #fff;
}

.list-card__add-to-cart:hover {
    text-decoration: none;
    background-color: red;
    color: #fff;
}

.list-card__add-to-cart:active {
    text-decoration: none;
    background-color: red;
    color: #fff;
}

.list-card__add-to-cart_in_cart {
    background-color: green !important;
}
/*----- Конец карточки товара списоком -----*/





.top-cart-quantity {
    z-index: 2;
    position: absolute;
    top: -12px;
    right: -12px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background-color: #000;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    color: #fff;
}

.top-cart-quantity_d_none {
    display: none;
}

.fast-order-modal.fancybox-content {
    max-width: 500px;
    border-radius: 16px;
}

.fast-order-modal__header {
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 24px;
    line-height: 28px;
}

.fast-order-modal__row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.fast-order-modal__img {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.fast-order-modal__right {
    display: flex;
    flex-direction: column;
    width: calc(100% - 170px);
}

.fast-order-modal__name {
    padding: 0;
    margin:  0 0 15px 0;
    font-weight: 600;
    font-size: 16px;
    line-height: 18px;
}

.fast-order-modal__price {
    padding: 0;
    margin: 0 0 15px 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
}

.fast-order-modal__quantity {
    padding: 0;
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
}

.fast-order-modal__bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.fast-order-modal__input {
    display: inline-flex;
    width: calc(100% - 150px);
    height: 40px;
    padding-left: 16px;
    border-radius: 6px;
    border: 1px solid #000;
}

.fast-order-modal__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 40px;
    padding: 0;
    margin: 0;
    background-color: #aa292e;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.fast-order-modal__submit:focus-visible {
    background-color: red;
}

.fast-order-modal__submit:hover {
    background-color: red;
}

.fast-order-modal__submit:active {
    background-color: red;
}

.fast-order-modal__result {
    display: block;
    text-align: center;
    padding-top: 10px;
    font-weight: 600;
    font-size: 18px;
    line-height: 20px;
}

.fast-order-modal__result_d_none {
    display: none;
}

.fast-order-modal__agree {
    margin: 0;
}

.catalog-section__price {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 27px;
    padding: 0 16px;
    background-color: #aa292e;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: #fff;
}

.catalog-section__price:focus-visible {
    text-decoration: none;
    background-color: red;
    color: #fff;
}

.catalog-section__price:hover {
    text-decoration: none;
    background-color: red;
    color: #fff;
}

.catalog-section__price:active {
    text-decoration: none;
    background-color: red;
    color: #fff;
}

.footer-bottom {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 1100px;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}

.footer-policy__link {
    color: #000;
}

.catalog-pagen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.cookie-agree {
    z-index: 999999999;
    position: fixed;
    bottom: 0;
    left: 0;
    display: none;
    width: 100%;
    height: auto;
    padding-top: 35px;
    padding-bottom: 35px;
    background-color: #aa292e;
}

.cookie-agree__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-agree__left {
    width: 80%;
    font-weight: 500;
    font-size: 11px;
    line-height: 16px;
    color: #fff;
}

.cookie-agree__left a {
    text-decoration: underline;
    color: #fff;
}

.cookie-agree__right {
    width: 20%;
    padding-left: 30px;
    text-align: left;
}

.cookie-agree__btn {
    cursor: pointer;
}

.fast-order__form-checkbox {
    margin-bottom: 20px;
}

.fast-order-modal__captcha-wrapper {
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .cookie-agree__row {
        flex-wrap: wrap;
    }

    .cookie-agree__left {
        width: 100%;
        margin-bottom: 20px;
    }

    .cookie-agree__right {
        width: 100%;
        padding-left: 0;
        text-align: left;
    }
}