* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; }
body { font-family: Arial, sans-serif; font-size: 15px; color: #333; background: #fff; line-height: 1.5; overflow-x: hidden; }

.container { max-width: 960px; margin: 0 auto; padding: 0 15px; width: 100%; }

.site-header { background: #fff; border-bottom: 3px solid #4CAF50; }

.main-nav ul { list-style: none; display: flex; gap: 15px; flex-wrap: wrap; }
.main-nav ul li a { text-decoration: none; color: #333; font-weight: bold; font-size: 13px; text-transform: uppercase; white-space: nowrap; }
.main-nav ul li a:hover { color: #4CAF50; }
.main-nav ul li a.active { color: #4CAF50; border-bottom: 2px solid #4CAF50; }
.menu-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: #2E7D32; }

.hero { background: #E8F5E9; padding: 6px 15px; text-align: center; margin-bottom: 15px; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero h1 { font-size: 15px; color: #2E7D32; margin: 0; display: inline; }
.hero p { color: #555; font-size: 13px; margin: 0; display: inline; }

.phones { text-align: center; margin: 20px 0; }
.phones a { color: #2E7D32; font-weight: bold; text-decoration: none; margin: 0 10px; font-size: 16px; }

.features { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin: 25px 0; }
.feature { background: #F1F8E9; padding: 15px 25px; border-radius: 6px; text-align: center; border: 1px solid #C8E6C9; }
.feature strong { display: block; font-size: 20px; color: #2E7D32; }

.about-text p { margin-bottom: 10px; }

.product-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 25px 0; }
.card { border: 1px solid #e0e0e0; border-radius: 8px; padding: 12px; text-align: center; background: #fff; transition: box-shadow 0.2s, transform 0.2s; }
.card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.15); transform: translateY(-3px); }
.card img { width: 100%; max-width: 100%; height: auto; margin-bottom: 8px; }
.card h3 { font-size: 14px; margin: 6px 0; color: #333; }
.price { font-size: 16px; font-weight: bold; color: #2E7D32; margin: 6px 0; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: bold; }
.in-stock { background: #C8E6C9; color: #2E7D32; }
.out-of-stock { background: #FFCDD2; color: #C62828; }
.on-request { background: #FFE0B2; color: #E65100; }

.btn-buy { display: inline-block; background: #4CAF50; color: #fff; padding: 8px 20px; border-radius: 4px; text-decoration: none; font-weight: bold; font-size: 13px; margin-top: 6px; }
.btn-buy:hover { background: #388E3C; }

.subcategories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.subcat-card { border: 1px solid #C8E6C9; padding: 15px; text-align: center; text-decoration: none; color: #333; border-radius: 6px; }
.subcat-card:hover { background: #E8F5E9; }
.subcat-card h3 { color: #2E7D32; font-size: 16px; }

.product-detail { display: flex; gap: 25px; margin: 20px 0; flex-wrap: wrap; align-items: flex-start; }
.product-detail img { width: 40%; max-width: 350px; min-width: 250px; height: auto; border: 1px solid #e0e0e0; border-radius: 6px; flex-shrink: 0; }
.product-detail .article { color: #999; font-size: 13px; }
.product-detail h1 { color: #2E7D32; font-size: 22px; margin: 10px 0; }
.product-detail h2 { font-size: 17px; color: #333; margin: 15px 0 8px; }
.product-detail ul { margin: 8px 0 0 18px; }

main { padding: 25px 0; min-height: 55vh; max-width: 960px; margin: 0 auto; }
main h1 { color: #2E7D32; font-size: 22px; margin-bottom: 15px; }
main h2 { font-size: 18px; margin: 18px 0 8px; }
main p, main li { margin-bottom: 10px; }

.site-footer { background: #2E7D32; color: #fff; padding: 30px 0; margin-top: 35px; font-size: 14px; }
.site-footer .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: 100%; }
.site-footer h3 { color: #A5D6A7; font-size: 15px; margin-bottom: 8px; }
.site-footer a { color: #C8E6C9; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.announcement { background: #FFF9C4; padding: 12px 18px; border-left: 5px solid #FBC02D; margin: 15px 0; font-size: 14px; line-height: 1.6; }

@media (max-width: 960px) {
    .product-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .menu-toggle { display: block; }
    .main-nav ul { display: none; }
    .main-nav.open ul { display: flex; flex-direction: column; width: 100%; }
    .main-nav ul li { border-bottom: 1px solid #eee; padding: 8px 0; }
    .main-nav ul li a.active { color: #4CAF50; border-bottom: none; border-left: 3px solid #4CAF50; padding-left: 10px; font-weight: bold; background: #E8F5E9; }
    .header-phones { font-size: 12px; gap: 8px; padding-left: 15px; text-align: left; }
    .subcategories { grid-template-columns: 1fr; }
    .product-detail { flex-direction: column; }
    .product-detail img { max-width: 100%; }
    .site-footer .container { grid-template-columns: 1fr; }
    .features { flex-direction: column; }
    .hero h1 { font-size: 13px; }
    .hero p { font-size: 12px; }
}

@media (max-width: 600px) {
    .product-cards { grid-template-columns: 1fr; }
}

@media (min-width: 861px) {
    .btn-buy[href^="tel:"] { cursor: pointer; }
}