.cart-table {
  display: grid;
  grid-template-columns: repeat(8, auto);
  /* grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr max-content; */
  gap: 0;
  padding: 20px 40px 40px;
  background-color: rgba(244, 244, 244, 0.5);
  border-radius: 15px;
}
.cart-row {
  display: grid;
  grid-column: span 8;
  grid-template-areas:
    "a b c i d e f g"
    "h h h h h h h h";
  grid-template-columns: subgrid;
  gap: 10px 24px;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid rgba(189, 189, 190, 0.4);
}
.cart-row--title {
  gap: 0 24px;
  padding-top: 0;
  color: #828282;
  border-bottom: 1px solid #bdbdbe;
}
.cart-row--title .cart-col {
  font-size: 18px;
}
.cart-col {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 20px;
}
.cart-col__img-box {
  grid-area: a;
}
.cart-col__img {
  display: block;
  width: auto;
  max-width: initial;
  height: 84px;
  border-radius: 10px;
}
.cart-col__name {
  grid-area: b;
}
.cart-col__kompl {
  grid-area: c;
}
.cart-col__have {
  grid-area: i;
}
.cart-col__price {
  grid-area: d;
}
.cart-col__quantity {
  grid-area: e;
}
.cart-col__amount {
  grid-area: f;
}
.cart-col__del {
  grid-area: g;
  justify-self: end;
}
.cart-col__del-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #0eb1d2;
  background-color: rgba(244, 244, 244, 0.5);
  border: 1px solid #0eb1d2;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.25s;
}
.cart-col__del-btn svg {
  display: block;
  width: auto;
  height: 24px;
}
.cart-col__del-btn:hover,
.cart-col__del-btn.active {
  color: #fff;
  background-color: #0eb1d2;
}
.cart-col__info {
  display: flex;
  grid-area: h;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  color: rgba(46, 47, 56, 0.8);
  background-color: #fff;
  border-radius: 8px;
}
.cart-col__info img {
  display: block;
  width: auto;
  height: 51px;
}
.cart-col__info span {
  color: #828282;
}
.quantity {
  display: flex;
  align-items: center;
  width: fit-content;
  overflow: hidden;
}
.quantity__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  color: #2e2f38;
  font-size: 20px;
  background-color: #fff;
  border: 0;
  border: 1px solid #bdbdbe;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.25s;
}
.quantity__button:hover {
  color: #0eb1d2;
  border: 1px solid #0eb1d2;
}
.quantity__input {
  /* Убираем стандартные стрелки input[type="number"] */
  width: 52px;
  height: 52px;
  padding: 0;
  color: #2e2f38;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  background-color: transparent;
  border: 0;
  appearance: textfield;
}
.quantity__input::-webkit-outer-spin-button,
.quantity__input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}
.cart-result {
  display: flex;
  grid-column: span 7;
  gap: 16px;
  align-items: baseline;
  justify-self: flex-end;
  margin-top: 20px;
}
.cart-result__name {
  color: #828282;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
}
.cart-result__value {
  color: #0eb1d2;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
}
.input-w100 {
  width: 100%;
}
.input-w50 {
  width: calc(50% - 10px);
}
.form-gap20 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.feedback-form__box.feedback-form__box {
  margin-top: 60px;
}
.feedback-form__title.feedback-form__title {
  width: 100%;
  margin: 0;
  color: #2e2f38;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
}
.feedback-form__checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.feedback-form__checkboxes.change__check-style {
  flex-direction: row;
}
.feedback-form__cart.feedback-form__cart input {
  height: 65px;
}
.cart-field {
  position: relative;
  display: flex;
  flex-direction: column;
}
.cart-field input,
.cart-field textarea {
  width: 100%;
}
.cart-field__count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  color: #9a9aa3;
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.cart-field.is-limit .cart-field__count {
  color: #ed1b24;
}
.header-cart {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-right: 35px;
  padding: 10px 24px;
  color: #fff;
  background-color: #0eb1d2;
  border-radius: 100px;
  cursor: pointer;
}
.header-cart__icon {
  display: block;
  width: auto;
  height: 32px;
}
.header-cart__count {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
}
.category-preview__actions.category-preview__actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-content: flex-start;
}
.category-preview__actions .category-preview__more {
  width: calc(50% - 4px);
}
.category-preview__actions .to-cart {
  gap: 8px;
  width: 100%;
}
.category-preview__status {
  width: 100%;
  max-width: 200px;
}
.category-preview__status .category-preview__item {
  align-items: baseline;
}
.category-preview__status
  .category-preview__item:nth-child(1)
  .category-preview__val {
  color: #0eb1d2;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.15;
}
.category-preview__status
  .category-preview__item:nth-child(2)
  .category-preview__val {
  color: #2e2f38;
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
}
.card-adv.card-adv {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 40px;
  @media screen and (max-width: 768px) {
    gap: 8px;
    margin-top: 40px;
  }
}
.card-adv.card-adv__col-3 {
  margin-top: 16px;
  margin-bottom: 20px;
  padding: 0;
}
.card-adv__light {
  .card-adv__img-box {
    background-color: #fff;
    border: 1px solid #0eb1d2;
    box-sizing: border-box;
  }
}
.card-adv__item {
  display: flex;
  flex-basis: calc(50% - 10px / 2);
  flex-grow: 1;
  flex-shrink: 0;
  gap: 15px;
  align-items: center;
  padding: 17px 20px;
  color: #2e2f38;
  font-weight: 400;
  font-size: 18px;
  line-height: normal;
  background-color: rgba(0, 174, 239, 0.04);
  border: 1px solid #00aeef;
  border-radius: 10px;
  @media screen and (max-width: 768px) {
    flex-basis: 100%;
    padding: 16px;
    font-size: 16px;
  }
}
.card-adv__col-3 .card-adv__item {
  flex-basis: calc(100% / 3 - 10px * 2 / 3);
  padding: 20px;
  background-color: rgba(244, 244, 244, 0.5);
  border: none;
  border-radius: 10px;
  @media screen and (max-width: 992px) {
    flex-basis: calc(50% - 10px / 2);
  }
  @media screen and (max-width: 768px) {
    flex-basis: 100%;
    padding: 16px;
  }
}
.card-adv__img-box {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #00aeef;
  border-radius: 50%;
  @media screen and (max-width: 768px) {
    width: 40px;
    height: 40px;
  }
}
.card-adv__icon {
  display: block;
  width: auto;
  height: 24px;
  @media screen and (max-width: 768px) {
    height: 20px;
  }
}
@media screen and (max-width: 1740px) {
  .category-preview__wrapper-info {
    flex-direction: column;
    gap: 10px;
  }
}
@media screen and (max-width: 1700px) {
  .header-cart {
    margin-right: 18px;
    padding: 5px 14px;
  }
  .header-cart + .search-block {
    margin-right: 18px;
  }
  .header-cart__icon {
    height: 24px;
  }
  .header-cart + .search-block .search-block__opener,
  .headerMenuBurger.headerMenuBurger span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
  }
}
@media (max-width: 1500px) {
  .headerMenuBurger.headerMenuBurger {
    display: block;
  }
  .headerNew .search-block.search-block {
    position: static;
    margin-right: 15px;
  }
  .headerMenu.headerMenu {
    flex-grow: 0;
    order: 1;
    margin: 0;
  }
  .headerMenuWrapper.headerMenuWrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: none;
    margin: auto;
    background-color: rgba(195, 195, 195, 0.8);
  }
  .headerMenuUl.headerMenuUl {
    display: block;
    width: 100%;
    overflow-y: auto;
  }
  .headerMenuUl.headerMenuUl > li {
    position: static;
    margin-bottom: 40px;
  }
  .headerMenuUl.headerMenuUl > li ul {
    position: static;
    flex-direction: column;
    margin-top: 20px;
    padding: 0;
    padding-left: 60px;
    color: #2e2f38;
    background: none;
    border: none;
    border-radius: 0;
    visibility: visible;
    opacity: 1;
  }
  .headerMenuUl.headerMenuUl > li ul li {
    margin-bottom: 0;
    white-space: nowrap;
  }
  .headerMenuUl.headerMenuUl > li ul li a {
    margin-bottom: 20px;
    padding: 0;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.5;
    border: none;
  }
  .headerMenuUl.headerMenuUl > li {
    position: static;
    margin-bottom: 40px;
  }
  .text-accardeon.text-accardeon {
    display: flex;
    justify-content: space-between;
    font-size: 26px;
  }
  .headerMenuUl.headerMenuUl > li a,
  .headerMenuUl.headerMenuUl > li span {
    display: block;
    padding: 0;
    font-weight: 500;
    font-size: 26px;
    border: none;
  }
  .headerMenuUl.headerMenuUl > li a,
  .headerMenuUl.headerMenuUl > li span {
    display: block;
    padding: 0;
    font-weight: 500;
    font-size: 26px;
    border: none;
  }
  .headerMenuUl.headerMenuUl > li ul {
    position: static;
    flex-direction: column;
    margin-top: 20px;
    padding: 0;
    padding-left: 60px;
    color: #2e2f38;
    background: none;
    border: none;
    border-radius: 0;
    visibility: visible;
    opacity: 1;
  }
  .headerContacts.headerContacts {
    gap: 4px;
    order: -1;
    margin-right: 15px;
  }
  .headerLogo.headerLogo {
    flex-grow: 1;
    order: -1;
  }
  .headerTopWrapper.headerTopWrapper {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .headerNew .search-block__opener.search-block__opener {
    border-color: #30355d;
  }
  .search-block__opener.search-block__opener {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border: 2px solid #fff;
    border-radius: 13px;
  }
  .headerNew.headerNew .search-block__opener svg path {
    fill: #30355d;
    stroke: #30355d;
  }
}
@media screen and (max-width: 1400px) {
  .cart-row:not(:has(.cart-col__info)) .cart-col__name {
    margin-top: -16px;
  }
  .cart-col {
    display: flex;
    gap: 16px;
    align-items: baseline;
    justify-content: space-between;
  }
  .cart-col::before {
    color: #828282;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
  }
  .cart-col__name::before {
    content: "Наименование";
  }
  .cart-col__kompl::before {
    content: "Комплектация";
  }
  .cart-col__have::before {
    content: "Наличие";
  }
  .cart-col__price::before {
    content: "Цена";
  }
  .cart-col__amount::before {
    content: "Сумма";
  }
  .cart-table {
    grid-template-columns: 1fr auto;
    padding: 0 20px 20px 20px;
  }
  .cart-row {
    grid-column: span 2;
    grid-template-areas:
      "a g"
      "h h"
      "b b"
      "c c"
      "i i"
      "d d"
      "e e"
      "f f";
    gap: 16px 24px;
  }
  .cart-row--title {
    display: none;
  }
  .cart-result {
    grid-column: span 2;
  }
  .cart-row--title .cart-col {
    font-size: 16px;
  }
  .cart-col {
    font-size: 18px;
    text-align: right;
  }
  .cart-col__info {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
  }
  .cart-col__info span {
    order: -1;
  }
  .cart-col__quantity {
    justify-content: flex-end;
    margin: 8px 0;
  }
  .cart-result__name {
    font-size: 20px;
  }
  .cart-result__value {
    font-size: 24px;
  }
}
@media screen and (max-width: 1200px) {
  .category-preview__status {
    max-width: 100%;
  }
}
@media screen and (max-width: 992px) {
  .input-w50 {
    width: 100%;
  }
  .category-preview__status
    .category-preview__item:nth-child(2)
    .category-preview__val {
    font-size: 20px;
  }
}
@media screen and (max-width: 768px) {
  .form-gap20 {
    gap: 16px;
  }
  .form-gap20 .cart-field + .cart-field {
    margin-top: -8px;
  }
  .form-gap20 textarea,
  .form-gap20 .cart-field textarea {
    min-height: 140px;
  }
  .feedback-form__cart.feedback-form__cart input {
    height: 56px;
  }
  .feedback-form__box {
    margin-top: 60px;
  }
  .cart-table {
    padding: 0 16px 16px 16px;
  }
  .cart-result {
    justify-content: space-between;
    justify-self: auto;
  }
}
@media (max-width: 767px) {
  .headerContacts.headerContacts a {
    width: 36px;
    height: 36px;
  }
  .headerContacts.headerContacts {
    order: 0;
  }
}
@media (max-width: 540px) {
  .category-previews__items.category-previews__items {
    grid-template-columns: 1fr;
  }
}
.card-descr__buttons {
  flex-wrap: wrap;
  flex-direction: row;

  .card-descr__order,
  .card-descr__download {
    gap: 8px;
    max-width: initial;
  }

  a,
  button {
    width: 100%;
  }

  .w50 {
    width: calc(50% - 10px / 2);
  }
}

.card__present {
  @media screen and (max-width: 1600px) {
    grid-template-columns: 1fr auto;
  }
  @media screen and (max-width: 1060px) {
    grid-template-columns: minmax(0, 1fr);
  }
  .card__descr.card__descr {
    grid-row: span 2;
    @media screen and (max-width: 1600px) {
      padding-right: 0;
      max-width: 420px;
    }
    @media screen and (max-width: 1060px) {
      max-width: initial;
    }
  }
}
.card__info.card__info {
  @media screen and (max-width: 768px) {
    max-width: 100%;
  }
}

.card-efficiency {
  margin-top: 20px;
  margin-bottom: 48px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 10px;
  background-color: #f9f9f9;

  @media screen and (max-width: 768px) {
    margin-bottom: 44px;
    padding: 16px 24px;
    gap: 16px;
  }
}
.card-efficiency__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  text-align: center;
  color: #2e2f38;

  @media screen and (max-width: 768px) {
    font-size: 20px;
    line-height: 1.2;
  }
}
.card-efficiency .card-descr__download {
  width: 100%;
  max-width: none;
}
.card-dopinfo {
  margin-top: 44px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.card-dopinfo__available {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.31429;
  color: #828282;

  @media screen and (max-width: 768px) {
    font-size: 14px;
  }
}
.card-dopinfo__available--akcent {
  font-weight: 500;
  color: #0eb1d2;
}
.card-dopinfo__price {
  font-weight: 500;
  font-size: 32px;
  line-height: 1.15;
  color: #2e2f38;

  @media screen and (max-width: 768px) {
    font-size: 24px;
    align-items: baseline;
  }
}
.cd-features {
  margin-bottom: -10px;
  padding: 10px 16px 20px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.15;
  color: #828282;
  background-color: #f9f9f9;
  border-radius: 10px;

  @media screen and (max-width: 768px) {
    font-size: 14px;
  }
}
.text-select {
  --text-select-color: #0eb1d2;
  --text-select-bg: #fff;
  --text-select-bg-active: #f6f6f6;

  position: relative;
}

.text-select__active {
  border: 0;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  color: var(--text-select-color);
  background-color: var(--text-select-bg);
  border-radius: 8px;
  cursor: pointer;

  &::after {
    display: inline-block;
    content: "";
    border-top: 6px solid var(--text-select-color);
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    transition: transform 0.25s;
  }

  &.toggle {
    &::after {
      transform: rotate(180deg);
    }
  }
}

.text-select__list {
  display: none;
  padding: 2px 0;
  overflow: hidden;
  background-color: var(--text-select-bg);
  border-radius: 8px;
}

.text-select__active.toggle + .text-select__list {
  position: absolute;
  z-index: 1;
  top: calc(100% + 8px);
  left: 0;
  display: inline-flex;
  flex-direction: column;
}

.text-select__item {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  padding: 4px 12px;
  color: #2e2f38;
  text-wrap: nowrap;
  transition: color 0.25s, background-color 0.25s;

  &:hover {
    color: var(--text-select-color);
    cursor: pointer;
  }

  &.active {
    color: #c0c0c0;
    background-color: var(--text-select-bg-active);
    opacity: 0.8;
    cursor: default;
  }
}
.empty-cart {
  margin-bottom: 50px;
  padding: 60px 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  border-radius: 15px;
  background-color: #f9f9f9;
}
.empty-cart__title {
  font-weight: 500;
  font-size: 28px;
  color: #2e2f38;
  text-align: center;

  @media screen and (max-width: 768px) {
    font-size: 20px;
  }
}
.empty-cart__btn {
  padding: 23px 32px;
  font-family: inherit;
  line-height: 1.15;
  margin: 0;
  background-color: transparent;
  border: 2px solid #30355d;
  border-radius: 15px;
  color: #30355d;
  cursor: pointer;
  font-weight: 400;
  font-size: 18px;
  transition: all .25s;

  &:hover {
    border-color: #0eb1d2 !important;
    color: #0eb1d2;
  }

  @media screen and (max-width: 768px) {
      padding: 16px 24px;
  }
}

.js-cart-rows {
  display: contents;
}

.cart-page.is-empty .cart-table,
.cart-page.is-empty:not(.is-order-success) .feedback-form__box {
  display: none;
}

.cart-page.is-filled .empty-cart {
  display: none;
}

.header-cart__count:empty,
.header-cart__count[hidden] {
  display: none;
}

.cart-col__name a {
  color: inherit;
  text-decoration: none;
}

.cart-col__name a:hover {
  color: #0eb1d2;
}

.cart-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  max-width: 320px;
  padding: 14px 18px;
  color: #fff;
  background: #0eb1d2;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(14, 177, 210, 0.28);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cart-success {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cart-success[hidden] {
  display: none;
}

.cart-success__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(46, 47, 56, 0.6);
  border: 0;
  cursor: pointer;
}

.cart-success__dialog {
  position: relative;
  width: min(100%, 520px);
  padding: 40px;
  color: #2e2f38;
  text-align: center;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 16px 48px rgba(46, 47, 56, 0.24);
}

.cart-success__close {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 4px 8px;
  color: #828282;
  font-size: 32px;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.cart-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: #fff;
  font-size: 36px;
  background: #0eb1d2;
  border-radius: 50%;
}

.cart-success__title {
  margin: 0 0 16px;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.2;
}

.cart-success__order,
.cart-success__text {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.4;
}

.cart-success__order strong {
  color: #0eb1d2;
}

.cart-success__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  margin-bottom: 24px;
}

.cart-success__contacts a {
  color: #0eb1d2;
  font-size: 18px;
}

.cart-success__button {
  min-width: 160px;
  padding: 14px 24px;
  color: #fff;
  font-size: 18px;
  background: #0eb1d2;
  border: 1px solid #0eb1d2;
  border-radius: 15px;
  cursor: pointer;
}

@media screen and (max-width: 540px) {
  .cart-success {
    padding: 16px;
  }

  .cart-success__dialog {
    padding: 32px 20px 24px;
  }

  .cart-success__title {
    font-size: 24px;
  }
}
