/* ============================================================
   MANEVO — Biuro Projektów Infrastruktury Drogowej
   Premium redesign · system designu
   ============================================================ */

:root {
  --bg: #0a0d11;
  --bg-2: #0d1117;
  --panel: #11161d;
  --panel-2: #151b24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e9eef4;
  --muted: #97a3b2;
  --faint: #6b7684;
  --accent: #f5b301;          /* bursztyn oznakowania drogowego */
  --accent-soft: rgba(245, 179, 1, 0.12);
  --cyan: #5fd2ff;            /* blueprint / CAD */
  --cyan-soft: rgba(95, 210, 255, 0.1);
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --container: 1180px;
  --nav-h: 76px;
  --shadow-lg: 0 30px 60px -25px rgba(0, 0, 0, 0.65);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #12100a; }

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(20px, 4vw, 40px);
}

/* ---------- typografia ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

.display-xl { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 700; }
.display-lg { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.display-md { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); font-weight: 400; }

.grad-text {
  background: linear-gradient(100deg, var(--accent) 10%, #ffd166 55%, var(--cyan) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section { padding-block: clamp(84px, 11vw, 140px); position: relative; }
.section--tint { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }

.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.kicker--cyan { color: var(--cyan); }
.kicker--cyan::before { background: linear-gradient(90deg, transparent, var(--cyan)); }

/* ---------- przyciski ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #ffc93c);
  color: #171204;
  box-shadow: 0 12px 30px -12px rgba(245, 179, 1, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(245, 179, 1, 0.65); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* ---------- nawigacja ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 13, 17, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo img { height: 34px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--text); }

.nav__cta { display: inline-flex; }
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 44px; height: 44px;
  cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 78% 12%, rgba(95, 210, 255, 0.09), transparent 60%),
    radial-gradient(900px 520px at 12% 88%, rgba(245, 179, 1, 0.07), transparent 55%),
    var(--bg);
}
.hero__bgimg {
  position: absolute; inset: 0;
  background: url("../images/img1.jpg") center/cover no-repeat;
  opacity: 0.16;
  filter: grayscale(0.4) contrast(1.05);
}
.hero__bgimg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,17,0.4), rgba(10,13,17,0.92) 78%, var(--bg));
}
#hero-3d {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--nav-h);
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
}
.hero__inner { max-width: 780px; padding-block: clamp(60px, 9vh, 110px); }

.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(17, 22, 29, 0.6);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 28px;
}
.hero__tag .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 700; margin-bottom: 24px; }
.hero h1 .thin { font-weight: 300; color: var(--muted); }
.hero__sub { max-width: 560px; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero__stats {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10,13,17,0.25), rgba(10,13,17,0.75));
  backdrop-filter: blur(8px);
}
.hero__stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 30px;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
}
.stat__num em { font-style: normal; color: var(--accent); }
.stat__label { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 118px;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 42px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  display: flex; justify-content: center;
}
.hero__scroll::after {
  content: "";
  width: 3px; height: 9px;
  background: var(--accent);
  border-radius: 3px;
  margin-top: 7px;
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- karty oferty ---------- */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }

.card__idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--faint);
  margin-bottom: 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--cyan-soft);
  border: 1px solid rgba(95, 210, 255, 0.25);
  color: var(--cyan);
}
.card__icon svg { width: 22px; height: 22px; }
.card--amber .card__icon { background: var(--accent-soft); border-color: rgba(245, 179, 1, 0.3); color: var(--accent); }
.card h3 { font-size: 1.22rem; margin: 18px 0 10px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0 0 14px; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card ul li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 2px;
  background: var(--accent);
}

/* ---------- pasek specjalizacji ---------- */

.strip {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding-block: 18px;
}
.strip__track {
  display: flex;
  gap: 54px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.strip__item {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.strip__item::before { content: "◆"; color: var(--accent); font-size: 0.6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- technologia / CAD ---------- */

.tech { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.tech__visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(rgba(95, 210, 255, 0.05) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, rgba(95, 210, 255, 0.05) 1px, transparent 1px) 0 0 / 34px 100%,
    var(--panel);
  padding: clamp(20px, 3vw, 36px);
  overflow: hidden;
}
.tech__visual svg { width: 100%; height: auto; }
html.js .draw path, html.js .draw line, html.js .draw polyline, html.js .draw circle, html.js .draw rect {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}
.draw.in-view path, .draw.in-view line, .draw.in-view polyline, .draw.in-view circle, .draw.in-view rect {
  animation: drawLine 2.6s ease forwards;
}
.draw.in-view .d2 { animation-delay: 0.35s; }
.draw.in-view .d3 { animation-delay: 0.7s; }
.draw.in-view .d4 { animation-delay: 1.05s; }
.draw.in-view .d5 { animation-delay: 1.4s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.tech__badge {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  border: 1px solid rgba(95, 210, 255, 0.3);
  background: rgba(10, 13, 17, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
}
.checklist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.checklist svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.checklist strong { color: var(--text); font-weight: 600; }

/* ---------- realizacje ---------- */

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3.1;
  background: var(--panel);
}
.work img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
  filter: saturate(0.85);
}
.work:hover img { transform: scale(1.06); filter: saturate(1); }
.work__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 46px 22px 18px;
  background: linear-gradient(180deg, transparent, rgba(7, 9, 12, 0.92));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
}
.work__cap h3 { font-size: 1.02rem; margin: 0; }
.work__cap span { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--accent); text-transform: uppercase; white-space: nowrap; }

/* ---------- proces ---------- */

.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.step:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: 2rem;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 179, 1, 0.55);
  display: block;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  padding: clamp(44px, 6vw, 80px);
  background:
    linear-gradient(100deg, rgba(10, 13, 17, 0.92) 30%, rgba(10, 13, 17, 0.55)),
    url("../images/img3.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--muted); max-width: 460px; margin: 0; }

/* ---------- kontakt ---------- */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 4px; }
.contact-list li {
  display: flex; gap: 18px; align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ic {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 179, 1, 0.28);
  color: var(--accent);
}
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list b { display: block; font-size: 0.78rem; font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.contact-list a, .contact-list .val { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--text); }
.contact-list a:hover { color: var(--accent); }

.js-email { cursor: pointer; }

.map-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--panel);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
  filter: grayscale(0.9) invert(0.92) contrast(0.9) hue-rotate(180deg) saturate(0.7);
}

/* ---------- strony wewnętrzne ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(70px, 10vw, 120px)) 0 clamp(56px, 8vw, 90px);
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(95, 210, 255, 0.08), transparent 60%),
    var(--bg);
}
.page-hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.page-hero .crumbs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 22px;
}
.page-hero .crumbs a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 820px; }
.page-hero .lead { max-width: 640px; }

.prose { max-width: 780px; color: var(--muted); }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--text); }

.skill { margin-bottom: 26px; }
.skill__head { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 600; margin-bottom: 10px; }
.skill__head span:last-child { color: var(--accent); font-family: var(--font-mono); font-size: 0.85rem; }
.skill__bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
html.js .skill__bar i {
  display: block; height: 100%; width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.skill__bar i {
  display: block; height: 100%; width: var(--w);
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}
.in-view .skill__bar i { width: var(--w); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }

.panel-img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.panel-img img { width: 100%; height: 100%; object-fit: cover; }

.fidic-badge {
  display: flex; gap: 22px; align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 24px;
  margin-top: 34px;
}
.fidic-badge img { width: 74px; height: auto; border-radius: 8px; }
.fidic-badge p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.fidic-badge strong { color: var(--text); }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.3rem;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- blog / facebook ---------- */

.fb-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 18px;
  display: flex;
  justify-content: center;
  min-height: 420px;
}

/* ---------- stopka ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-top: clamp(56px, 7vw, 84px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 0.92rem; max-width: 300px; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); font-size: 0.93rem; transition: color 0.2s ease; }
.footer ul a:hover { color: var(--accent); }
.footer__contact { color: var(--muted); font-size: 0.93rem; display: grid; gap: 10px; }
.footer__contact a:hover { color: var(--accent); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.85rem;
}
.footer__social { display: flex; gap: 12px; align-items: center; }
.footer__social a {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.footer__social a:hover { color: #1877f2; border-color: #1877f2; transform: translateY(-2px); }
.footer__social svg { width: 19px; height: 19px; }

/* ---------- cookies ---------- */

.cookie {
  position: fixed;
  left: 50%; bottom: 22px;
  transform: translate(-50%, 140%);
  z-index: 200;
  max-width: 640px;
  width: calc(100% - 40px);
  background: rgba(17, 22, 29, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow-lg);
}
.cookie.is-visible { transform: translate(-50%, 0); }
.cookie p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.cookie .btn { padding: 10px 20px; font-size: 0.85rem; flex: 0 0 auto; }

/* ---------- animacje wejścia (tylko przy aktywnym JS) ---------- */

html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.js .reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ---------- responsywność ---------- */

@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .tech { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --nav-h: 92px; }
  .nav__logo img { height: 32px; }
  .nav__toggle { display: flex; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 13, 17, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: calc(var(--nav-h) + 14px) 22px 26px;
    gap: 4px;
    transform: translateY(-101%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1;
  }
  .nav.is-open .nav__links { transform: translateY(0); }
  .nav.is-open {
    background: rgba(10, 13, 17, 0.97);
    border-bottom-color: var(--line);
  }
  .nav__links a { display: block; padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .grid--3, .works { grid-template-columns: 1fr; }
  .grid--2, .contact-grid, .split { grid-template-columns: 1fr; }
  .hero__stats .container { grid-template-columns: repeat(2, 1fr); }
  .cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  .grid--4, .process, .footer__grid { grid-template-columns: 1fr; }
  .hero__stats .container { grid-template-columns: 1fr 1fr; gap: 18px; }
  .map-wrap iframe { height: 340px; }
  .hero__tag { font-size: 0.62rem; letter-spacing: 0.1em; padding: 7px 13px; }
  .hero__scroll { display: none; }
}

/* ---------- dostępność / reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .draw path, .draw line, .draw polyline, .draw circle, .draw rect { stroke-dashoffset: 0; }
}
