@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #d62828;
  --primary-hover: #ba181b;
  --primary-glow: rgba(214, 40, 40, 0.18);
  --accent: #e63946;
  --accent-soft: #fff0f3;
  --accent-gold: #f77f00;
  --bg-main: #fbfbfe;
  --bg-subtle: #f4f6fa;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border-color: #e5e9f2;
  --border-light: rgba(229, 233, 242, 0.7);
  --text-main: #12161f;
  --text-muted: #525c6d;
  --text-light: #8792a4;
  --shadow-sm: 0 4px 16px rgba(18, 22, 31, 0.04);
  --shadow-md: 0 12px 32px rgba(18, 22, 31, 0.08);
  --shadow-lg: 0 24px 50px rgba(18, 22, 31, 0.12);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.25rem; }

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 251, 254, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main);
}

.site-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.site-logo span {
  background: linear-gradient(135deg, var(--primary), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.desktop-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.35rem 0;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary);
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: var(--radius-full);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.header-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.header-contact-item i {
  color: var(--primary);
  font-size: 0.95rem;
}

.btn-burger {
  display: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-burger:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-card);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  z-index: 1100;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  overflow-y: auto;
}

.mobile-menu-drawer.open {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 31, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.mobile-nav-list a {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
}

.mobile-nav-list a:hover {
  color: var(--primary);
  transform: translateX(6px);
}

.mobile-contacts-block {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mobile-contacts-block div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-contacts-block i {
  color: var(--primary);
  width: 18px;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2rem 0;
  position: relative;
  z-index: 10;
  clear: both;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 1.2rem 0 1.5rem;
  max-width: 320px;
}

.footer-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.3rem;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contacts-list div,
.footer-contacts-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-contacts-list i {
  color: var(--primary);
  margin-top: 4px;
}

.footer-legal-bar {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.footer-legal-item strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
}

#redcherryquest-root {
  min-height: 50vh;
  display: block;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 5.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}

.section-padding {
  padding: 5.5rem 0;
  position: relative;
}

.section-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--accent-soft);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  border: 1px solid rgba(230, 57, 70, 0.15);
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

.bg-image-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.bg-image-section h1,
.bg-image-section h2,
.bg-image-section h3,
.bg-image-section h4 {
  color: #ffffff;
}

.bg-image-section p {
  color: rgba(255, 255, 255, 0.85);
}

.btn-cherry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-cherry:hover {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(214, 40, 40, 0.3);
}

.btn-outline-cherry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-cherry:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #ffffff;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--bg-subtle);
  color: var(--primary);
  transform: translateY(-2px);
}

.hero-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  min-height: 520px;
}

.hero-slide {
  display: none;
  padding: 4.5rem 3rem;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 520px;
  flex-direction: column;
  justify-content: center;
}

.hero-slide.active {
  display: flex;
}

.hero-slider-nav {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.hero-slider-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.hero-slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.card-awwwards {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: auto;
}

.row > [class*="col"] > .card-awwwards {
  height: 100%;
}

.card-awwwards:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(214, 40, 40, 0.3);
}

.card-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.4rem;
  transition: var(--transition);
}

.card-awwwards:hover .card-icon-box {
  background: var(--primary);
  color: #ffffff;
  transform: scale(1.08) rotate(4deg);
}

.card-media-preview {
  height: 200px;
  border-radius: var(--radius-md);
  background-size: cover;
  background-position: center;
  margin-bottom: 1.4rem;
  overflow: hidden;
  position: relative;
}

.card-glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: auto;
}

.article-stats-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: auto;
}

.author-profile-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: auto;
}

.article-tip-card {
  transition: var(--transition);
}

.article-tip-card:hover {
  border-color: var(--primary) !important;
  background: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

.marquee-bar {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 2rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
}

.marquee-track {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2.5rem;
  min-width: 100%;
  animation: marqueeScroll 25s linear infinite;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.marquee-item i {
  color: var(--primary);
}

.mechanics-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.mechanics-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 580px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.mechanics-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.mechanics-nav-btn:hover,
.mechanics-nav-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.mechanics-nav-btn i {
  font-size: 1rem;
  color: var(--primary);
}

.mechanics-nav-btn:hover i,
.mechanics-nav-btn.active i {
  color: #ffffff;
}

.mechanic-panel {
  display: none;
  padding: 2rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  animation: fadeIn 0.4s ease;
}

.mechanic-panel.active {
  display: block;
}

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

.foley-soundboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.foley-pad {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  user-select: none;
}

.foley-pad i {
  font-size: 1.6rem;
  color: var(--primary);
  transition: var(--transition);
}

.foley-pad:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 24px var(--primary-glow);
}

.foley-pad.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(0.96);
}

.foley-pad.active i {
  color: #ffffff;
}

.custom-audio-player {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.play-toggle-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.play-toggle-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.audio-track-info {
  flex: 1;
  min-width: 180px;
}

.audio-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
  cursor: pointer;
}

.audio-progress-fill {
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--primary), var(--accent-gold));
  border-radius: var(--radius-full);
  transition: width 0.2s linear;
}

.speedrun-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.speedrun-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.speedrun-table th {
  background: var(--bg-subtle);
  padding: 1.1rem 1.4rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.speedrun-table td {
  padding: 1.1rem 1.4rem;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

.speedrun-table tr:last-child td {
  border-bottom: none;
}

.speedrun-table tr:hover td {
  background: var(--bg-subtle);
  color: var(--text-main);
}

@media (max-width: 767px) {
  .speedrun-table-wrapper {
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  
  .speedrun-table {
    display: block;
    background: transparent;
  }
  
  .speedrun-table thead {
    display: none;
  }
  
  .speedrun-table tbody {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
  }
  
  .speedrun-table tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "rank player time"
      "rank details category";
    align-items: center;
    gap: 0.35rem 0.85rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.1rem 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
  }
  
  .speedrun-table tr:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
  }
  
  .speedrun-table td {
    padding: 0 !important;
    border: none !important;
    font-size: 0.88rem;
  }
  
  .speedrun-table td:nth-child(1) {
    grid-area: rank;
    align-self: center;
  }
  
  .speedrun-table td:nth-child(2) {
    grid-area: player;
    font-size: 1rem;
    color: var(--text-main);
  }
  
  .speedrun-table td:nth-child(3) {
    grid-area: details;
    font-size: 0.82rem;
    color: var(--text-light);
  }
  
  .speedrun-table td:nth-child(4) {
    grid-area: category;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
  }
  
  .speedrun-table td:nth-child(5) {
    grid-area: time;
    text-align: right;
  }
  
  .speedrun-table td .badge {
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
  }
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.85rem;
}

.rank-1 { background: #ffd700; color: #574100; }
.rank-2 { background: #e0e0e0; color: #333333; }
.rank-3 { background: #cd7f32; color: #ffffff; }
.rank-other { background: var(--bg-subtle); color: var(--text-muted); }

.accordion-custom .accordion-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) !important;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-custom .accordion-button {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  background: #ffffff;
  padding: 1.3rem 1.6rem;
  box-shadow: none;
}

.accordion-custom .accordion-button:not(.collapsed) {
  color: var(--primary);
  background: var(--accent-soft);
}

.accordion-custom .accordion-button::after {
  background-image: none;
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.85rem;
  transition: var(--transition);
}

.accordion-custom .accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion-custom .accordion-body {
  padding: 1.4rem 1.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.form-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.8rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control-custom {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control-custom:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.form-control-custom.error {
  border-color: #e63946;
  background: #fff5f5;
}

.form-error-msg {
  display: none;
  font-size: 0.82rem;
  color: #e63946;
  margin-top: 0.4rem;
  font-weight: 600;
}

.form-error-msg.visible {
  display: block;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 100;
  max-height: 180px;
  overflow-y: auto;
  display: none;
  list-style: none;
  margin-top: 4px;
}

.autocomplete-item {
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: var(--transition);
}

.autocomplete-item:hover {
  background: var(--accent-soft);
  color: var(--primary);
}

.honeypot-field {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
}

.form-spinner-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 22, 31, 0.6);
  backdrop-filter: blur(6px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  color: #ffffff;
}

.form-spinner-overlay.active {
  display: flex;
}

.spinner-cherry {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.notification-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #ffffff;
  color: var(--text-main);
  padding: 1rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}

.notification-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.interactive-meme-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.meme-preview-canvas {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.meme-text-top,
.meme-text-bottom {
  font-family: 'Outfit', impact, sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 0 4px 10px rgba(0,0,0,0.8);
  word-break: break-word;
}

.mood-ring-card {
  background: linear-gradient(135deg, #ffffff, var(--bg-subtle));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.mood-orb {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-full);
  margin: 0 auto 1.8rem;
  background: radial-gradient(circle at 30% 30%, #ff758c, #ff7eb3, #7afcff);
  box-shadow: 0 0 40px rgba(255, 117, 140, 0.4);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #ffffff;
}

.stats-counter-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stats-counter-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.stats-number {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.color-chip {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.color-chip:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  height: 420px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.cookie-modal-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 1140px;
  margin: 0 auto;
  z-index: 999999;
  display: none;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-main);
  padding: 1.4rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(18, 22, 31, 0.15);
  border: 1px solid var(--border-color);
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-modal-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.cookie-modal-btns {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-cookie-reject {
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cookie-reject:hover {
  background: #e2e6ea;
}

.btn-cookie-accept {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-cookie-accept:hover {
  background: var(--primary-hover);
}

.video-player-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.video-responsive-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.video-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mini-game-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.game-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.hud-stat-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.hud-stat-item i {
  color: var(--primary);
}

.hud-stat-val {
  color: var(--primary);
  font-size: 1.2rem;
  font-family: 'Outfit', sans-serif;
}

.game-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 30%, #fffbf0, #f7f0e6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

#chuchelGameCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.game-overlay-screen {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  z-index: 10;
  transition: var(--transition);
}

.game-overlay-screen.hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.game-controls-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.game-btn-touch {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  border: 2px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.game-btn-touch:active,
.game-btn-touch.active {
  background: var(--primary);
  color: #ffffff;
  transform: scale(0.92);
}

.game-btn-jump {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  width: 110px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
}

@media (max-width: 991px) {
  .desktop-nav,
  .header-contacts {
    display: none;
  }
  
  .btn-burger {
    display: flex;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .mechanics-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .page-content {
    gap: 3.8rem;
    padding-bottom: 3.8rem;
  }
  
  .section-padding {
    padding: 3.8rem 0;
  }
  
  .hero-slide {
    padding: 3rem 1.5rem;
  }
  
  .form-box {
    padding: 1.8rem 1.2rem;
  }
  
  .foley-soundboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .game-hud-bar {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}
