.policy,
.success {
  padding-block: 80px 60px;
  min-height: 92vh;
  background-color: #fff;
  color: #151515;
}

.success__text {
  margin-bottom: 27px;
}

.success {
  display: flex;
  justify-content: center;
  align-items: center;
}

.policy__text h2 {
  text-align: left;
  font-size: 22px;
}

.policy__text ul {
  padding-left: 20px;
}

.policy__text h2,
.policy__text p,
.policy__text ul {
  margin-bottom: 17px;
}

.policy__text {
  font-weight: 400;
  font-size: 17px;
  line-height: 130%;
  letter-spacing: 0%;
}

.policy__title,
.success__title {
  font-family: Anton;
  font-weight: 400;
  font-style: Regular;
  font-size: 50px;
  line-height: 100%;
  letter-spacing: 0%;

  margin-bottom: 28px;
  color: #280A48;
}

@media (min-width: 1200px) {
  .policy__title,
  .success__title {
    font-size: 80px;
  }
}

.policy__link {
  color: #fff;
}

h1,
h2,
h3,
h4 {
  word-break: break-word;
}

html {
  scroll-behavior: smooth;
}

.container {
  margin: 0 auto;
  max-width: 1368px;
  padding-inline: 20px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background: linear-gradient(135deg, #2d1b69 0%, #11072c 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 1rem;
}

.text-white {
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: "Anton", sans-serif;
  font-size: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
  text-align: center;
}

.btn-primary {
  width: fit-content;
  background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
  color: #000000;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00cc6a 0%, #00aa5a 100%);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background: #ffffff;
  color: #2d1b69;
}

.btn-outline {
  background: transparent;
  color: #280a48;
  border: 2px solid #280a48;
}

.btn-outline:hover {
  background: #ffffff;
  color: #00cc6a;
  border: 2px solid #00cc6a;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #2d1b69;
  border: 2px solid #00ff88;
  border-radius: 12px;
  padding: 20px;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  display: none;
  transition: all 0.3s ease;
}

.cookie-popup.show {
  transform: translateY(0);
  opacity: 1;
  display: block;
}

.cookie-content p {
  margin-bottom: 15px;
  color: #ffffff;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-buttons .btn {
  padding: 10px 20px;
  min-width: auto;
}

/* Header */
.header {
  background: #fff;
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #280a48;
  text-decoration: none;
}

.logo img {
  width: 30px;
  height: 30px;
}

.logo span {
  font-family: "Anton", sans-serif;
  font-size: 1.25rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  color: #151515;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: #00ff88;
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  margin: 3px 0;
  transition: 0.3s;
}

.burger-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 70px);
  background: rgba(45, 27, 105, 0.98);
  backdrop-filter: blur(10px);
  z-index: 999;
  transition: left 0.3s ease;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu nav ul {
  list-style: none;
  padding: 2rem;
}

.mobile-menu nav ul li {
  margin-bottom: 1rem;
}

.mobile-menu nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
}

/* Main Content */
main {
  margin-top: 60px;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: #280a48;
}

.hero-content {
  align-items: center;
  display: block;
}

.hero h1 {
  font-size: 150px;
  color: #00ff88;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 60px;
  }
}

.hero-description {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-features {
  margin-bottom: 2rem;
}

.hero-content {
  position: relative;
}

.hero-image {
  position: absolute;
  right: 0;
  top: -40px;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-width: 500px;
}

@media (max-width: 768px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero-image {
    position: static;
  }
}

/* Sections */
.who-we-are,
.ready-to-dive {
  padding: 4rem 0;
  background: #fff;
  color: #151515;
}

.who-we-are p,
.ready-to-dive p {
  margin-bottom: 20px;
}

.ready-to-dive p {
  font-weight: 700;
  font-style: Regular;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-image img {
  width: 100%;
  height: auto;
  max-width: 400px;
}

.section-text h2 {
  color: #280a48;
  margin-bottom: 2rem;
}

/* Advantages Section */
.advantages {
  padding: 4rem 0;
  text-align: center;
  background-color: #fff;
}

.advantages h2 {
  color: #280a48;
  margin-bottom: 3rem;
}

.advantages-content {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.advantage-item:nth-of-type(1) {
  grid-column: 1/2;
}

.advantage-item:nth-of-type(2) {
  grid-column: 1/2;
}

.advantage-item:nth-of-type(3) {
  grid-column: 1/2;
}

.advantage-item:nth-of-type(4) {
  grid-column: 1/2;
}

.advantages-btn {
  grid-column: 1/2;
  height: fit-content;
  align-self: flex-end;
}

.advantages-image {
  grid-column: 1/2;
}

@media (min-width: 768px) {
  .advantages-content {
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 3rem;
  }

  .advantage-item:nth-of-type(1) {
    grid-column: 1/2;
    grid-row: 1/2;
  }

  .advantage-item:nth-of-type(2) {
    grid-column: 3/4;
    grid-row: 1/2;
  }

  .advantage-item:nth-of-type(3) {
    grid-column: 3/4;
    grid-row: 2/3;
  }

  .advantage-item:nth-of-type(4) {
    grid-column: 3/4;
    grid-row: 3/4;
  }

  .advantages-btn {
    grid-column: 1/2;
    grid-row: 3/4;
  }

  .advantages-image {
    grid-column: 2/3;
    grid-row: 1/4;
  }
}

.advantages-image img {
  width: 100%;
  height: auto;
  max-width: 650px;
}

.advantages-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
}

.advantage-item-dot {
  width: 22px;
  height: 22px;
  background-color: #fff;
  border-radius: 50%;
  margin-bottom: 20px;
}

.advantage-item {
  background: #280a48;
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(107, 70, 193, 0.3);
  text-align: left;
  height: fit-content;
}

.advantage-item h3 {
  color: #ffffff;
  font-family: Anton;
  font-weight: 400;
  font-style: Regular;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: 0%;

  margin-bottom: 1rem;
}

.advantage-item p {
  font-family: Anton;
  font-weight: 400;
  font-style: Regular;
  font-size: 14px;
  line-height: 130%;
  letter-spacing: 0%;
}

/* Popular Games Section */
.popular-games {
  padding: 4rem 0;
  text-align: center;
  background: #280a48;
}

.popular-games h2 {
  color: #ffffff;
  margin-bottom: 3rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.game-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-5px);
}

.game-card img {
  width: 100%;
  height: 380px;
  object-fit: contain;
}

/* Form Section */
.form-section {
  padding: 4rem 0;
  text-align: center;
}

.form-section h2 {
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-family: "Inter", sans-serif;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

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

/* Catalog Page */
.catalog-hero {
  padding: 4rem 0;
}

.catalog-hero h1 {
  color: #fff;
  text-align: left;
  margin-bottom: 2rem;
}

.catalog-hero p {
  text-align: left;
  margin-bottom: 3rem;

  margin-left: auto;
  margin-right: auto;
}

.games-catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.game-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.game-item:hover {
  transform: translateY(-5px);
}

.game-item img {
  width: 100%;
  height: 285px;
  object-fit: cover;
  border-radius: 34px;
}

.game-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.game-item:hover .game-overlay {
  transform: translateY(0);
}

.game-overlay h3 {
  color: #ffffff;
  font-size: 1.1rem;
  margin: 0;
}

/* Game Page */
.game-page {
  padding: 6rem 0;
}

.game-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

.game-info h1 {
  color: #fff;
  margin-bottom: 2rem;
}

.game-info p {
  margin-bottom: 20px;
}

.game-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.about-game {
  margin-bottom: 4rem;
}

.about-game h2 {
  color: #fff;

  text-align: center;
  margin-bottom: 2rem;
}

.about-game p {
  margin-bottom: 2rem;
}

.about-game .btn {
  display: block;
  margin: 0 auto;
}

.game-characters img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Footer */
.footer {
  background: #fff;
  padding: 2rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #151515;
  text-decoration: none;
}

.footer-logo img {
  width: 30px;
  height: 30px;
}

.footer-logo span {
  font-family: "Anton", sans-serif;
  font-size: 1.25rem;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.footer-nav a {
  color: #151515;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 700;
  font-style: Regular;
  font-size: 16px;
  line-height: 100%;
  letter-spacing: 0%;
}

.footer-nav a:hover {
  color: #00ff88;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.social-links img {
  width: 28px;
  height: 28px;
}

.footer-bottom {
  font-family: Anton;
  font-weight: 400;
  font-style: Regular;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #151515;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content,
  .section-content,
  .advantages-content,
  .game-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-description {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .advantages-list {
    grid-template-columns: 1fr;
  }

  .games-catalog {
    grid-template-columns: repeat(3, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .burger-menu {
    display: flex;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero-description {
    grid-template-columns: 1fr;
  }

  .games-catalog {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .cookie-popup {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .games-catalog {
    grid-template-columns: 1fr;
  }

  .advantage-item {
    padding: 1.5rem;
  }

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

  .cookie-buttons .btn {
    width: 100%;
  }
}

/* Animation and Transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.game-item,
.advantage-item,
.game-card {
  animation: fadeInUp 0.6s ease forwards;
}

/* Focus and Accessibility */
.btn:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #00ff88;
  outline-offset: 2px;
}

.nav-list a:focus,
.footer-nav a:focus {
  outline: 2px solid #00ff88;
  outline-offset: 2px;
  border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid #000000;
  }

  .btn-outline,
  .btn-secondary {
    border-width: 3px;
  }
}

.section-title {
  font-family: Anton;
  font-weight: 400;
  font-style: Regular;
  font-size: 50px;
  line-height: 110.00000000000001%;
  letter-spacing: 0%;
  text-transform: uppercase;
  text-align: left;
}

@media (min-width: 1200px) {
  .section-title {
    font-size: 50px;
  }
}
