.whatis {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 80px;
  margin-bottom: 160px;
}

.whatis-header {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}

.whatis-content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: flex-start;
  align-items: stretch;
  gap: 62px;
}

.whatis-content-item {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: flex-start;
  align-items: stretch;
  gap: 23px;
  width: 126px;
  flex-shrink: 0;
  overflow: hidden;
  transition: var(--trans-lg);
}

.whatis-content-item-image {
  background-color: var(--skeleton-color);
  filter: grayscale(1);
  transition: var(--trans-lg);
  height: 490px;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.whatis-content-item-text {
  font-weight: 300;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Ограничиваем до 2 строк */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 22px;
}

.whatis-content-item:hover {
  width: 358px;
}

.whatis-content-item:hover .whatis-content-item-image {
  filter: grayscale(0);
}

.whatis-content-item:hover .whatis-content-item-text {
  height: calc(22px * 3);
  margin-bottom: 0px;
}

@media screen and (max-width: 1599px) and (min-width: 1280px) {
  .whatis-header h3 {
    font-weight: 900;
    font-size: 32px;
    line-height: 38px;
    letter-spacing: 0px;
  }

  .whatis-header p {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
  }

  .whatis-content-item {
    width: 114px;
  }

  .whatis-content-item-image {
    height: 428px;
  }

  .whatis-content {
    gap: 30px;
  }
}

@media screen and (max-width: 1279px) and (min-width: 1024px) {
  .whatis-header h3 {
    font-weight: 900;
    font-size: 32px;
    line-height: 38px;
    letter-spacing: 0px;
  }

  .whatis-header p {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
  }

  .whatis-content-item {
    width: 90px;
  }

  .whatis-content-item-image {
    height: 428px;
  }

  .whatis-content {
    gap: 30px;
  }
}

@media screen and (max-width: 1023px) and (min-width: 640px) {
  .whatis-header h3 {
    font-weight: 900;
    font-size: 28px;
    line-height: 32px;
    letter-spacing: 0px;
  }

  .whatis-header p {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
  }

  .whatis-content-item {
    width: 272px;
  }

  .whatis-content-item:hover {
    width: 272px;
  }

  .whatis-content-item-image {
    height: 331px;
  }

  .whatis-content {
    gap: 20px;
  }

  .whatis-content-item-text {
    -webkit-line-clamp: 22;
    margin-bottom: 0px;
  }

  .whatis-content {
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-left: 20px;
    padding-right: 20px;
    left: 0;
    width: 100vw;
    overflow-x: scroll;
    scroll-behavior: smooth;
  }

  .whatis-content-item {
    scroll-snap-align: center;
  }

  .whatis-content-item:last-child,
  .whatis-content-item:first-child {
    scroll-snap-align: end;
  }

  .whatis {
    gap: 48px;
    padding-top: 64px;
    margin-bottom: 80px;
  }
}

@media screen and (max-width: 639px) {
  .whatis-header h3 {
    font-weight: 900;
    font-size: 28px;
    line-height: 32px;
    letter-spacing: 0px;
  }

  .whatis-header p {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0px;
  }

  .whatis-content-item {
    width: 272px;
    scroll-snap-align: center;
  }

  .whatis-content-item:first-child {
    scroll-snap-align: end;
  }

  .whatis-content-item:last-child {
    scroll-snap-align: start;
  }

  .whatis-content-item:hover {
    width: 272px;
  }

  .whatis-content-item-image {
    height: 331px;
  }

  .whatis-content {
    gap: 20px;
  }

  .whatis-content {
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-left: 20px;
    padding-right: 20px;
    left: 0;
    width: 100vw;
    overflow-x: scroll;
    scroll-behavior: smooth;
  }

  .whatis-content-item-text {
    -webkit-line-clamp: 22;
    margin-bottom: 0px;
  }

  .whatis {
    gap: 48px;
    padding-top: 64px;
    margin-bottom: 80px;
  }
}