/* =====================================================================
   PETHELP – "Twarze PETHELP 2027" landing page
   ---------------------------------------------------------------------
   Paleta i typografia odwzorowane z pethelp.pl (wrzesień 2026).
   Wszystkie kolory i kształty są zdefiniowane w bloku :root poniżej.
   ===================================================================== */

:root {
  /* Kolory marki (z pethelp.pl) */
  --ph-orange: #e4582c;        /* główny kolor akcji: przyciski, ceny, linki, akcent w nagłówkach */
  --ph-orange-dark: #c9481f;   /* hover pomarańczu */
  --ph-orange-light: #fdeee8;  /* jasne tło pomarańczowe */
  --ph-red: #e82048;           /* czerwień logo PETHELP */
  --ph-pink: #f01c5c;          /* różowe karty promocyjne */
  --ph-green: #489058;         /* zielone ptaszki, pozytywne informacje */
  --ph-green-light: #eaf4ec;
  --ph-yellow: #fcc400;        /* gwiazdki ocen */

  /* Neutralne */
  --ph-dark: #283034;          /* nagłówki */
  --ph-text: #3c4850;          /* tekst podstawowy */
  --ph-muted: #6b7680;         /* tekst pomocniczy */
  --ph-bg: #ffffff;
  --ph-bg-gray: #f2f2f2;       /* szare tło sekcji */
  --ph-border: #e0e0e0;        /* obramowania kart i pól */
  --ph-border-strong: #cfcfcf;
  --ph-error: #d9364c;
  --ph-success: #489058;

  /* Typografia i kształty */
  --ph-font: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ph-radius: 12px;
  --ph-radius-sm: 8px;
  --ph-radius-pill: 999px;
  --ph-shadow: 0 8px 24px rgba(40, 48, 52, 0.08);
  --ph-shadow-sm: 0 2px 8px rgba(40, 48, 52, 0.06);
  --ph-container: 1180px;
}

/* ---------- Reset / bazowe ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ph-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ph-text);
  background: var(--ph-bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--ph-orange); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; color: var(--ph-dark); font-weight: 600; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
.container { width: 100%; max-width: var(--ph-container); margin: 0 auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 7vw, 88px); }
.section--gray { background: var(--ph-bg-gray); }
.section__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section__head p { color: var(--ph-text); font-size: 1.02rem; }
.section__head--left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ph-orange);
  margin-bottom: 8px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Lista z zielonymi ptaszkami (jak w hero pethelp.pl) */
.checklist { list-style: none; margin: 0 0 1.2em; padding: 0; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px;
  border-left: 2.5px solid var(--ph-green); border-bottom: 2.5px solid var(--ph-green); transform: rotate(-45deg);
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  border-radius: var(--ph-radius-pill);
  font-family: inherit; font-size: 0.98rem; font-weight: 600; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  text-decoration: none !important;
  white-space: nowrap;
  max-width: 100%;
}
.btn:focus-visible { outline: 3px solid rgba(228, 88, 44, .4); outline-offset: 2px; }
.btn--primary { background: var(--ph-orange); color: #fff; }
.btn--primary:hover { background: var(--ph-orange-dark); }
.btn--white { background: #fff; color: var(--ph-orange); box-shadow: var(--ph-shadow-sm); }
.btn--white:hover { box-shadow: var(--ph-shadow); }
.btn--outline { background: #fff; color: var(--ph-orange); border-color: var(--ph-orange); }
.btn--outline:hover { background: var(--ph-orange-light); }
.btn--dark { background: var(--ph-dark); color: #fff; }
.btn--dark:hover { background: #111618; }
.btn--sm { padding: 10px 20px; font-size: 0.92rem; }
.nav > .btn--sm { padding: 9px 18px; font-size: 0.88rem; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn .paw { width: 18px; height: 18px; }
.btn .chev { width: 14px; height: 14px; }

/* ---------- Pasek informacyjny + nagłówek ---------- */
.topbar {
  background: var(--ph-pink);
  color: #fff;
  font-size: 0.88rem;
  text-align: center;
  padding: 8px 20px;
}
.topbar a { color: #fff; text-decoration: underline; font-weight: 600; }
.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--ph-border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.header__left { display: flex; align-items: center; gap: 18px; }
.header__phone { color: var(--ph-text); font-size: 0.88rem; font-weight: 500; }
.header__phone:hover { color: var(--ph-orange); text-decoration: none; }
.logo { display: inline-flex; align-items: center; text-decoration: none !important; }
.logo__img { height: 46px; width: auto; }
.logo--big .logo__img { height: 64px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--ph-dark); font-weight: 500; font-size: 0.88rem; }
.nav a:hover { color: var(--ph-orange); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ph-dark); margin: 5px 0; }

@media (max-width: 960px) {
  .header__phone { display: none; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--ph-border); padding: 12px 20px 20px; box-shadow: var(--ph-shadow); }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--ph-bg-gray); }
  .nav .btn { margin-top: 12px; border-bottom: 0; justify-content: center; font-size: .92rem; }
  .nav__toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 28px 40px; }
.hero__box {
  position: relative; overflow: hidden;
  border-radius: var(--ph-radius);
  background:
    radial-gradient(900px 500px at 100% 20%, #fbe9e0 0%, rgba(251, 233, 224, 0) 60%),
    linear-gradient(90deg, #ffffff 0%, #ffffff 45%, #f7f3f0 100%);
  border: 1px solid var(--ph-border);
  padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
.hero__box::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><g fill='%23e4582c' fill-opacity='0.06'><ellipse cx='70' cy='78' rx='13' ry='11'/><circle cx='52' cy='62' r='5.5'/><circle cx='62' cy='50' r='6'/><circle cx='78' cy='50' r='6'/><circle cx='88' cy='62' r='5.5'/></g></svg>");
  opacity: 1; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.hero__content { position: relative; min-width: 0; }
.hero h1 { color: var(--ph-dark); }
.hero h1 em { font-style: normal; color: var(--ph-orange); display: block; }
.hero__line { white-space: nowrap; }
@media (max-width: 600px) { .hero__line { white-space: normal; } }
.hero__year {
  display: inline-block; vertical-align: middle; margin-left: 4px; transform: translateY(-0.12em);
  font-size: 0.42em; font-weight: 700; letter-spacing: 0.04em; line-height: 1;
  padding: 0.45em 0.8em; border-radius: var(--ph-radius-pill);
  background: var(--ph-pink); color: #fff;
}
.hero__lead { font-size: 1.08rem; color: var(--ph-text); max-width: 520px; margin: 6px 0 22px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.hero__note { margin: 18px 0 0; font-size: 0.92rem; color: var(--ph-green); display: flex; align-items: center; gap: 8px; }
.hero__note svg { width: 16px; height: 16px; flex: none; }

/* Siatka 6 ramek: zdjęcia zgłoszonych kandydatów (losowo, z podmianą co kilka sekund) lub „?” dla wolnych miejsc */
.frames { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.frame {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--ph-radius); background: #fff;
  border: 1.5px dashed var(--ph-border-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--ph-muted); text-decoration: none !important; box-shadow: var(--ph-shadow-sm);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.frame:hover { transform: translateY(-3px); border-color: var(--ph-orange); box-shadow: var(--ph-shadow); }
.frame__q { font-size: 2.4rem; font-weight: 700; color: var(--ph-orange); line-height: 1; }
.frame__label { font-size: .72rem; font-weight: 500; color: var(--ph-muted); }
.frame--photo { border: 0; background: var(--ph-bg-gray); }
.frame__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.frame__img.is-visible { opacity: 1; }
.frame__name {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; text-align: center;
  font-size: .78rem; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%);
  opacity: 0; transition: opacity .8s ease;
}
.frame__name.is-visible { opacity: 1; }
.frame--photo .frame__q, .frame--photo .frame__label { display: none; }
.frames__caption { margin: 14px 0 0; text-align: center; font-size: .9rem; color: var(--ph-muted); }

@media (max-width: 900px) {
  .hero__box { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .hero__actions .btn { width: 100%; }
}

/* ---------- Rząd kafelków (jak "Dla psów / Dla kotów / ..." na pethelp.pl) ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.tile {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #fff; border: 1px solid var(--ph-border); border-radius: var(--ph-radius);
  padding: 16px 18px; color: var(--ph-dark); font-weight: 600; font-size: 0.98rem;
  transition: border-color .15s, box-shadow .15s; text-decoration: none !important;
}
.tile:hover { border-color: var(--ph-orange); box-shadow: var(--ph-shadow-sm); }
.tile svg { width: 26px; height: 26px; color: var(--ph-orange); flex: none; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Jak to działa ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--ph-border); border-radius: var(--ph-radius);
  padding: 30px 26px 26px;
}
.step__num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--ph-orange); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin-bottom: 18px;
}
.step p { color: var(--ph-text); margin: 0; }
.step__date { display: inline-block; margin-top: 14px; font-size: .85rem; font-weight: 600; color: var(--ph-orange); background: var(--ph-orange-light); padding: 4px 12px; border-radius: var(--ph-radius-pill); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Nagrody ---------- */
.prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prize {
  background: #fff; border-radius: var(--ph-radius); padding: 30px 26px;
  border: 1px solid var(--ph-border); box-shadow: var(--ph-shadow-sm);
  display: flex; flex-direction: column;
}
.prize__icon { width: 60px; height: 60px; border-radius: 50%; background: var(--ph-orange-light); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.prize__icon svg { width: 30px; height: 30px; }
.prize h3 { font-size: 1.2rem; }
.prize p { color: var(--ph-text); margin: 0; flex: 1; }
.prize .checklist { margin: 14px 0 0; font-size: .95rem; color: var(--ph-text); }
.prizes__note { text-align: center; margin: 28px 0 0; color: var(--ph-muted); font-size: .92rem; }
@media (max-width: 860px) { .prizes { grid-template-columns: 1fr; } }

/* ---------- Kogo szukamy (karty jak "Darmowy nocleg" / "Znajdź placówkę") ---------- */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.who__card { border-radius: var(--ph-radius); padding: 36px 32px; position: relative; overflow: hidden; min-height: 240px; }
.who__card--pink { background: var(--ph-pink); color: #fff; }
.who__card--pink h3, .who__card--pink .big { color: #fff; }
.who__card--pink p { color: rgba(255,255,255,.92); }
.who__card--gray { background: #fff; border: 1px solid var(--ph-border); color: var(--ph-text); }
.who__card--gray .big { color: var(--ph-orange); }
.who__card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.who__card .big { font-size: 3.4rem; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.who__card p { margin: 0; max-width: 380px; }
.who__card svg { position: absolute; right: -6px; bottom: -12px; width: 150px; height: 150px; opacity: .14; }
.who__card--gray svg { color: var(--ph-orange); opacity: .18; }
.who__list { margin: 32px auto 0; max-width: 820px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 32px; }
@media (max-width: 760px) { .who, .who__list { grid-template-columns: 1fr; } }

/* ---------- Formularz zgłoszeniowy ---------- */
.apply__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.apply__aside { position: sticky; top: 104px; }
.apply__aside .card { background: #fff; border: 1px solid var(--ph-border); border-radius: var(--ph-radius); padding: 30px 28px; }
.apply__aside .card h3 { font-size: 1.2rem; }
.apply__aside ol { padding-left: 0; margin: 0; list-style: none; counter-reset: tip; }
.apply__aside li { position: relative; padding-left: 38px; margin-bottom: 12px; counter-increment: tip; }
.apply__aside li::before {
  content: counter(tip); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ph-orange-light); color: var(--ph-orange); font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}
.apply__aside .deadline { margin-top: 20px; padding: 14px 16px; border-radius: var(--ph-radius-sm); background: var(--ph-pink); color: #fff; font-size: .95rem; }
.apply__aside .deadline strong { color: #fff; }

.form { background: #fff; border: 1px solid var(--ph-border); border-radius: var(--ph-radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--ph-shadow-sm); }
.form__row { margin-bottom: 24px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__row--2 .form__row { margin-bottom: 0; }
.form label.label { display: block; font-weight: 600; color: var(--ph-dark); margin-bottom: 8px; font-size: 1rem; }
.form .req { color: var(--ph-orange); }
.form .hint { color: var(--ph-muted); font-size: .9rem; margin: -4px 0 10px; }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ph-text);
  padding: 13px 16px; border: 1.5px solid var(--ph-border-strong); border-radius: var(--ph-radius-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
.form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23283034' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.form textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.form input::placeholder, .form textarea::placeholder { color: #9aa3ab; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ph-orange); box-shadow: 0 0 0 4px rgba(228, 88, 44, .15); }
.form .is-invalid input, .form .is-invalid select, .form .is-invalid textarea { border-color: var(--ph-error); box-shadow: 0 0 0 4px rgba(217, 54, 76, .12); }
.form .error { display: none; color: var(--ph-error); font-size: .92rem; margin: 8px 0 0; font-weight: 500; }
.form .is-invalid .error { display: block; }
.form .counter { text-align: right; font-size: .85rem; color: var(--ph-muted); margin-top: 6px; }

/* Kadrowanie zdjęcia do kwadratu */
.photo { display: flex; flex-direction: column; gap: 14px; }
.photo__stage {
  position: relative; width: min(100%, 400px); aspect-ratio: 1 / 1;
  border: 1.5px dashed var(--ph-orange); border-radius: var(--ph-radius-sm);
  background: var(--ph-orange-light); overflow: hidden; touch-action: none; user-select: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.photo__stage canvas { width: 100%; height: 100%; display: none; cursor: grab; }
.photo__stage.has-image { cursor: default; border-style: solid; }
.photo__stage.has-image canvas { display: block; }
.photo__stage.has-image .photo__empty { display: none; }
.photo__stage.is-dragging canvas { cursor: grabbing; }
.photo__empty { text-align: center; color: var(--ph-dark); font-weight: 500; padding: 20px; font-size: .95rem; }
.photo__empty svg { width: 42px; height: 42px; margin: 0 auto 10px; color: var(--ph-orange); }
.photo__stage.is-dragover { background: #f9d9cc; }
.photo__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.photo__zoom { display: none; align-items: center; gap: 10px; font-size: .9rem; color: var(--ph-muted); }
.photo__zoom input { width: 140px; accent-color: var(--ph-orange); }
.photo.has-image .photo__zoom { display: flex; }
.photo__file { display: none; }
.photo__meta { font-size: .85rem; color: var(--ph-muted); }
.photo__stage.is-invalid-stage { border-color: var(--ph-error); }

/* Zgody */
.consent { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; font-size: .92rem; color: var(--ph-text); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ph-orange); }
.consent a { font-weight: 500; }
.form__consents .error { margin: -4px 0 12px 32px; }

.form__submit { margin-top: 28px; }
.form__status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--ph-radius-sm); font-weight: 500; }
.form__status.is-error { display: block; background: #fdeaed; color: var(--ph-error); }
.form__status.is-info { display: block; background: var(--ph-orange-light); color: var(--ph-dark); }


@media (max-width: 960px) {
  .apply__grid { grid-template-columns: 1fr; }
  .apply__aside { position: static; }
}
@media (max-width: 560px) {
  .form__row--2 { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- FAQ (akordeon jak tabela pakietów) ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--ph-border); border-radius: var(--ph-radius); margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 56px 16px 22px; font-weight: 600; color: var(--ph-dark); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ph-dark); border-bottom: 2px solid var(--ph-dark);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 22px 20px; color: var(--ph-text); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- CTA pasek ---------- */
.cta-band { padding-block: 0 72px; }
.cta-band__inner {
  background: var(--ph-pink); color: #fff; border-radius: var(--ph-radius);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { margin: 0; color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: 6px 0 0; color: rgba(255,255,255,.92); }
.cta-band .btn--white { color: var(--ph-pink); }

/* ---------- Stopka (jak na pethelp.pl: białe tło) ---------- */
.footer { background: #fff; border-top: 1px solid var(--ph-border); padding-block: 48px 28px; font-size: .95rem; color: var(--ph-text); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 36px; margin-bottom: 36px; }
.footer h4 { color: var(--ph-dark); font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--ph-text); }
.footer a:hover { color: var(--ph-orange); text-decoration: none; }
.footer__address { margin: 18px 0 0; line-height: 1.7; }
.footer__address strong { color: var(--ph-dark); }
.footer__social { display: flex; gap: 14px; justify-content: flex-end; }
.footer__social a { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ph-dark); }
.footer__social a:hover { color: var(--ph-orange); }
.footer__social a[data-brand="facebook"]:hover { color: #1877F2; }
.footer__social a[data-brand="instagram"]:hover { color: #E4405F; }
.footer__social a[data-brand="linkedin"]:hover { color: #0A66C2; }
.footer__social a[data-brand="tiktok"]:hover { color: #FE2C55; }
.footer__social svg { width: 22px; height: 22px; }
.footer__bottom { border-top: 1px solid var(--ph-border); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--ph-muted); }
.footer__bottom a { color: var(--ph-muted); }
.footer__bottom .sep { margin: 0 8px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__social { justify-content: flex-start; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Animacje wejścia ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* =====================================================================
   Podstrony: generator ramki, podziękowanie, regulamin
   ===================================================================== */
.page-hero {
  background: linear-gradient(180deg, #fdf0f2 0%, #fff 100%);
  padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero h1 .script { display: block; font-family: "Yellowtail", cursive; font-weight: 400; color: var(--ph-pink); font-size: 1.25em; line-height: 1; margin-top: 2px; }
.page-hero p { max-width: 620px; margin: 0 auto; color: var(--ph-text); }
.page-hero .btn { margin-top: 20px; }

/* Generator */
.gen { padding-block: 24px 80px; }
.gen__grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; align-items: start; }
.gen__panel { background: #fff; border: 1px solid var(--ph-border); border-radius: var(--ph-radius); padding: 26px 24px; box-shadow: var(--ph-shadow-sm); }
.gen__label { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ph-pink); margin-bottom: 18px; }
.gen__label::before { content: ""; width: 3px; height: 16px; background: var(--ph-pink); border-radius: 2px; }
.gen__step { padding-block: 16px; border-top: 1px solid var(--ph-bg-gray); }
.gen__step:first-of-type { border-top: 0; padding-top: 0; }
.gen__num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: var(--ph-pink); color: #fff; font-size: .8rem; font-weight: 700; margin-bottom: 8px; }
.gen__step h3 { font-size: .95rem; margin-bottom: 10px; }
.gen__drop {
  border: 1.5px dashed var(--ph-pink); border-radius: var(--ph-radius-sm); background: #fff5f7;
  padding: 26px 16px; text-align: center; cursor: pointer; color: var(--ph-text); font-size: .9rem; transition: background .15s;
}
.gen__drop:hover, .gen__drop.is-dragover { background: #fde8ed; }
.gen__drop strong { display: block; color: var(--ph-pink); font-size: 1rem; }
.gen__drop .plus { display: block; font-size: 1.6rem; color: var(--ph-pink); line-height: 1; margin-bottom: 4px; }
.gen__drop.has-image { padding: 12px 16px; }
.gen__file { display: none; }
.gen input[type="text"] { width: 100%; font-family: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--ph-border-strong); border-radius: var(--ph-radius-sm); }
.gen input[type="text"]:focus { outline: none; border-color: var(--ph-pink); box-shadow: 0 0 0 4px rgba(240,28,92,.12); }
.gen__zoom { display: flex; align-items: center; gap: 10px; }
.gen__zoom input { flex: 1; accent-color: var(--ph-pink); }
.gen__zoom span { font-weight: 700; color: var(--ph-dark); width: 14px; text-align: center; }
.gen__templates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gen__tpl {
  border: 1.5px solid var(--ph-border); border-radius: var(--ph-radius-sm); background: #fff; padding: 10px 8px;
  font-family: inherit; cursor: pointer; text-align: center; transition: border-color .15s, background .15s;
}
.gen__tpl strong { display: block; color: var(--ph-pink); font-size: .95rem; }
.gen__tpl span { font-size: .78rem; color: var(--ph-muted); }
.gen__tpl.is-active { border-color: var(--ph-pink); background: #fff5f7; }
.gen__download { margin-top: 18px; width: 100%; background: var(--ph-pink); }
.gen__download:hover { background: #d0134c; }
.gen__hint { font-size: .82rem; color: var(--ph-muted); text-align: center; margin: 10px 0 0; }

.gen__preview { position: sticky; top: 104px; }
.gen__canvasWrap { background: #fff; border-radius: var(--ph-radius); box-shadow: var(--ph-shadow); overflow: hidden; touch-action: none; user-select: none; max-width: 560px; }
.gen__canvasWrap canvas { width: 100%; height: auto; display: block; cursor: grab; }
.gen__canvasWrap.is-dragging canvas { cursor: grabbing; }
.gen__tips { background: #fff; border: 1px solid var(--ph-border); border-radius: var(--ph-radius); padding: 20px 22px; margin-top: 20px; max-width: 560px; }
.gen__tips h3 { font-size: 1rem; }
.gen__tips ol { margin: 0; padding: 0; list-style: none; counter-reset: tip; }
.gen__tips li { counter-increment: tip; position: relative; padding-left: 36px; margin-bottom: 8px; font-size: .92rem; color: var(--ph-text); }
.gen__tips li::before { content: "0" counter(tip); position: absolute; left: 0; top: 0; font-weight: 700; color: var(--ph-pink); font-size: .8rem; line-height: 1.7; }
@media (max-width: 900px) {
  .gen__grid { grid-template-columns: 1fr; }
  .gen__preview { position: static; }
}

/* Komunikat po pobraniu grafiki + ikony social media */
.gen__done { margin-top: 18px; padding: 22px 20px; border-radius: var(--ph-radius); background: var(--ph-green-light); text-align: center; }
.gen__done-check { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: var(--ph-green); color: #fff; font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.gen__done h3 { font-size: 1.1rem; margin-bottom: 6px; }
.gen__done p { font-size: .92rem; color: var(--ph-text); margin-bottom: 14px; }
.gen__done .gen__hint { margin: 12px 0 0; }
.social { display: flex; justify-content: center; gap: 12px; }
.social__btn { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; text-decoration: none !important; transition: transform .15s, box-shadow .15s; box-shadow: var(--ph-shadow-sm); }
.social__btn:hover { transform: translateY(-2px); box-shadow: var(--ph-shadow); }
.social__btn svg { width: 22px; height: 22px; }
.social__btn--fb { background: #1877F2; }
.social__btn--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social__btn--li { background: #0A66C2; }
.social__btn--x { background: #000; }
.social__btn--copy { background: var(--ph-bg-gray); color: var(--ph-dark); border: 0; cursor: pointer; font: inherit; padding: 0; }
.social__btn--copy:hover { background: var(--ph-border); }

/* Sekcja "pochwal się" na stronie głównej */
.share-section__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.share-section .checklist { margin-top: 12px; }
.mock {
  width: min(100%, 380px); margin-inline: auto; background: #fff; border-radius: var(--ph-radius); box-shadow: var(--ph-shadow); overflow: hidden;
  transform: rotate(-2deg);
}
.mock__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--ph-border); }
.mock__top img { height: 30px; width: auto; }
.mock__badge { background: var(--ph-pink); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; }
.mock__photo { aspect-ratio: 1 / 1; background: linear-gradient(135deg, #fde2e8, #fff5f7); display: flex; align-items: center; justify-content: center; color: var(--ph-pink); font-weight: 600; font-size: .95rem; }
.mock__photo svg { width: 60px; height: 60px; }
.mock__wave { height: 26px; background: var(--ph-pink); clip-path: polygon(0 40%, 25% 10%, 50% 40%, 75% 70%, 100% 30%, 100% 100%, 0 100%); margin-top: -2px; }
.mock__body { text-align: center; padding: 14px 16px 18px; }
.mock__name { font-weight: 700; font-size: 1.3rem; color: var(--ph-dark); }
.mock__sub { font-size: .8rem; color: var(--ph-muted); }
.mock__script { font-family: "Yellowtail", cursive; color: var(--ph-pink); font-size: 1.8rem; line-height: 1.1; }
.mock__url { font-size: .72rem; color: var(--ph-muted); margin-top: 4px; }
@media (max-width: 860px) { .share-section__grid { grid-template-columns: 1fr; } }

/* Podziękowanie */
.thanks { padding-block: clamp(40px, 6vw, 72px) 80px; }
.thanks__card { max-width: 760px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--ph-border); border-radius: var(--ph-radius); padding: clamp(28px, 5vw, 56px); box-shadow: var(--ph-shadow-sm); }
.thanks__check { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; background: var(--ph-green-light); display: flex; align-items: center; justify-content: center; }
.thanks__check svg { width: 44px; height: 44px; }
.thanks__photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; border: 4px solid var(--ph-pink); display: none; }
.thanks__photo.is-visible { display: block; }
.thanks__steps { text-align: left; max-width: 520px; margin: 28px auto 0; }
.thanks__next { margin-top: 36px; padding: 28px; border-radius: var(--ph-radius); background: var(--ph-pink); color: #fff; }
.thanks__next h2 { color: #fff; font-size: 1.5rem; }
.thanks__next p { color: rgba(255,255,255,.92); }
.thanks__next .btn--white { color: var(--ph-pink); }
.thanks__shareBox { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ph-border); }
.thanks__shareLabel { font-weight: 600; color: var(--ph-dark); margin-bottom: 14px; }
.thanks__shareHint { font-size: .85rem; color: var(--ph-muted); margin: 14px 0 0; transition: color .2s; }
.thanks__shareHint.is-ok { color: var(--ph-green); font-weight: 500; }
.thanks__shareBtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }

/* Regulamin */
.legal { padding-block: 40px 80px; }
.legal__wrap { max-width: 820px; margin: 0 auto; }
.legal__notice { background: var(--ph-orange-light); border: 1px solid #f5c9b8; border-radius: var(--ph-radius-sm); padding: 14px 18px; color: var(--ph-dark); font-size: .95rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.3rem; margin-top: 36px; }
.legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal__meta { color: var(--ph-muted); font-size: .9rem; }

/* =====================================================================
   Kandydaci i głosowanie
   ===================================================================== */
.cand-list { padding-block: 8px 80px; }
.cand-list__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.cand-list__toolbar select { font-family: inherit; font-size: .95rem; padding: 10px 36px 10px 14px; border: 1.5px solid var(--ph-border-strong); border-radius: var(--ph-radius-pill); background: #fff; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23283034' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.cand-list__count { color: var(--ph-muted); font-size: .92rem; margin-left: 6px; flex: 1; }
.cand-list__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cand-list__more { text-align: center; margin-top: 28px; }
.cand-list__empty { margin-top: 10px; }
.ccard { background: #fff; border: 1px solid var(--ph-border); border-radius: var(--ph-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.ccard:hover { box-shadow: var(--ph-shadow); transform: translateY(-2px); }
.ccard__photoLink { position: relative; display: block; }
.ccard__photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--ph-bg-gray); }
.entry__tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: var(--ph-orange-light); color: var(--ph-orange); }
.entry__tag--kot { background: #e9eefc; color: #2d4fbf; }
.ccard__tag, .cand__tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); }
.ccard__body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.ccard__name { font-size: 1.25rem; margin-bottom: 2px; }
.ccard__name a { color: var(--ph-dark); }
.ccard__name a:hover { color: var(--ph-orange); text-decoration: none; }
.ccard__meta { font-size: .88rem; color: var(--ph-muted); margin-bottom: 8px; }
.ccard__meta strong { color: var(--ph-orange); font-size: 1rem; }
.ccard__excerpt { font-size: .9rem; color: var(--ph-text); margin-bottom: 14px; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ccard__actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1100px) { .cand-list__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cand-list__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .ccard__actions .btn { flex: 1; } }
@media (max-width: 420px) { .cand-list__grid { grid-template-columns: 1fr; } }

.cand { padding-block: 24px 80px; }
.cand__crumbs { font-size: .9rem; color: var(--ph-muted); margin-bottom: 18px; }
.cand__crumbs a { color: var(--ph-muted); }
.cand__crumbs a:hover { color: var(--ph-orange); }
.cand__banner { padding: 14px 18px; border-radius: var(--ph-radius-sm); margin-bottom: 20px; font-weight: 500; }
.cand__banner--ok { background: var(--ph-green-light); color: var(--ph-green); }
.cand__banner--info { background: var(--ph-orange-light); color: var(--ph-dark); }
.cand__banner--error { background: #fdeaed; color: var(--ph-error); }
.cand__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.cand__photoWrap { position: relative; }
.cand__photo { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--ph-radius); display: block; box-shadow: var(--ph-shadow); }
.cand__name { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 4px; }
.cand__meta { color: var(--ph-muted); margin-bottom: 16px; }
.cand__ig { margin: -8px 0 16px; }
.cand__ig a { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: .95rem; color: var(--ph-dark); padding: 6px 12px 6px 8px; border-radius: var(--ph-radius-pill); background: var(--ph-bg-gray); }
.cand__ig a:hover { text-decoration: none; color: #d6249f; background: #fdf0f7; }
.cand__ig svg { width: 18px; height: 18px; color: #d6249f; }
.cand__votes { font-size: 1.1rem; color: var(--ph-text); margin-bottom: 16px; }
.cand__votes strong { font-size: 2.2rem; color: var(--ph-orange); margin-right: 6px; line-height: 1; }
.cand__hint { font-size: .85rem; color: var(--ph-muted); margin: 10px 0 0; }
.cand__h2 { font-size: 1.2rem; margin-top: 28px; }
.cand__story { color: var(--ph-text); line-height: 1.7; }
.cand__share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ph-border); font-size: .9rem; color: var(--ph-muted); }
.cand__back { margin-top: 36px; font-size: .95rem; color: var(--ph-muted); }
@media (max-width: 860px) { .cand__grid { grid-template-columns: 1fr; gap: 24px; } }

.vote-modal[hidden] { display: none; }
.vote-modal { position: fixed; inset: 0; z-index: 100; background: rgba(40, 48, 52, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.vote-modal__box { position: relative; background: #fff; border-radius: var(--ph-radius); padding: 30px 28px; width: 100%; max-width: 460px; box-shadow: var(--ph-shadow); }
.vote-modal__box h3 { font-size: 1.3rem; padding-right: 30px; }
.vote-modal__box p { color: var(--ph-text); font-size: .95rem; }
.vote-modal__box .label { display: block; font-weight: 600; color: var(--ph-dark); margin: 8px 0 6px; font-size: .95rem; }
.vote-modal__box input[type="email"] { width: 100%; font-family: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--ph-border-strong); border-radius: var(--ph-radius-sm); margin-bottom: 12px; }
.vote-modal__box input[type="email"]:focus { outline: none; border-color: var(--ph-orange); box-shadow: 0 0 0 4px rgba(228,88,44,.15); }
.vote-modal__box .consent { font-size: .85rem; }
.vote-modal__close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--ph-muted); cursor: pointer; }
.vote-modal__error { color: var(--ph-error); font-size: .9rem; min-height: 1.2em; margin: 0 0 10px; }
.vote-modal__ok { width: 64px; height: 64px; border-radius: 50%; background: var(--ph-green-light); color: var(--ph-green); font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
#voteStep2 { text-align: center; }


/* =====================================================================
   Responsywność na wąskich ekranach (telefony)
   ===================================================================== */
@media (max-width: 560px) {
  /* Długie etykiety CTA mogą się zawinąć zamiast wychodzić poza kartę */
  .btn { white-space: normal; text-align: center; }
  .btn--lg { padding: 15px 22px; font-size: 1rem; }

  /* Strona podziękowania */
  .thanks__card { padding: 26px 18px; }
  .thanks__next { padding: 22px 18px; }
  .thanks__next h2 { font-size: 1.3rem; }
  .thanks__steps { margin-top: 22px; }
  .thanks__shareBtns { flex-direction: column; gap: 10px; }
  .thanks__shareBtns .btn { width: 100%; }
  .social { flex-wrap: wrap; }
  .thanks__photo { width: 120px; height: 120px; }
}

/* =====================================================================
   Pasek zgody na cookies (analityka)
   ===================================================================== */
.consent-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  max-width: 880px; margin: 0 auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--ph-border); border-radius: var(--ph-radius);
  padding: 16px 20px; box-shadow: var(--ph-shadow);
}
.consent-bar__text { margin: 0; flex: 1; min-width: 240px; font-size: .88rem; color: var(--ph-text); line-height: 1.5; }
.consent-bar__btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .consent-bar { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; }
  .consent-bar__btns { width: 100%; }
  .consent-bar__btns .btn { flex: 1; }
}
