/* client/css/style_home.css */
/* ===== Основной контейнер ===== */
.page-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.main-content.center-content {
  flex: 1; 
  display: flex;
  flex-direction: row; /* горизонтально */
  align-items: center;  /* выровнять по вертикали */
  justify-content: center; /* центрируем весь блок по горизонтали */
  /* flex-direction: column; */
  /* align-items: center; */
  /* justify-content: flex-start; */
  gap: 40px;
  width: 100%;
  text-align: center;
  padding: 20px;
  /* overflow: hidden; */
  margin: 0 auto;
  box-sizing: border-box;
}

/* Логотип */
/* .logo {
  flex-shrink: 0;
}

.logo h1 {
  font-family: "Playfair Display", serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
} */

/* .subtitle h2 {
  font-family: "Arial", sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  margin-top: 5px;
  color: #555;
} */

/* ===== Левая колонка: слайдер ===== */
.home-left {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* justify-content: flex-start; /* фото будет прижато к левому краю колонки */
  overflow: hidden;
}

/* ===== Слайдер ===== */
.slider-column {
  max-width: 500px;
  width: 100%;
  aspect-ratio: auto; /* сохраняем пропорции */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  /* flex: 1; */
  /* min-height: 0; */
}

.swiper {
  width: 100%;
  /* max-width: 600px; */ 
  height: 400px;
  /* margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #fff; */
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; 
  /* width: 100%;
  height: 100%;
  object-fit: cover; /* красиво вписывается */
  display: block;
}

/* Пагинация */
.swiper-pagination {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #ccc;
  opacity: 1;
  margin: 0 4px !important;
  border-radius: 50%;
  transition: background 0.3s;
}

.swiper-pagination-bullet-active {
  background: #c05a7c;
}

/* ===== Правая колонка: текст + Telegram ===== */
.home-right {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  text-align: left; /* текст слева */
}

.home-title {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  /* margin: 0 0 10px 0; */
}

.home-subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  /* margin: 0; */
}

/* Блок Telegram */
#telegram-links { 
  text-align: center; 
  /* flex-shrink: 0; */ 
  margin-top: 8px; 
} 

#telegram-links p { 
  margin-bottom: 8px; 
  font-weight: bold; 
  font-size: 14px; 
} 

#telegram-links a { 
  display: inline-block; 
  margin: 4px 8px; 
  padding: 8px 16px; 
  background-color: #c05a7c; 
  color: #fff; 
  text-decoration: none; 
  border-radius: 6px; 
  font-weight: bold; 
  font-size: 13px; 
  transition: background 0.3s; 
} 

#telegram-links a:hover { 
  background-color: #9c4660; 
}

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .main-content.center-content { gap: 25px; }
  .home-title { font-size: 28px; }
  /* .home-subtitle { font-size: 15px; }
  .slider-column { height: 350px; } */
  .slider-column { max-width: 90%; aspect-ratio: 16 / 9; }
}

@media (max-width: 768px) {
  .main-content.center-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .home-left, .home-right { flex: 1 1 100%; }
  .slider-column { aspect-ratio: 16 / 9; max-width: 100%; }
  /* .slider-column { height: 250px; max-width: 100%; } */
  .home-title { font-size: 24px; }
  .home-subtitle { font-size: 14px; }
}

@media (max-width: 480px) {
  .slider-column { height: 180px; }
  .home-title { font-size: 20px; }
  .home-subtitle { font-size: 13px; }
  #telegram-links a { padding: 8px 14px; font-size: 14px; }
}