/* swap: image left, text right */
.main_block-hero .parfume-bg_wrapper{
  left: 0;           /* было right:0 */
  right: auto;
}

.main_block-hero .text_wrapper{
  margin-left: auto; /* прижимаем к правому краю контейнера */
  width: 50%;        /* занимаем правую половину */
  max-width: 50%;
  position: relative;
  z-index: 2;        /* на всякий случай поверх картинки */
}

/* фон под текст, если вдруг пересечение */
.main_block-hero .parfume-bg_wrapper{ z-index: 1; }

.main_block-hero .text_wrapper {
    margin-left: 56%;
    width: 82%;
    max-width: 77%;
    position: relative;
    z-index: 2;
}

.main_block-hero .title {
    font-size: 48px !important;
    line-height: 57px;
}

.team-block_wrapper {
    margin-top: 150px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto !important;
}

.team-block-subtitle {
    font-size: 16px;
    line-height: 23px;
    opacity: 0.5;
    margin-bottom: 40px;
}

.team-block-title {
    font-size: 48px;
    color: #E6BF6B;
    margin-bottom: 70px;
}

.team-block-logoshape img {
    max-width: 130px;
}

.bestsellers_wrapper {
    margin-top: 100px !important;
}

.build-business-subtitle {
    font-size: 16px;
    opacity: 0.5;
    margin-bottom: 17px;
}

.build-business-title {
    font-size: 36px;
    margin-bottom: 60px;
    line-height: 38px;
}

.business-divider {
    width: 200px;
    background-color: #E6BF6B;
    height: 2px;
    margin-bottom: 70px;
}

.business-desc {
    color: #fff;
    font-size: 18px;
    line-height: 23px;
}
.build-business_wrapper{
  margin-top: 100px;
  /* фон + позиция + cover в одной записи */
  background: #0b0b0b url('../images/team-business-bg.jpg') center / cover no-repeat;
  min-height: 560px;
  position: relative;
}

/* лёгкая подложка для читаемости текста (по желанию) */
.build-business_wrapper::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.15));
  pointer-events: none;
}

@media (max-width: 768px){
  .build-business_wrapper{
    min-height: 380px;
    /* можно сдвинуть фокус фонового изображения под мобайл */
    background-position: 60% center;
  }
}

/* выравниваем контент по центру (вертикально) и вправо (горизонтально) */
.build_business{
  display: flex;
  align-items: center;     /* центр по высоте */
  justify-content: flex-end; /* к правой стороне */
  min-height: inherit;     /* наследуем высоту секции */
  padding: 60px 24px;
  position: relative;
  z-index: 1;              /* поверх затемнения */
}

/* сам текстовый блок — ограничим ширину */
.build-business-text-wrapper{
  max-width: 560px;        /* подправь при необходимости */
  width: 100%;
  position: relative;
  z-index: 1;
  /* если нужен правый край + правое выравнивание текста, раскомментируй: */
  /* text-align: right; */
}

/* гарантируем, что подложка под текстом ниже слоя контента */
.build-business_wrapper::before{ z-index: 0; }
.build-business_wrapper{ position: relative; }

/* опционально: на мобилках центрируем по ширине */
@media (max-width: 768px){
  .build_business{ justify-content: center; text-align: center; }
  .build-business-text-wrapper{ max-width: 90%; }
}


.quote_wrapper {
    margin-top: 100px !important;
}

.quote-text-wrapper-new {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
}

.quote_wrapper {
    padding-bottom: 0 !important;
    background: url(../images/team-quote.jpg) no-repeat !important;
    background-size: cover !important;
}


/* swap: image left, text right */
.main_block-hero .parfume-bg_wrapper{
  left: 0;           /* было right:0 */
  right: auto;
}

.main_block-hero .text_wrapper{
  margin-left: auto; /* прижимаем к правому краю контейнера */
  width: 50%;        /* занимаем правую половину */
  max-width: 50%;
  position: relative;
  z-index: 2;        /* на всякий случай поверх картинки */
}

/* фон под текст, если вдруг пересечение */
.main_block-hero .parfume-bg_wrapper{ z-index: 1; }

.main_block-hero .text_wrapper {
    margin-left: 56%;
    width: 82%;
    max-width: 77%;
    position: relative;
    z-index: 2;
}

.main_block-hero .title {
    font-size: 48px !important;
    line-height: 57px;
}

.team-block_wrapper {
    margin-top: 150px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto !important;
}

.team-block-subtitle {
    font-size: 16px;
    line-height: 23px;
    opacity: 0.5;
    margin-bottom: 40px;
}

.team-block-title {
    font-size: 48px;
    color: #E6BF6B;
    margin-bottom: 70px;
}

.team-block-logoshape img {
    max-width: 130px;
}

.bestsellers_wrapper {
    margin-top: 100px !important;
}

.build-business-subtitle {
    font-size: 16px;
    opacity: 0.5;
    margin-bottom: 17px;
}

.build-business-title {
    font-size: 36px;
    margin-bottom: 60px;
    line-height: 38px;
}

.business-divider {
    width: 200px;
    background-color: #E6BF6B;
    height: 2px;
    margin-bottom: 70px;
}

.business-desc {
    color: #fff;
    font-size: 18px;
    line-height: 23px;
}
.build-business_wrapper{
  margin-top: 100px;
  /* фон + позиция + cover в одной записи */
  background: #0b0b0b url('../images/team-business-bg.jpg') center / cover no-repeat;
  min-height: 560px;
  position: relative;
}

/* лёгкая подложка для читаемости текста (по желанию) */
.build-business_wrapper::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.15));
  pointer-events: none;
}

@media (max-width: 768px){
  .build-business_wrapper{
    min-height: 380px;
    /* можно сдвинуть фокус фонового изображения под мобайл */
    background-position: 60% center;
  }
}

/* выравниваем контент по центру (вертикально) и вправо (горизонтально) */
.build_business{
  display: flex;
  align-items: center;     /* центр по высоте */
  justify-content: flex-end; /* к правой стороне */
  min-height: inherit;     /* наследуем высоту секции */
  padding: 60px 24px;
  position: relative;
  z-index: 1;              /* поверх затемнения */
}

/* сам текстовый блок — ограничим ширину */
.build-business-text-wrapper{
  max-width: 560px;        /* подправь при необходимости */
  width: 100%;
  position: relative;
  z-index: 1;
  /* если нужен правый край + правое выравнивание текста, раскомментируй: */
  /* text-align: right; */
}

/* гарантируем, что подложка под текстом ниже слоя контента */
.build-business_wrapper::before{ z-index: 0; }
.build-business_wrapper{ position: relative; }

/* опционально: на мобилках центрируем по ширине */
@media (max-width: 768px){
  .build_business{ justify-content: center; text-align: center; }
  .build-business-text-wrapper{ max-width: 90%; }
}


.quote_wrapper {
    margin-top: 100px !important;
}

.quote-text-wrapper-new {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
}

.quote_wrapper {
    padding-bottom: 0 !important;
    background: url(../images/team-quote.jpg) no-repeat !important;
    background-size: cover !important;
}

/* ====== ADAPTIVE LAYOUT ====== */

/* --- Large tablets / small laptops --- */
@media (max-width: 1280px) {
  .main_block-hero .title { font-size: 42px !important; line-height: 1.18; }
  .main_block-hero .text_wrapper { margin-left: 54%; max-width: 80%; width: 80%; }
  .team-block-title { font-size: 42px; }
  .build-business-title { font-size: 32px; line-height: 1.15; }
  .bestsellers_wrapper { margin-top: 80px !important; }
}

/* --- Tablets landscape/portrait --- */
@media (max-width: 1024px) {
  /* Header: меню можно прокручивать по оси X */
  .header__menu {
    display: flex; gap: 22px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .header__menu::-webkit-scrollbar { display: none; }

  /* Hero: смещаем текст, чтобы не вылазил за картинку */
  .main_block-hero .text_wrapper { margin-left: 52%; max-width: 86%; width: 86%; }
  .main_block-hero .title { font-size: 38px !important; line-height: 1.18; }

  /* Team: уменьшаем отступы */
  .team-block_wrapper { margin-top: 120px !important; gap: 28px; }
  .team-block-title { font-size: 38px; margin-bottom: 48px; }

  /* Cards: 3 -> 2 колонки */
  .bestsellers .bestsellers-cards {
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px;
  }

  /* Build business */
  .build_business { padding: 56px 24px; }
  .build-business-title { font-size: 30px; }

  /* Quote: чуть ближе элементы */
  .quote-text-wrapper-new { gap: 24px; }
}

/* --- Phablets / big phones --- */
@media (max-width: 900px) {
  .main_block-hero .text_wrapper { margin-left: 50%; }
  .main_block-hero .title { font-size: 34px !important; }
  .team-block-title { font-size: 34px; }
}

/* --- Mobile base (<=768px) --- */
@media (max-width: 768px) {
  /* Контейнеры — вертикальные, центрируем */
  .main_block-hero .text_wrapper {
    margin-left: 0; max-width: 100%; width: 100%;
    padding: 0 20px; text-align: center;
  }
  .main_block .parfume-bg_wrapper img { width: 100%; height: auto; }

  .main_block-hero .title { font-size: 30px !important; line-height: 1.18; }
  .subtitle { display: inline-block; margin-bottom: 10px; }
  .title_line { margin: 10px auto 18px; display: block; }

  /* Team: стэк в колонку */
  .team-block_wrapper {
    flex-direction: column; align-items: center; text-align: center;
    gap: 22px; margin-top: 80px !important;
  }
  .team-block-title { margin-bottom: 28px; }
  .team-block-logoshape img { max-width: 100px; }

  /* Cards: 2 -> 1 колонка */
  .bestsellers .bestsellers-cards { grid-template-columns: 1fr; gap: 20px; }
  .bestsellers_wrapper { margin-top: 70px !important; }

  /* Build business: центрируем блок и уменьшаем отступы */
  .build_business { justify-content: center; text-align: center; padding: 44px 18px; }
  .build-business-text-wrapper { max-width: 92%; }
  .build-business-title { font-size: 28px; line-height: 1.16; margin-bottom: 36px; }
  .business-divider { width: 160px; margin: 28px auto 36px; }
  .business-desc { font-size: 16px; line-height: 1.35; }

  /* Quote: стэк и центр */
  .quote-text-wrapper-new {
    flex-direction: column; align-items: center; text-align: center; gap: 12px;
  }
  .quote_wrapper { background-position: center; }

}

/* --- Small phones (<=600px) --- */
@media (max-width: 600px) {
  .main_block-hero .title { font-size: 26px !important; }
  .text_desc { font-size: 15px; line-height: 1.4; padding: 0 6px; }

  .team-block-subtitle { margin-bottom: 18px; }
  .team-block-title { font-size: 28px; }

  .build-business-title { font-size: 24px; }
  .business-desc { font-size: 15px; }

  .main_block-hero .parfume-bg_wrapper {
    order: 2;
  }

  .main_block-hero .title {
    font-size: 32px !important;
    }

    .main_block-hero .text_wrapper {
        margin-top: 150px !important;
    }

    .main_block-hero .parfume-bg_wrapper img {
        width: 110%;
    }
}

/* --- Tiny phones (<=480px) --- */
@media (max-width: 480px) {
  /* Поджимаем типографику и отступы */
  .main_block-hero .title { font-size: 22px !important; }
  .subtitle { font-size: 12px; }
  .team-block-title { font-size: 24px; }
  .team-block-subtitle { font-size: 14px; }

  /* Уменьшим внешний отступ секций */
  .bestsellers_wrapper,
  .quote_wrapper { margin-top: 60px !important; }

  /* Хедер: меню — более компактные кликабельные зоны */
  .header__menu a { padding: 6px 0; font-size: 13px; }

  /* Кнопка */
  .header__phone a { font-size: 13px; }

      .main_block-hero .title {
        font-size: 33px !important;
    }

    .team-block_wrapper {
        margin-top: -50px !important;
    }

        .quote-text-wrapper-new {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
        gap: 12px;
    }

    .quote-logo {
        display: none;
    }

    .quote-title {
        margin-bottom: 10px !important;
    }
}

/* --- HiDPI мелкая корректировка изображений --- */
@media (max-width: 768px) and (min-resolution: 2dppx) {
  .bestsellers-card img,
  .main_block-hero .parfume-bg_wrapper img { image-rendering: -webkit-optimize-contrast; }
}
