.grecaptcha-badge {
    display: none !important;
}

.header__search .search__input {
    position: relative;
}

.clear-input {
    position: absolute;
    right: 20px;
    top: 45%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 35px;
    color: #999;
    display: none;
    cursor: pointer;
}

.clear-input.active {
    transform: scale(0.95);
    opacity: 0.8;
}

.spoiler {
    margin: 1rem 0;
}

.spoiler-content {
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-top: 5px;
}

.spoiler-toggle {
    background-color: #000;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin-top: 0.5rem;
}

.clear-input:hover {
    color: #333;
}

.input__field:not(:placeholder-shown)+.clear-input {
    display: block;
}

.detailed__block-price-old {
    margin-left: 2rem;
    position: relative;
    font-size: 3rem;
    font-weight: 600;
    line-height: 3rem;
    color: #a1a2a9;
}

/* .categories__wrap {
   display: unset !important;
} */
.categories__wrap-all {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 2rem;
    row-gap: 2rem;
    width: 100%;
}

@media(max-width:1280px) {
    .categories__wrap-all {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .categories__box-image {

        height: 10vw;

    }
}
@media(max-width:1024px) {
    .categories__wrap-all {
        grid-template-columns: 1fr 1fr;
    }

    .categories__box-image {
    height: 100%;
  }
}
@media(max-width:768px) {
    .categories__wrap-all {
        grid-template-columns: 1fr ;
    }
 .categories__box-image {
    height: 100%;
  }
    
}

.categories__box {
    display: grid;
    padding: 2.6rem;
    background-color: #eee;
    width: auto;
    grid-template-rows: auto 20rem;
    row-gap: 3rem;
}

.categories__box-image {
    padding: 1rem;
}

.categories__box-image img {
    height: 100%;
}

.detailed__block-price-old::after {
    content: "";
    position: absolute;
    top: 1rem;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: #a1a2a9;
    transform: rotate(9deg);
}

.portfolio-page-m {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 13.6rem;
    margin-right: 25.4rem;
    row-gap: 8.5rem;
    margin-bottom: 3.2rem;
}

.portfolio-m .pagination {
    margin-right: 25.4rem;
    align-items: center;
    justify-content: center;
}

/* .portfolio-block-m {
   display: grid;
   grid-auto-rows: 1fr auto;
} */
.portfolio-block-m-img {
    display: block;
    height: 22vw;
    max-height: 430px;
}

.portfolio-block-m-img img {
    object-fit: unset;
    height: 100%;
}

.portfolio-block-m-content {
    padding: 32px 0 0 0;
}

.portfolio-block-m-span {
    color: #000001;
    font-size: 1.8rem;
    font-weight: 400;
    display: block;
    background-color: #efefef;
    padding: 6px;
    width: fit-content;
    margin-bottom: 1.4rem;
}

.portfolio-block-m-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.3rem;
}

.portfolio-block-m-text {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.6rem;
}

.portfolio-block-m-button {
    color: #797979;
    font-size: 1.8rem;
    font-weight: 400;
    position: relative;
}

.categories__cards-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 2rem;
    row-gap: 2rem;
}

.categories__element {
    padding: 2.6rem;
    background-color: #eee;
    width: auto;
    position: relative;
}

.categories__input-card {
    display: grid;
    grid-template-rows: auto 30rem;
    row-gap: 3rem;
}

.categories__card-text {
    margin-bottom: unset;
}

.categories__card-img {
    padding: 1rem;
}

.categories__card-img img {
    height: 100%;
}

.home-page .categories__element::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #eee;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.home-page .categories__element:hover::after {
    opacity: 0;
    position: relative;
}

.portfolio-block-m-button::after {
    background: url(../images/portfolio_arrow.svg);
    position: absolute;
    width: 12px;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(10.5px);
    content: "";
}

.portfolio-block-m-button a {
    cursor: pointer;
}

@media (min-width: 769px) {
    .detailed__title {
        display: none;
    }
}

@media (max-width: 768px) {
    .fixTextBasket {
        display: none;
    }

    .categories__cards-main {
        grid-template-columns: 1fr;
    }

    .portfolio-page-m {
        grid-template-columns: 1fr;
        margin-right: unset;
    }

    .slide-logo-small {
        width: 150px !important;
        margin-right: 20px !important;
    }

    .portfolio-block-m-img {
        height: unset;
    }

    .portfolio-m .pagination {
        margin-right: unset;
    }

    .clear-input {
        font-size: 25px;
    }

    .header__logo-img {
        height: 15rem;
    }

    .detailed__title__info {
        display: none;
    }

    .brands__companies-logo {
        height: 20rem;
        max-width: 30rem;
    }
}

.table-order-account__group {
    display: flex;
    flex-direction: column;
}

.table-order-account__block {
    display: grid;
    grid-row-gap: 15px;
}

.table-order-account__name--group {
    font-size: 16px;
}

.table-order-account__name--main {
    font-size: 18px;
    font-weight: 700;
}

.table-order-account__name,
.product-card-horizontal__name {
    line-height: 1.25 !important;
}

.product-card-horizontal__name--group,
.product-card__name--group {
    font-size: 18px;
    margin-bottom: 3px;

    @media screen and (max-width: 599.98px) {
        font-size: 16px;
    }
}

.product-card-horizontal__name--main {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 0.4rem;

    @media screen and (max-width: 599.98px) {
        font-size: 18px;
    }
}

.product-card-horizontal__name--category {
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-card__name {
    line-height: 1.5 !important;
}

.product-card__name--main {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.catalog__filters-block:first-child .catalog__filters-slide-wrapper {
    @media screen and (max-width: 768px) {
        display: block !important;
        height: auto !important;
        overflow: inherit !important;
    }
}

.catalog__filters-block-title {
    @media screen and (max-width: 768px) {
        position: relative;
    }
}

.catalog__filters-block:first-child .catalog__filters-block-title::before {
    @media screen and (max-width: 768px) {
        content: none;
    }
}

.catalog__filters-block-title::before {
    @media screen and (max-width: 768px) {
        content: "";
        position: absolute;
        right: 0;
        clip-path: polygon(100% 0, 50% 100%, 0 0, 15% 0, 50% 75%, 85% 0);
        width: 20px;
        height: 10px;
        background-color: #000;
        transition: transform 0.15s;
        will-change: transform;
    }
}

.catalog__filters-block-title._is-active::before {
    @media screen and (max-width: 768px) {
        transform: rotate(180deg);
    }
}

.catalog__filters-block-item:not(:last-child) {
    @media screen and (max-width: 768px) {
        margin-bottom: 5px;
    }
}

.cookie-modal {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 6px 21px 0 rgba(0, 0, 0, 0.5);
    background: #fff;
    padding: 16px;
    z-index: 1000;
}

.cookie-modal__text {
    font-weight: 400;
    font-size: 16px;
    line-height: 137%;
    color: #000;
}

.cookie-modal__text a {
    color: #616161;
    display: block;
    margin-bottom: 12px;
}

.cookie-modal__text a:hover {
    text-decoration: underline;
}

.cookie-modal__buttons {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 13px;
}

.cookie-modal__btn {
    font-weight: 400;
    font-size: 16px;
    text-align: center;
    padding-top: 13px;
    padding-bottom: 11px;
    padding-left: 23px;
    padding-right: 23px;
    border: 1px solid transparent;
    transition: all 0.3s ease 0s;
}

.cookie-modal__btn_black {
    background: #000;
    color: #fff;
}

.cookie-modal__btn_black:hover {
    color: #000;
    background: #fff;
    border-color: #000;
}

.cookie-modal__btn_white {
    background: #fff;
    color: #000;
    border-color: #979797;
}

.cookie-modal__btn_white:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.checkbox._has-error {
    margin-bottom: 20px;
}

.checkbox._has-error::after {
    content: attr(data-hint);
    position: absolute;
    bottom: -2.3rem;
    left: 0;
    font-size: 1.2rem;
    color: #f40000;
}

.form__check .checkbox {
    display: flex;
}

.form__check .checkbox__txt {
    flex-wrap: wrap;
}

.form__check .checkbox__input {
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.checkbox__txt a:hover {
    text-decoration: underline;
}

.communication__contacts-top-form-bottom {
    align-items: flex-start;
    flex-direction: column;
}

.shopify-carousel__pagination,
.analogs__pagination {
    @media screen and (min-width: 769px) {
        display: none;
    }
}

.footer__nav-items {
    @media screen and (max-width: 1125px) and (min-width: 769px) {
        gap: 8rem;
    }
}

.checkbox__txt a {
    color: #616161;
    text-decoration: underline;
}

.checkbox__txt a:hover {
    color: #616161;
    text-decoration: none;
}

.checkbox-form {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: #000;
    position: relative;
}

.checkbox-form:not(:last-child) {
    margin-bottom: 6px;
}

.checkbox-form._has-error {
    margin-bottom: 22px;
}

.checkbox-form._has-error::after {
    content: attr(data-hint);
    position: absolute;
    bottom: -2.3rem;
    left: 0;
    font-size: 14px;
    color: #f40000;
}

.checkbox-form__input {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.checkbox-form__chunk {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    border: 1.5px solid #a1a2a9;
    transition: all 0.3s ease 0s;
    position: relative;
}

.checkbox-form__chunk::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%) scale(0);
    left: 50%;
    top: 50%;
    background: #000;
    transition: all 0.3s ease 0s;
}

.checkbox-form__input:checked+.checkbox-form__chunk::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-form__text {}

.checkbox-form__text a {
    color: #616161;
    text-decoration: underline;
}

.checkbox-form__text a:hover {
    text-decoration: none;
}

.catalog__cards .product-card {
    height: 100%;
}

.product-card__image {
    margin-top: 0;
}

.product-card__info {
    height: calc(100% - 35.4rem);
    display: flex;
    flex-direction: column;
}

.product-card__info-price {
    margin-top: auto;
}

@media (max-width: 48em) {
    .catalog__cards {
        display: grid;
        grid-template-columns: repeat(2, calc(50% - 1.6rem));
    }

    .product-card__info-price-text {
        font-size: 3rem;
    }

    .product-card__image {
        height: 29rem;
        margin-top: 0;
    }

    .catalog .pagination {
        grid-column: 1 / -1;
        /* Занимает всю строку */
    }
}

.commercial-offer__content {
    line-height: normal;
}

.commercial-offer__content .commercial-offer__head {
    margin-bottom: 40px;
}

.commercial-offer__wrapper {
    background: #efefef;
}

.commercial-offer__content .offer-item {
    padding-top: 26px;
    padding-left: 61px;
    padding-right: 54px;
    padding-bottom: 65px;
    margin-bottom: 12px;
}

.commercial-offer__content .offer-item .offer-item__product {
    display: flex;
    gap: 27px;
    align-items: center;
    margin-bottom: 28px;
}

.commercial-offer__content .offer-item .offer-item__product-image {
    width: 54px;
    height: 54px;
    min-width: 54px;
    min-height: 54px;
}

.commercial-offer__content .offer-item .offer-item__product-name {
    font-size: 21px;
    font-weight: 400;
    text-decoration: underline;
    line-height: normal;
}

.commercial-offer__content .offer-item .offer-item__desc {
    margin-bottom: 38px;
    align-items: baseline;
}

.commercial-offer__content .input__field--100 {
    width: 100%;
    grid-template-columns: 145px auto !important;
}

.commercial-offer__content .input_textarea textarea {
    resize: vertical;
    min-height: 6rem;
}

.commercial-offer__content .offer-item .offer-item__actions {
    display: flex;
    gap: 24px;
    margin-bottom: 23px;
    flex-wrap: wrap;
    row-gap: 10px;
}

.commercial-offer__content .offer-item .offer-item__action {
    text-decoration-line: underline;
    text-decoration-style: dashed;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: 3px;
    text-underline-position: from-font;
    cursor: pointer;
}

.commercial-offer__content .offer-item .offer-item__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 23px;
    margin-bottom: 30px;
    width: max-content;
}

.commercial-offer__content .offer-item__checkbox {
    position: relative;
    display: flex;
    align-items: center;
    user-select: none;
    cursor: pointer;
}

.commercial-offer__content .offer-item__checkbox input {
    display: none;
}

.commercial-offer__content .offer-item__checkbox input:checked+.checkboxLabel .checkboxIcon {
    background-color: #4c4c4c;
    border: none;
    box-shadow: none;
}

.commercial-offer__content .offer-item__checkbox input:checked+.checkboxLabel .checkboxIcon::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6.66697 10.1138L12.7952 3.9856L13.738 4.9284L6.66697 11.9994L2.42432 7.75685L3.36712 6.81405L6.66697 10.1138Z' fill='white'/%3E%3C/svg%3E");
}

.commercial-offer__content .offer-item__checkbox .checkboxLabel {
    display: flex;
    cursor: pointer;
    height: max-content;
}

.commercial-offer__content .offer-item__checkbox .checkboxIcon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.23);
    position: relative;
    margin-right: 12px;
    box-shadow:
        0px 2px 4px -1px rgba(0, 0, 0, 0.4),
        inset -1px 0px 0px 0px rgba(0, 0, 0, 0.16);
}

.commercial-offer__content .offer-item__fields {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.commercial-offer__content .offer-item__field {
    margin: 0;
    padding: 0;
    border: none;
}

.commercial-offer__content .offer-item__field .offer-item__field-additional {}

.commercial-offer__content .commercial-offer__col {
    display: grid;
    grid-template-columns: 145px max-content max-content;
    gap: 20px;
    align-items: center;
}

.commercial-offer__content .commercial-offer__total {
    padding-top: 39px;
    padding-left: 61px;
    padding-right: 54px;
    padding-bottom: 35px;
    margin-bottom: 12px;
    display: flex;
    column-gap: 90px;
    row-gap: 14px;
    flex-wrap: wrap;
}

.commercial-offer__content .offer-total__info {
    display: flex;
    column-gap: 34px;
    align-items: center;
}

.commercial-offer__content .offer-total__title {}

.commercial-offer__content .offer-total__text {
    font-weight: 700;
}

.commercial-offer__content .commercial-offer__bottom {
    padding-top: 32px;
    padding-left: 61px;
    padding-right: 54px;
    padding-bottom: 46px;
    margin-bottom: 26px;
}

@media (max-width: 48em) {
    .commercial-offer__content {
        font-size: 1.8rem;
    }

    .commercial-offer__content .btn_primary {
        padding: 1rem 3.2rem;
        height: 6rem;
    }

    .commercial-offer__content .input__field {
        padding: 1.8rem 2rem;
        height: 6rem;
    }

    .commercial-offer__content .input__field,
    .commercial-offer__content .input__field::placeholder {
        font-size: 1.6rem;
        line-height: 2.2rem;
    }

    .commercial-offer__content .offer-item {
        padding-top: 17px;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 44px;
    }

    .commercial-offer__content .commercial-offer__col {
        grid-template-columns: 1fr !important;
    }

    .commercial-offer__content .commercial-offer__total {
        padding-top: 29px;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 31px;
    }

    .commercial-offer__content .offer-total__info {
        display: grid;
        grid-template-columns: 2fr 1fr;
        justify-content: space-between;
        width: 90%;
    }

    .commercial-offer__content .commercial-offer__bottom {
        padding-top: 29px;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 44px;
    }
}

.form-order-account__input.input {
    grid-column: 1 / 1;
}

.form-order-account__input.input_textarea {
    grid-column: 2 / 2;
    grid-row: 1 / 5;
    height: 100%;
}

.form-order-account__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    row-gap: 20px;
}

.order-account__footer {
    align-items: baseline;
}

.order-account__footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: baseline;
}

.order-account__footer-col .order-account__summary-weight {
    margin-left: 0px;
}

.form-order-account__btn {
    min-width: 263px;
}

@media (max-width: 48em) {
    .order-account__footer-col {
        gap: 5px;
    }

    .order-account__footer-col .order-account__total {
        margin-top: 15px;
    }

    .order-account__pricing-info {
        order: 1;
    }

    .form-order-account__buttons {
        flex-direction: column;
    }

    .form-order-account__input.input_textarea {
        grid-row: 12 / 5;
        grid-column: 1;
    }

    .form-order-account__btn {
        min-width: auto;
    }
}