/* «Что внутри Среды» (04.11.2026): живые окошки на главной + сторис механик + страницы /baddi, /dueli, /pomodoro, /rubilovo */
.peek { position: fixed; z-index: 11; left: var(--gut, 72px); top: 22px; display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.peek a { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 70px; color: #FBF6EC; font: 600 13px/1.1 system-ui, -apple-system, sans-serif; text-shadow: 0 1px 6px rgba(0,0,0,.3); text-decoration: none; }
.pk-ring { display: block; position: relative; width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, #F4511E, #FF9C1A, #F2C230, #F4511E); animation: pkSpin 6s linear infinite; box-shadow: 0 6px 18px rgba(0,0,0,.25); transition: transform .35s cubic-bezier(.2,1.25,.35,1); }
.peek a:hover .pk-ring, .peek a:focus-visible .pk-ring { transform: scale(1.1) rotate(-4deg); }
.peek a.seen .pk-ring { background: rgba(251,246,236,.5); animation: none; }
.pk-eye { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #1B1311; overflow: hidden; background: #FBF6EC; animation: pkSpin 6s linear infinite reverse; }
.peek a.seen .pk-eye { animation: none; }
.pk-eye svg { width: 100%; height: 100%; display: block; }
@keyframes pkSpin { to { rotate: 360deg; } }
/* мини-анимации в окошках */
.pk-fl { animation: pkFl 1.6s cubic-bezier(.2,1.25,.35,1) infinite; } .pk-fr { animation: pkFr 1.6s cubic-bezier(.2,1.25,.35,1) infinite; }
@keyframes pkFl { 0%,100% { transform: translateX(-7px); } 45%,60% { transform: translateX(2px); } }
@keyframes pkFr { 0%,100% { transform: translateX(7px); } 45%,60% { transform: translateX(-2px); } }
.pk-spk { transform-origin: 32px 32px; animation: pkSpk 1.6s ease-out infinite; }
@keyframes pkSpk { 0%,40% { opacity: 0; transform: scale(.3); } 52% { opacity: 1; transform: scale(1.1); } 75%,100% { opacity: 0; transform: scale(1.4); } }
.pk-bz1 { animation: pkBz 1.2s infinite; } .pk-bz2 { animation: pkBz 1.2s .6s infinite; }
@keyframes pkBz { 0%,30%,100% { transform: translateY(0); } 12% { transform: translateY(3px); } }
.pk-zap { animation: pkZap 1.2s steps(1) infinite; } @keyframes pkZap { 0%,49% { opacity: 1; } 50%,100% { opacity: .15; } }
.pk-arc { stroke-dasharray: 126; animation: pkArc 4s linear infinite; } @keyframes pkArc { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 126; } }
.pk-axe { transform-origin: 44px 46px; animation: pkAxe 1s cubic-bezier(.5,0,.2,1) infinite; }
@keyframes pkAxe { 0%,100% { transform: rotate(-38deg); } 40% { transform: rotate(8deg); } 55% { transform: rotate(4deg); } }
.pk-chip { animation: pkChip 1s ease-out infinite; } .pk-chip.b { animation-name: pkChip2; }
@keyframes pkChip { 0%,38% { opacity: 0; transform: none; } 45% { opacity: 1; } 100% { opacity: 0; transform: translate(-10px,-12px) rotate(-80deg); } }
@keyframes pkChip2 { 0%,38% { opacity: 0; transform: none; } 45% { opacity: 1; } 100% { opacity: 0; transform: translate(-6px,8px) rotate(60deg); } }
body.st-open .peek, body.st-open .dots { visibility: hidden; }

/* сторис */
.vs { --bg1: #E86A4E; --bg2: #C93C30; --fg: #FBF6EC; --em: #F2C230; --btn: #1C1C1C; --btnfg: #FBF6EC;
  position: fixed; inset: 0; z-index: 60; background: radial-gradient(120% 90% at 30% 20%, var(--bg1), var(--bg2) 70%); color: var(--fg); overflow: hidden;
  font: 400 16px/1.5 system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .7s cubic-bezier(.6,0,.2,1); }
.vs.on { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); }
.vs.page { position: relative; height: 100vh; height: 100svh; min-height: 560px; clip-path: none; }
.vs[data-k="dueli"] { --bg1: #3A302B; --bg2: #1C1C1C; --btn: #D9483B; }
.vs[data-k="pomodoro"] { --bg1: #F6B65A; --bg2: #E58A2A; --fg: #1C1C1C; --em: #B8352B; }
.vs[data-k="rubilovo"] { --bg1: #F6D45A; --bg2: #EDB52A; --fg: #1C1C1C; --em: #B8352B; }
.vs-bars { position: absolute; z-index: 3; left: var(--gut, 72px); right: var(--gut, 72px); top: 22px; display: flex; gap: 6px; }
.vs-bars i { flex: 1; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 30%, transparent); overflow: hidden; }
.vs-bars i b { display: block; height: 100%; width: 0; background: var(--fg); }
.vs-bars i.done b { width: 100%; }
.vs-bars i.now b { animation: vsBar var(--t, 9s) linear forwards; }
.vs.hold .vs-bars i.now b { animation-play-state: paused; }
@keyframes vsBar { to { width: 100%; } }
.vs-x { position: absolute; z-index: 4; right: var(--gut, 72px); top: 40px; width: 42px; height: 42px; border-radius: 50%; background: rgba(28,20,17,.25); color: var(--fg); display: grid; place-items: center; font-size: 24px; line-height: 1; text-decoration: none; border: 0; cursor: pointer; }
.vs-home { position: absolute; z-index: 4; left: var(--gut, 72px); top: 40px; height: 26px; }
.vs-sl { position: absolute; inset: 0; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 4vw; padding: 70px var(--gut, 72px) 40px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.vs-sl.on { opacity: 1; visibility: visible; }
.vs-pic { justify-self: center; position: relative; width: min(44vw, 600px); }
.vs-pic img { width: auto; max-width: 100%; margin: 0 auto; max-height: 70vh; object-fit: contain; display: block; filter: drop-shadow(0 18px 24px rgba(0,0,0,.25)); }
.vs-sl.on .vs-pic img { animation: vsIn .8s cubic-bezier(.2,1.25,.35,1) .15s both; }
.vs-pic svg { position: absolute; inset: -10% -8%; width: 116%; height: 120%; pointer-events: none; color: var(--fg); opacity: .75; }
.vs-pic svg path { stroke-dasharray: 400; stroke-dashoffset: 400; }
.vs-sl.on .vs-pic svg path { animation: vsDraw 1.2s ease-out .5s forwards; }
@keyframes vsDraw { to { stroke-dashoffset: 0; } }
.vs-tx > * { opacity: 0; }
.vs-sl.on .vs-tx > * { animation: vsIn .6s cubic-bezier(.2,1.25,.35,1) both; } .vs-sl.on .vs-tx > :nth-child(2) { animation-delay: .12s; } .vs-sl.on .vs-tx > :nth-child(3) { animation-delay: .24s; }
@keyframes vsIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.vs h2, .vs h1 { font: 800 clamp(34px, 4vw, 58px)/1.05 system-ui, -apple-system, sans-serif; margin: 0 0 18px; letter-spacing: -.02em; }
.vs h2 em, .vs h1 em { font-style: normal; color: var(--em); }
.vs p { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; max-width: 32em; margin: 0 0 28px; opacity: .92; }
.vs-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.vs-go { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; background: var(--btn); color: var(--btnfg); font-weight: 600; text-decoration: none; }
.vs-nx { color: var(--fg); opacity: .85; text-decoration: underline; text-underline-offset: 4px; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.vs-down { position: absolute; z-index: 3; left: 50%; bottom: 14px; translate: -50% 0; color: var(--fg); opacity: .7; font-size: 14px; text-decoration: none; }
@media (max-width: 760px) {
  .peek { left: auto; right: 12px; top: 12px; gap: 6px; } .peek a { width: 50px; font-size: 10px; gap: 4px; letter-spacing: -.01em; }
  .pk-ring { width: 44px; height: 44px; padding: 2.5px; } .pk-eye { border-width: 2px; }
  .vs-bars { left: 16px; right: 16px; top: 14px; } .vs-x { top: 30px; right: 14px; } .vs-home { left: 18px; top: 34px; height: 22px; }
  .vs-sl { grid-template-columns: 1fr; align-content: center; gap: 8px; padding: 76px 22px 36px; }
  .vs-pic { width: 84vw; max-width: 420px; } .vs-pic img { max-height: 40vh; }
  .vs h2, .vs h1 { font-size: 31px; margin-bottom: 12px; } .vs p { font-size: 15.5px; margin-bottom: 20px; }
  .vs-go { width: 100%; justify-content: center; } .vs-act { gap: 12px; } .vs-nx { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .pk-ring, .pk-eye, .pk-eye * { animation: none !important; } .vs { transition: none; } }

/* текст страницы механики (читает и человек, и поисковик) */
.vn-art { background: #FBF6EC; color: #1C1C1C; padding: 64px var(--gut, 72px) 72px; font: 400 17px/1.65 system-ui, -apple-system, sans-serif; }
.vn-art .in { max-width: 760px; }
.vn-art h2 { font: 800 28px/1.2 system-ui, -apple-system, sans-serif; margin: 40px 0 10px; letter-spacing: -.01em; }
.vn-art h2:first-child { margin-top: 0; }
.vn-art p { margin: 0 0 14px; }
.vn-art .vn-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 8px; }
.vn-art .vn-cta a { display: inline-flex; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid #1C1C1C; color: #1C1C1C; }
.vn-art .vn-cta a:first-child { background: #D9483B; border-color: #D9483B; color: #FBF6EC; }
.vn-more { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.vn-more a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: #F1E8D6; color: #1C1C1C; text-decoration: none; font-weight: 600; font-size: 15px; }
.vn-crumbs { font-size: 14px; margin: 0 0 18px; opacity: .7; } .vn-crumbs a { color: inherit; }
@media (max-width: 760px) { .vn-art { padding: 40px 20px 56px; font-size: 16px; } .vn-art h2 { font-size: 23px; } }
