/* Vitya Povezlo — static site. System fonts only, no external requests. */
:root{
  --ink:#141414; --muted:#5f5f5f; --line:#e7e7e7; --bg:#fff; --soft:#faf7f0;
  --red:#e2382f; --blue:#2e6fd8; --yellow:#f2c230; --pink:#f3a6bd; --wechat:#07C160;
  --font:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Source Han Sans SC","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --wrap:1120px; --hdr:60px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:var(--hdr);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overflow-x:hidden}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;font-family:var(--font);font-size:18px;line-height:1.7;color:var(--ink);background:var(--bg)}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:6px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-999px;top:0;background:var(--ink);color:#fff;padding:12px 16px;z-index:100}
.skip:focus{left:8px;top:8px}

/* header — desktop: inline nav; ≤760px: name + lang pill + burger, nav in a dropdown sheet */
.hdr{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);-webkit-backdrop-filter:saturate(1.4) blur(8px);backdrop-filter:saturate(1.4) blur(8px)}
.hdr .wrap{display:flex;align-items:center;gap:12px;height:var(--hdr)}
.brand{font-weight:700;text-decoration:none;white-space:nowrap;font-size:17px;min-width:0;overflow:hidden;text-overflow:ellipsis;line-height:44px}
.nav{display:flex;gap:2px;margin-left:auto}
.nav a{text-decoration:none;padding:10px 10px;min-height:44px;display:inline-flex;align-items:center;font-size:16px;color:var(--muted);border-radius:8px;white-space:nowrap}
.nav a:hover{color:var(--ink);background:var(--soft)}
.nav a[aria-current=page]{color:var(--ink);font-weight:700}
.lang{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:56px;min-height:44px;padding:0 14px;border:2px solid var(--ink);border-radius:999px;font-weight:700;text-decoration:none;font-size:15px;white-space:nowrap;line-height:1}
.lang:hover{background:var(--ink);color:#fff}
.burger,.burger[hidden]{display:none} /* markup also carries [hidden]: never visible on desktop, even with a stale stylesheet */
@media (max-width:760px){
  :root{--hdr:56px}
  .hdr .wrap{gap:8px;padding:0 12px 0 16px}
  .brand{flex:1 1 auto;font-size:17px}
  .lang{min-width:48px;min-height:40px;padding:0 12px;font-size:14px;border-width:1.5px}
  /* no JS: nav stays visible as a second row */
  html:not(.js) .hdr .wrap{flex-wrap:wrap;height:auto;min-height:var(--hdr);padding-top:6px;padding-bottom:6px}
  html:not(.js) .nav{order:3;width:100%;flex-wrap:wrap;margin:0}
  /* JS: burger + dropdown sheet */
  .js .burger{display:inline-flex;flex:none;align-items:center;justify-content:center;width:44px;height:44px;margin-right:-6px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--ink);cursor:pointer}
  @media (hover:hover){.js .burger:hover{background:var(--soft)}}
  .burger i{position:relative;display:block;width:22px;height:2px;border-radius:2px;background:currentColor;transition:background .2s}
  .burger i::before,.burger i::after{content:"";position:absolute;left:0;width:22px;height:2px;border-radius:2px;background:currentColor;transition:transform .2s}
  .burger i::before{transform:translateY(-7px)}
  .burger i::after{transform:translateY(7px)}
  .hdr.open .burger i{background:transparent}
  .hdr.open .burger i::before{transform:rotate(45deg)}
  .hdr.open .burger i::after{transform:rotate(-45deg)}
  .js .nav{display:none;position:absolute;top:100%;left:0;right:0;margin:0;flex-direction:column;gap:0;padding:4px 0 10px;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 18px 30px -18px rgba(0,0,0,.25)}
  .js .hdr.open .nav{display:flex}
  .js .hdr.open::after{content:"";position:absolute;top:100%;left:0;right:0;height:100vh;background:rgba(20,20,20,.28);z-index:-1}
  .js .nav a{min-height:52px;padding:0 20px;font-size:18px;color:var(--ink);border-radius:0;border-top:1px solid var(--line)}
  .js .nav a:first-child{border-top:0}
}
@media (prefers-reduced-motion:reduce){.burger i,.burger i::before,.burger i::after{transition:none}}

/* hero — compact image, side by side with text from 760px */
.hero{padding:28px 0 44px}
.hero .wrap{display:grid;gap:28px;align-items:center}
.hero h1{margin:0;font-size:clamp(34px,8.5vw,64px);line-height:1.1;letter-spacing:.02em}
.names{margin:10px 0 0;font-size:clamp(16px,4.2vw,20px);color:var(--muted)}
.names span+span::before{content:"·";margin:0 .5em;color:var(--red)}
.lead{margin:20px 0 0;font-size:clamp(19px,3vw,24px);line-height:1.5;font-weight:600;max-width:24em}
.lead mark{background:linear-gradient(transparent 60%,var(--yellow) 60%);color:inherit}
.tags{margin:16px 0 0;color:var(--muted);font-size:15px}
.hero-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.hero-cta .btn{flex:1 1 auto;min-height:48px;padding:0 20px;font-size:16px}
.hero figure{margin:0;width:fit-content;max-width:min(66vw,300px)}
.hero figure a{display:block;border-radius:6px;overflow:hidden;box-shadow:0 14px 36px -22px rgba(46,111,216,.55)}
.hero figure img{width:auto;max-height:45vh}
.hero figcaption{margin-top:8px;font-size:13px;line-height:1.45;color:var(--muted)}
@media (min-width:761px){.hero{padding:56px 0 72px}.hero .wrap{grid-template-columns:1fr auto;gap:56px}
  .hero-cta .btn{flex:0 0 auto;min-height:52px;padding:0 24px;font-size:17px}
  .hero figure{max-width:none}.hero figure img{max-height:420px;max-width:min(36vw,360px)}}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 24px;border-radius:999px;font-weight:700;font-size:17px;text-decoration:none;border:2px solid var(--ink);background:#fff;color:var(--ink);transition:transform .15s}
.btn:hover{transform:translateY(-1px)}
.btn-dark{background:var(--ink);color:#fff}
.btn svg{width:22px;height:22px;flex:none}

/* sections */
section{padding:64px 0}
.sec-title{margin:0 0 8px;font-size:clamp(28px,5vw,40px);line-height:1.2}
.sec-sub{margin:0 0 32px;color:var(--muted)}
.alt{background:var(--soft)}

/* works grid — 2 / 3 / 4 columns, compact captions */
.grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px}
@media (min-width:700px){.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 20px}}
@media (min-width:1024px){.grid{gap:36px 28px}}
#works .wrap{max-width:940px} /* works: 3 columns max, compact ~900px grid, title aligned */
.grid a{display:block;text-decoration:none}
.grid .ph{background:#f1f1f1;border-radius:6px;overflow:hidden;aspect-ratio:5/6}
.grid img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.grid a:hover img{transform:scale(1.03)}
.grid h3{margin:8px 0 0;font-size:15px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.grid p{margin:1px 0 0;font-size:13px;line-height:1.4;color:var(--muted)}

/* about */
.about{display:grid;gap:40px}
@media (min-width:860px){.about{grid-template-columns:1fr 1fr;gap:64px}}
.about p{margin:0 0 16px}
.cv{list-style:none;margin:0;padding:0;font-size:16px;line-height:1.55}
.cv li{display:grid;grid-template-columns:5.2em 1fr;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
.cv li:last-child{border-bottom:1px solid var(--line)}
.cv b{color:var(--red);font-weight:700}
.h3{margin:0 0 12px;font-size:20px}
.note{font-size:14px;color:var(--muted);margin-top:12px}

/* contacts */
.contact{text-align:center}
.contact .invite{font-size:clamp(20px,3.4vw,26px);font-weight:600;max-width:30em;margin:0 auto 32px;line-height:1.5}
.cbtns{display:grid;gap:14px;max-width:420px;margin:0 auto}
@media (min-width:860px){.cbtns{grid-template-columns:repeat(2,1fr);max-width:820px}}
.cbtns .btn{min-height:64px;font-size:19px}
@media (max-width:380px){.cbtns{grid-template-columns:minmax(0,1fr)}.cbtns .btn{padding:0 16px;font-size:17px;gap:8px}}
.b-mail{background:var(--red);border-color:var(--red);color:#fff}
.b-tg{background:var(--blue);border-color:var(--blue);color:#fff}
.b-ig{background:var(--yellow);border-color:var(--yellow);color:var(--ink)}
.phone{margin-top:24px;color:var(--muted);font-size:16px}
.phone a{color:var(--ink);display:inline-block;padding:10px 4px;min-height:44px}
footer{padding:28px 0 40px;font-size:14px;color:var(--muted);text-align:center;border-top:1px solid var(--line)}

/* lightbox */
.lb{position:fixed;inset:0;z-index:50;background:#111;display:none;flex-direction:column;align-items:center;justify-content:center;padding:56px 12px 16px;color:#fff}
.lb.open{display:flex}
.lb img{max-width:100%;max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);width:auto;object-fit:contain;border-radius:2px}
.lb .cap{margin-top:12px;text-align:center;font-size:16px;line-height:1.5;min-height:3em}
.lb .cap small{display:block;color:#bbb;font-size:14px}
.lb button{position:absolute;background:rgba(255,255,255,.12);color:#fff;border:0;width:52px;height:52px;border-radius:50%;font-size:28px;line-height:1;cursor:pointer;font-family:var(--font)}
.lb button:hover{background:rgba(255,255,255,.25)}
.lb .x{top:10px;right:10px}
.lb .prev{left:10px;top:50%;transform:translateY(-50%)}
.lb .next{right:10px;top:50%;transform:translateY(-50%)}
@media (max-width:600px){.lb .prev,.lb .next{top:auto;bottom:14px;transform:none}}
body.lb-on{overflow:hidden}
/* WeChat pill (opens the QR modal via site.js; plain link without JS) */
.b-wc{background:var(--wechat);border-color:var(--wechat);color:#fff}
.b-wc svg .k{fill:var(--wechat)}
.b-wc svg .o{stroke:var(--wechat);stroke-width:1.3}
.wc-toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));z-index:60;transform:translate(-50%,12px);max-width:calc(100% - 32px);padding:12px 20px;border-radius:999px;background:var(--ink);color:#fff;font-size:16px;font-weight:600;line-height:1.4;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
.wc-toast.on{opacity:1;transform:translate(-50%,0)}
/* WeChat modal: small centered card with dim backdrop (same on desktop and mobile) */
.wcm{position:fixed;inset:0;z-index:55;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(20,20,20,.55)}
.wcm[hidden]{display:none}
.wcm-card{position:relative;width:100%;max-width:280px;max-height:100%;overflow:auto;padding:28px 20px 20px;background:#fff;border-radius:20px;text-align:center;box-shadow:0 24px 60px -20px rgba(0,0,0,.45)}
.wcm-x{position:absolute;top:6px;right:6px;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--muted);font-size:28px;line-height:1;cursor:pointer;font-family:var(--font)}
.wcm-x:hover{background:var(--soft);color:var(--ink)}
.wcm-t{margin:0 28px 12px;font-size:18px;line-height:1.4}
.wcm-qr{width:180px;height:180px;margin:0 auto;image-rendering:pixelated}
.wcm-link{display:inline-flex;align-items:center;min-height:44px;padding:0 6px;color:var(--wechat);font-size:15px;font-weight:600}
.wcm-id{margin:0 0 12px;font-size:16px;font-weight:700;letter-spacing:.02em;-webkit-user-select:all;user-select:all;word-break:break-all}
.wcm-copy{width:100%;min-height:48px;font-size:16px;font-family:inherit;cursor:pointer;background:var(--wechat);border-color:var(--wechat);color:#fff}
body.wcm-on{overflow:hidden}
/* brands page — 2 / 3 / 4 columns; extra thumbs hidden on mobile (lightbox still has all) */
.brands-hd{padding:40px 0 4px}
.brands-intro{margin:8px 0 6px;font-size:clamp(18px,3vw,22px);font-weight:600;line-height:1.5;max-width:34em}
.brands{padding:32px 0 56px}
.bgrid{list-style:none;margin:0 auto;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px;max-width:1080px}
@media (min-width:700px){.bgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 20px}}
@media (min-width:1024px){.bgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:40px 24px}}
.bc{min-width:0}
.bc a{display:block;text-decoration:none}
.bc-cover{position:relative;border-radius:6px;overflow:hidden;background:#fff;aspect-ratio:1/1}
.bc-cover img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.bc-cover:hover img{transform:scale(1.03)}
.bc-n{position:absolute;right:6px;bottom:6px;padding:1px 8px;border-radius:999px;background:rgba(20,20,20,.62);color:#fff;font-size:12px;font-weight:600;line-height:1.6}
.bc-thumbs{display:none}
@media (min-width:700px){
  .bc-n{display:none}
  .bc-thumbs{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
  .bc-thumbs a{width:44px;height:44px;border-radius:6px;overflow:hidden;background:#fff}
  .bc-thumbs img{width:100%;height:100%;object-fit:cover}
  .bc-none{height:44px}
}
.bc h2{margin:10px 0 0;font-size:15px;line-height:1.35}
.bc p{margin:3px 0 0;font-size:13px;line-height:1.5;color:var(--ink)}
.bc .bc-meta{font-size:12px;color:var(--muted)}
@media (min-width:700px){.bc h2{font-size:16px}.bc p{font-size:14px}.bc .bc-meta{font-size:13px}}
.brands-cta{text-align:center;padding:56px 0 72px}
.brands-cta .invite{font-size:clamp(20px,3.4vw,26px);font-weight:600;margin:0 0 20px}
.clients{margin:-16px 0 0;font-size:14px;line-height:1.6;color:var(--muted);max-width:60em}
.clients b{color:var(--ink);font-weight:600}
