/* Fonts, header, menu, hero shell and the loader — by vasnev.art */

@font-face{font-family:'Geist';font-weight:300;font-display:block;src:url(/fonts/geist-300.woff2) format('woff2')}
@font-face{font-family:'Geist';font-weight:400;font-display:block;src:url(/fonts/geist-400.woff2) format('woff2')}
@font-face{font-family:'Geist Mono';font-weight:400;font-display:block;src:url(/fonts/geist-mono-400.woff2) format('woff2')}
@font-face{font-family:'Geist';font-weight:500;font-display:block;src:url(/fonts/geist-500.woff2) format('woff2')}

/* Layout: one stage over the hero. The loader's black blob ends as the «vasnev.art» button in the header. */
:root{
  --bg:#F8F8F8;        /* page ground (Figma) */
  --fg:#0B0B0C;        /* ink */
  --ink-2:#242424;     /* body copy */
  --muted:#696969;     /* nav text, secondary */
  --chip:#EDEDED;      /* header shell, link chips */
  --blue:#0576DC;      /* avatar blue */
  --font:'Geist',-apple-system,BlinkMacSystemFont,'SF Pro Display','Helvetica Neue',Arial,sans-serif;
  --gutter-l:max(16px, env(safe-area-inset-left, 0px));
  --gutter-r:max(16px, env(safe-area-inset-right, 0px));
  color-scheme:light;
}
html,body{height:100%}
body{background:var(--bg);color:var(--fg);font-family:var(--font);-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
button{font:inherit;color:inherit}
a:focus-visible,button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}

/* ---------- Header (Figma «Frame 521») ---------- */
.nav-wrap{position:fixed;left:0;right:0;z-index:55;top:calc(clamp(12px,2.6vw,50px) + env(safe-area-inset-top, 0px));padding-left:var(--gutter-l);padding-right:var(--gutter-r);display:flex;justify-content:center}
.nav{width:min(1600px,100%);display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px;border-radius:20px;background:var(--chip);height:clamp(64px,4.2vw,80px)}
.nav-l,.nav-r{display:flex;gap:8px;height:100%;align-items:center;min-width:0}
.nav a{height:100%;display:inline-flex;align-items:center;justify-content:center;padding:0 clamp(16px,1.7vw,32px);border-radius:16px;background:rgba(248,248,248,.8);color:var(--muted);text-decoration:none;font-size:clamp(16px,1.05vw,20px);letter-spacing:-.04em;white-space:nowrap;transition:background .2s,color .2s}
.nav a:hover{background:var(--bg);color:var(--fg)}
.nav a.on{background:var(--bg);color:var(--fg);font-weight:500}
.nav .lang{padding:0 20px;background:var(--bg);color:var(--fg);font-weight:500}
.nav .lang span{color:var(--muted)}
.nav .brand{background:var(--fg);color:#fff;font-weight:400;padding:0 26px;gap:12px;font-size:20px}
.brand-mark{width:30px;height:24px;flex:none;display:block}
.nav .brand:hover{background:#222;color:#fff}
/* menu toggle: same chip as the links; the three dots fold into a cross */
.nav .more{display:none;height:100%;width:clamp(48px,3.3vw,64px);padding:0;border:0;border-radius:16px;background:var(--bg);color:var(--fg);align-items:center;justify-content:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.nav .more svg{width:40px;height:40px;transition:transform .45s var(--spr-jelly)}
.nav .more:active svg{transform:scale(.88)}
.more circle{transition:transform .45s var(--spr-jelly),opacity .15s}
.more .d1{transform-origin:20px 12px}.more .d3{transform-origin:20px 28px}.more .d2{transform-origin:20px 20px}
.more path.l1,.more path.l2{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;transition:transform .4s cubic-bezier(.32,.72,0,1)}
.more .l1{transform-origin:20px 16px}.more .l2{transform-origin:20px 24px}
.more[aria-expanded="true"] .l1{transform:translateY(4px) rotate(45deg)}
.more[aria-expanded="true"] .l2{transform:translateY(-4px) rotate(-45deg)}
.more .x{opacity:0;stroke-dasharray:18;stroke-dashoffset:18;transition:stroke-dashoffset .35s var(--spr-soft),opacity .1s}
.more[aria-expanded="true"] .d1{transform:translateY(8px) scale(.4);opacity:0}
.more[aria-expanded="true"] .d3{transform:translateY(-8px) scale(.4);opacity:0}
.more[aria-expanded="true"] .d2{transform:scale(.4);opacity:0}
.more[aria-expanded="true"] .x{opacity:1;stroke-dashoffset:0;transition-delay:.06s}

/* dropdown: the same shell as the header (chip, 20 / 8 / 16) */
.menu{position:absolute;top:calc(100% + 8px);left:var(--gutter-l);right:var(--gutter-r);display:none;flex-direction:column;gap:8px;padding:8px;border-radius:20px;background:var(--chip);box-shadow:0 16px 40px rgba(11,11,12,.10);transform-origin:50% 0;opacity:0;transform:translateY(-8px) scale(.97);visibility:hidden;pointer-events:none;transition:opacity .18s,transform .45s var(--spr-jelly),visibility 0s .45s}
.menu.open{opacity:1;transform:none;visibility:visible;pointer-events:auto;transition:opacity .18s,transform .45s var(--spr-jelly),visibility 0s}
.menu a{height:48px;display:flex;align-items:center;padding:0 16px;border-radius:16px;background:rgba(248,248,248,.8);color:var(--muted);text-decoration:none;font-size:16px;letter-spacing:-.04em;transition:background .2s,color .2s}
.menu a:hover{background:var(--bg);color:var(--fg)}
.menu a.on{background:var(--bg);color:var(--fg);font-weight:500}
.menu .lang{display:none;background:var(--bg);color:var(--fg);font-weight:500}
.menu .lang span{color:var(--muted)}
@media (max-width:900px){
  .nav-l{display:none}
  .nav{justify-content:flex-end}
  .nav .more{display:inline-flex}
  .menu{display:flex}
}
@media (max-width:560px){.nav .lang{display:none}.menu .lang{display:flex}}
@media (prefers-reduced-motion: reduce){.menu,.menu.open,.more circle,.more .x,.nav .more svg{transition:none}}
.nav [data-n]{opacity:0}

/* ---------- Hero (Figma «Frame 517») ---------- */
.hero{position:relative;min-height:100vh;display:grid;place-items:center;padding-left:var(--gutter-l);padding-right:var(--gutter-r);padding-block:120px 80px}
.hero-in{display:flex;flex-direction:column;align-items:center;gap:24px;max-width:1060px}
.id{display:flex;flex-direction:column;align-items:center;gap:16px}
.id-row{display:flex;align-items:center;gap:clamp(16px,2.2vw,32px)}
.ava{width:clamp(64px,8.4vw,120px);aspect-ratio:1;flex:none;position:relative;max-width:100%;background:var(--blue);clip-path:var(--squircle)}
.ava img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;scale:1.07}
.name{margin:0;font-weight:400;font-size:clamp(40px,7.6vw,110px);line-height:1.05;letter-spacing:-.07em;white-space:nowrap}
.lead{margin:0;max-width:815px;text-align:center;font-weight:300;font-size:clamp(18px,2.2vw,32px);line-height:1.125;letter-spacing:-.02em;color:var(--ink-2);text-wrap:balance}
.links{display:flex;gap:16px;padding:8px 16px;flex-wrap:wrap;justify-content:center}
.links a{display:inline-flex;align-items:center;gap:6px;padding:12px 16px;border-radius:10px;background:var(--chip);color:var(--fg);text-decoration:none;font-size:clamp(18px,1.7vw,24px);line-height:20px;letter-spacing:-.05em;transition:background .2s}
.links a:hover{background:#E3E3E3}
.links svg{width:15px;height:15px}
.hero [data-r]{opacity:0}
@media (max-width:720px){
  .id-row{flex-direction:column;gap:20px}
  .name{font-size:clamp(40px,12vw,64px);white-space:normal;text-align:center}
}

/* ---------- Loader ---------- */
.loader{position:fixed;inset:0;z-index:70}
.veil{position:absolute;inset:0;background:var(--bg)}
.hello{position:absolute;left:0;right:0;text-align:center;font-size:32px;line-height:40px;letter-spacing:-.03em;white-space:nowrap}
.hello .ch{display:inline-block;opacity:0;white-space:pre}
.blob{position:absolute;left:0;top:0;width:22px;height:22px;border-radius:11px;background:var(--fg);overflow:hidden;opacity:0;display:flex;align-items:center;justify-content:center;padding:0;will-change:transform}
.blob-in{display:flex;align-items:center;flex:none}
.mark-w{width:30px;margin-right:12px;flex:none;display:flex;overflow:hidden}
.mark{width:30px;height:24px;flex:none;overflow:visible}
.mark path{fill:#fff;fill-opacity:0;stroke:#fff;stroke-width:17;stroke-dasharray:1 2;stroke-dashoffset:1.01;opacity:0}
.word{color:#fff;font-size:20px;line-height:20px;letter-spacing:-.04em;white-space:nowrap}
.word .ch{display:inline-block;opacity:0;white-space:pre}

/* the design scene inside the card — 1 CSS px = 1 SVG unit */
.scene{position:absolute;left:50%;top:50%;width:340px;height:160px;margin:-80px 0 0 -170px;overflow:visible;pointer-events:none}
.scene .pop{transform-box:fill-box;transform-origin:center}
.scene [data-s]{opacity:0}
.fr{fill:rgba(255,255,255,.04);stroke:#fff;stroke-width:1;transform-origin:24px 28px}
.flabel{font:400 9px/1 var(--font);fill:rgba(255,255,255,.55);letter-spacing:.01em}
.hd{fill:#fff;stroke:#0D99FF;stroke-width:1}
.chip-t{font:500 8px/1 var(--font);fill:#fff}
.lb{font:500 7.5px/1 var(--font);fill:#B57BFF;letter-spacing:.01em}
.lb2{font:400 7.5px/1 var(--font);fill:rgba(255,255,255,.6);letter-spacing:.02em}
.bt{font:500 10px/1 var(--font);fill:#fff;letter-spacing:-.01em}
.bf{fill:#0D99FF}
.btn{transform-box:fill-box;transform-origin:center}
.scene text{white-space:pre}
.sk{fill:#2C2C30}
.gc{transform-box:fill-box;transform-origin:50% 0}
.t7{font:500 7px/1 var(--font);fill:#fff}
.t5{font:400 5.5px/1 var(--font);fill:rgba(255,255,255,.85)}
.t5w{font:400 5.5px/1 var(--font);fill:rgba(255,255,255,.8)}
.t10{font:500 10px/1 var(--font);fill:#fff;letter-spacing:-.02em}
.t6k{font:500 6.5px/1 var(--font);fill:#0B0B0C}
.t6w{font:500 6.5px/1 var(--font);fill:#fff}
.t7k{font:500 7px/1 var(--font);fill:#0B0B0C}
.wf{stroke-dasharray:1 2;stroke-dashoffset:1}
.ct{font:500 9px/1 var(--font);fill:#fff;letter-spacing:-.02em}
.tag{font:500 6px/1 var(--font)}
.code{font:400 6.4px/1 'Geist Mono',ui-monospace,'SF Mono',Menlo,monospace}
#c_tg{transform-origin:46px 99px}
#c_bub{transform-origin:207px 30px}
#c_dev{transform-origin:332px 80px}
.tool-k{fill:#fff;stroke:var(--fg);stroke-width:1.1;stroke-linejoin:round}

/* colourful toys that roll in and become the mark */
.toys{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.toy{position:absolute;left:0;top:0;opacity:0;will-change:transform}
.toy svg{display:block;width:100%;height:100%;overflow:visible}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ================= Site frame ================= */
html.is-loading,html.is-loading body{overflow:hidden}
/* barely-there dot grid on the page ground */
body{overflow-x:hidden;background-color:var(--bg);background-image:radial-gradient(circle,rgba(11,11,12,.075) 0 1px,transparent 1.4px);background-size:20px 20px;background-position:-6px -6px}
.wrap{width:min(1600px,100%);margin:0 auto;padding-left:max(clamp(16px,4vw,64px), env(safe-area-inset-left, 0px));padding-right:max(clamp(16px,4vw,64px), env(safe-area-inset-right, 0px))}
.eyebrow{margin:0 0 28px;font:400 14px/1 'Geist Mono',ui-monospace,'SF Mono',Menlo,monospace;color:#8E8E93;letter-spacing:0}
.h2{margin:0;font-weight:400;font-size:clamp(36px,4.2vw,72px);line-height:1.02;letter-spacing:-.055em;text-wrap:balance}
:root{--spr-pop:ease-out;--spr-jelly:ease-out;--spr-soft:ease-out}
.veil{background-color:var(--bg);background-image:radial-gradient(circle,rgba(11,11,12,.075) 0 1px,transparent 1.4px);background-size:20px 20px;background-position:-6px -6px}

/* ---- first screen (Figma «Frame 517», updated) ---- */
.ava{width:clamp(64px,6.8vw,98px)}
.ava img{scale:1.02}
.id-row{gap:clamp(14px,1.7vw,24px)}
.hero-in{position:relative;will-change:transform}
.hcur{position:absolute;left:0;top:0;z-index:5;pointer-events:none;opacity:0;will-change:transform}
.hcur svg{display:block;width:16px;height:22px;transform-origin:1px 1px;overflow:visible;filter:drop-shadow(0 1px 2px rgba(0,0,0,.18))}
.hcur path{fill:#6CA7FF;stroke:#fff;stroke-width:1.4;stroke-linejoin:round}
.hcur span{position:absolute;left:14px;top:19px;padding:4px 8px 5px;border-radius:7px;background:#6CA7FF;color:#fff;font-size:13px;font-weight:500;letter-spacing:-.01em;line-height:1;white-space:nowrap}
.name .nc{display:inline-block;white-space:pre}
/* the Figma selection frame the first screen is «built» inside */
.sel{position:absolute;left:calc(-1 * clamp(16px,4.9vw,70px));top:-24px;width:0;height:0;pointer-events:none;opacity:0}
@media (max-width:1100px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.card:last-child{grid-column:1/-1}}
@media (max-width:560px){.cards{grid-template-columns:minmax(0,1fr)}.card:last-child{grid-column:auto}.man{text-align:left}}
@media (prefers-reduced-motion: reduce){.sc-man{height:auto !important}.man .w{color:#242424}.chip{transform:none;transition:none}.tile{opacity:1;transform:none;transition:none}}

/* ---- cursor tooltip ---- */
.tip{position:fixed;left:0;top:0;z-index:60;pointer-events:none;display:flex;flex-direction:column;gap:3px;max-width:280px;padding:9px 12px 10px;border-radius:12px;background:var(--fg);color:#fff;box-shadow:0 12px 30px rgba(0,0,0,.18);opacity:0;transform-origin:0 0;will-change:transform}
.tip-t{font-size:14px;font-weight:500;letter-spacing:-.02em;line-height:1.2}
.tip-s{font-size:12.5px;line-height:1.3;color:rgba(255,255,255,.65);letter-spacing:-.01em}
.tip-s:empty{display:none}

.again{position:fixed;left:max(16px, env(safe-area-inset-left, 0px));bottom:calc(16px + env(safe-area-inset-bottom, 0px));z-index:40;border:0;border-radius:10px;background:var(--chip);padding:10px 14px;font-size:14px;letter-spacing:-.02em;display:inline-flex;align-items:center;gap:8px;cursor:pointer;transition:background .2s}
.again:hover{background:#E3E3E3}
.again svg{width:14px;height:14px}
html.is-loading .again{opacity:0;pointer-events:none}

/* the first screen's selection: same as every selection on the page — 1.5px line, white square handles, size badge */
.sel{box-shadow:inset 0 0 0 1.5px var(--c-sel,#6CA7FF)}
.sel i{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;background:#fff;box-shadow:0 0 0 1.5px var(--c-sel,#6CA7FF);transform:scale(0)}
.sel .tl{left:0;top:0}.sel .tr{left:100%;top:0}.sel .bl{left:0;top:100%}.sel .br{left:100%;top:100%}
.sel-sz{position:absolute;left:50%;top:100%;translate:-50% 10px;padding:4px 7px 5px;border-radius:6px;background:var(--c-sel,#6CA7FF);color:#fff;font:400 12px/1 'Geist Mono',ui-monospace,monospace;white-space:nowrap}

/* ================= Blocks after the first screen: frames on a canvas ================= */
:root{--gap:160px;--c-blue:#2F5CFF;--c-yellow:#FFD43B;--c-pink:#FF8AD8;--c-orange:#FF7A45;--c-lilac:#D9CBFF;--c-violet:#8E5CFF;--c-sel:#6CA7FF;--c-guide:#FF3D8B}
.fr-wrap{position:relative;padding-bottom:var(--gap)}
/* frame name above every block — like a frame on the canvas */
.fr-label{display:inline-flex;align-items:center;gap:6px;height:24px;margin:0 0 6px;font:400 13px/1 'Geist Mono',ui-monospace,monospace;color:#8E8E93;transition:color .2s}
.fr-label svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.2}
.fr-wrap:hover>.fr-label{color:var(--c-sel)}
.frm{position:relative;border-radius:32px;overflow:hidden;isolation:isolate}
.frm::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 2px var(--c-sel);opacity:0;transition:opacity .2s;pointer-events:none;z-index:20}
.fr-wrap:hover>.frm::after{opacity:1}
.f-h{margin:0;font-weight:500;font-size:clamp(48px,6.6vw,104px);line-height:.94;letter-spacing:-.065em;text-wrap:balance}
.f-h .ln{display:inline-block}
.f-h-m{font-size:clamp(40px,4.6vw,72px)}
.f-p{margin:0;font-size:clamp(17px,1.45vw,22px);line-height:1.35;letter-spacing:-.025em;max-width:34ch}
.hint{position:absolute;right:28px;bottom:24px;margin:0;font:400 13px/1 'Geist Mono',ui-monospace,monospace;opacity:.6;z-index:6}
.g{position:absolute;display:block;overflow:visible}
.drag{cursor:grab;touch-action:none;pointer-events:auto}
.drag.held{cursor:grabbing}

/* ---- 01 · Обо мне ---- */
.fr-blue{background:var(--c-blue);color:#fff;min-height:clamp(560px,50vw,760px);padding:clamp(28px,4.4vw,64px);display:flex}
.f1-copy{position:relative;z-index:5;display:flex;flex-direction:column;gap:clamp(20px,2.4vw,36px);max-width:62%;pointer-events:none}
.f1-copy .f-h{font-size:clamp(40px,4.5vw,72px)}
.f1-copy .f-h .ln{display:block}
.f1-copy .f-p{color:rgba(255,255,255,.86)}
.facts{list-style:none;margin:auto 0 0;padding:0;display:flex;gap:clamp(24px,4vw,64px)}
.facts li{display:flex;flex-direction:column;gap:6px}
.facts b{font-weight:500;font-size:clamp(40px,4.4vw,68px);line-height:.9;letter-spacing:-.06em}
.facts span{font-size:15px;letter-spacing:-.02em;color:rgba(255,255,255,.74);max-width:14ch;line-height:1.25}
.gx{position:absolute;inset:0;z-index:2;pointer-events:none}
.g-tri{width:30%;right:-3%;top:-9%;rotate:14deg}
.g-tri path{fill:var(--c-pink)}
.g-circ{width:30%;right:13%;bottom:9%}
.g-circ circle{fill:var(--c-yellow)}
.g-cur{width:15%;right:7%;bottom:-6%;filter:drop-shadow(0 18px 30px rgba(0,0,0,.18))}
.g-cur path{fill:#fff;stroke:#0B0B0C;stroke-width:5;stroke-linejoin:round}
.fr-blue .hint{color:#fff;right:auto;left:50%}

/* ---- 02 · Что я делаю ---- */
.fr-dark{background:#121214 radial-gradient(circle,rgba(255,255,255,.09) 0 1px,transparent 1.4px) -6px -6px/20px 20px;color:#fff;height:clamp(780px,62vw,880px)}
.f2-head{position:absolute;left:clamp(28px,4.4vw,64px);right:clamp(28px,4.4vw,64px);top:clamp(28px,4.4vw,56px);display:flex;justify-content:space-between;align-items:flex-start;z-index:3;pointer-events:none}
.hint-in{position:static;color:#fff;margin-top:12px}
.conn{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}
.conn path{fill:none;stroke:rgba(255,255,255,.55);stroke-width:2.5;stroke-linecap:round}
.conn rect{fill:#121214;stroke:rgba(255,255,255,.75);stroke-width:2}
.guides{position:absolute;inset:0;z-index:4;pointer-events:none}
.guides i{position:absolute;background:var(--c-guide)}
.guides i.v{width:1.5px;margin-left:-.75px}.guides i.h{height:1.5px;margin-top:-.75px}
.guides b{position:absolute;padding:3px 6px 4px;border-radius:5px;background:var(--c-sel);color:#fff;font:400 11px/1 'Geist Mono',ui-monospace,monospace;white-space:nowrap;translate:-50% 0}
.canvas{position:absolute;inset:0;z-index:2}
.obj{position:absolute;left:0;top:0;width:clamp(240px,21vw,296px);padding:20px 20px 18px;border-radius:22px;display:flex;flex-direction:column;gap:10px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;transform-origin:50% 40%;will-change:translate,rotate}
.obj::after{content:"";position:absolute;inset:-6px;border-radius:26px;box-shadow:0 0 0 2px var(--c-sel);opacity:0;transition:opacity .15s;pointer-events:none}
.obj:hover::after,.obj.held::after{opacity:1}
.obj.held{cursor:grabbing;z-index:5}
.obj h3{margin:0;font-weight:500;font-size:26px;line-height:1.05;letter-spacing:-.05em}
.obj p{margin:0;font-size:15px;line-height:1.38;letter-spacing:-.02em}
.o-ic{display:flex;gap:6px;margin-top:6px}
.o-ic img{width:36px;height:36px;object-fit:cover;clip-path:var(--squircle);display:block;-webkit-user-drag:none}
.reset{position:absolute;right:24px;bottom:22px;z-index:6;border:0;border-radius:10px;background:rgba(255,255,255,.12);color:#fff;padding:10px 14px;font:inherit;font-size:14px;letter-spacing:-.02em;cursor:pointer;transition:background .2s}
.reset:hover{background:rgba(255,255,255,.2)}

/* ---- 03 · Опыт ---- */
.fr-lilac{background:var(--c-lilac);color:#0B0B0C;padding:clamp(28px,4.4vw,64px);display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(28px,4vw,64px);min-height:clamp(560px,46vw,700px)}
.f3-side{position:relative;display:flex;flex-direction:column;gap:clamp(20px,2.4vw,32px)}
.f3-side .f-p{color:#2B2340}
.g-cur3{width:clamp(110px,11vw,170px);left:-10px;bottom:calc(-1 * clamp(28px,4.4vw,64px) - 40px);rotate:-8deg}
.g-cur3 path{fill:#0B0B0C;stroke:#fff;stroke-width:5;stroke-linejoin:round}
.al{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;align-self:center;position:relative}
.row{position:relative;display:grid;grid-template-columns:8.5em minmax(0,1fr) auto;align-items:baseline;gap:16px;padding:20px 8px;border-top:1px solid rgba(11,11,12,.14);transition:background .2s}
.row:last-child{border-bottom:1px solid rgba(11,11,12,.14)}
.row::after{content:"";position:absolute;inset:0 -4px;box-shadow:0 0 0 2px var(--c-sel);border-radius:4px;opacity:0;transition:opacity .15s;pointer-events:none}
.row:hover::after{opacity:1}
.r-y{font:400 14px/1 'Geist Mono',ui-monospace,monospace;color:#5B5370}
.r-c{font-weight:500;font-size:clamp(26px,2.6vw,40px);letter-spacing:-.05em;line-height:1;display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}
.r-r{font-size:16px;letter-spacing:-.02em;color:#3D3550;text-align:right}
.award{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:9px;background:#0B0B0C;color:#fff;font:normal 500 13px/1 'Geist',sans-serif;letter-spacing:-.01em}
.award svg{width:12px;height:12px;fill:var(--c-yellow)}
/* auto-layout spacing tags while the rows land */
.gaptag{position:absolute;right:50%;height:0;z-index:3;pointer-events:none}
.gaptag b{position:absolute;left:0;top:0;translate:-50% -50%;padding:3px 6px 4px;border-radius:5px;background:var(--c-guide);color:#fff;font:400 11px/1 'Geist Mono',ui-monospace,monospace}

/* ---- 04 · Контакты ---- */
.fr-yellow{background:var(--c-yellow);color:#0B0B0C;padding:clamp(28px,4.4vw,64px);min-height:clamp(520px,44vw,660px);display:flex;flex-direction:column;justify-content:space-between;gap:40px;cursor:none}
.fr-yellow a,.fr-yellow button{cursor:none}
.f4-h{position:relative;z-index:5;max-width:11.5em}
.f4-cta{position:relative;z-index:5;display:flex;flex-wrap:wrap;gap:12px}
.cta-b{display:inline-flex;align-items:center;gap:10px;height:60px;padding:0 26px;border-radius:18px;background:#0B0B0C;color:#fff;text-decoration:none;font-size:19px;letter-spacing:-.03em;transition:transform .5s var(--spr-jelly),background .2s}
.cta-b svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.cta-b:hover{transform:translateY(-3px)}
.cta-b:active{transform:scale(.96)}
.cta-b-ghost{background:rgba(11,11,12,.08);color:#0B0B0C}
.cta-b:focus-visible{outline:2px solid var(--c-sel);outline-offset:3px}
.g-circ4{width:24%;right:-5%;bottom:-12%}
.g-circ4 circle{fill:var(--c-pink)}
.g-tri4{width:20%;right:5%;top:-12%;rotate:-18deg}
.g-tri4 path{fill:var(--c-blue)}
.you{position:absolute;left:0;top:0;z-index:30;pointer-events:none;opacity:0;transition:opacity .2s}
.you svg{display:block;width:18px;height:24px;overflow:visible;transform-origin:1px 1px;transition:scale .4s var(--spr-jelly)}
.you path{fill:#0B0B0C;stroke:#fff;stroke-width:1.4;stroke-linejoin:round}
.you span{position:absolute;left:16px;top:21px;padding:4px 8px 5px;border-radius:7px;background:#0B0B0C;color:#fff;font-size:13px;font-weight:500;line-height:1;white-space:nowrap}
.you.on{opacity:1}
.you.press svg{scale:.86}

.foot{display:flex;justify-content:space-between;padding-block:0 120px;font-size:14px;color:#8E8E93;letter-spacing:-.01em}

/* entrance states (set by script) */
.pre{clip-path:inset(0 100% 100% 0 round 32px)}
.f-h{position:relative}
.caret{position:absolute;left:0;top:0;width:3px;border-radius:2px;background:var(--c-sel);pointer-events:none;opacity:0}
.ec{position:absolute;left:0;top:0;z-index:40;pointer-events:none;opacity:0;will-change:transform}
.ec svg{display:block;width:18px;height:24px;overflow:visible;transform-origin:1px 1px}
.ec path{fill:var(--c);stroke:#fff;stroke-width:1.4;stroke-linejoin:round}
.ec span{position:absolute;left:15px;top:21px;padding:4px 8px 5px;border-radius:7px;background:var(--c);color:var(--t);font-size:13px;font-weight:500;line-height:1;white-space:nowrap;letter-spacing:-.01em}
.dr{position:absolute;z-index:35;width:0;height:0;pointer-events:none;box-shadow:inset 0 0 0 2px var(--c-sel);opacity:0}
.dr i{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;background:#fff;box-shadow:0 0 0 2px var(--c-sel)}
.dr b{position:absolute;left:50%;top:100%;translate:-50% 10px;padding:4px 7px 5px;border-radius:6px;background:var(--c-sel);color:#fff;font:400 12px/1 'Geist Mono',ui-monospace,monospace;white-space:nowrap}

@media (max-width:900px){
  .f1-copy{max-width:100%}
  .fr-blue{padding-bottom:58vw}
  .g-tri{width:36%;top:auto;bottom:22vw;right:-6%}
  .g-circ{width:40%;right:28%;bottom:4%}
  .g-cur{width:20%;right:20%;bottom:-6%}
  .facts{flex-wrap:wrap}
  .fr-dark{height:auto;padding:28px 20px 28px}
  .f2-head{position:static;display:block;margin-bottom:24px}
  .canvas{position:static;display:flex;flex-direction:column;gap:20px}
  .obj{position:relative;width:auto;translate:none !important;rotate:none !important;cursor:default}
    .conn,.hint-in,.reset{display:none}
  .fr-lilac{grid-template-columns:minmax(0,1fr)}
  .g-cur3{display:none}
  .row{grid-template-columns:minmax(0,1fr) auto;padding:16px 4px}
  .r-y{grid-column:1/-1}
  .fr-yellow{cursor:auto;padding-bottom:40vw}
  .fr-yellow a{cursor:pointer}
    .g-circ4{width:42%}.g-tri4{width:34%;top:auto;bottom:-8%;right:30%}
  .you{display:none}
}

.award{white-space:nowrap}
@media (max-width:900px){
  .frm .hint{display:none}
  .fr-yellow{padding-bottom:44vw}
  }

/* ---- footer: a playground — the shapes from the loader fall onto the wordmark ---- */
.ft{padding-bottom:max(24px,env(safe-area-inset-bottom,0px))}
.ft-play{position:relative;overflow:hidden;border-radius:0 0 4px 4px}
.ft-word{position:absolute;left:0;bottom:0;display:block;width:100%;pointer-events:none}
.ft-toys{position:absolute;inset:0}
.fts{position:absolute;left:0;top:0;opacity:0;cursor:grab;touch-action:none;will-change:transform;-webkit-user-select:none;user-select:none}
.fts.held{cursor:grabbing}
.fts svg{display:block;width:100%;height:100%;overflow:visible;pointer-events:none}
.ft-bar{display:flex;justify-content:center;align-items:center;gap:16px;height:56px;margin-top:18px;border-top:1px solid rgba(11,11,12,.1);font-size:14px;letter-spacing:-.01em;color:#8E8E93}
.ft-l{display:inline-flex;align-items:center;gap:10px}
.ft-l svg{width:12px;height:16px}
.ft-l path{fill:#0B0B0C;stroke:#fff;stroke-width:1.4;stroke-linejoin:round}
.ft-c{display:flex;gap:6px}
.ft-c a{padding:8px 12px;border-radius:9px;color:#0B0B0C;text-decoration:none;transition:background .2s}
.ft-c a:hover{background:rgba(11,11,12,.06)}
.ft-c a:focus-visible{outline:2px solid var(--c-sel);outline-offset:2px}
.ft-r{justify-self:end}
@media (max-width:700px){
  .ft-bar{grid-template-columns:1fr auto;height:auto;padding-top:14px;row-gap:10px}
  .ft-c{grid-column:1/-1;grid-row:1;margin-left:-12px}
}

.again{transition:background .2s,opacity .25s}
.at-foot .again{opacity:0;pointer-events:none}

/* ---- export panel + Moscow time: the editor's own sidebar ---- */
.xp-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:16px;margin-top:28px}
.xp,.tw{background:#fff;border-radius:20px;box-shadow:0 0 0 1px rgba(11,11,12,.07),0 10px 30px rgba(11,11,12,.04)}
.xp{padding:8px 8px 10px}
.xp-h,.tw-h{display:flex;align-items:center;justify-content:space-between;height:44px;padding:0 12px}
.xp-h h3{margin:0;font-weight:500;font-size:15px;letter-spacing:-.02em}
.xp-k{font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:#8E8E93}
.xcv,.xr{display:grid;grid-template-columns:36px minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:8px 8px 8px 12px;border-radius:12px;transition:background .15s}
.xcv{margin-bottom:6px;background:#F4F4F5}
.xl{list-style:none;margin:0;padding:0;border-top:1px solid rgba(11,11,12,.07);padding-top:6px}
.xr:hover{background:#F4F4F5}
.xt{display:grid;place-items:center;width:36px;height:36px;clip-path:var(--squircle);background:var(--b);color:var(--f);font:500 13px/1 'Geist',sans-serif;letter-spacing:-.03em}
.xt-doc{background:transparent}
.xt .lg{width:20px;height:20px;fill:currentColor}
.xt .lg-s{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.xt-doc svg{width:28px;height:28px}
.xn{display:flex;flex-direction:column;gap:3px;min-width:0}
.xn b{font-weight:500;font-size:15px;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xn i{font-style:normal;font-size:13px;color:#8E8E93;letter-spacing:-.01em}
.xm{font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:#8E8E93}
.xb{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:9px;background:rgba(11,11,12,.06);color:#0B0B0C;text-decoration:none;font-size:13px;letter-spacing:-.01em;transition:background .15s,transform .5s var(--spr-jelly)}
.xb svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.xb:hover{background:rgba(11,11,12,.1)}
.xb:active,.xcv-b:active{transform:scale(.95)}
.xb:focus-visible,.xcv-b:focus-visible{outline:2px solid var(--c-sel);outline-offset:2px}
.xs{display:flex;gap:4px}
.xs span{height:28px;padding:0 9px;display:grid;place-items:center;border-radius:8px;background:#fff;box-shadow:0 0 0 1px rgba(11,11,12,.08);font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:#3A3A3E}
.xcv-b{position:relative;overflow:hidden;display:inline-grid;place-items:center;height:36px;min-width:132px;padding:0 16px;border-radius:10px;background:var(--c-blue);color:#fff;text-decoration:none;font-size:14px;font-weight:500;letter-spacing:-.02em;transition:transform .5s var(--spr-jelly)}
.xcv-p{position:absolute;inset:0;background:rgba(255,255,255,.22);transform-origin:0 50%;transform:scaleX(0)}
.xcv-t{position:relative}
/* Moscow time widget */
.tw{display:flex;flex-direction:column;padding:8px 20px 18px}
.tw-h{justify-content:flex-start;gap:8px;padding:0;font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:#8E5CFF}
.tw-h svg{width:11px;height:11px;fill:currentColor}
.tw-t{display:flex;align-items:baseline;margin-top:6px;font-weight:500;font-size:clamp(56px,5vw,76px);line-height:.95;letter-spacing:-.06em;font-variant-numeric:tabular-nums}
.tw-s{font-size:.36em;letter-spacing:-.02em;color:#8E8E93;margin-left:4px}
.tw-d{display:flex;justify-content:space-between;margin-top:10px;font-size:14px;color:#3A3A3E;letter-spacing:-.01em}
.tw-d span:last-child{font:400 12px/1.4 'Geist Mono',ui-monospace,monospace;color:#8E8E93}
.tw-bar{position:relative;height:8px;margin-top:auto;border-radius:4px;background:#F0F0F2;overflow:hidden}
.tw-bar i{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:4px;background:var(--c-blue)}
.tw-bar span{position:absolute;top:0;bottom:0;width:2px;margin-left:-1px;background:#fff}
.tw-l{position:relative;height:12px;margin:6px 0 0;font:400 11px/1 'Geist Mono',ui-monospace,monospace;color:#8E8E93}
.tw{min-height:236px}
.tw .tw-bar{margin-top:auto}
.tw-l span{position:absolute;top:0;translate:-50% 0}
.tw-l span:first-child{left:37.5%}.tw-l span:last-child{left:79.2%}
@media (max-width:820px){.tw .tw-bar{margin-top:24px}}
@media (max-width:820px){
  .xp-wrap{grid-template-columns:minmax(0,1fr)}
  .xcv{grid-template-columns:36px minmax(0,1fr) auto}
  .xcv .xs{display:none}
  .xr{grid-template-columns:36px minmax(0,1fr) auto}
  .xr .xm{display:none}
}
html{overflow-anchor:none}

/* process cards: same radius, same anatomy — number, title, text, result, tools */
.f2-head{flex-direction:column;gap:14px}
.f2-lead{margin:0;max-width:46ch;font-size:clamp(16px,1.25vw,19px);line-height:1.4;letter-spacing:-.02em;color:rgba(255,255,255,.66)}
.obj{border-radius:22px;box-shadow:0 14px 30px rgba(0,0,0,.28)}
.obj::after{border-radius:26px}
.o-n{font:400 13px/1 'Geist Mono',ui-monospace,monospace;opacity:.6}
.o-res{display:block;margin-top:4px !important;padding-top:12px;border-top:1px solid currentColor;border-top-color:rgba(11,11,12,.14);font-weight:500;font-size:14px !important}
.o-res span{font:400 11px/1 'Geist Mono',ui-monospace,monospace;opacity:.6;text-transform:uppercase;letter-spacing:.04em}
.o-y{background:var(--c-yellow);color:#0B0B0C}
.o-w{background:#fff;color:#0B0B0C}
.o-w p{color:#3A3A3E}
.o-v{background:var(--c-violet);color:#fff}
.o-v .o-res{border-top-color:rgba(255,255,255,.24)}
.o-b{background:var(--c-blue);color:#fff}
.o-b .o-res{border-top-color:rgba(255,255,255,.24)}
/* 04 · the inspector of me */
.me{position:absolute;z-index:6;right:clamp(28px,7vw,110px);top:50%;translate:0 -42%;width:clamp(280px,25vw,340px);padding:16px 18px 10px;border-radius:22px;background:#fff;color:#0B0B0C;box-shadow:0 18px 40px rgba(11,11,12,.14);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.me::after{content:"";position:absolute;inset:-6px;border-radius:26px;box-shadow:0 0 0 2px var(--c-sel);opacity:0;transition:opacity .15s;pointer-events:none}
.me:hover::after,.me.held::after{opacity:1}
.me.held{cursor:grabbing}
.me-h{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid rgba(11,11,12,.08)}
.me-ava{width:48px;height:48px;flex:none;clip-path:var(--squircle);background:var(--c-blue) center/cover}
.me-n{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.me-n b{font-weight:500;font-size:17px;letter-spacing:-.03em}
.me-n i{font-style:normal;font-size:13px;color:#8E8E93}
.me-ci{width:14px;height:14px;fill:var(--c-violet);align-self:flex-start;margin-top:4px}
.me-p{margin:0}
.me-p div{display:grid;grid-template-columns:76px minmax(0,1fr);gap:12px;align-items:baseline;padding:11px 0;border-bottom:1px solid rgba(11,11,12,.06)}
.me-p div:last-child{border-bottom:0}
.me-p dt{font:400 12px/1.2 'Geist Mono',ui-monospace,monospace;color:#8E8E93}
.me-p dd{margin:0;font-size:15px;letter-spacing:-.02em}
.fr-yellow .me{cursor:none}
/* footer panel: contacts + resources, name and one action per row */
.xp{padding:6px 8px 10px}
.xp-g{margin:0;padding:14px 12px 8px;font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:#8E8E93;font-weight:400}
.xp-g + .xl{border-top:0;padding-top:0}
.xl + .xp-g{margin-top:6px;border-top:1px solid rgba(11,11,12,.07);padding-top:16px}
.xr{grid-template-columns:36px minmax(0,1fr) auto}
.xn{font-weight:500;font-size:15px;letter-spacing:-.02em}
@media (max-width:900px){
  .me{position:relative;right:auto;top:auto;translate:none;width:auto;max-width:420px;cursor:default}
  .fr-yellow .me{cursor:default}
}
.f4-h{font-size:clamp(44px,5.2vw,80px);max-width:9.6em}
.xb{min-width:124px;justify-content:center}
@media (min-width:901px){.me{top:50%;translate:0 -50%}}

/* prototype flow between the frames */
.flow{position:absolute;left:0;top:0;width:100%;z-index:8;pointer-events:none}
.flow-s{position:absolute;left:0;top:0;overflow:visible}
.nd{fill:none;stroke:#4C8DFF;stroke-width:2.5;stroke-linecap:round}
.np{fill:#fff;stroke:#4C8DFF;stroke-width:2.5;transform-box:fill-box;transform-origin:center;transform:scale(0);transition:transform .5s var(--spr-jelly)}
.np.on{transform:none}
.na{fill:none;stroke:#4C8DFF;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:opacity .2s}
.na.on{opacity:1}
.fchip-t{position:absolute;left:0;top:0;translate:-50% -50%;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:0;border-radius:9px;background:#4C8DFF;color:#fff;font:500 13px/1 'Geist',sans-serif;letter-spacing:-.01em;white-space:nowrap;cursor:pointer;pointer-events:auto;box-shadow:0 6px 16px rgba(76,141,255,.28);transform:scale(0);transition:transform .5s var(--spr-jelly),background .2s}
.fchip-t.on{transform:none}
.fchip-t:hover{background:#2F5CFF}
.fchip-t:focus-visible{outline:2px solid #0B0B0C;outline-offset:2px}
.fchip-t svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-reduced-motion: reduce){.nd{stroke-dashoffset:0 !important}.np,.fchip-t{transform:none}.na{opacity:1}}

/* interlude: one text layer, typed by the scroll, still selected while it is being typed */
.il{padding-bottom:var(--gap)}
.il-box{position:relative;display:inline-block;padding:6px 10px;box-shadow:inset 0 0 0 1.5px transparent;transition:box-shadow .3s}
.il-box.is-sel{box-shadow:inset 0 0 0 1.5px var(--c-sel)}
.il-lb{position:absolute;left:0;bottom:100%;margin-bottom:8px;display:inline-flex;align-items:center;gap:6px;font:400 13px/1 'Geist Mono',ui-monospace,monospace;color:#8E8E93;transition:color .3s}
.il-box.is-sel .il-lb{color:var(--c-sel)}
.il-lb b{font:500 13px/1 'Geist',sans-serif}
.il-t{position:relative;margin:0;font-weight:500;font-size:clamp(52px,8.4vw,128px);line-height:.98;letter-spacing:-.065em;color:#0B0B0C}
.il-t .ln{display:block}
.il-t .tc{opacity:.1;transition:opacity .12s}
.il-t .tc.on{opacity:1}
.il-t .caret{opacity:1}
.il-h{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;background:#fff;box-shadow:0 0 0 1.5px var(--c-sel);transform:scale(0);transition:transform .45s var(--spr-jelly)}
.il-box.is-sel .il-h{transform:none}
.il-sz{position:absolute;left:50%;top:100%;translate:-50% 10px;padding:4px 7px 5px;border-radius:6px;background:var(--c-sel);color:#fff;font:400 12px/1 'Geist Mono',ui-monospace,monospace;white-space:nowrap;opacity:0;transition:opacity .3s}
.il-box.is-sel .il-sz{opacity:1}
@media (prefers-reduced-motion: reduce){.il-t .tc{opacity:1}}
.fchip-t[hidden]{display:none}
.il-box{display:block;width:max-content;max-width:100%}
.il-t{white-space:nowrap;font-size:clamp(40px,8.4vw,128px)}

/* interludes alternate sides */
.il-r .il-box{margin-left:auto}
.il-r .il-t{text-align:right}
.il-r .il-lb{left:auto;right:0}

/* ---- first screen: a white frame with the AI chat ---- */
.hero.hero2{display:block;min-height:0;padding:clamp(96px,11vh,120px) 0 0;place-items:initial}
.hw{padding-bottom:var(--gap)}
.fr-white{background:#fff;box-shadow:0 0 0 1px rgba(11,11,12,.06);color:#0B0B0C;height:max(600px,calc(100vh - clamp(96px,11vh,120px) - 64px));display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,440px);gap:clamp(24px,4vw,64px);padding:clamp(28px,4.4vw,64px)}
.h0-l{position:relative;z-index:5;display:flex;flex-direction:column;justify-content:center;gap:clamp(18px,2vw,28px)}
.h0-ava{width:clamp(64px,6vw,88px)}
.h0-name{font-size:clamp(56px,7.6vw,128px)}
.h0-name .ln{display:block}
.h0-lead{margin:0;max-width:30ch;font-size:clamp(18px,1.6vw,24px);line-height:1.3;letter-spacing:-.025em;color:#3A3A3E}
.h0-cta{display:flex;flex-wrap:wrap;gap:12px}
.fr-white .cta-b-ghost{background:rgba(11,11,12,.06)}
.g-circ0{width:20%;left:33%;bottom:-16%}
.g-circ0 circle{fill:var(--c-yellow)}
.g-tri0{width:15%;right:-2%;top:-8%;rotate:12deg}
.g-tri0 path{fill:var(--c-pink)}
.g-cur0{width:7%;right:calc(clamp(28px,4.4vw,64px) + 20px);bottom:clamp(28px,4.4vw,64px);translate:0 40%;z-index:7;filter:drop-shadow(0 12px 24px rgba(0,0,0,.18))}
.g-cur0 path{fill:#0B0B0C;stroke:#fff;stroke-width:5;stroke-linejoin:round}
.fr-white .gx{z-index:1}
/* AI chat: same card language as the rest — 22px radius, mono labels */
.ai{position:relative;z-index:6;display:flex;flex-direction:column;min-height:0;border-radius:22px;background:#121214;color:#fff;padding:8px;box-shadow:0 20px 50px rgba(11,11,12,.18)}
.ai-h{display:flex;align-items:center;justify-content:space-between;height:40px;padding:0 10px}
.ai-t{display:inline-flex;align-items:center;gap:8px;font-weight:500;font-size:15px;letter-spacing:-.02em}
.ai-t svg{width:12px;height:12px;fill:#B79BFF}
.ai-s{font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:rgba(255,255,255,.45)}
.ai-log{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:10px 6px 12px;scrollbar-width:none}
.ai-log::-webkit-scrollbar{display:none}
.msg{display:flex;gap:8px;align-items:flex-end;max-width:92%}
.msg p{margin:0;padding:10px 13px 11px;font-size:15px;line-height:1.38;letter-spacing:-.015em;border-radius:16px}
.msg-bot p{background:#232327;border-bottom-left-radius:5px}
.msg-me{align-self:flex-end}
.msg-me p{background:var(--c-blue);border-bottom-right-radius:5px}
.msg-a{flex:none;display:grid;place-items:center;width:26px;height:26px;clip-path:var(--squircle);background:var(--c-violet);font:500 10px/1 'Geist',sans-serif}
.ai-c{display:inline-block;width:2px;height:1em;margin-left:2px;vertical-align:-.15em;background:#6CA7FF;animation:aiBlink 1s steps(1) infinite}
@keyframes aiBlink{50%{opacity:0}}
.ai-q{display:flex;flex-wrap:wrap;gap:6px;padding:0 6px 10px}
.ai-chip{height:32px;padding:0 12px;border:0;border-radius:10px;background:rgba(255,255,255,.08);color:#fff;font:inherit;font-size:13px;letter-spacing:-.01em;cursor:pointer;transition:background .15s,transform .5s var(--spr-jelly)}
.ai-chip:hover{background:rgba(255,255,255,.14)}
.ai-chip:active{transform:scale(.95)}
.ai-f{display:flex;gap:6px;padding:6px;border-radius:16px;background:#1D1D20}
.ai-f input{flex:1;min-width:0;height:40px;padding:0 10px;border:0;background:transparent;color:#fff;font:inherit;font-size:15px;letter-spacing:-.015em;outline:none}
.ai-f input::placeholder{color:rgba(255,255,255,.4)}
.ai-f button{width:40px;height:40px;flex:none;border:0;border-radius:12px;background:var(--c-blue);color:#fff;display:grid;place-items:center;cursor:pointer;transition:transform .5s var(--spr-jelly)}
.ai-f button:active{transform:scale(.92)}
.ai-f button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ai-chip:focus-visible,.ai-f button:focus-visible{outline:2px solid #6CA7FF;outline-offset:2px}
.ai-f:focus-within{box-shadow:0 0 0 1.5px #6CA7FF}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:900px){
  .fr-white{height:auto;grid-template-columns:minmax(0,1fr);padding-bottom:28px}
  .ai{height:440px}
  .g-cur0{display:none}
  .g-circ0{width:40%;left:auto;right:-10%;bottom:auto;top:-6%}
  .il-r .il-box{margin-left:0}.il-r .il-t{text-align:left}.il-r .il-lb{left:0;right:auto}
}

/* first screen v2: tidy identity row, light chat */
.h0-row{display:flex;align-items:center;gap:clamp(14px,1.6vw,22px)}
.h0-ava{width:clamp(56px,5.4vw,80px);flex:none}
.h0-name{font-size:clamp(40px,5.6vw,88px);line-height:1;white-space:nowrap}
.h0-name .ln{display:inline}
.h0-l{gap:clamp(20px,2.2vw,30px)}
.h0-lead{max-width:34ch}
.fr-white{grid-template-columns:minmax(0,1fr) minmax(300px,380px);align-items:center}
.ai{align-self:center;max-height:100%;background:#F4F4F5;color:#0B0B0C;box-shadow:0 0 0 1px rgba(11,11,12,.05);padding:6px}
.ai-h{height:38px}
.ai-t{font-size:14px}
.ai-t svg{fill:var(--c-violet)}
.ai-s{color:#8E8E93}
.ai-log{flex:none;height:clamp(170px,26vh,240px);padding:8px 6px 10px}
.msg p{font-size:14px;padding:9px 12px 10px}
.msg-bot p{background:#fff;color:#0B0B0C;box-shadow:0 0 0 1px rgba(11,11,12,.05)}
.msg-me p{color:#fff}
.msg-a{width:24px;height:24px;color:#fff}
.ai-chip{height:30px;background:#fff;color:#0B0B0C;box-shadow:0 0 0 1px rgba(11,11,12,.08)}
.ai-chip:hover{background:#fff;box-shadow:0 0 0 1px rgba(11,11,12,.18)}
.ai-f{background:#fff;box-shadow:0 0 0 1px rgba(11,11,12,.08);border-radius:14px}
.ai-f input{color:#0B0B0C;height:38px}
.ai-f input::placeholder{color:#9A9AA0}
.ai-f button{width:38px;height:38px;border-radius:11px}
.ai-f:focus-within{box-shadow:0 0 0 1.5px var(--c-sel)}
.g-cur0{bottom:auto;top:calc(50% + 150px);right:clamp(16px,2.4vw,36px);translate:0 0;width:6%}
@media (max-width:900px){.h0-name{white-space:normal}.ai{height:auto}.ai-log{height:240px}.fr-white{align-items:start}}

.ai-q{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding:2px 6px 10px;mask-image:linear-gradient(90deg,#000 85%,transparent)}
.ai-q::-webkit-scrollbar{display:none}
.ai-chip{flex:none}
.h0-lead{max-width:38ch}

/* interludes keep their outline and handles, so the connectors always have something to hold on to */
.il-box{box-shadow:inset 0 0 0 1.5px var(--c-sel)}
.il-box .il-h{transform:none}
.il-box .il-lb{color:var(--c-sel)}
.il-box .il-sz{opacity:0}
.il-box.typing .il-sz{opacity:1}
/* first screen: a few of the same shapes and editor bits, kept quiet */

/* first screen v3: big shapes with the same gesture as «Обо мне»; the chat is as tall as the frame allows */
.fr-white .g-circ0{width:34%;left:auto;right:-7%;top:-20%;bottom:auto;rotate:0deg}
.fr-white .g-tri0{width:28%;left:47%;right:auto;top:auto;bottom:-13%;rotate:-14deg}
.fr-white .g-tri0 path{fill:var(--c-pink)}
.fr-white .g-cur0{display:block;width:10%;left:52%;right:auto;top:auto;bottom:-8%;translate:none;filter:drop-shadow(0 18px 30px rgba(0,0,0,.18));z-index:7}
.fr-white .g-cur0 path{fill:#fff;stroke:#0B0B0C;stroke-width:5;stroke-linejoin:round}
@media (min-width:901px){
  .ai{align-self:stretch;max-height:none}
  .ai-log{flex:1;height:auto;min-height:0}
}
@media (max-width:900px){
  .fr-white .g-circ0{width:56%;right:-18%;top:-10%}
  .fr-white .g-tri0{width:46%;left:auto;right:-8%;bottom:-6%}
  .fr-white .g-cur0{display:none}
}

/* first screen v4: every shape is big and bleeds off an edge of the frame — nothing floats in the middle */
.fr-white .g-bc0{width:27%;left:-9%;top:-25%}
.fr-white .g-bc0 circle{fill:var(--c-blue)}
.fr-white .g-sq0{width:19%;left:-5%;bottom:-24%;rotate:16deg}
.fr-white .g-sq0 rect{fill:var(--c-lilac)}
.fr-white .g-pill0{width:17%;left:40%;top:-7%;rotate:-18deg}
.fr-white .g-pill0 rect{fill:var(--c-orange)}
@media (max-width:900px){
  .fr-white .g-bc0{width:44%;left:-16%;top:-12%}
  .fr-white .g-sq0,.fr-white .g-pill0{display:none}
}
.fr-white .g-sq0{width:22%;bottom:-17%}
@media (max-width:900px){
  .fr-white{grid-template-columns:minmax(0,1fr);align-items:start}
  .h0-name{font-size:clamp(36px,10vw,56px)}
}

/* time widget: Moscow as the headline, an abstract globe that sways around it */
.tw{position:relative;overflow:hidden}
.tw-h{justify-content:space-between;height:48px}
.tw-city{display:inline-flex;align-items:center;gap:8px;font:500 20px/1 'Geist',sans-serif;letter-spacing:-.04em;color:#0B0B0C}
.tw-city svg{width:14px;height:18px}
.tw-city path{fill:var(--c-blue)}
.tw-city circle{fill:#fff}
.tw-tz{display:inline-grid;place-items:center;height:26px;padding:0 9px;border-radius:8px;background:rgba(47,92,255,.1);color:var(--c-blue);font:400 12px/1 'Geist Mono',ui-monospace,monospace}
.tw-t,.tw-d,.tw-l,.tw-bar{position:relative;z-index:2}
.tw-globe{position:absolute;z-index:1;right:-64px;top:50%;width:230px;height:230px;translate:0 -40%;pointer-events:none}
.tw-globe canvas{display:block;width:100%;height:100%}
.tw-pin{position:absolute;left:0;top:0;will-change:transform}
.tw-pin svg{display:block;width:16px;height:22px;overflow:visible}
.tw-pin path{fill:#0B0B0C;stroke:#fff;stroke-width:1.4;stroke-linejoin:round}
.tw-pin span{position:absolute;right:calc(100% - 4px);top:20px;padding:4px 8px 5px;border-radius:7px;background:#0B0B0C;color:#fff;font:500 13px/1 'Geist',sans-serif;white-space:nowrap}
@media (max-width:820px){.tw-globe{right:-50px;width:190px;height:190px}}
.tw-d span,.tw-d span:last-child{font:400 14px/1.4 'Geist',sans-serif;color:#3A3A3E;letter-spacing:-.01em}
.tw-globe{right:-36px;width:240px;height:240px}

.tw-globe,.tw-globe{right:auto;left:50%;translate:-50% -36%;width:220px;height:220px}
.tw-pin span{right:auto;left:0;top:16px;translate:-50% 0}
@media (max-width:820px){.tw-globe{width:200px;height:200px}}
html,body{overflow-x:clip}
@media (max-width:820px){
  .tw{min-height:0}
  .tw-globe{position:relative;left:auto;right:auto;top:auto;translate:none;width:200px;height:200px;margin:18px auto 0}
  .tw .tw-bar{margin-top:20px}
}
@media (max-width:560px){
  .il-t{font-size:clamp(28px,8.6vw,40px)}
  .il-box{max-width:100%}
}
@media (max-width:820px){.tw-globe{order:3}.tw .tw-bar{order:4}.tw-l{order:5}}

/* first screen v5: text at the top, the space under it catches falling tags */
.h0-l{justify-content:flex-start;align-self:start}
.h0-drop{position:absolute;z-index:4;left:0;top:0;bottom:0;width:60%;pointer-events:none}
.bdg{position:absolute;left:0;top:0;visibility:hidden;display:flex;align-items:center;height:38px;padding:0 15px;border-radius:12px;background:#fff;box-shadow:inset 0 0 0 1px rgba(11,11,12,.12);color:#0B0B0C;font:500 16px/1 'Geist',sans-serif;letter-spacing:-.03em;white-space:nowrap;user-select:none;-webkit-user-select:none;touch-action:none;cursor:grab;pointer-events:auto;will-change:transform}
.bdg.held{cursor:grabbing}
.bdg.c-blue{background:var(--c-blue);color:#fff;box-shadow:none}
.bdg.c-violet{background:var(--c-violet);color:#fff;box-shadow:none}
.bdg.c-pink{background:var(--c-pink);box-shadow:none}
.bdg.c-yellow{background:var(--c-yellow);box-shadow:none}
.bdg.c-lilac{background:var(--c-lilac);box-shadow:none}
.bdg.c-orange{background:var(--c-orange);box-shadow:none}
.bdg.ico{width:46px;height:46px;padding:0;background:#fff center/cover;clip-path:var(--squircle);box-shadow:none}
@media (max-width:900px){.h0-drop{display:none}}
@media (min-width:901px){
  .fr-white .g-bc0{width:20%;left:51%;top:-21%}
  .fr-white .g-pill0{width:13%;left:-5%;top:52%;rotate:64deg}
}

.bdg{height:47px;padding:0 19px;border-radius:15px;font-size:20px}
.bdg.ico{width:58px;height:58px}

/* tags fall in front of the text block */
.h0-drop{z-index:7}

/* ================= polish pass: one type scale, one spacing system for every frame ================= */
:root{--fp:clamp(24px,4.4vw,64px);--fh:clamp(34px,4.6vw,72px);--flead:clamp(16px,1.3vw,20px);--fgap:clamp(16px,1.7vw,24px)}
.fr-blue,.fr-lilac,.fr-yellow,.fr-white{padding:var(--fp)}
.f2-head{left:var(--fp);right:var(--fp);top:var(--fp);gap:var(--fgap)}
.frm .f-h,.f1-copy .f-h,.f-h-m,.f4-h,.h0-name{font-size:var(--fh);line-height:.98;letter-spacing:-.06em}
.f-p,.f2-lead,.h0-lead,.f1-copy .f-p,.f3-side .f-p{font-size:var(--flead);line-height:1.42;letter-spacing:-.02em;max-width:40ch}
.f1-copy,.f3-side,.h0-l{gap:var(--fgap)}
.h0-cta,.f4-cta{margin-top:calc(var(--fgap) * .5)}
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,160px));gap:var(--fgap)}
.facts b{font-size:clamp(36px,3.6vw,56px)}
.facts span{max-width:none}
/* interludes: the text never touches its frame */
.il-box{padding:clamp(10px,1.2vw,16px) clamp(14px,1.6vw,24px)}
@media (max-width:900px){
  :root{--fgap:16px}
  .fr-blue{padding-bottom:46vw}
  .facts{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:8px}
  .facts b{font-size:36px}
  .facts span{font-size:13px}
  .f2-head{margin-bottom:24px}
  .fr-yellow{padding-bottom:30vw}
  .g-circ4{width:44%;right:-10%;bottom:-16%}
  .g-tri4{width:30%;right:30%;bottom:-8%;top:auto}
  .fr-lilac{gap:24px}
  .il-box{width:100%;padding:12px 16px}
  .il-t{font-size:clamp(26px,7.8vw,34px)}
}
@media (max-width:900px){
  .f2-head{display:flex;flex-direction:column;gap:var(--fgap)}
  .fr-yellow{padding-bottom:36vw}
  .fr-yellow .g-circ4{width:52%;right:-14%;bottom:-24%}
  .fr-yellow .g-tri4{width:34%;right:34%;bottom:-12%;rotate:-18deg}
}
@media (max-width:900px){.fr-yellow{padding-bottom:var(--fp)}.fr-yellow .gx{display:none}}
/* interludes: text centred inside its frame */
.il-t,.il-r .il-t{text-align:center}
@media (max-width:900px){
  .il-r .il-t{text-align:center}
  /* «Обо мне» on phones: a compact band for the shapes right under the numbers */
  .fr-blue{padding-bottom:40vw}
  .fr-blue .g-circ{width:36%;right:auto;left:8%;bottom:-6%;top:auto}
  .fr-blue .g-tri{width:30%;right:-4%;bottom:6%;top:auto;rotate:14deg}
  .fr-blue .g-cur{width:15%;right:auto;left:38%;bottom:-5%}
}
@media (max-width:900px){
  .fr-blue{padding-bottom:32vw}
  .fr-blue .g-circ{width:30%;left:10%;bottom:-9%}
  .fr-blue .g-tri{width:24%;right:4%;bottom:4%}
  .fr-blue .g-cur{width:13%;left:34%;bottom:-6%}
}

/* ---- Результаты: numbers measured like layers ---- */
.fr-res{background:var(--c-pink);color:#0B0B0C;padding:var(--fp);display:flex;flex-direction:column;gap:var(--fgap)}
.fr-res .f-p{color:#2A1A26}
.mts{list-style:none;margin:calc(var(--fgap) * 1.5) 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(20px,2.4vw,40px)}
.mt{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.mt-c{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:8px;background:#0B0B0C;color:#fff;font:400 12px/1 'Geist Mono',ui-monospace,monospace}
.mt-n{display:inline-flex;align-items:baseline;font-weight:500;font-size:clamp(44px,5vw,80px);line-height:.95;letter-spacing:-.06em;font-variant-numeric:tabular-nums;white-space:nowrap}
.mt-u{font-size:.5em;letter-spacing:-.03em;margin-left:.12em}
.mt-r{position:relative;display:block;height:10px;transform-origin:0 50%}
.mt-r i{position:absolute;left:0;right:0;top:4px;height:1.5px;background:#0B0B0C}
.mt-r em{position:absolute;inset:0;border-left:1.5px solid #0B0B0C;border-right:1.5px solid #0B0B0C}
.mt p{margin:0;font-size:15px;line-height:1.4;letter-spacing:-.02em;color:#2A1A26;max-width:24ch}
@media (max-width:900px){.mts{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:32px}.mt-n{font-size:40px}.mt p{font-size:14px}}

/* ---- layers panel ---- */
.lyr{position:fixed;left:max(16px,env(safe-area-inset-left,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:45;font:400 14px/1 'Geist',sans-serif;letter-spacing:-.01em}
.lyr svg{width:12px;height:12px;flex:none;fill:none;stroke:currentColor;stroke-width:1.2}
.lyr-b{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 14px;border:0;border-radius:14px;background:#fff;color:#0B0B0C;box-shadow:0 0 0 1px rgba(11,11,12,.08),0 10px 30px rgba(11,11,12,.10);font:inherit;cursor:pointer;transition:transform .5s var(--spr-jelly)}
.lyr-b:active{transform:scale(.96)}
.lyr-h{font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:#8E8E93;padding-right:8px;margin-right:2px;border-right:1px solid rgba(11,11,12,.1)}
.lyr-b svg{color:var(--c-sel)}
.lyr-b i,.lyr-l i{font:normal 400 12px/1 'Geist Mono',ui-monospace,monospace;color:#8E8E93}
.lyr-b i{margin-left:4px}
.lyr-l{position:absolute;left:0;bottom:calc(100% + 8px);min-width:220px;margin:0;padding:6px;list-style:none;border-radius:16px;background:#fff;box-shadow:0 0 0 1px rgba(11,11,12,.08),0 16px 40px rgba(11,11,12,.14);opacity:0;transform:translateY(8px) scale(.96);transform-origin:0 100%;pointer-events:none;transition:opacity .18s,transform .45s var(--spr-jelly)}
.lyr.open .lyr-l{opacity:1;transform:none;pointer-events:auto}
.lyr-l button{display:flex;align-items:center;gap:8px;width:100%;height:36px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:#3A3A3E;font:inherit;text-align:left;cursor:pointer}
.lyr-l button span{flex:1}
.lyr-l button:hover{background:#F4F4F5}
.lyr-l button.on{background:rgba(108,167,255,.16);color:#0B0B0C}
.lyr-l button.on svg{color:var(--c-sel)}
.lyr-b:focus-visible,.lyr-l button:focus-visible{outline:2px solid var(--c-sel);outline-offset:2px}
html.is-loading .lyr{opacity:0;pointer-events:none}
.lyr{transition:opacity .3s}
.at-foot .lyr{opacity:0;pointer-events:none}
.again{left:auto !important;right:max(16px,env(safe-area-inset-right,0px))}
@media (max-width:560px){.lyr-h{display:none}}
.mt{align-items:stretch}
.mt-c{align-self:flex-start}
.mt-r{width:100% !important}


/* ---- AI-ассистент as a selected main component (violet, like Figma components) ---- */
:root{--c-comp:#8E5CFF}
.ai{background:#F5F2FF;box-shadow:none;overflow:visible}
.ai .ai-h{display:none}
.ai-log{padding-top:12px}
.ai-chip{box-shadow:0 0 0 1px rgba(142,92,255,.16)}
.ai-chip:hover{box-shadow:0 0 0 1px rgba(142,92,255,.45)}
.ai-f{box-shadow:0 0 0 1px rgba(142,92,255,.16)}
.ai-f:focus-within{box-shadow:0 0 0 1.5px var(--c-comp)}
.ai-chip:focus-visible,.ai-f button:focus-visible{outline-color:var(--c-comp)}
.ai-dec{position:absolute;inset:-8px;pointer-events:none;z-index:2}
.ai-sel{position:absolute;inset:0;box-shadow:inset 0 0 0 1.5px var(--c-comp);opacity:0;transition:opacity .3s}
.ai-sel i{position:absolute;width:10px;height:10px;margin:-5px 0 0 -5px;background:#fff;box-shadow:0 0 0 1.5px var(--c-comp);transform:scale(0);transition:transform .5s var(--spr-jelly)}
.ai-sel .tl{left:0;top:0}.ai-sel .tr{left:100%;top:0}.ai-sel .bl{left:0;top:100%}.ai-sel .br{left:100%;top:100%}
.ai-sel .tr{transition-delay:.05s}.ai-sel .br{transition-delay:.1s}.ai-sel .bl{transition-delay:.15s}
.ai-tag{position:absolute;left:0;bottom:calc(100% + 6px);display:inline-flex;align-items:center;gap:6px;height:24px;font:400 13px/1 'Geist Mono',ui-monospace,monospace;color:var(--c-comp);white-space:nowrap;opacity:0;transform:translateY(4px);transition:opacity .3s,transform .5s var(--spr-soft)}
.ai-tag svg{width:12px;height:12px;fill:currentColor}
.ai-sz{position:absolute;left:50%;top:100%;translate:-50% 10px;padding:4px 7px 5px;border-radius:6px;background:var(--c-comp);color:#fff;font:400 12px/1 'Geist Mono',ui-monospace,monospace;white-space:nowrap;opacity:0;transition:opacity .3s .2s}
html:not(.is-loading) .ai.on .ai-sel{opacity:1}
html:not(.is-loading) .ai.on .ai-sel i{transform:scale(1)}
html:not(.is-loading) .ai.on .ai-tag{opacity:1;transform:none}
html:not(.is-loading) .ai.on .ai-sz{opacity:1}
@media (max-width:900px){.ai{margin-top:28px}.ai-sz{display:none}}
@media (prefers-reduced-motion: reduce){.ai-sel,.ai-sel i,.ai-tag,.ai-sz{transition:none}}
/* ---------- mobile: header becomes a bottom bar, menu a bottom sheet ---------- */
.menu-bd,.nav-pg{display:none}
@media (max-width:900px){
  .nav-wrap{top:auto;bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .nav{height:64px;background:rgba(237,237,237,.82);-webkit-backdrop-filter:blur(20px) saturate(1.6);backdrop-filter:blur(20px) saturate(1.6);box-shadow:0 8px 32px rgba(11,11,12,.10)}
  .nav-r{width:100%}
  .nav .lang{display:none}
  .nav-pg{display:block;flex:1;min-width:0;padding-left:8px;font-size:16px;letter-spacing:-.03em;color:var(--fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;order:1}
  .nav .brand{order:0;font-size:17px;padding:0 18px;gap:10px}
  .nav .more{order:2;width:48px;border-radius:14px}
  body{padding-bottom:calc(88px + env(safe-area-inset-bottom,0px))}
  html.pg-cases #cases,html.pg-ui #ui-library{padding-top:calc(28px + env(safe-area-inset-top,0px))}

  .menu-bd{display:block;position:fixed;inset:0;background:rgba(11,11,12,.28);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);opacity:0;visibility:hidden;transition:opacity .25s,visibility 0s .25s}
  .menu-bd.open{opacity:1;visibility:visible;transition:opacity .25s}
  .menu{position:fixed;top:auto;left:max(8px,env(safe-area-inset-left,0px));right:max(8px,env(safe-area-inset-right,0px));bottom:calc(8px + env(safe-area-inset-bottom,0px));max-width:480px;margin:0 auto;max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;
    display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 10px 10px;border-radius:32px;background:var(--chip);box-shadow:0 -10px 50px rgba(11,11,12,.16);
    opacity:1;visibility:hidden;transform:translateY(calc(100% + 40px));transition:transform .42s cubic-bezier(.32,.72,0,1),visibility 0s .42s}
  .menu.open{visibility:visible;transform:none;transition:transform .5s cubic-bezier(.32,.72,0,1),visibility 0s}
  .menu.drag{transition:none}
  .menu::-webkit-scrollbar{display:none}
  .mn-g{grid-column:1/-1;display:grid;place-items:center;height:28px;cursor:grab;touch-action:none}
  .mn-g i{width:40px;height:5px;border-radius:3px;background:#D1D1D6}
  .menu .mn-t{position:relative;height:auto;aspect-ratio:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;gap:3px;padding:16px;border-radius:22px;aspect-ratio:4/3;background:#fff;color:var(--fg);font-size:17px;letter-spacing:-.03em;overflow:hidden;transition:transform .45s var(--spr-jelly),background .2s}
  .menu .mn-t:active{transform:scale(.97)}
  .menu .mn-t b{font-weight:500}
  .menu .mn-t span{font-size:15px;color:#8E8E93}
  .menu a.mn-t.on{background:var(--fg);color:#fff;font-weight:400}
  .menu a.mn-t.on span{color:rgba(255,255,255,.55)}
  .menu .mn-t[aria-disabled="true"] b{color:#8E8E93}
  .menu .mn-v{grid-column:1/-1;aspect-ratio:16/9;background:#fff}
  .mn-pr{position:absolute;inset:0;overflow:hidden;pointer-events:none}
  .mn-pr>div{position:absolute;left:50%;top:50%;height:560px}
  .menu .mn-v b,.menu .mn-v span{position:relative;z-index:1}
  .menu a.mn-v.on{background:#fff;color:var(--fg)}
  .menu a.mn-v.on span{color:#8E8E93}
  .mn-sw{grid-column:1/-1}
  .mn-sw .stc{--muted:#fff;--muted-fg:#8E8E93}
  .mn-sw .stc-tr{height:68px}
  .mn-sw .stc-th{width:60px;height:60px}
  .menu .mn-h{aspect-ratio:auto;min-height:72px;padding:12px 16px}
  .mn-tw{grid-column:1/-1;min-height:0;padding:12px 18px 14px;border-radius:22px;background:#fff}
  .mn-tw .tw-h{height:28px}
  .mn-tw .tw-t{font-size:48px;margin-top:4px}
  .mn-tw .tw-d{margin-top:6px}
  .mn-tw .tw-bar{margin-top:14px}
  .mn-f{grid-column:1/-1;display:flex;justify-content:space-between;gap:10px;margin-top:2px}
  .menu .mn-f .lang{display:inline-flex;height:52px;padding:0 18px;border-radius:16px;background:#fff;font-size:17px}
  .mn-x{display:grid;place-items:center;width:52px;height:52px;padding:0;border:0;border-radius:16px;background:#fff;color:var(--fg);cursor:pointer;transition:transform .45s var(--spr-jelly)}
  .mn-x:active{transform:scale(.92)}
  .mn-x svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
}
@media (max-width:900px) and (prefers-reduced-motion: reduce){.menu,.menu.open,.menu-bd{transition:none}}

/* ================= AI-ассистент v2: живое видео + чат — by vasnev.art ================= */
#ai.ai{background:#fff;color:#0B0B0C;padding:6px;border-radius:24px;box-shadow:0 0 0 1px rgba(11,11,12,.06),0 20px 50px -18px rgba(11,11,12,.16);overflow:visible}
#ai.ai>.va{height:100%}
.va{--va-r:18px;--va-muted:#8E8E93;--va-muted2:#71717A;--va-chip:rgba(11,11,12,.05);--va-chip-h:rgba(11,11,12,.09);--va-glass:rgba(255,255,255,.74);--va-ease:cubic-bezier(.32,.72,0,1);
  position:relative;display:flex;flex-direction:column;min-height:0;height:100%;border-radius:var(--va-r);font-family:'Geist',-apple-system,BlinkMacSystemFont,sans-serif;color:#0B0B0C}
.va button{font:inherit;color:inherit}
.va [hidden]{display:none!important}
.va-tile{position:relative;flex:none;height:420px;border-radius:var(--va-r);overflow:hidden;background:#E9E9EB;transition:height .55s var(--va-ease)}
.va-tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% var(--va-vy,0%);transition:object-position .55s var(--va-ease)}
.va.chatting .va-tile{height:128px!important}
.va.chatting .va-tile video{object-position:50% 24%}
.va-bar{position:absolute;left:8px;right:8px;top:8px;display:flex;justify-content:space-between;align-items:center;z-index:2}
.va-tabs{display:flex;gap:2px;padding:3px;border-radius:13px;background:var(--va-glass);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4)}
.va-tab{border:0;background:none;height:30px;padding:0 12px;border-radius:10px;font-size:13px;letter-spacing:-.01em;color:var(--va-muted2);cursor:pointer;transition:background .2s,color .2s}
.va-tab[aria-selected="true"]{background:#fff;color:#0B0B0C;box-shadow:0 1px 2px rgba(11,11,12,.08)}
.va-icons{display:flex;gap:6px}
.va-ic{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:12px;background:var(--va-glass);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);cursor:pointer;transition:background .2s}
.va-ic:hover{background:#fff}
.va-ic svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.va-who{position:absolute;left:10px;bottom:10px;z-index:2;display:flex;flex-direction:column;gap:2px;padding:7px 11px;border-radius:12px;background:var(--va-glass);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);opacity:0;transform:translateY(6px);transition:opacity .3s,transform .4s var(--va-ease)}
.va-who b{font-weight:500;font-size:13px;letter-spacing:-.01em}
.va-who span{font-size:12px;color:var(--va-muted2)}
.va.chatting .va-who{opacity:1;transform:none;transition-delay:.25s}
.va-body{flex:1;min-height:0;position:relative}
.va-view{position:absolute;inset:0;display:flex;flex-direction:column;transition:opacity .3s,transform .4s var(--va-ease)}
.va-view[aria-hidden="true"]{opacity:0;transform:translateY(8px);pointer-events:none;visibility:hidden}
.va-intro{padding:16px 12px 0;gap:12px}
.va-eb{margin:0 0 6px;color:var(--va-muted);font-size:13px}
.va-intro h3{margin:0;font-weight:500;font-size:19px;line-height:1.3;letter-spacing:-.025em;text-wrap:balance}
.va-chips{display:flex;flex-wrap:wrap;gap:6px}
.va-chip{border:0;height:32px;padding:0 12px;border-radius:11px;background:var(--va-chip);font-size:13.5px;letter-spacing:-.01em;cursor:pointer;transition:background .15s,transform .4s cubic-bezier(.34,1.56,.64,1)}
.va-chip:hover{background:var(--va-chip-h)}
.va-chip:active{transform:scale(.97)}
.va-log{flex:1;min-height:0;overflow:auto;padding:14px 10px 10px;display:flex;flex-direction:column;gap:12px;scrollbar-width:thin;scrollbar-color:var(--va-chip-h) transparent;overscroll-behavior:contain}
.va-m{display:flex;gap:8px;align-items:flex-end;max-width:88%}
.va-m.va-me{align-self:flex-end}
.va-m.va-bot{align-self:flex-start}
.va-col{display:flex;flex-direction:column;gap:4px;min-width:0}
.va-me .va-col{align-items:flex-end}
.va-m p{margin:0;padding:10px 14px 11px;border-radius:18px;font-size:15px;line-height:1.45;letter-spacing:-.015em;white-space:pre-wrap;overflow-wrap:anywhere}
.va-me p{background:#0B0B0C;color:#fff;border-bottom-right-radius:6px}
.va-bot p{background:#F2F2F4;color:#0B0B0C;border-bottom-left-radius:6px}
.va-bot p:empty{display:none}
.va-m time{padding:0 6px;font-size:11px;color:var(--va-muted);font-variant-numeric:tabular-nums}
.va-orb{flex:none;display:block;width:28px;height:28px;margin-bottom:19px}
.va-bot.thinking .va-orb{margin-bottom:0}
.va-bot.thinking time{display:none}
.va-eb{display:flex;align-items:center;gap:8px}
.va-eb .va-orb{width:20px;height:20px;margin:0}
.va-m a{color:inherit;text-decoration:underline;text-decoration-color:rgba(11,11,12,.25);text-underline-offset:3px}
.va-caret{display:inline-block;width:2px;height:1.05em;margin-left:2px;vertical-align:-.17em;background:#2F5CFF;animation:aiBlink 1s steps(1) infinite}
/* no Figma selection around the assistant any more */
#ai .ai-dec{display:none}
.h0-row{flex-direction:column;align-items:flex-start;gap:clamp(10px,1.1vw,16px)}
.h0-role{margin:0;display:inline-flex;align-items:center;gap:.42em;font-weight:500;font-size:clamp(18px,1.55vw,24px);line-height:1;letter-spacing:-.025em;color:var(--c-comp,#8E5CFF)}
.h0-role svg{width:.62em;height:.62em;fill:currentColor;flex:none}
.va-who{display:none!important}
.va .va-field input:focus-visible{outline:none}
.va-after{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 8px}
.va-contacts{padding:16px 6px 0;gap:8px}
.va-contacts h3{margin:0 0 4px 6px;font-weight:500;font-size:19px;letter-spacing:-.025em}
.va-row{display:flex;align-items:center;justify-content:space-between;gap:10px;height:56px;padding:0 8px 0 14px;border-radius:16px;background:var(--va-chip)}
.va-row div{display:flex;flex-direction:column;gap:2px;min-width:0}
.va-row small{font-size:12px;color:var(--va-muted)}
.va-row span{font-size:15px;letter-spacing:-.01em;user-select:all;overflow:hidden;text-overflow:ellipsis}
.va-row a,.va-row button{flex:none;display:inline-flex;align-items:center;height:38px;padding:0 14px;border:0;border-radius:11px;background:#0B0B0C;color:#fff!important;font-size:14px;text-decoration:none;cursor:pointer}
.va-row button{background:#fff;color:#0B0B0C!important;box-shadow:0 0 0 1px rgba(11,11,12,.08)}
.va-comp{flex:none;padding-top:8px}
.va-field{display:flex;align-items:center;gap:6px;height:50px;padding:0 5px 0 14px;border-radius:16px;background:var(--va-chip);transition:background .2s,box-shadow .2s}
.va-field:focus-within{background:#fff;box-shadow:0 0 0 1.5px var(--c-sel,#6CA7FF)}
.va-field input{flex:1;min-width:0;height:100%;border:0;background:none;outline:none;font:inherit;font-size:15px;letter-spacing:-.015em;color:#0B0B0C}
.va-field input::placeholder{color:var(--va-muted)}
.va-send{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:12px;background:#0B0B0C;color:#fff!important;cursor:pointer;transition:opacity .2s,transform .4s cubic-bezier(.34,1.56,.64,1)}
.va-send:disabled{opacity:.18;cursor:default}
.va-send:not(:disabled):active{transform:scale(.94)}
.va-send svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.va-foot{display:flex;justify-content:space-between;padding:7px 6px 1px;font:400 11px/1.2 'Geist Mono',ui-monospace,monospace;color:var(--va-muted)}
.va :focus-visible{outline:2px solid var(--c-sel,#6CA7FF);outline-offset:2px}
.va-x{display:none!important}
.va-float .va-x{display:grid!important}

/* phones: the assistant is its own block under the intro */
@media (max-width:900px){
  #ai.ai{height:min(640px,calc(100svh - 120px));min-height:520px}
}

/* floating: a little Roman that rides along every section, can be dragged anywhere */
.va-bub{position:fixed;left:auto;right:16px;top:0;z-index:60;display:flex;align-items:center;gap:0;height:60px;padding:6px;border:0;border-radius:20px;background:#0B0B0C;color:#fff;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;
  box-shadow:0 14px 34px -10px rgba(11,11,12,.45),0 0 0 1px rgba(255,255,255,.06) inset;opacity:0;transform:translate3d(var(--x,0),var(--y,0),0) scale(.6);pointer-events:none;transition:opacity .25s,transform .55s cubic-bezier(.34,1.56,.64,1)}
.va-bub.on{opacity:1;pointer-events:auto;transform:translate3d(var(--x,0),var(--y,0),0) scale(1)}
.va-bub.drag{cursor:grabbing;transition:opacity .25s;box-shadow:0 24px 50px -12px rgba(11,11,12,.5)}
.va-bub video{width:48px;height:48px;border-radius:14px;object-fit:cover;object-position:50% 16%;background:#E9E9EB;pointer-events:none;flex:none}
.va-bub b{font-weight:400;font-size:15px;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;max-width:0;opacity:0;transition:max-width .45s var(--va-ease,cubic-bezier(.32,.72,0,1)),opacity .25s,margin .45s;margin:0}
.va-bub.wide b{max-width:260px;opacity:1;margin:0 12px 0 12px}
.va-bub:focus-visible{outline:2px solid #6CA7FF;outline-offset:3px}
.va-float{position:fixed;z-index:61;width:380px;height:min(700px,calc(100vh - 32px));padding:6px;border-radius:24px;background:#fff;box-shadow:0 0 0 1px rgba(11,11,12,.07),0 30px 70px -20px rgba(11,11,12,.28),0 4px 14px rgba(11,11,12,.05);
  opacity:0;transform:scale(.9);pointer-events:none;transition:opacity .22s,transform .45s cubic-bezier(.32,.72,0,1)}
.va-float.on{opacity:1;transform:none;pointer-events:auto}
@media (max-width:900px){
  .va-bub{height:56px;padding:5px;border-radius:18px}
  .va-bub video{width:46px;height:46px;border-radius:13px}
  .va-float{left:8px!important;right:8px;top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;width:auto;height:min(86svh,680px);transform-origin:50% 100%!important;transform:translateY(24px)}
  .va-float.on{transform:none}
}
@media (prefers-reduced-motion:reduce){.va *,.va-bub,.va-float{transition:none!important;animation:none!important}}
/* ================= UI Library page — by vasnev.art ================= */
#ui-library{display:none}
html.pg-ui #ui-library{display:block;padding-top:calc(clamp(12px,2.6vw,50px) + clamp(64px,4.2vw,80px) + 40px + env(safe-area-inset-top,0px))}
@media (min-width:901px){html.pg-ui #ui-library{padding-top:calc(clamp(12px,2.6vw,50px) + clamp(64px,4.2vw,80px) + 70px + env(safe-area-inset-top,0px))}}
html.pg-ui #hero,html.pg-ui body>section:not(#ui-library),html.pg-ui .flow,html.pg-ui .lyr,html.pg-ui .fchip-t{display:none !important}
.ul-hd{display:flex;flex-direction:column;gap:var(--fgap)}
.ul-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
/* filters: the header's chips, smaller */
.ul-f{display:flex;gap:6px;padding:6px;border-radius:18px;background:var(--chip);overflow-x:auto;scrollbar-width:none;max-width:100%}
.ul-f::-webkit-scrollbar{display:none}
.ul-f button{flex:none;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px;border:0;border-radius:14px;background:rgba(248,248,248,.8);color:var(--muted);font:inherit;font-size:16px;letter-spacing:-.03em;cursor:pointer;transition:background .2s,color .2s}
.ul-f button:hover{background:var(--bg);color:var(--fg)}
.ul-f button[aria-pressed="true"]{background:var(--bg);color:var(--fg);font-weight:500}
.ul-f i{font:normal 400 12px/1 'Geist Mono',ui-monospace,monospace;color:#A1A1A6}
.ul-f button:focus-visible{outline:2px solid var(--c-sel);outline-offset:2px}
.ul-src{display:flex;gap:16px;font:400 13px/1 'Geist Mono',ui-monospace,monospace;color:#8E8E93}
.ul-src a{color:inherit;text-decoration:none;border-bottom:1px solid rgba(11,11,12,.15)}
.ul-src a:hover{color:var(--fg)}

.ul-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:clamp(12px,1.4vw,20px);row-gap:clamp(20px,2.2vw,32px);margin:0;padding:0;list-style:none}
@media (max-width:1000px){.ul-g{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.ul-g{grid-template-columns:minmax(0,1fr)}}
.ul-c{display:flex;flex-direction:column;gap:10px;min-width:0}
/* live stage: a small canvas where the component actually works */
.ul-st{position:relative;display:grid;place-items:center;aspect-ratio:4/3;padding:24px;border-radius:24px;background-color:#fff;background-image:radial-gradient(circle,rgba(11,11,12,.07) 0 1px,transparent 1.4px);background-size:16px 16px;box-shadow:0 0 0 1px rgba(11,11,12,.06);overflow:hidden}
.ul-st .ul-live{position:absolute;left:14px;top:14px;display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 8px;border-radius:7px;background:rgba(11,11,12,.05);font:400 11px/1 'Geist Mono',ui-monospace,monospace;color:#8E8E93}
.ul-st .ul-live svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.4}
.ul-m{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ul-m>div{display:flex;flex-direction:column;gap:6px;min-width:0}
.ul-m b{font-weight:500;font-size:clamp(18px,1.4vw,22px);letter-spacing:-.035em}
.ul-m p{margin:0;font-size:15px;line-height:1.4;letter-spacing:-.015em;color:#6E6E73}
.ul-tag{flex:none;display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:8px;background:#EDEDEF;font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:#0B0B0C}
.ul-tag.pro{background:#0B0B0C;color:#fff}
.ul-a{display:flex;gap:8px}
.ul-a button,.ul-a a{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 16px;border:0;border-radius:12px;background:#0B0B0C;color:#fff;font:inherit;font-size:14px;letter-spacing:-.01em;text-decoration:none;cursor:pointer;transition:transform .5s var(--spr-jelly),background .2s}
.ul-a a{background:var(--chip);color:#0B0B0C}
.ul-a a:hover{background:#E3E3E3}
.ul-a button:active,.ul-a a:active{transform:scale(.96)}
.ul-a svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ul-a :focus-visible{outline:2px solid var(--c-sel);outline-offset:2px}
.ul-empty{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:32px;border-radius:24px;background:#fff;box-shadow:0 0 0 1px rgba(11,11,12,.06)}
.ul-empty b{font-weight:500;font-size:22px;letter-spacing:-.035em}
.ul-empty p{margin:0;font-size:15px;line-height:1.45;color:#6E6E73;max-width:44ch}
.ul-by{margin:0;text-align:center;font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:#B0B0B5}

/* ---------- component sheet: preview / code ---------- */
.uc{position:fixed;inset:0;z-index:85;display:grid;place-items:center;padding:16px;background:rgba(11,11,12,.32);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;visibility:hidden;transition:opacity .2s,visibility 0s .2s}
.uc.open{opacity:1;visibility:visible;transition:opacity .2s}
.uc-c{position:relative;display:flex;flex-direction:column;width:min(1080px,100%);height:min(780px,calc(100dvh - 32px));border-radius:28px;background:#fff;box-shadow:0 30px 80px rgba(11,11,12,.25);overflow:hidden;transform:translateY(16px) scale(.98);transition:transform .55s var(--spr-jelly)}
.uc.open .uc-c{transform:none}
.uc-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 12px 12px 20px;border-bottom:1px solid #EFEFF1}
.uc-t{display:flex;align-items:center;gap:10px;min-width:0}
.uc-t b{font-weight:500;font-size:18px;letter-spacing:-.03em;white-space:nowrap}
.uc-h .seg{flex:none}
.uc-x{display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:11px;background:#F4F4F5;color:#0B0B0C;cursor:pointer}
.uc-x svg{width:12px;height:12px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.uc-r{display:flex;align-items:center;gap:8px}
.uc-b{flex:1;min-height:0;position:relative}
.uc-pv{position:absolute;inset:0;display:grid;place-items:center;padding:24px;overflow:auto;background-color:#FAFAFA;background-image:radial-gradient(circle,rgba(11,11,12,.07) 0 1px,transparent 1.4px);background-size:16px 16px}
.uc-cd{position:absolute;inset:0;display:flex;flex-direction:column;background:#0E0E10;color:#E4E4E7}
.uc-files{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px 10px 16px;border-bottom:1px solid rgba(255,255,255,.08)}
.uc-files .fl{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.uc-files .fl button{flex:none;height:32px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:#8E8E93;font:400 13px/1 'Geist Mono',ui-monospace,monospace;cursor:pointer}
.uc-files .fl button[aria-selected="true"]{background:rgba(255,255,255,.08);color:#fff}
.uc-cp{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 14px;border:0;border-radius:10px;background:#fff;color:#0B0B0C;font:inherit;font-size:13px;cursor:pointer;transition:transform .5s var(--spr-jelly)}
.uc-cp:active{transform:scale(.95)}
.uc-cp svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.uc-cp.ok{background:#E8F0FF;color:#2F5CFF}
.uc-pre{flex:1;min-height:0;margin:0;padding:16px 0;overflow:auto;font:400 13px/1.6 'Geist Mono',ui-monospace,'SF Mono',Menlo,monospace;tab-size:2;counter-reset:ln}
.uc-pre code{display:block;min-width:max-content}
.uc-pre .l{display:block;padding:0 20px 0 0;white-space:pre}
.uc-pre .l::before{counter-increment:ln;content:counter(ln);display:inline-block;width:44px;margin-right:16px;text-align:right;color:#4A4A50;user-select:none}
.tk-c{color:#6B7280;font-style:italic}.tk-s{color:#A5D6A7}.tk-k{color:#C4B5FD}.tk-n{color:#FDBA74}.tk-t{color:#93C5FD}.tk-a{color:#F9A8D4}
.uc-ft{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-top:1px solid #EFEFF1;font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:#8E8E93}
.uc-ft a{color:#0B0B0C;text-decoration:none;border-bottom:1px solid rgba(11,11,12,.2)}
.uc button:focus-visible,.uc a:focus-visible{outline:2px solid var(--c-sel);outline-offset:2px}
@media (max-width:640px){.uc{padding:0;align-items:end}.uc-c{height:calc(100dvh - 40px);border-radius:24px 24px 0 0}.uc-t span{display:none}.uc-h{flex-wrap:wrap}}

/* ---------- Swipe to Confirm (vanilla port, shadcn light tokens) ---------- */
.stc{--primary:#18181B;--primary-fg:#FAFAFA;--muted:#F4F4F5;--muted-fg:#71717A;--fg:#09090B;--destructive:#DC2626;--card:#fff;--border:#E4E4E7;font-family:var(--font);width:100%}
.stc-tr{position:relative;height:60px;width:100%;user-select:none;-webkit-user-select:none;overflow:hidden;border-radius:999px;background:var(--muted);transition:background-color .3s,opacity .3s}
.stc-fill{position:absolute;top:0;bottom:0;left:0;border-radius:999px;background:var(--primary)}
.stc.ds .stc-fill,.stc.ds .stc-th{background:var(--destructive)}
.stc-lb{pointer-events:none;position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:0 64px;font-size:15px;font-weight:500;letter-spacing:-.01em;color:var(--muted-fg);white-space:nowrap;transition:opacity .2s}
.stc-lb.shim{background-image:linear-gradient(90deg,var(--muted-fg) 0%,var(--muted-fg) 40%,var(--fg) 50%,var(--muted-fg) 60%,var(--muted-fg) 100%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:stcShim 2.6s linear infinite}
.stc-lb.on{color:var(--primary-fg)}
.stc-lb.err{color:var(--destructive)}
@keyframes stcShim{from{background-position:200% 0}to{background-position:-200% 0}}
.stc-th{position:absolute;top:4px;left:4px;width:52px;height:52px;display:grid;place-items:center;border-radius:999px;background:var(--primary);color:var(--primary-fg);box-shadow:0 1px 2px rgba(0,0,0,.12);outline:none;touch-action:none;cursor:grab}
.stc-th.drag{cursor:grabbing}
.stc-th.lock{cursor:default}
.stc-th:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--c-sel)}
.stc-th svg{width:20px;height:20px}
.stc-sp{animation:stcSpin .8s linear infinite}
@keyframes stcSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){.stc-lb.shim{animation:none;background:none;color:var(--muted-fg)}.stc-sp{animation:none}}
/* the demo card from swipe-to-confirm.demo.tsx */
.stc-card{width:100%;max-width:380px;padding:20px;border-radius:32px;border:1px solid #E4E4E7;background:#fff;color:#09090B;box-shadow:0 1px 2px rgba(0,0,0,.05);font-family:var(--font)}
.stc-card .k{margin:0;text-align:center;font-size:13px;font-weight:500;color:#71717A}
.stc-card .v{margin:4px 0 0;text-align:center;font-size:40px;font-weight:500;line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.stc-card .u{margin:6px 0 0;text-align:center;font-size:14px;color:#71717A;font-variant-numeric:tabular-nums}
.stc-card dl{margin:20px 0 0;padding:0 16px;border-radius:16px;background:rgba(244,244,245,.5)}
.stc-card dl div{display:flex;justify-content:space-between;padding:8px 0;font-size:14px}
.stc-card dl div+div{border-top:1px solid #E4E4E7}
.stc-card dt{color:#71717A}.stc-card dd{margin:0;font-weight:500;font-variant-numeric:tabular-nums}
.stc-card .sw{display:flex;flex-direction:column;gap:12px;margin-top:20px}
.stc-card .h{margin:12px 0 0;text-align:center;font-size:12px;color:#71717A}
.ul-st .ul-mount{width:100%;max-width:340px}
/* video cover: the component's own demo.mp4 */
.ul-st.vid{display:block;width:100%;padding:0;border:0;aspect-ratio:4/3;background:none;box-shadow:none;cursor:pointer;transition:transform .55s var(--spr-jelly)}
.ul-st.vid:active{transform:scale(.985)}
.ul-st.vid:focus-visible{outline:2px solid var(--c-sel);outline-offset:3px}
.ul-st.vid img,.ul-st.vid video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;border-radius:24px}
.ul-st.vid video{opacity:0;transition:opacity .25s}
.ul-st.vid.on video{opacity:1}
.ul-st.vid::after{content:"";position:absolute;inset:0;border-radius:24px;box-shadow:inset 0 0 0 1px rgba(11,11,12,.07);pointer-events:none}
.ul-c .ul-m{align-items:center}
.ul-a .b21{background:#0035FF;color:#fff}
.ul-a .b21:hover{background:#0030E6}
.ul-a .b21 img{width:20px;height:20px;border-radius:5px;display:block}
.uc-st{font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:#8E8E93;white-space:nowrap}
.uc-r .b21{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 10px;border-radius:11px;background:#0035FF;color:#fff;font-size:14px;letter-spacing:-.01em;text-decoration:none;white-space:nowrap}
.uc-r .b21 img{width:20px;height:20px;border-radius:5px;display:block}
@media (max-width:640px){.uc-st,.uc-r .b21 span{display:none}.uc-r .b21{padding:0 8px}}
/* bundled components render in a shadow root that fills the sheet */
.uc-pv.raw{padding:0;display:block;background:#fff}
.uc-pv.raw .ul-mount{position:absolute;inset:0;width:100%;height:100%}
.uc-pv .uc-ld{position:absolute;inset:0;display:grid;place-items:center;font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:#8E8E93}
.uc-pv.has-ctl{bottom:calc(68px + env(safe-area-inset-bottom,0px))}
.uc-ctl{position:absolute;left:0;right:0;bottom:0;height:68px;box-sizing:content-box;display:flex;align-items:center;gap:24px;padding:0 28px env(safe-area-inset-bottom,0px);border-top:1px solid #EFEFF1;background:#fff;overflow-x:auto;scrollbar-width:none;font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:#6E6E73}
.uc-ctl::-webkit-scrollbar{display:none}
.uc-ctl[hidden]{display:none}
.ul-c .ul-a{margin-top:auto}
@media (max-width:640px){.uc-ft>span{display:none}.uc-ft{justify-content:flex-end}}
.uc-ctl label,.uc-ctl button{flex:none;display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.uc-ctl button{height:32px;padding:0;border:0;background:none;font:inherit;color:inherit;cursor:pointer}
.uc-ctl .sw{position:relative;width:32px;height:20px;border-radius:999px;background:#E4E4E7;transition:background .2s}
.uc-ctl .sw::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .45s var(--spr-jelly)}
.uc-ctl [aria-checked="true"] .sw{background:#2F5CFF}
.uc-ctl [aria-checked="true"] .sw::after{transform:translateX(12px)}
.uc-ctl input[type=range]{width:96px;accent-color:#2F5CFF;cursor:pointer}
.uc-ctl output{min-width:3ch;color:#0B0B0C;font-variant-numeric:tabular-nums}
@media (max-width:640px){.uc-ctl{flex-wrap:wrap;height:auto;overflow:visible;gap:4px 20px;padding:10px 20px calc(12px + env(safe-area-inset-bottom,0px))}}
.uc-ctl :focus-visible{outline:2px solid var(--c-sel);outline-offset:2px;border-radius:6px}
.ul-st .stc{max-width:340px}
@media (max-width:560px){.ul-f{gap:4px;padding:4px;border-radius:16px}.ul-f button{height:40px;padding:0 11px;font-size:15px;gap:6px;border-radius:12px}}

.xt-max{background:linear-gradient(140deg,#41A6FF 0%,#3B5BFF 45%,#8A3DFF 100%)}
.xt-img{background:none;overflow:hidden}
.xt-img img{display:block;width:100%;height:100%;object-fit:cover}
/* footer: no invisible ceiling — shapes thrown up stay visible above the wordmark */
.ft-play{overflow:visible;z-index:3}
.again{display:none !important}
/* Later passes v56–v64, kept in their original order: each one overrides what comes before — by vasnev.art */

/* ===== v56 · header with Roman, assistant without orb, touch & footer fixes — by vasnev.art ===== */
html{-webkit-tap-highlight-color:transparent}
/* Roman next to the logo */
.nav .nav-ro{flex:none;height:100%;display:inline-flex;align-items:center;gap:12px;padding:0 clamp(16px,1.4vw,24px) 0 6px;border:0;border-radius:16px;background:var(--bg);color:var(--fg);font:inherit;font-size:clamp(16px,1.05vw,20px);letter-spacing:-.04em;white-space:nowrap;cursor:pointer;transition:background .2s}
.nav .nav-ro:hover,.nav .nav-ro.open{background:#fff}
.nav .nav-ro img{height:calc(100% - 12px);aspect-ratio:1;width:auto;border-radius:11px;object-fit:cover;background:#E9E9EB;flex:none}
.nav .nav-ro:focus-visible{outline:2px solid var(--c-sel,#6CA7FF);outline-offset:2px}
.nav-ro-t{display:inline-block;transition:opacity .2s}
.nav-ro.ro-hint .nav-ro-t{color:var(--fg)}
.nav-ro-tip{display:none}
/* the assistant: Roman's photo instead of the orb */
.va-ava{flex:none;display:block;width:28px;height:28px;margin-bottom:19px;border-radius:9px;object-fit:cover;background:#E9E9EB}
.va-bot.thinking .va-ava{margin-bottom:0}
.va-eb .va-ava{width:20px;height:20px;margin:0;border-radius:6px}
.va-bot.thinking p:empty{display:flex;gap:4px;align-items:center;height:41px;padding:0 16px}
.va-bot.thinking p:empty::before,.va-bot.thinking p:empty::after{content:'';width:6px;height:6px;border-radius:50%;background:#8E8E93;animation:vaDots 1s ease-in-out infinite}
.va-bot.thinking p:empty::after{animation-delay:.2s}
@keyframes vaDots{0%,100%{opacity:.3;transform:translateY(0)}50%{opacity:1;transform:translateY(-2px)}}
/* after the first question: no video strip, only the chat / contacts toggle on top */
.va.chatting .va-tile{height:44px!important;background:transparent;overflow:visible}
.va.chatting .va-tile video{opacity:0;visibility:hidden;transition:opacity .2s,visibility 0s .2s}
.va.chatting .va-bar{top:4px;left:4px;right:4px}
.va.chatting .va-tabs,.va.chatting .va-ic{background:var(--va-chip);-webkit-backdrop-filter:none;backdrop-filter:none}
.va.chatting .va-tab[aria-selected="true"]{background:#fff}
.va-tile video{transition:object-position .55s var(--va-ease),opacity .25s}
/* last frame: photo and the role line from the first screen */
.me-ava{background:#E9E9EB url(/assistant/ava.jpg) center/cover}
.me-n i.me-role{display:inline-flex;align-items:center;gap:.42em;font-weight:500;font-size:14px;letter-spacing:-.02em;color:var(--c-comp,#8E5CFF)}
.me-role svg{width:.62em;height:.62em;fill:currentColor;flex:none}
/* the long role wraps between its two titles, never inside one; the mark stays on the first line */
.me-n i.me-role,.h0-role{align-items:flex-start}
.me-role svg{margin-top:.33em}
.h0-role svg{margin-top:.26em}
.h0-role{line-height:1.15}
.role-l{white-space:nowrap}
/* contact card: the role stays on one line, the card grows to fit it; bottom space equals the top */
.me{padding-bottom:16px}
.me-p div:last-child{padding-bottom:0}
.me-role>span{white-space:nowrap}
@media (min-width:901px){.me{width:max-content}}
@media (max-width:420px){.me-n i.me-role{font-size:12.5px}}
/* other pages: the footer is only the vasnev.art word with its shapes */
html.pg-cases .xp-wrap,html.pg-ui .xp-wrap{display:none}

/* touch screens: frames, shapes and cards never catch the finger */
@media (hover:none),(pointer:coarse){
  .obj,.drag,.me,.bdg,.g{touch-action:pan-y!important;cursor:default!important}
  .obj,.drag,.me,.bdg,.il-box,.frm{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
  .obj.held,.drag.held,.me.held,.bdg.held{outline:0!important}
}

@media (max-width:900px){
  /* header back on top, solid like on desktop, no section name */
  .nav-wrap{top:calc(8px + env(safe-area-inset-top,0px));bottom:auto}
  .nav{position:relative;height:64px;background:var(--chip);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none}
  .nav-pg{display:none!important}
  .nav .brand{order:0}
  .nav .nav-ro{order:1;width:48px;padding:0;justify-content:center}
  .nav .nav-ro img{height:40px;border-radius:11px}
  .nav-ro-t{display:none}
  .nav .more{order:2;margin-left:auto}
  body{padding-bottom:0}
  .hero.hero2{padding-top:calc(env(safe-area-inset-top,0px) + 8px + 64px + 28px)}
  html.pg-cases #cases,html.pg-ui #ui-library{padding-top:calc(env(safe-area-inset-top,0px) + 8px + 64px + 32px)}
  /* the hint lives under Roman in the header */
  .nav-ro-tip{display:block;position:absolute;left:var(--x,0px);top:calc(100% + 8px);height:40px;padding:0 14px;border:0;border-radius:14px;background:#0B0B0C;color:#fff;font:inherit;font-size:15px;letter-spacing:-.02em;white-space:nowrap;cursor:pointer;
    box-shadow:0 12px 28px -10px rgba(11,11,12,.45);opacity:0;transform:translateY(-6px) scale(.96);transform-origin:20px 0;pointer-events:none;transition:opacity .2s,transform .45s cubic-bezier(.34,1.56,.64,1)}
  .nav-ro-tip.on{opacity:1;transform:none;pointer-events:auto}
  .nav-ro-tip::before{content:'';position:absolute;left:18px;top:-5px;width:10px;height:10px;border-radius:2px;background:#0B0B0C;transform:rotate(45deg)}
  /* menu sheet: fixed heights, so no tile can spill over the swipe row */
  .menu .mn-t{aspect-ratio:auto;height:calc((min(100vw,480px) - 46px) * .375)}
  .menu .mn-v{aspect-ratio:auto;height:calc((min(100vw,480px) - 36px) * .5625)}
  .menu .mn-h{height:auto}
  .mn-sw{position:relative;min-height:68px}
  /* «Обо мне»: a lower band for the shapes */
  .fr-blue{padding-bottom:calc(var(--fp) + 24vw)}
  .fr-blue .g-circ{width:21%;bottom:calc(var(--fp) - 3vw)}
  .fr-blue .g-cur{width:9%;left:calc(var(--fp) + 16%);bottom:calc(var(--fp) - 5vw)}
  .fr-blue .g-tri{width:19%;bottom:calc(var(--fp) - 1vw)}
}
@media (prefers-reduced-motion:reduce){.nav-ro-tip,.va.chatting .va-tile video{transition:none}.va-bot.thinking p:empty::before,.va-bot.thinking p:empty::after{animation:none}}


/* ===== v57 · top menu sheet, live Roman in the header, assistant as a bottom sheet — by vasnev.art ===== */
.nav .nav-ro video{height:calc(100% - 12px);aspect-ratio:1;width:auto;border-radius:11px;object-fit:cover;object-position:50% 18%;background:#E9E9EB;flex:none;pointer-events:none}
/* assistant sheet, rising from the bottom on every screen */
.va-sbd{position:fixed;inset:0;z-index:60;background:rgba(11,11,12,.28);opacity:0;visibility:hidden;transition:opacity .3s,visibility 0s .3s}
.va-sbd.on{opacity:1;visibility:visible;transition:opacity .3s}
.va-float,.va-float.on{left:50%!important;right:auto!important;top:auto!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;width:min(440px,calc(100vw - 16px))!important;height:min(780px,calc(100dvh - 96px - env(safe-area-inset-top,0px)))!important;
  display:flex;flex-direction:column;padding:0 6px 6px;border-radius:32px;opacity:1;visibility:hidden;pointer-events:none;transform-origin:50% 100%!important;
  transform:translate(-50%,calc(100% + 40px));transition:transform .42s cubic-bezier(.32,.72,0,1),visibility 0s .42s}
.va-float.on{visibility:visible;pointer-events:auto;transform:translate(-50%,0);transition:transform .5s cubic-bezier(.32,.72,0,1),visibility 0s}
.va-float.drag{transition:none}
.va-float>.va{flex:1;min-height:0;height:auto}
.va-grab{flex:none;display:grid;place-items:center;height:26px;cursor:grab;touch-action:none}
.va-grab i{width:40px;height:5px;border-radius:3px;background:#D1D1D6}
html.va-sheet{overflow:hidden}
@media (max-width:900px){
  /* menu: drops from the top, grabber at the bottom edge */
  .menu{top:calc(8px + env(safe-area-inset-top,0px));bottom:auto;padding:10px 10px 0;box-shadow:0 10px 50px rgba(11,11,12,.16);transform:translateY(calc(-100% - 40px))}
  .menu.open{transform:none}
  .mn-g{order:99}
}
@media (prefers-reduced-motion:reduce){.va-float,.va-float.on,.va-sbd{transition:none}}


/* ===== v58 · menu hangs from the header, planet + live Roman, assistant on its own on phones — by vasnev.art ===== */
.va-sbd{-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);background:rgba(11,11,12,.18)}
@media (max-width:900px){
  /* header: logo, Roman, language, menu — language is up front for visitors from abroad */
  .nav .lang{display:inline-flex!important;order:2;margin-left:auto;padding:0 12px;font-size:16px;border-radius:14px}
  .nav .more{order:3;margin-left:0}
  .nav{z-index:2}
  .lyr{display:none!important}
  /* the menu is the header growing downwards: same edges, same grey, the bar stays on top */
  .menu{z-index:1;top:calc(8px + env(safe-area-inset-top,0px));left:var(--gutter-l);right:var(--gutter-r);max-width:none;margin:0;border-radius:20px;
    padding:calc(64px + 8px) 8px 0;max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));box-shadow:0 24px 60px -20px rgba(11,11,12,.28);
    transform:translateY(calc(-100% + 64px))}
  .menu.open{transform:none}
  .menu:not(.open){box-shadow:none}
  .mn-f{display:none!important}
  .menu .mn-t{height:calc((100vw - var(--gutter-l) - var(--gutter-r) - 26px) * .375)}
  .menu .mn-v{height:calc((100vw - var(--gutter-l) - var(--gutter-r) - 16px) * .5)}
  .menu .mn-h{height:auto}
  /* planet + live Roman */
  .mn-row{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .mn-gl,.mn-ro{position:relative;aspect-ratio:1;border-radius:22px;overflow:hidden}
  .mn-gl{display:flex;flex-direction:column;justify-content:flex-start;gap:10px;padding:14px 16px;background:#fff}
  .mn-gl canvas{position:absolute;right:-18%;bottom:-24%;width:76%;aspect-ratio:1;height:auto;pointer-events:none}
  .mn-gl-c{position:relative;display:inline-flex;align-items:center;gap:6px;font:500 15px/1 'Geist',sans-serif;letter-spacing:-.03em;color:#0B0B0C}
  .mn-gl-c svg{width:11px;height:15px}
  .mn-gl-c path{fill:var(--c-blue)}
  .mn-gl-c circle{fill:#fff}
  .mn-gl-t{position:relative;display:flex;align-items:baseline;font-weight:500;font-size:36px;line-height:1;letter-spacing:-.06em;font-variant-numeric:tabular-nums;color:#0B0B0C}
  .mn-gl-t .tw-s{font-size:14px;letter-spacing:-.02em;color:#8E8E93;margin-left:3px}
  .mn-ro{display:block;padding:0;border:0;background:#E9E9EB;color:#0B0B0C;font:inherit;text-align:left;cursor:pointer;transition:transform .45s var(--spr-jelly)}
  .mn-ro:active{transform:scale(.97)}
  .mn-ro video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 14%}
  .mn-ro-l{position:absolute;left:8px;right:8px;bottom:8px;display:flex;flex-direction:column;gap:2px;padding:8px 10px 9px;border-radius:14px;background:rgba(255,255,255,.92)}
  .mn-ro-l b{font-weight:500;font-size:14px;letter-spacing:-.02em}
  .mn-ro-l i{font-style:normal;font:400 11px/1.2 'Geist Mono',ui-monospace,monospace;color:var(--c-comp,#8E5CFF)}
  .mn-ro:focus-visible{outline:2px solid var(--c-sel,#6CA7FF);outline-offset:2px}
  /* the assistant under the first frame, full width */
  #heroWrap>#ai.ai{margin-top:44px;width:100%;height:clamp(540px,calc(100svh - 104px),680px);min-height:0}
}
/* footer clock keeps its height now that the resources list is shorter, so the planet never sits on the time */
@media (min-width:901px){.xp-wrap .tw{min-height:500px}}
@media (max-width:360px){.nav .brand{padding:0 14px;gap:8px}.nav .lang{padding:0 10px}}


/* ===== v59 · sheets go edge to edge — by vasnev.art ===== */
/* assistant sheet: sits on the bottom edge, only the top corners are round */
.va-float,.va-float.on{bottom:0!important;border-radius:32px 32px 0 0;padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))}
@media (max-width:900px){
  .nav .nav-ro{display:none!important}
  /* menu: full width, hangs from the top edge, round only at the bottom */
  .menu{top:0;left:0;right:0;border-radius:0 0 28px 28px;
    padding:calc(env(safe-area-inset-top,0px) + 8px + 64px + 10px) calc(var(--gutter-r) + 8px) 0 calc(var(--gutter-l) + 8px);
    max-height:calc(100dvh - 48px);transform:translateY(-100%)}
  .menu.open{transform:none}
  .menu .mn-t{height:calc((100vw - var(--gutter-l) - var(--gutter-r) - 26px) * .375)}
  .menu .mn-v{height:calc((100vw - var(--gutter-l) - var(--gutter-r) - 16px) * .5)}
  /* the bar keeps a soft shadow over the open sheet, so scrolled tiles slide under it cleanly */
  .nav{transition:box-shadow .3s}
  .nav:has(.more[aria-expanded="true"]){box-shadow:0 10px 24px -12px rgba(11,11,12,.28),0 1px 0 rgba(11,11,12,.04)}
  /* assistant sheet: full width */
  .va-float,.va-float.on{width:100vw!important;height:min(780px,calc(100dvh - 48px - env(safe-area-inset-top,0px)))!important}
}


/* ===== v61 · Roman down to the chest everywhere, solid header over the open menu — by vasnev.art ===== */
/* the assistant takes the height its content needs: video 4:5 + greeting + field */
#ai.ai{height:auto!important;min-height:0!important;align-self:start}
#ai.ai>.va,.va-float>.va{height:var(--va-need,620px);flex:none}
.va-tile video{object-fit:cover;object-position:50% 0%}
.fr-white{height:auto!important}
@media (min-width:901px){.fr-white{min-height:max(600px,calc(100vh - clamp(96px,11vh,120px) - 94px))}}
@media (max-width:900px){.fr-white{min-height:0!important}}
/* the sheet hugs its content and scrolls only if a short screen asks for it */
.va-float,.va-float.on{height:auto!important;max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;width:min(400px,calc(100vw - 16px))!important}
.va-float::-webkit-scrollbar{display:none}
@media (max-width:900px){
  #heroWrap>#ai.ai{height:auto!important}
  .va-float,.va-float.on{width:100vw!important}
  /* open menu: the bar becomes a solid strip from the very top, one shadow along its whole width */
  .nav-wrap{transition:background .25s,box-shadow .3s}
  .nav-wrap:has(.more[aria-expanded="true"]){top:0;padding-top:calc(env(safe-area-inset-top,0px) + 8px);padding-bottom:8px;background:var(--chip);box-shadow:0 10px 24px -12px rgba(11,11,12,.3),0 1px 0 rgba(11,11,12,.05)}
  .nav:has(.more[aria-expanded="true"]){box-shadow:none}
  .menu{padding-top:calc(env(safe-area-inset-top,0px) + 8px + 64px + 8px + 12px)}
  /* the assistant goes first in the menu */
  .mn-row{order:-1}
}


/* ===== v62 · the open header is one solid shape with a shadow; swipe sits under Roman — by vasnev.art ===== */
@media (max-width:900px){
  .nav-wrap:has(.more[aria-expanded="true"]){border-radius:0 0 24px 24px;box-shadow:0 12px 28px -10px rgba(11,11,12,.32),0 1px 0 rgba(11,11,12,.05)}
  .mn-row{order:-2}
  .mn-sw{order:-1}
}


/* ===== v62b · the solid header strip is its own layer: above the menu tiles, under the bar ===== */
@media (max-width:900px){
  .nav-wrap:has(.more[aria-expanded="true"]){background:transparent!important;box-shadow:none!important;border-radius:0}
  .nav-wrap::before{content:'';position:absolute;inset:0;z-index:2;border-radius:0 0 24px 24px;background:var(--chip);
    box-shadow:0 12px 28px -10px rgba(11,11,12,.32),0 1px 0 rgba(11,11,12,.05);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s,visibility 0s .25s}
  .nav-wrap:has(.more[aria-expanded="true"])::before{opacity:1;visibility:visible;transition:opacity .25s}
  .nav{z-index:3}
  .menu{z-index:1}
}


/* ===== v63 · no zoom on focus, lighter open header — by vasnev.art ===== */
@media (max-width:900px){
  /* iOS zooms into any field under 16px: keep it at 16 so nothing jumps when the keyboard opens */
  .va-field input,.pw-f input,input,textarea{font-size:16px!important}
  .nav-wrap::before{box-shadow:0 6px 18px -12px rgba(11,11,12,.16)}
}


/* ===== v64 · smooth scroll on big Retina screens — by vasnev.art ===== */
/* the dot grid used background-attachment:fixed, which makes Safari repaint the whole screen on every scroll frame;
   now it is its own fixed layer that the GPU just keeps in place */
body{background-image:none}
body::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:radial-gradient(circle,rgba(11,11,12,.075) 0 1px,transparent 1.4px);background-size:20px 20px;background-position:-6px -6px;transform:translateZ(0)}
/* full-screen dialogs dim the page instead of blurring it: a live blur under an animated component is redrawn every frame */
.uc,.pw{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(11,11,12,.44)}
@media (max-width:900px){.menu-bd{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}}
/* cards keep their paint to themselves */
.ul-st{contain:paint}

/* ===== Подход: six cards in two rows of three; the frame height comes from scripts/site.js — by vasnev.art ===== */
@media (min-width:901px){
  .f2-lead{max-width:64ch}
  .fr-dark .obj{width:clamp(216px,calc((100% - 2 * var(--fp) - 80px) / 3),320px)}
}

/* ===== Избранные кейсы: a white frame with three tasks — by vasnev.art ===== */
.fr-fx{background:#fff;color:#0B0B0C;padding:var(--fp);display:flex;flex-direction:column;gap:clamp(28px,3vw,44px);box-shadow:0 0 0 1px rgba(11,11,12,.06)}
.fx-hd{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.fx-hd .f-h{margin:0}
.fx-all{flex:none;height:48px;padding:0 20px;font-size:16px;border-radius:14px}
.fx-g{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.6vw,24px)}
.fx-c{display:flex;flex-direction:column;gap:12px;height:100%;padding:8px 8px 22px;border-radius:24px;background:#F4F4F5;color:inherit;text-decoration:none;transition:background .2s,transform .5s var(--spr-jelly)}
.fx-c:focus-visible{outline:2px solid var(--c-sel);outline-offset:3px}
.fx-cv{position:relative;display:block;aspect-ratio:16/10;margin-bottom:6px;border-radius:18px;overflow:hidden;background:#E9E9EB}
.fx-cv img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s cubic-bezier(.22,1,.36,1)}
.fx-st{position:absolute;left:10px;top:10px;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:10px;background:#fff;color:#0B0B0C;font-size:13px;letter-spacing:-.01em;white-space:nowrap}
.fx-st[hidden]{display:none}
.fx-st svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.fx-t{margin:0;padding:0 10px;font-weight:500;font-size:clamp(20px,1.9vw,28px);line-height:1.08;letter-spacing:-.04em;text-wrap:balance}
.fx-m{padding:0 10px;font:400 13px/1.2 'Geist Mono',ui-monospace,monospace;color:#8E8E93}
.fx-r{margin:auto 10px 0;padding-top:12px;border-top:1px solid rgba(11,11,12,.14);font-weight:500;font-size:14px;letter-spacing:-.02em}
@media (hover:hover){.fx-c:hover{background:#EDEDEF;transform:translateY(-3px)}.fx-c:hover .fx-cv img{transform:scale(1.03)}}
@media (max-width:900px){.fx-hd{flex-direction:column;align-items:flex-start;gap:16px}.fx-g{grid-template-columns:minmax(0,1fr)}.fx-all{height:44px}}
@media (prefers-reduced-motion:reduce){.fx-c,.fx-cv img{transition:none}}

/* ---- Что я делаю сам: a small Figma canvas ---- */
.fr-pink{background:var(--c-pink);color:#0B0B0C;padding:var(--fp);display:flex;flex-direction:column;gap:clamp(28px,3vw,44px)}
.fb-hd{display:flex;flex-direction:column;gap:var(--fgap)}
.fb-hd .f-p{color:#3A1530}
.fb-g{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(14px,1.6vw,22px)}
.fb-ui{grid-column:span 7}.fb-st{grid-column:span 5}.fb-ai{grid-column:span 12}
.fb-b{all:unset;box-sizing:border-box;display:flex;flex-direction:column;height:100%;border-radius:24px;background:#fff;color:#0B0B0C;overflow:hidden;position:relative;transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .2s}
a.fb-b{cursor:pointer}
a.fb-b:hover{transform:translateY(-4px);box-shadow:0 0 0 2px var(--c-sel)}
.fb-b:focus-visible{box-shadow:0 0 0 2px var(--c-sel)}
.fb-tx{display:flex;flex-direction:column;gap:10px;padding:clamp(20px,2vw,28px)}
.fb-k{font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:#8E8E93}
.fb-n{font-weight:500;font-size:clamp(26px,2.4vw,36px);line-height:1;letter-spacing:-.05em}
.fb-d{font-size:16px;line-height:1.4;letter-spacing:-.02em;color:#3D3D42;max-width:44ch}
.fb-s{display:inline-flex;align-items:center;gap:6px;margin-top:6px;font-size:15px;font-weight:500;letter-spacing:-.02em}
.fb-s svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6}
.fb-soon{align-self:flex-start;padding:5px 9px;border-radius:8px;background:#0B0B0C;color:#fff;font:400 12px/1 'Geist Mono',ui-monospace,monospace}
/* the canvas each tile shows its thing on */
.fb-v{position:relative;flex:1;min-height:clamp(220px,20vw,280px);background:#F4F4F5 radial-gradient(circle,rgba(11,11,12,.12) 0 1px,transparent 1.4px) 0 0/16px 16px;overflow:hidden}

/* UI Library: instances scattered around one live component */
.fb-in{position:absolute;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 11px;border-radius:9px;background:#fff;box-shadow:0 0 0 1px rgba(11,11,12,.06),0 6px 16px rgba(11,11,12,.08);font-size:13px;letter-spacing:-.01em;white-space:nowrap;rotate:var(--r);transition:translate .5s cubic-bezier(.2,.8,.2,1)}
.fb-in svg{width:11px;height:11px;fill:var(--c-comp,#8E5CFF)}
.fb-ui a:hover .fb-in:nth-child(odd){translate:0 -6px}.fb-ui a:hover .fb-in:nth-child(even){translate:0 6px}
.fb-sw{position:absolute;left:50%;top:48%;translate:-50% -50%;width:min(300px,70%);height:56px;border-radius:18px;background:#0B0B0C;color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;letter-spacing:-.02em;box-shadow:0 14px 30px rgba(11,11,12,.25)}
.fb-sw-l{opacity:.7}
.fb-sw-k{position:absolute;left:5px;top:5px;width:46px;height:46px;border-radius:14px;background:var(--c-yellow);display:grid;place-items:center;animation:fbSwipe 3.4s cubic-bezier(.6,0,.2,1) infinite}
.fb-sw-k svg{width:14px;height:14px;fill:none;stroke:#0B0B0C;stroke-width:1.8;rotate:45deg}
@keyframes fbSwipe{0%,18%{left:5px;background:var(--c-yellow)}55%,80%{left:calc(100% - 51px);background:#34C759}100%{left:5px;background:var(--c-yellow)}}
/* the selection box around it, as in the editor */
.fb-sel{position:absolute;left:50%;top:48%;translate:-50% -50%;width:calc(min(300px,70%) + 12px);height:68px;box-shadow:inset 0 0 0 1.5px var(--c-comp,#8E5CFF);border-radius:4px;pointer-events:none}
.fb-sel b{position:absolute;left:-1px;bottom:100%;margin-bottom:4px;padding:2px 6px 3px;border-radius:4px;background:var(--c-comp,#8E5CFF);color:#fff;font:400 11px/1.2 'Geist Mono',ui-monospace,monospace;white-space:nowrap}

/* Studio: a frame being dragged out by a cursor */
.fb-mq{position:absolute;left:14%;top:22%;width:72%;height:56%;box-shadow:inset 0 0 0 1.5px var(--c-sel);background:rgba(108,167,255,.08);animation:fbDraw 4.2s cubic-bezier(.6,0,.2,1) infinite}
.fb-mq i{position:absolute;width:8px;height:8px;margin:-4px 0 0 -4px;background:#fff;box-shadow:0 0 0 1.5px var(--c-sel)}
.fb-mq .h1{left:0;top:0}.fb-mq .h2{left:100%;top:0}.fb-mq .h3{left:0;top:100%}.fb-mq .h4{left:100%;top:100%}
.fb-mq-n{position:absolute;left:0;bottom:100%;margin-bottom:6px;font:400 11px/1 'Geist Mono',ui-monospace,monospace;color:var(--c-sel)}
.fb-mq-sz{position:absolute;left:50%;top:100%;translate:-50% 10px;padding:3px 6px 4px;border-radius:5px;background:var(--c-sel);color:#fff;font:400 11px/1 'Geist Mono',ui-monospace,monospace;white-space:nowrap}
.fb-cur{position:absolute;left:100%;top:100%;display:flex;align-items:flex-start;gap:2px;translate:-2px -2px}
.fb-cur svg{width:16px;height:22px;fill:var(--c-sel);stroke:#fff;stroke-width:1.2}
.fb-cur b{margin-top:16px;padding:3px 7px 4px;border-radius:6px;background:var(--c-sel);color:#fff;font:500 11px/1 'Geist',sans-serif}
@keyframes fbDraw{0%{width:0;height:0;opacity:0}8%{width:0;height:0;opacity:1}55%,85%{width:72%;height:56%;opacity:1}100%{width:72%;height:56%;opacity:0}}

/* AI: the text on the left, a skill wired between the tools on the right */
.fb-ai .fb-b{flex-direction:row}
.fb-ai .fb-tx{flex:0 0 42%;justify-content:center}
.fb-ask{all:unset;display:inline-flex;align-items:center;gap:6px;margin-top:6px;font-size:15px;font-weight:500;letter-spacing:-.02em;cursor:pointer}
.fb-ask:hover{color:var(--c-sel)}
.fb-ask:focus-visible{outline:2px solid var(--c-sel);outline-offset:3px;border-radius:4px}
.fb-gr{display:flex;align-items:center;justify-content:center;gap:0;padding:28px 20px 56px}
.fb-nd{position:relative;flex:none;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px;border-radius:10px;background:#fff;box-shadow:0 0 0 1px rgba(11,11,12,.06),0 10px 24px rgba(11,11,12,.08)}
.fb-nd img{display:block;width:40px;height:40px;border-radius:6px}
.fb-nd b{font:400 12px/1 'Geist Mono',ui-monospace,monospace;color:#5B5B62}
.fb-sk{padding:16px 18px;box-shadow:0 0 0 1.5px var(--c-comp,#8E5CFF),0 14px 30px rgba(142,92,255,.22)}
.fb-md{display:grid;place-items:center;height:40px;padding:0 12px;border-radius:6px;background:#0B0B0C;color:#fff;font:500 13px/1 'Geist Mono',ui-monospace,monospace}
.fb-ln{position:relative;flex:1;min-width:28px;max-width:120px;height:2px;background:repeating-linear-gradient(90deg,var(--c-comp,#8E5CFF) 0 6px,transparent 6px 11px) 0 0/22px 2px;animation:fbFlow .9s linear infinite}
.fb-ln em{position:absolute;left:50%;bottom:8px;translate:-50% 0;font:normal 400 11px/1 'Geist Mono',ui-monospace,monospace;color:var(--c-comp,#8E5CFF)}
@keyframes fbFlow{to{background-position:22px 0}}
.fb-gh{position:absolute;left:50%;bottom:18px;translate:-50% 0;display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#fff;box-shadow:0 0 0 1px rgba(11,11,12,.08);font-size:13px;letter-spacing:-.01em;white-space:nowrap}
.fb-gh img{display:block;width:18px;height:18px;border-radius:5px}

@media (prefers-reduced-motion:reduce){.fb-sw-k,.fb-mq,.fb-ln{animation:none}}
@media (max-width:900px){
  .fb-g{grid-template-columns:minmax(0,1fr)}
  .fb-ui,.fb-st,.fb-ai{grid-column:auto}
  .fb-ai .fb-b{flex-direction:column-reverse}
  .fb-ai .fb-tx{flex:none}
  .fb-v{min-height:200px}
  .fb-gr{padding:24px 12px 56px}
  .fb-nd{padding:8px;gap:6px}.fb-sk{padding:10px}.fb-nd img{width:32px;height:32px}.fb-md{height:32px;padding:0 8px;font-size:11px}.fb-ln{min-width:22px}.fb-ln em{font-size:10px}
  .fb-in:nth-child(n+4){display:none}
}

/* ---- Контакты: формат работы — текстовый слой, который перепечатывается на месте ---- */
.f4-q{position:relative;z-index:5}
.f4-q .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.fsw{margin:0;max-width:none}
.fsw-b{all:unset;position:relative;display:inline-block;padding:0 .08em .04em;margin:.06em 0 0 -.08em;cursor:none;box-shadow:inset 0 0 0 2px var(--c-sel)}
.fsw-b i[class^="h"]{position:absolute;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;background:#fff;box-shadow:0 0 0 1.5px var(--c-sel)}
.fsw-b .h1{left:0;top:0}.fsw-b .h2{left:100%;top:0}.fsw-b .h3{left:0;top:100%}.fsw-b .h4{left:100%;top:100%}
.fsw-t{white-space:nowrap}
/* the text caret shows while the layer is being retyped */
.fsw-c{display:inline-block;width:3px;height:.82em;margin-left:2px;vertical-align:-.06em;background:var(--c-sel);opacity:0}
.fsw.edit .fsw-c{opacity:1}
.fsw:not(.edit) .fsw-c{animation:fswBlink 1.1s steps(1) infinite}
@keyframes fswBlink{50%{opacity:1}}
.fsw-tag{position:absolute;left:-2px;top:100%;margin-top:12px;display:inline-flex;align-items:center;gap:6px;padding:5px 9px 6px;border-radius:7px;background:var(--c-comp,#8E5CFF);color:#fff;font:400 13px/1 'Geist Mono',ui-monospace,monospace;letter-spacing:0;white-space:nowrap}
.fsw-tag svg{width:10px;height:10px;fill:#fff}
.fsw-tag b{font-weight:500}
@media (max-width:900px){.fsw-b{cursor:pointer}}
@media (max-width:560px){.fsw-t{white-space:normal}.fsw-tag{font-size:11px}}
.me{padding-bottom:16px}.me .me-h{padding-bottom:0;border-bottom:0}

/* ---- Опыт: вклад под названием компании ---- */
.row .r-d{grid-column:2 / -1;margin-top:-6px;font-size:15px;line-height:1.4;letter-spacing:-.02em;color:#3D3550;max-width:52ch}
@media (max-width:900px){.row .r-d{grid-column:1 / -1;margin-top:0}}

/* ---- Опыт: a light grey canvas ---- */
#f3.fr-lilac{background:#ECECEE;color:#0B0B0C;box-shadow:inset 0 0 0 1px rgba(11,11,12,.06)}
#f3 .f3-side .f-p{color:#3D3D42}
#f3 .r-y{color:#8E8E93}
#f3 .r-r,#f3 .row .r-d{color:#3D3D42}
#f3 .row{border-top-color:rgba(11,11,12,.1)}
#f3 .row:last-child{border-bottom-color:rgba(11,11,12,.1)}

/* ---- Что я делаю сам: the component violet ---- */
#fb.fr-pink{background:var(--c-violet) radial-gradient(circle,rgba(255,255,255,.14) 0 1px,transparent 1.4px) -6px -6px/20px 20px;color:#fff}
#fb .fb-hd .f-p{color:rgba(255,255,255,.82)}
#fb .fb-b{box-shadow:0 10px 30px rgba(40,10,110,.18)}
#fb a.fb-b:hover{box-shadow:0 0 0 2px #fff,0 14px 34px rgba(40,10,110,.25)}
#builds>.frm::after{box-shadow:inset 0 0 0 2px #fff}

/* ---- Контакты on phones: who → the question → how to write ---- */
@media (max-width:900px){
  .fr-yellow{gap:28px;justify-content:flex-start}
  .fr-yellow .me{order:-1;align-self:flex-start;max-width:none;width:100%;box-sizing:border-box;box-shadow:0 10px 24px rgba(11,11,12,.1)}
  .f4-q{padding-bottom:40px}
  .f4-cta{flex-direction:column;align-items:stretch;gap:10px;margin-top:0}
  .f4-cta .cta-b{justify-content:center;height:56px;font-size:17px;padding:0 20px}
  .f4-cta .cta-b-ghost{background:#fff}
}

/* phone menu: «Studio» and «Статьи» are not built yet — hidden so the sheet fits the screen without cutting a tile in half */
@media (max-width:900px){.menu .mn-h[aria-disabled="true"]{display:none}}

/* AI chat on phones: with the keyboard up the sheet sits on top of it (--kb from visualViewport, scripts/assistant.js),
   fits the visible part of the screen and scrolls so the field stays in sight */
@media (max-width:900px){
  .va-float.kb,.va-float.kb.on{bottom:var(--kb,0px)!important;max-height:calc(var(--vvh,100dvh) - 8px)!important;border-radius:24px 24px 0 0;padding-bottom:6px;transition:none}
}

/* «Что я делаю сам»: the GitHub pill is a real button; on phones the Studio cursor stays inside its card */
.fb-gh{z-index:1;height:36px;padding:0 14px 0 9px;gap:8px;color:#0B0B0C;text-decoration:none;font-weight:500;box-shadow:0 0 0 1px rgba(11,11,12,.1),0 4px 12px rgba(11,11,12,.06);transition:transform .45s var(--spr-jelly,cubic-bezier(.34,1.45,.64,1)),box-shadow .2s}
.fb-gh svg{flex:none;width:11px!important;height:11px!important;display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.fb-gh:hover{box-shadow:0 0 0 1px rgba(11,11,12,.18),0 6px 16px rgba(11,11,12,.1)}
.fb-gh:active{transform:scale(.96)}
.fb-gh:focus-visible{outline:2px solid var(--c-sel);outline-offset:3px}
/* the pill hugs its text: an absolutely placed box with left:50% would only get half the width and squeeze it */
.fb-gh{width:max-content;max-width:calc(100% - 24px)}
@media (max-width:900px){
  /* Studio on phones: a smaller frame, so its name, the size tag and the cursor each have their own room */
  .fb-mq{left:12%;top:20%;width:56%;height:44%}
  @keyframes fbDraw{0%{width:0;height:0;opacity:0}8%{width:0;height:0;opacity:1}55%,85%{width:56%;height:44%;opacity:1}100%{width:56%;height:44%;opacity:0}}
  .fb-st .fb-v{min-height:220px}
}
