/* === ПЕРЕМЕННЫЕ И БАЗОВЫЕ СТИЛИ === */
:root {
    --color-primary: #0099cc;
    --color-primary-dark: #0077a3;
    --color-text: #333333;
    --color-text-light: #555555;
    --color-border: #e0e0e0;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.15);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.template-body {
    margin: 0;
    font-family: 'Segoe regular', system-ui, sans-serif;
    color: #1f1f1f;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ml-fonts 25.10.2026: убрано, шрифт Segoe заменён на Nunito (см. index.php, style id="ml-fonts") */
/* ml-fonts 25.10.2026: убрано, шрифт Segoe заменён на Nunito (см. index.php, style id="ml-fonts") */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* === ВЕРХНЯЯ СТРОКА === */
.header-top {
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.header-top__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.header-top__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 8px;
}

.header-top__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-top__logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

.header-top__slogan {
    color: var(--color-primary);
    font-size: 16px;
    font-style: italic;
    font-family: 'Segoe semibold', system-ui, sans-serif;
    line-height: 1.2;
    display: none;
}

.header-top__right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 800px;
}

/* ИКОНКА СЛЕВА ОТ ТЕКСТА */
.header-top__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 150px;
    padding: 4px 12px;
}

.header-top__contact--bordered {
    border-right: 1px solid var(--color-border);
}

.header-top__icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.header-top__icon1 {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.2s;
    flex-shrink: 0;
}


.header-top__icon:hover { opacity: 1; }

.header-top__icon1:hover { opacity: 1; }

.header-top__contact-text {
    color: var(--color-text-light);
    font-size: 13px;
    line-height: 1.3;
    display: block;
}

.header-top__phone {
    color: var(--color-text);
    font-size: 15px;
    font-family: 'Segoe semibold', system-ui, sans-serif;
}

@media (min-width: 1024px) {
    .header-top__inner {
        flex-direction: row;
        justify-content: space-between;
    }
    .header-top__left { width: 41.66%; }
    .header-top__slogan { display: block; }
    .header-top__right {
        width: 58.33%;
        justify-content: flex-end;
        gap: 0;
    }
}

/* === ВЕРХНЕЕ МЕНЮ === */
.header-menu {
    background: #fafafa;
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

.header-menu.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

body.has-sticky-menu { padding-top: 60px; }

.header-menu__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.header-menu__burger {
    display: block;
    padding: 8px;
    border-radius: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
}

.header-menu__burger:hover { background: #f0f0f0; }

.header-menu__burger-icon {
    width: 24px;
    height: 24px;
    color: var(--color-text);
}

/* === МЕНЮ JOOMLA === */
.mod-menu,
.mod-menu__sub {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mod-menu {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mod-menu > li {
    position: relative;
}

.mod-menu > li > a {
    display: flex;
    align-items: center;
    color: var(--color-text);
    font-size: 13px;
    font-family: 'Segoe semibold', system-ui, sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    padding: 18px 14px;
    transition: color 0.2s;
    white-space: nowrap;
}

.mod-menu > li > a:hover {
    color: var(--color-primary);
}

/* Стрелка для родительских пунктов */
.mod-menu > li.parent > a::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s;
}

.mod-menu > li.parent > a:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230099cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

/* Выпадающее меню */
.mod-menu__sub {
    position: absolute;
    left: 0;
    top: 100%;
    display: none;
    background: #ffffff;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 8px;
    min-width: 280px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 50;
}

.mod-menu__sub.is-open {
    display: block;
}

.mod-menu__sub li a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.mod-menu__sub li a:hover {
    background: #f5f5f5;
    color: var(--color-primary);
    padding-left: 24px;
}

/* Мобильное меню */
.mod-menu.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    z-index: 50;
    max-height: 80vh;
    overflow-y: auto;
}

.mod-menu.mobile-active > li {
    border-bottom: 1px solid var(--color-border);
    width: 100%;
}

.mod-menu.mobile-active > li > a {
    padding: 16px 24px;
    justify-content: space-between;
    width: 100%;
}

.mod-menu.mobile-active .mod-menu__sub {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: #f9fafb;
    max-height: none;
    padding: 0;
}

.mod-menu.mobile-active .mod-menu__sub.is-open {
    display: block;
}

.mod-menu.mobile-active .mod-menu__sub li a {
    padding: 12px 40px;
    color: var(--color-text-light);
    font-size: 14px;
}

.mod-menu.mobile-active > li.parent > a.is-active::after {
    transform: rotate(180deg);
}

/* === ФУТЕР === */
.footer-section {
    position: relative;
    background: var(--color-primary-dark);
    padding: 16px 0 8px;
    margin-top: auto;
    color: #ffffff;
}


.footer-inner-wrapper {
    position: relative;
    z-index: 10;
}

.footer-inner {
    background: transparent;
    box-shadow: none;
    padding: 24px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

/* Контакты */
.footer-contacts p { 
    margin: 0 0 12px; 
}

.footer-phone {
    font-family: 'Segoe semibold', system-ui, sans-serif;
    font-size: 1.25rem;
}

.footer-contacts a { 
    color: #ffffff; 
    text-decoration: underline;
}

.footer-contacts a:hover { 
    color: #ffe066;
}

.footer-notice strong { 
    color: #ffb703; /* тёплый акцент, чтобы предупреждение бросалось в глаза */
}

.footer-notice {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}


/* Реквизиты и логотип (вместо ВК) */
.footer-company {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирование по горизонтали */
    text-align: center;  /* Центрирование текста */
    gap: 16px;
}
.footer-widgets {
    display: flex;
    justify-content: center;
}

css
@media (max-width: 767px) {
    .footer-widgets {
        display: flex;
        justify-content: center;
    }
}

.footer-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
}

.footer-legal-info .company-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    font-family: 'Segoe semibold', system-ui, sans-serif;
}


.footer-legal-info .company-details {
    color: rgba(255, 255, 255, 0.75);
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-legal-info .copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

/* Карта */
.yandex-map {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
}

#footer-yandex-map {
    width: 100%;
    height: 250px;
}

/* Адаптив */
@media (min-width: 768px) {
    #footer-yandex-map { 
        height: 300px; 
    }
}

@media (min-width: 1024px) {
    .footer-inner { 
        padding: 40px; 
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 48px;
    }
}

/* === МАТЕРИАЛЫ / СТАТЬИ === */
.article-content {
    font-family: 'Segoe UI', 'Tahoma', sans-serif;
    line-height: 1.7;
    color: #000000;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* === ЗАГОЛОВКИ === */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6,
h1.font-russian-rail {
    text-transform: uppercase;
    color: #000000;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
    
    letter-spacing: 0.5px;
}

.article-content h1,
h1.font-russian-rail {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.article-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.4rem;
}

.article-content h3 {
    font-size: 1.5rem;
    color: var(--color-primary-dark);
}

.article-content h4 {
    font-size: 1.25rem;
    color: var(--color-text);
    font-weight: 600;
}

.article-content h5 {
    font-size: 1.125rem;
    color: var(--color-text);
    font-weight: 600;
}

.article-content h6 {
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 600;
}

/* === ТЕКСТ === */
.article-content p {
    margin-bottom: 1.25rem;
    color: #2d3748;
    line-height: 1.8;
}

.article-content a {
    color: #01b6e5;
    text-decoration: none;
    border-bottom: 1px dotted #01b6e5;
    transition: all 0.2s;
}

.article-content a:hover {
    color: #e50452;
    border-bottom-color: #e50452;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: #2d3748;
    line-height: 1.7;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

/* === ЦИТАТЫ === */
.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--color-primary);
    background: #f8fafc;
    font-style: italic;
    color: var(--color-text);
}

.article-content blockquote p {
    margin-bottom: 0;
}

/* === КОД === */
.article-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e50452;
}

.article-content pre {
    background: #2d3748;
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* === ТАБЛИЦЫ В МАТЕРИАЛАХ === */
.article-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', 'Tahoma', sans-serif;
    font-size: 14px;
    margin: 2rem 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.article-content th,
.article-content td {
    padding: 14px 18px;
    border: 1px solid #000000;
    border-width: 0 1px 1px 0;
    text-align: left;
    color: #000000;
}

.article-content th:first-child,
.article-content td:first-child {
    border-left: 0;
}

.article-content th {
    border-top: 0;
}

.article-content tr:last-child td {
    border-bottom: 0;
}

.article-content th {
    background: #67bc29;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.article-content tbody tr:nth-child(even) {
    background: #f8fafc;
}

.article-content tbody tr:hover {
    background: #e8f4f8;
    transition: background 0.2s ease;
}

@media (max-width: 767px) {
    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        width: 100%;
        margin: 1.5rem 0;
        border-radius: 10px;
    }
    .article-content th,
    .article-content td {
        white-space: nowrap;
        padding: 12px 14px;
        font-size: 13px;
    }
    .article-content th {
        font-size: 12px;
    }
    .article-content table::after {
        content: '⟷ Прокрутите таблицу ⟷';
        position: sticky;
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 6px 16px;
        background: rgba(45, 55, 72, 0.92);
        color: #ffffff;
        font-size: 11px;
        font-family: 'Segoe UI', sans-serif;
        border-radius: 20px;
        pointer-events: none;
        z-index: 3;
        white-space: nowrap;
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .article-content table {
        display: table !important;
        overflow-x: visible !important;
    }
    .article-content th,
    .article-content td {
        white-space: normal !important;
        padding: 14px 18px;
        font-size: 14px;
    }
    .article-content table::after {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .article-content h1,
    h1.font-russian-rail {
        font-size: 1.875rem !important;
    }
    .article-content h2 {
        font-size: 1.5rem !important;
    }
    .article-content h3 {
        font-size: 1.25rem !important;
    }
    .article-content h4 {
        font-size: 1.125rem !important;
    }
}

/* === КНОПКИ НАВИГАЦИИ В МАТЕРИАЛАХ === */
.article-content .pagination,
.article-content .pager,
.article-content .btn,
.article-content a.readmore {
    background: #67bc29;
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.article-content .pagination a:hover,
.article-content .pager a:hover,
.article-content .btn:hover,
.article-content a.readmore:hover {
    background: #e50452;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(229, 4, 82, 0.3);
}

.article-content .page-item.active .page-link,
.article-content .btn-primary {
    background: #67bc29;
    color: #ffffff;
    border-color: #67bc29;
}

/* === ГАЛЕРЕЯ ИЗОБРАЖЕНИЙ === */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.col {
    flex: 0 0 auto;
    padding: 0 8px;
    margin-bottom: 16px;
}

.row-cols-2 > .col { width: 50%; }
.row-cols-3 > .col { width: 33.333%; }
.row-cols-4 > .col { width: 25%; }
.row-cols-5 > .col { width: 20%; }

@media (min-width: 576px) {
    .row-cols-sm-3 > .col { width: 33.333%; }
}

@media (min-width: 768px) {
    .row-cols-md-4 > .col { width: 25%; }
}

@media (min-width: 992px) {
    .row-cols-lg-5 > .col { width: 50%; }
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}


/* === ОБЩИЕ СТИЛИ ЭКРАНА === */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe regular', system-ui, sans-serif;
    color: #1f1f1f;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === ОСНОВНОЙ КОНТЕЙНЕР КОНТЕНТА === */
.main-content {
    flex-grow: 1;
    padding: 32px 0 48px;
    background: #ffffff;
}

.main-content .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* === ЗАГОЛОВОК СТРАНИЦЫ === */
.page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.page-title {
    font-family: 'Arial Black', 'Impact', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    color: #000000;
    margin: 0;
    line-height: 1.3;
}

/* === ХЛЕБНЫЕ КРОШКИ === */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 0;
    margin-bottom: 24px;
    list-style: none;
    font-size: 14px;
    color: #666666;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '/';
    display: inline-block;
    padding: 0 8px;
    color: #999999;
}

.breadcrumb-item a {
    color: #0099cc;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #0077a3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #333333;
}

/* === АДАПТИВНОСТЬ КОНТЕНТА === */
@media (max-width: 767px) {
    .main-content {
        padding: 24px 0 32px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
}

@media (min-width: 768px) {
    .main-content {
        padding: 48px 0 64px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .main-content {
        padding: 64px 0 80px;
    }
}

/* === УТИЛИТЫ === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Стили для h3 внутри блока с классом Why */
.Why h3 {
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #f0f9ff 0%, #ffffff 100%);
    border-left: 4px solid var(--color-primary);
    padding: 8px 14px;
    border-radius: 0 6px 6px 0;
    margin-top: 0;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 153, 204, 0.1);
}

/* Адаптив для мобильных */
@media (max-width: 767px) {
    .Why h3 {
        font-size: 0.95rem !important;
        padding: 6px 10px;
    }
}
/* Центрирование только img по вертикали */
/* Вертикальное центрирование img внутри блока Why */

.ImgWhy {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ImgWhy img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
}
/* === КАРУСЕЛЬ МАСТЕРОВ SliderMaster === */

/* Фиксируем высоту слайда, чтобы верстка не прыгала */
.SliderMaster .carousel-item {
    min-height: 420px;
}

/* Растягиваем колонки на одинаковую высоту */
.SliderMaster .carousel-item .row {
    height: 100%;
    align-items: stretch;
}

.SliderMaster .carousel-item .col-md-4 {
    display: flex;
    height: 100%;
    margin-bottom: 20px;
}

/* Карточка мастера */
.SliderMaster .rspbld-item-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.SliderMaster .rspbld-item-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Контейнер изображения с фиксированной высотой */
/* Контейнер изображения */
.SliderMaster .rspbld-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto; /* Убираем фиксированную высоту */
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Само изображение */
.SliderMaster .rspbld-image img {
    width: 100%;
    height: auto; /* Автоматический расчет высоты */
    object-fit: contain; /* Показываем фото целиком без обрезки */
    object-position: center;
    display: block;
}

/* Контент карточки */
.SliderMaster .rspbld-item-content-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 20px;
    text-align: center;
}

/* Заголовок (имя мастера) */
.SliderMaster h3.rspbld-item-title {
    font-family: 'Segoe semibold', system-ui, sans-serif;
    font-size: 1.2rem;
    color: #0099cc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    line-height: 1.3;
    font-weight: 700;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* Центрирование одиночной карточки в последнем слайде */
.SliderMaster .carousel-item .row:has(> .col-md-4:only-child) {
    justify-content: center;
}

/* Индикаторы слайдов */
.SliderMaster .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0099cc;
    opacity: 0.4;
    border: none;
    margin: 0 4px;
}

.SliderMaster .carousel-indicators button.active {
    opacity: 1;
}

/* Стрелки навигации */
.SliderMaster .carousel-control-prev,
.SliderMaster .carousel-control-next {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 153, 204, 0.8);
    border-radius: 50%;
    opacity: 1;
    transition: background 0.2s;
}

.SliderMaster .carousel-control-prev {
    left: 10px;
}

.SliderMaster .carousel-control-next {
    right: 10px;
}

.SliderMaster .carousel-control-prev:hover,
.SliderMaster .carousel-control-next:hover {
    background: #0077a3;
}

.SliderMaster .carousel-control-prev i,
.SliderMaster .carousel-control-next i {
    color: #ffffff;
    font-size: 18px;
}

/* Адаптив */
@media (max-width: 767px) {
    .SliderMaster .carousel-item {
        min-height: 380px;
    }
    
    .SliderMaster .rspbld-image {
        height: 240px;
    }
    
    .SliderMaster h3.rspbld-item-title {
        font-size: 1rem;
        min-height: 44px;
    }
    
    .SliderMaster .carousel-control-prev,
    .SliderMaster .carousel-control-next {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .SliderMaster .carousel-item {
        min-height: 420px;
    }
    
    .SliderMaster .rspbld-image {
        height: 260px;
    }
}
.SliderMaster h3 {
    font-family: 'Segoe semibold', system-ui, sans-serif;
    font-size: 1.2rem;
    color: #0099cc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    line-height: 1.2;
    font-weight: 700;
}

@media (max-width: 767px) {
    .SliderMaster h3 {
        font-size: 1.5rem;
    }
}
/* Скругление для секции RowShop */
section.RowShop {
    border-radius: 16px 16px 0 0;
    overflow: hidden; /* Обрезает содержимое по скругленным углам */
}

/* Адаптив для мобильных */
@media (max-width: 767px) {
    section.RowShop {
        border-radius: 12px;
    }
}
.rs-row.RowShop,
section.RowShop,
.RowShop {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
/* Середина RowShop */
section.RowShop1 {
    border-radius: 0 0 0 0;
    overflow: hidden; /* Обрезает содержимое по скругленным углам */
}

/* Адаптив для мобильных */
@media (max-width: 767px) {
    section.RowShop1 {
        border-radius: 0;
    }
}
.rs-row.RowShop1,
section.RowShop1,
.RowShop1 {
    border-radius: 0 0 0 0;
    overflow: hidden;
}

/* Конец RowShop */
section.RowShop2 {
    border-radius: 0 0 16px 16px;
    overflow: hidden; /* Обрезает содержимое по скругленным углам */
}

/* Адаптив для мобильных */
@media (max-width: 767px) {
    section.RowShop2 {
        border-radius: 0;
    }
}
.rs-row.RowShop2,
section.RowShop2,
.RowShop2 {
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}




/* === КАРУСЕЛЬ ОТЗЫВОВ SliderOtz === */

/* Фиксируем высоту слайда */
.SliderOtz .carousel-item {
    min-height: 400px;
}

/* Колонки внутри слайда одинаковой высоты */
.SliderOtz .carousel-item .row {
    height: 100%;
    align-items: stretch;
}

.SliderOtz .carousel-item .col-md-6 {
    display: flex;
    height: 100%;
}

/* Карточки отзывов растягиваются на всю высоту */
.SliderOtz .rspbld-item-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.SliderOtz .rspbld-item-content-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Заголовок фиксированной высоты */
.SliderOtz .rspbld-item-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    min-height: 50px;
}

/* Контент отзыва с прокруткой если не помещается */
.SliderOtz .rspbld-item-content {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 250px;
    padding-right: 10px;
}

/* Стилизация скроллбара */
.SliderOtz .rspbld-item-content::-webkit-scrollbar {
    width: 6px;
}

.SliderOtz .rspbld-item-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.SliderOtz .rspbld-item-content::-webkit-scrollbar-thumb {
    background: #0099cc;
    border-radius: 3px;
}

/* Адаптив для мобильных */
@media (max-width: 767px) {
    .SliderOtz .carousel-item {
        min-height: 500px;
    }
    
    .SliderOtz .rspbld-item-content {
        max-height: 300px;
    }
}




/* === ГЛАВНЫЙ СЛАЙДЕР (mainslider) === */

/* 1. Фиксация высоты для предотвращения прыжков верстки */
.mainslider .carousel-inner {
    min-height: 500px;
}

.mainslider .carousel-item {
    min-height: 500px;
    /* УБРАЛИ display: flex — он ломает скрытие слайдов Bootstrap */
}

/* 2. Контейнер слайда (Изображение + Текст) — flex применяем ЗДЕСЬ */
.mainslider .rspbld-item-container {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 100%;
    min-height: 500px;
    padding: 0 180px; /* Отступы слева и справа, чтобы не заходить на стрелки */
}

/* 3. Изображение и градиент снизу */
.mainslider .rspbld-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0; /* Запрещаем сжатие блока с фото */
}


/* Изображение с эффектом растворения снизу */
.mainslider .rspbld-image img {
    display: block;
    width: 100%;
    height: auto;
    
    /* Растворение занимает только нижние 15% изображения */
    -webkit-mask-image: linear-gradient(to bottom, #000000 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000000 85%, transparent 100%);
}

.mainslider .rspbld-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* 4. Текстовый блок */
/* Текстовый блок примагничен к правому краю */
.mainslider .rspbld-item-content-container {
    flex-grow: 1;
    margin-left: auto;
    text-align: right;
    max-width: 50%; /* Ограничиваем ширину, чтобы текст не был слишком длинным */
}

.mainslider h3.rspbld-item-title {
    font-family: 'Segoe semibold', system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.mainslider .rspbld-item-content p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #333333;
    margin: 0 0 24px 0;
}


/* 6. Навигация (Стрелки и индикаторы) */
.mainslider .carousel-control-prev,
.mainslider .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 1;
    transition: background 0.2s;
}

.mainslider .carousel-control-prev { left: 20px; }
.mainslider .carousel-control-next { right: 20px; }

.mainslider .carousel-control-prev:hover,
.mainslider .carousel-control-next:hover {
    background: #ffffff;
}

.mainslider .carousel-control-prev i,
.mainslider .carousel-control-next i {
    color: #0099cc;
    font-size: 20px;
}

.mainslider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0099cc;
    opacity: 0.3;
    border: none;
    margin: 0 5px;
}

.mainslider .carousel-indicators button.active {
    opacity: 1;
}

/* === АДАПТИВНОСТЬ (МОБИЛЬНЫЕ УСТРОЙСТВА) === */
@media (max-width: 767px) {
    /* Скрываем изображения */
    .mainslider .rspbld-image {
        display: none !important;
    }

    /* Фиксируем высоту слайда для вертикального центрирования */
    .mainslider .carousel-inner,
    .mainslider .carousel-item {
        height: 350px !important;
        min-height: 350px !important;
    }

    /* Главный контейнер: центрирует содержимое по обеим осям */
    .mainslider .rspbld-item-container {
        display: flex !important;
        align-items: center !important; /* Вертикаль */
        justify-content: center !important; /* Горизонталь */
        height: 100% !important;
        padding: 20px;
    }

    /* Текстовый блок */
    .mainslider .rspbld-item-content-container {
        text-align: center !important;
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
    }

    /* Принудительное выравнивание текста и кнопки */
    .mainslider h3.rspbld-item-title,
    .mainslider .rspbld-item-content p {
        text-align: center !important;
    }

    /* Адаптивные шрифты */
    .mainslider h3.rspbld-item-title {
        font-size: 1.75rem;
    }
    .mainslider .rspbld-item-content p {
        font-size: 1rem;
    }
}

.box3 img {
    display: block;
    margin: 0 auto;
    margin-top: 2.5rem;
}

.TitleH2 h2 {
    margin-top:0.5rem;
}
.ButNapr {
    display: table; /* Автоматически подстраивается под ширину текста */
    margin: 0 auto;
}


/* === БЛОК МАСТЕРА (BlockMaster) === */

/* === БЛОКИ МАСТЕРОВ (BlockMaster) === */

.BlockMaster {
    padding: 20px;
    min-height: 140px; /* Фиксируем минимальную высоту для всех блоков */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Заголовок с синим цветом и фиксированной высотой */
.BlockMaster h2.rspbld-title,
.BlockMaster h2 {
    font-family: 'Segoe semibold', system-ui, sans-serif;
    font-size: 1.5rem;
    color: #0099cc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    line-height: 1.3;
    font-weight: 700;
    min-height: 60px; /* Фиксированная высота заголовка для выравнивания */
    display: flex;
    border-bottom: 0px !important;
    align-items: center; /* Вертикальное центрирование текста */
    justify-content: center; /* Горизонтальное центрирование */
}
.BlockMaster a {
    text-decoration: none !important;
    border-bottom: 0px !important;
}
/* Кнопка всегда внизу */
.BlockMaster .rspbld-button {
    display: inline-block;
    color: #0099cc;
    font-family: 'Segoe semibold', system-ui, sans-serif;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    text-align: center;
    width: 100%;
}

.BlockMaster .rspbld-button:hover {
    color: #0077a3;
    transform: translateX(4px);
}

/* Адаптив для мобильных */
@media (max-width: 767px) {
    .BlockMaster {
        min-height: 120px;
        padding: 15px;
    }
    
    .BlockMaster h2.rspbld-title,
    .BlockMaster h2 {
        font-size: 1.25rem;
        min-height: 50px;
    }
}






/* === ПОЗИЦИЯ ФИЛЬТРА === */
.zecenz-filter-position {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    margin-bottom: 32px;
}

/* Стили для полей фильтра JlContentFieldsFilter внутри этой позиции */
.zecenz-filter-position .jl-content-fields-filter,
.zecenz-filter-position .com-content__filter {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.zecenz-filter-position select,
.zecenz-filter-position input[type="text"] {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
}

.zecenz-filter-position .btn-primary {
    background: var(--color-primary);
    color: #fff !important;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
}

/* === СПИСОК МАТЕРИАЛОВ === */
.zecenz-article-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zecenz-article-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.zecenz-article-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(0, 153, 204, 0.1);
    transform: translateY(-2px);
}

.zecenz-article-item.is-unpublished {
    opacity: 0.6;
    background: #f9f9f9;
}

/* Нумерация */
.zecenz-item-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe semibold', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-right: 24px;
}

/* Контент */
.zecenz-item-content {
    flex-grow: 1;
    min-width: 0; /* Предотвращает переполнение flex-контейнера */
}

.zecenz-item-title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    font-family: 'Segoe semibold', system-ui, sans-serif;
    line-height: 1.3;
}

.zecenz-item-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.zecenz-article-item:hover .zecenz-item-title a {
    color: var(--color-primary);
}

/* Мета-данные */
.zecenz-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--color-text-light);
}

.zecenz-item-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.zecenz-item-meta svg {
    opacity: 0.6;
}

/* Стрелка справа */
.zecenz-item-arrow {
    flex-shrink: 0;
    margin-left: 16px;
    color: var(--color-border);
    transition: all 0.3s ease;
}

.zecenz-article-item:hover .zecenz-item-arrow {
    color: var(--color-primary);
    transform: translateX(4px);
}

/* === ПАГИНАЦИЯ === */
.zecenz-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.zecenz-pagination .pagination {
    gap: 8px;
}

.zecenz-pagination .page-link {
    border-radius: 8px !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text) !important;
    transition: all 0.2s;
}

.zecenz-pagination .page-item.active .page-link {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: #ffffff !important;
}

.zecenz-pagination .page-link:hover {
    background: #f0f9ff !important;
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 767px) {
    .zecenz-article-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .zecenz-item-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .zecenz-item-title {
        font-size: 1.1rem;
    }

    .zecenz-item-arrow {
        display: none; /* Скрываем стрелку на мобильных для экономии места */
    }
    
    .zecenz-filter-position .com-content__filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .zecenz-filter-position select,
    .zecenz-filter-position input[type="text"],
    .zecenz-filter-position .btn {
        width: 100%;
    }
}


/* === ДЕСКТОПНАЯ ВЕРСИЯ ШАПКИ === */
@media (min-width: 1024px) {
    /* Скрываем бургер-кнопку */
    .header-menu__burger {
        display: none;
    }
    
    /* Показываем обычное меню */
    .mod-menu {
        display: flex;
    }
    
    /* Возвращаем slogan в верхней строке */
    .header-top__slogan {
        display: block;
    }
    
    /* Выстраиваем верхнюю строку в ряд */
    .header-top__inner {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .header-top__left {
        width: 41.66%;
    }
    
    .header-top__right {
        width: 58.33%;
        justify-content: flex-end;
        gap: 0;
    }
    
    /* Увеличиваем padding футера на десктопе */
    .footer-inner {
        padding: 14px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 48px;
    }
}



@media (max-width: 767px) {
    /* Превращаем стандартный ряд в горизонтальный свайпер */
    .SliderMaster .carousel-item .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 15px;
        margin: 0 -15px; /* Компенсация отступов */
        scrollbar-width: none; /* Скрытие скроллбара для Firefox */
    }
    
    /* Скрытие скроллбара для Chrome/Safari */
    .SliderMaster .carousel-item .row::-webkit-scrollbar {
        display: none;
    }

    /* Каждый элемент занимает 100% ширины экрана */
    .SliderMaster .carousel-item .col-md-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        scroll-snap-align: center; /* Центрирование карточки при свайпе */
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* Скрываем стандартные стрелки, так как управление осуществляется свайпом */
    .SliderMaster .carousel-control-prev,
    .SliderMaster .carousel-control-next {
        display: none !important;
    }
}

.ButtonNotReaction,
.ButtonNotReaction:hover,
.ButtonNotReaction:focus,
.ButtonNotReaction:active {
    background-color: #04b6e4 !important;
    border-color: #04b6e4 !important;
}

/* стили слайдера фотогалереи */
.photogallery .rspbld-image {
    width: 50% !important;
    max-width: 50% !important;
    height: 400px !important;
    margin: 0 auto;
    background: #f5f5f5;
}

.photogallery .rspbld-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.photogallery .carousel-indicators {
    bottom: -40px !important;
}

/* Адаптация для планшетов */
@media (max-width: 991px) {
    .photogallery .rspbld-image {
        width: 70% !important;
        max-width: 70% !important;
        height: 350px !important;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 767px) {
    .photogallery .rspbld-image {
        width: 95% !important;
        max-width: 95% !important;
        height: 300px !important;
    }
    
    .photogallery .carousel-indicators {
        bottom: -35px !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .photogallery .rspbld-image {
        width: 100% !important;
        max-width: 100% !important;
        height: 250px !important;
    }
    
    .photogallery .carousel-indicators {
        bottom: -30px !important;
    }
}

.photogallery .rspbld-title {
    text-align: center;
    margin: 0 auto 20px;
}


/* === КНОПКА "ОСТАВИТЬ ЗАЯВКУ" В ШАПКЕ === */
.btn-callback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: #ffffff;
    font-family: 'Segoe semibold', system-ui, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 6px;
    border: 1px solid var(--color-primary);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-callback:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 153, 204, 0.3);
}

.btn-callback:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 153, 204, 0.2);
}

/* Адаптация для мобильных устройств */
@media (max-width: 767px) {
    .btn-callback {
        font-size: 13px;
        padding: 8px 16px;
        width: 100%; /* На мобильных кнопка растягивается на всю ширину, если находится в мобильном меню */
        max-width: 280px;
    }
}

/* === ИСПРАВЛЕНИЕ ПЕРЕНОСА ЭЛЕМЕНТОВ В ШАПКЕ === */

/* 1. Жесткий запрет переноса строк в контейнере навигации */
.header-menu__nav {
    flex-wrap: nowrap !important;
    gap: 16px;
}

/* 2. Уплотнение списка меню */
.mod-menu {
    gap: 2px !important; /* Уменьшение расстояния между пунктами (было 4px) */
    flex-wrap: nowrap;
}

.mod-menu > li > a {
    padding: 16px 10px !important; /* Уменьшение внутренних отступов (было 18px 14px) */
    font-size: 12px !important;    /* Уменьшение шрифта (было 13px) */
}

/* 3. Фиксация кнопки и защита от сжатия */
.btn-callback {
    flex-shrink: 0 !important;     /* Запрет сжатия кнопки при нехватке места */
    padding: 8px 16px !important;  /* Уменьшение отступов (было 10px 24px) */
    font-size: 13px !important;    /* Уменьшение шрифта (было 14px) */
    margin-left: 8px;              /* Гарантированный отступ от меню */
}



/* Скругление для секции RowLead */
section.RowLead {
    border-radius: 16px 16px 16px 16px;
    overflow: hidden; /* Обрезает содержимое по скругленным углам */
}

/* Адаптив для мобильных */
@media (max-width: 767px) {
    section.RowLead {
        border-radius: 12px;
    }
}
.rs-row.RowLead,
section.RowLead,
.RowShop {
    border-radius: 12px 12px 12px 12px;
    overflow: hidden;
}

.LeadText {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
}



/* ============================================================
   ТАБЫ С ЦЕНАМИ — .rspbld-tab.tabprice
   Стиль согласован с общей палитрой сайта (style92.css):
   --color-primary: #0099cc, --color-primary-dark: #0077a3,
   акцент таблиц #67bc29, шрифт Segoe, скругления 12px.
   ============================================================ */

.rspbld-tab.tabprice {
    font-family: 'Segoe regular', system-ui, sans-serif;
    margin: 24px 0;
}

/* --- Список вкладок (убираем точки-маркеры) --- */
.rspbld-tab.tabprice .nav-tabs {
    list-style: none;           /* убирает точки перед словами */
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 -1px 0;
    padding: 0;
    border-bottom: 2px solid var(--color-border, #e0e0e0);
}

.rspbld-tab.tabprice .nav-item {
    list-style: none;            /* на случай, если li стилизуется отдельно */
    margin: 0;
}

.rspbld-tab.tabprice .nav-link {
    display: inline-block;
    padding: 12px 22px;
    font-family: 'Segoe semibold', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--color-text-light, #555555);
    text-decoration: none;
    background: #f7f9fa;
    border: 1px solid var(--color-border, #e0e0e0);
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.rspbld-tab.tabprice .nav-link:hover {
    color: var(--color-primary, #0099cc);
    background: #f0f9ff;
}

.rspbld-tab.tabprice .nav-link.active {
    color: #ffffff;
    background: var(--color-primary, #0099cc);
    border-color: var(--color-primary, #0099cc);
    box-shadow: 0 -2px 8px rgba(0, 153, 204, 0.15);
}

/* --- Контент вкладок --- */
.rspbld-tab.tabprice .tab-content {
    background: #ffffff;
    border: 1px solid var(--color-border, #e0e0e0);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 20px;
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(0,0,0,0.08));
}

/* --- Таблица цен (в духе .article-content table) --- */
.rspbld-tab.tabprice table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.rspbld-tab.tabprice td {
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-width: 0 1px 1px 0;
    text-align: left;
    color: #1f1f1f;
    vertical-align: middle;
}

.rspbld-tab.tabprice td:first-child {
    border-left: 0;
}

.rspbld-tab.tabprice tr:last-child td {
    border-bottom: 0;
}

.rspbld-tab.tabprice td p {
    margin: 0;
}

/* Первая строка таблицы = шапка (в исходной верстке это просто <td>, не <th>) */
.rspbld-tab.tabprice tbody tr:first-child td {
    background: #67bc29;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border-top: 0;
}

.rspbld-tab.tabprice tbody tr:not(:first-child):nth-child(even) {
    background: #f8fafc;
}

.rspbld-tab.tabprice tbody tr:not(:first-child):hover {
    background: #e8f4f8;
    transition: background 0.2s ease;
}

/* Колонка "Стоимость" — выделим цену */
.rspbld-tab.tabprice tbody tr:not(:first-child) td:last-child {
    font-family: 'Segoe semibold', system-ui, sans-serif;
    color: var(--color-primary-dark, #0077a3);
    white-space: nowrap;
}

/* --- Адаптив --- */
@media (max-width: 767px) {
    .rspbld-tab.tabprice .nav-link {
        flex: 1 1 auto;
        text-align: center;
        padding: 10px 12px;
        font-size: 13px;
    }

    .rspbld-tab.tabprice .tab-content {
        padding: 12px;
        border-radius: 0 0 10px 10px;
    }

    .rspbld-tab.tabprice table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rspbld-tab.tabprice td {
        white-space: nowrap;
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ===== Перенесено из модуля 182 (26.10.2026) ===== */
/* магазин: разделы «Наши разработки» по два в ряд */.jshop_list_category>.row-fluid{display:grid!important;grid-template-columns:minmax(0,1fr);gap:16px;grid-auto-rows:1fr;width:auto!important}.jshop_list_category .jshop_categ{width:auto!important;max-width:none!important;margin:0!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:18px;padding:18px 20px!important;text-align:left!important}.jshop_list_category .jshop_categ .image{width:auto!important;height:auto!important;background:none!important;padding:0!important;margin:0!important;flex:0 0 auto}.jshop_list_category .jshop_categ .image a{display:block}.jshop_list_category .jshop_categ .image img{width:68px!important;height:68px!important;max-width:none;border-radius:50%;display:block}.jshop_list_category .jshop_categ .category_info{flex:1 1 auto;min-width:0;margin:0!important;padding:0!important}.jshop_list_category .jshop_categ .category_name{text-align:left!important;margin:0!important;height:auto!important}.jshop_list_category .jshop_categ .category_short_description:empty{display:none}@media (min-width:900px){.jshop_list_category>.row-fluid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.jshop_list_category .jshop_categ{padding:28px 32px!important;gap:28px}.jshop_list_category .jshop_categ .image img{width:104px!important;height:104px!important}}
/* ml-melochi: пустой «Код товара» не показываем; длинное ФИО мастера на узком телефоне */
.jshop_code_prod:has(#product_code:empty){display:none}
@media (max-width:400px){body .master-hero h1.master-hero__name,body h1.master-hero__name{font-size:24px!important;letter-spacing:0!important;overflow-wrap:break-word}}
/* ml-menu-1024: на экранах 1024–1120 длинный пункт меню переносится, чтобы кнопка «глаз» не вылезала за край */@media (min-width:1024px) and (max-width:1120px){.header-menu__nav>ul>li:nth-child(2)>a,.header-menu__nav>ul>li:nth-child(2)>span{white-space:normal!important;max-width:150px;line-height:1.25;text-align:center}}
/* ml-banner-mob: баннер главной на узких телефонах — текст сжимается по ширине, кнопка переносится */@media (max-width:900px){.mlh{grid-template-columns:minmax(0,1fr)!important}.mlh>.mlh__slide{min-width:0!important;grid-template-columns:minmax(0,1fr)!important}.mlh>.mlh__slide>*{min-width:0}.mlh .mlh__btn{white-space:normal!important;text-transform:none!important;max-width:100%;text-align:center}}


/* ml-knopki 26.10.2026: волна при нажатии на кнопки (элемент .ml-ink добавляет template3.js) и блик на «Оставить заявку» в шапке */
.ml-ink{position:absolute;border-radius:50%;background:currentColor;opacity:.3;transform:scale(0);animation:ml-ink .6s ease-out forwards;pointer-events:none}
@keyframes ml-ink{to{transform:scale(2.4);opacity:0}}
.ml-eye .ml-ink{background:#0099cc}
a.btn-callback.cf-popup:not(.mlh__btn){position:relative;overflow:hidden}
a.btn-callback.cf-popup:not(.mlh__btn)::after{content:"";position:absolute;top:-50%;bottom:-50%;left:-60%;width:40px;background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.55));transform:skewX(-22deg);animation:ml-blick 3.5s ease-in-out infinite;pointer-events:none}
@keyframes ml-blick{0%,55%{left:-60%}85%,100%{left:130%}}

/* ml-titlegap 27.10.2026: отступ между цветной плашкой (title.png) и заголовком раздела */
.rspbld-image img[src*="/images/title.png"]{margin-bottom:12px}
@media (max-width:767px){.rspbld-image img[src*="/images/title.png"]{width:64px!important;max-width:none!important;margin-bottom:10px}}
