/* ============================================================
   ГРАДУСНИК РЕСУРСА — геймификация
   ============================================================ */

/* Баннер на главной */
.gr-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(22,132,199,.18), transparent 32%),
    linear-gradient(135deg, var(--paper) 0%, var(--logo-blue-soft) 100%);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 32px;
  align-items: center;
  border: 1px solid rgba(22,132,199,.16);
  box-shadow: var(--shadow-md);
}
.gr-banner::after {
  content: '';
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(223,151,60,.22), transparent 68%);
  pointer-events: none;
}
.gr-banner__kicker { color: var(--ember); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin-bottom: 14px; display: inline-block; }
.gr-banner__title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--ink); margin-bottom: 14px; line-height: 1.05; }
.gr-banner__title span { color: var(--ember); font-style: italic; }
.gr-banner__text { color: var(--graphite); font-size: 1.02rem; line-height: 1.6; margin-bottom: 24px; max-width: 520px; }
.gr-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gr-screening-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gr-screening-btn small {
  padding: 4px 8px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.16);
  color: rgba(255,255,255,.9);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.gr-banner__visual { position: relative; z-index: 1; display: flex; justify-content: center; }
.gr-audience { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gr-audience a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(22,132,199,.18);
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 600;
  transition: all var(--t-fast) var(--ease);
}
.gr-audience a:hover,
.gr-audience a.active {
  background: var(--paper);
  border-color: var(--ember);
  color: var(--ember);
  box-shadow: var(--shadow-subtle);
}
.gr-audience--page { margin-top: 24px; }

/* Атрибуция методики и информационный характер */
.gr-method-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 11px 16px 11px 11px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(22,132,199,.22);
  background: rgba(255,255,255,.72);
  color: var(--ink);
  box-shadow: var(--shadow-subtle);
}
.gr-method-badge:hover { border-color: var(--logo-blue); transform: translateY(-1px); }
.gr-method-badge__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--logo-blue), var(--navy));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
}
.gr-method-badge strong,
.gr-method-badge small { display: block; }
.gr-method-badge strong { font-size: .9rem; margin-bottom: 2px; }
.gr-method-badge small { color: var(--graphite); font-size: .76rem; }
.gr-method-badge--compact { margin-top: 18px; }
.gr-method-badge--compact .gr-method-badge__mark { width: 38px; height: 38px; border-radius: 12px; font-size: .8rem; }

.gr-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px 20px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(22,132,199,.18);
  background: var(--logo-blue-soft);
  color: var(--ink-soft);
}
.gr-disclaimer strong { flex: 0 0 auto; color: var(--navy); }
.gr-disclaimer p { margin: 0; font-size: .9rem; line-height: 1.55; }
.gr-disclaimer--intro { margin-bottom: 18px; }
.gr-disclaimer--result { margin-top: 28px; background: var(--cream); border-color: var(--stone); }
.gr-method-source {
  max-width: 850px;
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--stone);
  color: var(--graphite);
  font-size: .84rem;
  line-height: 1.55;
  text-align: center;
}

/* Мини-градусник в баннере */
.gr-mini {
  width: 92px; height: 240px; position: relative;
  display: flex; align-items: flex-end; justify-content: center;
}
.gr-mini__tube { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); width: 30px; height: 190px; border-radius: var(--r-full); background: rgba(22,132,199,.14); overflow: hidden; }
.gr-mini__fill { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(180deg, var(--logo-blue), var(--ember)); border-radius: var(--r-full); animation: grPulse 3s var(--ease) infinite; }
.gr-mini__bulb { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(180deg, var(--ember), var(--logo-blue)); box-shadow: 0 8px 30px rgba(22,132,199,.25); }
@keyframes grPulse { 0%,100% { height: 58%; } 50% { height: 68%; } }

/* ============================================================
   ВИДЖЕТ ТЕСТА (страница)
   ============================================================ */
.gr-wrap { max-width: 1040px; margin: 0 auto; }
.gr-card {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}

.gr-inline-panel {
  margin-top: 24px;
  animation: grFade .35s var(--ease);
}
.gr-inline-panel--open .gr-card { box-shadow: var(--shadow-lg); }

.gr-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.gr-progress__bar { flex: 1; height: 6px; border-radius: var(--r-full); background: var(--linen-2); overflow: hidden; }
.gr-progress__fill { height: 100%; width: 25%; background: var(--ember); border-radius: var(--r-full); transition: width var(--t-med) var(--ease); }
.gr-progress__label { font-size: .84rem; font-weight: 600; color: var(--graphite); white-space: nowrap; }

/* Вопрос */
.gr-step { display: none; animation: grFade .4s var(--ease); }
.gr-step.active { display: block; }
@keyframes grFade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.gr-question { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ink); margin-bottom: 8px; line-height: 1.1; }
.gr-question__hint { color: var(--graphite); margin-bottom: 26px; font-size: 1rem; }
.gr-question-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.gr-question-ordinal {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--logo-blue), var(--navy));
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  box-shadow: 0 7px 18px rgba(22,132,199,.18);
}
.gr-scale-kicker {
  display: inline-block;
  margin: 0;
  color: var(--logo-blue);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.gr-options { display: grid; gap: 12px; }
.gr-option {
  display: flex; align-items: center; gap: 16px;
  width: 100%; text-align: left; padding: 18px 20px;
  border: 1.5px solid var(--stone); border-radius: var(--r-md); background: var(--paper);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.gr-option:hover { border-color: var(--ember); transform: translateX(3px); }
.gr-option.selected { border-color: var(--ember); background: var(--ember-soft); }
.gr-card--busy .gr-option {
  pointer-events: none;
  opacity: .72;
}
.gr-card--busy .gr-nav__back {
  pointer-events: none;
  opacity: .45;
}
.gr-option__emoji { font-size: 1.7rem; line-height: 1; }
.gr-option__meter {
  width: 32px;
  height: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
}
.gr-option__meter i {
  width: 4px;
  border-radius: 3px;
  background: var(--stone);
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.gr-option__meter i:nth-child(1) { height: 6px; }
.gr-option__meter i:nth-child(2) { height: 9px; }
.gr-option__meter i:nth-child(3) { height: 12px; }
.gr-option__meter i:nth-child(4) { height: 16px; }
.gr-option__meter i:nth-child(5) { height: 20px; }
.gr-option__meter i.is-on { background: var(--logo-blue); }
.gr-option:hover .gr-option__meter i.is-on,
.gr-option.selected .gr-option__meter i.is-on { background: var(--ember); transform: translateY(-1px); }
.gr-option__text { flex: 1; font-size: 1rem; font-weight: 500; color: var(--ink); }
.gr-option__radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--stone); flex-shrink: 0; position: relative; transition: border-color var(--t-fast) var(--ease); }
.gr-option.selected .gr-option__radio { border-color: var(--ember); }
.gr-option.selected .gr-option__radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--ember); }

.gr-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; }
.gr-nav__back { color: var(--graphite); font-weight: 500; font-size: .92rem; display: inline-flex; align-items: center; gap: 6px; }
.gr-nav__back:hover { color: var(--ink); }
.gr-nav__back[disabled] { opacity: 0; pointer-events: none; }

/* Экран анализа после прохождения опросника */
.gr-analyzing {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 12% 14%, rgba(22,132,199,.16), transparent 34%),
    linear-gradient(135deg, var(--paper), var(--logo-blue-soft));
  border: 1px solid rgba(22,132,199,.18);
  animation: grFade .35s var(--ease);
}
.gr-analyzing.hidden { display: none !important; }
.gr-analyzing__orb {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 90deg, var(--ember), var(--logo-blue), var(--ember));
  box-shadow: 0 18px 48px rgba(22,132,199,.22);
  animation: grSpin 2.8s linear infinite;
}
.gr-analyzing__orb::after {
  content: '';
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--paper);
}
.gr-analyzing__orb span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ember);
  animation: grDot 1.4s var(--ease) infinite;
}
.gr-analyzing__orb span:nth-child(1) { transform: translate(0, -58px); }
.gr-analyzing__orb span:nth-child(2) { transform: translate(50px, 30px); animation-delay: .18s; background: var(--logo-blue); }
.gr-analyzing__orb span:nth-child(3) { transform: translate(-50px, 30px); animation-delay: .36s; }
.gr-analyzing__copy h3 { font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: 8px; }
.gr-analyzing__copy p { font-size: 1rem; }
.gr-analyzing__steps {
  grid-column: 2;
  display: grid;
  gap: 8px;
  margin-top: -6px;
}
.gr-analyzing__steps div {
  padding: 9px 12px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(22,132,199,.12);
  color: var(--graphite);
  font-size: .9rem;
  transition: all var(--t-med) var(--ease);
}
.gr-analyzing__steps div.active {
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(223,151,60,.32);
  box-shadow: var(--shadow-subtle);
}
.gr-analyzing__bar {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: var(--r-full);
  background: rgba(22,132,199,.12);
  overflow: hidden;
}
.gr-analyzing__bar span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--ember), var(--logo-blue));
  animation: grLoadingBar 2.1s var(--ease) infinite;
}
@keyframes grSpin { to { transform: rotate(360deg); } }
@keyframes grDot { 0%,100% { opacity: .45; scale: .8; } 50% { opacity: 1; scale: 1.18; } }
@keyframes grLoadingBar {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(85%); }
  100% { transform: translateX(260%); }
}

/* ============================================================
   РЕЗУЛЬТАТ
   ============================================================ */
.gr-result { display: none; }
.gr-result.active { display: block; animation: grFade .5s var(--ease); }
.gr-result__grid { display: grid; grid-template-columns: 190px 1fr; gap: 34px; align-items: center; }

/* Термометр SVG */
.gr-thermo { display: flex; flex-direction: column; align-items: center; }
.gr-thermo svg { width: 104px; height: auto; }
.gr-thermo__value { font-family: var(--font-display); font-size: 2.35rem; color: var(--ink); margin-top: 8px; line-height: 1; }
.gr-thermo__zone { margin-top: 8px; padding: 6px 16px; border-radius: var(--r-full); font-size: .86rem; font-weight: 700; }
.gr-zone-green { background: rgba(47,158,107,.14); color: var(--zone-green); }
.gr-zone-yellow { background: rgba(224,169,42,.16); color: #b9820f; }
.gr-zone-red { background: rgba(224,74,60,.14); color: var(--zone-red); }

.gr-cbi-summary {
  min-height: 300px;
  padding: 24px 14px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 75% 18%, rgba(255,255,255,.34), transparent 30%),
    linear-gradient(145deg, var(--logo-blue), var(--navy));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 18px 40px rgba(44,87,120,.22);
}
.gr-cbi-summary > span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.15);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.gr-cbi-summary__meta { display: none !important; }
.gr-cbi-thermometers {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 22px;
  width: 100%;
  margin-top: 22px;
}
.gr-cbi-thermometer {
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gr-cbi-thermometer__tube {
  position: relative;
  width: 22px;
  height: 118px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.52);
  border-bottom: 0;
  border-radius: 14px 14px 4px 4px;
  background: rgba(255,255,255,.18);
}
.gr-cbi-thermometer__tube i {
  position: absolute;
  inset: auto 3px 0;
  height: 0;
  min-height: 2px;
  border-radius: 8px 8px 0 0;
  transition: background .2s ease;
}
.gr-cbi-thermometer__bulb {
  width: 38px;
  height: 38px;
  margin-top: -5px;
  border: 4px solid rgba(255,255,255,.52);
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  box-shadow: 0 5px 14px rgba(0,0,0,.15);
}
.gr-cbi-thermometer strong {
  margin-top: 9px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}
.gr-cbi-thermometer small {
  margin-top: 5px;
  color: rgba(255,255,255,.82);
  font-size: .72rem;
  line-height: 1.2;
}

.gr-result__title { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--ink); margin-bottom: 10px; line-height: 1.1; }
.gr-result__desc { color: var(--graphite); font-size: 1.05rem; line-height: 1.6; margin-bottom: 20px; }
.gr-result__delta { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; padding: 6px 14px; border-radius: var(--r-full); background: var(--linen); color: var(--ink-soft); margin-bottom: 20px; }

/* Разбивка по шкалам */
.gr-scales { display: grid; gap: 14px; margin-bottom: 24px; }
.gr-scale { display: flex; align-items: center; gap: 12px; }
.gr-scale__label { width: 150px; font-size: .88rem; color: var(--ink-soft); font-weight: 500; }
.gr-scale__track { flex: 1; height: 8px; border-radius: var(--r-full); background: var(--linen-2); overflow: hidden; }
.gr-scale__fill { height: 100%; border-radius: var(--r-full); width: 0; transition: width .8s var(--ease); }
.gr-scale__num { width: 42px; text-align: right; font-size: .86rem; font-weight: 700; color: var(--ink); }
.gr-scale--cbi { display: block; padding: 14px 16px; border-radius: var(--r-md); background: var(--cream); border: 1px solid var(--stone); }
.gr-scale--cbi .gr-scale__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.gr-scale--cbi .gr-scale__label { width: auto; font-size: .92rem; color: var(--ink); font-weight: 600; }
.gr-scale--cbi small { display: block; margin-top: 8px; color: var(--graphite); font-size: .78rem; }

.gr-result__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gr-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-width: 1px;
  border-style: solid;
  box-shadow: 0 7px 18px rgba(34,49,63,.08);
}
.gr-action svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gr-action--tours {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--logo-blue), var(--navy));
  box-shadow: 0 9px 22px rgba(22,132,199,.22);
}
.gr-action--tours:hover {
  color: #fff;
  background: linear-gradient(135deg, #2298d8, var(--logo-blue));
  transform: translateY(-2px);
}
.gr-action--retake {
  color: #a86a2a;
  border-color: rgba(223,151,60,.28);
  background: var(--ember-soft);
}
.gr-action--retake:hover { color: #7a5520; border-color: var(--ember); background: #faf3e8; box-shadow: 0 8px 20px rgba(223,151,60,.16); }
.gr-action--save {
  color: #257653;
  border-color: rgba(47,158,107,.38);
  background: rgba(47,158,107,.1);
}
.gr-action--save:hover { color: #1f6245; border-color: #2f9e6b; background: rgba(47,158,107,.16); box-shadow: 0 8px 20px rgba(47,158,107,.18); text-shadow: none; }
.gr-action--history {
  color: var(--navy);
  border-color: rgba(22,132,199,.24);
  background: var(--logo-blue-soft);
}
.gr-action--history:hover { color: var(--logo-blue); border-color: var(--logo-blue); background: #edf8ff; box-shadow: 0 8px 20px rgba(22,132,199,.14); }
.gr-next-cue {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--ember-soft), var(--logo-blue-soft));
  border: 1px solid rgba(22,132,199,.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.gr-next-cue strong { display: block; color: var(--ink); margin-bottom: 4px; }
.gr-next-cue span { display: block; color: var(--graphite); font-size: .92rem; line-height: 1.45; }

/* Профиль усталости */
.gr-profile { margin-top: 40px; padding: 26px; border-radius: var(--r-lg); background: var(--cream); border: 1px solid var(--stone); }
.gr-profile--inline {
  margin: 4px 0 22px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 92% 10%, rgba(22,132,199,.13), transparent 30%),
    linear-gradient(135deg, var(--paper), var(--ember-soft));
  border-color: rgba(223,151,60,.22);
  box-shadow: var(--shadow-subtle);
}
.gr-profile__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ember); font-weight: 700; margin-bottom: 8px; }
.gr-profile__type { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin-bottom: 8px; line-height: 1.15; }
.gr-profile--inline .gr-profile__type { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.gr-profile__rec { color: var(--graphite); line-height: 1.6; }
.gr-profile--inline .gr-profile__rec { font-size: .92rem; line-height: 1.5; }

/* AI-разбор */
.gr-ai {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--paper), #f4fbff);
  border: 1px solid rgba(22, 132, 199, .18);
}
.gr-ai__head h3 { margin-bottom: 8px; }
.gr-ai__head p { max-width: 780px; }
.gr-ai__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.gr-ai__col {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--r-md);
  padding: 18px;
}
.gr-ai__col strong { display: block; margin-bottom: 10px; }
.gr-ai__col ul { display: grid; gap: 8px; list-style: none; }
.gr-ai__col li { position: relative; padding-left: 18px; color: var(--graphite); font-size: .92rem; line-height: 1.5; }
.gr-ai__col li::before { content: ''; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--logo-blue); }
.gr-ai__manager {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--ember-soft);
  color: var(--ink-soft);
  font-size: .9rem;
}
.gr-ai__manager strong { display: block; color: var(--ink); margin-bottom: 8px; font-size: 1rem; }
.gr-ai__manager p { color: var(--ink); font-weight: 600; margin-bottom: 12px; }
.gr-ai__manager ul { display: grid; gap: 7px; list-style: none; }
.gr-ai__manager li { position: relative; padding-left: 18px; color: var(--ink-soft); line-height: 1.5; }
.gr-ai__manager li::before { content: ''; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); }

/* Подбор туров под профиль */
.gr-tours { margin-top: 48px; }
.gr-tours__title { text-align: center; margin-bottom: 8px; }
.gr-tours__sub { text-align: center; color: var(--graphite); margin-bottom: 36px; }
.gr-tours__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Форма сохранения / лид */
.gr-save {
  margin-top: 40px;
  padding: 30px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--logo-blue-soft), var(--ember-soft));
  color: var(--ink);
  border: 1px solid rgba(22,132,199,.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.gr-save__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.gr-save h3 { color: var(--ink); margin-bottom: 8px; }
.gr-save p { color: var(--graphite); font-size: .95rem; }
.gr-save__form { display: grid; gap: 12px; }
.gr-save__form input {
  height: 50px; padding: 12px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--stone); background: var(--paper); color: var(--ink); font-size: .96rem;
}
.gr-save__form input::placeholder { color: var(--smoke); }
.gr-save__form input:focus { border-color: var(--ember); }
.gr-consent { display: flex; align-items: flex-start; gap: 9px; font-size: .8rem; color: var(--graphite); line-height: 1.5; }
.gr-consent input { width: 18px; height: 18px; accent-color: var(--ember); margin-top: 1px; flex-shrink: 0; }

/* Модальное окно передачи менеджеру */
.gr-modal { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gr-modal.hidden { display: none !important; }
.gr-modal__backdrop { position: absolute; inset: 0; background: rgba(34,32,29,.46); backdrop-filter: blur(6px); }
.gr-modal__dialog {
  position: relative;
  width: min(520px, 100%);
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  animation: grModalIn .25s var(--ease);
}
.gr-modal__dialog h3 { margin-bottom: 8px; font-size: 1.7rem; }
.gr-modal__dialog p { margin-bottom: 18px; }
.gr-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}
@keyframes grModalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* История (личный профиль) */
.gr-history { margin-top: 40px; }
.gr-dynamics-card {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--r-lg);
  padding: 24px;
  display: grid;
  gap: 22px;
}
.gr-dynamics__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gr-dynamics__stat {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--cream);
  border: 1px solid var(--stone);
}
.gr-dynamics__stat-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 6px;
}
.gr-dynamics__stat-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--ink);
}
.gr-dynamics__stat-value--up { color: #2f9e6b; }
.gr-dynamics__stat-value--down { color: #e04a3c; }
.gr-dynamics__stat-value--muted { color: var(--graphite); font-size: 1rem; font-family: var(--font-body); font-weight: 500; }
.gr-dynamics__viz { min-height: 160px; }
.gr-dynamics__gauge {
  display: grid;
  gap: 14px;
}
.gr-dynamics__gauge-track {
  position: relative;
  height: 18px;
  border-radius: var(--r-full);
  overflow: hidden;
  display: flex;
}
.gr-dynamics__gauge-zone {
  height: 100%;
}
.gr-dynamics__gauge-zone--red { flex: 0 0 40%; background: linear-gradient(90deg, #f8d4d0, #e04a3c); }
.gr-dynamics__gauge-zone--yellow { flex: 0 0 30%; background: linear-gradient(90deg, #f5e6b8, #e0a92a); }
.gr-dynamics__gauge-zone--green { flex: 0 0 30%; background: linear-gradient(90deg, #b8e8d0, #2f9e6b); }
.gr-dynamics__gauge-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--ember);
  box-shadow: 0 2px 10px rgba(223,151,60,.35);
}
.gr-dynamics__gauge-scale {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--graphite);
  padding: 0 2px;
}
.gr-dynamics__gauge-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--cream);
  border: 1px solid var(--stone);
}
.gr-dynamics__gauge-zone-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
}
.gr-dynamics__gauge-zone-label--green { color: #2f9e6b; }
.gr-dynamics__gauge-zone-label--yellow { color: #c48f12; }
.gr-dynamics__gauge-zone-label--red { color: #e04a3c; }
.gr-dynamics__gauge-hint {
  margin: 0;
  color: var(--graphite);
  font-size: .9rem;
  line-height: 1.5;
  max-width: 420px;
}
.gr-dynamics__line-chart {
  width: 100%;
  height: 180px;
  display: block;
}
.gr-dynamics__line-chart text { font-family: var(--font-body), sans-serif; }
.gr-chart-legend { display: flex; justify-content: center; gap: 20px; margin-bottom: 6px; font-size: .82rem; color: var(--graphite); }
.gr-chart-legend span::before { content: ''; display: inline-block; width: 18px; height: 3px; margin-right: 7px; border-radius: 3px; vertical-align: middle; }
.gr-chart-legend .is-personal::before { background: var(--ember); }
.gr-chart-legend .is-work::before { background: var(--logo-blue); }
.gr-history__list { margin-top: 20px; display: grid; gap: 10px; }
.gr-history__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--r-md);
  font-size: .92rem;
}
.gr-history__date { color: var(--graphite); }
.gr-history__meta {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.gr-history__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.gr-history__badge--green { background: rgba(47,158,107,.12); color: #2f9e6b; }
.gr-history__badge--yellow { background: rgba(224,169,42,.14); color: #a87810; }
.gr-history__badge--red { background: rgba(224,74,60,.12); color: #e04a3c; }
.gr-history__profile { color: var(--ink-soft); font-size: .84rem; }
.gr-history__val {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-align: right;
}
.gr-history__item--cbi { grid-template-columns: 1fr auto; }
.gr-history__item--cbi .gr-history__profile { grid-column: 1; }
.gr-history__scores { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: 5px; text-align: right; font-size: .84rem; color: var(--graphite); }
.gr-legacy-note { padding: 14px 16px; border-radius: var(--r-md); background: var(--linen); color: var(--graphite); font-size: .84rem; }
.gr-dynamics__empty {
  padding: 28px 8px;
  text-align: center;
}
.gr-dynamics__empty-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.gr-dynamics__empty-text {
  margin: 0;
  color: var(--graphite);
  font-size: .94rem;
  line-height: 1.55;
}

/* ============================================================
   Адаптив геймификации
   ============================================================ */
@media (max-width: 860px) {
  .gr-banner { grid-template-columns: 1fr; padding: 30px; text-align: center; }
  .gr-banner__text { margin-left: auto; margin-right: auto; }
  .gr-banner__actions { justify-content: center; }
  .gr-banner__visual { order: -1; }
  .gr-result__grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .gr-thermo, .gr-cbi-summary { margin: 0 auto; width: min(260px, 100%); }
  .gr-scale__label { width: 120px; }
  .gr-tours__grid { grid-template-columns: 1fr; }
  .gr-save__grid { grid-template-columns: 1fr; gap: 18px; }
  .gr-save { flex-direction: column; align-items: flex-start; }
  .gr-save .btn { width: 100%; }
  .gr-next-cue { flex-direction: column; align-items: flex-start; }
  .gr-next-cue .btn { width: 100%; }
  .gr-ai__grid { grid-template-columns: 1fr; }
  .gr-analyzing { grid-template-columns: 1fr; text-align: center; }
  .gr-analyzing__orb { margin: 0 auto; }
  .gr-analyzing__steps { grid-column: 1; text-align: left; }
  .gr-dynamics__stats { grid-template-columns: 1fr; }
  .gr-history__item { grid-template-columns: 1fr; }
  .gr-history__val { grid-column: 1; grid-row: auto; text-align: left; }
  .gr-card { padding: 22px 18px; }
}
@media (max-width: 560px) {
  .gr-scale { flex-wrap: wrap; }
  .gr-scale__label { width: 100%; }
  .gr-disclaimer { display: block; }
  .gr-disclaimer strong { display: block; margin-bottom: 6px; }
  .gr-method-badge { width: 100%; }
  .gr-history__item--cbi { grid-template-columns: 1fr; }
  .gr-history__scores { grid-column: 1; grid-row: auto; text-align: left; }
}
