/* ============================================
   FISHCAM v1 — main.css (финальная версия)
   Дизайн согласован с Николаем 18.05.2026
   ============================================ */

:root {
    --primary: #1E73E8;
    --primary-dark: #1659BD;
    --dark: #0B1E3A;
    --darker: #07142A;
    --text: #1A2438;
    --text-muted: #6B7280;
    --line: #E5E7EB;
    --bg: #FFFFFF;
    --bg-soft: #F5F7FA;
    --radius: 8px;
    --radius-sm: 6px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header { border-bottom: 1px solid var(--line); background: #fff; max-width: 1240px; margin: 0 auto; }
.header-inner { display: grid; grid-template-columns: auto 1fr auto auto; gap: 24px; align-items: center; padding: 16px 24px; max-width: 1240px; margin: 0 auto; }
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; display: block; }
.search-form { display: flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; max-width: 460px; }
.search-form input { flex: 1; border: none; padding: 10px 16px; font-size: 14px; outline: none; }
.search-form button { background: transparent; border: none; padding: 0 14px; cursor: pointer; color: var(--text-muted); }
.search-form button:hover { color: var(--primary); }

/* Блок контактов в шапке: 2 телефона + email вертикально */
.header-contacts { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.header-phone, .header-email {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--dark); font-weight: 600; font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.3;
}
.header-phone:hover, .header-email:hover { text-decoration: none; color: var(--primary); }
.header-phone svg, .header-email svg { color: var(--primary); flex-shrink: 0; }
.header-email { font-weight: 500; font-size: 13px; color: var(--text-muted); }
.header-meta { font-size: 12px; color: var(--text-muted); text-align: right; }

/* NAV */
.site-nav { background: var(--darker); width: 100%; }
.site-nav .container.nav-inner { max-width: 1240px; }
.nav-inner { display: flex; justify-content: space-between; align-items: stretch; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.main-menu { list-style: none; margin: 0; padding: 0; display: flex; }
.main-menu li { display: block; }
.main-menu a { display: block; padding: 14px 18px; color: #fff; font-size: 14px; font-weight: 500; transition: background .15s; }
.main-menu a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.btn-catalog { background: var(--primary); color: #fff; padding: 14px 24px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.btn-catalog:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.burger { font-size: 18px; line-height: 1; }

/* HERO */
.hero { background: var(--darker); padding: 0; max-width: 1240px; margin: 0 auto; }
.hero-img { max-width: 1240px; height: auto; display: block; }

/* SECTIONS */
.section { padding: 40px 0; }
.section-title { font-size: 22px; font-weight: 700; color: var(--dark); margin: 0 0 24px; }

/* PRODUCT GRID (главная) */
.products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.product-card:hover { box-shadow: 0 8px 24px rgba(11,30,58,.08); transform: translateY(-2px); text-decoration: none; }
.product-card-img { background: var(--bg-soft); border-radius: var(--radius-sm); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 12px; }
.product-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 12px; }
.product-card-title { font-size: 14px; font-weight: 600; color: var(--dark); margin: 0 0 10px; line-height: 1.3; min-height: 36px; }
.product-card-specs { list-style: none; margin: 0 0 12px; padding: 0; font-size: 12px; color: var(--text-muted); flex: 1; }
.product-card-specs li { padding: 2px 0; }
.product-card-specs li::before { content: '• '; }
.product-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }
.product-card-price { font-size: 16px; font-weight: 700; color: var(--dark); }
.product-card-btn { background: var(--dark); color: #fff; padding: 6px 14px; font-size: 12px; font-weight: 600; border-radius: var(--radius-sm); border: none; cursor: pointer; }
.product-card-btn:hover { background: var(--primary); }

/* SPHERES */
.spheres { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 24px; }
.sphere { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg-soft); border-radius: var(--radius-sm); font-size: 13px; color: var(--text); }
.sphere svg { color: var(--primary); flex-shrink: 0; }

/* INFO BLOCKS */
.info-blocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.info-block { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 18px; }
.info-block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.info-block-head svg { color: var(--primary); }
.info-block-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--dark); }
.info-block p { margin: 0; font-size: 13px; color: var(--text); line-height: 1.5; }

/* HELP BANNER */
.help-banner { margin: 40px 0 0; }
.help-banner img { width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* BREADCRUMBS */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .current { color: var(--text); }
.breadcrumbs span { color: var(--line); }

/* PRODUCT PAGE */
.product-page { padding-bottom: 60px; }
.product-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-top: 8px; }

.product-gallery .gallery-main { background: var(--bg-soft); border-radius: var(--radius); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-gallery .gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 24px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.gallery-thumb { background: var(--bg-soft); border: 2px solid transparent; border-radius: var(--radius-sm); aspect-ratio: 1/1; cursor: pointer; padding: 4px; transition: border-color .15s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.is-active { border-color: var(--primary); }
.gallery-thumb:hover { border-color: var(--primary); }

.product-title { font-size: 26px; font-weight: 700; color: var(--dark); margin: 0 0 12px; line-height: 1.25; }
.product-subtitle { color: var(--text-muted); font-size: 15px; margin: 0 0 24px; line-height: 1.5; }

.product-pricing { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; margin: 0 0 24px; }
.price-current { font-size: 32px; font-weight: 700; color: var(--dark); margin-bottom: 20px; line-height: 1; }
.length-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 10px; }
.length-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.length-option { display: flex; flex-direction: column; align-items: center; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; transition: all .15s; min-width: 88px; position: relative; }
.length-option input { position: absolute; opacity: 0; pointer-events: none; }
.length-option:hover { border-color: var(--primary); }
.length-option.is-checked { border-color: var(--primary); background: rgba(30,115,232,.05); }
.length-name { font-size: 14px; font-weight: 600; color: var(--dark); }
.length-price { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.product-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.product-trust li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text); }
.product-trust svg { color: var(--primary); flex-shrink: 0; }
.product-trust small { color: var(--text-muted); font-size: 12px; }

.product-section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.product-section h2 { font-size: 22px; font-weight: 700; color: var(--dark); margin: 0 0 20px; }

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--line); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table th, .specs-table td { padding: 12px 0; text-align: left; font-weight: 400; font-size: 14px; vertical-align: top; }
.specs-table th { color: var(--text-muted); width: 40%; padding-right: 16px; }
.specs-table td { color: var(--text); font-weight: 500; }

.product-description .content { font-size: 15px; line-height: 1.65; color: var(--text); }
.product-description .content p { margin: 0 0 16px; }
.product-description .content h3 { font-size: 17px; margin-top: 24px; color: var(--dark); }
.product-description .content ul, .product-description .content ol { padding-left: 22px; margin: 0 0 16px; }
.product-description .content li { margin-bottom: 6px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; transition: all .15s; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.btn-block { width: 100%; }
.btn-lead { padding: 14px 24px; font-size: 15px; }

/* FOOTER */
.site-footer { background: var(--darker); color: rgba(255,255,255,.7); font-size: 13px; max-width: 1240px; margin: 40px auto 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 2fr; gap: 32px; padding: 32px 24px; max-width: 1240px; margin: 0 auto; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 8px; display: block; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; }
.footer-menu a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-menu a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: 12px; color: rgba(255,255,255,.4); text-align: center; }

/* MODAL */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11,30,58,.6); cursor: pointer; }
.modal-content { position: relative; background: #fff; border-radius: var(--radius); max-width: 480px; width: 100%; padding: 32px; box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; color: var(--text-muted); cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-content h3 { margin: 0 0 8px; font-size: 22px; color: var(--dark); }
.modal-product { margin: 0 0 24px; color: var(--text-muted); font-size: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.lead-form label { display: block; margin-bottom: 14px; }
.lead-form label > span { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 5px; }
.lead-form label em { color: #d33; font-style: normal; }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="email"], .lead-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s; }
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--primary); }
.lead-form textarea { resize: vertical; min-height: 80px; }
.lead-form .agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-muted); margin: 8px 0 16px; cursor: pointer; }
.lead-form .agree input { margin-top: 3px; flex-shrink: 0; }
.lead-form .agree a { color: var(--primary); }
.form-msg { margin-top: 12px; padding: 10px; border-radius: var(--radius-sm); font-size: 13px; display: none; }
.form-msg.is-error { display: block; background: #fee; color: #c33; }
.form-msg.is-success { display: block; background: #efe; color: #060; }

/* STATIC PAGES */
.static-page { max-width: 800px; margin: 0 auto; padding: 32px 0 60px; }
.static-page .page-title { font-size: 28px; color: var(--dark); margin: 0 0 24px; }
.static-page .content { line-height: 1.7; font-size: 15px; }
.static-page .content h2, .static-page .content h3 { color: var(--dark); }


/* ========== АДАПТИВ ДЛЯ МОБИЛЬНЫХ И ПЛАНШЕТОВ ========== */
@media (max-width: 1280px) {
    .site-header, .site-nav, .hero, .site-footer { max-width: 100%; }
    .header-inner, .nav-inner, .footer-inner { max-width: 100%; padding-left: 16px; padding-right: 16px; }
    .hero-img { max-width: 100%; }
}

@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .spheres { grid-template-columns: repeat(3, 1fr); }
    .info-blocks { grid-template-columns: repeat(2, 1fr); }
    .main-menu a { padding: 12px 12px; font-size: 13px; }
    .btn-catalog { padding: 12px 16px; font-size: 13px; }
}

@media (max-width: 768px) {
    body { font-size: 14px; }
    .container { padding: 0 16px; }

    /* Шапка — компактная: логотип слева, 2 телефона справа столбиком */
    .header-inner {
        grid-template-columns: auto 1fr;
        grid-template-areas: "logo contacts" "search search";
        gap: 8px 12px;
        padding: 10px 16px;
    }
    .logo { grid-area: logo; }
    .site-header .logo-img { height: 36px; }
    .header-contacts { grid-area: contacts; align-items: flex-end; gap: 2px; }
    .header-phone { font-size: 13px; font-weight: 700; gap: 6px; }
    .header-phone svg { width: 14px; height: 14px; }
    /* Email убираем на мобильнике (длинный), остаётся в футере */
    .header-email { display: none; }
    .search-form { grid-area: search; max-width: 100%; }
    .header-meta { display: none; }

    /* Меню — горизонтальный скролл вместо переноса */
    .nav-inner {
        flex-direction: column;
        padding: 0;
    }
    .main-menu {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        padding: 0 16px;
        scrollbar-width: none;
    }
    .main-menu::-webkit-scrollbar { display: none; }
    .main-menu a {
        padding: 12px 14px;
        font-size: 13px;
        white-space: nowrap;
    }
    .btn-catalog {
        display: none !important;
    }

    /* Каталог */
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card { padding: 12px; }
    .product-card-title { font-size: 13px; min-height: 32px; }

    /* Сферы */
    .spheres { grid-template-columns: 1fr; }

    /* Инфо-блоки */
    .info-blocks { grid-template-columns: 1fr; }

    /* Карточка товара */
    .product-grid { grid-template-columns: 1fr; gap: 24px; }
    .product-title { font-size: 22px; }
    .price-current { font-size: 26px; }
    .length-option { min-width: 70px; padding: 8px 10px; }

    /* Футер */
    .footer-inner { grid-template-columns: 1fr; gap: 20px; }
    .footer-menu { grid-template-columns: repeat(2, 1fr); }

    /* Секции — меньше отступы */
    .section { padding: 24px 0; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .modal-content { padding: 20px; }
    .product-title { font-size: 20px; }
    .price-current { font-size: 24px; }
}

/* ========== БАННЕР НА ГЛАВНОЙ ========== */
.hero { position: relative; background: var(--darker); margin: 0 auto; max-width: 1240px; overflow: hidden; }
.hero-img { width: 100%; max-height: 540px; object-fit: cover; object-position: center; display: block; opacity: 0.55; }
.hero-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    background: linear-gradient(90deg, rgba(7,20,42,.92) 0%, rgba(7,20,42,.55) 60%, rgba(7,20,42,.2) 100%);
}
.hero-content { color: #fff; padding: 40px 24px; max-width: 600px; }
.hero-title { font-size: 36px; font-weight: 800; line-height: 1.15; margin: 0 0 8px; letter-spacing: 0.5px; color: #fff; }
.hero-subtitle { font-size: 18px; color: #cfd8e6; margin: 0 0 18px; font-weight: 500; }
.hero-text { font-size: 14px; color: #b8c1ce; margin: 0 0 28px; line-height: 1.6; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 768px) {
    /* Баннер на мобильнике: убираем absolute overlay, делаем простой блок-текст под картинкой */
    .hero { display: flex; flex-direction: column; }
    .hero-img {
        max-height: 180px;
        opacity: 1;
        order: 1;
    }
    .hero-overlay {
        position: static;  /* не absolute! */
        inset: auto;
        order: 2;
        align-items: flex-start;
        background: linear-gradient(180deg, #0B1E3A 0%, #142a4d 100%);
        padding: 0;
    }
    .hero-content {
        padding: 20px 16px 24px;
        max-width: 100%;
    }
    .hero-title { font-size: 22px; line-height: 1.2; }
    .hero-subtitle { font-size: 14px; margin-bottom: 12px; color: #fff; }
    .hero-text { font-size: 13px; margin-bottom: 16px; line-height: 1.55; color: #dde4ee; }

    /* Кнопки баннера: вертикально, на всю доступную ширину */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        max-width: 280px;
    }
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* ========== 4 ПРЕИМУЩЕСТВА ПОД БАННЕРОМ ========== */
.section-benefits { padding: 28px 0; background: var(--bg-soft); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit { display: flex; align-items: center; gap: 14px; background: #fff; padding: 16px; border-radius: var(--radius-sm); }
.benefit-icon { color: var(--primary); flex-shrink: 0; }
.benefit-text strong { display: block; font-weight: 700; color: var(--dark); font-size: 14px; }
.benefit-text span { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }

@media (max-width: 1024px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .benefits-grid { grid-template-columns: 1fr; } }

/* ========== НИЖНИЙ БАННЕР «Нужна помощь?» ========== */
.section-help { padding: 32px 0 48px; }
.help-banner {
    background: transparent;
    border-radius: 0;
    padding: 0;
    color: inherit;
}
.help-banner-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.help-banner h2 { margin: 0 0 8px; font-size: 22px; color: #fff; }
.help-banner p { margin: 0 0 16px; color: rgba(255,255,255,.85); }
.help-banner .btn-primary { background: #fff; color: var(--dark); }
.help-banner .btn-primary:hover { background: #f0f5ff; }
.help-banner-contacts { display: flex; flex-direction: column; gap: 10px; }
.help-banner-contacts a {
    display: inline-flex; align-items: center; gap: 10px;
    color: #fff; padding: 8px 14px;
    background: rgba(255,255,255,.1); border-radius: var(--radius-sm);
    font-weight: 500; text-decoration: none;
    white-space: nowrap;
}
.help-banner-contacts a:hover { background: rgba(255,255,255,.2); text-decoration: none; }

@media (max-width: 768px) {
    .help-banner { padding: 20px; }
    .help-banner-inner { grid-template-columns: 1fr; gap: 20px; }
    .help-banner h2 { font-size: 18px; }
}

/* ========== СЕКЦИИ — общий ритм ========== */
.section-products { padding: 32px 0; }
.section-spheres { padding: 16px 0 32px; }
.section-info { padding: 0 0 32px; }

/* ========== СЕКЦИЯ «Нужна помощь?» (из footer.php) ========== */
.help-block {
    background: linear-gradient(135deg, #0B1E3A 0%, #1E73E8 100%);
    color: #fff;
    margin: 40px auto 0;
    max-width: 1240px;
}
.help-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 28px 24px; }
.help-left h3 { margin: 0 0 8px; font-size: 22px; color: #fff; }
.help-left p { margin: 0 0 16px; color: rgba(255,255,255,.85); font-size: 14px; }
.help-left .btn-light { background: #fff; color: var(--dark); padding: 10px 22px; }
.help-left .btn-light:hover { background: #f0f5ff; }
.help-contacts { display: flex; flex-direction: column; gap: 8px; }
.help-contact {
    display: inline-flex; align-items: center; gap: 10px;
    color: #fff; padding: 8px 12px;
    background: rgba(255,255,255,.1); border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 500; text-decoration: none;
    white-space: nowrap;
}
.help-contact:hover { background: rgba(255,255,255,.2); text-decoration: none; color: #fff; }
.help-address { cursor: default; }
.help-address:hover { background: rgba(255,255,255,.1); }

@media (max-width: 768px) {
    .help-inner { grid-template-columns: 1fr; padding: 20px; }
    .help-left h3 { font-size: 18px; }
}

/* Картинка для custom_logo */
.site-header .custom-logo { height: 44px; width: auto; }
.footer-brand .custom-logo { height: 40px; width: auto; }

/* ========== СТРАНИЦА КАТАЛОГА ========== */
.catalog-page { padding: 24px 0 48px; }
.catalog-page .page-title { font-size: 28px; margin: 16px 0 24px; color: var(--dark); }
.catalog-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.catalog-cat-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--dark); font-weight: 500; font-size: 14px;
    text-decoration: none;
}
.catalog-cat-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
.catalog-cat-link span { opacity: 0.6; font-size: 12px; }
.catalog-cat-section { margin: 0 0 48px; scroll-margin-top: 20px; }
.catalog-cat-title { font-size: 22px; margin: 0 0 16px; color: var(--dark); border-bottom: 2px solid var(--primary); padding-bottom: 8px; display: inline-block; }

/* ========== СЕТКА ТОВАРОВ — общая для главной и каталога ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media (max-width: 1280px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .products-grid { grid-template-columns: 1fr; } }

.product-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 16px; text-decoration: none; color: var(--dark);
    transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(11,30,58,.12); transform: translateY(-2px); text-decoration: none; }
.product-card-img { height: 180px; display: flex; align-items: center; justify-content: center; margin: 0 0 12px; background: #f8fafc; border-radius: 4px; overflow: hidden; }
.product-card-img img { max-width: 100%; max-height: 180px; height: auto; object-fit: contain; }
.product-card-title { font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; min-height: 38px; }
.product-card-subtitle { font-size: 13px; color: var(--text-muted); margin: 0 0 8px; line-height: 1.4; }
.product-card-specs { list-style: none; padding: 0; margin: 0 0 12px; flex-grow: 1; font-size: 12px; color: var(--text-muted); }
.product-card-specs li { padding: 2px 0; line-height: 1.4; }
.product-card-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border-light); margin-top: auto; }
.product-card-price { font-size: 16px; font-weight: 800; color: var(--dark); }
.product-card-btn {
    background: var(--primary); color: #fff;
    padding: 6px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
}
.product-card:hover .product-card-btn { background: var(--primary-dark); }

/* Заголовок "Популярные товары" / общие section-title */
.section-title { font-size: 22px; font-weight: 700; margin: 0 0 20px; color: var(--dark); }

/* Сферы применения */
.spheres { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1024px) { .spheres { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { .spheres { grid-template-columns: repeat(2, 1fr); } }
.sphere {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px; font-size: 13px; color: var(--dark);
}
.sphere svg { color: var(--primary); flex-shrink: 0; }

/* Инфо-блоки на главной */
.info-blocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .info-blocks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .info-blocks { grid-template-columns: 1fr; } }
.info-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.info-block-head { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--primary); }
.info-block-head h3 { font-size: 16px; margin: 0; color: var(--dark); }
.info-block p { font-size: 13px; line-height: 1.5; color: var(--text-muted); margin: 0; }

/* ========== ЛОГОТИП в шапке и футере ========== */
.site-header .logo {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--dark);
}
.site-header .logo:hover { text-decoration: none; }
.site-header .logo-icon { flex-shrink: 0; line-height: 0; }
.site-header .logo-text strong { display: block; font-size: 18px; font-weight: 800; color: var(--dark); line-height: 1; letter-spacing: 0.5px; }
.site-header .logo-text span { display: block; font-size: 11px; color: var(--text-muted); line-height: 1.2; margin-top: 2px; }

.footer-brand strong { display: block; font-size: 18px; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 6px; letter-spacing: 0.5px; }
.footer-brand small { display: block; font-size: 12px; color: rgba(255,255,255,0.65); line-height: 1.4; }

/* ========== ЛОГОТИП-КАРТИНКА ========== */
.site-header .logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-header .logo:hover { text-decoration: none; }
.site-header .logo-img { height: 48px; width: auto; display: block; }

.footer-brand { display: flex; align-items: center; }
.footer-brand .footer-logo-img { height: 44px; width: auto; display: block; }

@media (max-width: 768px) {
    .site-header .logo-img { height: 36px; }
    .footer-brand .footer-logo-img { height: 32px; }
}

/* ========== ФИКСЫ АДАПТИВА — мобильные баги ========== */
@media (max-width: 768px) {
    /* Меню в шапке — показать что скроллится: отступ справа + лёгкая тень-градиент */
    .main-menu {
        padding-right: 32px;
    }
    .nav-inner {
        position: relative;
    }
    .nav-inner::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 24px;
        background: linear-gradient(90deg, transparent, var(--darker));
        pointer-events: none;
        z-index: 2;
    }
    /* Кнопка "Каталог товаров" — отдельной строкой, без z-index конфликта */
    .btn-catalog {
        position: relative;
        z-index: 3;
    }

    /* 4. Нижний блок "Нужна помощь" — длинные ссылки переносятся */
    .help-contacts a,
    .help-contact {
        white-space: normal;
        word-break: break-word;
        font-size: 13px;
        line-height: 1.4;
    }
    .help-inner {
        padding: 20px 16px;
    }

    /* 5. Логотип в футере — убираем светлую рамку JPG, на тёмном фоне выглядит чище */
    .footer-brand .footer-logo-img {
        max-width: 200px;
        height: auto;
    }

    /* Адаптация футера: вертикально, ровные отступы */
    .site-footer .footer-inner {
        padding: 24px 16px;
    }
}

/* Малые телефоны — ещё компактнее */
@media (max-width: 480px) {
    .hero-title { font-size: 20px; }
    .hero-subtitle { font-size: 13px; }
    .hero-text { font-size: 12px; }
    .hero-content { padding: 12px; }
    .main-menu a { padding: 12px 10px; font-size: 12px; }
    .btn-catalog { padding: 10px 16px; font-size: 13px; }
}

/* ========== ПЛАВАЮЩАЯ КНОПКА "ПОЗВОНИТЬ" на мобильнике ========== */
.mobile-call-btn { display: none; }
@media (max-width: 768px) {
    .mobile-call-btn {
        display: flex;
        position: fixed;
        bottom: 16px;
        right: 16px;
        z-index: 999;
        background: var(--primary, #1E73E8);
        color: #fff;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 20px rgba(11,30,58,0.35);
        text-decoration: none;
        transition: transform .2s;
    }
    .mobile-call-btn:hover, .mobile-call-btn:active {
        background: var(--primary-dark, #1659BD);
        text-decoration: none;
        color: #fff;
        transform: scale(1.05);
    }
    .mobile-call-btn svg { width: 26px; height: 26px; }
}

/* ========== НОВЫЕ БАННЕРЫ ========== */
.hero-banner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0; }
.hero-banner-link { display: block; }
.hero-banner-img { display: block; width: 100%; height: auto; border-radius: 0; }

.help-banner { padding: 0; margin: 40px 0 0; }
.help-banner .container { padding: 0; max-width: 1240px; }
.help-banner-img { display: block; width: 100%; height: auto; border-radius: 0; }

@media (max-width: 768px) {
    .help-banner { margin: 24px 0 0; }
}

/* Логотип в футере - PNG прозрачный, без рамки */
.footer-logo-img { max-width: 200px; height: auto; background: transparent !important; border: none !important; }

/* Карточки товара в каталоге — белый фон вместо серого */
.product-card-img,
.product-card-thumb,
.product-card .thumb { background: #ffffff !important; }
.products-grid .product-card { background: #ffffff; border: 1px solid #e5e9f0; }

/* ========== СТАТЬИ ========== */
.section-articles { padding: 40px 0 60px; }
.section-articles .section-title { margin-bottom: 32px; font-size: 32px; color: var(--text); }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 560px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card {
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.article-card:hover { box-shadow: 0 6px 18px rgba(11,30,58,.08); }
.article-card-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: #f0f3f8; }
.article-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card-body { padding: 18px 20px 22px; }
.article-card-title { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.article-card-title a { color: var(--dark, #0B1E3A); text-decoration: none; }
.article-card-title a:hover { color: var(--primary, #1E73E8); }
.article-card-meta { font-size: 13px; color: #7a8395; margin-bottom: 10px; }
.article-card-excerpt { font-size: 14px; line-height: 1.55; color: #475569; margin-bottom: 14px; }
.article-card-link { display: inline-block; color: var(--primary, #1E73E8); font-weight: 600; text-decoration: none; font-size: 14px; }
.article-card-link:hover { text-decoration: underline; }

.pagination {
    display: flex; justify-content: center; gap: 8px; margin-top: 36px;
}
.pagination a, .pagination span {
    padding: 8px 14px; border: 1px solid #e5e9f0; border-radius: 6px;
    color: var(--text); text-decoration: none;
}
.pagination .current { background: var(--primary, #1E73E8); color: #fff; border-color: var(--primary, #1E73E8); }
.pagination a:hover { background: #f0f5ff; }

/* === Одиночная статья === */
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 16px; }
.section-article { padding: 32px 0 60px; }
.article-breadcrumbs { font-size: 13px; color: #7a8395; margin-bottom: 16px; }
.article-breadcrumbs a { color: var(--primary, #1E73E8); text-decoration: none; }
.article-breadcrumbs a:hover { text-decoration: underline; }
.article-title { font-size: 32px; line-height: 1.2; margin: 0 0 12px; color: var(--text); }
.article-meta { font-size: 14px; color: #7a8395; margin-bottom: 24px; }
.article-thumb { margin: 0 0 32px; }
.article-thumb img { width: 100%; height: auto; border-radius: 8px; display: block; }
.article-content { font-size: 16px; line-height: 1.7; color: #1f2937; }
.article-content h2 { font-size: 24px; margin: 32px 0 14px; }
.article-content h3 { font-size: 20px; margin: 28px 0 12px; }
.article-content p { margin: 0 0 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content img { max-width: 100%; height: auto; border-radius: 6px; margin: 16px 0; }
.article-content a { color: var(--primary, #1E73E8); }
.article-content blockquote {
    border-left: 3px solid var(--primary, #1E73E8);
    padding: 8px 0 8px 18px;
    margin: 20px 0;
    color: #475569;
    font-style: italic;
}
.article-back-link {
    display: inline-block; margin-top: 32px; color: var(--primary, #1E73E8);
    text-decoration: none; font-weight: 600;
}
.article-back-link:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .section-articles .section-title { font-size: 24px; }
    .article-title { font-size: 24px; }
    .article-content { font-size: 15px; }
}
