@import url('https://fonts.googleapis.com/css2?family=Quantico:wght@400;700&display=swap');

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quantico', sans-serif;
  background-color: #161616;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.header {
  background-color: #161616;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 42px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-logo img {
  width: 32px;
  height: 32px;
}

.header-logo span {
  font-weight: 700;
  font-size: 32px;
  text-transform: capitalize;
  white-space: nowrap;
  line-height: normal;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: normal;
  position: relative;
  transition: color 0.2s ease;
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #02ebee;
  transition: width 0.25s ease;
}

.header-nav a:hover {
  color: #02ebee;
}

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

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.burger-btn img {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background-color: #161616;
  flex-direction: column;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu-bg {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 2023px;
  height: 1384px;
  pointer-events: none;
}

.mobile-menu-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mobile-menu-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #161616 11.633%, rgba(22, 22, 22, 0.6) 31.647%, rgba(22, 22, 22, 0.6) 58.815%, #161616 78.974%);
}

.mobile-menu-header {
  background-color: #161616;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  position: relative;
  z-index: 2;
}

.mobile-menu-header .header-logo span {
  font-size: 28px;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.close-btn img {
  width: 24px;
  height: 24px;
}

.mobile-menu-nav {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 96px;
  flex: 1;
}

.mobile-menu-nav a {
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: normal;
}

.mobile-menu-nav a:hover {
  color: #02ebee;
}

.mobile-menu-bottom {
  position: relative;
  z-index: 2;
  padding: 0 12px 46px;
}

.mobile-menu-bottom .btn-primary {
  width: 100%;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 32px;
  background-color: #02ebee;
  border-radius: 12px;
  font-weight: 700;
  font-size: 24px;
  text-transform: uppercase;
  color: #161616;
  white-space: nowrap;
  line-height: normal;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 235, 238, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.section {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-inline: max(42px, calc((100% - 1116px) / 2));
}

.section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section-bg-color {
  position: absolute;
  inset: 0;
  background-color: #161616;
}

.section-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-bg-gradient {
  position: absolute;
  inset: 0;
}

.hero {
  padding-block: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.hero .section-bg-img {
  opacity: 0.6;
}

.hero .section-bg-gradient {
  background: linear-gradient(to bottom, rgba(22, 22, 22, 0) 0%, #161616 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 926px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-content h1 {
  font-weight: 700;
  font-size: 64px;
  text-transform: capitalize;
  line-height: 1;
}

.hero-content p {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
}

.hero .btn-primary {
  position: relative;
}

.about {
  padding-block: 96px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.about .section-bg-img {
  opacity: 0.3;
}

.about .section-bg-gradient {
  background: linear-gradient(rgb(22, 22, 22) 0%, rgba(22, 22, 22, 0) 13.577%, rgba(22, 22, 22, 0) 83.689%, rgb(22, 22, 22) 100%);
}

.about-illustration {
  position: relative;
  width: 578px;
  height: 464px;
  flex-shrink: 0;
  margin-right: -156px;
}

.about-illustration img {
  position: absolute;
  left: -142.99px;
  top: -106.19px;
  width: 720.992px;
  height: 676.37px;
  max-width: none;
}

.about-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 736px;
  flex-shrink: 0;
}

.about-text h2 {
  font-weight: 700;
  font-size: 64px;
  text-transform: capitalize;
  line-height: 1;
}

.about-text p {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
}

.why-choose {
  padding-block: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.why-choose .section-bg-img {
  opacity: 0.3;
}

.why-choose .section-bg-gradient {
  background: linear-gradient(rgb(22, 22, 22) 0%, rgba(22, 22, 22, 0) 13.577%, rgba(22, 22, 22, 0) 83.689%, rgb(22, 22, 22) 100%);
}

.why-choose-title {
  position: relative;
  font-weight: 700;
  font-size: 64px;
  text-transform: capitalize;
  line-height: 1;
  text-align: center;
  width: 100%;
}

.cards-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.cards-row {
  display: flex;
  gap: 24px;
}

.card {
  flex: 1;
  min-width: 0;
  background-color: #1d2a33;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 0 8px rgba(26, 143, 251, 0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: #02ebee;
  box-shadow: 0 0 18px rgba(2, 235, 238, 0.6);
}

.card h3 {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
}

.card p {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
}

.tips {
  padding-block: 96px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.tips .section-bg-img {
  opacity: 0.3;
}

.tips .section-bg-gradient {
  background: linear-gradient(rgb(22, 22, 22) 0%, rgba(22, 22, 22, 0) 13.577%, rgba(22, 22, 22, 0) 83.689%, rgb(22, 22, 22) 100%);
}

.tips-illustration {
  position: relative;
  width: 578px;
  height: 493px;
  flex-shrink: 0;
  margin-right: -156px;
}

.tips-illustration .tips-outer {
  position: absolute;
  left: -101px;
  top: -108px;
  width: 755.008px;
  height: 708.281px;
  max-width: none;
}

.tips-illustration .tips-inner {
  position: absolute;
  left: 129.39px;
  top: 97.07px;
  width: 294.228px;
  height: 298.14px;
  max-width: none;
}

.tips-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 736px;
  flex-shrink: 0;
}

.tips-text h2 {
  font-weight: 700;
  font-size: 64px;
  text-transform: capitalize;
  line-height: 1;
}

.tips-text p {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
}

.review {
  padding-block: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.review .section-bg-img {
  opacity: 0.3;
}

.review .section-bg-gradient {
  background: linear-gradient(rgb(22, 22, 22) 0%, rgba(22, 22, 22, 0) 13.577%, rgba(22, 22, 22, 0) 83.689%, rgb(22, 22, 22) 100%);
}

.review-header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  max-width: 926px;
}

.review-header h2 {
  font-weight: 700;
  font-size: 64px;
  text-transform: capitalize;
  line-height: 1;
}

.review-header p {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
}

.review-cards {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.review-cards .cards-row .card h3 {
  line-height: 1.4;
}

.review-cards .cards-row .card p {
  line-height: 1.4;
}

.review-footer {
  position: relative;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  text-align: center;
  max-width: 926px;
}

.find-game {
  padding-block: 96px;
  display: flex;
  align-items: center;
}

.find-game .section-bg-img {
  opacity: 0.3;
}

.find-game .section-bg-gradient {
  background: linear-gradient(rgb(22, 22, 22) 0%, rgba(22, 22, 22, 0) 15.337%, rgba(22, 22, 22, 0) 84.867%, rgb(22, 22, 22) 100%);
}

.find-game-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 736px;
  flex-shrink: 0;
  margin-right: -106px;
}

.find-game-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.find-game-content .btn-primary {
  align-self: flex-start;
}

.find-game-text h2 {
  font-weight: 700;
  font-size: 64px;
  text-transform: capitalize;
  line-height: 1;
}

.find-game-text p {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
}

.find-game-illustration {
  position: relative;
  width: 528px;
  height: 297px;
  flex-shrink: 0;
}

.find-game-illustration img {
  position: absolute;
  left: 0;
  top: -169.85px;
  width: 635.008px;
  height: 595.708px;
  max-width: none;
}

.footer {
  background-color: #161616;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 42px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: normal;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #02ebee;
}

.footer-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer-info p {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  white-space: nowrap;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-social a {
  width: 24px;
  height: 24px;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-2px) scale(1.1);
  opacity: 0.85;
}

.footer-social a img {
  width: 100%;
  height: 100%;
}

.header-logo {
  transition: opacity 0.2s ease;
}

.header-logo:hover {
  opacity: 0.85;
}

.footer-copyright {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: center;
}

.catalog {
  padding-block: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.catalog .section-bg-img {
  opacity: 0.3;
}

.catalog .section-bg-gradient {
  background: linear-gradient(rgb(22, 22, 22) 0%, rgba(22, 22, 22, 0) 13.577%, rgba(22, 22, 22, 0) 83.689%, rgb(22, 22, 22) 100%);
}

.catalog-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.catalog-text h1 {
  font-weight: 700;
  font-size: 64px;
  text-transform: capitalize;
  line-height: 1;
}

.catalog-text p {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
}

.catalog-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.catalog-row {
  display: flex;
  gap: 24px;
}

.game-card {
  flex: 1;
  min-width: 0;
  background-color: #1d2a33;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 0 8px rgba(26, 143, 251, 0.5);
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card:hover {
  border-color: #02ebee;
  transform: translateY(-6px);
  box-shadow: 0 0 18px rgba(2, 235, 238, 0.6);
}

.game-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.game-card:hover .game-card-img {
  transform: scale(1.04);
}

.game-detail {
  padding-block: 96px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.game-detail .section-bg-img {
  opacity: 0.3;
}

.game-detail .section-bg-gradient {
  background: linear-gradient(rgb(22, 22, 22) 0%, rgba(22, 22, 22, 0) 13.577%, rgba(22, 22, 22, 0) 83.689%, rgb(22, 22, 22) 100%);
}

.game-detail-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 356px;
  flex-shrink: 0;
}

.game-detail-card {
  background-color: #1d2a33;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 0 8px rgba(26, 143, 251, 0.5);
}

.game-detail-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.game-detail-sidebar .btn-primary {
  width: 100%;
}

.game-detail-content {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.game-detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-detail-section h1 {
  font-weight: 700;
  font-size: 64px;
  text-transform: capitalize;
  line-height: 1;
}

.game-detail-section h2 {
  font-weight: 700;
  font-size: 32px;
  text-transform: capitalize;
  line-height: 1;
}

.game-detail-section p {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
}

.game-detail-section ul {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.game-detail-section ul li {
  margin-bottom: 0;
}

.game-detail-section ul li strong {
  font-weight: 700;
  display: block;
}

.policy {
  background-color: #1d1d21;
  padding: 96px 42px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.policy h1 {
  font-weight: 700;
  font-size: 64px;
  text-transform: capitalize;
  line-height: 1;
}

.policy-body {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
}

.policy-body p {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .header {
    padding: 12px;
  }

  .header-logo span {
    font-size: 28px;
  }

  .header-nav {
    display: none;
  }

  .burger-btn {
    display: block;
  }

  .hero {
    padding: 48px 12px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .hero .btn-primary {
    width: 100%;
  }

  .about {
    padding: 48px 12px;
    flex-direction: column;
    gap: 32px;
  }

  .about-text {
    width: 100%;
    order: 1;
  }

  .about-text h2 {
    font-size: 36px;
  }

  .about-illustration {
    width: 100%;
    height: 352px;
    margin-right: 0;
    order: 2;
  }

  .about-illustration img {
    left: -78px;
    top: -126.19px;
    width: 585.416px;
    height: 549.185px;
  }

  .why-choose {
    padding: 48px 12px;
  }

  .why-choose-title {
    font-size: 36px;
  }

  .cards-row {
    flex-direction: column;
    gap: 12px;
  }

  .cards-grid {
    gap: 12px;
  }

  .tips {
    padding: 48px 12px;
    flex-direction: column;
    gap: 32px;
  }

  .tips-text {
    width: 100%;
    order: 1;
  }

  .tips-text h2 {
    font-size: 36px;
  }

  .tips-illustration {
    width: 100%;
    height: 421px;
    margin-right: 0;
    order: 2;
  }

  .tips-illustration .tips-outer {
    left: -75.5px;
    top: -108px;
    width: 579.503px;
    height: 543.638px;
  }

  .tips-illustration .tips-inner {
    left: 101.34px;
    top: 49.4px;
    width: 225.833px;
    height: 228.836px;
  }

  .review {
    padding: 48px 12px;
  }

  .review-header h2 {
    font-size: 36px;
  }

  .review-header {
    max-width: 100%;
  }

  .review-cards .cards-row {
    flex-direction: column;
  }

  .review-footer {
    max-width: 100%;
  }

  .find-game {
    padding: 48px 12px;
    flex-direction: column;
    gap: 32px;
  }

  .find-game-content {
    width: 100%;
    margin-right: 0;
    order: 1;
  }

  .find-game-text h2 {
    font-size: 36px;
  }

  .find-game-content .btn-primary {
    width: 100%;
  }

  .find-game-illustration {
    width: 100%;
    height: 297px;
    order: 2;
  }

  .find-game-illustration img {
    left: -24px;
    top: -169.85px;
    width: 478.992px;
    height: 449.348px;
  }

  .policy {
    padding: 48px 12px;
  }

  .policy h1 {
    font-size: 36px;
  }

  .game-detail {
    padding: 48px 12px;
    flex-direction: column;
  }

  .game-detail-sidebar {
    width: 100%;
  }

  .game-detail-section h1 {
    font-size: 36px;
  }

  .catalog {
    padding: 48px 12px;
  }

  .catalog-text h1 {
    font-size: 36px;
  }

  .catalog-row {
    flex-direction: column;
    gap: 24px;
  }

  .footer {
    padding: 42px 12px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .footer-info {
    flex-direction: column;
    gap: 12px;
  }

  .footer-info p {
    white-space: normal;
    text-align: center;
  }

  .footer-copyright {
    white-space: normal;
  }
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal-visible {
  opacity: 1;
  transform: none;
}

.cards-row .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.cards-row .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1100;
  width: calc(100% - 48px);
  max-width: 560px;
  background-color: #161616;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(2, 235, 238, 0.3);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: cookie-slide-up 0.5s ease both;
}

.cookie-banner[hidden] {
  display: none;
}

@keyframes cookie-slide-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner h2 {
  font-weight: 700;
  font-size: 40px;
  text-transform: capitalize;
  line-height: 1;
}

.cookie-banner p {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
}

.cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.cookie-banner .btn-accept,
.cookie-banner .btn-learn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 28px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 22px;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.cookie-banner .btn-accept {
  background-color: #02ebee;
  color: #161616;
}

.cookie-banner .btn-accept:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.cookie-banner .btn-learn {
  background-color: transparent;
  border-color: #02ebee;
  color: #02ebee;
}

.cookie-banner .btn-learn:hover {
  background-color: #02ebee;
  color: #161616;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 24px;
  }

  .cookie-banner h2 {
    font-size: 32px;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-banner .btn-accept,
  .cookie-banner .btn-learn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cookie-banner {
    animation: none;
  }
}
