/* Автомонтаж — первая страница. Та же стилистика, что редактор (creator.css, «LK Kreator»): светлое стекло, синий акцент.
   Под стеклом — мягкие цветные пятна, чтобы было видно размытие. Иконки и логотип — из Figma (web/icons). */
@font-face { font-family: "UiInter"; src: url("/assets/fonts/inter/Inter%5Bopsz,wght%5D.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #F7FBFF; --panel: #F1F8FF;
  --ink: #14283F; --ink-2: #19314F; --mute: #7389A3; --line: #E2EBF6;
  --acc: #007AFF; --acc-dim: #7FBCFF; --acc-soft: rgba(0, 122, 255, .1);
  --ok: #02772E; --ok-bg: #C9ECDE;
  --glass: rgba(255, 255, 255, .5);
  --glass-edge: linear-gradient(155deg, rgba(255,255,255,.95), rgba(255,255,255,.25) 50%, rgba(255,255,255,.7));
  --shadow: 0 10px 32px -4px rgba(41, 77, 140, .12), inset 0 1px 2px rgba(255, 255, 255, .8);
  --shadow-lg: 0 30px 60px -18px rgba(41, 77, 140, .28);
  --r-card: 28px; --r-chip: 9px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "UiInter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

/* colour under the glass */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .75; }
.blobs i:nth-child(1) { width: 620px; height: 620px; left: -160px; top: -120px; background: #BFDFFF; }
.blobs i:nth-child(2) { width: 560px; height: 560px; right: -140px; top: 280px; background: #D9D3FF; }
.blobs i:nth-child(3) { width: 680px; height: 680px; left: 30%; bottom: -320px; background: #C6F0EA; }

/* glass surface (same as the editor) */
.glass { position: relative; background: var(--glass); border-radius: var(--r-card); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--glass-edge); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* buttons */
.btn { font: inherit; font-size: 16px; font-weight: 500; height: 52px; padding: 0 28px; border: 0; border-radius: 26px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  cursor: pointer; white-space: nowrap; transition: transform .1s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn.pri { background: var(--acc); color: #fff; box-shadow: 0 14px 34px -10px rgba(0, 122, 255, .55), inset 0 1px 2px rgba(255,255,255,.35); }
.btn.pri:hover { background: #0A6FE6; }
.btn.alt { background: rgba(255,255,255,.6); color: var(--ink); box-shadow: var(--shadow); }
.btn.alt:hover { background: rgba(255,255,255,.85); }
.btn.sm { height: 40px; padding: 0 20px; font-size: 15px; border-radius: 20px; }
.btn.xl { height: 60px; padding: 0 46px; font-size: 18px; border-radius: 30px; }

/* top bar */
/* top menu: wide, stays on top while scrolling, the current section lit (12.11: class .topbar — «.bar» belongs to the cut bars) */
.topbar { position: sticky; top: 10px; z-index: 50; width: min(1400px, calc(100% - 24px)); margin: 10px auto 0; min-height: 60px; padding: 0 10px 0 20px; border-radius: 30px;
  display: flex; align-items: center; gap: 18px; }
.topbar.glass { background: rgba(255,255,255,.72); }
.brand { flex: none; display: flex; align-items: center; gap: 12px; }
.brand img { display: block; }
.brand span { font-size: 14px; color: var(--mute); padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; }
.bar-nav { display: flex; gap: 4px; margin-left: auto; font-size: 14px; color: var(--ink-2); min-width: 0; }
.bar-nav a { padding: 7px 11px; border-radius: 16px; white-space: nowrap; opacity: .8; transition: opacity .15s, color .15s, background .15s; }
.bar-nav a:hover { opacity: 1; color: var(--acc); }
.bar-nav a.on { opacity: 1; color: var(--acc); background: var(--acc-soft); font-weight: 500; }
.topbar > .btn { flex: none; }
@media (max-width: 1280px) { .brand span { display: none; } .bar-nav a { padding: 7px 8px; } }
@media (max-width: 1100px) {                          /* narrow: logo + «Начать» on top, the sections scroll sideways under them */
  .topbar { flex-wrap: wrap; padding: 8px 8px 6px 16px; gap: 4px 10px; border-radius: 24px; }
  .topbar > .btn { margin-left: auto; }
  .bar-nav { order: 3; flex: 1 0 100%; margin: 0 -8px 0 -16px; padding: 2px 8px 2px 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .bar-nav::-webkit-scrollbar { display: none; }
  html { scroll-padding-top: 130px; }
}

main { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }

/* 1. hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 72px 0 40px; }
.eyebrow { display: inline-block; padding: 8px 16px; border-radius: 18px; font-size: 14px; color: var(--ink-2); margin-bottom: 26px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 72px); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; color: var(--ink-2); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #007AFF, #5E5CE6 55%, #1FB5A8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 640px; margin-top: 22px; font-size: 19px; line-height: 1.5; color: var(--mute); }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }

.phones { position: relative; display: flex; justify-content: center; align-items: center; gap: 0; margin-top: 64px; width: 100%; height: 600px; }
.phone { position: relative; width: 280px; aspect-ratio: 9 / 16; border-radius: 36px; overflow: hidden; background: #0d1626; box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255,255,255,.7); }
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone.mid { z-index: 2; width: 300px; }
.phone.side { width: 236px; opacity: .92; }
.phone.l { transform: translateX(40px) rotate(-6deg); }
.phone.r { transform: translateX(-40px) rotate(6deg); }
.tag { position: absolute; z-index: 3; padding: 10px 16px; border-radius: 16px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.tag::after { content: ""; position: absolute; left: 14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--acc); }
.tag { padding-left: 28px; }
.t1 { left: 4%; top: 18%; } .t2 { right: 5%; top: 36%; } .t3 { left: 9%; bottom: 14%; }

/* sections */
.sec { padding: 92px 0 0; }
.sec-head { max-width: 760px; margin-bottom: 36px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); margin-bottom: 10px; }
.sec h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; letter-spacing: -.02em; line-height: 1.12; color: var(--ink-2); }
.sec-sub { margin-top: 12px; font-size: 17px; color: var(--mute); }

/* 2. timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 16px; align-items: start; }
.timeline li { position: relative; padding: 34px 0 0; }
.timeline li::before { content: ""; position: absolute; left: 0; right: -16px; top: 13px; height: 2px; background: linear-gradient(90deg, var(--acc-dim), rgba(0,122,255,.2)); }
.timeline li:nth-child(4n)::before, .timeline li:last-child::before { right: 0; }
.timeline li::after { content: ""; position: absolute; left: 4px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--acc); }
.timeline li.now::after { background: var(--acc); box-shadow: 0 0 0 4px rgba(0,122,255,.25), 0 0 18px rgba(0,122,255,.6); }
.timeline .when { font-size: 13px; font-weight: 600; color: var(--acc); }
.timeline .card { margin-top: 10px; padding: 16px 16px 18px; border-radius: 20px; }
.timeline h3 { font-size: 16px; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.timeline p { margin-top: 6px; font-size: 14px; color: var(--mute); line-height: 1.45; }

/* 3. pipeline: a snake — 1→4 on the first row, down, then 5→8 back to the left; colour = phase */
.phases { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.ph { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 7px 14px 7px 12px; border-radius: 16px; background: rgba(255,255,255,.6); box-shadow: var(--shadow); }
.ph::before { content: ""; width: 10px; height: 10px; border-radius: 4px; background: var(--c); }
.a { --c: #4FA8FF; } .b { --c: #007AFF; } .c { --c: #5E5CE6; } .d { --c: #12A594; }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 30px; }
.node { padding: 20px 20px 22px; min-height: 176px; display: flex; flex-direction: column; gap: 8px; }
.node > b { width: 30px; height: 30px; border-radius: 10px; background: var(--c); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.node h3 { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.node p { font-size: 14px; color: var(--mute); line-height: 1.45; }
.node.key { box-shadow: var(--shadow), 0 0 0 2px rgba(0,122,255,.3); }
.gate { margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 4px 10px; border-radius: 10px; }
.n1 { grid-area: 1 / 1; } .n2 { grid-area: 1 / 2; } .n3 { grid-area: 1 / 3; } .n4 { grid-area: 1 / 4; }
.n5 { grid-area: 2 / 4; } .n6 { grid-area: 2 / 3; } .n7 { grid-area: 2 / 2; } .n8 { grid-area: 2 / 1; }
.ar { position: absolute; background: var(--acc-dim); }
.ar::after { content: ""; position: absolute; border: 6px solid transparent; }
.ar.r { width: 30px; height: 2px; right: -30px; top: 50%; } .ar.r::after { right: -6px; top: -5px; border-left: 8px solid var(--acc-dim); border-right: 0; }
.ar.l { width: 30px; height: 2px; left: -30px; top: 50%; } .ar.l::after { left: -6px; top: -5px; border-right: 8px solid var(--acc-dim); border-left: 0; }
.ar.d { width: 2px; height: 22px; bottom: -22px; left: 50%; } .ar.d::after { bottom: -6px; left: -5px; border-top: 8px solid var(--acc-dim); border-bottom: 0; }

/* 4. numbers */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat { padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-size: 44px; font-weight: 600; letter-spacing: -.02em; line-height: 1; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.stat strong small { font-size: 22px; font-weight: 500; color: var(--mute); margin-left: 4px; }
.stat span { font-size: 15px; color: var(--mute); line-height: 1.35; }
.price { margin-top: 18px; padding: 18px 24px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px 28px; align-items: center; }   /* the price outlook under the numbers */
.price .next { display: flex; align-items: baseline; gap: 12px; }
.price .next p { font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.price .next b { font-weight: 600; color: var(--acc); }
.price .hw { font-size: 13px; color: var(--mute); line-height: 1.45; }
@media (max-width: 1020px) { .price { grid-template-columns: minmax(0, 1fr); } .price .next { flex-direction: column; gap: 8px; } }

/* 5. works */
.seg { display: inline-flex; padding: 5px; border-radius: 24px; gap: 4px; margin-bottom: 26px; }
.seg button { font: inherit; font-size: 15px; font-weight: 500; height: 40px; padding: 0 20px; border: 0; border-radius: 20px; background: transparent; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--acc); box-shadow: var(--shadow); }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.works.final { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.works:not(.final) .work:first-child { grid-column: span 2; grid-row: span 2; }   /* 1 large + 6: the grid closes evenly */
.work { padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.work .frame { position: relative; border-radius: 20px; overflow: hidden; background: #0d1626; aspect-ratio: 1 / 1; cursor: pointer; }
.works.final .work .frame { aspect-ratio: 9 / 16; }
.work video { width: 100%; height: 100%; object-fit: cover; display: block; }
.work .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .15s, opacity .2s; pointer-events: none; }
.work .play::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 18px solid var(--acc); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.work .frame:hover .play { transform: scale(1.06); }
.work.playing .play { opacity: 0; }
.work .lbl { position: absolute; top: 12px; padding: 4px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(13, 22, 38, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.work .lbl.a { left: 12px; } .work .lbl.b { left: calc(50% + 12px); }
.works.final .work .lbl { display: none; }
.work .cap { padding: 2px 8px 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.work .cap b { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.work .cap span { font-size: 13px; color: var(--mute); white-space: nowrap; }
#worksGrid.works.final { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; margin: 0 auto; }   /* six vertical videos: 3 × 2 */

/* 5a. Telegram circles: a phone with the bot chat (sent → «оформляю…» → the circle comes back), an arrow, the result big */
.circles { display: grid; grid-template-columns: 290px 50px 290px 50px 290px; justify-content: center; align-items: center; justify-items: center; gap: 8px; padding: 36px 28px; }
.circles .flow-arrow { width: 40px; }
.circles .circle { width: 280px; }
.tg-phone { width: 290px; height: 590px; border-radius: 46px; padding: 11px; background: #101827; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2b3446; }
.tg-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 20% 10%, #d9ecdc 0, transparent 60%), radial-gradient(120% 90% at 90% 90%, #c3dcef 0, transparent 60%), #cfe2e0; }
.tg-head { flex: none; height: 64px; padding: 14px 16px 0; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.9); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.tg-head > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.tg-head b { font-size: 14px; font-weight: 600; color: #14283F; }
.tg-head small { font-size: 12px; color: #7389A3; }
.tg-ava { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(135deg, #4FA8FF, #5E5CE6); }
.tg-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 12px 12px 16px; }
.msg { display: flex; flex-direction: column; opacity: 0; transform: translateY(12px) scale(.94); transition: opacity .35s ease, transform .35s ease; }
.msg.on { opacity: 1; transform: none; }
.msg.gone { display: none; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.msg.in { align-self: flex-start; align-items: flex-start; }
.tg-circle { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: #0d1626; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.msg.big .tg-circle { width: 176px; height: 176px; }
.tg-circle video { width: 100%; height: 100%; object-fit: cover; display: block; }
.time { margin-top: 4px; padding: 1px 7px; border-radius: 9px; font-size: 11px; color: #fff; background: rgba(20, 40, 63, .35); }
.bubble { background: #fff; border-radius: 16px 16px 16px 5px; padding: 8px 12px; font-size: 14px; color: #14283F; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.typing .bubble { display: flex; gap: 4px; padding: 11px 13px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa9bb; animation: tgdot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tgdot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.flow-arrow { position: relative; width: 70px; height: 2px; background: var(--acc-dim); }
.flow-arrow::after { content: ""; position: absolute; right: -2px; top: -6px; border: 7px solid transparent; border-left: 10px solid var(--acc-dim); border-right: 0; }
.circle-result { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.circle { position: relative; width: 320px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #0d1626; cursor: pointer;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255,255,255,.7); }
.circle video { width: 100%; height: 100%; object-fit: cover; display: block; }
.circle .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .2s; pointer-events: none; }
.circle .play::after { content: ""; position: absolute; left: 26px; top: 21px; border-left: 18px solid var(--acc); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.circle.playing .play { opacity: 0; }
.hint-c { font-size: 14px; color: var(--mute); text-align: center; }
.how { margin-top: 18px; font-size: 16px; color: var(--ink-2); text-align: center; }
.how a { color: var(--acc); font-weight: 600; }
.how a:hover { text-decoration: underline; }
@media (max-width: 1020px) {
  .circles { grid-template-columns: minmax(0, 1fr); padding: 28px 16px; gap: 18px; }
  .flow-arrow { width: 2px; height: 46px; }
  .flow-arrow::after { right: auto; left: -6px; top: auto; bottom: -2px; border: 7px solid transparent; border-top: 10px solid var(--acc-dim); border-bottom: 0; }
  .circle { width: min(280px, 78vw); }
}
@media (max-width: 640px) { .tg-phone { width: 260px; height: 530px; } .msg.big .tg-circle { width: 156px; height: 156px; } }

/* the channel phone: the circle is posted, reactions count up, comments pop up (fun, for the call) */
.tg-screen.ch { background: radial-gradient(120% 80% at 80% 10%, #e7defa 0, transparent 60%), radial-gradient(120% 90% at 10% 90%, #d6e6f7 0, transparent 60%), #e3e4f3; }
.tg-ava.ch { background: linear-gradient(135deg, #FF8A5B, #E2459B); }
.msg.post { align-self: center; align-items: center; }
.msg.post .tg-circle { width: 168px; height: 168px; }
.reacts.msg { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px; align-self: center; }
.reacts span { display: inline-flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 13px; background: rgba(255,255,255,.88); box-shadow: 0 1px 2px rgba(0,0,0,.1); font-size: 12px; }
.reacts b { font-weight: 600; color: #2F7BF0; font-variant-numeric: tabular-nums; min-width: 1.6em; }
.reacts span.bump { animation: bump .22s ease; }
@keyframes bump { 50% { transform: scale(1.12); } }
.comments.msg { align-self: stretch; padding: 8px 10px; border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: 0 1px 2px rgba(0,0,0,.1); gap: 6px; }
.comments small { font-size: 11px; font-weight: 600; color: #7389A3; }
.cm-list { display: flex; flex-direction: column; gap: 7px; min-height: 120px; justify-content: flex-end; }
.cm { display: flex; gap: 7px; align-items: flex-start; opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.cm.on { opacity: 1; transform: none; }
.cm-ava { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background: hsl(var(--h) 70% 55%); }
.cm > span:last-child { font-size: 12.5px; line-height: 1.3; color: #14283F; }
.cm b { display: block; font-size: 11px; font-weight: 600; color: hsl(var(--h) 60% 42%); }
@media (max-width: 1020px) { .circles .circle { width: min(280px, 78vw); } .circles .flow-arrow { width: 2px; height: 40px; } }
@media (max-width: 640px) { .reacts span { padding: 3px 6px; font-size: 11.5px; } .reacts.msg { flex-wrap: nowrap; } }

/* 5b. how it was cut: the source as a bar */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -14px 0 22px; font-size: 14px; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg::before { content: ""; width: 26px; height: 12px; border-radius: 4px; }
.lg.keep::before { background: linear-gradient(90deg, #3D9BFF, #5E5CE6); }
.lg.speech::before { background: repeating-linear-gradient(135deg, #AEBBCB 0 4px, #C7D1DD 4px 8px); }
.lg.pause::before { background: #E3E9F1; }
.cuts { display: flex; flex-direction: column; gap: 18px; }
.cut { padding: 22px 24px 20px; }
.cut header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.cut h3 { font-size: 18px; font-weight: 600; color: var(--ink-2); }
.cut strong { font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: var(--acc); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 46px; border-radius: 12px; background: #E3E9F1; overflow: hidden; }
.bar i { position: absolute; top: 0; bottom: 0; }
.bar .gap.speech { background: repeating-linear-gradient(135deg, #AEBBCB 0 4px, #C7D1DD 4px 8px); cursor: help; }
.bar .gap.speech:hover { filter: brightness(.92); }
.bar .gap.pause { background: #E3E9F1; }
.bar .keep { background: linear-gradient(180deg, #4FA8FF, #2F7BF0); border-left: 1px solid rgba(255,255,255,.7); transform-origin: left; transition: transform .5s ease var(--d); }
.cut:not(.in) .bar .keep { transform: scaleX(0); }
.ticks { display: flex; justify-content: space-between; margin-top: 9px; font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-size: 14px; color: var(--mute); }
.facts b { color: var(--ink-2); font-weight: 600; }

/* 6. style bento */
.libchips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.libchips span { padding: 9px 16px; border-radius: 18px; font-size: 15px; color: var(--ink-2); background: rgba(255,255,255,.6); box-shadow: var(--shadow); }
.libchips b { color: var(--acc); font-weight: 600; margin-right: 4px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 560px; gap: 18px; }   /* one height per row: the frames fill it */
.tile { padding: 12px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.tile.w2 { grid-column: span 2; }
.tile .shots { flex: 1; min-height: 0; display: flex; gap: 8px; }
.tile img { flex: 1; min-width: 0; height: 100%; object-fit: cover; border-radius: 16px; display: block; background: #0d1626; transition: opacity .35s; }
.tile .t { padding: 0 6px 6px; }
.tile h3 { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.tile p { font-size: 14px; color: var(--mute); margin-top: 2px; }

/* 7. research */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rcard { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.rcard h3 { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.rcard p { font-size: 14px; color: var(--mute); }
.rcard .n { font-size: 13px; font-weight: 600; color: var(--acc); }
.rcard:last-child:nth-child(3n+1) { grid-column: 1 / -1; box-shadow: var(--shadow), 0 0 0 2px rgba(0,122,255,.25); }   /* the 13th card closes the grid */

/* 8. roadmap */
.road { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rcol { padding: 24px 24px 26px; }
.rcol h3 { font-size: 20px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.rcol h3 .pill { font-size: 12px; }
.rcol ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rcol li { position: relative; padding-left: 20px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.rcol li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc-dim); }
.rcol.now { box-shadow: var(--shadow), 0 0 0 2px rgba(0,122,255,.35); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 10px; background: var(--acc-soft); color: var(--acc); font-size: 13px; font-weight: 600; }

/* 9. reviews */
.soon { padding: 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--mute); border: 2px dashed rgba(0,122,255,.18); }
.soon::before { display: none; }
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }   /* 4 reviews: 2×2 */
.reviews .review { padding: 22px 22px 20px; } .reviews .review blockquote { font-size: 17px; }
.mvp { margin-top: 18px; padding: 14px 20px; border-radius: 18px; background: rgba(255,255,255,.55); box-shadow: var(--shadow); font-size: 15px; color: var(--ink-2); text-align: center; }
.reviews .soon { justify-content: center; }
.review { padding: 26px 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.review header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.review .who { display: flex; flex-direction: column; }
.review .who b { font-size: 18px; font-weight: 600; color: var(--ink-2); }
.review .who small { font-size: 14px; color: var(--mute); }
.review blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--acc); font-size: 19px; line-height: 1.4; color: var(--ink-2); }
.review .asked { margin-top: 6px; font-size: 13px; color: var(--mute); }
@media (max-width: 1020px) { .reviews { grid-template-columns: minmax(0, 1fr); } .review blockquote { font-size: 17px; } }

.cta { margin: 100px 0 0; padding: 56px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.02em; color: var(--ink-2); }
.cta .btn { margin-top: 18px; }
.foot { width: min(var(--wrap), calc(100% - 32px)); margin: 60px auto 40px; display: flex; align-items: center; justify-content: space-between; color: var(--mute); font-size: 14px; opacity: .8; }

/* appear on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* tablet */
@media (max-width: 1020px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 520px; }
  .works, .works.final, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li:nth-child(2n)::before { right: 0; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .n1, .n2, .n3, .n4, .n5, .n6, .n7, .n8 { grid-area: auto; }
  .ar { display: none; }
  .phones { height: 520px; }
  .phone.mid { width: 260px; } .phone.side { width: 200px; }
  .tag { display: none; }
}
/* phone */
@media (max-width: 640px) {
  .brand img { width: 104px; height: auto; }
  .hero { padding-top: 48px; }
  .lead { font-size: 16px; }
  .phones { height: auto; margin-top: 30px; padding: 6px 0 10px; }
  .hero { padding-bottom: 10px; }
  .works:not(.final) .work:first-child { grid-column: auto; grid-row: auto; }
  .hero-cta { margin-top: 26px; }
  .phone.mid { width: 220px; border-radius: 28px; } .phone.side { width: 160px; border-radius: 24px; }
  .phone.l { transform: translateX(60px) rotate(-6deg); } .phone.r { transform: translateX(-60px) rotate(6deg); }
  .sec { padding-top: 70px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 18px 16px; } .stat strong { font-size: 34px; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .node { min-height: 0; padding: 16px 18px 18px; }
  .node:not(.n8)::after { content: ""; position: absolute; left: 34px; bottom: -14px; width: 2px; height: 14px; background: var(--acc-dim); }   /* one column: steps joined top to bottom */
  .works, .cards, .bento { grid-template-columns: minmax(0, 1fr); }
  .works.final { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bento { grid-auto-rows: auto; }
  .tile.w2 { grid-column: auto; }
  .tile .shots { flex: none; }
  .tile img { height: auto; aspect-ratio: 9 / 16; }
  .tile.w2 .shots img:nth-child(n+3) { display: none; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .timeline li { padding: 0 0 0 34px; }
  .timeline li::before, .timeline li:nth-child(2n)::before { left: 10px; right: auto; top: 10px; bottom: -14px; width: 2px; height: auto; background: var(--acc-dim); }
  .timeline li:last-child::before { display: none; }
  .timeline li::after { left: 4px; top: 3px; }
  .cta { padding: 40px 20px; }
  .foot { flex-direction: column; gap: 8px; }
}

/* works + cuts on narrow screens (after the base rules: the works grid has an id selector) */
@media (max-width: 1020px) { #worksGrid.works.final { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cut header { flex-direction: column; gap: 4px; } }
@media (max-width: 640px) { #worksGrid.works.final { gap: 12px; } .cut { padding: 18px 16px; } .bar { height: 36px; } .cut strong { font-size: 20px; } }

/* 7a. Стратегия: три шага воронкой (1 — узкий и плотный, 3 — широкий и лёгкий), в каждой карточке живая мини-анимация. Всё под #strategy. */
#strategy .st-flow { display: grid; grid-template-columns: minmax(0, .9fr) 44px minmax(0, 1fr) 44px minmax(0, 1.12fr); align-items: center; }
#strategy .st-card { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
#strategy .s1 { min-height: 420px; background: rgba(255,255,255,.8); box-shadow: var(--shadow), 0 0 0 2px rgba(0,122,255,.35); }
#strategy .s2 { min-height: 460px; }
#strategy .s3 { min-height: 500px; background: rgba(255,255,255,.34); }
#strategy .st-top { display: flex; align-items: center; gap: 10px; }
#strategy .st-n { width: 30px; height: 30px; border-radius: 10px; background: var(--acc); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
#strategy .s2 .st-n { background: #4FA8FF; }
#strategy .s3 .st-n { background: var(--acc-dim); }
#strategy .st-now { background: var(--acc); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
#strategy .st-now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: st-pulse 1.6s ease-in-out infinite; }
#strategy .st-card h3 { font-size: 20px; font-weight: 600; color: var(--ink-2); }
#strategy .st-card > p { font-size: 14.5px; color: var(--mute); line-height: 1.45; }
#strategy .st-anim { position: relative; height: 180px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }

/* 1. montage: long bar → grey gaps → bad joint → ✓ → kept parts glide into a short bar */
#strategy .a1-in { height: 100%; transition: opacity .35s; }
#strategy .a1.out .a1-in { opacity: 0; }
#strategy .tl-wrap { display: flex; align-items: center; gap: 10px; margin-top: 30px; }
#strategy .tl-t { position: relative; flex: none; width: 38px; height: 20px; font-size: 14px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
#strategy .tl-t span { position: absolute; left: 0; top: 0; transition: opacity .4s; }
#strategy .tl-t .t1 { opacity: 0; color: var(--acc); }
#strategy .a1.p4 .t0 { opacity: 0; } #strategy .a1.p4 .t1 { opacity: 1; }
#strategy .tl { position: relative; width: calc(100% - 48px); height: 34px; display: flex; transition: width .9s cubic-bezier(.6,0,.2,1); }
#strategy .tl i { flex: 1 1 0; min-width: 0; margin-right: 2px; border-radius: 5px; background: #C9D6E6;
  transition: background .35s ease calc(var(--i) * 60ms), opacity .4s, flex-grow .9s cubic-bezier(.6,0,.2,1), margin .9s; }
#strategy .a1.p1 .tl i.k { background: linear-gradient(180deg, #4FA8FF, #2F7BF0); }
#strategy .a1.p1 .tl i:not(.k) { background: #E3E9F1; opacity: .7; }
#strategy .a1.p4 .tl { width: 40%; }
#strategy .a1.p4 .tl i:not(.k) { flex-grow: 0; margin-right: 0; opacity: 0; }
#strategy .tl-x { position: absolute; left: 35.7%; top: -9px; bottom: -9px; width: 16px; margin-left: -9px; opacity: 0; transition: opacity .25s; }
#strategy .tl-x svg { width: 100%; height: 100%; display: block; transition: opacity .2s; }
#strategy .tl-x .ok { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
#strategy .tl-x .lb { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); font-size: 12px; font-weight: 600; white-space: nowrap; transition: opacity .25s; }
#strategy .tl-x .bad { color: #E5484D; } #strategy .tl-x .good { color: var(--ok); opacity: 0; }
#strategy .a1.p2 .tl-x { opacity: 1; } #strategy .a1.p2 .tl-x svg { animation: st-flash .35s 3; }
#strategy .a1.p3 .tl-x svg, #strategy .a1.p3 .tl-x .bad { opacity: 0; }
#strategy .a1.p3 .tl-x .ok { transform: scale(1); } #strategy .a1.p3 .tl-x .good { opacity: 1; }
#strategy .a1.p4 .tl-x { opacity: 0; }
#strategy .a1.rs .tl, #strategy .a1.rs .tl i, #strategy .a1.rs .tl-x, #strategy .a1.rs .tl-x * , #strategy .a1.rs .tl-t span { transition: none; }
#strategy .tl-leg { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--mute); }
#strategy .tl-leg span { display: inline-flex; align-items: center; gap: 6px; }
#strategy .tl-leg span::before { content: ""; width: 16px; height: 9px; border-radius: 3px; background: linear-gradient(90deg, #4FA8FF, #2F7BF0); }
#strategy .tl-leg .g::before { background: #DCE4EE; }

/* 2. motion: words light up like karaoke, a glass icon pops in the frame on key words */
#strategy .a2 { display: flex; align-items: center; gap: 14px; }
#strategy .fr { position: relative; flex: none; width: 86px; height: 152px; border-radius: 14px; overflow: hidden; background: linear-gradient(165deg, #E4EEF9, #C3D4EA); box-shadow: 0 6px 16px -6px rgba(41,77,140,.3); }
#strategy .sil { position: absolute; left: 50%; bottom: 0; width: 64px; height: 78px; transform: translateX(-50%); }
#strategy .sil::before { content: ""; position: absolute; left: 50%; top: 0; width: 28px; height: 30px; margin-left: -14px; border-radius: 50%; background: rgba(25,49,79,.22); }
#strategy .sil::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 44px; border-radius: 32px 32px 0 0; background: rgba(25,49,79,.22); }
#strategy .ch { position: absolute; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1;
  background: rgba(255,255,255,.78); box-shadow: 0 4px 12px -2px rgba(41,77,140,.3), inset 0 1px 2px #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.3); transition: opacity .25s, transform .35s cubic-bezier(.3,1.6,.5,1); }
#strategy .c1 { left: 7px; top: 10px; } #strategy .c2 { right: 7px; top: 34px; } #strategy .c3 { left: 9px; top: 62px; }
#strategy .ch.on { opacity: 1; transform: none; }
#strategy .kar { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; line-height: 1.5; color: #B9C6D6; }
#strategy .kar span { border-radius: 6px; padding: 0 2px; transition: color .2s, background .2s; }
#strategy .kar .on { color: var(--ink-2); }
#strategy .kar .now { color: var(--acc); background: var(--acc-soft); }

/* 3. style library: real style tiles + empty ones appear one by one; everything floats a little */
#strategy .tiles { height: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; }
#strategy .tiles > * { min-width: 0; min-height: 0; border-radius: 12px; animation: st-float 3.2s ease-in-out infinite alternate; }
#strategy .tiles > :nth-child(2n) { animation-delay: -1.1s; } #strategy .tiles > :nth-child(3n) { animation-delay: -2.2s; }
#strategy:not(.run) .tiles > * { animation-play-state: paused; }
#strategy .tiles img { width: 100%; height: 100%; object-fit: cover; display: block; background: #0d1626; box-shadow: 0 6px 14px -6px rgba(41,77,140,.35); }
#strategy .nw { display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; font-size: 11.5px; font-weight: 600; line-height: 1.2; color: var(--acc);
  border: 2px dashed rgba(0,122,255,.35); background: rgba(255,255,255,.5); opacity: 0; scale: .8; transition: opacity .4s, scale .45s cubic-bezier(.3,1.5,.5,1); }
#strategy .nw.on { opacity: 1; scale: 1; }

/* arrows between the steps */
#strategy .st-ar { position: relative; justify-self: center; width: 28px; height: 2px; background: var(--acc-dim); }
#strategy .st-ar::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--acc-dim); border-right: 0; }
#strategy .st-note { margin-top: 22px; padding: 14px 22px; border-radius: 18px; font-size: 15px; color: var(--ink-2); text-align: center; }
#strategy .st-note b { color: var(--acc); font-weight: 600; }

@keyframes st-pulse { 50% { opacity: .35; } }
@keyframes st-flash { 50% { opacity: .15; } }
@keyframes st-float { from { transform: translateY(-3px); } to { transform: translateY(3px); } }

@media (max-width: 1020px) { #strategy .st-card { padding: 18px 16px 20px; } #strategy .kar { font-size: 15px; } }
@media (max-width: 860px) {
  #strategy .st-flow { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 12px; }
  #strategy .st-card { width: 100%; min-height: 0; }
  #strategy .s1 { width: 90%; } #strategy .s2 { width: 95%; }
  #strategy .st-ar { width: 2px; height: 26px; }
  #strategy .st-ar::after { right: auto; top: auto; left: -5px; bottom: -2px; border: 6px solid transparent; border-top: 9px solid var(--acc-dim); border-bottom: 0; }
}
@media (max-width: 480px) { #strategy .s1 { width: 94%; } #strategy .s2 { width: 97%; } #strategy .fr { width: 76px; height: 135px; } #strategy .kar { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { #strategy *, #strategy *::before, #strategy *::after { animation: none !important; transition: none !important; } }

/* 12.11 11:30: burger menu on phones (the header stays ~56 px), the queue state under «Начать» */
.burger { display: none; flex: none; width: 40px; height: 40px; border: 0; border-radius: 20px; background: rgba(255,255,255,.8); box-shadow: var(--shadow); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink-2); transition: transform .2s, opacity .2s; }
.topbar.open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar.open .burger i:nth-child(2) { opacity: 0; }
.topbar.open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1100px) {
  .topbar { flex-wrap: nowrap; min-height: 56px; height: 56px; padding: 0 8px 0 16px; gap: 8px; border-radius: 28px; }
  .topbar > .btn { margin-left: auto; }
  .burger { display: inline-flex; }
  .bar-nav { position: absolute; left: 0; right: 0; top: calc(100% + 8px); order: 0; flex: none; margin: 0; padding: 8px; display: none; flex-direction: column; gap: 2px;
    overflow: visible; border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: var(--shadow-lg); max-height: calc(100vh - 90px); overflow-y: auto; }
  .topbar.open .bar-nav { display: flex; }
  .bar-nav a { padding: 12px 14px; font-size: 16px; border-radius: 14px; }
  html { scroll-padding-top: 80px; }
}
.q-state { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px; border-radius: 14px; background: rgba(255,255,255,.7); box-shadow: var(--shadow);
  font-size: 13.5px; color: var(--ink-2); }
.q-state[hidden] { display: none; }
.q-state i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #2BB673); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #2BB673) 25%, transparent); }
.q-state.free { --c: #2BB673; } .q-state.busy { --c: #F2B01E; } .q-state.closed { --c: #E5484D; }
.cta .q-state { margin-top: 12px; }
