/* ==========================================================================
   MODERN LAYER — ХимТЭК 2026 (поверх template.css/style4.css)
   Направление: чистый B2B-корпоративный — Manrope, воздух, скругления,
   мягкие тени, акцент #01b8d4 сохранён.
   ========================================================================== */

:root {
  --brand: #01b8d4;
  --brand-dark: #0091a8;
  --ink: #16283a;
  --ink-soft: #51637a;
  --bg-soft: #f5f9fc;
  --line: #e3ecf3;
  --card-shadow: 0 6px 24px rgba(22, 40, 58, .08);
  --card-shadow-hover: 0 14px 34px rgba(22, 40, 58, .14);
  --radius: 14px;
}

/* ---------- Типографика ---------- */
html { scroll-behavior: smooth; }
body, .vtem-wrapper,
input, button, select, textarea {
  font-family: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
  color: var(--ink);
}
h1, h2, h3, h4, h5, .page-header h1, .page-header h2 {
  font-family: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1.22;
}
h1 { font-size: 34px; }
h2, .page-header h2, h2.title { font-size: 26px; }
h3 { font-size: 20px; }
p { line-height: 1.65; color: var(--ink-soft); }

/* Заголовки секций с акцентной чертой */
.page-header, .blog h2, h2.title { position: relative; }
#vtem-wrapper .vtem-section-inside > h2,
.vtem-block h3.blocktitle {
  padding-left: 14px;
}
.vtem-block h3.blocktitle::before,
.page-header::before {
  content: '';
  display: inline-block;
}

/* ---------- Шапка ---------- */
.vtem-section.section-header {
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
  position: relative;
  z-index: 30;
}
.section-topbar.fixed_block_menu {
  background: rgba(255, 255, 255, .97);
  backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(22, 40, 58, .06);
}
.logo1 img {
  max-height: none !important;
  max-width: 100%;
  width: 100%;
  height: auto;
}

/* Шапка (надпись организации, телефоны, e-mail) — фон/цвет/размер как у оригинала */
.section-header .custom-html-content {
  font-family: sans-serif, Georgia !important;
  background: transparent !important;
}
.section-header .custom-html-content h1 {
  font-family: sans-serif, Georgia !important;
  color: #01b8d4 !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  text-transform: uppercase !important;
  letter-spacing: normal !important;
  line-height: 22px !important;
}
.section-header .custom-html-content p {
  font-family: sans-serif, Georgia !important;
  color: #333333 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}
.section-header .custom-html-content p a { color: #01b8d4 !important; }

/* ---------- Меню ---------- */
#vtem_menu ul.nav-pills > li > a,
.widget-menu .nav-pills > li > a {
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
  color: var(--ink) !important;
  padding: 12px 16px !important;
  border-radius: 10px;
  transition: color .18s, background .18s;
}
#vtem_menu ul.nav-pills > li > a:hover,
.widget-menu .nav-pills > li > a:hover,
#vtem_menu ul.nav-pills > li.active > a {
  color: var(--brand-dark) !important;
  background: rgba(1, 184, 212, .10);
}
/* выпадающее меню — карточка */
#vtem_menu ul ul, .widget-menu ul ul,
.nav-pills ul.unstyled {
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  box-shadow: var(--card-shadow) !important;
  background: #fff;
  padding: 8px !important;
  min-width: 230px;
}
#vtem_menu ul ul li a, .nav-pills ul li a {
  border-radius: 8px !important;
  padding: 9px 12px !important;
  font-weight: 500;
}
#vtem_menu ul ul li a:hover { background: var(--bg-soft); color: var(--brand-dark) !important; }

/* ---------- Кнопки ---------- */
.btn, button.btn, input.btn, .btn-primary,
#vtem-wrapper .btn {
  background-image: none;
  background: var(--brand);
  border: 0;
  border-radius: 10px;
  color: #fff !important;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
  padding: 10px 22px;
  box-shadow: 0 6px 16px rgba(1, 184, 212, .30);
  transition: background .18s, transform .18s, box-shadow .18s;
  text-shadow: none;
}
.btn:hover, .btn-primary:hover, .btn:focus {
  background: var(--brand-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(1, 184, 212, .38);
}
.btn [class*="icon-"] { display: none; } /* чистые подписи без пиктограмм-квадратиков */

/* ---------- Карточки (блог, контакты, продукты) ---------- */
.blog .items-row .item,
.blog-featured .item,
#vtem-wrapper .item .page-header,
.items-leading .leading,
.category-list .category,
table.category tr {
  background: #fff;
}
.blog .item, .blog-featured .item, .items-leading .leading, .vtem-block {
  border-radius: var(--radius);
}
.blog .items-row .item {
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(22, 40, 58, .05);
  transition: box-shadow .18s, transform .18s;
}
.blog .items-row .item:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-2px);
}
/* картинка-обложка занимает всю верхнюю часть карточки без двойных скруглений */
.blog .items-row .item .item-image {
  margin: 0;
  line-height: 0;
}
.blog .items-row .item .item-image img {
  border-radius: 0;
  display: block;
  width: 100%;
  height: auto;
}
.blog .items-row .item .page-header,
.blog .items-row .item > p,
.blog .items-row .item .intro {
  padding-left: 18px;
  padding-right: 18px;
}
.blog .items-row .item .page-header { padding-top: 14px; margin: 0 0 6px; }
.blog .items-row .item > p:last-child,
.blog .items-row .item .intro:last-child { padding-bottom: 16px; }
.blog .item:hover, .blog-featured .item:hover { background: #fff; }

.item .page-header h2 a, .items-leading h2 a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: color .15s;
}
.item .page-header h2 a:hover { color: var(--brand-dark); }

/* изображения в карточках */
.item img, .intro img, .vtem-block img,
.img-intro, .img-fulltext {
  border-radius: var(--radius);
}
.blog .item img:hover, .item .page-header a img { transform: none; }
.item img, .intro-image, .item-image { transition: transform .25s ease; }
a:hover > img.item-image, a:hover img.intro-image { transform: scale(1.02); }

/* ---------- Секции ---------- */
.vtem-section {
  background: #fff;
}
.vtem-section .vtem-section-inside { padding-top: 44px; padding-bottom: 44px; }
.section-header .vtem-section-inside,
.section-topbar .vtem-section-inside { padding-top: 0; padding-bottom: 0; }

/* мягкая чередующаяся подложка для контентных секций */
.main-content { background: var(--bg-soft); }
.main-content .vtem-section-inside { padding-top: 40px; padding-bottom: 40px; }

/* заголовок страницы */
.item-page .page-header, .blog .page-header h1, .page-header h1 {
  margin-bottom: 18px;
}
.breadcrumb, .breadcrumbs {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 10px 0;
}
.breadcrumb a { color: var(--brand-dark); text-decoration: none; }

/* ---------- Формы и поля ---------- */
input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], textarea, select,
.inputbox, .form-control {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
  height: auto;
}
input:focus, textarea:focus, select:focus, .inputbox:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(1, 184, 212, .14);
  outline: none;
}

/* ---------- Поиск ---------- */
#mod-search-searchword, .search input[type="text"] { width: 240px; }
.finder label { font-weight: 600; color: var(--ink); margin-right: 8px; }
#search-form fieldset.word { border: 0; margin: 0 0 8px; }
.com-finder__results-list .result__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(22,40,58,.05);
  transition: box-shadow .18s, transform .18s;
}
.com-finder__results-list .result__item:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-2px);
}

/* ---------- Таблицы (списки категорий) ---------- */
table.category, table.table {
  border-collapse: separate;
  border-spacing: 0;
}
table.category th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  padding: 12px 14px;
}
table.category th:first-child { border-radius: 10px 0 0 0; }
table.category th:last-child { border-radius: 0 10px 0 0; }
table.category td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
}
table.category tr:hover td { background: var(--bg-soft); }
table.category a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }

/* ---------- Ссылки ---------- */
a { color: var(--brand-dark); }
a:hover { color: var(--ink); }
.item-page a, .blog a { text-decoration: none; }
.item-page a:hover { text-decoration: underline; }

/* ---------- Футер ---------- */
.vtem-section.footer {
  background: #0d1f30;
  color: #c4d3e0;
}
.vtem-section.footer h2, .vtem-section.footer h3,
.vtem-section.footer .blocktitle {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}
.vtem-section.footer a { color: #9fb7c9; text-decoration: none; transition: color .15s; }
.vtem-section.footer a:hover { color: var(--brand); }
.vtem-section.footer p { color: #9fb7c9; }
.vtem-section.footer .vtem-section-inside { padding-top: 52px; padding-bottom: 30px; }
.copyright { color: #7d93a6; font-size: 13px; }

/* копирайт: текст слева, политика справа */
.vtem-section.copyright .widget-copyright .vtem-block-inside {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.vtem-section.copyright .widget-copyright a {
  color: #9fb7c9;
  text-decoration: none;
  font-size: 13px;
  margin-left: auto;
  white-space: nowrap;
}
.vtem-section.copyright .widget-copyright a:hover { color: var(--brand); }

/* переключатель языков: подпись + флажки, под email в блоке контактов шапки */
.lang-flags {
  margin: 10px 0 0 !important;
  padding: 0 !important;
  line-height: 1;
  font-size: 13px !important;
  color: #7d93a6 !important;
}
/* абзац контактов шапки — float:right; флажки прижимаем вплотную под него,
   шириной по контенту — левый край совпадает с телефонами/почтой, единый блок */
#block150b7e5eb8d3934 .custom-html-content > p:first-child {
  padding-bottom: 2px !important;
}
#block150b7e5eb8d3934 .lang-flags {
  float: right;
  clear: right;
  margin: 2px 0 0 !important;
}
#block164ffd11b58943 .lang-flags {
  margin: 4px 0 0 !important;
}
.lang-flags span {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  letter-spacing: .01em;
}
.lang-flags a {
  display: inline-block;
  vertical-align: middle;
  margin: 0 4px;
  opacity: .55;
  transition: opacity .15s;
}
.lang-flags a.lang-active { opacity: 1; cursor: default; }
.lang-flags a:hover { opacity: 1; }
.lang-flags img {
  width: 24px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(22, 40, 58, .25);
}

/* страница «Направленное бурение»: hero-обложка и плашка наполнения */
.drilling-hero {
  position: relative;
  min-height: 420px;
  background: #123c54;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 26px;
}
.drilling-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 31, 48, .82) 0%, rgba(13, 31, 48, .45) 55%, rgba(13, 31, 48, .18) 100%);
}
.drilling-hero__title {
  position: absolute;
  left: 36px;
  bottom: 34px;
  z-index: 1;
  max-width: 640px;
  color: #fff;
  font-family: sans-serif !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 30px;
  font-weight: 300;
  line-height: 1.25;
}
.drilling-hero__sub {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #c9d7e2;
}
html body.ct-site .ct-inner .drilling-hero .drilling-hero__title {
  color: #fff !important;
}
@media (max-width: 767px) {
  .drilling-hero { min-height: 260px; }
  .drilling-hero__title { left: 18px; bottom: 18px; font-size: 21px; }
}
.drilling-note {
  margin-top: 30px;
  padding: 18px 22px;
  border-left: 4px solid var(--brand);
  background: #f2f7fa;
  border-radius: 0 8px 8px 0;
  color: #44607a;
}

/* уведомление о cookie / обезличенной статистике (152-ФЗ) */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 22px;
  background: #fff;
  border: 1px solid #e3ecf3;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(13, 31, 48, .22);
  font-size: 13.5px;
  line-height: 1.5;
  color: #44607a;
  animation: cc-up .35s ease;
}
@keyframes cc-up { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-consent__text { flex: 1 1 460px; margin: 0; }
.cookie-consent__text p { margin: 0; }
.cookie-consent__text a { color: var(--brand); text-decoration: none; white-space: nowrap; }
.cookie-consent__text a:hover { text-decoration: underline; }
.cookie-consent__btns { display: flex; gap: 10px; flex-shrink: 0; }
.cc-btn {
  cursor: pointer;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
}
.cc-accept { background: var(--brand); border: 1px solid var(--brand); color: #fff; }
.cc-accept:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.cc-decline { background: transparent; border: 1px solid #b9cbd9; color: #44607a; }
.cc-decline:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 600px) {
  .cookie-consent { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; font-size: 12.5px; }
  .cookie-consent__btns { width: 100%; }
  .cc-btn { flex: 1 1 0; }
}

/* сетка футера: 4 равных колонки (bootstrap col-md-3 переносится) */
.vtem-section.footer .section-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 26px;
  align-items: start;
}
/* clearfix-псевдоэлементы .row становятся grid-ячейками — выключаем их */
.vtem-section.footer .section-content::before,
.vtem-section.footer .section-content::after {
  display: none !important;
  content: none !important;
}
.vtem-section.footer .section-content > .vtem-block {
  width: auto !important;
  max-width: none;
  float: none !important;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 1199px) {
  .vtem-section.footer .section-content { grid-template-columns: repeat(3, 1fr); gap: 26px; }
}
@media (max-width: 767px) {
  .vtem-section.footer .section-content { grid-template-columns: 1fr; gap: 22px; }
}

/* списки-колонки футера */
.vtem-section.footer .custom-html-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vtem-section.footer .custom-html-content ul li {
  padding: 5px 0;
  line-height: 1.45;
  color: #9fb7c9;
}
.vtem-section.footer .custom-html-content ul li a {
  display: inline-block;
  color: #9fb7c9;
  text-decoration: none;
  transition: color .15s, transform .15s;
}
.vtem-section.footer .custom-html-content ul li a:hover {
  color: var(--brand);
  transform: translateX(2px);
}
.vtem-section.footer .custom-html-content p { margin: 0 0 10px; }

/* ---------- Слайдер и параллакс ---------- */
.box_skitter { border-radius: 0; }
.vtem_main_slideshow .label_skitter,
.skitter .info_slide .image_number { border-radius: 8px; }
.lgx-parallax-content-wrapper .lgx-parallax-content h2,
.parallax-content h2 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

/* внутри параллакса — только белый текст и оригинальный шрифт;
   размеры/жирность/положение задаёт сам модуль (inline-стили по секциям) */
.lgx-parallax-inner { font-family: sans-serif, Georgia !important; }
.lgx-parallax-inner p {
  color: #fff !important;
  font-family: sans-serif, Georgia !important;
  text-shadow: none !important;
}
.lgx-parallax-inner h1, .lgx-parallax-inner h2,
.lgx-parallax-inner h3, .lgx-parallax-inner h4,
.lgx-parallax-inner .custom-html-title {
  color: #fff !important;
  font-family: sans-serif !important;
  font-size: 18px !important;
  font-weight: 300 !important;
  text-shadow: none !important;
}
/* ссылки-CTA на фото — как в оригинале: циановый текст, не плашка */
.lgx-parallax-inner a {
  background: transparent !important;
  color: #01b8d4 !important;
  font-family: sans-serif, Georgia !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: inline !important;
  transform: none !important;
}

/* иконки в контактах шапки не налезают на текст */
.section-header .custom-html-content .fa { margin: 0 5px 0 2px; }

/* убираем ромб-индикатор старого меню, заменяем подчёркиванием */
.widget-menu .main-vtem-menu > li {
  position: relative;
}
.widget-menu .main-vtem-menu > li > a:after,
.widget-menu .main-vtem-menu > li > span:after {
  display: block !important;
  content: '' !important;
  position: absolute !important;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px !important; width: auto !important;
  background: var(--brand) !important;
  border: 0 !important;
  transform: none !important;
  border-radius: 2px;
  opacity: 0;
  transition: opacity .18s;
}
.widget-menu .main-vtem-menu > li:hover > a:after,
.widget-menu .main-vtem-menu > li.active > a:after { opacity: 1; }

/* ---------- Карточки «События» (mod_articles_news) ---------- */
.news-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 26px 0 6px;
  text-align: left;
}
.news-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: 0 2px 10px rgba(22, 40, 58, .05);
  transition: box-shadow .18s, transform .18s;
}
.news-card:hover {
  box-shadow: var(--card-shadow);
  transform: translateY(-3px);
}
.news-card__img {
  display: block;
  height: 140px;
  background-size: cover;
  background-position: center;
}
.news-card__img--empty {
  background: linear-gradient(135deg, #e8f6fa, #d6edf3);
}
.news-card__date {
  display: inline-block;
  margin: 12px 14px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--brand-dark);
}
.news-card__title {
  display: block;
  padding: 6px 14px 14px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
}
.news-card:hover .news-card__title { color: var(--brand-dark); }
.news-all {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-dark) !important;
  text-decoration: none;
}
.news-all:hover { text-decoration: underline; }

/* ---------- Мелочи ---------- */
::selection { background: rgba(1, 184, 212, .25); }
hr, .separator { border-color: var(--line); }
.pager, .pagination ul {
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}
.pagination ul li a {
  border: 0 !important;
  border-radius: 8px !important;
  margin: 2px;
  font-weight: 600;
  color: var(--ink);
}
.pagination ul li a:hover { background: rgba(1, 184, 212, .12); color: var(--brand-dark); }

/* метки-статусы */
.label, .label-warning {
  border-radius: 6px;
  font-weight: 600;
  padding: 3px 9px;
}

/* ---------- Адаптивные штрихи ---------- */
@media (max-width: 979px) {
  h1 { font-size: 26px; }
  h2, .page-header h2 { font-size: 22px; }
  .vtem-section .vtem-section-inside { padding-top: 28px; padding-bottom: 28px; }
  .news-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 600px) {
  .news-cards { grid-template-columns: 1fr; gap: 12px; margin: 18px 0 4px; }
  .news-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 4px 12px;
    align-items: start;
  }
  .news-card__img { grid-row: 1 / span 2; height: 84px; }
  .news-card__date { grid-column: 2; margin-bottom: 0; }
  .news-card__title { grid-column: 2; font-size: 15px; line-height: 1.35; }
}
