/* ===== 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;
}

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

/* ===== СТРАНИЦА ТОВАРА ===== */
.product-page {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.product-gallery {
    flex: 0 0 320px;
}

.product-main-image {
    background: #fafcfd;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.product-main-image img {
    max-width: 100%;
    height: auto;
}

.product-info {
    flex: 1;
}

.product-description-full {
    line-height: 1.65;
    color: #2c3e50;
    margin-bottom: 25px;
}

/* ===== ЦЕНА ===== */
.price-block {
    background: #f8fafd;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 25px;
    margin: 20px 0;
}

.price-label {
    font-size: 18px;
    font-weight: 600;
    color: #1e4663;
    margin-right: 8px;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: #1e4663;
}

.price-currency {
    font-size: 18px;
    font-weight: 600;
    color: #2c5f8a;
}

.price-note {
    font-size: 14px;
    color: #6c8dae;
}

.delivery-note {
    font-size: 15px;
    font-weight: 600;
    color: #2c5f8a;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.delivery-note strong {
    color: #1e4663;
}

.contacts-block {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

/* ===== ТАБЛИЦА ХАРАКТЕРИСТИК ===== */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.specs-table tr {
    border-bottom: 1px solid #eef2f6;
}

.specs-table td {
    padding: 10px 15px 10px 0;
    font-size: 14px;
}

.specs-table td:first-child {
    width: 300px;
    font-weight: 600;
    color: #2c5f8a;
}

.specs-table td:last-child {
    color: #1e2f3c;
}

/* ===== ДОКУМЕНТЫ ===== */
.doc-link {
    margin: 20px 0;
}

.doc-link a {
    color: #2c5f8a;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #bfd4e8;
    padding-bottom: 2px;
}

/* ===== СЕРТИФИКАТЫ ===== */
.certificates {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.certificates img {
    height: 180px;
    width: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* ===== БЛОК ПРЕИМУЩЕСТВ ===== */
.advantages-block {
    background: #f8fafd;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.advantages-block h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e4663;
    margin-bottom: 20px;
    border-left: 3px solid #ff9f4a;
    padding-left: 12px;
}

.advantages-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    list-style: none;
}

.advantages-list li {
    padding-left: 25px;
    position: relative;
    font-size: 15px;
    color: #2c3e50;
}

.advantages-list li:before {
    content: "✓";
    color: #2c5f8a;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 16px;
}

/* ===== БЛОК ПОХОЖИХ ТОВАРОВ ===== */
.similar-block {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.similar-block h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e4663;
    margin-bottom: 20px;
}

.similar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.similar-link {
    background: #f8fafd;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 8px 20px;
    color: #2c5f8a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.similar-link:hover {
    background: #2c5f8a;
    color: #ffffff;
    border-color: #2c5f8a;
}

/* ===== БЛОК FAQ ===== */
.faq-block {
    margin: 40px 0;
}

.faq-block h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e4663;
    margin-bottom: 20px;
    border-left: 3px solid #ff9f4a;
    padding-left: 12px;
}

.faq-item {
    background: #f8fafd;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #1e4663;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 14px;
    color: #4a6275;
    line-height: 1.55;
}

/* ===== БЛОК КОНТАКТОВ ===== */
.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: 992px) {
    .advantages-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .main {
        padding: 28px 24px;
    }
    .header {
        padding: 16px 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .company {
        text-align: center;
    }
    h1 {
        font-size: 26px;
    }
    .product-page {
        flex-direction: column;
    }
    .product-gallery {
        flex: 0 0 auto;
    }
    .specs-table td:first-child {
        width: 200px;
    }
    .certificates img {
        height: 120px;
    }
}

@media (max-width: 600px) {
    .specs-table td:first-child {
        width: 160px;
    }
    .similar-links {
        gap: 10px;
    }
    .similar-link {
        padding: 6px 15px;
        font-size: 13px;
    }
    .contact-block strong {
        font-size: 18px;
    }
}
/* ===== БЛОКИ ПРИМЕНЕНИЕ И ПОЧЕМУ МЫ ===== */
.application-block,
.why-us-block {
    margin: 30px 0;
}

.application-block h3,
.why-us-block h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e4663;
    margin-bottom: 20px;
    border-left: 3px solid #ff9f4a;
    padding-left: 12px;
}

.application-item,
.why-us-item {
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 15px;
    color: #2c3e50;
}
/* Ссылки цветом основного текста (без синего выделения) */
.product-description-full a,
.application-block a,
.category-links a {
    color: #2c3e50;
    text-decoration: underline;
    text-decoration-color: #ff9f4a;
}

.product-description-full a:hover,
.application-block a:hover,
.category-links a:hover {
    color: #1e4663;
    text-decoration-color: #ff9f4a;
}

@media (max-width: 768px) {
    .comparison-table, .specs-table {
        display: block;
        overflow-x: auto; /* Горизонтальный скролл только для таблицы */
        white-space: nowrap;
    }
    .product-page {
        flex-direction: column; /* Колонки друг под другом */
    }
    .product-main-image img {
        max-width: 100%;
        height: auto;
    }
}
/* ===== ТАБЛИЦА ХАРАКТЕРИСТИК (обновлённая) ===== */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.specs-table th,
.specs-table td {
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    vertical-align: top;
}

.specs-table th {
    background: #f8fafc;
    color: #1e4663;
    font-weight: 600;
    text-align: left;
    width: 35%;
}

.specs-table td {
    color: #2c3e50;
    text-align: left;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .specs-table th,
    .specs-table td {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ===== УЛУЧШЕННАЯ ПРОКРУТКА ДЛЯ ТАБЛИЦ НА МОБИЛЬНЫХ ===== */

/* Блок сравнения — обеспечиваем горизонтальную прокрутку */
.comparison-block {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 30px 0;
}

/* Таблица сравнения — фиксированная минимальная ширина */
.comparison-table {
    min-width: 700px;
    width: 100%;
}

/* Переопределение стилей для мобильных устройств */
@media (max-width: 768px) {
    /* Убираем white-space: nowrap для таблицы характеристик, 
       чтобы текст переносился, но сама таблица скроллилась */
    .specs-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: normal;
    }
    
    /* Для таблицы сравнения оставляем прокрутку */
    .comparison-table {
        min-width: 650px;
    }
    
    /* Блок сравнения на мобильных */
    .comparison-block {
        overflow-x: auto;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .comparison-table {
        min-width: 580px;
        font-size: 12px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px 8px;
    }
    
    .specs-table {
        font-size: 13px;
    }
}


/* ===== SEO-БЛОК И ИНЖЕНЕРНЫЙ БЛОК ===== */
.seo-block,
.engineering-block {
    margin: 40px 0;
    padding: 25px;
    background: #f8fafd;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.seo-block h2,
.engineering-block h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a3348;
    margin-bottom: 20px;
    border-left: 4px solid #ff9f4a;
    padding-left: 16px;
}

.seo-block h3,
.engineering-block h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e4663;
    margin: 20px 0 10px 0;
}

.seo-block p,
.engineering-block p {
    font-size: 15px;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 15px;
}

.seo-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.seo-list li {
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: #2c3e50;
}

.seo-list li:before {
    content: "✓";
    color: #2c5f8a;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .seo-list {
        grid-template-columns: 1fr;
    }
    .seo-block,
    .engineering-block {
        padding: 18px;
    }
    .seo-block h2,
    .engineering-block h2 {
        font-size: 20px;
    }
}

/* ===== НАЛИЧИЕ И СРОКИ ===== */
.stock-note {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 12px 18px;
    border-radius: 8px;
    margin: 15px 0;
}

.stock-item {
    margin: 5px 0;
}

.stock-label {
    font-weight: 600;
    color: #1e4663;
    margin-right: 8px;
}

.stock-value {
    color: #2c3e50;
}

/* Альтернативные варианты оформления */
.stock-note-delivery {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
}

.stock-note-warning {
    background: #ffebee;
    border-left: 4px solid #f44336;
}

.engineering-list {
    list-style: none;
    margin: 15px 0;
}

.engineering-list li {
    padding-left: 20px;
    margin-bottom: 12px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.engineering-list li:before {
    content: "✓";
    color: #2c5f8a;
    position: absolute;
    left: 0;
}