/* ABD Group – arkusz stylów. Bez zależności zewnętrznych, czcionki systemowe. */

:root {
  color-scheme: light;
  --ink: #15171b;
  --ink-soft: #2a2e35;
  --muted: #5d636d;
  --paper: #f7f6f3;
  --surface: #ffffff;
  --alt: #eeece7;
  --line: #dedbd3;
  --accent: #c2410c;
  --accent-ink: #9a330a;
  --accent-tint: #fbe9df;

  --radius: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.eyebrow {
  margin: 0 0 14px;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(247 246 243 / .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
/* Znak graficzny logo (klin + arkusz) */
.brand-mark {
  width: auto;
  height: 46px;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .06em;
}
.brand-name span {
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.brand-tag {
  margin-top: 3px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 1020px) {
  .brand-tag { display: none; }
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: var(--alt); color: var(--ink); }
.nav a.nav-cta {
  background: var(--ink);
  color: #fff;
  margin-left: 8px;
}
.nav a.nav-cta:hover { background: var(--accent); }

@media (max-width: 760px) {
  :root { --header-h: 108px; }
  .header-inner {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-block: 10px 8px;
  }
  .nav {
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav ul { gap: 2px; margin-left: -10px; }
  .nav a { padding: 8px 10px; white-space: nowrap; font-size: .9rem; }
  /* „Kontakt” przechodzi do górnego wiersza, obok logo */
  .nav li:last-child {
    position: absolute;
    top: 13px;
    right: var(--gutter);
  }
  .nav a.nav-cta { margin-left: 0; padding-inline: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px);
  /* subtelna siatka "kreślarska" */
  background-image:
    linear-gradient(to right, rgb(21 23 27 / .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(21 23 27 / .045) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
}
.hero::after {
  /* nawiązanie do ukośnego trójkąta z logo */
  content: "";
  position: absolute;
  right: -8%;
  bottom: -30%;
  width: 52%;
  height: 120%;
  background: linear-gradient(160deg, var(--accent-tint), transparent 70%);
  clip-path: polygon(70% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  display: block;
  color: var(--accent);
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 58ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.hero-logo {
  margin: 0;
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: 0 30px 60px -30px rgb(21 23 27 / .25), 0 2px 6px rgb(21 23 27 / .05);
}
.hero-logo img { width: 100%; height: auto; }

.disciplines {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: clamp(48px, 7vw, 80px) 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.disciplines li { display: flex; align-items: center; gap: 10px; }
.disciplines li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-logo { max-width: 440px; order: -1; }
  .hero::after { width: 90%; }
}

/* ---------- Sekcje ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-alt { background: var(--alt); }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.0625rem; }

/* Karty usług */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  gap: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: var(--radius) 0 4px 0;
}
.card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 24px 40px -28px rgb(21 23 27 / .35);
}
.card-no {
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .1em;
}
.card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 8px 0 14px;
}
.card p { color: var(--muted); font-size: .98rem; }
.card-link {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: .98rem;
}
.ticks li {
  position: relative;
  padding-left: 22px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Realizacje */
.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.split .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split .section-head { position: static; }
}

.venues {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: v;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px;
}
.venues li {
  counter-increment: v;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 24px 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
.venues li::after {
  content: counter(v, decimal-leading-zero);
  position: absolute;
  right: 18px;
  top: 10px;
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--alt);
  line-height: 1;
}
.venue {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}
.city {
  position: relative;
  z-index: 1;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Badania */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.checks li {
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .25s;
}
.checks li:hover { background: var(--surface); }
.checks svg {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.checks h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.checks p { color: var(--muted); font-size: .95rem; }

/* O firmie */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.about h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.about-text { font-size: 1.125rem; color: var(--ink-soft); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* Kontakt */
.contact {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  left: -10%;
  top: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(200deg, rgb(255 255 255 / .06), transparent 70%);
  clip-path: polygon(0 0, 100% 0, 30% 100%, 0 100%);
  pointer-events: none;
}
.contact .wrap { position: relative; }
.contact .eyebrow { color: #f08a5d; }
.contact .section-head p:not(.eyebrow) { color: #b7bcc5; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  border: 1px solid rgb(255 255 255 / .14);
  border-radius: var(--radius);
  background: rgb(255 255 255 / .03);
  text-decoration: none;
  transition: background-color .2s, border-color .2s;
}
a.contact-card:hover { background: rgb(255 255 255 / .08); border-color: #f08a5d; }
.contact-card .label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9aa0aa;
}
.contact-card .value {
  font-size: 1.2rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.contact-card small { font-size: .95rem; font-weight: 500; color: #b7bcc5; }

/* Stopka */
.site-footer {
  background: #0e1013;
  color: #8d939d;
  font-size: .875rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 40px;
  padding-block: 48px 36px;
  border-bottom: 1px solid rgb(255 255 255 / .08);
}
.footer-logo { width: 210px; height: auto; }
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
}
.footer-nav a {
  color: #c9cdd3;
  font-weight: 600;
  text-decoration: none;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px;
}

/* Strona 404 */
.notfound { min-height: 100vh; min-height: 100dvh; display: grid; align-items: center; }
.notfound-inner { position: relative; z-index: 1; max-width: 720px; }
.notfound-inner img { width: min(320px, 70vw); height: auto; margin-bottom: 40px; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }

/* Druk */
@media print {
  .site-header, .actions, .skip, .footer-top { display: none; }
  .contact, .site-footer { background: none; color: #000; }
  .section { padding-block: 24px; }
}
