/* ══════════════════════════════════════════════════════════════════════════
   Типографика визитки: Tilda Sans, все четыре начертания.
   Файлы отдаёт CDN проекта-визитки; если он недоступен, подхватывается
   Manrope из Google Fonts (подключён в index.html) — вёрстка не поедет.
   ══════════════════════════════════════════════════════════════════════════ */
@font-face {
  font-family: "Tilda Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://shepel-property-partners.lovable.app/__l5e/assets-v1/fa1b7868-556a-4863-838d-af8766e141e1/TildaSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Tilda Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://shepel-property-partners.lovable.app/__l5e/assets-v1/a3a71d69-0e38-4bc6-8ecc-dcefdcdb5945/TildaSans-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Tilda Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://shepel-property-partners.lovable.app/__l5e/assets-v1/642243fc-d799-45db-ab58-7eb0f01d6826/TildaSans-Semibold.woff2") format("woff2");
}
@font-face {
  font-family: "Tilda Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://shepel-property-partners.lovable.app/__l5e/assets-v1/a4e4ee89-cf23-4208-9066-f38c55f75ed2/TildaSans-Bold.woff2") format("woff2");
}

:root {
  --ink: #0b0b0c;
  --ink-2: #111113;
  --ink-3: #17171a;
  --lime: #d1e05a;
  --lime-hi: #dcf047;
  --sand: #edeae2;
  --mist: rgba(237, 234, 226, 0.56);
  --faint: rgba(237, 234, 226, 0.3);
  --line: rgba(237, 234, 226, 0.1);
  --line-2: rgba(237, 234, 226, 0.16);
  --tg: #2aabee;
  --r-card: 34px;
  --r-opt: 16px;
  --f-display: "Tilda Sans", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-ui: "Tilda Sans", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Живой градиент Gemini — та же палитра, что на визитке. 11 стопов намеренно:
     на пяти на стыке цветов видна полоса. */
  --gemini-grad: linear-gradient(
    -45deg,
    #1a73e8,
    #4285f4,
    #7b6ad0,
    #9b72cb,
    #c76a9e,
    #d96570,
    #e28a45,
    #f9ab00,
    #d96570,
    #9b72cb,
    #4285f4
  );
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  background: var(--ink);
  color: var(--sand);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.45;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ---------- ambient ---------- */
.amb {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.55;
}
.amb i {
  position: absolute;
  display: block;
  border-radius: 50%;
}
.amb .b1 {
  width: 52vmax;
  height: 52vmax;
  left: -12%;
  top: -14%;
  background: radial-gradient(circle at 40% 40%, rgba(209, 224, 90, 0.42), rgba(209, 224, 90, 0) 66%);
  animation: drift1 34s ease-in-out infinite;
}
.amb .b2 {
  width: 46vmax;
  height: 46vmax;
  right: -16%;
  bottom: -18%;
  background: radial-gradient(circle at 55% 45%, rgba(42, 171, 238, 0.3), rgba(42, 171, 238, 0) 65%);
  animation: drift2 44s ease-in-out infinite;
}
.amb .b3 {
  width: 34vmax;
  height: 34vmax;
  left: 35%;
  bottom: -24%;
  background: radial-gradient(circle at 50% 50%, rgba(250, 135, 107, 0.22), rgba(250, 135, 107, 0) 64%);
  animation: drift3 52s ease-in-out infinite;
}
@keyframes drift1 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(14vw, 8vh, 0) scale(1.14);
  }
  66% {
    transform: translate3d(4vw, -8vh, 0) scale(0.94);
  }
}
@keyframes drift2 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-16vw, -10vh, 0) scale(1.18);
  }
}
@keyframes drift3 {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(10vw, -14vh, 0) scale(1.1);
  }
}
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}

/* ---------- the one window ---------- */
.card {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  height: min(700px, calc(var(--tgh, 100dvh) - 24px));
  display: flex;
  flex-direction: column;
  background: linear-gradient(178deg, var(--ink-3) 0%, var(--ink-2) 42%, #0d0d0f 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow:
    0 40px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  /* Больше воздуха по бокам: текст не должен липнуть к краю карточки. */
  padding: 20px 26px 22px;
}
.card::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(237, 234, 226, 0.28), transparent);
}

/* ---------- rail ---------- */
.rail {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 30px;
  flex: 0 0 auto;
}
.back {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}
.back:hover {
  border-color: var(--line-2);
  color: var(--sand);
}
.back[hidden] {
  visibility: hidden;
  display: grid;
}
.ticks {
  flex: 1;
  display: flex;
  gap: 4px;
  align-items: center;
  min-width: 0;
}
.ticks i {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(237, 234, 226, 0.14);
  transition:
    background 0.45s ease,
    box-shadow 0.45s ease;
}
.ticks i.on {
  background: var(--lime);
  box-shadow: 0 0 10px rgba(209, 224, 90, 0.55);
}
.ticks i.cur {
  background: var(--lime-hi);
  box-shadow: 0 0 14px rgba(220, 240, 71, 0.8);
}
.lang {
  display: flex;
  gap: 2px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}
.lang button {
  background: none;
  border: 0;
  color: var(--faint);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}
.lang button.on {
  background: rgba(237, 234, 226, 0.1);
  color: var(--sand);
}

.railtag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  flex: 0 0 auto;
  font-weight: 600;
}

/* ---------- scene ---------- */
.scene {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 18px;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}
.scene.out {
  opacity: 0;
  transform: translateY(-10px);
}
.scene.in {
  animation: enter 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
  height: 14px;
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.title {
  font-family: var(--f-display);
  font-size: 23px;
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.015em;
  min-height: calc(2 * 1.24em);
  text-wrap: balance;
  margin: 0;
}
.title em {
  font-style: normal;
  color: var(--lime);
}
.sub {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--mist);
  min-height: calc(2 * 1.45em);
  margin: 0;
}

.body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
}
.body::-webkit-scrollbar {
  display: none;
}
/* auto margins centre the group vertically and never clip when it overflows */
.body > * {
  flex: 0 0 auto;
}
.body > :first-child {
  margin-top: auto;
}
.body > :last-child {
  margin-bottom: auto;
}

.opts {
  display: grid;
  gap: 10px;
}
.opts.two {
  grid-template-columns: 1fr 1fr;
}
.opts.compact {
  gap: 8px;
}
.opts.compact .opt {
  min-height: 48px;
  padding: 10px 14px;
}
.body.scrolls {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 26px), transparent 100%);
}
.body.top > :first-child {
  margin-top: 0;
}
.body.top > :last-child {
  margin-bottom: 0;
}
.body.top {
  gap: 12px;
}

/* ---------- cabinet ---------- */
.cabstats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stat {
  padding: 9px 11px;
  background: rgba(237, 234, 226, 0.035);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stat b {
  display: block;
  font-family: var(--f-display);
  font-size: 21px;
  line-height: 1.15;
  color: var(--sand);
}
.stat span {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
}
.spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 26px;
  padding: 0 2px;
}
.spark i {
  flex: 1;
  background: rgba(209, 224, 90, 0.22);
  border-radius: 3px 3px 0 0;
  min-height: 3px;
  transition: background 0.3s;
}
.spark i.hi {
  background: rgba(209, 224, 90, 0.65);
}
.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}
.chip:hover {
  border-color: var(--line-2);
}
.chip.on {
  background: var(--lime);
  color: #0b0b0c;
  border-color: var(--lime);
}
.leads {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lead {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(237, 234, 226, 0.03);
  overflow: hidden;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.lead.open {
  border-color: rgba(209, 224, 90, 0.34);
  background: rgba(209, 224, 90, 0.05);
}
.lhead {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--sand);
  font-family: inherit;
}
.lmeta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.05em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.lname {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.lsum {
  font-size: 12.5px;
  color: var(--mist);
  line-height: 1.35;
}
.lfoot {
  display: flex;
  align-items: center;
  gap: 6px;
}
.tag {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tag.arch {
  background: rgba(209, 224, 90, 0.15);
  color: var(--lime);
}
.caret {
  margin-left: auto;
  color: var(--faint);
  font-size: 11px;
  transition: transform 0.25s;
}
.lead.open .caret {
  transform: rotate(180deg);
}
.lbody {
  padding: 0 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: enter 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 12px;
  font-size: 12.5px;
  margin: 0;
}
.kv dt {
  color: var(--faint);
  white-space: nowrap;
}
.kv dd {
  margin: 0;
  color: var(--sand);
  line-height: 1.3;
}
.tac {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(209, 224, 90, 0.07);
  border: 1px solid rgba(209, 224, 90, 0.22);
  font-size: 12.5px;
  line-height: 1.4;
}
.tac b {
  display: block;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 4px;
}
.acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.act {
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(237, 234, 226, 0.04);
  color: var(--sand);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.act:hover {
  border-color: rgba(209, 224, 90, 0.42);
}
.act.pri {
  background: var(--lime);
  color: #0b0b0c;
  border-color: var(--lime);
}
.act.tgc {
  background: var(--tg);
  color: #fff;
  border-color: var(--tg);
}
.stat-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.demo {
  position: fixed;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: rgba(11, 11, 12, 0.8);
  backdrop-filter: blur(8px);
}
.demo button {
  background: none;
  border: 0;
  color: var(--faint);
  font-family: inherit;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.demo button.on {
  background: rgba(237, 234, 226, 0.12);
  color: var(--sand);
}
.opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 14px;
  background: rgba(237, 234, 226, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--r-opt);
  color: var(--sand);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.12s;
}
.opt .dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: 0.2s;
}
.opt .lbl {
  flex: 1;
  min-width: 0;
}
.opt .hint {
  display: block;
  font-size: 11.5px;
  color: var(--faint);
  font-weight: 400;
  margin-top: 2px;
}
.opt:hover {
  border-color: rgba(209, 224, 90, 0.34);
  background: rgba(209, 224, 90, 0.05);
}
.opt:active {
  transform: scale(0.985);
}
.opt.sel {
  border-color: var(--lime);
  background: rgba(209, 224, 90, 0.1);
}
.opt.sel .dot {
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 10px rgba(209, 224, 90, 0.7);
}
.opt:focus-visible {
  outline: 2px solid var(--lime-hi);
  outline-offset: 2px;
}

/* fixed-height reveal slot — layout never shifts */
.slot {
  height: 56px;
  margin-top: 10px;
  position: relative;
}
.slot .in-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 8px;
  align-items: stretch;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}
.slot.show .in-wrap {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.fld {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: rgba(237, 234, 226, 0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--sand);
  font-family: inherit;
  font-size: 14.5px;
  padding: 0 14px;
  transition: border-color 0.2s;
}
.fld::placeholder {
  color: var(--faint);
}
.fld:focus {
  outline: none;
  border-color: rgba(209, 224, 90, 0.5);
}
.fld:disabled {
  opacity: 0.35;
}
.skip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  height: 100%;
  background: rgba(237, 234, 226, 0.035);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--mist);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}
.skip .box {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--ink);
  transition: 0.2s;
}
.skip.on {
  border-color: var(--lime);
  color: var(--sand);
}
.skip.on .box {
  background: var(--lime);
  border-color: var(--lime);
}

/* ---------- footer ---------- */
.foot {
  flex: 0 0 auto;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cta {
  position: relative;
  overflow: hidden;
  height: 54px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--lime);
  color: #0b0b0c;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 38px -12px rgba(209, 224, 90, 0.55);
  transition:
    transform 0.14s,
    box-shadow 0.2s,
    opacity 0.2s;
}
.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: sweep 4.6s ease-in-out infinite;
}
@keyframes sweep {
  0%,
  62% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}
.cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 46px -12px rgba(209, 224, 90, 0.65);
}
.cta:active {
  transform: scale(0.985);
}
.cta[disabled] {
  opacity: 0.28;
  box-shadow: none;
  cursor: default;
  transform: none;
}
.cta[disabled]::after {
  display: none;
}
.cta.tg {
  background: linear-gradient(110deg, #2aabee, #3ab6f0, #1fa0e2, #2aabee);
  background-size: 300% 100%;
  color: #fff;
  animation: gmove 9s linear infinite;
  box-shadow: 0 14px 38px -12px rgba(42, 171, 238, 0.55);
}
@keyframes gmove {
  to {
    background-position: 300% 0;
  }
}
.ghost {
  height: 40px;
  width: 100%;
  background: none;
  border: 0;
  color: var(--faint);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}
.ghost:hover {
  color: var(--mist);
}
.note {
  font-size: 11px;
  color: var(--faint);
  text-align: center;
  line-height: 1.35;
  min-height: 15px;
}

/* ---------- ceremonial screens ---------- */
.cer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  text-align: left;
}
.mark {
  font-family: var(--f-display);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 400;
}
.big {
  font-family: var(--f-display);
  font-size: clamp(29px, 7.1vw, 38px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.big span {
  color: var(--lime);
}
.lede {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--mist);
  margin: 0;
  max-width: 38ch;
}
.sig {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}
.sig .av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: 0 0 38px;
  background: linear-gradient(140deg, #2b2b30, #141417);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--lime);
}
.sig .who {
  font-size: 12.5px;
  line-height: 1.35;
}
.sig .who b {
  display: block;
  font-weight: 600;
  font-size: 13px;
}
.sig .who i {
  font-style: normal;
  color: var(--faint);
}
.meta {
  display: flex;
  gap: 16px;
  padding-top: 2px;
}
.meta div {
  font-size: 11px;
  color: var(--faint);
  line-height: 1.3;
}
.meta b {
  display: block;
  color: var(--sand);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--f-display);
}

/* archetype card */
.arch {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.arch .glyph {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(209, 224, 90, 0.22), rgba(209, 224, 90, 0.04));
  border: 1px solid rgba(209, 224, 90, 0.32);
  font-size: 28px;
}
.rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 2px;
}
.row {
  padding: 12px 14px;
  background: rgba(237, 234, 226, 0.035);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.row span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  margin-bottom: 5px;
}
.row p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.42;
  color: var(--sand);
}
.ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px dashed rgba(209, 224, 90, 0.35);
  border-radius: 14px;
  background: rgba(209, 224, 90, 0.05);
}
.ticket span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
}
.ticket b {
  font-family: var(--f-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.cur {
  display: flex;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 10px;
  width: fit-content;
}
.cur button {
  background: none;
  border: 0;
  color: var(--faint);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
}
.cur button.on {
  background: var(--lime);
  color: #0b0b0c;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.05ms !important;
  }
}
@media (max-height: 660px) {
  .title {
    font-size: 21px;
  }
  .card {
    padding: 16px;
  }
  .opt {
    min-height: 48px;
    padding: 10px 13px;
    font-size: 14px;
  }
  .scene {
    padding-top: 12px;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   ПОРТРЕТ ПОКУПАТЕЛЯ — оффер на финале анкеты + экраны полного теста (app-4.js)
   ══════════════════════════════════════════════════════════════════════════ */

/* ---------- оффер и живая кнопка ---------- */
.deep {
  margin-top: 22px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(209, 224, 90, 0.09), transparent 62%),
    rgba(237, 234, 226, 0.028);
  position: relative;
  overflow: hidden;
}
.deep::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(120deg, transparent 20%, rgba(209, 224, 90, 0.5), transparent 80%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  animation: deepEdge 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes deepEdge {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.7;
  }
}
.deep-cap {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime-hi);
  margin-bottom: 8px;
}
.deep-ttl {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-size: 21px;
  line-height: 1.14;
  font-weight: 400;
  color: var(--sand);
}
.deep-txt {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--mist);
}
.deep-note {
  margin-top: 9px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--faint);
  text-align: center;
}
.deep-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(100deg, var(--lime), var(--lime-hi) 55%, var(--lime));
  background-size: 200% 100%;
  color: #0b0b0c;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 34px -14px rgba(209, 224, 90, 0.75);
  animation:
    deepPulse 2.9s ease-in-out infinite,
    deepFlow 7s linear infinite;
  transition: transform 0.14s;
}
.deep-cta:active {
  transform: scale(0.985);
}
.deep-shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 42%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: deepSweep 3.4s ease-in-out infinite;
  pointer-events: none;
}
.deep-arr {
  font-size: 17px;
  transform: translateX(0);
  animation: deepArrow 2.2s ease-in-out infinite;
}
@keyframes deepPulse {
  0%,
  100% {
    box-shadow: 0 14px 34px -14px rgba(209, 224, 90, 0.75);
  }
  50% {
    box-shadow:
      0 14px 44px -10px rgba(209, 224, 90, 0.95),
      0 0 0 6px rgba(209, 224, 90, 0.08);
  }
}
@keyframes deepFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
@keyframes deepSweep {
  0% {
    left: -60%;
  }
  55%,
  100% {
    left: 130%;
  }
}
@keyframes deepArrow {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .deep-cta,
  .deep-shine,
  .deep-arr,
  .deep::before {
    animation: none;
  }
}

/* ---------- экраны теста ---------- */
.dt-bot {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 14px;
}
.dt-ava {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #0b0b0c;
  background: var(--lime);
}
.dt-say {
  font-size: 13px;
  line-height: 1.45;
  color: var(--mist);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  background: rgba(237, 234, 226, 0.03);
}
.dt-em {
  flex: 0 0 auto;
  width: 26px;
  text-align: center;
  font-size: 17px;
  line-height: 1;
}

/* ползунки */
.dt-slide {
  padding: 6px 2px 2px;
}
.dt-val {
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1;
  color: var(--lime-hi);
  text-align: center;
  margin-bottom: 14px;
}
.dt-range {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(237, 234, 226, 0.14);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.dt-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  border: 0;
  box-shadow: 0 6px 18px -6px rgba(209, 224, 90, 0.9);
  cursor: pointer;
}
.dt-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lime);
  border: 0;
  cursor: pointer;
}
.dt-hint,
.dt-ends {
  margin-top: 10px;
  font-size: 12px;
  color: var(--faint);
  text-align: center;
}
.dt-ends {
  display: flex;
  justify-content: space-between;
}

/* результат */
.dt-truth {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--lime-hi);
}
.dt-card {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(237, 234, 226, 0.03);
}
.dt-cap {
  margin: 0 0 10px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.dt-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}
.dt-bar span {
  flex: 0 0 92px;
  font-size: 12px;
  color: var(--mist);
}
.dt-bar i {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(237, 234, 226, 0.07);
  overflow: hidden;
}
.dt-bar b {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime-hi), var(--lime));
  animation: dtGrow 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes dtGrow {
  from {
    width: 0 !important;
  }
}
.dt-row {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.dt-row:first-of-type {
  border-top: 0;
}
.dt-k {
  flex: 0 0 96px;
  color: var(--faint);
}
.dt-v {
  flex: 1;
  color: var(--sand);
}
.dt-ins {
  border-color: rgba(172, 137, 201, 0.4);
  background: rgba(172, 137, 201, 0.08);
}
.dt-ins .dt-cap {
  color: #c9a9e2;
}
.dt-i {
  margin: 0 0 7px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(237, 234, 226, 0.85);
}
.dt-req {
  border-color: rgba(209, 224, 90, 0.32);
  background: rgba(209, 224, 90, 0.06);
}
.dt-reqtext {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--sand);
}
.dt-tool {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.dt-num {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: #0b0b0c;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dt-tool b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--sand);
}
.dt-tool i {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-style: normal;
  color: var(--faint);
  line-height: 1.35;
}

/* ══════════════════════════════════════════════════════════════════════════
   ЖИВОЙ ГРАДИЕНТ GEMINI — тот же приём, что на визитке: размытый слой из 11
   стопов, растянутый до 600%, ездит по background-position. В покое погашен,
   оживает на нажатии и на выбранном варианте.
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes gslide {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.g-host {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.g-host::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: var(--gemini-grad);
  background-size: 600% 600%;
  filter: blur(18px);
  opacity: 0;
  transition: opacity 0.28s ease;
  animation: gslide 22s ease infinite;
  animation-play-state: paused;
  pointer-events: none;
}
@media (hover: hover) {
  .g-host:hover::before {
    opacity: 0.85;
    animation-play-state: running;
  }
}
.g-host:active::before,
.g-host:focus-visible::before {
  opacity: 1;
  animation-play-state: running;
}
/* Выбранный вариант держит градиент постоянно — видно, где ты уже был. */
.opt.sel::before {
  opacity: 0.5;
  animation-play-state: running;
}
.cta::before,
.deep-cta::before {
  filter: blur(22px);
}

/* ══════════════════════════════════════════════════════════════════════════
   ПРОГРЕСС-БАТАРЕЯ — canvas с визитки: ячейки заливаются, по заряду бежит блик.
   ══════════════════════════════════════════════════════════════════════════ */
.batt {
  display: block;
  width: 100%;
  height: 26px;
}
/* Батарея — отдельной строкой под рейкой, во всю ширину карточки: в самой
   рейке ей остаётся 70 пикселей, и ячейки читаются какточки. */
.rail {
  flex-wrap: wrap;
}
.rail .ticks {
  order: 10;
  flex: 0 0 100%;
  width: 100%;
  margin-top: 10px;
  height: 12px;
}
.rail .batt {
  width: 100%;
  height: 12px;
}

/* ══════════════════════════════════════════════════════════════════════════
   ЗАСТАВКА — логотип на чёрном: плавно проявился, подержался, погас вместе с фоном
   ══════════════════════════════════════════════════════════════════════════ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  animation: splashFade 2.6s ease forwards;
  pointer-events: none;
}
.sp-logo {
  width: min(132px, 34vw);
  height: auto;
  opacity: 0;
  transform: scale(0.94);
  animation: logoFade 2.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes logoFade {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  26% {
    opacity: 1;
    transform: scale(1);
  }
  66% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.01);
  }
}
@keyframes splashFade {
  0%,
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  .splash {
    animation: splashFade 1.2s ease forwards;
  }
  .sp-logo {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   ВАРИАНТЫ ОТВЕТА: иконка, подпись цены, погашенный вариант
   ══════════════════════════════════════════════════════════════════════════ */
.opt .ico {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  border-radius: 10px;
  background: rgba(237, 234, 226, 0.06);
  border: 1px solid var(--line);
}
.opt.sel .ico {
  background: rgba(209, 224, 90, 0.16);
  border-color: rgba(209, 224, 90, 0.4);
}
.opt .from {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0.01em;
}
.opt.sel .from {
  color: rgba(209, 224, 90, 0.85);
}
.opt.off {
  opacity: 0.42;
  cursor: not-allowed;
}
.opt.off .ico {
  filter: grayscale(1);
}
.opt.off .from {
  color: #e08a7a;
}
.opt.off::before {
  display: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   КУРС ПОД БЮДЖЕТОМ — живой курс MoneyShop
   ══════════════════════════════════════════════════════════════════════════ */
.rate {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  text-align: center;
}
.rate b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--lime-hi);
}
.rate i {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-style: normal;
  color: var(--faint);
}
