#sp-main-body {
    padding: 25px 0 25px 0;
}
#sp-top-bar {
    background: #0345BF;
}
.article-details .article-ratings-social-share {
    display: none !important;
}
.article-details .article-header {
    margin-top: 20px;
    font-size: 1.75rem;
}
.sp-module-title {
    margin-top: 20px;
}

.page-header {
    display: none;
}


div.itemBody {
    padding: 15px 0;
}

.article-details .article-can-edit {
    margin-top: 8px;
}

.mainpage #sp-main-body {
    display: none!important;
}
.custom-mms {
   background-attachment: fixed;
   background-size: cover;
   background-position: center;
}


.img-mms-cards {
    height: 200px;
    object-fit: cover;
}
@media (min-width: 768px) and (max-width: 991px) { 
   .img-mms-cards {
    height: 150px;
    object-fit: cover; 
   }  
}

@media (min-width: 992px) and (max-width: 1200px) { 
   .sp-megamenu-parent > li > a, .sp-megamenu-parent > li > span, .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
    font-size: 14px!important;
  }
}

@media (min-width: 992px) { 

.sp-page-title .sp-page-title-heading {
    font-size: 30px;
    line-height: 1;
   }
}

div.itemBackToTop {
    display: none;
}


#sp-right .sp-module {
    margin-top: 30px;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    padding: 20px;
}
#sp-right .sp-module .sp-module-title {
    border-bottom: 1px solid #dcdcdc;
    font-weight: 600;
}

.speasyimagegallery-gallery-item-title {
    display: none!important;
}

.formResponsive .formRow {
    width: 95%!important;
}

.review {
    margin-bottom: 30px;
}

/* ====== Сетка карточек (fallback, если НЕ используется .row Bootstrap) ====== */
.blog .items-row:not(.row) {
  display: flex;
  flex-wrap: wrap;
  margin: -12px; /* равномерные отступы */
}
.blog .items-row:not(.row) > div {
  padding: 12px;
  box-sizing: border-box;
  width: 25%; /* 4 в ряд по умолчанию */
}
@media (max-width: 1199.98px) {
  .blog .items-row:not(.row) > div { width: 33.3333%; } /* 3 в ряд */
}
@media (max-width: 991.98px) {
  .blog .items-row:not(.row) > div { width: 50%; }      /* 2 в ряд */
}
@media (max-width: 575.98px) {
  .blog .items-row:not(.row) > div { width: 100%; }     /* 1 в ряд */
}

/* ====== Карточка экскурсии ====== */
.excursion-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.excursion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Картинка */
.excursion-card .excursion-image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Контент карточки */
.excursion-card .excursion-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Заголовок */
.excursion-card .excursion-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
  line-height: 1.3;
}

/* Цена */
.excursion-card .excursion-price {
  font-weight: 600;
  font-size: 18px;
  color: #3baf2f;
  margin-bottom: 12px;
}

/* Интро-текст */
.excursion-card .excursion-intro {
  flex-grow: 1;
  margin-bottom: 16px;
  font-size: 15px;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 3;         /* Кол-во строк */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Кнопка */
.excursion-card .excursion-btn {
  text-align: right;
}
.excursion-card .btn-more {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}
.excursion-card .btn-more:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* Доп. стили статей (как у тебя было) */
.article-list .article {
  padding: 0;
  border: none;
  border-radius: 0;
}
.article-info > span {
  font-weight: 600;
  font-size: 22px;
  color: #3baf2f;
}

/* Ширина textarea в форме RSContact */
.mod-rscontact-width-auto {
  width: 100% !important;
}
/* Титул категории немного стилизуем */
.category-title {
  font-size: 28px;
  font-weight: 500;
  margin-top: 25px;
}

/* Интро — аккуратный line-clamp на 3 строки без рваных краёв */
.excursion-intro {
  margin-bottom: 16px;
  line-height: 1.5;
  max-height: calc(1.5em * 3);
  overflow: hidden;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;

  /* на случай не-webkit браузеров будет просто обрезка без эллипсиса */
}


/* СТИЛИ ДЛЯ ГАЛЕРЕИ SIGPLUS */
#sigplus_1001.sigplus-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 5px 10px; /* одинаковый отступ по горизонтали и вертикали */
  padding: 10px 0;
  list-style: none;
}

#sigplus_1001.sigplus-gallery ul {
  display: contents; /* убираем влияние ul */
  margin: 0;
  padding: 0;
}

#sigplus_1001.sigplus-gallery li {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sigplus_1001.sigplus-gallery a.sigplus-image {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  text-decoration: none;
  border: none;
}

#sigplus_1001.sigplus-gallery img.sigplus-preview {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ховер-эффект */
#sigplus_1001.sigplus-gallery img.sigplus-preview:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- АДАПТИВНОСТЬ --- */

/* Телефоны: по 2 фото в ряд */
@media (max-width: 600px) {
  #sigplus_1001.sigplus-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Планшеты: по 3 фото */
@media (min-width: 601px) and (max-width: 1024px) {
  #sigplus_1001.sigplus-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ПК: по 4 фото */
@media (min-width: 1025px) {
  #sigplus_1001.sigplus-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Таблица с временем на страницах экскурсий --- */
/* Контейнер */
.supertable-container {
  overflow-x: auto;
  margin: 20px 0;
}

/* Основная таблица */
table.supertable {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: #fff;
  font-size: 14px;
  border-radius: 8px; /* Скруглённые углы */
  overflow: hidden;   /* Чтобы скругление применялось к содержимому */
}

/* Ячейки */
table.supertable td, 
table.supertable th {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

/* Чётные строки */
table.supertable tr:nth-child(even) {
  background: #f9f9f9;
}

/* Hover */
table.supertable tr:hover {
  background: #f1f1f1;
}

/* Заголовочные строки */
table.supertable tr.st-header-row {
  background: #0345bf; /* Синий фон */
  color: #fff;         /* Белый текст */
  font-weight: bold;
  text-align: center;  /* Центровка текста по горизонтали */
}

/* Заголовочные колонки */
table.supertable td.st-header-col,
table.supertable th.st-header-col {
  background: #0345bf; /* Синий фон */
  color: #fff;
  font-weight: bold;
  text-align: center;  /* Центровка текста в заголовочных колонках */
}

/* Первая колонка — центрируем текст */
table.supertable tr td:first-child,
table.supertable tr th:first-child {
  text-align: center;
  vertical-align: middle;
}
/* Центровка текста в первой строке (шапке) */
table.supertable tr.st-header-row > th,
table.supertable tr.st-header-row > td {
  text-align: center;
}

/* На всякий случай: если по какой-то причине .st-header-row не проставился,
   центрируем самую первую строку таблицы */
table.supertable tr:first-child > th,
table.supertable tr:first-child > td {
  text-align: center;
}


/* Адаптивность */
@media (max-width: 600px) {
  table.supertable td, 
  table.supertable th {
    padding: 6px;
    font-size: 12px;
  }
}


/* === Cassiopeia Hero Banner with Responsive Background === */
.custom-banner-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 90vh; /* Высота баннера */
}

/* Картинка баннера */
.custom-banner-hero .hero-picture,
.custom-banner-hero .hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Заполняет блок без искажений */
  z-index: 1;
}

/* Затемнение + контент */
.custom-banner-hero .overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.3);
  width: 100%;
  height: 100%;
  padding: 2rem;
}

/* Заголовки */
.custom-banner-hero .overlay h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.custom-banner-hero .overlay h3 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  line-height: 1.4;
}

/* Кнопка */
.custom-banner-hero .overlay a.btn {
  display: inline-block;
  padding: 0.6rem 1.6rem;
  background: var(--primary, #0345bf);
  color: #fff;
  text-decoration: none;
  border-radius: var(--border-radius, 0.25rem);
  font-weight: 600;
  transition: all 0.3s ease;
}

.custom-banner-hero .overlay a.btn:hover {
  background: var(--link-hover-color, #022f8a);
  transform: scale(1.05);
}

/* Адаптив */
@media (max-width: 768px) {
  .custom-banner-hero {
    height: 70vh;
  }

  .custom-banner-hero .overlay {
    padding: 1rem;
  }

  .custom-banner-hero .overlay h1 {
    font-size: 2rem;
  }

  .custom-banner-hero .overlay h3 {
    font-size: 1.3rem;
  }
}
.formError, .formRed {
    font-weight: 400 !important;
}
.mod-ut-whatsapp {
    bottom: 20px !important;
    left: 20px !important;
}
.mod-ut-whatsapp .whatsapp-button {
    width: 55px !important;
    height: 55px !important;
    font-size: 35px !important;
}
.sp-scroll-up {
    bottom: 100px;
    right: 20px;
}