/* about.timur — демо новой версии. Тот же язык, что и на сайте: белый, Roboto Mono, тонкие линии. */

@font-face { font-family: "Roboto Mono"; src: url("fonts/RobotoMono-Light.woff") format("woff");   font-weight: 300; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("fonts/RobotoMono-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("fonts/RobotoMono-Medium.woff") format("woff");  font-weight: 500; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("fonts/RobotoMono-Bold.woff") format("woff");    font-weight: 700; font-display: swap; }

:root {
  --ink: #313134;
  --ink2: #2c2c2e;
  --gray: #6c6c74;
  --line: rgba(49, 49, 52, .14);
  --line2: rgba(49, 49, 52, .26);
  --bg: #fff;
  --tile: #f6f6f7;
  --pad: clamp(16px, 2.2vw, 36px);
  --head: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ok: #2fa86b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Roboto Mono", ui-monospace, Menlo, monospace;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body[data-view="home"], body[data-view="portfolio"] { overflow: hidden; height: 100vh; height: 100dvh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: #fff; }

/* ---------- переходы между экранами (View Transitions API) ---------- */
::view-transition-old(root) { animation: vt-out .32s ease both; }
::view-transition-new(root) { animation: vt-in .45s ease both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- шапка ---------- */
.chrome {
  position: fixed; inset: 0 0 auto 0; height: var(--head); z-index: 60;
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }
.brand { font-weight: 400; font-size: 17px; letter-spacing: .02em; transition: opacity .25s; }
.brand:hover { opacity: .55; }
.topnav { display: flex; gap: clamp(14px, 2.4vw, 34px); margin-left: auto; font-size: 14px; }
.topnav a { color: var(--gray); position: relative; padding: 6px 0; transition: color .25s; }
.topnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.topnav a:hover, .topnav a.on { color: var(--ink); }
.topnav a:hover::after, .topnav a.on::after { transform: scaleX(1); }
body[data-view="home"] .topnav { visibility: hidden; }
.kbtn {
  display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 8px 0 13px;
  border: 1px solid var(--line2); border-radius: 999px; font-size: 12px; color: var(--gray);
  background: rgba(255, 255, 255, .7); backdrop-filter: blur(8px);
  transition: color .25s, border-color .25s;
}
.kbtn:hover { color: var(--ink); border-color: var(--ink); }
.kbtn kbd { font: inherit; font-size: 11px; padding: 2px 6px; border-radius: 6px; background: rgba(49, 49, 52, .07); color: var(--ink); }

/* ---------- экраны ---------- */
.view { display: none; }
.view.on { display: block; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; flex: none; }
.status i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ok); opacity: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

/* ================= ГЛАВНАЯ ================= */
#v-home { position: fixed; inset: 0; overflow: hidden; }
.char { position: absolute; inset: 0; pointer-events: none; user-select: none; }
.char-in { position: absolute; inset: 0; will-change: transform; }
.char video {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 61vh; width: auto; max-width: 96vw; object-fit: contain;
  mix-blend-mode: multiply;
  animation: char-in 1.1s .1s var(--ease) both;
}
@keyframes char-in { from { opacity: 0; translate: 0 24px; } }
.char-hit { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 34vh; height: 50vh; z-index: 4; border-radius: 40% 40% 0 0; }

.nw {
  position: absolute; z-index: 6; padding: 10px 14px;
  font-size: clamp(34px, 4.1vw, 66px); letter-spacing: -.035em; white-space: nowrap;
  will-change: transform;
  animation: rise .9s var(--ease) both;
}
.nw .u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .55s var(--ease); }
.nw:hover .u, .nw:focus-visible .u { background-size: 100% 1px; }
.nw-p { top: 22%; left: 50%; translate: -50% 0; animation-delay: .35s; }
.nw-a { top: 65.5%; left: 8.9%; animation-delay: .5s; }
.nw-c { top: 65.5%; right: 9%; animation-delay: .65s; }
@keyframes rise { from { opacity: 0; translate: var(--tx, 0) 16px; } }
.nw-p { --tx: -50%; }


.tagline { position: absolute; left: var(--pad); bottom: var(--pad); font-size: 13px; line-height: 1.55; color: var(--gray); animation: rise .9s .85s var(--ease) both; }
#v-home .status { position: absolute; right: var(--pad); bottom: var(--pad); animation: rise .9s .95s var(--ease) both; }
.home-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; font-size: 12px; color: var(--gray); letter-spacing: .02em; opacity: 0; animation: hint 5s 2.6s ease both; pointer-events: none; }
@keyframes hint { 0%, 100% { opacity: 0; } 15%, 80% { opacity: 1; } }


@media (max-width: 760px) {
  .char video { width: 90vw; height: auto; max-width: none; aspect-ratio: 1776 / 2116; object-fit: cover; object-position: center top; }
  .char-hit { width: 56vw; height: 70vw; }
  .nw-p { top: max(120px, calc(100% - 107.3vw - 12vw)); }
  .nw-a { top: calc(100% - 62vw); left: 3%; }
  .nw-c { top: calc(100% - 62vw); right: 3%; }
  .tagline { left: var(--pad); top: calc(var(--head) + 6px); bottom: auto; }
  #v-home .status { left: var(--pad); right: auto; top: calc(var(--head) + 58px); bottom: auto; }
  .home-hint { display: none; }
}

/* ================= ПОРТФОЛИО ================= */
#v-portfolio { position: fixed; inset: 0; overflow: hidden; }
.pf-head {
  position: absolute; top: var(--head); left: var(--pad); right: var(--pad); z-index: 30;
  display: flex; align-items: center; gap: 20px; pointer-events: none;
}
.pf-head > * { pointer-events: auto; }
.pf-head { flex-wrap: wrap; row-gap: 6px; }
.cats { order: 5; flex-basis: 100%; display: flex; gap: clamp(18px, 2.6vw, 38px); }
.cats button { position: relative; padding: 6px 0; font-size: 15px; color: var(--gray); transition: color .25s; white-space: nowrap; }
.cats button sup { font-size: 10.5px; margin-left: 5px; vertical-align: top; position: relative; top: 1px; }
.cats button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.cats button:hover, .cats button.on { color: var(--ink); }
.cats button:hover::after, .cats button.on::after { transform: scaleX(1); }
.pf-title sup:empty { display: none; }
.pf-title { font-size: clamp(24px, 2.6vw, 38px); font-weight: 300; letter-spacing: -.035em; }
.pf-title sup { font-size: 12px; letter-spacing: 0; color: var(--gray); margin-left: 8px; vertical-align: top; position: relative; top: 4px; }
.pf-hint { font-size: 12px; color: var(--gray); margin-left: 10px; transition: opacity .5s; pointer-events: none !important; }
.pf-hint.off { opacity: 0; }
.pf-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.shuffle { font-size: 13px; color: var(--gray); padding: 8px 4px; transition: color .25s, opacity .3s; }
.shuffle:hover { color: var(--ink); }
.shuffle:active { transform: scale(.96); }
body[data-pfsel="list"] .shuffle, body[data-pfsel="sel"] .shuffle { opacity: 0; pointer-events: none; }
.seg { position: relative; display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; padding: 3px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(8px); }
.seg button { position: relative; z-index: 1; width: 80px; height: 28px; font-size: 13px; border-radius: 999px; transition: color .3s; }
.seg button.on { color: #fff; }
.seg .pill { position: absolute; z-index: 0; top: 3px; left: 3px; width: 80px; height: 28px; border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease); }
.seg.is-list .pill { transform: translateX(80px); }

/* — стол — */
.table, .list { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.table.on, .list.on { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.stage { position: absolute; inset: 0; overflow: hidden; }
.obj {
  position: absolute; left: 0; top: 0; z-index: 1;
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
  transition: transform .95s var(--ease), opacity .5s ease;
  will-change: transform;
}
.obj img { width: 100%; height: auto; pointer-events: none; transition: filter .35s, scale .35s var(--ease); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .13)); }
.obj.vcard img { border-radius: 5px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .18)); }
.obj:hover img { scale: 1.04; }
.obj.drag, .obj.inertia { transition: opacity .4s ease; cursor: grabbing; }
.obj.drag img { scale: 1.09; filter: drop-shadow(0 26px 24px rgba(0, 0, 0, .2)); }
.obj.gone { pointer-events: none; opacity: 0; }
.obj.site { background: #fff; border-radius: 9px; overflow: hidden; box-shadow: 0 0 0 1px rgba(49, 49, 52, .14), 0 18px 40px rgba(0, 0, 0, .14); transition: transform .95s var(--ease), opacity .5s ease, box-shadow .35s; }
.obj.site:hover { box-shadow: 0 0 0 1px rgba(49, 49, 52, .24), 0 26px 54px rgba(0, 0, 0, .2); }
.obj.site.drag { box-shadow: 0 0 0 1px rgba(49, 49, 52, .24), 0 36px 70px rgba(0, 0, 0, .24); }
.obj.site img, .obj.site.drag img { filter: none; scale: 1; border-radius: 0; }
.obj.site:hover img { scale: 1.03; }
.sbar { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 10px; background: #fafafa; border-bottom: 1px solid var(--line); pointer-events: none; }
.sbar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(49, 49, 52, .2); }
.obj .play { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); pointer-events: none; }
.obj .play::after, .vt .play::after { content: ""; position: absolute; left: 15px; top: 11px; border-left: 12px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }

.dock {
  position: absolute; left: 50%; bottom: calc(var(--pad) - 4px); translate: -50% 0; z-index: 30;
  display: flex; align-items: center; gap: 4px; padding: 6px;
  max-width: calc(100vw - 2 * var(--pad)); overflow-x: auto; scrollbar-width: none;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .06);
}
.dock::-webkit-scrollbar { display: none; }
.chip { flex: none; display: flex; align-items: center; height: 40px; padding: 0 6px; border-radius: 999px; font-size: 13px; white-space: nowrap; transition: background .3s, color .3s, padding .4s var(--ease); }
.chip:hover { background: rgba(49, 49, 52, .06); }
.chip.on { background: var(--ink); color: #fff; padding-right: 14px; }
.chip.all { padding: 0 14px; }
.chip .ic { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; transition: transform .35s var(--ease); }
.chip:hover .ic { transform: scale(1.12) translateY(-2px); }
.chip .ic img { width: 20px; height: 20px; object-fit: contain; }
.chip .ic b, .row .lg b { font-weight: 500; font-size: 13px; color: var(--ink); }
.row .lg b { font-size: 20px; color: var(--gray); }
.chip span { max-width: 0; overflow: hidden; opacity: 0; margin-left: 0; transition: max-width .55s var(--ease), opacity .3s, margin .55s var(--ease); }
.chip.on span { max-width: 150px; opacity: 1; margin-left: 9px; }

.collect {
  position: absolute; left: 50%; bottom: calc(var(--pad) + 52px); translate: -50% 10px; z-index: 29;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; align-items: baseline;
  width: max-content; max-width: calc(100vw - 2 * var(--pad)); font-size: 13px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .45s, translate .55s var(--ease);
}
.collect.on { opacity: 1; translate: -50% 0; pointer-events: auto; }
.collect b { font-weight: 500; }
.collect .f { color: var(--gray); }
.collect a { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity .25s; }
.collect a:hover { opacity: .55; }

/* — список — */
.list { overflow-y: auto; overscroll-behavior: contain; padding: calc(var(--head) + 118px) var(--pad) 90px; }
.rows { max-width: 1400px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 96px minmax(0, 290px) 44px; align-items: center; column-gap: 18px;
  padding: 20px 0; border-top: 1px solid var(--line); transition: opacity .35s;
  animation: rise .8s var(--ease) both; animation-delay: calc(var(--i) * 40ms + .1s);
}
.row .n, .row .c, .row .f { font-size: 12px; color: var(--gray); }
.row .t { font-size: clamp(22px, 2.9vw, 44px); letter-spacing: -.035em; line-height: 1.08; transition: translate .5s var(--ease); }
.row .lg { justify-self: end; width: 32px; height: 32px; display: grid; place-items: center; }
.row .lg img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s; }
.row:hover .lg img, .row:focus-visible .lg img { filter: none; opacity: 1; }
.row:hover .t, .row:focus-visible .t { translate: 14px 0; }
.rows:hover .row:not(:hover) { opacity: .28; }
.peek { position: fixed; left: 0; top: 0; width: clamp(190px, 23vw, 340px); aspect-ratio: 1; pointer-events: none; z-index: 20; opacity: 0; transition: opacity .3s; will-change: transform; }
.peek.on { opacity: 1; }
.peek img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; scale: .9; transition: opacity .3s, scale .5s var(--ease); filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .2)); }
.peek img.on { opacity: 1; scale: 1; }
.peek img.poster { border-radius: 6px; }

@media (max-width: 1100px) {
  .row { grid-template-columns: 44px minmax(0, 1fr) 90px 40px; }
  .row .f { display: none; }
}
@media (max-width: 760px) {
  .pf-hint { display: none; }
  .shuffle span { display: none; }
  .seg button, .seg .pill { width: 66px; }
  .seg.is-list .pill { transform: translateX(66px); }
  .row { grid-template-columns: 30px minmax(0, 1fr) 30px; row-gap: 6px; padding: 18px 0; }
  .row .c { grid-column: 2; grid-row: 2; }
  .row .f { display: none; }
  .row .lg { grid-column: 3; grid-row: 1 / span 2; }
  .peek { display: none; }
}

/* ================= ПРОЕКТ ================= */
#v-project { padding: calc(var(--head) + 30px) var(--pad) 100px; }
.proj { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); max-width: 1560px; margin: 0 auto; }
.proj-side { position: sticky; top: calc(var(--head) + 30px); align-self: start; display: flex; flex-direction: column; gap: 18px; animation: rise .8s var(--ease) both; }
.back { font-size: 13px; color: var(--gray); align-self: flex-start; transition: color .25s, translate .4s var(--ease); }
.back:hover { color: var(--ink); translate: -4px 0; }
.plogo { height: 44px; width: auto; max-width: 170px; object-fit: contain; object-position: left; margin-top: 10px; }
.plogo.sq { height: 52px; }
.proj-side h1 { font-size: clamp(30px, 3.2vw, 48px); font-weight: 300; letter-spacing: -.04em; line-height: 1.06; }
.proj-side p { font-size: 14.5px; line-height: 1.62; color: var(--ink); }
.proj-side p.sub { color: var(--gray); font-size: 13px; }
.facts { margin-top: 8px; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.facts dt { color: var(--gray); }
.facts dd { color: var(--ink); }
.pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--gray); }
.pn a { transition: color .25s; }
.pn a:hover { color: var(--ink); }

.proj-main { min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.sect-h { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); font-weight: 400; margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 16vw, 230px), 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 12%; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; text-align: left; transition: background .35s; animation: rise .8s var(--ease) both; animation-delay: calc(min(var(--i), 18) * 35ms + .15s); }
.tile img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease), filter .4s; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .1)); }
.tile span { position: absolute; left: 12px; bottom: 10px; right: 12px; font-size: 11.5px; color: var(--gray); opacity: 0; translate: 0 6px; transition: opacity .3s, translate .4s var(--ease); }
.tile:hover { background: var(--tile); }
.tile:hover img { transform: scale(1.08) rotate(-1.5deg); filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .16)); }
.tile:hover span, .tile:focus-visible span { opacity: 1; translate: 0 0; }
.tile.photo { padding: 0; }
.tile.photo img { object-fit: cover; filter: none; }
.tile.photo:hover img { transform: scale(1.04); filter: none; }
.vtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(170px, 17vw, 240px), 1fr)); gap: 14px; align-items: start; }
.vt { position: relative; display: block; width: 100%; border-radius: 6px; overflow: hidden; background: var(--tile); animation: rise .8s var(--ease) both; animation-delay: calc(var(--i) * 60ms + .15s); }
.vt.wide { grid-column: span 2; }
.vt img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vt:hover img { transform: scale(1.05); }
.vt .play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); transition: transform .4s var(--ease); }
.vt .play::after { left: 21px; top: 16px; }
.vt:hover .play { transform: scale(1.12); }
.vt em { position: absolute; right: 8px; bottom: 8px; font-style: normal; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.vt span { position: absolute; left: 10px; bottom: 9px; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); }
.site-btn { align-self: flex-start; margin-top: 4px; }
.bwin { display: flex; flex-direction: column; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: #fff; animation: rise .9s .1s var(--ease) both; }
.bbar { flex: none; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 10px 0 16px; background: #fafafa; border-bottom: 1px solid var(--line); }
.bbar .dots { display: flex; gap: 7px; margin-right: 4px; }
.bbar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(49, 49, 52, .18); }
.burl { flex: 1; min-width: 0; height: 30px; display: flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 17px; color: var(--gray); transition: background .25s, color .25s; }
.bb:hover { background: rgba(49, 49, 52, .07); color: var(--ink); }
.bdev { flex: none; display: flex; border: 1px solid var(--line2); border-radius: 999px; padding: 2px; background: #fff; }
.bdev button { padding: 4px 12px; font-size: 12px; border-radius: 999px; color: var(--gray); transition: background .3s, color .3s; }
.bdev button.on { background: var(--ink); color: #fff; }
.screen { position: relative; height: min(76vh, 820px); min-height: 520px; background: #ececee; overflow: hidden; }
.screen .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .5s; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; opacity: 0; transition: opacity .6s, inset .5s var(--ease), width .5s var(--ease), border-radius .5s var(--ease), box-shadow .5s; }
.bwin.live .screen iframe { opacity: 1; }
.bwin[data-dev="phone"] .screen .shot { opacity: 0; }
.bwin[data-dev="phone"] .screen iframe { inset: 22px auto 22px 50%; width: 390px; max-width: calc(100% - 40px); height: calc(100% - 44px); translate: -50% 0; border-radius: 28px; box-shadow: 0 0 0 8px #2c2c2e, 0 30px 70px rgba(0, 0, 0, .28); }
.bnote { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; padding: 14px 18px; border: 1px solid var(--line2); border-radius: 12px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); font-size: 13px; line-height: 1.5; }
.bnote .btn { height: 40px; }
.bwin.noembed .screen { height: auto; min-height: 0; aspect-ratio: 8 / 5; }
.bwin.full { position: fixed; inset: 0; z-index: 75; border: 0; border-radius: 0; animation: none; }
.bwin.full .screen { height: auto; min-height: 0; flex: 1; }
body.bw-full { overflow: hidden; }
body.bw-full .chrome { visibility: hidden; }
@media (max-width: 760px) { .bdev { display: none; } .screen { min-height: 460px; height: 68vh; } }
.browser { display: block; border: 1px solid var(--line2); border-radius: 12px; overflow: hidden; background: #fff; transition: translate .6s var(--ease), box-shadow .6s; animation: rise .9s .1s var(--ease) both; }
.browser:hover { translate: 0 -5px; box-shadow: 0 30px 70px rgba(0, 0, 0, .13); }
.browser .bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #fafafa; border-bottom: 1px solid var(--line); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(49, 49, 52, .18); }
.browser .bar span { margin-left: 14px; font-size: 12.5px; color: var(--gray); }
.browser img { width: 100%; height: auto; transition: scale .9s var(--ease); }
.browser:hover img { scale: 1.015; }
.brief { border-top: 1px solid var(--line); }
.brow { display: grid; grid-template-columns: minmax(130px, 220px) 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.6; }
.brow h3 { font-weight: 400; font-size: 13px; color: var(--gray); }
.brow ul { list-style: none; display: grid; gap: 8px; }
.brow li { padding-left: 18px; position: relative; }
.brow li::before { content: "—"; position: absolute; left: 0; color: var(--gray); }
.brow p + ul { margin-top: 10px; }
.brow b { font-weight: 500; }
.statgrid { columns: 3 190px; column-gap: 12px; }
.statgrid button { display: block; width: 100%; margin-bottom: 12px; break-inside: avoid; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--tile); transition: border-color .3s; }
.statgrid button:hover { border-color: var(--ink); }
.statgrid img { width: 100%; height: auto; }

@media (max-width: 900px) {
  .proj { grid-template-columns: 1fr; }
  .proj-side { position: static; }
  .brow { grid-template-columns: 1fr; gap: 8px; }
  .vt.wide { grid-column: span 1; }
}

/* ================= ОБО МНЕ / КОНТАКТЫ ================= */
#v-about, #v-contacts { padding: calc(var(--head) + 20px) var(--pad) 90px; min-height: 100vh; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 90px); align-items: center; max-width: 1400px; margin: 0 auto; min-height: calc(100vh - var(--head) - 110px); }
.duo-media video { width: 100%; max-width: min(480px, 52.5vh); aspect-ratio: 1; object-fit: cover; margin: 0 auto; mix-blend-mode: multiply; }
.duo-text { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.duo-text > * { animation: rise .9s var(--ease) both; }
.duo-text > *:nth-child(2) { animation-delay: .08s; } .duo-text > *:nth-child(3) { animation-delay: .16s; }
.duo-text > *:nth-child(4) { animation-delay: .24s; } .duo-text > *:nth-child(5) { animation-delay: .32s; } .duo-text > *:nth-child(6) { animation-delay: .4s; }
.lead { font-size: clamp(32px, 4vw, 62px); font-weight: 300; letter-spacing: -.045em; line-height: 1.04; }
.gray { color: var(--gray); white-space: nowrap; }
.duo-text p { font-size: 15.5px; line-height: 1.65; }
.duo-text p.sub { color: var(--gray); font-size: 13px; }
.skills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { font-size: 12.5px; padding: 7px 14px; border: 1px solid var(--line2); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.skills li:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.nums div { padding: 16px 12px 4px 0; display: flex; flex-direction: column; gap: 6px; }
.nums b { font-weight: 300; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nums span { font-size: 11.5px; line-height: 1.4; color: var(--gray); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; font-size: 14px; border: 1px solid var(--ink); border-radius: 999px; transition: background .3s, color .3s, translate .4s var(--ease); }
.btn:hover { background: var(--ink); color: #fff; translate: 0 -2px; }
.btn.solid { background: var(--ink); color: #fff; }
.btn.solid:hover { background: #fff; color: var(--ink); }
.status.inline { margin-left: 6px; }

.clist { list-style: none; border-top: 1px solid var(--line); }
.clist li { position: relative; border-bottom: 1px solid var(--line); display: flex; align-items: stretch; }
.crow { position: relative; flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; text-align: left; padding: 18px 0; overflow: hidden; }
.crow small { grid-column: 1; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.crow span { grid-column: 1; font-size: clamp(19px, 2.4vw, 32px); letter-spacing: -.03em; transition: translate .5s var(--ease); overflow-wrap: anywhere; }
.crow em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-size: 12px; color: var(--gray); opacity: 0; translate: 10px 0; transition: opacity .3s, translate .45s var(--ease); padding-right: 8px; }
.crow:hover span { translate: 12px 0; }
.crow:hover em { opacity: 1; translate: 0 0; }
.crow.done em { opacity: 1; translate: 0 0; color: var(--ok); }
.go { flex: none; width: 56px; display: grid; place-items: center; font-size: 22px; color: var(--gray); transition: color .25s, translate .4s var(--ease); }
.go:hover { color: var(--ink); translate: 3px -3px; }

@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .duo-media video { max-width: min(58.5vw, 315px); }
  .nums { grid-template-columns: repeat(3, 1fr); }
  .nums b { font-size: clamp(22px, 7vw, 30px); }
  .crow em { display: none; }
}

/* ================= лайтбокс ================= */
#lb { position: fixed; inset: 0; z-index: 80; background: rgba(255, 255, 255, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; display: grid; grid-template-rows: 1fr auto; }
#lb.on { opacity: 1; visibility: visible; transition: opacity .35s; }
.lb-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 70px 70px 10px; touch-action: pan-y; }
.lb-stage > * { max-width: 100%; max-height: 100%; animation: lb-in .55s var(--ease) both; }
.lb-stage img { object-fit: contain; max-height: calc(100vh - 220px); max-width: min(90vw, 980px); }
.lb-stage img.render { filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .16)); }
.lb-stage img.photo, .lb-stage video { border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .14); }
.lb-stage video { max-height: calc(100vh - 220px); max-width: min(92vw, 1100px); background: #000; }
@keyframes lb-in { from { opacity: 0; translate: calc(var(--dir, 1) * 28px) 0; } }
.lb-x { position: absolute; top: 14px; right: var(--pad); z-index: 3; width: 44px; height: 44px; font-size: 30px; font-weight: 300; border-radius: 50%; transition: background .25s; }
.lb-x:hover { background: rgba(49, 49, 52, .07); }
.lb-nav { position: absolute; top: 50%; translate: 0 -60%; z-index: 3; width: 52px; height: 52px; font-size: 34px; border-radius: 50%; color: var(--gray); transition: background .25s, color .25s; }
.lb-nav:hover { background: rgba(49, 49, 52, .07); color: var(--ink); }
.lb-nav.prev { left: calc(var(--pad) - 6px); } .lb-nav.next { right: calc(var(--pad) - 6px); }
.lb-nav[hidden] { display: none; }
.lb-cap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 10px var(--pad) 26px; font-size: 13px; }
.lb-title { font-weight: 400; }
.lb-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.lb-tabs button { padding: 6px 14px; border-radius: 999px; font-size: 12.5px; color: var(--gray); border: 1px solid transparent; transition: .25s; }
.lb-tabs button:hover { color: var(--ink); }
.lb-tabs button.on { color: var(--ink); border-color: var(--line2); }
.lb-count { text-align: right; color: var(--gray); }
@media (max-width: 700px) {
  .lb-stage { padding: 64px 12px 6px; }
  .lb-nav { top: auto; bottom: 90px; translate: 0 0; }
  .lb-cap { grid-template-columns: 1fr; text-align: center; gap: 8px; padding-bottom: 20px; }
  .lb-count { text-align: center; }
}

/* ================= палитра ================= */
#pal { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 13vh 16px 0; background: rgba(255, 255, 255, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
#pal.on { opacity: 1; visibility: visible; transition: opacity .25s; }
.pal-box { width: min(600px, 100%); background: #fff; border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 40px 90px rgba(0, 0, 0, .14); overflow: hidden; translate: 0 10px; transition: translate .45s var(--ease); }
#pal.on .pal-box { translate: 0 0; }
#palIn { width: 100%; padding: 20px 22px; font: inherit; font-size: 16px; border: 0; outline: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); }
#palIn::placeholder { color: var(--gray); }
#palList { list-style: none; max-height: min(52vh, 420px); overflow-y: auto; padding: 8px; }
#palList li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 10px; font-size: 14px; cursor: pointer; }
#palList li small { font-size: 11.5px; color: var(--gray); flex: none; }
#palList li.sel { background: rgba(49, 49, 52, .07); }
#palList .none { color: var(--gray); cursor: default; }
.pal-foot { display: flex; gap: 18px; padding: 11px 22px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--gray); }

/* ================= мелочи ================= */
#toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; z-index: 100; padding: 11px 20px; font-size: 13px; color: #fff; background: var(--ink); border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .3s, translate .5s var(--ease); max-width: 90vw; text-align: center; }
#toast.on { opacity: 1; translate: -50% 0; }
#curtag { position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none; padding: 6px 12px; font-size: 12px; white-space: nowrap; color: #fff; background: var(--ink); border-radius: 999px; opacity: 0; scale: .8; transition: opacity .2s, scale .3s var(--ease); will-change: transform; }
#curtag.on { opacity: 1; scale: 1; }
body.dragging #curtag { opacity: 0; }
@media (hover: none), (pointer: coarse) { #curtag { display: none; } }

@media (max-width: 760px) {
  .kbtn .k-lbl { display: inline; }
  .kbtn kbd { display: none; }
  .kbtn { padding: 0 14px; }
  .topnav { display: none; }
  #toast { bottom: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* ---------- доступность: скрытый h1, ссылка «к содержимому» ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -64px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: #1c1c20; color: #fff; font-size: 14px; transition: top .2s; }
.skip-link:focus { top: 12px; }
