/* ===== ROOT VARIABLES ===== */
:root {
  --color-bg:           #12122A;
  --color-surface:      #1E1E40;
  --color-primary:      #F5C518;
  --color-accent:       #C0392B;
  --color-accent-dark:  #a93226;
  --color-text:         #F0EEF8;
  --color-text-muted:   #8888B0;
  --font-display:       'Fredoka One', cursive;
  --font-body:          'Nunito', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  padding-bottom: 60px;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

blockquote {
  border-left: 3px solid var(--color-primary);
  padding: 12px 20px;
  background-color: var(--color-surface);
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 16px 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: var(--font-display), cursive;
  color: var(--color-primary);
  line-height: 1.2;
}
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 3.5vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.4rem); margin-bottom: 0.75rem; color: var(--color-text); }

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

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-primary);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.header-nav a {
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lang-switch a {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--color-primary);
  background-color: rgba(245, 197, 24, 0.1);
  text-decoration: none;
}

.lang-switch .sep {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  user-select: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 160px;
  padding: 10px 24px;
  background-color: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  background-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.45);
  text-decoration: none;
  color: var(--color-text);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-sm {
  min-height: 40px;
  min-width: 120px;
  padding: 8px 18px;
  font-size: 0.9rem;
}

.section-cta {
  text-align: center;
  margin-top: 28px;
}

.section-cta .btn + .btn {
  margin-top: 12px;
}

@media (min-width: 600px) {
  .section-cta .btn + .btn {
    margin-top: 0;
    margin-left: 12px;
  }
}

/* ===== HERO ===== */
#hero {
  padding: 64px 0 56px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0d0d24 0%, #1b1b48 55%, #0d0d24 100%);
}

#hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 57, 43, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1 1 45%;
  text-align: left;
}

.hero-media {
  flex: 1 1 50%;
}

.hero-badge {
  display: inline-block;
  background: rgba(192, 57, 43, 0.18);
  border: 1px solid rgba(192, 57, 43, 0.55);
  color: #e74c3c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
  text-transform: uppercase;
  animation: fadeUp 0.4s ease-out both;
}

.hero-title {
  margin: 0 0 14px;
  animation: fadeUp 0.5s ease-out 0.1s both;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 28px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  animation: fadeUp 0.5s ease-out 0.2s both;
}

.hero-trust-sep {
  margin: 0 10px;
  opacity: 0.35;
}

.hero-cta-wrap {
  animation: fadeUp 0.5s ease-out 0.3s both;
  text-align: left;
  margin-top: 0;
}

.hero-note {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  animation: fadeUp 0.5s ease-out 0.4s both;
}

.hero-img-wrap {
  position: relative;
  animation: fadeUp 0.6s ease-out 0.15s both;
}

.hero-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 14px 52px rgba(0, 0, 0, 0.65);
  display: block;
}

.hero-multiplier {
  position: absolute;
  top: -14px;
  right: -14px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #d4a800 100%);
  color: #0d0d24;
  font-family: var(--font-display), cursive;
  font-size: 1.45rem;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 22px rgba(245, 197, 24, 0.55);
  white-space: nowrap;
  animation: heroPulse 2.5s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 22px rgba(245, 197, 24, 0.55); }
  50%       { transform: scale(1.07); box-shadow: 0 6px 32px rgba(245, 197, 24, 0.75); }
}

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

@media (max-width: 767px) {
  .hero-container {
    flex-direction: column-reverse;
    gap: 28px;
  }
  .hero-content {
    text-align: center;
  }
  .hero-cta-wrap {
    text-align: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .hero-note {
    text-align: center;
  }
  .hero-multiplier {
    top: -10px;
    right: -6px;
    font-size: 1.1rem;
    padding: 9px 14px;
  }
}

/* ===== CONTENT SECTIONS ===== */
.section {
  padding: 52px 0;
  border-bottom: 1px solid rgba(136, 136, 176, 0.12);
}

.section:last-of-type { border-bottom: none; }

.section::after {
  content: "";
  display: table;
  clear: both;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section floated images */
.section-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
}

/* ===== TABLES ===== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin: 20px 0;
  border-radius: 10px;
  border: 1px solid rgba(136, 136, 176, 0.15);
}

table {
  min-width: 600px;
  border-collapse: collapse;
  width: 100%;
  background-color: var(--color-surface);
}

th {
  padding: 13px 18px;
  text-align: left;
  font-family: var(--font-body), sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-bg);
  background-color: var(--color-primary);
}

td {
  padding: 11px 18px;
  border-bottom: 1px solid rgba(136, 136, 176, 0.15);
  color: var(--color-text);
  font-size: 0.95rem;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background-color: rgba(245, 197, 24, 0.04); }

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

.review-card {
  background-color: var(--color-surface);
  border-radius: 10px;
  padding: 18px 20px;
  border-left: 3px solid var(--color-primary);
}

.review-author {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.review-text { color: var(--color-text); font-size: 0.95rem; margin-bottom: 0; }

/* ===== FAQ ===== */
.faq-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.faq-item {
  background-color: var(--color-surface);
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.975rem;
  gap: 12px;
  user-select: none;
  color: var(--color-text);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.faq-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-bg);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  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: 0 20px;
}

.faq-item.is-open .faq-answer {
  max-height: 500px;
  padding: 0 20px 18px;
}

.faq-answer p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ===== STICKY BOTTOM BAR ===== */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 98;
  height: 60px;
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.sticky-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.sticky-bar-logo {
  flex-shrink: 0;
}

.sticky-bar-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
}

.sticky-bar-slogan {
  font-family: var(--font-display), cursive;
  font-weight: bold;
  color: var(--color-primary);
  font-size: 1rem;
  white-space: nowrap;
  overflow: visible;
}

.sticky-bar .btn {
  margin-left: auto;
  flex-shrink: 0;
}

/* ===== POPUP ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  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: 320px;
  width: calc(100% - 32px);
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.popup-inner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: cover;
  flex-shrink: 1;
  min-height: 0;
}

.popup-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  min-height: 48px;
  min-width: unset;
  border-radius: 0;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.55);
  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: rgba(0, 0, 0, 0.8);
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--color-surface);
  padding: 36px 0 24px;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(136, 136, 176, 0.18);
  padding-top: 18px;
  line-height: 1.55;
}

/* ===== BREAKPOINT: 600px (float images) ===== */
@media (min-width: 600px) {
  .float-left .section-img {
    float: left;
    width: auto;
    max-width: 280px;
    margin: 0 24px 16px 0;
  }

  .float-right .section-img {
    float: right;
    width: auto;
    max-width: 280px;
    margin: 0 0 16px 24px;
  }
}

/* ===== BREAKPOINT: 768px ===== */
@media (min-width: 768px) {
  .header-nav { display: flex; }

  .reviews-grid { grid-template-columns: 1fr 1fr; }

  .sticky-bar-slogan { font-size: 1.05rem; }
}

/* ===== BREAKPOINT: 1200px ===== */
@media (min-width: 1200px) {
  .container { padding: 0 32px; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== MOBILE: max 480px ===== */
@media (max-width: 480px) {
  .header-logo { display: none; }

  .sticky-bar { height: 56px; }
  .sticky-bar-slogan { font-size: 0.8rem; }

  .popup-inner {
    max-width: 100%;
    width: calc(100% - 24px);
  }
}

/* ===== PREFERS 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-intro,
  .hero-cta-wrap {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .fade-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .sticky-bar {
    transition: none !important;
  }

  .popup-overlay {
    transition: none !important;
  }

  .faq-answer {
    transition: none !important;
  }
}
