/* Adapted directly from wejscie/szablon/base.css: shared structural primitives. */
:root {
  --ink: #292D2F;
  --ink-raised: #222222;
  --paper: #FFFFFF;
  --paper-shift: #F0F0ED;
  --paper-deep: #E1E1DE;
  --muted: #595959;
  --line: #D4D4D0;
  --accent: #FE711F;
  --accent-deep: #292D2F;
  --error: #292D2F;
  --max: 78rem;
  --pad: clamp(1.15rem, 4vw, 2.25rem);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", "Trebuchet MS", sans-serif;
  --step--1: clamp(0.78rem, 0.75rem + 0.1vw, 0.86rem);
  --step-0: clamp(0.96rem, 0.93rem + 0.12vw, 1.04rem);
  --step-1: clamp(1.08rem, 1.01rem + 0.3vw, 1.28rem);
  --step-2: clamp(1.42rem, 1.24rem + 0.7vw, 1.92rem);
  --step-3: clamp(1.95rem, 1.58rem + 1.6vw, 3.25rem);
  --step-4: clamp(2.8rem, 2.02rem + 3.55vw, 5.6rem);
}

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

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 0.25rem;
  background: var(--accent);
  content: "";
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: var(--accent-deep);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 0.2rem solid var(--accent);
  outline-offset: 0.22rem;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  hyphens: manual;
  line-height: 0.98;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.05rem;
  font-size: var(--step-4);
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: var(--step-3);
  text-transform: uppercase;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: var(--step-2);
}

p,
li {
  max-width: 67ch;
}

p {
  margin-bottom: 0.85rem;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  position: relative;
  padding-block: clamp(3.75rem, 7.5vw, 6.5rem);
}

.section--tight {
  padding-block: clamp(3rem, 5.5vw, 4.5rem);
}

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section--shift {
  background: var(--paper-shift);
}

.section--accent {
  background: var(--accent);
  color: var(--ink);
}

section[id],
.scope-row[id] {
  scroll-margin-top: 7rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.8rem;
  height: 0.25rem;
  background: var(--accent-deep);
  content: "";
}

.section--dark .eyebrow {
  color: var(--paper-deep);
}

.section--dark .eyebrow::before {
  background: var(--accent);
}

.lede {
  max-width: 58ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.42;
}

.section--dark .lede {
  color: var(--paper-deep);
}

.hero .lede,
.page-hero .eyebrow,
.page-hero .lede,
.contact-panel .eyebrow,
.section--dark .proof-row p {
  color: var(--paper-deep);
}

.kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.35rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.65rem;
  border: 0.08rem solid currentColor;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tag--accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.8rem 1.2rem;
  border: 0.1rem solid var(--ink);
  clip-path: polygon(0 0, calc(100% - 0.85rem) 0, 100% 0.85rem, 100% 100%, 0 100%);
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-0.16rem);
  background: var(--paper);
}

.button--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.button--dark:hover {
  background: var(--ink-raised);
  color: var(--accent);
}

.button--line {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.button--line:hover {
  background: var(--ink);
  color: var(--paper);
}

.section--dark .button--line:hover {
  background: var(--paper);
  color: var(--ink);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(0.3rem);
}

.site-header {
  position: sticky;
  z-index: 90;
  top: 0;
  border-bottom: 0.08rem solid #555555;
  background: rgba(41, 45, 47, 0.97);
  color: var(--paper);
  /* UWAGA: backdrop-filter robi z naglowka uklad odniesienia dla potomkow
     'position: fixed'. Menu mobilne .main-nav liczylo wtedy inset od paska
     naglowka (80 px) zamiast od ekranu, wiec po kliknieciu hamburgera bylo
     widac samo "Leistungen", a tresc strony przebijala spod spodu.
     Rozmycie wraca ponizej, w bloku od 56rem, gdzie menu nie jest fixed. */
}

.nav-row {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  min-height: 5.15rem;
  gap: 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 3.6rem;
  height: 3.6rem;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  
}

.brand-copy {
  display: none;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.menu-toggle {
  display: grid;
  /* Bez tego hamburger auto-umieszcza sie w kolumnie 2 (pusty 1fr, bo .brand-copy
     jest ukryte na telefonie) i laduje tuz obok logo zamiast przy prawej krawedzi. */
  grid-column: 3;
  justify-self: end;
  width: 3rem;
  height: 3rem;
  place-content: center;
  gap: 0.32rem;
  border: 0.08rem solid #555555;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 0.12rem;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.22rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.22rem) rotate(-45deg);
}

.main-nav {
  position: fixed;
  z-index: 89;
  inset: 5.4rem 0 0;
  display: none;
  padding: 2rem var(--pad) 3rem;
  overflow-y: auto;
  background: var(--ink);
  color: var(--paper);
}

.main-nav.is-open {
  display: block;
}

.main-nav > ul {
  display: grid;
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: flex;
  align-items: center;
  min-height: 4.25rem;
  border-bottom: 0.08rem solid #555555;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-services {
  position: relative;
}

.nav-services details {
  position: relative;
}

.nav-services summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  border-bottom: 0.08rem solid #555555;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  text-transform: uppercase;
}

.nav-services summary::-webkit-details-marker {
  display: none;
}

.nav-services summary::after {
  width: 0.55rem;
  height: 0.55rem;
  margin-inline: 1rem 0.35rem;
  border-right: 0.12rem solid currentColor;
  border-bottom: 0.12rem solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform 180ms ease;
  content: "";
}

.nav-services details[open] summary::after {
  transform: translateY(0.15rem) rotate(225deg);
}

.nav-services summary:hover,
.nav-services summary.is-current {
  color: var(--accent);
}

.main-nav .services-menu {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0.35rem 0 0.75rem 1rem;
  list-style: none;
}

.main-nav .services-menu a {
  min-height: 2.7rem;
  border-color: #555555;
  font-family: var(--body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.nav-cta {
  display: none;
}
