/* ============================================================
   UNIVERSAL COVER — обложка страницы
   ============================================================ */

/* Базовый блок */
.u-cover {
  position: relative;
  width: 100%;
  overflow: hidden;

  /* дефолтные размеры блока — можно переопределить из PHP */
  height: 60vh;
  padding: 10vh 4vw;

  display: flex;
  align-items: center;
  justify-content: center;

  /* центрируем блок, если width < 100% */
  margin: 2rem auto;

  /* дефолтные переменные */
  --cover-text-color: #ffffff;
  --cover-title-gap: 0em;
}

/* Фон (картинка или видео) */
.u-cover__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.u-cover__image,
.u-cover__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* как раньше: можно обрезать, без полос */
  object-position: center;
}

/* затемнение фонового изображения */
.u-cover__overlay {
  position: absolute;
  inset: 0;
  background: var(--cover-overlay, rgba(0,0,0,0.25));
  z-index: 1;
  pointer-events: none;
}

/* Внутренний слой */
.u-cover__inner {
  position: relative;
  z-index: 2;

  width: 100%;
  display: flex;
  justify-content: center;
}

/* Текстовый блок */
.u-cover__content {
  position: relative;
  display: inline-block;

  padding: 2rem 2.4rem;
  color: var(--cover-text-color);
  text-align: center;

  font-family: "Cormorant Garamond", serif;
}

/* Заголовок */
.u-cover__title {
  margin: 0 0 var(--cover-title-gap);
  font-weight: 500;
  color: inherit;
}

/* Подзаголовок */
.u-cover__subtitle {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: inherit;
}

/* Логотип */
.u-cover__logo-wrap {
  margin-bottom: 1rem;
}

.u-cover__logo {
  display: block;
  max-height: 4em;
  margin: 0 auto;
}

/* Кнопки */
.u-cover__buttons {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.u-cover__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.6em 1.4em;
  border-radius: 999em;
  
  background: rgba(0, 0, 0, 0.35);
  border: 0.0625em solid rgba(255,255,255,0.85);

  color: #ffffff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9em;
  letter-spacing: 0.02em;
  text-decoration: none;

  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.u-cover__button:hover {
  background: rgba(0,0,0,0.55);
  border-color: #ffffff;
  transform: translateY(-0.0625em);
}

/* Режим две колонки */
.u-cover--split .u-cover__inner {
  display: flex;
  align-items: center;
  gap: 4vw;
}

.u-cover__col {
  flex: 1;
}

.u-cover__col--text {
  display: flex;
  justify-content: center;
}

.u-cover__col--media {
  height: 100%;
}

.u-cover__side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Адаптив */
@media (max-width: 768px) {
  .u-cover {
    height: auto;
    padding: 12vw 4vw;
  }

  .u-cover--split .u-cover__inner {
    flex-direction: column;
  }

  .u-cover__title {
    font-size: 2.4em;
  }
}

/* Лёгкая тень для читаемости текста на фоне */
.u-cover__title,
.u-cover__subtitle {
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.75);
}
