/* ═══ Adopsiaki.pl – system projektowy ═══
   Paleta „Bałtyk": granat portowy, piana morska, bursztyn gdyński.
   Display: Bricolage Grotesque · Body: Inter (latin-ext) */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Inter:wght@400;500;600;700&display=swap&subset=latin-ext');

:root {
  --granat: #24425c;
  --granat-c: #16293a;
  --piana: #f2f6f4;
  --biel: #ffffff;
  --bursztyn: #e8a33d;
  --bursztyn-c: #c9860f;
  --zielony: #2f8f6b;
  --zielony-tlo: #e7f4ee;
  --zolty-tlo: #fcf3dd;
  --zolty-tekst: #8a5d10;
  --czerwony: #c0392b;
  --szary: #5c6b78;
  --linia: #dde6e2;
  --cien: 0 6px 24px rgba(36, 66, 92, 0.10);
  --r: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--granat-c);
  background: var(--piana);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--granat);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 600; }
p  { margin: 0 0 1em; }
a  { color: var(--granat); }

.kontener { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.waski    { max-width: 620px; }

/* ── Nagłówek ── */
.naglowek {
  background: var(--biel);
  border-bottom: 1px solid var(--linia);
  position: sticky; top: 0; z-index: 50;
}
.naglowek .kontener {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: 1.35rem; text-decoration: none; color: var(--granat);
}
.logo span { color: var(--bursztyn-c); }
.naglowek nav a {
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  margin-left: 18px; color: var(--szary);
}
.naglowek nav a:hover { color: var(--granat); }

/* ── Przyciski ── */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  font: 600 1rem 'Inter', sans-serif;
  padding: 14px 26px; border-radius: 999px;
  text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--bursztyn); outline-offset: 2px; }
.btn-glowny { background: var(--bursztyn); color: var(--granat-c); box-shadow: 0 4px 14px rgba(232,163,61,.4); }
.btn-glowny:hover { background: var(--bursztyn-c); color: #fff; transform: translateY(-1px); }
.btn-drugi  { background: var(--granat); color: #fff; }
.btn-drugi:hover { background: var(--granat-c); }
.btn-cichy  { background: transparent; color: var(--granat); border: 2px solid var(--linia); }
.btn-cichy:hover { border-color: var(--granat); }
.btn-blok   { display: block; width: 100%; }

/* ── Hero ── */
.hero { padding: 56px 0 40px; }
.hero .kontener { display: grid; gap: 32px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.hero-etykieta {
  display: inline-block; background: var(--zielony-tlo); color: var(--zielony);
  font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero p.lead { font-size: 1.15rem; color: var(--szary); max-width: 46ch; }
.hero-fala {
  background: var(--granat); border-radius: 24px; color: #fff;
  padding: 28px; box-shadow: var(--cien);
}
.hero-fala h3 { color: #fff; }
.hero-fala p { color: #c6d4de; font-size: .95rem; }
@media (max-width: 820px) { .hero .kontener { grid-template-columns: 1fr; } }

/* ── Karty / sekcje ── */
.karta {
  background: var(--biel); border: 1px solid var(--linia);
  border-radius: var(--r); padding: 24px; box-shadow: var(--cien);
}
.sekcja { padding: 48px 0; }

/* ── SYGNATURA: pierścień dopasowania ── */
.pierscien { position: relative; width: 92px; height: 92px; flex: none; }
.pierscien svg { transform: rotate(-90deg); }
.pierscien .tor    { fill: none; stroke: var(--linia); stroke-width: 9; }
.pierscien .postep { fill: none; stroke: var(--zielony); stroke-width: 9; stroke-linecap: round;
                     transition: stroke-dashoffset .8s ease; }
.pierscien.sredni .postep { stroke: var(--bursztyn); }
.pierscien .wartosc {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 800 1.25rem 'Bricolage Grotesque', sans-serif; color: var(--granat);
}
.pierscien .wartosc small { font-size: .6rem; font-weight: 600; color: var(--szary); letter-spacing: .08em; }
.pierscien-duzy { width: 140px; height: 140px; }
.pierscien-duzy .wartosc { font-size: 2rem; }

/* ── Quiz ── */
.quiz-krok { display: none; }
.quiz-krok.aktywny { display: block; animation: wjazd .3s ease; }
@keyframes wjazd { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-pasek { height: 6px; background: var(--linia); border-radius: 999px; margin-bottom: 24px; overflow: hidden; }
.quiz-pasek div { height: 100%; background: var(--bursztyn); border-radius: 999px; transition: width .3s ease; }

/* ── Kafelki dotykowe (quiz + panel schroniska) ── */
.kafelki { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 12px 0 20px; }
.kafelek input { position: absolute; opacity: 0; pointer-events: none; }
.kafelek span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 84px; padding: 14px; text-align: center; cursor: pointer;
  background: var(--biel); border: 2px solid var(--linia); border-radius: var(--r);
  font-weight: 600; transition: border-color .15s, background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.kafelek span em { font-style: normal; font-size: 1.6rem; }
.kafelek input:checked + span {
  border-color: var(--bursztyn); background: #fff8ec;
  box-shadow: 0 0 0 3px rgba(232,163,61,.25);
}
.kafelek input:focus-visible + span { outline: 3px solid var(--granat); outline-offset: 2px; }
.kafelek span:active { transform: scale(.97); }

/* ── Formularze ── */
label.pole { display: block; margin-bottom: 16px; font-weight: 600; font-size: .95rem; }
label.pole input, label.pole select, label.pole textarea {
  display: block; width: 100%; margin-top: 6px;
  padding: 13px 14px; font: 400 1rem 'Inter', sans-serif;
  border: 2px solid var(--linia); border-radius: 10px; background: var(--biel);
}
label.pole input:focus, label.pole select:focus, label.pole textarea:focus {
  outline: none; border-color: var(--bursztyn);
}
.komunikat { padding: 12px 16px; border-radius: 10px; margin: 12px 0; font-weight: 600; display: none; }
.komunikat.ok    { display: block; background: var(--zielony-tlo); color: var(--zielony); }
.komunikat.blad  { display: block; background: #fdecea; color: var(--czerwony); }

/* ── Wyniki: siatka psów ── */
.siatka-psow { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.karta-psa {
  background: var(--biel); border: 1px solid var(--linia); border-radius: var(--r);
  overflow: hidden; text-decoration: none; color: inherit; display: block;
  transition: transform .15s ease, box-shadow .15s ease;
}
.karta-psa:hover { transform: translateY(-3px); box-shadow: var(--cien); }
.karta-psa .foto { aspect-ratio: 4/3; background: var(--linia) center/cover no-repeat; display: grid; place-items: center; font-size: 3rem; }
.karta-psa .tresc { padding: 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.karta-psa h3 { margin: 0 0 2px; }
.karta-psa .meta { color: var(--szary); font-size: .88rem; }

/* ── Znaczniki na karcie psa ── */
.znaczniki { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.znaczniki li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: .95rem; }
.znaczniki.plusy li { background: var(--zielony-tlo); color: #1e6a4e; }
.znaczniki.ostrzezenia li { background: var(--zolty-tlo); color: var(--zolty-tekst); }
.znaczniki li::before { font-weight: 800; }
.znaczniki.plusy li::before { content: '✓'; color: var(--zielony); }
.znaczniki.ostrzezenia li::before { content: '!'; color: var(--bursztyn-c); }

/* ── Wsparcie schroniska ── */
.wsparcie { background: var(--granat); color: #fff; border-radius: var(--r); padding: 24px; }
.wsparcie h3 { color: #fff; }
.wsparcie .konto {
  font: 600 1rem/1.4 ui-monospace, monospace; background: rgba(255,255,255,.1);
  padding: 10px 14px; border-radius: 8px; word-break: break-all; margin: 8px 0 16px;
}
.wsparcie p, .wsparcie li { color: #c6d4de; }

/* ── Galeria na karcie psa ── */
.galeria { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.galeria img, .foto-glowne {
  width: 100%; border-radius: var(--r); object-fit: cover; aspect-ratio: 4/3; background: var(--linia);
}
.foto-glowne { aspect-ratio: 16/10; }

/* ── Tabela USP na stronie głównej ── */
.usp { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.usp .karta h3 { display: flex; gap: 10px; align-items: center; }
.usp .karta p { color: var(--szary); font-size: .95rem; margin: 0; }

/* ── Panel schroniska ── */
.panel-lista { display: grid; gap: 10px; }
.panel-pies { display: flex; align-items: center; gap: 12px; background: var(--biel);
  border: 1px solid var(--linia); border-radius: 10px; padding: 10px 14px; }
.panel-pies img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--linia); }
.panel-pies select { margin-left: auto; padding: 8px; border-radius: 8px; border: 2px solid var(--linia); font-weight: 600; }
.status-w_trakcie { color: var(--zolty-tekst); }
.status-zadoptowany { color: var(--zielony); }

/* ── Stopka ── */
.stopka { background: var(--granat-c); color: #9db2c2; padding: 36px 0; margin-top: 56px; font-size: .9rem; }
.stopka a { color: #d6e2ec; }
.stopka .logo { color: #fff; }

.ukryty { display: none !important; }

/* ── Grafiki brandu (Gemini) ─────────────────────────────── */
.logo-img { height: 44px; display: block; }
.stopka .logo-img { opacity: .95; }
.hero-obrazek img {
  width: 100%; height: auto; display: block;
  border-radius: 18px; box-shadow: 0 18px 44px rgba(36,66,92,.18);
}
.sekcja-jak { background: #fff; }
.jak-siatka {
  display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}
.jak-karta {
  background: var(--krem, #FAF6EF); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(36,66,92,.08);
}
.jak-karta img { width: 100%; height: auto; display: block; aspect-ratio: 4/3; object-fit: cover; }
.jak-karta h3 { margin: 16px 18px 6px; color: var(--granat, #24425C); }
.jak-karta p { margin: 0 18px 18px; color: var(--szary); font-size: .95rem; }
@media (max-width: 820px) { .jak-siatka { grid-template-columns: 1fr; } }

/* ── Sprint funkcji: badge, sukcesy, zapytania, banery ─────── */
.foto { position: relative; }
.badge-trakcie {
  position: absolute; top: 10px; left: 10px;
  background: var(--bursztyn); color: #1d2b38;
  padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.baner-status {
  background: var(--bursztyn); color: #1d2b38;
  padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600;
}
.baner-status.zielony { background: var(--zielony, #2F8F6B); color: #fff; }
.baner-status a { color: inherit; }
.sukcesy-siatka {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  margin-top: 24px;
}
.sukces { text-align: center; }
.sukces img, .sukces .foto {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 4px solid var(--zielony, #2F8F6B); display: grid; place-items: center; font-size: 2.4rem;
  background: #fff;
}
.sukces span { display: block; margin-top: 8px; font-weight: 700; color: var(--granat); }
.sukces small { display: block; font-weight: 400; color: var(--szary); font-size: .8rem; }
.zapytanie {
  border: 1px solid var(--linia, #e3e9ee); border-radius: 12px;
  padding: 14px; margin-bottom: 10px; background: #fff;
}
.zapytanie.nowe { border-left: 4px solid var(--bursztyn); background: #fffaf2; }
.match-mini {
  display: inline-block; background: var(--zielony, #2F8F6B); color: #fff;
  padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; margin-top: 4px;
}
.licznik-czerwony-inline {
  background: #d64541; color: #fff; border-radius: 999px;
  padding: 2px 10px; font-size: .78rem; vertical-align: middle;
}

/* ── sekcja filmów promo ── */
.filmy-siatka { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.film-karta { width: min(300px, 90vw); }
.film-karta video {
  width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #0e1b26;
  border-radius: 20px; box-shadow: 0 14px 34px rgba(36,66,92,.22);
}
.film-karta p { text-align: center; color: var(--granat); font-weight: 600; margin-top: 10px; }

/* ── karty katalogu (zwierzaki.html + "Czekają najdłużej") ── */
.katalog-siatka { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.zw-karta { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid rgba(36,66,92,.08);
  box-shadow: 0 6px 18px rgba(36,66,92,.07); text-decoration: none; color: inherit; display: flex;
  flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; position: relative; }
.zw-karta:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(36,66,92,.14); }
.zw-karta .foto { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eef2f5; display: grid;
  place-items: center; font-size: 2.6rem; }
.zw-karta .tresc { padding: 14px 16px 16px; }
.zw-karta h3 { margin: 0 0 4px; color: var(--granat); }
.zw-karta .meta { color: var(--szary); font-size: .88rem; }
.plakietka-dni { position: absolute; top: 10px; left: 10px; background: rgba(36,66,92,.86); color: #fff;
  font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plakietka-dni.dlugo { background: rgba(185,74,52,.9); }
.badge-trakcie-mini { position: absolute; top: 10px; right: 10px; background: var(--bursztyn); color: #1d2b38;
  font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }

/* ── pasek "Nasz wpływ" ── */
.wplyw { background: var(--granat); color: #cfe0ec; padding: 36px 0; }
.wplyw-siatka { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); text-align: center; }
.wplyw-poz strong { display: block; font-size: 2.2rem; color: #fff; }
.wplyw-poz span { font-size: .9rem; }
@media (max-width: 720px) { .wplyw-siatka { grid-template-columns: repeat(2, 1fr); } }

/* ── FAQ ── */
.faq-lista { display: grid; gap: 10px; margin-top: 22px; }
.faq-poz { background: #fff; border: 1px solid rgba(36,66,92,.1); border-radius: 12px; padding: 4px 18px; }
.faq-poz summary { cursor: pointer; font-weight: 700; color: var(--granat); padding: 12px 0; list-style: none; position: relative; }
.faq-poz summary::after { content: '+'; position: absolute; right: 2px; color: var(--bursztyn); font-size: 1.3rem; }
.faq-poz[open] summary::after { content: '–'; }
.faq-poz p { color: var(--szary); margin: 0 0 14px; line-height: 1.65; }
