@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Raleway:wght@400;500;600;700&display=swap');

.psy-test { max-width: 740px; margin: 0 auto; }
.psy-test *, .psy-test *::before, .psy-test *::after { box-sizing: border-box; }
.psy-hidden { display: none !important; }

/* ── HERO ── */
.psy-test__hero { text-align: center; padding: 48px 0 40px; position: relative; }
.psy-test__hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 300px; height: 300px; background: radial-gradient(circle, rgba(107,127,59,0.08) 0%, transparent 70%); pointer-events: none; }
.psy-test__badge { display: inline-block; font-family: 'Raleway', sans-serif; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: #4A5E1A; border: 1px solid rgba(74,94,26,0.4); padding: 6px 18px; border-radius: 20px; margin-bottom: 20px; font-weight: 600; }
.psy-test__title { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px, 5.5vw, 48px); font-weight: 600; line-height: 1.15; color: #2C2C28; margin-bottom: 16px; }
.psy-test__subtitle { font-size: clamp(15px, 2.2vw, 17px); color: #4A4A42; max-width: 540px; margin: 0 auto 8px; font-weight: 400; line-height: 1.55; }
.psy-test__author { font-size: 13px; color: #8A8A7E; font-style: italic; }
.psy-test__disclaimer { font-size: 12px; color: #A0A096; max-width: 480px; margin: 16px auto 0; line-height: 1.5; padding: 12px 16px; background: rgba(107,127,59,0.04); border-radius: 8px; }
.psy-test__meta { display: flex; justify-content: center; gap: 24px; margin-top: 20px; font-size: 12px; color: #8A8A7E; flex-wrap: wrap; }
.psy-test__meta-item { display: flex; align-items: center; gap: 6px; }
.psy-test__meta-item svg { stroke: #6B7F3B; }

/* ── КНОПКА СТАРТ ── */
.psy-test__start-btn { display: inline-flex; align-items: center; gap: 10px; background: #6B7F3B; color: #fff; font-family: 'Raleway', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: 0.5px; padding: 16px 40px; border: none; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; margin-top: 24px; }
.psy-test__start-btn:hover { background: #5A6C30; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(107,127,59,0.25); }
.psy-test__start-btn svg { stroke: #fff; }

/* ── ПРОГРЕСС ── */
.psy-test__progress-bar { display: flex; align-items: center; gap: 6px; max-width: 460px; margin: 0 auto 40px; padding: 0 20px; }
.psy-test__progress-step { flex: 1; height: 4px; border-radius: 2px; background: #E0DED6; transition: background 0.4s ease; }
.psy-test__progress-step.active { background: #6B7F3B; }
.psy-test__progress-step.done { background: #7D9344; }
.psy-test__progress-label { font-size: 12px; color: #8A8A7E; white-space: nowrap; min-width: 40px; text-align: right; }

/* ── ВОПРОС ── */
.psy-test__question-box { max-width: 600px; margin: 0 auto; animation: psyTestFadeUp 0.4s ease; }
@keyframes psyTestFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.psy-test__q-num { font-family: 'Cormorant Garamond', serif; font-size: 13px; color: #4A5E1A; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; text-align: center; font-weight: 600; }
.psy-test__q-text { font-family: 'Cormorant Garamond', serif; font-size: clamp(22px, 4vw, 30px); font-weight: 500; line-height: 1.3; color: #2C2C28; text-align: center; margin-bottom: 32px; }

/* ── ОТВЕТЫ ── */
.psy-test__answers { display: flex; flex-direction: column; gap: 10px; }
.psy-test__answer-btn { background: #FFFFFF; border: 1px solid #D8D4CA; border-radius: 10px; padding: 16px 20px; color: #2C2C28; font-family: 'Raleway', sans-serif; font-size: 15px; line-height: 1.5; cursor: pointer; transition: all 0.25s ease; text-align: left; position: relative; overflow: hidden; }
.psy-test__answer-btn::before { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: #6B7F3B; opacity: 0; transition: opacity 0.25s; }
.psy-test__answer-btn:hover { background: #F2F5EC; border-color: #6B7F3B; color: #2C2C28; transform: translateX(4px); }
.psy-test__answer-btn:hover::before { opacity: 1; }
.psy-test__answer-btn.selected { background: #F2F5EC; border-color: #6B7F3B; color: #2C2C28; }
.psy-test__answer-btn.selected::before { opacity: 1; }

/* ── РЕЗУЛЬТАТ ── */
.psy-test__result-box { max-width: 640px; margin: 0 auto; animation: psyTestFadeUp 0.5s ease; }
.psy-test__result-badge { display: inline-block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #4A5E1A; border: 1px solid rgba(74,94,26,0.4); padding: 5px 14px; border-radius: 16px; margin-bottom: 16px; font-weight: 600; }
.psy-test__pct { text-align: center; margin-bottom: 28px; }
.psy-test__pct-num { font-family: 'Cormorant Garamond', serif; font-size: clamp(56px, 12vw, 80px); font-weight: 600; color: #294103; line-height: 1; }
.psy-test__pct-label { font-size: 14px; color: #4A5E1A; margin-top: 4px; font-weight: 500; }
.psy-test__result-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 5vw, 36px); font-weight: 600; line-height: 1.2; color: #2C2C28; margin-bottom: 20px; }
.psy-test__result-desc { font-size: 16px; line-height: 1.75; color: #2C2C28; margin-bottom: 28px; }

/* ── ТЕХНИКА ── */
.psy-test__technique { background: #F2F5EC; border-radius: 12px; padding: 24px; margin-bottom: 28px; }
.psy-test__technique-label { font-family: 'Cormorant Garamond', serif; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #4A5E1A; margin-bottom: 8px; font-weight: 600; }
.psy-test__technique-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: #2C2C28; margin-bottom: 12px; }
.psy-test__technique-steps { font-size: 15px; line-height: 1.7; color: #2C2C28; margin-bottom: 20px; }
.psy-test__technique-why-wrap { background: #FFFFFF; border-radius: 8px; padding: 16px 20px 16px 22px; border-left: 3px solid #6B7F3B; }
.psy-test__technique-why-label { font-family: 'Raleway', sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #4A5E1A; font-weight: 700; margin-bottom: 6px; }
.psy-test__technique-why-text { font-size: 15px; line-height: 1.65; color: #2C2C28; }

/* ── SCORE BARS ── */
.psy-test__score-bars { margin-bottom: 32px; padding: 24px; background: #F9F8F4; border-radius: 12px; }
.psy-test__score-bars-title { font-family: 'Cormorant Garamond', serif; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: #4A5E1A; margin-bottom: 16px; font-weight: 600; }
.psy-test__score-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.psy-test__score-bar:last-child { margin-bottom: 0; }
.psy-test__score-bar-label { font-size: 12px; color: #4A4A42; width: 130px; flex-shrink: 0; }
.psy-test__score-bar-track { flex: 1; height: 8px; background: rgba(107,127,59,0.12); border-radius: 4px; overflow: hidden; }
.psy-test__score-bar-fill { height: 100%; border-radius: 4px; background: #6B7F3B; transition: width 0.8s ease; }
.psy-test__score-bar-fill.dominant { background: #294103; }
.psy-test__score-bar-val { font-size: 12px; color: #8A8A7E; width: 24px; text-align: right; flex-shrink: 0; }

/* ── ПРОТОКОЛ ── */
.psy-test__protocol-title { font-family: 'Cormorant Garamond', serif; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: #4A5E1A; margin-bottom: 20px; font-weight: 600; }
.psy-test__protocol-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.psy-test__protocol-card { background: #FFFFFF; border: 1px solid #E0DED6; border-radius: 12px; padding: 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.psy-test__protocol-card:hover { border-color: #6B7F3B; transform: translateX(4px); box-shadow: 0 4px 12px rgba(107,127,59,0.1); }
.psy-test__protocol-card.primary { border-color: #6B7F3B; background: #FAFDF5; }
.psy-test__card-start-badge { display: inline-block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: #6B7F3B; padding: 3px 10px; border-radius: 10px; margin-bottom: 6px; }
.psy-test__card-num { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 600; color: rgba(107,127,59,0.25); width: 36px; text-align: center; }
.psy-test__card-name { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: #2C2C28; margin-bottom: 4px; }
.psy-test__card-desc { font-size: 14px; color: #8A8A7E; line-height: 1.5; }
.psy-test__card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #4A5E1A; text-decoration: none; white-space: nowrap; padding: 8px 16px; border: 1px solid rgba(107,127,59,0.3); border-radius: 6px; transition: all 0.2s; }
.psy-test__card-link:hover { background: rgba(107,127,59,0.08); border-color: #6B7F3B; }

/* ── ШЕРИНГ ── */
.psy-test__share-card { background: #F9F8F4; border: 1px solid #E0DED6; border-radius: 12px; padding: 24px; margin-bottom: 24px; text-align: center; }
.psy-test__share-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: #2C2C28; margin-bottom: 8px; }
.psy-test__share-link-box { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.psy-test__share-input { flex: 1; padding: 10px 14px; border: 1px solid #D8D4CA; border-radius: 6px; font-size: 13px; color: #4A4A42; background: #fff; outline: none; }
.psy-test__share-copy-btn { padding: 10px 18px; background: #6B7F3B; color: #fff; border: none; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.psy-test__share-copy-btn:hover { background: #5A6C30; }

/* ── КНОПКИ РЕЗУЛЬТАТА ── */
.psy-test__result-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.psy-test__restart-btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 500; color: #4A4A42; background: transparent; border: 1px solid #E0DED6; border-radius: 6px; padding: 10px 20px; cursor: pointer; transition: all 0.2s; }
.psy-test__restart-btn:hover { border-color: #4A4A42; color: #2C2C28; }
.psy-test__pdf-btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Raleway', sans-serif; font-size: 14px; font-weight: 600; color: #fff; background: #6B7F3B; border: none; border-radius: 6px; padding: 10px 20px; cursor: pointer; transition: all 0.2s; }
.psy-test__pdf-btn:hover { background: #5A6C30; transform: translateY(-1px); }
.psy-test__disclaimer-bottom { font-size: 12px; color: #A0A096; text-align: center; margin-top: 8px; line-height: 1.5; }

/* ── АДАПТИВ ── */
@media (max-width: 600px) {
  .psy-test__protocol-card { grid-template-columns: 1fr; gap: 10px; }
  .psy-test__card-num { display: none; }
  .psy-test__card-link { justify-self: start; }
  .psy-test__result-actions { flex-direction: column; }
  .psy-test__restart-btn, .psy-test__pdf-btn { width: 100%; justify-content: center; }
  .psy-test__share-link-box { flex-direction: column; }
}

/* ── Rich-text вложенные теги — наследуют стили родителя ── */
.psy-test__title p,
.psy-test__title strong,
.psy-test__title em { font-family: inherit; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; margin: 0; }

.psy-test__subtitle p,
.psy-test__subtitle strong,
.psy-test__subtitle em { font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; margin: 0; }

.psy-test__disclaimer p { margin: 0; font-size: inherit; color: inherit; line-height: inherit; }

.psy-test__result-title p,
.psy-test__result-title strong { font-family: inherit; font-size: inherit; font-weight: inherit; color: inherit; margin: 0; }

.psy-test__result-desc p { margin-bottom: 12px; }
.psy-test__result-desc p:last-child { margin-bottom: 0; }
.psy-test__result-desc strong { font-weight: 600; color: #2C2C28; }
.psy-test__result-desc em { font-style: italic; }

.psy-test__technique-steps p { margin-bottom: 10px; }
.psy-test__technique-steps p:last-child { margin-bottom: 0; }
.psy-test__technique-steps strong { font-weight: 600; }
.psy-test__technique-steps ul, .psy-test__technique-steps ol { margin: 8px 0 8px 20px; }
.psy-test__technique-steps li { margin-bottom: 4px; }

.psy-test__technique-why-text p { margin-bottom: 8px; }
.psy-test__technique-why-text p:last-child { margin-bottom: 0; }
.psy-test__technique-why-text strong { font-weight: 600; }

.psy-test__card-desc p { margin: 0; font-size: inherit; color: inherit; line-height: inherit; }
.psy-test__card-desc strong { font-weight: 600; color: #4A4A42; }

/* ── Усиленная специфичность для rich-text форматирования ── */
.psy-test .psy-test__title strong,
.psy-test .psy-test__title b { font-weight: 700 !important; }
.psy-test .psy-test__title em,
.psy-test .psy-test__title i { font-style: italic !important; }

.psy-test .psy-test__subtitle strong,
.psy-test .psy-test__subtitle b { font-weight: 700 !important; }
.psy-test .psy-test__subtitle em,
.psy-test .psy-test__subtitle i { font-style: italic !important; }

.psy-test .psy-test__result-desc strong,
.psy-test .psy-test__result-desc b { font-weight: 700 !important; }
.psy-test .psy-test__result-desc em { font-style: italic !important; }

.psy-test .psy-test__technique-steps strong,
.psy-test .psy-test__technique-steps b { font-weight: 700 !important; }
.psy-test .psy-test__technique-steps em { font-style: italic !important; }

.psy-test .psy-test__technique-why-text strong,
.psy-test .psy-test__technique-why-text b { font-weight: 700 !important; }

/* ── Списки в rich-text полях ── */
.psy-test ul, .psy-test ol {
  margin: 10px 0 10px 24px;
  padding: 0;
}
.psy-test ul { list-style-type: disc; }
.psy-test ol { list-style-type: decimal; }
.psy-test ul li, .psy-test ol li {
  margin-bottom: 6px;
  font-size: inherit;
  line-height: 1.6;
  color: inherit;
}
.psy-test ul li::marker { color: #6B7F3B; }
.psy-test ol li::marker { color: #6B7F3B; font-weight: 600; }

/* ── Списки в дисклеймере — выравниваем по левому краю ── */
.psy-test__disclaimer ul,
.psy-test__disclaimer ol {
  text-align: left;
  display: inline-block;
  margin: 8px auto 0;
}

/* ── Нумерованный список в дисклеймере ── */
.psy-test__disclaimer ol {
  text-align: left;
  display: inline-block;
  margin: 8px auto 0;
}

/* ── Списки в заголовке и подзаголовке (центрированные блоки) ── */
.psy-test__title ul, .psy-test__title ol,
.psy-test__subtitle ul, .psy-test__subtitle ol {
  text-align: left;
  display: inline-block;
  margin: 8px auto 0;
}

/* ── Списки в блоках результата ── */
.psy-test__result-desc ul,
.psy-test__result-desc ol,
.psy-test__technique-steps ul,
.psy-test__technique-steps ol,
.psy-test__technique-why-text ul,
.psy-test__technique-why-text ol,
.psy-test__card-desc ul,
.psy-test__card-desc ol {
  text-align: left;
  margin: 8px 0 8px 24px;
  padding: 0;
}

/* ── Отступ снизу для описания результата ── */
.psy-test__result-desc {
  margin-bottom: 32px;
  padding-bottom: 8px;
}

/* ── Email форма ── */
.psy-test__email-form {
  background: #F9F8F4;
  border: 1px solid #E0DED6;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}
.psy-test__email-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: #2C2C28;
  margin-bottom: 8px;
}
.psy-test__email-subtitle {
  font-size: 14px;
  color: #6B7F3B;
  margin-bottom: 16px;
  line-height: 1.5;
}
.psy-test__email-row {
  display: flex;
  gap: 8px;
}
.psy-test__email-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #D8D4CA;
  border-radius: 6px;
  font-size: 14px;
  color: #2C2C28;
  background: #fff;
  outline: none;
  font-family: 'Raleway', sans-serif;
}
.psy-test__email-input:focus {
  border-color: #6B7F3B;
}
.psy-test__email-btn {
  padding: 10px 20px;
  background: #6B7F3B;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  font-family: 'Raleway', sans-serif;
}
.psy-test__email-btn:hover { background: #5A6C30; }
.psy-test__email-btn:disabled { background: #9aab6b; cursor: default; }
.psy-test__email-msg {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .psy-test__email-row { flex-direction: column; }
  .psy-test__email-btn { width: 100%; }
}
