﻿.machine-details-page__hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-image: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.machine-details-page__buy-form {
  margin-top: 20px;
}

.machine-details-page__offer-select {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -10000;
  pointer-events: none;
}

/* === фикс липкого хедера === */
:root { --header-h: 80px; }          /* базовая высота шапки; можно поправить */
html { scroll-padding-top: var(--header-h); }

/* ── Hero карточки аромамашины ───────────────────────────── */
.section--product-hero{
  padding: calc(var(--header-h) + 24px) 0 0; /* отступ сверху = высота хедера + запас */
  background:#342c28;
  overflow:hidden;          /* предотвращаем схлопывание внешних маргинов */
  position:relative;
  z-index:1;
  margin-top: 96px; 
}

.section {
    padding-top: 0;
    
} 


.product-hero{
  display:flex;
  gap:48px;
  align-items:center;
}

.product-hero__image{
  flex:0 0 50%;
  max-width:50%;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius:0;
  overflow:hidden;
}
.product-hero__image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.product-hero__info{
  flex:1;
  color:#fff;
}

.product-hero__title{
  margin:0 0 16px;          /* убрали верхний внешний margin, чтобы не «липло» */
  font-size:36px;
  line-height:1.2;
}

.product-hero__descr{
  margin:0 0 24px;
  font-size:16px;
  opacity:.9;
}





.product-hero__var-label{
  display:inline-flex;
  gap:8px;
  align-items:center;
  font-size:14px;
}
.product-hero__select{
  min-width:220px;
  padding:10px 12px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.2);
  background:rgba(0,0,0,.15);
  color:#fff;
}


/* Заголовок «Описание» в hero */
.product-hero__subtitle{
  margin: 24px 0 12px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  text-align: left;
}

/* Текст описания в hero */
.product-hero__rich{
  font-size: 16px;
  line-height: 1.6;
  opacity: .95;
}

/* Цена слева от кнопки */
.product-hero__price{
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  margin-right: 16px;
}

/* Ряд с ценой и кнопкой */
.product-hero__buy-row{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Описание под кнопкой */
.product-hero__desc{ margin-top: 20px; }
.product-hero__rich{ font-size:16px; line-height:1.6; opacity:.95; }
.product-hero__rich p{ margin:0 0 12px; }
.product-hero__rich ul{ margin: 0 0 12px 18px; padding: 0; }
.product-hero__rich li{ margin: 6px 0; }




.site-btn--card {
    border-radius: 6px;
    margin-left: 48px;
}





/* меняем местами колонки только в нужном блоке */
.section--product-details .product.product--reverse {
  display: flex;                 /* гарантируем флекс-контейнер */
  gap: 0;                     /* если нужен отступ между колонками */
  align-items: center;
}

/* порядок колонок: характеристики слева, слайдер справа */
.section--product-details .product.product--reverse .product__col { order: 1; }
.section--product-details .product.product--reverse .product__col--image { order: 2; }


.product__slider {
    border-radius: 0 !important;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-left: 44px !important;
}

.swiper {
    
}



.product__section-title--plain {
  
  text-align: left !important;
  display: block;
  margin-left: 48px !important;
  margin-right: auto !important;
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.product__section-title--plain::after { display: none !important; }


.section--product-details .product .product__col > table {
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.section--product-details .product .product__col .product__section-title--plain {
  width: 100%;
}

.section--product-details table {
  border-top: 1px solid rgba(255,255,255,.2);
}



.product:not(:last-child) {
    margin-bottom: 2px;
}

.section--product-details .product[id="2"] {
    margin-top: 24px;
    align-items: flex-start;
}

.section--product-details .product[id="2"] .product__col--image {
    margin-top: 24px;
    padding-top: 0;
}

.section--product-details .product[id="2"] > .product__col:last-child {
    margin-top: 24px;
}





.product__section-title--tasks{
  text-align: left !important;
  margin: 0 0 24px;
  padding: 0;
  font-size: 26px;          /* подгони при необходимости: 38–44px */
  line-height: 1.2;
  font-weight: 800;
}
.product__section-title--tasks::after{ display:none !important; } /* убрать оранжевую полосу */

/* Текстовый блок */
.product__descr--tasks{
  font-size: 18px;          /* как в макете; при желании 17–19 */
  line-height: 1.6;
}

/* Подзаголовки групп */
.product__descr--tasks .tasks-group{
  margin: 16px 0 8px;
  font-size: 20px;
  font-weight: 700;
}

/* Список без стандартных буллетов, с длинным тире */
.product__descr--tasks ul{
  margin: 0 0 20px 0;
  padding: 0;
  list-style: none;
}
.product__descr--tasks li{
  margin: 6px 0;
  position: relative;
  padding-left: 0;          /* без отступа под маркер */
}
.product__descr--tasks li::before{
  content: "—";             /* длинное тире */
  margin-right: 8px;
  opacity: .7;
}


.product--two-cols {
    display: flex;
    
    align-items: center;
    margin-bottom: 60px;
}

.product__col--text {
    flex: 1 1 50%;
    padding-right: 40px;
}

.product__col--image {
    flex: 1 1 50%;
    text-align: center;
}

.product__col--image img {
    max-width: 100%;
    height: auto;
    border-radius: 0 !important;
}



.product__section-title--tasks::after {
    display: none;
}

.product__descr--tasks {
    font-size: 16px;
    line-height: 1.6;
}

.section--product-details .product,
.product--two-cols {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .45s ease, transform .45s ease;
  will-change: opacity, transform;
}

/* финал: виден и на месте */
.section--product-details .product.active,
.product--two-cols.active {
  opacity: 1;
  transform: translateY(0);
}



.product table {
    margin-left: 48px;
    width: 100%;
    max-width: 500px;
    font-size: 16px;
}


.details {
    margin-right:0;
    margin-left: 0 !important;
    margin-right: 42px;
    }

.product__slider-slide {
    
    border-radius: 0px;
}



/* секция шагов */
.product__section-title--center{
  display:block;
  max-width: 980px;              /* ограничиваем ширину, чтобы было 2 строки как в макете */
  margin: 0 auto 28px;           /* по центру контейнера */
  text-align: center;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  
  text-wrap: balance;            
}
.product__section-title--center::after{
  display:none !important;       
}



/* маленькие оранжевые "кнопки"-подзаголовки */
.product__section-subtitle{
  /* центрируем сам элемент */
  display: block;                 /* было inline-block */
  width: max-content;             /* ширина по содержимому */
  margin: 8px auto 16px;          /* auto по бокам = по центру */

  padding: 8px 16px;
  border-radius: 6px;
  background:#ff6e25;
  color:#fff;
  font-size:16px;
  line-height:1;
  font-weight:700;
  text-align:center;              /* текст внутри по центру */
}








/* сетка с карточками по 3 в ряд */
.product-steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 28px;
  margin-bottom: 28px;
  width: 90%;
}

/* карточка шага */
.product-step{
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-step:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

/* изображение */
.product-step > img{
  display:block;
  width:100%;
  height:200px;            /* одинаковая высота как в макете */
  object-fit: cover;
}

/* подписи */
.product-step__title{
  margin: 12px 14px 14px;
  text-align:center;
  font-weight:700;
  font-size:16px;
  line-height:1.4;
}
.product-step__descr{
  margin: -8px 14px 14px;  /* строка описания под заголовком у верхних трёх карточек */
  text-align:center;
  opacity:.8;
  font-size:14px;
  line-height:1.35;
}


.dst {
       width: 100%; 
       margin-top: 64px;
       display: flex;
       justify-content: center;
       flex-direction: column;
       align-items: center;
    }
    
    
    
    
.text2 {
    margin-right: 0 !important;
    }


/* Секция сервиса */
.section--service{
  padding: 48px 0 56px;
  border-top: 1px solid rgba(255,255,255,.08);   /* тонкая линия сверху как на макете */
}

.section--service .container{
  position: relative;              /* якорь для псевдо-элемента */
}
.section--service .container::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;                        /* линия по ширине контейнера */
  bottom: 0;                       /* прямо у нижней границы секции */
  height: 1px;
  background: rgba(255,255,255,.08);
  pointer-events: none;
  bottom: -36px;  
}

.rent__inner {
    padding-top: 64px;
}



.service__title{
  margin: 0 0 28px;
  text-align: center;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
}
.service__title::after{ display: none; } /* на всякий случай убираем декоративную полосу */

/* Сетка из 4 карточек */
.service__grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
  text-align: center;
}

/* Элементы */
.service__item{ padding: 8px 12px; }
.service__icon{
  display:block;
  margin: 0 auto 12px;
  width: 72px; height: 72px;        /* размер иконок по макету */
  object-fit: contain;
}
.service__name{
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}
.service__descr{
  font-size: 14px;
  line-height: 1.45;
  opacity: .75;
  max-width: 260px;
  margin: 0 auto;
}


.product__section-title::after {
    height: 0;
    
}

.product__section-title--left {
    margin-right: auto;
    width: 60%;
}
.for_pc {
    display: block;
    }

.for_mob {
    display: none;
    }
    
    
/* =========================
   МОБИЛЬНЫЕ СТИЛИ
   ========================= */
   
/* планшеты и уже */
@media (max-width: 1024px) {
  .section--product-details .product[id="2"] {
    margin-top: 0;
  }

  .section--product-details .product[id="2"] .product__col--image {
    margin-top: 0;
    padding-top: 0;
  }

  .section--product-details .product[id="2"] > .product__col:last-child {
    margin-top: 0;
  }
  /* общие отступы секций */
  .section { padding-top: 0; }

  /* HERO */
  .section--product-hero { padding: calc(var(--header-h) + 12px) 0 0; }
  
  
 /* Раскладка по областям */
  .product-hero__title   { grid-area: title;  margin-bottom: 0; }
  .product-hero__image   { grid-area: image; }
  .product-hero__descr   { grid-area: descr; }
  ._choose_offer_form    { grid-area: form;  }
  .product-hero__desc    { grid-area: desc;  } /* если используется */

  /* Фото на всю ширину */
  .product-hero__image{
    width: 100%;
    max-width: none;
  }
  .product-hero__image img{
    display: block;
    width: 100%;
    height: auto;
    min-height: 360px;      /* подгони при желании */
    object-fit: cover;
  }
  
  .section--product-hero{
      padding: calc(var(--header-h) + 24px) 0 0; /* отступ сверху = высота хедера + запас */
      background:#342c28;
      overflow:hidden;          /* предотвращаем схлопывание внешних маргинов */
      position:relative;
      z-index:1;
      margin-top: 0; 
    }




/* Цена + кнопка в одну строку */
  .product-hero__buy-row{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }
  .product-hero__price{ margin: 0; }
  .site-btn--card{ margin-left: 0; width: auto; }


  
  


  /* Слайдеры/галереи */
  .swiper{ margin-left: 0 !important; }
  .product__slider{
    width: 100%;
    max-width: none;
    height: auto;              /* убираем фиксированную высоту */
  }
  .product__slider .swiper,
  .product__slider .swiper-wrapper,
  .product__slider .swiper-slide{
    width: 100% !important;
    height: auto;
  }
  .product__slider img{ width: 100%; height: auto; object-fit: cover; }

  /* Двухколоночные блоки (описание/картинка) */
  .product--two-cols{ flex-direction: column; align-items: stretch; }
  .product__col--text{ padding-right: 0; margin-bottom: 20px; }
  .product__col--image{ text-align: left; }
  .product--two-cols .product__col--image{
    margin-top: 25px;
    margin-bottom: 25px;
  }

  /* Характеристики (таблица) */
  .product__section-title--plain{
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .product table{
    margin-left: 0;
    max-width: none;
    width: 100%;
  }
  .details{ margin-left: 0 !important; margin-right: 0; }

  /* Заголовок блоков по центру */
  .product__section-title--center{
    font-size: 30px;
    margin: 0 auto 24px;
  }

  /* “Оранжевые ярлыки” */
  .product__section-subtitle{
    font-size: 15px;
    padding: 7px 14px;
  }

  /* Сетка шагов: 3 -> 2 */
  .product-steps{
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
    width: 100%;
  }
  .product-step > img{ height: 180px; }

  /* Сервис: 4 -> 2 */
  .service__grid{ grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .service__title{ font-size: 28px; }
}

/* телефоны (портрет) */
@media (max-width: 768px) {

  /* HERO */
  .section--product-hero{
    padding-top: 0;
  }
  .section--product-hero .container{
    padding-left: 0;
    padding-right: 0;
  }
  .product-hero__title{
    font-size: 26px;
    margin-top: 35px;
    margin-bottom: 50px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .product-hero__subtitle{ font-size: 18px; }
  .product-hero__price{ font-size: 20px; }
  .product-hero__image{
    width: 100%;
    max-width: 100%;
    margin: 0;
    aspect-ratio: auto;
    height: auto;
  }
  .product-hero__image img{
    width: 100%;
    height: auto;
    min-height: 320px;
  }
  .product-hero__info{
    width: 100%;
    margin-top: 25px;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }

  /* Заголовки секций */
  .product__section-title--center{ font-size: 26px; width: 100%; }
  .product__section-title--tasks{ font-size: 22px; }

  /* Сетка шагов: 2 -> 1 */
  .product-steps{ grid-template-columns: 1fr; gap: 16px; }
  .product-step > img{ height: 200px; }

  /* Сервис: 2 -> 1 */
  .service__grid{ grid-template-columns: 1fr; gap: 20px; }
  .service__title{ font-size: 26px; }
  .service__icon{ width: 64px; height: 64px; }

  /* Заголовки “слева” растягиваем на ширину экрана */
  .product__section-title--left{
    width: 100%;
    margin-right: 0;
    text-align: center;
  }
  
  .product-hero {
    display: flex;
    gap: 0;
    align-items: stretch;
    flex-direction: column;
  
}

.for_pc {
    display: none;
    }

.for_mob {
    display: block;
    }

.section--product-details .product.product--reverse{
    flex-direction: column;          /* колонками вниз */
  }
  .section--product-details .product.product--reverse .product__col--image{
    order: 1 !important;             /* фото вверх */
    margin-bottom: 16px;
    margin-top: 16px; 
   
  }
  .section--product-details .product.product--reverse .product__col:not(.product__col--image){
    order: 2 !important;             /* характеристики ниже */
  }

  .section--product-details .product[id="1"] .product__col--image{
    margin-top: 25px;
    margin-bottom: 25px;
  }

  .product--two-cols .product__col--image{
    margin-top: 25px;
    margin-bottom: 25px;
  }

}





/* компактные телефоны */
@media (max-width: 480px) {

  /* HERO — кнопка под ценой во всю ширину */
  .product-hero__buy-row{
    display: flex;
    flex-direction: row;      /* вместо column */
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;        /* не переносим, пока позволяет ширина */
  }

  .product-hero__price{
    margin: 0;
    white-space: nowrap;      /* чтобы «₽» не падал на новую строку */
    font-size: 20px;          /* при желании подгони размер */
  }

  .site-btn--card{
    width: auto;              /* убрать 100% */
    flex: 0 0 auto;           /* не растягивать */
    white-space: nowrap;      /* текст в одну строку */
    padding: 10px 14px;       /* компактнее */
    font-size: 14px;          /* компактнее */
    line-height: 1;           /* плотнее */
    border-radius: 6px;
    margin-left: 0;           /* на всякий случай */
  }

  .site-btn--card{ width: 100%; }
  .product-hero__title{ font-size: 24px; }
  .product-hero__subtitle{ font-size: 17px; }


  /* Текстовые блоки */
  .product__descr--tasks{ font-size: 15px; line-height: 1.55; }

  /* Сервис — типографика помельче */
  .service__name{ font-size: 18px; }
  .service__descr{ font-size: 14px; }

  /* Оранжевые ярлыки */
  .product__section-subtitle{ font-size: 14px; padding: 6px 12px; }
  
  .product-hero__price{ font-size: 22px; }
  .product-hero__image,
  .machine-details-page__hero-image{
    aspect-ratio: auto;
    height: auto;
  }
  .product-hero__image img{ min-height: auto; height: auto; }
  
  
  ._shopaholic-product-wrapper {
      padding: 0;
      }
  
  .product__slider img {
    max-height: 200px;
    border-radius: 24px !important;
    }

  .section--product-details .product[id="1"] .product__slider img,
  .section--product-details .product[id="2"] .product__slider img {
    height: 280px;
    max-height: none;
    object-fit: cover;
  }
  
   
  .product__col--image img {
    max-height: 200px;
    border-radius: 24px !important;
    }

  
  
  
}





/* ==== Только для блока рекомендаций на странице машины ==== */
.products--recommended { margin-top: 10px; }

#products-recommended {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#products-recommended .products__list-item {
  margin: 5px;
  width: auto;
  background-color: #231E1B;
  border-radius: 10px;
  overflow: hidden;
  padding: 0 0 120px;
  position: relative;
}

#products-recommended .products__list-link {
  display: block;
  text-align: center;
  overflow: hidden;
}

#products-recommended .products__list-img-wrapper {
  margin: 0 auto;
  padding: 0 1px;
  height: 500px;
  min-height: 0;
  max-height: none;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

#products-recommended .products__list-img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  transition: all 0.3s;
  pointer-events: none;
  border-radius: 18px;
  margin: 0 auto;
}

#products-recommended .products__list-link:hover .products__list-img {
  transform: scale(1.03);
}

#products-recommended .products__list-link:hover .products__list-img--machine {
  transform: scale(1);
}

#products-recommended .products__list-title {
  margin: 20px 0 5px;
  font-size: 26px;
  text-align: center;
  color: #fff;
  font-weight: 500;
}

#products-recommended .products__list-composition {
  font-size: 14px;
  color: #999;
  margin: 5px 0;
}

#products-recommended .products__list-price {
  display: block;
  font-size: 18px;
  text-align: center;
  /*color: rgba(255, 255, 255, 0.5);*/
}

#products-recommended .products__list-price--old {
  display: inline-block;
  font-size: 16px !important;
  opacity: .6;
  text-decoration: line-through;
  margin-right: 8px;
}

#products-recommended .product__price-row {
  display: flex;
  justify-content: space-around;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}

#products-recommended .products__list-actions {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  width: 100%;
}

#products-recommended .product__add-to-cart-btn {
  display: block;
  width: 90%;
  margin: 16px auto 0;
  padding: 18px 0;
  font-size: 18px;
}

@media (max-width: 1200px) {
  #products-recommended { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #products-recommended .products__list-item {
    margin: 5px 0;
    padding-bottom: 128px !important;
    border-radius: 12px;
  }

  #products-recommended .products__list-img-wrapper {
    min-height: 300px;
    height: 300px;
    padding-top: 18px;
    box-sizing: border-box;
    border-radius: 12px;
  }

  #products-recommended .products__list-img-wrapper img,
  #products-recommended .products__list-img {
    max-width: 100%;
    height: auto;
    max-height: 191px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
  }

  #products-recommended .products__list-title {
    margin: 10px 0 5px;
    font-size: 20px;
  }

  #products-recommended .products__list-composition {
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 8px 12px 8px !important;
    overflow: hidden;
    line-height: 1.35;
    text-overflow: ellipsis;
    min-height: 4.05em !important;
    max-height: 4.05em !important;
  }

  #products-recommended .product__price-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column-reverse;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
  }
}

@media (max-width: 576px) {
  #products-recommended {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  #products-recommended .products__list-title {
    font-size: 15px;
  }

  #products-recommended .product__add-to-cart-btn {
    font-size: 14px;
    padding: 12px 0;
  }
  .product-hero__descr{
  margin:25px 0 24px;
  
  
}
}

@media (max-width: 480px) {
  #products-recommended .product__price-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column-reverse;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 12px;
  }
  .section--product-details .product[id="2"] {
    margin-top: 24px;
  }
  .product__section-title--tasks{
  
  margin: 24px 0 24px;
 
}



}








