:root {
  --jumbotron-padding-y: 1rem;
}

.jumbotron {
  padding-top: var(--jumbotron-padding-y);
  padding-bottom: var(--jumbotron-padding-y);
  margin-bottom: 0;
  background-color: #fff;
}
@media (min-width: 768px) {
  .jumbotron {
    padding-top: calc(var(--jumbotron-padding-y) * 2);
    padding-bottom: calc(var(--jumbotron-padding-y) * 2);
  }
}

.jumbotron p:last-child {
  margin-bottom: 0;
}

.jumbotron-heading {
  font-weight: 300;
}

/*
.jumbotron .container {
  max-width: 40rem;
}
*/

footer {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

footer p {
  margin-bottom: .25rem;
}

.model {
	color: #0e90d2;
    font-size: 0.9rem;
}

.box-4 {
    width: 100%;
    display: block;
    margin: 2% auto;
}

.tcp306-1 {
    position: absolute;
    top: 6%;
    text-align: center;
    width: 100%;
    font-weight: bold;
	font-size: 2.4vh;
}

.tcp306-1a {
    position: absolute;
    top: 4%;
    text-align: center;
    width: 100%;
    font-weight: bold;
	font-size: 2.4vh;
}

.tcp306-2 {
    position: absolute;
    top: 5%;
    text-align: center;
    width: 100%;
    font-weight: bold;
	font-size: 2.4vh;
}

.tcp306-3 {
    position: absolute;
    top: 18%;
    text-align: center;
    width: 100%;
	font-size: 1.6vh;
}

.tcp306-4 {
    position: absolute;
    top: 3%;
    text-align: center;
    width: 100%;
    font-weight: bold;
	font-size: 2.4vh;
}

p.tcp306-23 {
    position: absolute;
    top: 80%;
    text-align: center;
    width: 100%;
    left: 0;
}

 /* -----карусель---- */
 .carousel-indicators {
  position: static;
}
.carousel-indicators li {
  width: 300px;
  height: 100%;
  opacity: 0.8;
  border:1px solid #c8c8c8;
}

.pro_h {
	font-size: 1.2rem;
}

.pro_h h3 {  
  font-size: 1.4rem;
  font-weight: bold;
}

.pro_h .model_1 {
	color: #0e90d2;
	font-size: 1.0rem;	
	font-weight: bold;	
}

.certif {
    margin: 2rem 0 2rem 0;
}


.pro_h .article-content {
    border-left: 3px solid #f0ad4e;
    background-color: #faebcc;
    padding: 10px 25px;
    margin: 20px 0;
}

.btn_zakaz {
	min-width:10 rem;
}


td {
  padding-left: 10px;
}

/*ярлык с ценой*/
.discount {
    background-color: #0e90d2;
    border: none;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    padding: 5px 15px;
    transform: translateX(14px);
    height: 35px	
}

.discount span {
    font-size: 15px
}
 
 /*кнопки на витрине при наведении*/
.my_button:hover {
	background-color: #007bff;
	border-color: #007bff;
}

 /*кнопка запросить счет*/  
.my_button1 {
	border-color:#0084B4;
	background-color:#0084B4;
}
 
.my_button1:hover {
	background-color: #027099;
	border-color: #027099;
}

/*кнопка наверх*/
div.scrollup {
  position: fixed; /* фиксированная позиция */
  color: #fff; /* цвет текста */
  background-color: #0084B4; /* цвет заднего фона */
  right: 20px; /* расстояние от правого края */
  bottom: 0px; /* расстояние от нижнего края */
  padding: 4px 10px; /* отступы до содержимого блока */
  font-size: 20px; /* размер шрифта (иконки) */
  border-top-left-radius: 4px; /* скругление верхнего левого угла */
  border-top-right-radius: 4px; /* скругление верхнего правого угла */
  cursor: pointer; /* форма курсора */
  display: none; /* не отображать элемент */
  text-align: center; /*выравнивание содержимого элемента по центру */
}
div.scrollup:hover {
  background-color: #000; /* цвет заднего фона при наведении */
}

.article-content1 {
    border-left: 3px solid #f0ad4e;
    background-color: #faebcc;
    padding: 10px 25px;
    margin: 20px 0;
}

.article-content2 {
    border-left: 3px solid #538cd6;
    background-color: #e0eeff;
    padding: 10px 25px;
    margin: 20px 0;
	display: flex;
    flex-direction: column;
    border-radius: 4px;
}

.article-content3 {
    border-left: 3px solid #721c24;
    background-color: #f8d7da;
    padding: 10px 25px;
    margin: 20px 0;
}

.my_link {
    font-weight: bold;
    background: #e0eeff;
}


.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-footer {
    margin-top: auto;
}

.card1 {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.card1-img-left {
    width: 100%; /* Занимает всю ширину колонки */
    border-radius: 8px;
}

@media (max-width: 768px) { /* На экранах меньше 768px */
    .card1-img-left {
        max-width: 100%; /* Убираем ограничение ширины */
        width: 100%; /* Занимает всю ширину родителя */
    }

}


/* --- Стили для миниатюры на странице --- */
.zoom-trigger img {
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}
.zoom-trigger:hover img {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.content-wrapper1 {
	margin-top: 1rem;
}



.jumbotron .container {
    max-width: 800px;
}

/* --- ПОЛНОЭКРАННОЕ МОДАЛЬНОЕ ОКНО --- */

.modal-full-size {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Диалог */
#universalModal .modal-dialog {
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
}

/* Контент */
#universalModal .modal-content {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    border: none;
    border-radius: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Body */
#universalModal .modal-body {
    width: 100%;
    height: 100%;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wrapper — ВАЖНО: НЕ 100% */
#universalModal .panzoom-wrapper {
    position: relative;
    display: inline-block; /* ключ */
}

/* Картинка */
#universalModal img {
	touch-action: none; /* Отключает стандартные жесты браузера на картинке */
    max-width: 100%;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}


/* --- КРЕСТИК --- */

/* --- КРЕСТИК (ИСПРАВЛЕННЫЙ) --- */

.close.close-absolute {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1050;

    width: 40px;
    height: 40px;

    background: #fff;
    opacity: 1;
    border-radius: 50%;

    /* Центрирование */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Обнуляем внутренние отступы, если они есть */

    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
    border: none; /* На случай, если это тег button */
}

.close.close-absolute span {
    font-size: 28px;
    line-height: 0; /* Критически важно для выравнивания символа по центру */
    color: #000;
    display: block;
    margin-top: -2px; /* Микро-коррекция, чтобы визуально компенсировать baseline символа */
}

.close.close-absolute:hover {
    background-color: #f8f9fa;
    transform: scale(1.05);
}









/* Убираем "размытую" тень при нажатии на кнопку */
.btn-no-shadow:focus, 
.btn-no-shadow:active {
	box-shadow: none !important;
	outline: none !important;
}

/* Группируем обычное состояние, фокус (клик), и открытое меню */
.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:not(.collapsed) {
    /* Рамка всегда одинаковая */
    border-color: rgba(255, 255, 255, 0.5) !important;
    
    /* Фон ВСЕГДА прозрачный, если нет наведения */
    background-color: transparent !important;
    
    /* Убираем стандартные тени и обводки */
    outline: none !important;
    box-shadow: none !important;
    
    /* Плавность */
    transition: background-color 0.2s;
}

/* 2. ИСКЛЮЧЕНИЕ: Только при наведении мыши (Hover) */
.navbar-toggler:hover {
    /* Легкая подсветка при наведении */
    background-color: rgba(255, 255, 255, 0.15) !important;
    
    /* Рамка остается той же */
    border-color: rgba(255, 255, 255, 0.5) !important;
}


/* Убираем свечение (тень/муар) у ВСЕХ кнопок и ссылок-кнопок при нажатии */
.btn:focus, 
.btn:active, 
.btn:active:focus, 
button:focus, 
button:active, 
a.btn:focus {
    outline: none !important;
    box-shadow: none !important;
}







/* --- ОСНОВНОЙ КОНТЕЙНЕР БЛОКА --- */
.article-content-custom {
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
    box-sizing: border-box;
}

/* --- ЗАГОЛОВКИ (Подключение / Список) --- */
.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    color: #334155; 
}

/* --- СЕТКА ДЛЯ КНОПОК --- */
.tags-grid-container {
    display: grid;
    gap: 4px; 
    width: 100%;
}

.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* --- САМИ КНОПКИ (ТЕГИ) --- */
.model-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 4px;   
    
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    
    height: 28px; 
    padding: 0 4px;
    font-size: 0.75rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.model-link-badge {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
    cursor: pointer;
}
.model-link-badge:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* --- ТАБЛИЦА (Желтый блок) --- */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px; 
}

.modern-table td {
    vertical-align: middle;
    padding: 0; 
    font-size: 0.8rem;
    box-sizing: border-box;
}

/* ==========================================================
   ЛЕВАЯ КОЛОНКА (Серые блоки) - ИСПРАВЛЕНИЕ ФОНА И ВЫРАВНИВАНИЯ
   ========================================================== */
.modern-table tr td:first-child {
    background: rgba(0,0,0,0.06);
    color: #334155;
    font-weight: 700;
    
    height: 28px;           
    padding: 0 10px;        
    
    border-radius: 4px;
    white-space: nowrap;
    
    /* ВАЖНОЕ ИЗМЕНЕНИЕ: Убрали width: 1%, чтобы фон не схлопывался */
    width: auto; 
    
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Фиксируем ширину иконки, чтобы текст начинался с одной линии */
.modern-table tr td:first-child i, 
.modern-table tr td:first-child .fa {
    width: 20px;          
    text-align: center;   
    margin-right: 8px !important; 
    display: inline-block;
    flex-shrink: 0;
}

/* ПРАВАЯ КОЛОНКА */
.modern-table tr td:last-child {
    background: transparent;
    border: none;
    padding-left: 4px; 
}

/* --- ПРАВАЯ ЧАСТЬ (Нижний блок) --- */
.right-column-wrapper {
    display: flex;
    flex-direction: column;
    
}

.grow-block {
    flex: 1 1 auto;
    display: flex;       
    flex-direction: column; 
    margin-bottom: 0 !important;
}

.grow-block-inner {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}


/* =========================================
   АДАПТИВНОСТЬ
   ========================================= */
@media (max-width: 575.98px) {

    .section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        height: auto;
    }
    .section-title span[style*="margin-left"] {
        margin-left: 0 !important;
        margin-top: 2px;
    }

    .modern-table, 
    .modern-table tbody, 
    .modern-table tr, 
    .modern-table td {
        display: block; 
        width: 100% !important;
        padding-left: 0 !important;
    }
    
    .modern-table {
        border-spacing: 0; 
    }

    .modern-table tr {
        margin-bottom: 8px; 
    }

    .modern-table tr td:first-child {
        width: 100%;
        margin-bottom: 4px; 
        height: 28px;       
        display: flex;      
        align-items: center;
    }

    .tags-grid-container.grid-cols-4,
    .tags-grid-container.grid-cols-5 {
        grid-template-columns: repeat(3, 1fr); 
    }
    
    @media (max-width: 400px) {
         .tags-grid-container.grid-cols-4,
         .tags-grid-container.grid-cols-5 {
            grid-template-columns: repeat(2, 1fr); 
        }
    }
}

/* =========================================
   КОМПАКТНЫЕ КНОПКИ КУПИТЬ/СЧЕТ НА МОБИЛЬНОМ
   ========================================= */
@media (max-width: 575.98px) {
    
    /* Уменьшаем отступы и шрифт внутри кнопок */
    .mobile-compact-btns .btn {
        padding: 6px 2px !important; /* Меньше воздуха внутри кнопки */
        font-size: 0.8rem !important; /* Шрифт поменьше */
        white-space: nowrap;          /* Запрет переноса текста */
        display: flex;                /* Центрируем содержимое */
        justify-content: center;
        align-items: center;
    }

    /* Уменьшаем иконку */
    .mobile-compact-btns .icon {
        margin-right: 4px !important; /* Иконка ближе к тексту */
        font-size: 0.9em;
    }
    
    /* Можно принудительно уменьшить жирность, если не влезает */
    .mobile-compact-btns b {
        font-weight: 600;
    }
}

/* Ваши существующие стили для кнопок */
.article-content2 .model-badge { 
    width: auto;          
    display: inline-flex; 
    justify-content: center; 
    min-width: 105px;
    margin-top: 4px;   
    margin-bottom: 4px; 
    margin-right: 2px;  
}




.badge-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 520px;
}

.with-plus span {
    position: relative;
}

.with-plus span:not(:last-child)::after {
    content: "+";
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
}