body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background: #f9fafb;
  color: #1e293b;
}

/* Основен контейнер */
.quiz-wrapper {
  max-width: 960px;
  margin: 40px auto;
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  animation: fadeIn 0.5s ease-in;
}

.quiz-title {
  text-align: center;
  font-size: 2rem;
  color: #1e3a8a;
  margin-bottom: 10px;
}

.quiz-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 20px;
}

/* Прогрес бар */
#progress-bar {
  background: #e2e8f0;
  border-radius: 6px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 25px;
}

#progress {
  background: linear-gradient(90deg, #2563eb, #1e3a8a);
  width: 0%;
  height: 8px;
  border-radius: 6px;
  transition: width 0.3s ease;
}

/* Въпроси */
.quiz-question h2 {
  color: #1e3a8a;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-btn {
  background: linear-gradient(90deg, #2563eb, #1e3a8a);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s, opacity 0.3s;
}

.quiz-btn:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.quiz-option {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s;
}

.quiz-option:hover {
  background: #e2e8f0;
}

.quiz-option input {
  margin-right: 10px;
}

.quiz-nav {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

.back-btn {
  background: #cbd5e1;
  color: #1e293b;
}

/* Продукти */
.quiz-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 20px;
  align-items: stretch;
}

.quiz-card {
  background: #f8fafc;
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  text-align: center;
  transition: transform 0.25s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quiz-card:hover {
  transform: translateY(-4px);
}

.quiz-img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.match-bar {
  background: #e2e8f0;
  border-radius: 8px;
  height: 8px;
  margin: 8px 0;
  overflow: hidden;
}

.match-fill {
  background: linear-gradient(90deg, #22c55e, #16a34a);
  height: 8px;
  border-radius: 8px;
}

.match-text {
  font-size: 0.9rem;
  color: #16a34a;
  margin-bottom: 6px;
}

.price {
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 8px;
}

.desc {
  color: #475569;
  font-size: 0.9rem;
  min-height: 50px;
  margin-top: 4px;
}

.quiz-link {
  display: inline-block;
  margin-top: 10px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.3s;
}

.quiz-link:hover {
  background: #1e40af;
}

/* Топ рамки */
.rank-1 {
  border: 3px solid gold;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.5);
}

.rank-2 {
  border: 3px solid silver;
  box-shadow: 0 0 16px rgba(192, 192, 192, 0.4);
}

.rank-3 {
  border: 3px solid #cd7f32;
  box-shadow: 0 0 14px rgba(205, 127, 50, 0.4);
}

.top-ribbon {
  position: absolute;
  top: 12px;
  left: -8px;
  background: linear-gradient(90deg, #facc15, #fbbf24);
  color: #1e293b;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.rank-1 .top-ribbon::before {
  content: "👑 ";
}

/* Footer */
.quiz-footer {
  margin-top: 40px;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
  text-align: center;
  font-size: 1.05rem;
  color: #475569;
}

/* Анимации */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📱 Отзивчивост */
@media (max-width: 1024px) {
  .quiz-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .quiz-wrapper {
    padding: 25px 15px;
  }
  .quiz-btn {
    width: 100%;
    font-size: 1.1rem;
  }
  .quiz-card {
    padding: 10px;
  }
  .quiz-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .quiz-img {
    max-height: 150px;
  }
}

.price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 6px;
}

.price-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: #64748b;
  margin-right: 4px;
  text-transform: lowercase;
}

.price-eur {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: -2px;
}
.quiz-email {
  background: #f9fafb;
  padding: 20px;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}
.quiz-email input {
  width: 260px;
  max-width: 80%;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 10px;
  margin-right: 10px;
}
.quiz-email .quiz-btn {
  background: #1d4ed8;
  color: #fff;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.quiz-email .quiz-btn:hover {
  background: #2563eb;
}
.quiz-seo-text {
  margin-top: 40px;
  line-height: 1.6;
}
.quiz-seo-text h2, .quiz-seo-text h3 {
  color: #1e293b;
  margin-top: 20px;
}
.quiz-trust {
  margin-top: 40px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 15px;
  font-size: 0.95rem;
  color: #334155;
}
.email-msg { margin-top: 10px; font-size: 0.9rem; }

