/* Strona główna patrykbialas.pl */

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
h1 { font-size: 2.6rem; line-height: 1.05; font-weight: 700; margin: 0 0 14px; }
h2 { font-size: 1.6rem; line-height: 1.2; font-weight: 700; margin: 0 0 16px; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 24px 0 8px; }
.lead { color: var(--lime); font-size: 1.05rem; margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- hero --- */
.hero { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 40px; align-items: center; }
.hero-photo { margin: 0; justify-self: center; width: min(320px, 80vw); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px var(--lime-soft), 0 20px 50px rgb(0 0 0 / .35); order: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 0%; }

/* --- promo zakładki taryf --- */
.promo {
  display: grid; gap: 6px; padding: 22px 20px; margin-bottom: 24px; text-decoration: none; color: var(--text);
  background: linear-gradient(120deg, rgb(166 208 23 / .2), rgb(166 208 23 / .05));
  border: 1px solid var(--lime); border-radius: var(--radius);
  transition: transform .15s;
}
.promo:hover { transform: translateY(-2px); }
.promo-kicker { color: var(--lime); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.promo-title { font-size: 1.35rem; font-weight: 700; line-height: 1.25; }
.promo-text { color: var(--muted); }
.promo-go { color: var(--lime); font-weight: 600; margin-top: 4px; }

/* --- książka --- */
.promo.book { grid-template-columns: 72px 1fr; gap: 16px; align-items: center; background: var(--surface); border-color: var(--border); }
.promo.book:hover { border-color: var(--lime); }
.book-cover { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 24px rgb(0 0 0 / .35); }
.book-text { display: grid; gap: 6px; }
.book-btn { justify-self: start; margin-top: 8px; padding: 10px 18px; }
@media (min-width: 640px) { .promo.book { grid-template-columns: 110px 1fr; gap: 24px; padding: 22px 24px; } }

/* --- bloki treści --- */
.block { display: grid; gap: 22px; padding-top: 48px; padding-bottom: 8px; }
.block-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.block-photo img { width: 100%; height: 100%; object-fit: cover; }
.block-photo::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 6px; background: var(--lime); }
.block-text p { margin: 0 0 14px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pills a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--text); font-size: .9rem; font-weight: 600; }
.pills a:hover { border-color: var(--lime); color: var(--lime); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.stats div { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.stats strong { display: block; color: var(--lime); font-size: 1.6rem; line-height: 1.1; }
.stats span { color: var(--muted); font-size: .9rem; line-height: 1.35; display: block; margin-top: 4px; }

/* --- kontakt --- */
.contact { display: grid; gap: 16px; padding-top: 56px; padding-bottom: 56px; }
.contact-card { padding: 24px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--lime); }
.contact-card p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.contact-list li { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; align-items: baseline; }
.contact-list span { color: var(--muted); font-size: .88rem; }
.contact-list a, .contact-list b { font-weight: 600; word-break: break-word; }
.contact-links { display: grid; gap: 8px; align-content: start; }
.contact-links a {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 18px;
  border-radius: var(--radius); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600;
}
.contact-links a::after { content: "→"; color: var(--lime); }
.contact-links a:hover { border-color: var(--lime); }


/* --- desktop --- */
@media (min-width: 820px) {
  h1 { font-size: 3.6rem; }
  h2 { font-size: 2rem; }
  .hero { grid-template-columns: 1.3fr 1fr; padding-top: 64px; padding-bottom: 64px; }
  .hero-photo { order: 0; width: 100%; max-width: 380px; }
  .block { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 72px; }
  .block.reverse .block-photo { order: 2; }
  .contact { grid-template-columns: 1.2fr 1fr; }}

/* podstrona /radny/ */
.radny-top h1 { font-size: 2.2rem; line-height: 1.1; margin: 0 0 18px; }
.radny-top { padding-top: 32px; }
@media (min-width: 820px) { .radny-top h1 { font-size: 2.8rem; } .radny-top { padding-top: 56px; } }
.radny-top .block-text > div p { margin: 0 0 14px; }
.radny-top .pills { margin-top: 4px; }
.kadencja { padding-top: 56px; scroll-margin-top: 72px; }
.kadencja + .kadencja { margin-top: 16px; border-top: 1px solid var(--border); }
.kadencja-head { margin-bottom: 18px; }
.kadencja-head h2 { margin: 0; }
.kadencja-grid { display: grid; gap: 22px; margin-bottom: 18px; }
.facts { display: grid; gap: 10px; margin: 0 0 8px; }
.facts div { display: grid; grid-template-columns: 5.5em 1fr; gap: 10px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.facts dt { color: var(--muted); font-size: .88rem; }
.facts dd { margin: 0; font-weight: 600; }
.facts div:first-child dd { color: var(--lime); font-size: 1.25rem; line-height: 1.2; }
.duty-h { font-size: 1.35rem; margin: 0 0 10px; }
.places-h { margin: 18px 0 8px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.places { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: .92rem; }
.kadencja .contact-links { grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .kadencja-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .kadencja .contact-links { display: grid; grid-template-columns: 1fr 1fr; }
  #kadencja-2018 .facts { grid-template-columns: 1fr 1fr; }
}
main > section:last-child { padding-bottom: 64px; }
