@font-face {
  font-family: 'TikTok Sans';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/tiktok-sans-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'TikTok Sans';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/tiktok-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'TikTok Sans';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/tiktok-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'TikTok Sans';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/tiktok-sans-latin.woff2) format('woff2');
  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 {
  color-scheme: dark;
  --bg: #121212;
  --text: #fff;
  --muted: #bebec4;
  --accent: #25f4ee;
  --reaction: #fe2c55;
  --line: #ffffff29;
  --header: 64px;
  --footer: 44px;
  --inset: clamp(10px, 2.3dvh, 24px);
  --frame-height: calc(100dvh - var(--header) - var(--footer) - 2 * var(--inset));
  font-family: 'TikTok Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.site { width: min(100%, calc(var(--frame-height) * 9 / 16)); margin: var(--inset) auto; }
.top, .bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top { height: var(--header); padding-bottom: 10px; }
.bottom { height: var(--footer); }
.brand { display: flex; align-items: center; gap: 9px; font-size: .875rem; letter-spacing: -.015em; line-height: 1.08; font-weight: 700; }
.brand strong { display: block; color: var(--accent); }
.brand-logo { display: block; width: clamp(44px, 12vw, 64px); height: auto; }
.top nav { display: none; }
.outline, .accent { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff08; font-weight: 700; }
.outline:hover { border-color: var(--accent); }
.top .outline { padding: 8px 12px; font-size: .875rem; }
.accent { background: var(--accent); color: #101010; border-color: transparent; }
.accent:hover { background: #8afaf6; }
.stage { position: relative; height: var(--frame-height); overflow: hidden; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); background: #080808; }
.feed { height: 100%; position: relative; overflow: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.feed:focus-visible { outline-offset: -3px; }
.feed::-webkit-scrollbar { display: none; }
.scene {
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px 80px 24px 18px;
  overflow: hidden;
  background: #080808;
}
.visual, .visual::after, .visual video { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual { z-index: -1; pointer-events: none; }
.hero .visual { background: url('/poster.webp') 69% center / cover; }
.visual::after { content: ''; background: linear-gradient(to top, #080808d9, transparent 35%); }
.hero .visual::after { background: linear-gradient(to top, #080808 0%, #080808c9 35%, transparent 74%); }
.visual video { object-fit: contain; }
.video-error video { display: none; }
.copy, .caption { min-width: 0; }
.copy h1 { font-size: clamp(1.65rem, 6dvh, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 0; }
.copy em { font-style: normal; color: var(--accent); }
.description { margin: 12px 0; font-size: 1rem; line-height: 1.35; color: #e7e7ea; }
.caption h1, .caption h2 { margin: 0; font-size: clamp(1.125rem, 3.6dvh, 1.75rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; text-shadow: 0 1px 8px #000; }
.caption p, .feed-status { margin: 6px 0 0; color: var(--muted); font-size: .875rem; }
.actions { position: absolute; z-index: 2; right: 10px; bottom: 23px; display: grid; gap: 14px; justify-items: center; }
.round-button { display: grid; justify-items: center; gap: 4px; border: 0; background: none; padding: 0; font-size: .75rem; font-weight: 600; line-height: 1.15; text-shadow: 0 1px 6px black; }
.round-button > span:first-child { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #18181bcb; }
.round-button:hover > span:first-child { border-color: var(--accent); }
#like[aria-pressed=true] svg { fill: var(--reaction); stroke: var(--reaction); }
.positions { display: flex; gap: 9px; overflow: auto; max-width: 52%; scrollbar-width: thin; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.positions a { flex: none; min-width: 22px; padding: 4px 1px; border-top: 2px solid var(--line); }
.positions a[aria-current] { border-color: var(--accent); color: var(--accent); }
.next { display: flex; align-items: center; gap: 5px; font-size: .875rem; color: var(--muted); }
.next svg { width: 16px; }
.next.back svg { transform: rotate(180deg); }
dialog{width:min(100% - 24px,560px);max-height:calc(100dvh - 24px);padding:25px;border:1px solid var(--line);border-radius:14px;background:#222225;color:var(--text)}
dialog::backdrop{background:#000a}dialog h2{margin:8px 34px 12px 0;font-size:1.625rem;font-weight:750;letter-spacing:-.025em}dialog p{color:var(--muted);line-height:1.45}dialog p:empty{display:none}
.close-wrap{float:right}.close{border:1px solid var(--line);background:none;border-radius:50%;width:38px;height:38px;font-size:24px;line-height:1}
.sheet-handle{width:36px;height:3px;border-radius:2px;background:var(--line);margin:0 auto 16px}
.contacts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.channel{padding:10px 3px;display:grid;justify-items:center;gap:8px;background:#ffffff08;border:1px solid var(--line);border-radius:6px;color:inherit;font-size:.875rem;font-weight:600}.channel:disabled{opacity:.55}
.channel span{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#fff2}.telegram span{background:#12668c}.max span{background:#5346c5}.instagram span{background:#842f55}

@media (max-width: 600px) {
  :root { --inset: 0px; --header: 54px; --footer: 38px; }
  .site { width: 100%; }
  .top, .bottom { padding: 0 14px; }
  .stage { border-radius: 0; box-shadow: none; }
  #panel { margin: auto auto 0; width: 100%; border-radius: 14px 14px 0 0; }
}
@media (max-height: 680px) and (min-width: 601px) {
  :root { --header: 48px; --footer: 34px; }
  .scene { padding-left: 12px; }
  .copy h1 { font-size: clamp(1.35rem, 5dvh, 2.2rem); }
  .description { font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) {
  .feed { scroll-behavior: auto; }
}

#like-count { font-variant-numeric: tabular-nums; }
.like-status { position: absolute; z-index: 3; left: 12px; right: 80px; top: 10px; margin: 0; padding: 8px; background: #18181bed; border-radius: 8px; font-size: .875rem; }
.like-status:empty { display: none; }
