:root {
  color-scheme: light;
  --ink: #192438;
  --dark: #141c34;
  --page: #6b7c96;
  --section-light: #a7b5c9;
  --page-ink: #080f1d;
  --muted: #3f536c;
  --line: #8eb5c9;
  --blue: #2c4371;
  --blue-deep: #22345a;
  --steel: #74a9c3;
  --peach: #f99e62;
  --beige: #ffe0c9;
  --width: 74rem;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; line-height: 1.6; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--page-ink); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h1, h2 { letter-spacing: -.045em; }
h2 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -.025em; }
.wrap { width: min(var(--width), calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 1; padding: .65rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.header { color: var(--page-ink); background: var(--page); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem 2rem; }
.header-inner { min-height: 5rem; padding-block: .65rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; text-decoration: none; line-height: 1.2; }
.mark { width: 1.35rem; height: 1.35rem; flex: none; border: 2px solid var(--blue); border-radius: 3px; background: var(--peach); }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem clamp(.75rem, 2.4vw, 2rem); font-size: .91rem; }
nav a { padding-block: .55rem; font-weight: 750; text-decoration: none; }
nav a:hover, .text-link:hover, footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-contact { padding-inline: .8rem; border-radius: .3rem; background: var(--beige); }

.hero {
  background: var(--page);
  color: var(--page-ink);
  padding-block: clamp(3.25rem, 8vw, 7rem);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
h1 { font-size: clamp(2.45rem, 6.1vw, 5.55rem); max-width: 12ch; overflow-wrap: anywhere; }
h1 em { font-style: normal; color: var(--beige); }
.hero p { max-width: 53ch; font-size: clamp(1rem, 1.6vw, 1.2rem); margin-top: 1.45rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.4rem; margin-top: 1.9rem; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .65rem; padding: .8rem 1rem; font-weight: 750; text-decoration: none; border-radius: .3rem; }
.primary { color: white; background: var(--blue); }
.primary:hover { background: var(--blue-deep); }
.text-link { color: inherit; font-weight: 650; text-decoration: none; padding-block: .65rem; }

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 60% center;
  border-radius: .5rem;
}

.diagram {
  color: var(--ink);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem clamp(.7rem, 2vw, 1.45rem);
  list-style: none;
  margin-block: clamp(1.5rem, 4vw, 3rem) 0;
  padding: clamp(.8rem, 2.5vw, 1.65rem);
  background: var(--steel);
  border-radius: .5rem;
}
.diagram li { display: flex; align-items: flex-start; gap: clamp(.4rem, 1vw, .75rem); }
.diagram li:not(:last-child) { border-inline-end: 1px solid #4c7a96; padding-inline-end: .45rem; }
.node { margin-top: .31rem; width: .9rem; height: .9rem; flex: none; background: var(--page); border: 2px solid var(--blue); border-radius: 50%; }
.diagram li:last-child .node { background: var(--peach); }
.diagram strong { display: block; letter-spacing: -.02em; }
.diagram small { display: block; font-size: .91rem; }

.section { padding-block: clamp(3.35rem, 7vw, 6.3rem); }
.section-light { background: var(--section-light); }
.services { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); column-gap: clamp(1.4rem, 5vw, 4rem); }
.services article { padding-block: 1.55rem 1.65rem; border-bottom: 1px solid var(--line); }
.services h3 { max-width: 34ch; }
.services p, .projects p, .steps p, .section-intro { margin-top: .7rem; color: var(--muted); max-width: 62ch; }
#uslugi, #proces, .experience, .contact { color: var(--page-ink); }
#uslugi .services p, #proces .steps p, #proces .section-intro, #proces .steps li::before, .experience .section-intro, .experience .projects p { color: inherit; }
.editorial { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: clamp(1.35rem, 6vw, 5rem); align-items: start; }
.section-intro { max-width: 35ch; }
.projects article, .steps li { border-top: 1px solid var(--line); padding: 1.15rem 0; }
.projects article:last-child, .steps li:last-child { border-bottom: 1px solid var(--line); }
.steps { padding-left: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 2.35rem; }
.steps li::before { content: counter(step) "."; position: absolute; left: .1rem; top: 1.18rem; font-weight: 750; color: var(--blue); }

.contact-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: 1rem; font-style: normal; }
.copy-email { margin-top: .75rem; border: 1px solid var(--page-ink); border-radius: .25rem; padding: .35rem .6rem; color: inherit; background: transparent; font: inherit; cursor: pointer; }
.copy-email:hover { background: var(--beige); }
.copy-status { margin-inline-start: .5rem; font-size: .9rem; }
.contact a { color: inherit; font-weight: 750; overflow-wrap: anywhere; }
footer { background: var(--dark); color: #e3ecf9; padding-block: 1.5rem; font-size: .9rem; }
footer .footer-inner { align-items: flex-start; }
footer a { text-decoration: none; }
footer a:focus-visible { outline-color: #b5c0ee; }
.company address { font-style: normal; }
.company strong { font-size: 1rem; color: white; }

@media (max-width: 50rem) {
  .hero-grid, .editorial { grid-template-columns: 1fr; }
  h1 { max-width: 15ch; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .section-intro { max-width: 55ch; }
}
@media (max-width: 38rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 1rem .35rem; }
  nav { column-gap: clamp(.65rem, 4vw, 1.2rem); font-size: .86rem; }
  .services { grid-template-columns: 1fr; }
  .diagram { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagram li:nth-child(2n):not(:last-child) { border-inline-end: 0; padding-inline-end: 0; }
  .footer-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
