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

body {
    font-family: 'Montserrat', sans-serif;
    background: #f3efe9;
    color: #222;
    overflow-x: hidden;
}

.container {
    width: min(1280px, 95%);
    margin: auto;
}

.top {
    background: #171717;
    color: #fff;
    padding: 18px 0;
    border-bottom: 3px solid #e87817;
}

.top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 52px;
    font-weight: 800;
    cursor: pointer;
}

.logo span {
    color: #e87817;
}

.contacts {
    text-align: right;
    line-height: 1.7;
    font-size: 15px;
}

.contacts strong {
    color: #e87817;
}

.nav {
    background: #1f1f1f;
    position: sticky;
    top: 0;
    z-index: 99;
}

.nav-inner {
    display: flex;
    gap: 10px;
    overflow: auto;
}

.nav a {
    color: #fff;
    padding: 18px 24px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
    border-bottom: 3px solid transparent;
}

.nav a:hover {
    border-color: #e87817;
    background: #292929;
}

.hero {
    position: relative;
    height: 540px;
    overflow: hidden;
}

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

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.25));
}

.hero-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    color: #fff;
    max-width: 600px;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.05;
    margin-bottom: 26px;
    font-weight: 800;
}

.hero-btn {
    background: linear-gradient(#ff972f, #e56f00);
    padding: 18px 34px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(229, 111, 0, 0.4);
    transition: .3s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(229, 111, 0, 0.6);
}

.section {
    padding: 38px 0;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 15px;
}

.title {
    font-size: 42px;
    font-weight: 800;
    position: relative;
    padding-left: 15px;
}

.title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 5px;
    background: #e87817;
}

.reset-filter-btn {
    background: #171717;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    display: none;
}

.reset-filter-btn:hover {
    background: #e87817;
}

.categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.card {
    position: relative;
    height: 170px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: .3s;
    cursor: pointer;
}

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

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.card:hover img {
    transform: scale(1.08);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.card-title {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}

.banner {
    height: 180px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.65), transparent);
}

.banner-content {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    z-index: 2;
}

.banner h3 {
    font-size: 34px;
    margin-bottom: 5px;
    font-weight: 800;
}

.banner p {
    font-size: 16px;
    color: #ffbc7d;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    min-height: 200px;
}

.product {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transition: .3s;
    display: flex;
    flex-direction: column;
}

.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    cursor: pointer;
}

.product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.product:hover .product-img-wrapper img {
    transform: scale(1.06);
}

.product-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
    cursor: pointer;
}

.product h3:hover {
    color: #e87817;
}

.price {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 18px;
    color: #111;
}

.buy {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(#ff972f, #e56f00);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.buy:hover {
    filter: brightness(1.1);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.feature {
    background: #fff;
    padding: 26px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.feature-icon {
    font-size: 42px;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 4px;
    font-weight: 700;
}

.feature p {
    font-size: 14px;
    color: #666;
}

.about {
    background: #fff;
    padding: 34px;
    border-radius: 18px;
    line-height: 1.8;
    font-size: 18px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.cart-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: #e87817;
    padding: 18px 24px;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    transition: .3s;
}

.cart-btn:hover {
    transform: scale(1.05);
}

.cart {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: #fff;
    padding: 26px;
    transition: .35s;
    z-index: 1000;
    overflow: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.18);
}

.cart.open {
    right: 0;
}

.cart h2 {
    font-size: 38px;
    margin-bottom: 24px;
    font-weight: 800;
}

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

.close-cart {
    font-size: 28px;
    cursor: pointer;
    color: #999;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.remove {
    border: none;
    background: #fee2e2;
    color: #ef4444;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.remove:hover {
    background: #ef4444;
    color: #fff;
}

.total {
    font-size: 30px;
    font-weight: 800;
    margin-top: 24px;
    background: #fbf9f5;
    padding: 15px;
    border-radius: 10px;
    text-align: right;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #777;
    background: #fff;
    border-radius: 14px;
}

.product-page {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-page.open {
    display: flex;
    opacity: 1;
}

.p-modal {
    background: #fff;
    width: min(880px, 95%);
    max-height: 90vh;
    border-radius: 22px;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: popUp 0.35s ease;
}

@keyframes popUp {
    from {
        transform: translateY(30px);
    }
    to {
        transform: translateY(0);
    }
}

.close-page {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    color: #111;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.p-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    padding: 35px;
}

.p-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 14px;
}

.p-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.p-title {
    font-size: 34px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.2;
}

.p-category {
    color: #e87817;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.p-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.p-specs {
    background: #fbf9f5;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.p-specs table {
    width: 100%;
    border-collapse: collapse;
}

.p-specs td {
    padding: 6px 0;
    font-size: 14px;
}

.p-specs td:first-child {
    color: #777;
}

.p-specs td:last-child {
    text-align: right;
    font-weight: 600;
    color: #111;
}

.p-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

footer {
    background: #171717;
    color: #fff;
    padding: 34px 0;
    margin-top: 40px;
}

@media (max-width: 1100px) {
    .categories, .products, .features, .banners {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero h1 {
        font-size: 48px;
    }
    .p-grid {
        grid-template-columns: 1fr;
        padding: 25px;
    }
    .p-image img {
        height: 280px;
    }
}

@media (max-width: 700px) {
    .categories, .products, .features, .banners {
        grid-template-columns: 1fr;
    }
    .logo {
        font-size: 28px;  /* уменьшил с 34px */
    }
    .hero {
        height: 430px;
    }
    .hero-content {
        left: 24px;
    }
    .hero h1 {
        font-size: 28px;  /* уменьшил с 34px */
    }
    .cart {
        width: 100%;
    }

    /* ДОБАВЬТЕ ЭТИ СТИЛИ ДЛЯ ШАПКИ */
    .top-inner {
        flex-direction: column;  /* элементы в столбик */
        text-align: center;
        gap: 10px;
    }

    .contacts {
        text-align: center;
        font-size: 12px;  /* чуть меньше шрифт */
    }

    .contacts br {
        display: none;  /* убираем перенос строки */
    }

    .contacts strong {
        display: inline-block;
    }

    .nav a {
        padding: 12px 16px;  /* уменьшаем отступы */
        font-size: 14px;
    }
}
.checkout-btn {
    transition: transform 0.2s;
}
.checkout-btn:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}
.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #e87817;
    color: white;
    border-color: #e87817;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

@media (max-width: 500px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .cart-item > div:last-child {
        align-self: flex-end;
    }
}