/* ============================================================
   1. БАЗОВЫЕ СТИЛИ
   ============================================================ */

.bg-light { background-color: silver !important; }
.start { text-align: center; }


.bd-placeholder-img {
    font-size: 1rem;
    text-anchor: middle;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg { font-size: 2rem; }
}

main > .container { padding-top: 0; }
.container { max-width: 1200px; }
code { font-size: 70%; }

@media (max-width: 991.98px) {
    .container {
        --bs-gutter-x: 0.5rem;   /* по умолчанию 1.5rem = 24px, теперь 16px */
    }
}

/* ============================================================
   2. ПЕРЕМЕННЫЕ
   ============================================================ */

:root {
    --brand-red: #c70500;
    --brand-orange: #ff9500;
    --ink-900: #1a1a1a;
    --ink-700: #333;
    --ink-500: #6b7280;
    --line: #e5e7eb;
    --bg-soft: #f8f9fb;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .06), 0 2px 4px rgba(0, 0, 0, .04);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .08);
}

/* ============================================================
   3. ТИПОГРАФИКА
   ============================================================ */

body {
    color: var(--ink-700);
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #fff;
    line-height: 1.55;
}

h1, h2, h3, h4, h5 {
    color: var(--ink-900);
    letter-spacing: -0.01em;
    font-weight: 600;
}

h1 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.2; }
h2 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }

.lead { color: var(--ink-500); font-weight: 400; }

/* ============================================================
   4. ССЫЛКИ И ИКОНКИ
   ============================================================ */

main a:not(.btn):not(.dropdown-item) { color: black; }
main a:not(.btn):not(.dropdown-item):hover { color: orange; }

.bi-telegram { color: deepskyblue !important; }
.bi-whatsapp { color: seagreen !important; }
.bi:hover { color: orange !important; }
.bi-box:hover { color: black !important; }

/* ============================================================
   5. НАВИГАЦИЯ
   ============================================================ */

.navbar.bg-dark {
    background-color: #111 !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 4px 20px rgba(0, 0, 0, .08);
    padding-top: .5rem;
    padding-bottom: .5rem;
    border-radius: 0 0 12px 12px;
}

.navbar.sticky-top { top: 0; z-index: 1030; }
.navbar-toggler { border-color: white !important; }
.flex-shrink-0 > .sticky-top { padding-top: 72px; }

.navbar-brand {
    font-size: 1.15rem;
    letter-spacing: -.02em;
    text-decoration: none;
}

.brand-name { font-weight: 700; color: #fff; }

.brand-badge {
    background-color: var(--brand-red);
    padding: .1em .45em;
    border-radius: 6px;
    font-weight: 700;
    margin: 0 6px;
    color: #fff;
    font-size: .95em;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .78);
    font-weight: 500;
    padding: .5rem .85rem;
    border-radius: 8px;
    transition: background-color .15s, color .15s;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, .08);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #fff !important;
    background-color: rgba(199, 5, 0, .22);
}

.navbar-dark .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: .85rem;
    right: .85rem;
    bottom: .25rem;
    height: 2px;
    background: var(--brand-red);
    border-radius: 1px;
}

.navbar .form-control {
    border-radius: 8px 0 0 8px;
    border: 1px solid rgba(255, 255, 255, .15);
    background-color: rgba(255, 255, 255, .06);
    color: #fff;
}

.navbar .form-control::placeholder { color: rgba(255, 255, 255, .55); }

.navbar .form-control:focus {
    background-color: rgba(255, 255, 255, .1);
    border-color: var(--brand-red);
    box-shadow: 0 0 0 .2rem rgba(199, 5, 0, .25);
    color: #fff;
}

.navbar .btn-outline-light {
    border-color: rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .85);
}

.navbar .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
}

.navbar a.btn-outline-light.position-relative { border-radius: 8px; }

.navbar .dropdown-menu {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow-md);
    padding: .35rem;
    margin-top: .5rem;
}

.navbar .dropdown-menu-dark .dropdown-item {
    color: rgba(255, 255, 255, .85);
    border-radius: 6px;
    padding: .45rem .75rem;
    font-weight: 500;
    transition: background-color .15s, color .15s;
}

.navbar .dropdown-menu-dark .dropdown-item:hover,
.navbar .dropdown-menu-dark .dropdown-item:focus {
    color: #fff;
    background-color: rgba(199, 5, 0, .25);
}

.navbar .dropdown-menu-dark .dropdown-item.active,
.navbar .dropdown-menu-dark .dropdown-item:active {
    background-color: var(--brand-red);
    color: #fff;
}

/* ============================================================
   6. ХЛЕБНЫЕ КРОШКИ
   ============================================================ */

.breadcrumb-wrap { padding: .5rem 0 0; }

.breadcrumb {
    background-color: transparent;
    padding: .75rem 0 0;
    font-size: .9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--ink-500);
}

.breadcrumb-item a {
    color: var(--ink-500) !important;
    text-decoration: none;
}

.breadcrumb-item a:hover { color: var(--brand-red) !important; }

.breadcrumb-item.active {
    color: var(--ink-900);
    font-weight: 500;
}

/* ============================================================
   7. ПАГИНАЦИЯ, LIST-GROUP
   ============================================================ */

.page-item.active .page-link {
    color: white !important;
    background-color: black !important;
    border-color: black !important;
}

.list-group-item {
    padding: 0.1rem;
    margin-bottom: 4px;
}

.list-group-item.active {
    border-color: orange;
    background-color: orange;
}

/* ============================================================
   8. КАРУСЕЛЬ
   ============================================================ */

.carousel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.carousel-item img {
    height: clamp(220px, 45vw, 520px);
    object-fit: cover;
    filter: brightness(.92);
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent);
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.25rem 1.25rem;
    text-align: left;
}

.carousel-slide-caption {
    margin: 0;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
    letter-spacing: -.01em;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .7);
    border: none;
    opacity: 1;
    transition: width .2s, background-color .2s;
}

.carousel-indicators .active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--brand-red);
}

.carousel-control-prev,
.carousel-control-next { width: 6%; opacity: .7; }

.carousel-control-prev:hover,
.carousel-control-next:hover { opacity: 1; }

/* ============================================================
   9. HERO — ГЛАВНАЯ
   ============================================================ */

.hero {
    position: relative;
    padding: 3rem 1rem .75rem;
    background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
    border-radius: var(--radius-lg);
    margin-bottom: .25rem;
    overflow: hidden;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--brand-red);
    background: rgba(199, 5, 0, .08);
    padding: .4rem .85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero-eyebrow i {
    font-size: .95rem;
    line-height: 1;
}

.hero-title {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--ink-900);
    margin: 0 auto 1rem;
    max-width: 900px;
}

.hero-title-accent {
    color: var(--brand-red);
    position: relative;
    white-space: nowrap;
}

.hero-title-accent::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: .1em;
    height: .2em;
    background: rgba(199, 5, 0, .12);
    border-radius: 2px;
    z-index: -1;
}

.hero-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink-500);
    max-width: 720px;
    margin: 0 auto 1.5rem;
}


/* ============================================================
   10. FEATURETTE — ГЛАВНАЯ
   ============================================================ */

.featurette {
    margin-bottom: 1.5rem;
}


.featurette-inner {
    min-width: 0;
    padding: 1.5rem 1.75rem;
    background: var(--bg-soft);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: none;
}

.featurette-heading {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -.015em;
    margin-bottom: .65rem;
    color: var(--ink-900);
}

.featurette-lead {
    font-size: .98rem;
    line-height: 1.65;
    color: var(--ink-700);
    margin-bottom: 1rem;
}

.featurette-img {
    border-radius: var(--radius);
    max-width: 100%;
    height: auto;
}

hr.featurette-divider { display: none; }

.catalog-link {
    margin-top: 2.5rem;
    text-align: center;
}

.catalog-link .btn {
    display: inline-flex;
    align-items: center;
    padding: .85rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(199, 5, 0, .2);
}

.catalog-link .btn:hover {
    box-shadow: 0 8px 20px rgba(199, 5, 0, .3);
    transform: translateY(-2px);
}

/* ============================================================
   11. КНОПКИ
   ============================================================ */

.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: transform .12s, box-shadow .12s, background-color .12s;
}

.btn:hover {
    transform: translateY(-1px);
}


/* ============================================================
   12. КАРТОЧКИ (общие)
   ============================================================ */

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.card:hover {
    background-color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #d1d5db;
}

/* ============================================================
   13. ФУТЕР
   ============================================================ */

.footer { background-color: #f5f5f5; }

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

/* ── Футер ── */
.footer-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-top: 2rem;
    background-color: var(--bg-soft);
    border-radius: 12px 12px 0 0;
    border-top: 1px solid var(--line);
}

/* Группа кнопок справа */
.footer-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

/* Общие стили для иконок-кнопок */
.footer-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    text-decoration: none !important;
    transition: background-color .15s, border-color .15s, transform .12s, box-shadow .15s;
    flex-shrink: 0;
}

.footer-btn-icon i {
    font-size: 1.15rem;
    line-height: 1;
    transition: color .15s;
}

/* Иконка внутри круглой кнопки — при hover всегда белая */
.footer-btn-icon:hover i {
    color: #fff !important;
}

.footer-btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

/* Telegram — синий */
.footer-icon-telegram i {
    color: #229ED9 !important;
}

.footer-icon-telegram:hover {
    background: #229ED9;
    border-color: #229ED9;
}

.footer-icon-telegram:hover i {
    color: #fff;
}

/* MAX — фиолетовый */
.footer-icon-max i {
    color: #6B4EFF;
}

.footer-icon-max:hover {
    background: linear-gradient(135deg, #6B4EFF 0%, #A855F7 100%);
    border-color: #6B4EFF;
}

.footer-icon-max:hover i {
    color: #fff;
}

/* Наверх — красный */
.footer-icon-top i {
    color: var(--brand-red);
}

.footer-icon-top:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
}

.footer-icon-top:hover i {
    color: #fff;
}

/* Кнопка «Позвонить» — красная, с текстом */
.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1rem;
    font-size: .88rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: background-color .15s, transform .12s, box-shadow .15s;
    flex-shrink: 0;
}

.footer-btn i {
    font-size: 1rem;
    line-height: 1;
}

.footer-btn-call {
    background: var(--brand-red);
    color: #fff !important;
}

.footer-btn-call:hover {
    background: #a00400;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 5, 0, .3);
}

/* Мобильные */
@media (max-width: 575.98px) {
    .footer-block {
        justify-content: center;
        gap: .75rem;
        padding: 1rem .75rem;
    }

    .footer-actions {
        justify-content: center;
        width: 100%;
    }

    .footer-btn {
        width: 100%;
        justify-content: center;
        order: -1;   /* «Позвонить» первым */
    }
}

/* ============================================================
   14. ПЛАВНАЯ ПРОКРУТКА
   ============================================================ */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ============================================================
   15. СТРАНИЦА ТОВАРА
   ============================================================ */

.product-page { padding-top: .5rem; }
.product-top { 
    margin-bottom: 1.5rem;
    --bs-gutter-x: 1rem;   /* уменьшает отрицательные margin'ы */
}

.product-hero {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    padding: .5rem;
    text-align: center;
}

/* .product-hero img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--radius-lg) - 4px);
} */

.product-hero img {
    width: auto;
    max-width: 100%;
    max-height: 380px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: calc(var(--radius-lg) - 4px);
}

/* .product-hero img {
    width: auto;
    max-width: 380px;      
    max-height: 380px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: calc(var(--radius-lg) - 4px);
} */

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 600;
    letter-spacing: -.015em;
    margin: 0;
    line-height: 1.25;
    color: var(--ink-900);
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .75rem 0 .25rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.price-value {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700;
    color: var(--brand-red);
    letter-spacing: -.01em;
    line-height: 1.2;
}

.price-note {
    font-size: .85rem;
    color: var(--ink-500);
}

/* Характеристики */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: .35rem;
    padding: 0;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: .4rem .6rem;
    background: var(--bg-soft);
    border-radius: 8px;
    border: 1px solid var(--line);
}

.spec-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-500);
    font-weight: 500;
}

.spec-value {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink-900);
}

/* Документ серии */
.spec-doc { display: block; }

.spec-doc .spec-label {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-500);
    font-weight: 500;
    margin-bottom: .25rem;
}

.spec-doc-card {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .75rem;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none !important;
    color: var(--ink-900) !important;
    font-size: .88rem;
    font-weight: 500;
    max-width: 100%;
    transition: border-color .15s, background-color .15s, color .15s, transform .12s;
}

.spec-doc-card:hover {
    background: #fff;
    border-color: var(--brand-red);
    color: var(--brand-red) !important;
    transform: translateY(-1px);
}

.spec-doc-card-icon {
    font-size: 1.1rem;
    color: var(--brand-red);
    flex-shrink: 0;
    line-height: 1;
}

.spec-doc-card-title {
    color: inherit;
    line-height: 1.3;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spec-doc-card-ext {
    padding: .1em .45em;
    background: rgba(13, 110, 253, .1);
    color: #0d6efd;
    border-radius: 4px;
    font-weight: 700;
    font-size: .65rem;
    letter-spacing: .05em;
    flex-shrink: 0;
    transition: background-color .15s, color .15s;
}

.spec-doc-card:hover .spec-doc-card-ext {
    background: var(--brand-red);
    color: #fff;
}

/* Почта */
.mail-link {
    display: inline-flex;
    align-items: center;
    color: #16a34a !important;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    padding: .25rem 0;
}

.mail-link:hover {
    color: #15803d !important;
    text-decoration: underline;
}

/* Форма покупки */
.product-form { margin-top: .5rem; }

.product-form .btn-danger {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
    border-radius: 8px 0 0 8px;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: .9rem;
    white-space: nowrap;
}

.product-form .btn-danger:hover,
.product-form .btn-danger:focus {
    background-color: #a00400;
    border-color: #a00400;
    color: #fff;
}

.product-form .form-control {
    border-radius: 0;
    max-width: 70px;
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
}

.product-form .input-group-text {
    border-radius: 0 8px 8px 0;
    background: var(--bg-soft);
    color: var(--ink-500);
    font-weight: 500;
    font-size: .85rem;
}

.product-oversize {
    margin: 1rem 0;
    padding: .75rem 1rem;
    background: rgba(220, 53, 69, .08);
    border-left: 3px solid #dc3545;
    border-radius: 8px;
    color: #b02a37;
    font-weight: 500;
    font-size: .95rem;
}

/* Секции */
.product-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.section-title {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
    letter-spacing: -.01em;
    margin-bottom: .75rem;
    color: var(--ink-900);
}

.product-section p {
    color: var(--ink-700);
    line-height: 1.7;
}

/* ============================================================
   16. ГАЛЕРЕЯ ТОВАРА
   ============================================================ */

.gallery-section {
    margin-top: .5rem;
    padding-top: .5rem;
    padding-bottom: .25rem;
}

.gallery-section h3,
.gallery-section .section-title {
    margin-top: 0;
    margin-bottom: .5rem;
}

.gallery-wrap {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.gallery-thumbs-wrap { width: 100%; }

.gallery-thumbs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: .25rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.gallery-thumbs .list-group-item {
    flex: 0 0 auto;
    padding: 1px;
    margin: 0;
    background: transparent;
    border: 2px solid transparent;
    border-radius: .375rem;
    line-height: 0;
    width: 72px;
    height: 72px;
}

.gallery-thumbs .list-group-item.active {
    border-color: var(--brand-red);
    background: rgba(199, 5, 0, .06);
}

@media (min-width: 992px) {
    .gallery-wrap {
        flex-direction: row;
        align-items: flex-start;
        gap: .5rem;
    }

    .gallery-thumbs-wrap { width: 80px; flex: 0 0 80px; }

    .gallery-thumbs {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 80vh;
        padding: 2px 2px 2px 0;
    }

    .gallery-thumbs .list-group-item { width: 100%; height: auto; }

    .gallery-thumbs::-webkit-scrollbar { width: 4px; height: auto; }
}

.gallery-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .25rem;
}

.gallery-main { flex: 1 1 auto; min-width: 0; }
.gallery-main .figure { margin-bottom: 0; }
.gallery-main .figure-img { margin-bottom: 0; }

.gallery-main figcaption {
    margin-top: .25rem;
    font-size: .875rem;
    color: #6c757d;
}

.gallery-thumbs::-webkit-scrollbar { height: 4px; }

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .2);
    border-radius: 2px;
}

/* ============================================================
   17. ПОХОЖИЕ ИЗДЕЛИЯ
   ============================================================ */

.related-section { margin-top: 2rem; }
.related-grid { margin-top: .5rem; --bs-gutter-x: .75rem;}

.related-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s, transform .12s;
}

.related-card:hover {
    border-color: var(--brand-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.related-thumb {
    aspect-ratio: 4 / 3;
    background: var(--bg-soft);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .4rem;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .3s;
}

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

.related-body {
    padding: .55rem .7rem .65rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1 1 auto;
}

.related-name {
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    transition: color .15s;
}

.related-card:hover .related-name { color: var(--brand-red); }

.related-specs {
    font-size: .72rem;
    color: var(--ink-500);
    letter-spacing: .01em;
}

.related-price {
    font-size: .92rem;
    font-weight: 700;
    color: var(--brand-red);
    margin-top: auto;
    padding-top: .5rem;
    border-top: 1px solid var(--line);
    letter-spacing: -.01em;
}

/* ============================================================
   18. ДОКУМЕНТЫ ИЗДЕЛИЯ — КАРТОЧКИ
   ============================================================ */

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .75rem;
    margin-top: .25rem;
}

.document-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none !important;
    color: inherit !important;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s, transform .12s;
}

.document-card:hover {
    border-color: var(--brand-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.document-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .75rem 1rem .35rem;
}

.document-card-icon {
    font-size: 2rem;
    color: var(--brand-red);
    line-height: 1;
    transition: color .15s;
}

.document-card:hover .document-card-icon { color: #a00400; }

.document-card-ext {
    padding: .15em .55em;
    background: rgba(13, 110, 253, .1);
    color: #0d6efd;
    border-radius: 4px;
    font-weight: 700;
    font-size: .7rem;
    letter-spacing: .05em;
    transition: background-color .15s, color .15s;
}

.document-card:hover .document-card-ext {
    background: var(--brand-red);
    color: #fff;
}

.document-card-body {
    flex: 1 1 auto;
    padding: 0 1rem .5rem;
}

.document-card-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.35;
    margin-bottom: .15rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}

.document-card:hover .document-card-title { color: var(--brand-red); }

.document-card-description {
    font-size: .82rem;
    color: var(--ink-500);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.document-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .55rem 1rem .75rem;
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}

.document-card-size {
    font-size: .78rem;
    color: var(--ink-500);
}

.document-card-action {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--brand-red);
    transition: color .15s, transform .12s;
}

.document-card:hover .document-card-action {
    color: #a00400;
    transform: translateX(2px);
}

.document-card-action i { font-size: .9rem; }

/* ============================================================
   19. FAQ НА СТРАНИЦЕ ТОВАРА
   ============================================================ */

.faq-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 .45rem;
    background: var(--brand-red);
    color: #fff;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
    margin-left: .35rem;
    vertical-align: .15em;
}

.faq-clean {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-top: .25rem;
}

.faq-clean-item {
    position: relative;
    margin: 0;
    padding: .1rem .25rem;
    border-radius: 10px;
    transition: background-color .2s, box-shadow .2s;
}

.faq-clean-item.faq-clean-item--active {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(199, 5, 0, .35), 0 4px 12px rgba(199, 5, 0, .08);
}

.faq-clean-question {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: 0;
    padding: .65rem .25rem;
    font-size: .93rem;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.4;
    cursor: pointer;
    transition: color .15s;
    user-select: none;
}

.faq-clean-question:hover { color: var(--brand-red); }
.faq-clean-question[aria-expanded="true"] { color: var(--brand-red); }

.faq-clean-num {
    flex-shrink: 0;
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink-500);
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
    min-width: 1.4rem;
    padding-top: .12rem;
    transition: color .15s;
}

.faq-clean-question:hover .faq-clean-num,
.faq-clean-question[aria-expanded="true"] .faq-clean-num {
    color: var(--brand-red);
}

.faq-clean-q { flex: 1 1 auto; min-width: 0; }

.faq-clean-icon {
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--ink-500);
    line-height: 1;
    padding-top: .05rem;
    transition: transform .25s ease, color .15s;
}

.faq-clean-question:hover .faq-clean-icon { color: var(--brand-red); }

.faq-clean-question[aria-expanded="true"] .faq-clean-icon {
    transform: rotate(45deg);
    color: var(--brand-red);
}

.faq-clean-answer { padding: 0 .25rem; }

.faq-clean-answer > div {
    padding: 0 0 .75rem 2.05rem;
    color: var(--ink-700);
    font-size: .9rem;
    line-height: 1.6;
}

.faq-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: .75rem;
    border-top: 1px solid var(--line);
}

.faq-footer-text { color: var(--ink-500); font-size: .88rem; }
.faq-footer-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* ============================================================
   20. КНОПКИ МЕССЕНДЖЕРОВ
   ============================================================ */

.btn-messenger {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .75rem;
    font-size: .85rem;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color .15s, color .15s, border-color .15s, transform .12s;
    line-height: 1.3;
}

.btn-messenger i { font-size: 1rem; line-height: 1; }
.btn-messenger:hover { transform: translateY(-1px); text-decoration: none; }

.btn-telegram {
    background: #fff;
    color: #229ED9;
    border-color: rgba(34, 158, 217, .35);
}

.btn-telegram:hover {
    background: #229ED9;
    color: #fff;
    border-color: #229ED9;
}

.btn-max {
    background: linear-gradient(135deg, #6B4EFF 0%, #A855F7 50%, #7C3AED 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(107, 78, 255, 0.25);
}

.btn-max:hover {
    background: linear-gradient(135deg, #5A3EE8 0%, #9333EA 50%, #6D28D9 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(107, 78, 255, 0.4);
    transform: translateY(-1px);
}

.btn-max i { color: #fff; }

.btn-max-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .3rem .7rem;
    background: linear-gradient(135deg, #6B4EFF 0%, #A855F7 100%);
    color: #fff !important;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: transform .12s, box-shadow .15s;
    flex-shrink: 0;
}

.btn-max-inline:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 78, 255, .35);
}

.btn-max-inline i { font-size: .95rem; line-height: 1; }

/* ============================================================
   21. СТРАНИЦА 404
   ============================================================ */

.error-page {
    padding: 3rem 1rem 4rem;
    max-width: 640px;
    margin: 0 auto;
}

.error-page-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    opacity: .9;
}

.error-page-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: .75rem;
    letter-spacing: -.015em;
}

.error-page-text {
    color: var(--ink-500);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.error-page-actions {
    display: flex;
    gap: .75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-page-actions .btn {
    display: inline-flex;
    align-items: center;
    padding: .6rem 1.2rem;
    font-size: .95rem;
}

/* ============================================================
   22. ФОТОГАЛЕРЕЯ
   ============================================================ */

.gallery-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}

.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gallery-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.gallery-card a { display: block; text-decoration: none; }

/* Кнопки в футере модалки фотогалереи — одинаковые */
.gallery-modal-footer {
    display: flex;
    gap: .5rem;
}

.gallery-modal-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: .55rem 1rem;
    font-size: .95rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
}

.gallery-modal-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Мобильные — кнопки в столбик */
@media (max-width: 575.98px) {
    .gallery-modal-footer {
        flex-direction: column;
    }

    .gallery-modal-btn {
        width: 100%;
    }
}

#galleryModal .modal-content {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

#galleryModal .modal-title { font-weight: 600; color: var(--ink-900); }

#galleryModal .figure-caption {
    color: var(--ink-500);
    font-size: .88rem;
}

/* ============================================================
   23. СТРАНИЦА ДОКУМЕНТАЦИИ
   ============================================================ */

.docpub-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.docpub-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

.docpub-card:hover {
    border-color: #d1d5db;
    box-shadow: var(--shadow-md);
}

.docpub-header {
    padding: 1rem 1.25rem;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}

.docpub-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink-900);
    letter-spacing: -.01em;
}

.docpub-body {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    align-items: flex-start;
}

.docpub-thumb { flex: 0 0 120px; width: 120px; }

.docpub-thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    object-fit: contain;
}

.docpub-info { flex: 1 1 auto; min-width: 0; }

.docpub-date {
    font-size: .82rem;
    color: var(--ink-500);
    margin-bottom: .5rem;
}

.docpub-description {
    font-size: .95rem;
    line-height: 1.6;
    color: var(--ink-700);
    margin-bottom: .75rem;
}

.docpub-files {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.docpub-files li { margin: 0; }

.docpub-files a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .7rem;
    background: rgba(13, 110, 253, .08);
    color: #0d6efd !important;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: background-color .15s, color .15s, transform .12s;
}

.docpub-files a:hover {
    background: rgba(13, 110, 253, .15);
    color: #0a58ca !important;
    transform: translateY(-1px);
}

.docpub-files i { font-size: 1rem; line-height: 1; }

.docpub-footer {
    padding: .85rem 1.25rem;
    border-top: 1px solid var(--line);
    background: #fff;
}

.docpub-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--brand-red) !important;
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none !important;
    transition: color .15s, transform .12s;
}

.docpub-link:hover {
    color: #a00400 !important;
    transform: translateX(3px);
}

.docpub-link i { font-size: .95rem; transition: transform .15s; }

/* ============================================================
   24. СТРАНИЦА КОНТАКТОВ
   ============================================================ */

.contacts-page { padding-top: .5rem; }
.contacts-header { margin-bottom: 1.5rem; }
.contacts-header h1 { margin-bottom: .5rem; }

.contacts-header .lead {
    font-size: 1rem;
    color: var(--ink-500);
    max-width: 720px;
}

.contacts-cards { margin-bottom: 1.5rem; }

.contact-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #d1d5db;
}

.contact-card-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}

.contact-card-head i {
    font-size: 1.35rem;
    color: var(--brand-red);
    line-height: 1;
}

.contact-card-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink-900);
    letter-spacing: -.01em;
}

.contact-card-body { padding: 1.25rem; flex: 1 1 auto; }

.contact-card-foot {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--line);
    background: #fff;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.contact-list li {
    padding: .4rem 0;
    font-size: .95rem;
    color: var(--ink-700);
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.contact-list li + li { border-top: 1px solid var(--line); }

.contact-label {
    color: var(--ink-500);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 500;
    display: block;
    width: 100%;
    margin-bottom: .15rem;
}

.contact-phones li {
    flex-direction: column;
    align-items: flex-start;
    padding: .65rem 0;
}

.phone-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink-900) !important;
    text-decoration: none;
    letter-spacing: -.01em;
    transition: color .15s;
}

.phone-link:hover { color: var(--brand-red) !important; }

.contact-mail {
    margin-top: .5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.mail-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .25rem;
}

.mail-row .mail-link { margin-top: 0; }

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink-500);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    transition: background-color .15s, color .15s, border-color .15s, transform .12s;
    flex: 0 0 auto;
}

.copy-btn:hover {
    background: var(--bg-soft);
    color: var(--ink-900);
    border-color: #d1d5db;
}

.copy-btn:active { transform: scale(.95); }

.copy-btn.is-copied {
    color: #16a34a;
    border-color: rgba(22, 163, 74, .4);
    background: rgba(22, 163, 74, .08);
}

.copy-btn i { font-size: 1rem; line-height: 1; }

.contact-address { margin-top: 1.5rem; }

.contact-address-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.address-item {
    padding: .75rem 1rem;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.address-title {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-500);
    font-weight: 500;
    margin-bottom: .35rem;
}

.address-text {
    margin: 0;
    font-size: .95rem;
    font-weight: 500;
    color: var(--ink-900);
    line-height: 1.5;
}

.contact-card-map {
    border-top: 1px solid var(--line);
    line-height: 0;
}

.contact-card-map iframe,
.contact-card-map > div { width: 100%; display: block; }

/* ============================================================
   25. СТРАНИЦА ПОИСКА
   ============================================================ */

.search-title {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 600;
    color: var(--ink-900);
    margin: .5rem 0 .25rem;
    letter-spacing: -.01em;
}

.search-title-query { color: var(--brand-red); }

.search-summary {
    color: var(--ink-500);
    font-size: .95rem;
    margin-bottom: 1.25rem;
}

.search-summary strong { color: var(--ink-900); }

.search-empty {
    text-align: center;
    padding: 3rem 1rem 4rem;
    max-width: 560px;
    margin: 0 auto;
}

.search-empty-icon {
    font-size: 4rem;
    color: var(--line);
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.search-empty-title {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: .5rem;
    letter-spacing: -.015em;
}

.search-empty-text {
    color: var(--ink-500);
    font-size: .95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.search-empty-text strong { color: var(--ink-700); }

/* ============================================================
   26. ТАБЛИЦА ИЗДЕЛИЙ
   ============================================================ */

.product-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
}

.product-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    font-size: .92rem;
}

.product-table thead th {
    background: var(--bg-soft);
    color: var(--ink-500);
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .7rem .85rem;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    vertical-align: middle;
}

.product-table tbody td {
    padding: .65rem .85rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink-700);
    vertical-align: middle;
}

.product-table tbody tr:last-child td { border-bottom: none; }
.product-table tbody tr { transition: background-color .15s; }
.product-table tbody tr:hover { background: var(--bg-soft); }

.product-table a {
    color: var(--ink-900) !important;
    font-weight: 600;
    text-decoration: none !important;
    transition: color .15s;
}

.product-table a:hover { color: var(--brand-red) !important; }

/* ============================================================
   27. КАТАЛОГ ЖБИ (scope, docs)
   ============================================================ */

.scope-grid { margin-top: 1rem; }

.scope-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: .9rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-decoration: none !important;
    color: inherit !important;
    transition: border-color .15s, box-shadow .15s, transform .12s;
}

.scope-card:hover {
    border-color: var(--brand-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.scope-card-thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: -.9rem 0 -.9rem -1rem;
}

.scope-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .3s;
}

.scope-card:hover .scope-card-thumb img { transform: scale(1.05); }

.scope-card-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.scope-card-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.3;
    letter-spacing: -.01em;
    transition: color .15s;
}

.scope-card:hover .scope-card-title { color: var(--brand-red); }

.scope-card-description {
    margin: 0;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--ink-500);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scope-card-arrow {
    flex-shrink: 0;
    font-size: 1.3rem;
    color: var(--ink-500);
    line-height: 1;
    transition: color .15s, transform .15s;
}

.scope-card:hover .scope-card-arrow {
    color: var(--brand-red);
    transform: translateX(4px);
}

/* ============================================================
   28. СТРАНИЦА ДОКУМЕНТА (doc)
   ============================================================ */

.doc-hero {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.doc-hero-content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.doc-hero-title {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 600;
    color: var(--ink-900);
    margin: 0;
    line-height: 1.25;
    letter-spacing: -.015em;
}

.doc-hero-date {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    color: var(--ink-500);
    line-height: 1;
}

.doc-hero-date i { font-size: .95rem; }

.doc-hero-description {
    margin: 0;
    color: var(--ink-700);
    font-size: .95rem;
    line-height: 1.65;
}

.doc-hero-download {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    align-self: flex-start;
    padding: .5rem .9rem;
    background: var(--brand-red);
    color: #fff !important;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none !important;
    margin-top: .35rem;
    transition: background-color .15s, transform .12s, box-shadow .15s;
}

.doc-hero-download:hover {
    background: #a00400;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(199, 5, 0, .25);
}

.doc-hero-download i { font-size: 1rem; line-height: 1; }

.doc-hero-thumb {
    flex: 0 0 140px;
    width: 140px;
    align-self: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: .5rem;
}

.doc-hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* ============================================================
   29. ЦИФРЫ (главная)
   ============================================================ */

.stats-section {
    padding: 3rem 0 2rem;
    margin-top: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s, transform .12s;
}

.stat-card:hover {
    border-color: var(--brand-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-value {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1;
    color: var(--brand-red);
    letter-spacing: -.03em;
    margin-bottom: .5rem;
    font-variant-numeric: tabular-nums;
}

.stat-unit {
    font-size: .55em;
    font-weight: 700;
    color: var(--ink-500);
    margin-left: .15em;
    letter-spacing: 0;
}

.stat-label {
    font-size: .9rem;
    line-height: 1.45;
    color: var(--ink-500);
    max-width: 220px;
    margin: 0 auto;
}


/* ============================================================
   29.1 FAQ НА ГЛАВНОЙ
   ============================================================ */

.home-faq {
    padding: 2rem 0 3rem;
}

.home-faq .section-title {
    margin-bottom: 1.5rem;
}

/* Двухколоночная сетка */
.home-faq-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: .35rem 1.5rem;
    align-items: start;
}



@media (min-width: 768px) {
    .home-faq-list {
        grid-template-columns: 1fr 1fr;
    }
}

.home-faq-item {
    border-bottom: 1px solid var(--line);
    transition: background-color .2s, box-shadow .2s;
    border-radius: 10px;
    padding: .1rem .75rem;
}

.home-faq-question {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding: .85rem .25rem;
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.4;
    cursor: pointer;
    transition: color .15s;
    user-select: none;
}

.home-faq-question:hover { color: var(--brand-red); }
.home-faq-question[aria-expanded="true"] { color: var(--brand-red); }

.home-faq-icon {
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--ink-500);
    line-height: 1;
    padding-top: .15rem;
    transition: transform .25s ease, color .15s;
}

.home-faq-question:hover .home-faq-icon { color: var(--brand-red); }

.home-faq-question[aria-expanded="true"] .home-faq-icon {
    transform: rotate(45deg);
    color: var(--brand-red);
}

.home-faq-answer {
    padding: 0 .25rem;
}

.home-faq-answer > div {
    padding: 0 .75rem .85rem 0;
    color: var(--ink-700);
    font-size: .9rem;
    line-height: 1.6;
}

.home-faq-answer a {
    color: var(--brand-red) !important;
    text-decoration: none;
}

.home-faq-answer a:hover {
    text-decoration: underline;
}

/* Компактные абзацы внутри ответов */
.home-faq-answer p {
    margin: 0 0 .35rem;
}

.home-faq-answer p:last-child {
    margin-bottom: 0;
}

/* Активное состояние (рамка, как в FAQ на странице товара) */
.home-faq-item.home-faq-item--active {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(199, 5, 0, .35), 0 4px 12px rgba(199, 5, 0, .08);
    border-color: transparent;
}

/* Мобильные */
@media (max-width: 575.98px) {
    .home-faq {
        padding: 1.5rem 0 2rem;
    }

    .home-faq-list {
        gap: .25rem;
    }

    .home-faq-item {
        padding: .1rem .5rem;
    }

    .home-faq-question {
        font-size: .92rem;
        padding: .75rem .25rem;
    }

    .home-faq-answer > div {
        font-size: .88rem;
        padding: 0 .5rem .75rem 0;
    }
}


/* ============================================================
   31. МОБИЛЬНЫЕ
   ============================================================ */

@media (max-width: 991.98px) {
    .navbar-actions { margin-top: .75rem; width: 100%; }
    .navbar-actions form { flex: 1 1 auto; }

    .navbar .form-control,
    .navbar .btn-outline-light { border-radius: 8px; }

    .navbar .btn-outline-light.ms-1 { margin-left: .5rem !important; }

    .carousel { border-radius: var(--radius); }
}

@media (max-width: 767.98px) {
    /* Hero */
    .hero { padding: 2rem 1rem 2.5rem; }

    /* Featurette */
    .featurette { flex-direction: column; gap: .5rem; }
    .featurette-inner { padding: 1.25rem; }

    /* Товар */
    .product-hero { border-radius: var(--radius); padding: .25rem; }
    .product-title { margin-top: .5rem; }
    .spec-grid { grid-template-columns: repeat(2, 1fr); }

    /* Doc / docpub */
    .docpub-body { flex-direction: column; padding: 1rem; }
    .docpub-thumb {
        flex: 0 0 auto;
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
    }
    .docpub-header { padding: .85rem 1rem; }
    .docpub-footer { padding: .75rem 1rem; }

    /* Doc hero */
    .doc-hero {
        flex-direction: column-reverse;
        padding: 1rem;
        gap: 1rem;
    }
    .doc-hero-thumb {
        flex: 0 0 auto;
        width: 100%;
        max-width: 180px;
        height: 140px;
        align-self: center;
    }
    .doc-hero-title { font-size: 1.15rem; }
    .doc-hero-description { font-size: .9rem; }
    .doc-hero-download {
        align-self: stretch;
        justify-content: center;
        width: 100%;
    }

}

@media (max-width: 575.98px) {
    /* Related */
    .related-thumb { padding: .3rem; }
    .related-body { padding: .5rem .6rem .55rem; }
    .related-name { font-size: .84rem; min-height: 2.2em; }
    .related-specs { font-size: .68rem; }
    .related-price { font-size: .88rem; padding-top: .4rem; }

    /* Documents */
    .documents-grid { grid-template-columns: 1fr; gap: .5rem; }
    .document-card-icon { font-size: 1.75rem; }
    .document-card-title { font-size: .9rem; }

    /* Spec-doc */
    .spec-doc-card { padding: .4rem .65rem; font-size: .85rem; }
    .spec-doc-card-icon { font-size: 1rem; }
    .spec-doc-card-title { max-width: 160px; }

    /* FAQ */
    .faq-count { min-width: 1.35rem; height: 1.35rem; font-size: .68rem; }
    .faq-clean-question { padding: .55rem .25rem; font-size: .9rem; gap: .55rem; }
    .faq-clean-num { font-size: .72rem; min-width: 1.25rem; }
    .faq-clean-answer > div { padding: 0 0 .65rem 1.8rem; font-size: .85rem; }
    .faq-footer {
        flex-direction: column;
        align-items: stretch;
        gap: .5rem;
    }
    .faq-footer-actions { flex-direction: column; }
    .faq-footer-actions .btn-messenger { justify-content: center; }

    /* Кнопки MAX inline */
    .btn-max-inline-text { display: none; }
    .btn-max-inline { padding: .35rem .55rem; }

    /* 404 */
    .error-page { padding: 2rem 1rem 3rem; }
    .error-page-img { max-width: 200px; margin-bottom: 1.25rem; }
    .error-page-actions { flex-direction: column; }
    .error-page-actions .btn { width: 100%; justify-content: center; }

    /* Поиск */
    .search-empty { padding: 2rem .5rem 3rem; }
    .search-empty-icon { font-size: 3rem; }

    /* Таблица */
    .product-table { font-size: .88rem; }
    .product-table thead th,
    .product-table tbody td { padding: .55rem .6rem; }
    .product-table thead th { font-size: .7rem; }

    /* Scope */
    .scope-card { padding: .75rem .85rem; gap: .75rem; }
    .scope-card-thumb {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
        padding: 0;
        margin: -.75rem 0 -.75rem -.85rem;
    }
    .scope-card-title { font-size: .95rem; }
    .scope-card-description { font-size: .82rem; -webkit-line-clamp: 2; }
    .scope-card-arrow { font-size: 1.1rem; }
}


