:root {
  --cream: #f8f2ee;
  --cream-2: #efe6dd;
  --ink: #1d1e1d;
  --green: #173f32;
  --green-2: #255b49;
  --copper: #9a4f2c;
  --muted: #6b746e;
  --line: rgba(23, 63, 50, .18);
  --shadow: 0 24px 70px rgba(29, 30, 29, .12);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(248,242,238,.94), rgba(248,242,238,.94)),
    url("../img/decor/bg-soft-grid.svg") center/cover fixed;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(154, 79, 44, .22); }

.site-frame {
  position: fixed;
  inset: 18px;
  border: 2px solid var(--green);
  pointer-events: none;
  z-index: 80;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}
.corner-decor {
  position: fixed;
  width: min(28vw, 360px);
  opacity: .92;
  pointer-events: none;
  z-index: 0;
}
.corner-decor.top { right: 28px; top: 30px; }
.corner-decor.bottom { left: 28px; bottom: 30px; }

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}
.section {
  padding: 20px 0;
  position: relative;
}
.section-tight { padding: 32px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 800;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--copper);
}
h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.4rem);
  letter-spacing: -.03em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  letter-spacing: -.015em;
}

p {
  margin: 0;
}
.lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: #3f4742;
  max-width: 740px;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(23,63,50,.24);
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--cream); border-color: var(--green); }
.btn-secondary { color: var(--green); background: rgba(255,255,255,.36); }
.btn-copper { color: var(--cream); background: var(--copper); border-color: var(--copper); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(248, 242, 238, .78);
  border-bottom: 1px solid rgba(23,63,50,.1);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand strong { font-size: 1rem; }
.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #33423a;
  font-weight: 700;
  font-size: .95rem;
}
.menu a {
  position: relative;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--copper);
  transition: right .22s ease;
}
.menu a:hover::after { right: 0; }

.menu a[aria-current="page"] {
  color: var(--copper);
  font-weight: 900;
}

.menu a[aria-current="page"]::after {
  right: 0;
}

.line-tab {
    display: block;
    padding-left: 1.5rem;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(23,63,50,.22);
  background: transparent;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  color: var(--green);
  font-size: 1.2rem;
}

.hero {
  min-height: auto;
  display: grid;
  align-items: center;
  padding: 64px 0 42px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  margin-top: 24px;
  color: var(--green);
}
.hero-copy .lead { margin-top: 24px; }
.hero-panel {
  position: relative;
  isolation: isolate;
  min-height: 280px;
  border: 0;
  background: transparent;
  border-radius: var(--radius);
  box-shadow: none;
  overflow: visible;
  clip-path: none;
}

.hero-panel::before {
    display: none;
}

.hero-card {
  position: absolute;
  inset: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px solid rgba(23, 63, 50, .62);
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.hero-logo {
  width: auto;
  max-width: 85%;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 18px 25px rgba(29, 30, 29, .12));
}
.wordmark {
  text-transform: uppercase;
  line-height: .86;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 5.5rem);
}
.wordmark .labs {
  display: block;
  margin-top: .18em;
  color: var(--green);
  font-weight: 500;
  letter-spacing: .34em;
  font-size: .52em;
}
.divider {
  height: 24px;
  width: min(520px, 88%);
  margin: 22px auto;
  background: url("../img/decor/ornament-divider.svg") center/contain no-repeat;
}
.hero-card p {
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 700;
}

.kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.kicker {
  border: 1px solid rgba(23,63,50,.18);
  color: var(--green);
  background: rgba(255,255,255,.44);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .85rem;
  font-weight: 800;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}
.section-head p { max-width: 560px; color: #4f5b54; }

.featured-project {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
  border: 1px solid rgba(23,63,50,.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,.36);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.project-media {
  min-height: 420px;
  background: var(--green);
}
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-content {
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.status {
  display: inline-flex;
  width: fit-content;
  color: var(--green);
  border: 1px solid rgba(23,63,50,.18);
  background: rgba(23,63,50,.07);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-content h2 { margin-top: 20px; }
.project-content p { margin-top: 18px; color: #44514a; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pillar {
  padding: 26px;
  border: 1px solid rgba(23,63,50,.15);
  border-radius: 22px;
  background: rgba(255,255,255,.36);
  min-height: 260px;
  transition: transform .2s ease, border-color .2s ease;
}
.pillar:hover { transform: translateY(-4px); border-color: rgba(154,79,44,.4); }
.pillar img { width: 58px; height: 58px; margin-bottom: 22px; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: #4c5851; font-size: .96rem; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(23,63,50,.16);
    border-radius: 22px;
    background: rgba(255,255,255,.38);
    box-shadow: 0 18px 50px rgba(29,30,29,.08);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.project-card:hover,
.project-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(154,79,44,.45);
  box-shadow: 0 22px 58px rgba(29,30,29,.11);
}

.project-card:focus-visible {
  outline: 3px solid rgba(154,79,44,.45);
  outline-offset: 4px;
}
.project-card .thumb {
  aspect-ratio: 4 / 2.6;
  background: var(--green);
  overflow: hidden;
}
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .body { padding: 24px; }
.project-card p { margin-top: 12px; color: #4d5a53; }
.project-card .status { margin-bottom: 14px; }

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(154,79,44,.3);
}
.timeline-item {
  position: relative;
  padding-left: 56px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 5px;
  width: 18px;
  height: 18px;
  background: var(--cream);
  border: 3px solid var(--copper);
  border-radius: 50%;
}
.timeline-item time {
  color: var(--copper);
  font-weight: 900;
  letter-spacing: .1em;
  font-size: .8rem;
  text-transform: uppercase;
}
.timeline-item h3 { margin-top: 5px; font-size: 1.25rem; }
.timeline-item p { margin-top: 8px; color: #4e5a53; }

.cta {
  position: relative;
  padding: clamp(18px, 3vw, 32px);
  border-radius: var(--radius);
  background: var(--green);
  color: var(--cream);
  overflow: hidden;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
}
.cta::after {
  content: "";
  position: absolute;
  inset: auto -40px -100px auto;
  width: 420px;
  height: 320px;
  background: url("../img/decor/circuit-corner-bottom-left.svg") center/contain no-repeat;
  opacity: .25;
  transform: rotate(180deg);
}
.cta h2 { 
  color: var(--cream);
  font-size: clamp(1.45rem, 3vw, 2.4rem);		 
}
.cta p {
  max-width: 680px;
  margin-top: 12px;
  font-size: .98rem;
  color: rgba(248,242,238,.82);
}
.cta .btn-secondary {
  background: rgba(248,242,238,.09);
  color: var(--cream);
  border-color: rgba(248,242,238,.3);
}

.contact-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid rgba(23,63,50,.16);
  padding-top: 32px;
}
.contact-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-weight: 850;
  color: var(--green);
}

.footer {
  padding: 54px 0 70px;
  border-top: 1px solid rgba(23,63,50,.12);
  color: #59645e;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer strong { color: var(--green); }

.page-hero {
  padding: 56px 0 26px;
}
.page-hero h1 { color: var(--green); max-width: 880px; }
.page-hero p { margin-top: 20px; }

.two-col {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 46px;
  align-items: start;
}
.panel {
  border: 1px solid rgba(23,63,50,.16);
  border-radius: var(--radius);
  background: rgba(255,255,255,.34);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 18px 50px rgba(29,30,29,.07);
}
.panel h2, .panel h3 { margin-bottom: 18px; }
.panel p + p { margin-top: 16px; }

@media (max-width: 920px) {
  .site-frame { inset: 10px; }
  .corner-decor { opacity: .35; width: 260px; }
  .nav { min-height: 68px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .menu {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 70px;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(248,242,238,.96);
    border: 1px solid rgba(23,63,50,.16);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: .22s ease;
  }
  .menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .hero-grid, .featured-project, .two-col { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 16px; }
  .contact-strip { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 38px 0; }
  .section-tight { padding: 26px 0; }
  .page-hero { padding: 38px 0 20px; }
  .section-head { margin-bottom: 18px; }
  .hero { padding: 40px 0 30px; }
  .pillars { grid-template-columns: 1fr; }
  .wordmark { font-size: 3rem; }
  .corner-decor { display: none; }
}

/* Jasne przyciski z wyraźnym stanem po najechaniu. */
.btn-secondary:hover {
  background: rgba(154,79,44,.12);
  color: var(--copper);
  border-color: rgba(154,79,44,.45);
}

/* Mały licznik odsłon w stopce — bez cookies i bez danych użytkowników. */
.footer-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid rgba(23,63,50,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  color: #4d5a53;
  font-size: .9rem;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(29,30,29,.04);
}
.footer-counter span {
  color: var(--green);
}
.footer-counter strong {
  color: var(--copper);
  font-weight: 900;
}

@media (max-width: 620px) {
  .footer-counter {
    width: max-content;
    max-width: 100%;
  }
}

/* ===== O Zervi Labs ===== */
.about-page {
  overflow: hidden;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: clamp(2rem, 5vw, 5.25rem);
  align-items: center;
}

.about-hero-copy {
  max-width: 780px;
}



.about-hero-copy h1 {
  max-width: 820px;
}
    .about-hero-copy p {
        max-width: 740px;
        color: rgba(27, 31, 30, .74);
        font-size: clamp(1rem, 1.12vw, 1.06rem);
        line-height: 1.64;
    }

        .about-hero-copy h1 + p,
        .about-hero-copy p + p {
            margin-top: .85rem;
        }


.about-hero-copy .lead {
  max-width: 740px;
}

.about-hero-grid .btn-row {
  margin-top: 1.35rem;
}

.about-visual {
    position: relative;
}

.about-logo-card {
    position: relative;
    border: 1px solid rgba(23, 63, 50, .26);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(255,255,255,.24)), rgba(244, 238, 232, .72);
    box-shadow: 0 26px 70px rgba(27, 31, 30, .08);
    padding: clamp(1.5rem, 3vw, 2.4rem);
    overflow: hidden;
}

    .about-logo-card::before,
    .about-logo-card::after {
        content: "";
        position: absolute;
        pointer-events: none;
        opacity: .32;
    }

    .about-logo-card::before {
        width: 160px;
        height: 160px;
        right: -55px;
        top: -55px;
        border: 1px solid rgba(169, 88, 48, .45);
        border-radius: 50%;
    }

    .about-logo-card::after {
        width: 210px;
        height: 1px;
        right: 32px;
        bottom: 38px;
        background: rgba(169, 88, 48, .35);
    }

    .about-logo-card img {
        display: block;
        width: min(100%, 420px);
        margin-inline: auto;
        border-radius: 18px;
    }

.about-logo-caption {
    margin-top: 1.25rem;
    color: #173f32;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
    text-align: center;
}

.about-mini-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-top: 1.1rem;
}

    .about-mini-tags span {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: .35rem .75rem;
        border: 1px solid rgba(23, 63, 50, .18);
        border-radius: 999px;
        background: rgba(255,255,255,.55);
        color: rgba(27, 31, 30, .74);
        font-size: .86rem;
        font-weight: 700;
    }

.about-section-head {
  max-width: 820px;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

    .about-section-head p {
        margin-top: .75rem;
        color: rgba(27, 31, 30, .72);
        font-size: clamp(1rem, 1.12vw, 1.06rem);
        line-height: 1.62;
    }

.about-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.35rem);
  counter-reset: process;
}

.process-step {
  position: relative;
  border-left: 2px solid rgba(169, 88, 48, .48);
  padding: .15rem 0 .15rem 1.15rem;
  counter-increment: process;
}

.process-step::before {
  content: "0" counter(process);
  display: inline-block;
  margin-bottom: .55rem;
  color: #a95830;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.process-step h3 {
  margin-bottom: .52rem;
  font-size: clamp(1.08rem, 1.38vw, 1.25rem);
}

    .process-step p {
        color: rgba(27, 31, 30, .72);
        line-height: 1.58;
    }

.about-author-section {
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.about-author-grid {
  display: grid;
  grid-template-columns: minmax(260px, 370px) minmax(0, 1fr);
  gap: clamp(1.6rem, 4.5vw, 4.2rem);
  align-items: center;
}

.author-media {
  margin: 0;
}

.author-photo-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(260px, 34vw, 430px);
  border: 1px solid rgba(23, 63, 50, .18);
  border-radius: 32px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,.35), transparent 34%),
    linear-gradient(145deg, #102b27, #173f32);
  color: #fff8ee;
  overflow: hidden;
  box-shadow: 0 22px 62px rgba(27, 31, 30, .075);
}

.author-photo-placeholder::before,
.author-photo-placeholder::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.author-photo-placeholder::before {
  width: 260px;
  height: 260px;
  right: -120px;
  top: -90px;
  border: 1px solid rgba(255, 248, 238, .18);
}

.author-photo-placeholder::after {
  width: 230px;
  height: 230px;
  left: -120px;
  bottom: -115px;
  border: 1px solid rgba(196, 111, 64, .28);
}

.author-photo-placeholder span {
  position: relative;
  display: grid;
  place-items: center;
  width: 94px;
  height: 94px;
  border: 1px solid rgba(255, 248, 238, .2);
  border-radius: 50%;
  background: rgba(255, 248, 238, .08);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.author-media picture {
  display: block;
}

.author-photo {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border: 1px solid rgba(23, 63, 50, .18);
  border-radius: 32px;
  box-shadow: 0 22px 62px rgba(27, 31, 30, .075);
}

.author-media figcaption {
  margin-top: .8rem;
  color: rgba(27, 31, 30, .58);
  font-size: .92rem;
  line-height: 1.55;
}

.about-author-copy {
  max-width: 880px;
}
    .about-author-copy h2 + p {
        margin-top: .75rem;
    }

    .about-author-copy p {
        color: rgba(27, 31, 30, .74);
        font-size: clamp(1rem, 1.12vw, 1.06rem);
        line-height: 1.64;
    }

        .about-author-copy p + p {
            margin-top: .85rem;
        }

.about-quote {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(169, 88, 48, .24);
    color: #173f32;
    font-weight: 800;
    line-height: 1.52;
}



@media (max-width: 980px) {
  .about-hero-grid,
  .about-author-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-width: 560px;
  }

  .about-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .about-process {
    grid-template-columns: 1fr;
  }

  .about-logo-card,
  .author-photo-placeholder,
  .author-photo {
    border-radius: 24px;
  }
}
