
  :root {
    --page: #EFF2EE;        /* страница */
    --ink: #04231E;         /* тёмный из логотипа */
    --brand: #0A5D4C;       /* зелёный из логотипа */
    --signal: #14A05C;      /* зачислено, проверено */
    --quiet: #5F706A;       /* второстепенный текст */
    --hair: #CFD8D2;
    --tg-blue: #3390EC;     /* только внутри чата */
    --s: 1;                 /* масштаб сцены, ставит скрипт */
    --mx: 0; --my: 0;       /* положение мыши, -1..1 */
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; }
  body {
    background: var(--page); color: var(--ink);
    font-family: "Onest", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
  }
  button { font: inherit; color: inherit; }
  :focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

  /* ── шапка ── */
  .top {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px clamp(20px, 4vw, 56px);
  }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
  .brand svg { height: 20px; width: auto; display: block; }
  .brand b { font-family: "Unbounded", sans-serif; font-weight: 500; font-size: 13px; letter-spacing: .02em; }
  .top nav { display: flex; gap: 32px; font-size: 15px; }
  .top nav a { text-decoration: none; color: var(--quiet); }
  .top nav a:hover { color: var(--ink); }
  .lang { display: flex; border: 1px solid var(--hair); border-radius: 999px; padding: 3px; }
  .lang button { border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; color: var(--quiet); }
  .lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

  /* ── текст сверху ── */
  .hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 20px 28px; }
  h1 {
    margin: 0;
    font-family: "Unbounded", sans-serif; font-weight: 500;
    font-size: clamp(30px, 3.9vw, 58px); line-height: 1.06; letter-spacing: -0.03em;
  }
  .lede { margin: 12px 0 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; font-weight: 300; color: var(--quiet); text-wrap: balance; }
  .cta {
    position: relative; z-index: 5;
    margin-top: 20px; display: inline-flex; align-items: center;
    background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: 16px;
    padding: 15px 28px; border-radius: 999px; transition: transform .15s ease;
  }
  .cta:hover { transform: translateY(-1px); }

  /* ── сцена ── */
  .scene {
    position: relative; width: 100%;
    height: calc(620px * var(--s) + 34px);
    margin-top: 16px;
    perspective: 1500px; perspective-origin: 50% 42%;
  }
  .world { position: absolute; inset: 0; transform-style: preserve-3d; }
  .float {
    position: absolute; transform-style: preserve-3d;
    transform:
      translate3d(calc(var(--mx) * var(--d) * -1px), calc(var(--my) * var(--d) * -1px), var(--z))
      rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg));
    will-change: transform;
  }
  .bob { animation: bob var(--t, 7s) ease-in-out infinite alternate; }
  @keyframes bob { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

  /* дальний план: полосатая М из логотипа */
  .back { --d: -26; --z: -420px; left: 50%; top: 46%; width: 0; height: 0; }
  .back svg {
    position: absolute; left: -560px; top: -330px; width: 1120px; height: auto; opacity: .07;
    -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
            mask-image: radial-gradient(closest-side, #000 45%, transparent 100%);
  }

  .floor {
    position: absolute; left: 50%; bottom: -4px; width: calc(400px * var(--s)); height: 46px;
    transform: translateX(calc(-50% + var(--mx) * -18px));
    background: radial-gradient(closest-side, rgba(4, 35, 30, .26), transparent);
    filter: blur(8px);
  }

  /* телефон */
  .phone-pos { position: absolute; left: 50%; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
  .phone {
    position: absolute; left: calc(-10.625em); top: 0;
    font-size: calc(16px * var(--s));
    width: 21.25em; height: 38.75em;
    transform-style: preserve-3d;
    transform: rotateX(calc(5deg + var(--my) * -7deg)) rotateY(calc(-9deg + var(--mx) * 13deg));
    will-change: transform;
  }
  .phone .edge { position: absolute; inset: 0; border-radius: 2.7em; background: #0B1814; }
  .phone .edge:nth-child(1) { transform: translateZ(-1em); box-shadow: 0 2.6em 4.5em -1.2em rgba(4, 35, 30, .45); }
  .phone .edge:nth-child(2) { transform: translateZ(-.75em); }
  .phone .edge:nth-child(3) { transform: translateZ(-.5em); }
  .phone .edge:nth-child(4) { transform: translateZ(-.25em); background: #15241F; }
  .screen {
    position: absolute; inset: 0; border-radius: 2.7em; overflow: hidden;
    border: .42em solid #0B1814; background: #fff;
    display: flex; flex-direction: column;
  }
  .screen::after {   /* блик на стекле, едет за мышью */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 100%);
    transform: translateX(calc(var(--mx) * -22%)); opacity: .7;
  }

  /* ── Telegram ── */
  .tg { font-family: "Roboto", system-ui, sans-serif; font-size: .84em; color: #000; display: flex; flex-direction: column; height: 100%; text-align: left; }
  .tg svg { display: block; }
  .tg-head { display: flex; align-items: center; gap: .7em; padding: .65em .8em .6em; background: #fff; border-bottom: 1px solid #E3E7EA; }
  .tg-head .ava { width: 2.9em; height: 2.9em; border-radius: 50%; background: linear-gradient(#5DB3F6, #2F7FDE); color: #fff; display: grid; place-items: center; font-weight: 500; font-size: .95em; flex: none; }
  .tg-title { font-weight: 500; font-size: 1.12em; line-height: 1.2; }
  .tg-sub { color: #8A96A1; font-size: .9em; }
  .tg-head .more { margin-left: auto; }
  .tg-pin { display: flex; align-items: center; gap: .6em; padding: .45em .8em; background: #fff; border-bottom: 1px solid #E3E7EA; }
  .tg-pin .bar { width: .18em; align-self: stretch; background: var(--tg-blue); border-radius: 1em; }
  .tg-pin .txt { min-width: 0; flex: 1; line-height: 1.3; }
  .tg-pin .txt b { display: block; color: var(--tg-blue); font-weight: 500; font-size: .95em; }
  .tg-pin .txt span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95em; }

  .tg-feed { flex: 1; min-height: 0; overflow: hidden; background: #D6DFE7; padding: 0 .55em .6em; display: flex; flex-direction: column; justify-content: flex-end; }
  .row { display: flex; align-items: flex-end; gap: .45em; margin-top: .5em; }
  .row.center { justify-content: center; }
  .row.out { justify-content: flex-end; }
  .date { background: rgba(107, 129, 150, .6); color: #fff; font-weight: 500; font-size: .84em; padding: .22em .8em; border-radius: 1em; }
  .bot-ava { width: 2.4em; height: 2.4em; border-radius: 50%; flex: none; background: radial-gradient(circle at 50% 30%, #0F6B55, #04231E); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .78em; letter-spacing: -.02em; }
  .bubble { background: #fff; border-radius: 1.15em; padding: .5em .8em .55em; line-height: 1.38; position: relative; max-width: 17.6em; }
  .bubble .from { color: #2A9D6A; font-weight: 500; }
  .bubble .tag { display: inline-block; margin-left: .35em; background: #E6EAEE; color: #8A96A1; border-radius: .4em; padding: 0 .4em; font-size: .92em; font-weight: 400; }
  .bubble .mono { font-family: "Roboto Mono", monospace; color: var(--tg-blue); font-size: .98em; }
  .bubble time { float: right; margin: .5em 0 0 .8em; color: #8A96A1; font-size: .8em; }
  .kb { margin: .3em 0 0 2.85em; background: #fff; border-radius: .7em; padding: .5em; text-align: center; font-weight: 500; display: flex; justify-content: center; align-items: center; gap: .45em; width: 17.6em; }

  .grow { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s cubic-bezier(.2,.8,.2,1), opacity .4s ease .1s; }
  .grow > div { overflow: hidden; min-height: 0; }
  .st-receipt .g-receipt, .st-reply .g-reply { grid-template-rows: 1fr; opacity: 1; }

  .photo { background: #E1FEC6; padding: .2em; border-radius: 1.2em; position: relative; width: 13.6em; }
  .rc { background: #fff; border-radius: 1.02em; overflow: hidden; position: relative; font-family: "Onest", sans-serif; }
  .rc-head { background: #0F6B55; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: .7em .9em; font-weight: 600; font-size: .62em; letter-spacing: .04em; }
  .rc-head span { font-weight: 500; letter-spacing: 0; opacity: .9; }
  .rc-body { text-align: center; padding: .8em .9em .4em; }
  .rc-ok { width: 1.6em; height: 1.6em; border-radius: 50%; background: #DDF1E8; display: grid; place-items: center; margin: 0 auto .35em; }
  .rc-body small { display: block; font-weight: 600; font-size: .66em; }
  .rc-body strong { display: block; font-size: 1.5em; font-weight: 700; letter-spacing: -.01em; color: #04231E; line-height: 1.25; }
  .rc-rows { padding: 0 .9em .65em; }
  .rc-rows div { border-top: 1px solid #EDF0EE; padding: .3em 0 .25em; }
  .rc-rows i { display: block; font-style: normal; font-size: .5em; color: #7C8A84; font-weight: 500; }
  .rc-rows b { display: block; font-size: .62em; font-weight: 600; }
  .stamp { position: absolute; right: .55em; bottom: .5em; background: rgba(0,0,0,.42); color: #fff; font-size: .78em; padding: .1em .55em; border-radius: 1em; display: flex; align-items: center; gap: .3em; font-family: "Roboto", sans-serif; }
  .scan { position: absolute; left: 0; right: 0; top: -45%; height: 45%; background: linear-gradient(to bottom, transparent, rgba(20,160,92,.28)); border-bottom: .12em solid var(--signal); opacity: 0; }
  .st-scan .scan { animation: scan 1.5s ease-in-out 1 forwards; }
  @keyframes scan { 0% { top: -45%; opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

  .quote { background: #E7F0FA; border-left: .2em solid var(--tg-blue); border-radius: .35em; padding: .2em .6em; margin: .15em 0 .35em; line-height: 1.3; }
  .quote b { display: block; color: var(--tg-blue); font-weight: 500; }
  .quote span { color: #7F8B96; }
  .okbox { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; border-radius: .25em; background: #3DC77A; vertical-align: -.18em; margin-right: .3em; }

  .tg-input { display: flex; align-items: center; gap: .7em; padding: .6em .8em .7em; background: #fff; color: #9AA5AE; border-top: 1px solid #E3E7EA; }
  .tg-input span { flex: 1; font-size: 1.02em; }

  /* ── текст, висящий в воздухе ── */
  .fact { white-space: nowrap; }
  .fact b { display: block; font-family: "Unbounded", sans-serif; font-weight: 500; font-size: clamp(26px, 2.9vw, 46px); letter-spacing: -0.03em; line-height: 1.05; }
  .fact > .bob > span { display: block; margin-top: 8px; font-size: clamp(14px, 1.15vw, 17px); color: var(--quiet); font-weight: 300; }
  .left  { right: calc(50% + 170px * var(--s) + clamp(36px, 5vw, 96px)); text-align: right; --ry: 22deg; transform-origin: 100% 50%; }
  .right { left:  calc(50% + 170px * var(--s) + clamp(36px, 5vw, 96px)); text-align: left;  --ry: -22deg; transform-origin: 0 50%; }
  .f-fee   { top: 10%; --d: 34; --z: 70px;  --rz: -2deg; }
  .f-daily { top: 73%; --d: 44; --z: 40px;  --rz: 1.5deg; }
  .f-daily b { font-size: clamp(22px, 2.3vw, 36px); }
  .f-check { top: 26%; --d: 40; --z: 80px;  --rz: 1deg; }

  .checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: clamp(16px, 1.45vw, 21px); font-weight: 500; }
  .checks li { display: flex; align-items: center; gap: 12px; color: #9AA8A2; transition: color .35s; }
  .tick { flex: none; width: 1.25em; height: 1.25em; border-radius: 50%; border: 2px solid var(--hair); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .35s cubic-bezier(.2,1.5,.4,1); }
  .tick svg { opacity: 0; transition: opacity .2s; }
  .c1 .k1, .c2 .k2, .c3 .k3, .c4 .k4 { color: var(--ink); }
  .c1 .k1 .tick, .c2 .k2 .tick, .c3 .k3 .tick, .c4 .k4 .tick { background: var(--signal); border-color: var(--signal); transform: scale(1.08); }
  .c1 .k1 svg, .c2 .k2 svg, .c3 .k3 svg, .c4 .k4 svg { opacity: 1; }
  .f-check > .bob > span { margin-top: 14px; }

  /* зачисление выходит из телефона на передний план */
  .pop { right: calc(50% + 170px * var(--s) - 34px); top: 62%; --d: 64; --z: 150px; --ry: 16deg; --rz: -3deg; }
  .pop-in {
    background: #fff; border-radius: 22px; padding: 14px 22px 16px; text-align: left; white-space: nowrap;
    box-shadow: 0 30px 50px -18px rgba(4, 35, 30, .35), 0 2px 0 rgba(255,255,255,.8) inset;
    opacity: 0; transform: translateY(18px) scale(.94); transition: opacity .5s ease, transform .6s cubic-bezier(.2,1.3,.4,1);
  }
  .st-reply .pop-in { opacity: 1; transform: none; }
  .pop-in small { display: block; font-size: 14px; color: var(--quiet); }
  .pop-in strong { display: block; font-family: "Unbounded", sans-serif; font-weight: 600; font-size: clamp(24px, 2.5vw, 38px); letter-spacing: -0.03em; color: var(--signal); line-height: 1.15; }

  .replay { position: relative; z-index: 5; margin-top: 10px; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--quiet); padding: 6px 4px; }
  .replay:hover { color: var(--ink); }

  /* ── узкие экраны: всё в столбик, вместо мыши лёгкое покачивание ── */
  @media (max-width: 1100px) {
    .top nav { display: none; }
    h1 span { display: block; }
    .scene { height: auto; perspective: 1100px; margin-top: 22px; }
    .world { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 16px; justify-items: center; }
    .back, .floor, .pop { display: none; }
    .phone-pos { position: static; width: auto; height: calc(620px * var(--s)); grid-column: 1 / -1; }
    .phone { position: relative; left: 0; animation: sway 8s ease-in-out infinite alternate; }
    @keyframes sway { from { transform: rotateX(4deg) rotateY(-9deg); } to { transform: rotateX(2deg) rotateY(9deg); } }
    .float { position: static; transform: none; }
    .bob { animation: none; }
    .fact { white-space: normal; text-align: left; justify-self: start; }
    .phone-pos { order: 1; }
    .f-check { order: 2; grid-column: 1 / -1; }
    .f-fee, .f-daily { order: 3; }
    .checks { grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 15px; }
    .fact b { font-size: 24px; }
  }
  .still * { transition: none !important; }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
  }
