/* Тест на архетипы — палитра владельца (закон №12):
   кремовый #FDF7F0, тёмно-серый #2C2C2C, бордовый #6A2A3B/#722F37, золото #D4B896. */

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

/* hidden-атрибут должен выигрывать у display:flex секций (иначе экраны не переключаются) */
[hidden] { display: none !important; }

html, body {
  background: #fdf7f0;
  color: #2c2c2c;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}

a { color: #6a2a3b; }

/* ===== ОБЛОЖКА ===== */
.cover {
  background: #6a2a3b;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
}

.cover-inner { max-width: 780px; }

.badge {
  display: inline-block;
  border: 1px solid #d4b896;
  color: #d4b896;
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.cover-title {
  color: #d4b896;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.cover-sub {
  color: #ffffff;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.6;
  opacity: 0.92;
  margin-bottom: 40px;
}

.cover-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 15px 34px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-1px); opacity: 0.94; }

.btn-gold { background: #d4b896; color: #6a2a3b; }
.btn-ghost { background: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.5); }
.btn-outline { background: transparent; color: #6a2a3b; border: 1px solid #6a2a3b; }

/* ===== ЭТАПЫ ===== */
.stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 20px; }

.card {
  background: #ffffff;
  border: 1px solid #e5d6c0;
  border-radius: 18px;
  max-width: 720px;
  width: 100%;
  padding: 40px 36px;
  box-shadow: 0 18px 50px rgba(106, 42, 59, 0.08);
}

.card-top { display: flex; justify-content: flex-end; margin-bottom: 4px; }

.progress-row { margin-bottom: 26px; }

.progress-label {
  display: block;
  color: #6a2a3b;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.progress-bar {
  display: block;
  height: 4px;
  background: #efe3d0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #d4b896;
  transition: width 0.25s ease;
}

.question-text {
  color: #2c2c2c;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  line-height: 1.35;
  margin-bottom: 28px;
}

.answers { display: flex; flex-direction: column; gap: 12px; }

.answer {
  text-align: left;
  background: #fdf7f0;
  border: 1px solid #e5d6c0;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 16px;
  line-height: 1.45;
  color: #2c2c2c;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.answer:hover { border-color: #d4b896; background: #fbf2e6; transform: translateX(3px); }

.back-row { margin-top: 18px; }

.link-back {
  background: none;
  border: none;
  color: #6a2a3b;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.75;
}

.link-back:hover { opacity: 1; }

/* ===== РЕЗУЛЬТАТ ===== */
.card-result { text-align: center; }

.result-kicker {
  color: #6a2a3b;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.result-primary { border: 1px solid #d4b896; border-radius: 14px; padding: 30px 24px; margin-bottom: 22px; }

.result-emoji { font-size: 46px; margin-bottom: 8px; }

.result-name { color: #6a2a3b; font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 6px; }

.result-percent { color: #d4b896; font-size: 30px; font-weight: 600; margin-bottom: 14px; }

.result-desc { color: #2c2c2c; font-size: 15px; line-height: 1.6; }

.result-secondary { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.secondary-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  background: #fdf7f0;
  border: 1px solid #e5d6c0;
  border-radius: 12px;
  padding: 14px 18px;
}

.secondary-name { font-weight: 600; }
.secondary-percent { color: #6a2a3b; font-weight: 600; }

.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }

.result-note { color: #2c2c2c; opacity: 0.65; font-size: 13.5px; line-height: 1.5; }

.result-home { margin-top: 10px; }

/* ===== ПРО АРХЕТИПЫ (блок на главной) ===== */
.about-section { padding: 80px 20px 60px; }

.about-section .card { margin: 0 auto; }

.section-title { color: #6a2a3b; text-align: center; font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 26px; }

.archetypes-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }

.archetype-item { text-align: left; background: #fdf7f0; border: 1px solid #e5d6c0; border-radius: 12px; padding: 16px 18px; }

.archetype-item h3 { color: #6a2a3b; font-size: 17px; margin-bottom: 6px; }

.archetype-item p { font-size: 14px; line-height: 1.55; color: #2c2c2c; }

/* ===== ПОДВАЛ ===== */
.footer {
  background: #6a2a3b;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 28px 20px;
  font-size: 14px;
}

.footer-links { margin-top: 8px; }

.footer-legal { margin-top: 10px; font-size: 12.5px; }

.footer-legal a { color: #d4b896; text-decoration: none; }

.footer-legal a:hover { color: #ffffff; }

/* ===== БАННЕР COOKIE ===== */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 640px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5d6c0;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(106, 42, 59, 0.18);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 100;
}

.cookie-banner[hidden] { display: none !important; }

.cookie-text { font-size: 13.5px; line-height: 1.5; flex: 1; min-width: 220px; margin: 0; }

.cookie-actions { display: flex; gap: 10px; }

.cookie-btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
}

.cookie-btn-accept { background: #d4b896; color: #6a2a3b; }
.cookie-btn-decline { background: transparent; color: #6a2a3b; border: 1px solid #6a2a3b; }

.footer-links a { color: #d4b896; text-decoration: none; }
.footer-links a:hover { color: #ffffff; }

@media (max-width: 640px) {
  .card { padding: 28px 20px; }
  .btn { padding: 14px 24px; font-size: 15px; }
}
