/* Mosaico — strona marki „Mozaikowe światy”. Jasna, żeby przejście do Mosaico City nie było skokiem. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/fraunces-latin-ext-opsz-normal.woff2') format('woff2-variations');
  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: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/fraunces-latin-opsz-normal.woff2') format('woff2-variations');
  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: 'Fraunces';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/fraunces-latin-ext-opsz-italic.woff2') format('woff2-variations');
  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: 'Fraunces';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/fraunces-latin-opsz-italic.woff2') format('woff2-variations');
  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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  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: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  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 {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --sunken: #ebe6dc;
  --ink: #1d1f24;
  --muted: #5d6270;
  --line: #e5e0d6;
  --dash: #cfc7b8;
  --accent: #c4653d;
  --accent-soft: #fdf0e9;
  --blue: #1f5fbf;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif;
  --page: 1240px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* „Poznaj Mosaico City ↓” przewija do sekcji płynnie (chyba że ktoś ograniczył animacje w systemie). */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  text-wrap: balance;
}

/* Tylko boczne odstępy — pionowe ustawiają sekcje (inaczej ich `padding` zjadłby boki). */
.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: #33363e;
}

.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--sunken);
  font-size: 13px;
  font-weight: 700;
}

.lang a,
.lang span {
  padding: 4px 9px;
  border-radius: 7px;
  text-decoration: none;
  color: var(--muted);
}

.lang span {
  background: var(--surface);
  color: var(--ink);
}

.lang a:hover {
  color: var(--ink);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  /* Odrobinę ciemniejszy niż --accent: mały tekst z kontrastem ≥ 4,5:1 na białym. */
  color: #b45c38;
}

/* ---------- Baner: miasto na całą szerokość, w środku wycinka z treścią ---------- */

.hero {
  position: relative;
  height: max(50vw, 660px);
  overflow: hidden;
}

/* Dwie plansze obok siebie (2:1), wycentrowane; na szerszych ekranach przycinane z góry i z dołu. */
.hero-board {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 100%;
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 10px rgba(40, 30, 20, 0.26));
}

/* Do pierwszego wyliczenia wycinki plansza jest ukryta — bez mignięcia pełnego miasta przy wejściu. */
.hero-board.pending {
  visibility: hidden;
}

.tile {
  position: absolute;
}

.tile i {
  position: absolute;
  inset: 0;
  background-size: cover;
}

.tile i.next {
  opacity: 0;
  transition: opacity 0.55s ease;
}

.tile i.next.on {
  opacity: 1;
}

.tile.cut {
  visibility: hidden;
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 20px;
  text-align: center;
}

.hero-panel .lang {
  margin-bottom: 26px;
}

.hero-logo {
  height: 118px;
  width: auto;
  margin-bottom: 24px;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -1px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
}

.hero p {
  margin: 14px 0 28px;
  max-width: 42ch;
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Mosaico City: trzy kolumny, cała sekcja mieści się na ekranie laptopa ---------- */

.city {
  padding-block: 64px 56px;
}

.city-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px minmax(0, 0.95fr);
  gap: 44px;
  align-items: center;
}

.kind {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
}

.kind .icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.city h2 {
  margin: 14px 0 4px;
  font-weight: 800;
  font-size: clamp(40px, 3.9vw, 56px);
  line-height: 0.95;
  letter-spacing: -1.5px;
}

.city .sub {
  margin: 0 0 12px;
  font: 700 clamp(20px, 1.9vw, 24px) / 1.25 var(--display);
  color: var(--blue);
}

.city .lead {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}

.city .btn {
  margin-top: 24px;
  height: 54px;
  padding: 0 26px;
}

.video {
  width: 100%;
  max-width: 440px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--sunken);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.4);
}

.video video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.features li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.features .icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.features b {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.features span {
  display: block;
  margin-top: 1px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- Wkrótce + zespół ---------- */

.studio {
  margin: 40px auto 90px;
  padding: 44px 48px;
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.soon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
}

.studio h2 {
  margin: 8px 0 10px;
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.8px;
}

.studio p {
  margin: 0;
  max-width: 54ch;
  font-size: 18px;
  color: var(--muted);
}

/* Pierwszy kafelek to Mosaico City, pozostałe czekają na kolejne projekty. */
.slots {
  display: grid;
  grid-template-columns: repeat(2, 88px);
  gap: 10px;
}

.slots i {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  font-style: normal;
}

.slots .done {
  background: url('/img/world-c1.webp') center / cover;
}

.slots .later {
  display: grid;
  place-items: center;
  border: 2px dashed var(--dash);
  color: #a39a8a;
  font: 700 24px var(--display);
}

.team {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.team .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.team ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.team li {
  display: grid;
  grid-template-columns: 112px auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
}

.team img {
  grid-row: span 2;
  width: 112px;
  height: 112px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.35);
}

.team b {
  align-self: end;
  font-size: 16px;
}

.team li span {
  align-self: start;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Stopka ---------- */

footer {
  border-top: 1px solid var(--line);
  padding-block: 30px 40px;
  font-size: 14px;
  color: var(--muted);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.foot img {
  height: 26px;
  width: auto;
}

.foot .mail {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.foot .mail:hover {
  text-decoration: underline;
}

/* ---------- Wąski ekran ---------- */

@media (max-width: 900px) {
  /* Plansze jedna pod drugą (1:2) na całą szerokość — małe kafelki, miasto nad treścią i pod nią. */
  .hero {
    height: max(200vw, 780px);
  }

  .hero-board {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 2;
  }

  .hero-logo {
    height: 56px;
    margin-bottom: 14px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero p {
    font-size: 17px;
  }

  .city-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .video {
    margin: 0 auto;
  }

  .studio {
    padding: 28px;
  }

  .soon {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

/* ---------- Strona 404: fragment miasta z brakującym kafelkiem ---------- */

.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-block: 48px;
  text-align: center;
}

.nf-logo {
  height: 52px;
  width: auto;
  margin-bottom: 18px;
}

.nf-tiles {
  display: grid;
  grid-template-columns: repeat(3, 84px);
  grid-template-rows: repeat(3, 84px);
  filter: drop-shadow(0 6px 10px rgba(40, 30, 20, 0.25));
  margin-bottom: 10px;
}

.nf-tiles i {
  background-size: cover;
}

.nf-tiles .nf-missing {
  margin: 6px;
  border: 2px dashed var(--dash);
  border-radius: 10px;
  filter: none;
}

.notfound h1 {
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -1px;
}

.notfound h1 em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
}

.notfound p {
  margin: 0;
  max-width: 44ch;
  font-size: 18px;
  color: var(--muted);
}

.nf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

.nf-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.nf-ghost:hover {
  background: var(--sunken);
}

.notfound .nf-en {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nf-en a {
  font-weight: 700;
}

@media (max-width: 480px) {
  .nf-tiles {
    grid-template-columns: repeat(3, 68px);
    grid-template-rows: repeat(3, 68px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile i.next {
    transition: none;
  }
}
