/* NOVACODE portfolio. Plain CSS, no framework. */

@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("fonts/onest-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #1C1A18;
  --raised: #262320;
  --raised-2: #2F2B27;
  --line: #36312C;
  --ink: #F0E9DD;
  --ink-soft: #A89F92;
  --gold: #C9A25B;
  --gold-hi: #DDB977;
  --on-gold: #1E1A15;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --text: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--gold); color: var(--on-gold); font-weight: 600; text-decoration: none; border-radius: 6px; }
.skip:focus { top: 12px; }

/* light that follows the pointer */
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--gx, 78%) var(--gy, 18%), rgba(201, 162, 91, .10), transparent 65%); }
main, .foot, .top { position: relative; z-index: 1; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; background: var(--gold); color: var(--on-gold); font: 600 16px/1 var(--text); border: 0; border-radius: 10px; cursor: pointer; text-decoration: none; transition: background-color .15s, transform .15s var(--ease); }
.btn:hover { background: var(--gold-hi); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; }
.link { font-weight: 500; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; transition: background-size .3s var(--ease), color .15s; }
.link:hover { color: var(--gold-hi); background-size: 40% 2px; }
.chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s var(--ease); }
.chip:hover { border-color: var(--ink-soft); transform: translateY(-2px); }
.chip--gold { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.chip--gold:hover { background: var(--gold-hi); }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(28, 26, 24, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); height: 68px; display: flex; align-items: center; gap: 28px; }
.mark { font: 700 17px/1 var(--display); text-decoration: none; margin-right: auto; }
.mark span { color: var(--gold); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav .nav__tg { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.lang button { font: 600 13px/1 var(--text); color: var(--ink-soft); background: none; border: 0; padding: 7px 9px; border-radius: 6px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.burger__lines { position: relative; width: 22px; height: 2px; background: var(--ink); transition: background-color .2s; }
.burger__lines::before, .burger__lines::after { content: ""; position: absolute; right: 0; width: 22px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), width .25s; }
.burger__lines::before { top: -7px; }
.burger__lines::after { top: 7px; width: 14px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { width: 22px; transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--pad) clamp(80px, 10vw, 140px); min-height: calc(100svh - 68px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__name { font-size: clamp(60px, 10.5vw, 164px); line-height: .9; letter-spacing: -0.045em; margin-left: -0.05em; }
.name { display: inline-block; white-space: nowrap; touch-action: pan-y; }
.name .ch { display: inline-block; font-weight: var(--w, 800); color: color-mix(in srgb, var(--gold) calc(var(--h, 0) * 100%), var(--ink)); transition: font-weight .35s var(--ease), color .35s; }
.hero__line { margin-top: clamp(22px, 3vw, 36px); max-width: 26ch; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; color: var(--ink-soft); }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; }
.hero__demo { justify-self: end; }

/* work */
.work { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(100px, 12vw, 170px); }
.work__title { font-size: clamp(56px, 10vw, 150px); margin-bottom: clamp(28px, 4vw, 56px); }
.work__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.plist { border-top: 1px solid var(--line); }
.pitem__btn { position: relative; display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 20px 0 18px; cursor: pointer; }
.pitem__btn::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 3px; background: var(--gold); transform: translateY(-50%); transition: width .35s var(--ease); }
.pitem__name { display: block; font: 600 clamp(24px, 2.7vw, 38px)/1.1 var(--display); letter-spacing: -0.025em; color: var(--ink-soft); transition: color .25s, transform .35s var(--ease); }
.pitem__kind { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-soft); opacity: .75; transition: transform .35s var(--ease); }
.pitem__btn:hover .pitem__name { color: var(--ink); }
.pitem__btn { transition: padding-left .35s var(--ease); }
.pitem__btn[aria-expanded="true"] { padding-left: 44px; }
.pitem__btn[aria-expanded="true"] .pitem__name { color: var(--ink); }
.pitem__btn[aria-expanded="true"]::before { width: 30px; }

.stage { position: sticky; top: 96px; }
.stage__media { position: relative; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden; background: var(--raised); }
.stage__media > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.stage.is-in .stage__media { animation: mediaIn .55s var(--ease) both; }
.stage.is-in .stage__info > * { animation: textIn .5s var(--ease) both; }
.stage.is-in .stage__info > *:nth-child(2) { animation-delay: .06s; }
.stage.is-in .stage__info > *:nth-child(3) { animation-delay: .12s; }
@keyframes mediaIn { from { opacity: 0; transform: scale(.97); clip-path: inset(0 0 12% 0 round 16px); } }
@keyframes textIn { from { opacity: 0; transform: translateY(14px); } }

.cover { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(20px, 3vw, 36px); background: var(--raised); }
.cover b { font: 700 clamp(26px, 2.9vw, 42px)/1.05 var(--display); letter-spacing: -0.03em; max-width: 14ch; overflow-wrap: anywhere; }
.cover b, .cover span { position: relative; z-index: 1; }
.cover span { margin-top: 10px; color: var(--gold); font-weight: 500; }
.cover::before { content: ""; position: absolute; right: -8%; top: -18%; width: 60%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 40px var(--raised), 0 0 0 41px var(--line), 0 0 0 90px var(--raised), 0 0 0 91px var(--line); }

.fan { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; background: var(--raised); }
.fan figure { position: absolute; margin: 0; width: 30%; aspect-ratio: 390 / 844; border-radius: 18px; overflow: hidden; background: var(--raised-2); box-shadow: 0 0 0 1px var(--line), 0 30px 40px -20px rgba(0, 0, 0, .55); transition: transform .5s var(--ease); }
.fan figure img { width: 100%; height: 100%; object-fit: cover; }
.fan figure { background: var(--raised-2); }
.fan figure .cover { background: var(--raised-2); padding: 14px; }
.fan figure .cover b { font-size: clamp(14px, 1.4vw, 20px); color: var(--gold); }
.fan figure .cover::before { display: none; }
.fan figure:nth-child(1) { transform: translateX(-62%) rotate(-7deg); }
.fan figure:nth-child(2) { transform: translateY(-3%); z-index: 2; }
.fan figure:nth-child(3) { transform: translateX(62%) rotate(7deg); }
.stage__media:hover .fan figure:nth-child(1) { transform: translateX(-108%) rotate(-3deg); }
.stage__media:hover .fan figure:nth-child(2) { transform: translateY(-6%) scale(1.04); }
.stage__media:hover .fan figure:nth-child(3) { transform: translateX(108%) rotate(3deg); }

.stage__info { margin-top: 22px; }
.stage__line { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; max-width: 44ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding: 0; list-style: none; }
.tags li { font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.stage__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; }
.more { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px 0; cursor: pointer; font-weight: 500; color: var(--ink); }
.more i { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--ink-soft); }
.more i::before, .more i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.more i::after { transform: translate(-50%, -50%) rotate(90deg); }
.more[aria-expanded="true"] i::after { transform: translate(-50%, -50%) rotate(0); }
.details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.details.is-open { grid-template-rows: 1fr; }
.details > dl { overflow: hidden; margin: 0; }
.details dl > div { padding-top: 16px; }
.details dt { font-size: 13.5px; font-weight: 600; color: var(--gold); }
.details dd { margin: 2px 0 0; color: var(--ink-soft); max-width: 56ch; }

/* game */
.game { background: #0D0C0B; }
.game__dark { position: relative; height: min(92svh, 860px); min-height: 520px; overflow: hidden; cursor: crosshair; touch-action: pan-y; }
.game__scene { position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(circle var(--r, 200px) at var(--fx, 50%) var(--fy, 50%), #000 0%, rgba(0, 0, 0, .9) 35%, rgba(0, 0, 0, .06) 100%);
          mask-image: radial-gradient(circle var(--r, 200px) at var(--fx, 50%) var(--fy, 50%), #000 0%, rgba(0, 0, 0, .9) 35%, rgba(0, 0, 0, .06) 100%);
  animation: flicker 9s infinite; }
.game__svg, .game__scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes flicker { 0%, 91%, 100% { opacity: 1; } 92% { opacity: .35; } 93% { opacity: 1; } 95% { opacity: .55; } 96% { opacity: 1; } }
.game__text { position: absolute; left: 0; right: 0; bottom: 0; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) clamp(36px, 6vw, 72px); pointer-events: none; }
.game__studio { font-size: 14.5px; color: #8E8578; }
.game h2 { margin: 10px 0 18px; font-size: clamp(46px, 9vw, 132px); font-weight: 800; line-height: .9; letter-spacing: -0.045em; color: #EFE8DC; }
.game__line { font-size: clamp(18px, 1.7vw, 22px); color: #CFC7BA; max-width: 30ch; }
.game__hint { margin-top: 18px; font-size: 13.5px; color: var(--gold); transition: opacity .4s; }
.game__hint.is-gone { opacity: 0; }
.game__facts { list-style: none; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--pad) clamp(80px, 10vw, 130px); max-width: var(--max); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.game__facts li { border-top: 1px solid #2B2723; padding-top: 16px; }
.game__facts b { display: block; font: 600 18px/1.3 var(--display); letter-spacing: -0.02em; color: #EFE8DC; }
.game__facts span { display: block; margin-top: 4px; color: #8E8578; }

/* price */
.price { max-width: var(--max); margin: 0 auto; padding: clamp(100px, 12vw, 170px) var(--pad) 0; }
.price h2 { font-size: clamp(38px, 5.4vw, 76px); max-width: 12ch; }
.price__pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; max-width: 900px; }
.price__pick .chip[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.price__out { margin-top: clamp(28px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; }
.price__num { font: 800 clamp(60px, 10vw, 150px)/1 var(--display); letter-spacing: -0.05em; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price__num #priceFrom { font-size: .32em; letter-spacing: -0.01em; font-weight: 600; vertical-align: .9em; }
.price__num b { font-weight: 800; }
.price__meta { display: flex; flex-direction: column; gap: 4px; font-size: 17px; }
.price__meta span:first-child { font-weight: 600; }
.price__meta span:last-child { color: var(--ink-soft); max-width: 34ch; }
.steps { list-style: none; counter-reset: s; margin: clamp(70px, 9vw, 120px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: s; display: flex; flex-direction: column; padding-top: 16px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 700 15px/1 var(--display); color: var(--gold); margin-bottom: 14px; }
.steps b { font: 600 20px/1.2 var(--display); letter-spacing: -0.02em; }
.steps span { margin-top: 4px; color: var(--ink-soft); }

/* contact */
.contact { max-width: var(--max); margin: 0 auto; padding: clamp(110px, 13vw, 190px) var(--pad) clamp(70px, 9vw, 120px); }
.contact__lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); }
.contact__tg { display: inline-block; margin-top: 8px; font: 800 clamp(36px, 11vw, 176px)/1 var(--display); letter-spacing: -0.05em; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 92% / 0 6px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.contact__tg:hover { color: var(--gold); background-size: 100% 6px; }
.contact__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.form { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; padding: 24px; border-radius: 16px; background: var(--raised); animation: textIn .4s var(--ease); }
.form[hidden] { display: none; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.form__wide, .form .btn, .form__status { grid-column: 1 / -1; }
.form input, .form textarea { font: 400 16px/1.4 var(--text); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.form [aria-invalid="true"] { border-color: #D2785C; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.3em; font-size: 14.5px; color: var(--ink-soft); }
.form__status.is-ok { color: var(--gold-hi); }
.form__status.is-err { color: #E39A80; }

.foot { max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; transition: opacity .25s, transform .3s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* reveal on scroll */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-shown { opacity: 1; transform: none; }
/* Telegram window */
.tg {
  --tg-bg: #0E1621; --tg-head: #17212B; --tg-bubble: #182533; --tg-ink: #F5F5F5; --tg-dim: #7F91A4; --tg-blue: #5EB5F7;
  --app-bg: #F3EEE6; --app-ink: #1F1C18; --app-soft: #7A7166; --app-card: #FFFFFF; --app-line: #E4DCCF;
  position: relative; width: 344px; height: 648px;
  border-radius: 34px; padding: 9px; background: #0B0A09;
  box-shadow: 0 0 0 1px #45403A, 0 40px 60px -30px rgba(0, 0, 0, .6);
  font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Onest", sans-serif;
  overflow: hidden;
}
.tg__head {
  position: relative; z-index: 3; display: flex; align-items: center; gap: 10px;
  height: 58px; padding: 0 14px; background: var(--tg-head); color: var(--tg-ink); border-radius: 26px 26px 0 0;
}
.tg__back { width: 10px; height: 10px; border-left: 2px solid var(--tg-blue); border-bottom: 2px solid var(--tg-blue); transform: rotate(45deg); margin-right: 2px; }
.tg__ava { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #1F1C18; color: var(--gold); font: 700 10px/1 var(--display); }
.tg__who { display: flex; flex-direction: column; line-height: 1.2; }
.tg__who b { font-size: 15px; font-weight: 600; }
.tg__who i { font-style: normal; font-size: 12.5px; color: var(--tg-dim); }
.tg__cart { margin-left: auto; position: relative; color: var(--tg-ink); opacity: 0; transition: opacity .25s; }
.tg.is-app .tg__cart { opacity: 1; }
.tg__cart em { position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--gold); color: var(--on-gold); font: 700 10.5px/17px var(--text); text-align: center; font-style: normal; transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.tg__cart em.is-on { transform: scale(1); }

.tg__screen { position: absolute; inset: 67px 9px 9px; overflow: hidden; border-radius: 0 0 26px 26px; background: var(--tg-bg); }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; transition: transform .38s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.view.is-enter { transform: translateX(100%); }
.view.is-leave { transform: translateX(-30%); opacity: 0; }
.view.is-up { transform: translateY(100%); }

.tg__tap {
  position: absolute; z-index: 5; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; border: 2px solid var(--gold); background: rgba(201, 162, 91, .28);
  opacity: 0; pointer-events: none; transition: left .45s cubic-bezier(.4, 0, .2, 1), top .45s cubic-bezier(.4, 0, .2, 1), opacity .2s;
}
.tg__tap.is-press { animation: tap .32s ease-out; }
@keyframes tap { 50% { transform: scale(.72); background: rgba(201, 162, 91, .55); } }

/* chat view */
.chat { padding: 14px 12px; gap: 8px; justify-content: flex-end; color: var(--tg-ink); font-size: 14px; line-height: 1.4; }
.bubble { max-width: 86%; padding: 8px 11px 7px; border-radius: 14px 14px 14px 4px; background: var(--tg-bubble); }
.bubble--me { align-self: flex-end; background: #2B5278; border-radius: 14px 14px 4px 14px; }
.bubble small { display: block; text-align: right; font-size: 11px; color: var(--tg-dim); margin-top: 2px; }
.bubble--me small { color: #9FC3E6; }
.bubble b { font-weight: 600; }
.bubble.is-new { animation: pop .3s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.chat__open { margin-top: 4px; padding: 11px; border-radius: 10px; background: var(--tg-blue); color: #0E1621; font-weight: 600; text-align: center; font-size: 14px; }

/* mini app */
.app { background: var(--app-bg); color: var(--app-ink); font-size: 13px; }
.app__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px; }
.app__bar h5 { margin: 0; font: 700 17px/1.1 var(--display); letter-spacing: -0.02em; }
.app__bar span { color: var(--app-soft); font-size: 12px; }
.chips { display: flex; gap: 6px; padding: 0 14px 10px; }
.chips span { padding: 6px 10px; border-radius: 20px; background: var(--app-card); border: 1px solid var(--app-line); font-size: 12px; white-space: nowrap; }
.chips .on { background: var(--app-ink); color: var(--app-bg); border-color: var(--app-ink); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px; }
.item { background: var(--app-card); border-radius: 12px; padding: 6px 6px 9px; }
.item__pic { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; }
.item__pic svg { width: 62%; height: 62%; }
.item p { margin: 7px 3px 0; font-size: 12px; line-height: 1.25; }
.item b { display: block; margin: 3px 3px 0; font-size: 13px; }

.product__pic { margin: 0 14px; aspect-ratio: 1.05; border-radius: 14px; display: grid; place-items: center; background: #D9CDBA; }
.product__pic svg { width: 58%; height: 58%; }
.product__body { padding: 12px 14px 0; }
.product__body h6 { margin: 0; font-size: 16px; font-weight: 600; }
.product__body .price { font-size: 18px; font-weight: 700; margin-top: 2px; }
.sizes { display: flex; gap: 6px; margin-top: 10px; }
.sizes span { width: 40px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--app-line); background: var(--app-card); font-weight: 600; font-size: 12.5px; transition: background-color .2s, color .2s; }
.sizes .on { background: var(--app-ink); color: var(--app-bg); border-color: var(--app-ink); }
.app__cta { margin: auto 14px 14px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--app-ink); color: var(--app-bg); font-weight: 600; font-size: 14px; transition: background-color .25s, color .25s; }
.app__cta.is-done { background: var(--gold); color: var(--on-gold); }
.app__cta.is-muted { background: #CFC6B8; color: #6B6258; }

.cart-row { display: flex; gap: 10px; align-items: center; margin: 4px 14px 0; padding: 8px; background: var(--app-card); border-radius: 12px; }
.cart-row .item__pic { width: 64px; flex: none; background: #D9CDBA; }
.cart-row p { margin: 0; font-size: 13px; line-height: 1.3; }
.cart-row p span { color: var(--app-soft); font-size: 12px; }
.sum { display: flex; justify-content: space-between; margin: 12px 14px 0; padding-top: 10px; border-top: 1px dashed var(--app-line); font-size: 14px; }
.sum b { font-size: 15px; }
.app__hint { margin: 8px 14px 0; color: var(--app-soft); font-size: 12px; }

.field { margin: 8px 14px 0; }
.field label { display: block; font-size: 11.5px; color: var(--app-soft); margin-bottom: 4px; }
.field div { min-height: 36px; padding: 9px 10px; border-radius: 9px; background: var(--app-card); border: 1px solid var(--app-line); font-size: 13px; }
.field div.is-typing::after { content: ""; display: inline-block; width: 1px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--app-ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ship { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 14px 0; }
.ship span { padding: 9px 10px; border-radius: 9px; background: var(--app-card); border: 1px solid var(--app-line); font-size: 12.5px; line-height: 1.25; transition: border-color .2s, box-shadow .2s; }
.ship span small { display: block; color: var(--app-soft); font-size: 11px; }
.ship .on { border-color: var(--app-ink); box-shadow: inset 0 0 0 1px var(--app-ink); }

.demo-ctrl { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-left: 6px; font-size: 13.5px; color: var(--ink-soft); }
.demo-ctrl__btn { flex: none; background: none; border: 1px solid var(--line); color: var(--ink); font: 500 13.5px/1 var(--text); padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.demo-ctrl__btn:hover { border-color: var(--ink-soft); }
.demo-ctrl__note { max-width: 25ch; line-height: 1.35; }


/* responsive */
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 880px) {
  .burger { display: inline-flex; }
  .top__inner { gap: 14px; }
  .nav { position: fixed; left: 0; right: 0; top: 68px; height: calc(100svh - 68px); z-index: 40; flex-direction: column; align-items: flex-start; gap: 32px; padding: 32px var(--pad); background: var(--bg); visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s; }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity .25s, visibility 0s; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav ul li { transform: translateY(16px); opacity: 0; transition: transform .45s var(--ease), opacity .45s; }
  .nav.is-open ul li { transform: none; opacity: 1; }
  .nav.is-open ul li:nth-child(2) { transition-delay: .05s; }
  .nav.is-open ul li:nth-child(3) { transition-delay: .1s; }
  .nav.is-open ul li:nth-child(4) { transition-delay: .15s; }
  .nav ul a { font: 700 38px/1.25 var(--display); color: var(--ink); letter-spacing: -0.03em; }
  .nav .nav__tg { font-size: 18px; color: var(--gold); }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__demo { justify-self: center; }
  .work__body { display: block; }
  .stage { position: static; padding: 18px 0 26px; border-bottom: 1px solid var(--line); }
  .pitem__btn[aria-expanded="true"] { border-bottom-color: transparent; }
  .stage__media { aspect-ratio: 4 / 3; }
  .game__facts, .steps { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .hero__name { font-size: clamp(54px, 18.5vw, 96px); }
  .hero__actions .btn { width: 100%; }
  .tg { width: min(344px, calc(100vw - 40px)); height: 620px; }
  .demo-ctrl { padding-left: 0; }
  .pitem__btn[aria-expanded="true"] { padding-left: 38px; }
  .stage__media { aspect-ratio: 1 / 1; }
  .fan figure { width: 36%; }
  .stage__media:hover .fan figure:nth-child(1) { transform: translateX(-62%) rotate(-7deg); }
  .stage__media:hover .fan figure:nth-child(2) { transform: translateY(-3%); }
  .stage__media:hover .fan figure:nth-child(3) { transform: translateX(62%) rotate(7deg); }
  .game__dark { height: 88svh; }
  .form { grid-template-columns: 1fr; padding: 18px; }
  .form .btn { justify-self: stretch; }
  .lang button { padding: 7px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
