/* Основной контейнер hero-секции */
.heroshot {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 800px;
  overflow: hidden;
  background-color: #000;
}

/* Контейнер видео */
.video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75); /* 0.5 = 50% яркости (черный фильтр) */
}

/* Кнопка Play/Pause */
.play-pause-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0.5rem 1rem;
  z-index: 20;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .play-pause-btn {
  opacity: 1;
}

.play-pause-btn .btn-circle {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  transition: background 0.2s;
}

.play-pause-btn .btn-circle:hover {
  background: white;
}

.play-pause-btn svg {
  width: 30%;
  fill: #00528c;
}

/* Контейнер для контента поверх видео */
.content-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  pointer-events: none;
  z-index: 10;
  padding-bottom: 3rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
}

/* Блоки контента (слайды) */
.hero-content-item {
  pointer-events: auto;
  background: white;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  display: none;
  animation: fadeInUp 0.5s ease;
}

.hero-content-item.active {
  display: block;
}

/* Логотип в виде SVG */
.logo-svg {
  height: 1.5rem;
  margin-bottom: 1rem;
}

.logo-svg svg {
  height: 100%;
  width: auto;
}

.hero-title {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #00528c;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.hero-button {
  display: inline-block;
  background: transparent;
  border: 2px solid #00528c;
  color: #00528c;
  padding: 0.6rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.25rem;
  transition: all 0.2s;
  pointer-events: auto;
}

.hero-button:hover {
  background: #00528c;
  color: white;
}


@media screen and (max-width: 767px) {
  .heroshot {
    height: 70vh;         
    max-height: 500px;
  }
}

/* Адаптив */
@media (min-width: 768px) {
  .hero-content-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 2rem;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .logo-svg {
    height: 2rem;
  }
  .content-overlay {
    padding-bottom: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero-content-item {
    background: white;
    margin-left: 3rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Десктоп: фон белый, но с прозрачностью? как на REA — на больших экранах фон становится прозрачным */
@media (min-width: 1024px) {
  .hero-content-item {
    background: rgba(255, 255, 255, 0);
    color: white;
    box-shadow: none;
  }
  .hero-title {
    color: white;
  }
  .hero-button {
    border-color: white;
    color: white;
  }
  .hero-button:hover {
    background: white;
    color: #00528c;
  }
  .logo-svg svg path {
    fill: white !important;
  }
}
