/* LifeSEO — главная и страницы ролей (/earn, /advertise, /partners): тёмная тема, двухцветные
   заголовки, макеты Telegram на HTML. Кабинет, админка и документация живут на site.css. */

@property --i {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@property --e {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

:root {
  color-scheme: dark;
  --bg: #08090b;
  --l1: #101114;
  --l2: #17181c;
  --l3: #212328;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --sep: rgba(84, 84, 88, 0.45);
  --t1: #f3f2ee;
  --t2: #a6a9b0;
  --t3: #80858f;
  /* Акцент — золото логотипа; зелёный — только деньги */
  --accent: #dcbf86;
  --accent-soft: rgba(220, 191, 134, 0.12);
  --money: #57d39b;
  --money-soft: rgba(87, 211, 155, 0.1);
  --tg-out: #2b5c8f;
  --tg-in: #1c1c1e;
  --tg-link: #64aef5;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-logo: "Unbounded", "Manrope", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: 1140px;
  --hd: 64px;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--t1);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

img {
  display: block;
}

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

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

em {
  font-style: normal;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--l3);
  color: var(--t1);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.money {
  color: var(--money);
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--t1);
  color: #000;
  font-weight: 700;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ── Шапка ─────────────────────────────────────────────── */

.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 11, 0.8);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.hd.is-scrolled {
  border-bottom-color: var(--line);
}

.hd__in {
  height: var(--hd);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand--sm {
  font-size: 13px;
}

.brand--sm img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.hd__nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}

.hd__nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
  transition: color 0.15s, background 0.15s;
}

.hd__nav a:hover,
.hd__nav a[aria-current="page"] {
  color: var(--t1);
  background: var(--l1);
}

.hd__act {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hd__auth {
  display: flex;
  align-items: center;
}

/* Кнопку «Войти» и чип пользователя рисует site.js */
.hd__auth .btn {
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 11px;
  background: var(--t1);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s, transform 0.15s;
}

.hd__auth .btn:hover {
  background: #fff;
}

.hd__auth .btn:active {
  transform: scale(0.97);
}

.hd__auth .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  padding: 4px 12px 4px 4px;
  border-radius: 12px;
  background: var(--l1);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 600;
}

.user-chip:hover {
  background: var(--l2);
}

.user-chip__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  object-fit: cover;
  display: inline-grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}

.burger {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--l1);
  box-shadow: inset 0 0 0 1px var(--line);
}

.mnav {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--hd);
  padding: 8px 16px 16px;
  background: rgba(8, 9, 11, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  animation: drop 0.25s var(--ease);
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.mnav__list {
  display: grid;
  border-radius: 14px;
  background: var(--l1);
  overflow: hidden;
}

.mnav__list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.mnav__list a + a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  border-top: 0.5px solid var(--sep);
}

.mnav__list a:active {
  background: var(--l2);
}

/* ── Типографика ───────────────────────────────────────── */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--t3);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.eyebrow__n {
  color: var(--t2);
}

.eyebrow__n::after {
  content: "·";
  margin-left: 8px;
  color: var(--t3);
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.03;
}

h2 {
  font-size: clamp(30px, 3.7vw, 44px);
  line-height: 1.06;
}

/* Вторая строка заголовка — серая */
h1 span,
h2 span:not([data-share]) {
  display: block;
  color: var(--t3);
}

h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.lead {
  max-width: 560px;
  margin-top: 20px;
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.55;
  color: var(--t2);
  text-wrap: pretty;
}

.lead b {
  color: var(--t1);
  font-weight: 700;
}

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

.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 52% at 76% 40%, rgba(220, 191, 134, 0.08), transparent 70%),
    radial-gradient(80% 60% at 50% 0%, #111216 0%, transparent 70%);
  pointer-events: none;
}

.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 56px;
  align-items: center;
  min-height: min(calc(100svh - var(--hd)), 760px);
  padding: 48px 0 72px;
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 32px;
}

.role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding: 10px 14px 10px 16px;
  border-radius: 16px;
  background: var(--l2);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: left;
  transition: background 0.2s, transform 0.2s var(--ease);
}

.role:hover {
  background: #1e2025;
}

.role:active {
  transform: scale(0.98);
}

.role small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--t3);
}

.role b {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.role .i {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  color: var(--t3);
  transition: transform 0.2s var(--ease);
}

.role:hover .i {
  transform: translate(2px, -2px);
}

.roles--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 620px;
}

.role--primary {
  background: var(--t1);
  color: #000;
  box-shadow: none;
}

.role--primary:hover {
  background: #fff;
}

.role--primary small,
.role--primary .i {
  color: rgba(0, 0, 0, 0.55);
}

.role[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--sep);
  max-width: 600px;
}

.stats li {
  flex: 1 1 0;
  min-width: 0;
  padding-right: 20px;
}

.stats li + li {
  padding-left: 20px;
  border-left: 1px solid var(--sep);
}

.stats b {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stats small {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--t3);
}

.stats .money {
  color: var(--money);
}

/* ── Лента «Путь одного задания» / «LifeSEO сейчас» ────── */

.feedbox {
  --step: 88px;
  position: relative;
  height: 460px;
}

/* Кольца позади ленты — медленно «дышат» */
.feedbox::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.012), 0 0 0 140px rgba(255, 255, 255, 0.008);
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes breathe {
  50% {
    transform: scale(1.06);
    opacity: 0.6;
  }
}

.feedbox__label {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t3);
}

.feedbox__label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.feedbox[data-mode="live"] .feedbox__label i {
  background: var(--money);
  animation: blink 1.6s infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.feed {
  position: absolute;
  left: 0;
  right: 0;
  top: 40px;
  height: 420px;
  -webkit-mask-image: linear-gradient(#000 66%, transparent);
  mask-image: linear-gradient(#000 66%, transparent);
}

.note {
  --e: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-radius: 20px;
  background: rgba(36, 37, 41, 0.8);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 14px 30px rgba(0, 0, 0, 0.45);
  transform: translateY(calc(var(--i) * var(--step) - var(--e) * 24px)) scale(calc(1 - var(--i) * 0.04));
  opacity: calc((1 - var(--i) * 0.24) * (1 - var(--e)));
  transition: transform 0.7s var(--ease), opacity 0.6s var(--ease);
}

/* Порядок в ленте: новое сверху, старое уходит вниз и тускнеет */
.note--0 {
  --i: 0;
  z-index: 4;
  animation: story0 3.4s var(--ease) both;
}

.note--1 {
  --i: 1;
  z-index: 3;
  animation: story1 3.4s var(--ease) both;
}

.note--2 {
  --i: 2;
  z-index: 2;
  animation: story2 3.4s var(--ease) both;
}

.note--3 {
  --i: 3;
  z-index: 1;
  animation: story3 3.4s var(--ease) both;
}

/* История одного задания по порядку: каждое новое событие сдвигает прежние вниз */
@keyframes story3 {
  0%,
  9% {
    --i: 0;
    --e: 1;
  }
  20%,
  32% {
    --i: 0;
    --e: 0;
  }
  44%,
  56% {
    --i: 1;
  }
  68%,
  79% {
    --i: 2;
  }
  91%,
  100% {
    --i: 3;
  }
}

@keyframes story2 {
  0%,
  32% {
    --i: 0;
    --e: 1;
  }
  44%,
  56% {
    --i: 0;
    --e: 0;
  }
  68%,
  79% {
    --i: 1;
  }
  91%,
  100% {
    --i: 2;
  }
}

@keyframes story1 {
  0%,
  56% {
    --i: 0;
    --e: 1;
  }
  68%,
  79% {
    --i: 0;
    --e: 0;
  }
  91%,
  100% {
    --i: 1;
  }
}

@keyframes story0 {
  0%,
  79% {
    --i: 0;
    --e: 1;
  }
  91%,
  100% {
    --i: 0;
    --e: 0;
  }
}

.note--live {
  animation: none;
}

.note__ic {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--l3);
  color: var(--t1);
}

.note__ic .i {
  width: 21px;
  height: 21px;
}

.note__ic--money {
  background: var(--money-soft);
  color: var(--money);
}

.note__ic img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.note__body {
  flex: 1;
  min-width: 0;
}

.note__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}

.note__top b {
  font-weight: 700;
  color: var(--t2);
}

.note__top small {
  flex: none;
  font-size: 12px;
  color: var(--t3);
}

.note strong {
  display: block;
  margin-top: 1px;
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note__sub {
  display: block;
  margin-top: 1px;
  font-size: 14px;
  color: var(--t2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.note__sub.money {
  color: var(--money);
}

/* ── Разделы ───────────────────────────────────────────── */

.sec {
  padding: 104px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--hd);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}

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

.card {
  padding: 22px 22px 24px;
  border-radius: 18px;
  background: var(--l1);
  box-shadow: inset 0 0 0 1px var(--line);
}

.card h3 {
  margin-top: 16px;
}

.card p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--t2);
}

.card__ic {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: var(--l3);
  color: var(--t1);
}

.card__ic--money {
  background: var(--money-soft);
  color: var(--money);
}

.wide {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(220, 191, 134, 0.07), transparent 60%), var(--l1);
  box-shadow: inset 0 0 0 1px rgba(220, 191, 134, 0.22);
  transition: box-shadow 0.2s, transform 0.2s var(--ease);
}

.wide:hover {
  box-shadow: inset 0 0 0 1px rgba(220, 191, 134, 0.4);
}

.wide__logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.wide__text {
  flex: 1;
  min-width: 0;
}

.wide__text b {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.wide__text small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--t3);
}

.wide .i {
  color: var(--accent);
}

/* ── Как это работает: вкладки по ролям ────────────────── */

.tabs {
  display: inline-flex;
  gap: 4px;
  margin-top: 36px;
  padding: 4px;
  border-radius: 14px;
  background: var(--l1);
  box-shadow: inset 0 0 0 1px var(--line);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs__tab {
  flex: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--t2);
  transition: background 0.2s, color 0.2s;
}

.tabs__tab:hover {
  color: var(--t1);
}

.tabs__tab[aria-selected="true"] {
  background: var(--t1);
  color: #000;
}

.tabs__short {
  display: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  counter-reset: step;
}

.steps--static {
  margin-top: 44px;
}

.step {
  position: relative;
  padding: 20px 20px 22px;
  border-radius: 18px;
  background: var(--l1);
  box-shadow: inset 0 0 0 1px var(--line);
  animation: fade 0.45s var(--ease);
}

/* Тонкая линия между шагами */
.step + .step::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 37px;
  width: 12px;
  border-top: 1px solid var(--line-2);
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step__n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--l3);
  font-size: 13px;
  font-weight: 800;
  color: var(--t2);
}

.step:last-child .step__n {
  background: var(--accent);
  color: #000;
}

.step p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--t2);
}

/* ── Сцены с макетами ──────────────────────────────────── */

.scene__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 72px;
  align-items: center;
}

.scene--flip .scene__in {
  grid-template-columns: 400px minmax(0, 1fr);
}

.scene--flip .scene__copy {
  order: 2;
}

.scene--code .scene__in {
  grid-template-columns: minmax(0, 1fr) 480px;
}

.points {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 520px;
}

.points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--t2);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--t3);
}

.points b {
  color: var(--t1);
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--l1);
  box-shadow: inset 0 0 0 1px var(--line);
}

.pill b {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pill small {
  font-size: 14px;
  color: var(--t3);
}

.more {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--t1);
}

.more .i {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
  color: var(--t3);
  transition: transform 0.2s var(--ease);
}

.more:hover .i {
  transform: translate(2px, -2px);
}

.scene__act {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 13px;
  background: var(--l2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s var(--ease);
}

.btn:hover {
  background: #1e2025;
}

.btn:active {
  transform: scale(0.98);
}

.btn--light {
  background: var(--t1);
  color: #000;
  box-shadow: none;
}

.btn--light:hover {
  background: #fff;
}

/* ── Макет Telegram (тёмная тема iOS) ──────────────────── */

.mock {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px rgba(0, 0, 0, 0.55);
}

.mock__grip {
  position: absolute;
  z-index: 2;
  top: 7px;
  left: 50%;
  width: 36px;
  height: 5px;
  margin-left: -18px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.22);
}

.tg__nav {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 16px 12px 8px;
  background: #161618;
  border-bottom: 0.5px solid var(--sep);
}

.tg__back {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
  color: var(--tg-link);
}

.tg__title {
  text-align: center;
  line-height: 1.2;
}

.tg__title b {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.tg__title small {
  font-size: 13px;
  color: var(--t3);
}

.tg__ava {
  justify-self: end;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.tg__ava--bot {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #3d7ab8, #24476e);
  color: #fff;
}

.tg__ava--bot .i {
  width: 19px;
  height: 19px;
}

.tg__chat {
  padding: 12px 10px 14px;
  background: #000;
}

.tg__service {
  width: max-content;
  max-width: 100%;
  margin: 2px auto 12px;
  padding: 4px 11px;
  border-radius: 12px;
  background: var(--l2);
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
}

.tg__service--stat {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 10px auto 0;
  font-weight: 500;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--money);
}

.tg__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: 88%;
  margin-bottom: 8px;
}

.tg__row--out {
  align-items: flex-end;
  margin-left: auto;
}

.tg__row--kb {
  width: 88%;
}

.tg__msg {
  max-width: 100%;
  padding: 7px 11px 6px;
  border-radius: 18px;
  background: var(--tg-in);
  font-size: 15px;
  line-height: 1.33;
  color: #f2f2f7;
}

.tg__row--kb .tg__msg {
  width: 100%;
  border-radius: 18px 18px 6px 6px;
}

.tg__msg p + p {
  margin-top: 6px;
}

.tg__msg b {
  font-weight: 700;
}

.tg__h {
  display: block;
}

.tg__msg--out {
  background: var(--tg-out);
}

.tg__meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  float: right;
  margin: 7px 0 -3px 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--t3);
}

.tg__msg--out .tg__meta {
  color: rgba(255, 255, 255, 0.62);
}

.tg__ticks {
  width: 16px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tg__kb {
  display: flex;
  gap: 2px;
  width: 100%;
}

.tg__kb span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  border-radius: 6px;
  background: var(--tg-in);
  font-size: 14px;
  font-weight: 600;
  color: #f2f2f7;
}

.tg__kb:last-child span:first-child {
  border-bottom-left-radius: 18px;
}

.tg__kb:last-child span:last-child {
  border-bottom-right-radius: 18px;
}

.tg__kb .i {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
  color: var(--t3);
}

.tg__msg--photo {
  width: 232px;
  padding: 3px 3px 6px;
}

.tg__caption {
  display: block;
  padding: 6px 8px 0;
}

/* Скриншот отзыва на картах — нарисован, а не картинкой */
.shot {
  display: block;
  padding: 14px 14px 16px;
  border-radius: 15px 15px 6px 6px;
  background: #f4f3ef;
}

.shot__bar {
  display: block;
  width: 46%;
  height: 9px;
  border-radius: 5px;
  background: #cfd2d8;
}

.shot__stars {
  display: block;
  margin-top: 12px;
  font-size: 22px;
  letter-spacing: 3px;
  line-height: 1;
  color: #e3a929;
}

.shot__line {
  display: block;
  height: 7px;
  margin-top: 10px;
  border-radius: 4px;
  background: #dcdee3;
}

.shot__line--short {
  width: 62%;
  margin-top: 7px;
}

.tg__compose {
  padding: 8px 12px 10px;
  background: #161618;
  border-top: 0.5px solid var(--sep);
}

.tg__compose span {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  background: #000;
  box-shadow: inset 0 0 0 0.5px var(--sep);
  font-size: 15px;
  color: var(--t3);
}

/* ── Макет кода ────────────────────────────────────────── */

.code {
  max-width: 520px;
  background: #0c0d10;
}

.code__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #121317;
}

.code__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--l3);
}

.code__bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--t3);
}

.code pre {
  margin: 0;
  padding: 18px 20px 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: #d9d8d3;
}

.code .c {
  color: var(--t3);
}

.code .k {
  color: var(--accent);
}

.code .s {
  color: #9db6d6;
}

/* ── Тарифы ────────────────────────────────────────────── */

.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}

.price {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  border-radius: 18px;
  background: var(--l1);
  box-shadow: inset 0 0 0 1px var(--line);
}

.price h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.price__val {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 22px;
}

.price__val small {
  font-size: 14px;
  font-weight: 600;
  color: var(--t3);
}

.price__val b {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.price__unit {
  margin-top: 4px;
  font-size: 14px;
  color: var(--t3);
}

.price__note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--t2);
}

.price--partner {
  background: linear-gradient(160deg, rgba(87, 211, 155, 0.07), transparent 55%), var(--l1);
  box-shadow: inset 0 0 0 1px rgba(87, 211, 155, 0.3);
}

.pay-line {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--t3);
}

/* ── Карточки статей: раздел «Статьи» и страницы ролей ── */

.gcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.gcard {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: var(--l1);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.2s, box-shadow 0.2s;
}

.gcard:hover {
  background: var(--l2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.gcard small {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t3);
}

.gcard b {
  display: block;
  margin-top: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.gcard p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--t2);
}

.gcard__go {
  display: flex;
  margin-top: auto;
  padding-top: 18px;
}

.gcard .i {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  color: var(--t3);
  transition: color 0.2s, transform 0.2s var(--ease);
}

.gcard:hover .i {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.sec .gcards {
  margin-top: 40px;
}

/* ── Частые вопросы ────────────────────────────────────── */

.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin-top: 40px;
}

.faq details {
  border-radius: 16px;
  background: var(--l1);
  box-shadow: inset 0 0 0 1px var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--t3);
  border-bottom: 2px solid var(--t3);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq details p {
  max-width: 720px;
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--t2);
}

/* ── Макет кампании в кабинете ─────────────────────────── */

.mock.app {
  background: var(--l1);
}

.app__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 0.5px solid var(--sep);
}

.app__head b {
  font-size: 15px;
  font-weight: 700;
}

.app__head small {
  font-size: 13px;
  color: var(--t3);
}

.app__body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.camp {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.camp b {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.camp small {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  color: var(--t3);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--l3);
  font-size: 12px;
  font-weight: 700;
  color: var(--t2);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.bars {
  display: block;
  width: 100%;
  height: auto;
}

.bars line {
  stroke: var(--line-2);
}

.bars rect {
  fill: var(--accent);
  opacity: 0.85;
}

.bars rect:last-of-type {
  opacity: 1;
}

.progress {
  height: 6px;
  border-radius: 3px;
  background: var(--l3);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
}

.progress__82 {
  width: 82%;
}

.camp__nums {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--t3);
}

.camp__nums b {
  color: var(--t1);
  font-weight: 700;
}

.app__note {
  display: grid;
  gap: 2px;
  margin: 0 18px 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--l2);
}

.app__note small {
  font-size: 13px;
  color: var(--t3);
}

.app__note b {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app__note .money {
  color: var(--money);
}

/* ── Финал ─────────────────────────────────────────────── */

.final {
  padding: 112px 0 120px;
  border-top: 1px solid var(--line);
  text-align: center;
  background: radial-gradient(50% 70% at 50% 100%, rgba(220, 191, 134, 0.07), transparent 70%);
}

.final .lead {
  margin-inline: auto;
}

.roles--final {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}

.roles--final .role {
  min-width: 260px;
}

.login-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--t2);
}

.login-note.error-text {
  color: #ef8f7e;
}

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

.ft {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
}

.ft__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.ft__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--t2);
}

.ft__links a:hover {
  color: var(--t1);
}

.ft__copy {
  margin-left: auto;
  font-size: 13px;
  color: var(--t3);
}

/* ── Появление разделов при прокрутке (только если есть JS) ── */

.js .rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .is-on .rv,
.js .rv.is-on {
  opacity: 1;
  transform: none;
}

.js .is-on .rv:nth-child(2) {
  transition-delay: 0.05s;
}

.js .is-on .rv:nth-child(3) {
  transition-delay: 0.1s;
}

.js .is-on .rv:nth-child(4) {
  transition-delay: 0.15s;
}

.js .is-on .rv:nth-child(5) {
  transition-delay: 0.2s;
}

.js .is-on .rv:nth-child(6) {
  transition-delay: 0.25s;
}

/* ── Узкие экраны ──────────────────────────────────────── */

@media (max-width: 1199px) {
  .roles {
    grid-template-columns: 1fr 1fr;
  }

  .roles .role--primary {
    grid-column: 1 / -1;
  }

  .roles--two .role--primary {
    grid-column: auto;
  }
}

@media (max-width: 1080px) {
  .hd__nav {
    display: none;
  }

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

  .burger {
    display: grid;
  }

  .scene__in,
  .scene--flip .scene__in,
  .scene--code .scene__in {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
  }

  .scene--code .scene__in {
    grid-template-columns: minmax(0, 1fr) 420px;
  }

  .scene--flip .scene__in {
    grid-template-columns: 360px minmax(0, 1fr);
  }

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

  .step:nth-child(odd)::before {
    display: none;
  }
}

@media (max-width: 860px) {
  .hero__in {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: 0;
    padding: 36px 0 64px;
  }

  .stats {
    max-width: none;
  }

  .feedbox {
    --step: 80px;
    height: 400px;
    max-width: 560px;
  }

  .feed {
    height: 360px;
  }

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

  .hero .mock {
    margin-inline: 0;
  }

  .scene__in,
  .scene--flip .scene__in,
  .scene--code .scene__in {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .scene--flip .scene__copy {
    order: 0;
  }

  .sec {
    padding: 80px 0;
  }
}

@media (max-width: 600px) {
  .shell {
    width: calc(100% - 32px);
  }

  .hd__in {
    gap: 12px;
  }

  .user-chip__name {
    display: none;
  }

  .user-chip {
    padding: 4px;
  }

  .hero__in {
    padding: 28px 0 56px;
  }

  .roles {
    grid-template-columns: 1fr;
  }

  .stats li {
    padding-right: 12px;
  }

  .stats li + li {
    padding-left: 12px;
  }

  .stats b {
    font-size: 21px;
  }

  .stats small {
    font-size: 12px;
  }

  .note {
    padding: 11px 13px;
    border-radius: 18px;
  }

  .note__ic {
    width: 38px;
    height: 38px;
  }

  .note strong {
    font-size: 15px;
  }

  .note__sub {
    font-size: 13px;
  }

  .feedbox {
    --step: 76px;
    height: 350px;
  }

  .feed {
    height: 310px;
  }

  .feedbox::before {
    width: 320px;
    height: 320px;
    margin: -160px 0 0 -160px;
  }

  .cards,
  .prices,
  .steps {
    grid-template-columns: 1fr;
  }

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

  .faq summary {
    padding: 16px;
    font-size: 15px;
  }

  .faq details p {
    padding: 0 16px 16px;
  }

  .step::before {
    display: none;
  }

  .tabs {
    display: flex;
    width: 100%;
  }

  .tabs__tab {
    flex: 1 1 0;
    padding: 10px 8px;
  }

  .tabs__long {
    display: none;
  }

  .tabs__short {
    display: inline;
  }

  .sec {
    padding: 64px 0;
  }

  .final {
    padding: 72px 0 80px;
  }

  .roles--final .role {
    min-width: 0;
    width: 100%;
  }

  .ft__copy {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .rv {
    opacity: 1;
    transform: none;
  }
}
