/* Wizytówka studia Brickweavers. Paleta i krój z płótna logo (21.10.2026): Cegła, Zendrówka, Złota nić, Stare złoto,
   Pergamin, Atrament; Barlow Semi Condensed (Medium w tekście, SemiBold w nagłówkach). Fonty z @fontsource, z własnego
   serwera, bez Google Fonts. */
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/barlow-latin-ext-500.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: 'Barlow Semi Condensed'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonts/barlow-latin-500.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: 'Barlow Semi Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/barlow-latin-ext-600.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: 'Barlow Semi Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/barlow-latin-600.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; }

:root {
  color-scheme: light dark;
  --tlo: #F4ECDD;          /* Pergamin */
  --tlo-karta: #EDE3D1;
  --linia: #CDBFA6;
  --tekst: #231D1A;
  --tekst-2: #4F453D;
  --cegla: #A8432B;        /* Cegła: pas cegieł, znak */
  --akcent: #A8432B;       /* etykiety i linki: 5,1:1 na Pergaminie */
  --akcent-hover: #5A1F12; /* Zendrówka */
  --nic: #B98526;          /* Stare złoto: obwódka fokusu, kreska stopki */
  --przycisk: #A8432B;
  --przycisk-tekst: #F4ECDD;
  --przycisk-hover: #5A1F12;
}
@media (prefers-color-scheme: dark) {
  :root {
    --tlo: #1C1714;          /* Atrament */
    --tlo-karta: #26201C;
    --linia: #4A3F37;
    --tekst: #F4ECDD;
    --tekst-2: #CDBFA6;
    --cegla: #B44C31;
    --akcent: #E3B458;       /* Złota nić: Cegła na Atramencie ma tylko 3,4:1 */
    --akcent-hover: #F4ECDD;
    --nic: #E3B458;
    --przycisk: #E3B458;
    --przycisk-tekst: #1C1714;
    --przycisk-hover: #F4ECDD;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--tlo);
  color: var(--tekst);
  font: 500 1.1875rem/1.55 'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
  font-kerning: normal;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 600; margin: 0; }
p { margin: 0; }

a { color: var(--akcent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--akcent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--nic); outline-offset: 3px; border-radius: 2px; }

.pomin {
  position: absolute; left: 1rem; top: -4rem; z-index: 2;
  padding: 0.5rem 1rem; background: var(--przycisk); color: var(--przycisk-tekst); border-radius: 6px;
}
.pomin:focus { top: 1rem; }

.kontener { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 600px) { .kontener { padding: 0 2rem; } }

.etykieta {
  font-size: 0.875rem; font-weight: 600; line-height: 1.3;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--akcent);
}

/* Pas cegieł w wiązaniu (dwa rzędy z przesunięciem): kształt z img/pas.svg, kolor z palety, więc działa w obu motywach. */
.pas {
  height: 22px;
  background: var(--cegla);
  -webkit-mask: url(/img/pas.svg) repeat-x left center / 48px 22px;
  mask: url(/img/pas.svg) repeat-x left center / 48px 22px;
}

/* Nagłówek */
.naglowek-wnetrze { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.5rem; }
.logo { display: block; flex: 0 1 auto; min-width: 0; padding: 0.5rem 0; }
.logo img { width: 15rem; height: auto; }
.jezyki { display: flex; gap: 0.25rem; font-weight: 600; letter-spacing: 0.08em; }
.jezyki a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem;
  border-radius: 6px; text-decoration: none; color: var(--tekst-2);
}
.jezyki a:hover { color: var(--akcent); }
.jezyki a[aria-current="page"] { color: var(--tekst); box-shadow: inset 0 -2px 0 var(--cegla); border-radius: 0; }

/* Wstęp */
.wstep { display: grid; gap: 2rem; align-items: center; padding-top: 3rem; padding-bottom: 3.5rem; }
.wstep h1 {
  margin-top: 0.75rem; max-width: 16ch;
  font-size: clamp(2.5rem, 4.6vw + 1.2rem, 4.75rem); line-height: 1.02; letter-spacing: -0.005em;
}
.wstep .lead { margin-top: 1.5rem; max-width: 38rem; font-size: 1.3125rem; color: var(--tekst-2); }
.wstep-znak { display: none; justify-self: end; }
.wstep-znak img { width: 13rem; height: auto; }
@media (min-width: 860px) {
  .wstep { grid-template-columns: minmax(0, 1fr) auto; padding-top: 4.5rem; padding-bottom: 5rem; }
  .wstep-znak { display: block; }
}

/* Gra */
.sekcja { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.sekcja > .etykieta { margin-bottom: 1.25rem; }
.karta {
  display: grid; overflow: hidden;
  background: var(--tlo-karta); border: 1px solid var(--linia); border-radius: 12px;
}
.karta .kadr { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.karta-tekst { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem 1.25rem 1.75rem; }
@media (min-width: 600px) { .karta-tekst { padding: 2rem; } }
@media (min-width: 900px) {
  .karta { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .karta .kadr { aspect-ratio: auto; min-height: 100%; }
  .karta-tekst { padding: 2.25rem 2.5rem; justify-content: center; }
}
.karta-tytul { display: flex; align-items: center; gap: 0.875rem; }
.karta-tytul img { width: 3rem; height: 3rem; border-radius: 10px; }
.karta h3 { font-size: 2rem; line-height: 1.1; }
.platformy { font-weight: 600; color: var(--tekst-2); }
.linki { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.przycisk {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1.25rem;
  background: var(--przycisk); color: var(--przycisk-tekst); border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.przycisk:hover { background: var(--przycisk-hover); color: var(--tlo); }
.linki a:not(.przycisk) { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }

/* Kontakt i dane firmy */
.dwie { display: grid; gap: 3rem; }
@media (min-width: 760px) { .dwie { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dwie .etykieta { margin-bottom: 1.25rem; }
dl { margin: 0; }
dt { font-size: 0.9375rem; color: var(--tekst-2); }
dd { margin: 0 0 1rem; font-size: 1.3125rem; font-weight: 600; overflow-wrap: anywhere; }
dd a { display: inline-block; padding: 0.25rem 0; }
address { font-style: normal; font-size: 1.3125rem; font-weight: 600; margin-bottom: 1.25rem; }
.numery { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1.25rem; align-items: baseline; }
.numery dd { margin: 0; font-variant-numeric: tabular-nums; }
.przypis { margin-top: 1rem; font-size: 0.9375rem; color: var(--tekst-2); }

/* Prywatność */
.prywatnosc p { max-width: 46rem; color: var(--tekst-2); }

/* Stopka */
.stopka { margin-top: 2rem; }
.stopka-wnetrze {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem;
  padding-top: 1.5rem; padding-bottom: 2rem; font-size: 1rem; color: var(--tekst-2);
}
.stopka-znak { display: flex; align-items: center; gap: 0.75rem; }
.stopka-znak img { width: 1.5rem; height: auto; }

/* Strona 404 */
.blad { padding-top: 4rem; padding-bottom: 5rem; display: grid; gap: 1.25rem; }
.blad h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); line-height: 1.05; }

@media (prefers-reduced-motion: no-preference) {
  a, .przycisk { transition: color 0.15s, background-color 0.15s, text-decoration-thickness 0.15s; }
}
