/* Главная страница — page-specific styles. */

/* ─── Hero ─── */
.hero { position: relative; }

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  filter: brightness(0.4) contrast(1.05);
}

.hero__overlay { z-index: 1; }

/* ─── Hero: тени для ярких шрифтов ─── */
.hero__title {
  text-shadow: 0 2px 30px rgba(0,0,0,0.8), 0 0 60px rgba(0,0,0,0.5);
}

.hero__label {
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}

.hero__text {
  color: #fff;
}

.hero__content {
  position: relative;
  z-index: 2;
}

/* ─── Мозаика фотографий ─── */
.photo-mosaic {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.photo-mosaic__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  max-width: 1000px;
  margin: 0 auto;
}

.photo-mosaic__item {
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.photo-mosaic__item:hover img {
  transform: scale(1.04);
}

.photo-mosaic__item--wide { grid-column: span 2; }
.photo-mosaic__item--tall { grid-row: span 2; }

@media (max-width: 768px) {
  .photo-mosaic__grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .photo-mosaic__item--wide { grid-column: span 1; }
  .photo-mosaic__item--tall { grid-row: span 1; }
}

@media (max-width: 480px) {
  .photo-mosaic__grid { grid-template-columns: 1fr; }
}

/* ─── Кинематографический фон-разделитель ─── */
.cinematic-bg {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.cinematic-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.45) saturate(0.75) contrast(1.1);
  transition: transform 8s ease-out;
}

.cinematic-bg:hover img {
  transform: scale(1.04);
}

.cinematic-bg__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      transparent 18%,
      transparent 82%,
      var(--bg) 100%
    );
  pointer-events: none;
}

/* ─── CTA с фоном ─── */
.cta-section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.25) saturate(0.7) contrast(1.1);
  z-index: 0;
}

.cta-section__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(216,201,153,0.05), transparent 60%),
    linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,0.7) 100%);
  z-index: 1;
}

/* ─── Видео-разделитель ─── */
.video-divider--half { height: 25vh; }

.video-divider--half video { object-position: center top; }

.video-divider {
  position: relative;
  width: 100%;
  height: 200vh;
  overflow: hidden;
}

.video-divider video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: brightness(0.7) saturate(1.1) contrast(1.15);
  cursor: pointer;
}

.video-divider__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      transparent 8%,
      transparent 92%,
      var(--bg) 100%
    );
  pointer-events: none;
}

/* Кнопка-тогглер звука поверх видео-разделителя */
.video-divider__sound {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(216, 201, 153, 0.35);
  border-radius: 999px;
  color: var(--gold, #d8c999);
  font-family: 'Forum', Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.video-divider__sound:hover {
  background: rgba(10, 10, 10, 0.75);
  border-color: rgba(216, 201, 153, 0.7);
  transform: translateY(-1px);
}

.video-divider__sound-icon {
  display: block;
  flex: 0 0 auto;
}

/* По умолчанию звук выключен — показываем «off», скрываем «on» */
.video-divider__sound-icon--on  { display: none; }
.video-divider__sound.is-on .video-divider__sound-icon--off { display: none; }
.video-divider__sound.is-on .video-divider__sound-icon--on  { display: block; }

.video-divider__sound.is-on {
  background: rgba(216, 201, 153, 0.18);
  border-color: rgba(216, 201, 153, 0.85);
}

@media (max-width: 640px) {
  .video-divider__sound {
    right: 14px;
    bottom: 14px;
    padding: 8px 12px 8px 10px;
    font-size: 0.7rem;
  }
  .video-divider__sound-label { display: none; }
}
