/* Zavadski public hub (task hub-page). Dark brushed steel, same family as food.zavadski.com. No third-party requests, system fonts only. */
:root{
 color-scheme:dark;
 --bg0:#0a0b0d;--bg1:#101215;--bg2:#15181c;--bg3:#1b1f24;--bg4:#242930;
 --ink:#eef0f3;--ink2:#c5cad1;--muted:#aab1ba;
 --line:#2a2f36;--edge:#3a4048;
 --steel-hi:#f3f5f7;--steel:#c9ced5;--steel-mid:#a3a9b2;--steel-lo:#5d646e;
 --metal:linear-gradient(180deg,#f3f5f7 0%,#cfd4da 45%,#a3a9b2 55%,#d9dde2 100%);
 --serif:ui-serif,"New York","Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif;
 --sans:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
 --out:cubic-bezier(.23,1,.32,1);
 --pad:clamp(16px,5vw,32px);
 --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;background:var(--bg0)}
body{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;color:var(--ink);font:18px/1.5 var(--sans);
 background:radial-gradient(900px 460px at 88% -8%,rgba(255,255,255,.06),transparent 70%),var(--grain),var(--bg0);
 -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img,svg{display:block}
a{color:inherit}
ul{margin:0;padding:0;list-style:none}
:focus-visible{outline:2px solid var(--steel-hi);outline-offset:3px;border-radius:6px}

/* language: every text is present in all six languages; html[data-lang] picks one (same rule as the app) */
html[data-lang="en"] .l:not(.en){display:none!important}
html[data-lang="be"] .l:not(.be){display:none!important}
html[data-lang="ru"] .l:not(.ru){display:none!important}
html[data-lang="pl"] .l:not(.pl){display:none!important}
html[data-lang="de"] .l:not(.de){display:none!important}
html[data-lang="lt"] .l:not(.lt){display:none!important}

/* header: quiet crest, small language switch (needs JS, so it is hidden without it) */
.top{display:flex;align-items:center;justify-content:flex-end;gap:12px;width:100%;max-width:1240px;margin:0 auto;
 padding:max(14px,env(safe-area-inset-top)) max(var(--pad),env(safe-area-inset-right)) 0 max(var(--pad),env(safe-area-inset-left))}
.lang-switch{display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:100%;gap:2px;padding:3px;background:var(--bg2);border:1px solid var(--line);border-radius:26px;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.nojs .lang-switch{display:none}
.lang-switch button{appearance:none;-webkit-appearance:none;min-width:44px;height:44px;padding:0 8px;border:0;border-radius:999px;background:transparent;color:var(--muted);
 font:700 16px/1 var(--sans);letter-spacing:.04em;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;transition:background-color .2s,color .2s,transform .12s}
.lang-switch button.on{background:var(--metal);color:#0c0e10;box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 1px 2px rgba(0,0,0,.6)}
.lang-switch button:active{transform:scale(.95)}
@media (hover:hover) and (pointer:fine){.lang-switch button:not(.on):hover{background:var(--bg4);color:var(--ink)}}

main{flex:1;width:100%;max-width:1240px;margin:0 auto;padding:0 max(var(--pad),env(safe-area-inset-right)) 0 max(var(--pad),env(safe-area-inset-left))}

/* hero: the wordmark */
.hero{padding:clamp(20px,5vh,64px) 0 clamp(22px,4vh,40px)}
.mark{margin:0;font:500 clamp(34px,17.5vw,96px)/1.02 var(--serif);overflow-wrap:anywhere;letter-spacing:-.012em;color:var(--steel-hi);
 background:linear-gradient(180deg,#fbfcfc 8%,#cfd4da 46%,#8d949d 62%,#dfe3e7 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;padding-bottom:.06em}
.tag{margin:18px 0 0;max-width:28ch;font-size:19px;line-height:1.4;color:var(--ink2);text-wrap:balance}
.tag::before{content:"";display:block;width:56px;height:1px;margin-bottom:16px;background:linear-gradient(90deg,var(--steel),transparent)}

/* cards */
.tiles{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding-bottom:8px}
.ttl,.ln,.cta,.badge{overflow-wrap:anywhere;hyphens:auto}   /* 200% zoom / 320px: a long word (Путешествия, Familienmitglieder) must wrap, never widen the card */
.tile{position:relative;min-height:204px}
.tile .in{position:relative;display:flex;flex-direction:column;justify-content:flex-start;height:100%;min-height:inherit;padding:22px;border-radius:26px;overflow:hidden;isolation:isolate;
 background:var(--bg2);border:1px solid var(--line);color:var(--ink);text-decoration:none;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 22px 44px -28px #000;touch-action:manipulation;
 transition:transform .35s var(--out),border-color .3s,box-shadow .3s}
.art{position:absolute;z-index:-1;right:-17%;top:50%;height:138%;width:auto;aspect-ratio:1;transform:translateY(-50%);pointer-events:none;
 -webkit-mask-image:linear-gradient(90deg,transparent 44%,#000 74%);mask-image:linear-gradient(90deg,transparent 44%,#000 74%);transition:transform .8s var(--out)}
.in::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.07) 50%,transparent 60%);transform:translateX(-120%)}
.txt{display:flex;flex-direction:column;flex:1;gap:6px;max-width:min(100%,15em)}
.ttl{font:500 34px/1.08 var(--serif);letter-spacing:-.005em;color:var(--steel-hi)}
.ln{font-size:18px;line-height:1.4;color:var(--ink2);max-width:15em;text-wrap:balance}
.go{margin-top:auto;padding-top:12px}
.cta,.badge{display:inline-flex;align-items:center;gap:9px;min-height:44px;font-size:18px;font-weight:600;letter-spacing:.01em;color:var(--steel-hi)}
.cta .ico:last-child{transition:transform .35s var(--out)}
.ico{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.badge{padding:0;font-size:17px;color:var(--ink2)}   /* a status line, not a button */
.is-soon .in{background:var(--bg1);cursor:default}
.is-soon .art{opacity:.62}
.is-soon .ttl{color:var(--steel)}

.tile:not(.is-soon) .in:active{transform:scale(.985);transition-duration:.1s}
@media (hover:hover) and (pointer:fine){
 .tile:not(.is-soon) .in:hover{transform:translateY(-3px);border-color:var(--steel-lo);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 30px 50px -28px #000}
 .tile:not(.is-soon) .in:hover .art{transform:translateY(-50%) scale(1.05)}
 .tile:not(.is-soon) .in:hover::after{transform:translateX(120%);transition:transform .9s var(--out)}
 .tile:not(.is-soon) .in:hover .cta .ico:last-child{transform:translateX(4px)}
}

.foot{padding:36px var(--pad) max(28px,env(safe-area-inset-bottom));text-align:center;font-size:16px;letter-spacing:.06em;color:var(--muted)}

/* entrance: opacity and transform only, once; content is visible even if the animation never runs */
@keyframes rise{from{opacity:0;transform:translateY(12px)}}
.mark,.tag,.tile,.top{animation:rise .7s var(--out) backwards}
.tag{animation-delay:.08s}.tile:nth-child(1){animation-delay:.16s}.tile:nth-child(2){animation-delay:.23s}.tile:nth-child(3){animation-delay:.3s}.tile:nth-child(4){animation-delay:.37s}

/* Phone first screen: all four cards visible at 390x844 in every language (at 375x667 the fourth card peeks above the fold).
   Desktop (min-width: 900px) is unchanged. Taller phones get a little more air via clamp. */
@media (max-width: 899px) and (max-height: 950px){
  .top{padding-top:max(8px,env(safe-area-inset-top))}
  .hero{padding:clamp(8px,1.5vh,16px) 0 clamp(8px,1.4vh,14px)}
  .mark{font-size:clamp(30px,min(9vw,5.4vh),46px)}
  .tag{margin:8px 0 0;font-size:16px;line-height:1.3}
  .tag::before{width:40px;margin-bottom:8px}
  .tiles{gap:clamp(8px,1.2vh,12px);padding-bottom:4px}
  .tile{min-height:0}
  .tile .in{padding:clamp(10px,1.5vh,16px) 16px;border-radius:20px}
  .ttl{font-size:clamp(24px,min(6.4vw,3.4vh),28px)}
  .ln{font-size:16px;line-height:1.25}
  .txt{gap:4px}
  .go{padding-top:6px}
  .cta,.badge{min-height:44px;font-size:16px;gap:7px}
  .foot{padding:20px var(--pad) max(16px,env(safe-area-inset-bottom))}
}

/* composed desktop: wordmark on the left, a bento of cards below */
@media (min-width:900px){
 .hero{padding-top:clamp(48px,9vh,96px);display:grid;grid-template-columns:1.5fr 1fr;gap:20px;align-items:end}
 .tile-food .in{justify-content:flex-end}
 .tile-food .txt{flex:none;max-width:13em}
 .mark{font-size:clamp(96px,10vw,144px)}
 .tag{margin:0 0 14px;font-size:21px;max-width:24ch;text-align:left}
 .tag::before{margin-bottom:18px}
 .tiles{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);grid-template-rows:repeat(3,minmax(170px,1fr));gap:20px;min-height:min(560px,62vh)}
 .tile{min-height:170px}
 .tile-food{grid-row:1/4}
 .tile .in{padding:30px;border-radius:30px}
 .art{height:140%;right:-12%;-webkit-mask-image:linear-gradient(90deg,transparent 24%,#000 54%);mask-image:linear-gradient(90deg,transparent 24%,#000 54%)}
 .tile-food .art{height:98%;right:2%;-webkit-mask-image:linear-gradient(90deg,transparent 18%,#000 46%);mask-image:linear-gradient(90deg,transparent 18%,#000 46%)}
 .ttl{font-size:40px}.tile-food .ttl{font-size:60px}
 .ln{font-size:19px}.tile-food .ln{font-size:21px;max-width:16em}
}
@media (min-width:900px) and (max-height:760px){.hero{padding-top:36px}.mark{font-size:96px}}

@media (prefers-reduced-motion:reduce){
 .mark,.tag,.tile,.top{animation:none}
 .tile .in,.art,.cta .ico:last-child,.lang-switch button{transition:none}
 .tile:not(.is-soon) .in:hover,.tile:not(.is-soon) .in:active{transform:none}
 .tile:not(.is-soon) .in:hover .art{transform:translateY(-50%)}
 .in::after{display:none}
}
@media (prefers-contrast:more){.in{border-color:var(--steel-lo)}.ln,.tag{color:var(--steel-hi)}}
@media (forced-colors:active){.mark{-webkit-text-fill-color:currentColor;background:none}.in{border:1px solid CanvasText}}
