/* ========================================
   АДАПТИВНЫЕ СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ
   ======================================== */
.mobile-toggle{
  display: none;
}
   
/* === МОБИЛЬНОЕ МЕНЮ === */
@media (max-width: 768px) {
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 11, 46, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    display: none;
    border-top: 2px solid var(--primary-purple, #6B21A8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease-out;
    z-index: 999;
  }



  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .primary-nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0 !important;
  }

  .nav-item {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(107, 33, 168, 0.3);
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
  }

  .nav-item:nth-child(1) { animation-delay: 0.1s; }
  .nav-item:nth-child(2) { animation-delay: 0.15s; }
  .nav-item:nth-child(3) { animation-delay: 0.2s; }
  .nav-item:nth-child(4) { animation-delay: 0.25s; }

  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }

  .nav-item:last-child {
    border-bottom: none;
  }

  .nav-item.cta-button a {
    display: block;
    margin: 0.5rem auto;
    width: fit-content;
  }

  .mobile-toggle {
    display: block !important;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .mobile-toggle:hover {
    transform: scale(1.1);
  }

  .mobile-toggle.active {
    transform: rotate(90deg);
  }

  .mobile-toggle path {
    transition: all 0.3s ease;
  }

  .mobile-toggle.active path:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    transform-origin: center;
  }

  .mobile-toggle.active path:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active path:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    transform-origin: center;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
  }
}

/* === HERO SECTION === */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
  }
}

@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .hero-content {
    text-align: center !important;
    order: 1;
  }

  .hero-graphic {
    order: 2;
    display: flex;
    justify-content: center;
  }

  .hero-graphic img {
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .hero-main {
    padding: 3rem 0 2rem !important;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 10vw, 3.5rem);
    margin-bottom: 1.5rem;
  }

  .hero-content p {
    font-size: 0.875rem;
    letter-spacing: 2px;
  }

  .hero-graphic img {
    max-width: 350px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-graphic img {
    max-width: 280px;
  }
}

/* === GAMES SECTION === */
@media (max-width: 1200px) {
  .games-showcase {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .games-showcase {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1.5rem !important;
  }

  .games-heading p:first-child {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .games-heading p:last-child {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .games-showcase {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .game-tile {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .games-collection {
    padding: 3rem 0 !important;
  }
}

/* === BENEFITS SECTION === */
@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  .benefits-content {
    text-align: center;
  }

  .feature-item {
    flex-direction: row !important;
    text-align: left;
  }

  .benefits-visual {
    order: 2;
    justify-content: center !important;
  }

  .benefits-visual img {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .benefits-section {
    padding: 3rem 0 !important;
  }

  .feature-item {
    padding: 1.25rem !important;
    margin-bottom: 1.5rem !important;
  }

  .feature-icon {
    width: 50px !important;
    height: 50px !important;
  }

  .feature-icon img {
    width: 30px !important;
  }

  .feature-text h3 {
    font-size: 1.125rem !important;
  }

  .feature-text p {
    font-size: 0.875rem !important;
  }

  .benefits-visual img {
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .feature-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .benefits-visual img {
    max-width: 280px;
  }
}

/* === SCOREBOARD SECTION === */
@media (max-width: 768px) {
  .scoreboard-section {
    padding: 3rem 0 !important;
  }

  .scoreboard-header h3 {
    font-size: 0.875rem;
    letter-spacing: 2px;
  }

  .scoreboard-header h2 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .top-ranks {
    gap: 1rem !important;
  }

  .rank-podium {
    width: 90px !important;
  }

  .rank-podium.rank-first {
    width: 110px !important;
  }

  .rank-number {
    font-size: 2rem !important;
  }

  .rank-row {
    padding: 1rem !important;
    gap: 1rem !important;
  }

  .rank-pos {
    font-size: 1.25rem !important;
    min-width: 30px !important;
  }

  .player-name {
    font-size: 1rem !important;
  }

  .rank-score {
    font-size: 1.125rem !important;
  }
}

@media (max-width: 480px) {
  .rank-podium {
    width: 75px !important;
  }

  .rank-podium.rank-first {
    width: 95px !important;
  }

  .rank-number {
    font-size: 1.75rem !important;
  }

  .rank-row {
    padding: 0.875rem !important;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .player-name {
    font-size: 0.9375rem !important;
    flex-basis: 100%;
    order: 1;
    margin-top: 0.5rem;
  }

  .rank-pos {
    order: 0;
  }

  .rank-score {
    order: 2;
  }
}

/* === REVIEWS SECTION === */
@media (max-width: 1024px) {
  .review-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .reviews-showcase {
    padding: 3rem 0 !important;
  }

  .reviews-header p:first-child {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .reviews-header p:last-child {
    font-size: 1rem;
    margin-bottom: 2rem !important;
  }

  .review-cards {
    gap: 1.5rem !important;
  }

  .review-card {
    padding: 1.5rem !important;
  }

  .user-avatar {
    width: 50px !important;
    height: 50px !important;
    font-size: 1.25rem !important;
  }

  .review-content h3 {
    font-size: 1rem !important;
  }

  .review-content p {
    font-size: 0.8125rem !important;
  }

  .star-rating svg {
    width: 120px;
    height: auto;
  }
}

@media (max-width: 600px) {
  .review-cards {
    grid-template-columns: 1fr !important;
  }

  .review-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* === BANNER SECTION === */
@media (max-width: 768px) {
  .promo-banner {
    padding: 3rem 0 !important;
  }

  .banner-visual img {
    max-width: 100%;
  }
}

/* === FOOTER === */
@media (max-width: 1024px) {
  .footer-links {
    gap: 1.5rem !important;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 0 1.5rem !important;
  }

  .footer-layout {
    gap: 2rem !important;
  }

  .footer-brand img {
    width: 80px !important;
  }

  .footer-links {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1rem !important;
  }

  .footer-disclaimer {
    margin-bottom: 1.5rem !important;
  }

  .footer-disclaimer p:last-child {
    font-size: 0.8125rem !important;
  }

  .footer-badges {
    gap: 1rem !important;
  }

  .footer-badges img {
    max-height: 28px !important;
  }
}

@media (max-width: 480px) {
  .footer-disclaimer p:last-child {
    font-size: 0.75rem !important;
  }
}

/* === MODALS === */
@media (max-width: 768px) {
  .modal-content {
    padding: 2.5rem 1.5rem !important;
    max-width: 90% !important;
    margin: 0 1rem;
  }

  .modal-content h2 {
    font-size: 1.25rem !important;
    margin-bottom: 1.5rem !important;
  }

  .modal-content img {
    width: 80px !important;
    height: auto;
    margin-bottom: 1rem !important;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 2rem 1.25rem !important;
  }

  .modal-content h2 {
    font-size: 1.125rem !important;
  }
}

/* === COOKIE NOTICE === */
@media (max-width: 768px) {
  .cookie-notice,
  .cookie-banner {
    bottom: 1rem !important;
    max-width: 95% !important;
    padding: 1.25rem !important;
  }

  .cookie-content {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .cookie-message {
    min-width: auto !important;
  }

  .cookie-message p {
    font-size: 0.8125rem !important;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }

  .cookie-actions .btn {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.875rem !important;
  }
}

@media (max-width: 480px) {
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}

/* === CONTACT FORM === */
@media (max-width: 768px) {
  .contact-form-section {
    padding: 3rem 0 !important;
  }

  .contact-form-container {
    padding: 2rem 1.5rem !important;
  }

  .input-form {
    gap: 1.25rem !important;
  }

  .form-group label {
    font-size: 0.875rem !important;
  }

  .input-field,
  .textarea-field {
    padding: 0.875rem !important;
    font-size: 0.9375rem !important;
  }

  .textarea-field {
    min-height: 120px !important;
  }
}

@media (max-width: 480px) {
  .contact-form-container {
    padding: 1.5rem 1rem !important;
  }

  .input-field,
  .textarea-field {
    font-size: 0.875rem !important;
  }
}

/* === CONTENT SECTION (About, Privacy, Terms) === */
@media (max-width: 768px) {
  .content-section {
    padding: 3rem 0 !important;
  }

  .text-content {
    padding: 2rem 1.5rem !important;
  }

  .text-content h2 {
    font-size: 2rem !important;
    margin-bottom: 1.5rem !important;
  }

  .text-content p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 1.25rem !important;
  }

  .text-content ul {
    margin: 1.25rem 0 !important;
    padding-left: 1.5rem !important;
  }

  .text-content li {
    margin-bottom: 0.75rem !important;
    font-size: 0.9375rem !important;
  }
}

@media (max-width: 480px) {
  .text-content {
    padding: 1.5rem 1rem !important;
  }

  .text-content h2 {
    font-size: 1.75rem !important;
  }

  .text-content p {
    font-size: 0.9375rem !important;
  }

  .text-content li {
    font-size: 0.875rem !important;
  }
}

/* === BUTTONS === */
@media (max-width: 768px) {
  .cta-btn {
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .cta-btn {
    padding: 0.75rem 1.75rem !important;
    font-size: 0.9375rem !important;
  }
}

/* === HEADER === */
@media (max-width: 1024px) {
  .header-content {
    padding: 1.25rem 0 !important;
  }

  .brand-logo img {
    width: 75px !important;
  }
}

@media (max-width: 768px) {
  .header-notice {
    font-size: 0.75rem !important;
    padding: 0.625rem !important;
    letter-spacing: 0.5px !important;
  }

  .header-content {
    padding: 1rem 0 !important;
    position: relative;
  }

  .brand-logo img {
    width: 65px !important;
  }
}

@media (max-width: 480px) {
  .header-notice {
    font-size: 0.6875rem !important;
  }

  .brand-logo img {
    width: 55px !important;
  }
}

/* === WRAPPER === */
@media (max-width: 768px) {
  .wrapper {
    padding: 0 1.25rem !important;
  }
}

@media (max-width: 480px) {
  .wrapper {
    padding: 0 1rem !important;
  }
}

/* === UTILITY === */
@media (max-width: 768px) {
  .text-center {
    text-align: center !important;
  }
}

/* === ANIMATIONS (Отключение для производительности на мобильных) === */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .hero-graphic img {
    animation: none !important;
  }

  .game-tile:hover {
    transform: none !important;
  }

  * {
    transition: none !important;
  }
}

/* === LANDSCAPE MODE (Горизонтальная ориентация мобильных) === */
@media (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
  .hero-main {
    padding: 2rem 0 !important;
  }

  .hero-content h1 {
    font-size: 2.5rem !important;
  }

  .hero-graphic img {
    max-width: 300px !important;
  }

  .modal-content {
    padding: 1.5rem !important;
  }

  .games-collection,
  .benefits-section,
  .scoreboard-section,
  .reviews-showcase {
    padding: 2.5rem 0 !important;
  }
}

/* === VERY SMALL DEVICES === */
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 2rem !important;
  }

  .games-heading p:last-child,
  .reviews-header p:last-child {
    font-size: 0.9375rem !important;
  }

  .rank-podium {
    width: 65px !important;
  }

  .rank-podium.rank-first {
    width: 85px !important;
  }

  .rank-number {
    font-size: 1.5rem !important;
  }

  .cta-btn {
    font-size: 0.875rem !important;
    padding: 0.75rem 1.5rem !important;
  }
}

/* === TOUCH IMPROVEMENTS === */
@media (hover: none) and (pointer: coarse) {
  /* Увеличенные области нажатия для сенсорных устройств */
  .nav-item a {
    padding: 0.75rem 1rem !important;
    display: block;
  }

  .footer-links a {
    padding: 0.5rem 1rem !important;
    display: inline-block;
  }

  button,
  .cta-btn,
  .btn {
    min-height: 44px !important;
    min-width: 44px !important;
  }

  /* Убираем hover эффекты для сенсорных устройств */
  .game-info {
    transform: translateY(0) !important;
    opacity: 0.95;
  }

  .game-tile:active .game-info {
    opacity: 1;
  }
}

/* === PRINT STYLES === */
@media print {
  .main-header,
  .site-footer,
  .age-verification-modal,
  .welcome-modal,
  .cookie-notice,
  .cookie-banner,
  .mobile-toggle {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .wrapper {
    max-width: 100% !important;
    padding: 0 !important;
  }
}

