@import url('https://fonts.googleapis.com/css2?family=Parisienne&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

/* 1. Обзор проекта: Чистый, минималистичный, журнальный стиль (ТЕМНИЙ) */
.bridge-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #0a0a0a;
  background-image: radial-gradient(circle at top right, rgba(255, 123, 137, 0.2) 0%, transparent 60%),
                    radial-gradient(circle at bottom left, rgba(255, 123, 137, 0.1) 0%, transparent 60%);
  color: #ffffff; /* White text */
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2.2 Главный блок */
.bridge-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  max-width: 1600px; /* Більше простору на ПК */
  margin: 0 auto;
  width: 100%;
}

.bridge-hero-image {
  width: 100%;
  max-width: 750px;
  height: 850px;
  margin-bottom: 40px;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(255, 123, 137, 0.15); /* Red-pink glow */
  overflow: hidden;
}

.horizontal-slider-track {
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.83, 0, 0.17, 1); /* Плавний швидкий свайп */
}

.photo-card {
  position: relative;
  min-width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
}

.photo-card img {
  width: 100%;
  height: 100%; /* Тепер картинка завжди заповнюватиме весь контейнер */
  object-fit: cover;
  display: block;
}

.photo-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.photo-name {
  font-size: 16px;
  font-weight: 500;
}

.photo-age {
  font-size: 16px;
  font-weight: 300;
  color: #d1d1d1;
}

.bridge-content {
  text-align: center;
  max-width: 900px; /* Збільшив ширину, щоб вліз текст */
}

.bridge-content h1 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; /* Екстра-лакшері журнальний стиль */
  font-weight: 600;
  margin: 0 0 20px 0;
  letter-spacing: 0px;
  line-height: 1.1;
}

.title-highlight {
  font-family: 'Parisienne', 'Snell Roundhand', 'Zapfino', 'Apple Chancery', cursive;
  font-size: 115px; /* Більший текст */
  background: linear-gradient(to right, #ffffff, #ff7b89);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-right: 15px; /* щоб курсив не обрізався */
  white-space: nowrap; /* Примусово в один рядок */
}

.title-sub {
  font-size: 65px; /* Менший текст */
  color: #ffffff;
}

.bridge-content p {
  font-size: 16px; /* Менший розмір тексту */
  font-weight: 300;
  color: #b3b3b3;
  margin: 0;
  line-height: 1.6;
}

.landing-description {
  font-size: 20px;
  color: #c4c4c4;
  margin-top: -5px;
  margin-bottom: 25px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* --- Stats Cards --- */
.landing-stats-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 30px;
  justify-content: flex-start;
}

.landing-stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 24px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.landing-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 123, 137, 0.4);
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #ff7b89;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-shadow: 0 0 15px rgba(255, 123, 137, 0.3);
  white-space: nowrap;
}

.stat-text {
  font-size: 14px;
  color: #e0e0e0;
  line-height: 1.3;
  max-width: 140px;
  text-align: left;
  font-weight: 300;
}

.show-all-btn {
  display: inline-block;
  margin-top: 50px;
  padding: 16px 60px;
  background: linear-gradient(135deg, #ff7b89 0%, #e02d54 100%);
  color: #ffffff;
  font-family: 'Parisienne', 'Snell Roundhand', 'Zapfino', 'Apple Chancery', cursive;
  font-size: 44px;
  font-weight: normal;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(255, 123, 137, 0.4);
  border: none;
  cursor: pointer;
  line-height: 1.2;
}

.show-all-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 123, 137, 0.6);
  background: linear-gradient(135deg, #ff8c98 0%, #eb3860 100%);
}

.landing-footer {
  text-align: center;
  padding: 30px 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* --- Manager Modal Overlay --- */
.manager-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.manager-card-container {
  background: #ffffff;
  border-radius: 24px;
  padding: 12px;
  max-width: 450px; /* Збільшив ширину на ~15% */
  width: 90%;
  margin: 0;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: left;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.manager-card-header {
  position: relative;
  width: 100%;
  height: 380px; /* Збільшив висоту фото */
  border-radius: 16px;
  overflow: hidden;
}

.manager-card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  pointer-events: none;
}

.manager-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.95);
}

.manager-overlay-text {
  position: absolute;
  top: auto;
  bottom: 25px; /* Зсунув текст вниз */
  left: 0;
  width: 100%;
  text-align: center;
  color: #ffffff;
  z-index: 2;
}

.manager-overlay-text h2 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 24px; /* Більший шрифт */
  font-weight: 500;
  margin: 0 0 6px 0;
  letter-spacing: 0;
  color: #ffffff;
  text-transform: none;
}

.manager-overlay-text p {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px; /* Більший шрифт */
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #34c759;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px rgba(52, 199, 89, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.manager-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 0 8px 4px 8px;
}

.manager-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.manager-avatar-wrapper {
  position: relative;
  width: 52px; /* Збільшив аватарку */
  height: 52px;
}

.manager-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.05);
}

.manager-online-badge {
  position: absolute;
  bottom: 0;
  right: -2px;
  width: 14px;
  height: 14px;
  background-color: #34c759;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.manager-profile-info {
  display: flex;
  flex-direction: column;
}

.manager-handle {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px; /* Більший нікнейм */
  font-weight: 500;
  color: #1c1c1e;
  line-height: 1.2;
}

.manager-time {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px; /* Більший статус */
  color: #8e8e93;
  margin-top: 2px;
}

.manager-tg-btn {
  background: linear-gradient(135deg, #2AABEE 0%, #1c8add 100%);
  color: #ffffff;
  padding: 12px 18px; /* Збільшив відступи кнопки */
  border-radius: 12px;
  font-size: 15px; /* Більший текст кнопки */
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap; /* Щоб текст не переносився */
  flex-shrink: 0; /* Забороняємо стискання кнопки */
  box-shadow: 0 4px 15px rgba(42, 171, 238, 0.35); /* Красиве світіння */
}

.manager-tg-btn:hover {
  background: linear-gradient(135deg, #30b3f5 0%, #1f94ea 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 171, 238, 0.55);
}

/* 3. Технические требования: Mobile-first & Один экран без скролла */
@media (max-width: 767px) {
  .bridge-container {
    height: 100vh;
    overflow: hidden;
  }
  .bridge-main {
    padding: 10px 5%; /* Зменшив відступи */
    justify-content: center;
    gap: 15px; /* Менша відстань між елементами */
  }
  .bridge-hero-image {
    max-width: 320px; 
    margin: 0 auto 10px auto;
  }
  .bridge-hero-image, .vertical-slider-track img {
    max-height: 46vh; /* Збільшив фото на 20% по висоті */
    height: 46vh;
  }
  .photo-info {
    bottom: 12px;
    left: 12px;
    padding: 6px 12px;
  }
  .photo-name, .photo-age {
    font-size: 14px;
  }
  .bridge-content h1 {
    margin-bottom: 5px;
  }
  .title-highlight {
    font-size: 52px; /* Менший заголовок */
  }
  .title-sub {
    font-size: 26px; /* Менший підзаголовок */
  }
  .landing-description {
    font-size: 13px; /* Менший опис */
    margin-bottom: 15px;
    line-height: 1.3;
  }
  .manager-card-container {
    max-width: 90%;
  }
  
  /* Статистика в ОДИН рядок на мобільному! */
  .landing-stats-container {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    gap: 10px;
  }
  .landing-stat-card {
    width: 48%; /* Половина ширини для кожної картки */
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 10px 14px;
    gap: 8px;
  }
  .stat-number {
    font-size: 22px;
  }
  .stat-text {
    font-size: 11px;
    max-width: 100px;
  }

  .show-all-btn {
    width: 100%;
    padding: 12px; /* Менша висота кнопки */
    background: linear-gradient(135deg, #ff7b89 0%, #e02d54 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 28px; /* Трохи менший шрифт */
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
  }
  .manager-card-header {
    height: 280px; /* Збільшив висоту фото на ~10% */
    display: block !important;
  }
  .manager-cover-img {
    display: block !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .manager-overlay-text h2 {
    font-size: 21px; /* Трохи менший шрифт щоб не ламало рядки */
    padding: 0 10px;
    line-height: 1.2;
  }
  .manager-avatar-wrapper {
    width: 66px !important;
    height: 66px !important;
  }
  .manager-avatar {
    width: 66px !important; /* +10% від 60px */
    height: 66px !important;
  }
  .manager-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .manager-profile {
    justify-content: flex-start;
  }
  .manager-tg-btn {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 12px;
    font-size: 16px;
  }
}

/* Desktop version - Magazine layout */
@media (min-width: 768px) {
  .bridge-main {
    flex-direction: row;
    gap: 80px; /* Більший відступ між фото і текстом */
    justify-content: flex-start; /* Фото більше зліва */
    padding-left: 0; /* Прибрав лівий відступ щоб посунути вліво */
    padding-top: 50px; /* Трішки простору зверху на ПК */
  }
  
  .bridge-hero-image {
    margin-bottom: 0;
    flex: 1.2; /* Фото займає більше місця ніж текст */
    display: flex;
    justify-content: flex-start; /* Вирівнювання по лівому краю */
  }
  
  .bridge-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
}
