.product-page {
  background: #ffffff;
}

.section--products {
  padding-bottom: 18px;
}

.section--results-product {
  padding-bottom: 0;
}

section.product-hero {
  position: relative;
  margin-top: 0;
  isolation: isolate;
  padding-top: 0;
}

.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 73% 18%, rgba(255, 255, 255, 0.78), transparent 24%), linear-gradient(180deg, #f4f3f3 0%, rgba(145, 139, 130, 0.3) 100%);
  z-index: -1;
}

.product-hero .container {
  position: relative;
}

.product-hero__layout {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 616px);
  grid-template-areas:
    'title visual'
    'copy visual';
  align-items: stretch;
  column-gap: 26px;
  row-gap: 24px;
  min-height: 620px;
  padding: 28px 0 34px;
  background: transparent;
}

/* Защита Grid-ячеек от растягивания контентом */
.product-hero__title,
.product-hero__copy,
.product-hero__visual {
  min-width: 0;
}

.product-hero__title {
  grid-area: title;
  align-self: start;
  padding-top: 10px;
}
.product-hero__title h1 {
  font-size: 70px;
}

.product-hero__title h1,
.product-section-head h2,
.product-facts__title h2 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.product-hero__copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 28px;
  padding: 0 0 28px;
}

.product-hero__lead {
  margin: 0;
  max-width: 578px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.product-hero__visual {
  grid-area: visual;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.product-hero__visual img {
  width: 100%;
  max-width: 616px;
  height: auto;
  object-fit: contain;
}

/* --- БЛОК ПОКУПКИ (ЦЕНА + КОРЗИНА) --- */
.product-hero__buy-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
  width: 100%;
}

.product-price {
  font-size: 32px;
  font-weight: 600;
  color: var(--color-text, #201e22);
  line-height: 1;
}

.product-buy-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.product-quantity {
  display: flex;
  align-items: center;
  border: 1px solid rgba(32, 30, 34, 0.16);
  border-radius: 999px;
  height: 48px;
  background: #fff;
  overflow: hidden;
}

.product-quantity button {
  width: 40px;
  height: 100%;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-text, #201e22);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.product-quantity button:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.product-quantity input {
  width: 48px;
  text-align: center;
  border: none;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  background: transparent;
  padding: 0;
}

.product-hero__action {
  min-height: 48px;
  padding: 16px 24px;
  border-radius: 1584px;
  box-shadow: none;
}

.product-not-available {
  font-size: 16px;
  color: #d32f2f;
  font-weight: 500;
}

/* --- OVERVIEW --- */
.product-overview.section {
  padding-top: 30px;
}

.product-overview .container,
.product-components .container,
.product-facts .container,
.product-benefits .container {
  position: relative;
}

.product-overview__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: start;
  gap: 66px;
  padding-top: 40px;
  border-top: 1px solid rgba(32, 30, 34, 0.16);
}

.product-overview__copy {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.product-copy-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-copy-block h2 {

  line-height: 1.25;
  letter-spacing: -0.02em;
}
.section--results .results-slide__copy h2 {
margin-bottom: 40px ;

}
.section--results .results-slide {
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
}

.section--results  .results-slide__visual {
  display: flex;
  justify-content: start;
}
.section--results  .results-slide__visual img{
  width: auto;
  border-radius: 24px;
}


.product-copy-block h3 {
  margin: 0 0 10px 0;

  line-height: 1.1;
  letter-spacing: -0.02em;
}

.product-copy-block p,
.product-copy-block li {
  margin: 0;
  color: var(--color-text);

  line-height: 1.3;
  letter-spacing: -0.02em;
}

.product-copy-block ul {
  margin: 0 0 10px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
}

.product-copy-block__group {
  display: block;
}

/* --- GALLERY --- */
.product-gallery {
  position: relative;
  padding: 40px 20px 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f4f3f3 0%, rgba(145, 139, 130, 0.65) 100%);
  min-width: 0;
}

.product-gallery__viewport {
  overflow: hidden;
  border-radius: 24px;
  touch-action: pan-y;
}

.product-gallery__track {
  display: flex;
  transition: transform 0.4s ease;
}

.product-gallery__slide {
  flex: 0 0 100%;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 472px;
}

.product-gallery__slide img {
  width: min(100%, 397px);
  object-fit: contain;
}

.product-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 1px solid #e4e2e2;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-text);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery__arrow--prev {
  left: 20px;
}

.product-gallery__arrow--next {
  right: 20px;
}

.product-gallery__dots {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  margin: 18px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(145, 139, 130, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.28);
}

.product-gallery__dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(32, 30, 34, 0.18);
  transition:
    background-color var(--transition),
    transform var(--transition);
}

.product-gallery__dots button.is-active,
.product-gallery__dots button[aria-current='true'] {
  background: rgba(32, 30, 34, 0.86);
}

/* --- COMPONENTS --- */
.product-components {
  padding-top: 85px;
}

.product-components .container {
  padding-top: 24px;
  border-top: 1px solid rgba(32, 30, 34, 0.16);
}

.product-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.product-components .product-section-head {
  margin-bottom: 40px;
}

.product-components .product-section-head h2 {
  margin: 0;

  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* --- FACTS / ACCORDION --- */
.product-facts__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
  padding-top: 35px;
  border-top: 1px solid rgba(32, 30, 34, 0.16);
}

.product-facts__title {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 6px;
  min-width: 0;
}

.product-facts__title h2 {
  letter-spacing: -0.02em;
}
.product-facts__grid ul {
  padding-left: 1rem;
}
.product-benefits .product-facts__grid {
  align-items: stretch;
}

.product-benefits .product-facts__title {
  min-height: 208px;
  justify-content: space-between;
}

.product-benefits__stat {
  margin-top: 0;
  max-width: 308px;
  min-height: 95px;
  padding: 19px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.product-benefits__stat--mobile {
  display: none;
}

.product-benefits__stat span {
  flex: 0 1 122px;
  max-width: 122px;

  line-height: 1.3;
  letter-spacing: -0.02em;
}

.product-benefits__stat strong {
  flex: 0 0 auto;
  font-size: 32px;
  line-height: 0.8125;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* --- SLIDERS & CARDS --- */
.product-slider {
  --product-gap: 20px;
  --product-columns: 3;
}

.product-slider__viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.product-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--product-gap) * (var(--product-columns) - 1)) / var(--product-columns));
  align-items: stretch;
  gap: var(--product-gap);
  transition: transform 320ms ease;
  will-change: transform;
}

.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  box-shadow: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.product-card:hover,
.product-card:focus-within {
  transform: none;
  box-shadow: none;
}

.product-card__media {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 400 / 360;
  background: linear-gradient(180deg, rgba(244, 243, 243, 0.6), rgba(145, 139, 130, 0.55));
  box-shadow: 0 10px 30px rgba(31, 27, 22, 0.04);
  transition: box-shadow var(--transition);
}

.product-card:hover .product-card__media,
.product-card:focus-within .product-card__media {
  box-shadow: 0 18px 40px rgba(31, 27, 22, 0.08);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.results-slide__product-image {
  margin-top: auto;
  width: 213px;
  height: fit-content;
}

.results-slide__product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.results-slide__product {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.results-slide__product h3 {
  margin: 0;
  font-size: 24px;

  line-height: 1.0833;
  letter-spacing: -0.4px;
}

.results-slide__product p {
  margin: 0;
  width: 100%;
  max-width: 350px;
  letter-spacing: -0.28px;
}

.results-slide__product .btn {
  align-self: flex-start;
  margin-top: 2px;
  min-height: 48px;
  padding: 16px 24px;
}

/* =========================================
   МЕДИАЗАПРОСЫ
========================================= */

@media (max-width: 1199px) {
  .product-hero {
    padding-top: calc(var(--site-header-offset, 60px) + 30px);
    margin-top: 0;
  }

  .product-hero__layout {
    grid-template-columns: 1.5fr 2fr;
    grid-template-areas:
      'visual visual'
      'title copy';
    align-items: center;
    min-height: auto;
    gap: 20px;
    padding: 18px 0 24px;
  }

  .product-hero__title {
    padding-top: 0;
    align-self: start;
  }

  .product-hero__copy {
    padding: 0;
    gap: 16px;
    align-items: flex-start;
  }

  .product-hero__title h1 {
    font-size: 40px;
    line-height: 0.92;
  }

  .product-hero__lead {
    max-width: none;
    font-size: 24px;
    line-height: 1.2;
  }

  .product-hero__visual {
    padding-right: 0;
    justify-content: center;
  }

  .product-hero__visual img {
    max-width: 422px;
  }

  .product-hero__buy-block {
    margin-top: 0;
  }

  .product-price {
    font-size: 28px;
  }

  .product-quantity {
    height: 40px;
  }

  .product-hero__action {
    min-height: 40px;
    padding: 12px 18px;
    font-size: 14px;
  }

  .product-overview {
    padding-top: 50px;
  }

  .product-overview__grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    padding-top: 0;
    border-top: 0;
  }

  .product-overview__copy {
    gap: 25px;
  }

  .product-copy-block {
    padding-top: 0;
    border-top: 0;
  }

  .product-copy-block h2 {
    font-size: 16px;
  }

  .product-copy-block p,
  .product-copy-block li,
  .product-copy-block h3 {
     font-size: 14px;
    line-height: 1.37;
  }

  .product-gallery {
    padding: 14px 16px 18px;
    border-radius: 18px;
  }

  .product-gallery__dots {
    gap: 5px;
    margin-top: 12px;
    padding: 6px 8px;
    border-radius: 9px;
    bottom: 15px;
  }

  .product-gallery__dots button {
    width: 4px;
    height: 4px;
  }

  .product-gallery__slide {
    min-height: 323px;
  }

  .product-gallery__slide img {
    max-width: 268px;
  }

  .product-gallery__arrow {
    width: 31px;
    height: 31px;
  }

  .product-gallery__arrow--prev {
    left: 16px;
  }

  .product-gallery__arrow--next {
    right: 16px;
  }

  .product-section-head {
    margin-bottom: 26px;
  }

  .product-components {
    padding-top: var(--section-gap, 40px);
  }

  .product-components .container {
    padding-top: 0;
    border-top: 0;
  }

  .product-components .product-section-head {
    margin-bottom: 20px;
  }

  .product-components .product-section-head h2,
  .product-section-head h2,
  .product-facts__title h2 {
    line-height: 0.92;
  }

  .product-facts__grid {
    padding-top: 20px;
    grid-template-columns: 1fr;
    gap: 26px;
    border-top: none;
  }

  .product-facts__title {
    gap: 18px;
  }

  .product-benefits .product-facts__grid {
    align-items: start;
  }

  .product-benefits .product-facts__title {
    min-height: auto;
    justify-content: flex-start;
  }

  .product-benefits__stat {
    max-width: 274px;
    min-height: 65px;
    padding: 17px 18px;
    border-radius: 18px;
  }

  .product-benefits__stat--mobile {
    display: flex;
  }

  .product-benefits__stat--desktop {
    display: none;
  }

  .product-benefits__stat span {
     font-size: 14px;
    max-width: 103px;
  }

  .product-slider {
    --product-gap: 12px;
  }

  .product-card {
    padding: 0px;
  }
}

@media (max-width: 767px) {
  .product-hero__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      'visual'
      'title'
      'copy';
    gap: 18px;
    padding: 14px 0 20px;
  }

  .product-hero__title h1 {
    font-size: 32px;
    line-height: 0.92;
  }

  .product-hero__copy {
    gap: 20px;
  }

  .product-hero__lead {
    max-width: 347px;
    font-size: 18px;
    line-height: 1.1;
  }

  .product-hero__visual img {
    max-width: 247px;
  }

  .product-buy-controls {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .product-hero__action {
    width: 100%;
    min-height: 34px;
    padding: 10px 18px;
    font-size: 14px;
  }

  .product-overview {
    padding-top: 30px;
  }

  .product-overview__grid {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    padding: 14px 14px 16px;
  }

  .product-gallery__arrow {
    display: none;
  }

  .product-gallery__slide {
    min-height: 277px;
  }

  .product-gallery__slide img {
    max-width: 239px;
  }

  .product-gallery__dots {
    margin-top: 10px;
  }

  .product-components .product-section-head h2,
  .product-section-head h2,
  .product-facts__title h2 {
    font-size: 24px;
    line-height: 1;
  }

  .product-section-head {
    margin-bottom: 20px;
  }

  .product-benefits__stat {
    max-width: 274px;
  }

  .product-slider {
    --product-gap: 14px;
    --product-columns: 2;
  }

  .section--results .results-slide {
  grid-template-columns: 1fr;
  gap: 25px;
}
.section--results .results-slide__visual {
  justify-content: center;
}
.section--results .results-slide__copy h2 {
  margin: 0;
}
.results-slide__product {
  gap: 10px;
}
}
/* =========================================
   ВСПЛЫВАЮЩЕЕ ОКНО "ТОВАР ДОБАВЛЕН В КОРЗИНУ"
   ========================================= */

/* Общий контейнер всплывающего окна */
#custom_basket_success.popup-window {
  background: #ffffff !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 40px rgba(31, 27, 22, 0.12) !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden;
  font-family: inherit;
  min-width: 320px;
}

/* Шапка попапа (Заголовок) */
#custom_basket_success .popup-window-titlebar {
  background: transparent !important;
  height: auto !important;
  padding: 24px 24px 0 !important;
}

#custom_basket_success .popup-window-titlebar-text {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #201e22 !important;
  text-align: center;
  width: 100%;
  display: block;
  line-height: 1.2;
}

/* Иконка закрытия (крестик) */
#custom_basket_success .popup-window-close-icon {
  top: 16px !important;
  right: 16px !important;
  opacity: 0.5;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  background: transparent !important;
}
#custom_basket_success .popup-window-close-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Контентная часть */
#custom_basket_success .popup-window-content {
  background: transparent !important;
}

/* Жестко переопределяем инлайн-стили Битрикса для текста внутри */
#custom_basket_success .popup-window-content > div {
  padding: 12px 24px 24px !important;
  font-size: 15px !important;
  color: #666666 !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

/* Блок с кнопками */
#custom_basket_success .popup-window-buttons {
  padding: 0 24px 24px !important;
  display: flex !important;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  border-top: none !important;
  background: transparent !important;
}

/* Общие стили для обеих кнопок */
#custom_basket_success .popup-window-button {
  flex: 1;
  margin: 0 !important;
  height: 48px !important;
  line-height: 46px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  transition: all 0.2s ease !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-family: inherit;
}

/* Главная кнопка "Перейти в корзину" */
#custom_basket_success .popup-window-button-accept {
  background: #201e22 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}
#custom_basket_success .popup-window-button-accept:hover,
#custom_basket_success .popup-window-button-accept:focus {
  background: #918b82 !important;
  color: #ffffff !important;
}

/* Второстепенная кнопка "Продолжить" */
#custom_basket_success .popup-window-button-link {
  background: transparent !important;
  color: #201e22 !important;
  border: 1px solid rgba(32, 30, 34, 0.16) !important;
  box-shadow: none !important;
}
#custom_basket_success .popup-window-button-link:hover,
#custom_basket_success .popup-window-button-link:focus {
  background: rgba(32, 30, 34, 0.05) !important;
  border-color: #918b82 !important;
  color: #201e22 !important;
}
.product-hero__action svg {
  display: none;
}
.product-hero__action svg path {
  fill: #fff;
}
/* Адаптив для кнопок на смартфонах */
@media (max-width: 480px) {
  #custom_basket_success .popup-window-buttons {
    flex-direction: column;
  }
  #custom_basket_success .popup-window-button {
    width: 100% !important;
  }
  .product-hero__buy-block{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .product-quantity {
    height: 42px;
  }
  .product-buy-controls {
    flex-direction: row;
gap: 10px;
    align-items: center;
    width: fit-content;
  }
    .btn.product-hero__action {
      width: fit-content;
      padding: 5px 15px;
    }
  .product-hero__action svg {
    display: block;
    width: 30px;
    height: 30px;
  }
   .product-hero__action span {
    display: none;
   }
}
