*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container1{
    margin: 0 auto;
    width: auto;
}

.container{
    margin: 0 auto;
    width: auto;
}


.shapka {
    width: 100%;
    background-color: #8cbbd1;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    padding: 0 40px;
}


.shapka-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    box-sizing: border-box;
    /* padding: 0 10px; */
}



.main{
    width: 100%;
    padding: 0 130px;
    background-image: url(../images/background.png);
    background-size: cover;
    padding-bottom: 80px;
    padding-top: 120px;
}



/* статистика */
.stats-block {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap;
    gap: 40px;
    margin: 0 auto 100px auto;  /* авто-отступы по бокам для центрирования */
    padding: 30px 30px;
    background:  #ffffffb2;
    border-radius: 15px;
    text-align: center;
    font-family: mainFont;
    max-width: 1380px;
    margin-bottom: 70px;

}

.stat-item {
    flex: 1;
    padding: 15px;
    min-width: 150px;
}

.stat-number {
    font-size: 36px;
    font-weight: 600;
    color: #325363;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.stat-text {
    font-size: 16px;
    color: #325363;
    font-weight: 500;
}



/* сетка из трёх карточек */
.products-grid {
    display: flex;
    justify-content: center;
    gap: 75px;
    flex-wrap: wrap;
    padding-top: 50px;
    margin: 0 auto;
    max-width: 1380px;
}

/* карточка товара */
.product-card {
    width: 410px;
    height: 520px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

/* этот слой появляется ТОЛЬКО при наведении */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

.product-card:hover::before {
    background: rgba(0, 0, 0, 0.7);
}

/* информация о товаре */
.product-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: mainFont;
}

.product-card:hover .product-info {
    opacity: 1;
}

.product-info h3 {
    margin: 0 0 25px 0;
    font-size: 30px;
}

.product-info .price {
    font-size: 26px;
    margin: 0 0 25px 0;
    color: #ffffff;
}

.product-info .btn {
    background: rgba(140, 187, 209, 0);
    color: #8cbbd1;
    padding: 20px 35px;
    text-decoration: none;
    font-family: mainFont;
    border: 2px solid #8cbbd1;
    font-size: 24px;
}





.main h2{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-family: mainFont;
    font-size:xx-large;
    color: rgb(61, 83, 102);
}

.logo {
    display: flex;
    align-items: center;
    color: #f0ffff;
    font-family: mainFont;
    flex-shrink: 0; /* Логотип не сжимается */
    width: 105px;
}

/* МЕНЮ САЙТА*/
.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; 
    margin: 0 20px;
    white-space: nowrap;
}

.menu__item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 12px;
}

.menu__link{
    transition: all 0.3s ease 0s;
    color: #f0ffff;
    font-family: mainFont;
    font-size: 17px;
    text-decoration: none;

}

/*при наведении на ссыл*/
.menu__link:hover{
    color:  #4c6e7e;
}

/* менюшка сайта*/

.map {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0; /* Блок с иконками не сжимается */

}

.header-link__partner img {
    width: 26px;
    height: 26px;
}
/* подключение шрифтов */

@font-face {
    font-family: mainFont;
    src: url(../fonts/OpenSans.ttf);
}









/* доп стили для каталога */
.main1{
    width: 100%;
    max-width: 100%;
    padding-top: 60px;
    
}


.catalog__block h5 {
    text-align: center;
    width: 100%;
    margin: 0;
}



.block{
    margin: 0 auto;
    width: 60%;
    height: 100%;

}

.headphones, .ps, .keyboards, .mouse, .corps{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 20%;
    border-bottom: 2px solid #8cbbd1;
}

.corps:last-child {
    border-bottom: none;
}


.headphones__item, .ps__item, .keyboards__item, .mouse__item, .corps__item{
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 100px;
}


.headphones__link, .ps__link, .keyboards__link, .mouse__link, .corps__link{
    transition: all 0.3s ease 0s;
    font-size: 29px;
    font-family: mainFont;
    text-decoration: none;
    color: #8cbbd1;
}


.headphones__link:hover, .ps__link:hover, .keyboards__link:hover, .mouse__link:hover, .corps__link:hover{
    color:  #4c6e7e;
}


/*ПОДВАЛЬЧИК*/



.podval {
    background-color: #8CBBD1;
    color: #FFFFFF;
    padding: 40px 40px 20px 40px;
    width: 100%;
    font-family: mainFont, sans-serif;
    box-sizing: border-box;
    
}

.podval-container {
    box-sizing: border-box;
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 0 20px; */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    
}

.podval-column {
    flex: 1;
    min-width: 160px;
}

.podval-column h4 {
    font-size: 17px;
    margin-bottom: 15px;
    color: #FFFFFF;
    font-family: mainFont, sans-serif;
}

.podval-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.podval-column ul li {
    margin-bottom: 10px;
    color: #FFFFFF;
    font-family: mainFont, sans-serif;
    font-size: 14px;
}

.podval-column ul li a {
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: 14px;
}

.podval-column ul li a:hover {
    text-decoration: underline;
}

/* Цвет для обычного текста-адреса */
.podval-column ul li:not(a) {
    color: #FFFFFF;
}

/* Соцсети и копирайт */
.podval-social {
    text-align: right;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-block;
    transition: transform 0.3s;
}

/* .social-icons a:hover {
    transform: translateY(-3px);
} */

/* Иконки внутри ссылок */
.social-icons svg {
    fill: #FFFFFF;
}

.copyright {
    font-size: 14px;
    color: #FFFFFF;
    margin: 0;
    font-family: mainFont, sans-serif;
}





/*каталог наушников*/
/* .headphones1{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 20%;
    border-bottom: 2px solid #8cbbd1;
} */

/*каталог наушников без черты внизу*/
/* .headphones2{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 20%;
} */



/* полоска у товара (для визуального разделения) */
.headphones__1, .headphones__2, .headphones__3, .headphones__4, .headphones__5{

    display: flex;
    width: 100%;
    height: 100%;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #8cbbd1;
    padding-bottom: 20px;
    padding-top: 20px;
}

.headphones__1:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}







.info1, .info2, .info3, .info4, .info5{
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-family: mainFont;
    margin-top: 60px;
    padding-left: 20px;
    padding-right: 20px;
}

.about{
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: mainFont;
    flex-direction: column;
}




/* уведомление */

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    color: #2c3e50;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid #8cbbd1;
    font-family: mainFont, sans-serif;
    font-size: 14px;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.5s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    pointer-events: none;
}

.toast-notification.show {
    opacity: 1;
}

/* адапатация для телефонов */

@media (max-width: 768px) {
    .shapka {
        padding: 0 15px;
        height: 60px;
    }
    
    .logo h5 {
        font-size: 10px;
    }

    .menu h5 {
        font-size: 10px;
    }
    
    .menu {
        gap: 14px;
        margin: 0;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }
    
    .menu__item {
        padding: 0 5px;

    }
    
    .menu__link {
        font-size: 14px;
    }
    
    .map {
        gap: 5px;
    }
    
    .header-link__partner img {
        width: 20px;
        height: 20px;
    }
    
    .header-link__cart span {
        font-size: 12px;
    }


    .stats-block {
    gap: 20px;
    margin: 0 auto 100px auto;  /* авто-отступы по бокам для центрирования */
    padding: 10px 10px;
    margin-bottom: 20px;
    }

    .stat-item {
        padding: 10px;
    }

    .stat-number {
        font-size: 21px;
        font-weight: 600;
        color: #325363;
        margin-bottom: 8px;
    }

    .stat-text {
        font-size: 16px;
        color: #325363;
        font-weight: 500;
    }

    .main h2 {
        font-size: 24px;
        text-align: center;
        padding: 20px 15px;
    }
    
    /* блок с категориями */
    .main1 {
        min-height: auto;

    }

    .block.catalog {
    margin: 0 auto;
    padding: 0 30px;
    
    }

    
    .headphones__link, 
    .ps__link, 
    .keyboards__link, 
    .mouse__link, 
    .corps__link {
        font-size: 25px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    

    
    /* карточки товаров  */
    .products-grid {
        gap: 30px;
        padding: 10px 0px;
    }
    
    .product-card {
        width: 95%;
        max-width: 320px;
        height: 400px;
    }
    
    .product-info h3 {
        font-size: 18px;
    }
    
    .product-info .price {
        font-size: 20px;
    }
    
    .product-info .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    
    /* подвальчик */
    .podval-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .podval-social {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .podval-column h4 {
        font-size: 16px;
    }
    
    
    
    /* сетка из трех карточек */

    .main {
        min-height: auto;
        padding: 100px 40px 80px 40px;
    }


    /* модальное окно регистрации */
    

    .modal-content {
        width: 85%;
        max-width: 350px;
        padding: 20px;
        margin: auto;
    }
    
    /* контент внутри окна */
    .modal-content h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    /* поля ввода */
    .modal-input {
        padding: 12px;
        font-size: 16px;
        margin: 8px 0;
        width: 100%;
    }
    
    /* кнопки */
    .modal-btn {
        padding: 12px;
        font-size: 12px;
        width: 100%;
        margin-top: 15px;
        height: 20px;
    }
    
    /* ссылки переключения между формами */
    .modal-switch {
        font-size: 14px;
        margin-top: 15px;
        text-align: center;
    }
    
    /* крестик */
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }


    .checkout-modal__content {
        width: 90%;
        max-width: 350px;
        padding: 15px;
        margin: 0 auto;
    }


    


    .headphones__1, .headphones__2, .headphones__3, .headphones__4, .headphones__5 {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .goods__img {
        width: 80%;
        max-width: 250px;
        margin-bottom: 15px;
    }
    
    .goods__buttons {
        justify-content: center;
    }

    .goods__btn_submit{
    font-size: 13px;
    
    }

    .goods__btn_specs {
    font-size: 13px;
    }

    
    .info1, .info2, .info3, .info4, .info5 {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    font-family: mainFont;
    margin-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    }

    .headphones__item, .ps__item, .keyboards__item, .mouse__item, .corps__item{

        padding-top: 50px;
        padding-bottom: 50px;
    }



    

}

