.header__main{
    background: url("../pictures/background-main.png") no-repeat center center;
    background-size: 100% 100%;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    height: 100vh;
    display: grid;
    column-gap: 7%;
    grid-template-rows: repeat(2, max-content) 1fr;
    grid-template-columns: minmax(0, 18%) 1fr;
    border: none;
}

.about_mobile{
    display: none;
}

.main{
    padding: 70px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /*box-shadow: inset 41px 41px 161px rgba(0, 0, 0, .5);*/
    background-color: rgba(67, 81, 90, 0);
}

.products{
    width: 100%;
}

.products__title {
    width: max-content;
    border-bottom: 2px solid #FFC107; /* Жёлтая граница */
    font-size: 47px;
    /*color: #43515A;*/
    position: relative; /* Для создания псевдоэлемента */
    color: #43515A;
}

.products__title::after, .about__title::after {
    content: ''; /* Пустое содержимое для создания тени */
    position: absolute;
    bottom: -2px; /* Чуть ниже границы */
    left: 0;
    width: 100%;
    height: 2px; /* Высота тени */
    background: #FFC107; /* Цвет тени соответствует границе */
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); !* Тень *!*/
    z-index: -1; /* Чтобы тень была позади */
}

.products__list{
    margin-top: 20px;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    border-bottom: 1px solid #B0BBC1;
    padding-bottom: 80px;
}

.products__item{
    max-width: 48%;
    /*box-shadow: 0px 0px 264px rgba(0, 0, 0, .6);*/
    border-radius: 12px;
}

.products__desc{
    color: #43515A;
}

.products__text{
    color: #fff;
    opacity: .7;
    font-size: 23px;
    max-width: 560px;
}

.products__image{
    max-width: 560px;
    object-fit: contain;
    /*box-shadow: 41px 41px 161px rgba(0, 0, 0, .5);*/
    border-radius: 12px;
}

.about{
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 3rem;
    margin: 40px auto 80px auto;
}

.advantages{
    list-style-type: none;
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
    /*align-self: flex-end;*/
    grid-row: 2/-1;
    grid-column: 2/-1;
}

.about__image{
    grid-row: 1/-1;
    grid-column: 1/2;
    max-width: 380px;
    object-fit: contain;
}

.advantages__item{
    width: 45%;
    height: max-content;
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-template-rows: max-content 1fr;
    gap: 5px;
}

.advantages__icon{
    grid-row: 1/2;
    grid-column: 1/2;
}

.advantages__title{
    color: #43515A;
    grid-row: 1/2;
    grid-column: 2/3;
}

.advantages__desc{
    color: #43515A;
    grid-row: 2/-1;
    grid-column: 1/-1;
}



.about__info{
    display: grid;
    grid-template-columns: max-content 1fr;
    grid-template-rows: repeat(2, max-content);
    gap: 10px;
    grid-row: 1/2;
    grid-column: 2/-1;
}

.about__title{
    position: relative;
    grid-row: 1/2;
    grid-column: 1/2;
    color: #43515A;
    font-size: 52px;
    line-height: 45px;
}

.about__pic{
    grid-row: 1/2;
    grid-column: 2/-1;
    background: rgba(255, 193, 7, .3); /* Цвет тени соответствует границе */
    border-radius: 50%;
    /*box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); !* Тень *!*/
    width: 52px;
    height: 52px;
}

.about__desc{
    font-size: 1.1rem;
    max-width: 100%;
    color: #43515A;
    grid-row: 2/-1;
    grid-column: 1/-1;
}

/*!*slider*!*/
/*.slider {*/
/*    position: relative;*/
/*    height: 200px;*/
/*    display: flex;*/
/*    justify-content: start;*/
/*    align-items: center;*/
/*    overflow: hidden;*/
/*}*/

.slogan {
    font-size: 5rem;
    margin-top: 5rem;
    text-align: left;
    max-width: 80%;
}

/*overlay*/
.products__image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.products__image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    /*box-shadow: 0px 0px 34px rgba(0, 0, 0, .3);*/
}

.products__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6); /* полупрозрачный тёмный фон */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
    text-align: center;
}

.products__image-wrapper:hover .products__overlay {
    opacity: 1;
}

.products__image-wrapper:hover .products__image {
    transform: scale(1.05); /* немного увеличивается при ховере */
}

.link__type_menu{
    width: 90%;
    max-height: 100px;
    margin: 0 auto;
    font-weight: bold;
    font-size: 18px;
    /* background-color: #848484; */
    border-radius: var(--main-border);
    text-align: center;
    background-color: transparent;
    /* border: 2px solid rgba(255, 193, 7, 0.07); */
    border: 2px solid rgba(255, 255, 255, 0.16);
    padding: 10px;
}

@media (max-width: 950px) {
    .header__main {
        background: url("../pictures/background-main-mobile.png") no-repeat center center;
        background-size: cover;
        box-sizing: border-box;
        padding: 15px;
        grid-template-rows: max-content 1fr;
        grid-template-columns: 1fr max-content;
    }
    .hero{
        display: none;
    }
    .main{
        padding: 15px;
    }
    .products{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .products__item{
        max-width: none;
    }

    .products__overlay{
        opacity: 1;
    }

    .about{
        display: none;
    }
    .about_mobile{
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about__desc{
        font-size: 1.3rem;
        text-align: justify;
    }
    .slogan {
        font-size: 3rem;
        margin-top: 3rem;
        text-align: left;
        max-width: 80%;
    }

}