#about-us-section{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-5xl);
    width: 85%;
    margin-top: var(--space-4xl);

}

#about-us-section-text{
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}
#about-us-photo{
    width: 45%;
    height: 100%; /* або задана висота */
    object-fit: contain; /* або cover, якщо потрібно заповнити блок без спотворення пропорцій */
}

.title{
    font-size: var(--fs-xl);
}

#about-us-section-text p{
    font-size: var(--fs-s);
}

#values-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
    margin-top: var(--space-m);
}

#values-list {
    display: flex;
    flex-direction: row;
    max-width: 90%;
}

.values-list-item{
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    border-right: 1px solid #4e5b3166;
    padding: 0 var(--space-s);
    min-width: 320px;
}

.values-list-item:last-child {
    border-right: none;
}


.values-title{
    font-weight: var(--fw-bold);
    font-size: var(--space-m);
    color: var(--text-dark-main);
}

.values-description{
    font-size: var(--space-m);
    color: var(--text-dark-main);
}



#FAQ{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
    margin-top: var(--space-4xl);
    width: 80%;
}

#questions-list{
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
    width: 85%;
    list-style: none;
}

.questions-list-item{
    width: 100%;
}



/* Внутрішні відступи контейнера details */
.FAQ-item {
    width: 100%;
    box-sizing: border-box;
    background-color: var(--bg-white-norm);
    border: 1px solid var(--text-bodily);
    border-radius: var(--br-m);
    padding: var(--space-s) var(--space-m);
}

.FAQ-question {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-m);
    cursor: pointer;
    font-size: var(--fs-s);
    color: var(--text-dark-main);
    list-style: none; /* Для Safari / Firefox */
}

.FAQ-question::-webkit-details-marker {
    display: none; /* Для Chrome / WebKit */
}

.FAQ-icon {
    flex-shrink: 0;
    transform-origin: center;
    transition: transform var(--transition-base);
    width: 32px;
    height: 32px;
}

.FAQ-answer {
    font-size: var(--fs-s);
    color: var(--text-dark-main);
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* --- СТАН ПРИ РОЗКРИТТІ (details[open]) --- */

/* 1. Поворот стрілочки */
.FAQ-item[open] .FAQ-icon {
    transform: rotate(180deg);
}

/* 2. Лінія на всю ширину картки та правильні відступи */
.FAQ-item[open] .FAQ-answer {
    border-top: 1px solid var(--text-bodily);
    
    /* Негативний margin розтягує лінію на всю ширину від краю до краю */
    margin-left: calc(-1 * var(--space-m));
    margin-right: calc(-1 * var(--space-m));
    margin-top: var(--space-s);
    
    /* Повертаємо внутрішній відступ для тексту відповіді */
    padding-left: var(--space-m);
    padding-right: var(--space-m);
    padding-top: var(--space-s);
}

#shop-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
    margin-top: var(--space-4xl);
    width: 100%;
}


#shop-list{
    /* Сітка з фіксованою шириною колонки: показуємо лише 1-й рядок */
    display: grid;
    grid-template-columns: repeat(auto-fill, calc(160px + 2 * var(--space-s) + 2 * var(--space-3xs)));
    grid-template-rows: auto;
    grid-auto-rows: 0;      /* усі наступні рядки мають нульову висоту */
    column-gap: var(--space-m);
    row-gap: 0;
    width: 100%;
    justify-content: center;
    overflow: hidden;       /* ховає товари, що не вмістились у 1 рядок */
    transition: var(--transition-base);
}

.shop-list-wrapper{
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    width: 90%;
}

.shop-all-btn{
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: var(--space-3xs);
    color: var(--text-dark-main);
    font-size: var(--fs-s);
    font-weight: var(--fw-bold);
    transition: var(--transition-base);
}

.shop-all-icon{
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.shop-all-btn:hover .shop-all-icon{
    transform: translateX(3px);
}

.hover-container{
    padding: var(--space-3xs);
}

.hover-container:hover .product-content-wrapper{
    transform: scale(1.02);
}

.product-content-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-s);
    gap: var(--space-3xs);
    background-color: var(--bg-white-norm);
    border-radius: var(--br-s);
    box-shadow: var(--inner-shadow-bl);
    box-shadow: var(--drop-shadow-green);
    transition: var(--transition-base); /* додано, щоб transform анімувався плавно */
}

.img-product {
    width: 100%;
    max-width: 160px;
    
    /* Робить елемент ідеальним квадратом 1:1 на будь-якому екрані */
    aspect-ratio: 1 / 1; 
    
    /* Обрізає зображення так, щоб воно повністю заповнило квадрат */
    object-fit: cover; 
    
    /* Центрує обрізку по центру (щоб важливі деталі не зникали) */
    object-position: center; 
    
    display: block;
}

.product-text{
    display: flex;
    flex-direction: column;
    gap: var(--space-3xs);
    max-width: 160px;
    margin-right: auto;
    margin-top: var(--space-3xs);
}

.product-title {
    color: var(--text-dark-main);
    font-size: var(--fs-xs);    
    width: 100%;                
    
    /* Задаємо висоту рівно на 2 рядки */
    min-height: 2.6em; /* або height: 2.6em; */
    line-height: 1.3;
    
    /* Ваші поточні стилі для обрізання тексту */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price{
    color: var(--text-dark-main);
    font-weight: var(--fw-bold);
    font-size: var(--fs-s);    
    width: 100%;                
    overflow-wrap: break-word;  
    word-break: break-word;
}

.container-all-in-page > .container{
    margin-top: var(--space-3xl);

    padding-bottom: var(--space-5xl);
}

.feedback-carousel{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-m);
}

.feedback-viewport{
    overflow: hidden;
    width: 100%;
}

.feedback-track{
    display: flex;
    flex-direction: row;
    gap: var(--space-m);
    transition: transform var(--transition-base);
}

.feedback-slide{
    flex: 0 0 calc((100% - 2 * var(--space-m)) / 3);
    max-width: calc((100% - 2 * var(--space-m)) / 3);
}

.feedback-slide img{
    display: block;
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--br-s);
}

.icon-arrow {
    width: 56px;
    height: 56px;
    display: block;
}

.carousel-btn{
    flex-shrink: 0;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
}

.carousel-btn:disabled{
    opacity: 0.4;
    cursor: default;
}

#feedback-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
    margin-top: var(--space-4xl);
}

#partners-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: var(--space-4xl) 0 ;
    gap: var(--space-2xl);
    width: 80%;
}

#partners-list{
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-l);
    width: 100%;
    justify-content: center;
}

.img-partners{
    max-height: 100px;
    width: 100%;
    object-fit: contain;
}

.partners-content-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xs);
    max-width: 140px;
}

.partners-links{
    color: var(--text-dark-main);
    font-size: var(--fs-2xs);
    text-align: center;      
    width: 100%;                
    overflow-wrap: break-word;  
    word-break: break-word;
}


.partners-links:hover{
    text-decoration: underline;
    text-decoration-color: var(--text-dark-main);
}


.copyright{
    margin-top: var(--space-l);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75%;
    gap: var(--space-3xs);
}

.copyright p{
    font-size: var(--fs-2xs);
    text-align: center;
    color: #C9C9C9;
}

.copyright p a{
    color: #C9C9C9;
    text-decoration:underline
}

footer{
    margin-top: var(--space-2xl);
}

#es-logo{
    max-width: 240px;
    height: 100%;
}


@media(min-width: 560px) and (max-width: 1024px){
    #about-us-section{
        gap: var(--space-3xl);
        width: 95%;
        margin-top: var(--space-3xl);

    }

    #about-us-section-text{
        gap: var(--space-xs);
    }

    #about-us-photo{
        width: 45%;
        height: 45%;
    }

    .title{
        font-size: var(--fs-xl);
    }

    #about-us-section-text p{
        font-size: var(--fs-s);
    }

    #values-list {
        display: flex;
        flex-direction: row;
        max-width: 95%;
    }

    .values-list-item{
        display: flex;
        flex-direction: column;
        gap: var(--space-3xs);
        border-right: 1px solid #4e5b3166;
        padding: 0 var(--space-2xs);
        min-width: 120px;
    }

    .values-description{
        font-size: var(--space-s);
    }



    #FAQ{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--space-xl);
        margin-top: var(--space-4xl);
        width: 90%;
    }

    #questions-list{
        gap: var(--space-s);
        width: 100%;
    }


    /* Внутрішні відступи контейнера details */
    .FAQ-item {
        padding: var(--space-2xs) var(--space-xs);
    }


    /* 2. Лінія на всю ширину картки та правильні відступи */
    .FAQ-item[open] .FAQ-answer {
        border-top: 1px solid var(--text-bodily);
        
        /* Негативний margin розтягує лінію на всю ширину від краю до краю */
        margin-left: calc(-1 * var(--space-xs));
        margin-right: calc(-1 * var(--space-xs));
        padding-top: var(--space-xs);
    }

    .feedback-carousel{
        gap: var(--space-s);
    }

    .feedback-track{
        gap: var(--space-s);
    }

    .feedback-slide{
        flex: 0 0 calc((100% - 2 * var(--space-s)) / 2);
        max-width: calc((100% - 2 * var(--space-s)) / 2);
    }

    .icon-arrow {
        width: 44px;
        height: 44px;
    }

    .copyright p{
        font-size: var(--fs-xs);
    }

    .copyright{
        width: 85%;
    }


}

/* Медіа-запит для мобільних пристроїв */
@media (max-width: 560px) {


    #about-us-section{
        gap: 0;
        width: 100%;
        margin-top: var(--space-m);

    }

    #about-us-section-text{
        gap: var(--space-2xs);
        align-items: center;
    }

    #about-us-photo{
        display: none;
    }

    .title{
        font-size: var(--fs-xl);
    }

    #about-us-section-text p{
        font-size: var(--fs-s);
        text-align: center;
    }

    #values-section{
        align-items: center;
        gap: var(--space-2xs);
        margin-top: var(--space-m);
    }

    #values-list {
        max-width: 95%;
    }

    .values-list-item{
        gap: var(--space-3xs);
        padding: 0 var(--space-3xs);
        min-width: 80px;
    }

    .values-list-item:last-child {
        border-right: none;
    }


    .values-title{
        font-size: var(--fs-2xs);
    }

    .values-description{
        font-size: var(--fs-2xs);
    }


    #FAQ{
        gap: var(--space-2xl);
        margin-top: var(--space-4xl);
        width: 95%;
    }

    #questions-list{
        gap: var(--space-m);
        width: 100%;
    }

    .questions-list-item{
        width: 100%;
    }

    /* Внутрішні відступи контейнера details */
    .FAQ-item {
        padding: var(--space-2xs) var(--space-2xs);
    }

    .FAQ-question {
        gap: var(--space-3xl);
        font-size: var(--fs-xs);
    }

    .FAQ-icon {
        width: 24px;
        height: 24px;
    }

    .FAQ-answer {
        font-size: var(--fs-xs);
    }

    /* 2. Лінія на всю ширину картки та правильні відступи */
    .FAQ-item[open] .FAQ-answer {
        margin-left: calc(-1 * var(--space-2xs));
        margin-right: calc(-1 * var(--space-2xs));
        margin-top: var(--space-s);
        
        /* Повертаємо внутрішній відступ для тексту відповіді */
        padding-left: var(--space-xs);
        padding-right: var(--space-xs);
        padding-top: var(--space-2xs);
    }


    /* --- МАГАЗИН (SHOP) --- */
#shop-section {
    gap: var(--space-m);
    margin-top: var(--space-2xl);
}

.shop-list-wrapper {
    width: 95%;
    gap: var(--space-2xs);
}

#shop-list {
    /* колонка = фото 80px + 2*6px padding картки + 2*2px padding hover-container */
    grid-template-columns: repeat(auto-fill, calc(80px + 2 * 6px + 2 * 2px));
    column-gap: var(--space-2xs);
}

.hover-container {
    padding: 2px;
}

.product-content-wrapper {
    padding: 6px;
    gap: 2px;
}

.img-product {
    max-width: 80px;
}

.product-text {
    max-width: 80px;
    gap: 2px;
    margin-top: 2px;
}

.product-title {
    font-size: var(--fs-2xs);   /* 10px */
    line-height: 1.3;
    min-height: 2.6em;          /* рівно 2 рядки */
}

.product-price {
    font-size: var(--fs-xs);    /* 12px */
}

.shop-all-btn {
    font-size: var(--fs-xs);
}

    /* --- БЛОК ВІДГУКІВ (FEEDBACK) --- */
    .feedback-carousel {
        gap: 12px; /* Відстань від кнопок до каруселі */
    }

    .feedback-track {
        gap: 12px; /* Відстань між зображеннями */
    }

    .feedback-slide {
        flex: 0 0 calc((100% - 12px) / 2);
        max-width: 164px; /* Максимальна ширина слайда */
    }

    .icon-arrow {
        width: 24px;
        height: 24px;
    }
    #partners-section{
        margin-top: var(--space-2xl);
        gap: var(--space-m);
        width: 90%;
        margin-bottom: var(--space-5xl);
    }

    .img-partners{
        max-height: 64px;

    }

    .partners-content-wrapper{
        gap: var(--space-3xs);
        max-width: 94px;
    }

    .partners-links{
        font-size: var(--fs-2xs);
        text-align: center;      
        width: 100%;                
    }
        
    .copyright{
        margin-top: 0;
        margin-bottom: var(--space-5xl);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: var(--space-3xs);
    }

    .copyright p{
        font-size: var(--fs-3xs);
        text-align: center;
        color: #C9C9C9;
    }


}


/* Текст на всю ширину (як "по ширині" у Word) */
.main-text, .values-description, .FAQ-answer {
    text-align: justify;
    hyphens: auto;
    white-space: pre-line; /* зберігаємо переноси рядків з адмінки */
}
