/* Apishko — чистый лист: стеклянный бар + одна фраза на чёрном. Ниже будет видео. */
:root{
  --bg:#000;--ink:#fff;--ink-2:#ffffffa3;--line:#ffffff1a;--blue:#4a8af7;
  --sans:"Inter",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  --serif:"Instrument Serif",Georgia,serif;
  --ease:cubic-bezier(.23,1,.32,1);
  color-scheme:dark;
}
*{box-sizing:border-box}
html{background:var(--bg);scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/24px var(--sans);-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:10px}
svg{flex:none}

/* ---------- бар: как у Keeper (чёрный, 72px, крупные белые ссылки) + раскладка top.co (ссылки справа, выпадашка, пилюля с иконкой) */
.hd{position:sticky;top:0;z-index:40;background:#000}
.hd::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--line);opacity:0;transition:opacity .3s}
.hd.scrolled::after{opacity:1}
.bar{max-width:1440px;height:72px;margin:0 auto;padding:0 80px;display:flex;align-items:center;gap:32px}
.hd-logo{display:inline-flex;margin-right:auto}
.hd-logo img{height:27px;width:auto;display:block;filter:invert(1)}
.hd-nav{display:flex;align-items:center;gap:32px}
.hd-nav>a,.dd-btn{display:inline-flex;align-items:center;gap:2px;height:36px;font-size:17px;font-weight:500;color:var(--ink);transition:opacity .2s}
.hd-nav>a:hover,.dd-btn:hover,.dd.open .dd-btn{opacity:.6}
.chev{width:22px;height:22px;transition:transform .3s var(--ease)}
.dd.open .chev{transform:rotate(180deg)}
.dd{position:relative}
.dd::after{content:"";position:absolute;left:-12px;right:-12px;top:100%;height:14px}
.dd:not(.open)::after{pointer-events:none}
/* выпадашка «Модели» — как «Our products» у top.co (размеры и анимация 1:1, цвета под тёмную тему) */
.dd-panel{position:absolute;left:0;top:calc(100% + 12px);z-index:5;width:320px;padding:6px;display:flex;flex-direction:column;border-radius:14px;
  background:#121316;box-shadow:0 0 0 1px #ffffff17,0 12px 32px -8px #000000b3;
  opacity:0;visibility:hidden;translate:0 -8px;scale:.98;filter:blur(4px);transform-origin:top left;
  transition:opacity .42s,translate .42s,scale .42s,filter .42s,visibility 0s .42s}
.dd.open .dd-panel{opacity:1;visibility:visible;translate:0 0;scale:1;filter:none;transition:opacity .42s,translate .42s,scale .42s,filter .42s,visibility 0s}
.dd-panel a{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border-radius:8px;color:#fff;transition:background-color .16s}
@media (hover:hover) and (pointer:fine){.dd-panel a:hover{background:#1f2126}}
.dd-panel a:focus-visible{background:#1f2126;outline:none}
.dd-wide{width:620px;display:grid;grid-template-columns:1fr 1fr;column-gap:2px}
.dd-ico{flex-shrink:0;width:40px;height:40px;display:grid;place-items:center}
.dd-ico img{width:32px;height:32px;object-fit:contain;filter:invert(1)}
.dd-txt{display:block}
.dd-panel b{display:block;font-size:16px;font-weight:500;line-height:24px}
.dd-panel small{display:block;font-size:14px;line-height:20px;color:#8b8a90}
/* ---------- фраза */
.hero{min-height:max(420px,calc(100svh - 72px - 200px));display:grid;place-items:center;padding:40px 24px 24px;text-align:center}
.phrase{margin:0;font-weight:500;font-size:clamp(52px,8.6vw,136px);line-height:1.1;letter-spacing:-.045em}
.phrase span{display:inline-block}
.p1{font-family:var(--sans)}
.p2{font-family:var(--sans)}

/* появление: каждая часть проявляется из размытия */
.js .phrase span{opacity:0;filter:blur(14px);transform:translateY(16px)}
.js .ready .phrase .p1{animation:in 1.4s var(--ease) forwards}
.js .ready .phrase .p2{animation:in 1.4s var(--ease) .35s forwards}
@keyframes in{to{opacity:1;filter:none;transform:none}}
.js .hd{opacity:0;transform:translateY(-10px)}
.js .hd.in{animation:in .9s var(--ease) .1s forwards}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .js .phrase span,.js .hd{opacity:1;filter:none;transform:none}
}

@media (max-width:1100px){
  .bar{padding:0 40px}
  .hd-nav{gap:24px}
}
@media (max-width:860px){
  .hd-nav{display:none}
  .bar{padding:0 16px 0 24px;gap:10px}
}
@media (max-width:480px){
  .bar{padding:0 16px 0 24px;height:64px}
  .hd-logo img{height:22px}
  .hd-logo{min-width:0}
  .hd-logo img{max-width:100%}
  .phrase{font-size:clamp(46px,15vw,68px);line-height:1}
  .phrase span{display:block}
}

/* ---------- модели + видео: левая часть в стиле продуктовых блоков top.co */
.models{padding:0;overflow-x:clip}
.m-wrap{max-width:1280px;margin:0 auto;padding:0 80px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:end;gap:0}
.m-text{position:relative;z-index:2;padding:40px 0;align-self:center}
.m-h{margin:0;font-weight:500;font-size:clamp(36px,4vw,48px);line-height:1.15;letter-spacing:-.02em}
.acc{position:relative;display:inline-block;font-family:"Playfair Display",Georgia,serif;font-style:italic;font-weight:500;font-size:1.08em;letter-spacing:-.01em;color:#4a8af7;padding:0 .05em}
.acc svg{position:absolute;left:-.04em;bottom:-.02em;width:calc(100% + .08em);height:.12em;overflow:visible}
.acc path{fill:none;stroke:#4a8af7;stroke-width:2.4;stroke-linecap:round;vector-effect:non-scaling-stroke;stroke-dasharray:140;stroke-dashoffset:140}
.models.seen .acc path{animation:draw .8s var(--ease) .6s forwards}
@keyframes draw{to{stroke-dashoffset:0}}
.m-p{margin:20px 0 0;max-width:520px;font-size:18px;line-height:28px;color:var(--ink-2)}

.m-btns{margin-top:28px;display:flex;gap:10px;flex-wrap:wrap}
.tb{display:inline-flex;align-items:center;gap:6px;padding:6px 16px 6px 12px;border-radius:100px;font-size:16px;font-weight:500;line-height:24px;white-space:nowrap;transition:background-color .2s ease-in-out}
.tb .tb-ico{width:24px;height:24px}
.tb-main{background:#fffdf9;color:#14161f}
.tb-main:hover{background:#e6e3dc}
.tb-main:hover .t-cursor{animation:blink .9s steps(1) infinite}
.tb-soft{background:#1a1a1d;color:#fff}
.tb-soft:hover{background:#252529}

.m-stats{margin:36px 0 0;display:flex;gap:56px}
.m-stats div{margin:0}
.m-stats dt{font-size:28px;font-weight:500;line-height:34px;letter-spacing:-.02em}
.m-stats dd{margin:4px 0 0;font-size:13px;line-height:18px;color:#ffffff8c}

.m-list{list-style:none;margin:0;padding:0;max-width:620px;display:grid;grid-template-columns:1fr 1fr;gap:14px 24px}
.m-list li{display:flex;align-items:center;gap:12px;padding:10px 12px;margin-left:-12px;border-radius:8px;transition:background-color .16s}
@media (hover:hover){.m-list li:hover{background:#ffffff0b}}
.m-ico{flex:none;width:44px;height:44px;display:grid;place-items:center}
.m-ico img{width:34px;height:34px;object-fit:contain;filter:invert(1)}
.m-plus{width:22px;height:22px;padding:3px;border-radius:50%;box-shadow:inset 0 0 0 1.5px #ffffff55;box-sizing:content-box}
.m-name{min-width:0}
.m-name b{display:block;font-size:28px;font-weight:500;line-height:36px;letter-spacing:-.02em}
.m-name small{display:block;margin-top:2px;font-size:14px;line-height:20px;color:#ffffff73}
.m-vid{position:relative;top:-14px;z-index:1;align-self:center;margin:0 -80px -14px -100px;pointer-events:none}
.m-vid video{display:block;width:100%;height:auto;
  -webkit-mask-image:radial-gradient(75% 85% at 50% 55%,#000 62%,transparent 100%);mask-image:radial-gradient(75% 85% at 50% 55%,#000 62%,transparent 100%)}

/* появление при прокрутке */
.js .models .m-h,.js .models .m-p,.js .models .m-btns,.js .models .m-stats,.js .models .m-list li,.js .models .m-vid{opacity:0;transform:translateY(18px)}
.js .models.seen .m-h,.js .models.seen .m-p,.js .models.seen .m-btns,.js .models.seen .m-stats,.js .models.seen .m-vid{animation:in 1s var(--ease) forwards}
.js .models.seen .m-btns{animation-delay:.16s}
.js .models.seen .m-stats{animation-delay:.22s}
.js .models.seen .m-p{animation-delay:.1s}
.js .models.seen .m-vid{animation-delay:.15s}
.js .models.seen .m-list li{animation:in .8s var(--ease) calc(.3s + var(--i)*.05s) forwards}

@media (max-width:1100px){.m-wrap{padding:0 40px}}
@media (max-width:860px){
  .m-wrap{grid-template-columns:1fr;gap:8px;padding:0 24px}
  .m-text{padding-bottom:0}
  .m-vid{max-width:520px;margin:0 auto;width:100%;top:0}
}
@media (max-width:480px){
  .m-p{font-size:16px;line-height:25px}
  .m-list{grid-template-columns:1fr 1fr;gap:2px 8px}
  .m-name b{font-size:20px;line-height:28px}
  .m-ico{width:34px;height:34px}.m-ico img{width:26px;height:26px}
  .m-stats{gap:32px}
  .m-stats dt{font-size:24px}
}
@media (prefers-reduced-motion:reduce){.js .models .m-h,.js .models .m-p,.js .models .m-btns,.js .models .m-stats,.js .models .m-list li,.js .models .m-vid{opacity:1;transform:none}.acc path{stroke-dashoffset:0}}

.dashboard-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  width:100%;
  max-width:360px;
  min-height:50px;
  margin-bottom:22px;
  padding:0 16px 0 18px;
  border-radius:8px;
  background:#fffdf9;
  color:#14161f;
  font-size:17px;
  font-weight:550;
  letter-spacing:-.02em;
  line-height:1.2;
  transition:background .2s;
}
.dashboard-link svg{width:18px;height:18px}
.dashboard-link:hover{background:#e6e3dc}
@media (max-width:860px){
  .hero{min-height:clamp(288px,46svh,396px);padding:24px}
  .m-text{padding-top:16px}
  .dashboard-link{max-width:620px;margin-bottom:18px}
}
