@font-face {
  font-family: "Ubuntu";
  src: url("../assets/fonts/Ubuntu/Ubuntu-Light.woff2");
  font-weight: 300;
}

@font-face {
  font-family: "Ubuntu";
  src: url("../assets/fonts/Ubuntu/Ubuntu-Regular.woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Ubuntu";
  src: url("../assets/fonts/Ubuntu/Ubuntu-Medium.woff2");
  font-weight: 500;
}

@font-face {
  font-family: "Ubuntu";
  src: url("../assets/fonts/Ubuntu/Ubuntu-Bold.woff2");
  font-weight: 700;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.full-wrapper {
  margin: 0 auto;
  position: relative;
  max-width: 1170px;
  min-width: 320px;
  padding: 0 15px;
}

.promo-badge {
  padding: 7px 17px;
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.promo-badge--violent {
  background-color: var(--violent);
}

.promo-badge--red {
  background-color: var(--red);
}

.promo-badge--green {
  background-color: var(--green);
}

.promo-badge--blue {
  background-color: var(--main);
}

.catlog-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.catlog-categories-item {
  position: relative;
  height: 280px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
}

.catlog-categories-item__header {
  position: absolute;
  top: 20px;
  left: 20px;
}

.catlog-categories-item__title {
  margin-bottom: 4px;
  color: var(--text);
  font-family: var(--font-family-primary);
  font-size: 33px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.catlog-categories-item__note {
  color: var(--text);
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

.catlog-categories-item__link {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 14px 20px;
  border-radius: 8px;
  background-color: var(--main);
  color: var(--white);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none;
}

.catlog-categories .promo-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.product-card-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-card-item {
  display: flex;
  flex-direction: column;
  min-height: 550px;
  border-radius: 20px;
  background-color: var(--white);
}

.product-card-item:has(.product-card-item__img-wrap:hover) .product-card-item__title {
  color: var(--main);
}

.product-card-item:has(.product-card-item__img-wrap:hover) .product-card-item__arrow path {
  stroke: var(--main);
}

.product-card-item__img-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.product-card-item__img-wrap .promo-badge {
  position: absolute;
  top: 15px;
  left: 15px;
}

.product-card-item__img {
  max-width: 100%;
  max-height: 100%;
}

.product-card-item__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
  padding: 15px;
}

.product-card-item__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grey-light);
  text-decoration: none;
}

.product-card-item__link:hover .product-card-item__title {
  color: var(--main);
}

.product-card-item__link:hover .product-card-item__arrow path {
  stroke: var(--main);
}

.product-card-item__title {
  color: var(--text);
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
  transition: var(--transition-primary);
}

.product-card-item__arrow {
  flex-shrink: 0;
}

.product-card-item__arrow path {
  transition: var(--transition-primary);
}

.product-card-item__amount {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--grey-light);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
  text-transform: uppercase;
}

.product-card-item__amount-icon {
  flex-shrink: 0;
}

.product-card-item__descr {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card-item__descr-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--grey-stroke);
}

.product-card-item__descr-title {
  max-width: 100px;
  flex-shrink: 0;
  color: var(--grey-light);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
}

.product-card-item__descr-value {
  text-align: right;
  color: var(--text);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
}

.product-card-item__info-bottom:has(.product-card-item__counter.active) .product-card-item__cart-btn {
  width: 70px;
}

.product-card-item__info-bottom:has(.product-card-item__counter.active) .product-card-item__counter {
  display: flex;
}

.product-card-item__info-bottom:has(.product-card-item__counter.active) .product-card-item__total {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.product-card-item__total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition-primary);
}

.product-card-item__total-title {
  color: var(--text);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}

.product-card-item__total-elem {
  color: var(--text);
  font-family: var(--font-family-primary);
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
}

.product-card-item__controls {
  display: flex;
  gap: 10px;
}

.product-card-item__cart-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: var(--main);
  width: 100%;
  cursor: pointer;
}

.product-card-item__counter {
  flex-grow: 1;
  display: none;
  border-radius: 8px;
  border: 1px solid var(--grey-stroke);
}

.product-card-item__counter-elem {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  color: var(--grey);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}

.product-card-item__counter-elem input[type=number]::-webkit-outer-spin-button,
.product-card-item__counter-elem input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.product-card-item__counter-elem input[type=number],
.product-card-item__counter-elem input[type=number]:hover,
.product-card-item__counter-elem input[type=number]:focus {
  appearance: none;
  -moz-appearance: textfield;
}

.product-card-item__counter-input {
  width: 34px;
  text-align: center;
  color: var(--text);
  font-family: var(--font-family-primary);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
}

.product-card-item__counter-btns {
  border-left: 1px solid var(--grey-stroke);
}

.product-card-item__counter-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  padding: 5px;
  background-color: transparent;
  cursor: pointer;
}

.product-card-item__counter-btn:first-child {
  border-bottom: 1px solid var(--grey-stroke);
}

.product-detail-info {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.product-detail-swiper {
  flex-grow: 0;
  display: flex;
  gap: 10px;
  width: 63%;
  height: 530px;
}

.product-detail-swiper__gallery .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
}

.product-detail-swiper__gallery .swiper-slide .product-detail-swiper__img {
  max-height: 100%;
  max-width: 100%;
}

.product-detail-swiper__gallery .promo-badge {
  position: absolute;
  top: 20px;
  left: 20px;
}

.product-detail-swiper__thumbs {
  flex-shrink: 0;
  width: 85px;
}

.product-detail-swiper__thumbs .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 2px solid transparent;
}

.product-detail-swiper__thumbs .swiper-slide-thumb-active {
  border: 2px solid var(--main);
}

.product-detail-swiper__thumbs .product-detail-swiper__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 20px;
  transition: var(--transition-primary);
}

.product-detail-descr {
  display: flex;
  flex-direction: column;
  max-width: 400px;
}

.product-detail-descr__title {
  margin-bottom: 20px;
  color: var(--text);
  font-family: var(--font-family-primary);
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
}

.product-detail-descr__download-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: max-content;
  margin-bottom: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 2px solid var(--main);
  color: var(--main);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  text-decoration: none;
}

.product-detail-descr__characteristics {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
  list-style: none;
}

.product-detail-descr__characteristics-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--grey-stroke);
}

.product-detail-descr__characteristics-title {
  flex-shrink: 0;
  max-width: 150px;
  color: var(--grey-light);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
}

.product-detail-descr__characteristics-value {
  flex-shrink: 0;
  text-align: right;
  max-width: 160px;
  color: var(--text);
  text-align: right;
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}

.product-detail-descr__box {
  padding: 20px;
  border-radius: 20px;
  background-color: var(--white);
  box-shadow: 0 0 30px 4px rgba(0, 0, 0, 0.05);
}

.product-detail-descr__note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  padding-left: 8px;
  color: var(--grey-light);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
  text-transform: uppercase;
}

.product-detail-descr__list {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin-bottom: 20px;
}

.product-detail-descr__item {
  padding: 5px 8px 0;
  border-radius: 7px;
}

.product-detail-descr__item-wrap {
  display: flex;
  justify-content: space-between;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--grey-stroke);
}

.product-detail-descr__item-title {
  color: var(--grey-light);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
}

.product-detail-descr__item-value {
  color: var(--text);
  text-align: right;
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
}

.product-detail-descr__bottom:has(.product-detail-descr__counter.active) .product-detail-descr__cart-btn {
  width: 175px;
}

.product-detail-descr__bottom:has(.product-detail-descr__counter.active) .product-detail-descr__counter {
  display: flex;
}

.product-detail-descr__bottom:has(.product-detail-descr__counter.active) .product-detail-descr__total {
  display: flex;
}

.product-detail-descr__total {
  display: none;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 10px;
}

.product-detail-descr__total-title {
  color: var(--text);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}

.product-detail-descr__total-elem {
  color: var(--text);
  font-family: var(--font-family-primary);
  font-size: 28px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
}

.product-detail-descr__controls {
  display: flex;
  gap: 10px;
}

.product-detail-descr__cart-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 22px;
  border-radius: 8px;
  background-color: var(--main);
  color: var(--white);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  cursor: pointer;
}

.product-detail-descr__counter {
  flex-grow: 1;
  display: none;
  border-radius: 8px;
  border: 1px solid var(--grey-stroke);
}

.product-detail-descr__counter-elem {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  color: var(--grey);
  font-family: var(--font-family-primary);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}

.product-detail-descr__counter-elem input[type=number]::-webkit-outer-spin-button,
.product-detail-descr__counter-elem input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.product-detail-descr__counter-elem input[type=number],
.product-detail-descr__counter-elem input[type=number]:hover,
.product-detail-descr__counter-elem input[type=number]:focus {
  appearance: none;
  -moz-appearance: textfield;
}

.product-detail-descr__counter-input {
  width: 34px;
  text-align: center;
  color: var(--text);
  font-family: var(--font-family-primary);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
}

.product-detail-descr__counter-btns {
  border-left: 1px solid var(--grey-stroke);
}

.product-detail-descr__counter-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  padding: 5px;
  background-color: transparent;
  cursor: pointer;
}

.product-detail-descr__counter-btn:first-child {
  border-bottom: 1px solid var(--grey-stroke);
}

:root {
  --black: #000;
  --white: #ffffff;
  --text: #232a2f;
  --main: #388de6;
  --grey: #848484;
  --grey-light: #b0bec5;
  --grey-bg: #eff4f9;
  --grey-stroke: #e1e5eb;
  --red: #d54c4a;
  --violent: #7845e5;
  --green: #18d18d;
  --font-family-primary: "Ubuntu", sans-serif;
  --font-size-primary: 16px;
  --title-fs: 64px;
  --subtitle-fs: 24px;
  --header-height: 104px;
  --title-mb: 40px;
  --subtitle-mb: 24px;
  --section-indent: 100px 0;
  --transition-primary: 0.3s ease-in-out;
  --transition-secondary: 0.5s ease-in-out;
}

@media screen and (max-width: 1199px) {
  .product-card-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-card-item {
    border: 1px solid var(--grey-light);
  }
}

@media screen and (max-width: 1023px) {
  .catlog-categories {
    grid-template-columns: 1fr;
  }

  .catlog-categories-item__link {
    top: unset;
    right: unset;
    bottom: 20px;
    left: 20px;
  }

  .catlog-categories .promo-badge {
    display: none;
  }

  .product-card-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-info {
    flex-direction: column;
  }

  .product-detail-swiper {
    width: 100%;
    height: 330px;
    flex-direction: column-reverse;
  }

  .product-detail-swiper__gallery {
    width: 100%;
  }

  .product-detail-swiper__thumbs {
    width: 100%;
    height: 70px;
  }

  .product-detail-descr {
    max-width: 100%;
  }

  .product-detail-descr__title {
    order: 0;
    font-size: 28px;
  }

  .product-detail-descr__download-link {
    order: 3;
    width: 100%;
  }

  .product-detail-descr__characteristics {
    order: 2;
  }

  .product-detail-descr__box {
    padding: 0px;
    order: 1;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    box-shadow: none;
  }

  .product-detail-descr__note {
    padding-left: 0;
  }

  .product-detail-descr__list {
    margin-bottom: 0;
  }

  .product-detail-descr__item {
    padding: 5px 0;
  }

  .product-detail-descr__top {
    padding: 11px 8px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: var(--grey-bg);
  }

  .product-detail-descr__bottom {
    margin-bottom: 20px;
    order: -1;
  }
}

@media screen and (max-width: 767px) {
  .product-card-list {
    grid-template-columns: 1fr;
  }

  .product-card-item {
    min-height: 580px;
  }

  .product-card-item__img-wrap {
    height: 230px;
  }

  .product-card-item__link {
    gap: 20px;
  }
}