/* === Onest Font === */
@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "MPlusRounded";
  src: url("../fonts/MPLUSRounded1c-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
/* === Квизабра — Main Styles === */
:root {
  --bg-dark: #162737;
  --bg-mid: #004372;
  --accent-orange: #F9A230;
  --accent-blue: #01CAE8;
  --card-bg: rgba(255,255,255,0.08);
  --card-border: rgba(1,202,232,0.3);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.7);
  --text-muted: rgba(255,255,255,0.5);
  --glow-orange: 0 0 20px rgba(249,162,48,0.4);
  --glow-blue: 0 0 20px rgba(1,202,232,0.3);
  --radius-card: 20px;
  --radius-btn: 50px;
  --shadow-card: 0 8px 32px rgba(0,0,0,0.3);
  --font-heading: 'Onest', sans-serif;
  --font-body: 'Onest', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-mid) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent-blue); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--accent-orange); }
img { max-width: 100%; height: auto; }

/* === Typography === */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(36px, 5vw, 64px); text-transform: uppercase; letter-spacing: 0.03em; }
h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; }
p { color: var(--text-secondary); font-size: 17px; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 36px; border-radius: var(--radius-btn); font-family: var(--font-body);
  font-weight: 600; font-size: 16px; cursor: pointer; transition: all 0.3s;
  text-decoration: none; border: 2px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--accent-orange); color: #fff; border-color: var(--accent-orange);
  box-shadow: var(--glow-orange);
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 0 30px rgba(245,166,35,0.6); color: #fff; }
.btn-secondary {
  background: var(--accent-blue); color: #fff; border-color: var(--accent-blue);
}
.btn-secondary:hover { filter: brightness(1.1); transform: translateY(-2px); color: #fff; }
.btn-outline {
  background: transparent; color: var(--text-primary); border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

/* === Glass Card === */
.glass-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-card); padding: 32px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card); transition: all 0.3s;
}
.glass-card:hover { border-color: rgba(79,195,247,0.6); transform: translateY(-4px); }

/* === Header === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: all 0.3s;
}
.site-header.scrolled {
  background: rgba(13,27,62,0.9); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 40px; height: 40px; background: var(--accent-orange); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 22px; color: #fff;
}
.logo-text {
  font-family: var(--font-heading); font-weight: 800; font-size: 20px;
  color: #fff; letter-spacing: 0.05em; text-transform: uppercase;
}
.logo-dot { color: var(--accent-orange); }
.main-nav { display: flex; gap: 28px; }
.nav-link { color: var(--text-secondary); font-size: 15px; font-weight: 500; transition: color 0.3s; }
.nav-link:hover { color: #fff; }
.header-cta { padding: 10px 24px; font-size: 14px; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: all 0.3s; }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
  background: rgba(13,27,62,0.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; padding: 80px 32px 32px; gap: 24px;
  transition: right 0.3s; z-index: 999;
}
.mobile-menu.active { right: 0; }
.mobile-menu .nav-link { font-size: 20px; color: #fff; }
.mobile-menu .btn { width: 100%; text-align: center; margin-top: 16px; }

/* === Hero === */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px; position: relative; overflow: hidden;
}
.hero-content { max-width: 640px; }
.hero-subtitle { font-size: 18px; margin: 20px 0 36px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-mascot {
  width: 280px; height: 320px; background: rgba(76,175,80,0.3); border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: rgba(76,175,80,0.8); font-weight: 700; border: 2px dashed rgba(76,175,80,0.5);
}
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 60px; width: 100%; }
.hero .glow-circle {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.15; pointer-events: none;
}
.hero .glow-circle.orange { width: 400px; height: 400px; background: var(--accent-orange); top: 10%; right: 5%; }
.hero .glow-circle.blue { width: 300px; height: 300px; background: var(--accent-blue); bottom: 10%; left: 10%; }

/* === Section base === */
.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 16px; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 56px; font-size: 18px; }

/* === Numbers === */
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.number-card { text-align: center; }
.number-card .label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-blue); margin-bottom: 8px; }
.number-card .value { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 48px); font-weight: 800; color: var(--accent-orange); }
.number-card .detail { font-size: 15px; color: var(--text-secondary); margin-top: 4px; }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card { position: relative; text-align: center; }
.pricing-card.featured { transform: scale(1.05); border-color: var(--accent-orange); box-shadow: var(--glow-orange), var(--shadow-card); }
.pricing-badge {
  position: absolute; top: -14px; right: 20px;
  background: var(--accent-orange); color: #fff; padding: 4px 16px;
  border-radius: 20px; font-size: 13px; font-weight: 700;
}
.pricing-name { font-family: var(--font-heading); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.pricing-period { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.pricing-price { font-family: var(--font-heading); font-size: 36px; font-weight: 800; color: var(--accent-orange); margin-bottom: 4px; }
.pricing-old { color: var(--text-muted); font-size: 14px; text-decoration: line-through; margin-bottom: 20px; }
.pricing-features { list-style: none; text-align: left; margin: 20px 0; }
.pricing-features li { padding: 8px 0; font-size: 15px; color: var(--text-secondary); border-bottom: 1px solid rgba(255,255,255,0.05); }
.pricing-features li::before { content: "•"; color: var(--accent-blue); margin-right: 10px; }

/* === Geography === */
.geography { background: rgba(0,0,0,0.2); position: relative; }
.geo-map {
  position: relative; width: 100%; height: 300px; margin: 40px 0;
  background: rgba(0,0,0,0.3); border-radius: var(--radius-card); overflow: hidden;
}
.geo-dot {
  position: absolute; width: 10px; height: 10px; background: var(--accent-blue);
  border-radius: 50%; animation: pulse 2s infinite;
}
.geo-dot::after {
  content: attr(data-city); position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: var(--text-secondary); white-space: nowrap;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,195,247,0.6); }
  50% { box-shadow: 0 0 0 12px rgba(79,195,247,0); }
}
.geo-caption { text-align: center; color: var(--text-secondary); font-size: 16px; }

/* === CTA Apps === */
.cta-apps { text-align: center; }
.cta-apps h2 { margin-bottom: 32px; }
.store-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 28px; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius-btn);
  color: #fff; font-size: 15px; font-weight: 500; transition: all 0.3s;
}
.store-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); transform: translateY(-2px); }
.store-btn .icon { font-size: 20px; }

/* === Contact === */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 20px; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 12px; color: #fff; font-size: 16px; font-family: var(--font-body);
  transition: border-color 0.3s; outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-blue); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-success { text-align: center; color: #4caf50; font-size: 16px; padding: 20px; display: none; }

/* === Footer === */
.site-footer { background: rgba(0,0,0,0.3); padding: 60px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col h4 { font-family: var(--font-heading); font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-blue); margin-bottom: 16px; }
.footer-col p, .footer-col a { font-size: 14px; color: var(--text-secondary); }
.footer-col a:hover { color: #fff; }
.footer-col .footer-links { list-style: none; }
.footer-col .footer-links li { margin-bottom: 10px; }
.footer-logo { margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-bottom a { color: var(--text-muted); font-size: 13px; }
.footer-bottom a:hover { color: var(--accent-blue); }

/* === Scroll Animations === */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s, transform 0.6s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* === Logo image === */
.logo-img { height: 36px; width: auto; }
.site-header.scrolled .logo-img { height: 30px; }

/* === WP overrides === */
body, body.page, body.home {
  background: linear-gradient(180deg, #162737 0%, #004372 100%) !important;
  background-attachment: fixed !important;
  color: #ffffff !important;
}
html { background: #162737 !important; }

/* Fallback: show content even if JS hasn't loaded yet */
.fade-up { opacity: 1; transform: none; }
.js-loaded .fade-up { opacity: 0; transform: translateY(30px); }
.js-loaded .fade-up.visible { opacity: 1; transform: translateY(0); }

/* FORCE all content visible */
.fade-up, .js-loaded .fade-up {
  opacity: 1 !important;
  transform: none !important;
}

/* === Video background === */
.hero { position: relative; overflow: hidden; }
.hero-video {
  position: absolute; top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  z-index: 0; object-fit: cover;
}
.hero .container { position: relative; z-index: 2; }
.hero .glow-circle { z-index: 1; }

/* Fix video as background behind content */
.hero-video {
  opacity: 0.6;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(22,39,55,0.5) 0%, rgba(0,67,114,0.7) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 3; }
.hero .glow-circle { z-index: 2; }
.hero-video { z-index: 0; }

/* === Site-wide video background === */
.site-bg-video {
  position: fixed;
  top: 0; left: 0;
  min-width: 100vw; min-height: 100vh;
  width: auto; height: auto;
  object-fit: cover;
  z-index: -2;
  opacity: 0.4;
}
/* Remove old gradient background — video replaces it */
body, body.page, body.home {
  background: #162737 !important;
}
/* Dark overlay on top of video for readability */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(22,39,55,0.6) 0%, rgba(0,67,114,0.5) 100%);
  z-index: -1;
  pointer-events: none;
}
/* Remove hero-specific video styles */
.hero-video { display: none; }
.hero::after { display: none; }

/* === Font weight mapping per brand guide === */
h1, h2, h3 { font-family: "Onest", sans-serif; font-weight: 700; }
body, p { font-family: "Onest", sans-serif; font-weight: 500; }
.btn, strong, .pricing-name, .number-card .value { font-family: "Onest", sans-serif; font-weight: 800; }

/* === Header fixes === */
.logo-img { height: 28px !important; }
.site-header.scrolled .logo-img { height: 24px !important; }
.main-nav { gap: 20px !important; }
.nav-link { font-size: 14px !important; white-space: nowrap !important; }
.header-cta { padding: 8px 20px !important; font-size: 13px !important; white-space: nowrap !important; }
.header-inner { gap: 16px !important; }
/* Smaller dragon */
.hero-mascot { width: 200px !important; max-width: 30vw !important; }

/* === Static image background === */
.site-bg-video { display: none !important; }
body::before { display: none !important; }
body, body.page, body.home {
  background: url('../img/bg.png') center/cover no-repeat fixed !important;
  background-color: #004372 !important;
}

/* === Фирменные плашки для карточек === */
.glass-card {
  background: rgba(30,50,70,0.65) !important;
  border: 1px solid rgba(1,202,232,0.2) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* === Шрифт проверка — Onest variable === */
* { font-family: "Onest", sans-serif !important; }
h1, h2, h3, .pricing-name { font-weight: 700 !important; }
.btn, .number-card .value { font-weight: 800 !important; }
body, p, .nav-link { font-weight: 500 !important; }

/* === Equal height pricing cards === */
.pricing-grid {
  align-items: stretch !important;
}
.pricing-card {
  display: flex !important;
  flex-direction: column !important;
}
.pricing-card .pricing-features {
  flex: 1 !important;
}
.pricing-card .btn {
  margin-top: auto !important;
}

/* Hide top dots on venue cards by clipping */
.venue-card-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  object-fit: cover;
  object-position: center 8%;
  aspect-ratio: 4/5;
}

/* Crop venue cards: hide top dots + bottom bar */
.venue-card-img {
  object-position: center center !important;
  aspect-ratio: 3/4 !important;
  object-fit: cover !important;
}

/* ============================================ */
/* === MAJOR UI OVERHAUL — 26 POINTS === */
/* ============================================ */

/* 1. Active nav link highlighting */
body.home .nav-link[href="/"],
body.page-template-page-players .nav-link[href*="players"],
body.page-template-page-venues .nav-link[href*="venues"],
body.page-template-page-about .nav-link[href*="about"] {
  color: #F9A230 !important;
  font-weight: 700 !important;
}

/* 2. Nav hover animation — bolder */
.nav-link:hover {
  color: #fff !important;
  font-weight: 700 !important;
  text-shadow: 0 0 8px rgba(255,255,255,0.3) !important;
  transition: all 0.2s !important;
}

/* 3. Deep blue for "эрудицию" */
.text-deep-blue { color: #008FB0 !important; }

/* 4. Hero subtitle — whiter text */
.hero-subtitle-center {
  color: rgba(255,255,255,0.95) !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
  max-width: 600px !important;
  margin: 16px auto 28px !important;
}

/* 5+6. Hero centered layout with dragon on top */
.hero-centered {
  text-align: center !important;
  max-width: 800px !important;
  margin: 0 auto !important;
}
.hero-title-wrap {
  position: relative;
  display: inline-block;
}
.hero-dragon-top {
  position: absolute;
  top: -70px;
  right: -30px;
  width: 90px;
  height: auto;
  z-index: 10;
  pointer-events: none;
}

/* 7. Buttons — orange primary, glass for business */
.btn-glass {
  background: rgba(255,255,255,0.08) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  color: #fff !important;
  backdrop-filter: blur(8px) !important;
  padding: 14px 36px !important;
  border-radius: 50px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  display: inline-flex !important;
  text-decoration: none !important;
}
.btn-glass:hover {
  border-color: var(--accent-blue) !important;
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}
.hero-buttons-center {
  display: flex !important;
  gap: 16px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

/* 8. Less space between hero buttons and numbers */
#numbers { padding-top: 40px !important; }

/* 9. Numbers labels — bigger and bolder */
.number-card .label {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}

/* 10. Less space between numbers and pricing */
#pricing { padding-top: 40px !important; }

/* 11. "30 дней..." — white text */
.section-subtitle { color: #ffffff !important; }

/* 12. Less space between subtitle and pricing cards */
.pricing-grid { margin-top: 24px !important; }

/* 13. Pricing cards — remove grey, bigger text */
.pricing-card {
  background: rgba(20,40,65,0.7) !important;
}
.pricing-features li {
  font-size: 16px !important;
  color: #fff !important;
  border-bottom-color: rgba(255,255,255,0.1) !important;
}
.pricing-name { font-size: 24px !important; }
.pricing-period { font-size: 16px !important; color: rgba(255,255,255,0.8) !important; }

/* 14. Smaller pricing cards */
.pricing-card { padding: 24px !important; }

/* 15. Bigger discount badges */
.pricing-badge {
  font-size: 18px !important;
  padding: 6px 20px !important;
  top: -18px !important;
}

/* 16. Geography title — bigger */
.geography .section-title { font-size: clamp(32px, 4vw, 52px) !important; }

/* 18. Change geography caption text */

/* 19. Reduce spacing in footer area */
.site-footer { padding: 40px 0 0 !important; margin-top: 30px !important; }

/* 20. CTA apps — orange title, no emojis, less top padding */
.cta-apps { padding-top: 30px !important; }
.cta-apps h2 { color: #F9A230 !important; }
.store-btn .icon { display: none !important; }

/* 21. Less space before contacts */
#contacts { padding-top: 20px !important; }

/* 22. Contact form — white text */
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.6) !important; }
.contact-form input, .contact-form textarea { color: #fff !important; }
.contact-form .btn { font-size: 20px !important; padding: 18px !important; }

/* 23. Contact section — less padding */
#contacts .section-subtitle { color: #fff !important; }
#contacts { padding-bottom: 30px !important; }

/* 24. Footer — less bottom padding */
.footer-bottom { padding: 12px 0 !important; }
.footer-grid { padding-bottom: 24px !important; }

/* Reduce all sections spacing globally */
.section { padding: 60px 0 !important; }
.hero { padding-bottom: 40px !important; min-height: auto !important; }

/* Dragon: smaller, sitting on "ою" letters */
.hero-dragon-top {
  width: 55px !important;
  top: -45px !important;
  right: auto !important;
  left: 50% !important;
  transform: translateX(10px) !important;
}

/* Dragon fix: 1.5x bigger, sitting on "ою" of "свою" */
.hero-dragon-top {
  width: 80px !important;
  top: -55px !important;
  left: auto !important;
  right: 22% !important;
  transform: none !important;
}

/* Dragon: 1.5x bigger again, shift right to "ою" */
.hero-dragon-top {
  width: 120px !important;
  top: -75px !important;
  right: 12% !important;
}

.hero-dragon-top {
  width: 67px !important;
  right: calc(12% - 33px) !important;
}

/* Cabinet responsive */
@media (max-width: 768px) {
  #dashboard table { font-size: 13px; }
  #dashboard [style*="grid-template-columns:repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
  #dashboard [style*="grid-template-columns:repeat(3"] { grid-template-columns: 1fr !important; }
}

.hero-dragon-top {
  width: 74px !important;
  top: -40px !important;
}

.hero-dragon-top { top: -50px !important; }

.hero-dragon-top { right: calc(12% - 38px) !important; }
