/* ==========================================
   style.css — Gates of Olympus UZ
   ========================================== */

:root {
  --color-bg:         #1A0D2E;
  --color-surface:    #271545;
  --color-primary:    #D4A843;
  --color-accent:     #C084FC;
  --color-text:       #F5EFFF;
  --color-text-muted: #A688C4;
  --color-btn-text:   #1A0D2E;
  --font-display:     'Cinzel', serif;
  --font-body:        'Nunito', sans-serif;
  --transition-btn:   background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  --color-primary-a30: rgba(212, 168, 67, 0.3);
  --color-primary-a10: rgba(212, 168, 67, 0.1);
  --color-primary-a04: rgba(212, 168, 67, 0.04);
  --color-primary-a50: rgba(212, 168, 67, 0.5);
  --color-accent-a40:  rgba(192, 132, 252, 0.4);
  --color-accent-a25:  rgba(192, 132, 252, 0.25);
  --color-black-a75:   rgba(0, 0, 0, 0.75);
  --color-black-a55:   rgba(0, 0, 0, 0.55);
  --color-black-a80:   rgba(0, 0, 0, 0.8);
}

/* ==================== RESET ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  padding-bottom: 60px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==================== TYPOGRAPHY ==================== */
h1, h2 { font-family: var(--font-display), serif; line-height: 1.2; }
h3 { font-family: var(--font-body), sans-serif; font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); margin-bottom: 0.75rem; color: var(--color-primary); }
h2 { font-size: clamp(1.25rem, 3.5vw, 2rem); margin-bottom: 0.75rem; color: var(--color-primary); }
h3 { font-size: clamp(1rem, 2.5vw, 1.25rem); margin-bottom: 0.5rem; color: var(--color-primary); }
p { margin-bottom: 1rem; }
p:last-of-type { margin-bottom: 0; }
strong { color: var(--color-primary); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

/* ==================== LAYOUT ==================== */
.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-primary);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 0 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}
.header-logo img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
.header-inner > nav {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin-bottom: 0;
}
.header-nav li {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
.header-nav a {
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.header-nav a:hover { color: var(--color-primary); text-decoration: none; }
.header-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.lang-btn:hover, .lang-btn.is-active {
  color: var(--color-btn-text);
  background: var(--color-primary);
  text-decoration: none;
}
@media (min-width: 768px) {
  .header-inner > nav { display: flex; }
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-btn-text);
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  min-height: 48px;
  min-width: 160px;
  border-radius: 8px;
  border: 2px solid var(--color-primary);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-btn);
}
.btn:hover {
  background: var(--color-primary);
  color: var(--color-btn-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-accent-a40);
  text-decoration: none;
}
.header-cta {
  padding: 8px 16px;
  font-size: 0.82rem;
  min-height: 36px;
  min-width: auto;
  flex-shrink: 0;
  margin-left: auto;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  padding: 52px 0 44px;
  text-align: center;
  overflow: hidden;
  background: var(--color-bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 55% at 50% 20%, rgba(212,168,67,0.09) 0%, transparent 65%),
              radial-gradient(ellipse 50% 40% at 50% 75%, rgba(192,132,252,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-badge-pill {
  display: inline-block;
  background: rgba(212,168,67,0.1);
  border: 1px solid rgba(212,168,67,0.28);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.hero-title {
  font-size: clamp(1.35rem, 3.5vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeUp .5s ease-out 0s forwards;
}
.hero-tagline {
  font-size: 0.97rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .5s ease-out 0.15s forwards;
}
.hero-shrine {
  position: relative;
  display: inline-block;
  margin-top: 24px;
  margin-bottom: 28px;
}
.hero-shrine-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1.5px solid rgba(212,168,67,0.22);
  pointer-events: none;
  animation: ringPulse 3.5s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(212,168,67,0.1); }
  50%       { box-shadow: 0 0 80px rgba(212,168,67,0.25); }
}
.hero-img {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 16px;
  filter: drop-shadow(0 8px 40px rgba(212,168,67,0.2));
  opacity: 0;
  animation: fadeUp .5s ease-out 0.35s forwards;
}
.hero-mult {
  position: absolute;
  z-index: 2;
  font-family: var(--font-display), serif;
  font-size: 1rem;
  color: var(--color-primary);
  background: rgba(26,13,46,0.88);
  border: 1px solid rgba(212,168,67,0.38);
  border-radius: 8px;
  padding: 5px 12px;
  box-shadow: 0 0 16px rgba(212,168,67,0.18);
  animation: floatMult 4s ease-in-out infinite;
  white-space: nowrap;
}
.hero-mult--a { top: 12%; left: -32%; animation-delay: 0s; }
.hero-mult--b { top: 48%; right: -34%; animation-delay: 1.4s; }
.hero-mult--c { bottom: 6%; left: -24%; animation-delay: 2.8s; }
@keyframes floatMult {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%       { transform: translateY(-8px) rotate(1deg); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp .5s ease-out 0.3s forwards;
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--color-primary-a50);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  min-height: 48px;
  transition: var(--transition-btn);
}
.btn--outline:hover {
  background: var(--color-primary-a10);
  border-color: var(--color-primary);
  text-decoration: none;
  transform: translateY(-2px);
}
.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(212,168,67,0.12);
  padding-top: 24px;
  max-width: 520px;
  margin: 0 auto;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  border-right: 1px solid rgba(212,168,67,0.12);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-val {
  font-family: var(--font-display), serif;
  font-size: 1.2rem;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 3px;
}
.hero-stat-lbl {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .hero-shrine { display: block; }
  .hero-img { max-width: 240px; }
  .hero-mult { font-size: 0.82rem; padding: 3px 9px; }
  .hero-mult--a { left: -10%; top: 4%; }
  .hero-mult--b { right: -12%; top: 40%; }
  .hero-mult--c { left: 2%; bottom: -2%; }
  .hero-stat { padding: 0 12px; }
  .hero-stat-val { font-size: 1rem; }
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 52px 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.section.is-visible { opacity: 1; transform: translateY(0); }
.section--alt { background: var(--color-surface); }

.section-img {
  border-radius: 12px;
  max-width: 100%;
  margin-bottom: 16px;
}
.section-cta {
  text-align: center;
  margin-top: 28px;
  clear: both;
}
.section .container::after { content: ''; display: table; clear: both; }

@media (min-width: 600px) {
  .section-img { max-width: 280px; }
  .section-img--right { float: right; margin: 0 0 20px 28px; }
  .section-img--left  { float: left;  margin: 0 28px 20px 0; }
}

/* ==================== TABLE ==================== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 8px;
}
table { min-width: 600px; border-collapse: collapse; width: 100%; }
th, td { padding: 10px 14px; border: 1px solid var(--color-primary-a30); text-align: left; font-size: 0.92rem; }
th { background: var(--color-primary-a10); color: var(--color-primary); font-family: var(--font-body), sans-serif; font-weight: 700; font-size: 0.88rem; }
tr:nth-child(even) td { background: var(--color-primary-a04); }
td:first-child { color: var(--color-text-muted); font-weight: 600; }

/* ==================== FAQ ==================== */
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-item { border-bottom: 1px solid var(--color-primary-a30); margin-bottom: 0; }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  padding: 16px 0;
  cursor: pointer;
  gap: 12px;
}
.faq-question:hover { color: var(--color-primary); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-bottom: 0;
}
.faq-item.is-open .faq-answer { max-height: 500px; padding-bottom: 16px; }
.faq-answer p { color: var(--color-text-muted); margin-bottom: 0; }

/* ==================== REVIEWS ==================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 24px 0 28px;
}
.review-card {
  background: var(--color-surface);
  border-radius: 14px;
  border: 1px solid rgba(212,168,67,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  padding: 20px 20px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-card::before {
  content: '\201C';
  position: absolute;
  top: 8px; right: 14px;
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(212,168,67,0.1);
  font-family: Georgia, serif;
  pointer-events: none;
}
.review-stars { color: var(--color-primary); font-size: 0.9rem; letter-spacing: 2px; }
.review-body { color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.65; flex: 1; margin: 0; }
.review-footer { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.review-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(212,168,67,0.12);
  border: 1.5px solid rgba(212,168,67,0.28);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  color: var(--color-primary); flex-shrink: 0;
}
.review-author { font-size: 0.83rem; font-weight: 600; color: var(--color-text); }

/* ==================== STICKY BAR ==================== */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 98;
  height: 60px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-primary);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sticky-bar.is-visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.sticky-bar-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}
.sticky-bar-slogan {
  flex: 1;
  font-family: var(--font-display), serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-bar .btn {
  padding: 8px 20px;
  min-height: auto;
  min-width: auto;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* ==================== POPUP ==================== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-black-a75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.popup-overlay.is-open { opacity: 1; pointer-events: all; }
.popup-inner {
  position: relative;
  max-width: 480px;
  width: calc(100% - 32px);
  border-radius: 12px;
  overflow: hidden;
}
.popup-inner img { display: block; width: 100%; height: auto; }
.popup-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  border-radius: 0;
  min-height: 48px;
}
.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  background: var(--color-black-a55);
  color: var(--color-text);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}
.popup-close:hover { background: var(--color-black-a80); }

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-primary-a30);
  padding: 32px 0;
  text-align: center;
}
.footer-lang { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto 12px;
  line-height: 1.6;
}
.footer-copy { font-size: 0.75rem; color: var(--color-text-muted); }

/* ==================== 404 ==================== */
.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}
.not-found-code {
  font-family: var(--font-display), serif;
  font-size: clamp(5rem, 20vw, 10rem);
  color: var(--color-primary);
  text-shadow: 0 0 30px var(--color-primary-a50);
  line-height: 1;
  margin-bottom: 8px;
}
.not-found-msg {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 480px) {
  .sticky-bar { height: 56px; }
  .sticky-bar-slogan { font-size: 0.8rem; }
  .sticky-bar-logo { width: 36px; height: 36px; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 40px 0; }
  .popup-inner { max-width: 100%; width: calc(100% - 24px); }
}

/* ==================== DEMO WIDGET ==================== */
.demo-widget {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-primary-a30);
  background: var(--color-surface);
  margin-top: 28px;
}
.demo-placeholder {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.demo-placeholder-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.demo-placeholder-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.35);
}
.demo-placeholder-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 44px 24px;
  width: 100%;
}
.demo-placeholder-title {
  font-family: var(--font-display), serif;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.2;
}
.demo-placeholder-sub {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  margin-bottom: 24px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.demo-btn-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-try-demo {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-primary);
  color: var(--color-btn-text);
  border: none;
  border-radius: 8px;
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body), sans-serif;
  cursor: pointer;
  transition: var(--transition-btn);
}
.btn-try-demo:hover {
  background: #e8c85a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 67, 0.4);
}
.btn-win-real {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-primary-a50);
  border-radius: 8px;
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-btn);
}
.btn-win-real:hover {
  background: var(--color-primary-a10);
  border-color: var(--color-primary);
  text-decoration: none;
}
.demo-frame-wrap {
  position: relative;
  width: 100%;
  height: 540px;
  display: none;
}
.demo-iframe {
  width: 100%; height: 100%;
  border: none;
  background: #000;
}
.demo-close-btn {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--color-black-a75);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.82rem;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease;
}
.demo-close-btn:hover { background: var(--color-black-a80); }
.demo-win-float {
  display: none;
  text-align: center;
  margin-top: 16px;
}
.demo-win-float .btn-win-real {
  width: 100%;
  max-width: 360px;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-btn-text);
  border: none;
  margin: 0 auto;
}
.demo-win-float .btn-win-real:hover { background: #e8c85a; text-decoration: none; }
@media (max-width: 600px) {
  .demo-placeholder { min-height: 280px; }
  .demo-placeholder-overlay { padding: 32px 16px; }
  .demo-btn-group { flex-direction: column; align-items: center; }
  .btn-try-demo, .btn-win-real { width: 100%; max-width: 300px; justify-content: center; }
  .demo-frame-wrap { height: 380px; }
  .demo-win-float .btn-win-real { max-width: 100%; }
}
@media (max-width: 380px) { .demo-frame-wrap { height: 320px; } }

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title, .hero-tagline, .hero-cta, .hero-img { opacity: 1; }
  .section { opacity: 1; transform: none; }
  .multiplier-num { opacity: 1; transform: none; }
}
