/* exkavators CMS — стили. Точная палитра оригинала exkavators.by:
   Красный #e31e24 (бренд/кнопки/hover), чёрный #000 (текст),
   серый #f0f0f0 (фоны), ссылка #071339. Шрифт Nunito. */
:root {
  --primary: #e31e24;
  --primary-dark: #ce1a2f;
  --accent: #e31e24;
  --bg-light: #f8f9fa;
  --text: #000000;
  --text-muted: #6c757d;
  --border: #dee2e6;
  --link: #071339;
}

* { box-sizing: border-box; }
body {
  font-family: 'Nunito', -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: #000; text-decoration: underline; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: #000; }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }

/* ===== Шапка ===== */
.site-header { position: sticky; top: 0; z-index: 1000; background: #fff; }
.headerTop { background: #fff; color: #000; font-size: 14px; padding: 10px 0; }
.headerTop a { color: #071339; }
.headerContacts { display: flex; gap: 20px; align-items: center; }
.headerPhone { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.headerSocial { display: flex; gap: 10px; }
.headerMain { background: #fff; }
.mainNav { display: flex; gap: 24px; }
.mainNav a { color: var(--text); font-weight: 600; padding: 8px 0; position: relative; }
.mainNav a:hover { color: var(--primary); text-decoration: none; }
.mainNav a::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.mainNav a:hover::after { transform: scaleX(1); }
.burger { display: flex; flex-direction: column; gap: 4px; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { width: 26px; height: 3px; background: var(--primary); border-radius: 2px; }
.mobileNav { display: none; background: #fff; border-top: 1px solid var(--border); }
.mobileNav a { display: block; padding: 10px 0; color: var(--text); font-weight: 600; border-bottom: 1px solid var(--border); }
body.nav-open .mobileNav { display: block; }

/* ===== Слайдер главной ===== */
.homeSlider .slideContent {
  min-height: 480px; display: flex; align-items: center; color: #fff;
  background-size: cover; background-position: center;
}
.homeSlider .slideContent h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; max-width: 700px; }
.homeSlider .slideContent p { font-size: 1.25rem; margin-bottom: 24px; opacity: .95; }
.splide__pagination { bottom: 16px; }
.splide__pagination__page { background: rgba(255,255,255,.5); }
.splide__pagination__page.is-active { background: var(--accent); }

/* ===== Карточки категорий ===== */
.categoryCard {
  display: block; padding: 24px 16px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; text-align: center; transition: all .2s; height: 100%;
}
.categoryCard:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(227,30,36,.15); border-color: var(--primary); text-decoration: none; }
.categoryIcon { font-size: 2.5rem; margin-bottom: 8px; }
.categoryName { font-weight: 700; color: var(--text); }

/* ===== Преимущества ===== */
.blockAdvantages .advIcon {
  width: 64px; height: 64px; margin: 0 auto 16px; background: var(--primary);
  color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
}
.blockAdvantages h3 { font-size: 1.1rem; font-weight: 700; }

/* ===== CTA — серый фон как в оригинале ===== */
.blockCta { background: #f0f0f0; color: #000; }
.blockCta h2 { color: #000; font-weight: 800; }
.blockCta .text-muted { color: #6c757d !important; }
.blockCta .btn-outline-primary { color: #e31e24; border-color: #e31e24; }
.blockCta .btn-outline-primary:hover { background: #e31e24; color: #fff; }

/* ===== Новости ===== */
.newsCard { display: block; background: #fff; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; height: 100%; transition: box-shadow .2s; }
.newsCard:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); text-decoration: none; }
.newsCard img { width: 100%; height: 200px; object-fit: cover; }
.newsBody { padding: 16px; }
.newsBody h4, .newsBody h5 { color: var(--text); margin: 4px 0; }

/* ===== Хлебные крошки ===== */
.breadcrumb-custom { list-style: none; padding: 12px 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.breadcrumb-custom-item { color: var(--text-muted); }
.breadcrumb-custom-item:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--border); }
.breadcrumb-custom-item a { color: var(--primary); }
.breadcrumb-custom-item span { color: var(--text-muted); }

/* ===== Статья ===== */
.article-content { max-width: 900px; }
.article-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; color: #000; }
.article-body { font-size: 1.05rem; }
.article-body h2 { font-size: 1.5rem; margin-top: 28px; color: #000; }
.article-body h3 { font-size: 1.25rem; margin-top: 20px; }
.article-body p { margin-bottom: 16px; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-body table td, .article-body table th { border: 1px solid var(--border); padding: 8px 12px; }
.article-meta { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

/* ===== Карточка товара ===== */
.product-detail .productGallery .mainImage { background: var(--bg-light); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.product-detail .productGallery .mainImage img { width: 100%; display: block; }
.product-detail .thumbnails { display: flex; gap: 8px; flex-wrap: wrap; }
.product-detail .thumb { width: 80px; height: 80px; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; }
.product-detail .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .thumb.active { border-color: var(--primary); }
.product-detail h1 { font-size: 1.75rem; font-weight: 700; color: #000; }
.productSpecs h3 { font-size: 1.1rem; margin-bottom: 12px; color: #000; }
.productSpecs .table th { width: 60%; font-weight: 600; }

/* ===== Сетка товаров в категории ===== */
.categorySidebar { background: var(--bg-light); border-radius: 12px; padding: 16px; }
.categorySidebar h3 { font-size: 1rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.categoryTree { list-style: none; padding: 0; margin: 0; }
.categoryTree li { margin-bottom: 4px; }
.categoryTree li a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); font-weight: 600; }
.categoryTree li a:hover { background: #fff; color: var(--primary); text-decoration: none; }
.categoryTree li.active a { background: var(--primary); color: #fff; }
.productCard { display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; height: 100%; transition: all .2s; }
.productCard:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(26,71,153,.15); text-decoration: none; border-color: var(--primary); }
.productCardImage { height: 220px; background: var(--bg-light); overflow: hidden; }
.productCardImage img { width: 100%; height: 100%; object-fit: cover; }
.productCardImage .noImage { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-muted); }
.productCardBody { padding: 16px; }
.productCardBody h3 { font-size: 1.05rem; color: var(--text); margin-bottom: 12px; }

/* ===== Видео ===== */
.video-embed { position: relative; margin: 24px 0; max-width: 800px; }
.video-embed iframe, .video-embed video { width: 100%; border-radius: 12px; border: 0; aspect-ratio: 16/9; }

/* ===== Футер — серый фон #f0f0f0, чёрный текст (как в оригинале) ===== */
.site-footer { background: #f0f0f0; color: #000; margin-top: 60px; }
.site-footer h5 { color: #000; font-size: 1rem; margin-bottom: 16px; font-weight: 700; }
.footerList { list-style: none; padding: 0; margin: 0; }
.footerList li { margin-bottom: 8px; }
.footerList a { color: #071339; }
.footerList a:hover { color: #e31e24; }
.site-footer .text-muted { color: #6c757d !important; }
.site-footer hr { border-color: #dee2e6; }

/* ===== Форма заявки (попап) ===== */
.leadFormPopup {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.leadFormBox {
  background: #fff; border-radius: 16px; padding: 32px; max-width: 440px; width: 100%;
  position: relative; max-height: 90vh; overflow-y: auto;
}
.leadFormClose { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 28px; color: var(--text-muted); cursor: pointer; }
.leadFormBox h3 { color: #000; font-weight: 800; }
.leadForm .form-control { padding: 12px; }

/* ===== Админка ===== */
body.admin-body { background: #f4f6f9; --primary: #3b6fd8; --primary-dark: #2c5bc4; --accent: #3b6fd8; }
body.admin-body .btn-primary { background: #3b6fd8 !important; border-color: #3b6fd8 !important; color: #fff !important; }
body.admin-body .btn-primary:hover { background: #2c5bc4 !important; border-color: #2c5bc4 !important; color: #fff !important; }
body.admin-body .btn-outline-primary { color: #3b6fd8 !important; border-color: #3b6fd8 !important; background: transparent !important; }
body.admin-body .btn-outline-primary:hover { background: #3b6fd8 !important; border-color: #3b6fd8 !important; color: #fff !important; }
body.admin-body a { color: #3b6fd8; }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: #ffffff; color: #1e293b; padding: 20px 0; flex-shrink: 0; box-shadow: 1px 0 4px rgba(0,0,0,.04); border-right: 1px solid #e2e8f0; }
.admin-sidebar .brand { padding: 16px 20px 16px; font-weight: 800; font-size: 1rem; border-bottom: 1px solid #e2e8f0; color: #1e293b; letter-spacing: 0.3px; margin-bottom: 8px; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: #475569; font-weight: 500; font-size: 0.88rem; transition: all .15s ease; border-left: 3px solid transparent; }
.admin-sidebar a svg { flex-shrink: 0; opacity: .6; transition: opacity .15s; }
.admin-sidebar a:hover { background: #f1f5f9; color: #1e293b; text-decoration: none; }
.admin-sidebar a:hover svg { opacity: 1; }
.admin-sidebar a.active { background: #eff6ff; color: #1d4ed8; text-decoration: none; border-left-color: #3b82f6; font-weight: 700; }
.admin-sidebar a.active svg { opacity: 1; }
.admin-sidebar hr { border-color: #e2e8f0 !important; }
.admin-main { flex: 1; padding: 35px; overflow-x: auto; background: #f8fafc; }
.admin-card { background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -1px rgba(0,0,0,.03); margin-bottom: 24px; border: 1px solid #e2e8f0; }
.admin-table { width: 100%; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--text-muted); font-weight: 600; font-size: 14px; }

/* редактор */
.editor-form label { font-weight: 600; margin-top: 16px; display: block; }
.editor-form input, .editor-form textarea, .editor-form select { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; }
.editor-form .row-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.media-drop {
  border: 2px dashed var(--border); border-radius: 12px; padding: 32px; text-align: center;
  color: var(--text-muted); cursor: pointer; transition: border-color .2s;
}
.media-drop:hover, .media-drop.dragover { border-color: var(--primary); color: var(--primary); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.media-item { background: var(--bg-light); border-radius: 8px; overflow: hidden; position: relative; }
.media-item img, .media-item video { width: 100%; height: 100px; object-fit: cover; }
.media-item .name { padding: 4px 8px; font-size: 11px; word-break: break-all; }
.media-item .del { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 4px; width: 22px; height: 22px; cursor: pointer; }

@media (max-width: 991px) {
  .mainNav { display: none; }
  .editor-form .row-meta { grid-template-columns: 1fr; }
}

/* ============================================================
   НОВЫЕ СТИЛИ — для соответствия оригиналу
   ============================================================ */

/* ===== Hero секция ===== */
.heroSection { margin-top: -1px; }
.heroBg { background-size: cover; background-position: center; min-height: 520px; display: flex; align-items: center; color: #fff; }
.heroContent { max-width: 620px; }
.heroContent h1 { font-size: 2.4rem; font-weight: 800; line-height: 1.2; margin-bottom: 28px; color: #fff; }
.heroButtons { display: flex; gap: 16px; flex-wrap: wrap; }
.heroButtons .btn { padding: 12px 32px; font-weight: 700; }
@media (max-width: 768px) {
  .heroContent h1 { font-size: 1.6rem; }
  .heroBg { min-height: 380px; }
}

/* ===== Секции с заголовками ===== */
.sectionTitle { font-size: 2rem; font-weight: 800; color: #000; margin-bottom: 8px; }

/* ===== Секция О нас (главная) ===== */
.advList { list-style: none; padding: 0; }
.advList li { padding: 10px 0 10px 32px; position: relative; font-size: 1.05rem; }
.advList li::before { content: '✓'; position: absolute; left: 0; top: 10px; color: var(--accent); font-weight: 800; font-size: 1.2rem; }

/* ===== Карточки категорий (главная + корень каталога) ===== */
.categoryCard { display: block; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; height: 100%; transition: all .25s; }
.categoryCard:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(26,71,153,.18); border-color: var(--primary); text-decoration: none; }
.categoryCardImage { height: 200px; background: var(--bg-light); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.categoryCardImage img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 12px; }
.categoryCardBody { padding: 18px; text-align: center; }
.categoryCardBody h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0; }

/* ===== Карточка категории в корне каталога (большая, с описанием) ===== */
.catalogRootCard { display: flex; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; height: 100%; transition: all .25s; align-items: stretch; }
.catalogRootCard:hover { box-shadow: 0 12px 32px rgba(26,71,153,.15); border-color: var(--primary); text-decoration: none; }
.catalogRootImage { width: 220px; flex-shrink: 0; background: var(--bg-light); display: flex; align-items: center; justify-content: center; }
.catalogRootImage img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 12px; }
.catalogRootBody { padding: 20px; flex: 1; }
.catalogRootBody h3 { font-size: 1.2rem; font-weight: 700; color: #000; margin-bottom: 8px; }
.catalogRootBody p { color: var(--text-muted); font-size: .95rem; margin-bottom: 12px; }
@media (max-width: 576px) {
  .catalogRootCard { flex-direction: column; }
  .catalogRootImage { width: 100%; height: 160px; }
}

/* ===== Выпадающее меню в шапке ===== */
.navDropdown { position: relative; }
.navDropdown > a { cursor: pointer; }
.caret { font-size: .7rem; opacity: .6; }
.dropdownMenu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 240px; box-shadow: 0 8px 24px rgba(0,0,0,.15); border-radius: 0 0 8px 8px; padding: 8px 0; z-index: 1100; }
.dropdownMenu a { display: block; padding: 10px 20px; color: var(--text); font-weight: 600; }
.dropdownMenu a:hover { background: var(--bg-light); color: var(--primary); text-decoration: none; }
.navDropdown:hover .dropdownMenu { display: block; }
.navDropdown:hover > a { color: var(--primary); }

/* ===== Контактная полоса в шапке ===== */
.headerLocation, .headerHours { font-size: 13px; opacity: .9; margin-right: 16px; }
.headerSocial { display: flex; gap: 8px; }
.headerSocial a { opacity: .85; transition: opacity .2s; }
.headerSocial a:hover { opacity: 1; }

/* ===== Блок телефона + кнопки в шапке ===== */
.headerPhone { color: #000; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 6px; }
.headerPhone:hover { text-decoration: none; }
.phoneIcon { font-size: 1.2rem; }
.headerActions { gap: 12px; }

/* ===== Логотипы ===== */
.logo img { display: block; }
.logoMobile { display: none; }
@media (max-width: 991px) {
  .logoDesktop { display: none; }
  .logoMobile { display: inline-block; }
}

/* ===== Сайдбар категории (боковое меню) ===== */
.categoryLayout { display: flex; }
.sidebarTitle { font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.sidebarCta { background: var(--bg-light); border-radius: 12px; padding: 16px; margin-top: 16px; }
.sidebarCta p { font-weight: 700; color: #000; margin-bottom: 12px; }
.categoryTitle { font-size: 1.8rem; font-weight: 800; color: #000; margin-bottom: 12px; }
.categoryLead { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; }

/* ===== Сетка товаров ===== */
.productGrid .productCard { display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; height: 100%; transition: all .25s; }
.productGrid .productCard:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(26,71,153,.15); text-decoration: none; border-color: var(--primary); }
.productCardImage { height: 220px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.productCardImage img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 8px; }
.productCardImage .noImage { color: var(--text-muted); display: flex; align-items: center; justify-content: center; height: 100%; }
.productCardBody { padding: 14px; text-align: center; }
.productCardBody h3 { font-size: 1rem; color: var(--text); margin-bottom: 10px; min-height: 2.4em; }

/* ===== Страница товара ===== */
.productLayout { display: flex; }
.productTitle { font-size: 1.75rem; font-weight: 800; color: #000; margin-bottom: 20px; }
.productCtaBlock { background: var(--bg-light); border-radius: 12px; padding: 20px; margin-bottom: 24px; }
.messengerLinks { display: flex; gap: 12px; justify-content: center; margin-top: 12px; }
.messengerLink { display: inline-block; transition: transform .2s; }
.messengerLink:hover { transform: scale(1.15); }
.productSpecs h3 { font-size: 1.15rem; color: #000; margin-bottom: 12px; }
.specsTable th { width: 60%; font-weight: 600; font-size: .95rem; }
.specsTable .unit { color: var(--text-muted); font-weight: 400; font-size: .85rem; }

/* ===== Секция услуг ===== */
.serviceCard { background: #fff; border-radius: 12px; padding: 20px; border: 1px solid var(--border); }
.serviceCard h3 { font-size: 1.15rem; color: #000; margin-bottom: 8px; }

/* ===== Новости (карточки на главной) ===== */
.newsCard { display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; height: 100%; transition: all .25s; }
.newsCard:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); text-decoration: none; transform: translateY(-3px); }
.newsCardImage { height: 200px; overflow: hidden; background: var(--bg-light); }
.newsCardImage img { width: 100%; height: 100%; object-fit: cover; }
.newsCardBody { padding: 18px; }
.newsCardBody p { color: var(--text); margin-bottom: 8px; }
.readMore { color: var(--primary); font-weight: 600; font-size: .9rem; }

/* ===== Список новостей ===== */
.newsListCard { display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all .25s; }
.newsListCard:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); text-decoration: none; border-color: var(--primary); }
.newsListImage { height: 160px; background: var(--bg-light); overflow: hidden; }
.newsListImage img { width: 100%; height: 100%; object-fit: cover; }
.newsListImagePlacehol
