/* Pracownia Projektowa Bożena Kuś — style strony */
:root {
  --bg: #2B2B2B;
  --bg-alt: #232323;
  --bg-deep: #1B1B1B;
  --line: #444444;
  --line-strong: #555555;
  --text: #D5D5D5;
  --text-muted: #B0B0B0;
  --white: #FFFFFF;
  --bronze: #957B5F;
  --bronze-light: #C6A47E;
  --bronze-pale: #E3CFB9;
  --teal: #2B7D77;
  --header-text: #555555;
  --display: 'Montserrat', system-ui, sans-serif;
  --body: 'Work Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze-light); }
a:hover { color: var(--bronze-pale); }
:focus-visible { outline: 2px solid var(--bronze-light); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: #000; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: clamp(16px, 4vw, 48px); padding-right: clamp(16px, 4vw, 48px); box-sizing: content-box; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--alt { background: var(--bg-alt); }

.eyebrow { margin: 0 0 20px; font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.2em; color: var(--bronze-light); text-transform: uppercase; }
.h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.lead { font-weight: 300; color: var(--text); max-width: 60ch; }
.muted { color: var(--text-muted); }

/* Przyciski */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 2px; font-weight: 600; font-family: var(--body); font-size: 16px; text-decoration: none; cursor: pointer; border: 0; }
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { color: var(--white); filter: brightness(1.12); }
.btn--ghost { border: 1.5px solid #808080; color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); color: var(--white); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Nagłówek */
.site-header { background: var(--white); border-bottom: 1px solid var(--text); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; min-height: 84px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--header-text); }
.brand:hover { color: var(--header-text); }
.brand__text { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-family: var(--display); }
.brand__name { font-weight: 600; font-size: 16px; letter-spacing: 0.14em; }
.brand__sub { font-weight: 500; font-size: 13px; letter-spacing: 0.28em; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; }
.nav a { color: var(--header-text); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--teal); }
.brand, .brand__text span, .nav a, .header-phone { white-space: nowrap; }
.brand, .header-phone { flex: none; }
@media (min-width: 1100px) {
  .site-header .wrap { flex-wrap: nowrap; }
  .nav { flex-wrap: nowrap; gap: 20px; }
}
@media (max-width: 1339px) { .header-phone { display: none; } }
.eu-badge { flex: none; display: block; }
.eu-badge img { height: 40px; width: auto; }
@media (min-width: 1100px) and (max-width: 1239px) { .nav { gap: 16px; font-size: 12px; } }
@media (max-width: 760px) { .eu-badge { order: 2; } .eu-badge img { height: 34px; } }
@media (max-width: 760px) {
  .site-header .wrap { justify-content: flex-start; min-height: 0; gap: 8px; padding-top: 12px; padding-bottom: 0; }
  .brand { gap: 10px; }
  .brand__name { font-size: 13px; letter-spacing: 0.12em; }
  .brand__sub { font-size: 11px; letter-spacing: 0.24em; }
  .brand img { width: 28px; height: 28px; }
  .nav { order: 3; width: 100%; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 0 12px; font-size: 11px; letter-spacing: 0.08em; padding: 2px 0 6px; border-top: 1px solid #E2E2E2; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 8px 0; }
  .header-phone { display: none; }
  .eyebrow { font-size: 11px; letter-spacing: 0.14em; }
}

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px); background-color: var(--bg);
  background-image: linear-gradient(90deg, rgba(43,43,43,.97) 0%, rgba(43,43,43,.90) 45%, rgba(43,43,43,.55) 100%), url("/img/tlo-architektura.jpg");
  background-size: cover; background-position: right center; }
@media (max-width: 899px) { .hero { background-image: linear-gradient(rgba(43,43,43,.88), rgba(43,43,43,.88)), url("/img/tlo-architektura.jpg"); } }
.hero__grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; }
.hero__main { flex: 999 1 560px; min-width: 0; }
.hero__grid { position: relative; }
.eu-badge { display: block; background: var(--white); padding: 10px 14px; line-height: 0; }
.eu-badge img { height: 44px; width: auto; }
@media (min-width: 900px) { .eu-badge { position: absolute; top: 0; right: clamp(16px, 4vw, 48px); } }
@media (max-width: 899px) { .eu-badge { align-self: flex-start; order: -1; padding: 6px 10px; } .eu-badge img { height: 28px; } }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 66px); line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; color: var(--white); max-width: 16ch; }
.hero .lead { margin: 32px 0 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.facts { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line-strong); display: flex; flex-wrap: wrap; gap: 20px 56px; }
.facts > div { display: flex; flex-direction: column-reverse; }
.facts dt { font-size: 14px; color: var(--text-muted); font-weight: 300; }
.facts dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.4vw, 32px); color: var(--white); line-height: 1.2; }

.photo-slot { background-color: #3A3A3A; background-image: repeating-linear-gradient(135deg, rgba(213,213,213,.10) 0 1px, transparent 1px 14px); display: flex; align-items: flex-end; padding: 20px; }
.photo-slot span { font-size: 13px; background: var(--bg); color: var(--text); padding: 6px 10px; }
.hero__figure { margin: clamp(40px, 6vw, 72px) 0 0; }
.hero__figure .photo-slot, .hero__figure img { height: clamp(260px, 42vw, 560px); width: 100%; object-fit: cover; }
.hero__figure figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; font-size: 14px; color: var(--text-muted); }
.hero__figure figcaption .accent { color: var(--bronze-light); }
.photo-wide { margin: 0 0 40px; }
.photo-wide img { width: 100%; height: clamp(220px, 32vw, 420px); object-fit: cover; display: block; }
.photo-wide figcaption, .hero__figure figcaption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 12px; font-size: 14px; color: var(--text-muted); }

/* Specjalizacja */
.section-head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.section-head .h2 { max-width: 20ch; }
.section-head p { margin: 0; max-width: 46ch; font-weight: 300; }
.specs { margin: 0; padding: 0; list-style: none; border-top: 1px solid #808080; }
.specs li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6px 40px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.specs h3 { margin: 0; font-family: var(--display); font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; line-height: 1.3; color: var(--white); letter-spacing: 0.02em; }
.specs p { margin: 0; font-size: 16px; color: var(--text-muted); font-weight: 300; line-height: 1.55; }
@media (max-width: 760px) { .specs li { grid-template-columns: minmax(0, 1fr); } }

/* Wyróżniona realizacja */
.featured { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.featured__media { flex: 999 1 520px; min-height: 420px; }
.featured__media img { width: 100%; height: 100%; object-fit: cover; }
.featured__body { flex: 1 1 360px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.featured h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bronze); }
.featured p { margin: 20px 0 0; font-weight: 300; }
.meta { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); font-size: 15px; }
.meta > div { padding: 14px 0; border-bottom: 1px solid var(--line-strong); }
.meta > div:nth-child(even) { padding-left: 16px; }
.meta dt { font-size: 13px; color: var(--text-muted); }
.meta dd { margin: 4px 0 0; color: var(--white); }

/* Realizacje */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { min-height: 44px; padding: 0 18px; border: 1.5px solid #666666; background: transparent; color: var(--text); font: 500 15px var(--body); border-radius: 2px; cursor: pointer; }
.filter:hover { border-color: var(--text); }
.filter[aria-pressed="true"] { border-color: var(--bronze-light); background: var(--bronze-light); color: var(--bg-alt); font-weight: 600; }
.projects { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
@media (max-width: 1100px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .projects { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.project { display: flex; flex-direction: column; }
.project[hidden] { display: none; }
.project__media { order: -1; margin: 0 0 16px; }
.project__media > :not(:first-child) { display: none; }

.project__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; }
.project__media figure { margin: 0; }
.project__media figcaption { text-align: right; padding-top: 4px; font-size: 12px; color: var(--text-muted); }
.project:not(.has-media) .project__row { border-top: 1px solid var(--line-strong); padding-top: 16px; }
.project__row { display: flex; flex-direction: column; gap: 6px; }
.project .date { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; color: var(--text-muted); }
.project .inv { font-family: var(--display); font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--bronze-light); }
.project .scope { font-size: 15px; font-weight: 300; line-height: 1.5; }
.project .phase { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--display); font-weight: 600; }

/* Usługi */
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; }
.phase-col { border-top: 2px solid var(--bronze); padding-top: 20px; }
.phase-col .no { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.2em; color: var(--bronze-light); }
.phase-col h3 { margin: 8px 0 16px; font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--white); }
.dash-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 300; }
.dash-list li { padding-left: 18px; position: relative; line-height: 1.45; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 1.5px; background: var(--bronze); }

/* Dla wykonawców */
.split { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.split__head { flex: 1 1 380px; }
.split__head h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.25; letter-spacing: 0.04em; text-transform: uppercase; color: var(--white); }
.split__body { flex: 999 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.split__body h3 { margin: 0 0 8px; font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--bronze-light); }
.split__body p { margin: 0; font-size: 16px; font-weight: 300; }

/* Referencje */
.refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.ref { display: flex; flex-direction: column; }
.ref > a { display: block; border: 1px solid var(--line); background: var(--white); }
.ref .photo-slot { aspect-ratio: 3 / 4; align-items: center; justify-content: center; }
.ref img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.ref__body { padding: 16px 0 0; }
.ref .date { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.12em; color: var(--text-muted); }
.ref h3 { margin: 6px 0; font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--bronze-light); }
.ref p { margin: 0; font-size: 15px; font-weight: 300; }

/* Kontakt */
.contact { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.contact__info { flex: 1 1 340px; }
.contact__info .h2 { margin-bottom: 28px; }
.contact__list { margin: 0; display: flex; flex-direction: column; gap: 20px; font-size: 18px; }
.contact__list dt { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.18em; color: var(--text-muted); }
.contact__list dd { margin: 4px 0 0; color: var(--white); }
.form { flex: 999 1 460px; display: flex; flex-direction: column; gap: 18px; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text); }
.field input, .field textarea { min-height: 48px; padding: 0 14px; border: 1px solid #666666; background: var(--bg); color: var(--white); font: 16px var(--body); border-radius: 2px; }
.field textarea { padding: 12px 14px; line-height: 1.5; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.hp { position: absolute; left: -9999px; }

/* Stopka */
.site-footer { background: var(--bg-deep); color: var(--text-muted); padding: 32px 0; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }

/* Podstrony tekstowe */
.page { padding: clamp(48px, 7vw, 88px) 0; }
.page h1 { margin: 0 0 32px; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); line-height: 1.2; }
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bronze-light); margin: 40px 0 12px; }
.prose p, .prose li { font-weight: 300; }
.prose ul { padding-left: 20px; }
.poster { border: 1px solid var(--line); background: var(--white); }

/* Fundusze UE */
.eu { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.eu .poster { flex: 1 1 320px; max-width: 520px; display: block; }
.eu .prose { flex: 999 1 420px; }
.eu .prose p:first-child { margin-top: 0; }

/* Powiększenie zdjęcia projektu */
.project__media img { cursor: zoom-in; }
.zoom { position: fixed; inset: 0; z-index: 100; background: rgba(27, 27, 27, 0.82); display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 56px); cursor: zoom-out; }
.zoom[hidden] { display: none; }
.zoom img { max-width: min(1400px, 100%); max-height: 100%; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); }

/* Podstrony specjalizacji */
.specs h3 a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--bronze, #a67c52); }
.specs h3 a:hover { color: var(--white, #fff); }
.spec-page .eyebrow a { color: inherit; text-decoration: none; }
.spec-page .eyebrow a:hover { text-decoration: underline; }
.spec-page__intro { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; margin-top: 24px; }
.spec-page__points { margin: 0; padding: 0 0 0 20px; line-height: 1.7; }
.spec-page__points li { margin-bottom: 8px; }
.spec-page__cta { margin-top: 72px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.12); }
.spec-page__cta p { font-size: 18px; margin: 0 0 20px; }
.spec-page__more { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 48px; }
.spec-page__more a { color: inherit; }
@media (max-width: 900px) { .spec-page__intro { grid-template-columns: 1fr; gap: 24px; } }
