/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */

/* ============================================================
   СЛОЙ PROPERTIES (служебные переменные Tailwind)
   ============================================================ */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or
            ((-moz-orient: inline)) or
            (not (color: rgb(from red r g b))) {
    *, :before, :after, ::backdrop {
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
      "Liberation Mono", "Courier New", monospace;
    --spacing: .25rem;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }
  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }
  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr { height: 0; color: inherit; border-top-width: 1px; }
  abbr:where([title]) { -webkit-text-decoration: underline dotted; text-decoration: underline dotted; }
  h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
  a { color: inherit; -webkit-text-decoration: inherit; text-decoration: inherit; }
  b, strong { font-weight: bolder; }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small { font-size: 80%; }
  sub, sup { vertical-align: baseline; font-size: 75%; line-height: 0; position: relative; }
  sub { bottom: -.25em; }
  sup { top: -.5em; }
  table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
  :-moz-focusring { outline: auto; }
  progress { vertical-align: baseline; }
  summary { display: list-item; }
  ol, ul, menu { list-style: none; }
  img, svg, video, canvas, audio, iframe, embed, object { vertical-align: middle; display: block; }
  img, video { max-width: 100%; height: auto; }
  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }
  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }
  :where(select:is([multiple], [size])) optgroup { font-weight: bolder; }
  :where(select:is([multiple], [size])) optgroup option { padding-inline-start: 20px; }
  ::file-selector-button { margin-inline-end: 4px; }
  ::placeholder { opacity: 1; }
  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder { color: currentColor; }
    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder { color: color-mix(in oklab, currentcolor 50%, transparent); }
    }
  }
  textarea { resize: vertical; }
  ::-webkit-search-decoration { -webkit-appearance: none; }
  ::-webkit-date-and-time-value { min-height: 1lh; text-align: inherit; }
  ::-webkit-datetime-edit { display: inline-flex; }
  ::-webkit-datetime-edit-fields-wrapper { padding: 0; }
  ::-webkit-datetime-edit { padding-block: 0; }
  ::-webkit-datetime-edit-year-field { padding-block: 0; }
  ::-webkit-datetime-edit-month-field { padding-block: 0; }
  ::-webkit-datetime-edit-day-field { padding-block: 0; }
  ::-webkit-datetime-edit-hour-field { padding-block: 0; }
  ::-webkit-datetime-edit-minute-field { padding-block: 0; }
  ::-webkit-datetime-edit-second-field { padding-block: 0; }
  ::-webkit-datetime-edit-millisecond-field { padding-block: 0; }
  ::-webkit-datetime-edit-meridiem-field { padding-block: 0; }
  ::-webkit-calendar-picker-indicator { line-height: 1; }
  :-moz-ui-invalid { box-shadow: none; }
  button, input:where([type=button], [type=reset], [type=submit]) { appearance: button; }
  ::file-selector-button { appearance: button; }
  ::-webkit-inner-spin-button { height: auto; }
  ::-webkit-outer-spin-button { height: auto; }
  [hidden]:where(:not([hidden=until-found])) { display: none !important; }
}

@layer components;
@layer utilities {
  .visible { visibility: visible; }
  .fixed { position: fixed; }
  .relative { position: relative; }
  .start { inset-inline-start: var(--spacing); }
  .table { display: table; }
  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
}

/* ============================================================
   ПЕРЕМЕННЫЕ ПРОЕКТА И БАЗОВЫЕ СТИЛИ
   ============================================================ */
:root {
  --ink: #15100c;
  --ink-soft: #241a13;
  --brown: #4a3526;
  --gold: #f1c878;
  --gold-light: #ffe1a6;
  --cream: #f6f0e7;
  --paper: #fffaf1;
  --red: #8f2724;
  --green: #21644a;
  --muted: #766b62;
  --line: #15100c26;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--ink); }

body {
  background: var(--ink);
  color: var(--cream);
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

::selection { background: var(--gold-light); color: var(--ink); }

/* ============================================================
   ШАПКА САЙТА
   ============================================================ */
.site-header {
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  z-index: 20;
  background: #15100cd6;
  border-bottom: 1px solid #f1c87829;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px clamp(22px, 5vw, 80px);
  display: grid;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
}

.brand, h1, .result-intro h2, .section-heading h2, .reference-heading h2 {
  font-family: Arial Narrow, Roboto Condensed, Impact, sans-serif;
  font-stretch: 75%;
}

.brand {
  color: var(--gold-light);
  letter-spacing: -.04em;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 900;
}

.site-header nav { gap: 34px; display: flex; }
.site-header nav a { color: #f6f0e7c2; font-size: 14px; transition: color .16s; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--gold-light); }

.student-badge {
  color: var(--gold-light);
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid #f1c87875;
  border-radius: 999px;
  justify-self: end;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================================
   ГЕРОЙ
   ============================================================ */
.hero {
  background:
    radial-gradient(circle at 80% 45%, #7e57314a, #0000 34%),
    linear-gradient(125deg, #100c09 0%, #1e150f 58%, #0f0b08 100%);
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr);
  align-items: center;
  gap: clamp(38px, 6vw, 96px);
  min-height: calc(100vh - 76px);
  padding: clamp(70px, 9vw, 132px) clamp(22px, 7vw, 112px);
  display: grid;
  position: relative;
  overflow: hidden;
}

.hero:after {
  content: "";
  background: linear-gradient(90deg, #0000, #f1c87880, #0000);
  height: 1px;
  position: absolute;
  bottom: 0;
  left: 6vw;
  right: 6vw;
}

.hero-copy { z-index: 2; max-width: 720px; position: relative; }

.kicker {
  color: var(--gold-light);
  letter-spacing: .09em;
  text-transform: uppercase;
  align-items: center;
  gap: 12px;
  margin: 0 0 25px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
}

.kicker span { background: var(--gold-light); border-radius: 50%; width: 7px; height: 7px; }

.hero h1 {
  color: var(--gold-light);
  letter-spacing: -.055em;
  text-transform: uppercase;
  margin: 0;
  font-size: clamp(60px, 7.25vw, 116px);
  font-weight: 900;
  line-height: .86;
}

.hero-lead {
  color: #f6f0e7d1;
  max-width: 680px;
  margin: 36px 0 0;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.7;
}

.hero-stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 650px;
  margin-top: 44px;
  display: grid;
}

.hero-stats div { border-right: 1px solid #f6f0e73d; padding: 0 26px; }
.hero-stats div:first-child { padding-left: 0; }
.hero-stats div:last-child { border: 0; }
.hero-stats strong {
  color: var(--gold-light);
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: 48px;
  line-height: 1;
  display: block;
}
.hero-stats span {
  color: #f6f0e79e;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: 9px;
  font-size: 11px;
  font-weight: 800;
  display: block;
}

/* ============================================================
   ОРБИТА И КАРТОЧКА КАЛЬКУЛЯТОРА
   ============================================================ */
.hero-tool { min-height: 620px; position: relative; }

.orbit {
  background:
    radial-gradient(circle, #ffe1a629 0 2px, #0000 3px),
    repeating-radial-gradient(circle, #0000 0 68px, #f1c87847 69px 70px, #0000 71px 112px);
  border: 1px solid #f1c87829;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 540px;
  height: 540px;
  display: flex;
  position: absolute;
  top: -10%;
  right: -15%;
}

.orbit:before, .orbit:after { content: ""; background: #f1c8783d; position: absolute; }
.orbit:before { height: 1px; left: 0; right: 0; }
.orbit:after { width: 1px; top: 0; bottom: 0; }
.orbit span { color: #ffe1a633; font-family: Arial Narrow, Impact, sans-serif; font-size: 128px; font-weight: 900; }

.calculator-card {
  color: var(--ink);
  z-index: 2;
  background: #fffaf1f7;
  border: 1px solid #ffe1a6cc;
  border-radius: 32px;
  max-width: 570px;
  margin-top: 105px;
  padding: clamp(28px, 4vw, 50px);
  position: relative;
  box-shadow: 0 34px 90px #0006;
}

.mode-caption {
  display: grid;
  gap: 4px;
  background: #e5dacb;
  border: 1px solid #d2c2ad;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.mode-caption > span {
  color: var(--ink);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}
.mode-caption small {
  color: #74685e;
  font-size: 11px;
  line-height: 1.4;
}

.form-heading > span,
.section-heading > span {
  color: #8c6b35;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
  display: block;
}

.form-heading h2 {
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 10px 0 32px;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: clamp(32px, 3vw, 45px);
  line-height: 1;
}

/* ============================================================
   ФОРМА: ДАТЫ
   ============================================================ */
.date-grid { grid-template-columns: .8fr .8fr 1.4fr; gap: 12px; display: grid; }

.date-grid label,
.calculation-year { gap: 8px; display: grid; }

.date-grid label span,
.calculation-year span { color: var(--muted); font-size: 12px; font-weight: 700; }

.date-grid input,
.calculation-year input {
  appearance: textfield;
  color: var(--ink);
  background: #fffdf9;
  border: 1px solid #d8cdbc;
  border-radius: 12px;
  outline: none;
  width: 100%;
  min-width: 0;
  padding: 16px 13px;
  font-size: 19px;
  font-weight: 800;
  transition: border-color .14s, box-shadow .14s;
}

.date-grid input:focus,
.calculation-year input:focus {
  border-color: #aa7c2f;
  box-shadow: 0 0 0 4px #f1c8783b;
}

.date-grid input::-webkit-inner-spin-button,
.date-grid input::-webkit-outer-spin-button,
.calculation-year input::-webkit-inner-spin-button,
.calculation-year input::-webkit-outer-spin-button { appearance: none; margin: 0; }

.calculation-year {
  border-top: 1px solid #e4dacb;
  grid-template-columns: 1fr 130px;
  margin-top: 22px;
  padding-top: 22px;
}

.calculation-year span { align-self: center; }

.form-error {
  color: #85201d;
  background: #fff0ee;
  border-left: 3px solid #a42e29;
  margin: 18px 0 0;
  padding: 11px 13px;
  font-size: 13px;
}

.primary-button {
  color: #3c2a16;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffd991, #f2c36b);
  border: 0;
  border-radius: 14px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 26px;
  padding: 20px 22px;
  font-size: 15px;
  font-weight: 900;
  transition: transform .14s, box-shadow .14s;
  display: flex;
  box-shadow: 0 5px #bf934c, 0 12px 24px #754e1429;
}

.primary-button:hover { transform: translateY(-2px); box-shadow: 0 7px #bf934c, 0 16px 28px #754e1438; }
.primary-button:active { transform: translateY(3px); box-shadow: 0 2px #bf934c; }
.primary-button span { font-size: 22px; }

.privacy-note { color: #8b8177; text-align: center; margin: 15px 0 0; font-size: 11px; }

/* ============================================================
   РЕЗУЛЬТАТЫ: ОБОЛОЧКА
   ============================================================ */
.results-wrap {
  background: var(--ink);
  padding: clamp(44px, 7vw, 100px) clamp(12px, 4vw, 64px);
}

.result-shell {
  background: var(--cream);
  color: var(--ink);
  border-radius: clamp(24px, 3vw, 46px);
  max-width: 1500px;
  margin: 0 auto;
  overflow: hidden;
}

.result-intro {
  background: var(--ink-soft);
  color: var(--cream);
  justify-content: space-between;
  align-items: end;
  padding: clamp(36px, 6vw, 80px);
  display: flex;
}

.dark-kicker { color: #8e6f3c; margin-bottom: 18px; }
.dark-kicker span { background: #8e6f3c; }
.result-intro .dark-kicker { color: var(--gold); }
.result-intro .dark-kicker span { background: var(--gold); }

.result-intro h2 {
  color: var(--gold-light);
  letter-spacing: -.055em;
  margin: 0;
  font-size: clamp(46px, 6vw, 94px);
  line-height: .9;
}

.result-meta {
  border-left: 1px solid #f1c87857;
  min-width: 260px;
  padding-left: 30px;
  display: grid;
}

.result-meta span,
.result-meta small {
  color: #f6f0e794;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.result-meta strong {
  color: var(--gold-light);
  margin: 8px 0 13px;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: 44px;
  line-height: 1.1;
}

.result-actions {
  background: #e9dfd1;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px clamp(28px, 6vw, 80px);
  display: flex;
}

.result-actions button {
  color: #493c31;
  background: 0 0;
  border: 1px solid #b8aa97;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
}

.result-actions button:hover,
.result-actions button:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--gold-light);
}

/* ============================================================
   СЕКЦИИ РЕЗУЛЬТАТА
   ============================================================ */
.result-section,
.reading-guide {
  border-top: 1px solid var(--line);
  padding: clamp(42px, 6vw, 84px);
}

.consultation-summary {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 8%, #f1c87838, #0000 25%),
    #fffaf1;
  padding: clamp(42px, 6vw, 84px);
}

.portrait-overview {
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  display: grid;
}

.psychotype-card,
.portrait-clues { border-radius: 22px; }

.psychotype-card {
  background: var(--ink-soft);
  color: var(--cream);
  padding: clamp(28px, 4vw, 48px);
}

.psychotype-card > span,
.portrait-clues span,
.ready-script-heading span,
.reference-consultation-heading span,
.reference-script-grid > div > span {
  color: #a77d38;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  display: block;
}

.psychotype-card > span { color: var(--gold); }

.psychotype-card h3 {
  color: var(--gold-light);
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 13px 0 18px;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: clamp(34px, 4vw, 55px);
  line-height: 1;
}

.psychotype-card > p {
  color: #f6f0e7c7;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.vector-list { flex-wrap: wrap; gap: 8px; margin-top: 28px; display: flex; }

.vector-list span {
  color: var(--gold-light);
  background: #ffe1a61a;
  border: 1px solid #ffe1a64d;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
}

.portrait-clues {
  background: #eee5d8;
  gap: 1px;
  display: grid;
  overflow: hidden;
}

.portrait-clues > div { background: #f8f1e7; padding: 28px; }
.portrait-clues strong { margin-top: 10px; font-size: 17px; line-height: 1.4; display: block; }
.portrait-clues p { color: #74695f; margin: 9px 0 0; font-size: 13px; line-height: 1.65; }

.ready-script {
  background: #f1e6d6;
  border: 1px solid #d8c7ae;
  border-radius: 22px;
  margin-top: 18px;
  padding: clamp(26px, 4vw, 42px);
}

.ready-script-heading,
.reference-consultation-heading {
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  display: flex;
}

.ready-script-heading h3,
.reference-consultation-heading h4 {
  letter-spacing: -.03em;
  margin: 7px 0 0;
  font-size: clamp(24px, 3vw, 36px);
}

.ready-script-heading button,
.reference-consultation-heading button,
.copy-script-button {
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--gold-light);
  text-transform: uppercase;
  border-radius: 999px;
  flex: none;
  padding: 11px 15px;
  font-size: 11px;
  font-weight: 900;
}

.ready-script-heading button:hover,
.reference-consultation-heading button:hover,
.copy-script-button:hover { background: #493527; }

.ready-script blockquote {
  color: #382b22;
  border-left: 3px solid #a87b31;
  margin: 28px 0 0;
  padding-left: 24px;
  font-family: Georgia, Times New Roman, serif;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.82;
}

.ethical-note {
  color: #5b6f62;
  border-left: 3px solid #6c8b78;
  margin: 18px 0 0;
  padding: 9px 14px;
  font-size: 12px;
}

/* ============================================================
   БАЗОВЫЕ ЭНЕРГИИ
   ============================================================ */
.section-heading {
  grid-template-columns: 100px 1fr;
  align-items: start;
  gap: 26px;
  margin-bottom: 36px;
  display: grid;
}

.section-heading h2 {
  letter-spacing: -.05em;
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: .95;
}

.section-heading p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }

.base-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; display: grid; }

.base-grid article {
  background: var(--ink-soft);
  color: var(--cream);
  border-radius: 20px;
  min-height: 280px;
  padding: 28px;
  position: relative;
}

.base-grid article > span {
  color: var(--gold);
  letter-spacing: .13em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 900;
}

.base-grid article > strong {
  color: var(--gold-light);
  margin: 18px 0;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: 100px;
  line-height: .9;
  display: block;
}

.base-grid h3 { margin: 0; font-size: 20px; }
.base-grid p { color: #f6f0e7a1; margin: 6px 0 0; font-size: 13px; }

.formula-note {
  color: #76695d;
  border-left: 3px solid #a78042;
  max-width: 760px;
  margin: 24px 0 0;
  padding: 10px 16px;
  font-size: 13px;
}

/* ============================================================
   КОД СИЛЫ И КАРМА — БАЗОВЫЕ КАРТОЧКИ
   ============================================================ */
.interpretation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; display: grid; }

.interpretation-card {
  background: var(--paper);
  border: 1px solid #d8cdbd;
  border-radius: 20px;
  display: grid;
  overflow: hidden;
}

.interpretation-card.strength { border-top: 5px solid #b18b46; }
.interpretation-card.karma { border-top: 5px solid var(--red); }

.interpretation-head {
  border-bottom: 1px solid #e4dbce;
  justify-content: space-between;
  align-items: start;
  padding: 24px 24px 18px;
  display: flex;
}

.eyebrow { letter-spacing: .08em; text-transform: uppercase; font-size: 13px; font-weight: 900; display: block; }
.formula-label { color: #887a6b; margin-top: 4px; font-size: 11px; display: block; }

.energy-number {
  color: #9f7633;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: 62px;
  font-weight: 900;
  line-height: .8;
}

.karma .energy-number { color: var(--red); }

.interpretation-title-row {
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  padding: 22px 24px;
  display: flex;
}

.interpretation-title-row h3 { margin: 0; font-size: 20px; }
.interpretation-title-row p { color: #756b60; margin: 5px 0 0; font-size: 13px; }

.type-chip {
  color: #66584a;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #ede5da;
  border-radius: 999px;
  flex: none;
  padding: 7px 9px;
  font-size: 9px;
  font-weight: 900;
}

.overlap-note {
  color: #9b3e2b;
  background: #fff0e6;
  margin: 0 24px 18px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 800;
}

.reading-block,
.task-block { border-top: 1px solid #e5dccf; padding: 18px 24px 22px; }

.reading-block > span,
.task-block > span,
.selected-energy-readings span {
  color: #7d6d5e;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
}

.reading-block p,
.task-block p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; }

.strength .reading-block { background: #edf5ed; }
:is(.karma .reading-block, .strength:has(.overlap-note) .reading-block) {
  color: #6f2724;
  background: #fae9e6;
}

.task-block { background: #fff7da; }

.consultation-details { border-top: 1px solid #d9cbbb; }

.consultation-details summary {
  color: var(--gold-light);
  text-transform: uppercase;
  background: #30261e;
  justify-content: space-between;
  align-items: center;
  padding: 17px 24px;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
  display: flex;
}

.consultation-details summary::-webkit-details-marker { display: none; }
.consultation-details summary small { color: #ffe1a69e; letter-spacing: .08em; font-size: 9px; }
.consultation-details[open] summary small { font-size: 0; }
.consultation-details[open] summary small:after { content: "Закрыть ↑"; font-size: 9px; }

.consultation-content { background: #fffdf8; padding: 25px 24px 27px; }

.script-label,
.recognition-questions > span,
.profession-direction > span,
.soft-transition > span {
  color: #8a6936;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 900;
  display: block;
}

.say-this {
  color: #342921;
  margin: 10px 0 0;
  font-family: Georgia, Times New Roman, serif;
  font-size: 15px;
  line-height: 1.75;
}

.recognition-questions,
.profession-direction,
.soft-transition {
  border-top: 1px solid #e4d9ca;
  margin-top: 20px;
  padding-top: 18px;
}

.recognition-questions ul,
.reference-questions ul {
  gap: 9px;
  margin: 12px 0 0;
  padding-left: 20px;
  display: grid;
}

.recognition-questions li,
.reference-questions li { padding-left: 3px; font-size: 13px; line-height: 1.55; }

.profession-direction,
.soft-transition { color: #50463d; font-size: 13px; line-height: 1.65; }
.profession-direction > span,
.soft-transition > span { margin-bottom: 7px; }

.copy-script-button { width: 100%; margin-top: 20px; }

/* ============================================================
   КОД ПУТИ
   ============================================================ */
.path-section { background: #e9f0e8; }
.path-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; display: grid; }

.path-grid article {
  background: #fffdf8;
  border: 1px solid #cbd8ca;
  border-radius: 18px;
  flex-direction: column;
  min-height: 270px;
  padding: 22px;
  display: flex;
}

.path-grid article > span { color: var(--green); font-size: 13px; font-weight: 900; }
.path-grid article small { color: #7c887c; margin-top: 3px; font-size: 11px; }
.path-grid article strong {
  color: var(--green);
  margin: auto 0 15px;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: 88px;
  line-height: 1;
}
.path-grid article p { color: #526257; margin: 0; font-size: 13px; }

/* ============================================================
   ПЕРИОДЫ ЖИЗНИ
   ============================================================ */
.period-callout {
  background: #e6ddd2;
  border-radius: 16px;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 18px 22px;
  display: grid;
}

.period-callout span { text-transform: uppercase; font-size: 12px; font-weight: 900; }
.period-callout strong { color: #8d6a30; font-family: Arial Narrow, Impact, sans-serif; font-size: 34px; }
.period-callout p { color: #74695f; justify-self: end; max-width: 520px; margin: 0; font-size: 12px; }

.period-table-wrap { overflow-x: auto; }

table { border-collapse: collapse; width: 100%; min-width: 850px; }

th {
  color: #fff;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  background: #2e2925;
  padding: 15px;
  font-size: 11px;
}

td { border-bottom: 1px solid #d5cbbf; padding: 17px 15px; font-size: 13px; }

td strong {
  color: var(--green);
  vertical-align: middle;
  margin-right: 12px;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: 28px;
  display: inline-block;
}

td span { color: #786e65; font-size: 11px; }

tr.active-period td { color: #b44a1f; background: #fff0e1; font-weight: 800; }

/* ============================================================
   КАРМА (базовая секция)
   ============================================================ */
.karma-section { background: #f5ebe8; }
.karma-note { border-color: var(--red); color: #78423e; }

/* ============================================================
   ГИД ПО ЧТЕНИЮ
   ============================================================ */
.reading-guide { background: #e9dfd1; }
.guide-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; display: grid; }
.guide-grid p { background: #f7f0e6; min-height: 130px; margin: 0; padding: 28px; }
.guide-grid strong {
  color: #9c7739;
  margin-bottom: 10px;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: 32px;
  display: block;
}

/* ============================================================
   СПРАВОЧНИК 22 ЭНЕРГИЙ
   ============================================================ */
.energy-reference {
  background:
    radial-gradient(circle at 10% 100%, #6e4a2a57, #0000 30%),
    #15100c;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(70px, 9vw, 132px) clamp(22px, 7vw, 110px);
}

.reference-heading {
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  display: flex;
}

.reference-heading h2 {
  color: var(--gold-light);
  letter-spacing: -.06em;
  margin: 0;
  font-size: clamp(42px, 9vw, 132px);
  line-height: .8;
}

.reference-heading > p {
  color: #f6f0e7ab;
  max-width: 410px;
  margin: 0;
  font-size: 15px;
}

.energy-selector { grid-template-columns: repeat(11, 1fr); gap: 8px; margin: 52px 0 24px; display: grid; }

.energy-selector button {
  aspect-ratio: 1;
  color: #ffe1a6b8;
  background: 0 0;
  border: 1px solid #f1c87847;
  border-radius: 10px;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: 22px;
  font-weight: 900;
  transition: background .14s, color .14s, transform .14s;
}

.energy-selector button:hover,
.energy-selector button:focus-visible { border-color: var(--gold-light); color: #fff; transform: translateY(-2px); }

.energy-selector button.selected {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--ink);
}

.selected-energy {
  background: var(--paper);
  color: var(--ink);
  border-radius: 26px;
  overflow: hidden;
}

.selected-energy-title { align-items: center; gap: 28px; padding: clamp(26px, 4vw, 50px); display: flex; }

.selected-energy-title > span {
  color: #a27732;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: clamp(82px, 10vw, 150px);
  font-weight: 900;
  line-height: .8;
}

.selected-energy-title p {
  color: #9a7841;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 900;
}

.selected-energy-title h3 { margin: 0; font-size: clamp(30px, 4vw, 55px); line-height: 1; }
.selected-energy-title strong { color: #6f645a; margin-top: 10px; font-size: 15px; display: block; }

.selected-energy-readings { grid-template-columns: repeat(3, 1fr); display: grid; }
.selected-energy-readings > div { min-height: 220px; padding: clamp(25px, 3vw, 38px); }
.selected-energy-readings p { margin: 12px 0 0; font-size: 14px; line-height: 1.7; }

.plus-reading { background: #e9f4ec; }
.minus-reading { color: #702b27; background: #f8e7e4; }
.energy-task { background: #fff4d6; }

.reference-consultation { border-top: 1px solid #d8ccbd; padding: clamp(28px, 4vw, 50px); }

.reference-script-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 28px; display: grid; }

.reference-script-grid > div {
  background: #f5eee4;
  border: 1px solid #ded2c3;
  padding: clamp(24px, 3vw, 34px);
}

.reference-script-grid > div:first-child { border-radius: 18px 0 0; }
.reference-script-grid > div:nth-child(2) { background: #f6e9e6; border-radius: 0 18px 0 0; }
.reference-script-grid p { margin: 12px 0 0; font-family: Georgia, Times New Roman, serif; font-size: 15px; line-height: 1.75; }
.reference-script-grid .reference-questions { background: #fff8e2; border-radius: 0 0 18px 18px; grid-column: 1/-1; }
.reference-questions ul { grid-template-columns: repeat(2, 1fr); padding-left: 22px; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
footer {
  color: #f6f0e78f;
  border-top: 1px solid #f1c87826;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: center;
  gap: 28px;
  padding: 36px clamp(22px, 7vw, 110px);
  display: grid;
}

footer p { text-align: center; margin: 0; font-size: 11px; }
footer > a:last-child { color: var(--gold-light); text-transform: uppercase; justify-self: end; font-size: 12px; font-weight: 800; }

button:focus-visible,
a:focus-visible,
input:focus-visible { outline-offset: 3px; outline: 3px solid #ffe1a6cc; }

/* ============================================================
   АДАПТИВ: <=1100px
   ============================================================ */
@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 820px; }
  .hero-tool { min-height: 560px; }
  .calculator-card { margin: 0 auto; }
  .orbit { top: -16%; left: 50%; right: auto; transform: translate(-50%); }
  .energy-selector { grid-template-columns: repeat(6, 1fr); }
}

/* ============================================================
   АДАПТИВ: <=800px
   ============================================================ */
@media (max-width: 800px) {
  .site-header { padding: 14px 18px; }
  .student-badge { padding: 6px 10px; font-size: 9px; }
  .hero { padding-top: 58px; }
  .hero h1 { font-size: clamp(48px, 15vw, 76px); }
  .hero-stats strong { font-size: 38px; }
  .hero-stats span { font-size: 9px; }
  .hero-tool { min-height: auto; }
  .orbit { width: 390px; height: 390px; }
  .calculator-card { margin-top: 60px; }

  .result-intro,
  .reference-heading { flex-direction: column; align-items: start; }
  .result-intro { gap: 32px; }

  .result-meta {
    border-top: 1px solid #f1c87857;
    border-left: 0;
    width: 100%;
    min-width: 0;
    padding: 22px 0 0;
  }

  .result-actions { flex-wrap: wrap; justify-content: stretch; }
  .result-actions button { flex: 1; }

  .section-heading { grid-template-columns: 1fr; gap: 10px; }

  .base-grid,
  .interpretation-grid,
  .guide-grid,
  .portrait-overview,
  .reference-script-grid {
    grid-template-columns: 1fr;
  }

  .reference-script-grid > div:first-child,
  .reference-script-grid > div:nth-child(2),
  .reference-script-grid .reference-questions {
    border-radius: 0;
    grid-column: auto;
  }
  .reference-script-grid > div:first-child { border-radius: 18px 18px 0 0; }
  .reference-script-grid .reference-questions { border-radius: 0 0 18px 18px; }

  .reference-questions ul { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: repeat(2, 1fr); }

  .period-callout { grid-template-columns: 1fr; align-items: start; }
  .period-callout p { justify-self: start; }

  .selected-energy-readings { grid-template-columns: 1fr; }
  .selected-energy-readings > div { min-height: 0; }

  footer { text-align: left; grid-template-columns: 1fr; }
  footer p { text-align: left; }
  footer > a:last-child { justify-self: start; }
}

/* ============================================================
   АДАПТИВ: <=520px
   ============================================================ */
@media (max-width: 520px) {
  .brand { font-size: 19px; }
  .hero { padding-left: 17px; padding-right: 17px; }
  .hero-lead { font-size: 16px; }
  .hero-stats div { padding: 0 10px; }

  .calculator-card { border-radius: 22px; padding: 24px 18px; }

  .date-grid { grid-template-columns: repeat(2, 1fr); }
  .date-grid label:last-child { grid-column: 1/-1; }
  .calculation-year { grid-template-columns: 1fr; }

  .results-wrap { padding-left: 8px; padding-right: 8px; }
  .result-actions { flex-direction: column; }

  .result-section,
  .reading-guide,
  .consultation-summary { padding-left: 20px; padding-right: 20px; }

  .ready-script-heading,
  .reference-consultation-heading { flex-direction: column; align-items: stretch; }
  .ready-script-heading button,
  .reference-consultation-heading button { width: 100%; }

  .ready-script blockquote { padding-left: 16px; }

  .path-grid { grid-template-columns: 1fr; }
  .path-grid article { min-height: 220px; }
  .energy-selector { grid-template-columns: repeat(5, 1fr); }
  .selected-energy-title { align-items: start; }
  .selected-energy-title > span { font-size: 76px; }
}

/* ============================================================
   ПЕЧАТЬ
   ============================================================ */
@media print {
  @page { margin: 12mm; }
  body { color: #111; background: #fff; }

  .site-header,
  .hero,
  .result-actions,
  .energy-reference,
  footer,
  .formula-note { display: none !important; }

  .results-wrap { background: #fff; padding: 0; }
  .result-shell { border-radius: 0; max-width: none; }

  .result-intro {
    color: #111;
    background: #fff;
    border-bottom: 2px solid #111;
    padding: 0 0 18px;
  }

  .result-intro h2,
  .result-meta strong { color: #111; }

  .result-section,
  .reading-guide,
  .consultation-summary { break-inside: avoid; padding: 24px 0; }

  .ready-script-heading button,
  .copy-script-button,
  .reference-consultation-heading button { display: none !important; }

  .consultation-details summary {
    color: #111;
    background: #fff;
    border-bottom: 1px solid #999;
  }

  .consultation-content { display: block !important; }

  .interpretation-card,
  .base-grid article,
  .path-grid article { break-inside: avoid; box-shadow: none; }
}

/* ============================================================
   @property-декларации Tailwind
   ============================================================ */
@property --tw-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
@property --tw-shadow-color { syntax: "*"; inherits: false; initial-value: initial; }
@property --tw-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@property --tw-inset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
@property --tw-inset-shadow-color { syntax: "*"; inherits: false; initial-value: initial; }
@property --tw-inset-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@property --tw-ring-color { syntax: "*"; inherits: false; initial-value: initial; }
@property --tw-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
@property --tw-inset-ring-color { syntax: "*"; inherits: false; initial-value: initial; }
@property --tw-inset-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
@property --tw-ring-inset { syntax: "*"; inherits: false; initial-value: initial; }
@property --tw-ring-offset-width { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --tw-ring-offset-color { syntax: "*"; inherits: false; initial-value: #fff; }
@property --tw-ring-offset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }

/* ============================================================
   ДОПОЛНЕНИЯ ПРОЕКТА
   ============================================================ */

/* --- Табы результатов --- */
.result-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px clamp(24px, 6vw, 80px);
  background: #e9dfd1;
  border-bottom: 1px solid var(--line);
}

.result-tabs button {
  background: transparent;
  border: 1px solid #b8aa97;
  color: #493c31;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: all .15s;
  cursor: pointer;
}

.result-tabs button:hover { background: #fffdf7; }
.result-tabs button.active { background: var(--ink-soft); color: var(--gold-light); border-color: var(--ink-soft); }

.result-panel { display: none; }
.result-panel.active { display: block; }

/* --- Сетка полей прогноза --- */
.calc-date-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 12px;
  border-top: 1px solid #e4dacb;
  margin-top: 22px;
  padding-top: 22px;
}

.calc-date-grid .calculation-year {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (max-width: 520px) {
  .calc-date-grid { grid-template-columns: 1fr; }
}

/* --- Свёрнутый блок доп. полей --- */
.extra-fields {
  margin-top: 22px;
  border-top: 1px solid #e4dacb;
  padding-top: 22px;
}

.extra-fields summary {
  cursor: pointer;
  font-weight: 800;
  color: #8c6b35;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .14em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.extra-fields summary::-webkit-details-marker { display: none; }
.extra-fields summary span { font-size: 14px; transition: transform .2s; }
.extra-fields[open] summary span { transform: rotate(180deg); }

.extra-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.extra-grid label { display: grid; gap: 6px; }
.extra-grid span { color: var(--muted); font-size: 11px; font-weight: 700; }

.extra-grid input,
.event-select select {
  appearance: none;
  color: var(--ink);
  background: #fffdf9;
  border: 1px solid #d8cdbc;
  border-radius: 12px;
  outline: none;
  padding: 14px 13px;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  box-sizing: border-box;
}

.extra-grid input:focus,
.event-select select:focus {
  border-color: #aa7c2f;
  box-shadow: 0 0 0 4px #f1c8783b;
}

.event-select { display: grid; gap: 6px; margin-top: 14px; }
.event-select span { color: var(--muted); font-size: 11px; font-weight: 700; }

.strict-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
  font-size: 12px;
  color: #5c5148;
  line-height: 1.5;
}

.strict-toggle input { margin-top: 2px; accent-color: #aa7c2f; }
.extra-hint { color: #8b8177; font-size: 11px; margin: 12px 0 0; }

/* --- Заглушка для пустого ФИО --- */
.fio-empty {
  background: var(--paper);
  border: 1px dashed #d8cdbd;
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
  margin-top: 22px;
}

.fio-empty-icon { font-size: 52px; margin-bottom: 10px; }
.fio-empty h3 { margin: 0 0 10px; font-size: 22px; }

.fio-empty p {
  color: #5f554c;
  margin: 0 auto;
  max-width: 520px;
  font-family: Georgia, Times New Roman, serif;
  font-size: 15px;
  line-height: 1.7;
}

.fio-empty-link {
  display: inline-block;
  margin-top: 20px;
  color: #8c6b35;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .1em;
}

.fio-empty-link:hover { color: var(--ink); }

/* --- Секция Совместимости --- */
.compatibility-section {
  background:
    radial-gradient(circle at 12% 0%, #3a24173d, #0000 30%),
    #100c09;
  padding: clamp(60px, 8vw, 110px) clamp(20px, 6vw, 110px);
}

.compat-inner { max-width: 1200px; margin: 0 auto; }
.compat-inner .reference-heading h2 { color: var(--gold-light); }
.compat-inner .reference-heading > p { color: #f6f0e7ab; }
.compat-inner .kicker { color: var(--gold-light); }
.compat-inner .kicker span { background: var(--gold-light); }

.compat-form {
  background: var(--paper);
  color: var(--ink);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 46px);
  margin-top: 36px;
}

.compat-form fieldset { border: 0; margin: 0 0 22px; padding: 0; }
.compat-form legend {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #8c6b35;
  font-size: 11px;
  margin-bottom: 12px;
}

.compat-result {
  margin-top: 36px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 46px);
}

.compat-result .section-heading h2 { color: var(--ink); }

.compat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.compat-card {
  background: var(--ink-soft);
  color: var(--cream);
  border-radius: 18px;
  padding: 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.compat-card > span {
  color: var(--gold);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  display: block;
}

.compat-card > strong {
  color: var(--gold-light);
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: 64px;
  line-height: 1;
  display: block;
  margin: 10px 0 6px;
}

.compat-card h3 { margin: 0; font-size: 16px; color: var(--gold-light); }
.compat-card p { color: #f6f0e7b8; margin: 6px 0 0; font-size: 12px; line-height: 1.5; }

.compat-card .compat-theme {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
  margin: 8px 0 4px;
}
.compat-card .compat-plus,
.compat-card .compat-minus {
  color: #f6f0e7d1;
  font-size: 12px;
  line-height: 1.55;
  margin: 0;
}
.compat-card .compat-plus b { color: #8fd4a3; }
.compat-card .compat-minus b { color: #e9a29b; }
.compat-card .compat-hint {
  color: #f6f0e7a1;
  font-size: 11px;
  font-style: italic;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid #f1c87829;
}

.compat-flags {
  background: #fff4d6;
  border: 1px solid #d8c7ae;
  border-radius: 14px;
  padding: 16px 20px;
  margin: 0 0 22px;
}
.compat-flags p { color: #5e4d32; font-size: 13px; margin: 6px 0; line-height: 1.55; }

.compat-ks2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0; }
.compat-ks2 > div { background: #f5eee4; border: 1px solid #ded2c3; border-radius: 14px; padding: 18px 20px; }
.compat-ks2 > div > span {
  color: #8c6b35;
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 900;
  display: block;
}
.compat-ks2 > div > strong {
  color: #9f7633;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: 44px;
  line-height: 1;
  display: block;
  margin: 6px 0 4px;
}
.compat-ks2 > div > p { color: #5f554c; font-size: 13px; margin: 0; }

.compat-note {
  color: #5b6f62;
  border-left: 3px solid #6c8b78;
  padding: 10px 14px;
  font-size: 12px;
  margin: 18px 0 0;
}

/* --- Общие карточки-модули --- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.module-card {
  background: var(--paper);
  border: 1px solid #d8cdbd;
  border-radius: 16px;
  padding: 22px;
}

.module-card .label {
  color: #887a6b;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
}

.module-card .num {
  color: #9f7633;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin: 8px 0 6px;
  display: block;
}

.module-card h4 { margin: 0; font-size: 16px; }
.module-card p { margin: 6px 0 0; font-size: 12px; color: #756b60; line-height: 1.5; }

.module-card.karma { border-top: 4px solid var(--red); }
.module-card.karma .num { color: var(--red); }
.module-card.money { border-top: 4px solid var(--green); }
.module-card.money .num { color: var(--green); }
.module-card.block { background: #f8e7e4; border-color: #e1c9c3; }
.module-card.block .num { color: var(--red); }

/* --- Здоровье --- */
.health-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.health-item {
  background: #edf5ed;
  border-left: 3px solid var(--green);
  border-radius: 12px;
  padding: 20px;
}

.health-item.karma { background: #f8e7e4; border-left-color: var(--red); }
.health-item h4 { margin: 0 0 8px; font-size: 15px; }
.health-item p { margin: 0; font-size: 13px; color: #4d554f; line-height: 1.6; }
.health-item .topic {
  color: #8c6b35;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
  margin-bottom: 6px;
  display: block;
}

/* --- Календарь прогностики --- */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 20px; }

.cal-head {
  font-weight: 900;
  text-align: center;
  color: #8c6b35;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .08em;
  padding: 6px 0;
}

.cal-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: #fffdf8;
  border: 1px solid #d8cdbd;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
}

.cal-cell .d { font-weight: 900; font-size: 13px; }
.cal-cell .e { color: #6f645a; font-size: 10px; }
.cal-cell.good { background: #e9f4ec; border-color: #a9cdb6; }
.cal-cell.bad { background: #f8e7e4; border-color: #e1a9a3; }
.cal-cell.cond { background: #fff4d6; border-color: #dcc98a; }

.cal-legend {
  background: #f1e6d6;
  border: 1px solid #d8c7ae;
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cal-legend-items { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.cal-legend-items > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #493c31;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cal-legend .dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.cal-legend .dot.good { background: #e9f4ec; border: 1px solid #a9cdb6; }
.cal-legend .dot.cond { background: #fff4d6; border: 1px solid #dcc98a; }
.cal-legend .dot.bad { background: #f8e7e4; border: 1px solid #e1a9a3; }

.cal-legend-note {
  color: #6b5b47;
  font-size: 11px;
  margin: 0;
  line-height: 1.5;
  font-family: Georgia, serif;
  max-width: 520px;
}

@media (max-width: 900px) { .compat-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 800px) {
  .extra-grid { grid-template-columns: 1fr; }
  .compat-form fieldset { margin-bottom: 16px; }
  .cal-grid { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .cal-cell { padding: 5px; font-size: 9px; }
}

@media (max-width: 640px) {
  .compat-ks2 { grid-template-columns: 1fr; }
  .cal-legend { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) { .compat-grid { grid-template-columns: 1fr; } }

/* --- Прогностика: карточки --- */
.forecast-card { padding: 22px; display: flex; flex-direction: column; }

.forecast-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 4px;
}

.forecast-head .num {
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: 52px;
  font-weight: 900;
  color: #9f7633;
  line-height: .9;
  flex-shrink: 0;
}

.module-card.karma .forecast-head .num { color: var(--red); }
.forecast-head h4 { margin: 6px 0 0; font-size: 17px; line-height: 1.25; }

.energy-keyword { color: #8b6f43; font-size: 12px; font-style: italic; margin: 4px 0 0; }
.energy-reading { border-top: 1px solid #e4dacb; padding-top: 14px; margin-top: 16px; }

.reading-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.reading-tag.plus { background: #e9f4ec; color: #21644a; }
.reading-tag.minus { background: #fae9e6; color: #8f2724; }

.energy-reading p { font-size: 13px; color: #5f554c; margin: 0; line-height: 1.6; font-family: Georgia, Times New Roman, serif; }

.energy-task { border-top: 1px solid #e4dacb; padding-top: 14px; margin-top: 14px; font-size: 12px; color: #42372e; line-height: 1.55; }
.energy-task span {
  display: block;
  color: #8d6b35;
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 5px;
}

.energy-combos { border-top: 1px solid #e4dacb; padding-top: 14px; margin-top: 14px; }
.combos-label {
  display: block;
  color: #8d6b35;
  font-size: 9px;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 8px;
}
.energy-combos ul { display: grid; gap: 5px; padding: 0; margin: 0; list-style: none; }
.energy-combos li {
  color: #5f554c;
  font-size: 12px;
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.energy-combos li:before {
  content: "•";
  color: #a57c3b;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
}
.module-card.karma .energy-combos li:before { color: var(--red); }

/* ============================================================
   ТАБЛИЦА КОДОВ
   ============================================================ */
.code-table-wrap {
  overflow: hidden;
  margin: 0 0 12px;
  background: #fffdf8;
  border: 1px solid #d8cdbd;
  border-radius: 18px;
}
table.code-table { min-width: 0; width: 100%; table-layout: fixed; }
.code-table th[scope="row"] {
  width: 28%;
  background: #241A13;
  color: #ffe1a6;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  padding: 16px 18px;
  white-space: normal;
}
.code-table th small {
  display: block;
  color: #f6f0e79e;
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.code-table td {
  width: 18%;
  text-align: center;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: 34px;
  font-weight: 900;
  color: #9f7633;
  padding: 14px 6px;
  border-left: 1px solid #e4dacb;
  border-bottom: 0;
  word-break: break-word;
}
@media (max-width: 520px) {
  .code-table td { font-size: 22px; padding: 10px 4px; }
  .code-table td.age { font-size: 11px; line-height: 1.3; }
  .code-table th[scope="row"] { font-size: 12px; padding: 12px 8px; }
  .code-table th small { font-size: 8px; }
}
.code-table td.age { font-family: Inter, Arial, sans-serif; font-size: 15px; font-weight: 800; color: #42372e; }
.code-table td.match { color: #c0261f; background: #fdeceb; }
.code-table td.now { box-shadow: inset 0 -4px #b44a1f; }
.code-table tr+tr th,
.code-table tr+tr td { border-top: 1px solid #e4dacb; }
.code-legend { color: #6b5b47; font-size: 12px; line-height: 1.6; margin: 0 0 26px; }
.code-legend b { color: #c0261f; }

/* ============================================================
   ГЛУБОКИЙ РАЗБОР ЭНЕРГИЙ (Строка 01 и Строка 04)
   ============================================================ */
.deep-section .deep-card,
.deep-card {
  background: var(--paper);
  border: 1px solid #d8cdbd;
  border-radius: 20px;
  margin-bottom: 18px;
  overflow: hidden;
  border-top: 5px solid #b18b46;
}

.deep-card.is-karma { border-top-color: var(--red); }

.deep-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid #e4dbce;
}

.deep-head > strong {
  color: #9f7633;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: 64px;
  line-height: .9;
}

.deep-card.is-karma .deep-head > strong { color: var(--red); }
.deep-head h3 { margin: 0; font-size: 22px; }

.deep-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.deep-tags span {
  background: #ede5da;
  color: #66584a;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.deep-intro {
  margin: 0;
  padding: 18px 26px 0;
  color: #42372e;
  font-family: Georgia, Times New Roman, serif;
  font-size: 14px;
  line-height: 1.7;
}

.deep-overlap { margin: 16px 26px 0; }

.deep-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  margin-top: 18px;
  background: #e5dccf;
}

.deep-col { padding: 22px 26px; }
.deep-col.plus { background: #edf5ed; }
.deep-col.minus { background: #fae9e6; }

.deep-col > span,
.deep-spheres > div > span,
.deep-task > span,
.deep-karma-problems > span,
.deep-karma-combos > span,
.deep-karma-practice > span {
  display: block;
  color: #7d6d5e;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.deep-col p { margin: 8px 0 0; font-size: 13px; line-height: 1.65; }

.deep-list { display: grid; gap: 11px; margin: 12px 0 0; padding: 0; list-style: none; }
.deep-list li { font-size: 13px; line-height: 1.65; color: #3a3029; }
.deep-list b { color: #1f1712; }

.deep-spheres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  padding: 20px 26px 0;
   margin-bottom: 25px;
}

.deep-spheres > div { background: #f5eee4; border-radius: 14px; padding: 16px; }
.deep-spheres p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; color: #4d443b; }
.deep-spheres .sp-minus { color: #6f2724; }

/* Специфичные блоки кармы */
.deep-karma-problems,
.deep-karma-combos,
.deep-karma-practice {
  margin: 0;
  padding: 20px 26px;
  border-top: 1px solid #e5dccf;
}

.deep-karma-problems { background: #fae9e6; }
.deep-karma-problems > span { color: #9b3e2b; }
.deep-karma-problems p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #5f4a45;
}

.deep-karma-combos { background: #fff7e8; }
.deep-karma-combos > span { color: #8d6b35; }
.deep-karma-combos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.deep-karma-combos li {
  font-size: 13px;
  line-height: 1.55;
  color: #4d443b;
  padding-left: 16px;
  position: relative;
}
.deep-karma-combos li:before {
  content: "•";
  color: #a57c3b;
  font-weight: 900;
  position: absolute;
  left: 0;
}

.deep-karma-practice {
  background: #fff4d6;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
.deep-karma-practice > span { color: #7a5b2b; }
.deep-karma-practice p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #4d3e28;
}

.karma-deep .deep-card { border-top-color: var(--red); }

@media (max-width: 520px) {
  .deep-head, .deep-col, .deep-intro, .deep-spheres, .deep-task,
  .deep-karma-problems, .deep-karma-combos, .deep-karma-practice {
    padding-left: 18px;
    padding-right: 18px;
  }
  .deep-overlap { margin-left: 18px; margin-right: 18px; }
  .deep-cols { grid-template-columns: 1fr; }
}

@media print {
  .deep-card { break-inside: avoid; }
  .code-table-wrap { break-inside: avoid; }
}

/* ============================================================
   ФОРМУЛЫ
   ============================================================ */
.formulas-section { background: #f7f2e9; }

.formula-intro {
  max-width: 900px;
  margin: 0 0 24px;
  padding: 14px 18px;
  background: #fffdf8;
  border-left: 3px solid #8c6b35;
  color: #42372e;
  font-size: 14px;
  line-height: 1.7;
  font-family: Georgia, serif;
}

.formula-list { display: grid; gap: 16px; }

.formula-card {
  background: #fffdf8;
  border: 1px solid #d8cdbd;
  border-radius: 18px;
  padding: 22px 26px;
  border-left: 5px solid var(--red);
}

.formula-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.formula-head h3 { margin: 0; font-size: 20px; line-height: 1.2; }

.formula-tag {
  background: #fae9e6;
  color: var(--red);
  border: 1px solid #e1a9a3;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  flex: none;
}

.formula-desc { margin: 0 0 10px; font-size: 14px; color: #42372e; line-height: 1.65; font-weight: 600; }
.formula-details {
  margin: 0 0 12px;
  font-size: 13px;
  color: #5f554c;
  line-height: 1.7;
  font-family: Georgia, serif;
}
.formula-risk {
  margin: 0;
  padding: 12px 16px;
  background: #fff4d6;
  border-radius: 12px;
  color: #5e4d32;
  font-size: 13px;
  line-height: 1.65;
}
.formula-risk span {
  display: block;
  color: #8d6b35;
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 5px;
}

@media (max-width: 520px) {
  .formula-card { padding: 18px 18px; }
  .formula-head { flex-direction: column; gap: 8px; }
}

/* Утилита: пустой блок прогноза */
.forecast-empty {
  background: var(--paper);
  border: 1px dashed #d8cdbd;
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
  margin-top: 22px;
}
.forecast-empty h3 { margin: 0 0 10px; font-size: 22px; }
.forecast-empty p { color: #5f554c; max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ============================================================
   ФОРМУЛЫ: выделение усиленных годом
   ============================================================ */
.formula-card.formula-boosted {
  background: #fff8ed;
  border-left-color: #d97706;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.14);
}

.formula-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: none;
}

.formula-tag {
  display: inline-flex;
  align-items: center;
  background: #fae9e6;
  color: var(--red);
  border: 1px solid #e1a9a3;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.formula-tag-boost {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
  animation: formulaPulse 2.4s ease-in-out infinite;
}

@keyframes formulaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(217, 119, 6, 0); }
}

.formula-year-warning {
  background: #fef3c7;
  border-left: 3px solid #d97706;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 4px 0 14px;
}

.formula-year-warning > span {
  display: block;
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.formula-year-warning p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5e4d32;
}

.formula-year-warning p + p {
  margin-top: 8px;
}

.formula-year-warning b {
  color: #92400e;
}

@media (max-width: 520px) {
  .formula-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .formula-tags {
    flex-direction: row;
  }
}

/* ============================================================
   ПРОФЕССИИ (Модуль 10)
   ============================================================ */
.professions-section {
  background: #f7f2e9;
}

.prof-subtitle {
  margin: 34px 0 18px;
  color: #8c6b35;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.03em;
  text-transform: uppercase;
  font-weight: 900;
}
.prof-subtitle:first-of-type { margin-top: 0; }

.prof-list {
  display: grid;
  gap: 14px;
}

.prof-card {
  background: #fffdf8;
  border: 1px solid #d8cdbd;
  border-left: 5px solid #b18b46;
  border-radius: 16px;
  padding: 22px 26px;
}

.prof-card.is-karma {
  background: #fdf6f4;
  border-left-color: var(--red);
}

.prof-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.prof-num {
  color: #9f7633;
  font-family: Arial Narrow, Impact, sans-serif;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  flex: none;
}
.prof-card.is-karma .prof-num { color: var(--red); }

.prof-head h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.prof-sphere {
  display: block;
  color: #7a6d5c;
  font-size: 12px;
  margin-top: 3px;
  font-style: italic;
}

.prof-base {
  margin: 0 0 12px;
  color: #4a3f36;
  font-size: 14px;
  line-height: 1.55;
  padding: 10px 14px;
  background: #f1e6d6;
  border-radius: 10px;
}

.prof-card.is-karma .prof-base {
  background: #fae5e1;
}

.prof-base b {
  color: #8c6b35;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .08em;
  display: block;
  margin-bottom: 4px;
}

.prof-card.is-karma .prof-base b { color: var(--red); }

.prof-combos > span {
  display: block;
  color: #5f5147;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.prof-combos ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.prof-combos li {
  font-size: 13px;
  line-height: 1.55;
  color: #4d443b;
  padding: 8px 12px;
  background: #f8f1e7;
  border-radius: 8px;
  border-left: 3px solid #d4c4a8;
}

.prof-card.is-karma .prof-combos li {
  background: #faece8;
  border-left-color: #e1a9a3;
}

.prof-combos li b {
  color: #92400e;
  font-weight: 900;
  margin-right: 4px;
}
.prof-card.is-karma .prof-combos li b { color: var(--red); }

.prof-empty {
  color: #8b8177;
  font-size: 12px;
  font-style: italic;
  padding: 6px 0;
}

/* Формулы в Прогностике */
.formula-year-tag {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-left: 6px;
}

/* ============================================================
   ПРОФЕССИИ — дополнения
   ============================================================ */

/* Аккордеоны правил */
.prof-rules {
  background: #fffdf8;
  border: 1px solid #d8cdbd;
  border-radius: 14px;
  margin: 16px 0;
  overflow: hidden;
}

.prof-rules summary {
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  background: #f1e6d6;
  border-bottom: 1px solid transparent;
}

.prof-rules[open] summary { border-bottom-color: #d8cdbd; }
.prof-rules summary::-webkit-details-marker { display: none; }

.prof-rules summary > span {
  color: #42372e;
  font-weight: 800;
  font-size: 14px;
}

.prof-rules summary > small {
  color: #8c6b35;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.prof-rules-content {
  padding: 18px 22px 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #4a3f36;
  font-family: Georgia, Times New Roman, serif;
}

.prof-rules-content p + p { margin-top: 12px; }

/* Сферы внутри карточки КС */
.prof-sphere-group {
  margin-top: 14px;
  padding: 14px 16px;
  background: #f8f1e7;
  border-left: 3px solid #c9b48f;
  border-radius: 10px;
}

.prof-sphere-group h5 {
  margin: 0 0 8px;
  color: #7a5b2b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.prof-sphere-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: #4a3f36;
}

.prof-sphere-group li b {
  color: #92400e;
  margin-right: 4px;
}

/* Карточка таланта (карма) */
.prof-karma-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #4d443b;
}

.prof-karma-list li {
  padding: 6px 10px;
  background: #faece8;
  border-left: 3px solid #e1a9a3;
  border-radius: 6px;
}

.prof-karma-list li b {
  color: var(--red);
  margin-right: 4px;
}

/* Мобильная адаптация */
@media (max-width: 520px) {
  .prof-rules summary { padding: 12px 14px; }
  .prof-rules summary > span { font-size: 12.5px; }
  .prof-rules-content { padding: 14px 14px 16px; }
  .prof-sphere-group { padding: 12px 12px; }
  .prof-sphere-group ul,
  .prof-karma-list { font-size: 12px; }
}

/* ============================================================
   ПРОФЕССИИ — расширенные блоки
   ============================================================ */
.prof-intro {
  background: #f1e6d6;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.prof-intro > span {
  display: block;
  color: #7a5b2b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.prof-intro > p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #4a3f36;
  font-family: Georgia, Times, serif;
}

.prof-talents {
  margin-bottom: 14px;
}
.prof-talents > span {
  display: block;
  color: #7a5b2b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.prof-talents ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
  line-height: 1.55;
}
.prof-talents li {
  padding-left: 16px;
  position: relative;
  color: #3a3029;
}
.prof-talents li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #9f7633;
  font-weight: 900;
}

.prof-not-suitable {
  margin-top: 14px;
  padding: 14px 16px;
  background: #fdf6f4;
  border-left: 3px solid #e1a9a3;
  border-radius: 10px;
}
.prof-not-suitable > span {
  display: block;
  color: #9b3e2b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.prof-not-suitable ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #5f4a45;
}
.prof-not-suitable li {
  padding-left: 14px;
  position: relative;
}
.prof-not-suitable li:before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 900;
  font-size: 14px;
}

.prof-blocks {
  margin-top: 14px;
  padding: 12px 16px;
  background: #fff4d6;
  border-radius: 10px;
}
.prof-blocks > span {
  display: block;
  color: #8d6b35;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.prof-blocks > p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #4d3e28;
}

.formula-card.formula-boosted {
  background: #fff8ed;
  border-left-color: #d97706;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.14);
}

.formula-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: none;
}

.formula-tag-boost {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
  animation: formulaPulse 2.4s ease-in-out infinite;
}

@keyframes formulaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.35); }
  50% { box-shadow: 0 0 0 4px rgba(217, 119, 6, 0); }
}

.formula-year-warning {
  background: #fef3c7;
  border-left: 3px solid #d97706;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 4px 0 14px;
}

.formula-year-warning > span {
  display: block;
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.formula-year-warning p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: #5e4d32;
}

.formula-year-warning p + p { margin-top: 8px; }
.formula-year-warning b { color: #92400e; }

.formula-year-neutral {
  background: #f1f5f3;
  border-left: 3px solid #9ca3af;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 4px 0 14px;
}

.formula-year-neutral > span {
  display: block;
  color: #4b5563;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.formula-year-neutral p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #4b5563;
}