@import url(/fonty/fonty.css);

:root {
  --zielony: #13966a;
  --zielony-ciemny: #0e7f59;
  --tekst: #1e212e;
  --tekst-2: #3c3f4a;
  --szary: #5d606b;
  --linia: #e3e5e8;
  --tlo: #ffffff;
  --margines: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--tlo);
  color: var(--tekst);
  font-family: 'Jakarta', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p { margin: 0; }
.ukryte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--zielony); outline-offset: 3px; }

/* Nagłówek */
.naglowek {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 var(--margines) 0 22px;
  background: #fff;
  transition: box-shadow .3s;
}
.naglowek.cien { box-shadow: 0 2px 14px rgba(20, 24, 36, .08); }
.logo { display: block; width: 200px; }
.logo img { width: 100%; height: auto; }
.nawigacja { display: none; }

/* Przycisk menu pod kciukiem */
.menu-przycisk {
  position: fixed; right: 14px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 40;
  width: 72px; height: 72px; border: 0; border-radius: 50%;
  background: var(--zielony); color: #fff; cursor: pointer;
  box-shadow: 0 6px 18px rgba(14, 80, 56, .28);
  display: grid; place-items: center;
}
.menu-przycisk span, .menu-przycisk span::before, .menu-przycisk span::after {
  display: block; width: 30px; height: 3px; border-radius: 2px; background: currentColor;
  transition: transform .3s, background .3s;
}
.menu-przycisk span { position: relative; }
.menu-przycisk span::before, .menu-przycisk span::after { content: ""; position: absolute; left: 0; }
.menu-przycisk span::before { top: -9px; }
.menu-przycisk span::after { top: 9px; }
.menu-otwarte .menu-przycisk { background: #f0efed; color: var(--tekst); box-shadow: none; }
.menu-otwarte .menu-przycisk span { background: transparent; }
.menu-otwarte .menu-przycisk span::before { transform: translateY(9px) rotate(45deg); }
.menu-otwarte .menu-przycisk span::after { transform: translateY(-9px) rotate(-45deg); }

.menu-panel {
  position: fixed; inset: 0; z-index: 30;
  display: flex; flex-direction: column;
  padding: 22px var(--margines) calc(120px + env(safe-area-inset-bottom));
  background: #fff;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.menu-otwarte .menu-panel { opacity: 1; visibility: visible; }
.menu-otwarte { overflow: hidden; }
.menu-panel .logo { margin-left: -10px; }
.menu-lista { margin-top: auto; list-style: none; padding: 0; }
.menu-lista a { display: block; padding: 14px 0; border-bottom: 1px solid var(--linia); font-size: 32px; font-weight: 700; line-height: 1.12; text-decoration: none;  }
.menu-poradniki { margin-top: 26px; }
.menu-poradniki p { font-size: 17px; font-weight: 600; color: #8a8d96; margin-bottom: 4px; }
.menu-poradniki ul { list-style: none; padding: 0; margin: 0; }
.menu-poradniki a { display: block; padding: 10px 0; border-bottom: 1px solid var(--linia); font-size: 19px; text-decoration: none; color: var(--tekst-2); }
.menu-poradniki li:last-child a { border-bottom: 0; }

/* Pierwszy ekran */
.hero { position: relative; height: calc(100svh - 64px); min-height: 560px; max-height: 900px; overflow: hidden; background: #3a2c22; }
.hero picture, .hero img { width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: 66% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,14,10,.45), rgba(20,14,10,0) 45%); pointer-events: none; }
.hero h1 { z-index: 1;
  position: absolute; left: 28px; bottom: 76px; right: 110px;
  color: #fff; font-size: 52px; line-height: 1; font-weight: 800; letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.hero h1 span { display: block; }
.hero-strzalka { position: absolute; left: 50%; bottom: 18px; width: 34px; height: 34px; margin-left: -17px; color: #fff; }

/* Bloki zdjęcie + tekst */
.zdjecie img { width: 100%; object-fit: cover; }
.zdjecie-fotel img { height: 270px; object-position: 50% 30%; }
.zdjecie picture { display: block; height: 100%; }
.zdjecie-magnolia img { height: 150px; object-position: 30% 60%; }
.zdjecie-spacer img { height: 330px; object-position: 50% 20%; }

.tekst { padding: 26px 40px 24px; }
.tekst h2 { font-size: 44px; line-height: 1.02; font-weight: 800; letter-spacing: -.01em; }
.tekst .lead { margin-top: 16px; font-size: 21px; line-height: 1.24; color: var(--tekst); }
.liczba { margin-top: 16px; font-size: 66px; line-height: 1; font-weight: 800; color: var(--zielony); letter-spacing: -.01em; }
.liczba-podpis { font-size: 22px; font-weight: 700; margin-top: 4px; }
.drobny { margin-top: 12px; font-size: 16px; line-height: 1.4; color: var(--szary); }

.rozpoznaj { padding: 22px 32px 0; }
.rozpoznaj h2 { font-size: 30px; line-height: 1.1; font-weight: 700;  }
.rozpoznaj h2 a { text-decoration: none; }
.rozpoznaj .pod { font-size: 20px; color: var(--tekst); margin-top: 2px; }
.linki-zielone { list-style: none; padding: 0; margin: 22px 0 0; }
.linki-zielone li + li { margin-top: 14px; }
.linki-zielone a, .linki-zielone button {
  font: inherit; font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--zielony);
  background: none; border: 0; padding: 0; text-align: left; cursor: pointer; text-decoration: none;
}
.linki-zielone a:hover, .linki-zielone button:hover { text-decoration: underline; text-underline-offset: 4px; }
.udostepnij { display: none; gap: 22px; margin-top: 12px; font-size: 18px; }
.udostepnij.widoczne { display: flex; flex-wrap: wrap; }
.udostepnij a { color: var(--tekst); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.akcja { margin: 26px 32px 0; padding-top: 22px; border-top: 1px solid var(--linia); }
.akcja h2 { font-size: 31px; line-height: 1.12; font-weight: 700;  }
.akcja p { font-size: 20px; color: var(--tekst); margin-top: 6px; }
.przycisk {
  display: flex; align-items: center; justify-content: center;
  margin-top: 18px; height: 62px; border-radius: 31px;
  background: var(--zielony); color: #fff; font-size: 23px; font-weight: 700; text-decoration: none;
  transition: background .2s;
}
.przycisk:hover { background: var(--zielony-ciemny); }

.stopka { padding: 22px 32px calc(118px + env(safe-area-inset-bottom)); font-size: 15px; line-height: 1.5; color: var(--tekst-2); }
.stopka p:first-child { color: var(--tekst); margin-bottom: 4px; }
.stopka .dane { font-size: 13.5px; color: var(--szary); }
.stopka .dane span { display: inline; }
.stopka a { color: inherit; }

/* Animacje wejścia (wzorzec CEO: 1,6 s, 48 px, co 200 ms) */
@media (prefers-reduced-motion: no-preference) {
  .wjazd { opacity: 0; transform: translateY(48px); transition: opacity 1.6s cubic-bezier(.2,.7,.2,1), transform 1.6s cubic-bezier(.2,.7,.2,1); }
  .wjazd.jest { opacity: 1; transform: none; }
}

/* Komputer */
.uklad { display: flex; flex-direction: column; }
@media (min-width: 1024px) {
  .rzad-1 { order: 1; } .rzad-2 { order: 2; } .zdjecie-magnolia { order: 3; } .akcja { order: 4; } .tematy-dol { order: 5; }
  :root { --margines: 60px; }
  body { font-size: 20px; }
  .naglowek { height: 96px; padding: 0 72px 0 57px; }
  .logo { width: 272px; }
  .menu-przycisk, .menu-panel { display: none; }
  .nawigacja { display: block; }
  .nawigacja > ul { display: flex; align-items: center; gap: 72px; list-style: none; margin: 0; padding: 0; }
  .nawigacja > ul > li > a, .nawigacja > ul > li > button { display: inline-block; line-height: 1.4; }
  .nawigacja a, .nawigacja button { font: inherit; font-size: 19px; color: var(--tekst); text-decoration: none; background: none; border: 0; padding: 8px 0; cursor: pointer; }
  .nawigacja a:hover, .nawigacja button:hover { color: var(--zielony); }
  .rozwijane { position: relative; }
  .rozwijane button::after { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 0 4px 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  .rozwijane ul { position: absolute; top: calc(100% + 14px); left: -18px; min-width: 298px; list-style: none; margin: 0; padding: 14px 0; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(20, 24, 36, .12); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s; }
  .rozwijane:hover ul, .rozwijane:focus-within ul, .rozwijane.otwarte ul { opacity: 1; visibility: visible; transform: none; }
  .rozwijane ul a { display: block; padding: 11px 38px; font-size: 19px; }

  .hero { height: 705px; max-height: none; min-height: 0; }
  .hero img { object-position: 50% 50%; }
  .hero h1 { left: 60px; top: 284px; bottom: auto; font-size: 112px; line-height: .96; }
  .hero-strzalka { display: none; }
  .hero::after { background: linear-gradient(to right, rgba(20,14,10,.42), rgba(20,14,10,0) 50%); }

  .rzad { display: grid; align-items: stretch; }
  .rzad-1 { grid-template-columns: 893fr 547fr; margin-top: 22px; }
  .rzad-2 { grid-template-columns: 850fr 590fr; }
  .rzad .zdjecie img { height: 100%; min-height: 525px; }
  .rzad-2 .zdjecie img { min-height: 595px; object-position: 50% 30%; }
  .zdjecie-fotel img { object-position: 50% 40%; }

  .tekst { padding: 16px 40px 30px 47px; align-self: start; }
  .tekst h2 { font-size: 68px; line-height: .95; }
  .tekst .lead { font-size: 30px; line-height: 1.15; margin-top: 22px; }
  .liczba { font-size: 98px; margin-top: 28px; }
  .liczba-podpis { font-size: 35px; }
  .drobny { font-size: 23px; line-height: 1.33; color: var(--tekst-2); margin-top: 14px; }

  .rozpoznaj { padding: 62px 40px 0 62px; }
  .rozpoznaj h2 { font-size: 80px; line-height: .95; font-weight: 800;  }
  .rozpoznaj .pod { font-size: 37px; margin-top: 8px; }
  .linki-zielone { margin-top: 70px; }
  .linki-zielone li + li { margin-top: 56px; }
  .linki-zielone a, .linki-zielone button { font-size: 50px; line-height: 1.08; font-weight: 800; letter-spacing: -.01em; }
  .udostepnij { font-size: 22px; }

  .zdjecie-magnolia { margin-top: 10px; }
  .zdjecie-magnolia img { height: 345px; object-position: 50% 50%; }

  .akcja { margin: 0 auto; max-width: 1100px; border-top: 0; padding-top: 30px; text-align: center; }
  .akcja h2 { font-size: 52px; font-weight: 800; letter-spacing: -.015em; }
  .akcja p { font-size: 27px; margin-top: 2px; }
  .przycisk { width: 462px; height: 88px; border-radius: 44px; margin: 22px auto 0; font-size: 35px; }

  .stopka { padding: 38px 60px 34px; text-align: center; font-size: 21px; color: var(--szary); }
  .stopka p:first-child { display: inline; color: var(--szary); margin: 0; }
  .stopka p:first-child::after { content: "|"; margin: 0 12px; color: #b7b9bf; }
  .stopka .dane { display: inline; font-size: 21px; }
  .stopka .dane span + span::before { content: "|"; margin: 0 12px; color: #b7b9bf; }
}
@media (max-width: 1023px) {
  .stopka .dane span { display: block; }
  .stopka .dane span.w-linii { display: inline; }
}

/* Krótki dokument (polityka prywatności) */
.dokument-krotki { max-width: 680px; margin: 0 auto; padding: 26px var(--margines) 10px; font-size: 17px; line-height: 1.55; }
.dokument-krotki h1 { font-size: 32px; line-height: 1.1; font-weight: 800; margin-bottom: 10px; }
.dokument-krotki h2 { font-size: 18px; font-weight: 700; margin: 22px 0 4px; }
.dokument-krotki a { color: var(--zielony); font-weight: 600; }
.dokument-krotki .aktualizacja { margin-top: 26px; font-size: 14px; color: var(--szary); }
@media (min-width: 1024px) {
  .dokument-krotki { padding: 60px 0 20px; font-size: 18px; }
  .dokument-krotki h1 { font-size: 44px; }
  .dokument-krotki h2 { font-size: 20px; }
}

/* Komputer: spokojny, równy układ (CEO 3.11: „wygląda jakby była porozrzucana”) */
@media (min-width: 1024px) {
  .uklad { gap: 0; }
  .rzad, .zdjecie-magnolia, .akcja, .tematy-dol { width: 100%; max-width: 1280px; margin-left: auto; margin-right: auto; }
  .rzad { grid-template-columns: 7fr 5fr !important; margin-top: 96px !important; align-items: center; }
  .rzad .zdjecie { margin: 0; }
  .rzad .zdjecie img, .rzad-2 .zdjecie img { height: 560px; min-height: 0 !important; border-radius: 8px; }
  .rzad-2 .zdjecie { order: 2; }
  .rzad-2 .rozpoznaj { order: 1; }
  .tekst, .rozpoznaj { align-self: center !important; padding: 0 0 0 64px !important; }
  .rzad-2 .rozpoznaj { padding: 0 64px 0 0 !important; }
  .rozpoznaj h2 { font-size: 68px; }
  .rozpoznaj .pod { font-size: 30px; }
  .linki-zielone { margin-top: 40px; }
  .linki-zielone li + li { margin-top: 28px; }
  .linki-zielone a, .linki-zielone button { font-size: 40px; }
  .zdjecie-magnolia { margin-top: 96px !important; }
  .zdjecie-magnolia img { height: 380px; border-radius: 8px; }
  .akcja { padding-top: 64px !important; }
  .tematy-dol { margin-top: 96px !important; padding-left: 0 !important; padding-right: 0 !important; }
}
@media (min-width: 1024px) {
  .rzad-2 { grid-template-columns: 5fr 7fr !important; }
  .zdjecie-magnolia { margin-left: auto !important; margin-right: auto !important; }
}
