/* Compact header and focused questionnaire */
:root { --header-height: 68px; }
.topbar { height: var(--header-height); flex: 0 0 var(--header-height); }
.brand-symbol-image { width: 54px; height: 54px; }
.screen, .quiz-layout, .result-layout { min-height: calc(100svh - var(--header-height)); }
.quiz-layout {
  width: 100%; max-width: 1040px; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: 28px 24px 40px;
}
.quiz-head { width: 100%; gap: 24px; flex: none; }
.progress-track { max-width: none; }
.question-block { width: 100%; max-width: none; margin: auto 0; padding: 40px 0 0; }
.question-block h2 { max-width: 940px; font-size: clamp(34px, 3.5vw, 56px); line-height: 1.08; letter-spacing: -.045em; margin-bottom: 28px; }
.question-limit { font-size: 17px; margin-top: 12px; }
.answers { max-width: none; gap: 12px; }
.answer { min-height: 76px; padding: 18px 20px; line-height: 1.45; background: rgba(255,255,255,.4); }
.answer-label { overflow-wrap: normal; }
.answer-check { margin-left: 5px; }
.quiz-actions { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.text-button { min-height: 42px; }
.screen-quiz { animation-duration: .25s; }

/* Contact form, also usable as a local-only preview */
.contact-section {
  margin-top: 44px; padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(142,83,105,.22); border-radius: 12px;
  background: rgba(255,250,249,.6);
}
.contact-mode { display: inline-flex; margin: 0 0 20px; padding: 7px 11px; border: 1px solid #bd8d9f; border-radius: 30px; color: #80465b; font-size: 11px; letter-spacing: .03em; }
.contact-section h3 { margin: 0 0 14px; font-size: clamp(22px, 2.3vw, 29px); line-height: 1.3; letter-spacing: -.025em; max-width: 650px; }
.contact-intro { color: #78606a; font-size: 14px; line-height: 1.55; margin: 0 0 30px; max-width: 590px; }
.form-grid { gap: 20px 24px; }
.contact-section label { font-size: 13px; line-height: 1.45; gap: 9px; margin-bottom: 0; }
.contact-section input, .contact-section select { border: 1px solid #d4b8c2; border-radius: 5px; background: #fffaf9; padding: 14px; min-height: 48px; transition: border-color .2s, background .2s; }
.contact-section input::placeholder { color: #a39099; }
.contact-section input:hover, .contact-section select:hover { border-color: #a5677e; }
.contact-section input:focus, .contact-section select:focus { border-color: var(--pink-strong); background: white; }
.contact-section .check-label { margin-top: 24px; gap: 10px; align-items: flex-start; }
.check-label input { width: 20px; height: 20px; min-height: 20px; margin: 0; }
#blog-field { margin-top: 18px; }
.is-preview #consent-field { opacity: .5; cursor: default; }
.is-preview #consent-field:after { content: 'После подключения отправки'; font-size: 11px; align-self: center; margin-left: auto; }
.form-submit-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.form-footnote { font-size: 12px; color: #78606a; }
.form-status { line-height: 1.6; margin: 20px 0; }
.form-status:empty { margin: 24px 0 0; }
@media (max-width: 900px) {
  .quiz-layout { padding-inline: 8px; }
}
@media (max-width: 560px) {
  :root { --header-height: 56px; }
  .brand-symbol-image { width: 44px; height: 44px; }
  .brand-wordmark { font-size: 10px; }
  .quiz-layout { padding: 22px 0 30px; }
  .quiz-head { display: grid; grid-template-columns: 1fr auto; gap: 14px; }
  .quiz-kicker { grid-column: 1; grid-row: 1; }
  .quiz-head .text-button { grid-column: 2; grid-row: 1; margin: 0; padding: 10px 12px; }
  .progress-track { grid-column: 1/-1; grid-row: 2; width: 100%; }
  .question-block { padding-top: 32px; }
  .question-block h2 { font-size: 34px; line-height: 1.12; margin-bottom: 24px; }
  .question-limit { font-size: 14px; line-height: 1.5; }
  .answers { gap: 9px; }
  .answer { padding: 16px 14px; min-height: 67px; }
  .answer-label { overflow-wrap: anywhere; }
  .quiz-actions { padding-top: 18px; margin-top: 20px; }
  .contact-section { margin-top: 30px; padding: 22px 18px; border-radius: 9px; }
  .contact-intro { font-size: 13px; margin-bottom: 24px; }
  .form-grid { gap: 18px; }
  .contact-section input, .contact-section select { font-size: 16px; }
  .contact-section .check-label { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; }
  .is-preview #consent-field:after { grid-column: 2; margin-left: 0; }
  .form-submit-row { align-items: flex-start; gap: 12px; }
  .form-submit-row .button { width: 100%; font-size: 14px; }
}

/* Question 10: individual fragrance names and the supplied legal note. */
.answer-line { display: block; }
.question-disclaimer {
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: normal;
  color: #65565d;
}
.question-disclaimer p { margin: 0 0 12px; }
.question-disclaimer p:last-child { margin-bottom: 0; }

/* Reveal the fully decoded result without moving its image through subpixels. */
.screen-result { animation: result-reveal .4s ease-out; }
@keyframes result-reveal { from { opacity: 0; } to { opacity: 1; } }
.result-visual { width: min(100%, 420px); aspect-ratio: 1792 / 2400; }
.result-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
@media (max-width: 700px) { .result-visual { width: min(100%, 300px); } }
.result-load-status { margin: 20px 0 0; font-size: 14px; line-height: 1.5; color: #65565d; }
@media (prefers-reduced-motion: reduce) { .screen-result { animation: none; } }
