/* === БАННЕР MAIN V2 === */
.banner-main-v2 {
  position: relative;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;

  display: flex;
  align-items: center;
  overflow: hidden;
  /* Оптимизация изображения */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.banner-main-v2-overlay {
  position: absolute;
  inset: 0;
}

.banner-main-v2-bottom {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  text-align: center;
}

.banner-main-v2-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  margin: 0 auto;
}
.banner-main-v2-btn-blue {
  background: #1f50ff;
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}
.banner-main-v2-btn-blue:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}
.banner-main-v2-btn-outline {
  background: #db8302;
  color: white;
  border: 2px solid white;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}
.banner-main-v2-btn-outline:hover {
  background: white;
  color: #2c3e50;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}
.banner-main-v2-btn-outline:hover svg {
  color: #2c3e50;
}
.banner-main-v2-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  animation: fadeInLeft 1s ease-out;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.banner-main-v2-desc {
  font-size: 1.3rem;
  color: #e0e0e0;
  animation: fadeInLeft 1s ease-out 0.3s both;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}
.banner-main-v2-buttons {
  display: flex;
  gap: 20px;
  animation: fadeInUp 1s ease-out 0.6s both;
  margin: 0 auto;
}
.banner-main-v2-btn {
  padding: 15px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
}
/* БЛОК КОНТАКТОВ для ПК */
.banner-main-v2-contacts-desktop {
  padding: 0 30px;
  animation: fadeInUp 1s ease-out 0.9s both;
  align-self: flex-start;
}
.banner-main-v2-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #db8302;
  font-size: 1rem;
  font-weight: 700;
}
.banner-main-v2-contact-item:last-child {
  margin-bottom: 0;
}
.banner-main-v2-col-w {
  color: white;
  font-weight: 700;
}
/* АНИМАЦИИ */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* БЛОК КОНТАКТОВ для ПЛАНШЕТОВ (по умолчанию скрыт) */
.banner-main-v2-contacts-tablet {
  display: none;
}
.banner-main-v2-contacts-tablet .container {
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .banner-main-v2 {
    height: 60vh;
    /* Ещё ниже для планшетов */
    min-height: 450px;
  }

  .banner-main-v2-content {
    padding: 20px 40px;
  }
}

@media (max-width: 768px) {
  .banner-main-v2 {
    height: auto;
    min-height: auto;
    height: 240px;
    padding: 20px 20px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.3) 100%
      ),
      url("<?= SITE_TEMPLATE_PATH ?>/assets/img/homeBanner1.png") center/cover
        no-repeat;
  }
  .banner-main-v2-overlay {
    display: none;
  }
  .banner-main-v2-content {
    width: 100%;
    padding: 0;
    text-align: center;
    gap: 25px;
    background: none;
    backdrop-filter: none;
    left: auto;
    justify-content: space-between;
    height: 100%;
  }
  .banner-main-v2-title {
    font-size: 2rem;
  }
  .banner-main-v2-desc {
    font-size: 1.1rem;
  }
  .banner-main-v2-buttons {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    margin: 0 auto;
  }
  .banner-main-v2-btn {
    width: max-content;
    justify-content: center;
    padding: 5px 10px;
  }
  .banner-main-v2-contacts-desktop {
    display: none !important;
  }
  .banner-main-v2-contacts-tablet {
    display: block !important;
  }
  .banner-main-v2-contact-item {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 400;
  }
  .banner-main-v2-col-w {
    color: rgb(52, 152, 219);
    font-weight: 400;
  }
}
/* === БЛОК ДЛЯ ПЛАНШЕТОВ (по умолчанию скрыт) === */
.banner-main-v2-actions-tablet {
  display: none;
  padding: 20px;
}
.banner-main-v2-actions-tablet .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.banner-main-v2-buttons-tablet {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.banner-main-v2-contacts-tablet {
  margin: 0 auto;
}
@media (max-width: 768px) {
  .banner-main-v2-buttons-desktop,
  .banner-main-v2-contacts-desktop {
    display: none !important;
  }
  .banner-main-v2-actions-tablet {
    display: block !important;
  }
  .banner-main-v2-buttons-tablet {
    flex-wrap: wrap;
    width: 100%;
  }
}
/* === КАРТОЧКИ АКТИВНОГО ОТДЫХА === */
/* Основная секция */
.activities-section {
  padding: 40px 20px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  color: white;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
}
.activity-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.visual-part {
  position: relative;
  height: 45%;
  overflow: hidden;
}
.visual-part img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 50%,
    var(--card-bg) 100%
  );
  z-index: 1;
}
.content-part {
  height: 55%;
  padding: 25px;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  position: relative;
  z-index: 2;
}

.activity-card[data-activity="tactics"] {
  --card-bg: #1a2332;
}
.activity-card[data-activity="park"] {
  --card-bg: #db8302;
}
.activity-card[data-activity="quest"] {
  --card-bg: #311b92;
}
.activity-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  margin-bottom: 15px;
}
.activity-desc {
  margin-bottom: 15px;
  flex-grow: 1;
  overflow-y: auto;
  max-height: 220px;
  padding-right: 5px;
}
.activity-desc::-webkit-scrollbar {
  width: 4px;
}

.activity-desc::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.activity-desc::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
.activity-desc a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.6;
  padding: 5px;
  border-radius: 6px;
  transition: all 0.2s;
  margin-bottom: 4px;
}
.activity-desc a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}
.activity-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.metric {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
  color: white;
}
.cta-button {
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  margin-top: auto;
  text-align: center;
}
.activity-card:hover {
  transform: translateY(-10px);
}
.activity-card:hover .visual-part img {
  transform: scale(1.1);
}
.activity-card:hover .cta-button {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}
/*
  .decorative-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    pointer-events: none;
  }
  .park-icons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 2;
  }
  .icon {
    font-size: 24px;
    animation: icon-float 3s ease-in-out infinite;
  }

  .icon:nth-child(2) {
    animation-delay: 0.5s;
  }

  .icon:nth-child(3) {
    animation-delay: 1s;
  }
*/

@keyframes bounce-vertical {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}
.cta-button {
  display: block;
  text-decoration: none;
  text-align: center;
  animation: bounce-vertical 3s ease-in-out infinite;
}
.cta-button:hover {
  animation-play-state: paused;
  background: white;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}
.activity-card:hover .cta-button {
  animation-duration: 0.6s;
  animation-iteration-count: 1;
}

@media (max-width: 768px) {
  .activities-section {
    padding: 0;
  }

  .activities-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .activity-card {
    height: max-content;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .content-part {
    height: auto;
  }

  .activity-desc {
    overflow-y: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === ПРОВЕДЕНИЕ МЕРОПРИЯТИЙ === */
.events-two-col {
  padding: 60px 0;
}
.events-two-col__inner {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: center;
}
.events-two-col__text {
  width: 50%;
  color: #2c3e50;
}
.events-two-col__text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.events-two-col__text p {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.events-two-col__text ul {
  list-style: disc;
  padding-left: 20px;
}

.events-two-col__text ul li {
  margin-bottom: 15px;
}

.events-two-col__right {
  width: 50%;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 20px;
}

.event-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #34495e;
}

.events-two-col__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.event-card {
  flex: 1 1 calc(33.333% - 20px);
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: height 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  gap: 15px;
}

/* Описание в карточке - скрыто на ПК */
.event-card__description {
  display: none;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
}

.hint-arrow {
  color: #0071e3;
  animation: bounce 3s infinite;
  display: inline-block;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s, opacity 0.3s;
  white-space: nowrap;
}

.event-card:hover .hint-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* Адаптив */
@media (max-width: 992px) {
  .events-two-col__inner {
    gap: 40px;
    flex-direction: column;
  }

  .events-two-col__text,
  .events-two-col__right {
    width: 100%;
  }

  /* На планшетах и мобильных скрываем список слева */
  .events-two-col__list {
    display: none;
  }

  /* Показываем описания в карточках */
  .event-card__description {
    display: block;
  }

  .event-card {
    flex: 1 1 calc(50% - 20px);
    /* На планшетах 2 колонки */
  }
}

@media (max-width: 768px) {
  .events-two-col {
    padding: 40px 0;
  }

  .events-two-col__text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .events-two-col {
    padding: 30px 0;
  }

  .events-two-col__text h2 {
    font-size: 1.75rem;
  }

  .events-two-col__cards {
    gap: 15px;
  }

  .event-card {
    flex: 1 1 100%;
    /* На мобильных в одну колонку */
    padding: 15px;
    gap: 12px;
  }

  .event-card h3 {
    font-size: 1.1rem;
  }
}

/* Слайдер */
.events-two-col__slide {
  overflow: hidden;
  height: 150px;
  width: 100%;
  position: relative;
  margin-top: 20px;
}

.slide-track {
  display: flex;
  animation: scroll 20s linear infinite;
}

.slide-track img {
  height: 150px;
  margin-right: 10px;
  object-fit: cover;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}
/* === ЗОНА ОТДЫХА === */
.relax-zones-section {
  padding: 40px 0;
  font-family: "Montserrat", sans-serif;
}

.flex-container {
  position: relative;
  height: 70vh;
  min-height: 500px;
  width: 100%;
  display: flex;
  overflow: hidden;
}
.flex-title {
  color: white;
  position: relative;
  font-size: 2.5vw;
  margin: auto;
  text-align: center;
  transform: rotate(90deg);
  top: 30%;
  transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-weight: 700;
}
.flex-about {
  opacity: 0;
  color: white;
  position: absolute;
  width: 80%;
  font-size: 14px;
  padding: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid white;
  border-radius: 10px;
  line-height: 1.5;
  transition: opacity 500ms ease;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}
.flex-slide {
  flex: 1;
  cursor: pointer;
  position: relative;
  transition: flex-grow 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.flex-slide:hover,
.flex-slide.active {
  flex-grow: 4;
}
.flex-slide:hover .flex-title,
.flex-slide.active .flex-title {
  transform: rotate(0deg);
  top: 5%;
}
.flex-slide:hover .flex-about,
.flex-slide.active .flex-about {
  opacity: 1;
}
.flex-slide.rent {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("/upload/iblock/a77/20hia9wikfc02grjai33e51ecar0mdql.jpg");
  background-size: cover;
  background-position: center;
}

.flex-slide.bath {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("/upload/iblock/1db/y741z6engdfp0923ko2bi8j970xhd4lq.jpg");
  background-size: cover;
  background-position: center;
}

.flex-slide.food {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("/upload/iblock/8ee/zsskuhtn6rvt1ldq4bw2bw4v5kn2sbd0.jpg");
  background-size: cover;
  background-position: center;
}
.slide-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 15px;
}

.slide-services a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.slide-services a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}
.slide-button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 30px;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
  animation: bounce-vertical 3s ease-in-out infinite;
}

.slide-button:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
  animation-play-state: paused;
}

@keyframes bounce-link {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.zone-services a {
  animation: bounce-link 2.5s ease-in-out infinite;
}
.zone-services a:hover {
  animation-play-state: paused;
}
/* Последовательная задержка для каждой ссылки */
.zone-services a:nth-child(1) {
  animation-delay: 0s;
}
.zone-services a:nth-child(2) {
  animation-delay: 0.2s;
}
.zone-services a:nth-child(3) {
  animation-delay: 0.4s;
}
.zone-services a:nth-child(4) {
  animation-delay: 0.6s;
}
.zone-services a:nth-child(5) {
  animation-delay: 0.8s;
}
.zone-services a:nth-child(6) {
  animation-delay: 1s;
}

@keyframes bounce-vertical {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* === МОБИЛЬНАЯ ВЕРСИЯ: СТАТИЧНЫЕ БЛОКИ === */
@media screen and (max-width: 768px) {
  .flex-container {
    flex-direction: column;
    height: auto;
    overflow: visible;
    gap: 30px;
    /* Отступы между блоками */
  }

  .relax-zones-section {
    padding: 0 15px;
  }

  /* Каждый слайд — просто блок */
  .flex-slide {
    min-height: auto !important;
    height: auto !important;
    flex-grow: 1 !important;
    cursor: default;
    /* Убираем курсор pointer */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

  /* Заголовок — просто заголовок */
  .flex-title {
    transform: rotate(0deg) !important;
    font-size: 24px;
    padding: 25px 20px;
    margin: 0;
    text-align: left;
    position: relative;
    top: auto;
  }

  /* Контент — виден всегда */
  .flex-about {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    width: 100% !important;
    border: none !important;
    padding: 25px 20px;
    margin-bottom: 25px;
  }

  /* Ссылки в обычном виде */
  .slide-services {
    /*  grid-template-columns: 1fr !important;*/
    grid-template-columns: repeat(2, 1fr);
  }

  /* Убираем все !important из активных состояний */
  .flex-slide.active,
  .flex-slide:hover {
    flex-grow: 1 !important;
    min-height: auto !important;
  }

  /* Убираем псевдоэлементы */
  .flex-title::after,
  .flex-about::before {
    display: none;
  }
}
