* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

.page-header {
  background-color: #989694;
  background-image: url("background.jpg");
  background-position: center center;
  background-size: cover;
  min-height: 100vh;
  max-height: 999px;
  overflow: hidden;
  position: relative;
  width: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header .filter::after {
  background-color: rgba(0, 0, 0, 0.5);
  content: "";
  display: block;
  height: 100vh;
  width: 100vw;
  left: 0;
  top: 0;
  position: absolute;
  z-index: 1;
}

.moving-clouds {
  background-image: url("clouds.png");
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  width: 250.625em;
  height: 43.75em;
  -webkit-animation: cloudLoop 120s linear infinite alternate;
  animation: cloudLoop 120s linear infinite alternate;
  opacity: 0.5;
}

@keyframes cloudLoop {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;1,500&display=swap");

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.05) 30%,
    rgba(0, 0, 0, 0.05) 70%,
    rgba(0, 0, 0, 0.45) 100%
  );
  z-index: 3;
  pointer-events: none;
}

.badge {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: center;   /* по центру по горizontали */
  align-items: center;       /* по центру по вертикали */
}

.badge-content {
  transform: translateY(-70%);

  display: flex;
  flex-direction: column;
  align-items: center;      /* каждый дочерний блок центрируется по горизонтали */
  text-align: center;

  position: relative;
  width: 90vmin;
  max-width: 500px;
}


.logo-photo {
  color: #f2f2f0;
  font-weight: 600;
  font-style: normal;
}

.logo-site {
  color: #c9a227;
  font-weight: 500;
  font-style: italic;
}


.badge-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
}

.badge-divider {
  width: 46em;
  height: 1px;
  margin: 18px auto;   /* auto по бокам держит по центру, даже если что-то пойдёт не так с flex */
  background: linear-gradient(to right, transparent, #c9a227, transparent);
  transform: translateX(-60px);
}

.badge-text h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.badge-text p {
  font-size: 13px;
  font-weight: 300;
  color: #c9a227;
  font-style: italic;
}

@media (max-width: 600px) {

  .badge {
    width: 280px;
    padding: 28px 24px 24px;
  }
  .badge-logo {
    font-size: 21px;
  }
  .badge-text h1 {
    font-size: 15px;
  }
}
