/* Блок подборок - Collections */
.collections {
  margin: 20px 0;
}

.collections__title-main {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
  text-align: center;
  margin: 0 0 30px 0;
  line-height: 1.3;
}

.collections__description {
  margin-top: 40px;
  padding: 20px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--bdc);
}

.collections__description p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0 0 15px 0;
}

.collections__description p:last-child {
  margin-bottom: 0;
}

.collections__flex {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.collections__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  border: 1px solid var(--bdc);
  border-radius: 8px;
  text-decoration: none;
  color: #fff;
  transition: all 0.4s ease;
  flex: 1 1 calc(33.333% - 10px);
  min-width: 0;
  min-height: 120px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.collections__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: all 0.4s ease;
}

.collections__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  z-index: 2;
}

.collections__item:hover::before {
  background: rgba(0, 0, 0, 0.1);
}

.collections__item:hover .collections__image {
  transform: scale(1.05);
}

.collections__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.collections__title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 3;
  transition: all 0.4s ease;
}

.collections__item:hover .collections__title {
  opacity: 0;
  transform: translateY(-10px);
}

@media screen and (max-width: 950px) {
  .collections__item {
    flex: 1 1 calc(50% - 8px);
    padding: 0;
    min-height: 140px;
  }

  .collections__title {
    font-size: 14px;
  }
}

@media screen and (max-width: 600px) {
  .collections__flex {
    gap: 10px;
  }

  .collections__item {
    flex: 1 1 calc(50% - 5px);
    padding: 0;
    min-height: 120px;
  }

  .collections__title {
    font-size: 12px;
  }

  .collections__item:hover::before {
    background: rgba(0, 0, 0, 0.4);
  }

  .collections__item:hover .collections__image {
    transform: none;
  }

  .collections__item:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .collections__item:hover .collections__title {
    opacity: 1;
    transform: none;
  }
}

@media screen and (max-width: 400px) {
  .collections__item {
    flex: 1 1 calc(50% - 5px);
    padding: 0;
    min-height: 100px;
  }

  .collections__title {
    font-size: 11px;
  }
}

@media screen and (max-width: 768px) {
  .collections__title-main {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .collections__description {
    margin-top: 30px;
    padding: 15px;
  }

  .collections__description p {
    font-size: 15px;
  }
}

@media screen and (max-width: 480px) {
  .collections {
    margin: 10px 0;
  }

  .collections__title-main {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .collections__description {
    margin-top: 20px;
    padding: 12px;
  }

  .collections__description p {
    font-size: 14px;
    line-height: 1.5;
  }
}
