.metal-blocks-product {
  padding: 6px 0 80px;
}

.metal-blocks-product__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 36px;
  align-items: stretch;
}

.metal-blocks-gallery {
  min-width: 0;
}

.metal-blocks-gallery__main-wrap {
  position: relative;
}

.metal-blocks-gallery__main {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(8, 40, 84, 0.14);
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
}

.metal-blocks-gallery__main img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  display: block;
}

.metal-blocks-gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(8, 40, 84, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: #082854;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
  z-index: 2;
}

.metal-blocks-gallery__arrow:hover {
  background: #082854;
  color: #fff;
  border-color: #082854;
}

.metal-blocks-gallery__arrow--prev {
  left: 16px;
}

.metal-blocks-gallery__arrow--next {
  right: 16px;
}

.metal-blocks-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
}

.metal-blocks-gallery__thumb {
  width: 92px;
  height: 76px;
  padding: 0;
  border: 1px solid rgba(8, 40, 84, 0.2);
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: 0.2s ease;
}

.metal-blocks-gallery__thumb:hover {
  border-color: #082854;
}

.metal-blocks-gallery__thumb.is-active {
  border-color: #082854;
  box-shadow: 0 0 0 1px #082854 inset;
}

.metal-blocks-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.metal-blocks-info {
  display: flex;
  flex-direction: column;
  min-height: 540px;
  padding-top: 0;
  background: transparent;
}

.metal-blocks-info__section {
  background: transparent;
}

.metal-blocks-info__section--conditions {
  margin-top: 0;
}

.metal-blocks-info__section--price {
  margin-top: 34px;
  padding-bottom: 0;
}

.metal-blocks-info__title {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  color: #082854;
}

.metal-blocks-info__table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.metal-blocks-info__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(8, 40, 84, 0.12);
}

.metal-blocks-info__row:first-child {
  border-top: 1px solid rgba(8, 40, 84, 0.12);
}

.metal-blocks-info__label,
.metal-blocks-info__value {
  font-size: 16px;
  line-height: 1.4;
  color: #082854;
}

.metal-blocks-info__label {
  font-weight: 500;
}

.metal-blocks-info__value {
  text-align: right;
}

.metal-blocks-price__buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.metal-blocks-price__btn {
  min-height: 40px;
  border: 1px solid rgba(8, 40, 84, 0.22);
  background: #fff;
  color: #082854;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
  border-radius: 16px;
}

.metal-blocks-price__btn:hover {
  border-color: #082854;
}

.metal-blocks-price__btn.is-active {
  background: #082854;
  color: #fff;
  border-color: #082854;
}

.metal-blocks-price__result {
  margin-bottom: 16px;
}

.metal-blocks-price__current-height {
  font-size: 15px;
  line-height: 1.35;
  color: #082854;
  margin-bottom: 6px;
}

.metal-blocks-price__current-price {
  font-size: 42px;
  line-height: 1.05;
  font-weight: 700;
  color: #082854;
}

.metal-blocks-price__consult-btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  color: #082854;
  border: 1px solid #082854;
  box-shadow: none;
  transition: 0.2s ease;
}

.metal-blocks-price__consult-btn:hover {
  background: #082854;
  color: #fff;
  border-color: #082854;
}

.metal-blocks-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.metal-blocks-lightbox.is-open {
  display: block;
}

.metal-blocks-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.metal-blocks-lightbox__dialog {
  position: absolute;
  inset: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metal-blocks-lightbox__dialog img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  background: #fff;
}

.metal-blocks-lightbox__close {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  border: none;
  background: #fff;
  color: #082854;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1199px) {
  .metal-blocks-product__layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .metal-blocks-gallery__main img {
    max-height: 460px;
  }

  .metal-blocks-info {
    min-height: auto;
  }

  .metal-blocks-info__section--price {
    margin-top: 30px;
  }
}

@media (max-width: 767px) {
  .metal-blocks-product {
    padding: 0 0 56px;
  }

  .metal-blocks-product__layout {
    gap: 24px;
  }

  .metal-blocks-gallery__main img {
    max-height: 300px;
  }

  .metal-blocks-gallery__arrow {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .metal-blocks-gallery__arrow--prev {
    left: 10px;
  }

  .metal-blocks-gallery__arrow--next {
    right: 10px;
  }

  .metal-blocks-gallery__thumbs {
    gap: 10px;
    margin-top: 14px;
  }

  .metal-blocks-gallery__thumb {
    width: 72px;
    height: 58px;
  }

  .metal-blocks-info__section--price {
    margin-top: 22px;
  }

  .metal-blocks-info__title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .metal-blocks-info__row {
    padding: 10px 0;
    gap: 12px;
  }

  .metal-blocks-info__label,
  .metal-blocks-info__value {
    font-size: 14px;
  }

  .metal-blocks-price__buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .metal-blocks-price__btn {
    min-height: 34px;
    font-size: 13px;
    border-radius: 16px;
    padding: 0 6px;
  }

  .metal-blocks-price__current-height {
    font-size: 14px;
  }

  .metal-blocks-price__current-price {
    font-size: 30px;
  }

  .metal-blocks-price__consult-btn {
    min-height: 46px;
    font-size: 14px;
  }

  .metal-blocks-lightbox__dialog {
    inset: 20px;
  }

  .metal-blocks-lightbox__close {
    width: 40px;
    height: 40px;
    font-size: 26px;
  }
}