.policy,
.success {
  padding-block: 100px 60px !important;
  min-height: 92vh;
  background: url(/wp-content/themes/noxarida.com/img/gradient.png) left / contain 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: 1368px;
  padding-inline: 20px;
}

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

:root {
  --primary-blue: #2563eb;
  --dark-blue: #1e3a5f;
  --navy: #0f172a;
  --light-gray: #f1f5f9;
  --white: #ffffff;
  --accent-purple: #8b5cf6;
  --text-gray: #64748b;
}

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

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

h1,
h2,
h3 {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-popup.active {
  opacity: 1;
  visibility: visible;
}

.cookie-content {
  background: var(--primary-blue);
  color: var(--white);
  padding: 50px 60px;
  border-radius: 12px;
  max-width: 600px;
  text-align: center;
  position: relative;
}

.cookie-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.cookie-title {
  font-family: "Unbounded", sans-serif;
  font-size: 36px;
  margin-bottom: 20px;
}

.cookie-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.cookie-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.cookie-btn {
  padding: 12px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.accept-btn {
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--white);
}

.accept-btn:hover {
  background: transparent;
  color: var(--white);
}

.learn-btn {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.learn-btn:hover {
  background: var(--white);
  color: var(--primary-blue);
}

/* Header */
.header {
  width: 100%;
  padding: 20px 0;
  position: absolute;
  top: 0;
  z-index: 1000;

  background: transparent;
}

.header.scrolled {
  position: sticky;

  background-color: #0a5291;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.logo-icon {
  width: 30px;
  height: 30px;
}

.logo-text {
  font-family: "Unbounded", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.8;
}

.nav-link.active {
  border-bottom: 2px solid var(--white);
  padding-bottom: 4px;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background: var(--white);
  transition: all 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
  background: url(/wp-content/themes/noxarida.com/img/hero-bg.png) center / cover no-repeat;
  position: relative;
  padding: 100px 0;
  color: var(--white);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 180px;
}

.hero-figure {
  background: url(/wp-content/themes/noxarida.com/img/hero-figure.png) no-repeat right top;
  background-size: contain;
  position: absolute;
  top: -20%; /* підняти вгору */
  right: 0;
  width: 100%;
  max-width: 365px;
  height: 100%;
}

.hero-title {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 0px;
  }
  
  .hero-figure {
     top: 14%;
  }

  .hero-title {
    margin-bottom: 270px;
  }
}

.hero-cta {
  position: relative;
}

.cta-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 50px;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 30px;
}

.cta-button:hover {
  background: var(--white);
  color: var(--primary-blue);
}

.dice-image {
  position: absolute;
  top: -30px;
  right: 0;
  width: 120px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-description {
  font-size: 16px;
  line-height: 1.8;
  margin-top: 40px;
}

/* About Section */
.about {
  padding: 100px 0;
  background: url(/wp-content/themes/noxarida.com/img/gradient.png) left / contain no-repeat;
  color: var(--white);
  position: relative;
}

.about-content {
  max-width: 900px;
  margin: 0 auto 60px;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  gap: 40px;
  margin: 80px 0;
  position: relative;
  z-index: 2;
}

.stat-item {
  border-left: 1px solid #9f9f9f;
  padding-left: 10px;
}

.stat-number {
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 10px;
  background: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 14px;
  text-transform: lowercase;
}

.tech-image {
  width: 100%;
  height: auto;
}

.line {
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
}

.line__text {
  font-weight: 400;
  font-style: Regular;
  font-size: 26px;
  line-height: 130%;
  letter-spacing: 0%;
  text-align: justify;
}

.line--1 {
  background-color: #ffffff;
  color: #000;
  transform: rotate(-3deg);
}

.line--2 {
  background-color: #0a5291;
  color: #fff;

  transform: rotate(3deg);
  margin-top: -70px;
}

@media (max-width: 768px) {
  .line {
    gap: 20px;
  }

  .line__text {
    font-size: 14px;
  }
}

/* Games Preview Section */
.games-preview {
  padding: 100px 0;
  color: var(--white);
}

.section-title {
  font-size: 48px;
  text-align: center;
  margin-bottom: 60px;
  color: #60a5fa;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

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

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

.game-card:nth-of-type(3) {
  grid-column: 2/3;
  grid-row: 2/3;
}

.game-card:nth-of-type(4) {
  grid-column: 4/5;
  grid-row: 2/3;
}

.game-card:nth-of-type(5) {
  grid-column: 3/4;
  grid-row: 3/4;
}

.game-card:nth-of-type(6) {
  grid-column: 2/3;
  grid-row: 4/5;
}

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

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

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

@media (max-width: 768px) {
  .game-card img {
    height: 65px;
  }
}

.games-tagline {
  text-align: center;
  margin-top: 80px;
}

.games-tagline p {
  font-family: "Unbounded", sans-serif;
  font-size: 28px;
  line-height: 1.4;
  max-width: 900px;
  margin: 0 auto;
  text-align: justify;

}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
}

.testimonials-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-item {
  display: none;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial-item.active {
  display: grid;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.testimonial-image {
  border-radius: 12px;
  overflow: hidden;
}

.testimonial-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.testimonial-text {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
  color: #fff;
}

.testimonial-author {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 30px;
  color: #fff;
  text-align: right;
}

.testimonial-nav {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.testimonial-prev,
.testimonial-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: var(--navy);
  color: var(--white);
  transform: scale(1.1);
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  color: var(--white);
  background: url(/wp-content/themes/noxarida.com/img/gradient.png) 120% / contain no-repeat,
    url(/wp-content/themes/noxarida.com/img/gradient.png) -20% / contain no-repeat;
}

.cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.cta-title {
  padding: 30px;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.4;
  margin-bottom: 40px;
  position: relative;
  text-align: justify;

}

.cta-title span {
  position: absolute;
  inset: 0; /* скорочено: top, right, bottom, left = 0 */
  pointer-events: none;
}

/* кутові елементи */
.cta-title::before,
.cta-title::after,
.cta-title span::before,
.cta-title span::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: white;
  border-style: solid;
}

/* верхній лівий кут */
.cta-title::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

/* нижній лівий кут */
.cta-title::after {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}

/* верхній правий кут */
.cta-title span::before {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

/* нижній правий кут */
.cta-title span::after {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

.cta-button-secondary {
  display: inline-block;
  padding: 15px 50px;
  background: var(--white);
  color: var(--dark-blue);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button-secondary:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* Footer */
.footer {
  background: #0a5291;
  color: var(--white);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: "Unbounded", sans-serif;
  font-size: 174px;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-logo {
  font-size: 50px;

  }
}

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

.social-links a {
  display: inline-block;
}

.social-links img {
  width: 32px;
  height: 32px;
  transition: opacity 0.3s ease;
}

.social-links a:hover img {
  opacity: 0.7;
}

.footer-column h4 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-column p {
  font-size: 14px;
  line-height: 1.8;
}

/* Games Page Styles */
.games-page {
  padding: 100px 0;
  min-height: 100vh;
  background: url(/wp-content/themes/noxarida.com/img/gradient.png) top left / 50% no-repeat,  url(/wp-content/themes/noxarida.com/img/gradient.png) right / 50% no-repeat;

}

.games-list {
  max-width: 800px;
  margin: 0 auto;
}

.game-item {
  display: flex;
  align-items: center;
  padding: 30px;
  margin-bottom: 20px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
}

.game-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-blue);
  transform: translateX(10px);
}

.game-icon {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 30px;
  flex-shrink: 0;
}

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

.game-name {
  width: fit-content;
  font-family: "Unbounded", sans-serif;
  font-size: 32px;
  font-weight: 700;

  position: relative;
}

.game-name:hover {
  color: #006ECE;
  padding-right: 50px;
}

.game-name:hover::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: url(/wp-content/themes/noxarida.com/img/arrow.png) center / contain no-repeat;
}


.game-arrow {
  font-size: 32px;
  color: var(--primary-blue);
}

.game-dot {
  font-size: 48px;
  color: var(--white);
  margin-left: auto;
}

/* Game Detail Page Styles */
.game-detail {
  padding: 100px 0;
  background: var(--navy);
  min-height: 100vh;
}

.game-header {
 
}

.game-logo {
  width: 100%;
  max-width: 386px;
  width: 100%;
    border-radius: 20px;
  object-fit: cover;
}

.game-title {
  font-weight: 500;
  font-size: 40px;
  color: var(--primary-blue);
  margin-bottom: 40px;
}

.game-content {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 20px;
  background-color: #0A5291;
}



.screenshot img {
width: 100%;
object-fit: cover;
  overflow: hidden;
  border-radius: 20px;
}



.game-info {
  display: flex;
  flex-direction: column;
  color: var(--white);
  margin-bottom: 40px;
}

.game-description {
  width: 100%;
  max-width: 800px;
  display: flex;
  gap: 30px;
  flex-direction: column;
  color: #fff;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
 .game-description p {
  order: -1;
 }

 .game-content {
flex-direction: column;
}

}


.game-features {
  font-size: 16px;
  line-height: 1.8;
  max-width: 840px;
  align-self: flex-end;
}

.game-cta {
  text-align: center;
  margin-top: 60px;
}

.game-cta .cta-button {
  display: inline-block;
  padding: 18px 60px;
  background: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
}

.game-cta .cta-button:hover {
  background: transparent;
  color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    transform: translateX(0);
    flex-direction: column;
    background: var(--dark-blue);
    width: 100%;
    text-align: center;
    transition: left 0.3s ease;
    padding: 30px 0;
  }

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

  .burger-menu {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .stats {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .games-grid {
  }

  .testimonial-item {
    grid-template-columns: 1fr;
  }

  .testimonial-image img {
    height: 250px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .game-screenshots {
    grid-template-columns: 1fr;
  }

  .screenshot-large {
    grid-column: span 1;
  }

  .screenshot-large img,
  .screenshot:not(.screenshot-large) img {
    height: 250px;
  }

  .game-item {
    padding: 20px;
  }

  .game-icon {
    width: 60px;
    height: 60px;
    margin-right: 20px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 28px;
  }

  .stat-number {
    font-size: 48px;
  }

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

  .games-grid {
  }

  .games-tagline p {
    font-size: 20px;
  }

  .cta-title {
    font-size: 24px;
  }

  .game-name {
    font-size: 24px;
  }

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

  .cookie-content {
    padding: 30px 20px;
    margin: 20px;
  }

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

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