/* ==================== Pack page ==================== */

.pack .container {
  display: flex;
  flex-direction: column;
  padding-bottom: 30px;
}

/* ── Banner ─────────────────────────────────────────────────────────────────── */

.packBg {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
}

.packBg img {
  max-width: 100%;
  border-radius: 1.2rem;
  width: 100%;
  object-fit: cover;
  max-height: 12rem;
}

.packBg .h-mob {
  display: none;
}

.packBg__title {
  color: var(--White);
  font-size: 1.2rem;
  opacity: .8;
  font-weight: 500;
  margin-top: 1rem;
}

/* ── Gender filter ─────────────────────────────────────────────────────────── */

.pack__content {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.gender_filter {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.gender_filter .btn {
  width: 268px;
  min-height: unset;
  height: 2rem;
  font-weight: 600;
  border-radius: 15px;
}

/* ── Masonry grid ──────────────────────────────────────────────────────────── */

.pack-masonry {
  columns: 3;
  column-gap: 1rem;
}

.packCarusel__item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  text-decoration: none;
}

.packCarusel__img {
  position: relative;
  aspect-ratio: 3 / 4;   /* резервирует место ДО загрузки — masonry не прыгает */
  background: var(--card-bg, #1a2740);
  border-radius: 20px;
  overflow: hidden;
}

.packCarusel__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  border-radius: 20px;
}

.packCarusel__item .label {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 123, 255, 1);
  color: #fff;
  padding: 5px 10px;
  font-size: 14px;
  min-width: 50%;
  max-width: 80%;
  word-wrap: break-word;
  border-radius: 0 20px 0 20px;
}

/* ── Mobile (≤ 800px) ──────────────────────────────────────────────────────── */

@media (max-width: 800px) {
  .packBg {
    display: none;
  }

  .packBg__title {
    display: none;
  }

  .pack {
    background: var(--mobile-background-color);
    min-height: 100vh;
  }

  .pack__content {
    margin-top: 0;
    margin-bottom: 0;
    padding: 1rem 0 0.5rem;
    padding-top: 0;
  }
  .gender_filter .btn {
    font-size: 18px;
  }

  .pack .container {
    min-height: 100vh;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 4rem;
  }

  .pack-masonry {
    columns: 2;
    column-gap: 0.6rem;
  }

  .packCarusel__item {
    margin-bottom: 0.6rem;
  }

  .packCarusel__item .label {
    font-size: 12px;
  }

  .gender_filter .btn {
    width: auto;
    flex: 1;
  }
}

/* ==================== Email form ==================== */

.pack__content.email {
  margin-top: 30px;
}

.formEmail {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  width: 100%;
  gap: 1rem;
}

.formEmail .form__row {
  width: 400px;
}

.formEmail .form__btn {
  width: 200px;
}

.emailInput {
  width: 100%;
}

@media (max-width: 800px) {
  .pack__content.email {
    margin-top: 0;
  }

  .formEmail {
    width: 100%;
  }

  .formEmail .form__row {
    width: 100%;
  }

  .formEmail .form__btn {
    width: 100%;
  }
}
