:root {
  color-scheme: light;
  --ink: #182924;
  --muted: #4a5b53;
  --forest: #172a23;
  --forest-dark: #10211b;
  --gold: #f0cd82;
  --paper: #fff;
  --tint: #eef2ed;
  --line: #cbd6cc;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
a, button { text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #b46b16; outline-offset: 4px; }
.hero :focus-visible, .contact :focus-visible { outline-color: var(--gold); }
.wrap { width: min(1200px, calc(100% - 6rem)); margin-inline: auto; }
.skip {
  position: absolute;
  inset: .5rem auto auto 1rem;
  z-index: 4;
  padding: .6rem 1rem;
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.masthead { background: var(--paper); }
.masthead-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: .8rem;
}
.brand {
  display: block;
  width: clamp(9.75rem, 17vw, 12rem);
  aspect-ratio: 790 / 389;
  flex: none;
}
.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.footer-inner a { font-size: 1.5rem; font-weight: 800; letter-spacing: .04em; }
.navigation { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem clamp(1rem, 3vw, 2.5rem); }
.navigation a { font-size: .9375rem; font-weight: 650; text-decoration: none; }
.navigation a:hover { text-decoration: underline; }
.navigation .nav-contact { padding: .5rem .95rem; border: 1px solid #91a297; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--forest-dark); color: white; }
.hero-photo { position: absolute; inset: 0 0 0 43%; z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; display: block; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--forest-dark), transparent 49%);
}
.hero-inner { display: grid; align-items: center; min-height: clamp(32rem, 50vw, 41rem); }
.hero-copy { max-width: 46rem; padding-block: 4.5rem; }
.eyebrow {
  color: #536b5e;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero .eyebrow, .contact .eyebrow { color: var(--gold); }
h1, h2, h3 { font-weight: 750; line-height: 1.09; letter-spacing: -.033em; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 5.25vw, 5rem); }
h1 span { display: block; }
h2 { font-size: clamp(2.15rem, 3.8vw, 3.75rem); }
h3 { font-size: clamp(1.42rem, 2vw, 1.83rem); }
.hero-summary { margin-top: 1.5rem; max-width: 29rem; color: #eef3ef; font-size: clamp(1.06rem, 1.55vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-flex; width: fit-content; align-items: center; min-height: 48px; padding: .65rem 1.15rem; text-decoration: none; font-weight: 700; border: 1px solid transparent; }
.button-main { background: var(--gold); color: var(--forest-dark); }
.button-main:hover { background: #ffe2a5; }
.button-outline { border-color: #b6c5ba; color: white; background: #10211b80; }
.button-outline:hover { background: var(--forest); }

.section { padding-block: clamp(3.75rem, 8vw, 7rem); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.75rem, 7vw, 6rem); }
.reading { font-size: 1.125rem; color: var(--muted); }
.reading p + p { margin-top: 1rem; }
#biuro .reading p,
#projekty .reading p {
  text-align: justify;
  hyphens: auto;
}
.services { background: var(--tint); }
.services h2 { max-width: 23ch; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; margin-top: 2.5rem; }
.service-grid article { background: var(--paper); border-top: 3px solid #6b8977; padding: clamp(1.25rem, 3vw, 2rem); }
.service-grid p { margin-top: .9rem; color: var(--muted); }
.contact { background: var(--forest); color: white; }
.contact-summary { max-width: 31rem; margin-block: 1.35rem 1.65rem; color: #e2ebe4; font-size: 1.125rem; }
.contact-details { font-style: normal; border: 1px solid #6e8376; padding: clamp(1.25rem, 3.5vw, 2.5rem); align-self: start; }
.contact-details strong { font-size: 1.125rem; }
.contact-details > p { margin-top: .55rem; }
.contact-details dl { margin-top: 1.1rem; }
.contact-details dl div + div { margin-top: .65rem; }
.contact-details dt { color: #d3e2d6; font-size: .875rem; }
.contact-details a { font-size: 1.0625rem; font-weight: 650; overflow-wrap: anywhere; }
.copy-row { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin-top: .8rem; }
.copy-row:has([hidden]) { display: none; }
.copy-row span { color: #dde8df; font-size: .875rem; }
.copy { background: none; color: white; border: 1px solid #819688; font: inherit; font-size: .875rem; padding: .28rem .65rem; cursor: pointer; }
.copy:hover { background: #294438; }
.directions { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.directions-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .85rem 1rem; margin-bottom: 1rem; }
.directions-map { display: block; width: 100%; height: clamp(18rem, 40vw, 25rem); border: 1px solid #6e8376; background: var(--tint); }
.footer-inner { min-height: 82px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding-block: .75rem; }
.footer-inner a { text-decoration: none; }
.footer-inner span { font-size: .875rem; color: var(--muted); }

@media (min-width: 1080px) {
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .wrap { width: calc(100% - 3.5rem); }
  .masthead-inner { flex-wrap: wrap; }
  .brand { margin-right: auto; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 2.25rem); }
  .masthead-inner { gap: .75rem; }
  .navigation { width: 100%; justify-content: space-between; gap: .35rem; }
  .navigation .nav-contact { padding: .32rem .5rem; }
  .hero-photo { inset: 0; }
  .hero-photo img { object-position: 74% center; }
  .hero-photo::after { background: linear-gradient(90deg, #10211bea, #10211b8a), linear-gradient(0deg, #10211bcf, transparent); }
  .hero-inner { min-height: 31rem; }
  .hero-copy { padding-block: 3.5rem; }
  .split, .service-grid { grid-template-columns: minmax(0, 1fr); }
  .service-grid { gap: .9rem; }
  .reading, .contact-summary { font-size: 1.0625rem; }
}
