.carousel-title {
  display: flex;
  justify-content: center;
  margin: 80px auto 20px auto;
  
}
.carousel-title h2 {
  font-family: "Public Sans", sans-serif;
  color: #eec300;
  letter-spacing: 5px;
  font-size: 1.8rem;
  font-weight: 600;
}
/* Внешний контейнер */ 
.slider-items {
  width: 90%;
  margin: auto;
}

.slider-items-viewport {
  overflow: hidden;
  padding: 10px 0;
}

.slider-items-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

.card {
  display: flex;
  flex: 0 0 calc((100% - 60px) / 4); 
  height: 400px;
  background: #fff;
  /*opacity: 0.8;*/
  border-radius: 2px;
  /*cursor: pointer;*/
}
/*
.card a {
    text-decoration: none;
    flex: 1;
}
.card:hover {
  box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
  transition: 0.5s;
}
*/  
.card-inner {
    width: 100%;
    display: flex;
    flex: 1;
    flex-direction: column;
    grid-gap: 5px;
    padding: 10px;
}







.image-wrapper {
    display: flex;
    justify-content: space-between;
}
.image-carousel {
    flex: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}
.image-carousel img {
    height: 100%;
    width: auto;
    object-fit: contain;
}
.item-options {
    display: flex;
    flex-direction: column;
    cursor: auto;
    gap: 10px;
}
.flag-carousel{
  display: flex;
  justify-content: flex-end;
}
.item-strenght,
.item-density,
.item-bitterness {
  display: flex;
  flex-direction: column;
  font-family: "Public Sans", sans-serif;
  color: #333333;
  font-size: 0.95rem;
  font-weight: 400;
}
.item-strenght-top,
.item-density-top,
.item-bitterness-top {
    display: flex;
    flex-direction: column;
}
.item-strenght-top p,
.item-density-top p,
.item-bitterness-top p {
  font-weight: 600;
}

meter::-webkit-meter-optimum-value {
  background: #E80000; /* цвет заполненной части при нормальном значении */
}
meter::-webkit-meter-bar {
  border-radius: 0;
}
meter::-webkit-meter-suboptimum-value {
  background: #E80000; /* цвет заполненной части при среднем значении */
}
meter::-webkit-meter-even-less-good-value {
  background: #E80000; /* цвет заполненной части при плохом значении */
}
meter::-moz-meter-bar {
  background: #E80000; /* цвет заполненной части */
}
.item-name {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 5px 0;
}
.item-name h3{
  color: #333333;
  font-family: "Public Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.2em;
  /*height: 2.4em;*/
  letter-spacing: 1px;
  -webkit-text-stroke: 0.5px #333333;
  text-align: center; /* не удалять*/
}
.item-style h3,
.item-packaging span {
  color: #333333;
  font-size: 1rem;
  font-weight: 400;
  font-family: "Public Sans", sans-serif;
  text-align: center;
}
.item-style {
  display: flex;
  justify-content: center;
}
.item-packaging {
  display: flex;
  justify-content: center;
  align-items: center;
}
.item-packaging span:not(:last-child)::after { /*точка-разделитель*/
  content: "";
  display: inline-block;
  width: 5px;      /* размер круга */
  height: 5px;
  background: #333333;
  border-radius: 50%;
  margin: 0 8px;
}



.item-description {
  color: #333333;
  font-size: 1rem;
  font-weight: 400;
  font-family: "Public Sans", sans-serif;
  text-align: justify;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* Ограничить 3 строками */
  line-clamp: 4;
}





.button-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 20px 0;
}
.button-norm {
  text-decoration: none;
  font-family: "Public Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  display: inline-block;
  padding: 10px 25px;
  background-color: transparent;
  border: 1px solid #eec300;
  border-radius: 2px;
  transition: background-color 0.3s;
  cursor: pointer;
}

.button-norm:hover {
  background-color: #eec300;
}




@media (max-width: 1200px) {
  .card {
  flex: 0 0 calc((100% - 40px) / 3); 
}
}  
@media (max-width: 800px) {
  .card {
  flex: 0 0 calc((100% - 20px) / 2); 
  height: 350px;
}
} 
@media (max-width: 500px) {
  .item-options {
    display: none;
  }
  .image-carousel img {
    height: 180px;
}
}
@media (max-width: 400px) {
  .card {
  flex: 0 0 100%; 
}
  .item-options {
    display: flex;
  }
}