#advantages .row > .col-12 {
   transition: transform 0.3s ease;
 }
 #advantages .row > .col-12:hover {
   transform: scale(1.05);
 }

 #catalog .row > .col-12 {
   transition: transform 0.3s ease;
 }
 #catalog .row > .col-12:hover {
   transform: scale(1.05);
 }

 #delivery h2 {
   color: black;
   position: relative;
   display: inline-block;
 }

 #delivery h2::after {
   content: "по всей России";
   color: #e66767;
   margin-left: 3px;
 }

 .map {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center; /* выровняет карту и текст по вертикали строго по центру */
  justify-content: space-between; /* аккуратно распределит их по краям */
  height: auto; /* уберет фиксированную высоту, чтобы блок подстраивался под контент */
}

.table-adaptive th,
    .table-adaptive td {
        white-space: nowrap !important;
    }

/* Ограничиваем высоту и делаем плавный переход */
.container .category_description {
    position: relative;
    max-height: 110px; /* Высота в свернутом виде (примерно 5-6 строк) */
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

/* Эффект растворения (градиент) внизу текста */
.container .category_description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Класс для развернутого состояния */
.container .category_description.is-expanded {
    max-height: 5000px; /* С запасом для огромных текстов */
    transition: max-height 0.8s ease-in-out;
}

/* Убираем градиент, когда текст развернут */
.container .category_description.is-expanded::after {
    opacity: 0;
}

/* Стили самой кнопки переключения */
.cat-desc-toggle {
    display: inline-block;
    font-weight: 600;
    color: #3182ce;
    cursor: pointer;
    border-bottom: 1px dashed #3182ce;
    transition: color 0.2s, border-color 0.2s;
    user-select: none;
}

.cat-desc-toggle:hover {
    color: #2b6cb0;
    border-color: #2b6cb0;
}

#is_track, .icms-comment-controls .reply, .icms-comment-rating, #icms-refresh-id { display:none!important; }




/* 1. ГЕРОЙСКАЯ СТРОКА ПОИСКА */
.premium-hero-search { position: relative; }
.premium-hero-search > label { display: none !important; }
.premium-hero-search input[type="text"] {
	height: 60px;
	border-radius: 30px;
	padding: 0 30px 0 60px;
	font-size: 1.15rem;
	font-weight: 600;
	color: #2d3748;
	background-color: #fff;
	border: 2px solid #e2e8f0;
	box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 10px 15px rgba(0,0,0,0.03);
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.premium-hero-search input[type="text"]::placeholder { color: #a0aec0; font-weight: 500; }
.premium-hero-search input[type="text"]:focus {
	border-color: #3182ce;
	box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.15);
	outline: none;
}
.premium-hero-search::before {
	content: "";
	position: absolute;
	left: 25px;
	top: 18px;
	width: 24px;
	height: 24px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23a0aec0' d='M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	z-index: 5;
}

/* 2. ТИПОГРАФИКА */
.filter-custom-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
	color: #4a5568;
	margin-bottom: 0.5rem;
	display: block;
}

/* 3. АБСОЛЮТНО МОНОЛИТНЫЕ КАПСУЛЫ РАЗМЕРОВ (ft_number) */
.ft_number .input-group {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	background-color: #f7fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	transition: all 0.2s ease;
}
.ft_number .input-group:focus-within {
	background-color: #fff !important;
	border-color: #3182ce !important;
	box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15) !important;
}
.ft_number .input-group-prepend,
.ft_number .input-group-append,
.ft_number .input-group-addon {
	background: transparent !important;
	border: none !important;
	display: flex !important;
	align-items: center !important;
	margin: 0 !important;
	padding: 0 !important;
}
.ft_number .input-group-text {
	background: transparent !important;
	border: none !important;
	color: #a0aec0 !important;
	font-weight: 700 !important;
	font-size: 0.75rem !important;
	padding: 0 8px !important;
}
.ft_number input.form-control {
	flex: 1 1 50% !important;
	min-width: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	text-align: center !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	color: #2d3748 !important;
	height: 44px !important;
	padding: 0 4px !important;
}
.ft_number input.form-control:first-of-type {
	border-right: 1px solid #e2e8f0 !important;
}

/* 4. Обычные инпуты (Бренд) */
.custom-filter-field input.form-control:not(.ft_number input), 
.custom-filter-field select.form-control {
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	height: 46px; 
	font-weight: 600;
	color: #2d3748;
	background-color: #f7fafc;
	transition: all 0.2s ease;
}
.custom-filter-field input.form-control:not(.ft_number input):focus, 
.custom-filter-field select.form-control:focus {
	background-color: #fff;
	border-color: #3182ce;
	box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15);
}

/* 5. КНОПКА */
.btn-apply-filter {
	background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
	border: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-apply-filter:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3) !important;
}

/* 6. СТИЛИЗАЦИЯ JQUERY CHOSEN */
.custom-filter-field .chosen-container-single .chosen-single,
.custom-filter-field .chosen-container-multi .chosen-choices {
	border-radius: 8px !important;
	border: 1px solid #e2e8f0 !important;
	min-height: 46px !important;
	background-color: #f7fafc !important;
	background-image: none !important;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	padding: 0 8px !important;
}
.custom-filter-field .chosen-container-active .chosen-single,
.custom-filter-field .chosen-container-active .chosen-choices {
	background-color: #fff !important;
	border-color: #3182ce !important;
	box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15) !important;
}
.custom-filter-field .chosen-container-multi .chosen-choices li.search-field {
	margin: 0 !important;
	padding: 0 !important;
	height: 100%;
	display: flex;
	align-items: center;
}
.custom-filter-field .chosen-container-multi .chosen-choices li.search-field input[type="text"] {
	color: #2d3748 !important;
	font-family: inherit !important;
	height: 30px !important;
	margin: 0 !important;
	padding: 0 10px !important;
	font-weight: 600 !important;
}
.custom-filter-field .chosen-container-multi .chosen-choices li.search-choice {
	background-color: #edf2f7 !important;
	background-image: none !important;
	border: none !important;
	border-radius: 6px !important;
	color: #2d3748 !important;
	font-weight: 600 !important;
	padding: 6px 24px 6px 10px !important;
	margin: 4px 6px 4px 0 !important;
	box-shadow: none !important;
}
.custom-filter-field .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
	top: 6px !important;
	right: 6px !important;
}
.custom-filter-field .chosen-container .chosen-drop {
	border: 1px solid #e2e8f0 !important;
	border-top: none !important;
	border-radius: 0 0 8px 8px !important;
	box-shadow: 0 10px 15px rgba(0,0,0,0.05) !important;
	margin-top: -2px !important;
}
.custom-filter-field .chosen-container .chosen-results li.highlighted {
	background-color: #3182ce !important;
	background-image: none !important;
	color: #fff !important;
}
.chosen-container-single .chosen-single div:after { top: 0.4rem!important; }
.chosen-container-single .chosen-single abbr { top: 0.6rem!important; }

/* 7. СТИЛИ ДЛЯ МОБИЛЬНОГО ПОПАПА МУЛЬТИВЫБОРА */
.is-mobile-device select[multiple],
.is-mobile-device .chosen-container-multi {
	display: none !important;
}
.mobile-multi-btn {
	width: 100%;
	background-color: #f7fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	height: 46px;
	text-align: left;
	padding: 0 15px;
	font-weight: 600;
	color: #2d3748;
	display: flex;
	align-items: center;
	justify-content: space-between;
	outline: none;
}
.mobile-multi-btn.has-selections {
	background-color: #3182ce;
	color: #fff;
	border-color: #3182ce;
}
.mobile-multi-btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.15); }



/* Плавное появление тени вместо движения всей карточки */
.hover-shadow-card { transition: box-shadow 0.2s ease; border-radius: 8px; }
.hover-shadow-card:hover { box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15)!important; }
.hover-shadow-card img { max-height: 100%; max-width: 100%; object-fit: contain; }
.opacity-85 { opacity: 0.85; }
.opacity-85 > div:last-child { border-bottom: none !important; margin-bottom: 0 !important; padding-bottom: 0 !important; }



/* === Идеальная динамическая ширина без переносов === */
.table-adaptive th, 
.table-adaptive td {
	/* Строго запрещаем перенос текста. Ячейка займет ровно столько места, сколько весит контент */
	white-space: nowrap !important; 
}

/* Исключение: если у тебя есть колонка с длинным ТЕКСТОВЫМ описанием, 
   которому ЕСТЬ СМЫСЛ переноситься, раскомментируй и укажи ее класс или номер:
.table-adaptive td.description-column {
	white-space: normal !important;
} */

/* Кнопки корзины: фиксируем минимальную ширину, чтобы не схлопывались */
.table-adaptive .js-cart-controls {
	min-width: 130px;
}




/* Принудительно отрываем контейнеры Амо от потока верстки */
#amo-button-holder, 
.amo-button-holder,
#amo-chat-holder,
.amo-chat-holder,
div[id^="amo-widget"] {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 2147483647 !important;
    margin: 0 !important;
    transform: none !important;
}



.hover-shadow-card { transition: box-shadow 0.2s ease; border-radius: 8px; border: 1px solid #f0f0f0 !important; }
.hover-shadow-card:hover { box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15)!important; }
.hover-shadow-card img { max-height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-props > div:last-child { border-bottom: none !important; margin-bottom: 0 !important; padding-bottom: 0 !important; }

.widget-3d-wrapper > div { height: 100% !important; display: flex; align-items: center; justify-content: center; width: 100%; }
.widget-3d-wrapper .viewer-3d-img { height: 190px !important; max-height: 100% !important; object-fit: contain !important; }

.owl-carousel .owl-stage { display: flex; align-items: stretch; }
.owl-carousel .owl-item { display: flex; flex: 1 0 auto; }

.owl-nav { margin-top: 15px; text-align: center; }
.owl-nav button { 
	font-size: 24px !important; margin: 0 10px; background: #f8f9fa !important; 
	border: 1px solid #dee2e6 !important; width: 40px; height: 40px; 
	border-radius: 50%; line-height: 1 !important; padding-bottom: 4px !important;
	transition: background 0.2s; color: #495057 !important;
}
.owl-nav button:hover { background: #e9ecef !important; color: #000 !important; }
.owl-nav button:focus { outline: none; }



.pdf-card { transition: box-shadow 0.2s ease; border: 1px solid #e9ecef; border-radius: 8px; }
.pdf-card:hover { box-shadow: 0 .5rem 1rem rgba(0,0,0,.08) !important; border-color: #dee2e6; }

.pdf-cover-wrap { height: 220px; overflow: hidden; border-radius: 8px 8px 0 0; }
/* Тень делает картинку похожей на физическую брошюру на сером фоне */
.pdf-cover-wrap img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12)); }

.pdf-title-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }

/* Перехват стандартной ссылки Инстанта и превращение ее в аккуратную кнопку */
.pdf-file-field a { display: inline-flex; align-items: center; padding: 0.35rem 0.75rem; font-size: 0.85rem; color: #fff !important; background-color: #009adf; border-radius: 4px; text-decoration: none; font-weight: 500; transition: background 0.2s; }
.pdf-file-field a:hover { background-color: #009adf; }
.pdf-file-field a::before { content: "\f019"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 5px; }
.pdf-file-field .size { display: block; font-size: 0.7rem; color: #999; margin-top: 2px; }


/* Премиальная обложка с тенью "физической" брошюры */
.pdf-item-cover-wrap { background: #f8f9fa; border-radius: 12px; padding: 2rem; display: flex; justify-content: center; align-items: center; border: 1px solid #e9ecef; }
.pdf-item-cover { filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15)); max-height: 500px; object-fit: contain; }

/* Стилизация родной ссылки скачивания CMS под массивную кнопку */
.pdf-download-action > a { display: inline-flex; align-items: center; padding: 0.85rem 2rem; font-size: 1.1rem; font-weight: 600; text-transform: uppercase; border-radius: 8px; color: #fff !important; background-color: #009adf; text-decoration: none; transition: background 0.2s, transform 0.2s; letter-spacing: 0.5px; }
.pdf-download-action > a:hover { background-color: #009adf; transform: translateY(-2px); }
.pdf-download-action > a::before { 
	content: ""; 
	display: inline-block; 
	width: 1.2rem; 
	height: 1.2rem; 
	margin-right: 10px; 
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23ffffff'%3E%3Cpath d='M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z'/%3E%3C/svg%3E");
	background-size: contain; 
	background-repeat: no-repeat; 
	background-position: center; 
}
.pdf-download-action .size { display: block; margin-top: 8px; font-size: 0.85rem; color: #6c757d; font-weight: 500; }

/* Оформление таблицы свойств */
.pdf-props-card { background: #fff; border: 1px solid #e9ecef; border-radius: 12px; overflow: hidden; }
.pdf-props-card th.heading { background: #f8f9fa; border-bottom: 2px solid #dee2e6; color: #495057; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; padding: 1rem; }
.pdf-props-card td { padding: 0.75rem 1rem; border-color: #f1f3f5; vertical-align: middle; }
.pdf-props-card td.title { width: 40%; color: #6c757d; }
.pdf-props-card td.value { font-weight: 500; color: #212529; }


.journal-card { transition: transform 0.2s ease, box-shadow 0.2s ease; border: 1px solid #f0f0f0 !important; }
.journal-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.06) !important; }
.journal-img-wrap { height: 240px; overflow: hidden; background: #f8f9fa; }
.journal-img-wrap img { transition: transform 0.4s ease; }
.journal-card:hover .journal-img-wrap img { transform: scale(1.05); }
.journal-text-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }


.brand-pdf-card { transition: box-shadow 0.2s ease, transform 0.2s ease; border: 1px solid #e9ecef; border-radius: 8px; }
.brand-pdf-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.06) !important; border-color: #dee2e6; z-index: 2; }

.brand-pdf-cover { height: 180px; overflow: hidden; border-radius: 8px 8px 0 0; background: #f8f9fa; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.brand-pdf-cover img { max-height: 100%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.12)); }

.brand-pdf-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; font-size: 1rem; }

.brand-pdf-action > a { display: flex; align-items: center; justify-content: center; width: 100%; padding: 0.6rem; font-size: 0.85rem; color: #fff !important; background-color: #009adf; border-radius: 6px; text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.2s; }
.brand-pdf-action > a:hover { background-color: #1c8cbe; }

.brand-pdf-action > a::before { 
	content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; 
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23ffffff'%3E%3Cpath d='M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z'/%3E%3C/svg%3E");
	background-size: contain; background-repeat: no-repeat; background-position: center; 
}
.brand-pdf-action .size { display: block; text-align: center; font-size: 0.75rem; color: #999; margin-top: 6px; font-weight: 500; }



.bearing-decoding-widget .table th { border-top: none; font-size: 0.85rem; text-transform: uppercase; color: #6c757d; font-weight: 600; letter-spacing: 0.5px; }
.bearing-decoding-widget .table td { border-color: #f1f3f5; }
.bearing-decoding-widget .badge { font-size: 0.75rem; font-weight: 600; border-radius: 4px; }