.policy,
.success {
  padding-block: 100px 60px !important;
  min-height: 92vh;
  background: url(/wp-content/themes/xantrevia.com/img/bg-2.png) right / 15% no-repeat;
}

@media (max-width: 768px) {
  .policy {
    padding-block: 100px 60px !important;
  }
}

.success__text {
  margin-bottom: 27px;
}

.success__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.success__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.policy__title,
.success__title {
  font-weight: 700;
  font-size: 35px;
  line-height: 110%;
  letter-spacing: 0%;
  vertical-align: middle;
  margin-bottom: 28px;
  color: #ffffff;
}

.policy__text {
  font-weight: 400;
  font-size: 18px;
  line-height: 130%;
  letter-spacing: 0%;
  color: #ffffff;
}

.policy__title {
  color: #ffffff;
}

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

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

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

.policy__link {
  color: #fff;
}

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

html {
  scroll-behavior: smooth;
}

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

@font-face {
  font-family: "Stengazeta";
  src: url(/wp-content/themes/xantrevia.com/fonts/Stengazeta-Regular_5.ttf) format("truetype");
  font-weight: 400;
}

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

:root {
  --primary-color: #ff6b2c;
  --primary-hover: #e85a1f;
  --bg-dark: #1a1a1a;
  --bg-darker: #0d0d0d;
  --bg-card: #2a2a2a;
  --text-white: #ffffff;
  --text-gray: #b8b8b8;
  --orange-glow: rgba(255, 107, 44, 0.3);
  --overlay-bg: rgba(0, 0, 0, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #0f0503;
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Sarpanch", sans-serif;
  font-weight: 700;
}

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

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

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

/* Cookie Popup */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-bg);
  display: none;
  justify-content: center;
  align-items: flex-end;
  z-index: 10000;
  padding: 20px;
}

.cookie-overlay.active {
  display: flex;
}

.cookie-popup {
  background-color: var(--text-white);
  color: #1a1a1a;
  padding: 30px 40px;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  margin-bottom: 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

.cookie-popup h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.cookie-popup p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #4a4a4a;
}

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

.btn-accept,
.btn-decline {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-accept {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.btn-accept:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-decline {
  background-color: #e8e8e8;
  color: #4a4a4a;
}

.btn-decline:hover {
  background-color: #d4d4d4;
}

/* Header */
.header {
  background: linear-gradient(90deg, #f55f23 0%, #8f3714 100%);
  border-bottom: 1px solid #1f2937;
  border-radius: 0 0 45px 45px;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  font-family: "Sarpanch", sans-serif;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.9;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-menu a {
  font-weight: 600;
  font-size: 16px;
  transition: opacity 0.3s ease;
}

.nav-menu a:hover {
  opacity: 0.8;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  width: 28px;
  height: 3px;
  background-color: var(--text-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
  background: url(/wp-content/themes/xantrevia.com/img/hero-bg.png) center / cover no-repeat;
  padding: 80px 0 60px;
  text-align: center;
}

.hero-title {
  font-size: 56px;
  margin-bottom: 50px;
  letter-spacing: 2px;
}

.highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block; /* щоб псевдоелемент підлаштовувався */
}

.highlight::before {
  content: "";
  position: absolute;
  width: 115%;
  height: 160%;
  top: -15%;
  left: -5%;
  background-image: url(/wp-content/themes/xantrevia.com/img/highlight.png);
  background-repeat: no-repeat;
  background-size: contain; /* краще, ніж cover */
  z-index: -1; /* тепер малюнок буде позаду тексту */
}

.hero-characters {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 50px;
}

.character-card {
  padding: 30px;

  transition: transform 0.3s ease;
}

.character-card:hover {
  transform: translateY(-10px);
}

.character-card img {
  width: 270px;

  object-fit: contain;
}

.character-main {
  padding: 40px;
}

.character-main img {
  width: 320px;
}

.btn {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(180deg, #952b00 0%, #f55f23 49.04%, #551800 100%);
  color: var(--text-white);
  font-weight: 700;
  font-size: 18px;
  border-radius: 10px 10px 40px 40px;
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 1px;
  border: 3px solid #f55f23;
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--orange-glow);
}

.btn-primary {
  box-shadow: 0 8px 25px var(--orange-glow);
}

/* About Section */
.about {
  padding: 80px 0;
}

.about-wrapper {
  padding: 50px;
  background: #261916;
  box-shadow: 0px 0px 51.7px 2px #f55f2361;
}

.section-title {
  font-size: 48px;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 1.5px;
}

.about-content {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-gray);
}

.about-image {
  flex: 0 0 350px;
}

.about-image img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(255, 107, 44, 0.4));
}

/* Advantages Section */
.advantages {
  padding: 80px 0;
}

.advantages-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.advantage-card {
  background: #261916;
  box-shadow: 0px 0px 51.7px 2px #f55f2361;
  padding: 32px;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.advantage-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--orange-glow);
}

.advantage-card h3 {
  color: var(--primary-color);
  font-size: 24px;
  margin-bottom: 12px;
}

.advantage-card p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.6;
}

/* Games Preview Section */
.games-preview {
  padding: 80px 0;
}

.games-showcase {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-bottom: 50px;
}

.games-character {
  flex: 0 0 300px;
}

.games-character img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(255, 107, 44, 0.4));
}

.games-grid-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  flex: 1;
}

.game-item {
  background-color: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.game-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #d94e1a 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.game-item:hover::before {
  opacity: 1;
}

.game-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  mix-blend-mode: normal;
  transition: mix-blend-mode 0.3s ease;
}

.game-item:hover img {
  mix-blend-mode: overlay;
}

.game-item:first-child {
  grid-row: span 2;
}

.game-item:first-child img {
  height: 100%;
}

.games-preview .btn {
  display: block;
  margin: 0 auto;
  width: fit-content;
}

/* CTA Section */
.cta {
  padding: 60px 0;
}

.cta-content {
  background: #261916;
  box-shadow: 0px 0px 51.7px 2px #f55f2361;
  border: 2px solid var(--primary-color);
  border-radius: 20px;
  padding: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.cta-content p {
  flex: 1;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-gray);
}

.btn-cta {
  background-color: var(--primary-color);
  flex-shrink: 0;
}

/* Contacts Section */
.contacts {
  padding: 60px 0 40px;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text-gray);
}

.contact-item .icon {
  font-size: 20px;
}

/* Footer */
.footer {
  padding: 40px 0 20px;
  border-top: 1px solid #333;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  font-family: "Sarpanch", sans-serif;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
}

.footer-nav a {
  color: var(--text-gray);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon img {
  width: 30px;
  height: 30;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.footer-bottom p {
  color: var(--text-gray);
  font-size: 14px;
}

/* Games Page */
.games-page {
  background-color: var(--bg-darker);
  padding: 80px 0;
  min-height: 70vh;
}

.games-page-title {
  font-size: 42px;
  color: var(--primary-color);
  margin-bottom: 40px;
  text-align: left;
  line-height: 1.3;
}

.games-description {
  margin-bottom: 60px;
}

.games-description p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.game-card {
  background-color: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #d94e1a 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.game-card:hover::before {
  opacity: 1;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px var(--orange-glow);
}

.game-card-image {
  position: relative;
}

.game-card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: mix-blend-mode 0.3s ease;
}

.game-card:hover .game-card-image img {
  mix-blend-mode: overlay;
}

.game-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.game-card-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  padding: 0 20px;
  font-family: "Sarpanch", sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Game Page */
.game-page {
  background-color: var(--bg-darker);
  padding: 80px 0;
  min-height: 70vh;
}

.game-hero {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 60px;
}

.game-info {
  flex: 1;
}

.game-title {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 30px;
}

.game-description p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.game-image {
  flex: 0 0 450px;
  background-color: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px var(--orange-glow);
}

.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-features {
  background-color: var(--bg-dark);
  padding: 50px;
  border-radius: 20px;
}

.section-title-game {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--text-white);
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.features-list li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-gray);
  padding-left: 30px;
  position: relative;
}

.features-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 28px;
  line-height: 1.2;
}

.features-list li strong {
  color: var(--text-white);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 46px;
  }

  .character-card img {
    display: none;
  }

  .character-main img {
    width: 240px;

    display: block;
  }

  .about-content {
    gap: 40px;
  }

  .about-image {
    flex: 0 0 280px;
  }

  .games-showcase {
    gap: 40px;
  }

  .games-character {
    flex: 0 0 250px;
  }

  .game-hero {
    gap: 40px;
  }

  .game-image {
    flex: 0 0 380px;
  }
}

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

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-dark);
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    font-size: 20px;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-characters {
    flex-wrap: wrap;
    gap: 20px;
  }

  .character-card {
    padding: 20px;
  }

  .character-card img {
    width: 120px;
    height: 140px;
  }

  .character-main {
    padding: 25px;
  }

  .character-main img {
    width: 150px;
    height: 180px;
  }

  .about {
    padding: 60px 0;
  }

  .section-title {
    font-size: 36px;
  }

  .about-content {
    flex-direction: column;
    gap: 30px;
  }

  .about-image {
    flex: none;
    max-width: 250px;
    margin: 0 auto;
  }

  .advantages {
    padding: 60px 0;
  }

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

  .games-preview {
    padding: 60px 0;
  }

  .games-showcase {
    flex-direction: column;
    gap: 30px;
  }

  .games-character {
    flex: none;
    max-width: 200px;
    margin: 0 auto;
  }

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

  .game-item:first-child {
    grid-row: span 1;
  }

  .game-item:first-child img {
    height: 200px;
  }

  .cta {
    padding: 40px 0;
  }

  .cta-content {
    flex-direction: column;
    padding: 30px;
    gap: 25px;
  }

  .contacts {
    padding: 40px 0 30px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 15px;
  }

  .cookie-popup {
    padding: 25px;
  }

  .cookie-popup h3 {
    font-size: 20px;
  }

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

  /* Games Page */
  .games-page {
    padding: 60px 0;
  }

  .games-page-title {
    font-size: 32px;
  }

  .games-description {
    margin-bottom: 40px;
  }

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

  /* Game Page */
  .game-page {
    padding: 60px 0;
  }

  .game-hero {
    flex-direction: column;
    gap: 30px;
  }

  .game-image {
    flex: none;
    width: 100%;
  }

  .game-title {
    font-size: 36px;
  }

  .game-features {
    padding: 30px;
  }

  .section-title-game {
    font-size: 28px;
  }
}

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

  .logo span {
    font-size: 20px;
  }

  .hero-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .btn {
    padding: 14px 36px;
    font-size: 16px;
  }

  .advantage-card {
    padding: 24px;
  }

  .advantage-card h3 {
    font-size: 20px;
  }

  .cta-content p {
    font-size: 15px;
  }

  .games-page-title {
    font-size: 26px;
  }

  .game-title {
    font-size: 28px;
  }

  .section-title-game {
    font-size: 24px;
  }
}
