:root {
  --sun: #ffd426;
  --sun-press: #f5c400;
  --ink: #14161a;
  --ink-2: #5c6370;
  --ink-3: #8f96a3;
  --ground: #f1f2f4;
  --card: #ffffff;
  --tile: #f4f5f7;
  --tile-press: #e9ebef;
  --line: #e3e5e9;
  --sky: #3e7bfa;
  --sky-tint: #e7efff;
  --stop: #e8412f;
  --stop-tint: #fdebe8;
  --go: #1fa35b;
  --go-tint: #e5f6ec;
  --violet: #6b4dff;
  --violet-tint: #efebff;

  --r-xl: 36px;
  --r-l: 28px;
  --r-m: 20px;

  --display: "Geologica", "Golos Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
}

.wrap {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Шапка ---------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sun);
}

.brand__mark svg {
  width: 20px;
  height: 20px;
}

/* ---------- Кнопки ---------- */

/* Объёмная кнопка: нижняя «грань» (--edge) + мягкая тень (--glow).
   Наведение — кнопка приподнимается, по ней пробегает блик, стрелка сдвигается.
   Нажатие — кнопка «вдавливается» в грань. */
.btn {
  --edge: #c99a00;
  --glow: rgba(240, 170, 0, 0.55);
  --lift: 4px;
  --hi: rgba(255, 255, 255, 0.55);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1.5px 0 var(--hi), 0 var(--lift) 0 var(--edge), 0 calc(var(--lift) * 3) 22px -10px var(--glow);
  transition: transform 0.18s cubic-bezier(0.3, 0.7, 0.4, 1.2), box-shadow 0.18s, filter 0.18s;
}

/* блик */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.5) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}

.btn:hover {
  --lift: 6px;
  transform: translateY(-2px);
  filter: saturate(1.08) brightness(1.03);
}

.btn:hover::before {
  transform: translateX(130%);
}

.btn:active {
  --lift: 1px;
  transform: translateY(3px);
  transition-duration: 0.06s;
}

/* стрелка у больших кнопок */
.btn--l::after {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-left: -2px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1.4);
}

.btn--l:hover::after {
  transform: translateX(5px);
}

.btn--s {
  padding: 11px 20px;
  font-size: 15px;
}

.btn--l {
  padding: 20px 30px 20px 34px;
  font-size: 19px;
}

.btn--sun {
  background: linear-gradient(180deg, #ffe55e 0%, var(--sun) 55%, #f8c400 100%);
  color: var(--ink);
}

.btn--ink {
  --edge: #000;
  --glow: rgba(20, 22, 26, 0.55);
  --hi: rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, #3b404a 0%, #1e2127 55%, var(--ink) 100%);
  color: #fff;
}

.btn--ink::before {
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.18) 50%, transparent 75%);
}

.btn--tile {
  --edge: #cfd3da;
  --glow: rgba(20, 22, 26, 0.2);
  --hi: #fff;
  background: linear-gradient(180deg, #ffffff 0%, #f1f3f6 100%);
  color: var(--ink);
}

.btn__meta {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 22, 26, 0.09);
  font-weight: 500;
  font-size: 0.82em;
}

.btn--ink .btn__meta {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Первый экран ---------- */

/* Фон справа уходит в янтарный — в тон фону фотографии, чтобы её края растворялись */
/* Размеры заголовка и персонажа считаются от ширины самого блока (cqi = 1% его ширины),
   поэтому их соотношение одинаковое на любом экране */
.hero {
  --h1: clamp(2.35rem, 5.8cqi, 4.1rem);
  container-type: inline-size;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  padding: 48px 56px 0;
  border-radius: var(--r-xl);
  /* белая подложка снизу — чтобы по скруглённым углам под полосой условий не просвечивал жёлтый */
  background: linear-gradient(to top, #fff 48px, transparent 48px), linear-gradient(100deg, var(--sun) 0%, var(--sun) 30%, #fdb512 62%, #fdc02c 100%);
  overflow: hidden;
}

.hero__head {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  grid-row: 1;
}

.hero__text {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 2;
  padding-bottom: 44px;
}

/* Персонаж вырезан на прозрачном фоне. Прижат к правому краю жёлтого блока,
   макушка — на уровне верха второй строки заголовка («…людей»):
   отступ сверху = строка «Помощь в получении…» (22.5px) + отступ заголовка (18px) + первая строка заголовка */
.hero__photo {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1 / 3;
  align-self: start;
  justify-self: end;
  margin: calc(22.5px + 18px + 1.04 * var(--h1)) -56px 0 0;
  pointer-events: none;
}

.hero__photo img {
  display: block;
  width: 51cqi;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 26px 30px rgba(140, 80, 0, 0.28));
}

.eyebrow {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--h1);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.mark {
  display: inline-block;
  padding: 0 0.2em 0.06em;
  border-radius: 0.3em;
  background: #fff;
  transform: rotate(-2deg);
}

.hero__sub {
  max-width: 20em;
  margin-top: 28px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.hero__foot {
  max-width: 29em;
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.72;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 22, 26, 0.08);
  font-size: 14px;
  font-weight: 500;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 30px;
}

.hero__note {
  font-size: 15px;
  opacity: 0.7;
}

/* Карточка условий: строка = круглая иконка + значение + подпись */

.facts {
  padding: 12px 28px;
  border-radius: var(--r-l);
  background: var(--card);
  box-shadow: 0 24px 48px -24px rgba(20, 22, 26, 0.35);
}

.fact {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
  padding-block: 18px;
}

.fact + .fact {
  border-top: 1px solid var(--line);
}

/* Полоса условий внизу первого экрана: перекрывает низ фотографии */
.facts--strip {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: -56px;
  padding: 10px 40px;
  border-radius: 0;
  box-shadow: none;
}

.facts--strip .fact {
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 18px 16px;
}

.facts--strip .fact + .fact {
  border-top: 0;
  border-left: 1px solid var(--line);
}

.facts--strip .fact__icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.facts--strip .fact__value {
  font-size: 19px;
}

.facts--strip .fact__label {
  font-size: 14px;
}

/* Объёмная иконка: солнечная «подушка» + цветной рисунок из спрайта assets/icons.js */
.fact__icon,
.file__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(155deg, #fff6c6 0%, #ffe24f 38%, #ffc91f 72%, #f7b00c 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.9), inset 0 -3px 5px rgba(196, 120, 0, 0.28), 0 10px 18px -9px rgba(222, 140, 0, 0.75);
}

.fact__icon svg,
.file__icon svg {
  width: 78%;
  height: auto;
  aspect-ratio: 1;
  overflow: visible;
  filter: drop-shadow(0 2px 1.5px rgba(122, 66, 0, 0.3));
}

/* Иконки-картинки (assets/img/icons): своя подсветка уже нарисована внутри,
   поэтому без подложки. Картинка чуть больше ячейки — у неё прозрачные поля. */
.fact__icon--img,
.file__icon--img,
.messenger__icon--img,
.stop__icon--img,
.result__badge--img {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0;
  overflow: visible;
}

.fact__icon--img img,
.file__icon--img img,
.messenger__icon--img img,
.stop__icon--img img,
.result__badge--img img {
  display: block;
  width: 115%;
  height: 115%;
  max-width: none;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1.4);
}

.fact:has(.fact__icon--img),
.facts--strip .fact:has(.fact__icon--img),
.summary .fact:has(.fact__icon--img) {
  grid-template-columns: 64px 1fr;
}

.fact__icon--img,
.facts--strip .fact__icon--img,
.summary .fact__icon--img {
  width: 64px;
  height: 64px;
}

.file__icon--img {
  width: 60px;
  height: 60px;
}

.file:has(.file__icon--img) {
  grid-template-columns: 60px 1fr auto;
}

.messenger__icon--img {
  width: 56px;
  height: 56px;
}

.stops .stop__icon--img {
  width: 76px;
  height: 76px;
}

.result .result__badge--img {
  width: 88px;
  height: 88px;
}

.stop:hover .stop__icon--img img {
  transform: scale(1.06) rotate(-3deg);
}

.fact:hover .fact__icon--img img,
.file:hover .file__icon--img img {
  transform: scale(1.06) rotate(-3deg);
}

/* Объёмные «шарики» для крестиков и галочек */
.ball--red,
.stop__icon,
.result--stop .result__badge {
  background: radial-gradient(circle at 34% 28%, #ffa08c 0%, #f2553f 45%, #c92e1c 100%);
  box-shadow: inset 0 -3px 6px rgba(120, 10, 0, 0.3), inset 0 2px 2px rgba(255, 255, 255, 0.45), 0 10px 18px -8px rgba(232, 65, 47, 0.75);
}

.result--pass .result__badge {
  background: radial-gradient(circle at 34% 28%, #8ff0b6 0%, #2cc46f 45%, #128a46 100%);
  box-shadow: inset 0 -3px 6px rgba(0, 70, 30, 0.3), inset 0 2px 2px rgba(255, 255, 255, 0.5), 0 10px 18px -8px rgba(31, 163, 91, 0.75);
}

.result--warn .result__badge {
  background: radial-gradient(circle at 34% 28%, #fff2a8 0%, #ffcf26 45%, #e9a300 100%);
  box-shadow: inset 0 -3px 6px rgba(140, 80, 0, 0.3), inset 0 2px 2px rgba(255, 255, 255, 0.6), 0 10px 18px -8px rgba(233, 163, 0, 0.75);
  color: var(--ink) !important;
}

.stop__icon svg,
.result__badge svg {
  filter: drop-shadow(0 1.5px 1px rgba(0, 0, 0, 0.25));
}

.fact__value {
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.fact__label {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.35;
}

/* ---------- Стоп-лист ---------- */

.stoplist {
  margin-top: 20px;
  padding: 56px;
  border-radius: var(--r-xl);
  background: var(--card);
}

.stoplist h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* Каждое предложение — неразрывный блок: на широком экране строка одна,
   на узком перенос идёт только между предложениями */
.stoplist__lead {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 19px;
}

.stoplist__lead span {
  display: inline-block;
}

.stops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.stop {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 190px;
  padding: 22px;
  border-radius: var(--r-m);
  background: var(--stop-tint);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
}

.stop__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
}

.stop__icon svg {
  width: 22px;
  height: 22px;
}

.stop span:last-child {
  margin-top: auto;
}

.stoplist__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
}

.stoplist__end p {
  max-width: 30em;
  font-size: 19px;
  font-weight: 500;
}

/* ---------- Подвал ---------- */

.foot {
  padding-block: 36px 48px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

.foot p + p {
  margin-top: 10px;
}

/* Закреплённая кнопка на телефоне */

.dock {
  display: none;
}

/* ---------- Квиз ---------- */

.quiz-page {
  background: var(--card);
}

.quiz {
  width: min(680px, 100%);
  min-height: 100dvh;
  margin-inline: auto;
  padding: 0 20px 48px;
}

.quiz__bar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  padding-block: 16px;
}

.back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--sky);
  cursor: pointer;
  text-decoration: none;
}

.back:hover {
  background: var(--tile);
}

.back svg {
  width: 26px;
  height: 26px;
}

.quiz__count {
  text-align: center;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
}

.progress {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
}

.progress i {
  height: 6px;
  border-radius: 3px;
  background: var(--tile-press);
  transition: background-color 0.25s;
}

.progress i.is-done {
  background: var(--sun);
}

.step {
  padding-top: 40px;
  animation: rise 0.28s ease-out both;
}

.step h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.step__hint {
  margin-top: 14px;
  color: var(--ink-2);
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

/* Варианты ответа — тоже объёмные плашки с гранью снизу */
.option {
  --edge: #d6dae1;
  --lift: 3px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 22px 24px;
  border: 1px solid #e6e9ee;
  border-radius: var(--r-m);
  background: linear-gradient(180deg, #ffffff 0%, #f3f5f8 100%);
  box-shadow: inset 0 1px 0 #fff, 0 var(--lift) 0 var(--edge), 0 calc(var(--lift) * 3) 18px -12px rgba(20, 22, 26, 0.3);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.3, 0.7, 0.4, 1.2), box-shadow 0.18s, border-color 0.15s;
}

.option:hover {
  --lift: 5px;
  border-color: #ffe27a;
  transform: translateY(-2px);
}

.option:active {
  --lift: 1px;
  transform: translateY(2px);
  transition-duration: 0.06s;
}

.option__dot {
  width: 28px;
  height: 28px;
  border: 2px solid #c4c9d2;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 2px 3px rgba(20, 22, 26, 0.12);
  transition: border-color 0.15s, border-width 0.15s, box-shadow 0.15s;
}

.option:hover .option__dot {
  border-color: var(--sun-press);
  box-shadow: inset 0 2px 3px rgba(20, 22, 26, 0.12), 0 0 0 4px rgba(255, 212, 38, 0.35);
}

.option__text {
  display: grid;
  gap: 4px;
}

.option__s {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

.option.is-picked {
  --edge: #d4a300;
  border-color: transparent;
  background: linear-gradient(180deg, #ffe55e 0%, var(--sun) 100%);
}

.option.is-picked .option__s {
  color: rgba(20, 22, 26, 0.75);
}

.step__tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sky-tint);
  color: #2a5fd6;
  font-size: 14px;
  font-weight: 600;
}

.option.is-picked .option__dot {
  border: 9px solid var(--ink);
}

/* Итоговые экраны */

.result {
  padding-top: 48px;
  animation: rise 0.32s ease-out both;
}

.result__badge {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #fff;
}

.result__badge svg {
  width: 38px;
  height: 38px;
}

.result h1 {
  margin-top: 28px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.result__text {
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.45;
}

.result__text--muted {
  color: var(--ink-2);
  font-size: 17px;
}

.result .btn {
  margin-top: 32px;
}

.summary {
  margin-top: 32px;
  padding: 8px 24px;
  border-radius: var(--r-l);
  background: var(--tile);
  box-shadow: none;
}

.summary .fact__icon {
  width: 52px;
  height: 52px;
}

.summary .fact {
  grid-template-columns: 52px 1fr;
}

.contact {
  margin-top: 36px;
}

.contact h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.contact__hint {
  margin-top: 6px;
  color: var(--ink-2);
}

.messengers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.messenger {
  --lift: 3px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px;
  border-radius: var(--r-m);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 var(--lift) 0 rgba(20, 22, 26, 0.1), 0 calc(var(--lift) * 3) 18px -12px rgba(20, 22, 26, 0.3);
  transition: transform 0.18s cubic-bezier(0.3, 0.7, 0.4, 1.2), box-shadow 0.18s;
}

.messenger:hover {
  --lift: 5px;
  transform: translateY(-3px);
}

.messenger:active {
  --lift: 1px;
  transform: translateY(2px);
}

.messenger__icon {
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.18), inset 0 2px 2px rgba(255, 255, 255, 0.4);
  transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1.4);
}

.messenger:hover .messenger__icon {
  transform: scale(1.08) rotate(-6deg);
}

.messenger__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
}

.messenger__icon svg {
  width: 26px;
  height: 26px;
}

.messenger__name {
  display: block;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
}

.messenger__act {
  display: block;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 15px;
}

.messenger--telegram {
  background: var(--sky-tint);
}

.messenger--telegram .messenger__icon {
  background: #2a9de6;
}

.messenger--whatsapp {
  background: var(--go-tint);
}

.messenger--whatsapp .messenger__icon {
  background: #22b356;
}

.messenger--max {
  background: var(--violet-tint);
}

.messenger--max .messenger__icon {
  background: var(--violet);
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.result .result__actions .btn {
  margin-top: 0;
}

/* Инструкция: как проверить кредитную историю */
.guide {
  margin-top: 36px;
  padding: 24px;
  border-radius: var(--r-l);
  background: var(--tile);
}

.guide h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.guide__hint {
  margin-top: 6px;
  color: var(--ink-2);
}

.guide__site {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 0 #dfe2e7;
  color: #2a5fd6;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s;
}

.guide__site:hover {
  transform: translateY(-1px);
  text-decoration: underline;
}

.guide ol {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  counter-reset: guide;
}

.guide li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  counter-increment: guide;
}

.guide li::before {
  content: counter(guide);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fff2a8 0%, #ffd426 50%, #eab000 100%);
  box-shadow: inset 0 -2px 3px rgba(140, 80, 0, 0.25), 0 4px 8px -4px rgba(233, 163, 0, 0.8);
  font-weight: 700;
  font-size: 14px;
}

.guide li span {
  padding-top: 3px;
}

/* Карточка файла для скачивания */
.file {
  --lift: 3px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--r-m);
  background: #fff;
  box-shadow: 0 var(--lift) 0 #dfe2e7, 0 calc(var(--lift) * 3) 18px -12px rgba(20, 22, 26, 0.3);
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.3, 0.7, 0.4, 1.2), box-shadow 0.18s;
}

.file:hover {
  --lift: 5px;
  transform: translateY(-2px);
}

.file:active {
  --lift: 1px;
  transform: translateY(2px);
}

.file__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.file__name {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}

.file__meta {
  display: block;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 14px;
}

.file__act {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--sun);
  font-weight: 600;
  font-size: 14px;
}

.file.is-soon .file__act {
  background: var(--tile-press);
  color: var(--ink-2);
}

.result--stop .file,
.result--warn .file {
  background: var(--tile);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 10;
  max-width: calc(100% - 40px);
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Появление ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.hero__head > *,
.hero__text > *,
.facts .fact {
  animation: rise 0.5s ease-out both;
}

.hero__photo {
  animation: appear 0.9s ease-out 0.1s both;
}

@keyframes appear {
  from {
    opacity: 0;
  }
}

.hero__head > :nth-child(2) { animation-delay: 0.05s; }
.hero__text > :nth-child(1) { animation-delay: 0.1s; }
.hero__text > :nth-child(2) { animation-delay: 0.15s; }
.hero__text > :nth-child(3) { animation-delay: 0.2s; }
.hero__text > :nth-child(4) { animation-delay: 0.25s; }
.facts .fact:nth-child(1) { animation-delay: 0.2s; }
.facts .fact:nth-child(2) { animation-delay: 0.27s; }
.facts .fact:nth-child(3) { animation-delay: 0.34s; }
.facts .fact:nth-child(4) { animation-delay: 0.41s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 44px 44px 0;
    background: linear-gradient(to top, #fff 48px, transparent 48px), linear-gradient(175deg, var(--sun) 0%, var(--sun) 40%, #fdb512 78%, #fdb512 100%);
  }

  .hero__text {
    padding-bottom: 0;
  }

  /* одна колонка: персонаж под текстом, по центру */
  .hero__head,
  .hero__text,
  .hero__photo,
  .facts--strip {
    grid-column: auto;
    grid-row: auto;
  }

  .hero {
    grid-template-rows: none;
  }

  .hero__photo {
    align-self: end;
    justify-self: center;
    margin: 28px 0 0;
  }

  .hero__photo img {
    width: min(80cqi, 420px);
  }

  .facts--strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: -44px;
    padding: 6px 28px;
  }

  .facts--strip .fact + .fact {
    border-left: 0;
  }

  .facts--strip .fact:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .facts--strip .fact:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .stops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stop {
    min-height: 160px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
    padding-bottom: 96px;
  }

  .quiz-page {
    padding-bottom: 0;
  }

  .wrap {
    padding-inline: 12px;
  }

  .top {
    padding: 14px 8px;
  }

  .top .btn {
    display: none;
  }

  .hero {
    padding: 32px 22px 0;
    border-radius: var(--r-l);
  }

  .hero__sub {
    margin-top: 20px;
    font-size: 20px;
  }

  .hero__foot {
    margin-top: 18px;
    font-size: 13px;
  }

  .hero__photo {
    margin-top: 20px;
  }

  .hero__photo img {
    width: min(88cqi, 340px);
  }

  .facts--strip {
    grid-template-columns: 1fr;
    margin-inline: -22px;
    margin-top: -24px;
    padding: 4px 22px 8px;
    border-radius: 24px 24px 0 0;
  }

  .facts--strip .fact {
    padding: 14px 4px;
  }

  .facts--strip .fact:nth-child(even) {
    border-left: 0;
  }

  .facts--strip .fact + .fact {
    border-top: 1px solid var(--line);
  }

  .hero__cta .btn {
    display: none;
  }

  .hero__cta {
    margin-top: 22px;
  }

  .facts {
    padding: 6px 20px;
    border-radius: 24px;
  }

  .fact {
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding-block: 15px;
  }

  .fact__icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .fact__value {
    font-size: 19px;
  }

  .stoplist {
    margin-top: 12px;
    padding: 32px 22px 22px;
    border-radius: var(--r-l);
  }

  .stoplist__lead,
  .stoplist__end p {
    font-size: 17px;
  }

  .stops {
    gap: 8px;
    margin-top: 26px;
  }

  .stop {
    gap: 18px;
    min-height: 150px;
    padding: 16px;
    font-size: 16px;
  }

  .stoplist__end {
    margin-top: 26px;
  }

  .stoplist__end .btn {
    display: none;
  }

  .foot {
    padding: 28px 8px 24px;
  }

  .dock {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 5;
    display: block;
    padding: 28px 12px max(14px, env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--ground) 62%, rgba(241, 242, 244, 0));
  }

  .dock .btn {
    width: 100%;
  }

  .step {
    padding-top: 24px;
  }

  .option {
    padding: 19px 20px;
    font-size: 17px;
  }

  .result {
    padding-top: 28px;
  }

  .result__text {
    font-size: 17px;
  }

  .messengers {
    gap: 8px;
  }

  .messenger {
    gap: 16px;
    padding: 14px;
  }

  .messenger__name {
    font-size: 16px;
  }

  .messenger__act {
    font-size: 14px;
  }
}
