/* ==========================================================================
   Ergonomica Tomsk — Royal 2026 Design Upgrade (Variant 5 / G14)
   Подключается последним в header.tpl поверх stylesheet2.css и royal2.css.
   Не меняет JS-хуки OpenCart Royal, OCMOD-якоря и логику .product-change.
   ========================================================================== */

/* --- 1. Базовый фон и типографика 2026 --- */
body {
  background-color: #f8fafc;
  color: #1e293b;
  font-family: "Roboto", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1e293b;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
a:hover,
a:focus {
  color: #589318;
  text-decoration: none;
}

/* Контейнеры Royal оставляем прозрачными на мягком фоне #f8fafc */
.nobackground {
  background: transparent !important;
}

/* --- 2. Верхняя инфо-полоса #top --- */
nav#top {
  background-color: #f1f5f9 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  margin-bottom: 0;
  min-height: 36px;
  padding: 5px 0;
}
#top .btn-link,
#top-links li,
#top-links a {
  color: #475569 !important;
  font-size: 12.5px;
  text-shadow: none;
}
#top .btn-link:hover,
#top-links li:hover,
#top-links a:hover,
#top-links .dropdown-menu a:hover {
  color: #589318 !important;
}
.erg-top-showroom {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.35;
}
.erg-top-showroom-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6cae24;
  box-shadow: 0 0 0 3px rgba(108, 174, 36, 0.2);
  display: inline-block;
  flex-shrink: 0;
}
.erg-top-showroom a {
  color: #0f172a;
  font-weight: 600;
  border-bottom: 1px dashed #94a3b8;
}
.erg-top-showroom a:hover {
  color: #589318;
  border-bottom-color: #589318;
}
.erg-top-sep {
  color: #cbd5e1;
  margin: 0 3px;
}

/* --- 3. Основная шапка .top-header (логотип, мессенджеры, поиск, корзина — без телефона) --- */
.top-header {
  background-color: #ffffff;
  padding: 14px 0 16px;
  border-bottom: 1px solid #edf2f7;
}
.top-header .phone {
  display: none !important;
}
#logo img {
  max-height: 68px;
  width: auto;
  height: auto;
}
@media (min-width: 768px) {
  .top-header > .container > .row {
    display: flex;
    align-items: center;
  }
  .top-header > .container > .row::before,
  .top-header > .container > .row::after {
    display: none !important;
  }
  .top-header #logo {
    margin: 0;
  }
  .top-header .erg-hdr-msg-strip {
    margin: 0 0 8px;
  }
  .top-header #search {
    margin-top: 0;
    margin-bottom: 0;
  }
  .top-header #cart > .btn {
    margin-top: 30px !important;
  }
}
@media (max-width: 767px) {
  .top-header #cart > .btn {
    margin-top: 10px !important;
  }
}
.scaleslide,
.vopmen,
.opacityhv {
  height: auto;
}

/* Поле поиска #search */
#search {
  margin-top: 8px;
  margin-bottom: 4px;
}
#search .input-lg {
  height: 42px;
  border: 1.5px solid #cbd5e1;
  border-right: none;
  border-radius: 10px 0 0 10px !important;
  background-color: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  padding: 0 14px;
  box-shadow: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
#search .input-lg:focus {
  background-color: #ffffff;
  border-color: #6cae24;
  box-shadow: 0 0 0 3px rgba(108, 174, 36, 0.14);
}
#search .btn-lg {
  height: 42px;
  background: #6cae24 !important;
  border: 1.5px solid #6cae24 !important;
  border-radius: 0 10px 10px 0 !important;
  color: #ffffff !important;
  padding: 0 18px !important;
  margin: 0 !important;
  font-size: 14px;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
#search .btn-lg:hover,
#search .btn-lg:focus {
  background: #589318 !important;
  border-color: #589318 !important;
  color: #ffffff !important;
}

/* Корзина в шапке */
#cart > .btn {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 8px 14px !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
#cart > .btn:hover,
#cart.open > .btn {
  background: #ffffff !important;
  border-color: #6cae24 !important;
  color: #0f172a !important;
}
#cart #cart-total {
  font-weight: 700;
  font-size: 13.5px;
  color: #0f172a;
}
#cart .dropdown-menu {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

/* --- 4. Главная навигация #top-menu / #menu --- */
#top-menu {
  background: #222930 !important;
  border-bottom: 2px solid #76b82a !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
#menu {
  background: transparent !important;
  border: none !important;
  min-height: 46px;
}
#menu .nav > li > a {
  color: #f8fafc !important;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.15px;
  text-shadow: none !important;
  transition: background-color 0.18s ease, color 0.18s ease;
}
#menu .nav > li > a:hover,
#menu .nav > li.open > a,
#menu .nav .hidem > li > a:hover,
#menu .nav .hidem > li.open > a,
#menu .nav > li.activetopmenu > a:hover {
  background: #6cae24 !important;
  color: #ffffff !important;
}
@media (min-width: 992px) {
  li.activetopmenu {
    background: #313b44 !important;
  }
  /* Первая кнопка «Каталог товаров» в меню — фирменный зелёный акцент */
  #menu .nav > li.hidev > a {
    background: #6cae24 !important;
    color: #ffffff !important;
    font-weight: 700;
  }
  #menu .nav > li.hidev > a:hover,
  #menu .nav > li.hidev.open > a {
    background: #589318 !important;
  }
}
#menu .dropdown-menu,
.dropdown-menu2 {
  border-top: 3px solid #6cae24 !important;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14) !important;
}
#menu .dropdown-inner li a:hover,
.dropdown-inner1 ul li a:hover,
#menu li .dropdown-submenu a:hover,
.stmver li a:hover,
.stmver li:hover,
.stmver li a:hover .arrowvertmenu,
.v3hover a:hover {
  color: #589318 !important;
}
.menuv-allv,
.menuv-all {
  color: #589318 !important;
  font-weight: 600;
}
#menu .btn-navbar {
  background-color: #6cae24 !important;
  border-color: #589318 !important;
  border-radius: 8px;
}
#menu .btn-navbar:hover,
#menu .btn-navbar:focus {
  background-color: #589318 !important;
}

/* --- 5. Единая система кнопок (.btn-cart, .btn-primary, .btn-send) --- */
.btn-cart,
.btn-primary,
.btn-send,
.btn-info {
  background: #6cae24 !important;
  border: 1.5px solid #6cae24 !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1px !important;
  line-height: 1.25 !important;
  padding: 11px 16px !important;
  text-transform: none !important;
  box-shadow: 0 2px 6px rgba(108, 174, 36, 0.22);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}
.btn-cart:hover,
.btn-cart:focus,
.btn-primary:hover,
.btn-primary:focus,
.btn-send:hover,
.btn-send:focus,
.btn-info:hover {
  background: #589318 !important;
  border-color: #589318 !important;
  color: #ffffff !important;
  box-shadow: 0 5px 14px rgba(88, 147, 24, 0.3);
  text-decoration: none;
}

/* Контурная кнопка «Узнать цену» / «Подробнее» для товаров с ценой по запросу (0 ₽) */
a.btn-cart.erg-btn-quote,
.btn-cart.erg-btn-quote {
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: none !important;
}
a.btn-cart.erg-btn-quote:hover,
.btn-cart.erg-btn-quote:hover {
  background: #f0f9e8 !important;
  color: #467812 !important;
  border-color: #6cae24 !important;
}

/* Дополнительные иконки-кнопки в карточке */
.btn-wishlist:hover,
.btn-compare:hover,
.btn-quickview:hover,
.btn-instock:hover {
  background: #6cae24 !important;
  border-color: #6cae24 !important;
  color: #ffffff !important;
}

/* --- 6. Новые блоки главной страницы Варианта 5 (УТП Томска + Bento разделов) --- */
.erg-home-top-wrap {
  margin-top: 20px;
  margin-bottom: 12px;
}

/* Полоса 4 локальных преимуществ Томска — широкая строка и крупная контрастная типографика */
.erg-usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.erg-usp-card {
  background: #ffffff;
  border: 1px solid #d5e0eb;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}
.erg-usp-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #eef8e3;
  color: #4d8514;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.erg-usp-icon svg {
  width: 23px;
  height: 23px;
  stroke: #4d8514;
}
.erg-usp-title {
  font-size: 16.5px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 5px;
  letter-spacing: 0.1px;
}
.erg-usp-desc {
  font-size: 14px;
  font-weight: 400;
  color: #475569;
  line-height: 1.5;
}

/* Главный заголовок H1 + подзаголовок на главной */
.erg-home-hero-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 6px 0 16px;
}
.erg-home-h1 {
  font-size: 25px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  letter-spacing: 0;
}
.erg-home-h1-sub {
  font-size: 15px;
  font-weight: 400;
  color: #475569;
}

/* Bento-витрина 6 ключевых разделов каталога — крупный, но мягкий для глаз текст */
.erg-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.erg-bento-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none !important;
  overflow: hidden;
}
.erg-bento-card:hover {
  transform: translateY(-3px);
  border-color: #76b82a;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}
.erg-bento-body {
  min-width: 0;
}
.erg-bento-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  color: #3f6e10;
  background: #eef8e3;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.erg-bento-title {
  display: block;
  font-size: 17.5px;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.32;
  margin-bottom: 6px;
}
.erg-bento-card:hover .erg-bento-title {
  color: #467812;
}
.erg-bento-sub {
  display: block;
  font-size: 14.5px;
  font-weight: 400;
  color: #475569;
  line-height: 1.48;
}
.erg-bento-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef7e3 100%);
  border: 1px solid #e2efd3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.18s ease;
}
.erg-bento-icon svg {
  width: 28px;
  height: 28px;
  stroke: #467812;
}
.erg-bento-card:hover .erg-bento-icon {
  transform: scale(1.06);
  background: linear-gradient(135deg, #eef7e3 0%, #dcf0c4 100%);
}

/* --- 7. Заголовки товарных секций главной (.erg-section-head) --- */
.erg-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.erg-section-title {
  font-size: 21px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  letter-spacing: 0;
  position: relative;
  padding-left: 13px;
}
.erg-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 4px;
  background: #6cae24;
}
.erg-see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #467812 !important;
  background: #f0f9e8;
  border: 1px solid #d5ebb8;
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}
.erg-see-all:hover {
  background: #6cae24;
  border-color: #6cae24;
  color: #ffffff !important;
  transform: translateX(2px);
}

/* --- 8. Карточки товаров (.product-thumb) — Сквозной редизайн 2026 --- */
.product-thumb,
.product-change .product-thumb {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
  padding: 12px 12px 14px !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.product-change .product-thumb::before {
  display: none !important;
}
.product-layout2,
.product-layout3,
.product-layout4,
.product-layout5 {
  border: 1px solid transparent !important;
}
.product-thumb:hover,
.product-change .product-thumb:hover,
.changebr:hover {
  border-color: rgba(108, 174, 36, 0.65) !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.09);
}

/* На главной странице делаем карточки в каруселях и табах идеально одной высоты */
.common-home .owl-carousel .owl-item {
  padding: 4px 7px 10px;
}
.common-home .owl-carousel .product-layout,
.common-home .owl-carousel .product-layout2 {
  margin: 0 !important;
  padding: 0 !important;
}
.common-home .owl-carousel .product-thumb,
.common-home #product-tab .product-thumb {
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 392px;
  overflow: hidden;
}
.common-home .owl-carousel .product-thumb:hover,
.common-home #product-tab .product-thumb:hover {
  transform: translateY(-3px);
}

/* Подиум фотографии товара */
.common-home .owl-carousel .product-thumb .image,
.common-home #product-tab .product-thumb .image {
  height: 196px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 6px;
}
.common-home .owl-carousel .product-thumb .image a,
.common-home #product-tab .product-thumb .image a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.common-home .owl-carousel .product-thumb .image img,
.common-home #product-tab .product-thumb .image img {
  max-height: 184px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.product-thumb .image :hover {
  opacity: 1 !important;
}
.product-thumb:hover .image img {
  transform: scale(1.03);
}

/* Иконки быстрого просмотра / избранного поверх фото */
.effect-phoebe p a {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.effect-phoebe p a:hover {
  color: #589318 !important;
}

/* Заголовок товара и скрытие склеенного обрывка тех. описания в плитках/каруселях */
.product-thumb .caption {
  padding: 4px 4px 6px !important;
  text-align: left !important;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-thumb h4 {
  margin: 4px 0 6px !important;
  height: 40px !important;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4 !important;
  font-weight: 400 !important;
  font-size: 14px !important;
}
.product-thumb h4 a {
  color: #1e293b !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}
.product-thumb h4 a:hover {
  color: #589318 !important;
}

/* Скрываем слипшийся сырой обрывок описания в каруселях и сетке (оставляя в .product-list) */
.common-home .owl-carousel .product-thumb .caption > p:not(.price),
.common-home #product-tab .product-thumb .caption > p:not(.price),
.product-grid .product-thumb .caption > p:not(.price) {
  display: none !important;
}

/* Рейтинг: тёплое золото вместо кирпичного */
.product-thumb .rating {
  padding-bottom: 6px !important;
  margin-top: auto;
}
.rating .fa-star,
.rating .fa-star + .fa-star-o,
.glyphicon-star,
#review .fa-stack {
  color: #f59e0b !important;
}
.rating .fa-star-o {
  color: #cbd5e1 !important;
  font-size: 12px;
}

/* Цена товара — спокойный лёгкий шрифт без жирного перегруза + отступ перед ₽ */
.product-thumb .price {
  color: #1e293b !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  padding-bottom: 8px !important;
  margin-bottom: 0 !important;
  letter-spacing: 0.25px;
}
.erg-rub {
  display: inline-block;
  margin-left: 3px;
  font-weight: 400;
  color: #475569;
  font-size: 0.92em;
}
.product-thumb .price-new {
  color: #15803d !important;
  font-weight: 500 !important;
}
.product-thumb .price-old {
  color: #94a3b8 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  margin-left: 6px;
}
.product-thumb .price.erg-price-request,
.product-thumb .price .price-on-request {
  font-size: 13.5px !important;
  font-weight: 400 !important;
  color: #475569 !important;
  line-height: 1.35 !important;
  min-height: 28px;
  display: flex;
  align-items: center;
}

/* Кнопка в карточке на главной — на всю ширину карточки */
.common-home .owl-carousel .product-thumb .cart,
.common-home #product-tab .product-thumb .cart {
  text-align: center;
  padding-top: 2px;
}
.common-home .owl-carousel .product-thumb .cart .btn-cart,
.common-home #product-tab .product-thumb .cart .btn-cart {
  width: 100%;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px !important;
}

/* --- 9. Стрелки и точки Owl Carousel --- */
.owl-carousel .owl-buttons div {
  opacity: 0.92 !important;
  background: #ffffff !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}
.owl-carousel .owl-buttons div i {
  font-size: 15px !important;
  margin: 0 !important;
  color: #1e293b !important;
}
.owl-carousel .owl-buttons div:hover {
  background: #6cae24 !important;
  border-color: #6cae24 !important;
}
.owl-carousel .owl-buttons div:hover i {
  color: #ffffff !important;
}
.owl-controls .owl-page.active span {
  background: #6cae24 !important;
}

/* Скрытие пустой карусели #carousel0 и облагораживание баннеров #carousel1 */
#carousel0:empty {
  display: none !important;
}
#carousel1 .item img {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

/* --- 10. Вкладки #product-tab («Хит продаж / Новинки / Рекомендуемые / Акции») --- */
#product-tab {
  margin-top: 28px;
}
#product-tab .nav-tabs,
.nav-tabs.mod {
  border-bottom: none !important;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px !important;
}
.nav-tabs.mod > li {
  float: none;
  margin-bottom: 0;
}
.nav-tabs.mod > li > a {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 999px !important;
  padding: 8px 18px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  transition: all 0.18s ease;
}
.nav-tabs.mod > li > a h2 {
  font-size: 14px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  color: inherit !important;
}
.nav-tabs.mod > li > a:hover {
  border-color: #6cae24 !important;
  color: #467812 !important;
}
.nav-tabs.mod > li.active > a,
.nav-tabs.mod > li.active > a:focus,
.nav-tabs.mod > li.active > a:hover {
  background: #222930 !important;
  border-color: #222930 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(34, 41, 48, 0.18);
}
.nav-tabs.mod > li.active > a h2 {
  color: #ffffff !important;
}

/* Обычные табы в карточке товара */
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
  border-bottom-color: #6cae24 !important;
  color: #0f172a !important;
}
.nav-tabs > li > a:hover {
  color: #589318 !important;
}

/* --- 11. Блок новостей и статей Aridius + Последние отзывы на главной --- */
.common-home .product-layout3 .product-thumb,
.common-home #rev_carusel0 .product-thumb {
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
}
.buttonsaridius_news a,
.buttonsall_news a {
  color: #467812 !important;
  font-weight: 700;
}
.buttonsaridius_news a:hover,
.buttonsall_news a:hover {
  color: #589318 !important;
}

/* Компактный локальный SEO-блок перед картой на главной */
.erg-home-seo-wrap {
  margin: 26px 0 32px;
}
.erg-home-seo-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
}
.erg-home-seo-box h2 {
  font-size: 19px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  margin: 0 0 12px !important;
  line-height: 1.35 !important;
}
.erg-home-seo-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.erg-home-seo-cols p {
  font-size: 15px !important;
  font-weight: 400;
  line-height: 1.62 !important;
  color: #475569;
  margin: 0 0 12px;
}
.erg-home-seo-cols p:last-child {
  margin-bottom: 0;
}
.erg-home-seo-cols strong {
  font-weight: 500;
  color: #1e293b;
}
.erg-home-seo-cols a {
  color: #467812;
  font-weight: 500;
  border-bottom: 1px solid rgba(70, 120, 18, 0.3);
}
.erg-home-seo-cols a:hover {
  color: #589318;
  border-bottom-color: #589318;
}
@media (max-width: 767px) {
  .erg-home-seo-box {
    padding: 18px 20px;
  }
  .erg-home-seo-cols {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .erg-home-seo-cols p {
    font-size: 14.5px !important;
  }
}

/* --- 12. Виджет обратного звонка и кнопка наверх --- */
.circleout {
  background-color: #6cae24 !important;
}
a.scup i {
  color: #6cae24 !important;
}
a.scup i:hover {
  color: #589318 !important;
}

/* --- 13. Карта шоурума и Подвал footer --- */
#map_canvas {
  background: #e2e8f0;
  overflow: hidden;
}
.block-contacts .info-block {
  background: rgba(24, 32, 38, 0.94) !important;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
}
footer {
  background-color: #182026 !important;
  color: #cbd5e1;
}
footer h5 {
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.2px;
}
footer a:hover,
footer .list-unstyled li a:hover,
footer .fa-ul a:hover {
  color: #8fd147 !important;
}

/* Выравнивание поля e-mail и кнопки «Оптовый прайс» в подвале ровно в одну линию */
footer .mailletters.input-group {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
}
footer .mailletters #mail_letters {
  height: 44px !important;
  min-height: 44px !important;
  border: 1.5px solid #475569 !important;
  border-right: none !important;
  border-radius: 9px 0 0 9px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-size: 13.5px !important;
  line-height: 44px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  box-shadow: none !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
footer .mailletters #mail_letters:focus {
  border-color: #6cae24 !important;
}
footer .mailletters .input-group-btn {
  width: auto !important;
  display: flex !important;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
}
footer .mailletters .btn-send {
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border-radius: 0 9px 9px 0 !important;
  border: 1.5px solid #6cae24 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
footer .mailletters .btn-send:hover,
footer .mailletters .btn-send:focus {
  border-color: #589318 !important;
  background: #589318 !important;
}

/* Нормализация текста «О нашем магазине», вставленного когда-то из MS Word с 24pt/14pt */
footer .aboutus_footer,
footer .aboutus_footer p,
footer .aboutus_footer span {
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: #cbd5e1 !important;
}
footer .aboutus_footer p:first-child span {
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

/* Переключатели вида Сетка / Список в категориях */
.btn-listgrid,
.btn-listgrid:hover,
.btn-listgrid:focus,
.btn-listgrid.active {
  color: #589318 !important;
}

/* --- 14. Мобильная и планшетная адаптивность --- */
@media (max-width: 991px) {
  .erg-usp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .erg-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .erg-top-showroom {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .erg-top-showroom-extra {
    display: none;
  }
  .erg-home-h1 {
    font-size: 21px !important;
  }
  .erg-usp-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .erg-usp-card {
    padding: 13px 15px;
  }
  .erg-usp-title {
    font-size: 15px;
  }
  .erg-usp-desc {
    font-size: 13.5px;
  }
  .erg-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 22px;
  }
  .erg-bento-card {
    padding: 14px;
    gap: 10px;
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .erg-bento-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .erg-bento-icon svg {
    width: 22px;
    height: 22px;
  }
  .erg-bento-title {
    font-size: 15px;
  }
  .erg-bento-sub {
    font-size: 13px;
  }
  .erg-section-head {
    margin: 22px 0 10px;
  }
  .erg-section-title {
    font-size: 17.5px !important;
  }
  .erg-see-all {
    font-size: 12px;
    padding: 5px 11px;
  }
  .common-home .owl-carousel .product-thumb,
  .common-home #product-tab .product-thumb {
    min-height: 345px;
  }
  .common-home .owl-carousel .product-thumb .image,
  .common-home #product-tab .product-thumb .image {
    height: 160px;
  }
  .common-home .owl-carousel .product-thumb .image img,
  .common-home #product-tab .product-thumb .image img {
    max-height: 150px;
  }
}

/* ==========================================================================
   v6 (G17): Умный живой поиск, CRO карточки товара, быстрые чипсы и 152-ФЗ
   ========================================================================== */

/* --- 14. Выпадающий виджет живого поиска в шапке (#search) --- */
#search {
  position: relative;
}
.erg-live-search-drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  text-align: left;
}
.erg-ls-hint {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 7px 14px;
  font-size: 12.5px;
  color: #475569;
}
.erg-ls-list {
  max-height: 390px;
  overflow-y: auto;
}
.erg-ls-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none !important;
  color: #0f172a !important;
  transition: background 0.15s ease;
}
.erg-ls-item:hover {
  background: #f8fafc;
}
.erg-ls-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.erg-ls-meta {
  min-width: 0;
  flex: 1;
}
.erg-ls-name {
  font-size: 14px;
  font-weight: 400;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.erg-ls-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.erg-ls-stock {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
}
.erg-ls-stock.is-in {
  background: #dcfce7;
  color: #166534;
}
.erg-ls-stock.is-order {
  background: #f1f5f9;
  color: #475569;
}
.erg-ls-price {
  font-size: 14.5px;
  font-weight: 500;
  color: #0f172a;
}
.erg-ls-old {
  font-size: 12.5px;
  color: #94a3b8;
  text-decoration: line-through;
}
.erg-ls-req {
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
}
.erg-ls-all {
  display: block;
  text-align: center;
  padding: 10px 14px;
  background: #f8fafc;
  color: #4d8515 !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none !important;
  border-top: 1px solid #e2e8f0;
  transition: background 0.15s ease;
}
.erg-ls-all:hover {
  background: #eef7e3;
  color: #3a680d !important;
}
.erg-ls-empty {
  padding: 14px 16px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
}
.erg-ls-empty a {
  color: #4d8515;
  cursor: pointer;
}

/* --- 15. Блок локального доверия Томска на карточке товара --- */
.erg-product-trust-card {
  margin: 14px 0 18px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.erg-ptc-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 6px 0;
}
.erg-ptc-item + .erg-ptc-item {
  border-top: 1px dashed #e2e8f0;
}
.erg-ptc-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef7e3;
  color: #5b991b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.erg-ptc-body strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.35;
}
.erg-ptc-body span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #475569;
  line-height: 1.4;
}
.erg-ptc-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}
.erg-ptc-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.erg-ptc-tel {
  font-size: 14px;
  font-weight: 500;
  color: #0f172a !important;
  text-decoration: none !important;
}
.erg-ptc-tel:hover {
  color: #6cae24 !important;
}
.erg-ptc-cb {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155 !important;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none !important;
}
.erg-ptc-cb:hover {
  border-color: #6cae24;
  color: #4d8515 !important;
}

/* Кнопка запроса актуальной цены для товаров с 0 ₽ */
.erg-btn-price-inquiry {
  background: #6cae24 !important;
  border-color: #6cae24 !important;
  color: #ffffff !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
}
.erg-btn-price-inquiry:hover {
  background: #5a961c !important;
  border-color: #5a961c !important;
}

/* --- 16. Мобильная липкая нижняя панель покупки на карточке товара --- */
.erg-sticky-buybar {
  display: none;
}
@media (max-width: 767px) {
  .erg-sticky-buybar.is-visible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9980;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #cbd5e1;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.12);
    padding: 9px 14px;
  }
  .erg-sbb-info {
    min-width: 0;
    flex: 1;
  }
  .erg-sbb-title {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .erg-sbb-price {
    font-size: 15.5px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.25;
  }
  .erg-sbb-btn {
    appearance: none;
    border: none;
    border-radius: 9px;
    background: #6cae24;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 16px;
    white-space: nowrap;
    cursor: pointer;
  }
}

/* --- 17. Быстрые чипсы-пресеты подбора в категориях --- */
.erg-quick-chips-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 14px;
}
.erg-qchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155 !important;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.15s ease;
}
.erg-qchip:hover {
  border-color: #6cae24;
  color: #0f172a !important;
  background: #f8fafc;
}
.erg-qchip.is-active {
  background: #6cae24 !important;
  border-color: #6cae24 !important;
  color: #ffffff !important;
  font-weight: 500;
}
.erg-qchip-sort {
  margin-left: auto;
  background: #f8fafc;
}
@media (max-width: 767px) {
  .erg-quick-chips-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .erg-qchip {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .erg-qchip-sort {
    margin-left: 0;
  }
}

/* --- 18. Юридический комплаенс 152-ФЗ: плашка Cookie и чекбокс согласия в формах --- */
.erg-cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 820px;
  margin: 0 auto;
  z-index: 9990;
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25);
}
.erg-cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.erg-cookie-text {
  font-size: 13px;
  line-height: 1.45;
  color: #e2e8f0;
}
.erg-cookie-text a {
  color: #a3e635 !important;
  text-decoration: underline !important;
}
.erg-cookie-btn {
  appearance: none;
  border: none;
  border-radius: 8px;
  background: #6cae24;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 18px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.erg-cookie-btn:hover {
  background: #5a961c;
}
@media (max-width: 767px) {
  .erg-cookie-notice {
    left: 10px;
    right: 10px;
    bottom: 68px;
    padding: 11px 13px;
  }
  .erg-cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .erg-cookie-btn {
    width: 100%;
  }
}

.erg-152fz-box {
  margin: 8px 0 14px;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-align: left;
}
.erg-152fz-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
  color: #334155;
  cursor: pointer;
}
.erg-152fz-check {
  margin-top: 3px !important;
  flex-shrink: 0;
}
.erg-152fz-label a {
  color: #4d8515 !important;
  text-decoration: underline !important;
}
.erg-152fz-err {
  margin-top: 6px;
  font-size: 12px;
  color: #dc2626;
  font-weight: 500;
}

/* ==========================================================================
   v7 (G18): B2B «Комплектация офисов по счёту» + Посадочные ТОП-10 Томска
   ========================================================================== */

/* --- 19. Флагманская секция B2B на главной странице --- */
.erg-home-b2b-wrap {
  margin-top: 26px;
  margin-bottom: 10px;
}
.erg-b2b-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: 16px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}
.erg-b2b-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  color: #bef264;
  background: rgba(108, 174, 36, 0.22);
  border: 1px solid rgba(163, 230, 53, 0.42);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.erg-b2b-hero h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.32;
  color: #ffffff !important;
}
.erg-b2b-lead {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #cbd5e1;
}
.erg-b2b-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.erg-b2b-point {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  padding: 11px 13px;
}
.erg-b2b-point strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 3px;
}
.erg-b2b-point span {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
  color: #cbd5e1;
}
.erg-b2b-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.erg-b2b-links a {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 400;
  color: #e2e8f0 !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.erg-b2b-links a:hover {
  background: #6cae24;
  border-color: #6cae24;
  color: #ffffff !important;
}
.erg-b2b-cta-box {
  background: #ffffff;
  color: #0f172a;
  border-radius: 14px;
  padding: 20px 20px 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}
.erg-b2b-cta-title {
  font-size: 16.5px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 6px;
}
.erg-b2b-cta-sub {
  font-size: 13px;
  line-height: 1.45;
  color: #475569;
  margin-bottom: 14px;
}
.erg-b2b-primary-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #6cae24 !important;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s ease;
}
.erg-b2b-primary-btn:hover {
  background: #5a961c !important;
  color: #ffffff !important;
}
.erg-b2b-contacts {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.erg-b2b-tel {
  font-size: 15px;
  font-weight: 500;
  color: #0f172a !important;
  text-decoration: none !important;
}
.erg-b2b-mail {
  font-size: 13.5px;
  color: #4d8515 !important;
  text-decoration: none !important;
}
.erg-b2b-note {
  margin-top: 8px;
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 991px) {
  .erg-b2b-hero {
    grid-template-columns: 1fr;
    padding: 20px 18px;
  }
  .erg-b2b-points {
    grid-template-columns: 1fr;
  }
}

/* --- 20. Контекстный B2B-баннер и гид выбора матраса в категориях --- */
.erg-cat-helper-card {
  margin: 14px 0 18px;
  padding: 16px 20px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #cbd5e1;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.erg-cat-b2b-strip {
  border-left: 4px solid #6cae24;
}
.erg-mattress-helper {
  border-left: 4px solid #0ea5e9;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
}
.erg-ch-main {
  flex: 1;
  min-width: 0;
}
.erg-ch-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  color: #3f6e10;
  background: #eef7e3;
  padding: 2px 9px;
  border-radius: 999px;
  margin-bottom: 5px;
}
.erg-ch-title {
  font-size: 15.5px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.38;
  margin-bottom: 4px;
}
.erg-ch-sub {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.45;
}
.erg-ch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.erg-ch-pill {
  font-size: 13px;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 5px 11px;
  border-radius: 8px;
  line-height: 1.35;
}
.erg-ch-pill a {
  color: #4d8515 !important;
  text-decoration: underline !important;
}
.erg-ch-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.erg-ch-btn {
  display: inline-block;
  background: #6cae24 !important;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s ease;
}
.erg-ch-btn:hover {
  background: #5a961c !important;
  color: #ffffff !important;
}
.erg-ch-mail {
  font-size: 12.5px;
  color: #475569 !important;
  text-decoration: none !important;
}
.erg-ch-mail:hover {
  color: #4d8515 !important;
}
@media (max-width: 767px) {
  .erg-cat-helper-card {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 15px;
  }
  .erg-ch-btn {
    width: 100%;
    text-align: center;
  }
}

/* --- 21. Экспертный гид и блок FAQPage на посадочных категориях --- */
.erg-cat-seo-guide {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  color: #334155;
  font-size: 14.5px;
  line-height: 1.6;
}
.erg-cat-seo-guide h2 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.35;
}
.erg-cat-seo-guide h2 + .erg-cat-faq,
.erg-seo-spec-grid + h2 {
  margin-top: 22px;
}
.erg-cat-seo-guide a {
  color: #4d8515;
  text-decoration: underline;
}
.erg-seo-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0 6px;
}
.erg-seo-spec-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
}
.erg-seo-spec-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.35;
}
.erg-seo-spec-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #475569;
}
.erg-cat-faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}
.erg-faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 13px 16px;
}
.erg-faq-item h3 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  line-height: 1.4;
}
.erg-faq-item p {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.55;
  color: #475569;
}
@media (max-width: 820px) {
  .erg-seo-spec-grid {
    grid-template-columns: 1fr;
  }
  .erg-cat-seo-guide {
    padding: 16px 15px;
  }
}

/* --- 22. Аккуратная типографика колонки «О нашем магазине» в подвале --- */
.aboutus_footer p,
.aboutus_footer span {
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}

/* ==========================================================================
   v8 (G19): Витрина брендов Томска (/brands/) + Мебель на заказ (Квиз)
   ========================================================================== */

/* --- 23. Полоса брендов и кнопки производства на главной странице --- */
.erg-home-brands-strip {
  margin-top: 14px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.erg-hbs-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.erg-hbs-label {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  margin-right: 4px;
}
.erg-hbs-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a !important;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none !important;
  transition: all 0.15s ease;
}
.erg-hbs-pill:hover {
  border-color: #6cae24;
  background: #eef7e3;
  color: #3a680d !important;
}
.erg-hbs-all {
  font-size: 13px;
  font-weight: 500;
  color: #4d8515 !important;
  padding: 4px 8px;
  text-decoration: none !important;
}
.erg-hbs-custom-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.erg-hbs-custom-btn:hover {
  background: #6cae24;
  color: #ffffff !important;
}
@media (max-width: 767px) {
  .erg-hbs-custom-btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- 24. Бренд-хаб /brands/ и брендовые посадочные страницы --- */
.erg-brand-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #eef7e3 100%);
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 22px 26px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.erg-brand-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #3f6e10;
  background: #ffffff;
  border: 1px solid #bbf7d0;
  padding: 3px 11px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.erg-brand-hero h1 {
  margin: 0 0 8px !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
}
.erg-brand-hero p {
  margin: 0;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.55;
  max-width: 780px;
}
.erg-brand-hero-side {
  text-align: center;
  flex-shrink: 0;
}
.erg-bh-stat {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 18px;
  margin-bottom: 8px;
}
.erg-bh-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 500;
  color: #6cae24;
  line-height: 1.1;
}
.erg-bh-stat span {
  font-size: 12px;
  color: #475569;
}
.erg-bh-all {
  font-size: 13px;
  font-weight: 500;
  color: #4d8515 !important;
  text-decoration: none !important;
}

.erg-brands-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.erg-bh-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  text-decoration: none !important;
  color: #0f172a !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.erg-bh-card:hover {
  transform: translateY(-2px);
  border-color: #6cae24;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.erg-bh-logo {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 8px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.erg-bh-name {
  margin: 0 0 4px !important;
  font-size: 17.5px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
}
.erg-bh-tag {
  font-size: 12.5px;
  font-weight: 500;
  color: #4d8515;
  margin-bottom: 8px;
}
.erg-bh-desc {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  flex: 1;
}
.erg-bh-go {
  font-size: 13.5px;
  font-weight: 500;
  color: #0f172a;
}
.erg-bh-card:hover .erg-bh-go {
  color: #4d8515;
}
.erg-extra-mfrs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Сетка товаров на брендовой странице */
.erg-brand-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 14px 0 20px;
}
.erg-bp-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.erg-bp-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}
.erg-bp-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 195px;
  margin-bottom: 10px;
  text-decoration: none !important;
}
.erg-bp-img img {
  max-width: 100%;
  max-height: 185px;
  object-fit: contain;
}
.erg-bp-stock {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
}
.erg-bp-stock.is-in {
  background: #dcfce7;
  color: #166534;
}
.erg-bp-stock.is-ord {
  background: #f1f5f9;
  color: #475569;
}
.erg-bp-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.erg-bp-title {
  margin: 0 0 8px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  flex: 1;
}
.erg-bp-title a {
  color: #0f172a !important;
  text-decoration: none !important;
}
.erg-bp-title a:hover {
  color: #4d8515 !important;
}
.erg-bp-price-row {
  margin-bottom: 10px;
  min-height: 24px;
}
.erg-bp-price {
  font-size: 17px;
  font-weight: 500;
  color: #0f172a;
}
.erg-bp-old {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 6px;
}
.erg-bp-req {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}
.erg-bp-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.erg-bp-more {
  display: inline-block;
  text-decoration: none !important;
}

@media (max-width: 991px) {
  .erg-brands-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .erg-brand-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .erg-brand-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 560px) {
  .erg-brands-hub-grid {
    grid-template-columns: 1fr;
  }
  .erg-brand-products-grid {
    grid-template-columns: 1fr;
  }
}

/* --- 25. Посадочная и 3-шаговый Калькулятор-Квиз «Мебель на заказ в Томске» --- */
.erg-cp-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  border-radius: 16px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.erg-cp-hero h1 {
  margin: 0 0 10px !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
}
.erg-cp-hero p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.55;
  max-width: 720px;
}
.erg-cp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.erg-cp-badges span {
  font-size: 12.5px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 11px;
  border-radius: 999px;
}
.erg-cp-hero-cta {
  min-width: 250px;
  text-align: center;
  flex-shrink: 0;
}
.erg-cp-hero-tel {
  margin-top: 9px;
  font-size: 13.5px;
  color: #cbd5e1;
}
.erg-cp-hero-tel a {
  color: #bef264 !important;
  font-weight: 500;
  text-decoration: none !important;
}

.erg-quiz-card {
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}
.erg-quiz-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.erg-quiz-title {
  margin: 0 0 4px !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
}
.erg-quiz-sub {
  font-size: 13.8px;
  color: #475569;
}
.erg-quiz-step-badge {
  background: #eef7e3;
  color: #3f6e10;
  font-size: 13px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 999px;
  white-space: nowrap;
}
.erg-quiz-progress {
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}
.erg-quiz-progress-bar {
  height: 100%;
  background: #6cae24;
  transition: width 0.25s ease;
}
.erg-quiz-q {
  font-size: 16px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 12px;
}
.erg-quiz-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.erg-qtype {
  display: block;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  margin: 0;
  transition: all 0.15s ease;
}
.erg-qtype input {
  display: none;
}
.erg-qtype strong {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 4px;
}
.erg-qtype span {
  display: block;
  font-size: 12.8px;
  font-weight: 400;
  color: #475569;
  line-height: 1.4;
}
.erg-qtype:hover {
  border-color: #6cae24;
}
.erg-qtype.is-selected {
  background: #eef7e3;
  border-color: #6cae24;
  box-shadow: 0 0 0 2px rgba(108, 174, 36, 0.16);
}
.erg-quiz-dims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}
.erg-quiz-contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.erg-qfield label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 5px;
}
.erg-qfield input,
.erg-qselect {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
}
.erg-qfield input:focus,
.erg-qselect:focus {
  outline: none;
  border-color: #6cae24;
}
.erg-qcheck-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 400;
  color: #334155;
  margin-top: 6px;
  margin-right: 18px;
  cursor: pointer;
}
.erg-quiz-checks-row {
  margin-top: 10px;
}
.erg-qerr {
  margin-top: 5px;
  font-size: 12px;
  color: #dc2626;
  font-weight: 500;
}
.erg-quiz-nav {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.erg-qbtn-prev {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
}
.erg-qbtn-next,
.erg-qbtn-submit {
  appearance: none;
  border: none;
  background: #6cae24;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.erg-qbtn-next:hover,
.erg-qbtn-submit:hover {
  background: #5a961c;
}
.erg-quiz-success {
  text-align: center;
  padding: 18px 10px;
}
.erg-qs-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 26px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.erg-quiz-success h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  color: #0f172a;
}
.erg-quiz-success p {
  margin: 0 auto 8px;
  max-width: 640px;
  font-size: 14.5px;
  color: #334155;
}

@media (max-width: 860px) {
  .erg-cp-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 18px;
  }
  .erg-quiz-types,
  .erg-quiz-dims,
  .erg-quiz-contacts-grid {
    grid-template-columns: 1fr;
  }
  .erg-quiz-card {
    padding: 18px 16px;
  }
}

/* ==========================================================================
   26. Contacts & Showroom Page (/contact-us/) — v9 (G20)
   ========================================================================== */
.erg-contact-wrap {
  font-family: "Roboto", "Open Sans", Arial, sans-serif;
  color: #0f172a;
}
.erg-contact-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.erg-contact-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  color: #bef264;
  background: rgba(108, 174, 36, 0.22);
  border: 1px solid rgba(163, 230, 53, 0.42);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.erg-contact-h1 {
  margin: 0 0 8px !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1.28 !important;
  color: #ffffff !important;
}
.erg-contact-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #cbd5e1;
  max-width: 660px;
}
.erg-contact-hero-actions {
  flex-shrink: 0;
  min-width: 265px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
}
.erg-contact-call-big {
  display: block;
  text-decoration: none !important;
  margin-bottom: 10px;
}
.erg-contact-call-lbl {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 2px;
}
.erg-contact-call-big strong {
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
}
.erg-contact-call-big:hover strong {
  color: #bef264;
}
.erg-contact-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.erg-contact-btn-green {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #6cae24;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  cursor: pointer;
}
.erg-contact-btn-green:hover {
  background: #5a961c;
}
.erg-contact-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f8fafc !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 8px;
  cursor: pointer;
}
.erg-contact-btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
}

.erg-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.erg-contact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
.erg-contact-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.erg-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef7e3;
  color: #4d8515;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.erg-contact-h2 {
  margin: 0 0 2px !important;
  font-size: 17.5px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
}
.erg-contact-sub {
  font-size: 13px;
  color: #64748b;
}
.erg-contact-addr-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.erg-contact-addr-line {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  color: #0f172a;
}
.erg-contact-nav-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.erg-nav-btn {
  flex: 1 1 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none !important;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.erg-nav-2gis {
  background: #19aa1e;
  color: #ffffff !important;
}
.erg-nav-2gis:hover {
  background: #148f18;
  color: #ffffff !important;
}
.erg-nav-yandex {
  background: #fc3f1d;
  color: #ffffff !important;
}
.erg-nav-yandex:hover {
  background: #e03516;
  color: #ffffff !important;
}
.erg-way-box {
  background: #f8fafc;
  border-left: 3px solid #6cae24;
  border-radius: 8px;
  padding: 12px 14px;
}
.erg-way-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 6px;
}
.erg-way-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #334155;
}
.erg-way-steps li {
  margin-bottom: 4px;
}
.erg-way-steps li:last-child {
  margin-bottom: 0;
}

.erg-contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.erg-cinfo-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 14px;
}
.erg-cinfo-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.erg-cinfo-lbl {
  color: #64748b;
  font-size: 13.5px;
  flex-shrink: 0;
}
.erg-cinfo-val {
  text-align: right;
  color: #0f172a;
}
.erg-cinfo-tel {
  font-size: 16px;
  font-weight: 500;
  color: #0f172a !important;
  text-decoration: none !important;
}
.erg-cinfo-tel:hover {
  color: #4d8515 !important;
}
.erg-cinfo-email-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.erg-cinfo-mail {
  font-weight: 500;
  color: #3f6e10 !important;
}
.erg-copy-mail-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
}
.erg-copy-mail-btn:hover {
  border-color: #6cae24;
  color: #3f6e10;
}
.erg-contact-b2b-note {
  background: #f4faec;
  border: 1px solid #d4ebb8;
  border-radius: 11px;
  padding: 12px 14px;
}
.erg-contact-b2b-note strong {
  display: block;
  font-size: 13.8px;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 4px;
}
.erg-contact-b2b-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
  color: #334155;
}

.erg-contact-map-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 18px;
}
.erg-contact-map-head {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.erg-contact-map-links {
  display: flex;
  gap: 14px;
  font-size: 13.5px;
  font-weight: 500;
}
.erg-contact-map-links a {
  color: #4d8515;
  text-decoration: none;
}
.erg-contact-map-links a:hover {
  text-decoration: underline;
}

.erg-contact-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 22px 24px;
}
.erg-contact-legend {
  font-size: 19px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  border-bottom: none !important;
  margin-bottom: 4px !important;
}
.erg-contact-form-sub {
  margin: 0 0 12px;
  font-size: 13.8px;
  color: #475569;
}
.erg-contact-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.erg-ctopic-chip {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
}
.erg-ctopic-chip:hover,
.erg-ctopic-chip.is-active {
  background: #eef7e3;
  border-color: #6cae24;
  color: #3f6e10;
  font-weight: 500;
}
.erg-contact-submit-btn {
  background: #6cae24 !important;
  border-color: #6cae24 !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  padding: 10px 24px !important;
  border-radius: 9px !important;
}
.erg-contact-submit-btn:hover {
  background: #5a961c !important;
  border-color: #5a961c !important;
}

/* ==========================================================================
   27. Smart Conversion 404 Page (error/not_found.tpl) — v9 (G20)
   ========================================================================== */
.erg-404-wrap {
  font-family: "Roboto", "Open Sans", Arial, sans-serif;
  color: #0f172a;
  margin-bottom: 24px;
}
.erg-404-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #eef7e3 100%);
  border: 1px solid #d4ebb8;
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 20px;
}
.erg-404-badge {
  display: inline-block;
  background: #0f172a;
  color: #bef264;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.erg-404-h1 {
  margin: 0 0 8px !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: #0f172a !important;
}
.erg-404-lead {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: #334155;
  max-width: 760px;
}
.erg-404-search-form {
  margin: 0 0 14px;
}
.erg-404-search-bar {
  position: relative;
  display: flex;
  gap: 8px;
  max-width: 720px;
}
.erg-404-search-input {
  flex: 1 1 auto;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 14.5px;
  background: #ffffff;
  color: #0f172a;
}
.erg-404-search-input:focus {
  outline: none;
  border-color: #6cae24;
}
.erg-404-search-btn {
  appearance: none;
  border: none;
  background: #6cae24;
  color: #ffffff;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.erg-404-search-btn:hover {
  background: #5a961c;
}
.erg-404-quick-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.erg-404-qlabel {
  font-size: 13px;
  color: #475569;
  margin-right: 2px;
}
.erg-404-tag {
  display: inline-block;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b !important;
  text-decoration: none !important;
  font-size: 12.8px;
  padding: 4px 11px;
  border-radius: 999px;
}
.erg-404-tag:hover {
  border-color: #6cae24;
  color: #3f6e10 !important;
  background: #f4faec;
}

.erg-404-sec-title {
  font-size: 16.5px;
  font-weight: 500;
  color: #0f172a;
  margin: 0 0 12px;
}
.erg-404-cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.erg-404-cat-card {
  display: block;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.erg-404-cat-card:hover {
  border-color: #6cae24;
  box-shadow: 0 4px 12px rgba(108, 174, 36, 0.1);
}
.erg-404-cat-card strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 3px;
}
.erg-404-cat-card span {
  display: block;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}
.erg-404-cat-accent {
  background: #f4faec;
  border-color: #cfe8b0;
}

.erg-404-rescue {
  background: #0f172a;
  color: #ffffff;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.erg-404-rescue-text strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}
.erg-404-rescue-text p {
  margin: 0;
  font-size: 13.8px;
  color: #cbd5e1;
  line-height: 1.48;
}
.erg-404-rescue-text a {
  color: #bef264 !important;
}
.erg-404-rescue-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.erg-404-btn-call {
  display: inline-block;
  background: #6cae24;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13.8px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
}
.erg-404-btn-call:hover {
  background: #5a961c;
}
.erg-404-btn-home {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13.8px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 9px;
  white-space: nowrap;
}
.erg-404-btn-home:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 860px) {
  .erg-contact-hero,
  .erg-404-rescue {
    flex-direction: column;
    align-items: stretch;
  }
  .erg-contact-grid,
  .erg-404-cats-grid {
    grid-template-columns: 1fr;
  }
  .erg-cinfo-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
  .erg-cinfo-val {
    text-align: left;
  }
  .erg-404-search-bar {
    flex-direction: column;
  }
  .erg-404-rescue-btns {
    flex-direction: column;
  }
}

/* ==========================================================================
   v10 (G21): Все 6 фишек отстройки от конкурентов Томска
   1) Мессенджеры WA / TG / MAX (+ модалка копирования номера MAX)
   2) Умная полоса выходного дня Сб–Вс (бонус 3% или бесплатная сборка кресла)
   3) Бесплатный план расстановки кабинета + доставка 0 ₽ от 30 000 ₽
   4) Портфолио «Наши работы в Томске» + авто-папка image/catalog/portfolio/
   5) Генератор отзывов 2ГИС (★ 5.0) и Яндекс Карт (★ 4.9)
   6) Параметрический фильтр в категориях + витрина 16 серий офисной мебели
   ========================================================================== */

/* --- G21.1 Кнопки мессенджеров WhatsApp + Telegram + MAX --- */
.erg-hdr-msg-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 7px;
}
.erg-hdr-msg-lbl {
  font-size: 12.2px;
  color: #475569;
  font-weight: 400;
  margin-right: 2px;
}
.erg-hmsg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 11.8px;
  font-weight: 500;
  line-height: 1.2;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.14s ease, opacity 0.14s ease, box-shadow 0.14s ease;
}
.erg-hmsg:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}
.erg-hmsg--wa,
.erg-hmsg.is-wa {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857 !important;
}
.erg-hmsg--tg,
.erg-hmsg.is-tg {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8 !important;
}
.erg-hmsg--max,
.erg-hmsg.is-max {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #5b21b6 !important;
}
.erg-ptc-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.8px;
  color: #475569;
}
.erg-ptc-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.erg-prod-msg-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.erg-prod-msg-lbl {
  font-size: 12.8px;
  color: #475569;
  font-weight: 400;
}
.erg-prod-msg-btns {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.erg-pmsg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.8px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color 0.15s ease, transform 0.14s ease;
}
.erg-pmsg:hover {
  transform: translateY(-1px);
}
.erg-pmsg--wa {
  background: #16a34a;
  color: #ffffff !important;
}
.erg-pmsg--wa:hover {
  background: #15803d;
}
.erg-pmsg--tg {
  background: #2563eb;
  color: #ffffff !important;
}
.erg-pmsg--tg:hover {
  background: #1d4ed8;
}
.erg-pmsg--max {
  background: #6d28d9;
  color: #ffffff !important;
}
.erg-pmsg--max:hover {
  background: #5b21b6;
}

.erg-contact-msg-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.erg-cmsg {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  text-decoration: none !important;
}
.erg-cmsg--wa {
  background: rgba(22, 163, 74, 0.9);
  color: #ffffff !important;
}
.erg-cmsg--tg {
  background: rgba(37, 99, 235, 0.9);
  color: #ffffff !important;
}
.erg-cmsg--max {
  background: rgba(124, 58, 237, 0.92);
  color: #ffffff !important;
}
.erg-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

/* Модальное окно MAX (+7 913 850-29-58) */
.erg-max-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.erg-max-modal-card {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 24px 22px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.28);
  text-align: left;
}
.erg-max-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: #475569;
  cursor: pointer;
}
.erg-max-modal-badge {
  display: inline-block;
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.erg-max-modal-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 500;
  color: #0f172a;
}
.erg-max-phone-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 500;
  color: #0f172a;
}
.erg-max-copy-again {
  background: #ede9fe;
  color: #5b21b6;
  border: none;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}
.erg-max-modal-hint {
  font-size: 13.8px;
  line-height: 1.5;
  color: #334155;
  margin: 0 0 16px;
}
.erg-max-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.erg-max-open-btn {
  flex: 1;
  min-width: 150px;
  text-align: center;
  background: #6d28d9;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13.8px;
  font-weight: 500;
}
.erg-max-open-btn:hover {
  background: #5b21b6;
}
.erg-max-alt-btn {
  flex: 1;
  min-width: 150px;
  text-align: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8 !important;
  text-decoration: none !important;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13.8px;
  font-weight: 500;
}

/* --- G21.2 Умная полоса выходного дня Сб–Вс --- */
.erg-weekend-bar {
  background: linear-gradient(90deg, #14532d 0%, #166534 55%, #15803d 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding: 9px 0;
}
.erg-weekend-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.erg-weekend-bar__text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.4px;
  line-height: 1.4;
}
.erg-weekend-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fef08a;
  color: #14532d;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.erg-weekend-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.erg-weekend-cta {
  background: #ffffff;
  color: #14532d !important;
  text-decoration: none !important;
  font-size: 12.8px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.erg-weekend-cta:hover {
  background: #f0fdf4;
}
.erg-weekend-wa {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 12.8px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
.erg-weekend-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
}

/* --- G21.3 Кнопки плана расстановки и портфолио на главной и в категориях --- */
.erg-b2b-secondary-btn {
  display: inline-block;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 9px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.16s ease;
}
.erg-b2b-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.erg-hbs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.erg-hbs-portfolio-btn {
  display: inline-block;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534 !important;
  text-decoration: none !important;
  font-size: 13.2px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: 9px;
  white-space: nowrap;
}
.erg-hbs-portfolio-btn:hover {
  background: #dcfce7;
}
.erg-cat-b2b-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
}
.erg-cat-b2b-btn--alt {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
}
.erg-cat-b2b-btn--alt:hover {
  background: rgba(255, 255, 255, 0.24) !important;
}

/* --- G21.4 Навигатор по 16 сериям офисной мебели в категориях --- */
.erg-series-showcase {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 15px 18px;
  margin: 0 0 16px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}
.erg-ss-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.erg-ss-title {
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
}
.erg-ss-title .fa {
  color: #589318;
  margin-right: 5px;
}
.erg-ss-sub {
  font-size: 12.8px;
  color: #64748b;
}
.erg-ss-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.erg-ss-group-lbl,
.erg-ss-lbl {
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  min-width: 96px;
}
.erg-ss-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.erg-ss-pill {
  display: inline-block;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b !important;
  text-decoration: none !important;
  font-size: 12.8px;
  font-weight: 400;
  padding: 4px 11px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.erg-ss-pill:hover {
  border-color: #589318;
  background: #f0fdf4;
  color: #166534 !important;
}
.erg-ss-pill--exec {
  background: #fdfcfb;
  border-color: #d6d3d1;
}
.erg-ss-pill.is-current {
  background: #589318;
  border-color: #589318;
  color: #ffffff !important;
  font-weight: 500;
}

/* --- G21.5 Панель мгновенного параметрического фильтра в категориях --- */
.erg-pfilter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  padding: 10px 14px;
  margin: 0 0 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.erg-pfilter-search-wrap,
.erg-pfilter-search {
  position: relative;
  flex: 1 1 230px;
  min-width: 200px;
}
.erg-pfilter-search-wrap .fa,
.erg-pfilter-search .fa {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13px;
}
.erg-pfilter-input {
  width: 100%;
  height: 36px;
  padding: 6px 12px 6px 32px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.2px;
  color: #0f172a;
  background: #f8fafc;
}
.erg-pfilter-input:focus {
  outline: none;
  border-color: #589318;
  background: #ffffff;
}
.erg-pfilter-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.erg-pfilter-lbl {
  font-size: 12.6px;
  color: #475569;
  margin-right: 2px;
}
.erg-pfp-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12.4px;
  font-weight: 400;
  color: #334155;
  cursor: pointer;
  transition: all 0.14s ease;
}
.erg-pfp-btn:hover {
  border-color: #589318;
  color: #166534;
}
.erg-pfp-btn.is-active {
  background: #589318;
  border-color: #589318;
  color: #ffffff;
  font-weight: 500;
}
.erg-pfilter-check,
.erg-pfilter-chk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 12.6px;
  font-weight: 400;
  color: #334155;
  cursor: pointer;
}
.erg-pfilter-stat {
  font-size: 12.5px;
  font-weight: 500;
  color: #166534;
}
.erg-pfilter-reset {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12.2px;
  font-weight: 500;
  cursor: pointer;
}

/* --- G21.6 Генератор отзывов в 2ГИС (★ 5.0) и Яндекс Картах (★ 4.9) --- */
.erg-reviews-booster,
.erg-reviews-booster * {
  box-sizing: border-box;
}
.erg-reviews-booster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 55%, #eff6ff 100%);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 20px 24px;
  margin: 22px 0;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}
.erg-reviews-booster--compact {
  margin: 18px 0;
}
.erg-rb-left,
.erg-rb-info {
  flex: 1 1 340px;
  min-width: 0;
  max-width: 100%;
}
.erg-rb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  color: #166534;
  font-size: 12.2px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.erg-rb-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.erg-rb-pill {
  display: inline-block;
  font-size: 12.4px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
}
.erg-rb-pill.is-2gis {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.erg-rb-pill.is-ya {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}
.erg-rb-title,
.erg-rb-info h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 500;
  color: #0f172a;
}
.erg-rb-desc,
.erg-rb-info p {
  margin: 0;
  font-size: 14.2px;
  line-height: 1.55;
  color: #334155;
}
.erg-rb-actions,
.erg-rb-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 1 auto;
  max-width: 100%;
}
#content.col-sm-9 .erg-reviews-booster .erg-rb-btns,
#content.col-sm-9 .erg-reviews-booster .erg-rb-actions,
#content.col-sm-6 .erg-reviews-booster .erg-rb-btns {
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 235px;
  max-width: 280px;
}
.erg-rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 11px;
  font-size: 13.6px;
  font-weight: 500;
  line-height: 1.3;
  max-width: 100%;
  white-space: normal;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.erg-rb-btn:hover {
  transform: translateY(-1px);
}
.erg-rb-btn--2gis,
.erg-rb-btn.is-2gis {
  background: #16a34a;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.24);
}
.erg-rb-btn--2gis:hover,
.erg-rb-btn.is-2gis:hover {
  background: #15803d;
}
.erg-rb-btn--yandex,
.erg-rb-btn.is-ya {
  background: #0f172a;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}
.erg-rb-btn--yandex:hover,
.erg-rb-btn.is-ya:hover {
  background: #1e293b;
}
.erg-rb-stars {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 12.5px;
  color: #fde047;
}

/* --- G21.7 Страница «Наши работы и проекты в Томске» (ergonomica_portfolio, в т.ч. внутри #content.col-sm-9) --- */
.erg-pf-wrap,
.erg-pf-wrap * {
  box-sizing: border-box;
}
.erg-pf-wrap {
  margin-bottom: 28px;
  max-width: 100%;
}
.erg-pf-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 62%, #14532d 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 24px 26px;
  margin-bottom: 22px;
  max-width: 100%;
  overflow: hidden;
}
.erg-pf-hero-main {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 100%;
}
.erg-pf-kicker {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.2px;
  color: #dcfce7;
  max-width: 100%;
}
.erg-pf-hero h1,
.erg-pf-h1 {
  color: #ffffff !important;
  font-size: 24px;
  font-weight: 500;
  margin: 10px 0 10px;
  line-height: 1.28;
}
.erg-pf-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 14.5px;
  line-height: 1.56;
  margin: 0 0 16px;
}
.erg-pf-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
#content.col-sm-12 .erg-pf-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.erg-pf-stat {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  padding: 9px 12px;
  min-width: 0;
}
.erg-pf-stat strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #fef08a;
  margin-bottom: 2px;
}
.erg-pf-stat span {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.84);
}
.erg-pf-hero-cta {
  flex: 1 1 285px;
  max-width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
@media (min-width: 1200px) {
  #content.col-sm-9 .erg-pf-hero-cta {
    flex: 0 0 315px;
  }
  #content.col-sm-12 .erg-pf-hero-cta {
    flex: 0 0 350px;
  }
}
.erg-pf-hero-cta strong {
  font-size: 14.8px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.35;
}
.erg-pf-hero-cta p {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}
.erg-msg-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}
.erg-msg-btn {
  min-width: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 8px;
  border: none;
  font-size: 12.2px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
}
.erg-msg-btn.is-wa {
  background: #16a34a;
  color: #ffffff !important;
}
.erg-msg-btn.is-tg {
  background: #2563eb;
  color: #ffffff !important;
}
.erg-msg-btn.is-max {
  background: #7c3aed;
  color: #ffffff !important;
}
.erg-pf-btn-plan {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  background: #6cae24;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13.2px;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  word-wrap: break-word;
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
}
.erg-pf-btn-plan:hover {
  background: #5b961d;
}
.erg-pf-btn-calc {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 12.8px;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  word-wrap: break-word;
  padding: 9px 12px;
  border-radius: 9px;
}

.erg-pf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.erg-pf-tab {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13.4px;
  font-weight: 400;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}
.erg-pf-tab:hover {
  border-color: #589318;
  color: #166534;
}
.erg-pf-tab.is-active {
  background: #589318;
  border-color: #589318;
  color: #ffffff;
  font-weight: 500;
}

.erg-pf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
#content.col-sm-9 .erg-pf-grid,
#content.col-sm-6 .erg-pf-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.erg-pf-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.erg-pf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
}
.erg-pf-img-wrap {
  position: relative;
  display: block;
  height: 260px;
  background: #f8fafc;
  overflow: hidden;
}
.erg-pf-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.erg-pf-card:hover .erg-pf-img-wrap img {
  transform: scale(1.03);
}
.erg-pf-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  max-width: calc(100% - 22px);
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 11.6px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
}
.erg-pf-badge.is-live {
  background: #16a34a;
}
.erg-pf-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.erg-pf-title {
  font-size: 16px;
  font-weight: 500;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.35;
}
.erg-pf-desc {
  font-size: 13.8px;
  line-height: 1.55;
  color: #334155;
  margin: 0 0 14px;
  flex: 1;
}
.erg-pf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px solid #f1f5f9;
}
.erg-pf-act-main {
  display: inline-block;
  max-width: 100%;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534 !important;
  text-decoration: none !important;
  font-size: 12.8px;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.erg-pf-act-main:hover {
  background: #dcfce7;
}
.erg-pf-act-sec {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: #475569 !important;
}
.erg-pf-act-sec:hover {
  color: #589318 !important;
}

.erg-layout-offer-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 22px 24px;
  margin: 22px 0;
  max-width: 100%;
  overflow: hidden;
}
.erg-lob-text {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 100%;
}
.erg-lob-tag {
  display: inline-block;
  background: rgba(108, 174, 36, 0.22);
  border: 1px solid rgba(134, 239, 172, 0.35);
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.erg-lob-text h2 {
  color: #ffffff !important;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 8px;
}
.erg-lob-text p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14.2px;
  line-height: 1.55;
  margin: 0;
}
.erg-lob-btns {
  flex: 0 1 auto;
  max-width: 100%;
}
.erg-lob-btn {
  display: inline-block;
  max-width: 100%;
  background: #6cae24;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13.8px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
}
.erg-lob-btn:hover {
  background: #5b961d;
}

@media (max-width: 991px) {
  .erg-pf-grid,
  #content.col-sm-9 .erg-pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .erg-pf-stats,
  #content.col-sm-12 .erg-pf-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .erg-pf-hero,
  .erg-layout-offer-box,
  .erg-reviews-booster,
  .erg-weekend-bar__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .erg-pf-hero-cta,
  #content.col-sm-9 .erg-reviews-booster .erg-rb-btns,
  #content.col-sm-9 .erg-reviews-booster .erg-rb-actions {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .erg-pf-grid,
  #content.col-sm-9 .erg-pf-grid {
    grid-template-columns: 1fr;
  }
  .erg-pf-stats,
  #content.col-sm-12 .erg-pf-stats {
    grid-template-columns: 1fr 1fr;
  }
  .erg-msg-row {
    grid-template-columns: 1fr;
  }
  .erg-pfilter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .erg-weekend-bar__actions,
  .erg-rb-actions,
  .erg-rb-btns {
    width: 100%;
  }
  .erg-rb-btn,
  .erg-lob-btn,
  .erg-pf-act-main {
    width: 100%;
    justify-content: center;
  }
}





