/* ==========================================================================
   NO.14 — przewodnik dla gości
   Paleta i typografia zgodne z projektem wyjściowym (no14-landing-v2).
   ========================================================================== */

/* --- FONTY (self-hosted, variable 400–700, subsety latin + latin-ext) ----- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.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: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/oswald-latin.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: 'Oswald';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/oswald-latin-ext.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;
}

/* --- TOKENY --------------------------------------------------------------- */

:root {
  --ink: #1C1C1A;
  --base: #EDEAE3;
  --card: #FFFFFF;
  --rust: #B5561F;
  --rust-dark: #8F4218;
  --steel: #6B6862;
  --line: #DAD5CB;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Oswald', 'Inter', system-ui, sans-serif;

  --pad: 20px;
  --radius: 2px;

  color-scheme: light;
}

/* --- RESET ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: 0.2px; }

a { color: inherit; }

/* Widoczny fokus klawiatury na wszystkim, co interaktywne. */
:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.contact :focus-visible { outline-color: #E8A87C; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 50%;
  transform: translateX(-50%);
}

.page {
  max-width: 480px;
  margin: 0 auto;
  background: var(--base);
  min-height: 100vh;
}

/* --- HEADER --------------------------------------------------------------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--base);
  z-index: 10;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--steel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px 5px;
  background: var(--card);
  flex-shrink: 0;
}
.lang-toggle button {
  padding: 2px 5px;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color .15s ease;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button[aria-pressed='true'] { color: var(--ink); cursor: default; }
.lang-toggle .sep { color: var(--line); }

/* --- HERO ----------------------------------------------------------------- */

.hero { padding: 36px var(--pad) 30px; }

.hero-tag {
  font-size: 13px;
  color: var(--rust);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.hero h1 { font-size: 34px; line-height: 1.08; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--rust); }
.hero-lead { color: var(--steel); max-width: 34ch; }

.hero-photo {
  margin: 22px var(--pad) 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #b8b2a4;
}
.hero-photo img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.hero-photo .cap {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(28, 28, 26, 0.82);
  color: #fff;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: var(--radius);
  letter-spacing: 0.3px;
}

/* --- SEKCJE --------------------------------------------------------------- */

section {
  padding: 34px var(--pad);
  border-bottom: 1px solid var(--line);
}

.section-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.section-label {
  font-size: 13px;
  color: var(--steel);
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Znaczek "14" — obrys tabliczki adresowej z czterema śrubkami. */
.badge {
  width: 22px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  position: relative;
  flex-shrink: 0;
}
.badge::before, .badge::after, .badge i {
  content: '';
  position: absolute;
  width: 2.5px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 50%;
}
.badge::before { left: 3px; top: 3px; }
.badge::after  { left: 3px; bottom: 3px; }
.badge i       { right: 3px; }
.badge i.top    { top: 3px; }
.badge i.bottom { bottom: 3px; }

section h2 { font-size: 24px; margin-bottom: 16px; }

.section-lead {
  color: var(--steel);
  font-size: 13.5px;
  margin: -6px 0 16px;
}

.note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--steel);
  border-left: 2px solid var(--rust);
  padding-left: 10px;
}
.note a { color: var(--rust); font-weight: 600; text-decoration: underline; }
.note a:hover { color: var(--rust-dark); }

/* --- KARTY ---------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, background .15s ease;
}
a.card:hover { border-color: #C7C0B2; }
a.card:active { background: #F4F1EA; }

.card.featured {
  border-color: var(--rust);
  border-width: 1.5px;
  background: #FBF3EC;
}
.card.featured:hover { border-color: var(--rust-dark); }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.card .name {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.card.featured .name { text-decoration-color: var(--rust); }
.card .name a { text-decoration: inherit; text-decoration-color: inherit; }

.card .dist {
  font-size: 12px;
  color: var(--rust);
  font-weight: 600;
  white-space: nowrap;
}
.card .desc { font-size: 13.5px; color: var(--steel); }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--rust);
  background: #F3E4D8;
  padding: 2px 7px;
  border-radius: var(--radius);
  margin-top: 8px;
}
a.tag-link {
  text-decoration: none;
  padding: 5px 9px;
  font-size: 12px;
  transition: background .15s ease;
}
a.tag-link:hover { background: #EBD5C4; }

/* --- PLACEHOLDER ---------------------------------------------------------- */

/* Świadomie krzyczy, żeby nie wyjechał na produkcję niezauważony.
   Po wpisaniu prawdziwej wartości usuń klasę "todo" z elementu w index.html. */
.todo {
  color: var(--rust) !important;
  font-weight: 500 !important;
  font-style: italic;
  border-bottom: 1px dashed var(--rust);
}
.contact .todo {
  color: #E8A87C !important;
  border-bottom-color: #E8A87C;
}

/* --- KARUZELA I CHIPY ----------------------------------------------------- */

.carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-bottom: 14px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.carousel::-webkit-scrollbar { height: 5px; }
.carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.carousel-item {
  flex: 0 0 78%;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: #d8d2c4;
}
.carousel-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.carousel-item .tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  background: linear-gradient(0deg, rgba(28, 28, 26, 0.85), transparent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 18px 10px 7px;
  border-radius: 0;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 13px;
  font-size: 13.5px;
  font-weight: 500;
}

/* --- KONTAKT -------------------------------------------------------------- */

.contact { background: var(--ink); color: #fff; border-bottom: none; }
.contact h2 { color: #fff; }
.contact .section-label { color: #B8B4AC; }
.contact .badge { border-color: #fff; }
.contact .badge::before,
.contact .badge::after,
.contact .badge i { background: #fff; }

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #3A3A37;
  text-decoration: none;
  color: inherit;
}
.contact-row:first-of-type { border-top: none; }
.contact-row .ico {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--rust);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--rust);
  font-size: 15px;
}
a.contact-row:hover .ico { border-color: #E8A87C; color: #E8A87C; }
.contact-row .txt .k {
  display: block;
  font-size: 11px;
  color: #918D85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-row .txt .v { display: block; font-size: 15px; font-weight: 600; }

footer {
  padding: 20px;
  text-align: center;
  font-size: 11px;
  color: var(--steel);
  background: var(--ink);
}

/* ==========================================================================
   ANKIETA (/ankieta/)
   --------------------------------------------------------------------------
   Kontrolki to prawdziwe input[type=radio] / input[type=checkbox] — sam
   input jest przezroczysty i rozciagniety na cala kontrolke, a wyglad rysuje
   label. Dzieki temu dziala klawiatura, czytnik ekranu i klikniecie w dowolne
   miejsce kafla. Stan zaznaczenia bierze :has(), wiec chipy i radio dzialaja
   nawet bez JS-a.
   ========================================================================== */

/* Widoczne tylko dla czytnikow ekranu. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page--form { padding-bottom: 40px; }

.form-intro {
  padding: 30px var(--pad) 6px;
  text-align: center;
}
.form-intro .eyebrow {
  font-size: 13px;
  color: var(--rust);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.form-intro h1 { font-size: 28px; line-height: 1.15; margin-bottom: 10px; }
.form-intro .lead {
  font-size: 14px;
  color: var(--steel);
  max-width: 34ch;
  margin: 0 auto;
}

form { padding: 20px var(--pad); }

/* fieldset bez domyslnej ramki przegladarki */
.q {
  margin-bottom: 30px;
  border: 0;
  min-width: 0;
}
.qtitle {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  padding: 0;
}
.q .hint {
  font-size: 12.5px;
  color: var(--steel);
  margin: -6px 0 12px;
}
.field-err {
  font-size: 12.5px;
  color: #8A2E2E;
  font-weight: 500;
  margin-top: 8px;
}

/* --- gwiazdki --- */

.stars { display: flex; gap: 8px; }
.star {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.star input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.star .glyph {
  font-size: 20px;
  line-height: 1;
  color: var(--line);
  transition: color .15s ease;
}
/* .is-on dokłada ankieta.js — wypełnia gwiazdki kumulatywnie (1..N). */
.star.is-on, .star:has(input:checked) {
  border-color: var(--rust);
  background: #FBF3EC;
}
.star.is-on .glyph, .star:has(input:checked) .glyph { color: var(--rust); }
.star input:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

/* --- chipy (wielokrotny wybor) --- */

.chips--input .chip {
  position: relative;
  border-width: 1.5px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.chips--input .chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chips--input .chip:has(input:checked) {
  border-color: var(--rust);
  background: #FBF3EC;
  color: var(--rust-dark);
}
.chips--input .chip:has(input:focus-visible) {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

/* --- wybor jednokrotny (polecil(a)bys?) --- */

.radio-row { display: flex; gap: 10px; }
.radio-opt {
  position: relative;
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.radio-opt input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.radio-opt:has(input:checked) {
  border-color: var(--rust);
  background: #FBF3EC;
  color: var(--rust-dark);
}
.radio-opt:has(input:focus-visible) {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

/* --- pola tekstowe i lista --- */

textarea, select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  font-family: var(--sans);
  font-size: 14px;
  background: var(--card);
  color: var(--ink);
  resize: vertical;
}
textarea { min-height: 80px; display: block; }
textarea:focus, select:focus { border-color: var(--rust); }

/* Wlasna strzalka — bez niej select z appearance:none wyglada jak pole
   tekstowe i gosc nie wie, ze da sie go rozwinac. */
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--steel);
  border-bottom: 2px solid var(--steel);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; }
.consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--rust); }
.consent label { font-size: 12.5px; color: var(--steel); line-height: 1.4; }

/* --- wysylka --- */

.submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background .15s ease;
}
.submit-btn:hover { background: #2E2E2B; }
.submit-btn:active { background: var(--rust-dark); }
.submit-btn:disabled { opacity: .5; cursor: default; }

.privacy {
  font-size: 12px;
  color: var(--steel);
  line-height: 1.5;
  margin-top: 16px;
}

.alert {
  background: #FBEAEA;
  border: 1px solid #E5B8B8;
  color: #8A2E2E;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 20px;
}

/* Pulapka na boty — poza ekranem, ale bez display:none (czesc botow pomija
   pola ukryte tak wprost). */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- podziekowanie --- */

.thankyou { padding: 60px 24px; text-align: center; }
.thankyou .mark { font-size: 44px; margin-bottom: 16px; }
.thankyou h1 { font-size: 26px; margin-bottom: 10px; }
.thankyou h1:focus { outline: none; }
.thankyou p { font-size: 14px; color: var(--steel); }
.back-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.back-link:hover { color: var(--rust-dark); }

/* ==========================================================================
   WYNIKI ANKIETY (/wyniki/ — widok gospodarza za Basic Auth)
   ========================================================================== */

.host-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rust);
  border: 1px solid var(--rust);
  border-radius: var(--radius);
  padding: 5px 9px;
}

.results { padding: 26px var(--pad); }
.results h1 { font-size: 26px; margin-bottom: 6px; }
.results-sub {
  font-size: 12.5px;
  color: var(--steel);
  margin-bottom: 22px;
  border-left: 2px solid var(--rust);
  padding-left: 10px;
}

.stat-row { display: flex; gap: 10px; margin-bottom: 18px; }
.stat {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
}
.stat .num {
  display: block;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  color: var(--rust);
  line-height: 1.1;
}
.stat .lbl {
  display: block;
  font-size: 11px;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.results-actions { margin-bottom: 22px; }
.csv-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.csv-link:hover { color: var(--rust-dark); }

.resp {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}
.resp-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--steel);
  margin-bottom: 8px;
}
.stars-mini { color: var(--rust); font-size: 14px; margin-bottom: 8px; letter-spacing: 1px; }
.resp p { font-size: 13.5px; margin-bottom: 4px; }
.resp p:last-child { margin-bottom: 0; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--steel);
  font-size: 13.5px;
}

/* Ankieta na desktopie — jedna kolumna, ale szersza i wysrodkowana.
   Formularz w trzech kolumnach nikomu nie pomaga. */
@media (min-width: 768px) {
  /* .page.page--form, nie .page--form: blok DESKTOP nizej ustawia
     .page { max-width: none } i przy rownej specyficznosci wygralby
     kolejnoscia. To samo dotyczy header/footer ponizej. */
  .page.page--form { max-width: 620px; }
  .page--form > header { padding-inline: 40px; }
  .page--form > footer { padding-inline: 40px; }

  .form-intro { padding: 56px 40px 8px; }
  .form-intro h1 { font-size: 36px; }
  .form-intro .lead { font-size: 15px; }
  form { padding: 28px 40px; }
  .qtitle { font-size: 16px; }
  .star { width: 52px; height: 52px; }
  .star .glyph { font-size: 24px; }
  .thankyou { padding: 100px 40px; }
  .thankyou h1 { font-size: 32px; }
}

/* ==========================================================================
   DESKTOP
   --------------------------------------------------------------------------
   WSZYSTKO ponizej 768px zostaje dokladnie takie, jak bylo — cala warstwa
   desktopowa siedzi w @media (min-width: ...), wiec wersji mobilnej nie da
   sie tu przypadkiem ruszyc. Jesli zmieniasz cokolwiek dla telefonu, rob to
   w sekcjach POWYZEJ tego komentarza.

   Dwa progi:
   - 768px  — uklad sie rozszerza, karty w dwoch kolumnach, hero dwudzielny
   - 1024px — dochodzi nawigacja sekcji, karty w trzech kolumnach
   ========================================================================== */

@media (min-width: 768px) {
  :root {
    /* Tresc wysrodkowana w 1180px, ale nigdy blizej krawedzi niz 32px.
       Uzywane jako padding-inline, wiec 100% to szerokosc .page. */
    --edge: max(32px, calc((100% - 1180px) / 2));
  }

  body { font-size: 16px; }

  .page { max-width: none; }

  /* Kotwice z nawigacji nie moga chowac naglowka pod sticky headerem. */
  section { scroll-margin-top: 84px; }

  /* --- HEADER --- */
  header { padding: 16px var(--edge); }

  /* --- HERO: tekst obok zdjecia --- */
  .hero-block {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    /* Dolny padding maly, bo pierwsza sekcja dokłada wlasne 72px u gory —
       razem daloby to ponad 140px pustki pod hero. */
    padding: 76px var(--edge) 36px;
  }
  .hero { padding: 0; }
  .hero h1 { font-size: clamp(46px, 5vw, 62px); margin-bottom: 20px; }
  .hero-tag { font-size: 14px; margin-bottom: 14px; }
  .hero-lead { font-size: 17px; max-width: 42ch; }

  .hero-photo { margin: 0; }
  /* Zdjecie ma 900x371 px — trzymamy jego wlasne proporcje, zeby go nie
     rozciagac ponad rozdzielczosc zrodla. */
  .hero-photo img { height: auto; aspect-ratio: 900 / 371; }
  .hero-photo .cap { font-size: 12px; left: 14px; bottom: 14px; }

  /* --- SEKCJE --- */
  section { padding: 72px var(--edge); }
  section h2 { font-size: 34px; margin-bottom: 20px; }
  .section-mark { margin-bottom: 16px; }
  .section-lead { font-size: 16px; max-width: 60ch; margin: -8px 0 28px; }
  .note { font-size: 14px; margin-top: 24px; max-width: 70ch; }

  /* --- KARTY W SIATCE --- */
  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }
  .cards .card { margin-bottom: 0; }
  .card { padding: 20px; }
  .card .name { font-size: 17px; }
  .card .desc { font-size: 14px; }

  /* Hono jest w budynku — zostaje na pelnej szerokosci nad siatka. */
  .card.featured { padding: 24px 28px; margin-bottom: 20px; }
  .card.featured .name { font-size: 20px; }
  .card.featured .desc { font-size: 15px; max-width: 70ch; }

  /* --- W BUDYNKU: karuzela staje sie siatka --- */
  .carousel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
    margin-bottom: 20px;
  }
  .carousel-item img { height: 260px; }
  .carousel-item .tag { font-size: 13px; padding: 24px 14px 10px; }

  .chip { font-size: 14px; padding: 10px 15px; }

  /* --- KONTAKT --- */
  /* Zostaje jednokolumnowy (ciemna stopka domykajaca strone), ale wiersze
     nie rozciagaja sie na cale 1180px — bylyby nieczytelne. */
  .contact { padding: 72px var(--edge) 80px; }
  .contact-row { max-width: 440px; padding: 16px 0; }

  footer { padding: 24px var(--edge); font-size: 12px; }
}

/* --- NAWIGACJA SEKCJI --- */
/* Na mobile ukryta (element istnieje w HTML, ale nie zajmuje miejsca), zeby
   wersja telefonowa byla identyczna jak przed dodaniem desktopu. */

.nav { display: none; }

@media (min-width: 1024px) {
  html { scroll-behavior: smooth; }

  .nav {
    display: flex;
    gap: 2px;
    margin-left: auto;
    margin-right: 20px;
  }
  .nav a {
    position: relative;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--steel);
    text-decoration: none;
    padding: 8px 13px;
    border-radius: var(--radius);
    transition: color .15s ease;
    white-space: nowrap;
  }
  .nav a:hover { color: var(--ink); }
  .nav a.is-active { color: var(--ink); font-weight: 600; }
  /* Podkreslenie aktywnej sekcji — dokladane przez nav.js. Bez JS-a
     nawigacja dziala normalnie, tylko bez wyroznienia. */
  .nav a.is-active::after {
    content: '';
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 1px;
    height: 2px;
    background: var(--rust);
  }

  /* Trzy kolumny kart — ok. 380px na karte przy 1180px tresci. */
  .cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

/* Delikatne podniesienie karty pod kursorem — tylko tam, gdzie faktycznie
   jest kursor (hover: hover pomija ekrany dotykowe, gdzie :hover zostaje
   "przyklejony" po tapnieciu). */
@media (min-width: 768px) and (hover: hover) {
  a.card {
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  }
  a.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(28, 28, 26, 0.07);
  }
}

/* --- DOSTĘPNOŚĆ / DRUK --------------------------------------------------- */

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

@media print {
  header, .lang-toggle, .skip-link { display: none; }
  body, .page { background: #fff; }
  .page { max-width: none; box-shadow: none; }
  section { break-inside: avoid; }
  .contact, footer { background: #fff; color: #000; }
  .contact h2, .contact .txt .v { color: #000; }
  .card { break-inside: avoid; }
  .carousel { display: none; }
}
