.hero {
  position: relative;
  height: 384px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: brightness(0.9);
}

.hero__title {
  position: relative;
  font-weight: 400;
  font-size: 80px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-align: center;
  color: #fff;
  font-family: "Baskervville", serif;
}

.hero__title span {
  font-style: italic;
}

/* ================== fragrance ================== */

.fragrance {
  margin: 80px 0;
}

.fragrance__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}

.fragrance__item {
  max-width: 316px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fragrance__item--on-sale {
  position: relative;
}

.fragrance__item--on-sale::after {
  content: 'on sale';
  position: absolute;
  top: 12px;
  right: 12px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
  background: #E8A94C;
  border-radius: 999px;
}

.fragrance__link {
  transition: filter 0.2s;
}

.fragrance__link img {
  width: 100%;
  border-radius: 16px;
}

.fragrance__name {
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  margin-top: 12px;
  font-family: "Baskervville", serif;
  font-weight: 400;

}

.fragrance__descr {
  margin-top: 4px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.fragrance__price {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.fragrance__btn {
  margin-top: 12px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  background: #ABB249;
  max-width: 316px;
}

/* ============================ */
/* ============================ */
/* ============================ */

@media (min-width: 900px) {
  .fragrance__link:hover{
    filter: brightness(0.9);
  }
}

@media (max-width: 800px) {
  .hero__title {
    font-size: 50px;
    max-width: 450px;
  }

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

}

@media (max-width: 500px) {
  .hero {
    height: 280px;
  }

  .hero__title {
    font-size: 40px;
    max-width: 350px;
  }
}