/* ============================================================
   appteczka.eu — strona aplikacji
   Identyfikacja wprost z aplikacji: granat walizki, pomarańcz
   kapsułki, porcelanowa biel. Bricolage Grotesque + Schibsted.
   ============================================================ */

:root {
  --tlo: #F4F6FA;
  --karta: #FFFFFF;
  --atrament: #0B1B33;
  --mgla: #5E7089;
  --linia: #E3E9F2;
  --granat: #16324F;
  --granat-c: #0B2138;
  --granat-tlo: #E7EDF7;
  --pomarancz: #F85800;
  --pomarancz-c: #C24400;
  --pomarancz-tlo: #FFEFE3;
  --f-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --f-tekst: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --cien: 0 1px 2px rgba(11,27,51,.05), 0 14px 40px rgba(11,27,51,.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-tekst);
  background: var(--tlo);
  color: var(--atrament);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.szerokosc { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- nawigacja ---------- */
.nawigacja {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 250, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linia);
}
.nawigacja-wnetrze {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.nawigacja-logo { height: 30px; width: auto; }
.nawigacja-linki {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--mgla);
}
.nawigacja-linki a { text-decoration: none; }
.nawigacja-linki a:hover { color: var(--atrament); }
.przycisk {
  display: inline-block;
  background: var(--granat);
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(11,33,56,.22);
  transition: transform .15s ease, background .15s ease;
}
.przycisk:hover { background: var(--granat-c); transform: translateY(-1px); }
.przycisk-pomarancz { background: var(--pomarancz); box-shadow: 0 8px 24px rgba(248,88,0,.3); }
.przycisk-pomarancz:hover { background: var(--pomarancz-c); }
.przycisk-cichy {
  background: var(--karta);
  color: var(--granat);
  box-shadow: inset 0 0 0 1.5px var(--linia);
}
.przycisk-cichy:hover { background: var(--granat-tlo); transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
  background:
    radial-gradient(820px 560px at 88% 4%, rgba(248, 88, 0, .10), transparent 62%),
    radial-gradient(720px 520px at 4% 92%, rgba(30, 68, 112, .10), transparent 60%),
    linear-gradient(180deg, #FDFEFF 0%, #F4F6FA 100%);
}
.poswiata {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.poswiata-a {
  width: 460px; height: 460px;
  top: -140px; right: 4%;
  background: radial-gradient(circle, rgba(255, 138, 60, .38), transparent 68%);
  animation: dryf-a 16s ease-in-out infinite alternate;
}
.poswiata-b {
  width: 420px; height: 420px;
  bottom: -160px; left: -6%;
  background: radial-gradient(circle, rgba(46, 107, 168, .30), transparent 68%);
  animation: dryf-b 20s ease-in-out infinite alternate;
}
.poswiata-c {
  width: 300px; height: 300px;
  top: 40%; left: 38%;
  background: radial-gradient(circle, rgba(124, 92, 214, .18), transparent 70%);
  animation: dryf-a 24s ease-in-out infinite alternate-reverse;
}
@keyframes dryf-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 44px) scale(1.12); }
}
@keyframes dryf-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(52px, -38px) scale(1.08); }
}
.hero-wnetrze { position: relative; z-index: 1; }
.hero-wnetrze {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero-wejscie > * { animation: wzniesienie .7s cubic-bezier(.2,.7,.3,1) both; }
.hero-wejscie > *:nth-child(2) { animation-delay: .12s; }
.hero-wejscie > *:nth-child(3) { animation-delay: .22s; }
.hero-wejscie > *:nth-child(4) { animation-delay: .3s; }
@keyframes wzniesienie {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(38px, 5.4vw, 58px);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.04;
  margin-bottom: 18px;
}
.hero h1 .akcent { color: var(--pomarancz); }
.hero-opis {
  font-size: 19px;
  color: var(--mgla);
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-akcje { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-sklepy { font-size: 13.5px; color: var(--mgla); margin-top: 14px; }

.hero-telefony {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 560px;
}
.hero-telefony::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,60,.35), rgba(255,138,60,0) 68%);
  pointer-events: none;
}
.telefon {
  position: relative;
  width: 264px;
  border-radius: 38px;
  background: #0A1220;
  padding: 10px;
  box-shadow: 0 30px 80px rgba(11,27,51,.35), inset 0 0 0 2px #26344B;
}
.telefon::after {
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 74px; height: 8px;
  border-radius: 999px;
  background: #0A1220;
}
.telefon img { width: 100%; height: auto; border-radius: 29px; }
.hero-telefony .telefon-glowny {
  z-index: 2;
  animation: wzniesienie .8s cubic-bezier(.2,.7,.3,1) .15s both,
             unoszenie 7s ease-in-out 1.2s infinite alternate;
}
@keyframes unoszenie {
  from { transform: translateY(0); }
  to   { transform: translateY(-12px); }
}
.hero-telefony .telefon-drugi {
  position: absolute;
  right: max(0px, calc(50% - 300px));
  top: 90px;
  width: 220px;
  transform: rotate(6deg);
  opacity: .92;
  z-index: 1;
  animation: wzniesienie-obrot .9s cubic-bezier(.2,.7,.3,1) .3s both,
             unoszenie-obrot 8s ease-in-out 1.4s infinite alternate;
}
@keyframes wzniesienie-obrot {
  from { opacity: 0; transform: rotate(6deg) translateY(30px); }
  to   { opacity: .92; transform: rotate(6deg) translateY(0); }
}
@keyframes unoszenie-obrot {
  from { transform: rotate(6deg) translateY(0); }
  to   { transform: rotate(6deg) translateY(-10px); }
}

/* ---------- pasek zaufania ---------- */
.zaufanie {
  border-top: 1px solid var(--linia);
  border-bottom: 1px solid var(--linia);
  background: var(--karta);
  padding: 18px 0;
}
.zaufanie-wnetrze {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--mgla);
}
.zaufanie-wnetrze span { display: flex; align-items: center; gap: 8px; }
.kropka-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--pomarancz); }

/* ---------- sekcje ---------- */
.sekcja { padding: 84px 0; }
.sekcja-etykieta {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pomarancz-c);
  background: var(--pomarancz-tlo);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.sekcja h2 {
  font-family: var(--f-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 14px;
  max-width: 22ch;
}
.sekcja-opis { font-size: 18px; color: var(--mgla); max-width: 62ch; margin-bottom: 40px; }

/* funkcje */
.funkcje {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.funkcja {
  background: var(--karta);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: var(--cien);
}
.funkcja-ikona {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--granat-tlo);
  color: var(--granat);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.funkcja-ikona svg { width: 24px; height: 24px; }
.funkcja h3 {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 6px;
}
.funkcja p { font-size: 15px; color: var(--mgla); }

/* ekrany */
.ekrany {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  justify-items: center;
}
.ekran-blok { text-align: center; max-width: 320px; }
.ekran-blok .telefon { margin: 0 auto 20px; }
.ekran-blok h3 { font-family: var(--f-display); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.ekran-blok p { font-size: 15px; color: var(--mgla); }

/* ---------- widget (ciemna wstęga) ---------- */
.widget-sekcja {
  background: linear-gradient(150deg, #1E4470 0%, #0A1B30 90%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.widget-sekcja::before {
  content: "";
  position: absolute;
  top: -160px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,60,.28), rgba(255,138,60,0) 70%);
}
.widget-sekcja .sekcja-etykieta { background: rgba(255,255,255,.14); color: #FFB88A; }
.widget-sekcja .sekcja-opis { color: rgba(255,255,255,.78); }
.widget-wnetrze {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.widget-obrazy { position: relative; min-height: 420px; }
.widget-obrazy img {
  width: 340px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.widget-obrazy .widget-jasny { position: absolute; left: 0; top: 0; z-index: 2; }
.widget-obrazy .widget-ciemny { position: absolute; right: 0; bottom: 0; transform: rotate(4deg); opacity: .95; }
.widget-lista { list-style: none; margin-top: 8px; }
.widget-lista li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  font-size: 16.5px;
}
.widget-lista li b { color: #FFB88A; }
.widget-lista li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,.14) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 12.5 10.2 17 18 8" fill="none" stroke="%23FFB88A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/11px no-repeat;
}

/* ---------- rodzina ---------- */
.kroki {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: krok;
}
.krok {
  background: var(--karta);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: var(--cien);
  counter-increment: krok;
}
.krok::before {
  content: counter(krok);
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--pomarancz);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 14px;
}
.krok h3 { font-family: var(--f-display); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.krok p { font-size: 15px; color: var(--mgla); }

/* ---------- cennik ---------- */
.cennik {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 22px;
  align-items: stretch;
  max-width: 880px;
}
.pakiet {
  background: var(--karta);
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: var(--cien);
  display: flex;
  flex-direction: column;
}
.pakiet-wyrozniony {
  border: 2.5px solid var(--pomarancz);
  box-shadow: 0 18px 50px rgba(248,88,0,.16);
  position: relative;
}
.pakiet-badge {
  position: absolute;
  top: -14px; left: 28px;
  background: var(--pomarancz);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 5px 14px;
  border-radius: 999px;
}
.pakiet h3 { font-family: var(--f-display); font-size: 22px; font-weight: 800; margin-bottom: 2px; }
.pakiet-podtytul { font-size: 14.5px; color: var(--mgla); margin-bottom: 18px; }
.pakiet-cena {
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.pakiet-cena small { font-size: 16px; font-weight: 600; color: var(--mgla); }
.pakiet ul { list-style: none; margin-bottom: 24px; }
.pakiet li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 9px;
  font-size: 15.5px;
}
.pakiet li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--granat-tlo) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 12.5 10.2 17 18 8" fill="none" stroke="%2316324F" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/10px no-repeat;
}
.plany-mini { border-top: 1px solid var(--linia); margin-top: auto; padding-top: 16px; }
.plan-mini {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  font-size: 15.5px;
}
.plan-mini b { font-family: var(--f-display); font-size: 17px; }
.plan-mini .plan-mini-info { color: var(--mgla); font-size: 13px; }
.plan-mini-wyrozniony { color: var(--pomarancz-c); }
.cennik-stopka { font-size: 13.5px; color: var(--mgla); margin-top: 18px; max-width: 640px; }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; }
.faq details {
  background: var(--karta);
  border-radius: 16px;
  box-shadow: var(--cien);
  margin-bottom: 12px;
  padding: 0 22px;
}
.faq summary {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::after { content: "+"; font-size: 22px; color: var(--pomarancz); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--mgla); font-size: 15.5px; }

/* ---------- finał + stopka ---------- */
.final { text-align: center; padding: 90px 0; }
.final img { width: 88px; margin: 0 auto 22px; }
.final h2 {
  font-family: var(--f-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 auto 12px;
  max-width: 18ch;
}
.final p { color: var(--mgla); margin-bottom: 26px; }

.stopka {
  border-top: 1px solid var(--linia);
  background: var(--karta);
  padding: 40px 0 32px;
  font-size: 14px;
  color: var(--mgla);
}
.stopka-wnetrze { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.stopka-linki { display: flex; flex-wrap: wrap; gap: 18px; }
.stopka-linki a { text-decoration: none; font-weight: 600; }
.stopka-linki a:hover { color: var(--atrament); }
.stopka-nota { width: 100%; margin-top: 18px; font-size: 12.5px; line-height: 1.6; }

/* ---------- animacje odsłaniania przy scrollu ---------- */
.odslon {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.2,.7,.3,1), transform .65s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--zwloka, 0s);
}
.odslon-lewo { transform: translateX(-36px); }
.odslon-prawo { transform: translateX(36px) rotate(4deg); }
.odslon.widoczne { opacity: 1; transform: none; }
.widget-obrazy .widget-ciemny.odslon-prawo.widoczne { transform: rotate(4deg); }

.funkcja, .krok, .pakiet, .faq details {
  transition: transform .25s ease, box-shadow .25s ease,
              opacity .65s cubic-bezier(.2,.7,.3,1);
}
.funkcja:hover, .krok:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(11,27,51,.06), 0 22px 50px rgba(11,27,51,.12);
}
.pakiet:hover { transform: translateY(-5px); }
.sekcja-etykieta { transition: transform .25s ease; }
.sekcja:hover .sekcja-etykieta { transform: rotate(-2deg) scale(1.04); }

/* ---------- responsywność ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero-wnetrze { grid-template-columns: 1fr; gap: 40px; }
  .hero-telefony { min-height: auto; }
  .hero-telefony .telefon-drugi { display: none; }
  .funkcje { grid-template-columns: 1fr 1fr; }
  .widget-wnetrze { grid-template-columns: 1fr; }
  .widget-obrazy { min-height: 0; display: grid; gap: 18px; justify-items: center; }
  .widget-obrazy .widget-jasny, .widget-obrazy .widget-ciemny { position: static; transform: none; }
  .kroki { grid-template-columns: 1fr; }
  .cennik { grid-template-columns: 1fr; }
  .nawigacja-linki { display: none; }
}
@media (max-width: 560px) {
  .funkcje { grid-template-columns: 1fr; }
  .ekrany { grid-template-columns: 1fr; }
  .sekcja { padding: 60px 0; }
  .widget-obrazy img { width: 100%; max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .odslon { opacity: 1; transform: none; }
}
