:root {
  --bg: #f6f5f1;
  --paper: #fffefa;
  --ink: #202828;
  --muted: #59625f;
  --line: #d9dcd4;
  --blue: #274fc4;
  --pale: #e9ebe5;
  --dark: #1e2a2b;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
::selection {
  background: var(--blue);
  color: white;
}
.container {
  width: min(1340px, calc(100% - 112px));
  margin: 0 auto;
}
.num {
  font:
    600 11px "Manrope",
    sans-serif;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.nav {
  height: 90px;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.nav-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font:
    800 24px Manrope,
    sans-serif;
  letter-spacing: -0.095em;
}
.logo span {
  color: var(--blue);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links > a {
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}
.nav-links > a:hover {
  color: var(--blue);
}
.nav-links .nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
}
.nav-links .nav-cta:hover {
  color: white;
  background: var(--blue);
}
.mobile-btn,
.mobile-links {
  display: none;
}
.hero {
  min-height: 690px;
  position: relative;
  overflow: hidden;
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 690px;
  align-items: center;
}
.hero-copy {
  padding: 100px 0 112px;
  max-width: 970px;
  position: relative;
  z-index: 2;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.hero-kicker:before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--blue);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.hero h1 {
  font:
    700 clamp(54px, 5.85vw, 94px)/1.025 Manrope,
    Arial,
    sans-serif;
  letter-spacing: -0.09em;
  margin: 30px 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero-desc {
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 640px;
}
.hero-action {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 35px;
}
.primary {
  display: inline-flex;
  align-items: center;
  gap: 38px;
  background: var(--blue);
  color: white;
  padding: 19px 23px;
  font-weight: 700;
  font-size: 13px;
  transition:
    transform 0.3s var(--ease),
    background 0.3s;
}
.primary:hover {
  background: #163893;
  transform: translateY(-3px);
}
.simple-link {
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 7px;
  transition: color 0.2s;
}
.simple-link:hover {
  color: var(--blue);
}
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.ticker-in {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: #717a76;
}
.ticker b {
  font:
    700 13px Manrope,
    sans-serif;
  letter-spacing: -0.02em;
  color: #3d4743;
}
.section {
  padding: 132px 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: end;
  margin-bottom: 64px;
}
.section-kicker {
  color: var(--blue);
  margin-bottom: 24px;
}
.section-head h2,
.process h2,
.about h2 {
  font:
    700 clamp(45px, 5.3vw, 76px)/1.12 Manrope,
    sans-serif;
  letter-spacing: -0.075em;
  margin: 0;
}
.section-head p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 450px;
  justify-self: end;
  margin: 0;
}
.services {
  background: var(--paper);
}
.service-list {
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 70px 1fr 1.1fr 40px;
  align-items: start;
  gap: 36px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.service-n {
  padding-top: 11px;
  color: var(--blue);
}
.service-row h3 {
  font:
    700 clamp(23px, 2.5vw, 35px) Manrope,
    sans-serif;
  letter-spacing: -0.065em;
  margin: 0;
}
.service-row p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
  margin: 0 0 16px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tags span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  padding: 7px 9px;
  color: #57615b;
}
.service-arrow {
  justify-self: end;
  color: var(--blue);
  font-size: 22px;
}
.services-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 32px;
}
.projects {
  background: var(--bg);
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.project {
  min-width: 0;
}
.project-visual {
  height: 430px;
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease);
}
.project:hover .project-visual {
  transform: translateY(-5px);
}
.project-map {
  background: #d9e2db;
  padding: 45px;
}
.map-pane {
  height: 100%;
  width: 100%;
  position: relative;
  background: #f4f5f1;
  overflow: hidden;
  box-shadow: 0 20px 40px #40564725;
}
.map-pane:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      35deg,
      transparent 26%,
      #c1d0bf 26% 34%,
      transparent 34% 65%,
      #c1d0bf 65% 72%,
      transparent 72%
    ),
    repeating-linear-gradient(
      13deg,
      transparent 0 66px,
      rgba(152, 180, 153, 0.35) 67px 69px,
      transparent 70px 119px
    );
}
.map-road {
  position: absolute;
  background: #fff;
  box-shadow: 0 0 0 1px #d5dbd0;
  width: 150%;
  height: 19px;
  left: -20%;
  top: 52%;
  transform: rotate(-25deg);
}
.pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 5px solid #f4f5f1;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 10px #334c4b33;
}
.pin.p1 {
  left: 28%;
  top: 38%;
}
.pin.p2 {
  left: 60%;
  top: 24%;
}
.pin.p3 {
  left: 74%;
  top: 65%;
}
.map-card {
  position: absolute;
  bottom: 25px;
  left: 24px;
  background: #fff;
  padding: 18px 22px;
  box-shadow: 0 9px 25px #25322a1d;
}
.map-card b {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.map-card small {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #707c74;
  margin-top: 6px;
}
.project-scan {
  background: #263746;
  display: grid;
  place-items: center;
}
.scan-screen {
  width: 73%;
  height: 73%;
  background: #fcfaf4;
  padding: 30px;
  position: relative;
  box-shadow: 27px 23px 0 #172732;
}
.scan-title {
  font: 800 25px Manrope;
  letter-spacing: -0.09em;
}
.scan-title span {
  color: var(--blue);
}
.scan-mid {
  margin-top: 43px;
  font: 700 clamp(29px, 3vw, 44px)/1.06 Manrope;
  letter-spacing: -0.075em;
}
.scan-mid small {
  display: block;
  font:
    500 12px/1.6 "DM Sans",
    sans-serif;
  color: #6b7470;
  letter-spacing: 0;
  margin-top: 16px;
}
.scan-corner {
  position: absolute;
  right: 26px;
  bottom: 25px;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
}
.project-details {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 25px;
}
.project h3 {
  font: 700 29px Manrope;
  letter-spacing: -0.06em;
  margin: 12px 0;
}
.project p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 530px;
}
.project-index {
  color: var(--blue);
}
.project-status {
  color: #5f6963;
  white-space: nowrap;
}
.process {
  background: #e8ebe6;
  padding: 120px 0;
}
.process-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 53px;
}
.process h2 {
  max-width: 760px;
}
.process-intro {
  max-width: 340px;
  line-height: 1.8;
  color: #54615c;
  margin: 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  border-top: 2px solid var(--ink);
  padding: 24px 32px 25px 0;
}
.step .num {
  color: var(--blue);
}
.step h3 {
  font: 700 22px Manrope;
  margin: 35px 0 12px;
  letter-spacing: -0.04em;
}
.step p {
  color: #56635c;
  line-height: 1.8;
  font-size: 15px;
  max-width: 320px;
}
.contact {
  background: var(--blue);
  color: white;
  padding: 104px 0;
}
.contact-in {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
}
.contact .num {
  color: #d3ddff;
}
.contact h2 {
  font: 700 clamp(47px, 6vw, 83px)/1.06 Manrope;
  letter-spacing: -0.08em;
  margin: 25px 0;
}
.contact p {
  color: #e1e7ff;
  line-height: 1.7;
  font-size: 16px;
  max-width: 540px;
  margin: 0;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.mail-link {
  font: 600 clamp(17px, 2.1vw, 27px) Manrope;
  letter-spacing: -0.045em;
  border-bottom: 1px solid #c0d1ff;
  padding-bottom: 11px;
}
.copy {
  background: none;
  border: 0;
  color: #d7e1ff;
  font-size: 12px;
  padding: 5px 0;
}
.about {
  background: var(--paper);
  padding: 134px 0;
}
.about-in {
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: center;
  gap: 9%;
}
.portrait {
  aspect-ratio: 4/4.3;
  overflow: hidden;
  background: #393a2a;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about .num {
  color: var(--blue);
}
.about h2 {
  margin: 24px 0;
}
.about p {
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 610px;
}
.about-name {
  font:
    700 16px Manrope,
    sans-serif;
  color: var(--ink);
  margin-bottom: 20px;
  font-style: oblique 5deg;
  letter-spacing: -0.015em;
}
.about .simple-link {
  display: inline-block;
  margin-top: 14px;
}
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.footer-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@keyframes settle {
  from {
    opacity: 0;
    transform: rotate(-18deg) scale(0.88) translateY(30px);
  }
  to {
    opacity: 1;
    transform: rotate(-12deg) scale(1);
  }
}
@media (max-width: 1060px) {
  .container {
    width: calc(100% - 64px);
  }
  .hero-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero h1 {
    font-size: clamp(50px, 6.15vw, 74px);
  }
  .service-row {
    grid-template-columns: 48px 1fr 1.25fr 25px;
    gap: 20px;
  }
  .project-visual {
    height: 350px;
  }
  .project-map {
    padding: 28px;
  }
  .scan-screen {
    padding: 22px;
  }
  .scan-mid {
    margin-top: 30px;
  }
}
@media (max-width: 760px) {
  .container {
    width: calc(100% - 40px);
  }
  .nav {
    height: 72px;
  }
  .nav-links {
    display: none;
  }
  /* Na telefonach pokazujemy tylko logo, bez rozwijanego menu. */
  .mobile-btn,
  .mobile-links,
  .mobile-links.open {
    display: none;
  }
  .hero {
    min-height: 0;
  }
  .hero-in {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-copy {
    padding: 52px 0 58px;
  }
  .hero h1 {
    font-size: clamp(53px, 11.1vw, 83px);
  }
  .hero-desc {
    font-size: 16px;
  }
  .ticker-in {
    height: auto;
    min-height: 74px;
    justify-content: flex-start;
    gap: 13px 22px;
    padding: 19px 0;
  }
  .ticker b {
    font-size: 11px;
  }
  .section {
    padding: 85px 0;
  }
  .section-head {
    display: block;
    margin-bottom: 38px;
  }
  .section-head h2,
  .process h2,
  .about h2 {
    font-size: clamp(42px, 8.2vw, 62px);
  }
  .section-head p {
    margin-top: 19px;
    max-width: 600px;
  }
  .service-row {
    grid-template-columns: 30px 1fr 25px;
    gap: 18px;
  }
  .service-row h3 {
    font-size: 27px;
  }
  .service-row > div:nth-child(3) {
    grid-column: 2/-1;
  }
  .service-arrow {
    grid-column: 3;
    grid-row: 1;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  .project-visual {
    height: 390px;
  }
  .project-scan .scan-screen {
    width: 66%;
  }
  .process {
    padding: 85px 0;
  }
  .process-top {
    display: block;
  }
  .process-intro {
    margin-top: 20px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .step {
    padding: 26px 0;
    border-bottom: 1px solid #aebbb2;
  }
  .step h3 {
    margin-top: 19px;
  }
  .contact {
    padding: 84px 0;
  }
  .contact-in {
    grid-template-columns: 1fr;
  }
  .contact h2 {
    font-size: clamp(43px, 9vw, 65px);
  }
  .contact-actions {
    margin-top: 16px;
  }
  .about {
    padding: 85px 0;
  }
  .about-in {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .portrait {
    max-width: 480px;
    aspect-ratio: 1/1;
  }
  .footer-in {
    flex-wrap: wrap;
  }
}
@media (max-width: 450px) {
  .hero h1 {
    font-size: clamp(45px, 11.4vw, 55px);
  }
  .hero-action {
    gap: 21px;
  }
  .primary {
    gap: 20px;
    padding: 17px;
    font-size: 12px;
  }
  .simple-link {
    font-size: 12px;
  }
  .project-visual {
    height: 305px;
  }
  .project-map {
    padding: 16px;
  }
  .project-details {
    display: block;
  }
  .project-status {
    margin-top: 10px;
  }
  .scan-screen {
    width: 77% !important;
    height: 75%;
    padding: 18px;
  }
  .scan-mid {
    font-size: 30px;
  }
  .scan-title {
    font-size: 21px;
  }
  .scan-mid small {
    font-size: 10px;
  }
  .footer-in {
    align-items: flex-start;
    flex-direction: column;
  }
  .services .section-head h2 {
    white-space: nowrap;
    font-size: clamp(32px, 4vw, 64px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Nagłówek współpracy: jeden wiersz na szerokich ekranach. */
@media (min-width: 1061px) {
  .process-top {
    display: block;
  }

  .process h2 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(28px, 3.5vw, 54px);
    letter-spacing: -0.035em;
  }

  .process h2 em {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-weight: 400;
  }

  .process-intro {
    max-width: 680px;
    margin-top: 22px;
  }
}

@media (max-width: 1060px) {
  .process h2 {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .process h2 {
    white-space: normal;
    font-size: clamp(34px, 7vw, 48px);
  }
}

/* Delikatne pojawianie się treści podczas przewijania.
   Bez JavaScriptu treść pozostaje widoczna. */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 700ms var(--ease),
      transform 700ms var(--ease);
  }

  .motion-ready .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .motion-ready .service-row:nth-child(2),
  .motion-ready .project:nth-child(2),
  .motion-ready .step:nth-child(2) {
    transition-delay: 90ms;
  }

  .motion-ready .service-row:nth-child(3),
  .motion-ready .step:nth-child(3) {
    transition-delay: 160ms;
  }
}

/* Linki kontaktowe w sekcji O mnie */
.about-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 14px;
}

.about-links .simple-link {
  margin-top: 0;
}

@media (max-width: 450px) {
  .about-links {
    gap: 16px 24px;
  }
}

/* Krótka informacja o założycielu pod ofertą na urządzeniach mobilnych. */
.mobile-founder {
  display: none;
}

@media (max-width: 760px) {
  .mobile-founder {
    display: block;
    background: var(--paper);
    padding: 32px 0 8px;
  }
  .mobile-founder p {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.7;
  }
  .mobile-founder .simple-link {
    display: inline-block;
    font-size: 13px;
  }
}

/* Nawigacja i podstrony usług. */
.skip-link {
  position: fixed;
  top: 12px;
  left: 20px;
  padding: 14px 20px;
  z-index: 100;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.service-more {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.detail-hero {
  padding: 38px 0 88px;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 62px;
}
.breadcrumbs a:hover {
  color: var(--blue);
}
.detail-hero h1 {
  max-width: 1050px;
  font:
    700 clamp(42px, 5.4vw, 78px)/1.08 Manrope,
    Arial,
    sans-serif;
  letter-spacing: -0.065em;
  margin: 0 0 28px;
}
.detail-lead {
  max-width: 760px;
  font-size: 20px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 32px;
}
.detail-section {
  padding: 82px 0;
  background: var(--paper);
}
.detail-section h2 {
  font:
    700 clamp(29px, 3vw, 44px)/1.2 Manrope,
    Arial,
    sans-serif;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}
.detail-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}
.detail-intro {
  max-width: 820px;
  margin-bottom: 46px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 64px;
}
.detail-card {
  border-top: 1px solid var(--line);
  padding-top: 27px;
}
.detail-card h3 {
  font:
    700 24px/1.35 Manrope,
    Arial,
    sans-serif;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.detail-tinted {
  background: var(--pale);
}
.detail-faq {
  max-width: 1000px;
}
.detail-faq details {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.detail-faq summary {
  cursor: pointer;
  font:
    600 18px/1.6 Manrope,
    Arial,
    sans-serif;
}
.detail-faq summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}
.detail-faq details p {
  margin: 18px 0 0;
}
.detail-author {
  margin: 38px 0 0;
}
.text-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link:hover {
  color: var(--blue);
}
.related-services {
  padding-top: 36px;
  padding-bottom: 36px;
  display: flex;
  gap: 24px 36px;
  flex-wrap: wrap;
}
.error-page {
  padding-top: 100px;
  padding-bottom: 100px;
  max-width: 850px;
}
.error-page h1 {
  font:
    700 clamp(40px, 5vw, 66px)/1.15 Manrope,
    Arial,
    sans-serif;
  letter-spacing: -0.06em;
}
.error-page p {
  line-height: 1.8;
}
@media (max-width: 760px) {
  .detail-hero {
    padding: 24px 0 54px;
  }
  .breadcrumbs {
    margin-bottom: 38px;
  }
  .detail-lead {
    font-size: 17px;
  }
  .detail-section {
    padding: 54px 0;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .detail-section p {
    font-size: 16px;
  }
  .detail-faq summary {
    font-size: 17px;
  }
  .service-page .contact h2 {
    font-size: clamp(35px, 8vw, 58px);
    overflow-wrap: anywhere;
  }
}
@media print {
  .motion-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .mobile-btn,
  .mobile-links,
  .nav-links,
  .skip-link {
    display: none !important;
  }
}
