/* CSS Variables */
:root {
  --primary-color: #ff6b35;
  --secondary-color: #f7931e;
  --accent-color: #ffcc02;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --bg-light: #fef9e7;
  --bg-white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --font-display: "Comic Sans MS", cursive, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
  text-decoration: none;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--accent-color);
  color: var(--text-dark);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-tagline {
  font-size: 0.8rem;
  color: var(--text-dark);
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.nav-cta {
  background: var(--primary-color) !important;
  color: var(--text-light) !important;
  padding: 8px 16px !important;
  border-radius: var(--border-radius) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.heros {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, rgba(5, 5, 5, 0.6), rgba(255, 255, 255, 0.4)), url("../img/bunner.jpeg") center top/cover no-repeat;
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-content {
  justify-content: center;
  z-index: 2;
  position: relative;
  padding: 0 20px;
  max-width: 600px;
}

.hero-title-main {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: slideInLeft 1s ease-out;
}

.hero-title-sub {
  display: block;
  font-family: var(--bg-white);
  font-size: 2rem;
  color: var(--secondary-color);
  margin-top: 0.5rem;
  animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-description {
  font-size: 1.2rem;
  margin: 1.5rem 0;
  color: var(--bg-light);
  animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  animation: slideInLeft 1s ease-out 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  animation: slideInLeft 1s ease-out 0.8s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--bg-white);
  font-size: 2rem;
  font-weight: bold;
  color: var(--bg-light);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--bg-light);
  opacity: 0.8;
}

.hero-image {
  flex: 1;
  z-index: 2;
  position: relative;
  text-align: center;
  animation: slideInRight 1s ease-out 0.4s both;
}

.hero-artwork {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
  animation: float 3s ease-in-out infinite;
}

/* Gameplay Section */
.gameplay {
  background: var(--bg-white);
}

.gameplay-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: var(--transition);
}

.feature-item.animate {
  opacity: 1;
  transform: translateX(0);
}

.feature-icon {
  font-size: 2rem;
  background: var(--bg-light);
  padding: 1rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-text h3 {
  font-family: var(--font-display);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.hud-mockup {
  text-align: center;
}

.hud-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
}

/* Game Modes */
.modes {
  background: var(--bg-light);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.mode-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.mode-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.mode-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.mode-card:hover .mode-details {
  opacity: 1;
  transform: translateY(0);
}


.mode-icon img {
  max-width: 100%;
  height: 300px;

}

.mode-card h3 {
  font-family: var(--font-display);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.mode-details {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 107, 53, 0.95);
  color: var(--text-light);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(100%);
  transition: var(--transition);
}

/* Characters Section */
.characters {
  background: var(--bg-white);
}

.characters-carousel {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.character-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0.7;
  transform: scale(0.9);
  max-width: 300px;
}

.character-card.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: var(--shadow-hover);
}

.character-portrait {
  margin-bottom: 1rem;
}

.character-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  animation: breathe 2s ease-in-out infinite;
}

.character-role {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.character-abilities {
  list-style: none;
  margin-bottom: 1rem;
}

.character-abilities li {
  padding: 0.25rem 0;
  color: var(--text-dark);
}

.character-abilities li::before {
  content: "✓ ";
  color: var(--primary-color);
  font-weight: bold;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.carousel-btn {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--secondary-color);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary-color);
}

/* Power-ups Section */
.powerups {
  background: var(--bg-light);
}

.powerups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.powerup-item {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.powerup-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.powerup-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.powerup-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse 2s ease-in-out infinite;
}

.powerup-item h4 {
  font-family: var(--font-display);
  color: var(--primary-color);
}

/* Tooltip */
.powerup-item::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 10;
}

.powerup-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Gallery Section */
.gallery {
  background: var(--bg-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.gallery-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-btn {
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.gallery-btn:hover {
  background: var(--secondary-color);
}

/* Reviews Section */
.reviews {
  background: var(--bg-light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.review-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.review-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.review-stars {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.review-text {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.review-author {
  font-weight: 600;
  color: var(--primary-color);
}

.community-section {
  text-align: center;
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.community-section h3 {
  font-family: var(--font-display);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.community-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.community-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.community-icon {
  font-size: 1.5rem;
}

.community-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Download Section */
.download {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
  text-align: center;
}

.download-title {
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.download-description {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.store-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.store-badge {
  width: 250px;
  cursor: pointer;
  transition: var(--transition);

}

.store-badge:hover {
  transform: translateY(-2px);
}

.download-platforms {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-family: var(--font-display);
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-section a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.7;
}

.footer-disclaimer {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Modals */
.modal,
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.active,
.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  max-width: 800px;
  width: 90%;
  max-height: 90%;
  overflow: hidden;
  transform: scale(0.8);
  transition: var(--transition);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #eee;
}

.modal-close,
.lightbox-close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
}

.modal-close:hover,
.lightbox-close:hover {
  color: var(--primary-color);
}

.modal-body {
  padding: 2rem;
}

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: var(--text-light);
  z-index: 10;
}

#lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--border-radius);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
}

.lightbox-prev,
.lightbox-next {
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-light);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Добавьте эти стили в конец вашего CSS файла */

/* 1. Исправление горизонтального скролла и белой полосы */
body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

.header {
  width: 100%;
  left: 0;
  right: 0;
}

.nav-container {
  width: 100%;
  box-sizing: border-box;
}

/* 2. Исправление для мобильного меню */
@media (max-width: 768px) {
  .nav-menu {
    width: 100%;
    left: 0;
    right: 0;
    box-sizing: border-box;
  }
}

/* 3. Исправление для героя */
.hero {
  width: 100%;
  overflow: hidden;
}

/* 4. Исправление для контейнера */
.container {
  width: 100%;
  box-sizing: border-box;
}

/* 5. Исправление для галереи */
.gallery-grid {
  width: 100%;
  box-sizing: border-box;
}

/* 6. Исправление для футера */
.footer {
  width: 100%;
  box-sizing: border-box;
}

/* 7. Дополнительное исправление для изображений */
img {
  max-width: 100%;
  height: auto;
}

/* 8. Исправление для модальных окон */
.modal-content {
  width: 95%;
  max-width: 800px;
  box-sizing: border-box;
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes breathe {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 100px 20px 50px;
  }

  .hero-title-main {
    font-size: 2.5rem;
  }

  .hero-title-sub {
    font-size: 1.5rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .gameplay-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .characters-carousel {
    flex-direction: column;
    align-items: center;
  }

  .community-features {
    flex-direction: column;
    align-items: center;
  }

  .community-cta {
    flex-direction: column;
    align-items: center;
  }

  .download-title {
    font-size: 2rem;
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
  }


}

@media (max-width: 480px) {


  .section {
    padding: 60px 0;
    width: 100%;

  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .modes-grid {
    grid-template-columns: 1fr;
  }

  .powerups-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }



  .hero-artwork {
    animation: none !important;
  }

  .character-image {
    animation: none !important;
  }

  .powerup-icon {
    animation: none !important;
  }
}

/* Focus Styles */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus,
a:focus {
  outline: 2px solid var(--accent-color);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000;
    --secondary-color: #333;
    --text-dark: #000;
    --bg-light: #fff;
    --bg-white: #fff;
  }
}