/* ============================================================
   FONTS — local woff2 (Google Fonts subsets, served from /static/fonts/)
   ============================================================ */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/eb-garamond-400.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/eb-garamond-500.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/eb-garamond-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-400.woff2') format('woff2');
}

/* ============================================================
   RISULY — order page (form / waiting / review document)
   ============================================================ */
:root {
  --cream:        #FAF7F2;
  --cream-deep:  #F4EFE6;
  --ink:          #2D2520;
  --ink-soft:     #5C5048;
  --ink-mute:     #8A7F76;
  --terracotta:   #C97B5C;
  --terracotta-dk:#B0664A;
  --lavender:     #8B7BA8;
  --rose:         #E8D5CC;
  --sand:         #D9C9B0;
  --rule:         #E5DCCE;
  --rule-soft:    #EEE6D8;

  --serif: "EB Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, Menlo, monospace;

  --content: 700px;
  --wide:    960px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; }

/* ---- State switcher / tier switcher (preview only) ---- */
.state-switcher,
.tier-switcher {
  position: fixed;
  right: 16px;
  z-index: 100;
  display: flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(45, 37, 32, 0.18);
  font-family: var(--sans);
  font-size: 12px;
}
.state-switcher { top: 16px; }
.tier-switcher  { top: 64px; }
.state-switcher button,
.tier-switcher button {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font: inherit;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.state-switcher button.is-active,
.tier-switcher button.is-active {
  background: var(--terracotta);
  color: var(--cream);
}

/* ---- Page wrapper ---- */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Site header / footer ---- */
.site-header,
.site-footer {
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
.site-footer {
  border-bottom: 0;
  border-top: 1px solid var(--rule);
  margin-top: auto;
  color: var(--ink-mute);
  font-size: 13px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  transition: color 120ms ease;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--terracotta);
  display: inline-block;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cream);
}
.brand-mark--small { width: 16px; height: 16px; }
.brand-mark--small::after { left: 4px; top: 4px; width: 8px; height: 8px; }
.site-nav { display: flex; gap: 24px; }
.site-nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 120ms ease;
}
.site-nav a:hover { color: var(--ink); }
.site-footer-links { display: flex; gap: 22px; }
.site-footer-links a {
  text-decoration: none;
  font-size: 13px;
  color: var(--ink-mute);
}
.site-footer-links a:hover { color: var(--ink-soft); }

/* ---- Page main wrapper ---- */
.page-main {
  flex: 1;
  padding: 56px 40px;
}

/* ============================================================
   STATE 1 — context form
   ============================================================ */
.form-wrap {
  max-width: var(--content);
  margin: 0 auto;
}
.form-intro { margin-bottom: 44px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 18px;
}
.form-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0 0 16px;
  color: var(--ink);
}
.form-lede {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* Uploaded photo preview */
.uploaded-preview {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px;
  background: var(--cream-deep);
  border-radius: 6px;
  margin-bottom: 44px;
}
.uploaded-preview-thumb {
  width: 80px;
  height: 90px;
  flex-shrink: 0;
  background: #FFFDF8;
  border: 1px solid var(--rule);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.uploaded-preview-thumb svg,
.uploaded-preview-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.uploaded-preview-text { flex: 1 1 auto; min-width: 0; }
.uploaded-preview-label {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 4px;
}
.uploaded-preview-hint {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.5;
}
.uploaded-preview-hint a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Fields */
.field { margin-bottom: 32px; }
.field-label {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.field-hint {
  display: block;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 10px;
  line-height: 1.5;
}
.field-group-sep { height: 18px; }

/* Segmented control (radio group) */
.segmented {
  display: inline-flex;
  background: var(--cream-deep);
  border-radius: 999px;
  padding: 4px;
}
.segmented input[type="radio"] { display: none; }
.segmented label {
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background 120ms ease, color 120ms ease;
  user-select: none;
}
.segmented input[type="radio"]:checked + label {
  background: var(--terracotta);
  color: var(--cream);
}

/* Select */
.select-wrap {
  position: relative;
  max-width: 480px;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-soft);
  border-bottom: 1.5px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-wrap select {
  appearance: none;
  width: 100%;
  padding: 14px 44px 14px 16px;
  background: #FFFDF8;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 120ms ease;
}
.select-wrap select:focus { outline: 2px solid rgba(201, 123, 92, 0.3); border-color: var(--terracotta); }

/* Choice cards (free / assigned) */
.choice-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.choice-card {
  position: relative;
  padding: 18px 18px 18px 50px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #FFFDF8;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}
.choice-card input[type="radio"] {
  position: absolute;
  left: 18px;
  top: 22px;
  opacity: 0;
}
.choice-dot {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1.5px solid var(--rule);
  background: #fff;
  transition: border-color 120ms ease, background 120ms ease;
}
.choice-card input[type="radio"]:checked ~ .choice-dot {
  border-color: var(--terracotta);
  background: var(--terracotta);
  box-shadow: inset 0 0 0 3px #FFFDF8;
}
.choice-card input[type="radio"]:checked ~ .choice-card-head,
.choice-card input[type="radio"]:checked + .choice-dot + .choice-card-head {
  color: var(--ink);
}
.choice-card-head {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}
.choice-card-sub {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* Модификатор для 3 карт: 2 в ряд, 3-я широкая */
.choice-cards--3 {
  grid-template-columns: 1fr 1fr;
}
.choice-card--wide {
  grid-column: 1 / -1;
}
.inline-extra {
  margin-top: 16px;
  padding-left: 0;
  animation: fade-in 200ms ease;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.inline-extra-label {
  display: block;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

/* Text input / textarea */
.text-input, .textarea-input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: #FFFDF8;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
  transition: border-color 120ms ease;
  resize: vertical;
}
.text-input:focus, .textarea-input:focus {
  outline: 2px solid rgba(201, 123, 92, 0.3);
  border-color: var(--terracotta);
}
.textarea-input { min-height: 110px; }
.char-count {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 6px;
}

/* Submit */
.submit-row { margin-top: 40px; }
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--terracotta);
  color: var(--cream);
  border: 0;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, transform 80ms ease;
}
.btn-primary:hover { background: var(--terracotta-dk); }
.btn-primary:active { transform: translateY(1px); }
.submit-note {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
}

/* ============================================================
   STATE 2 — waiting
   ============================================================ */
.page-main.waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
}
.waiting-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--ink);
}
.waiting-sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 60px;
}
.breathe {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: var(--terracotta);
  opacity: 0.85;
  animation: breathe 2.6s ease-in-out infinite;
  margin-bottom: 60px;
}
.breathe::before, .breathe::after {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 999px;
  border: 1.5px solid var(--terracotta);
  animation: ripple 2.6s ease-out infinite;
}
.breathe::after { animation-delay: 1.3s; }
@keyframes breathe {
  0%, 100% { transform: scale(0.92); opacity: 0.78; }
  50%      { transform: scale(1.0);  opacity: 1; }
}
@keyframes ripple {
  0%   { transform: scale(0.85); opacity: 0.4; }
  100% { transform: scale(1.45); opacity: 0; }
}
.status-rotator {
  position: relative;
  height: 22px;
  width: 100%;
  max-width: 360px;
  overflow: hidden;
}
.status-rotator span {
  position: absolute;
  inset: 0;
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  opacity: 0;
  animation: status-cycle 45s linear infinite;
}
.status-rotator span:nth-child(1) { animation-delay: 0s; }
.status-rotator span:nth-child(2) { animation-delay: 15s; }
.status-rotator span:nth-child(3) { animation-delay: 30s; }
@keyframes status-cycle {
  0%, 33%   { opacity: 1; }
  34%, 100% { opacity: 0; }
}
.waiting-foot {
  margin-top: 60px;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.55;
  max-width: 460px;
}

/* ============================================================
   STATE 3 — review document (PDF-safe)
   ============================================================ */
.doc {
  max-width: var(--content);
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.doc-head-left { flex: 1; min-width: 0; }
.doc-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.008em;
  margin: 0 0 12px;
}
.doc-sub {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.doc-date {
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0;
}
.doc-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 120ms ease;
}
.doc-download:hover { background: var(--terracotta-dk); }
.doc-download svg { display: block; }

/* Drawing showcase */
.drawing-card {
  margin: 0 auto 48px;
  width: 400px;
  max-width: 100%;
  text-align: center;
}
.drawing-paper {
  background: #FFFDF8;
  border: 1px solid var(--rule);
  padding: 28px 22px 22px;
  box-shadow:
    0 1px 0 rgba(45, 37, 32, 0.04),
    0 14px 28px -10px rgba(45, 37, 32, 0.18),
    0 30px 50px -24px rgba(45, 37, 32, 0.14);
  transform: rotate(-0.6deg);
}
.drawing-paper svg,
.drawing-paper img { display: block; width: 100%; height: auto; }
.drawing-caption {
  display: block;
  margin-top: 16px;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
}

/* Overall impression */
.impression { margin: 0 auto 72px; }
.impression h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 16px;
  letter-spacing: -0.003em;
}
.impression p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}

/* Analytical block */
.block {
  margin: 0 0 64px;
  page-break-inside: avoid;
  break-inside: avoid;
}
.block-head { display: block; margin-bottom: 6px; }
.block-num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--terracotta);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.block-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.003em;
  margin: 0;
}
.block-rule {
  height: 1px;
  background: var(--rule);
  margin: 14px 0 22px;
  border: 0;
}
.block-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}
.block-body p { margin: 0 0 14px; }
.block-body p:last-child { margin-bottom: 0; }

/* Sources sub-block */
.sources {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px dashed var(--rule);
}
.sources-label {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 12px;
}
.sources ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sources li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  padding: 4px 0;
  line-height: 1.5;
}
.src-year {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--terracotta);
  letter-spacing: 0.06em;
  flex-shrink: 0;
  width: 36px;
}
.src-text { flex: 1; }

/* Question-answer block */
.qblock .quoted {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  border-left: 2px solid var(--terracotta);
  padding: 4px 0 4px 18px;
  margin: 0 0 18px;
}

/* Extended-only blocks */
.extended-block {
  margin: 0 0 64px;
  padding: 32px 28px;
  background: #F5F2F8;
  border-left: 2px solid var(--lavender);
  page-break-inside: avoid;
  break-inside: avoid;
}
@supports (background: linear-gradient(0deg, red, blue)) {
  .extended-block {
    background: linear-gradient(180deg, rgba(139, 123, 168, 0.10), rgba(139, 123, 168, 0.02));
  }
}
.extended-block .extended-header { margin-bottom: 14px; }
.extended-mark {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 8px;
}
.extended-header h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
}
.extended-lede {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.conversation-topics, .month-watch {
  list-style: none;
  margin: 0;
  padding: 0;
}
.conversation-topics li, .month-watch li {
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--rule);
}
.conversation-topics li:last-child,
.month-watch li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.conversation-topics h4, .month-watch h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 8px;
}
.conversation-topics p, .month-watch p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

/* Bullet lists */
.list-block {
  margin: 0 0 56px;
  page-break-inside: avoid;
  break-inside: avoid;
}
.list-block h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 18px;
  letter-spacing: -0.003em;
}
.list-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-block li {
  position: relative;
  padding: 0 0 14px 26px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.list-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--terracotta);
}
.list-block--positive li::before { background: var(--lavender); }

/* Bibliography */
.biblio {
  margin: 64px 0 32px;
  padding: 0;
  page-break-inside: avoid;
  break-inside: avoid;
}
.biblio h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.biblio ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: bib;
}
.biblio li {
  counter-increment: bib;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  padding: 8px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 14px;
  line-height: 1.5;
}
.biblio li:first-child { border-top: 0; }
.biblio li::before {
  content: counter(bib, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--terracotta);
  letter-spacing: 0.06em;
  padding-top: 4px;
  flex-shrink: 0;
}

/* Disclaimer */
.disclaimer {
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.6;
}
.sent-to {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-mute);
  font-style: normal;
}
.sent-to::before {
  content: "✦";
  color: var(--terracotta);
  margin-right: 8px;
  font-style: normal;
}

/* ---- print / PDF tuning ---- */
@media print {
  .state-switcher,
  .tier-switcher,
  .site-header,
  .site-footer { display: none !important; }
  body, html { background: #fff !important; }
  .page,
  .page-main { background: transparent !important; }
  .doc { padding-top: 0; }
  .block, .list-block, .biblio, .extended-block { page-break-inside: avoid; }
  .doc-download { display: none !important; }
}

/* ---- responsive niceties ---- */
@media screen and (max-width: 640px) {
  .site-header, .site-footer { padding-left: 20px; padding-right: 20px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-footer-links { flex-wrap: wrap; gap: 14px 22px; }
  .form-title { font-size: 34px; }
  .doc-title { font-size: 36px; }
  .doc-head { flex-direction: column; }
  .choice-cards, .choice-cards--3 { grid-template-columns: 1fr; }
  .segmented { display: flex; flex-wrap: wrap; }
}

/* ─── Example banner (для страниц /examples/N) ─── */
.example-banner {
  background: #F6EFE2;
  border: 1px solid #E6DCCB;
  border-radius: 12px;
  margin: 0 0 32px;
  padding: 18px 24px;
}
.example-banner__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.example-banner__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #B16548;
  font-weight: 600;
  flex-shrink: 0;
}
.example-banner__text {
  margin: 0;
  font-size: 15px;
  color: #5A4A3F;
  flex: 1;
  min-width: 240px;
  line-height: 1.45;
}
.example-banner__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: #C97B5C;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.example-banner__cta:hover {
  background: #B16548;
}
@media (max-width: 560px) {
  .example-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   v7: новые блоки расширенного разбора
   ──────────────────────────────────────────────────────────────────────── */

/* === Главное за 30 секунд === */
.headline-30 {
  margin: 32px 0 48px;
  padding: 28px 32px;
  background: var(--lavender-soft, #f3eff7);
  border-left: 3px solid var(--lavender, #b8a4cf);
  border-radius: 6px;
}
.headline-30__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender-deep, #7a5ea2);
  margin: 0 0 12px 0;
}
.headline-30__text {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink, #2a2a2a);
  margin: 0;
  font-weight: 400;
}

/* === Возрастная норма === */
.age-norm {
  margin: 48px 0;
  padding: 32px 0;
  border-top: 1px solid var(--rule, #e6e2dc);
  border-bottom: 1px solid var(--rule, #e6e2dc);
}
.age-norm__head { margin-bottom: 24px; }
.age-norm__title {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 6px 0;
  color: var(--ink, #2a2a2a);
}
.age-norm__sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink-soft, #7a7770);
  margin: 0;
}
.age-norm__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}
.age-norm__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft, #f0ece6);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
.age-norm__item:last-child { border-bottom: none; }
.age-norm__mark {
  flex-shrink: 0;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  position: relative;
}


.age-norm__item--matched .age-norm__text {
  color: var(--ink, #2a2a2a);
}
.age-norm__item--absent .age-norm__mark {
  background: transparent;
  border: 1.5px solid var(--rule, #d8d4ce);
}
.age-norm__item--absent .age-norm__text {
  color: var(--ink-soft, #a8a49b);
}
.age-norm__verdict {
  padding: 20px 24px;
  border-radius: 6px;
  text-align: center;
}
.age-norm__verdict--ok {
  background: #f1f7ed;
  border: 1px solid #d4e4c8;
}
.age-norm__verdict--observe {
  background: #fbf6e8;
  border: 1px solid #e9dfb8;
}
.age-norm__count {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 20px;
  margin: 0 0 6px 0;
  color: var(--ink, #2a2a2a);
}
.age-norm__count strong {
  color: var(--lavender-deep, #7a5ea2);
  font-weight: 500;
}
.age-norm__verdict-text {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink-soft, #5e5b55);
  margin: 0;
  line-height: 1.5;
}

/* === Что рисунок НЕ означает === */
.block-lede {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink-soft, #7a7770);
  margin: 0 0 18px 0;
  font-style: italic;
}
.not-means-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.not-means-list li {
  position: relative;
  padding: 12px 0 12px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink, #2a2a2a);
  border-bottom: 1px solid var(--rule-soft, #f0ece6);
}
.not-means-list li:last-child { border-bottom: none; }
.not-means-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 14px;
  height: 1.5px;
  background: var(--ink-soft, #a8a49b);
  transform: rotate(-45deg);
}
.not-means-list li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 19px;
  width: 14px;
  height: 1.5px;
  background: var(--ink-soft, #a8a49b);
  transform: rotate(45deg);
}

/* === Светофор: зелёная и жёлтая зоны === */
.signal {
  margin: 16px 0;
  padding: 20px 24px;
  border-radius: 6px;
  border-left: 3px solid;
}
.signal--green {
  background: #f1f7ed;
  border-left-color: #82a55e;
}
.signal--yellow {
  background: #fbf6e8;
  border-left-color: #d4b450;
}
.signal__title {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px 0;
}
.signal--green .signal__title { color: #4d6e35; }
.signal--yellow .signal__title { color: #87671d; }
.signal__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.signal__list li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink, #2a2a2a);
}
.signal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.5;
}

/* === Игра на сегодня === */
.game-card {
  margin: 8px 0 0 0;
  padding: 28px 32px;
  background: #faf8f4;
  border: 1px solid var(--rule, #e6e2dc);
  border-radius: 6px;
}
.game-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-soft, #f0ece6);
}
.game-card__name {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0;
  color: var(--ink, #2a2a2a);
}
.game-card__duration {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--ink-soft, #7a7770);
  white-space: nowrap;
}
.game-card__row { margin-bottom: 18px; }
.game-card__row:last-child { margin-bottom: 0; }
.game-card__label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender-deep, #7a5ea2);
  margin-bottom: 6px;
}
.game-card__row p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink, #2a2a2a);
  margin: 0;
}

/* === Один вопрос ребёнку прямо сейчас === */
.big-quote {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.45;
  color: var(--ink, #2a2a2a);
  margin: 16px 0 0 0;
  padding: 24px 32px;
  border-left: 3px solid var(--lavender, #b8a4cf);
  background: var(--lavender-soft, #f3eff7);
  border-radius: 0 6px 6px 0;
  quotes: "«" "»";
}



/* === Что попросить нарисовать в следующий раз === */
.next-drawing {
  margin: 8px 0 0 0;
  padding: 28px 32px;
  background: var(--lavender-soft, #f3eff7);
  border: 1px solid var(--lavender, #b8a4cf);
  border-radius: 6px;
}
.next-drawing__assignment {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(184, 164, 207, 0.3);
}
.next-drawing__label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lavender-deep, #7a5ea2);
  margin-bottom: 8px;
}
.next-drawing__text {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink, #2a2a2a);
  margin: 0;
}
.next-drawing__row { margin-bottom: 16px; }
.next-drawing__row:last-of-type { margin-bottom: 22px; }
.next-drawing__row p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink, #2a2a2a);
  margin: 0;
}
.next-drawing__cta {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(184, 164, 207, 0.3);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft, #5e5b55);
  text-align: center;
}
.next-drawing__cta a {
  color: var(--lavender-deep, #7a5ea2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* === Ещё несколько советов (тихий хвост) === */
.advice-tail {
  margin: 56px 0 32px;
  padding-top: 32px;
  border-top: 1px solid var(--rule, #e6e2dc);
}
.advice-tail h3 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 18px 0;
  color: var(--ink-soft, #5e5b55);
}
.advice-tail__body p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink, #2a2a2a);
  margin: 0 0 14px 0;
}
.advice-tail__body p:last-child { margin-bottom: 0; }

/* === REJECT режим === */
.reject-block {
  margin: 40px 0;
  padding: 32px;
  background: #fbf6e8;
  border: 1px solid #e9dfb8;
  border-radius: 6px;
  text-align: center;
}
.reject-block h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 16px 0;
}
.reject-block p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 12px 0;
}
.reject-hint { font-size: 14px !important; color: var(--ink-soft, #7a7770); }

/* === Адаптив === */
@media (max-width: 640px) {
  .headline-30,
  .game-card,
  .next-drawing,
  .signal { padding: 20px; }
  .next-drawing__text { font-size: 20px; }
  .big-quote { padding: 20px; font-size: 20px; }
  .game-card__header { flex-direction: column; gap: 4px; }
}


/* ──────────────────────────────────────────────────────────────────────────
   v7.1: правки полировки + dual-section для базовых блоков
   ──────────────────────────────────────────────────────────────────────── */

/* === Правка 2: возрастная норма — зелёные круги вместо лавандовых === */



/* === Правка 4: крестики в "Что не означает" — центрируем по тексту === */
.not-means-list li {
  padding: 12px 0 12px 36px;  /* немного больше отступа слева */
  min-height: 24px;
}
.not-means-list li::before,
.not-means-list li::after {
  top: 50%;
  margin-top: -1px;  /* центрируем 1.5px высоту линии по вертикали */
  left: 6px;
  width: 14px;
}

/* === Правка 5: большая цитата — читабельный шрифт, без лишних кавычек === */
.big-quote {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: normal;          /* убираем italic */
  font-weight: 400;
  font-size: 24px;
  line-height: 1.5;
  color: var(--ink, #2a2a2a);
  margin: 16px 0 0 0;
  padding: 24px 32px;
  border-left: 3px solid var(--lavender, #b8a4cf);
  background: var(--lavender-soft, #f3eff7);
  border-radius: 0 6px 6px 0;
  quotes: "«" "»";
}
/* псевдоэлементы оставляем как были, не дублируя — кавычки рендерит сам CSS */

/* === Новые стили: dual-section для базовых блоков 01-04 === */
.dual-section {
  margin: 18px 0;
}
.dual-section__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft, #7a7770);
  margin: 0 0 10px 0;
}
.dual-section__see p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft, #5e5b55);
  margin: 0 0 10px 0;
}
.dual-section__see p:last-child { margin-bottom: 0; }
.dual-section--accent {
  margin-top: 22px;
  padding: 20px 24px;
  background: #faf8f4;
  border-left: 3px solid var(--lavender, #b8a4cf);
  border-radius: 0 6px 6px 0;
}
.dual-section--accent .dual-section__label {
  color: var(--lavender-deep, #7a5ea2);
}
.dual-section__means p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink, #2a2a2a);
  margin: 0 0 12px 0;
}
.dual-section__means p:last-child { margin-bottom: 0; }

/* === "Ещё несколько советов" — теперь список === */
.advice-tail__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.advice-tail__list li {
  position: relative;
  padding: 10px 0 10px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink, #2a2a2a);
  border-bottom: 1px solid var(--rule-soft, #f0ece6);
}
.advice-tail__list li:last-child { border-bottom: none; }
.advice-tail__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 12px;
  height: 1.5px;
  background: var(--lavender, #b8a4cf);
  opacity: 0.6;
}



/* === v7.2: финальные правки кружков и цитаты === */

.age-norm__item--matched .age-norm__mark {
  background: #82a55e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.age-norm__item--matched .age-norm__mark::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  margin-top: -2px;
}

/* Цитата без авто-кавычек — текст уже приходит как есть, обрамим CSS-кавычками через атрибут */
.big-quote::before,
.big-quote::after {
  content: none !important;
}

/* ── Cookie banner ── */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e6e1ef;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(60, 40, 90, 0.14);
  font-family: "Inter", system-ui, sans-serif;
}
.cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4a4458;
}
.cookie-banner__text a { color: #7c6bb0; text-decoration: underline; }
.cookie-banner__btn {
  flex: 0 0 auto;
  border: none;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 10px;
  background: #7c6bb0;
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}
.cookie-banner__btn:hover { background: #6a5a9c; }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner__btn { width: 100%; }
}
