html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: #202227;
  background-image: url(images/logos.png);
  background-size: 200px 200px, 80px 80px;
  animation: logo linear 10s infinite;
  font-family: "Noto Sans", sans-serif;
  color: #7b818c;
  font-weight: 400;
}

@keyframes logo {
  100% {
    background-position: 200px -200px, 60px 60px;
  }
}

* {
  box-sizing: border-box;
}

/* ===== Header ===== */
#header {
  background: url("images/header2.jpg") center/cover no-repeat;
  transition: 0.5s;
  position: relative;
}

#header-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10% 8%;
}

#header h2 {
  font-family: "Cunia", sans-serif;
  color: #fff;
  font-size: clamp(28px, 5vw, 70px);
  margin-bottom: 10px;
  font-weight: bold;
  text-shadow: 0 3px 7px rgba(0, 0, 0, 0.35);
}

#header-inner p {
  color: #fff;
  line-height: 1.6;
  font-size: clamp(14px, 2vw, 18px);
  max-width: 480px;
  margin-bottom: 15px;
  text-shadow: 0 3px 7px rgba(0, 0, 0, 0.35);
}

#header-inner span {
  color: #d6d5d4;
  line-height: 1.5;
  font-size: clamp(12px, 1.5vw, 16px);
  display: inline-block;
  max-width: 500px;
  text-shadow: 0 3px 7px rgba(0, 0, 0, 0.35);
  margin-top: 10px;
}

#links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

#store {
  width: 150px;
  transition: 0.3s;
}
#store:hover {
  transform: scale(1.05);
}

/* ===== Topbar ===== */
#topbar {
  position: relative;
  padding: 1em;
}

.rexet-btn {
  border: none;
  border-radius: 12px;
  height: 55px;
  width: 55px;
  background: center/55px url(images/rexet.svg) no-repeat;
  box-shadow: 0 3px 27px rgba(0, 0, 0, 0.5);
  position: absolute;
  transition: all 0.3s;
}
.rexet-btn:hover {
  transform: scale(1.08);
}

#topbar-button-right {
  position: absolute;
  right: 1em;
  top: 1em;
}

#topbar-button-right ul {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#topbar-button-right ul li a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #363942;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
#topbar-button-right ul li a .fab {
  font-size: 22px;
  color: #fff;
  transition: 0.3s;
}
#topbar-button-right ul li:nth-child(1) a:hover .fab {
  color: #cd201f;
}
#topbar-button-right ul li:nth-child(2) a:hover .fab {
  color: #7289da;
}
#topbar-button-right ul li:nth-child(3) a:hover .fab {
  color: #4c75a3;
}
#topbar-button-right ul li:nth-child(4) a:hover .fab {
  color: #0099ff;
}
#topbar-button-right ul li:nth-child(5) a:hover .fab {
  color: #1877f2;
}

/* ===== Centerbar ===== */
.centerbar {
  text-align: center;
  margin: 40px auto;
  max-width: 1100px;
  padding: 0 2%;
}
.centerbar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 10px;
  padding: 0;
}
.centerbar ul li a {
  display: block;
  width: 240px;
  height: 160px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  background-size: cover;
  background-position: center;
  transition: 0.3s;
}
.centerbar ul li a:hover {
  transform: scale(1.05);
}
#trailer-link {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ===== Main ===== */
.main {
  width: 90%;
  max-width: 1000px;
  margin: 60px auto 20px;
}
#main-text {
  padding: 30px 0;
  text-align: center;
}
.main h2 {
  color: #fff;
  text-transform: uppercase;
  font-size: clamp(18px, 3vw, 26px);
}

/* ===== Footer ===== */
#footer {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
  color: #9c9c9c;
}
#footer a {
  color: #9c9c9c;
  text-decoration: none;
  text-transform: uppercase;
  transition: 0.3s;
}
#footer a:hover {
  color: #fff;
}

/* ===== Modals, overlay (картинки, видео) ===== */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}
.overlayImage {
  max-width: 90%;
  max-height: 90%;
}
.closeBtn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

/* ===== Reports, forms ===== */
.report-container {
  width: 90%;
  max-width: 700px;
  margin: 40px auto;
  background: rgba(40, 40, 45, 0.9);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 204, 0, 0.1);
  padding: 35px;
}
.report-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.report-container input,
.report-container textarea,
.report-container select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border: 1px solid #555;
  font-size: 15px;
}
.report-container button {
  background: linear-gradient(90deg, #ffcc00, #ffb800);
  color: #000;
  font-weight: 700;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}
.report-container button:hover {
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.5);
}

/* ======= Adaptive Media Queries ======= */
@media (max-width: 1024px) {
  #header-inner {
    padding: 15% 5%;
  }
  .centerbar ul li a {
    width: 200px;
    height: 130px;
  }
}

@media (max-width: 768px) {
  #topbar-button-right {
    position: static;
    margin-top: 10px;
    text-align: center;
  }
  #header-inner {
    align-items: center;
    text-align: center;
  }
  #links {
    justify-content: center;
  }
  .centerbar ul li a {
    width: 45%;
    height: auto;
    aspect-ratio: 3/2;
  }
}

@media (max-width: 480px) {
  body {
    background-size: 100px 100px;
  }
  #header h2 {
    font-size: 32px;
  }
  #header-inner p,
  #header-inner span {
    text-align: center;
  }
  .centerbar ul li a {
    width: 90%;
  }
  .report-container {
    padding: 20px;
  }
  .rexet-btn {
    height: 45px;
    width: 45px;
    background-size: 45px;
  }
}
