* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: #1a1a1a; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Шапка */
header { background: #0d2b45; color: #fff; padding: 18px 0; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 22px; font-weight: 700; letter-spacing: 0.5px; color: #fff; text-decoration: none; }
.logo span { color: #f5a623; }
.header-nav { display: flex; gap: 25px; margin-left: 40px; }
.header-nav a { color: #fff; text-decoration: none; font-size: 15px; transition: 0.2s; }
.header-nav a:hover { color: #f5a623; }
.header-contacts { display: flex; align-items: center; gap: 25px; }
.header-phone { font-size: 17px; font-weight: 600; }
.btn { display: inline-block; padding: 12px 26px; background: #f5a623; color: #0d2b45; border: none; border-radius: 4px; font-weight: 700; cursor: pointer; text-decoration: none; transition: 0.3s; }
.btn:hover { background: #e0951a; }
.btn-outline { background: transparent; border: 2px solid #f5a623; color: #f5a623; }
.btn-outline:hover { background: #f5a623; color: #0d2b45; }

/* Hero */
.hero { background: linear-gradient(135deg, #0d2b45 0%, #1a4a6e 100%); color: #fff; padding: 80px 0; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: #f5a623; }
.hero p { font-size: 17px; opacity: 0.9; margin-bottom: 30px; }
.hero-badge { display: inline-block; background: rgba(245,166,35,0.15); border: 1px solid #f5a623; color: #f5a623; padding: 6px 16px; border-radius: 20px; font-size: 13px; margin-bottom: 20px; }
.manager-card { background: #fff; color: #1a1a1a; padding: 30px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.manager-card h3 { color: #0d2b45; margin-bottom: 8px; }
.manager-card .role { color: #777; font-size: 14px; margin-bottom: 18px; }
.manager-card input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 12px; font-size: 15px; }
.manager-card .note { font-size: 12px; color: #888; margin-top: 12px; text-align: center; }

/* Секции */
section { padding: 70px 0; }
.section-title { font-size: 32px; color: #0d2b45; margin-bottom: 15px; }
.section-subtitle { color: #666; margin-bottom: 45px; font-size: 17px; }
.about-text { max-width: 900px; font-size: 16px; color: #444; }

/* Цифры */
.stats { background: #f7f9fb; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item .num { font-size: 46px; font-weight: 800; color: #f5a623; line-height: 1; }
.stat-item .num span { color: #0d2b45; }
.stat-item .label { margin-top: 10px; color: #555; font-size: 15px; }

/* Каталог */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.product-card { border: 1px solid #e5e9ed; border-radius: 10px; overflow: hidden; transition: 0.3s; background: #fff; display: block; color: inherit; text-decoration: none; }
.product-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.product-img { height: 180px; background: linear-gradient(135deg, #e8eef3, #cbd8e3); display: flex; align-items: center; justify-content: center; color: #0d2b45; font-size: 40px; font-weight: 700; }
.product-body { padding: 22px; }
.product-body h3 { font-size: 18px; color: #0d2b45; margin-bottom: 15px; }
.product-body p { font-size: 14px; color: #666; margin-top: 10px; }
.specs { list-style: none; margin-bottom: 18px; }
.specs li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #eaeef2; font-size: 14px; }
.specs li:last-child { border-bottom: none; }
.specs .k { color: #777; }
.specs .v { font-weight: 600; color: #1a1a1a; }
.product-body .btn { width: 100%; text-align: center; padding: 11px; }

/* Запчасти */
.parts { background: #0d2b45; color: #fff; }
.parts .section-title { color: #fff; }
.parts .section-subtitle { color: #b8c6d1; }
.parts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.part-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); padding: 28px; border-radius: 10px; transition: 0.3s; }
.part-card:hover { background: rgba(245,166,35,0.12); border-color: #f5a623; }
.part-card h3 { color: #f5a623; font-size: 17px; margin-bottom: 12px; }
.part-card p { font-size: 14px; opacity: 0.85; }

/* Новости */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.news-card { border-left: 4px solid #f5a623; padding: 20px 25px; background: #f7f9fb; border-radius: 0 8px 8px 0; display: block; color: inherit; text-decoration: none; transition: 0.3s; }
.news-card:hover { background: #eef2f6; }
.news-date { font-size: 13px; color: #f5a623; font-weight: 700; margin-bottom: 8px; }
.news-card h3 { font-size: 17px; color: #0d2b45; margin-bottom: 10px; }
.news-card p { font-size: 14px; color: #666; }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info p { margin-bottom: 15px; font-size: 16px; }
.contact-info strong { color: #0d2b45; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px; border: 1px solid #ddd; border-radius: 4px; margin-bottom: 14px; font-family: inherit; font-size: 15px; }
.contact-form textarea { resize: vertical; min-height: 100px; }
.map-placeholder { background: #e8eef3; border-radius: 10px; height: 100%; min-height: 320px; display: flex; align-items: center; justify-content: center; color: #0d2b45; font-size: 15px; text-align: center; padding: 20px; }

/* Футер */
footer { background: #081c2e; color: #8fa3b3; padding: 30px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer-inner a { color: inherit; text-decoration: none; }
.footer-inner a:hover { color: #f5a623; }

/* Адаптив */
@media (max-width: 900px) {
  .hero-grid, .contacts-grid { grid-template-columns: 1fr; }
  .stats-grid, .catalog-grid, .parts-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
  .header-nav { display: none; }
}
@media (max-width: 600px) {
  .stats-grid, .catalog-grid, .parts-grid, .news-grid { grid-template-columns: 1fr; }
  .header-contacts .header-phone { display: none; }
  .section-title { font-size: 26px; }
}

/* Улучшенные карточки каталога */
.product-card {
    display: flex;
    flex-direction: column;
}

.product-card .product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card .product-body .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

.product-card .product-body p {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

/* Фон картинок категорий */
.product-img {
    background-size: cover;
    background-position: center;
    transition: transform 0.4s;
    overflow: hidden;
}

.product-card:hover .product-img {
    transform: scale(1.03);
}

/* Стили для страниц категорий */
.category-header {
    margin-bottom: 40px;
}

.category-header .back-link {
    display: inline-block;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 20px;
}

.category-header .back-link:hover {
    color: #f5a623;
}

/* Стили для карточки товара */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
}

.product-detail .product-image img {
    width: 100%;
    border-radius: 10px;
}

.product-detail .product-info h2 {
    font-size: 22px;
    color: #0d2b45;
    margin-bottom: 15px;
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}
