/* ============================================================
   РЕДИЗАЙН ПСК «Апекс» — современный индустриальный стиль
   Подключается ПОСЛЕ style.css, структура страниц не меняется
   ============================================================ */

:root {
  --red: #ff3c20;
  --red-dark: #d92c13;
  --red-soft: rgba(255, 60, 32, 0.08);
  --navy: #182849;
  --navy-2: #101c36;
  --ink: #1c2333;
  --muted: #6b7280;
  --line: #e6e8ee;
  --bg: #f4f5f8;
  --card: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(16, 28, 54, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 28, 54, 0.1);
  --shadow-lg: 0 16px 40px rgba(16, 28, 54, 0.16);
  --tr: 0.22s ease;
}

/* ---------- База ---------- */
body {
  background: var(--bg) !important;
  color: var(--ink) !important;
  font-family: "Roboto", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.block_name, .title_body, .footer_head {
  font-family: "Montserrat", sans-serif !important;
  color: var(--navy);
  letter-spacing: -0.01em;
}

a { transition: color var(--tr), background var(--tr), box-shadow var(--tr), transform var(--tr); }

::selection { background: var(--red); color: #fff; }

/* ---------- Шапка (десктоп) ---------- */
#desktop-menu {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(16, 28, 54, 0.06) !important;
  padding: 14px 0 !important;
}

#desktop-menu .logo_head { transition: transform var(--tr); }
#desktop-menu .logo_head:hover { transform: scale(1.03); }

#desktop-menu .menu-list { gap: 6px; align-items: center; }
#desktop-menu .menu-list li { list-style: none; }

#desktop-menu .menu-list a {
  position: relative;
  display: inline-block;
  padding: 10px 18px !important;
  color: var(--navy) !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  background: transparent !important;
  border: none !important;
}

#desktop-menu .menu-list a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr);
}

#desktop-menu .menu-list a:hover {
  color: var(--red) !important;
  background: var(--red-soft) !important;
  transform: none;
}
#desktop-menu .menu-list a:hover::after { transform: scaleX(1); }
#desktop-menu .menu-list a.active { color: var(--red) !important; }
#desktop-menu .menu-list a.active::after { transform: scaleX(1); }

/* поиск в шапке */
#desktop-menu .search input,
#desktop-menu .form-searching input,
#desktop-menu input.form-control {
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
  background: var(--bg) !important;
  padding: 10px 18px !important;
  font-size: 14px;
  transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
}
#desktop-menu .search input:focus,
#desktop-menu .form-searching input:focus,
#desktop-menu input.form-control:focus {
  border-color: var(--red) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px var(--red-soft) !important;
  outline: none;
}
#desktop-menu .search .btn,
#desktop-menu .form-searching .btn {
  background: var(--red) !important;
  color: #fff !important;
  border-radius: 999px !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(255, 60, 32, 0.35);
}
#desktop-menu .search .btn:hover { background: var(--red-dark) !important; }

/* корзина в шапке */
#desktop-menu .cart a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}
#desktop-menu .cart a:hover { background: var(--navy-2); box-shadow: var(--shadow-md); }
#desktop-menu .cart .count {
  background: var(--red);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

/* ---------- Мобильная шапка ---------- */
#mobile-menu {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(16, 28, 54, 0.07) !important;
}
#mobile-menu input.form-control {
  border-radius: 999px !important;
  border: 1px solid var(--line) !important;
}
.mobile_nav ul li a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}
.mobile_nav ul li a:hover { color: var(--red) !important; }

/* ---------- Hero (главная) — раскладка по макету 9 ---------- */
.apex-hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% 12%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  overflow: hidden;
}
.apex-hero-inner {
  position: relative;
  z-index: 2;
  padding: 72px 20px 60px;
}
.apex-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}
.apex-hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.apex-hero-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.apex-hero-photo.big { grid-column: 1 / -1; }
.apex-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.apex-hero-photo.big img { height: 240px; }
.apex-hero-photo:not(.big) img { height: 170px; }
.apex-hero-photo:hover img { transform: scale(1.05); }
.apex-hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffd9d2;
  margin-bottom: 20px;
}
.apex-hero-kicker::before {
  content: "";
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--red);
}
.apex-hero-title {
  font-size: 50px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff !important;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.apex-hero-title span { color: var(--red); }
.apex-hero-sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 32px;
  max-width: 460px;
}
.apex-hero-btn {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red) !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 34px;
  border-radius: 10px;
  transition: background var(--tr), color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.apex-hero-btn:hover {
  background: var(--red);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ---------- Кремовая секция каталога (главная) ---------- */
.apex-catalog {
  background: linear-gradient(180deg, #f4eee2 0%, #efe7d6 100%);
  padding: 72px 0 80px;
}
.apex-catalog-kicker {
  font-family: "Montserrat", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #a8853f;
  margin-bottom: 14px;
}
.apex-catalog-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  color: #241e12 !important;
  margin-bottom: 40px;
}
.apex-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.apex-cat-card {
  display: block;
  background: #fffdf8;
  border: 1px solid rgba(168, 133, 63, 0.22);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(60, 48, 20, 0.08);
  transition: transform var(--tr), box-shadow var(--tr);
}
.apex-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(60, 48, 20, 0.16);
  text-decoration: none;
}
.apex-cat-img {
  display: block;
  height: 170px;
  overflow: hidden;
}
.apex-cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.apex-cat-card:hover .apex-cat-img img { transform: scale(1.07); }
.apex-cat-name {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: #241e12;
  padding: 18px 20px 4px;
}
.apex-cat-sub {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  color: #7a6f58;
  padding: 0 20px 12px;
}
.apex-cat-link {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a8853f;
  padding: 0 20px 20px;
}
.apex-cat-link::after { content: " →"; }
.apex-cat-card:hover .apex-cat-link { color: #8a6a2d; }
.apex-hero-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 56px;
}
.apex-hero-serv {
  display: block;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--red);
  border-radius: 12px;
  padding: 16px 18px;
  backdrop-filter: blur(6px);
  transition: background var(--tr), transform var(--tr), border-color var(--tr);
}
.apex-hero-serv:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-3px);
}
.apex-hero-serv-name {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 6px;
}
.apex-hero-serv-txt {
  display: block;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

/* полоса статистики в hero */
.apex-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 44px;
  background: rgba(10, 10, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.apex-hero-stat {
  padding: 20px 22px;
  text-align: center;
}
.apex-hero-stat + .apex-hero-stat { border-left: 1px solid rgba(255, 255, 255, 0.1); }
.apex-hero-stat b {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  color: var(--red);
}
.apex-hero-stat b i { font-style: normal; }
.apex-hero-stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 992px) {
  .apex-hero-inner { padding: 56px 18px 40px; }
  .apex-hero-title { font-size: 36px; }
  .apex-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .apex-hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
  .apex-hero-stat:nth-child(3) { border-left: none; }
  .apex-hero-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .apex-catalog { padding: 52px 0 60px; }
  .apex-catalog-title { font-size: 30px; }
  .apex-catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .apex-hero-title { font-size: 29px; }
  .apex-hero-sub br { display: none; }
  .apex-hero-stat b { font-size: 24px; }
  .apex-catalog-grid { grid-template-columns: 1fr; }
  .apex-catalog-title { font-size: 26px; }
  .apex-hero-stat b { font-size: 24px; }
}

/* ---------- Главная: каталог (block2) ---------- */
.block_name {
  font-size: 30px !important;
  font-weight: 800 !important;
  margin-bottom: 6px;
}
.block_line {
  width: 72px !important;
  height: 4px !important;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red), #ff8a3c) !important;
}

.block2_button a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 20px 22px !important;
  color: var(--navy) !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow-sm);
}
.block2_button a::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  margin-left: 12px;
  border-top: 2.5px solid var(--red);
  border-right: 2.5px solid var(--red);
  transform: rotate(45deg);
  transition: transform var(--tr);
}
.block2_button a:hover {
  border-color: var(--red) !important;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--red) !important;
}
.block2_button a:hover::after { transform: translateX(4px); }
.block2_button.active a,
.block2_button a.active {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  color: #fff !important;
}

/* убираем старую красную полосу под активной кнопкой и белую подложку панели */
.block2_button.active { border-bottom: none !important; }
.block2 .card, .block2 .card-body {
  background: transparent !important;
  border: none !important;
}

/* карточки подразделов */
.frame {
  border-radius: var(--radius) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--tr), transform var(--tr);
  max-width: none !important;
}
.frame img.img_index,
.collapse .frame img,
.frame img {
  width: 100% !important;
  height: 210px !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  transition: transform 0.45s ease;
}
.frame:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.frame:hover img.img_index { transform: scale(1.06); }
.frame .white_box,
.search-frame .white_box,
.collapse .white_box {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
  background: linear-gradient(180deg, rgba(16, 28, 54, 0) 40%, rgba(16, 28, 54, 0.78) 100%) !important;
  z-index: 1 !important;
}
.frame .frame_text,
.search-frame .frame_text {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  z-index: 2 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}
.frame .frame_border { display: none !important; }

/* ---------- Слайдер / hero ---------- */
.slider-item {
  border-radius: var(--radius) !important;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--tr), box-shadow var(--tr);
}
.slider-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.slider-item .sitem_name {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700 !important;
}
.carousel-control-prev, .carousel-control-next { width: 6% !important; }

/* ---------- О компании / преимущества ---------- */
#about {
  background:
    radial-gradient(800px 360px at 12% 8%, rgba(255, 255, 255, 0.04), transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%) !important;
  padding: 72px 0 80px;
}
#about .about-text { margin: 0 0 48px; }
#about .about-text h2 {
  font-weight: 800 !important;
  color: #f5f1e8 !important;
  margin-bottom: 18px !important;
  position: relative;
  padding-bottom: 18px;
}
#about .about-text h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
}
#about .about-text p {
  color: rgba(245, 241, 232, 0.82) !important;
  font-size: 17px !important;
  line-height: 1.65 !important;
  letter-spacing: 0.01em !important;
  font-weight: 400 !important;
  max-width: 820px;
}
#about .items-block .row { row-gap: 20px; }
#about .about-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
  height: 100%;
}
#about .about-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--red);
}
#about .about-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 18px;
}
#about .about-item h3 {
  color: var(--navy) !important;
  font-weight: 700 !important;
  font-size: 19px !important;
  margin-bottom: 12px !important;
}
#about .about-item p {
  color: var(--muted) !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

/* ---------- Блок заявки (callback) ---------- */
.callback {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #232f52 100%) !important;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.callback::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 20%, rgba(255, 60, 32, 0.25), transparent 60%),
    radial-gradient(400px 200px at 10% 90%, rgba(255, 138, 60, 0.12), transparent 60%);
  pointer-events: none;
}
.callback h2, .callback .block_name, .callback p { color: #fff !important; }

/* кнопки */
.btn-primary, .callback-btn, #callback-btn,
.add-prod-btn, .view-all-btn, .specify_box a {
  background: var(--red) !important;
  border: none !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 60, 32, 0.35);
  transition: background var(--tr), box-shadow var(--tr), transform var(--tr) !important;
}
.btn-primary:hover, .callback-btn:hover, #callback-btn:hover,
.add-prod-btn:hover, .view-all-btn:hover, .specify_box a:hover {
  background: var(--red-dark) !important;
  box-shadow: 0 10px 26px rgba(255, 60, 32, 0.45);
  transform: translateY(-2px);
}

/* поля форм */
input.form-control, textarea.form-control, select.form-control, #tin_input {
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  padding: 12px 16px !important;
  transition: border-color var(--tr), box-shadow var(--tr);
}
input.form-control:focus, textarea.form-control:focus, #tin_input:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 4px var(--red-soft) !important;
  outline: none;
}

/* ---------- Внутренние страницы ---------- */
.breadcrumb {
  background: transparent !important;
  padding: 14px 0 !important;
  font-size: 13.5px;
}
.breadcrumb-item a { color: var(--muted) !important; }
.breadcrumb-item a:hover { color: var(--red) !important; }
.breadcrumb-item.active { color: var(--navy) !important; font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: #c3c7d2 !important; }

.title_body {
  font-size: 30px !important;
  font-weight: 800 !important;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.title_body::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red), #ff8a3c);
}

/* сайдбар каталога */
ul.catalog {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 12px !important;
  list-style: none;
}
ul.catalog li { list-style: none; }
ul.catalog > li > a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--navy) !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14.5px;
}
ul.catalog > li > a:hover { background: var(--red-soft); color: var(--red) !important; }
ul.catalog ul { padding-left: 10px !important; }
ul.catalog ul li a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted) !important;
  font-size: 13.5px;
  border-left: 2px solid transparent;
}
ul.catalog ul li a:hover { color: var(--red) !important; background: var(--red-soft); }

/* ---------- Таблицы прайсов ---------- */
.items table, .content table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}
.items table th, .content table th {
  background: var(--navy) !important;
  color: #fff !important;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 16px !important;
  border: none !important;
  white-space: nowrap;
}
.items table td, .content table td {
  padding: 13px 16px !important;
  border: none !important;
  border-bottom: 1px solid var(--line) !important;
  vertical-align: middle;
  color: var(--ink);
}
.items table tbody tr:nth-child(even) td, .content table tbody tr:nth-child(even) td {
  background: #fafbfd;
}
.items table tbody tr:hover td, .content table tbody tr:hover td {
  background: var(--red-soft) !important;
}
.items table tbody tr:last-child td, .content table tbody tr:last-child td {
  border-bottom: none !important;
}
/* название товара */
.items table td:first-child a, .content table td:first-child a {
  color: var(--navy) !important;
  font-weight: 600;
}
.items table td:first-child a:hover, .content table td:first-child a:hover { color: var(--red) !important; }
/* количество — инпут */
.items table input, .content table input {
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  padding: 7px 10px !important;
  width: 72px;
  text-align: center;
  font-weight: 600;
}
.items table input:focus, .content table input:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px var(--red-soft);
  outline: none;
}
/* кнопка корзины */
.add-to-cart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  background: var(--red-soft) !important;
  color: var(--red) !important;
  transition: background var(--tr), color var(--tr), transform var(--tr);
}
.add-to-cart:hover {
  background: var(--red) !important;
  color: #fff !important;
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(255, 60, 32, 0.4);
}

/* карточки категорий на страницах каталога */
.white_box, .search-frame { border-radius: var(--radius); }

/* заметка вместо цен */
.price-note {
  margin: 14px 0 4px;
  padding: 12px 18px;
  background: var(--red-soft);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
}
.price-note a { color: var(--red) !important; font-weight: 700; }

/* ---------- Услуги ---------- */
.services h4.serv_txt {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px !important;
  font-weight: 800 !important;
  margin: 28px 0 14px;
}
.services h4.serv_txt::before {
  content: "";
  width: 6px;
  height: 26px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--red), #ff8a3c);
  flex: none;
}
.services .serv_box {
  background: var(--card) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 24px 26px !important;
  border: 1px solid var(--line);
  transition: box-shadow var(--tr), transform var(--tr);
}
.services .serv_box:hover { box-shadow: var(--shadow-md) !important; transform: translateY(-2px); }
.services .serv_box h6 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 14px;
}
.services .price { margin: 8px 0 4px; color: var(--muted); }
.services .serv_zaproc, .services .serv_free {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}
.services .serv_zaproc { background: var(--red-soft); color: var(--red) !important; }
.services .serv_free { background: rgba(22, 163, 74, 0.12); color: #16a34a !important; }

/* ---------- Контакты ---------- */
.sub-cont-info a { color: var(--navy) !important; font-weight: 600; }
.sub-cont-info a:hover { color: var(--red) !important; }

/* ---------- Подвал ---------- */
#desktop-footer {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%) !important;
  color: #c9d2e4 !important;
  margin-top: 60px;
}
#desktop-footer .footer_head {
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
}
#desktop-footer a { color: #c9d2e4 !important; }
#desktop-footer a:hover { color: var(--red) !important; }
#desktop-footer .Lorem { color: #93a0bd !important; }
#desktop-footer .Terms_line, #desktop-footer .Terms_line2 { color: #93a0bd !important; }
#desktop-footer .Terms_line:hover, #desktop-footer .Terms_line2:hover { color: #fff !important; }
#desktop-footer .message_text, #desktop-footer .phone_text { color: #fff !important; font-weight: 600; }
#desktop-footer .message_text:hover, #desktop-footer .phone_text:hover { color: var(--red) !important; }
#desktop-footer .social a {
  display: inline-flex;
  border-radius: 50%;
  transition: transform var(--tr), box-shadow var(--tr);
}
#desktop-footer .social a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

#mobile-footer {
  background: var(--navy-2) !important;
  color: #c9d2e4 !important;
}
#mobile-footer .footer_head { color: #ffffff !important; font-weight: 800 !important; }
#mobile-footer a { color: #c9d2e4 !important; }
#mobile-footer a:hover { color: var(--red) !important; }
#mobile-footer .map_point { color: #c9d2e4 !important; }
#mobile-footer .copyright, #mobile-footer .onva { color: #93a0bd !important; }

/* ---------- Адаптив ---------- */
@media (max-width: 991px) {
  .title_body { font-size: 24px !important; }
  .block_name { font-size: 24px !important; }
}

@media (max-width: 992px) {
  /* контент и сайдбар — друг под другом, таблица листается */
  .content .row > .col-sm-3,
  .content .row > .col-sm-9 { flex: 0 0 100% !important; max-width: 100% !important; }
  .content .items { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .content .items table { min-width: 680px; }
}

/* ---------- Мобильная версия (≤992px) ---------- */
@media (max-width: 992px) {
  #mobile-menu {
    padding: 10px 0 !important;
    box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(16, 28, 54, 0.08) !important;
  }
  #mobile-menu .container { padding-left: 16px; padding-right: 16px; }
  #mobile-menu .row { align-items: center; }
  #mobile-menu .logo_head { max-height: 38px !important; max-width: 100%; margin-right: 0; }
  #mobile-menu .search input.form-control {
    border-radius: 999px !important;
    font-size: 13px !important;
    background: var(--bg) !important;
  }
  #mobile-menu .toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--navy);
    color: #fff;
    position: relative;
  }
  /* CSS-бургер вместо иконки Font Awesome */
  #mobile-menu .toggle i.fa-bars { display: none; }
  #mobile-menu .toggle::before {
    content: "";
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff;
  }

  /* выезжающее меню */
  .mobile_nav {
    background: var(--navy) !important;
    padding: 18px 22px;
    box-shadow: var(--shadow-lg);
  }
  .mobile_nav ul { padding: 0; margin: 0; }
  .mobile_nav ul li { list-style: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .mobile_nav ul li:last-child { border-bottom: none; }
  .mobile_nav ul li a {
    display: block;
    padding: 14px 4px;
    color: #fff !important;
    font-size: 16px;
  }
  .mobile_nav ul li a:hover { color: var(--red) !important; padding-left: 10px; }

  /* карточки каталога: 2 в ряд */
  .block2 .collapse .col-sm-3,
  .block2 .card-body .col-sm-3 { flex: 0 0 50%; max-width: 50%; }
  .block2_button { margin-bottom: 12px; }
  .block2_button a { padding: 16px 18px !important; font-size: 15px; }

  /* кнопки категорий: 2 в ряд на узких экранах */
  .block2 .row > .col-sm-4 { flex: 0 0 50%; max-width: 50%; }
}

@media (max-width: 575px) {
  .services .serv_box { padding: 18px !important; }
  .block2 .row > .col-sm-4 { flex: 0 0 100%; max-width: 100%; }
  .block2 .collapse .col-sm-3,
  .block2 .card-body .col-sm-3 { flex: 0 0 50%; max-width: 50%; }
}

/* ---------- Корзина отключена: только заявка / обратный звонок ---------- */
#mobile-menu .cart-mobile,
.cart-mobile,
a[href="/cart"] {
  display: none !important;
}

/* ---------- Фото услуг ---------- */
.serv_photo { margin-bottom: 18px; }
.serv_photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 767px) {
  .serv_photo img { height: 190px; }
}

/* ---------- Hero: кроссфейд-слайдер ---------- */
.apex-hero-slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 460px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.apex-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.apex-slide.is-active { opacity: 1; }
.apex-slide-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: rgba(20, 17, 10, 0.72);
  color: #f5f1e8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.apex-slider-dots {
  position: absolute;
  right: 16px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.apex-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--tr), transform var(--tr);
}
.apex-dot.is-active { background: #fff; transform: scale(1.15); }

/* ---------- Слайд-шоу подгрупп каталога ---------- */
.apex-subgroups { padding: 64px 0 76px; background: var(--bg); }
.apex-subgroups-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
  transition: opacity 0.35s ease;
}
.apex-subgroups-row.is-fading { opacity: 0; }
.apex-sub-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.apex-sub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--red);
  text-decoration: none;
}
.apex-sub-img {
  display: block;
  height: 190px;
  background-size: cover;
  background-position: center;
}
.apex-sub-body { padding: 18px 20px 20px; }
.apex-sub-name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.apex-sub-sub { display: block; font-size: 13.5px; color: var(--muted); }

@media (max-width: 991px) {
  .apex-hero-slider { min-height: 340px; margin-top: 28px; }
}
@media (max-width: 767px) {
  .apex-subgroups-row { grid-template-columns: 1fr; }
  .apex-sub-img { height: 170px; }
}

/* ---------- Компактная главная: всё на одном экране ---------- */
.apex-hero-inner { padding: 40px 20px 34px; }
.apex-hero-grid { gap: 32px; }
.apex-hero-kicker { margin-bottom: 14px; font-size: 12px; }
.apex-hero-title { font-size: 40px !important; line-height: 1.12 !important; margin-bottom: 14px !important; }
.apex-hero-sub { font-size: 15px !important; margin-bottom: 22px !important; }
.apex-hero-slider { min-height: 330px; }
.apex-hero-stats { margin-top: 28px; }
.apex-subgroups { padding: 26px 0 36px; }
.apex-subgroups-row { margin-top: 0; }
.apex-sub-img { height: 150px; }
.apex-sub-body { padding: 14px 18px 16px; }
.apex-sub-name { font-size: 18px; }
@media (max-width: 991px) {
  .apex-hero-slider { min-height: 260px; }
}

/* ---------- Статус формы обратного звонка ---------- */
.callback-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.callback-status.is-ok {
  background: rgba(46, 160, 90, 0.14);
  border: 1px solid rgba(46, 160, 90, 0.45);
  color: #2ea05a;
}
.callback-status.is-err {
  background: rgba(220, 60, 40, 0.12);
  border: 1px solid rgba(220, 60, 40, 0.45);
  color: #e06050;
}
