body main {
  /* padding-left: 40px;
  padding-right: 40px; */
  overflow-x: clip;

  @media only screen and (max-width: 575px) {
  padding-left: 0;
  padding-right: 0;
  }
}

/* На главной убираем "табличную" сетку у контента из home blocks.
   Базовые правила — в css/components/home-blocks.css (.site-block__text). */
.site-block table,
.site-block table.table,
.site-block table tr,
.site-block table td,
.site-block table th {
  border: none !important;
  box-shadow: none !important;
}

.site-block table {
  background: transparent;
  border-collapse: separate;
}

.main-content-area {
  padding-top: 20px;
}

.no-events-container {
  padding: 80px 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Inner page banner for when there's no slider */
.inner-page-banner {
  height: 90px;
  background-size: cover;
  background-position: center center;
  position: relative;
  margin-bottom: 20px;
}

.inner-page-banner .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.section-heading-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-heading {
  margin-bottom: 0;
  flex-grow: 1;
}

.section-heading h2 {
  margin-bottom: 5px;
}


.see-all-button {
  margin-left: 20px;
  margin-top: 10px;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Адаптация для мобильных устройств */
@media (max-width: 991px) {
  .home-grid {
  grid-template-columns: repeat(2, 1fr);
  }

  .section-heading-container {
  flex-direction: column;
  align-items: flex-start;
  }

  .see-all-button {
  margin-left: 0;
  margin-top: 15px;
  }
}

@media (max-width: 767px) {
  .home-grid {
  grid-template-columns: repeat(1, 1fr);
  }
}



#status {
  width: 200px;
  height: 200px;
  position: absolute;
  left: 50%;
  top: 50%;
  background-repeat: no-repeat;
  background-position: center;
  margin: -100px 0 0 -100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#status span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background: #dd003f;
  border-radius: 50%;
  animation: status-load 1s infinite ease-in-out;
}

#status span:nth-child(2) {
  animation-delay: 0.2s;
}

#status span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes status-load {

  0%,
  100% {
  transform: scale(0);
  }

  50% {
  transform: scale(1);
  }
}

.kp-rating {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  color: #222;
  border-radius: 1.2em;
  padding: 0.15em 0.7em 0.15em 0.4em;
  font-weight: 600;
  font-size: 1.04em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  margin-right: 0.5em;
}

.kp-rating .kp-star {
  margin-right: 0.35em;
  display: flex;
  align-items: center;
}

.kp-rating .kp-value {
  color: var(--theme-text-color);
  font-weight: 700;
  font-size: 1.08em;
  margin-right: 0.15em;
  letter-spacing: 0.01em;
}

.kp-rating .kp-max {
  color: #888;
  font-size: 0.97em;
  margin-left: 0.08em;
}

.section-heading .col-12 {
  flex: 0 0 0%;
  width: max-content;
}


.row.menu-list {
  margin-right: auto;
  margin-left: auto;
}

@media (max-width: 1200px) {
  .row.menu-list {
    max-width: 1140px;
  }
}
  @media (max-width: 992px) {
  .row.menu-list {
    max-width: 960px;
  }
}
@media (max-width: 768px) {
  .row.menu-list {
    max-width: 720px;
  }
}
@media (max-width: 576px) {
  .row.menu-list {
    max-width: 350px;
  }
  .loadmore-four-item.btn-fill{
  padding-right: 2px;
  padding-left: 2px;
  border-radius: 2px;
  }
}

.title.title-medium.color-light.hover-yellow.size-md {
  /*width: 85%;
  font-size: 2rem;*/
}

.news-title-only .item-title h3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  min-height: 2.8em;
  max-height: 3.2em;
}

.news-section .container {
  max-width: none;

}
.news-section .container .see-all-button{
  margin-top: 0px;
}

/* Фиксированный размер слайдера: не зависит от пропорций картинки */
#fixed-type-slider .nivoSlider {
  aspect-ratio: 21 / 9;
  height: auto !important;
  overflow: hidden;
}

#fixed-type-slider .nivoSlider .nivo-main-image,
#fixed-type-slider .nivoSlider > img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

#fixed-type-slider .nivo-slice,
#fixed-type-slider .nivo-box {
  height: 100% !important;
}

#fixed-type-slider .nivo-slice img,
#fixed-type-slider .nivo-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 991px) {
  #fixed-type-slider .nivoSlider {
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 767px) {
  #fixed-type-slider .nivoSlider {
    aspect-ratio: 16 / 9;
  }
}

/* Slider Text Styling */
.nivo-caption {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  opacity: 1 !important;
  padding: 0 !important;
  display: block !important;
  pointer-events: auto !important;
}

/* Hide duplicate slider content outside of .nivo-caption */
.bend.niceties.preview-1 > .slider-direction {
  display: none !important;
}

.nivo-caption .slider-direction {
  height: 100%;
  opacity: 1 !important;
  display: block !important;
}

.slider-content.s-tb {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  min-height: 200px !important;
}

.title-container.s-tb-c{
  width: 100%;
  height: auto;
  position: relative !important;
  z-index: 10 !important;
}

.slider-content .container.text-left {
  padding-left: 80px;
  padding-right: 20px;
  max-width: 800px;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 200px !important;
}

.slider-big-text.first-line {
  margin-bottom: 20px !important;
}

.slider-big-text.first-line p {
  padding: 0;
  line-height: 1.2;
  font-size: 3.5rem;
  text-transform: capitalize;
  margin-bottom: 0;
  font-weight: 900;
  font-family: 'Suisse Intl', sans-serif;
  position: relative;
  display: inline-block;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider-btn-area.forth-line.margin-t-30 {
  margin-top: 20px !important;
  display: block !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 15 !important;
}

.btn-ghost.color-yellow {
  padding: 12px 30px;
  border: 2px solid var(--theme-button-color);
  background-color: var(--theme-button-color);
  color: white !important;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative !important;
  z-index: 20 !important;
  opacity: 1 !important;
}

/* Responsive styles */
@media (max-width: 991px) {
  .slider-content .container.text-left {
    padding-left: 60px;
    min-height: 180px !important;
  }
  .slider-big-text.first-line p {
    font-size: 25px !important;
  }
  .btn-ghost.color-yellow {
    padding: 10px 25px;
  }
}

@media (max-width: 767px) {
  .slider-content .container.text-left {
    padding-left: 40px;
    min-height: 150px !important;
  }
  .slider-big-text.first-line p {
    font-size: 20px !important;
  }
  .btn-ghost.color-yellow {
    padding: 8px 20px;
    font-size: 1.9rem;
  }
}

@media (max-width: 575px) {
  .slider-content .container.text-left {
    padding-left: 20px;
    padding-right: 15px;
    min-height: 120px !important;
  }
  .slider-big-text.first-line p {
    font-size: 15px !important;
  }
  .btn-ghost.color-yellow {
    padding: 8px 15px;
    font-size: 1.85rem;
  }
  .slider-btn-area.forth-line.margin-t-30 {
    margin-top: 15px !important;
  }
}

/* Панель бронирования ровно под хедером и на картинке (desktop).
   На мобиле — в потоке под meanmenu, иначе перекрывает хедер. */
body.has-home-slider .booking-bar {
  --booking-bar-surface: rgba(0, 0, 0, 0.28);
  position: absolute;
  top: var(--booking-bar-offset, 72px);
  left: 0;
  right: 0;
  margin-top: 0;
  z-index: 90;
  background: var(--booking-bar-surface);
  -webkit-backdrop-filter: blur(2px) saturate(1.25);
  backdrop-filter: blur(2px) saturate(1.25);
  box-shadow: 0 6px 16px color-mix(in srgb, #000 10%, transparent);
}

body.has-home-slider #fixed-type-slider {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

/* Подписи ниже хедера и панели; фото остаётся под стеклом */
body.has-home-slider #fixed-type-slider .nivo-caption .slider-content {
  padding-top: calc(var(--booking-bar-caption-inset, 0px) + var(--booking-bar-height, 0px));
  box-sizing: border-box;
}

@media (max-width: 991px) {
  body.has-home-slider .booking-bar {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 5;
    margin-top: 0;
    /* На мобиле без фото под панелью — сплошной цвет темы, не серое стекло */
    --booking-bar-surface: color-mix(in srgb, var(--site-primary-color, var(--theme-main-color, #111)) 88%, #000);
    background: var(--booking-bar-surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 4px 14px color-mix(in srgb, #000 12%, transparent);
  }

  body.has-home-slider #fixed-type-slider {
    margin-top: 0 !important;
  }

  body.has-home-slider #fixed-type-slider .nivo-caption .slider-content {
    padding-top: 0;
  }
}

/* Fix for Nivo Caption container */
.nivo-caption > .slider-direction {
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  opacity: 1 !important;
}

/* Ensure only one instance of slider content is visible */
.nivo-caption .slider-direction:not(:first-child) {
  display: none !important;
}

.retry-button {
  margin-top: 15px;
  padding: 8px 20px;
  cursor: pointer;
}

.retry-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.retry-attempts {
  display: block;
  margin-top: 10px;
  color: #666;
}

.alert.alert-danger {
  text-align: center;
  padding: 20px;
}

.alert.alert-danger p {
  margin-bottom: 15px;
}
.event-card-link {
  display: block; /* Make the link a block element to encompass its content */
  text-decoration: none; /* Remove default underline from link */
  color: inherit; /* Ensure text color is inherited from parent or can be styled directly */
}

.speaker-layout3 {
  position: relative;
  margin-bottom: 32px;
  background: linear-gradient(120deg, #232526 0%, #414345 100%);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}
.speaker-layout3:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.19);
  transform: translateY(-6px) scale(1.03);
}

.speaker-layout3 .s1-event-card-image {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #151019;
}

.speaker-layout3 .img-fluid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.35s ease;
}

.speaker-layout3:hover .img-fluid {
  transform: scale(1.04);
}

.speaker-layout3 .item-title {
  /* Ensure item-title is still correctly positioned if needed, 
     though direct children of a block link should flow naturally. 
     If it was absolutely positioned, review its context. */
  padding: 15px; /* Example padding, adjust as per original design */
}

.speaker-layout3 .title {
  font-weight: 700;
  color: #fff; /* Explicitly set title color as it's now part of a link */
  margin-bottom: 8px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Remove specific link styling for title as it's part of the larger card link */
/* .speaker-layout3 .title a { ... } */
/* .speaker-layout3 .title a:hover { ... } */

.speaker-layout3 .title-light {
  font-size: 0.98rem;
  color: var(--theme-text-color); /* Or #ccc if you want it lighter than default link color */
  margin-bottom: 0;
  font-weight: 400;
}

/* Social links are actual <a> tags and should remain clickable independently */
/* Ensure they are not negatively impacted by the parent <a> tag. */
/* Add z-index if they get hidden or are not clickable, though this is usually not needed for nested <a> */
.speaker-layout3 .item-social a {
  color: #fff;
  background: var(--theme-button-color);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.18rem;
  transition: background 0.2s, color 0.2s;
  position: relative; /* Might help if clicks go to parent link */
  z-index: 1;      /* Might help if clicks go to parent link */
}
.speaker-layout3 .item-social a:hover {
  background: #fff;
  color: var(--theme-text-color);
}

@media (max-width: 767px) {
   .speaker-layout3 {
    max-width: 350px;
  }
  .speaker-layout3 .item-title {
   left:10px; /* This might need     review if padding is used instead */
   padding: 10px; /* Consistent padding example */
}
}

/* Карточки «Спорт и доп. услуги» на главной: компактные прямоугольные
   постеры (пропорция 3/4), уменьшены и ширина, и высота.
   Скоуп по секции, чтобы не задевать карточки страницы «Афиша». */
.overlay-icon-layout4 .menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 576px) {
  .overlay-icon-layout4 .menu-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .overlay-icon-layout4 .menu-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .overlay-icon-layout4 .menu-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .overlay-icon-layout4 .menu-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.overlay-icon-layout4 .menu-list__empty {
  grid-column: 1 / -1;
}

.overlay-icon-layout4 .speaker-layout3 {
  margin-bottom: 0; /* вертикальный ритм даёт gap сетки */
}

.overlay-icon-layout4 .s1-event-card-image {
  aspect-ratio: 3 / 4; /* прямоугольный постер: ширина и высота уменьшены вместе */
}

.overlay-icon-layout4 .speaker-layout3 .item-title {
  left: 12px;
  right: 12px;
  padding: 0;
}

.overlay-icon-layout4 .speaker-layout3 .item-title .title {
  font-size: 13px;
}

@media (max-width: 767px) {
  .overlay-icon-layout4 .speaker-layout3 .item-title .title {
    font-size: 12px;
  }
}
