/* Obie witryny działają również bez połączeń do zewnętrznych usług. */
:root {
  color-scheme: light;
  --brand: #193747;
  --brand-deep: #112936;
  --link: #284f63;
  --pale: #edf2f3;
  --accent: #ccab76;
  --paper: #faf9f6;
  --ink: #202b2e;
  --muted: #505e60;
  --line: #cdd4cf;
  --serif: "STIX Two Text", Baskervville, Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5.5vw, 5rem);
  --limit: 73rem;
  font: 100%/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
}
body.id-grupa {
  --brand: #193e33;
  --brand-deep: #102c24;
  --link: #285342;
  --pale: #eef2ec;
  --accent: #c8ba8c;
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, p, dl, dd { margin: 0; }
body { min-width: 0; }
address { font-style: normal; }
a { color: var(--link); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #a06119; outline-offset: 4px; }
.inner { width: min(var(--limit), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.screen-reader, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 10;
  inset: .5rem auto auto .5rem;
  padding: .7rem 1.1rem;
  color: white;
  background: var(--brand);
}
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { min-height: 5.75rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.brand-lockup { display: inline-flex; gap: .7rem; align-items: center; color: var(--brand); text-decoration: none; }
.monogram {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.65rem;
  height: 2.65rem;
  padding-right: .11em;
  font: 500 1.3rem/1 var(--serif);
  letter-spacing: -.1em;
  color: #fff;
  background: var(--brand);
  border-bottom: 3px solid var(--accent);
}
.brand-type { display: grid; gap: .15rem; }
.brand-name { font-size: 1rem; font-weight: 730; letter-spacing: .055em; line-height: 1.05; }
.brand-form { font-size: .82rem; line-height: 1.15; color: var(--muted); }
.nav { display: flex; align-items: stretch; flex-wrap: wrap; gap: .25rem clamp(1rem, 2.6vw, 2.3rem); }
.nav a { display: inline-flex; align-items: center; min-height: 2.8rem; border-bottom: 2px solid transparent; padding: .55rem 0 .4rem; color: var(--ink); font-size: .97rem; text-decoration: none; }
.nav a:hover { color: var(--brand); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 650; border-bottom-color: var(--brand); }
.hero { background: var(--brand); color: #fff; position: relative; }
.hero-body { display: grid; grid-template-columns: 53% 47%; }
.hero-text { position: relative; z-index: 1; align-self: center; padding: clamp(3rem, 5.5vw, 5.4rem) clamp(2rem, 4.2vw, 4.5rem) clamp(3rem, 5.5vw, 5.4rem) 0; }
.location, .field-label {
  font-size: .79rem;
  font-weight: 650;
  letter-spacing: .115em;
  text-transform: uppercase;
  line-height: 1.45;
}
.location { display: inline-flex; align-items: center; gap: .8rem; color: #f0e5ce; }
.location::before { content: ""; width: 2.35rem; height: 2px; background: var(--accent); }
h1, h2, .street { font-family: var(--serif); font-weight: 400; }
.hero h1 { font-size: clamp(3.35rem, 7vw, 6.6rem); line-height: .97; letter-spacing: -.052em; margin: 1.25rem 0 .95rem; }
.hero h1 span { display: inline-block; }
.hero-form { color: #edece6; font-size: clamp(1rem, 1.55vw, 1.2rem); }
.hero-description { max-width: 35rem; margin: 1.35rem 0 1.85rem; font-size: 1.02rem; color: #dce5e3; }
.photo { position: relative; min-width: 0; min-height: 22rem; }
.photo img { display: block; position: absolute; inset: 0; height: 100%; width: calc(100% + var(--gutter)); object-fit: cover; object-position: 51% 52%; }
@media (min-width: 82rem) { .photo img { width: calc(100% + (100vw - var(--limit)) / 2); } }
.hero { overflow: hidden; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.9rem;
  padding: .68rem 1.25rem;
  border: 1px solid var(--brand);
  border-radius: 2px;
  background: var(--brand);
  color: #fff;
  font-size: .98rem;
  line-height: 1.3;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
}
.button:hover { background: var(--brand-deep); }
.button.light { border-color: #faf8f3; color: var(--brand-deep); background: #faf8f3; }
.button.light:hover { background: #e9e1d1; border-color: #e9e1d1; }
.hero a:focus-visible { outline-color: #ffda85; }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.35rem; }
.text-link { display: inline-flex; align-items: center; min-height: 2.8rem; font-size: .98rem; font-weight: 650; }
.hero .text-link { color: #fff; }

.sub-main { padding-block: clamp(3rem, 7vw, 6rem); background: var(--paper); }
.sub-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 7vw, 6rem); }
.sub-title::before { content: ""; display: block; width: 3.5rem; height: 3px; background: var(--accent); margin-bottom: 1.4rem; }
.sub-title { color: var(--brand); font-size: clamp(2.85rem, 5.5vw, 5.4rem); line-height: .99; letter-spacing: -.047em; }
.intro { max-width: 36rem; margin-top: 1.25rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.13rem); line-height: 1.65; }
.sub-copy .action-row { margin-top: 1.7rem; }
.contact-extra { display: grid; gap: .5rem; margin-top: 1.1rem; }
.contact-extra p { overflow-wrap: anywhere; }
.contact-extra a { font-weight: 600; }
.contact-extra .field-label { display: block; }
.address-card, .document-card { padding: clamp(1.45rem, 3.6vw, 3rem); border-top: 3px solid var(--brand); }
.address-card { background: var(--pale); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.field-label { color: var(--muted); }
.address-card .field-label, .document-card .field-label { font-family: var(--sans); font-weight: 650; }
.address-card .monogram { background: transparent; border: 1px solid var(--brand); color: var(--brand); }
.addressee { margin: 1.55rem 0 .4rem; font-weight: 650; color: var(--brand); }
.street { font-size: clamp(1.9rem, 3.1vw, 2.85rem); line-height: 1.12; color: var(--brand); letter-spacing: -.035em; }
.city { margin-top: .43rem; font-size: 1.12rem; }
.document-card { background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.file-intro { display: flex; align-items: center; gap: 1rem; }
.file-icon { position: relative; flex: none; display: grid; place-items: end center; padding-bottom: .5rem; width: 2.85rem; height: 3.6rem; background: var(--pale); border: 1px solid var(--link); border-radius: 2px; font-size: .72rem; font-weight: 700; letter-spacing: .07em; color: var(--link); }
.file-icon::before { content: ""; position: absolute; right: -1px; top: -1px; width: .75rem; height: .75rem; background: linear-gradient(45deg, var(--pale) 45%, var(--link) 48% 53%, #fff 56%); border-left: 1px solid var(--link); border-bottom: 1px solid var(--link); }
.document-card h2 { margin: 0; font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.12; letter-spacing: -.025em; color: var(--brand); }
.file-name { margin-top: .4rem; font-size: .95rem; color: var(--muted); overflow-wrap: anywhere; }
.document-card .action-row { margin-top: 1.75rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }

.registry { background: #fff; border-top: 1px solid var(--line); }
.registry-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.68fr); gap: 1.4rem clamp(1.5rem, 5vw, 4.6rem); padding-block: clamp(2.3rem, 4.7vw, 3.7rem); }
.registry h2 { font-size: clamp(1.8rem, 3.2vw, 2.55rem); line-height: 1.1; color: var(--brand); letter-spacing: -.033em; }
.legal-name { margin: .85rem 0 .2rem; font-weight: 650; }
.registered-address { color: var(--muted); font-size: .96rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 1.15rem 1rem; }
.facts dt { font-size: .82rem; font-weight: 650; color: var(--muted); line-height: 1.4; }
.facts dd { margin-top: .33rem; font-size: 1rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.facts .court { grid-column: 1 / -1; padding-top: .9rem; border-top: 1px solid var(--line); }
.court dd { color: var(--muted); }

@media (max-width: 58rem) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: clamp(3rem, 7.5vw, 4.4rem); }
}
@media (max-width: 46rem) {
  .top-inner { display: block; min-height: auto; padding-top: .9rem; }
  .nav { gap: .1rem 1.3rem; margin-top: .45rem; }
  .nav a { font-size: .93rem; }
  .hero-body { width: 100%; grid-template-columns: 1fr; }
  .hero-text { padding: 2.55rem var(--gutter) 2.35rem; }
  .hero h1 { font-size: clamp(2.95rem, 9.8vw, 4rem); }
  .hero-description { margin: .95rem 0 1.35rem; }
  .photo { min-height: 0; height: clamp(10rem, 39vw, 15rem); }
  .photo img { width: 100%; object-position: 50% 47%; }
  .sub-grid, .registry-inner { grid-template-columns: 1fr; }
  .sub-grid { gap: 1.8rem; }
  .sub-main { padding-block: 2.5rem; }
}
@media (max-width: 23rem) {
  .nav { column-gap: .85rem; }
  .nav a { font-size: .89rem; }
  .hero .action-row { column-gap: 1rem; }
}
@media (forced-colors: active) {
  .monogram, .button { border: 1px solid CanvasText; }
  .nav a[aria-current="page"] { border-bottom-color: LinkText; }
}
@page { size: A4; margin: 18mm; }
@media print {
  :root, body.id-grupa { --ink: #111; --muted: #333; --brand: #111; --link: #111; --paper: white; --pale: white; }
  body, .hero, .top, .registry { background: white; color: #111; }
  .inner, .hero-body { width: 100%; max-width: none; }
  .top-inner { display: block; padding: 0 0 4mm; min-height: 0; }
  .brand-form, .hero-form, .hero-description, .location, .hero .text-link { color: #222; }
  .monogram { color: #111; background: white; border: 1px solid #555; }
  .nav, .skip, .photo, .hero .action-row, .sub-copy .action-row, .location::before, .sub-title::before { display: none; }
  .hero-body, .sub-grid, .registry-inner { display: block; }
  .hero-text, .sub-main { padding: 8mm 0; }
  .hero h1, .sub-title { font-size: 32pt; margin: 0 0 4mm; }
  .hero-description { margin: 3mm 0; }
  .location { margin-bottom: 2mm; }
  .address-card, .document-card { border: 1px solid #777; padding: 4mm; margin-top: 5mm; break-inside: avoid; }
  .document-card .action-row { margin: 2mm 0 0; padding: 2mm 0 0; }
  .document-card .button { color: #111; background: white; border: none; min-height: 0; padding: 0; text-decoration: underline; }
  .document-card .text-link { display: none; }
  .registry-inner { padding: 6mm 0 0; }
  .registry h2 { font-size: 17pt; }
  .registry dl { margin-top: 4mm; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts { break-inside: avoid; }
}
