/* assets/main/css/custom.css */

/* ============================================================
   CSS-переменные навигации
   Совпадают с переменными шаблона ivecom — менять здесь.
   ============================================================ */
:root {
    --nav-font: "Poppins", sans-serif;
    --nav-color: #999999;
    --nav-hover-color: #000000;
    --nav-mobile-background-color: #ffffff;
    --nav-dropdown-background-color: #ffffff;
    --nav-dropdown-color: #666666;
    --nav-dropdown-hover-color: #313131;
    --heading-color: #000000;
    --accent-color: #313131;
    --hover-color: #a31349;
    --contrast-color: #ffffff;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    transition: all 0.5s;
    z-index: 1030; /* Bootstrap fixed-top использует 1030 — совпадаем */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.header .logo {
    line-height: 1;
}

.header .logo img {
    max-height: 32px;
    margin-right: 8px;
}

.header .logo h1,
.header .logo .sitename {
    font-size: 30px;
    margin: 0;
    font-weight: 400;
    color: var(--heading-color);
    text-decoration: none;
}

/* Прокрученный хедер — лёгкое стекло */
.scrolled .header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.scrolled .header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
    z-index: -1;
}

/* ============================================================
   DESKTOP НАВИГАЦИЯ (≥ 1200px)
   ============================================================ */
@media (min-width: 1200px) {
    .navmenu {
        padding: 0;
    }

    .navmenu ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center;
    }

    .navmenu li {
        position: relative;
    }

    /* Ссылки верхнего уровня */
    .navmenu a,
    .navmenu a:focus {
        color: var(--nav-color);
        padding: 18px 15px;
        font-size: 14px;
        font-family: var(--nav-font);
        font-weight: 400;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: color 0.3s;
        text-decoration: none;
    }

    /* Иконка стрелки */
    .navmenu a i,
    .navmenu a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        transition: transform 0.3s;
    }

    /* Последний пункт без отступа справа */
    .navmenu li:last-child a {
        padding-right: 0;
    }

    /* Hover и активный */
    .navmenu .active,
    .navmenu .active:focus,
    .navmenu li:hover > a {
        color: var(--nav-hover-color);
    }

    /* Подчёркивание растёт слева направо — только для верхнего уровня */
    .navmenu > ul > li > a {
        position: relative;
    }

    .navmenu > ul > li > a::after {
        content: "";
        position: absolute;
        bottom: 12px;
        left: 15px;
        right: 15px;
        height: 1px;
        background: var(--nav-hover-color);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s ease;
    }

    .navmenu > ul > li:hover > a::after,
    .navmenu > ul > li > a.active::after {
        transform: scaleX(1);
    }

    /* ── Выпадающее меню 1-го уровня ── */
    .navmenu .dropdown ul {
        margin: 0;
        padding: 10px 0;
        background: var(--nav-dropdown-background-color);
        display: block;
        position: absolute;
        visibility: hidden;
        left: 0; /* вплотную под родительским li, без сдвига */
        top: 130%;
        opacity: 0;
        transition: opacity 0.3s, top 0.3s;
        border-radius: 4px;
        z-index: 1000; /* выше .main и любого контента страницы */
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    }

    .navmenu .dropdown ul li {
        min-width: 200px;
    }

    .navmenu .dropdown ul a {
        padding: 10px 20px;
        font-size: 15px;
        text-transform: none;
        color: var(--nav-dropdown-color);
        white-space: nowrap;
        transition: padding-left 0.2s ease, color 0.2s ease;
    }

    .navmenu .dropdown ul a i {
        font-size: 12px;
    }

    .navmenu .dropdown ul .active:hover,
    .navmenu .dropdown ul a:hover,
    .navmenu .dropdown ul li:hover > a {
        color: var(--nav-dropdown-hover-color);
        padding-left: 26px; /* лёгкий сдвиг вправо при ховере */
        transition: padding-left 0.2s ease, color 0.2s ease;
    }

    /* Показываем дропдаун при ховере */
    .navmenu .dropdown:hover > ul {
        opacity: 1;
        top: 100%;
        visibility: visible;
    }

    /* ── Вложенное меню (2-й уровень) ── */
    /* right: 100% — встаёт вплотную слева от родительского ul, зазора нет */
    .navmenu .dropdown .dropdown ul {
        top: 0;
        left: auto;
        right: 100%;
        visibility: hidden;
    }

    .navmenu .dropdown .dropdown:hover > ul {
        opacity: 1;
        top: 0;
        left: auto;
        right: 100%;
        visibility: visible;
    }
}

/* ============================================================
   МОБИЛЬНАЯ НАВИГАЦИЯ (< 1200px)
   ============================================================ */
@media (max-width: 1199px) {
    /* Кнопка-бургер */
    .mobile-nav-toggle {
        color: var(--nav-color);
        font-size: 28px;
        line-height: 0;
        margin-right: 10px;
        cursor: pointer;
        transition: color 0.3s;
    }

    .navmenu {
        padding: 0;
        z-index: 9997;
    }

    /* Скрытый список — раскрывается при .mobile-nav-active */
    .navmenu ul {
        display: none;
        list-style: none;
        position: absolute;
        inset: 60px 20px 20px 20px;
        padding: 10px 0;
        margin: 0;
        border-radius: 6px;
        background-color: var(--nav-mobile-background-color);
        overflow-y: auto;
        transition: all 0.3s;
        z-index: 9998;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    }

    /* Все ссылки мобильного меню */
    .navmenu a,
    .navmenu a:focus {
        color: var(--nav-dropdown-color);
        padding: 10px 20px;
        font-family: var(--nav-font);
        font-size: 17px;
        font-weight: 300;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: color 0.3s;
        text-decoration: none;
    }

    /* Иконка стрелки — круглая кнопка */
    .navmenu a i,
    .navmenu a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s;
        background-color: rgba(49, 49, 49, 0.08);
        flex-shrink: 0;
    }

    .navmenu a i:hover,
    .navmenu a:focus i:hover {
        background-color: var(--hover-color);
        color: var(--contrast-color);
    }

    .navmenu .active,
    .navmenu .active:focus,
    .navmenu a:hover {
        color: var(--nav-dropdown-hover-color);
    }

    /* Активная стрелка — повёрнута */
    .navmenu .active i,
    .navmenu .active:focus i {
        background-color: var(--accent-color);
        color: var(--contrast-color);
        transform: rotate(180deg);
    }

    /* Вложенные списки в мобильном */
    .navmenu .dropdown ul {
        position: static;
        display: none;
        z-index: 99;
        padding: 10px 0;
        margin: 10px 20px;
        background-color: var(--nav-dropdown-background-color);
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: none;
        transition: all 0.5s ease-in-out;
    }

    .navmenu .dropdown ul ul {
        background-color: rgba(0, 0, 0, 0.03);
    }

    /* Раскрытое подменю */
    .navmenu .dropdown > .dropdown-active {
        display: block;
        background-color: rgba(0, 0, 0, 0.02);
    }
}

/* ============================================================
   МОБИЛЬНОЕ МЕНЮ — АКТИВНОЕ СОСТОЯНИЕ
   (класс mobile-nav-active вешается на <body> через main.js)
   ============================================================ */
.mobile-nav-active {
    overflow: hidden;
}

.mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
}

/* Затемнённый оверлей */
.mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: all 0.3s;
}

/* Показываем список */
.mobile-nav-active .navmenu > ul {
    display: block;
}

/* ============================================================
   ОТСТУП КОНТЕНТА ПОД FIXED HEADER
   ============================================================ */
.breadcrumbs-area {
    padding-top: 5.5em;
}

/* ============================================================
   HIDE-ON-SCROLL — добавляется main.js
   ============================================================ */
.header {
    transition: transform 0.35s ease, background-color 0.5s;
}

.header--hidden {
    transform: translateY(-100%);
}

/* ============================================================
   ОТСТУП КОНТЕНТА ПОД FIXED HEADER
   --header-height проставляется через JS (main.js).
   Фолбэк 70px на случай если JS ещё не отработал.
   ============================================================ */
.main {
    padding-top: var(--header-height, 70px);
}

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

/* ── Основа ── */
.site-footer {
    background: linear-gradient(160deg, #1a2130 0%, #1f2937 60%, #16202e 100%);
    color: rgba(255, 255, 255, 0.75);
    margin-top: auto;
    position: relative;
}

/* Тонкая акцентная линия сверху */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c8175a 40%, #aac0fa 70%, transparent);
    opacity: 0.6;
}

.footer-main {
    padding: 4rem 0 3rem;
}

/* ── Виджет ── */
.footer-widget {
    margin-bottom: 2rem;
}

.footer-widget__title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Линия под заголовком виджета */
.footer-widget__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: #c8175a;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-widget:hover .footer-widget__title::after {
    width: 56px;
}

/* ── О компании ── */
.footer-widget__tagline {
    font-size: 1rem;
    font-weight: 600;
    color: #aac0fa;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.footer-widget__description {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

/* ── Соцсети ── */
.footer-social {
    margin-top: 1.5rem;
}

.footer-social__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.footer-social__links {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease;
}

.footer-social__link:hover {
    background: #c8175a;
    border-color: #c8175a;
    color: #fff;
    transform: translateY(-3px);
}

/* ── Контакты ── */
.footer-contact-item {
    display: flex;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    align-items: flex-start;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact-item__icon {
    flex-shrink: 0;
    font-size: 1rem;
    color: #aac0fa;
    margin-top: 0.2rem;
    width: 20px;
    text-align: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-contact-item:hover .footer-contact-item__icon {
    color: #c8175a;
    transform: scale(1.15);
}

.footer-contact-item__content strong {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}

.footer-contact-item__content p,
.footer-contact-item__content span {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

.footer-contact-item__content a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact-item__content a:hover {
    color: #aac0fa;
}

/* ── Мессенджеры ── */
.footer-messengers {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.footer-messenger-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, transform 0.2s ease;
}

.footer-messenger-link i {
    font-size: 1rem;
    color: #aac0fa;
    transition: color 0.2s ease;
}

.footer-messenger-link:hover {
    background: rgba(170, 192, 250, 0.12);
    border-color: rgba(170, 192, 250, 0.3);
    color: #fff;
    transform: translateX(4px);
}

.footer-messenger-link:hover i {
    color: #fff;
}

/* ── Режим работы ── */
.footer-schedule__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-schedule__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.875rem;
    transition: background 0.15s ease;
}

.footer-schedule__item:last-child {
    border-bottom: none;
}

.footer-schedule__item--today {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    margin: 0 -0.625rem;
    background: rgba(170, 192, 250, 0.08);
    border-radius: 4px;
    border-bottom-color: transparent;
}

.footer-schedule__item--today .footer-schedule__day {
    color: #aac0fa;
    font-weight: 700;
}

.footer-schedule__item--today .footer-schedule__time {
    color: #fff;
    font-weight: 600;
}

.footer-schedule__day {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.footer-schedule__time {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}

/* ── Быстрые ссылки ── */
.footer-links__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links__list li {
    margin-bottom: 0.5rem;
}

.footer-links__list li:last-child {
    margin-bottom: 0;
}

.footer-links__list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, gap 0.2s ease;
}

.footer-links__list a i {
    font-size: 0.7rem;
    color: #c8175a;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-links__list a:hover {
    color: #fff;
    gap: 0.75rem; /* иконка «едет» от текста */
}

.footer-links__list a:hover i {
    transform: translateX(3px);
    color: #aac0fa;
}

/* ── Кнопка «Наверх» ── */
#scroll-top,
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 42px;
    height: 42px;
    background: #c8175a;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease,
    visibility 0.3s ease, background 0.2s ease;
    z-index: 900;
    box-shadow: 0 4px 16px rgba(200, 23, 90, 0.35);
}

#scroll-top:hover,
.scroll-top:hover {
    background: #a31349;
    transform: translateY(-2px);
}

/* Показываем после 200px скролла — JS добавляет .active */
#scroll-top.active,
.scroll-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ── Нижняя полоса ── */
.footer-bottom {
    background: rgba(0, 0, 0, 0.25);
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

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

.footer-copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: #aac0fa;
}

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .footer-legal {
        justify-content: center;
        margin-top: 0.75rem;
    }
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.825rem;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #aac0fa;
}

/* ── Адаптив ── */
@media (max-width: 991px) {
    .footer-main {
        padding: 3rem 0 2rem;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-bottom .row > div:first-child {
        text-align: center;
    }

    .footer-widget__title {
        font-size: 0.9rem;
    }
}

/* ============================================================
   SITENAME — убираем подчёркивание
   ============================================================ */
.header .logo,
.header .logo:hover,
.header .logo h1,
.header .logo .sitename {
    text-decoration: none;
}

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================================ */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
    margin: 0;
    background: none;
    list-style: none;
    font-size: 0.8rem;
    font-family: var(--nav-font);
}

/* Ссылка — не активный пункт */
.breadcrumb-item a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.breadcrumb-item a::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--hover-color);
    transition: width 0.25s ease;
}

.breadcrumb-item a:hover {
    color: var(--hover-color);
}

.breadcrumb-item a:hover::after {
    width: 100%;
}

/* Активный (текущий) пункт */
.breadcrumb-item.active {
    color: #333;
    font-weight: 500;
}

/* Разделитель между пунктами */
.breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "";
    display: block;
    width: 4px;
    height: 4px;
    border-top: 1px solid #bbb;
    border-right: 1px solid #bbb;
    transform: rotate(45deg);
    margin: 0 0.6rem;
    flex-shrink: 0;
}

/* ============================================================
   СЕКЦИИ — общий ритм и воздух
   ============================================================ */
.section,
section {
    padding: 60px 0;
    overflow: clip;
}

.light-background {
    background-color: #f9f9f9;
}

/* ============================================================
   SECTION TITLE — центрированный заголовок секции
   ============================================================ */
.section-title {
    text-align: center;
    padding-bottom: 60px;
    position: relative;
}

.section-title .subtitle {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
    position: relative;
}

/* Линия под subtitle */
.section-title .subtitle::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 1px;
    background: var(--accent-color);
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.2;
    color: #000;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-title p {
    font-size: 1rem;
    line-height: 1.8;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    padding: 100px 0 80px;
}

.hero .hero-content h1 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #000;
}

.hero .hero-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #555;
}

.hero .hero-cta {
    margin-bottom: 3rem;
}

.hero .hero-cta .btn-primary {
    display: inline-block;
    background-color: #313131;
    color: #fff;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
}

.hero .hero-cta .btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

/* Статы героя */
.hero .hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero .hero-stats .stat-item .stat-number {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 0.2rem;
}

.hero .hero-stats .stat-item .stat-label {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

/* Изображение героя */
.hero .hero-image {
    position: relative;
}

.hero .hero-image img {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Плавающая карточка в герое */
.hero .hero-image .floating-card {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero .hero-image .floating-card .card-icon {
    width: 44px;
    height: 44px;
    background: rgba(49, 49, 49, 0.07);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .hero-image .floating-card .card-icon i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.hero .hero-image .floating-card .card-content h5 {
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0 0 0.2rem;
    color: #666;
}

.hero .hero-image .floating-card .card-content .growth-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
    line-height: 1;
}

/* ============================================================
   SERVICES — карточки каталога и услуг
   ============================================================ */
.services .service-item {
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Акцентная линия сверху — появляется при hover */
.services .service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.services .service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.services .service-item:hover::before {
    transform: scaleX(1);
}

/* Иконка-круг в карточке услуги */
.services .service-item .service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #313131, #555);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.services .service-item:hover .service-icon {
    transform: scale(1.08);
}

.services .service-item .service-icon i {
    font-size: 1.5rem;
    color: #fff;
}

/* Картинка в карточке каталога */
.services .service-item > a.d-block img {
    border-radius: 4px;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.services .service-item:hover > a.d-block img {
    transform: scale(1.03);
}

.services .service-item > a.d-block {
    overflow: hidden;
    border-radius: 4px;
}

.services .service-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.services .service-item h3 a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.services .service-item h3 a:hover {
    color: var(--hover-color);
}

.services .service-item p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Ссылка «Подробнее» */
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #313131;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: gap 0.2s ease, color 0.2s ease;
    margin-top: auto;
}

.service-link i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.service-link:hover {
    color: var(--hover-color);
    gap: 0.65rem;
}

.service-link:hover i {
    transform: translateX(3px);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
    padding: 100px 0;
}

.about .content h2 {
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #000;
}

.about .content .lead {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #444;
}

.about .content p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    color: #666;
}

.about .stats-row {
    display: flex;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.about .stats-row .stat-item .stat-number {
    font-size: 2.75rem;
    font-weight: 300;
    line-height: 1;
    color: var(--accent-color);
}

.about .stats-row .stat-item .stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-top: 0.4rem;
}

.about .cta-section {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.about .cta-section .btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: transparent;
    color: #000;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.about .cta-section .btn-outline:hover {
    border-color: var(--hover-color);
    color: var(--hover-color);
}

.about .image-wrapper img {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Плавающая карточка about */
.about .image-wrapper {
    position: relative;
}

.about .image-wrapper .floating-card {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    max-width: 260px;
}

@media (max-width: 991px) {
    .about .image-wrapper .floating-card {
        position: static;
        margin-top: 1.5rem;
        max-width: none;
    }
}

.about .image-wrapper .floating-card .card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about .image-wrapper .floating-card .card-content .icon {
    width: 48px;
    height: 48px;
    background: rgba(49, 49, 49, 0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about .image-wrapper .floating-card .card-content .icon i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.about .image-wrapper .floating-card .card-content .text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    color: #000;
}

.about .image-wrapper .floating-card .card-content .text p {
    font-size: 0.8rem;
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* ============================================================
   WHY US SECTION
   ============================================================ */
.why-us {
    padding: 100px 0;
}

.why-us .content h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    color: #000;
}

.why-us .content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

.why-us .image-wrapper img {
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.why-us .features-grid {
    margin-top: 5rem;
}

/* Элемент фичи */
.why-us .feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem 0;
    transition: transform 0.2s ease;
}

.why-us .feature-item:hover {
    transform: translateY(-4px);
}

.why-us .feature-item:hover .icon-wrapper {
    background: var(--accent-color);
    color: #fff;
}

.why-us .icon-wrapper {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(49, 49, 49, 0.07);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.why-us .feature-item:hover .icon-wrapper {
    transform: scale(1.08);
}

.why-us .feature-content h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    color: #000;
    line-height: 1.3;
}

.why-us .feature-content p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 991px) {
    .hero {
        padding: 70px 0 50px;
    }

    .hero .hero-content h1 {
        font-size: 2.2rem;
    }

    .about,
    .why-us {
        padding: 70px 0;
    }

    .why-us .features-grid {
        margin-top: 3rem;
    }
}

@media (max-width: 767px) {
    .section,
    section {
        padding: 50px 0;
    }

    .section-title {
        padding-bottom: 40px;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero .hero-content h1 {
        font-size: 1.9rem;
    }

    .hero .hero-stats {
        gap: 2rem;
    }

    .hero .hero-image {
        margin-top: 2.5rem;
    }

    .hero .hero-image .floating-card {
        bottom: 10px;
        left: 10px;
        padding: 0.875rem 1rem;
    }

    .why-us .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .about .stats-row {
        gap: 2rem;
    }

    .about .stats-row .stat-item .stat-number {
        font-size: 2.25rem;
    }
}

/* ============================================================
   КАТАЛОГ — дерево разделов (Razdel/Index/view.php)
   ============================================================ */

/* ── Hero-изображение раздела ── */
.hero-image {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.hero-image img,
.hero-image picture img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* Картинка внутри карточки уровня 1 */
.catalog-hero-img {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.catalog-l1-card a.d-block:hover .catalog-hero-img {
    transform: scale(1.03);
}

.catalog-l1-card a.d-block {
    overflow: hidden;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .catalog-hero-img {
        max-height: 200px;
    }
}

/* ── Уровень 1: сама карточка ── */
.catalog-l1-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.catalog-l1-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    transform: translateY(-3px);
}

/* Шапка карточки уровня 1 — тёмный градиент */
.catalog-l1-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    position: relative;
    padding: 1.25rem 1.5rem;
}

/* Геометрический паттерн поверх градиента */
.catalog-l1-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.catalog-l1-title {
    color: #ffffff !important;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.catalog-l1-title:hover {
    opacity: 0.85;
}

/* Тело карточки */
.catalog-l1-card .card-body {
    background: #fff;
    padding: 1.5rem !important;
}

.catalog-l1-card .card-body .text-body-secondary {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #666 !important;
}

/* Футер карточки уровня 1 — контейнер для уровня 2 */
.catalog-l1-card .card-footer {
    background-color: #f8f9fb !important;
    border-top: 1px solid #e8ecf0 !important;
    padding: 1.5rem !important;
}

/* ── Уровень 2: горизонтальная карточка ── */
.catalog-l1-card .card-footer > .card {
    border: 1px solid #e8ecf0 !important;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.catalog-l1-card .card-footer > .card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

.catalog-l1-card .card-footer > .card .card-body {
    padding: 1rem 1.25rem !important;
}

.catalog-l1-card .card-footer > .card .card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.catalog-l1-card .card-footer > .card .card-body h3 a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.catalog-l1-card .card-footer > .card .card-body h3 a:hover {
    color: var(--hover-color);
}

.catalog-l1-card .card-footer > .card .card-body .text-body-secondary {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #777 !important;
}

/* Изображение в карточке уровня 2 */
.catalog-l1-card .card-footer > .card img {
    height: 140px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.catalog-l1-card .card-footer > .card:hover img {
    transform: scale(1.05);
}

/* ── Уровень 3: мини-карточки ── */
.catalog-l1-card .card-footer .card-footer {
    background-color: #f2f4f7 !important;
    border-top: 1px solid #e2e6ea !important;
    padding: 1rem 1.25rem !important;
}

.catalog-l1-card .card-footer .card-footer > .d-flex > .card {
    border: 1px solid #e8ecf0 !important;
    border-radius: 6px;
    background: #fff !important;
    transition: box-shadow 0.2s ease;
}

.catalog-l1-card .card-footer .card-footer > .d-flex > .card:hover {
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.catalog-l1-card .card-footer .card-footer img {
    height: 80px;
    object-fit: cover;
}

/* Уровень 3: глубокие ссылки */
.catalog-l1-card .card-footer .card-footer ul.list-unstyled a {
    color: #555;
    font-size: 0.8rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.catalog-l1-card .card-footer .card-footer ul.list-unstyled a:hover {
    color: var(--hover-color);
}

/* ── Кнопки в карточках каталога ── */
.catalog-l1-card .btn-primary {
    background: #313131;
    border-color: #313131;
    font-size: 0.8rem;
    padding: 0.35rem 0.875rem;
    border-radius: 4px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.catalog-l1-card .btn-primary:hover {
    background: var(--hover-color);
    border-color: var(--hover-color);
}

.catalog-l1-card .btn-outline-primary {
    color: #313131;
    border-color: #313131;
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.catalog-l1-card .btn-outline-primary:hover {
    background: var(--hover-color);
    border-color: var(--hover-color);
    color: #fff;
}

.catalog-l1-card .btn-outline-secondary {
    color: #555;
    border-color: #ccc;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.catalog-l1-card .btn-outline-secondary:hover {
    background: #555;
    border-color: #555;
    color: #fff;
}

/* ============================================================
   БЛОК ТЕКСТА РАЗДЕЛА — $root['text'] / .additional-article__content
   Рендерится под каталогом, над футером.
   ============================================================ */
.additional-article__content {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 3rem;
    padding-bottom: 4rem;
    margin-top: 3rem;
}

.additional-article__content h1,
.additional-article__content h2 {
    font-size: 1.75rem;
    font-weight: 300;
    color: #111;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.additional-article__content h3 {
    font-size: 1.35rem;
    font-weight: 500;
    color: #222;
    margin-bottom: 1rem;
}

.additional-article__content h4,
.additional-article__content h5,
.additional-article__content h6 {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.75rem;
}

.additional-article__content p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #555;
    margin-bottom: 1.25rem;
}

.additional-article__content a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(49, 49, 49, 0.25);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.additional-article__content a:hover {
    color: var(--hover-color);
    border-color: var(--hover-color);
}

.additional-article__content ul,
.additional-article__content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.additional-article__content li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0.4rem;
}

.additional-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.additional-article__content blockquote {
    border-left: 3px solid var(--accent-color);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

/* ============================================================
   SERVICE DETAILS — страница раздела каталога
   ============================================================ */

.service-details {
    padding: 40px 0 60px;
}

/* Заголовок страницы */
.service-title {
    font-size: 2rem;
    font-weight: 300;
    color: #111;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Hero-картинка раздела */
.service-hero img {
    border-radius: 8px;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Описание раздела */
.service-description .lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.service-description > div {
    font-size: 0.95rem;
    line-height: 1.85;
    color: #555;
}

.service-description > div h1,
.service-description > div h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #111;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-description > div h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #222;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-description > div h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.service-description > div p {
    margin-bottom: 1rem;
}

.service-description > div .highlight-box {
    background: #f8f9fa;
    border-left: 3px solid var(--accent-color);
    padding: 1.25rem 1.5rem;
    border-radius: 0 6px 6px 0;
    margin: 1.5rem 0;
}

.service-description > div .advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.service-description > div .advantage-item {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================================
   PRODUCT CARDS — горизонтальные карточки дочерних разделов
   ============================================================ */

.section-children__header {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.07);
}

.section-children__title,
.section-children__header h3 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #111;
    margin: 0;
}

.section-children__header h3 strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Горизонтальная карточка */
.product-card--large {
    border-radius: 8px !important;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.product-card--large:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-3px);
}

/* Фото в горизонтальной карточке */
.product-card__image-wrapper {
    overflow: hidden;
    min-height: 200px;
    background: #f0f2f4;
}

.product-card__image {
    transition: transform 0.4s ease;
    min-height: 200px;
}

.product-card--large:hover .product-card__image {
    transform: scale(1.04);
}

/* Заглушка без изображения */
.product-card__image-wrapper .d-flex {
    min-height: 200px;
}

/* Тело карточки */
.product-card__body {
    padding: 1.5rem !important;
}

.product-card__title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card__title a:hover {
    color: var(--hover-color);
}

.product-card__description {
    font-size: 0.875rem !important;
    line-height: 1.7 !important;
    color: #777 !important;
}

/* Кнопка «Перейти» в карточке */
.product-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #313131;
    border-color: #313131;
    font-size: 0.8rem;
    padding: 0.35rem 0.875rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.product-card__link:hover {
    background: var(--hover-color);
    border-color: var(--hover-color);
    color: #fff;
    gap: 0.6rem;
}

.product-card__link i {
    font-size: 0.75rem;
}

/* ============================================================
   SIDEBAR — воздух и стиль
   ============================================================ */

.service-sidebar {
    top: calc(var(--header-height, 70px) + 1.5rem) !important;
}

/* Общий виджет сайдбара */
.service-sidebar .sidebar-widget.card {
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: none !important;
    margin-bottom: 1.25rem !important;
    overflow: hidden;
}

/* Заголовок виджета */
.service-sidebar .card-header {
    background: #f8f9fb !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding: 0.875rem 1.25rem !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #555 !important;
}

.service-sidebar .card-header i {
    color: var(--accent-color);
    margin-right: 0.4rem;
}

/* Группы внутри виджета */
.service-sidebar .card-body .p-3 {
    padding: 1rem 1.25rem !important;
}

.service-sidebar .card-body .border-bottom {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

/* Метки группы (PRODUCT, FAQ и т.д.) */
.service-sidebar .text-uppercase.text-secondary.small {
    font-size: 0.7rem !important;
    letter-spacing: 0.08em;
    color: #aaa !important;
    margin-bottom: 0.625rem !important;
}

.service-sidebar .badge.bg-secondary {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #666 !important;
    font-weight: 500;
    font-size: 0.65rem;
}

/* Ссылки в сайдбаре */
.service-sidebar .list-unstyled li {
    margin-bottom: 0.5rem !important;
    line-height: 1.4;
}

.service-sidebar .list-unstyled a.small,
.service-sidebar .list-unstyled a {
    font-size: 0.875rem !important;
    color: #444;
    text-decoration: none !important;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: block;
}

.service-sidebar .list-unstyled a:hover {
    color: var(--hover-color);
    padding-left: 4px;
}

/* Метки (теги) */
.service-sidebar .card-body .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.75em;
    border-radius: 20px;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.service-sidebar .badge.bg-primary-subtle {
    background: rgba(49, 49, 49, 0.07) !important;
    color: #313131 !important;
}

.service-sidebar .badge.bg-primary-subtle:hover {
    background: var(--hover-color) !important;
    color: #fff !important;
}

/* CTA-виджет */
.service-sidebar .cta-widget {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    border: none !important;
}

.service-sidebar .cta-widget .card-body {
    padding: 2rem 1.5rem !important;
}

.service-sidebar .cta-widget i.text-primary {
    color: #aac0fa !important;
}

.service-sidebar .cta-widget .card-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.service-sidebar .cta-widget .card-text {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.85rem !important;
    line-height: 1.6;
}

.service-sidebar .cta-widget .btn-primary {
    background: #c8175a;
    border-color: #c8175a;
    font-size: 0.875rem;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.service-sidebar .cta-widget .btn-primary:hover {
    background: #a31349;
    border-color: #a31349;
    transform: translateY(-2px);
}

/* ============================================================
   ПАГИНАЦИЯ
   ============================================================ */

.pagination-area {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.pagination-summary {
    font-size: 0.8rem;
    color: #999 !important;
    margin-bottom: 0.75rem !important;
}

.pagination {
    gap: 0.25rem;
    flex-wrap: wrap;
}

.pagination .page-item .page-link {
    border-radius: 4px !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #444;
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
    min-width: 36px;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    line-height: 1.5;
}

.pagination .page-item .page-link:hover {
    background: #f0f2f4;
    border-color: rgba(0, 0, 0, 0.15);
    color: #111;
}

.pagination .page-item.active .page-link {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    font-weight: 500;
}

.pagination .page-item.active .page-link:hover {
    background: var(--hover-color);
    border-color: var(--hover-color);
}

/* ============================================================
   РАЗДЕЛ ТОВАРОВ — заголовок и переключатель
   ============================================================ */

.section-products__header {
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.07);
}

.section-products__header h3 {
    font-size: 1.25rem;
    font-weight: 400;
    color: #111;
}

.section-products__header .text-secondary {
    color: #aaa !important;
}

/* Переключатель «Показывать: 6 / 12 / 24» */
.section-products__header .btn-outline-secondary {
    color: #777;
    border-color: #ddd;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    transition: background 0.15s ease, color 0.15s ease;
}

.section-products__header .btn-outline-secondary:hover {
    background: #f0f2f4;
    color: #333;
    border-color: #ccc;
}

.section-products__header .btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

/* Пустой раздел */
.alert.alert-light {
    border-radius: 8px;
    background: #f8f9fb !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    color: #888;
}

/* ============================================================
   RICH CONTENT — стили для HTML из редактора внутри
   .service-description и .additional-article__content
   Классы: .models-grid, .model-card, .advantages-grid,
           .specs-table, .cta-box, .highlight-box и др.
   ============================================================ */

/* ── Сетка моделей (три карточки в ряд) ── */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1.75rem 0;
}

.model-card {
    background: #f8f9fb;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 8px;
    padding: 1.375rem 1.5rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.model-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
}

.model-card h3 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.4;
}

.model-card p {
    font-size: 0.875rem !important;
    line-height: 1.65 !important;
    color: #555 !important;
    margin-bottom: 0.625rem !important;
}

/* Бейдж категории прав (КАТЕГОРИЯ В / С) */
.category-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2em 0.65em;
    border-radius: 3px;
    background: var(--accent-color);
    color: #fff;
    margin-bottom: 0.5rem;
}

/* ── Сетка преимуществ ── */
.advantages-grid,
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.advantage-item {
    background: #f8f9fb;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    padding: 1.125rem 1.25rem;
    transition: box-shadow 0.2s ease;
}

.advantage-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.advantage-item h4 {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
}

.advantage-item p {
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    color: #666 !important;
    margin: 0 !important;
}

/* ── Выделенный блок (highlight-box) ── */
.highlight-box {
    background: #f4f6fb;
    border-left: 3px solid var(--accent-color);
    border-radius: 0 6px 6px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
}

.highlight-box h3 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin-top: 0 !important;
    margin-bottom: 0.625rem !important;
}

.highlight-box p,
.highlight-box ul li {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    color: #555 !important;
    margin-bottom: 0.4rem !important;
}

/* ── CTA-блок (cta-box) ── */
.cta-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 8px;
    padding: 2rem 2rem;
    margin: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
}

.cta-box h3 {
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
}

.cta-box p {
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    margin-bottom: 0.75rem !important;
}

.cta-box ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 1rem auto !important;
    max-width: 520px;
    text-align: left;
}

.cta-box ul li {
    font-size: 0.875rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.3rem 0 !important;
    line-height: 1.5 !important;
}

/* ── price-benefit ── */
.price-benefit {
    background: rgba(49, 49, 49, 0.04);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.price-benefit h3 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #111 !important;
    margin: 0 0 0.5rem !important;
}

.price-benefit p {
    font-size: 0.9rem !important;
    color: #555 !important;
    margin: 0 !important;
}

/* ── Таблицы характеристик (specs-table) ── */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.specs-table th {
    background: #f0f2f6;
    font-weight: 600;
    color: #333;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.specs-table td {
    padding: 0.625rem 1rem;
    color: #555;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    line-height: 1.5;
    vertical-align: top;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

.specs-table tr:hover td {
    background: rgba(49, 49, 49, 0.03);
}

/* ── Заголовок «europe-badge» — синяя плашка ── */
.europe-badge {
    background: #1f71df;
    color: #fff !important;
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    font-size: 0.875rem !important;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.europe-badge * {
    color: #fff !important;
    background: transparent !important;
}

/* ── Вложенный .container внутри .service-description ──
   Убираем отступы — контейнер уже внутри контейнера.    */
.service-description .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none !important;
}

/* ── Списки внутри rich-content ── */
.service-description > div ul,
.service-description > div ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.service-description > div li {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #555;
    margin-bottom: 0.3rem;
}

/* ── Таблицы общие внутри rich-content ── */
.service-description > div table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.service-description > div table th {
    background: #f0f2f6;
    font-weight: 600;
    color: #333;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.service-description > div table td {
    padding: 0.625rem 1rem;
    color: #555;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: top;
    line-height: 1.5;
}

.service-description > div table tr:hover td {
    background: rgba(49, 49, 49, 0.025);
}

/* Адаптив для таблиц */
@media (max-width: 767px) {
    .specs-table,
    .service-description > div table {
        font-size: 0.8rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .models-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid,
    .advantages {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 1.5rem 1.25rem;
    }
}
