/* News_page: категория Joomla, пункт меню «Новости» с Page Class " geo-news-page". */
/* Скопируйте этот код в /templates/shaper_helixultimate/css/custom.css. */
/* Прежняя проверка модуля № 117 оставлена как резервный вариант. */

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .category-desc {
  margin: 0 !important;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .category-desc .sppb-section {
  padding-bottom: 56px !important;
}

/* Заголовок и описание: существующие текстовые блоки SP Page Builder. */
:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) #sppb-addon-U-_LeH9HWGE5IiihyCNRs .sppb-addon-content {
  color: #101820 !important;
  font: 600 50px/1 "Golos Text", sans-serif !important;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) #sppb-addon-x-k3AgP5P76zIbiRlH8rk .sppb-addon-content {
  color: #494a4d !important;
  font: 400 16px/1.4 Inter, sans-serif !important;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list > .row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0 !important;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list > .row > [class*="col-"] {
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 452px;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
  background: #efefef;
  transition: box-shadow .2s ease;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article:hover {
  box-shadow: 0 4px 12px rgba(1, 66, 106, .05);
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-intro-image {
  display: block;
  float: none !important;
  flex: 0 0 180px;
  width: 100%;
  height: 180px;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-intro-image a,
:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-intro-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-intro-image img {
  object-fit: cover;
  transition: transform .25s ease;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article:hover .article-intro-image img {
  transform: scale(1.03);
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-body {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-width: 0;
  padding: 24px !important;
  margin: 0 !important;
  background: #efefef;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-info {
  order: -1;
  padding: 0 !important;
  margin: 0 0 8px !important;
  border: 0 !important;
  color: #494a4d !important;
  font: 400 12px/1.4 Inter, sans-serif !important;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-info time {
  color: inherit !important;
  font: inherit !important;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-header,
:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-header h2 {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  font: 400 16px/1.4 Inter, sans-serif !important;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-header h2 a {
  color: #101820 !important;
  font: inherit !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}

/* Ссылка «Читать» использует настоящий адрес и заголовок материала Joomla. */
:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-header h2 a::after {
  content: "Читать";
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: #01426a;
  font: 500 14px/1.4 Inter, sans-serif;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-header h2 a:hover::after {
  opacity: .7;
}

/* В макете внутри карточки выводятся только дата и название. */
:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-introtext {
  display: none !important;
}

/* Штатная пагинация Joomla: ссылка «Следующая» получает оформление кнопки. */
:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .pagination-wrapper {
  margin: 48px 0 0 !important;
  text-align: center;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .pagination-wrapper .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 0 !important;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .pagination-wrapper .pagination > li:not(.pagination-next):not(.pagination-prev) {
  display: none !important;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .pagination-wrapper .pagination > li.disabled {
  display: none !important;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .pagination-wrapper .pagination-next a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  text-decoration: none !important;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .pagination-wrapper .pagination-next a::before {
  content: "Загрузить ещё";
  color: #01426a;
  font: 500 14px/1.4 Inter, sans-serif;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .pagination-wrapper .pagination-next a::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background: #c8102e url("data:image/svg+xml,%3Csvg%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8.66683%2011.6666L12.3335%207.99992L8.66683%204.33325M11.5002%207.99992H2.8335%22%20stroke%3D%22%23FEFEFE%22%20stroke-linecap%3D%22square%22%2F%3E%3C%2Fsvg%3E") center / 16px 16px no-repeat;
}

:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .pagination-wrapper .pagination-next a:hover::before,
:is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .pagination-wrapper .pagination-next a:focus-visible::before {
  opacity: .7;
}

@media (max-width: 1199.98px) {
  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .category-desc .sppb-section {
    padding-bottom: 40px !important;
  }

  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) #sppb-addon-U-_LeH9HWGE5IiihyCNRs .sppb-addon-content {
    font-size: 40px !important;
    line-height: 1.1 !important;
  }

  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) #sppb-addon-x-k3AgP5P76zIbiRlH8rk .sppb-addon-content {
    font-size: 15px !important;
  }

  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) #column-wrap-id-TDNVu8kyetl8r1Pw87ocE {
    margin-top: 20px !important;
  }

  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article {
    min-height: 420px;
  }

  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-header,
  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-header h2 {
    font-size: 15px !important;
  }

  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .pagination-wrapper {
    margin-top: 40px !important;
  }

  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .pagination-wrapper .pagination-next a::before {
    font-size: 13px;
  }

  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .pagination-wrapper .pagination-next a::after {
    width: 20px;
    height: 20px;
    background-size: 12px 12px;
  }
}

@media (max-width: 575.98px) {
  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) #sppb-addon-U-_LeH9HWGE5IiihyCNRs .sppb-addon-content {
    font-size: 32px !important;
  }

  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) #column-wrap-id-TDNVu8kyetl8r1Pw87ocE {
    margin-top: 16px !important;
  }

  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list > .row {
    grid-template-columns: minmax(0, 1fr);
  }

  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article {
    min-height: 400px;
  }

  :is(.blog.geo-news-page, .blog:has(.category-desc .mod-sppagebuilder[data-module_id="117"])) .article-list .article-intro-image {
    flex-basis: 200px;
    height: 200px;
  }
}
#sp-main-body:has(#section-id-1790141880287) {
  padding-bottom: 0 !important;
  overflow-x: clip;
}

#sp-main-body #section-id-1790141880287 {
  position: relative;
  isolation: isolate;
}

#sp-main-body #section-id-1790141880287::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #efefef;
  z-index: -1;
  pointer-events: none;
}
  left: 50%;
/* Рука подсказывает горизонтальную прокрутку */
#sppb-addon-1790226528179 .geo-swipe-hint i {
  animation: none !important;
}

#sppb-addon-1790226528179 .geo-swipe-hint .sppb-icon-inner {
  display: inline-block !important;
  animation: geo-hand-swipe 1.8s ease-in-out infinite !important;
}

@keyframes geo-hand-swipe {
  0%, 15%, 100% { transform: translateX(0); }
  50% { transform: translateX(-14px); }
}
/* Только таблица модификаций, только планшет */
@media (min-width: 768px) and (max-width: 1199px) {
  #sppb-addon-1789725760058 .geo-configurations > .sppb-addon-content {
    overflow-x: auto;
  }

  #sppb-addon-1789725760058 .geo-configurations table.sppb-addon-table-main {
    width: 100% !important;
    min-width: 704px;
    table-layout: fixed;
  }

  #sppb-addon-1789725760058 .geo-configurations thead th {
    box-sizing: border-box;
    height: 158px;
    padding: 0 !important;
    vertical-align: middle;
    background: var(--sppb-light-blue-grey, #dde5ed);
  }

  #sppb-addon-1789725760058 .geo-configurations thead th:first-child {
    width: 35.4%;
    padding: 0 16px !important;
    text-align: left;
  }

  #sppb-addon-1789725760058 .geo-configurations thead th:nth-child(2),
  #sppb-addon-1789725760058 .geo-configurations thead th:nth-child(3),
  #sppb-addon-1789725760058 .geo-configurations thead th:nth-child(4) {
    width: 12.9%;
  }

  #sppb-addon-1789725760058 .geo-configurations thead th:nth-child(5) {
    width: 25.9%;
  }

  #sppb-addon-1789725760058 .geo-configurations thead th:not(:first-child) > .sppb-addon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 158px;
  }

  #sppb-addon-1789725760058 .geo-configurations thead th:not(:first-child) > .sppb-addon-wrapper > div {
    flex: 0 0 158px;
    width: 158px;
  }

  #sppb-addon-1789725760058 .geo-configurations thead th:not(:first-child) .sppb-addon-text-block .sppb-addon-content {
    box-sizing: border-box;
    display: block;
    width: 158px;
    max-width: none;
    padding: 0 8px;
    color: #101820;
    font-family: Inter, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    transform: rotate(-90deg);
    transform-origin: center;
  }
}
/* Увеличение изображения в конкретном всплывающем окне */
#sppb-modal-1790236086440 {
  position: relative !important;
  width: min(94vw, 1400px) !important;
  max-width: none !important;
  margin: 0 auto;
}

#sppb-modal-1790236086440 .modal-inner-block {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: min(82vh, 900px) !important;
  padding: 0 !important;
  overflow: hidden;
  background: #fff;
  touch-action: none;
  cursor: zoom-in;
}

#sppb-modal-1790236086440 .mfp-img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

#sppb-modal-1790236086440.geo-is-zoomed .modal-inner-block {
  cursor: grab;
}

#sppb-modal-1790236086440.geo-is-dragging .modal-inner-block {
  cursor: grabbing;
}

#sppb-modal-1790236086440 .geo-zoom-controls {
  position: absolute;
  z-index: 5;
  bottom: 16px;
  left: 50%;
  display: flex;
  gap: 4px;
  padding: 5px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #101820;
}

#sppb-modal-1790236086440 .geo-zoom-controls button {
  min-width: 40px;
  height: 38px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font: 600 16px/1 Inter, sans-serif;
  cursor: pointer;
}

#sppb-modal-1790236086440 .geo-zoom-controls button:hover {
  background: #005f87;
}

#sppb-modal-1790236086440 .geo-zoom-controls [data-zoom="reset"] {
  min-width: 62px;
  font-size: 13px;
}

#sppb-modal-1790236086440 > .mfp-close {
  z-index: 6;
}
