/* SAYVO — общие стили примеров. Анимации только transform / opacity / clip-path. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;min-height:100vh;overflow-x:hidden;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
img{display:block;max-width:100%}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* языки */
html[data-lang="ru"] [data-l="kz"],html[data-lang="kz"] [data-l="ru"]{display:none!important}

/* полоска «пример» */
.demo{position:relative;z-index:60;display:flex;align-items:center;justify-content:center;gap:.5em;height:28px;padding:0 12px;
  font:500 12px/1 system-ui,sans-serif;letter-spacing:.01em;background:#151413;color:#EDE7DD;white-space:nowrap}
.demo a{display:inline-flex;align-items:center;gap:.35em;min-height:44px;margin:-8px 0;padding:0 .4em;color:#F3D9A6;text-decoration:underline;text-underline-offset:3px}
.demo b{font-weight:600}
@media (max-width:420px){.demo .demo__more{display:none}}

/* нажатия */
.press{transition:transform .25s cubic-bezier(.2,.8,.2,1),opacity .25s,background-color .25s,color .25s,box-shadow .25s}
.press:hover{transform:translateY(-2px)}
.press:active{transform:translateY(0) scale(.97);transition-duration:.08s}

/* появление */
[data-reveal]{opacity:0;transform:translate3d(0,28px,0);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
[data-reveal].is-in{opacity:1;transform:none}
[data-reveal="2"]{transition-delay:.08s}[data-reveal="3"]{transition-delay:.16s}[data-reveal="4"]{transition-delay:.24s}

/* нижняя панель (телефон) */
.dock{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));z-index:55;display:none;gap:8px;
  transform:translate3d(0,140%,0);transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.dock.is-on{transform:none}
.dock>*{flex:1;min-height:52px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:14px;font-weight:600;font-size:15px}
@media (max-width:899px){.dock{display:flex}body{padding-bottom:0}}

/* карусели */
.car{position:relative}
.car__track{display:flex;gap:var(--gap,16px);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.car__track::-webkit-scrollbar{display:none}
.car__track>*{scroll-snap-align:start;flex:0 0 auto}
.car__btn{position:absolute;top:50%;z-index:3;width:48px;height:48px;margin-top:-24px;border-radius:50%;display:grid;place-items:center;
  transition:opacity .3s,transform .25s}
.car__btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.car__btn--prev{left:6px}.car__btn--next{right:6px}
.car__btn[disabled]{opacity:0;pointer-events:none}
.car__btn:active{transform:scale(.92)}

/* меню (телефон) */
.menu{position:fixed;inset:0;z-index:70;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:90px 28px 40px;
  clip-path:inset(0 0 100% 0);transition:clip-path .55s cubic-bezier(.7,0,.2,1);pointer-events:none}
.menu.is-open{clip-path:inset(0 0 0 0);pointer-events:auto}
.menu a{display:flex;align-items:center;min-height:52px;font-size:28px}
.menu__close{position:absolute;top:14px;right:14px;width:48px;height:48px;display:grid;place-items:center;font-size:30px;line-height:1}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  [data-reveal]{opacity:1;transform:none}
}

/* ===== v2: общие компоненты ===== */
/* фото: плейсхолдер цвета + мягкое появление без прыжков */
.ph{position:relative;overflow:hidden;background:var(--ph,#ddd)}
.ph>img{display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .7s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
.ph>img.is-ld{opacity:1}
/* одометр: цифры прокручиваются */
.od{display:inline-flex;align-items:flex-start;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1}
.od__d{display:inline-block;height:1em;width:.6em;text-align:center;overflow:hidden}
.od__d>span{display:flex;flex-direction:column;transition:transform .8s cubic-bezier(.2,.8,.2,1)}
.od__d>span>i{display:block;height:1em;font-style:normal}
.od__s{display:inline-block;white-space:pre}
/* бегущая строка */
.mq{overflow:hidden;white-space:nowrap;-webkit-mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.mq__t{display:inline-flex;animation:mq var(--mq,38s) linear infinite}
.mq.is-off .mq__t{animation-play-state:paused}
@keyframes mq{to{transform:translate3d(-50%,0,0)}}
/* полоса доверия */
.trust{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.trust__i{display:flex;align-items:center;gap:12px;min-height:64px}
.trust__i svg{width:40px;height:40px;flex:none;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.trust__i b{display:block;font-weight:600;font-size:15px;line-height:1.2}
.trust__i small{display:block;font-size:12px;opacity:.65}
@media (max-width:899px){.trust{grid-template-columns:1fr 1fr;gap:8px 12px}.trust__i{min-height:56px;gap:10px}.trust__i svg{width:32px;height:32px}.trust__i b{font-size:14px}}
/* звёзды */
.stars{display:inline-flex;gap:2px;color:#E8B04B}
.stars svg{width:15px;height:15px;fill:currentColor}
/* до/после */
.ba{position:relative;overflow:hidden;touch-action:pan-y;cursor:ew-resize;user-select:none;-webkit-user-select:none}
.ba img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.ba__a{clip-path:inset(0 0 0 var(--x,50%))}
.ba__h{position:absolute;top:0;bottom:0;left:var(--x,50%);width:2px;margin-left:-1px;background:#fff;box-shadow:0 0 12px rgba(0,0,0,.3)}
.ba__h::after{content:"‹ ›";position:absolute;top:50%;left:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:#fff;color:#222;display:grid;place-items:center;font:600 20px/1 system-ui;letter-spacing:4px;box-shadow:0 8px 20px rgba(0,0,0,.25)}
.ba__l{position:absolute;top:14px;padding:6px 12px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:13px;font-weight:600}
.ba__l--b{left:14px}.ba__l--a{right:14px}
/* лайтбокс */
.lb{position:fixed;inset:0;z-index:90;display:flex;flex-direction:column;background:var(--lb-bg,rgba(12,11,10,.96));color:#fff;opacity:0;transition:opacity .35s ease;pointer-events:none}
.lb.is-open{opacity:1;pointer-events:auto}
.lb__stage{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:12px 64px;touch-action:pan-y}
.lb__stage img{max-width:100%;max-height:100%;object-fit:contain;border-radius:6px;opacity:0;transform:scale(.97);transition:opacity .4s,transform .5s cubic-bezier(.2,.8,.2,1)}
.lb__stage img.is-ld{opacity:1;transform:none}
@media (max-width:599px){.lb__stage{padding:12px 0}.lb__stage img{border-radius:0}}
.lb__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px clamp(16px,4vw,40px) calc(14px + env(safe-area-inset-bottom))}
.lb__cap b{display:block;font-size:18px;font-weight:600}
.lb__cap small{opacity:.7;font-size:13px}
.lb__x{position:absolute;top:12px;right:12px;z-index:2;width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:28px;line-height:1}
.lb__nav{position:absolute;top:50%;z-index:2;width:52px;height:52px;margin-top:-26px;border-radius:50%;background:rgba(255,255,255,.9);color:#111;display:grid;place-items:center}
.lb__nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.lb__nav--p{left:12px}.lb__nav--n{right:12px}
.lb__n{font-size:13px;opacity:.7;margin-right:auto;margin-left:14px}
@media (prefers-reduced-motion:reduce){.mq__t{animation:none}.lb{transition:none}}
