/* =================================================================
   DATA PILOT — styles.css
   System: „nocny lot" — granat + bursztynowe światła pasa + teal.
   Sygnatura: wznosząca się trajektoria (hero + plan lotu).
   ================================================================= */

:root {
  /* Kolory */
  --midnight: #0B1A2B;
  --midnight-2: #0E2236;
  --deep: #13283F;
  --deep-2: #1A3754;
  --runway: #F4A11A;
  --runway-2: #FFB845;
  --signal: #36C5C0;
  --mist: #EEF2F7;
  --paper: #F8FAFC;
  --ink: #0B1A2B;
  --slate: #5B6B7E;
  --paper-dim: #AFC0D2;
  --line: rgba(255, 255, 255, 0.10);
  --line-dark: rgba(11, 26, 43, 0.12);

  /* Typografia */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  /* Rytm */
  --maxw: 1160px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --section-y: clamp(4.5rem, 9vw, 8rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; z-index: 2000; background: var(--runway); color: var(--midnight);
  padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600;
}

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

/* ---------- Elementy współdzielone ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--runway); margin: 0 0 1rem;
}
.eyebrow--dark { color: #B07404; }

.link {
  color: inherit; font-weight: 600;
  box-shadow: inset 0 -0.45em 0 rgba(244, 161, 26, 0.22);
  transition: box-shadow 0.18s ease;
}
.link:hover { box-shadow: inset 0 -0.95em 0 rgba(244, 161, 26, 0.28); }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--runway); color: var(--midnight); box-shadow: 0 6px 20px rgba(244, 161, 26, 0.28); }
.btn--primary:hover { background: var(--runway-2); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(244, 161, 26, 0.36); }
.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn--ghost:hover { border-color: var(--runway); color: var(--runway); transform: translateY(-2px); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* =================================================================
   NAWIGACJA
   ================================================================= */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11, 26, 43, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand__mark { color: var(--runway); display: inline-flex; }
.brand__name { color: #fff; }

.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { color: var(--paper-dim); font-size: 0.95rem; font-weight: 500; transition: color 0.16s ease; }
.nav__links a:hover { color: #fff; }
.nav__cta {
  color: var(--midnight) !important; background: var(--runway);
  padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 600;
  transition: background 0.16s ease, transform 0.16s ease;
}
.nav__cta:hover { background: var(--runway-2); transform: translateY(-1px); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 0%, var(--midnight-2) 0%, var(--midnight) 55%);
  color: #fff;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.hero__glow {
  position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(244, 161, 26, 0.16), transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }

.hero__trajectory {
  position: absolute; inset: 0 0 0 auto; width: min(64%, 720px); height: 100%;
  z-index: 1; opacity: 0.95;
}
.hero__path-bg, .hero__path { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.hero__path-bg { stroke: rgba(255, 255, 255, 0.07); }
.hero__path {
  stroke-width: 3; filter: drop-shadow(0 0 7px rgba(244, 161, 26, 0.55));
  stroke-dasharray: 1100; stroke-dashoffset: 1100;
  animation: draw 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}
.hero__waypoints circle { fill: var(--runway); opacity: 0; animation: pop 0.5s ease forwards; }
.hero__waypoints circle:nth-child(1) { animation-delay: 0.4s; }
.hero__waypoints circle:nth-child(2) { animation-delay: 1.1s; }
.hero__waypoints circle:nth-child(3) { animation-delay: 1.9s; }
.hero__waypoints circle:nth-child(4) { animation-delay: 2.5s; }
.hero__waypoint--end { filter: drop-shadow(0 0 9px rgba(244, 161, 26, 0.9)); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }

.hero__title { font-size: clamp(2.6rem, 6.2vw, 4.6rem); font-weight: 700; margin-bottom: 1.4rem; }
.hero__title-accent { color: var(--runway); }
.hero__lead { font-size: clamp(1.1rem, 1.05rem + 0.4vw, 1.3rem); color: #D5E0EC; max-width: 38ch; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: clamp(3rem, 6vw, 4.5rem); }

/* Pasek przyrządów */
.instrument {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 0;
}
.instrument__item { background: rgba(255, 255, 255, 0.015); padding: 1.1rem 1.2rem; }
.instrument__item dt { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--signal); text-transform: uppercase; margin-bottom: 0.4rem; }
.instrument__item dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }

/* =================================================================
   SEKCJE — wspólny rytm
   ================================================================= */
.section { padding-block: var(--section-y); }
.section--light { background: var(--mist); color: var(--ink); }
.section--dark { background: var(--midnight); color: #fff; }

.section__head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section__head h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3rem); margin-bottom: 1rem; }
.section__sub { color: var(--slate); font-size: 1.08rem; max-width: 56ch; }
.section__sub--light { color: var(--paper-dim); }

/* =================================================================
   USŁUGI — karty
   ================================================================= */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.card {
  background: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem); position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 26, 43, 0.10); border-color: rgba(244, 161, 26, 0.5); }
.card__tag { font-family: var(--font-mono); font-size: 0.85rem; color: var(--runway); font-weight: 500; }
.card__title { font-size: 1.4rem; margin: 0.6rem 0 0.9rem; }
.card__text { color: var(--slate); margin-bottom: 1.2rem; }
.card__list { display: grid; gap: 0.55rem; }
.card__list li { position: relative; padding-left: 1.5rem; font-size: 0.96rem; color: #34404D; }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.7rem;
  border: 2px solid var(--runway); border-radius: 999px;
}

/* =================================================================
   PLAN LOTU — proces z trajektorią
   ================================================================= */
.proces { position: relative; }
.flightplan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.flightplan::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 26px; height: 2px;
  background: linear-gradient(90deg, rgba(244,161,26,0.15), rgba(244,161,26,0.85), rgba(54,197,192,0.6));
}
.flightplan__stop { position: relative; padding-top: 64px; }
.flightplan__num {
  position: absolute; top: 0; left: 0; width: 52px; height: 52px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--midnight); border: 2px solid var(--runway); color: var(--runway);
  font-family: var(--font-mono); font-weight: 500; font-size: 1rem;
  box-shadow: 0 0 0 6px var(--midnight), 0 0 16px rgba(244, 161, 26, 0.45);
}
.flightplan__body h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.flightplan__phase { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--signal); margin-bottom: 0.7rem; text-transform: uppercase; }
.flightplan__body p:last-child { color: var(--paper-dim); font-size: 0.97rem; }

/* =================================================================
   CASE STUDY
   ================================================================= */
.casestudy__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.casestudy__note { color: var(--slate); margin: 0.4rem 0 2rem; max-width: 54ch; }
.casestudy__block { margin-bottom: 1.6rem; }
.casestudy__block h3 { font-size: 1.05rem; color: var(--runway); margin-bottom: 0.5rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.casestudy__block p { color: #34404D; }

.casestudy__panel {
  position: sticky; top: 92px; background: var(--midnight); color: #fff;
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
}
.casestudy__panel-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); margin-bottom: 1.4rem; }
.metrics { display: grid; gap: 1.3rem; margin-bottom: 1.5rem; }
.metrics li { display: grid; gap: 0.25rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.metrics li:last-child { border-bottom: 0; padding-bottom: 0; }
.metrics__value { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--runway); line-height: 1.1; }
.metrics__label { color: var(--paper-dim); font-size: 0.92rem; }
.casestudy__panel-foot { font-size: 0.78rem; color: #6E8094; margin-bottom: 1.4rem; }

/* =================================================================
   REALIZACJE — portfolio
   ================================================================= */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.project {
  background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem); min-height: 220px;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.project:hover { transform: translateY(-4px); border-color: rgba(244, 161, 26, 0.5); }
.project__sector { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--signal); text-transform: uppercase; }
.project__title { font-size: 1.3rem; }
.project__scope { font-size: 0.9rem; color: var(--paper-dim); }
.project__result { color: var(--paper-dim); font-size: 0.95rem; margin-top: auto; }
.project--ghost { border-style: dashed; opacity: 0.65; }
.project--ghost .project__title { color: #6E8094; }

/* =================================================================
   AKTUALNOŚCI — wpisy
   ================================================================= */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post {
  background: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11, 26, 43, 0.10); }
.post__type {
  align-self: flex-start; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate);
  border: 1px solid var(--line-dark); padding: 0.25rem 0.6rem; border-radius: 999px;
}
.post__type--event { color: var(--midnight); background: rgba(244, 161, 26, 0.16); border-color: transparent; font-weight: 500; }
.post__date { font-family: var(--font-mono); font-size: 0.82rem; color: var(--slate); margin-top: 0.4rem; }
.post__title { font-size: 1.22rem; margin: 0.2rem 0; }
.post__excerpt { color: var(--slate); font-size: 0.96rem; margin-bottom: 0.4rem; }
.post .link { margin-top: auto; align-self: flex-start; }

/* =================================================================
   O NAS
   ================================================================= */
.about__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); }
.about__text p { color: #D5E0EC; font-size: 1.12rem; margin-bottom: 1.8rem; }
.principles { display: grid; gap: 1.1rem; }
.principles li { padding-left: 1.6rem; position: relative; color: var(--paper-dim); }
.principles li strong { color: #fff; font-weight: 600; }
.principles li::before {
  content: ""; position: absolute; left: 0; top: 0.6em; width: 0.8rem; height: 2px; background: var(--runway);
}

/* =================================================================
   FAQ
   ================================================================= */
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.section__head--side { margin-bottom: 0; }
.faq__list { display: grid; gap: 0.75rem; }
.faq__item { background: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); overflow: hidden; }
.faq__item summary {
  cursor: pointer; list-style: none; padding: 1.15rem 1.4rem; font-family: var(--font-display);
  font-weight: 600; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-family: var(--font-mono); color: var(--runway); font-size: 1.5rem; line-height: 1; transition: transform 0.2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 1.4rem 1.3rem; color: var(--slate); }

/* =================================================================
   KONTAKT + FORMULARZ
   ================================================================= */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.contact__lead { color: #D5E0EC; font-size: 1.1rem; margin: 0.4rem 0 2.2rem; max-width: 46ch; }
.contact__details { display: grid; gap: 1.3rem; }
.contact__details li { display: grid; gap: 0.2rem; }
.contact__label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); }
.contact__details a { font-size: 1.15rem; font-weight: 500; transition: color 0.16s ease; }
.contact__details a:hover { color: var(--runway); }

.form {
  background: var(--deep); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.6rem, 3.5vw, 2.4rem); display: grid; gap: 1.1rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__field { display: grid; gap: 0.4rem; }
.form__field > span { font-size: 0.88rem; font-weight: 500; color: var(--paper-dim); }
.form__field em { color: #6E8094; font-style: normal; }
.form input, .form textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: #fff;
  background: rgba(255, 255, 255, 0.04); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.8rem 0.95rem; transition: border-color 0.16s ease, background 0.16s ease;
}
.form input::placeholder, .form textarea::placeholder { color: #607389; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--runway); background: rgba(255, 255, 255, 0.07); }
.form textarea { resize: vertical; min-height: 110px; }

.form__consent { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.88rem; color: var(--paper-dim); }
.form__consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; accent-color: var(--runway); }
.form__consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.form__status { font-size: 0.92rem; margin: 0; min-height: 1.2em; }
.form__status[data-state="ok"] { color: var(--signal); }
.form__status[data-state="error"] { color: var(--runway-2); }

/* =================================================================
   STOPKA
   ================================================================= */
.footer { background: var(--midnight-2); color: var(--paper-dim); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; }
.brand--footer { font-size: 1.1rem; margin-bottom: 0.8rem; }
.footer__tagline { font-size: 0.95rem; max-width: 26ch; }
.footer__col h3 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; font-weight: 500; }
.footer__col a, .footer__link-btn { display: block; color: var(--paper-dim); font-size: 0.95rem; margin-bottom: 0.6rem; transition: color 0.16s ease; }
.footer__col a:hover, .footer__link-btn:hover { color: var(--runway); }
.footer__link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font-body); text-align: left; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
  border-top: 1px solid var(--line); padding-block: 1.4rem; font-size: 0.82rem; color: #6E8094;
}

/* =================================================================
   BANER COOKIES
   ================================================================= */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; padding: var(--pad); }
.cookie__inner {
  max-width: var(--maxw); margin-inline: auto;
  background: var(--midnight); color: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.6rem);
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.cookie__text { flex: 1 1 380px; }
.cookie__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.35rem; }
.cookie__text p { font-size: 0.9rem; color: var(--paper-dim); }
.cookie__text a { color: var(--runway); text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.cookie.is-visible { animation: slideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes slideUp { from { transform: translateY(120%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* =================================================================
   RESPONSYWNOŚĆ
   ================================================================= */
@media (max-width: 920px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--midnight); border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad) 1.6rem; transform: translateY(-120%); transition: transform 0.3s ease; z-index: 999;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav__cta { text-align: center; margin-top: 0.8rem; border-bottom: 0 !important; }
  .nav__toggle { display: flex; }

  .casestudy__grid, .about__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .casestudy__panel { position: static; }
  .projects, .posts { grid-template-columns: repeat(2, 1fr); }

  .flightplan { grid-template-columns: 1fr; gap: 0; }
  .flightplan::before { left: 25px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, rgba(244,161,26,0.85), rgba(54,197,192,0.5)); }
  .flightplan__stop { padding: 0 0 2.2rem 80px; min-height: 80px; }
  .flightplan__stop:last-child { padding-bottom: 0; }
}

@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .instrument { grid-template-columns: repeat(2, 1fr); }
  .projects, .posts { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .hero__trajectory { opacity: 0.4; width: 90%; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* =================================================================
   STRONA PRAWNA (polityka prywatności / cookies)
   ================================================================= */
.legal-hero { background: var(--midnight); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem); }
.legal-hero h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 0.6rem; }
.legal-hero p { color: var(--paper-dim); max-width: 60ch; }
.legal { background: var(--paper); padding-block: clamp(3rem, 6vw, 5rem); }
.legal__inner { max-width: 760px; }
.legal h2 { font-size: 1.45rem; margin: 2.4rem 0 0.8rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 1.4rem 0 0.5rem; }
.legal p, .legal li { color: #34404D; }
.legal p { margin-bottom: 1rem; }
.legal ul { display: grid; gap: 0.5rem; margin-bottom: 1.2rem; padding-left: 1.4rem; list-style: disc; }
.legal a { color: #B07404; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal__note { background: #fff; border: 1px solid var(--line-dark); border-left: 3px solid var(--runway); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin-bottom: 2rem; font-size: 0.95rem; }
.legal__updated { font-family: var(--font-mono); font-size: 0.82rem; color: var(--slate); margin-top: 2.5rem; }
.legal__table { width: 100%; border-collapse: collapse; margin-bottom: 1.4rem; font-size: 0.93rem; }
.legal__table th, .legal__table td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line-dark); vertical-align: top; }
.legal__table th { font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate); }
.legal__back { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--runway); }

/* =================================================================
   DOSTĘPNOŚĆ — ograniczony ruch
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero__path { stroke-dashoffset: 0; }
  .hero__waypoints circle { opacity: 1; }
}
