/* Fixel (MacPaw, OFL). Однакові метрики на всіх системах – тоді крапки «Ї» стають точно на місце. */
@font-face{font-family:"Fixel Display";src:url(fonts/FixelDisplay-ExtraBold.woff2) format("woff2");font-weight:800;font-display:swap;ascent-override:95%;descent-override:25%;line-gap-override:0%}
@font-face{font-family:"Fixel Text";src:url(fonts/FixelText-Regular.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Fixel Text";src:url(fonts/FixelText-Medium.woff2) format("woff2");font-weight:500;font-display:swap}

/* кольори: ніч і папір міняються місцями за темою системи; небо й пшениця – зі знака */
:root{
  --bg:#0b0f17;--ink:#f4f0e8;--muted:#a9b3c4;--soft:#cfd6e2;--faint:#7f8a9d;
  --ghost:rgb(244 240 232 / .12);--ghost-hi:rgb(244 240 232 / .19);
  --glow-sky:rgb(10 132 214 / .26);--glow-wheat:rgb(245 178 30 / .10);
  --mono:#f4f0e8;--on-mono:#111214;          /* GitHub і monobank: чорно-білі бренди – інверсія до тла */
  --sky:#0a84d6;--wheat:#f5b21e;--on-wheat:#12161e;--dot-yellow:#ffd500;
  --tg:#1a7cba;--on-tg:#fff;--nexus:#d98f40;--on-nexus:#12161e;--privat:#2fab33;--on-privat:#12161e;
  --focus:#f5b21e;
  --head:"Fixel Display",system-ui,sans-serif;--body:"Fixel Text",system-ui,sans-serif;
  --land:url(steppe-type.webp);
  --gut:16px;
}
@media (prefers-color-scheme:light){:root{
  --bg:#f7f4ee;--ink:#12161e;--muted:#566074;--soft:#343c4b;--faint:#646d7d;
  --ghost:rgb(18 22 30 / .07);--ghost-hi:rgb(18 22 30 / .12);
  --glow-sky:rgb(10 132 214 / .16);--glow-wheat:rgb(245 178 30 / .16);
  --mono:#111214;--on-mono:#fff;--dot-yellow:#f5b21e;--focus:#0a84d6;
  --land:url(steppe-type-deep.webp);
}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:radial-gradient(900px 520px at 88% -60px,var(--glow-sky),transparent 70%),radial-gradient(760px 420px at 70% 700px,var(--glow-wheat),transparent 70%) no-repeat,var(--bg);color:var(--ink);font:400 17px/1.6 var(--body);overflow-x:hidden}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
::selection{background:var(--wheat);color:var(--on-wheat)}
.wrap{width:min(1120px,100% - 2*var(--gut));margin-inline:auto}
:focus-visible{outline:3px solid var(--focus);outline-offset:4px;border-radius:12px}
.sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* мазок пензля: одна форма для кнопок, підкреслень, карток і смуги степу */
.btn,.nav a,.toast{position:relative;isolation:isolate}
.btn::before,.toast::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--paint);-webkit-mask:url(brush-button.svg) center/100% 100% no-repeat;mask:url(brush-button.svg) center/100% 100% no-repeat;transition:transform .3s cubic-bezier(.3,1.4,.5,1),background .2s}

/* шапка: без ліній, лише плавне затемнення донизу */
header{position:sticky;top:0;z-index:10;background:linear-gradient(var(--bg) 58%,transparent)}
.bar{display:flex;align-items:center;justify-content:space-between;height:76px;gap:12px}
.brand{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
.brand img{height:36px;width:auto}
.nav{display:flex;gap:4px;align-items:center}
.nav a:not(.btn){text-decoration:none;color:var(--soft);font:500 16px/1 var(--body);padding:14px 12px;transition:color .2s}
.nav a:not(.btn):hover,.nav a.on{color:var(--ink)}
/* посилання в шапці: при наведенні пензель підкреслює слово */
.nav a:not(.btn)::after{content:"";position:absolute;left:12px;right:12px;bottom:4px;height:8px;background:var(--wheat);-webkit-mask:url(brush-line.svg) center/100% 100% no-repeat;mask:url(brush-line.svg) center/100% 100% no-repeat;clip-path:inset(0 100% 0 0);transition:clip-path .45s cubic-bezier(.6,0,.2,1)}
.nav a:not(.btn):hover::after,.nav a.on::after{clip-path:inset(0 0 0 0)}
.nav .btn{min-height:48px;padding:0 22px;font-size:16px}
@media (max-width:640px){.nav .opt{display:none}}

/* кнопки: колір і знак сервісу, куди веде кнопка */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:58px;padding:0 30px;font:500 18px/1 var(--body);text-decoration:none;border:0;background:none;cursor:pointer;white-space:nowrap;color:var(--on-wheat);--paint:var(--wheat)}
.btn .i{width:22px;height:22px;flex:none}.btn .i:not([fill]){fill:currentColor}
.btn-g{color:var(--ink);--paint:var(--ghost)}
.btn-g:hover{--paint:var(--ghost-hi)}
.tg{color:var(--on-tg);--paint:var(--tg)}
.gh{color:var(--on-mono);--paint:var(--mono)}
.nx{color:var(--on-nexus);--paint:var(--nexus)}
.mono{color:var(--on-mono);--paint:var(--mono);padding:0 34px}
.mono .i{width:118px;height:17px}
.p24{color:var(--on-privat);--paint:var(--privat)}
.btns{display:flex;flex-wrap:wrap;gap:14px 12px}

/* перший екран */
.hero{padding:clamp(36px,7vw,96px) 0 clamp(24px,4vw,48px);display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:clamp(24px,4vw,56px);align-items:center}
@media (max-width:900px){.hero{grid-template-columns:1fr}}
.hero-art{display:flex;justify-content:center}
.mark{display:block;width:auto;height:clamp(300px,50vw,540px);max-width:100%;filter:drop-shadow(0 28px 60px rgb(10 132 214 / .22))}
@media (max-width:900px){.hero-art{order:-1}.mark{height:clamp(240px,62vw,380px)}}
/* «УКРАЇНСЬКОЮ» – 7.3 кегля завширшки: завжди влазить у свою колонку */
h1{font:800 min(calc((100vw - 2*var(--gut))/7.6),104px)/.95 var(--head);margin:0 0 28px;text-transform:uppercase;letter-spacing:-.015em}
h1>span{display:block}
@property --d1{syntax:'<color>';inherits:false;initial-value:transparent}
@property --d2{syntax:'<color>';inherits:false;initial-value:transparent}
@media (min-width:901px){h1{font-size:clamp(56px,5.9vw,86px)}}
/* пасхалка: крапки «Ї» – небо й пшениця */
.yi{padding:0 .03em;margin:0 -.03em;color:transparent;-webkit-background-clip:text;background-clip:text;background-image:linear-gradient(transparent 18.6%,var(--ink) 18.6%),linear-gradient(90deg,var(--d1) 50%,var(--d2) 50%);--d1:var(--sky);--d2:var(--dot-yellow)}
.lead{font-size:clamp(19px,2.3vw,22px);color:var(--soft);max-width:38ch;text-wrap:pretty;margin:0 0 34px}

/* розділи */
section{padding:clamp(44px,7vw,80px) 0}
h2{font:800 clamp(38px,6vw,58px)/1.02 var(--head);margin:0 0 18px;text-transform:uppercase;letter-spacing:-.01em}
/* заголовки – як підпис Stepovyk: крізь літери видно степ під небом, обрій посередині кожного рядка */
.land{background:var(--land) center/100% 100% no-repeat;color:transparent;-webkit-background-clip:text;background-clip:text;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.sub{color:var(--muted);margin:0 0 40px;font-size:18px;max-width:58ch;text-wrap:pretty}
h3{font:800 clamp(26px,3.2vw,32px)/1.08 var(--head);margin:0;text-wrap:balance}

/* ігри: великий арт у мазку пензля, поруч коротко й кнопки; на широкому екрані арт по черзі ліворуч і праворуч */
.games{display:grid;gap:clamp(56px,8vw,96px)}
.game{display:grid;gap:20px;align-items:center}
@media (min-width:760px){.game{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:clamp(32px,5vw,64px)}.game:nth-child(even) .shot{order:2}}
.info{display:flex;flex-direction:column;gap:14px;min-width:0}
.shot{aspect-ratio:1280/560;overflow:hidden;-webkit-mask:url(brush-block.svg) center/100% 100% no-repeat;mask:url(brush-block.svg) center/100% 100% no-repeat}
.shot img{width:100%;height:100%;object-fit:cover}
.facts{margin:0;color:var(--ink);font:500 15px/1.4 var(--body)}
.info p:not(.facts),.plan p{margin:0;color:var(--muted);text-wrap:pretty}
.info .btns{padding-top:8px}
.game .btn{flex:1 1 0;min-height:50px;padding:0 18px;font-size:16px;gap:8px}
.game .btn .i{width:20px;height:20px}
.game .dl{flex-basis:100%;min-height:58px;font-size:18px}

/* далі в роботі */
.next{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:48px 56px}
.plan{display:flex;flex-direction:column;gap:14px}
.tag{align-self:flex-start;font:500 14px/1 var(--body);text-transform:uppercase;letter-spacing:.08em;color:var(--muted);display:flex;align-items:center;gap:10px}
.tag::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--wheat)}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgb(245 178 30 / .6)}70%,100%{box-shadow:0 0 0 8px rgb(245 178 30 / 0)}}
.plan .btns{margin-top:6px}

/* підтримка: мазок, крізь який видно степ, як у знаку */
.field{height:clamp(130px,22vw,250px);margin:0 0 clamp(32px,5vw,48px);-webkit-mask:url(brush-panel.svg) center/100% 100% no-repeat;mask:url(brush-panel.svg) center/100% 100% no-repeat;overflow:hidden}
.field img{width:100%;height:100%;object-fit:cover;object-position:50% 58%}
.donate .btn{min-width:min(210px,100%)}
.note{margin:26px 0 0;color:var(--muted);font-size:16px}

footer{padding:24px 0 56px;color:var(--muted);font-size:15px}
.foot{display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:space-between;align-items:center}
.foot nav{display:flex;flex-wrap:wrap;gap:0 8px;margin:0 -10px}
.foot nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;text-decoration:none;transition:color .2s}
.foot nav a:hover{color:var(--ink)}
.brand-foot img{height:32px}
.legal{margin:18px 0 0;font-size:14px;color:var(--faint)}

/* поява */
.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,0);color:var(--bg);font:500 16px/1 var(--body);padding:18px 30px;opacity:0;pointer-events:none;transition:.25s;z-index:20;--paint:var(--ink)}
.toast.on{opacity:1}
/* застосунки на головній: значок, назва, рядок і кнопки */
.apps{display:grid;gap:clamp(36px,5vw,56px)}
.app{display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(18px,3vw,32px);align-items:start}
.app-icon img{width:clamp(72px,10vw,104px);height:auto;border-radius:23.5%}
.app h3 a{color:inherit;text-decoration:none}
.app h3 a:hover{color:var(--soft)}
.soon{display:inline-flex;align-items:center;gap:10px;min-height:58px;color:var(--muted);font:500 16px/1.2 var(--body)}
.soon .i{width:20px;height:20px}.soon .i:not([fill]){fill:currentColor}

/* сторінки застосунків і документи */
.narrow{width:min(760px,100% - 2*var(--gut));margin-inline:auto}
.page .top{padding:clamp(28px,5vw,64px) 0 clamp(8px,2vw,16px)}
.page .top.center,.center{text-align:center}
.page .top.center .btns,.center .btns,.center .actions{justify-content:center}
.page h1{font-size:clamp(40px,7vw,76px);line-height:1;margin:0 0 18px}
.page .top .lead{margin:0 0 26px;max-width:46ch}
.page .center .lead{margin-inline:auto}
.big-mark{width:auto;height:clamp(150px,22vw,220px);margin:0 auto 28px}
.tabs{width:min(1120px,100% - 2*var(--gut));margin:8px auto 0;overflow-x:auto;scrollbar-width:none}
.tabs>div{display:flex;gap:4px;margin:0 -12px}
.tabs a{position:relative;flex:none;padding:14px 12px;color:var(--soft);font:500 16px/1 var(--body);text-decoration:none;transition:color .2s}
.tabs a:hover,.tabs a[aria-current]{color:var(--ink)}
.tabs a::after{content:"";position:absolute;left:12px;right:12px;bottom:4px;height:8px;background:var(--wheat);-webkit-mask:url(brush-line.svg) center/100% 100% no-repeat;mask:url(brush-line.svg) center/100% 100% no-repeat;clip-path:inset(0 100% 0 0);transition:clip-path .45s cubic-bezier(.6,0,.2,1)}
.tabs a:hover::after,.tabs a[aria-current]::after{clip-path:inset(0 0 0 0)}
.app-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:clamp(16px,3vw,32px);align-items:center;margin:0 0 22px}
.app-hero .icon{width:clamp(76px,11vw,120px);height:auto;border-radius:23.5%}
.app-hero h1{margin:0 0 6px}
.app-sub{margin:0;color:var(--soft);font:500 clamp(17px,2vw,20px)/1.3 var(--body)}
.mascot{width:clamp(96px,14vw,180px);height:auto}
@media (max-width:640px){.app-hero{grid-template-columns:auto minmax(0,1fr)}.mascot{display:none}}
.chips{display:flex;flex-wrap:wrap;gap:4px 0;margin:0 0 26px;padding:0;list-style:none;font:500 15px/1.4 var(--body);color:var(--ink)}
.chips li+li::before{content:"·";margin:0 .6em;color:var(--muted)}
.actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 12px}
.dl-hint{margin:16px 0 0;color:var(--muted);font-size:15px}
.dl-hint a,.prose a,.fine a,.note a,.muted a,.mail a,.faq a{color:var(--ink);text-decoration-color:var(--wheat);text-decoration-thickness:2px;text-underline-offset:3px}
.page section{padding:clamp(36px,6vw,64px) 0}
.section-head{margin:0 0 clamp(24px,3vw,36px)}
.kicker{margin:0 0 10px;font:500 14px/1 var(--body);text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:clamp(24px,3vw,36px) clamp(28px,4vw,48px)}
.card h3{font-size:clamp(21px,2.4vw,24px);margin:0 0 8px}
.card p{margin:0;color:var(--muted);text-wrap:pretty}
.ticks{margin:0 0 30px;padding:0 0 0 1.2em;display:grid;gap:10px;max-width:62ch}
.ticks li::marker{color:var(--wheat)}
.prices{display:flex;flex-wrap:wrap;gap:16px 48px;margin:0 0 22px}
.price{display:flex;flex-direction:column;gap:4px}
.price-sum{font:800 clamp(40px,6vw,56px)/1 var(--head)}
.price-best .price-sum{color:transparent;background:var(--land) center/100% 100% no-repeat;-webkit-background-clip:text;background-clip:text}
.price-term{color:var(--muted)}
.price-note{font:500 15px/1.3 var(--body);color:var(--ink)}
.fine,.muted,.note{color:var(--muted);font-size:16px}
.fine{margin:0;max-width:62ch}
.steps{margin:0;padding:0;list-style:none;counter-reset:s;display:grid;gap:18px}
.steps li{counter-increment:s;position:relative;padding-left:52px;color:var(--muted)}
.steps li::before{content:counter(s);position:absolute;left:0;top:-4px;font:800 34px/1 var(--head);color:var(--wheat)}
.steps strong{color:var(--ink);font-weight:500}
.checksum{margin:26px 0 0;color:var(--muted);font-size:15px;overflow-wrap:anywhere}
.checksum code{color:var(--soft)}
.faq h2{margin-bottom:22px}
.faq details{padding:14px 0}
.faq summary{display:flex;justify-content:space-between;gap:18px;cursor:pointer;list-style:none;font:500 19px/1.4 var(--body)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font:800 26px/1 var(--head);color:var(--wheat);flex:none}
.faq details[open] summary::after{content:"–"}
.faq details p{margin:10px 0 0;color:var(--muted);max-width:62ch}
.mt-sm{margin-top:12px}
.mt-md{margin-top:24px}
.gap-below-sm{margin-bottom:22px}
.mail{margin:0;font:500 clamp(18px,2.4vw,22px)/1.4 var(--body)}
.gallery{padding:clamp(8px,2vw,16px) 0 0}
.shots{display:flex;gap:16px;margin:0;padding:4px var(--gut) 12px;list-style:none;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;max-width:1152px;margin-inline:auto}
.shots li{flex:none;scroll-snap-align:start}
.shots img{width:clamp(200px,24vw,240px);height:auto;border-radius:12px}
.notify-card{display:grid;gap:28px clamp(32px,5vw,64px)}
@media (min-width:900px){.notify-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.form{display:grid;gap:20px;max-width:560px}
.fld{display:grid;gap:8px}
.fld label,legend{font:500 16px/1.3 var(--body)}
.hint{color:var(--muted);font-size:15px}
.form input[type=email],.form input[type=text],.form textarea{width:100%;min-height:54px;padding:14px 18px;border:0;border-radius:12px;background:var(--ghost);color:var(--ink);font:400 17px/1.5 var(--body)}
.form textarea{min-height:160px;resize:vertical}
.form input:focus-visible,.form textarea:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
fieldset{border:0;margin:0;padding:0}
.radios{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:10px}
.radios label,.check{display:inline-flex;align-items:center;gap:10px;min-height:44px;cursor:pointer}
input[type=radio],input[type=checkbox]{width:20px;height:20px;accent-color:var(--wheat);margin:0}
.hp{position:absolute;left:-9999px}
.prose{padding:clamp(8px,2vw,24px) 0 clamp(44px,7vw,80px)}
.prose h2{font:800 clamp(24px,3vw,30px)/1.15 var(--head);text-transform:none;letter-spacing:0;margin:40px 0 14px}
.prose h3{font-size:22px;margin:28px 0 10px}
.prose p,.prose li{color:var(--soft);max-width:68ch}
.prose ul,.prose ol{padding-left:1.2em;display:grid;gap:8px}
.prose li::marker{color:var(--wheat)}
.prose code{font-size:.92em}
.summary{margin:0 0 8px;font-size:18px}
.summary p{color:var(--ink)}
.dated{margin:0;color:var(--muted);font-size:16px;max-width:68ch}
.callout{color:var(--ink)!important}
.doc-layout{display:grid;gap:28px clamp(32px,5vw,64px);padding:clamp(8px,2vw,24px) 0 clamp(44px,7vw,80px)}
@media (min-width:980px){.doc-layout{grid-template-columns:240px minmax(0,1fr)}.toc{position:sticky;top:96px;align-self:start}}
.toc-title{margin:0 0 10px;font:500 14px/1 var(--body);text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.toc ol,.toc ul{margin:0;padding:0;list-style:none;display:grid;gap:2px}
.toc a{display:inline-flex;min-height:36px;align-items:center;color:var(--soft);text-decoration:none}
.toc a:hover{color:var(--ink)}
.doc.prose{padding:0}
.releases{margin:28px 0;padding:0;list-style:none;display:grid;gap:clamp(32px,4vw,44px)}
.release-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px}
.release-head h2{margin:0}
.release-head time,.badge{color:var(--muted);font-size:15px}
.release-title{margin:8px 0 6px;color:var(--ink)!important;font-weight:500}

/* рух: лише коли людина не просить менше руху. Кожна анімація – один раз, нічого не піднімається й не ходить за курсором */
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  /* перший екран проявляється по черзі; коли слово вже стоїть, крапки «Ї» спалахують небом і жовтим */
  @keyframes show{from{opacity:0}}
  @keyframes dots{from{--d1:var(--ink);--d2:var(--ink)}}
  h1>span{animation:show .9s ease .15s backwards}
  h1>span+span{animation-delay:.3s}
  .yi{animation:dots .5s ease-out 1.25s backwards}
  .hero .lead{animation:show .9s ease .45s backwards}
  .hero .btns{animation:show .9s ease .6s backwards}
  /* знак: пензель один раз проводить «S» */
  .mark .stroke{stroke-dasharray:1 1;stroke-dashoffset:1;animation:paint 1.7s cubic-bezier(.55,0,.2,1) .25s forwards}
  @keyframes paint{to{stroke-dashoffset:0}}
  /* блоки проявляються, коли доходять до екрана; підзаголовок – слідом за заголовком */
  .rise{opacity:0;transition:opacity .8s ease}
  .rise.in{opacity:1}
  .sub.rise,.plan.rise+.plan.rise{transition-delay:.12s}
  /* кнопки: мазок під курсором ледь розгортається на місці */
  .btn:hover::before,.btn:focus-visible::before{transform:scale(1.035,1.07) rotate(-.6deg)}
  .btn:active::before{transform:scale(.97)}
  /* картка гри: пензель прокладає арт; під курсором арт ледь наближається */
  .game .shot{clip-path:inset(0 100% 0 0);transition:clip-path 1.1s cubic-bezier(.6,0,.2,1) .1s}
  .game:nth-child(even) .shot{clip-path:inset(0 0 0 100%)}
  .game.in .shot{clip-path:inset(0 0 0 0)}
  .shot img{transition:transform .7s cubic-bezier(.2,.7,.2,1)}
  .game:hover .shot img{transform:scale(1.04)}
  /* стан плану: крапка один раз дихає, коли план з'являється */
  @keyframes pulse{0%{box-shadow:0 0 0 0 rgb(245 178 30 / .6)}70%,100%{box-shadow:0 0 0 8px rgb(245 178 30 / 0)}}
  .plan.in .tag::before{animation:pulse 2s .5s}
  /* смуга степу: пензель один раз розгортає її */
  .field{clip-path:inset(0 100% 0 0);transition:clip-path 1.4s cubic-bezier(.6,0,.2,1)}
  .field.in{clip-path:inset(0 0 0 0)}
}
