/* ==========================================================================
   piotrjancewicz.pl – arkusz stylów
   Kierunek: minimalistyczny, nowoczesny, budujący zaufanie.
   Paleta: grafit i butelkowa zieleń.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* DM Serif Display – czcionka logotypu „Piotr Jancewicz” (nagłówek i stopka).
   Licencja SIL Open Font License, plik wgrany lokalnie (bez łączenia z Google – RODO).
   Napis nie ma polskich znaków, więc wystarcza podstawowy zestaw łaciński. */
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-serif-display-latin.woff2") format("woff2");
}

/* Czcionka wyłącznie dla podpisu projektanta w stopce (.footer-credit) – ten sam plik,
   którego używa jancevicz.com, żeby podpis wyglądał identycznie jak na jancevicz.com i reformio.pl. */
@font-face {
  font-family: "ClashDisplay";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/clashdisplay-variable.woff2") format("woff2");
}

/* Paleta: grafit + butelkowa zieleń */
:root {
  --bg:      #fdfdfc;
  --soft:    #f3f5f3;
  --ink:     #161b1f;
  --muted:   #59626a;
  --rule:    #e2e6e3;
  --brand:   #1e4a3d;   /* butelkowa zieleń – przyciski, linki, wyróżnienia */
  --brand-d: #143528;
  --brand-l: #e2ede7;
  --red:     #2f7a5f;   /* akcent – drobne linie i numery (nazwa historyczna) */
  --dark:    #252b30;   /* grafit – ciemne sekcje */
  --on-dark: #ffffff;
  --on-dark-muted: #b8c1c7;
  --err:     #b3261e;
  --ok:      #1e6b3a;
  --shadow:  rgba(16, 22, 26, .35);

  --sans:  "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --px: clamp(20px, 5vw, 56px);
  --maxw: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .2s; }
a:hover { color: var(--brand-d); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
::selection { background: var(--brand); color: #fff; }

h1, h2, h3 { font-weight: 700; color: var(--ink); line-height: 1.08; letter-spacing: -0.025em; }
h1 { font-size: clamp(38px, 4.6vw, 60px); letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.8vw, 46px); }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
p + p { margin-top: 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--px); }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--soft { background: var(--soft); }
.section--first { padding-top: clamp(48px, 7vw, 96px); }
.lead { font-size: clamp(19px, 1.9vw, 21px); color: var(--muted); max-width: 600px; }
.muted { color: var(--muted); }
.small { font-size: 15px; color: var(--muted); }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 64px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.label::before { content: ""; width: 24px; height: 2px; background: var(--red); }

.layout { display: grid; grid-template-columns: 5fr 7fr; gap: 32px clamp(32px, 7vw, 96px); align-items: start; }
.layout > * { min-width: 0; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } }

/* ── Przyciski i linki ── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px; border-radius: 4px;
  font: inherit; font-size: 17px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--brand); }
.btn--light:hover { background: var(--brand-l); border-color: var(--brand-l); color: var(--brand-d); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

.link { font-weight: 600; text-decoration: none; color: var(--brand); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease); padding-bottom: 2px; }
.link:hover { background-size: 100% 1px; }
.link::after { content: "\00a0→"; display: inline-block; transition: transform .25s var(--ease); }
.link:hover::after { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 40px; }
.tel-link { color: var(--ink); text-decoration: none; font-size: 17px; }
.tel-link strong { font-weight: 700; }
.tel-link:hover { color: var(--brand); }

/* ── Nagłówek ── */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-bottom-color: var(--rule); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { font-family: "DM Serif Display", var(--serif); font-weight: 400; font-size: 25px; letter-spacing: 0; color: var(--ink); text-decoration: none; white-space: nowrap; transition: color .2s; }
.brand:hover { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 30px; list-style: none; }
.nav__list a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat; padding: 4px 0; transition: background-size .3s var(--ease); }
.nav__list a:hover, .nav__list a[aria-current="page"] { background-size: 100% 2px; }
.nav__cta { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.nav__toggle { display: none; background: none; border: 0; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; min-height: 44px; padding: 0 4px; }
@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rule);
         flex-direction: column; align-items: stretch; gap: 0; padding: 4px var(--px) 20px;
         visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 18px; background: none; }
  .nav__cta { margin-top: 16px; min-height: 52px; }
}

/* ── Hero ── */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 7fr 4.5fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero h1 { margin-top: 24px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { margin-top: 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); list-style: none; font-size: 15px; color: var(--muted); }
.trust strong { color: var(--ink); font-weight: 600; }

.portrait { position: relative; justify-self: end; width: 100%; max-width: 400px; }
.portrait::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; background: var(--brand-l); border-radius: 6px; }
.portrait::after { content: ""; position: absolute; left: -14px; top: 40px; width: 4px; height: 96px; background: var(--red); }
.portrait img { position: relative; border-radius: 6px; box-shadow: 0 24px 48px -28px var(--shadow); width: 100%; aspect-ratio: 452 / 586; object-fit: cover; border-radius: 4px; }
.portrait figcaption { position: absolute; left: 0; bottom: -84px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.portrait figcaption strong { display: block; color: var(--ink); font-size: 16px; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 260px; margin: 8px 0 72px; }
  .portrait::before { inset: 18px -18px -18px 18px; }
}

/* ── Pas z liczbami ── */
.band { background: var(--dark); color: var(--on-dark); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts--4 { grid-template-columns: repeat(4, 1fr); }
.fact { padding: clamp(36px, 5vw, 56px) 28px clamp(36px, 5vw, 56px) 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.16); }
.fact__num { display: block; font-size: clamp(44px, 5.4vw, 68px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.fact__label { display: block; margin-top: 14px; font-size: 16px; color: var(--on-dark-muted); line-height: 1.45; max-width: 26ch; }
.section--soft .fact__num { color: var(--brand); }
.section--soft .fact { border-color: var(--rule); }
.section--soft .fact__label { color: var(--muted); }
.section--soft .fact + .fact { border-left-color: var(--rule); }
@media (max-width: 760px) {
  .facts, .facts--4 { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 28px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .fact:last-child { border-bottom: 0; }
  .section--soft .fact { border-bottom-color: var(--rule); }
}

/* ── Wiersze (usługi, kroki) ── */
.rows { list-style: none; border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 5fr 6fr 140px; gap: 12px 40px; padding: 32px 0; border-bottom: 1px solid var(--rule); align-items: baseline; position: relative; transition: padding .35s var(--ease); }
.row > * { min-width: 0; }
.row p { color: var(--muted); font-size: 17px; }
.row .link { justify-self: end; white-space: nowrap; }
a.row { text-decoration: none; color: inherit; }
.row--link::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--brand); transition: width .45s var(--ease); }
.row--link:hover::before { width: 100%; }
.row--link:hover h3 { color: var(--brand); }
.row--link h3 { transition: color .25s; }
.row--steps { grid-template-columns: 72px 4fr 7fr; }
.row__num { font-size: 15px; font-weight: 700; color: var(--red); letter-spacing: .04em; }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row .link { justify-self: start; }
  .row--steps { grid-template-columns: 44px 1fr; }
  .row--steps p { grid-column: 2; }
}

.dash { list-style: none; }
.dash li { position: relative; padding-left: 28px; }
.dash li + li { margin-top: 12px; }
.dash li::before { content: ""; position: absolute; left: 0; top: .8em; width: 14px; height: 2px; background: var(--red); }

/* Cytat */
.quote { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.5; color: var(--ink); }

/* Opinie */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reviews > * { min-width: 0; }
.review { background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 32px; display: flex; flex-direction: column; transition: border-color .3s, transform .3s var(--ease); }
.review:hover { border-color: var(--muted); transform: translateY(-2px); }
.review__mark { font-family: var(--serif); font-size: 56px; line-height: .6; color: var(--brand); height: 28px; }
.review blockquote { font-family: var(--serif); font-size: 19px; line-height: 1.55; margin-top: 12px; }
.review figcaption { margin-top: auto; padding-top: 24px; font-size: 15px; font-weight: 600; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* FAQ – płynne rozwijanie */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 24px 56px 24px 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; position: relative; transition: color .2s; }
.faq summary:hover { color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; background: var(--brand); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq__body { overflow: hidden; }
.faq__body > div { padding: 0 56px 26px 0; color: var(--muted); }

/* ── Partnerzy (O mnie) ── */
.partners { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
.partners > * { min-width: 0; }
.partner { padding: clamp(32px, 5vw, 56px); }
.partner + .partner { border-left: 1px solid var(--rule); }
.partner__kicker { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.partner__name { margin-top: 16px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--brand); }
.partner__name span { display: block; font-size: .5em; font-weight: 600; letter-spacing: 0; color: var(--ink); margin-top: 10px; }
.partner p { margin-top: 20px; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .partners { grid-template-columns: 1fr; } .partner + .partner { border-left: 0; border-top: 1px solid var(--rule); } }

/* ── Sekcja kontaktu (ciemna) ── */
.contact { background: var(--dark); color: var(--on-dark); }
.contact h1, .contact h2 { color: #fff; }
.contact .muted, .contact .small { color: var(--on-dark-muted); }
.contact .label { color: var(--on-dark-muted); }
.contact .label::before { background: #6fbf9a; }
.fact__num { color: #fff; }
.band .fact__label::before { content: ""; display: block; width: 24px; height: 2px; background: #6fbf9a; margin-bottom: 12px; }
.contact-big { display: inline-block; font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.03em; color: #fff; text-decoration: none; line-height: 1.1; transition: opacity .2s; }
.contact-big:hover { color: #fff; opacity: .8; }
.contact-mail { display: inline-block; margin-top: 10px; color: #fff; font-size: 18px; overflow-wrap: anywhere; }
.contact-mail:hover { color: var(--on-dark-muted); }
.contact-meta { margin-top: 20px; font-size: 15px; color: var(--on-dark-muted); }
.contact-note { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); font-size: 15px; color: var(--on-dark-muted); }
.contact-note strong { color: #fff; }

.form-card { background: #fff; color: var(--ink); border-radius: 6px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 60px -30px var(--shadow); }
.form-card h3 { font-size: 24px; }
.form-card .small { color: var(--muted); }
.form { display: grid; gap: 22px; margin-top: 28px; }
.form > *, .form__row > *, .field, fieldset { min-width: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; border: 0; }
.flabel { font-size: 15px; font-weight: 600; color: var(--ink); padding: 0; }
.flabel span { font-weight: 400; color: var(--muted); }
.finput {
  width: 100%; max-width: 100%; min-height: 54px; padding: 12px 16px; font: inherit; font-size: 17px; color: var(--ink);
  border: 1px solid #d6d4df; border-radius: 4px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.finput:hover { border-color: #b9b5c9; }
.finput:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
.field.has-error .finput { border-color: var(--err); }
.ferror { color: var(--err); font-size: 15px; }
.ferror:empty { display: none; }
.radios { display: flex; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 22px; border: 1px solid #d6d4df; border-radius: 4px; cursor: pointer; font-size: 16px; transition: all .2s var(--ease); }
.opt span:hover { border-color: var(--brand); }
.opt input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.fconsent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--muted); line-height: 1.55; font-weight: 400; }
.fconsent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.fsubmit { width: 100%; }
.fstatus { font-weight: 600; }
.fstatus:empty { display: none; }
.fstatus--ok { color: var(--ok); }
.fstatus--err { color: var(--err); }
.fhoney { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Długie teksty */
.prose { max-width: 740px; overflow-wrap: anywhere; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; }
.prose ul { margin: 12px 0 12px 22px; }
.prose li + li { margin-top: 6px; }
.prose p, .prose li { color: #383b47; }

/* ── Stopka ── */
.footer { background: #1a1f23; color: #a9abb8; padding: 64px 0 40px; font-size: 15px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer__grid { display: grid; grid-template-columns: 5fr 3fr 3fr; gap: 32px; }
.footer__grid > * { min-width: 0; }
.footer__brand { font-family: "DM Serif Display", var(--serif); font-size: 25px; font-weight: 400; color: #fff; }
.footer__role { margin-top: 12px; max-width: 42ch; }
.footer h3 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer__bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.footer__bottom button { background: none; border: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .footer { padding-bottom: 104px; } }

/* ── Mobilny pasek ── */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--rule); padding: 10px var(--px) calc(10px + env(safe-area-inset-bottom)); gap: 10px; transform: translateY(100%); transition: transform .4s var(--ease); }
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn { flex: 1; min-height: 50px; padding: 10px 12px; font-size: 16px; white-space: nowrap; }
@media (max-width: 900px) { .mobile-bar { display: flex; } }

/* ── Baner cookies ── */
.cookie { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; max-width: 520px; background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 20px 22px; font-size: 15px; box-shadow: 0 20px 50px -20px var(--shadow); display: none; }
.cookie.is-visible { display: block; animation: rise .5s var(--ease) both; }
.cookie p { color: var(--muted); }
.cookie__actions { display: flex; gap: 10px; margin-top: 14px; }
.cookie__actions .btn { min-height: 44px; padding: 8px 18px; font-size: 15px; flex: 1; }
@media (max-width: 900px) { .cookie { bottom: 84px; } }

/* ── Animacje ── */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero-anim > * { animation: rise .9s var(--ease) both; }
.js .hero-anim > *:nth-child(2) { animation-delay: .08s; }
.js .hero-anim > *:nth-child(3) { animation-delay: .16s; }
.js .hero-anim > *:nth-child(4) { animation-delay: .24s; }
.js .hero-anim > *:nth-child(5) { animation-delay: .32s; }
.js .portrait { animation: rise 1.1s .2s var(--ease) both; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}


/* Telefon: zdjęcie Piotra od razu na górze, jako mała wizytówka */
@media (max-width: 860px) {
  .hero__grid .portrait { order: -1; display: flex; align-items: center; gap: 16px; max-width: none; margin: 0; justify-self: stretch; }
  .hero__grid .portrait::before, .hero__grid .portrait::after { display: none; }
  .hero__grid .portrait picture { flex: none; }
  .hero__grid .portrait img { width: 76px; height: 76px; aspect-ratio: 1; object-fit: cover; object-position: 50% 22%; border-radius: 50%; box-shadow: none; }
  .hero__grid .portrait figcaption { position: static; font-size: 14px; }
  .hero__grid .portrait figcaption strong { font-size: 17px; }
  .hero__grid .label { display: none; }
  .hero__grid .hero-anim h1 { margin-top: 0; }
}
.contact .layout > .contact-note { margin-top: 8px; }
@media (max-width: 860px) { .contact .layout > div:empty { display: none; } }

/* Podpis projektanta – dokładnie w formacie i czcionce jancevicz.com (jak na reformio.pl). */
.footer__bottom p { margin: 0; }
.footer-credit { font-family: "ClashDisplay", ui-sans-serif, system-ui, sans-serif; font-weight: 500; color: #fff; }
.footer .footer-credit a { text-decoration: none; }
.footer .footer-credit a:hover { text-decoration: underline; }

/* Telefon: większe obszary dotyku (min. 44 px) przy tym samym wyglądzie */
@media (max-width: 900px) {
  .tel-link, .contact-mail, .contact-big { display: inline-flex; align-items: center; min-height: 44px; }
  /* Linki ze strzałką mogą się zawijać – powiększamy pole dotyku paddingiem, bez zmiany układu */
  .actions .link, p > .link { display: inline; padding: 12px 0; background-origin: content-box; background-clip: content-box; }
  .contact-big { min-height: 52px; }
  .tel-link { gap: .3em; }
  .fconsent a { display: inline-block; padding: 6px 0; margin: -6px 0; }
}
.prose > h2:first-child { margin-top: 0; }
