@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&display=swap");
:root {
  --primary: #2a4365; /* Глибокий синій замість чорного */
  --secondary: #c53030; /* Насичений червоний */
  --accent: #f6ad55; /* Теплий помаранчевий */
  --light: #f7fafc;
  --dark: #1a202c;
}
body,
html {
  box-sizing: border-box;
  margin: 0 auto;
  overflow-x: hidden;
  font-family: "Heebo", sans-serif;
  font-size: 18px;
  background-color: #e2e3e9;
  scroll-behavior: smooth;
}
a,
ul,
li {
  text-decoration: none;
  list-style: none;
  color: inherit;
}
h1,
h2,
h3,
p {
  padding: 0;
  margin: 0;
}
.container {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 10px;
}

.responsible-block {
  /* background-color: #9d0613; */
  background-color: var(--secondary); /* Червоний замість темно-червоного */
  color: #fff;
  font-size: 12px;
}
.responsible-block > .container {
  display: flex;
  align-items: center;
  gap: 20px;
}
.age-num {
  background-color: #e2e3e9;
  color: #000;
  padding: 10px;
  font-weight: 600;
  border-radius: 10px;
  font-size: 16px;
}
.header {
  /* border-bottom: solid 1px #000; */

  background-color: var(--primary);
  color: white;
  border-bottom: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav > ul {
  display: flex;
  gap: 30px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 16px;
}
h1 {
  font-size: 69px;
  line-height: 1.2;
}
.hero-text {
  display: flex;
  padding-top: 80px;
}

.hero-img {
  position: relative;
  width: 100%;
  margin-bottom: 80px;
}

.hero-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-top: 20px;
}

.hero-img .on-image {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 14px;
  font-weight: 600;
  background-color: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 30px;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.hero-img .on-image:hover {
  background-color: #ffffffaa;
}

.guide {
  background-image: url("./img/bckg.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
.guide > .container {
  display: flex;
}
h2 {
  font-size: 51px;
  line-height: 1.3;
}
p {
  font-size: 14px;
}
.guide {
  padding: 30px 0;
}
.guide-information {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.guid-item {
  border-bottom: solid 1px #000;
}
.guid-item > img {
  max-width: 94px;
  width: 100%;
}

.sites-item {
  background-color: #000;
  color: #fff;
  margin-bottom: 20px;
  padding: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 20px;
}
.star {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 28px;
  font-weight: 600;
}
.star-img {
  background-color: #82889966;
  border-radius: 10px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.bonus {
  text-align: center;
}
.bonus > p {
  font-size: 30px;
  font-weight: 600;
}
.size-text {
  font-size: 43px;
  font-weight: 600;
}
.button-bckg {
  color: #000;
  font-weight: 600;
  background-color: #99aaff;
  border: solid 2px #99aaff;
  text-transform: uppercase;
  padding: 10px 25px;
  border-radius: 30px;
}
.button-bckg:hover {
  border: solid 2px #e4fe98;
}
.button-text {
  color: #e4fe98;
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
  position: relative;
  cursor: pointer;
}

/* Псевдоелемент — спочатку невидимий */
.button-text::after {
  content: "";
  position: absolute;
  bottom: -3px; /* трохи нижче тексту */
  left: 0;
  height: 2px;
  width: 0%;
  background-color: #e4fe98;
  transition: width 0.4s ease;
}

/* При наведенні — розширюється зліва направо */
.button-text:hover::after {
  width: 100%;
}
.sites {
  margin-bottom: 80px;
}
.sites-item {
  /* background: white; */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 4px solid var(--accent);
}

.sites-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.bonus {
  background: var(--light);
  padding: 15px;
  border-radius: 8px;
  color: #000;
}

.bonus .size-text {
  color: var(--secondary);
}
.responsable-info {
  padding: 60px;
  border-radius: 30px;
  background-color: #c5c7d3;
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 50px;
  margin-bottom: 80px;
}
.responsable-img {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 70px;
}
.responsable-img > a > img {
  min-width: 20px;
  width: 100%;
}

.about-games > .container {
  display: flex;
  gap: 50px;
}
.about-item {
  border-bottom: solid 1px #000;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-games-items {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.about-games > .container > img {
  max-width: 400px;
  width: 100%;
  border-radius: 30px;
}
.premium-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.premium-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-games {
  margin-bottom: 80px;
}
.premium-btn {
  background-color: #1b1b1c;
  border-radius: 30px;
  text-transform: uppercase;
  color: #fff;
  padding: 10px 20px;
}
.premium-btn:hover {
  background-color: #3d3d3f;
}
.premium-item {
  display: flex;
  justify-content: space-between;
  flex: 1;
  background-color: #1b1b1c;
  padding: 40px;
  border-radius: 30px;
}
.premium-items-one {
  display: flex;
  gap: 30px;
  justify-content: space-between;
}
.premium-items {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer {
  margin-top: 80px;
  background-color: #303236;
  padding-top: 50px;
  color: #fff;
}
.footer-info {
  display: flex;
  gap: 30px;
}
.footer-respons {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #e2e3e9;
  padding: 20px;
  color: #000;
  min-width: 330px;
  width: 100%;
  border-radius: 10px;
}
.age-red {
  background-color: #9d0613;
  padding: 10px;
  border-radius: 10px;
  color: #fff;
}
.footer-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
}
.nav > ul > a {
  position: relative;
}

.nav > ul > a::after {
  content: "";
  position: absolute;
  bottom: -3px; /* трохи нижче тексту */
  left: 0;
  height: 2px;
  width: 0%;
  background-color: #e4fe98;
  transition: width 0.4s ease;
}

/* При наведенні — розширюється зліва направо */
.nav > ul > a:hover::after {
  width: 100%;
}
.nav li {
  position: relative;
  cursor: pointer;
  font-weight: bold;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #d9dbe1;
  border: 1px solid #717171;
  display: none;
  flex-direction: column;
  z-index: 10;
}

.dropdown-menu a {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #717171;
}

.dropdown-menu a img {
  max-width: 120px;
  display: block;
  margin: auto;
}

/* Optional: hover effect on image */
.dropdown-menu a:hover {
  background: #ecececc7;
}

/* contact page */
.contact-page {
  padding: 60px 0;
}

.contact-container {
  max-width: 800px;
  margin: auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.contact-container h2 {
  margin-bottom: 10px;
  font-size: 32px;
  color: #004d28;
}

.contact-container p {
  margin-bottom: 30px;
  color: #444;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  width: 100%;
  resize: vertical;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form button {
  background-color: #004d28;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #00723d;
}

.contact-info {
  margin-top: 40px;
  border-top: 1px solid #ddd;
  padding-top: 30px;
}

.contact-info h3 {
  margin-bottom: 10px;
  color: #004d28;
}

.contact-info p {
  margin: 5px 0;
}

@media (max-width: 600px) {
  .contact-container {
    padding: 20px;
  }
}

/* gemeral */
.gemeral > .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.color {
  color: #004d28;
  text-decoration: underline;
}
.list > li {
  list-style: disc;
}

.age-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.age-popup {
  background: #fff;
  color: #000;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  border-radius: 8px;
  font-family: sans-serif;
}

.age-popup h2 {
  font-size: 24px;
  margin-bottom: 15px;
}

.age-popup p {
  font-size: 16px;
  margin-bottom: 30px;
}

.age-buttons {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.age-buttons button {
  flex: 1;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  border: 2px solid #000;
  background: transparent;
  color: #000;
  transition: 0.3s ease;
}

.age-buttons button:hover {
  background: #000;
  color: #fff;
}

.cookie-popup-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  color: #fff;
  display: none;
  justify-content: center;
  z-index: 9998;
  padding: 20px;
}

.cookie-popup {
  max-width: 800px;
  width: 100%;
  text-align: center;
  font-family: sans-serif;
  font-size: 16px;
}

.cookie-popup a {
  color: #fff;
  text-decoration: underline;
}

.cookie-popup button {
  margin-top: 15px;
  padding: 10px 20px;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s ease;
}

.cookie-popup button:hover {
  background: #fff;
  color: #000;
}

.main-nav ul {
  display: flex;
  gap: 25px;
}

.nav-link {
  position: relative;
  padding: 10px 0;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Анімація кнопок */
.button-bckg {
  background: var(--secondary);
  transition: all 0.3s;
}

.button-bckg:hover {
  background: #9b2c2c;
  transform: scale(1.05);
}

/* Анімація карток */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sites-item {
  animation: fadeIn 0.6s ease forwards;
}

@media (max-width: 700px) {
  .nav > ul {
    flex-direction: column;
  }
  .container {
    max-width: 350px;
    width: 100%;
  }
  .hero-text {
    flex-direction: column;
  }
  h1 {
    font-size: 40px;
  }
  .guide > .container {
    flex-direction: column;
  }
  h2 {
    font-size: 35px;
  }
  .sites-item {
    flex-direction: column;
    gap: 20px;
  }
  .responsable-img {
    flex-direction: column;
  }
  .about-games > .container {
    flex-direction: column;
  }
  .premium-info {
    flex-direction: column;
  }
  .premium-items-one {
    flex-direction: column;
  }
  .premium-item {
    flex-direction: column;
  }
  .footer-info {
    flex-direction: column;
  }
  .footer-menu {
    flex-direction: column;
    align-items: start;
  }
  .footer-respons {
    width: 80%;
  }
  .responsable-info {
    padding: 30px;
  }
  .header > .container {
    flex-direction: column;
    align-items: start;
  }
  .cookie-popup-overlay {
    padding: 20px 0;
  }
  .cookie-popup {
    max-width: 350px;
  }

}
