:root {
  --ink: #181818;
  --szary: #656565;
  --linia: #e5e5e5;
  --tlo: #ffffff;
  --akcent: #c2561a;
  --font-h: Georgia, "Times New Roman", serif;
  --font-t: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--tlo); color: var(--ink); font: 400 17px/1.65 var(--font-t); }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.gora, main, footer { max-width: 1040px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.gora { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--linia); }
.logo { font-family: var(--font-h); font-size: 28px; font-weight: 400; line-height: 1; text-decoration: none; letter-spacing: .5px; color: var(--ink); }
.logo sup { font-size: .55em; vertical-align: top; position: relative; top: -.1em; }
.gora nav a { margin-left: 22px; text-decoration: none; font-size: 15px; color: var(--ink); }
.gora nav a:hover { text-decoration: underline; }

section { padding: 56px 0; border-bottom: 1px solid var(--linia); }
section:last-of-type { border-bottom: 0; }
h1, h2 { font-family: var(--font-h); font-weight: 400; margin: 0; line-height: 1.1; color: var(--ink); }
h1 { font-size: clamp(40px, 7vw, 68px); max-width: 14em; }
h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 28px; }
h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; line-height: 1.35; }

.hero { padding-top: 72px; padding-bottom: 72px; }
.hero::before { content: ""; display: block; width: 36px; height: 3px; background: var(--akcent); margin-bottom: 24px; }
.kicker { color: var(--szary); font-size: 15px; margin: 0 0 16px; }
.lead { font-size: 20px; max-width: 34em; margin: 22px 0 32px; }
.wstep { color: var(--szary); font-size: 17px; max-width: 40em; margin: -12px 0 28px; }

.przycisk { display: inline-block; background: var(--ink); color: #ffffff; border: 1px solid var(--ink); padding: 13px 22px; min-height: 46px; font-family: var(--font-t); font-size: 15px; font-weight: 500; line-height: 1.4; text-decoration: none; cursor: pointer; border-radius: 0; }
.przycisk:hover { text-decoration: underline; }
.przycisk:disabled { opacity: .6; cursor: wait; }

.uslugi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.uslugi article { border-top: 1px solid var(--ink); padding-top: 16px; }
.uslugi p { margin: 0; color: #333333; font-size: 16px; }

.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kafel { position: relative; padding: 0; border: 0; background: var(--tlo); cursor: pointer; align-self: start; display: block; width: 100%; text-align: left; border-radius: 0; overflow: hidden; font-family: inherit; }
.kafel img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease-out; }
.kafel:hover img { transform: scale(1.03); }
.podpis { display: block; padding: 10px 2px 0; background: var(--tlo); }
.podpis strong { display: block; font-weight: 500; font-size: 15px; line-height: 1.35; color: var(--ink); }
.podpis em { display: block; font-style: normal; color: var(--szary); font-size: 14px; }

.kontakt { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
form label { display: block; margin-bottom: 16px; font-size: 15px; font-weight: 500; }
input[type=text], input[type=email], input[type=tel], textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; min-height: 46px;
  border: 1px solid #767676; border-radius: 0; font: 400 16px/1.4 var(--font-t); color: var(--ink); background: var(--tlo);
}
.zgoda { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--szary); font-size: 14px; }
.zgoda input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.pulapka { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.status { margin: 14px 0 0; font-size: 15px; min-height: 1.5em; }
.status.ok { color: #003116; }
.status.blad { color: #b3261e; }
.dane p { margin: 0 0 20px; font-size: 17px; }
.dane .drobne { color: var(--szary); font-size: 14px; }

footer { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--linia); color: var(--szary); font-size: 14px; }

dialog { border: 0; padding: 0; background: var(--tlo); max-width: 92vw; max-height: 92vh; overflow: visible; }
dialog::backdrop { background: rgba(0, 0, 0, .8); }
dialog img { display: block; max-width: 92vw; max-height: 80vh; margin: 0 auto; }
#lb-cap { margin: 0; padding: 12px 16px; font-size: 14px; color: var(--szary); text-align: center; }
.lb-przycisk { position: absolute; background: #fff; border: 1px solid var(--ink); width: 44px; height: 44px; font-size: 26px; line-height: 1; cursor: pointer; border-radius: 0; }
.lb-x { top: 8px; right: 8px; }
.lb-l { left: 8px; top: 40%; }
.lb-r { right: 8px; top: 40%; }

@media (max-width: 800px) {
  .uslugi { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: repeat(2, 1fr); }
  .kontakt { grid-template-columns: 1fr; gap: 32px; }
  .gora nav a { margin-left: 14px; }
}
@media (max-width: 520px) { .galeria { grid-template-columns: 1fr; } body { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .kafel img { transition: none; } }
