/* ==========================
   RESET
========================== */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:#f6f8fb;
    color:#111827;
    line-height:1.5;
}

img{
    display:block;
    width:100%;
}

a{
    text-decoration:none;
}

button{
    font-family:inherit;
}

.container{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    padding:0 20px;
}

/* ==========================
   HEADER
========================== */

.header{
    position:sticky;
    top:0;
    z-index:100;
    background:#fff;
    border-bottom:1px solid #e5e7eb;
    backdrop-filter:blur(20px);
}

.header .container{
    min-height:80px;
    display:flex;
    align-items:center;
    gap:24px;
}

.logo{
    display:flex;
    align-items:center;
    flex-shrink:0;
}

.logo img{
    height:88px;
    width:auto;
    display:block;
}

.search-box{
    flex:1;
    display:flex;
    gap:10px;
}

.search-box input{
    flex:1;
    height:48px;
    border:none;
    background:#f3f4f6;
    border-radius:14px;
    padding:0 18px;
    outline:none;
    font-size:15px;
}

.search-box button{
    border:none;
    background:#2563eb;
    color:#fff;
    border-radius:14px;
    padding:0 22px;
    cursor:pointer;
    font-weight:600;
}

.nav{
    display:flex;
    gap:24px;
}

.nav a{
    color:#374151;
    font-weight:500;
}

.nav a:hover{
    color:#2563eb;
}

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

.icon-btn{
    width:42px;
    height:42px;
    background:#f3f4f6;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* ==========================
   HERO
========================== */

.hero{
    padding:60px 0;
}

.hero-card{
    background:#fff;
    border-radius:32px;
    padding:40px;
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:40px;
    box-shadow:0 15px 40px rgba(0,0,0,.05);
}

.hero-badge{
    display:inline-flex;
    padding:10px 16px;
    background:#eef4ff;
    color:#2563eb;
    border-radius:100px;
    font-size:14px;
    font-weight:600;
}

.hero-content h1{
    font-size:58px;
    line-height:1.05;
    margin:20px 0;
    font-weight:800;
}

.hero-content p{
    color:#6b7280;
    font-size:18px;
    max-width:600px;
}

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

.btn{
    padding:15px 24px;
    border-radius:14px;
    font-weight:600;
    transition:.2s;
}

.btn-primary{
    background:#2563eb;
    color:#fff;
}

.btn-primary:hover{
    transform:translateY(-2px);
}

.btn-light{
    background:#f3f4f6;
    color:#111827;
}

.hero-stats{
    display:flex;
    gap:50px;
    margin-top:40px;
}

.stat{
    display:flex;
    flex-direction:column;
}

.stat strong{
    font-size:26px;
}

.stat span{
    color:#6b7280;
}

.hero-products{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}

.hero-product{
    position:relative;
    overflow:hidden;
    border-radius:24px;
    min-height:220px;
}

.hero-product.large{
    grid-column:span 2;
    min-height:320px;
}

.hero-product img{
    height:100%;
    object-fit:cover;
}

.hero-product span{
    position:absolute;
    left:15px;
    bottom:15px;
    background:rgba(0,0,0,.6);
    color:#fff;
    padding:8px 12px;
    border-radius:10px;
    font-size:14px;
}

/* ==========================
   SECTIONS
========================== */

.categories,
.products,
.brands,
.reviews,
.contacts{
    padding:10px 0;
}

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.section-header h2,
.brands h2,
.reviews h2{
    font-size:36px;
}

.section-header a{
    color:#2563eb;
    font-weight:600;
}

/* ==========================
   CATEGORIES
========================== */

.categories-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.category-card{
    background:#fff;
    border-radius:24px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
    transition:.2s;
}

.category-card:hover{
    transform:translateY(-4px);
}

.category-icon{
    font-size:42px;
    margin-bottom:16px;
}

.category-card h3{
    margin-bottom:8px;
}

.category-card span{
    color:#6b7280;
}

/* ==========================
   PRODUCTS
========================== */

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

.product-card{
    position:relative;
    overflow:hidden;
    background:#fff;
    border-radius:24px;
    box-shadow:0 10px 25px rgba(0,0,0,.05);
}

.product-image{
    height:260px;
    overflow:hidden;
    background:#f3f4f6;
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

.product-body{
    padding:24px;
}

.product-rating{
    color:#f59e0b;
    margin-bottom:10px;
}

.product-card h3{
    margin-bottom:15px;
    min-height:54px;
}

.product-price{
    font-size:28px;
    font-weight:700;
    margin-bottom:18px;
}

.product-card button{
    width:100%;
    height:48px;
    border:none;
    border-radius:14px;
    background:#2563eb;
    color:#fff;
    cursor:pointer;
    font-weight:600;
}

.product-badge{
    position:absolute;
    top:15px;
    left:15px;
    z-index:2;
    background:#22c55e;
    color:#fff;
    padding:8px 12px;
    border-radius:10px;
    font-size:12px;
    font-weight:700;
}

.product-badge.sale{
    background:#ef4444;
}

/* ==========================
   BRANDS
========================== */

.brands-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
    margin-top:30px;
}

.brand-card{
    background:#fff;
    border-radius:20px;
    min-height:110px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    font-weight:700;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
}

/* ==========================
   ADVANTAGES
========================== */

.advantages{
    padding:20px 0 70px;
}

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

.advantage-card{
    background:#fff;
    padding:28px;
    border-radius:24px;
    text-align:center;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
}

.advantage-card strong{
    display:block;
    margin-bottom:8px;
    font-size:18px;
}

.advantage-card span{
    color:#6b7280;
}

/* ==========================
   REVIEWS
========================== */

.reviews-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:24px;
    margin-top:30px;
}

.review-card{
    background:#fff;
    border-radius:24px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
}

.review-user{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:20px;
}

.avatar{
    width:55px;
    height:55px;
    border-radius:50%;
    background:#2563eb;
    color:#fff;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
}

.review-user span{
    display:block;
    color:#f59e0b;
}

/* ==========================
   CONTACTS
========================== */

.contacts-card{
    display:grid;
    grid-template-columns:400px 1fr;
    gap:25px;
}

.contact-info,
.map{
    background:#fff;
    border-radius:28px;
    padding:40px;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
}

.contact-info h2{
    margin-bottom:20px;
}

.contact-info p{
    margin-bottom:10px;
    color:#6b7280;
}

.map{
    min-height:350px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    font-weight:700;
    color:#6b7280;
}

/* ==========================
   FOOTER
========================== */

.footer{
    margin-top:50px;
    background:#fff;
    border-top:1px solid #e5e7eb;
}

.footer > .container{
    padding:0 20px;
}


/* ==========================
   TABLET
========================== */

@media (max-width:1200px){

    .nav{
        display:none;
    }

    .hero-content h1{
        font-size:48px;
    }

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

/* ==========================
   MOBILE
========================== */

@media (max-width:992px){

    .hero-card{
        grid-template-columns:1fr;
        padding:25px;
    }

    .hero-products{
        order:-1;
    }

    .hero-content h1{
        font-size:40px;
    }

    .hero-stats{
        gap:25px;
        flex-wrap:wrap;
    }

    .header .container{
        flex-wrap:wrap;
        padding:15px 20px;
    }

    .search-box{
        width:100%;
        order:10;
    }
}

@media (max-width:576px){

    .hero-content h1{
        font-size:32px;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .btn{
        text-align:center;
    }

    .hero-product.large{
        min-height:240px;
    }

    .hero-product{
        min-height:160px;
    }

    .section-header{
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }

    .section-header h2,
    .brands h2,
    .reviews h2{
        font-size:28px;
    }

    .product-price{
        font-size:24px;
    }

    .review-card,
    .category-card,
    .brand-card{
        border-radius:20px;
    }
}

/* ==========================
   CATALOG
========================== */

.catalog-page{
    padding:40px 0 80px;
}

.catalog-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
}

.catalog-top h1{
    font-size:42px;
}

.sort-select{
    border:1px solid #e5e7eb;
    background:#fff;
    border-radius:14px;
    padding:12px 16px;
}

.catalog-layout{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:30px;
}

.filters{
    background:#fff;
    padding:25px;
    border-radius:24px;
    height:fit-content;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
}

.filters h3{
    margin-bottom:15px;
}

.filters label{
    display:block;
    margin-bottom:12px;
    cursor:pointer;
}

.filters hr{
    margin:25px 0;
    border:none;
    border-top:1px solid #e5e7eb;
}

.filter-input{
    width:100%;
    height:46px;
    margin-bottom:12px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    padding:0 15px;
}

.filter-btn{
    width:100%;
    height:48px;
    border:none;
    border-radius:14px;
    background:#2563eb;
    color:#fff;
    font-weight:600;
    cursor:pointer;
}

.pagination{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:40px;
}

.pagination a{
    width:44px;
    height:44px;
    background:#fff;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#111827;
    font-weight:600;
    box-shadow:0 4px 10px rgba(0,0,0,.05);
}

.pagination a.active{
    background:#2563eb;
    color:#fff;
}

@media (max-width:992px){

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

    .catalog-top{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .catalog-top h1{
        font-size:32px;
    }
}

/* PRODUCT PAGE */

.product-page{
    padding:40px 0;
}

.breadcrumbs{
    color:#6b7280;
    margin-bottom:25px;
}

.product-layout{
    display:grid;
    grid-template-columns:1fr 500px;
    gap:40px;
}

.product-gallery,
.product-info{
    background:#fff;
    border-radius:28px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
}

.product-main-image{
    height:520px;
    border-radius:20px;
    background:linear-gradient(135deg,#dbeafe,#eff6ff);
}

.product-thumbs{
    display:flex;
    gap:12px;
    margin-top:20px;
}

.thumb{
    width:90px;
    height:90px;
    border-radius:16px;
    background:#eef2ff;
    cursor:pointer;
}

.thumb.active{
    border:3px solid #2563eb;
}

.product-rating-large{
    color:#f59e0b;
    margin-bottom:12px;
}

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

.product-subtitle{
    color:#6b7280;
    margin-bottom:20px;
}

.product-price-large{
    font-size:42px;
    font-weight:800;
}

.old-price{
    text-decoration:line-through;
    color:#9ca3af;
    margin-top:8px;
}

.discount-badge{
    display:inline-block;
    margin-top:12px;
    background:#dcfce7;
    color:#16a34a;
    padding:8px 12px;
    border-radius:10px;
}

.option-group{
    margin-top:25px;
}

.option-group span{
    display:block;
    margin-bottom:10px;
    font-weight:600;
}

.options{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.option{
    border:1px solid #d1d5db;
    background:#fff;
    border-radius:12px;
    padding:12px 18px;
    cursor:pointer;
}

.option.active{
    background:#2563eb;
    color:#fff;
    border-color:#2563eb;
}

.buy-actions{
    display:flex;
    gap:12px;
    margin-top:30px;
}

.buy-btn,
.fast-buy-btn{
    flex:1;
    height:54px;
    border:none;
    border-radius:14px;
    font-weight:600;
    cursor:pointer;
}

.buy-btn{
    background:#2563eb;
    color:#fff;
}

.fast-buy-btn{
    background:#f3f4f6;
}

.delivery-box{
    margin-top:25px;
    display:flex;
    flex-direction:column;
    gap:10px;
    color:#374151;
}

.product-details,
.specs{
    padding:20px 0;
}

.tabs{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.tab{
    border:none;
    background:#fff;
    padding:12px 20px;
    border-radius:12px;
    cursor:pointer;
}

.tab.active{
    background:#2563eb;
    color:#fff;
}

.detail-card,
.specs-card{
    background:#fff;
    border-radius:24px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
}

.detail-card p{
    margin-top:15px;
}

.spec-row{
    display:flex;
    justify-content:space-between;
    padding:16px 0;
    border-bottom:1px solid #e5e7eb;
}

.spec-row:last-child{
    border-bottom:none;
}

.related-products{
    padding-top:40px;
}

@media(max-width:992px){

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

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

    .buy-actions{
        flex-direction:column;
    }

    .product-main-image{
        height:350px;
    }
}

.phone-box{
    display:flex;
    align-items:center;
    gap:12px;

    padding:10px 16px;

    background:#fff;
    border:1px solid #e5e7eb;

    border-radius:16px;

    color:#111827;

    transition:.2s;
}

.phone-box:hover{
    border-color:#2563eb;
}

.phone-icon{
    width:42px;
    height:42px;

    border-radius:12px;

    background:#eff6ff;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#2563eb;
    font-size:18px;
}

.phone-info{
    display:flex;
    flex-direction:column;
}

.phone-info span{
    font-size:12px;
    color:#6b7280;
}

.phone-info strong{
    font-size:15px;
    font-weight:700;
}

.product-title{
    color:#111827;
    text-decoration:none;
    transition:.2s;
}

.product-title:hover{
    color:#2563eb;
    text-decoration:none;
}

.product-title:visited{
    color:#111827;
}

.product-title:active{
    color:#2563eb;
}
.categories-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
    gap:22px;
}

.category-card{
    position:relative;

    display:flex;
    align-items:center;
    justify-content:space-between;

    min-height:120px;
    padding:28px;

    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:24px;

    overflow:hidden;

    transition:all .25s ease;
}

.category-card::before{
    content:"";
    position:absolute;
    inset:0;

    background:linear-gradient(
        135deg,
        rgba(37,99,235,.05),
        transparent 60%
    );

    opacity:0;
    transition:.25s;
}

.category-card::after{
    content:"→";

    position:absolute;
    right:28px;
    top:50%;

    transform:translateY(-50%) translateX(-8px);

    font-size:24px;
    font-weight:700;
    color:#2563eb;

    opacity:0;

    transition:.25s;
}

.category-card:hover{
    transform:translateY(-6px);
    border-color:#2563eb;
    box-shadow:0 18px 40px rgba(37,99,235,.12);
}

.category-card:hover::before{
    opacity:1;
}

.category-card:hover::after{
    opacity:1;
    transform:translateY(-50%) translateX(0);
}

.category-info{
    position:relative;
    z-index:2;

    padding-right:45px;
}

.category-info h2{
    margin:0;

    font-size:22px;
    line-height:1.35;
    font-weight:700;

    color:#111827;

    transition:.25s;
}

.category-card:hover .category-info h2{
    color:#2563eb;
}

@media (max-width:576px){

    .category-card{
        min-height:100px;
        padding:22px;
    }

    .category-info{
        padding-right:36px;
    }

    .category-info h2{
        font-size:18px;
    }

    .category-card::after{
        right:22px;
        font-size:20px;
    }
}

.link{
    display:inline-flex;
    align-items:center;
    gap:8px;

    color:#2563eb;
    font-weight:600;
    text-decoration:none;

    transition:.2s ease;
}


.link:hover{
    color:#1d4ed8;
}

.link:hover::after{
    transform:translateX(4px);
}
.product-gallery{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.gallery-main{
    position:relative;

    height:560px;

    background:#fff;

    border-radius:24px;

    overflow:hidden;

    border:1px solid #e5e7eb;
}

.gallery-slide{
    position:absolute;
    inset:0;

    display:none;
    align-items:center;
    justify-content:center;

    padding:25px;
}

.gallery-slide.active{
    display:flex;
}

.gallery-slide img{
    max-width:100%;
    max-height:100%;

    object-fit:contain;

    user-select:none;
    -webkit-user-drag:none;
}

.gallery-thumbs{
    display:flex;
    gap:12px;

    justify-content:center;
    align-items:center;

    flex-wrap:wrap;
}

.gallery-thumb{

    width:90px;
    height:90px;

    border:2px solid transparent;
    border-radius:16px;

    overflow:hidden;

    background:#fff;

    cursor:pointer;

    transition:.25s;

    flex-shrink:0;
}

.gallery-thumb:hover{
    border-color:#93c5fd;
    transform:translateY(-2px);
}

.gallery-thumb.active{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

.gallery-thumb img{
    width:100%;
    height:100%;

    object-fit:cover;
}

@media (max-width:992px){

    .gallery-main{
        height:420px;
    }

    .gallery-thumb{
        width:75px;
        height:75px;
    }

}

@media (max-width:576px){

    .gallery-main{
        height:320px;
    }

    .gallery-thumbs{
        gap:8px;
    }

    .gallery-thumb{
        width:60px;
        height:60px;
    }

}

.hero-card{
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:40px;
    align-items:center;
}

.hero-banner{
    position:relative;

    height:590px;
    border-radius:28px;


}

.hero-banner img{


    object-fit:cover;

    transition:.4s;
}

.hero-banner:hover img{
    transform:scale(1.03);
}

.categories-images{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:40px;
}

.category-image{
    display:block;

    overflow:hidden;

    border-radius:28px;

    border:1px solid transparent;

    transition:border-color .2s ease, box-shadow .2s ease;

}

.category-image img{
    display:block;

    width:100%;
    height:auto;

    border-radius:10px;
}

.category-image:hover{
    border-color:#2563eb;
}

@media(max-width:992px){

    .categories-images{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:576px){

    .categories-images{
        grid-template-columns:1fr;
    }

}

.categories-swiper{
    overflow:hidden;
    padding:10px 2px 50px;
}

.category-image{

    display:block;

    border-radius:28px;

    overflow:hidden;

    transition:.25s;
}

.category-image img{

    width:100%;
    display:block;

    border-radius:25px;

    transition:.35s;
}

.categories-swiper .swiper-button-next,
.categories-swiper .swiper-button-prev{

    color:#2563eb;

    width:42px;
    height:42px;

    background:#fff;

    border-radius:50%;

    box-shadow:0 8px 25px rgba(0,0,0,.12);
}

.categories-swiper .swiper-button-next::after,
.categories-swiper .swiper-button-prev::after{
    font-size:18px;
    font-weight:bold;
}

.popular-products{
    padding:60px 0;
}

.popular-grid{

    display:grid;

    grid-template-columns:2fr 1fr;

    gap:24px;
}

.popular-main{

    display:flex;
    flex-direction:column;

    background:#fff;

    border-radius:28px;

    overflow:hidden;

    border:1px solid #e5e7eb;

    transition:.25s;
}

.popular-main:hover{
    border-color:#2563eb;
}

.popular-main img{

    width:100%;
    height:530px;

    object-fit:cover;
}

.popular-info{

    padding:24px;
}

.popular-info h3{

    font-size:28px;

    margin-bottom:12px;

    color:#111827;
}

.popular-info span{

    font-size:30px;

    font-weight:700;

    color:#2563eb;
}

.popular-side{

    display:flex;

    flex-direction:column;

    gap:24px;
}

.popular-small{

    display:flex;

    gap:18px;

    align-items:center;

    background:#fff;

    border-radius:24px;

    border:1px solid #e5e7eb;

    padding:18px;

    transition:.25s;
}

.popular-small:hover{
    border-color:#2563eb;
}

.popular-small img{

    width:160px;
    height:160px;

    object-fit:cover;

    border-radius:18px;

    flex-shrink:0;
}

.popular-small h3{

    color:#111827;

    font-size:20px;

    margin-bottom:10px;
}

.popular-small span{

    font-size:24px;

    font-weight:700;

    color:#2563eb;
}

@media(max-width:992px){

    .popular-grid{

        grid-template-columns:1fr;
    }

    .popular-main img{

        height:360px;
    }

}

@media(max-width:576px){

    .popular-small{

        flex-direction:column;

        text-align:center;
    }

    .popular-small img{

        width:100%;
        height:220px;
    }

}

.footer{
    background:#fff;
    border-top:1px solid #e5e7eb;
    margin-top:60px;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:40px;
    padding:50px 0;
}

.footer-logo{
    font-size:22px;
    font-weight:800;
    margin-bottom:15px;
}

.footer-logo img {
    width: 220px;
}

.footer-logo span{
    color:#2563eb;
}

.footer-text{
    color:#6b7280;
    margin-bottom:20px;
    max-width:320px;
}

.footer-socials{
    display:flex;
    gap:10px;
}

.social{
    width:38px;
    height:38px;
    border-radius:10px;
    background:#f3f4f6;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
    color:#111827;
    transition:.2s;
}

.social:hover{
    background:#2563eb;
    color:#fff;
}

.footer-col h3{
    font-size:16px;
    margin-bottom:15px;
}

.footer-col a{
    display:block;
    color:#6b7280;
    margin-bottom:10px;
    transition:.2s;
}

.footer-col a:hover{
    color:#2563eb;
}

.footer-contact{
    display:flex;
    flex-direction:column;
    gap:8px;
    color:#6b7280;
    margin-bottom:15px;
}

.footer-btn{
    width:100%;
    height:42px;
    border:none;
    border-radius:12px;
    background:#2563eb;
    color:#fff;
    font-weight:600;
    cursor:pointer;
}

.footer-btn:hover{
    background:#1d4ed8;
}

/* MOBILE */
@media(max-width:992px){
    .footer-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:576px){
    .footer-grid{
        grid-template-columns:1fr;
    }
}

.contact-item{
    display:flex;
    align-items:center;
    gap:10px;
    color:#6b7280;
    margin-bottom:8px;
}

.phone-icon{
    flex-shrink:0;
    width:34px;
    height:34px;
    border-radius:10px;
    background:#eff6ff;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#2563eb;
}

.contact-item span{
    line-height:1.4;
    display:block;
}

.reviews{
    padding:60px 0;
}

.reviews-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:24px;
}

.review-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:24px;
    padding:24px;
    box-shadow:0 10px 25px rgba(0,0,0,.04);
    transition:.25s;
}

.review-card:hover{
    transform:translateY(-4px);
    border-color:#2563eb;
}

.review-user{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:15px;
}

.avatar{
    width:44px;
    height:44px;
    border-radius:12px;
    background:#2563eb;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}

.review-user strong{
    display:block;
    font-size:16px;
}

.review-user span{
    color:#f59e0b;
    font-size:14px;
}

.review-card p{
    color:#6b7280;
    line-height:1.5;
}

.search-box{
    position:relative;
    flex:1;
    display:flex;
    gap:10px;
}

.search-results{

    position:absolute;
    left:0;
    right:0;
    top:58px;

    background:#fff;

    border:1px solid #e5e7eb;
    border-radius:18px;

    overflow:hidden;

    box-shadow:0 20px 50px rgba(0,0,0,.08);

    display:none;

    z-index:1000;
}

.search-results.show{
    display:block;
}

.search-item{

    display:flex;
    align-items:center;
    gap:14px;

    padding:12px 15px;

    color:#111827;

    transition:.2s;
}

.search-item:hover{
    background:#f8fafc;
}

.search-item img{

    width:56px;
    height:56px;

    object-fit:cover;

    border-radius:12px;

    flex-shrink:0;
}

.search-item-name{

    font-weight:600;
    margin-bottom:4px;
}

.search-item-price{

    color:#2563eb;
    font-weight:700;
}

.search-empty{

    padding:20px;
    text-align:center;
    color:#6b7280;
}

.search-item{
    display:flex;
    align-items:center;
    gap:14px;
    padding:12px 15px;
}

.search-item img{
    width:60px;
    height:60px;

    min-width:60px;
    min-height:60px;

    object-fit:contain; /* целиком помещается */
    object-position:center;

    background:#f8fafc;
    border-radius:10px;

    flex-shrink:0;
}

.search-item > div{
    flex:1;
    min-width:0;
}

/* ==========================
   HOW WORK
========================== */

.how-work{
    padding:60px 0;
}

.how-work-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.how-card{
    position:relative;

    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:28px;

    padding:36px 30px;

    text-align:center;

    transition:.25s;
}

.how-card:hover{
    transform:translateY(-6px);
    border-color:#2563eb;
    box-shadow:0 18px 40px rgba(37,99,235,.10);
}

.how-icon{
    width:72px;
    height:72px;

    margin:0 auto 24px;

    border-radius:20px;

    background:#eff6ff;

    display:flex;
    align-items:center;
    justify-content:center;

    color:#2563eb;
    font-size:34px;
}

.how-card h3{
    font-size:22px;
    margin-bottom:14px;
    color:#111827;
}

.how-card p{
    color:#6b7280;
    line-height:1.7;
}

@media (max-width:992px){

    .how-work-grid{
        grid-template-columns:1fr;
    }

    .how-card{
        padding:30px 24px;
    }

}
.footer-bottom{
    border-top:1px solid #e5e7eb;
    background:#fafafa;
}

.footer-bottom-inner{
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:64px;
    gap:20px;
}

.footer-bottom span{
    color:#6b7280;
    font-size:14px;
}

.footer-bottom-links{
    display:flex;
    align-items:center;
    gap:24px;
}

.footer-bottom-links a{
    color:#6b7280;
    text-decoration:none;
    font-size:14px;
    transition:.2s;
}

.footer-bottom-links a:hover{
    color:#111827;
}

/* ==========================
   PAGE
========================== */

.page{
    padding:60px 0;
}

.page-card{

    max-width:1000px;
    margin:0 auto;

    background:#fff;

    border:1px solid #e5e7eb;
    border-radius:28px;

    padding:50px;

    box-shadow:0 10px 25px rgba(0,0,0,.04);

}

.page-card h1{

    font-size:42px;
    margin-bottom:30px;

    color:#111827;

}

.page-card h2{

    margin:40px 0 16px;

    font-size:26px;

    color:#111827;

}

.page-card p{

    margin-bottom:18px;

    color:#6b7280;

    line-height:1.9;

}

.page-card ul,
.page-card ol{

    margin:20px 0;
    padding-left:24px;

}

.page-card li{

    margin-bottom:10px;

    color:#6b7280;

    line-height:1.8;

}

.page-card table{

    width:100%;

    margin:25px 0;

    border-collapse:collapse;

}

.page-card th,
.page-card td{

    padding:14px 16px;

    border:1px solid #e5e7eb;

    text-align:left;

}

.page-card th{

    background:#f8fafc;

    color:#111827;

}

.page-card strong{

    color:#111827;

}

.page-card a{

    color:#2563eb;
    text-decoration:none;

}

.page-card a:hover{

    text-decoration:underline;

}

@media (max-width:768px){

    .page{
        padding:40px 0;
    }

    .page-card{

        padding:30px 24px;
        border-radius:20px;

    }

    .page-card h1{
        font-size:32px;
    }

    .page-card h2{
        font-size:22px;
    }

}

.footer-categories{
    display:grid;
    grid-template-columns:repeat(2,minmax(120px,1fr));
    gap:10px 24px;
}

.footer-categories a{
    display:block;
    color:#6b7280;
    transition:.2s;
}

.footer-categories a:hover{
    color:#2563eb;
}

@media(max-width:576px){

    .footer-categories{
        grid-template-columns:1fr;
    }

}

.footer-grid{
    display:grid;
    grid-template-columns:320px 2fr 250px 280px;
    gap:40px;
    padding:50px 0;
}

.footer-tags{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
}

.footer-tags a{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:9px 15px;

    background:#f8fafc;

    border:1px solid #e5e7eb;
    border-radius:999px;

    color:#6b7280;
    font-size:14px;
    font-weight:500;

    transition:.2s;
}

.footer-tags a:hover{

    color:#2563eb;
    border-color:#2563eb;
    background:#eff6ff;

}
