/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: #eef2f5;
    color: #1e2a36;
    line-height: 1.5;
    font-size: 16px;
}

/* ===== КОНТЕЙНЕР ===== */
.document {
    max-width: 1400px;
    margin: 32px auto;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* ===== ШАПКА ===== */
.header {
    padding: 20px 32px;
    border-bottom: 2px solid #dce4ec;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: #ffffff;
}

.logo img {
    height: 52px;
    width: auto;
}

.company {
    text-align: right;
    font-size: 13px;
    color: #5f7f9f;
    line-height: 1.4;
}

.company strong {
    font-size: 15px;
    color: #1e4663;
}

/* ===== НАВИГАЦИЯ ===== */
.nav {
    background: #1e2c3a;
    padding: 0 32px;
}

.nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.nav ul li a {
    display: block;
    padding: 14px 28px;
    color: #ccd7e2;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-bottom: 2px solid transparent;
    transition: 0.15s;
}

.nav ul li a:hover {
    color: #ffffff;
    border-bottom-color: #6f9fbf;
}

.nav ul li a.active {
    border-bottom-color: #ff9f4a;
    color: #ffffff;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main {
    padding: 40px 32px;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.path {
    font-size: 12px;
    color: #7e95ab;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.path a {
    color: #2c5f8a;
    text-decoration: none;
}
.path a:hover {
    text-decoration: underline;
}

/* ===== ЗАГОЛОВКИ ===== */
h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a3348;
    margin-bottom: 20px;
    border-left: 4px solid #ff9f4a;
    padding-left: 20px;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a3348;
    margin-bottom: 20px;
    border-left: 4px solid #ff9f4a;
    padding-left: 20px;
}

.section-description {
    font-size: 16px;
    color: #4a6275;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

/* ===== СЕТКА ТОВАРОВ ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    border-color: #2c5f8a;
}

/* ===== БЛОК ИЗОБРАЖЕНИЯ ===== */
.product-image {
    text-align: center;
    margin-bottom: 15px;
    background: #fafcfd;
    padding: 15px;
    border-radius: 8px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ===== ЗАГОЛОВОК ТОВАРА ===== */
.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.35;
    min-height: 40px;
    text-align: center;
}

.product-title a {
    color: #1e4663;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #2c5f8a;
}

/* ===== ОПИСАНИЕ ===== */
.product-description {
    font-size: 13px;
    color: #4a6275;
    line-height: 1.45;
    margin-bottom: 15px;
    margin-top: 0;
    min-height: 50px;
    flex: 1;
    text-align: center;
}

/* ===== БЕЙДЖ ЗАЩИТЫ ===== */
.protection-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    width: auto;
    max-width: fit-content;
}

.ip54 {
    background: #e8f5e9;
    color: #2e7d32;
}

.ip31 {
    background: #fff3e0;
    color: #ef6c00;
}

/* ===== КНОПКА ===== */
.product-link {
    display: inline-block;
    background: #2c5f8a;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s ease;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.product-link:hover {
    background: #1e4663;
}

/* ===== БЛОК КОНТАКТОВ ===== */
.contact-block {
    background: #1e2c3a;
    color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0 20px;
}

.contact-block p {
    margin: 8px 0;
}

.contact-block strong {
    font-size: 24px;
    color: #ff9f4a;
}

.contact-block a {
    color: #ff9f4a;
    text-decoration: none;
}

.contact-block a:hover {
    text-decoration: underline;
}

/* ===== ФУТЕР ===== */
.footer {
    background: #1e2c3a;
    padding: 28px 32px;
    font-size: 13px;
    color: #a0b3c2;
    text-align: center;
    border-top: 1px solid #2a3a48;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.footer-links li a {
    color: #ccd7e2;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links li a:hover {
    color: #ffffff;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .main {
        padding: 28px 24px;
    }
    .header {
        padding: 16px 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .company {
        text-align: center;
    }
    h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-image {
        height: 160px;
    }
    .product-image img {
        max-height: 120px;
    }
    .contact-block strong {
        font-size: 18px;
    }
}