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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #1a1a1a;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

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

.cookie-popup h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.cookie-popup p {
  margin-bottom: 20px;
  color: #cccccc;
  line-height: 1.5;
}

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

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

.btn-accept {
  background: #a3d977;
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-accept:hover {
  background: #8bc961;
  transform: translateY(-1px);
}

.btn-refuse {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-refuse:hover {
  background: #ffffff;
  color: #000;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;

  z-index: 100;
  padding: 15px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.2rem;
}
.nav-brand{
  text-decoration: none;
  color: #fff;
}

.logo {
  width: 32px;
  height: 32px;
}

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

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: #a3d977;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 3px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #1a1a1a;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Сетка на заднем фоне */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(/wp-content/themes/teklunor/assets/images/cl.jpg);
  background-repeat: repeat;
  background-size: cover;
  z-index: 1;
  pointer-events: none;
}

/* Зеленый градиент снизу */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background-image: url(/wp-content/themes/teklunor/assets/images/bt.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-text p {
  font-size: 1.1rem;
  color: #cccccc;
  margin-bottom: 30px;
  line-height: 1.6;
}

.btn-primary {
  background: #a3d977;
  color: #000;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #8bc961;
  transform: translateY(-2px);
}

.hero-image {
  text-align: center;
}

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

/* Why Choose Section */
.why-choose {
  padding: 100px 0;
  background: #1a1a1a;
}

.why-choose h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.feature-card {
  background: linear-gradient(135deg, #2d4a22 0%, #2d2d2d 100%);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  min-height: 200px;
}

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

.feature-image {
  width: 250px;
  height: 200px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 15px;
  margin: 20px;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
  transform: scale(1.05);
}

.feature-content {
  padding: 30px;
  flex-grow: 1;
}

.feature-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.feature-content p {
  color: #cccccc;
  line-height: 1.6;
  font-size: 1rem;
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background: #1a1a1a;
}

.testimonials h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: #ffffff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: #2d2d2d;
  padding: 30px;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

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

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

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

.user-info h4 {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 5px;
}

.user-info p {
  color: #888;
  font-size: 0.9rem;
}

.testimonial-card > p {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.date {
  color: #888;
  font-size: 0.9rem;
}

/* FAQ Section */
.faq {
  padding: 100px 0;
  background: #1a1a1a;
}

.faq h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: #ffffff;
}

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

.faq-item {
  background: #2d2d2d;
  border-radius: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: #3d3d3d;
}

.faq-question h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.faq-toggle {
  background: none;
  border: none;
  color: #a3d977;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 30px 30px;
  color: #cccccc;
  line-height: 1.6;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #2d4a22 0%, #1a1a1a 100%);
  text-align: center;
  border-radius: 20px;
  margin: 0 20px;
}

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

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.cta-content p {
  font-size: 1.1rem;
  color: #cccccc;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #0d0d0d;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

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

.footer-logo span {
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
}

.footer-brand p {
  color: #888;
  line-height: 1.6;
}

.footer-contact p {
  color: #cccccc;
  margin-bottom: 10px;
  line-height: 1.5;
}

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

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-social p {
  color: #888;
  margin-bottom: 20px;
  line-height: 1.6;
}

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

.social-links a {
  width: 45px;
  height: 45px;
  background: #1e88e5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #ffffff;
}

.social-links a:nth-child(1) {
  background: #1e88e5;
}

.social-links a:nth-child(2) {
  background: #3b5998;
}

.social-links a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

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

.footer-bottom p {
  color: #666;
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hero-content {
      grid-template-columns: 1fr;
      gap: 40px;
      text-align: center;
  }
  
  .hero-text h1 {
      font-size: 3rem;
  }
  
  .features-grid {
      grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
      display: flex;
  }
  
  .nav-menu {
      position: fixed;
      left: -100%;
      top: 70px;
      flex-direction: column;
      background-color: rgba(26, 26, 26, 0.98);
      width: 100%;
      text-align: center;
      transition: 0.3s;
      padding: 30px 0;
      backdrop-filter: blur(10px);
  }
  
  .nav-menu.active {
      left: 0;
  }
  
  .nav-menu li {
      margin: 15px 0;
  }
  
  .hamburger.active span:nth-child(2) {
      opacity: 0;
  }
  
  .hamburger.active span:nth-child(1) {
      transform: translateY(6px) rotate(45deg);
  }
  
  .hamburger.active span:nth-child(3) {
      transform: translateY(-6px) rotate(-45deg);
  }
  
  .hero {
      padding-top: 100px;
      padding-bottom: 50px;
  }
  
  .hero-text h1 {
      font-size: 2.5rem;
  }
  
  .hero-text p {
      font-size: 1rem;
  }
  
  .why-choose,
  .testimonials,
  .faq,
  .cta {
      padding: 60px 0;
  }
  
  .why-choose h2,
  .testimonials h2,
  .faq h2,
  .cta-content h2 {
      font-size: 2rem;
  }
  
  .feature-card {
      flex-direction: column;
      text-align: center;
      min-height: auto;
  }
  
  .feature-image {
      width: 100%;
      height: 200px;
      margin: 0;
      border-radius: 20px 20px 0 0;
  }
  
  .feature-content {
      padding: 25px;
  }
  
  .testimonials-grid {
      grid-template-columns: 1fr;
  }
  
  .footer-content {
      grid-template-columns: 1fr;
      gap: 30px;
      text-align: center;
  }
  
  .footer-links {
      align-items: center;
  }
  
  .social-links {
      justify-content: center;
  }
  
  .cookie-popup {
      left: 10px;
      right: 10px;
      bottom: 10px;
  }
  
  .cookie-buttons {
      justify-content: center;
  }
  
  .cta {
      margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .container {
      padding: 0 15px;
  }
  
  .hero-text h1 {
      font-size: 2rem;
  }
  
  .feature-content,
  .testimonial-card {
      padding: 25px 20px;
  }
  
  .faq-question {
      padding: 20px;
  }
  
  .faq-answer p {
      padding: 0 20px 20px;
  }
  
  .cookie-buttons {
      flex-direction: column;
  }
  
  .btn-accept,
  .btn-refuse {
      width: 100%;
      text-align: center;
  }
  
  .cta-content {
      padding: 0 10px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
  outline: 2px solid #a3d977;
  outline-offset: 2px;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}



/* Games Grid Section */
.games-grid {
  padding: 100px 0;
  background: #1a1a1a;
}

.games-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 1;
}

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

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.game-card a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Правый верхний блок с мини-играми */
.top-right {
  position: relative;
  background: #2d2d2d;
  padding: 10px;
}

.mini-games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  width: 100%;
  height: 100%;
}

.mini-game {
  display: block;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.mini-game:hover {
  transform: scale(1.05);
}

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

/* Позиционирование блоков */
.top-left {
  grid-row: 1;
  grid-column: 1;
}

.top-right {
  grid-row: 1;
  grid-column: 2;
}

.bottom-left {
  grid-row: 2;
  grid-column: 1;
}

.bottom-right {
  grid-row: 2;
  grid-column: 2;
}

/* Адаптивность */
@media (max-width: 768px) {
  .games-layout {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto auto;
      aspect-ratio: unset;
      gap: 15px;
  }
  
  .game-card {
      min-height: 200px;
  }
  
  .top-right .mini-games-grid {
      min-height: 200px;
  }
  
  .games-grid {
      padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .mini-games-grid {
      gap: 5px;
  }
  
  .top-right {
      padding: 5px;
  }
  
  .game-card {
      min-height: 150px;
  }
}



/* Icon Features Section */
.icon-features-section {
  padding: 100px 0;
  background: #1a1a1a;
}

.icon-features-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: #ffffff;
}

.icon-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.icon-feature-item {
  padding: 40px 30px;
  border-radius: 20px;
  transition: transform 0.3s ease;
  text-align: left;
}

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

.icon-feature-item.dark-card {
  background: #2d2d2d;
  color: #ffffff;
}

.icon-feature-item.green-card {
  background: #a3d977;
  color: #000000;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(163, 217, 119, 0.1);
  border-radius: 12px;
  color: #a3d977;
}

.icon-feature-item.green-card .icon-wrapper {
  background: rgba(0, 0, 0, 0.1);
  color: #000000;
}

.icon-feature-item h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.3;
}

.icon-feature-item p {
  line-height: 1.6;
  opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .icon-features-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  
  .icon-features-section {
      padding: 60px 0;
  }
  
  .icon-features-section h2 {
      font-size: 2rem;
      margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .icon-feature-item {
      padding: 30px 25px;
  }
  
  .icon-feature-item h3 {
      font-size: 1.2rem;
  }
}