/* ============================================
   Темно-розовый дизайн с подсветкой
   ============================================ */

:root {
  /* Темно-розовая цветовая палитра */
  --bg-primary: #1a0d1a;
  --bg-secondary: #2d1528;
  --bg-tertiary: #3d1f3a;
  --pink-primary: #ff1493;
  --pink-secondary: #ff69b4;
  --pink-light: #ffb6c1;
  --pink-dark: #c71585;
  --accent-glow: rgba(255, 20, 147, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #f0f0f0;
  --text-muted: #d0d0d0;
  --border-color: rgba(255, 20, 147, 0.3);
  --shadow-glow: 0 0 20px rgba(255, 20, 147, 0.4);
  --shadow-glow-strong: 0 0 30px rgba(255, 20, 147, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-bottom: 2px solid var(--border-color);
  box-shadow: var(--shadow-glow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  flex-shrink: 0;
}

.logo-link {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
  filter: drop-shadow(var(--shadow-glow));
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  display: block;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--pink-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--pink-primary);
}

.nav-link:hover {
  color: var(--pink-light);
  background: rgba(255, 20, 147, 0.1);
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.3);
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link.play-button {
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink-primary) 100%);
  border: 2px solid var(--pink-primary);
  box-shadow: var(--shadow-glow);
  margin-left: 1rem;
}

.nav-link.play-button::before {
  display: none;
}

.nav-link.play-button:hover {
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-secondary) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  gap: 5px;
}

.menu-icon {
  width: 25px;
  height: 3px;
  background: var(--pink-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--pink-primary);
}

.mobile-menu-toggle:hover .menu-icon {
  background: var(--pink-light);
  box-shadow: 0 0 10px var(--pink-light);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

section:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--pink-primary);
}

section h1,
section h2 {
  color: var(--pink-light);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--accent-glow);
}

section h1 {
  font-size: 2.5rem;
  border-bottom: 2px solid var(--pink-primary);
  padding-bottom: 0.5rem;
  box-shadow: 0 2px 10px rgba(255, 20, 147, 0.3);
}

section h2 {
  font-size: 2rem;
  border-left: 4px solid var(--pink-primary);
  padding-left: 1rem;
  box-shadow: -4px 0 10px rgba(255, 20, 147, 0.3);
}

section p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

section ul,
section ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

section li {
  margin-bottom: 0.5rem;
}

section strong {
  color: var(--pink-light);
  text-shadow: 0 0 5px var(--accent-glow);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

thead {
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink-primary) 100%);
}

th {
  padding: 1rem;
  text-align: left;
  color: var(--text-primary);
  font-weight: 600;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

td {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

tbody tr:hover {
  background: rgba(255, 20, 147, 0.1);
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.2);
}

/* Definition lists */
dl {
  margin: 1.5rem 0;
}

dt {
  color: var(--pink-light);
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 5px var(--accent-glow);
  cursor: pointer;
  padding: 1rem;
  background: rgba(255, 20, 147, 0.1);
  border-radius: 8px;
  border-left: 3px solid var(--pink-primary);
  transition: all 0.3s ease;
  user-select: none;
}

dt:hover {
  background: rgba(255, 20, 147, 0.2);
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.3);
}

dt.active {
  background: rgba(255, 20, 147, 0.2);
  border-left-color: var(--pink-secondary);
}

dd {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
  padding: 0 1rem;
}

dd.active {
  max-height: 500px;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 20, 147, 0.05);
  border-radius: 8px;
}

/* ============================================
   BREADCRUMBS
   ============================================ */

.breadcrumbs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  width: 100%;
}

.breadcrumbs-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.breadcrumbs-item:not(:last-child)::after {
  content: '/';
  margin: 0 0.5rem;
  color: var(--pink-primary);
  font-weight: 600;
  opacity: 0.7;
}

.breadcrumbs-link {
  color: var(--pink-light);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.breadcrumbs-link:hover {
  color: var(--pink-primary);
  background: rgba(255, 20, 147, 0.1);
  text-shadow: 0 0 5px var(--accent-glow);
}

.breadcrumbs-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* Banner images */
.banner-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: var(--shadow-glow-strong);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.banner-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow-strong), 0 0 40px rgba(255, 20, 147, 0.5);
}

.banner-img.hero-banner{
  cursor: default;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink-primary) 100%);
  border: 2px solid var(--pink-primary);
  border-radius: 50%;
  color: var(--text-primary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--shadow-glow-strong);
  transition: all 0.3s ease;
}

.scroll-to-top.visible {
  display: flex;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-strong), 0 0 30px rgba(255, 20, 147, 0.8);
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-secondary) 100%);
}

.scroll-to-top:active {
  transform: translateY(-3px);
}

/* Play button */
.play-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink-primary) 100%);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
  border: 2px solid var(--pink-primary);
  cursor: pointer;
}

.play-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-secondary) 100%);
}

/* Demo container */
.demo-game-container {
  position: relative;
  width: 100%;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  background: var(--bg-primary);
}

.demo-game-iframe {
  width: 100%;
  border: none;
  display: block;
}

/* PC - 16:9 aspect ratio */
@media (min-width: 1025px) {
  .demo-game-container {
    aspect-ratio: 16 / 9;
  }
  
  .demo-game-iframe {
    height: 100%;
  }
}

/* Tablet - адаптивный */
@media (max-width: 1024px) and (min-width: 769px) {
  .demo-game-container {
    aspect-ratio: 16 / 10;
  }
  
  .demo-game-iframe {
    height: 100%;
  }
}

/* Mobile - 9:16 aspect ratio */
@media (max-width: 768px) {
  .demo-game-container {
    aspect-ratio: 9 / 16;
  }
  
  .demo-game-iframe {
    height: 100%;
  }
  
  .demo-overlay-buttons {
    flex-direction: column;
    width: 80%;
  }
  
  .demo-overlay-button {
    width: 100%;
    padding: 1.2rem 2rem;
    text-align: center;
  }
}

/* Demo overlay */
.demo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 13, 26, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 10;
  border-radius: 12px;
}

.demo-overlay.hidden {
  display: none;
}

.demo-overlay-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.demo-overlay-button {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid;
  text-decoration: none;
  display: inline-block;
}

.demo-overlay-button.play {
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink-primary) 100%);
  color: var(--text-primary);
  border-color: var(--pink-primary);
  box-shadow: var(--shadow-glow);
}

.demo-overlay-button.play:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-secondary) 100%);
}

.demo-overlay-button.demo {
  background: transparent;
  color: var(--pink-light);
  border-color: var(--pink-primary);
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

.demo-overlay-button.demo:hover {
  background: rgba(255, 20, 147, 0.1);
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.5);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-top: 2px solid var(--border-color);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
  margin-top: auto;
  padding: 2rem 0 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Center logo in footer for 404 page */
body.error-page .footer-content {
  justify-content: center;
}

.footer-logo {
  flex-shrink: 0;
}

.footer-logo-link {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo-link:hover {
  transform: scale(1.05);
  filter: drop-shadow(var(--shadow-glow));
}

.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-nav {
  display: flex;
  align-items: center;
}

.footer-nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-nav-item {
  position: relative;
}

.footer-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  display: block;
}

.footer-nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--pink-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--pink-primary);
}

.footer-nav-link:hover {
  color: var(--pink-light);
  background: rgba(255, 20, 147, 0.1);
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.3);
}

.footer-nav-link:hover::before {
  width: 80%;
}

.footer-nav-link.play-button {
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink-primary) 100%);
  border: 2px solid var(--pink-primary);
  box-shadow: var(--shadow-glow);
}

.footer-nav-link.play-button::before {
  display: none;
}

.footer-nav-link.play-button:hover {
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-secondary) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ============================================
   404 PAGE
   ============================================ */

.error-404 {
  text-align: center;
  padding: 4rem 2rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-404 h1 {
  font-size: 6rem;
  color: var(--pink-primary);
  text-shadow: var(--shadow-glow-strong);
  margin-bottom: 1rem;
  line-height: 1;
}

.error-404 p {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.error-404 .error-link {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink-primary) 100%);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
}

.error-404 .error-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
  background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-secondary) 100%);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* PC - min 1025px */
@media (min-width: 1025px) {
  .header-container,
  .footer-container,
  main {
    max-width: 1200px;
  }
}

/* Laptop - max 1024px */
@media (max-width: 1024px) {
  .header-container,
  .footer-container {
    padding: 0 1.5rem;
  }

  main {
    padding: 1.5rem;
  }

  .nav-list {
    gap: 1.5rem;
  }

  section h1 {
    font-size: 2.2rem;
  }

  section h2 {
    font-size: 1.8rem;
  }
}

/* Tablet - max 768px */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    box-shadow: var(--shadow-glow);
    padding: 1rem;
  }

  .header-nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-link {
    display: block;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
  }

  .nav-link.play-button {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  main {
    padding: 1rem;
  }

  .breadcrumbs {
    padding: 0.75rem 1rem;
  }

  .breadcrumbs-list {
    font-size: 0.9rem;
  }

  section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  section h1 {
    font-size: 1.8rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav-list {
    justify-content: center;
    gap: 1rem;
  }

  table {
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 0.75rem 0.5rem;
  }

  .error-404 h1 {
    font-size: 4rem;
  }

  .error-404 p {
    font-size: 1.2rem;
  }
}

/* Mobile L - max 425px */
@media (max-width: 425px) {
  .header-container {
    padding: 0.75rem 1rem;
  }

  .logo-img {
    height: 40px;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: 0.75rem;
  }

  main {
    padding: 0.75rem;
  }

  .breadcrumbs {
    padding: 0.5rem 0.75rem;
  }

  .breadcrumbs-list {
    font-size: 0.85rem;
    gap: 0.4rem;
  }

  .breadcrumbs-item:not(:last-child)::after {
    margin: 0 0.4rem;
  }

  section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  section h1 {
    font-size: 1.5rem;
  }

  section h2 {
    font-size: 1.3rem;
    padding-left: 0.75rem;
  }

  section ul,
  section ol {
    margin-left: 1.5rem;
  }

  table {
    font-size: 0.85rem;
    display: block;
    overflow-x: auto;
  }

  th,
  td {
    padding: 0.5rem 0.4rem;
    white-space: nowrap;
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-logo-img {
    height: 35px;
  }

  .footer-nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-nav-link {
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  .footer-nav-link.play-button {
    width: 100%;
    text-align: center;
  }

  .banner-img {
    margin: 1.5rem 0;
  }

  .error-404 {
    padding: 2rem 1rem;
  }

  .error-404 h1 {
    font-size: 3rem;
  }

  .error-404 p {
    font-size: 1rem;
  }

  .error-404 .error-link {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* Mobile M - max 375px */
@media (max-width: 375px) {
  .header-container {
    padding: 0.5rem 0.75rem;
  }

  .logo-img {
    height: 35px;
  }

  main {
    padding: 0.5rem;
  }

  .breadcrumbs {
    padding: 0.4rem 0.5rem;
  }

  .breadcrumbs-list {
    font-size: 0.8rem;
    gap: 0.3rem;
  }

  .breadcrumbs-item:not(:last-child)::after {
    margin: 0 0.3rem;
  }

  section {
    padding: 0.75rem;
  }

  section h1 {
    font-size: 1.3rem;
  }

  section h2 {
    font-size: 1.1rem;
  }

  section p {
    font-size: 0.95rem;
  }

  table {
    font-size: 0.8rem;
  }

  th,
  td {
    padding: 0.4rem 0.3rem;
  }

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

  .error-404 h1 {
    font-size: 2.5rem;
  }

  .error-404 p {
    font-size: 0.95rem;
  }
}

/* Mobile S - max 320px */
@media (max-width: 320px) {
  .header-container {
    padding: 0.5rem;
  }

  .logo-img {
    height: 30px;
  }

  main {
    padding: 0.5rem;
  }

  .breadcrumbs {
    padding: 0.4rem 0.5rem;
  }

  .breadcrumbs-list {
    font-size: 0.75rem;
    gap: 0.25rem;
  }

  .breadcrumbs-item:not(:last-child)::after {
    margin: 0 0.25rem;
  }

  section {
    padding: 0.5rem;
  }

  section h1 {
    font-size: 1.2rem;
  }

  section h2 {
    font-size: 1rem;
  }

  section p,
  section li {
    font-size: 0.9rem;
  }

  table {
    font-size: 0.75rem;
  }

  th,
  td {
    padding: 0.3rem 0.2rem;
  }

  .footer-logo-img {
    height: 28px;
  }

  .footer-nav-link {
    font-size: 0.85rem;
    padding: 0.5rem;
  }

  .footer-nav-link.play-button {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
  }

  .error-404 h1 {
    font-size: 2rem;
  }

  .error-404 p {
    font-size: 0.9rem;
  }

  .error-404 .error-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .scroll-to-top {
    width: 40px;
    height: 40px;
    bottom: 1rem;
    right: 1rem;
  }
}
