*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial,sans-serif;
    background:#f5f7fb;
    color:#222;
}

/* HEADER */

.header{
    background:#111827;
    padding:18px 0;
}

.container{
    width:95%;
    max-width:1400px;
    margin:auto;
}

.nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    color:white;
    text-decoration:none;
    font-size:28px;
    font-weight:bold;
}

.menu{
    display:flex;
    gap:25px;
}

.menu a{
    color:white;
    text-decoration:none;
    font-weight:500;
}

/* ОСНОВА */

.layout{
    display:grid;
    grid-template-columns:250px 1fr 250px;
    gap:25px;
    width:95%;
    max-width:1400px;
    margin:30px auto;
}

/* SIDEBAR */

.sidebar,
.rightbar{
    background:white;
    padding:25px;
    border-radius:20px;
    height:fit-content;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.sidebar h3,
.rightbar h3{
    margin-bottom:20px;
}

.sidebar ul{
    list-style:none;
}

.sidebar li{
    margin-bottom:15px;
    cursor:pointer;
    transition:0.3s;
}

.sidebar li:hover{
    color:#1e88e5;
}

/* HERO */

.hero-box{
    background:linear-gradient(135deg,#1e88e5,#005bea);
    color:white;
    border-radius:25px;
    padding:50px;
    margin-bottom:35px;
}

.hero-box h1{
    font-size:42px;
    margin-bottom:15px;
}

.hero-box p{
    font-size:18px;
    margin-bottom:25px;
}

.hero-buttons{
    display:flex;
    gap:15px;
}

.btn{
    padding:14px 25px;
    border-radius:12px;
    text-decoration:none;
    font-weight:bold;
}

.btn-primary{
    background:#22c55e;
    color:white;
}

.btn-white{
    background:white;
    color:#111;
}

/* ТОВАРЫ */

.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.product-card{
    background:white;
    border-radius:20px;
    padding:20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.06);
    transition:0.3s;
}

.product-card:hover{
    transform:translateY(-5px);
}

.product-card img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:15px;
}

.product-card h3{
    margin-top:15px;
    margin-bottom:10px;
}

.product-card a{
    text-decoration:none;
    color:#111;
}

.price{
    color:#1e88e5;
    font-size:26px;
    font-weight:bold;
    margin-bottom:20px;
}

.card-buttons{
    display:flex;
    gap:10px;
}

.btn-more,
.btn-cart,
.btn-fav{
    border:none;
    padding:12px;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
}

.btn-more{
    background:#f3f4f6;
}

.btn-cart{
    background:#1e88e5;
    color:white;
}

.btn-fav{
    background:#fff0f3;
}

/* МИНИ ТОВАРЫ */

.mini-product{
    padding:15px 0;
    border-bottom:1px solid #eee;
}

.mini-product span{
    color:#1e88e5;
    font-weight:bold;
}

/* КОНТАКТЫ */

#contacts{
    width:95%;
    max-width:1400px;
    margin:50px auto;
    background:white;
    padding:30px;
    border-radius:20px;
}

#contacts h2{
    margin-bottom:20px;
}

iframe{
    border-radius:15px;
    margin-top:20px;
}

/* КАТАЛОГ */

.catalog-page{
    width:95%;
    max-width:1400px;
    margin:30px auto;
}

.catalog-title{
    margin-bottom:30px;
    font-size:36px;
}

.catalog-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.catalog-card{
    background:white;
    border-radius:20px;
    padding:20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.06);
}

.catalog-card img{
    width:100%;
    height:230px;
    object-fit:cover;
    border-radius:15px;
}

.catalog-card h3{
    margin:15px 0;
}

.catalog-price{
    color:#1e88e5;
    font-size:24px;
    font-weight:bold;
    margin-bottom:15px;
}

.catalog-buttons{
    display:flex;
    gap:10px;
}

/* МОБИЛКА */

@media(max-width:1100px){

    .layout{
        grid-template-columns:1fr;
    }

    .sidebar,
    .rightbar{
        display:none;
    }

    .hero-box{
        padding:30px;
    }

    .hero-box h1{
        font-size:30px;
    }

}
.catalog-wrapper{
    display:flex;
    gap:25px;
    max-width:1400px;
    margin:30px auto;
    padding:0 20px;
}

.catalog-sidebar{
    width:250px;
    background:#fff;
    padding:20px;
    border-radius:12px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.catalog-sidebar h3{
    margin-bottom:15px;
}

.catalog-sidebar ul{
    list-style:none;
    padding:0;
}

.catalog-sidebar li{
    margin-bottom:10px;
}

.catalog-sidebar a{
    text-decoration:none;
    color:#333;
}

.catalog-content{
    flex:1;
}

.catalog-title{
    margin-bottom:25px;
}

.catalog-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    gap:20px;
}

.catalog-card{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 3px 12px rgba(0,0,0,.08);
    padding:15px;
    transition:.3s;
}

.catalog-card:hover{
    transform:translateY(-5px);
}

.catalog-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.catalog-card h3{
    margin:15px 0;
}

.catalog-price{
    font-size:22px;
    font-weight:bold;
    color:#18c33e;
}

.catalog-buttons{
    display:flex;
    gap:10px;
    margin-top:15px;
}

.btn-more{
    background:#0d6efd;
    color:#fff;
    padding:10px 15px;
    border-radius:8px;
    text-decoration:none;
}

.btn-cart{
    background:#20c941;
    color:#fff;
    border:none;
    padding:10px 15px;
    border-radius:8px;
    cursor:pointer;
}
.logo img{
    height:60px;
    width:auto;
    display:block;
}
/* ПРЕИМУЩЕСТВА */

.advantages{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin:30px 0;
}

.adv-item{
    background:#fff;
    border-radius:15px;
    padding:20px;
    text-align:center;
    box-shadow:0 3px 15px rgba(0,0,0,.08);
}

.adv-item span{
    font-size:36px;
    display:block;
    margin-bottom:10px;
}

.adv-item h4{
    margin-bottom:8px;
}

/* КАТЕГОРИИ */

.category-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin:20px 0 40px;
}

.category-card{
    background:#0d3b78;
    color:#fff;
    text-decoration:none;
    padding:30px;
    border-radius:15px;
    text-align:center;
    font-size:20px;
    font-weight:700;
    transition:.3s;
}

.category-card:hover{
    background:#24c44f;
}

@media(max-width:900px){

    .advantages{
        grid-template-columns:1fr 1fr;
    }

    .category-grid{
        grid-template-columns:1fr 1fr;
    }

}

@media(max-width:600px){

    .advantages{
        grid-template-columns:1fr;
    }

    .category-grid{
        grid-template-columns:1fr;
    }

}
/* ПОИСК */

.catalog-btn-header{
    background:#24c44f;
    color:#fff;
    text-decoration:none;
    padding:12px 20px;
    border-radius:10px;
    font-weight:bold;
}

.search-form{
    flex:1;
    display:flex;
    margin:0 20px;
}

.search-form input{
    flex:1;
    padding:12px;
    border:2px solid #24c44f;
    border-right:none;
    border-radius:10px 0 0 10px;
}

.search-form button{
    background:#24c44f;
    color:#fff;
    border:none;
    padding:0 20px;
    border-radius:0 10px 10px 0;
    cursor:pointer;
}

.header-actions{
    display:flex;
    gap:20px;
}

.header-actions a{
    color:#fff;
    text-decoration:none;
    font-size:22px;
}
/* СТРАНИЦА ТОВАРА */

.product-page{
    max-width:1400px;
    margin:40px auto;
    padding:0 20px;
}

.product-card-full{
    background:#fff;
    border-radius:20px;
    padding:30px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    box-shadow:0 4px 20px rgba(0,0,0,.08);
}

.product-gallery img{
    width:100%;
    border-radius:15px;
    object-fit:cover;
}

.product-info h1{
    font-size:32px;
    margin-bottom:15px;
}

.product-stock{
    color:#24c44f;
    font-weight:700;
    margin-bottom:15px;
}

.product-price-big{
    font-size:38px;
    font-weight:800;
    color:#0d3b78;
    margin-bottom:20px;
}

.product-description{
    line-height:1.7;
    margin-bottom:30px;
}

.product-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
}

.btn-buy{
    background:#24c44f;
    color:#fff;
    border:none;
    padding:15px 25px;
    border-radius:10px;
    cursor:pointer;
    font-weight:700;
}

.btn-ozon{
    background:#005bff;
    color:#fff;
    text-decoration:none;
    padding:15px 25px;
    border-radius:10px;
    font-weight:700;
}

.btn-favorite{
    background:#fff;
    border:2px solid #ff4d6d;
    color:#ff4d6d;
    padding:15px 25px;
    border-radius:10px;
    cursor:pointer;
    font-weight:700;
}

@media(max-width:900px){

    .product-card-full{
        grid-template-columns:1fr;
    }

}