html, body {
  overflow-x: hidden;
}
body {
  position: relative
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #000;
}


/* =========================================================
   ОСНОВНОЙ БЛОК
   ========================================================= */

.products {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 45px 32px;
}


/* =========================================================
   ЗАГОЛОВОК БЛОКА
   ========================================================= */

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

  margin-bottom: 25px;
}

.products__head h2 {
  margin: 0;

  font-family: "Inter", sans-serif;

  font-size: 29px;
  line-height: 1.15;

  font-weight: 400;

  letter-spacing: -0.6px;

  color: #111;
}


/* =========================================================
   СТРЕЛКИ
   ========================================================= */

.products__navigation {
  display: flex;
  align-items: center;

  gap: 9px;
}

.products__arrow {
  width: 42px;
  height: 42px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #e4e4e4;
  border-radius: 50%;

  background: #fff;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.products__arrow svg {
  width: 18px;
  height: 18px;

  fill: none;

  stroke: #111;
  stroke-width: 1.6;

  stroke-linecap: round;
  stroke-linejoin: round;
}

.products__arrow:hover {
  background: #f7f7f7;

  border-color: #d8d8d8;

  transform: scale(1.04);
}

.products__arrow:active {
  transform: scale(0.97);
}

.products__arrow:disabled {
  opacity: 0.25;

  cursor: default;

  transform: none;
}


/* =========================================================
   ОБЛАСТЬ СЛАЙДЕРА
   ========================================================= */

.products__viewport {
  width: 100%;

  overflow: hidden;

  padding: 4px 2px 12px;

  /*
   * Важно для touch:
   * вертикальный свайп остаётся обычным
   * скроллом страницы,
   * горизонтальный используется слайдером.
   */
  touch-action: pan-y;

  /*
   * Запрещаем выделение текста
   * во время перетаскивания.
   */
  user-select: none;

  -webkit-user-select: none;

  /*
   * Убираем подсветку при тапе
   * на мобильных устройствах.
   */
  -webkit-tap-highlight-color: transparent;

  /*
   * Курсор на компьютере.
   */
  cursor: grab;
}

.products__viewport.is-dragging {
  cursor: grabbing;
}


/* =========================================================
   ЛЕНТА КАРТОЧЕК
   ========================================================= */

.products__track {
  display: flex;

  gap: 20px;

  will-change: transform;

  transform: translate3d(0, 0, 0);

  /*
   * JS временно отключает transition
   * во время drag.
   */
  transition:
    transform 0.5s cubic-bezier(
      0.22,
      0.61,
      0.36,
      1
    );
}


/* =========================================================
   КАРТОЧКА
   ========================================================= */

.product-card {
  flex: 0 0 calc(
    (100% - 40px) / 3
  );

  min-width: 0;

  min-height: 575px;

  display: flex;
  flex-direction: column;

  background: #f7f7f8;

  border: 1px solid #ededed;

  border-radius: 22px;

  overflow: hidden;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-2px);

  box-shadow:
    0 14px 35px rgba(
      0,
      0,
      0,
      0.055
    );
}


/*
 * Когда пользователь тянет слайдер,
 * карточки не должны реагировать
 * на hover.
 */

.products__viewport.is-dragging
.product-card {
  pointer-events: none;

  transform: none;

  box-shadow: none;
}


/* =========================================================
   ИЗОБРАЖЕНИЕ
   ========================================================= */

.product-card__image {
  width: calc(100% - 28px);

  height: 245px;

  margin: 14px 14px 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;

  border-radius: 17px;

  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  border-radius: 17px;

  /*
   * Изображение не должно
   * перетаскиваться браузером.
   */
  user-select: none;

  -webkit-user-select: none;

  -webkit-user-drag: none;

  pointer-events: none;

  transition:
    transform 0.45s ease;
}

.product-card:hover
.product-card__image img {
  transform: scale(1.025);
}


/* =========================================================
   ТЕЛО КАРТОЧКИ
   ========================================================= */

.product-card__body {
  flex: 1;

  display: flex;
  flex-direction: column;

  padding: 25px 25px 24px;
}


/* =========================================================
   НАЗВАНИЕ
   ========================================================= */

.product-card__title {
  margin: 0 !important;

  font-family: "Inter", sans-serif;

  font-size: 23px;
  line-height: 1.28;

  font-weight: 400;

  letter-spacing: -0.45px;

  color: #111;
}


/* =========================================================
   КОРОТКОЕ ОПИСАНИЕ
   ========================================================= */

.product-card__description {
  margin: 12px 0 0 !important;

  max-width: 95%;

  font-family: "Inter", sans-serif;

  font-size: 14px;
  line-height: 1.58;

  font-weight: 300;

  letter-spacing: 0;

  color: #606060;
}


/* =========================================================
   ХАРАКТЕРИСТИКИ
   ========================================================= */

.product-card__specs {
  margin-top: 17px;

  display: flex;
  flex-wrap: wrap;

  gap: 7px 8px;
}

.product-card__specs span {
  display: inline-flex;
  align-items: center;

  min-height: 28px;

  padding: 5px 10px;

  border: 1px solid #e5e5e5;

  border-radius: 14px;

  background: #fff;

  font-family: "Inter", sans-serif;

  font-size: 11px;
  line-height: 1.2;

  font-weight: 300;

  color: #555;

  white-space: nowrap;
}


/* =========================================================
   БЛОК ПОДРОБНОСТЕЙ
   ========================================================= */

.product-card__more {
  margin-top: 12px;
}

.product-card__full-text {
  max-height: 0;

  overflow: hidden;

  opacity: 0;

  font-family: "Inter", sans-serif;

  font-size: 13px;
  line-height: 1.6;

  font-weight: 300;

  color: #555;

  transition:
    max-height 0.4s ease,
    opacity 0.25s ease,
    margin 0.4s ease;
}

.product-card__more.is-open
.product-card__full-text {
  max-height: 300px;

  margin-bottom: 10px;

  opacity: 1;
}


/* =========================================================
   КНОПКА "ПОДРОБНЕЕ"
   ========================================================= */

.product-card__read-more {
  height: 27px;

  display: inline-flex;
  align-items: center;

  gap: 6px;

  padding: 0;

  border: 0;

  background: transparent;

  font-family: "Inter", sans-serif;

  font-size: 13px;
  line-height: 1;

  font-weight: 400;

  letter-spacing: 0;

  color: #222;

  cursor: pointer;

  user-select: auto;

  -webkit-user-select: auto;

  transition:
    color 0.2s ease;
}

.product-card__read-more svg {
  width: 15px;
  height: 15px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.7;

  stroke-linecap: round;
  stroke-linejoin: round;

  transition:
    transform 0.25s ease;
}

.product-card__read-more:hover {
  color: #ef3038;
}

.product-card__more.is-open
.product-card__read-more svg {
  transform: rotate(180deg);
}


/* =========================================================
   НИЖНИЙ БЛОК
   ========================================================= */

.product-card__bottom {
  margin-top: auto;

  padding-top: 25px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 16px;
}


/* =========================================================
   ЦЕНА
   ========================================================= */

.product-card__price {
  flex-shrink: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.product-card__price span {
  font-family: "Inter", sans-serif;

  font-size: 11px;
  line-height: 1.2;

  font-weight: 300;

  letter-spacing: 0.2px;

  color: #888;
}

.product-card__price strong {
  font-family: "Inter", sans-serif;

  font-size: 20px;
  line-height: 1.2;

  font-weight: 400;

  letter-spacing: -0.25px;

  color: #111;

  white-space: nowrap;
}


/* =========================================================
   КНОПКА "ВЫБРАТЬ"
   ========================================================= */

.product-card__button {
  height: 44px;

  padding: 0 26px;

  flex-shrink: 0;

  border: 0;

  border-radius: 22px;

  background: #ef3038;

  color: #fff;

  font-family: "Inter", sans-serif;

  font-size: 14px;
  line-height: 1;

  font-weight: 400;

  letter-spacing: 0;

  cursor: pointer;

  user-select: auto;

  -webkit-user-select: auto;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-card__button:hover {
  background: #f1b44e;

  transform: translateY(-1px);

  box-shadow:
    0 7px 17px rgba(
      241,
      180,
      78,
      0.18
    );
}

.product-card__button:active {
  transform: translateY(0);
}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 1000px) {

  .products {
    padding: 40px 24px;
  }


  /* ---------------------------------
     2 карточки
     --------------------------------- */

  .product-card {
    flex: 0 0 calc(
      (100% - 20px) / 2
    );
  }


  /* ---------------------------------
     Изображение
     --------------------------------- */

  .product-card__image {
    width: calc(100% - 24px);

    height: 230px;

    margin: 12px 12px 0;

    border-radius: 16px;
  }

  .product-card__image img {
    border-radius: 16px;
  }


  /* ---------------------------------
     Тело
     --------------------------------- */

  .product-card__body {
    padding: 24px 22px 22px;
  }
}


/* =========================================================
   МОБИЛЬНЫЕ
   ========================================================= */

@media (max-width: 650px) {

  .products {
    padding: 32px 15px;
  }


  /* ---------------------------------
     Заголовок
     --------------------------------- */

  .products__head {
    margin-bottom: 18px;
  }

  .products__head h2 {
    font-size: 25px;
  }


  /* ---------------------------------
     Стрелки
     --------------------------------- */

  .products__navigation {
    gap: 7px;
  }

  .products__arrow {
    width: 38px;
    height: 38px;
  }

  .products__arrow svg {
    width: 17px;
    height: 17px;
  }


  /* ---------------------------------
     Расстояние между карточками
     --------------------------------- */

  .products__track {
    gap: 14px;
  }


  /* ---------------------------------
     Одна карточка
     --------------------------------- */

  .product-card {
    flex: 0 0 100%;

    min-height: 555px;

    border-radius: 19px;
  }


  /* ---------------------------------
     Изображение
     --------------------------------- */

  .product-card__image {
    width: calc(100% - 20px);

    height: 255px;

    margin: 10px 10px 0;

    border-radius: 15px;
  }

  .product-card__image img {
    border-radius: 15px;
  }


  /* ---------------------------------
     Тело
     --------------------------------- */

  .product-card__body {
    padding: 23px 20px 20px;
  }


  /* ---------------------------------
     Заголовок
     --------------------------------- */

  .product-card__title {
    font-size: 22px;

    line-height: 1.3;
  }


  /* ---------------------------------
     Описание
     --------------------------------- */

  .product-card__description {
    max-width: 100%;

    margin-top: 12px !important;

    font-size: 14px;

    line-height: 1.55;
  }


  /* ---------------------------------
     Характеристики
     --------------------------------- */

  .product-card__specs {
    margin-top: 15px;

    gap: 6px;
  }

  .product-card__specs span {
    font-size: 10px;

    padding: 5px 9px;
  }


  /* ---------------------------------
     Подробнее
     --------------------------------- */

  .product-card__more {
    margin-top: 9px;
  }


  /* ---------------------------------
     Нижний блок
     --------------------------------- */

  .product-card__bottom {
    padding-top: 22px;

    gap: 12px;
  }


  /* ---------------------------------
     Кнопка
     --------------------------------- */

  .product-card__button {
    height: 42px;

    padding: 0 21px;
  }


  /* ---------------------------------
     Цена
     --------------------------------- */

  .product-card__price strong {
    font-size: 18px;
  }
}


/* =========================================================
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   ========================================================= */

@media (max-width: 380px) {

  .products {
    padding-left: 12px;
    padding-right: 12px;
  }

  .product-card__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .product-card__title {
    font-size: 21px;
  }

  .product-card__description {
    font-size: 13px;
  }

  .product-card__specs span {
    font-size: 9.5px;

    padding-left: 8px;
    padding-right: 8px;
  }

  .product-card__button {
    padding-left: 18px;
    padding-right: 18px;
  }
}