/* =============================================
   QUOTE SECTION — Блок с цитатой
   ============================================= */

.quote-section {
    position: relative;
    width: 100%;
    margin: 160px 0 60px 0;
}


.quote-person > .quote-section {
    margin: 0 0 120px 0;
}

.quote-section__inner {
    position: relative;
    min-height: 543px;
    max-width: 1540px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Фоновое изображение */
/* Фоновое изображение */
.quote-section__background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1620px; /* Фиксированная ширина */
    height: 100%; /* Высота по контейнеру */
    max-height: 543px;
    z-index: 0;
    pointer-events: none;
}
/* слой с узором */
.quote-section__patterns {
    position: absolute;
    top: -20px;
    left: -23%;
    z-index: 10;
    pointer-events: none;
}

.quote-section__patterns-img{
  height: 598px;
  width: auto;
  display: block;
}
.quote-section__bg-image {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Растягивает/сжимает по контейнеру */
    display: block;
}

/* Контент цитаты */
.quote-section__content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    width: 100%;
    padding: 45px 40px 45px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Надпись "Цитировать" */
.quote-section__label {
    color: #5F5F5F;
    font-family: "tt-commons-pro", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 300;
    line-height: 25.6px;
    text-align: center;
    padding-bottom: 30px;
    text-transform: uppercase;
}

/* Сама цитата */
.quote-section__text {
    width: 100%;
    max-width: 1280px;
    color: #222322;
    text-align: center;
    font-family: "PT Astra Serif", serif;
    font-size: 36px;
    font-style: italic;
    font-weight: 700;
    line-height: 120%;
    margin: 0;
}

/* Автор цитаты */
.quote-section__author {
    color: #222322;
    font-family: "tt-commons-pro", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 300;
    line-height: 25.6px;
    text-align: center;
}


/* =============================================
   RESPONSIVE
   ============================================= */

/* ===== 1540px ===== */
@media (max-width: 1540px) {
    .quote-section__inner {
        padding: 0 40px;
    }
    
    .quote-section__background {
        width: 100%;
        max-width: 100%;
    }
    
    /* Паттерны привязываем к левому краю контента */
    .quote-section__patterns {

     left: -20%;
    }

        .quote-section__content {
        max-width: 1100px;
        padding-left: 120px; /* Место для мыши */
    }
}

/* ===== 1400px ===== */
@media (max-width: 1400px) {
    .quote-section__content {
        max-width: 900px;
        padding-left: 120px; /* Место для мыши */
    }
    
    .quote-section__patterns {
            left: -12%;
            top: 90px;
    }
    


      .quote-section__patterns-img {
        height: 420px;
    }
}

/* ===== 1200px ===== */
@media (max-width: 1200px) {
    .quote-section {
        margin: 120px 0 50px 0;
    }
    
    .quote-section__inner {
        min-height: 640px;
    }
    
    .quote-section__background {
        max-height: 640px;
    }
    
    .quote-section__content {
        max-width: 600px;
        padding-left: 80px;
    }
    
    .quote-section__text {
        font-size: 26px;
    }
    

        .quote-section__patterns {
            left: -15%;
            top: 30px;
    }
    
    .quote-section__patterns-img {
        height: 420px;
    }
}

/* ===== 1024px — планшет ===== */
@media (max-width: 1024px) {
    .quote-section {
        margin: 100px 0 40px 0;
    }
    
    .quote-section__inner {
        min-height: 640px;
        padding: 0 40px;
    }
    
    .quote-section__background {
        max-height: 640px;
    }
    
    .quote-section__content {
        max-width: 470px; /* Зона цитаты 470px */
        padding: 60px 20px;
        padding-left: 20px; /* Убираем отступ, паттерны внизу */
        gap: 60px;
    }
    
    .quote-section__text {
        font-size: 26px;
    }
    
    .quote-section__label {
        padding-bottom: 24px;
    }
    
    /* Паттерны — слева снизу, мышь 385px */


           .quote-section__patterns {
            left: -13%;
            top: 360px;
    }
    
    .quote-section__patterns-img {
        height: 385px;
    }
}

/* ===== 850px ===== */
@media (max-width: 850px) {
    .quote-section__inner {
        min-height: 640px;
        padding: 0 24px;
    }
    
    .quote-section__background {
        max-height: 640px;
    }
    
    .quote-section__content {
        max-width: 420px;
        padding: 50px 16px;
    }
    
    .quote-section__text {
        font-size: 26px;
    }
    
           .quote-section__patterns {
            left: -13%;
            top: 360px;
    }
    
    .quote-section__patterns-img {
        height: 340px;
    }
}

/* ===== 768px ===== */
@media (max-width: 768px) {
    .quote-section {
        margin: 80px 0 30px 0;
    }
    
    .quote-section__inner {
        min-height: 640px;
    }
    
    .quote-section__background {
        max-height: 640px;
    }
    
    .quote-section__content {
        max-width: 380px;
        padding: 40px 16px;
       
    }
    
    .quote-section__text {
        font-size: 26px;
    }
    
    .quote-section__label {
        padding-bottom: 20px;
    }
    
    .quote-section__author {
        font-size: 16px;
    }
    
           .quote-section__patterns {
            left: -14%;
            top: 340px;
    }
    
    .quote-section__patterns-img {
        height: 300px;
    }
}

/* ===== 680px ===== */
@media (max-width: 680px) {
    .quote-section__inner {
        min-height: 640px;
        padding: 0 16px;
    }
    
    .quote-section__background {
        max-height: 640px;
    }
    
    .quote-section__content {
        max-width: 340px;
    }
    
    .quote-section__text {
        font-size: 26px;
    }
    
    .quote-section__patterns-img {
        height: 280px;
    }

              .quote-section__patterns {
            left: -14%;
            top: 360px;
    }
}

/* ===== 580px — мобилка ===== */
@media (max-width: 580px) {
    .quote-section {
        margin: 60px 0 24px 0;
    }
    
    .quote-section__inner {
        min-height: 370px;
        align-items: flex-start;
    }
    
    .quote-section__background {
        max-height: 370px;
    }
    
    .quote-section__content {
        max-width: calc(100% - 32px); /* Почти по краям */
        padding: 60px 16px;
        gap: 35px;
    }
    
    .quote-section__text {
        font-size: 18px;
    }
    
    .quote-section__label {
        padding-bottom: 0;
    }
    
    .quote-section__author {
        font-size: 14px;
    }
    
    /* Паттерны — снизу по центру, мышь 325px */
    .quote-section__patterns {
        left: -13%;

        top: 300px;
    }
    
    .quote-section__patterns-img {
        height: 280px;
    }
}

/* ===== 480px ===== */
@media (max-width: 480px) {
    .quote-section__inner {
        min-height: 370px;
        padding: 0 12px;
    }
    
    .quote-section__background {
        max-height: 370px;
    }
    
    .quote-section__content {
        max-width: calc(100% - 24px);
        padding: 50px 12px;
    }
    
    .quote-section__text {
        font-size: 18px;
    }
    
    .quote-section__patterns {
        top: 300px;
    }
    
    .quote-section__patterns-img {
        height: 280px;
    }
}

/* ===== 400px ===== */
@media (max-width: 400px) {
    .quote-section__inner {
        min-height: 370px;
    }
    
    .quote-section__background {
        max-height: 370px;
    }
    
    .quote-section__content {
        padding: 50px 10px;
        gap: 35px;
    }
    
    .quote-section__text {
        font-size: 18px;
    }
    
    .quote-section__label {
        padding-bottom: 0;
    }
    
    .quote-section__author {
        font-size: 14px;
    }
    
    .quote-section__patterns {
        top: 300px;
    }
    
    .quote-section__patterns-img {
        height: 240px;
    }
}

/* ===== 360px ===== */
@media (max-width: 360px) {
    .quote-section__inner {
        min-height: 370px;
    }
    
    .quote-section__background {
        max-height: 370px;
    }
    
    .quote-section__text {
        font-size: 18px;
    }
    
    .quote-section__patterns {
        top: 315px;
    }
    
    .quote-section__patterns-img {
        height: 200px;
    }
}

/* ===== quote-person модификатор ===== */
@media (max-width: 1024px) {
    .quote-person > .quote-section {
        margin: 0 0 80px 0;
    }
}

@media (max-width: 580px) {
    .quote-person > .quote-section {
        margin: 0 0 60px 0;
    }
}