* {
    margin: 0;
    padding: 0;
}
@font-face {
    /* 0xe8333 или &#xe8333; */
    font-family: 'eye';
    src: url('/fonts/eye.woff') format('woff');
    src: url('/fonts/eye.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.eye {
    font-family: 'eye';
    font-style: normal;
    font-weight: normal;
    color: #fff;
    font-size: 14px;
}


body {
    background-color: #f6f7fa;
    font-family: 'Open Sans', verdana, sans-serif;
    font-size: 16px;
}

.main-container {
    max-width: 1140px;
    margin: auto;
    padding-left: 10px;
    padding-right: 10px;
}



.prefers {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    }
    .pref-square {
    flex: 1;
    min-width: calc(25% - 20px);
    margin-left: 10px;
    margin-right: 10px;
    box-sizing: border-box;
    background-color: #ffffff;
    color: #000000;
    font-size: 16px;
    font-weight: 200;
    border-radius: 10px;
    padding: 10px;
    }
    .pref-square:hover {
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.06);
    cursor: default;
    }
    .pref-square:first-child {
    margin-left: 0;  /* Сбрасываем отступ слева для первого элемента */
    }
    .pref-square:last-child {
    margin-right: 0;  /* Сбрасываем отступ справа для последнего элемента */
    }

    @media (max-width: 1180px) {
        .pref-square {
            min-width: calc(25% - 20px);
            margin-bottom: 20px;
        }
        .prefers {
            max-width: 100%;
        }
    }    
    @media (max-width: 880px) {
    .pref-square {
        min-width: calc(50% - 20px);
        margin-bottom: 20px;
    }

    .pref-square:nth-child(odd) {
        margin-right: 10px;
        margin-left: 0;
    }

    .pref-square:nth-child(even) {
        margin-left: 10px;
        margin-right: 0;
    }
    .prefers {
        max-width: 100%;
    }
    @media (max-width: 470px) {
    .pref-square {
            min-width: calc(50% - 10px);
            margin-bottom: 10px;
    }
    
    .pref-square:nth-child(odd) {
            margin-right: 5px;
            margin-left: 0;
    }
    
    .pref-square:nth-child(even) {
            margin-left: 5px;
            margin-right: 0;
    }
    .prefers {
            max-width: 100%;
        }
    }
}


.tittle-text {
    font-size: 20px;
    font-weight: 500;
    margin-top: 30px;
    margin-left: 5px;
    margin-bottom: 30px;
}





.top-slider {
    height: 500px;
    background-color: white;
    border-radius: 10px;
    margin-top: 30px;
    width: 100%;
}
@media (max-width: 470px) {
    .top-slider {
        margin-top: 0px;
        border-radius: 0px;
        margin-left: -10px;
        width: calc(100% + 20px);
    }
}


/* Сам слайдер - в последствии перенести в отдельный фал */
.slider-1 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    align-items: start; /* Выравнивание содержимого колонок по верху */
    height: 100%;
    background-color: rgb(255 229 235);
    border-radius: 10px;

}
.slider-text, .slider-call-to-action {
    grid-column: 1; /* Оба элемента в первой колонке */
}
.slider-call-to-action {
    grid-row: 2; /* Помещаем кнопку во вторую строку первой колонки */
    display: flex;
    justify-content: center;
}
.slider-img-part {
    grid-column: 2; /* Изображение во второй колонке */
    grid-row: 1 / span 2; /* Растягиваем изображение на две строки, чтобы оно было выровнено с текстом и кнопкой */
}

.slider-img {
    position: relative;
    top: 94px;
    width: 500px;
}
.slider-text {
    text-align: center;
    position: relative;
    top: 180px;
}
.sl-name {
    font-size: 25px;
    font-weight:600;
}
.sl-slogan {
    font-size: 19px;
    font-style: italic;
}
.call-to-action {
    padding: 10px 20px;
    color: #fff;
    background-color: #ff7e87;
    position: relative;
    border-radius: 30px;
    font-weight: 400;
}
.call-to-action:hover {
    background-color: #ff5a65;
    cursor: pointer;
}
@media (max-width: 830px) {
    .slider-img {
        position: relative;
        top: 140px;
        width: 340px;
    }
}
@media (max-width: 600px) {
    .slider-1 {
        grid-template-columns: 1fr; /* Переключаемся на одну колонку */
        border-radius: 10px;
    }

    .slider-text, .slider-img-part, .slider-call-to-action {
        grid-column: 1; /* Все элементы в первой (единственной) колонке */
    }

    .slider-call-to-action {
        grid-row: 3; /* Помещаем кнопку в третью строку */
        position: relative;
    }

    .slider-img-part {
        grid-row: 2; /* Изображение во второй строке */
        display: flex;
        justify-content: center;
    }
    .slider-img {
        position: relative;
        top: 15px;
        width: calc(100% - 40px);
    }
    .slider-text {
        text-align: center;
        position: relative;
        top: 30px;
    }
}
@media (max-width: 470px) {
    .slider-1 {
        border-radius: 0px;
    }
}

/* Сам слайдер - в последствии перенести в отдельный фал */









.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.product-block {
    flex: 0 0 calc(25% - 15px); /* Корректировка с учетом gap */
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 10px;
    position: relative;
    display: flex; /* Используем Flexbox */
    flex-direction: column; /* Элементы располагаются в колонном направлении */
    justify-content: space-between;
}
@media (max-width: 800px) {
    .product-block {
        flex: 0 0 calc(50% - 10px);
    }
}
@media (max-width: 397px) {
    .product-block {
        flex: 0 0 100%;
    }
}
.product-block:hover {
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.prod-img img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    display: block; /* Убирает потенциальный дополнительный отступ внизу изображения */
}
.prod-name {
    padding: 10px 10px 8px 10px;
    font-weight: 500;
    font-size: 15px;
}
.price-block {
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.prod-price {
    padding: 1px 10px 0px 10px;
    text-align: center;
    font-size: 17px;
}
.price {
    color: #d64141;
}
.price-b {
    font-size: 18px;
    font-weight: 800;
}
.price-s {
    font-size: 12px;
    font-weight: 800;
    position: relative;
    top: -5px;
    left: 2px;
}
.cur {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    padding-left: 3px;
    padding-right: 0px;
    color: #d64141;
}
.curft {
    position: relative;
    font-size: 16px;
    font-weight: 600;
    padding-left: 0px;
    padding-right: 0px;
    color: #d64141;
}
.prod-price-descr {
    text-align: center;
    padding: 0px 10px 7px 10px;
    font-size: 13px;
    color: gray;
    font-weight: 200;
}
.add-button {
    bottom: 0; 
    left: 0; 
    width: calc(100% - 10px); 
    margin: 5px; 
    box-sizing: border-box;
    text-align: center;
    background-color: #e97575;
    color: #fff;
    padding: 6px;
    border-radius: 5px;
    font-size: 15px;
}
.add-button:hover {
    background-color: rgb(221, 91, 91);
}
.tdnone {
    text-decoration: none;
}
.load-more-div {
    display: flex;
    justify-content: center;
}

.load-more-button {
    background-color: transparent; 
    color: #797979; 
    padding: 10px 20px; 
    text-align: center; 
    text-decoration: none;
    display: inline-block; 
    font-size: 15px; 
    margin: 30px 2px; 
    cursor: pointer; 
    border-radius: 5px; 
    border: 1px dashed #797979; 
    font: inherit; 
    outline: inherit; 
}
.load-more-button:hover {
    color: #e97575; 
    border: 1px dashed #e97575; 
    background-color: #fff4f4; 
}