/* ============================================
   БАЗОВЫЙ CSS (из стайл-гайда сайта)
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; width: 100%; }
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  background-color: #171413;
}
a { text-decoration: none; color: #FFFFFF; }
a:hover { text-decoration: none; color: #D8A37C; }

.baza {
  display: flex;
  flex-direction: column;
  width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #171413;
}

.header {
  padding: 20px;
  background: #171413;
  text-align: left;
  border-bottom: 1px solid #A3A3A3;
}
.texth0 {
  font-size: 16px;
  font-weight: 700;
  line-height: 21px;
  letter-spacing: -0.022em;
  text-align: left;
  color: #FFFFFF;
}

.main {
  flex: 1 0 auto;
  padding: 20px;
  padding-bottom: 100px;
  border-bottom: 1px solid #A3A3A3;
}

.accent { color: #D8A37C; }

.button1 {
  width: 287px;
  height: 58px;
  background: #E5E5E521;
  border-radius: 16px;
  border: 1px solid #D8A37C;
  font-size: 18px;
  text-align: center;
  color: #FFFFFF;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  transition: background 0.2s;
  display: inline-block;
  text-decoration: none;
}
.button1:hover {
  background: #E5E5E559;
  color: #FFFFFF;
}
.button1:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.button1:disabled:hover {
  background: #E5E5E521;
}

.footer {
  flex-shrink: 0;
  padding: 15px 20px;
  background: #171413;
  color: #fff;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.abc { font-size: 13px; }

/* ============================================
   СТРАНИЦА MOOD — СПЕЦИФИЧНЫЕ СТИЛИ
   ============================================ */

/* --- HERO --- */
.hero {
  text-align: center;
  max-width: 800px;
  margin: 60px auto 70px;
}
.badge-free {
  display: inline-block;
  background: rgba(216, 163, 124, 0.12);
  border: 1px solid rgba(216, 163, 124, 0.4);
  color: #D8A37C;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 20px;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 18px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* --- БЛОКИ ВЫБОРА --- */
.select-block {
  max-width: 720px;
  margin: 0 auto 50px;
  text-align: center;
}
.select-title {
  font-size: 24px;
  font-weight: 700;
  color: #C8C0B5;
  margin-bottom: 28px;
}

/* --- КАРТОЧКИ ПОЛА --- */
.gender-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.gender-card {
  flex: 0 0 200px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(163, 163, 163, 0.2);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.gender-card:hover {
  border-color: rgba(216, 163, 124, 0.5);
  transform: translateY(-2px);
}
.gender-card.selected {
  border-color: #D8A37C;
  background: rgba(216, 163, 124, 0.08);
}
.gender-icon {
  font-size: 36px;
  color: #D8A37C;
}
.gender-label {
  font-size: 17px;
  color: #ccc;
}
.gender-card.selected .gender-label {
  color: #FFFFFF;
}

/* --- КАРТОЧКИ СОСТОЯНИЯ --- */
.state-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.state-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(163, 163, 163, 0.2);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.2s ease;
}
.state-card:hover {
  border-color: rgba(216, 163, 124, 0.5);
  transform: translateY(-2px);
}
.state-card.selected {
  border-color: #D8A37C;
  background: rgba(216, 163, 124, 0.08);
}
.state-emoji {
  font-size: 36px;
  margin-bottom: 14px;
}
.state-label {
  font-size: 15px;
  line-height: 1.5;
  color: #ccc;
}
.state-card.selected .state-label {
  color: #FFFFFF;
}

/* --- КНОПКА ОТПРАВКИ --- */
.action-area {
  text-align: center;
  margin: 0 auto 60px;
}

/* --- СПИННЕР --- */
.spinner-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 60px 20px;
}
.spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(216, 163, 124, 0.2);
  border-top-color: #D8A37C;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-text {
  font-size: 17px;
  color: #A3A3A3;
}

/* --- РЕЗУЛЬТАТ --- */
.result-area {
  max-width: 680px;
  margin: 0 auto;
  animation: quizFadeIn 0.5s ease;
}
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(216, 163, 124, 0.3);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: left;
  margin-bottom: 40px;
}
.result-badge {
  display: inline-block;
  background: rgba(216, 163, 124, 0.12);
  border: 1px solid rgba(216, 163, 124, 0.4);
  color: #D8A37C;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.result-text {
  font-size: 19px;
  line-height: 1.8;
  color: #ccc;
}

/* --- CTA ПОСЛЕ РЕЗУЛЬТАТА --- */
.result-cta {
  text-align: center;
  margin-bottom: 50px;
}
.result-cta-text {
  font-size: 17px;
  color: #C8C0B5;
  margin-bottom: 24px;
}

/* --- ТАЙМЕР КУЛДАУНА (В РЕЗУЛЬТАТЕ) --- */
.cooldown-timer-block {
  text-align: center;
}
.timer-label {
  font-size: 15px;
  color: #A3A3A3;
  margin-bottom: 12px;
}
.timer-display {
  font-size: 32px;
  font-weight: 700;
  color: #D8A37C;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

/* --- КУЛДАУН (ОТДЕЛЬНЫЙ БЛОК) --- */
.cooldown-area {
  max-width: 600px;
  margin: 60px auto;
  text-align: center;
  animation: quizFadeIn 0.5s ease;
}
.cooldown-text {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 767px) {
  .baza { width: 100%; padding: 0 5px; }
  .header { padding: 6px 0; text-align: center; }
  .texth0 { font-size: 14px; line-height: 1.2; text-align: left; }
  .main { padding: 5px 0 60px; }

  .hero { margin: 30px auto 40px; }
  .hero h1 { font-size: 28px; }
  .hero-sub { font-size: 16px; }

  .select-block { margin-bottom: 36px; }
  .select-title { font-size: 20px; }

  .gender-cards { flex-direction: column; align-items: center; gap: 14px; }
  .gender-card { flex: 0 0 auto; width: 100%; max-width: 320px; }

  .state-cards { grid-template-columns: 1fr; gap: 14px; }

  .button1 {
    width: 100%;
    max-width: 320px;
    height: auto;
    padding: 14px 20px;
    font-size: 16px;
    margin: 0 auto;
    display: block;
  }

  .result-card { padding: 28px 20px; }
  .result-text { font-size: 17px; }
  .timer-display { font-size: 26px; }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 20px 0;
  }
  .footer-col { align-items: center; gap: 8px; }
}