/* localprint — обновление мега-меню «Услуги»: 3D-иконки на вкладках + новые заголовки колонок.
   Откат: удалить подключение этого файла в functions.php. */

/* ---------- Вкладки: 3D-иконки вместо линейных SVG ---------- */
.lp-nav .lp-services-tabs-v199177__tab > svg {
  display: none !important;
}
.lp-nav .lp-services-tabs-v199177__tab::before {
  content: "";
  display: block;
  flex: none;
  width: 40px;
  height: 40px;
  margin: 0 auto 4px;
  background: center / contain no-repeat;
  transition: transform .2s ease;
}
.lp-nav .lp-services-tabs-v199177__tab:hover::before {
  transform: translateY(-2px) scale(1.07);
}
.lp-nav [data-lp-services-tab="all"]::before   { background-image: url("../img/menu-icons/lp-ico-all-128.webp"); }
.lp-nav [data-lp-services-tab="poly"]::before  { background-image: url("../img/menu-icons/lp-ico-poligrafiya-128.webp"); }
.lp-nav [data-lp-services-tab="wide"]::before  { background-image: url("../img/menu-icons/lp-ico-shirokoformat-128.webp"); }
.lp-nav [data-lp-services-tab="docs"]::before  { background-image: url("../img/menu-icons/lp-ico-dokumenty-128.webp"); }
.lp-nav [data-lp-services-tab="gifts"]::before { background-image: url("../img/menu-icons/lp-ico-suveniry-128.webp"); }
.lp-nav [data-lp-services-tab="web"]::before   { background-image: url("../img/menu-icons/lp-ico-sayty-128.webp"); }

/* Неактивная вкладка: при наведении белеет и приподнимается */
.lp-nav .lp-services-tabs-v199177__tab {
  transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.lp-nav .lp-services-tabs-v199177__tab:not(.is-active):hover {
  background: #fff !important;
  border-color: #e5e7eb !important;
  box-shadow: 0 8px 22px rgba(23, 25, 29, .08) !important;
}

/* Активная вкладка: белая с красной обводкой (на красной заливке иконки сливаются) */
.lp-nav .lp-services-tabs-v199177__tab.is-active {
  background: #fff !important;
  border-color: #e30613 !important;
  color: #e30613 !important;
  box-shadow: 0 0 0 1px #e30613, 0 10px 24px rgba(227, 6, 19, .14) !important;
}
.lp-nav .lp-services-tabs-v199177__tab.is-active span {
  color: #e30613 !important;
}

/* ---------- Заголовки колонок: без плашек, жирный текст + красная черта ---------- */
.lp-header .lp-nav .lp-services-tabs-v199177 .lp-services-tabs-v199177__group h3 {
  margin: 0 0 8px !important;
}
.lp-header .lp-nav .lp-services-tabs-v199177 .lp-services-tabs-v199177__group h3 a {
  position: relative;
  display: flex !important;
  align-items: flex-end !important;
  min-height: 44px !important;
  width: 100% !important;
  padding: 0 6px 12px !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #17191d !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-decoration: none;
  transition: color .2s ease;
}
.lp-header .lp-nav .lp-services-tabs-v199177 .lp-services-tabs-v199177__group h3 a::before {
  display: none !important;
}
.lp-header .lp-nav .lp-services-tabs-v199177 .lp-services-tabs-v199177__group h3 a::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 0;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: #e30613;
  transition: width .25s ease;
}
.lp-header .lp-nav .lp-services-tabs-v199177 .lp-services-tabs-v199177__group h3 a:hover {
  color: #e30613 !important;
  background: none !important;
}
.lp-header .lp-nav .lp-services-tabs-v199177 .lp-services-tabs-v199177__group h3 a:hover::after {
  width: 48px;
}

/* ===================== v1.9.9.221: выравнивание ===================== */

/* Вкладки: иконка всегда на одной высоте, под подпись резерв на 2 строки */
.lp-header .lp-nav .lp-services-tabs-v199177 .lp-services-tabs-v199177__tab {
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 14px 8px 12px !important;
}
.lp-header .lp-nav .lp-services-tabs-v199177 .lp-services-tabs-v199177__tab::before {
  width: 44px;
  height: 44px;
  margin: 0 auto;
}
.lp-header .lp-nav .lp-services-tabs-v199177 .lp-services-tabs-v199177__tab span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 2.4em;
  line-height: 1.2 !important;
  text-align: center;
}

/* Колонки: заголовок всегда в 2 строки высотой, черта и ссылки на одном уровне */
.lp-header .lp-nav .lp-services-tabs-v199177 .lp-services-tabs-v199177__group h3 a {
  min-height: calc(2.4em + 12px) !important;
}

/* ===================== Мобильное меню ===================== */

.lp-mobile-nav-v106__group summary {
  min-height: 64px !important;
  padding: 10px 42px 10px 66px !important;
}
.lp-mobile-nav-v106__group summary::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  background: center / contain no-repeat;
}
.lp-mobile-nav-v106__group summary::after {
  top: 26px !important;
}
.lp-mobile-nav-v106__group[open] summary::after {
  top: 30px !important;
}
.lp-mobile-nav-v106__group--poly  summary::before { background-image: url("../img/menu-icons/lp-ico-poligrafiya-128.webp"); }
.lp-mobile-nav-v106__group--wide  summary::before { background-image: url("../img/menu-icons/lp-ico-shirokoformat-128.webp"); }
.lp-mobile-nav-v106__group--docs  summary::before { background-image: url("../img/menu-icons/lp-ico-dokumenty-128.webp"); }
.lp-mobile-nav-v106__group--gifts summary::before { background-image: url("../img/menu-icons/lp-ico-suveniry-128.webp"); }
.lp-mobile-nav-v106__group--web   summary::before { background-image: url("../img/menu-icons/lp-ico-sayty-128.webp"); }

.lp-mobile-nav-v106__group summary span {
  font-size: 15px !important;
  font-weight: 800 !important;
}

/* Открытая группа: красный заголовок и короткая красная черта, как на десктопе */
.lp-mobile-nav-v106__group[open] summary {
  color: #e30613 !important;
}
.lp-mobile-nav-v106__group[open] summary small {
  position: relative;
  padding-bottom: 7px;
}
.lp-mobile-nav-v106__group[open] summary small::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: #e30613;
}

/* Веб-услуги — в общем стиле, без розовой подложки */
.lp-mobile-nav-v106__group--web summary {
  background: #fff !important;
  border-color: #eceef1 !important;
}

/* «Все услуги»: 3D-иконка вместо линейной */
.lp-mobile-nav-v106__all--services .lp-mobile-nav-v106__icon {
  background: url("../img/menu-icons/lp-ico-all-128.webp") center / 40px no-repeat !important;
}
.lp-mobile-nav-v106__all--services .lp-mobile-nav-v106__icon svg {
  display: none !important;
}
