/* ============================================================
   bartly.club v2 — «Колода клуба». Dark-premium, живой интерактив.
   Токены 1:1 с приложением (DesignSystem/Theme.swift).
   ============================================================ */

:root {
  --bg: #08080A;
  --bg-elevated: #0E0E11;
  --surface: #131316;
  --surface-elevated: #1B1B1F;
  --border: #26262B;
  --border-strong: #3A3A40;
  --text: #F2F2F4;
  --muted: #8A8A90;
  --faint: #525258;
  --accent: #5549FF;
  --accent-deep: #4035CC;

  --sans: 'Golos Text', -apple-system, system-ui, sans-serif;
  --display: 'Unbounded', var(--sans);

  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; }

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

/* Зерно поверх всего — печатная фактура вместо «плоского» чёрного. */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 999;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ CURSOR ============ */

.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; pointer-events: none; z-index: 1000; position: fixed; top: 0; left: 0; }
  .cursor__dot,
  .cursor__ring {
    position: fixed; top: 0; left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
  }
  .cursor__dot { width: 6px; height: 6px; background: var(--text); }
  .cursor__ring {
    width: 34px; height: 34px;
    border: 1px solid var(--border-strong);
    transition: width .3s var(--ease), height .3s var(--ease),
                border-color .3s, background-color .3s;
  }
  .cursor.is-active .cursor__ring {
    width: 56px; height: 56px;
    border-color: var(--accent);
    background: rgba(85, 73, 255, .08);
  }
}

/* ============ NAV ============ */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--pad);
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 8, 10, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__mark {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 20px; letter-spacing: -.03em;
}
.nav__glyph { display: inline-flex; color: var(--text); }
.nav__glyph .mark-svg { width: 24px; height: auto; display: block; }
.nav__links {
  display: flex; gap: 22px;
  margin-left: auto;
  font-size: 14px; color: var(--muted);
}
.nav__links a { transition: color .25s; }
.nav__links a:hover { color: var(--text); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  white-space: nowrap;
}
.chip__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(85, 73, 255, .5); }
  50%      { box-shadow: 0 0 0 5px rgba(85, 73, 255, 0); }
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: 120px var(--pad) 60px;
}

.hero__eyebrow,
.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero__title {
  margin-top: 24px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(27px, 3.7vw, 56px);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero__title .line { display: block; }
.hero__title em {
  font-style: normal;
  color: var(--accent);
}
/* Сердечко после «выгодных» — фирменный SVG (красная плашка #FF4747,
   белое сердце), по вертикальному центру строки. */
.glyph-heart {
  display: inline-flex;
  vertical-align: middle;
  margin-top: -.12em; /* оптическая компенсация: caps-строка без нижних выносных */
}
.glyph-heart .heart-frame { width: .82em; height: .82em; }

.hero__sub {
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--muted);
}

.hero__cta {
  margin-top: 38px;
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
  border-radius: 999px;
  padding: 14px 28px;
  transition: background .25s, color .25s, box-shadow .3s;
  will-change: transform;
}
.btn--accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 34px -10px rgba(85, 73, 255, .6);
}
.btn--accent:hover { background: var(--accent-deep); }
.btn--ghost { background: var(--surface-elevated); color: var(--text); border: 1px solid var(--border-strong); }
.btn--ghost:hover { background: #26262B; }

/* Стаггер появления hero. */
.reveal-load {
  opacity: 0;
  transform: translateY(26px);
  animation: rise .9s var(--ease) forwards;
  animation-delay: calc(var(--d) * 130ms + 100ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---- Колода ---- */

.hero__deck { display: flex; flex-direction: column; align-items: center; }

.deck {
  position: relative;
  width: min(340px, 84vw);
  aspect-ratio: 4 / 5.1;
  touch-action: pan-y;
}
.deck__card {
  position: absolute; inset: 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .85);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  transition: transform .55s var(--ease), opacity .4s;
}
.deck__card.is-dragging { transition: none; cursor: grabbing; }
.deck__card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.deck__card::after { /* фейд к низу под текст — как EventCover в апке */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 30%, transparent 52%, rgba(0,0,0,.82) 100%);
}
.deck__pill {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600;
  color: #fff;
  background: rgba(10, 10, 12, .5);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.deck__pill i {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--surface-elevated);
  font-style: normal; font-size: 10px; font-weight: 700;
}
.deck__info {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2;
}
.deck__info b {
  display: block;
  font-size: 20px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1.2;
  color: #fff;
}
.deck__info span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
}
.deck__hint {
  margin-top: 22px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint);
  display: flex; align-items: center; gap: 8px;
}
.deck__hint span { animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

/* ============ TICKER ============ */

.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 18px 0;
  background: var(--bg-elevated);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-size: 14px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker__track i { font-style: normal; color: var(--faint); margin: 0 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ HOW: SCROLLY ============ */

.how { padding: clamp(90px, 12vw, 160px) var(--pad) 0; }

.how__head h2,
.gallery__head h2 {
  margin-top: 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 46px);
  letter-spacing: -.01em;
  line-height: 1.12;
  text-transform: uppercase;
}

.scrolly {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 110px);
  margin-top: clamp(40px, 5vw, 70px);
}
.scrolly__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex; align-items: center; justify-content: center;
}
.scrolly__steps { padding: 12vh 0 20vh; }

.sstep {
  min-height: 78svh;
  display: flex; flex-direction: column; justify-content: center;
  opacity: .22;
  transition: opacity .5s;
}
.sstep.is-active { opacity: 1; }
.sstep__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 6vw, 96px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border-strong);
}
.sstep h3 {
  margin-top: 20px;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -.02em;
  font-weight: 700;
}
.sstep p {
  margin-top: 14px;
  color: var(--muted);
  max-width: 44ch;
}

/* ---- Телефон ---- */

.phone {
  width: min(300px, 78vw);
  aspect-ratio: 300 / 620;
  border-radius: 46px;
  background: #000;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 0 0 6px #050506,
    0 40px 90px -30px rgba(0, 0, 0, .9),
    0 0 120px -30px rgba(85, 73, 255, .25);
  padding: 10px;
  position: relative;
}
.phone::before { /* Dynamic Island */
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 84px; height: 24px;
  border-radius: 14px;
  background: #000;
  z-index: 3;
}
.phone__screen {
  position: absolute; inset: 10px;
  border-radius: 37px;
  background: var(--bg);
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 14px 14px 18px;
}
.phone__screen--flush { padding: 0; }

.slide { opacity: 0; transform: scale(.97); transition: opacity .55s var(--ease), transform .55s var(--ease); pointer-events: none; }
.slide.is-active { opacity: 1; transform: none; }

/* --- элементы экранов (1:1 по вьюхам приложения) --- */

.scr__status {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 600;
  color: var(--text);
  padding: 4px 8px 10px;
}
.scr__status span:last-child { font-size: 7px; letter-spacing: 2px; color: var(--muted); }
.scr__pill { width: 84px; height: 22px; }

.scr__greeting {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 4px 12px;
}
.scr__hello { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.scr__hello .m { color: var(--muted); font-weight: 600; }
.scr__sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.scr__bell {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 13px;
  background: rgba(255,255,255,.04);
}

.scr__eyebrow {
  font-size: 9px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint);
  padding: 2px 4px 8px;
}

.scr__cover {
  position: relative;
  border-radius: 16px;
  height: 118px;
  overflow: hidden;
  margin: 0 2px;
}
.scr__cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.scr__cover--sq { height: 92px; border-radius: 12px; }

.scr__brandpill {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  display: flex; align-items: center; gap: 6px;
  background: rgba(10,10,12,.55);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 4px 9px 4px 4px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.scr__brandpill i,
.scr__brandrow i {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #6b4423;
  color: #fff;
  font-style: normal; font-size: 9px; font-weight: 700;
  flex: none;
}
.scr__brandpill b { display: flex; flex-direction: column; font-size: 8.5px; font-weight: 600; line-height: 1.25; color: #fff; }
.scr__brandpill em { font-style: normal; font-weight: 400; color: rgba(255,255,255,.65); }

.scr__heart {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(10,10,12,.5);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 11px; color: #fff;
}
.scr__heart--sm { width: 20px; height: 20px; font-size: 9.5px; }

.scr__title { font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; padding: 8px 4px 0; }
.scr__meta { font-size: 10px; color: var(--muted); padding: 3px 4px 12px; }
.scr__meta .warm { color: var(--muted); font-weight: 600; }

.scr__chips {
  display: flex; gap: 5px;
  padding: 0 4px 12px;
  font-size: 9.5px; font-weight: 500;
  color: var(--muted);
  overflow: hidden;
}
.scr__chips span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}
.scr__chips .on { background: var(--text); color: var(--bg); border-color: var(--text); }

.scr__grid2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 0 2px;
}
.scr__grid2 .scr__cover { margin: 0; }
.scr__gtitle { font-size: 10px; font-weight: 600; padding: 6px 2px 0; }
.scr__gtitle i { font-style: normal; font-size: 8px; color: var(--accent); }
.scr__gsub { font-size: 9.5px; color: var(--muted); padding: 1px 2px 0; }

.scr__hero {
  position: relative;
  flex: none;
  height: 46%;
  border-radius: 37px 37px 0 0;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.scr__hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.scr__status--overlay { position: relative; z-index: 2; padding: 18px 22px 0; }
.scr__hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8,8,10,.25) 55%, rgba(8,8,10,.65) 75%, rgba(8,8,10,.92) 92%, var(--bg) 100%);
}
.scr__hero-info { position: relative; z-index: 1; margin-top: auto; padding: 0 16px 10px; }
.scr__brandrow {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px;
}
.scr__brandrow--pad { padding: 4px 6px 14px; }
.scr__brandrow i { width: 22px; height: 22px; font-size: 10px; }
.scr__brandrow b { display: flex; flex-direction: column; font-weight: 600; line-height: 1.3; }
.scr__brandrow u { text-decoration: none; color: var(--accent); font-size: 8px; }
.scr__brandrow em { font-style: normal; font-weight: 400; color: var(--muted); }
.scr__hero-title {
  font-size: 17px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1.15;
  padding-top: 7px;
}
.scr__body { padding: 12px 16px 16px; display: flex; flex-direction: column; flex: 1; }

.scr__label {
  font-size: 9px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 7px;
}
.scr__label--pad { padding: 12px 6px 6px; }
.scr__tags + .scr__label { margin-top: 12px; }
.scr__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.scr__tags span {
  font-size: 10.5px; font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 5px 9px;
}
.scr__deliv { display: flex; gap: 6px; margin-bottom: 12px; }
.scr__deliv span {
  font-size: 10.5px; font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 9px;
}

.scr__apply { margin-top: auto; padding: 12px 2px 8px; }
.scr__apply b { display: block; font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.scr__apply em { display: block; font-style: normal; font-size: 10px; color: var(--muted); margin-top: 3px; }

.scr__cta {
  background: var(--accent);
  color: #fff;
  font-size: 12.5px; font-weight: 600;
  text-align: center;
  border-radius: 12px;
  padding: 11px;
}

.scr__stages {
  display: flex; align-items: center;
  padding: 4px 8px 6px;
}
.scr__stages .dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  flex: none;
}
.scr__stages .dot.done { background: var(--accent); border-color: var(--accent); }
.scr__stages .dot.now {
  width: 10px; height: 10px;
  border: 1.5px solid var(--accent);
  background: transparent;
  position: relative;
}
.scr__stages .dot.now::after {
  content: ""; position: absolute; inset: 2.5px;
  border-radius: 50%; background: var(--accent);
}
.scr__stages .ln { height: 1.5px; flex: 1; background: var(--border); }
.scr__stages .ln.done { background: var(--accent); }
.scr__stage-labels {
  display: flex; justify-content: space-between;
  font-size: 7.5px; font-weight: 500;
  color: var(--faint);
  padding: 0 2px 6px;
}
.scr__stage-labels .on { color: var(--text); font-weight: 600; }

.scr__proof {
  margin: 0 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 12px;
}
.scr__proof--row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; font-weight: 500;
}
.scr__proof--row span { color: var(--muted); }
.scr__link {
  font-size: 10.5px;
  color: var(--muted);
  padding: 2px 0;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
.scr__verified {
  margin: 12px 4px 0;
  font-size: 10px; font-weight: 600;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 8px;
}
.scr__quote {
  margin: 0 4px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text);
}
.scr__quote em { display: block; font-style: normal; font-size: 9.5px; color: var(--faint); margin-top: 4px; }

/* ============ GALLERY ============ */

.gallery {
  padding: clamp(90px, 12vw, 160px) 0 clamp(70px, 9vw, 130px);
  overflow: hidden;
}
.gallery__head { padding: 0 var(--pad); margin-bottom: clamp(40px, 5vw, 64px); }

.gallery__tilt { transform: rotate(-2deg) scale(1.06); }
.gline { overflow: hidden; }
.gline + .gline { margin-top: 14px; }
.gline__track {
  display: flex; gap: 14px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.gline--b .gline__track { animation-direction: reverse; animation-duration: 52s; }
.gline figure {
  position: relative;
  width: clamp(220px, 24vw, 340px);
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  flex: none;
}
.gline img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.92);
}
.gline figcaption {
  position: absolute; left: 12px; bottom: 12px;
  font-size: 12px; font-weight: 600;
  color: #fff;
  background: rgba(10, 10, 12, .5);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 5px 12px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ============ SPLIT ============ */

.split {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-height: 74svh;
}
.split__panel {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: clamp(36px, 4vw, 56px) var(--pad);
  transition: flex .7s var(--ease);
}
.split__panel:hover { flex: 1.55; }
.split__panel + .split__panel { border-left: 1px solid var(--border); }
.split__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.85);
  transform: scale(1.06);
  transition: transform 1.2s var(--ease);
}
.split__panel:hover .split__bg { transform: scale(1.0); }
.split__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,10,.62) 0%, rgba(8,8,10,.38) 40%, rgba(8,8,10,.92) 100%);
  transition: background .5s;
}
.split__content { position: relative; z-index: 1; max-width: 52ch; }
.split__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: #fff;
  background: rgba(10, 10, 12, .55);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  padding: 8px 16px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.split__tag span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.split__content h2 {
  margin-top: 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.16;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.split__content ul {
  list-style: none;
  margin-top: 18px;
  display: grid; gap: 8px;
  color: rgba(242, 242, 244, .82);
  font-size: 15.5px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .7s var(--ease), opacity .5s .1s;
}
.split__panel:hover .split__content ul { max-height: 220px; opacity: 1; }
.split__content li { padding-left: 18px; position: relative; }
.split__content li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent);
}
.split__arrow {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: 18px;
  transition: background .3s, transform .5s var(--ease);
}
.split__panel:hover .split__arrow { background: var(--accent); border-color: var(--accent); transform: translateX(6px); }

/* ============ FINALE: чат-бабблы ============ */

.finale {
  padding: clamp(110px, 15vw, 190px) var(--pad);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.finale::before {
  content: "";
  position: absolute;
  top: 15%; left: 50%;
  transform: translateX(-50%);
  width: min(900px, 120vw); height: 75%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(85, 73, 255, .13) 0%, transparent 70%);
  pointer-events: none;
}
/* Гигантский фирменный бабл — вотермарк за чатом. */
.finale__watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -54%) rotate(-8deg);
  width: min(620px, 90vw); height: auto;
  color: var(--surface-elevated);
  opacity: .5;
  pointer-events: none;
}

.finale__chat {
  position: relative;
  max-width: 460px;
  margin: 0 auto 52px;
  display: flex; flex-direction: column; gap: 12px;
}
.bubble {
  padding: 14px 20px;
  border-radius: 22px;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 500;
  line-height: 1.4;
  max-width: 40ch;
  text-align: left;
}
.bubble--in {
  align-self: flex-start;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
  color: var(--text);
}
.bubble--out {
  align-self: flex-end;
  background: var(--accent);
  border-bottom-right-radius: 6px;
  color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 14px 40px -12px rgba(85, 73, 255, .5);
}
.bubble__glyph { width: 22px; height: auto; color: #fff; flex: none; }

.finale__title {
  position: relative;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 4.2vw, 58px);
  letter-spacing: -.01em;
  line-height: 1.08;
  text-transform: uppercase;
}
.finale__sub {
  position: relative;
  margin: 20px auto 0;
  max-width: 44ch;
  color: var(--muted);
}
.finale .chip--lg {
  position: relative;
  margin-top: 36px;
  font-size: 15px;
  padding: 12px 22px;
  color: var(--text);
}

/* Мини-глиф в eyebrow секций. */
.eyebrow--glyph { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow__mark { width: 20px; height: auto; color: var(--faint); }

/* ============ FOOTER ============ */

.footer {
  border-top: 1px solid var(--border);
  padding: clamp(60px, 8vw, 100px) var(--pad) 40px;
  overflow: hidden;
}
.footer__word {
  font-size: clamp(90px, 22vw, 340px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  user-select: none;
  margin-bottom: clamp(50px, 7vw, 90px);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 56px;
}
.footer__label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 12px;
}
.footer__link {
  font-size: 15px;
  color: var(--muted);
  line-height: 2;
  transition: color .25s;
}
.footer__link:hover { color: var(--text); }
.footer__soon { font-size: 15px; color: var(--muted); }
.footer__legal {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  font-size: 13px;
  color: var(--faint);
}

/* ============ SCROLL REVEAL ============ */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============ DOC PAGES ============ */

/* ============ LEGAL DOCS — классическая юридическая вёрстка ============ */

.doc {
  max-width: 1120px;
  margin: 0 auto;
  padding: 130px var(--pad) 90px;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.doc__aside {
  position: sticky;
  top: 110px;
}
.doc__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.doc__nav a {
  color: var(--faint);
  text-decoration: none;
}
.doc__nav a:hover,
.doc__nav a[aria-current="page"] { color: var(--text); }
.doc__toc { font-size: 13px; }
.doc__toc-title {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.doc__toc ol {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: calc(100vh - 320px);
  overflow-y: auto;
}
.doc__toc a {
  color: var(--muted);
  text-decoration: none;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  line-height: 1.4;
}
.doc__toc a:hover { color: var(--text); }
.doc__toc-no {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.doc__body { max-width: 720px; }
.doc__kicker {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.doc h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -.025em;
  line-height: 1.14;
  margin-bottom: 18px;
}
.doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--faint);
  font-size: 13.5px;
  padding: 14px 0;
  margin-bottom: 34px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.doc__meta strong { color: var(--muted); font-weight: 500; }

.doc h2 {
  font-size: 19px;
  letter-spacing: -.01em;
  margin: 46px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px;
}
.doc section:first-of-type h2 { border-top: none; padding-top: 0; }
.doc__no {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.doc p, .doc li { color: var(--muted); font-size: 15.5px; line-height: 1.72; }
.doc p + p, .doc ul + p, .doc ol + p { margin-top: 12px; }
.doc__p {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px;
}
.doc__p + .doc__p { margin-top: 12px; }
.doc__pno {
  color: var(--faint);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.doc ul, .doc ol { margin: 12px 0 0 20px; }
.doc .doc__p ul { margin-left: 18px; }
.doc li { margin: 7px 0; }
.doc li::marker { color: var(--faint); }
.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.doc a:hover { text-decoration-color: var(--text); }
.doc strong { color: var(--text); font-weight: 600; }

.doc__callout {
  margin: 30px 0;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.doc__requisites {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.doc__requisites div {
  display: grid;
  grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
  gap: 18px;
  padding: 13px 20px;
  font-size: 14.5px;
}
.doc__requisites div + div { border-top: 1px solid var(--border); }
.doc__requisites dt { color: var(--faint); }
.doc__requisites dd { color: var(--text); margin: 0; }

.doc__footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--faint);
}

/* Печать: светлый строгий документ */
@media print {
  .nav, .doc__aside, .doc__footer { display: none !important; }
  body { background: #fff; color: #111; font-size: 12pt; }
  .doc { display: block; padding: 0; max-width: none; }
  .doc__body { max-width: none; }
  .doc h1, .doc h2, .doc strong, .doc a, .doc__requisites dd { color: #000; }
  .doc p, .doc li { color: #222; }
  .doc__no, .doc__pno, .doc__meta, .doc__kicker { color: #555; }
  .doc h2 { border-top-color: #ddd; break-after: avoid; }
  .doc a { text-decoration: none; }
  .doc__callout { border: 1px solid #ccc; background: #fff; color: #222; }
  .doc__requisites, .doc__requisites div + div { border-color: #ccc; }
  section { break-inside: avoid-page; }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 110px;
    text-align: left;
  }
  .hero__deck { order: 2; }
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly__steps { padding: 2vh 0 4vh; }
  .sstep { min-height: 0; opacity: 1; padding: 34px 0; }
  .sstep + .sstep { border-top: 1px solid var(--border); }
  .phone--inline {
    margin: 28px auto 0;
    width: min(280px, 76vw);
  }
  .split { flex-direction: column; min-height: 0; }
  .split__panel { min-height: 320px; }
  .split__panel + .split__panel { border-left: none; border-top: 1px solid var(--border); }
  .split__content ul { max-height: 220px; opacity: 1; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .doc {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 104px;
  }
  .doc__aside { position: static; }
  .doc__nav { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
  .doc__toc { display: none; }
  .doc__p { grid-template-columns: 40px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track, .chip__dot, .deck__hint span,
  .gline__track { animation: none; }
  .reveal, .reveal-load {
    opacity: 1; transform: none;
    animation: none; transition: none;
  }
  .gallery__tilt { transform: none; }
  html { scroll-behavior: auto; }
}
