/* Shared stylesheet for the rebuilt pages: fonts, design tokens, page shell, header and footer.
   One file linked from every page, so the browser downloads it once and reuses it — the Framer export
   instead inlined ~160 kB of CSS into each of the 10 HTML files.

   The site uses exactly three faces: DM Sans 300, 400 and 700 (one variable file covers all three; the 400 rule
   declares the 300–400 range so the browser takes Light from the same file instead of faking it) and Syne 800.
   The Framer export declared 279 @font-face rules, mostly Inter in nine weights that nothing uses. */

@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 300 400; font-display: swap; src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu6-K6h9Q.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(https://fonts.gstatic.com/s/dmsans/v17/rP2Yp2ywxg089UriI5-g4vlH9VoD8Cmcqbu0-K4.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Syne'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/fontshare/wf/WMLFYK4WLAEGUZI75GLRKSJSV36DAKYG/7FN34JXVUK5CO2P2QCUTGI3KYPETO6GN/J3Z3UROQ6US22LVWHD2QJ5SGZQKV5FDW.woff2) format('woff2'); }

:root{
  --bg:#000;
  --fg:#fff;
  --muted:#808080;
  --line:#2e2e2e;
  --accent:#39ff99;
  --radius:24px;
  --content:1100px;       /* width of the content column */
  --pad:20px;             /* side padding of the content column */
  --nav-hover:#86efac;   /* kolor kopii wjeżdżającej na hoverze — logo i zakładki */
}
@media (min-width:768px){ :root{ --pad:40px } }
@media (min-width:1400px){ :root{ --pad:0px } }

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--fg);
  font:400 16px/1.4 "DM Sans",sans-serif;
  /* clip, not hidden: hidden makes body a scroll container, which silently kills every
     position:sticky inside it (the sticky names in "Co robimy?"). clip stops the sideways
     overflow just the same without creating one. */
  overflow-x:clip;
}
img,video{display:block;max-width:100%}
a{color:inherit}

.page{width:100%;max-width:calc(var(--content) + var(--pad) * 2);margin:0 auto;padding-inline:var(--pad)}

/* Section heading inside the content column ("Co robimy?", "Wybrane realizacje").
   Same Syne face as the hero, one step down, on the page's usual 768/1100 thresholds. */
.sec-title{margin:0;font-family:"Syne",sans-serif;font-weight:800;font-size:56px;line-height:1;letter-spacing:-2px}
@media (min-width:768px) and (max-width:1099.98px){ .sec-title{font-size:44px} }
@media (max-width:767.98px){ .sec-title{font-size:28px;letter-spacing:-1px} }

/* ---------------------------------------------------------------- buttons */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 24px;border-radius:var(--radius);
  background:var(--fg);color:#000;text-decoration:none;
  border:1px solid transparent;
  transition:background-color .2s,color .2s,border-color .2s;
}
.btn--sm{padding:8px 16px}
.btn--ghost{background:transparent;color:var(--fg);border-color:var(--line)}
button.btn{font:inherit;cursor:pointer}
@media (hover:hover){ .btn:hover{background:transparent;color:var(--fg);border-color:var(--line)} .btn--ghost:hover{border-color:var(--fg)} }

/* ---------------------------------------------------------------- header */
.nav{position:relative;z-index:10;width:100%;background:linear-gradient(180deg,#000 0%,rgba(0,0,0,0) 100%)}
/* The header lines up with the content column, not with a wider band of its own: same max-width, same
   side padding and the same auto margins as .page, so the logo starts exactly where every section does.
   The Framer original put the header in a 1400px band with its own --nav-pad (40/80), which left it 60-70px
   to the left of the content at every width above 1180 — visible as a step at 1300. --nav-pad is gone. */
.nav__inner{display:flex;align-items:center;gap:24px;width:100%;max-width:calc(var(--content) + var(--pad) * 2);margin:0 auto;padding:25px var(--pad) 24px}
.nav__row{flex:1 0 0;display:flex;align-items:center;justify-content:space-between;height:44px}
/* Same roll as the menu links, measured off the Framer original: on hover the mark slides up out of the
   32px window and a second copy rises in from below. Unlike the links, the incoming copy starts at 70%
   and brightens to full, which is what gives the logo its slight shimmer. */
.nav__logo{display:flex;flex-direction:column;height:32px;overflow:hidden;flex:none}
.nav__logo img{flex:none;height:32px;width:auto}
.nav__logo span{flex:none;height:32px;aspect-ratio:320/86;background:var(--nav-hover);opacity:.7;
  -webkit-mask:var(--logo) left center/contain no-repeat;mask:var(--logo) left center/contain no-repeat}
.nav__logo>*{transition:transform .25s cubic-bezier(.44,0,.56,1),opacity .25s cubic-bezier(.44,0,.56,1)}
@media (hover:hover){
  .nav__logo:hover>*{transform:translateY(-32px)}
  .nav__logo:hover span{opacity:1}
}
.nav__menu{display:flex;align-items:center;gap:24px}

/* menu item: two copies of the label stacked, the second slides up on hover */
.nav__link{height:22px;overflow:hidden;display:flex;flex-direction:column;text-decoration:none;flex:none}
.nav__link span{flex:none;height:22px;line-height:22px;white-space:pre}
.nav__link span+span{color:var(--nav-hover)}
.nav__link>*{transition:transform .25s cubic-bezier(.44,0,.56,1)}
@media (hover:hover){ .nav__link:hover>*{transform:translateY(-22px)} }

/* burger, phones only */
.nav__burger{display:none;flex:none;width:32px;height:32px;padding:0;border:0;background:none;cursor:pointer;position:relative}
.nav__burger span{position:absolute;left:calc(50% - 12px);width:24px;height:2px;background:var(--fg);transition:transform .25s cubic-bezier(.44,0,.56,1),opacity .2s}
.nav__burger span:nth-child(1){top:7px}
.nav__burger span:nth-child(2){top:calc(50% - 1px)}
.nav__burger span:nth-child(3){bottom:7px}
.nav__burger[aria-expanded="true"] span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.nav__burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav__burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

@media (max-width:767.98px){
  .nav__inner{flex-direction:column;align-items:stretch;gap:16px;padding:25px var(--pad) 24px}
  .nav__row{flex:none}
  .nav__burger{display:block}
  .nav__menu{display:none;flex-direction:column;align-items:center;gap:32px;padding:24px 0 8px}
  .nav--open .nav__menu{display:flex}
  .nav--open{background:var(--bg)}
  .nav__link{height:auto;overflow:visible}
  .nav__link span+span{display:none}
  .nav__logo span{display:none}
  .nav__link span{font-size:20px;height:auto;line-height:1.4}
}

/* ---------------------------------------------------------------- footer */
.foot{padding-block:0 40px}
.foot__top{display:flex;gap:40px;justify-content:space-between}
.foot__cta{width:565px;max-width:100%}
.foot__cta p{margin:0 0 32px;font-size:20px;line-height:28px}
.foot__links{flex:none;width:385px;max-width:100%}
.foot__label{margin:0 0 32px;font-size:10px;line-height:14px;color:var(--fg)}
/* two columns: the site's own page on the left, the outside profiles on the right */
.foot__cols{display:grid;grid-template-columns:198px 1fr;width:100%}
.foot__cols>div{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.foot__cols a{height:22px;overflow:hidden;display:flex;flex-direction:column;text-decoration:none;width:max-content}
.foot__cols a span{flex:none;height:22px;line-height:22px}
.foot__cols a span+span{color:var(--nav-hover)}
.foot__cols a>*{transition:transform .25s cubic-bezier(.44,0,.56,1)}
@media (hover:hover){ .foot__cols a:hover>*{transform:translateY(-22px)} }
.foot__bottom{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px 32px;margin-top:80px;font-size:14px;color:var(--muted)}
.foot__note{margin:0}
.foot__legal{display:flex;flex-wrap:wrap;gap:8px 24px}
.foot__legal a,.foot__legal button{padding:0;border:0;background:none;font:inherit;color:inherit;text-decoration:none;cursor:pointer;transition:color .25s}
@media (hover:hover){ .foot__legal a:hover,.foot__legal button:hover{color:var(--fg)} }

@media (max-width:767.98px){
  .foot__top{flex-direction:column;gap:56px}
  .foot__cta p{font-size:16px;line-height:22.4px}
  .foot__cols{grid-template-columns:repeat(2,1fr)}
  .foot__bottom{margin-top:56px}
}

/* ---------------------------------------------------------------- cookie consent */
/* A card that slides in from the right into the bottom-right corner; on phones it spans the width of the
   screen and rises from the bottom edge instead. Markup: renderConsent() in
   shell.mjs, behaviour: consent.mjs. The hidden attribute needs its own rule because .ck and .btn set display. */
.ck{
  position:fixed;z-index:100;right:20px;bottom:20px;
  display:flex;flex-direction:column;gap:12px;
  width:420px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);overflow:auto;
  padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:#0a0a0a;
  animation:ck-in .25s cubic-bezier(.44,0,.56,1);
}
.ck[hidden],.ck [hidden]{display:none}
.ck:focus{outline:none}
@keyframes ck-in{ from{opacity:0;transform:translateX(16px)} }
@keyframes ck-up{ from{opacity:0;transform:translateY(12px)} }
.ck__title{margin:0;font-size:20px;line-height:28px;font-weight:500}
.ck__text{margin:0;font-size:14px;line-height:21px;color:#b3b3b3}
.ck__text a{color:var(--fg);text-underline-offset:3px}
.ck__opt{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-block:12px;border-top:1px solid var(--line);font-size:13px;line-height:19px;color:#b3b3b3;cursor:pointer}
.ck__opt b{display:block;font-size:14px;line-height:21px;font-weight:500;color:var(--fg)}
.ck__opt input{appearance:none;-webkit-appearance:none;flex:none;position:relative;width:40px;height:24px;margin:2px 0 0;border-radius:12px;background:var(--line);cursor:pointer;transition:background-color .2s}
.ck__opt input::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:var(--fg);transition:transform .2s,background-color .2s}
.ck__opt input:checked{background:var(--accent)}
.ck__opt input:checked::after{transform:translateX(16px);background:#000}
.ck__opt input:disabled{opacity:.45;cursor:default}
.ck__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:4px}
.ck__actions .btn{justify-content:center;gap:0;white-space:nowrap}
.ck__more{margin-right:auto;padding:0;border:0;background:none;font:inherit;font-size:14px;color:#b3b3b3;text-decoration:underline;text-underline-offset:3px;cursor:pointer;transition:color .25s}
.ck :focus-visible{outline:2px solid var(--fg);outline-offset:2px}
@media (hover:hover){
  .ck__more:hover{color:var(--fg)}
}
@media (max-width:767.98px){
  .ck{left:12px;right:12px;bottom:12px;width:auto;max-width:none;max-height:calc(100dvh - 24px);padding:20px;animation-name:ck-up}
  .ck__actions{flex-wrap:wrap}
  /* equal halves while both labels fit on one row; otherwise each button takes a row of its own */
  .ck__actions .btn{flex:1 1 120px}
  .ck__more{flex-basis:100%;text-align:left;margin-bottom:4px}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}
