@charset "UTF-8";

#callback {
	display: none;
}
.right {
	float: right;
	margin-left: 10px;
}
.left {
	float: left;
	margin-right: 10px;
}
.center {
	margin: 0 auto;
	display: block;
}
.height200 {
	height: 200px;
}
.height250 {
	height: 250px;
}
.height300 {
	height: 300px;
}
.video {
	text-align: center;
}

/* ==========================================================
   PRIZRAK — базовое оформление
   Для существующей разметки и Bootstrap 5.3.3
   ========================================================== */


/* ----------------------------------------------------------
   1. Переменные
   ---------------------------------------------------------- */

:root {
    --site-primary: #1786cf;
    --site-primary-hover: #106eae;
    --site-primary-soft: #eaf5fc;

    --site-dark: #222b36;
    --site-dark-deep: #17202b;

    --site-text: #253141;
    --site-muted: #6c7888;

    --site-bg: #f3f5f8;
    --site-surface: #ffffff;
    --site-border: #e2e7ee;

    --site-danger: #b92932;

    --site-radius: 14px;
    --site-radius-sm: 8px;

    --site-shadow: 0 5px 20px rgb(20 39 65 / 5%);
    --site-shadow-hover: 0 12px 30px rgb(20 39 65 / 10%);

    --site-transition: 180ms ease;

    --bs-primary: #1786cf;
    --bs-primary-rgb: 23, 134, 207;

    --bs-link-color: #147abf;
    --bs-link-color-rgb: 20, 122, 191;

    --bs-link-hover-color: #106eae;
    --bs-link-hover-color-rgb: 16, 110, 174;

    --bs-body-color: #253141;
    --bs-body-bg: #f3f5f8;

    --bs-body-font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}


/* ----------------------------------------------------------
   2. Базовые элементы
   ---------------------------------------------------------- */

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

body {
    min-width: 320px;
    margin: 0;
    color: var(--site-text);
    background: var(--site-bg);
    font-family: var(--bs-body-font-family);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--bs-link-color);
    text-decoration: none;
    transition:
        color var(--site-transition),
        background-color var(--site-transition),
        border-color var(--site-transition);
}

a:hover {
    color: var(--site-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
input[type="submit"] {
    touch-action: manipulation;
}

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgb(23 134 207 / 55%);
    outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--site-dark);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

h1 {
    margin: 0 0 28px;
    font-size: clamp(1.7rem, 2.8vw, 2.65rem);
    letter-spacing: -0.035em;
}

h2 {
    margin: 36px 0 20px;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    letter-spacing: -0.025em;
}

h3 {
    margin: 26px 0 16px;
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

p {
    margin: 0 0 18px;
}

hr {
    margin: 30px 0;
    border: 0;
    border-top: 1px solid var(--site-border);
    opacity: 1;
}

::selection {
    color: #fff;
    background: var(--site-primary);
}


/* ----------------------------------------------------------
   3. Кнопки
   ---------------------------------------------------------- */

.btn {
    --bs-btn-padding-x: 1.2rem;
    --bs-btn-padding-y: 0.7rem;
    --bs-btn-font-size: 0.95rem;
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: var(--site-radius-sm);

    transition:
        color var(--site-transition),
        background-color var(--site-transition),
        border-color var(--site-transition),
        box-shadow var(--site-transition);
}

.btn-sm {
    --bs-btn-padding-x: 1rem;
    --bs-btn-padding-y: 0.55rem;
    --bs-btn-font-size: 0.875rem;
    --bs-btn-border-radius: var(--site-radius-sm);
}

.btn-primary,
.buy_button,
#callbackbutton {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--site-primary);
    --bs-btn-border-color: var(--site-primary);

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--site-primary-hover);
    --bs-btn-hover-border-color: var(--site-primary-hover);

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0d6098;
    --bs-btn-active-border-color: #0d6098;

    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--site-primary);
    --bs-btn-disabled-border-color: var(--site-primary);

    --bs-btn-focus-shadow-rgb: 23, 134, 207;
}

.btn-outline-primary {
    --bs-btn-color: var(--site-primary);
    --bs-btn-border-color: var(--site-primary);

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--site-primary);
    --bs-btn-hover-border-color: var(--site-primary);

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--site-primary-hover);
    --bs-btn-active-border-color: var(--site-primary-hover);

    --bs-btn-focus-shadow-rgb: 23, 134, 207;
}


/* ----------------------------------------------------------
   4. Шапка
   ---------------------------------------------------------- */

.header-top {
    padding: 22px 0;
    background: var(--site-surface);
}

.header-left {
    color: var(--site-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.logo {
    display: inline-block;
    max-width: 100%;
}

.logo img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 76px;
    margin: 0 auto;
    object-fit: contain;
}

.header-tel {
    font-size: 0.95rem;
}

.header-tel a[href^="tel:"] {
    color: var(--site-dark);
    font-size: 1.2rem;
    font-weight: 700;
}

#callbackbutton {
    max-width: 100%;
    white-space: normal;
}

/* ==========================================================
   HEADER: логотип / подпись / контакты / обратный звонок
   ========================================================== */

.header-top {
    padding: 24px 0;
    background: #fff;
}

/* Три группы: бренд, контакты, кнопка. */
.header-top-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 32px;
}

/* Логотип и подпись всегда образуют одну группу. */
.header-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

/* Логотип */
.header-brand .header-logo {
    display: block;
    flex: 0 0 auto;
    width: 235px;
    max-width: 100%;
    line-height: 0;
}

.header-brand .header-logo img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 76px;
    margin: 0;
    object-fit: contain;
    object-position: left center;
}

/* Подпись и вертикальный разделитель */
.header-brand-text {
    display: flex;
    align-items: center;
    flex: 0 1 260px;

    min-width: 0;
    min-height: 50px;
    margin-left: 24px;
    padding: 4px 0 4px 24px;

    border-left: 1px solid #dce3eb;

    color: #617083;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
}

/* Контакты */
.header-contacts {
    min-width: 0;
    text-align: left;
}

.header-contacts-phone {
    display: inline-block;

    color: #222b36;
    font-size: 1.25rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.025em;
    white-space: nowrap;
    text-decoration: none;
}

.header-contacts-phone:hover,
.header-contacts-phone:focus-visible {
    color: #1786cf;
}

.header-contacts-schedule {
    margin-top: 5px;

    color: #7b8796;
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Кнопка */
.header-callback {
    min-width: 0;
}

.header-callback #callbackbutton {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    padding: 12px 20px;

    border-radius: 8px;

    font-size: 0.85rem;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
}


/* ----------------------------------------------------------
   Небольшие ноутбуки
   ---------------------------------------------------------- */

@media (min-width: 992px) and (max-width: 1199.98px) {
    .header-top-inner {
        gap: 22px;
    }

    .header-brand .header-logo {
        width: 200px;
    }

    .header-brand-text {
        flex-basis: 210px;
        margin-left: 18px;
        padding-left: 18px;
        font-size: 0.8rem;
    }

    .header-contacts-phone {
        font-size: 1.1rem;
    }

    .header-callback #callbackbutton {
        padding-right: 16px;
        padding-left: 16px;
        font-size: 0.8rem;
    }
}


/* ----------------------------------------------------------
   Планшеты: бренд сверху, телефон и кнопка ниже
   ---------------------------------------------------------- */

@media (max-width: 991.98px) {
    .header-top {
        padding: 20px 0;
    }

    .header-top-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 20px 24px;
    }

    .header-brand {
        grid-column: 1 / -1;
    }

    .header-brand .header-logo {
        width: 220px;
    }

    .header-brand-text {
        flex-basis: 260px;
    }

    .header-callback {
        justify-self: end;
    }
}


/* ----------------------------------------------------------
   Телефоны
   ---------------------------------------------------------- */

@media (max-width: 575.98px) {
    .header-top {
        padding: 18px 0;
    }

    .header-top-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .header-brand {
        grid-column: auto;
    }

    .header-brand .header-logo {
        width: 160px;
    }

    .header-brand-text {
        flex: 1 1 0;

        min-height: 44px;
        margin-left: 12px;
        padding-left: 12px;

        font-size: 0.72rem;
        line-height: 1.5;
    }

    .header-contacts {
        padding-top: 14px;
        border-top: 1px solid #edf0f4;
    }

    .header-contacts-phone {
        font-size: 1.2rem;
    }

    .header-contacts-schedule {
        font-size: 0.75rem;
    }

    .header-callback {
        width: 100%;
        justify-self: stretch;
    }

    .header-callback #callbackbutton {
        width: 100%;
        min-height: 46px;
        font-size: 0.85rem;
        white-space: normal;
    }
}

/* Более компактная шапка на компьютерах */
@media (min-width: 992px) {
    .header-top {
        padding: 14px 0;
    }

    .header-brand .header-logo img {
        max-height: 64px;
    }

    .header-brand-text {
        min-height: 44px;
        padding-top: 2px;
        padding-bottom: 2px;
    }

    .header-callback #callbackbutton {
        min-height: 42px;
        padding: 10px 18px;
    }
}


/* Шапка: общий номер, Киевская и Востряковский проезд */
.header-top-inner.header-top-inner--three-contacts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "brand"
        "contacts"
        "callback";
    align-items: center;
    gap: 16px;
}

.header-top-inner--three-contacts > .header-brand {
    grid-area: brand;
}

.header-top-inner--three-contacts > .header-callback {
    grid-area: callback;
}

.header-top-inner--three-contacts > .header-contact-group {
    grid-area: contacts;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
}

.header-top-inner--three-contacts .header-contact-group > .header-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 4px;
    text-align: center;
}

.header-top-inner--three-contacts .header-contacts-phone {
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.25;
}

.header-top-inner--three-contacts .header-contact-group .header-contacts-address {
    margin: 0;
    color: var(--site-text, #253141);
    font-size: 0.78rem;
    line-height: 1.35;
}

.header-top-inner--three-contacts .header-contact-group .header-contacts-schedule {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.35;
}

@media (max-width: 767.98px) {
    .header-top-inner--three-contacts .header-contact-group > .header-contacts + .header-contacts {
        padding-top: 14px;
        border-top: 1px solid var(--site-border, #e2e7ee);
    }
}

@media (min-width: 768px) {
    .header-top-inner.header-top-inner--three-contacts {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand callback"
            "contacts contacts";
    }

    .header-top-inner--three-contacts > .header-contact-group {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        gap: 16px;
    }

    .header-top-inner--three-contacts .header-contact-group .header-contacts-schedule {
        margin-top: auto;
    }
}

@media (min-width: 1200px) {
    .header-top-inner.header-top-inner--three-contacts {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "brand contacts callback";
        column-gap: clamp(16px, 2vw, 32px);
    }
}
/* ----------------------------------------------------------
   5. Навигация: общие элементы
   ---------------------------------------------------------- */

.prizrak-menu,
.prizrak-menu .prizrak-submenu-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.prizrak-menu .nav-item {
    position: relative;
    min-width: 0;
}

.prizrak-menu .prizrak-menu-item {
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.prizrak-menu .nav-link {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 0;
    overflow-wrap: anywhere;
}

.prizrak-submenu-toggle {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 8px;

    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.prizrak-submenu-arrow {
    display: block;
    width: 7px;
    height: 7px;

    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;

    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--site-transition);
}

.prizrak-submenu-toggle[aria-expanded="true"]
.prizrak-submenu-arrow {
    transform: translateY(2px) rotate(225deg);
}


/* ----------------------------------------------------------
   6. Верхнее меню
   ---------------------------------------------------------- */

.header-middle {
    position: relative;
    z-index: 100;
    border-top: 3px solid var(--site-primary);
    background: var(--site-dark);
}

.top-nav > .prizrak-menu {
    /* Переопределяет Bootstrap flex-column с !important. */
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: stretch;
}

.top-nav > .prizrak-menu > .nav-item {
    flex: 0 0 auto;
}

.top-nav .nav-link {
    padding: 16px 22px;
    color: #e0e7ef;
    font-size: 0.95rem;
    font-weight: 500;
}

.top-nav .nav-link:hover,
.top-nav .nav-link:focus-visible {
    color: #fff;
    background: rgb(255 255 255 / 7%);
}

.top-nav .nav-link.active,
.top-nav .nav-link.current {
    color: #fff;
    background: var(--site-primary);
}

.top-nav .prizrak-submenu-toggle {
    color: #d7e3ef;
}

.top-nav .prizrak-submenu-toggle:hover {
    color: #fff;
    background: rgb(255 255 255 / 8%);
}

.top-nav .prizrak-submenu {
    background: var(--site-dark-deep);
}

.top-nav .prizrak-submenu .nav-link {
    padding: 12px 18px;
    font-size: 0.875rem;
}

.top-nav .prizrak-submenu-list
.prizrak-submenu-list {
    padding-left: 12px;
}

/* В исходном HTML это отдельный список категорий.
   Пока выводим его второй строкой, без имитации dropdown. */

.top-nav .secon-level-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;

    margin: 0;
    padding: 10px 0;

    border-top: 1px solid rgb(255 255 255 / 10%);
    list-style: none;
}

.top-nav .secon-level-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.top-nav .secon-level-menu a {
    display: inline-block;
    padding: 4px 0;
    color: #c2ceda;
    font-size: 0.8rem;
    line-height: 1.5;
}

.top-nav .secon-level-menu a:hover {
    color: #fff;
}

/* ==========================================================
   Верхнее меню: скрытие вниз / появление вверх
   ========================================================== */

/* Сохраняет место меню после его перехода в position: fixed. */
.scroll-menu-placeholder {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Обычное состояние: меню находится в потоке страницы. */
.header-middle.scroll-menu {
    position: relative;
    width: 100%;
    transform: none;
    transition: none;
}

/* Закреплённое состояние. */
.header-middle.scroll-menu.is-fixed {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;

    width: 100%;
    margin: 0;

    transform: translateY(0);
    visibility: visible;

    box-shadow: 0 8px 24px rgb(12 24 40 / 15%);
}

/* Скрытое закреплённое меню. */
.header-middle.scroll-menu.is-fixed.is-hidden {
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
}

/* Анимация включается после первоначального закрепления,
   чтобы меню не мигало при переходе в fixed. */
.header-middle.scroll-menu.is-fixed.is-animated {
    transition:
        transform 220ms ease,
        visibility 220ms ease;
}

/* Учитываем настройку уменьшения движения. */
@media (prefers-reduced-motion: reduce) {
    .header-middle.scroll-menu.is-fixed.is-animated {
        transition: none;
    }
}


/* ----------------------------------------------------------
   7. Основной каркас
   ---------------------------------------------------------- */

#main {
    padding: 32px 0 56px;
}

#main > .container > .row {
    --bs-gutter-x: 28px;
    --bs-gutter-y: 28px;
}

.left-block,
.right-block {
    min-width: 0;
}

.main-content {
    float: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: clamp(20px, 2.5vw, 36px);

    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);

    background: var(--site-surface);
    box-shadow: var(--site-shadow);

    overflow-wrap: anywhere;
}

.main-content > :last-child {
    margin-bottom: 0;
}

.main-content p,
.main-content li {
    line-height: 1.75;
}

.main-content p a,
.main-content li > a:not(.nav-link) {
    text-underline-offset: 3px;
}

.main-content p a:hover {
    text-decoration: underline;
}

.main-content iframe,
.main-content video {
    max-width: 100%;
}

.main-content pre {
    max-width: 100%;
    overflow-x: auto;
}

#breadcrumb {
    margin-bottom: 18px;
    color: var(--site-muted);
    font-size: 0.85rem;
}

#zapis-na-ustanovku {
    scroll-margin-top: 24px;
}


/* ----------------------------------------------------------
   8. Боковой каталог
   ---------------------------------------------------------- */

#left-menu {
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);

    background: var(--site-surface);
    box-shadow: var(--site-shadow);
}

/* Декоративная подпись. Для семантического заголовка
   лучше добавить реальный элемент в HTML. */

#left-menu::before {
    content: "Каталог оборудования";
    display: block;

    padding: 20px 18px;
    border-bottom: 1px solid var(--site-border);

    color: var(--site-dark);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

#left-menu .prizrak-menu {
    /* В исходном HTML есть flex-md-row с !important. */
    flex-direction: column !important;
    width: 100%;
    padding: 8px;
}

#left-menu .prizrak-menu > .nav-item + .nav-item {
    border-top: 1px solid #edf0f4;
}

#left-menu .prizrak-menu-item {
    border-radius: var(--site-radius-sm);
    color: var(--site-muted);
}

#left-menu .prizrak-menu-item:hover {
    background: #f5f8fb;
}

#left-menu .nav-link {
    padding: 13px 10px;
    color: var(--site-text);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
}

#left-menu .nav-link:hover,
#left-menu .nav-link:focus-visible {
    color: var(--site-primary);
}

#left-menu .nav-link.active,
#left-menu .nav-link.current {
    border-radius: var(--site-radius-sm);
    color: var(--site-primary-hover);
    background: var(--site-primary-soft);
    font-weight: 650;
}

#left-menu .prizrak-submenu-toggle {
    flex-basis: 36px;
    color: #7b8999;
}

#left-menu .prizrak-submenu-toggle:hover,
#left-menu .prizrak-submenu-toggle[aria-expanded="true"] {
    border-radius: var(--site-radius-sm);
    color: var(--site-primary);
    background: var(--site-primary-soft);
}

#left-menu .prizrak-submenu {
    position: static;
    width: auto;
    max-width: none;

    border: 0;
    border-radius: 0;

    background: transparent;
    box-shadow: none;
}

#left-menu .prizrak-submenu-list {
    margin: 4px 0 10px 14px;
    padding: 0 0 0 10px;
    border-left: 1px solid var(--site-border);
}

#left-menu .prizrak-submenu-list .nav-link {
    padding: 8px;
    font-size: 0.825rem;
    font-weight: 400;
}


/* ----------------------------------------------------------
   9. Баннеры и существующий слайдер
   ---------------------------------------------------------- */

.content-slider {
    margin-bottom: 28px;
    overflow: hidden;

    border-radius: var(--site-radius);
    background: var(--site-dark-deep);
    box-shadow: var(--site-shadow);
}

.content-slider ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.content-slider a {
    display: block;
}

.content-slider img {
    display: block;
    width: 100%;
    height: auto;
}

.main-content > a > img {
    border-radius: var(--site-radius-sm);
}
/* ==========================================================
   Главный слайдер — Bootstrap Carousel
   ========================================================== */

.content-slider {
    margin-bottom: 28px;
    overflow: hidden;

    border-radius: var(--site-radius, 14px);
    background: #17202b;
    box-shadow: var(
        --site-shadow,
        0 5px 20px rgb(20 39 65 / 5%)
    );
}

#mainContentSlider .carousel-item > a {
    display: block;
}

#mainContentSlider .carousel-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Стрелки */
#mainContentSlider .carousel-control-prev,
#mainContentSlider .carousel-control-next {
    top: 50%;
    bottom: auto;

    width: 42px;
    height: 42px;

    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 50%;

    background: rgb(15 24 36 / 55%);
    opacity: 0.85;

    transform: translateY(-50%);

    transition:
        opacity 180ms ease,
        background-color 180ms ease;
}

#mainContentSlider .carousel-control-prev {
    left: 12px;
}

#mainContentSlider .carousel-control-next {
    right: 12px;
}

#mainContentSlider .carousel-control-prev:hover,
#mainContentSlider .carousel-control-next:hover,
#mainContentSlider .carousel-control-prev:focus-visible,
#mainContentSlider .carousel-control-next:focus-visible {
    background: var(--site-primary, #1786cf);
    opacity: 1;
}

#mainContentSlider .carousel-control-prev-icon,
#mainContentSlider .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

/* Индикаторы */
#mainContentSlider .carousel-indicators {
    gap: 7px;
    margin-bottom: 12px;
}

#mainContentSlider .carousel-indicators [data-bs-target] {
    box-sizing: border-box;

    width: 9px;
    height: 9px;
    margin: 0;

    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 50%;

    background-color: rgb(255 255 255 / 45%);
    background-clip: border-box;

    opacity: 1;
}

#mainContentSlider .carousel-indicators .active {
    border-color: var(--site-primary, #1786cf);
    background-color: var(--site-primary, #1786cf);
}

/* Мобильная версия */
@media (max-width: 575.98px) {
    .content-slider {
        margin-bottom: 20px;
        border-radius: 10px;
    }

    #mainContentSlider .carousel-control-prev,
    #mainContentSlider .carousel-control-next {
        width: 34px;
        height: 34px;
    }

    #mainContentSlider .carousel-control-prev {
        left: 6px;
    }

    #mainContentSlider .carousel-control-next {
        right: 6px;
    }

    #mainContentSlider .carousel-control-prev-icon,
    #mainContentSlider .carousel-control-next-icon {
        width: 15px;
        height: 15px;
    }

    #mainContentSlider .carousel-indicators {
        gap: 6px;
        margin-bottom: 7px;
    }

    #mainContentSlider .carousel-indicators [data-bs-target] {
        width: 7px;
        height: 7px;
    }
}

/* ----------------------------------------------------------
   10. Карточки категорий и товаров
   ---------------------------------------------------------- */

.tovar-short {
    margin: 24px 0 32px;
}

.tovar-short > .row {
    --bs-gutter-x: 20px;
    --bs-gutter-y: 20px;
}

.tovar-short .tovar-item {
    display: flex;
    flex-direction: column;

    float: none;
    clear: none;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 20px;

    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);

    background: var(--site-surface);

    transition:
        border-color var(--site-transition),
        box-shadow var(--site-transition),
        transform var(--site-transition);
}

.tovar-short .tovar-item:hover,
.tovar-short .tovar-item:focus-within {
    border-color: #bddef3;
    box-shadow: var(--site-shadow-hover);
}

/* Название размещаем вверху карточки. */
.tovar-item .menu-short-title {
    order: -2;
    margin-bottom: 16px;
}

.menu-short-title a {
    display: block;
    color: var(--site-dark);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.menu-short-title a:hover {
    color: var(--site-primary);
}

/* В текущей разметке описание находится перед изображением.
   Меняем визуальный порядок без изменения HTML. */

.tovar-image {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tovar-image > a:first-child {
    order: 2;
}

.tovar-image > a:last-child {
    order: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    margin-bottom: 16px;
}

.tovar-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 170px;
    object-fit: contain;
}

.tovar-image .text-title {
    color: var(--site-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.tovarshortpricefull {
    order: -3;

    margin-bottom: 16px;
    padding: 12px 14px;

    border-radius: var(--site-radius-sm);
    background: var(--site-primary-soft);
}

.tovarshortpricetext {
    margin-bottom: 4px;
    color: var(--site-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.tovarshortprice {
    color: var(--site-dark);
    font-size: 1.35rem;
    font-weight: 750;
    line-height: 1.25;
}

.tovarshortpricefull.soon {
    color: #8b2730;
    background: #fff0f1;
}

.tovarsoontext {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.tovar-item .buy_button {
    align-self: flex-start;
    margin-top: auto;
}

/* Отступ перед кнопкой при наличии контента. */
.tovar-item .tovar-image {
    margin-bottom: 18px;
}

/* В исходнике здесь выводятся ID и служебные extra3. */
.tovar-item .params {
    display: none;
}

.category-headers {
    float: none;
    clear: none;
    width: 100%;
    margin: 0;
    padding: 8px 0 0;
}

.category-headers h3 {
    margin: 0;
}
/* Каталог: заголовок → фото → описание → цена → кнопка */
.tovar-short .tovar-item--reordered > .menu-short-title {
    order: 0;
    margin: 0 0 14px;
}

.tovar-short .tovar-item--reordered > .tovar-image {
    display: block;
    margin: 0 0 14px;
}

.tovar-short .tovar-item--reordered .tovar-image > .tovar-image-link {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 0;
}

.tovar-short .tovar-item--reordered .tovar-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: var(--site-radius-sm, 8px);
}

.tovar-short .tovar-item--reordered > .tovar-description {
    margin: 0 0 16px;
    color: var(--site-muted, #6c7888);
    font-size: 0.85rem;
    line-height: 1.6;
}

.tovar-short .tovar-item--reordered > .tovar-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.tovar-short .tovar-item--reordered > .tovar-card-footer:empty {
    display: none;
}

.tovar-short .tovar-item--reordered .tovar-card-footer > .tovarshortpricefull {
    order: 0;
    margin: 0;
}

.tovar-short .tovar-item--reordered .tovar-card-footer > .buy_button {
    align-self: flex-start;
    margin: 0;
}

/* ----------------------------------------------------------
   11. Страница товара
   ---------------------------------------------------------- */

.product-summary {
    margin-bottom: 32px;
}

.product-gallery {
    min-width: 0;
}

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

.shortlist {
    color: var(--site-text);
    font-size: 0.95rem;
}

.shortlist ul {
    padding-left: 20px;
}

.shortlist li {
    margin-bottom: 8px;
}

.right-block-content {
    float: none;
    width: 100%;
    min-width: 0;
    margin-left: 0;
}

.price {
    margin-bottom: 16px;
    padding: 18px;

    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-sm);

    background: #f7f9fc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.price.upperline {
    border-top: 3px solid var(--site-primary);
    background: var(--site-surface);
}

.priserub {
    color: var(--site-dark);
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 750;
    line-height: 1.2;
}

.instructions,
.mobile {
    margin-top: 20px;
    font-size: 0.85rem;
}

.instructions strong {
    display: inline-block;
    margin-bottom: 8px;
}

.instructions .pdf + .pdf {
    margin-top: 8px;
}

.instructions .pdf a {
    display: inline-block;
    padding: 4px 0;
}

.mobile img {
    display: block;
    max-width: 100%;
    margin-bottom: 8px;
}

.product-tabs {
    gap: 4px;
    border-bottom-color: var(--site-border);
}

.product-tabs .nav-link {
    padding: 12px 16px;

    border-radius:
        var(--site-radius-sm)
        var(--site-radius-sm)
        0
        0;

    color: var(--site-muted);
    font-weight: 600;
}

.product-tabs .nav-link:hover {
    color: var(--site-primary);
    background: #f5f9fc;
}

.product-tabs .nav-link.active {
    border-color:
        var(--site-border)
        var(--site-border)
        var(--site-surface);

    color: var(--site-primary);
    background: var(--site-surface);
}

.product-tab-content {
    min-width: 0;
    padding-top: 8px;
}

.product-tab-content .tab-pane > h2:first-child {
    margin-top: 18px;
}


/* ----------------------------------------------------------
   12. Таблицы и уведомления
   ---------------------------------------------------------- */

.main-content table {
    width: 100%;
    margin-bottom: 24px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.main-content table th,
.main-content table td {
    padding: 12px 14px;
    border: 1px solid var(--site-border);
    vertical-align: top;
}

.main-content table th {
    color: var(--site-dark);
    background: #f1f5f9;
    font-weight: 650;
}

.main-content table tbody tr:nth-child(even) td {
    background: #fafbfd;
}

.alert {
    border-radius: var(--site-radius-sm);
    font-size: 0.9rem;
    line-height: 1.6;
}

.alert-danger,
.alert-error {
    color: #8e2530;
    border-color: #f0ccd0;
    background: #fff1f2;
}


/* ----------------------------------------------------------
   13. Сертификаты
   ---------------------------------------------------------- */

.main-content .center {
    text-align: center;
}

.main-content .center a[rel="lightbox"] {
    display: inline-block;
    max-width: 100%;
    margin: 8px;
}

.main-content img.height300 {
    width: auto;
    max-width: 100%;
    height: 260px;
    object-fit: contain;

    border: 1px solid var(--site-border);
    border-radius: 6px;

    background: #fff;
    box-shadow: var(--site-shadow);

    transition: box-shadow var(--site-transition);
}

.main-content a:hover img.height300 {
    box-shadow: var(--site-shadow-hover);
}


/* ----------------------------------------------------------
   14. Новости
   ---------------------------------------------------------- */

#news {
    margin-top: 36px;
}

#news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 20px;
    padding-bottom: 16px;

    border-bottom: 1px solid var(--site-border);
}

#news-header h2 {
    margin: 0;
}

.NewsSummary {
    margin-bottom: 20px;
    padding: 22px;

    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);

    background: #fafbfd;
}

.NewsSummaryLink > span {
    display: block;
    margin-bottom: 8px;
    color: var(--site-muted);
    font-size: 0.8rem;
}

.NewsSummaryLink h3 {
    margin: 0 0 14px;
    font-size: 1.15rem;
}

.NewsSummaryContent {
    color: #556273;
    font-size: 0.9rem;
}

.NewsSummaryContent > :last-child {
    margin-bottom: 0;
}

#news-content > .row-fluid > hr {
    display: none;
}

.allnews {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
}

/* Новости */
.news-list {
    --bs-gutter-x: 24px;
    --bs-gutter-y: 24px;
}

.news-list > [class*="col-"] {
    min-width: 0;
}

.news-list .NewsSummary {
    min-width: 0;
    height: 100%;
    padding: 24px;

    border: 1px solid var(--site-border, #e2e7ee);
    border-radius: var(--site-radius, 14px);

    background: var(--site-surface, #fff);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.news-list .NewsSummary:hover {
    border-color: #bddef3;
    box-shadow: var(
        --site-shadow,
        0 5px 20px rgb(20 39 65 / 5%)
    );
}

.news-list .NewsSummaryLink h3 {
    margin: 0 0 16px;

    color: var(--site-dark, #222b36);
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.4;
}

.news-list .NewsSummarySummary,
.news-list .NewsSummaryContent {
    color: #556273;
    font-size: 0.95rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.news-list .NewsSummarySummary > :last-child,
.news-list .NewsSummaryContent > :last-child {
    margin-bottom: 0;
}

.news-list .NewsSummaryMorelink a {
    font-weight: 600;
}

.news-list .NewsSummaryMorelink > span {
    margin-left: 4px;
    color: var(--site-primary, #1786cf);
}

.news-list .NewsSummaryField {
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.news-list .NewsSummaryFieldName {
    font-weight: 600;
}

.news-list .NewsSummaryField img {
    display: block;
    max-width: 100%;
    height: auto;
}

@media (max-width: 575.98px) {
    .news-list .NewsSummary {
        padding: 18px;
    }
}
/* ----------------------------------------------------------
   15. Поля форм
   ---------------------------------------------------------- */

.cms_form label {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--site-text);
    font-size: 0.9rem;
    font-weight: 500;
}

.cms_form input:not([type]),
.cms_form input[type="text"],
.cms_form input[type="tel"],
.cms_form input[type="email"],
.cms_form input[type="number"],
.cms_form input[type="password"],
.cms_form input[type="search"],
.cms_form select,
.cms_form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;

    border: 1px solid #d4dde7;
    border-radius: var(--site-radius-sm);

    color: var(--site-text);
    background: #fff;

    transition:
        border-color var(--site-transition),
        box-shadow var(--site-transition);
}

.cms_form textarea {
    min-height: 120px;
    resize: vertical;
}

.cms_form input:focus,
.cms_form select:focus,
.cms_form textarea:focus {
    border-color: var(--site-primary);
    box-shadow: 0 0 0 3px rgb(23 134 207 / 12%);
}

.cms_form input[type="checkbox"],
.cms_form input[type="radio"] {
    accent-color: var(--site-primary);
}

.cms_form .submit {
    margin-top: 20px;
}

.cms_form input[type="submit"],
.cookie_accept {
    padding: 11px 20px;

    border: 1px solid var(--site-primary);
    border-radius: var(--site-radius-sm);

    color: #fff;
    background: var(--site-primary);

    font-weight: 600;
    cursor: pointer;

    transition:
        background-color var(--site-transition),
        border-color var(--site-transition);
}

.cms_form input[type="submit"]:hover,
.cookie_accept:hover {
    border-color: var(--site-primary-hover);
    background: var(--site-primary-hover);
}

.cms_form .captcha {
    margin-top: 16px;
    font-size: 0.8rem;
}


/* ----------------------------------------------------------
   16. Существующее окно обратного звонка
   Открытие и закрытие выполняются JavaScript.
   ---------------------------------------------------------- */

#callback {
    display: none;

    position: fixed;
    inset: 0;
    z-index: 1060;

    overflow-y: auto;
    padding: 48px 16px;

    background: rgb(12 22 36 / 72%);
    overscroll-behavior: contain;
}

#callback.show {
    display: block;
}

.callbackbox {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 36px;

    border-radius: 18px;

    color: var(--site-text);
    background: var(--site-surface);
    box-shadow: 0 24px 80px rgb(0 0 0 / 25%);
}

.callbackbox .closebutton {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 36px;
    height: 36px;

    border: 0;
    border-radius: 50%;
    background: #edf2f7;
    cursor: pointer;
}

.callbackbox .closebutton::before,
.callbackbox .closebutton::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 10px;

    width: 16px;
    height: 2px;

    background: #526174;
}

.callbackbox .closebutton::before {
    transform: rotate(45deg);
}

.callbackbox .closebutton::after {
    transform: rotate(-45deg);
}

.callbackbox .closebutton:hover {
    background: #dfe8f1;
}


/* ----------------------------------------------------------
   17. Футер
   ---------------------------------------------------------- */

footer {
    padding-top: 38px;
    color: #b8c4d2;
    background: var(--site-dark);
    font-size: 0.875rem;
}

footer a {
    color: #dbe8f4;
}

footer a:hover {
    color: #fff;
}

footer > .container > .row + .row {
    margin-top: 22px;
}

.footerpolitika {
    font-size: 0.8rem;
    line-height: 1.6;
}

.footerphone {
    line-height: 1.9;
}

.footerphone a[href^="tel:"] {
    color: #fff;
    white-space: nowrap;
    font-weight: 650;
}

footer hr {
    margin: 18px 0 0;
    border-top-color: rgb(255 255 255 / 12%);
}

footer .cards {
    font-size: 0.8rem;
}

footer .cards img {
    display: block;
    width: auto;
    max-width: 180px;
    margin-top: 12px;
    border-radius: 4px;
}

.footeraddress {
    color: #b8c4d2;
    line-height: 1.8;
}

.footeraddress strong {
    display: inline-block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.5;
}

.sub-footer {
    margin-top: 32px;
    padding: 20px 0;

    border-top: 1px solid rgb(255 255 255 / 8%);
    background: var(--site-dark-deep);
}

.copyright {
    color: #98a9bc;
    font-size: 0.78rem;
}

.sub-footer .alignright > a,
.sub-footer .alignright > span {
    display: inline-block;
    margin: 3px;
    vertical-align: middle;
}


/* ----------------------------------------------------------
   18. Уведомление о cookie
   ---------------------------------------------------------- */

#cookie_notification {
    display: none;

    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1050;

    width: min(540px, calc(100% - 40px));
    max-height: calc(100dvh - 40px);
    padding: 22px;

    overflow-y: auto;

    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);

    color: var(--site-text);
    background: var(--site-surface);
    box-shadow: 0 12px 50px rgb(12 28 48 / 18%);
}

#cookie_notification.show {
    display: block;
}

#cookie_notification p {
    margin-bottom: 16px;
    font-size: 0.8rem;
    line-height: 1.65;
}

#cookie_notification .cookie_accept {
    font-size: 0.85rem;
}


/* ----------------------------------------------------------
   19. Наверх и совместимость со служебными классами
   ---------------------------------------------------------- */

#go-top {
    display: flex;
    align-items: center;
    justify-content: center;

    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;

    width: 44px;
    height: 44px;

    border: 1px solid #dce5ee;
    border-radius: 50%;

    color: var(--site-primary);
    background: #fff;
    box-shadow: var(--site-shadow);
}

#go-top::before {
    content: "";
    width: 10px;
    height: 10px;

    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;

    transform: translateY(3px) rotate(45deg);
}

#go-top:hover {
    color: #fff;
    border-color: var(--site-primary);
    background: var(--site-primary);
}

.clear {
    clear: both;
}

.position-rel {
    position: relative;
}

.height20 {
    height: 20px;
}

.displaynone,
.hidden {
    display: none !important;
}


/* ----------------------------------------------------------
   20. Адаптивность
   ---------------------------------------------------------- */

@media (min-width: 768px) {
    .top-nav > .prizrak-menu > .nav-item > .prizrak-submenu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 101;

        width: 280px;

        border: 1px solid rgb(255 255 255 / 10%);
        border-radius: 0 0 10px 10px;

        box-shadow: 0 12px 25px rgb(0 0 0 / 18%);
    }

    .top-nav > .prizrak-menu > .nav-item:last-child
    > .prizrak-submenu {
        right: 0;
        left: auto;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

@media (max-width: 1199.98px) {
    .top-nav .nav-link {
        padding-right: 17px;
        padding-left: 17px;
    }

    .tovar-short .tovar-item {
        padding: 16px;
    }

    #left-menu .nav-link {
        font-size: 0.85rem;
    }
}

@media (max-width: 991.98px) {
    .header-left {
        font-size: 0.8rem;
    }

    #callbackbutton {
        padding-right: 12px;
        padding-left: 12px;
        font-size: 0.8rem;
    }

    .top-nav .nav-link {
        padding: 14px;
        font-size: 0.875rem;
    }

    #main > .container > .row {
        --bs-gutter-x: 20px;
    }

    #left-menu::before {
        padding: 16px 12px;
        font-size: 0.95rem;
    }

    #left-menu .prizrak-menu {
        padding: 6px;
    }

    #left-menu .nav-link {
        padding: 11px 7px;
        font-size: 0.8rem;
    }

    #left-menu .prizrak-submenu-toggle {
        flex-basis: 28px;
    }

    .footeraddress + .footeraddress {
        padding-top: 16px;
    }
}

@media (max-width: 767.98px) {
    .header-top {
        padding: 18px 0;
    }

    .header-left,
    .header-tel {
        text-align: center;
    }

    .logo img {
        max-height: 64px;
    }

    .top-nav > .prizrak-menu > .nav-item {
        flex: 1 0 auto;
    }

    .top-nav .nav-link {
        padding: 12px 14px;
        text-align: center;
    }

    .top-nav .prizrak-submenu .nav-link {
        text-align: left;
    }

    .top-nav .secon-level-menu {
        gap: 2px 16px;
        padding: 10px 4px;
    }

    .top-nav .secon-level-menu a {
        font-size: 0.75rem;
    }

    #main {
        padding: 20px 0 36px;
    }

    .main-content {
        padding: 22px 18px;
    }

    #left-menu::before {
        padding: 16px;
        font-size: 1rem;
    }

    #left-menu .nav-link {
        padding: 12px 10px;
        font-size: 0.9rem;
    }

    #left-menu .prizrak-submenu-toggle {
        flex-basis: 40px;
    }

    .content-slider {
        margin-bottom: 20px;
    }

    .NewsSummary {
        padding: 18px;
    }

    .callbackbox {
        padding: 40px 22px 24px;
    }

    footer {
        padding-top: 28px;
    }

    .sub-footer {
        margin-top: 24px;
    }
}

@media (max-width: 575.98px) {
    h1 {
        margin-bottom: 22px;
    }

    .main-content {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .tovar-short {
        margin-top: 20px;
    }

    .tovar-short .tovar-item {
        padding: 20px;
    }

    .tovar-image img {
        height: 190px;
    }

    .main-content img.height300 {
        height: 220px;
    }

    .main-content .center a[rel="lightbox"] {
        margin: 6px;
    }

    .product-tabs .nav-link {
        padding: 10px;
        font-size: 0.8rem;
    }

    #cookie_notification {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        padding: 18px;
    }

    #go-top {
        right: 14px;
        bottom: 14px;
    }
}


/* ----------------------------------------------------------
   21. Уменьшение анимации
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================
   Просмотр изображений через Bootstrap Modal
   ========================================================== */

/* Курсор у изображений, доступных для увеличения. */
a[rel~="lightbox"] {
    cursor: zoom-in;
}

/* Размер окна */
.lightbox-modal .modal-dialog {
    width: calc(100% - 32px);
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
}

/* Оформление */
.lightbox-modal .modal-content {
    overflow: hidden;

    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 14px;

    color: #fff;
    background: #17202b;

    box-shadow: 0 24px 80px rgb(0 0 0 / 35%);
}

.lightbox-modal .modal-header {
    align-items: flex-start;
    gap: 20px;

    padding: 16px 20px;

    border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.lightbox-modal .modal-title {
    margin: 0;

    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

.lightbox-modal .btn-close {
    flex-shrink: 0;
    margin-top: 0;
    opacity: 0.8;
}

.lightbox-modal .btn-close:hover {
    opacity: 1;
}

/* Область изображения */
.lightbox-modal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 160px;
    padding: 16px;

    background: #101720;
}

.lightbox-modal .lightbox-image {
    display: block;

    width: auto;
    max-width: 100%;

    height: auto;
    max-height: 75vh;
    max-height: calc(100dvh - 190px);

    margin: 0 auto;

    object-fit: contain;
}

/* Загрузка и ошибка */
.lightbox-modal .lightbox-loader {
    padding: 40px;
    text-align: center;
}

.lightbox-modal .lightbox-error {
    max-width: 440px;
    margin: 20px auto;

    color: #dbe3ed;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

/* Нижняя ссылка */
.lightbox-modal .modal-footer {
    justify-content: center;

    padding: 12px 20px;

    border-top: 1px solid rgb(255 255 255 / 10%);
}

.lightbox-modal .lightbox-original {
    color: #a9d9ff;
    font-size: 0.8rem;
    text-align: center;
}

.lightbox-modal .lightbox-original:hover {
    color: #fff;
}

/* Не даём другим display-правилам перебить hidden. */
.lightbox-modal [hidden] {
    display: none !important;
}

/* Мобильная версия */
@media (max-width: 575.98px) {
    .lightbox-modal .modal-dialog {
        width: calc(100% - 16px);
    }

    .lightbox-modal .modal-content {
        border-radius: 10px;
    }

    .lightbox-modal .modal-header {
        padding: 14px;
    }

    .lightbox-modal .modal-title {
        font-size: 0.8rem;
    }

    .lightbox-modal .modal-body {
        padding: 8px;
    }

    .lightbox-modal .modal-footer {
        padding: 10px 14px;
    }
}

/* Прайс-лист: название + две цены */
.price-list {
    --price-columns: minmax(0, 1fr) repeat(2, minmax(8rem, 19%));
    --price-border: var(--site-border, #e2e7ee);
    --price-text: var(--site-dark, #222b36);
    --price-accent: var(--site-primary-hover, #106eae);
    --price-tint: var(--site-primary-soft, #eaf5fc);
    --price-radius: var(--site-radius-sm, 8px);
}

.price-list .header-price {
    margin: 28px 0 12px;
    padding-bottom: 10px;
    /*border-bottom: 1px solid var(--price-border);*/
}

.price-list .header-price:first-child {
    margin-top: 0;
}

.price-list .header-price h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.35;
}

.price-list .price-tovar-header,
.price-list .price-tovar {
    display: grid;
    grid-template-columns: var(--price-columns);
    margin: 0 0 6px;
    border: 1px solid var(--price-border);
    border-radius: var(--price-radius);
}

.price-list .price-tovar-header {
    color: var(--price-text);
    background: var(--price-tint);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
}

.price-list .price-tovar {
    background: var(--site-surface, #fff);
}

.price-list .price-tovar:hover,
.price-list .price-tovar:focus-within {
    border-color: #bdd9ec;
    background: #fafdff;
}

.price-list .price-tovar-header > div,
.price-list .price-tovar > div {
    min-width: 0;
    padding: 12px 14px;
    align-content: center;
}

.price-list .price-title a {
    color: var(--price-text);
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.price-list .price-title a:hover,
.price-list .price-title a:focus-visible {
    color: var(--price-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.price-list .price-column-label,
.price-list .price-cell {
    border-left: 1px solid var(--price-border);
    text-align: center;
}

.price-list .price-cell {
    color: var(--price-text);
    font-size: 0.95rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.price-list .price-cell-install {
    color: var(--price-accent);
}

.price-list .price-empty {
    color: var(--site-muted, #6c7888);
    font-weight: 400;
}

@media (max-width: 575.98px) {
    .price-list {
        --price-columns: minmax(0, 1fr) repeat(2, minmax(4.4rem, 25%));
    }

    .price-list .price-tovar-header > div,
    .price-list .price-tovar > div {
        padding: 9px 6px;
    }

    .price-list .price-tovar-header,
    .price-list .price-tovar {
        font-size: 0.8rem;
    }

    .price-list .price-cell {
        font-size: 0.8rem;
    }
}

/* Рекламный баннер автозапуска */
.main-content .autostart-banner {
    display: block;
    margin: 0 0 clamp(16px, 2vw, 24px);
    border: 1px solid var(--site-dark, #222b36);
    border-radius: var(--site-radius, 14px);
    overflow: hidden;

    color: #fff;
    background: var(--site-dark-deep, #17202b);
    box-shadow: var(--site-shadow, 0 5px 20px rgb(20 39 65 / 5%));
    text-decoration: none;
}

.main-content .autostart-banner > .autostart-banner__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0; /* Скругление задаёт вся карточка, а не картинка. */
}

.autostart-banner__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    padding: 10px 16px;
    border-top: 1px solid rgb(255 255 255 / 12%);
}

.autostart-banner__caption {
    color: #c2ceda;
    font-size: 0.82rem;
    line-height: 1.4;
}

.autostart-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9bd8ff;
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1.4;
}

.autostart-banner:hover .autostart-banner__cta,
.autostart-banner:focus-visible .autostart-banner__cta {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.main-content .autostart-banner:focus-visible {
    outline: 3px solid var(--site-primary, #1786cf);
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .autostart-banner__footer {
        padding: 10px 12px;
    }
}

.is-filtered-out {
    display: none !important;
}


/* Баннер на странице об автозапуске */
.autostart-page-promo {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 24px;
}

.autostart-page-promo__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--site-radius, 14px);
    box-shadow: var(--site-shadow, 0 5px 20px rgb(20 39 65 / 5%));
}

/* Контакты под баннером */
.autostart-page-promo .tel-header-autostart {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 4px 12px;

    margin: 12px 0 0;
    padding: 12px 16px;
    border: 1px solid var(--site-border, #e2e7ee);
    border-radius: var(--site-radius-sm, 8px);

    color: var(--site-dark, #222b36);
    background: var(--site-primary-soft, #eaf5fc);
    text-align: center;
    line-height: 1.45;
}

.autostart-page-promo .tel-header-autostart a {
    color: var(--site-primary-hover, #106eae);
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.autostart-page-promo .tel-header-autostart a:hover,
.autostart-page-promo .tel-header-autostart a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Превью статей */
.article-previews .article-preview {
    --article-thumb-size: 104px;

    border-color: var(--site-border, #e2e7ee);
    border-radius: var(--site-radius, 14px);
    background: var(--site-surface, #fff);
    box-shadow: var(--site-shadow, 0 5px 20px rgb(20 39 65 / 5%));
}

.article-previews .card-body {
    min-width: 0;
    padding: clamp(16px, 2vw, 24px);
}

/* Картинка и заголовок начинаются на одной высоте. */
.article-preview__layout {
    display: grid;
    grid-template-columns: var(--article-thumb-size) minmax(0, 1fr);
    align-items: start;
    gap: 16px;
}

.article-previews .article-preview__image {
    display: block;
    width: var(--article-thumb-size);
    height: var(--article-thumb-size);
    object-fit: contain;
    border-radius: var(--site-radius-sm, 8px);
}

.article-preview__text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.article-previews .article-preview__title {
    margin: 0;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.35;
}

.article-preview__title a {
    color: var(--site-dark, #222b36);
}

.article-preview__title a:hover,
.article-preview__title a:focus-visible {
    color: var(--site-primary-hover, #106eae);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-previews .article-preview__description {
    margin: 8px 0 0;
    color: var(--site-muted, #6c7888);
    font-size: 0.875rem;
    line-height: 1.6;
}

@media (max-width: 575.98px) {
    .article-previews .article-preview {
        --article-thumb-size: 76px;
    }

    .article-preview__layout {
        gap: 12px;
    }
}


/* Страница товара: галерея и покупка */
.product-page .product-photo-carousel {
    overflow: hidden;
    border: 1px solid var(--site-border, #e2e7ee);
    border-radius: var(--site-radius, 14px);
    background: #fff;
}

.product-page .product-photo-zoom {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #fff;
    cursor: zoom-in;
}

.product-page .product-photo-zoom:focus-visible {
    outline-offset: -4px;
}

.product-page .product-gallery .product-photo-image {
    display: block;
    width: 100%;
    height: clamp(250px, 32vw, 440px);
    padding: 12px;
    object-fit: contain;
}

.product-page .product-photo-carousel .carousel-control-prev,
.product-page .product-photo-carousel .carousel-control-next {
    top: 50%;
    bottom: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #222b36;
    opacity: .85;
    transform: translateY(-50%);
}

.product-page .product-photo-carousel .carousel-control-prev { left: 10px; }
.product-page .product-photo-carousel .carousel-control-next { right: 10px; }

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

.product-page .product-photo-carousel .carousel-control-prev-icon,
.product-page .product-photo-carousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

.product-page .product-photo-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 4px 6px;
}

.product-page .product-photo-thumb {
    flex: 0 0 64px;
    height: 64px;
    padding: 4px;
    border: 1px solid var(--site-border, #e2e7ee);
    border-radius: 8px;
    background: #fff;
    cursor: zoom-in;
}

.product-page .product-photo-thumb[aria-current="true"] {
    border-color: var(--site-primary, #1786cf);
    box-shadow: inset 0 0 0 1px var(--site-primary, #1786cf);
}

.product-page .product-gallery .product-photo-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-page .product-photo-modal .modal-body {
    display: grid;
    place-items: center;
    background: #f3f5f8;
}

.product-page .product-photo-modal img {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-page .product-buy-panel,
.product-page .product-specs {
    padding: clamp(16px, 2vw, 24px);
    border: 1px solid var(--site-border, #e2e7ee);
    border-radius: var(--site-radius, 14px);
    background: #fff;
}

.product-page .product-buy-panel h2,
.product-page .product-specs h2 {
    margin: 0 0 16px;
    font-size: 1.2rem;
}

.product-page .product-buy-price {
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f3f5f8;
}

.product-page .product-buy-price--primary {
    background: var(--site-primary-soft, #eaf5fc);
}

.product-page .product-buy-price:last-child {
    margin-bottom: 0;
}

.product-page .product-buy-label {
    margin-bottom: 4px;
    color: #526174;
    font-size: .875rem;
}

.product-page .product-buy-value {
    color: var(--site-dark, #222b36);
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    font-weight: 750;
    line-height: 1.25;
}

.product-page .product-buy-status {
    font-weight: 650;
}

.product-page .product-buy-button {
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
}

.product-page .product-resource {
    margin-top: 12px;
    font-size: .9rem;
}