/* =========================================================
   webActive — wizytówka firmowa (edycja B&W)
   Estetyka: czerń / biel + jeden akcent = limonka z logo (#D3E756)
   Oś: Relacje · Projekty · Miejsca  (Miejsca = Mazurski Chill)
   Typografia: Bricolage Grotesque (display) / Inter (tekst)
   ========================================================= */

:root {
  --black:   #0A0A0A;
  --panel:   #141414;
  --line:    rgba(255,255,255,.14);
  --white:   #F4F4F2;
  --muted:   #9A9A96;
  --muted-2: #6E6E6A;

  --paper:   #F4F4F2;   /* sekcja odwrócona */
  --ink:     #111111;
  --ink-mut: #5A5A56;
  --line-d:  rgba(0,0,0,.14);

  --lime:    #D3E756;   /* jedyny akcent — z logo */

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body:    "Inter", system-ui, sans-serif;

  --container: 1180px;
  --pad-section: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.75rem);
}

.section { padding: var(--pad-section) 0; }
.section--paper { background: var(--paper); color: var(--ink); }

/* --- Etykieta (zamiast mono — bardziej „biznesowo") --- */
.eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--lime);
  border-radius: 50%;
  display: inline-block;
}
.section--paper .eyebrow { color: var(--ink-mut); }

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: -.025em;
  margin: 1.2rem 0 1.1rem;
  max-width: 18ch;
}
.lead {
  color: var(--muted);
  max-width: 56ch;
  font-size: 1.12rem;
  line-height: 1.6;
}
.section--paper .lead { color: var(--ink-mut); }

/* =========================================================
   NAWIGACJA
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,10,10,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand img { height: 30px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav__links a {
  font-size: .82rem; font-weight: 500; letter-spacing: .02em;
  color: var(--muted); transition: color .2s ease; position: relative;
}
.nav__links a::after {
  content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px;
  background: var(--lime); transition: width .25s ease;
}
.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--black); background: var(--white);
  padding: .6rem 1.15rem; border-radius: 100px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav__cta:hover { background: var(--lime); transform: translateY(-1px); }

@media (max-width: 780px) { .nav__links { display: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(4.5rem, 10vw, 8rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("topo.svg") no-repeat right center / cover;
  opacity: .14;
  mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 78%);
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 40%, transparent 78%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 900px; }
.hero__mark { height: 54px; width: auto; margin-bottom: 2.2rem; }

.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: .95;
  letter-spacing: -.04em;
  margin-bottom: 1.8rem;
}
.hero__title span { display: block; }
.hero__title .dot { color: var(--lime); }

.hero__sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  max-width: 60ch;
  margin-bottom: 2.4rem;
  line-height: 1.6;
}
.hero__sub strong { color: var(--white); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.btn {
  font-size: .9rem; font-weight: 600; letter-spacing: .01em;
  padding: .95rem 1.7rem; border-radius: 100px;
  display: inline-flex; align-items: center; gap: .5rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--lime); color: var(--black); }
.btn--primary:hover { transform: translateY(-2px); background: #dcef6a; }
.btn--ghost { border-color: var(--line); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.section--paper .btn--ghost { border-color: var(--line-d); color: var(--ink); }
.section--paper .btn--ghost:hover { border-color: var(--ink); }

/* =========================================================
   FILARY — Relacje / Projekty / Miejsca
   ========================================================= */
.pillars__head { max-width: 640px; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 2.4rem 2rem 2.6rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  position: relative;
}
.pillar:nth-child(3n) { border-right: none; }
.pillar__k {
  font-size: .72rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted-2);
}
.pillar h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 1.9rem; letter-spacing: -.02em;
  margin: .5rem 0 .9rem;
  display: flex; align-items: center; gap: .6rem;
}
.pillar h3::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--lime); flex-shrink: 0;
}
.pillar p { color: var(--muted); font-size: .98rem; }
.pillar__link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.1rem; font-size: .85rem; font-weight: 600;
  color: var(--white); border-bottom: 2px solid var(--lime);
  padding-bottom: 2px; transition: gap .2s ease;
}
.pillar__link:hover { gap: .7rem; }

@media (max-width: 820px) {
  .pillars__grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; }
}

/* =========================================================
   O NAS (odwrócona — biel/czerń)
   ========================================================= */
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.about__body p { margin-bottom: 1.2rem; color: var(--ink-mut); }
.about__body p.first { color: var(--ink); font-size: 1.32rem; line-height: 1.4; font-weight: 500; }
.about__body strong { color: var(--ink); font-weight: 600; }
.about__aside {
  align-self: stretch;
  border: 1px solid var(--line-d);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.4rem;
}
.fact { border-bottom: 1px solid var(--line-d); padding-bottom: 1.3rem; }
.fact:last-child { border-bottom: none; padding-bottom: 0; }
.fact dt { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mut); margin-bottom: .3rem; }
.fact dd { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.fact dd small { display:block; font-family: var(--body); font-weight: 400; font-size: .9rem; color: var(--ink-mut); margin-top:.2rem; }

@media (max-width: 780px) { .about__grid { grid-template-columns: 1fr; } }

/* =========================================================
   REALIZACJE
   ========================================================= */
.work__head { max-width: 640px; margin-bottom: clamp(2.4rem, 4vw, 3.6rem); }
.work__list { border-top: 1px solid var(--line); }
.project {
  display: grid; grid-template-columns: 220px 1fr auto;
  gap: 1.8rem; align-items: baseline;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
  transition: padding-left .25s ease;
}
.project:hover { padding-left: .8rem; }
.project__k { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.project__k b { display: block; color: var(--lime); font-weight: 600; margin-top: .3rem; letter-spacing: .1em; }
.project h3 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.project p { color: var(--muted); font-size: .98rem; max-width: 54ch; }
.project__cta {
  font-size: .84rem; font-weight: 600; white-space: nowrap;
  color: var(--white); display: inline-flex; align-items: center; gap: .4rem;
  border-bottom: 2px solid var(--lime); padding-bottom: 2px; transition: gap .2s ease;
}
.project__cta:hover { gap: .7rem; }

@media (max-width: 840px) {
  .project { grid-template-columns: 1fr; gap: .55rem; }
}

/* =========================================================
   MAZURSKI CHILL — dedykowany blok (filar „Miejsca")
   ========================================================= */
.chill {
  position: relative; overflow: hidden;
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.chill::before {
  content: ""; position: absolute; inset: 0;
  background: url("topo.svg") no-repeat center / cover;
  opacity: .16; pointer-events: none;
}
.chill__inner {
  position: relative; padding: var(--pad-section) 0;
  max-width: 720px;
}
.chill__label { color: var(--lime); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .74rem; }
.chill h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -.03em;
  line-height: .98; margin: 1rem 0 1.2rem;
}
.chill p { color: var(--muted); font-size: 1.14rem; max-width: 52ch; margin-bottom: 2rem; }

/* =========================================================
   KONTAKT
   ========================================================= */
.contact__grid {
  display: grid; grid-template-columns: .9fr 1.1fr;
  gap: clamp(2.4rem, 6vw, 5rem); align-items: start;
}
.contact__details { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.contact__item { display: flex; gap: 1rem; align-items: flex-start; }
.contact__item svg { width: 20px; height: 20px; color: var(--lime); flex-shrink: 0; margin-top: .25rem; }
.contact__label { font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-right: .65rem; }
.contact__value { font-size: 1.05rem; color: var(--white); }
.contact__value a:hover { color: var(--lime); }

.form { display: flex; flex-direction: column; gap: 1.15rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--white);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .9rem 1.05rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(211,231,86,.18);
}
.form .btn--primary { align-self: flex-start; margin-top: .3rem; }
.form__note { font-size: .8rem; color: var(--muted-2); }

@media (max-width: 820px) { .contact__grid { grid-template-columns: 1fr; } }

/* =========================================================
   STOPKA
   ========================================================= */
.footer { padding: 3.6rem 0 2.6rem; border-top: 1px solid var(--line); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer__brand img { height: 34px; margin-bottom: 1rem; }
.footer__brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.footer__col h4 { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .9rem; }
.footer__col a, .footer__col span { display: block; color: var(--muted); font-size: .95rem; line-height: 1.7; margin-bottom: .55rem; }
.footer__col a:last-child, .footer__col span:last-child { margin-bottom: 0; }
.footer__col a:hover { color: var(--lime); }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  font-size: .82rem; color: var(--muted-2);
}

/* =========================================================
   FUNDUSZE EUROPEJSKIE
   ========================================================= */
.funding__logos {
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 1.8rem 0 2.4rem;
}
.funding__item {
  border-top: 1px solid var(--line-d);
  padding: 1.4rem 0;
}
.funding__item:last-of-type { border-bottom: 1px solid var(--line-d); }
.funding__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--ink);
  letter-spacing: -.01em;
}
.funding__item summary::-webkit-details-marker { display: none; }
.funding__toggle {
  flex-shrink: 0;
  position: relative;
  width: 22px; height: 22px;
}
.funding__toggle::before, .funding__toggle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 2px; background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .25s ease;
}
.funding__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.funding__item[open] .funding__toggle::after { opacity: 0; transform: translate(-50%, -50%) rotate(0); }
.funding__item[open] summary { color: #000; }

.funding__body { padding-top: 1.2rem; max-width: 760px; }
.funding__body p { color: var(--ink-mut); margin-bottom: 1rem; font-size: .98rem; }
.funding__body strong { color: var(--ink); font-weight: 600; }
.funding__figures {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 0 0 1.3rem;
}
.funding__figures li {
  border: 1px solid var(--line-d);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  min-width: 180px;
}
.funding__figures span {
  display: block;
  font-size: .68rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-mut); margin-bottom: .25rem;
}
.funding__figures b { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink); }

/* =========================================================
   REVEAL / A11y
   ========================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .09s; }
[data-reveal][data-delay="2"] { transition-delay: .18s; }
[data-reveal][data-delay="3"] { transition-delay: .27s; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
