:root {
  --ink: #000;
  --gold: #F2B316;
  --gold-deep: #C98F00;
  --concrete: #E6E4DF;
  --paper: #fff;
  --graphite: #2B2A27;
  --muted: #5E5C57;
  --wide: "Archivo", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--wide);
  font-variation-settings: "wdth" 100;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--wide);
  font-variation-settings: "wdth" 125;
  color: var(--ink);
  line-height: 1.05;
  margin: 0;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  font: 800 1.0625rem/1 var(--wide); font-variation-settings: "wdth" 112;
  text-decoration: none; border: 3px solid var(--ink); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn--gold:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn--gold:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* ---------- Ukośne pasy w rogach (motyw z wizytówki) ---------- */
.corner { position: absolute; width: clamp(200px, 32vw, 460px); height: auto; pointer-events: none; overflow: visible; }
.corner--tl { top: 0; left: 0; }
.corner--br { bottom: 0; right: 0; transform: rotate(180deg); }
.c-ink { fill: var(--ink); }
.c-gold { fill: var(--gold); }
.c-dark { fill: #2B2A27; }
.hero .corner polygon { animation: corner-in .8s cubic-bezier(.65,0,.35,1) both; }
.hero .corner .c-gold { animation-delay: .12s; }
@keyframes corner-in { from { transform: translate(-60%, -60%); } to { transform: none; } }
.corner--about { bottom: 0; right: 0; transform: rotate(180deg); width: clamp(180px, 28vw, 400px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--paper);
  min-height: min(100svh, 900px);
  display: grid; align-items: center;
}
.hero__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: 96px var(--gutter);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center;
}
.hero__mark { width: 100%; }
.hero__video {
  display: block; width: 100%; height: auto;
}
.hero__text { animation: rise .8s ease-out 1s both; }
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.hero__lead {
  margin: 20px 0 32px; max-width: 30ch;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem); color: var(--graphite);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Motto ---------- */
.motto {
  background: var(--ink); color: var(--gold);
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px clamp(20px, 5vw, 72px);
  padding: 22px var(--gutter);
  font-weight: 800; font-variation-settings: "wdth" 125;
  font-size: clamp(1.125rem, 2.4vw, 1.75rem); letter-spacing: .01em;
}

/* ---------- Usługi ---------- */
.services {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 10vw, 128px) var(--gutter);
  display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 80px);
}
.services h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 900; }
.services__list { list-style: none; margin: 0; padding: 0; }
.services__list li {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 24px; align-items: start;
  padding: 26px 0; border-top: 3px solid var(--ink);
}
.services__list li:last-child { border-bottom: 3px solid var(--ink); }
.services__list svg { width: 48px; height: 48px; grid-row: span 2; color: var(--ink); }
.services__list h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; }
.services__list p { margin: 6px 0 0; color: var(--muted); max-width: 52ch; }

/* ---------- O mnie ---------- */
.about { position: relative; overflow: hidden; background: var(--ink); color: #E9E7E2; }
.about__inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 11vw, 140px) var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start;
}
.about h2 {
  color: var(--paper); font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 20px; border-bottom: 10px solid var(--gold);
}
.about__body p { margin: 0 0 1.1em; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); max-width: 46ch; }

/* ---------- Galeria ---------- */
.gallery { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 10vw, 128px) var(--gutter) 0; }
.gallery h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 900; margin-bottom: 32px; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.gallery figcaption { font-size: .9rem; color: var(--muted); padding-top: 8px; }

/* ---------- Kontakt ---------- */
.contact {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 10vw, 128px) var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px);
}
.contact h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 900; }
.contact__info > p { max-width: 38ch; margin: 16px 0 28px; }
.contact__phone {
  display: inline-block; text-decoration: none;
  font-weight: 900; font-variation-settings: "wdth" 125; color: var(--ink);
  font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1;
  padding-bottom: 8px; border-bottom: 8px solid var(--gold);
}
.contact__phone:hover { border-bottom-color: var(--ink); }
.contact dl { margin: 36px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; }
.contact dt { font-weight: 700; color: var(--ink); }
.contact dd { margin: 0; }

.form { display: grid; gap: 18px; align-content: start; }
.form label { display: grid; gap: 6px; font-weight: 700; color: var(--ink); }
.form input, .form textarea {
  font: 400 1.0625rem/1.4 var(--wide);
  padding: 14px 16px; border: 3px solid var(--ink); border-radius: 0;
  background: var(--paper); color: var(--ink); width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--gold); }
.form [aria-invalid="true"] { border-color: #B3261E; }
.form .btn { justify-self: start; margin-top: 6px; }
.form__status { margin: 0; min-height: 1.6em; font-weight: 600; }
.form__status.is-error { color: #B3261E; }

/* ---------- Stopka ---------- */
.footer {
  background: var(--concrete); text-align: center;
  padding: 48px var(--gutter) 40px; font-size: .95rem; color: var(--muted);
}
.footer__logo { width: 96px; height: 86px; color: var(--ink); }
.footer p { margin: 8px 0 0; }
.footer a { color: var(--ink); font-weight: 700; }

/* ---------- Pasek „Zadzwoń” na telefonach ---------- */
.callbar { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 88px; text-align: left; }
  .hero__mark { max-width: 420px; justify-self: center; }
  .services, .about__inner, .contact { grid-template-columns: 1fr; }
  .services__list li { grid-template-columns: 44px 1fr; column-gap: 16px; }
  .services__list svg { width: 40px; height: 40px; }
  body { padding-bottom: 72px; }
  .callbar {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10;
    min-height: 56px; background: var(--gold); color: var(--ink);
    border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
    font: 800 1.0625rem/1 var(--wide); font-variation-settings: "wdth" 112; text-decoration: none;
    transform: translateY(140%); transition: transform .25s ease;
  }
  .callbar.is-visible { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .corner polygon, .hero__text { animation: none !important; }
  .callbar { transition: none; }
}
