.catalog-card {
  position: relative;
  height: 278px;
  width: 100%;
}

.catalog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.catalog-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 88px;
  background-color: #F2F1EECC;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 63px;
  gap: 10px;
  backdrop-filter: blur(4px);
}

.catalog-card__title {
  font-family: var(--font-heading);
font-weight: 500;
font-size: 22px;
line-height: 100%;
color: var(--text-dark);
}

.catalog-card__text {
font-weight: 500;
font-size: 18px;
line-height: 100%;
color: #6D6A66;
}

@media (max-width: 768px) {
  .catalog-card__content {
    padding-left: 36px;
  }

  .catalog-card__title {
    font-size: 18px;
  }

  .catalog-card__text {
    font-size: 15px;
  }
}

.hww__inner {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.hww__items {
  display: flex;
  width: 100%;
  scrollbar-width: none;
}

.hww__track {
  display: flex;
  width: 100%;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

.hww__item {
  width: 153px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.hww__item-img {
  height: 108px;
  width: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hww__item-img img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.hww__item-number {
  position: absolute;
  top: 0;
  left: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background-color: var(--accent);
  font-weight: 600;
  font-size: 18px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
}

.hww__item p {
  font-weight: 600;
  font-size: 18px;
  line-height: 100%;
  text-align: center;
}

.hww__sep {
  margin-top: 91px;
  display: block;
  width: 76px;
  height: 1px;
  background-color: var(--text);
}

.hww__arrows {
  display: none;
}

.hww__arrows > * {
  cursor: pointer;
}

@media (max-width: 1080px) {
  .hww__sep {
    display: none;
  }

  .hww__inner {
    gap: 0;
  }

  .hww .title-2 {
    margin-bottom: 40px;
  }

  .hww__arrows {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 20px;
  }

  .hww__items {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .hww__item {
    scroll-snap-align: start;
  }

  .hww__track {
    gap: 20px;
    width: max-content;
  }
}

@media (max-width: 768px) {
  .hww__item-img {
    height: 52px;
  }

  .hww__item p {
    font-size: 16px;
  }

  .hww__item-number {
    left: 45px;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 270px;
}

.product-card__content {
  background-color: #fff;
  border: 1px solid var(--text);
  border-radius: 8px;

  display: flex;
  flex-direction: column;
  padding: 30px 28px 10px;

}

.product-card img {
  width: 100%;
  height: 292px;
  object-fit: contain;
  object-position: center;
}

.product-card__name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 18px;
  line-height: 100%;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
  color: var(--text-dark);

}

.product-card__price {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 26px;
  line-height: 100%;
  text-align: center;
  color: var(--text-dark);
}

@media (max-width: 1080px) {
  .product-card__name {
    margin-bottom: 10px;
  }
}

.promotions .swiper {
  overflow: visible;
}

.promotions {
  padding-top: 143px;
  padding-bottom: 112px; 
  background: linear-gradient(to bottom, var(--background) 0%, #D7D7D7 188px, #d7d7d7 calc(100% - 132px), var(--background) 100% );
}

.promotions .swiper-slide {
  max-width: 1200px !important;
  width: 100% !important;
}

.promotion-slide {
  height: 320px;
  padding-top: 50px;
  padding-left: 78px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.promotion-slide__bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.promotion-slide__bg::before {
  display: block;
  position: absolute;
  content: '';
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-color: #00000066;
}

.promotion-slide__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.promotion-slide__wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.promotion-slide__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.promotion-slide .btn {
  margin-top: 12px;
  max-width: 459px;
}

.promotion-slide__img {
  background-color: #FAF6E3;
  padding: 16px 18px;
  width: auto;
  height: 209px;
  position: absolute;
  right: 120px;
}

.promotion-slide__img img {
  height: 100%;
  width: auto;
  border: 3px solid #57212E;
}

.promotion-slide__caption {
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
}

.promotion-slide__title {
font-weight: 500;
font-size: 32px;
line-height: 100%;
}

.promotion-slide__text {
font-weight: 400;
font-size: 16px;
line-height: 100%;

}

@media (max-width: 1280px) {
  .promotions .swiper-slide {
    max-width: calc(100% ) !important;
    width: 100% !important;
  }

  .promotions {
    padding: 0 40px;
  }
}

@media (max-width: 1080px) {
  .promotions .swiper-slide {
    max-width: calc(100%) !important;
    width: 100% !important;
  }

  .promotion-slide__img {
    right: 20px;
  }

  .promotion-slide {
    padding-left: 20px;
  }

  .promotions {
    padding: 60px 20px;
  }
}

@media (max-width: 890px) {
.promotion-slide__img {
    position: initial;
    width: max-content;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }

  .promotion-slide__img img {
    object-fit: contain;
    object-position: center;
  }

  .promotion-slide .btn {
    max-width: 100%;
    margin-top: auto;
  }

  .promotion-slide__content {
    height: 100%;
  }

  .promotions .swiper-slide {
    max-width: calc(100%) !important;
    width: 100% !important;
  }

  .promotions {
    padding: 60px 10px;
  }

  

  .promotion-slide {
    padding: 10px;
    height: 100%;
  }

  .promotion-slide__caption {
  font-weight: 400;
  font-size: 20px;
  line-height: 100%;
}

.promotion-slide__title {
font-weight: 500;
font-size: 24px;
line-height: 100%;
}

.promotion-slide__text {
font-weight: 400;
font-size: 16px;
line-height: 100%;

}
}

@media (max-width: 768px) {
  .promotion-slide__img {
    width: 100%;
  }
}

/* ── 10. Modal ──────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }

.modal-dialog {
  background: #111;
  border-radius: 12px;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal__close::before,
.modal__close::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 2px;
  background: var(--text);
}
.modal__close::before { transform: rotate(45deg); }
.modal__close::after  { transform: rotate(-45deg); }

.modal__title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
  padding-right: 48px;
}

.modal__layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.modal__gallery {
  display: flex;
  gap: 10px;
  flex: 1.2;
  min-width: 0;
  position: relative;
}

.modal__thumbs-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 72px;
  flex-shrink: 0;
}

.modal__up,
.modal__down {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal__thumbs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  max-height: 350px;
  scrollbar-width: none;
}
.modal__thumbs::-webkit-scrollbar { display: none; }

.modal__thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.15s, border-color 0.15s;
}
.modal__thumb:hover,
.modal__thumb.active {
  opacity: 1;
  border-color: var(--accent);
}
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; }

.modal__main { flex: 1; min-width: 0; }
.modal__main img {
  width: 100%;
  height: 500px;
  background-color: #fff;
  object-fit: contain;
  object-position: center;
}

.modal__info {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: max-content;
  max-height: 100%;
  align-self: center;
  padding: 20px 15px;
  background: #111111;
border: 1px solid #D7D7D7;
box-shadow: 0px 4px 4px 0px #FFFFFF1A;

}
.modal__info-title {
  font-weight: 600;
  font-size: 15px;
  opacity: 0.7;
}
.modal__info-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  list-style: disc;
  padding-left: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #FFFFFF;
}
.modal__info-list li { font-size: 16px; list-style: disc; }

.modal__price {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-family: var(--font-heading);
}
.modal__price p:first-child { font-size: 14px; opacity: 0.6; }
.modal__price p:last-child  { font-size: 28px; font-weight: 600; }

.modal__text { font-size: 13px; line-height: 1.5; opacity: 1; padding-top: 10px; border-top: 1px solid #FFFFFF; }

/* ── 11. Media queries ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .modal-dialog { padding: 20px; }
  .modal__layout { flex-direction: column; }
  .modal__info { width: 100%; }
  .modal__info-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {

  /* Modal mobile: главное фото сверху, стрелки по бокам, миниатюры снизу */
  .modal__gallery {
    flex-direction: column;
    position: relative;
  }
  .modal__layout {
    grid-template-columns: 1fr;
  }
  .modal__thumbs-wrapper {
    order: 2;
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
  .modal__main { order: 1; }
  /* Стрелки абсолютно по бокам: .modal__thumbs-wrapper без position:relative,
     поэтому позиционируются относительно .modal__gallery */
  .modal__up {
    position: absolute;
    left: 0;
    top: 74%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .modal__up svg {
    transform: rotateZ(-90deg);
  }
  .modal__down {
    position: absolute;
    right: 0;
    top: 74%;
    transform: translateY(-50%);
    z-index: 2;
  }
  .modal__down svg {
    transform: rotateZ(-90deg);
  }
  .modal__thumbs {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
  }
  .modal__thumb { width: 56px; height: 56px; }
  .modal__main img { height: 260px; }
  .modal__info-list { grid-template-columns: 1fr; }
}