/* ============================================================
   FORTOTECH Sp. z o.o. — strona firmowa
   Design system: graphite/defense, hairline architecture
   ============================================================ */

:root {
  /* Canvas */
  --bg:          #0b0c0d;
  --bg-1:        #0f1112;
  --bg-2:        #131517;
  --bg-3:        #181a1c;

  /* Hairlines */
  --line:        #232628;
  --line-soft:   #1b1e1f;
  --line-strong: #313537;

  /* Text */
  --text:        #e7e4db;
  --text-dim:    #9da09e;
  --text-mute:   #6b6e6c;

  /* Accent — muted steel-green */
  --accent:      #849a85;
  --accent-2:    #6f8470;
  --accent-deep: #2f3d34;
  --accent-glow: rgba(132, 154, 133, 0.14);

  /* Secondary — sand (very sparing) */
  --sand:        #c7b487;

  /* Type */
  --font-sans: "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: clamp(72px, 11vw, 168px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent-deep); color: var(--text); }

/* Subtle grain/grid backdrop on the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 0%, transparent 75%);
}

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}
.section { padding-block: var(--section-pad); position: relative; }
.section--line { border-top: 1px solid var(--line); }

/* Eyebrow / section index label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent-2);
}
.eyebrow .idx { color: var(--text-mute); }

/* Headings */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; color: var(--text); }
.h-display {
  font-size: clamp(2.4rem, 6.2vw, 5.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
}
.h-section {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-dim);
  font-weight: 400;
  max-width: 62ch;
}
p.body { color: var(--text-dim); max-width: 64ch; }
p.body + p.body { margin-top: 1.1em; }
strong { color: var(--text); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  transition: border-color .35s, background .35s, color .35s, transform .2s;
  position: relative;
}
.btn .arr { transition: transform .35s; color: var(--accent); }
.btn:hover { border-color: var(--accent-2); background: var(--bg-2); }
.btn:hover .arr { transform: translateX(5px); }
.btn--primary {
  background: var(--accent);
  color: #0c0e0c;
  border-color: var(--accent);
}
.btn--primary .arr { color: #0c0e0c; }
.btn--primary:hover { background: var(--text); border-color: var(--text); }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.header.is-scrolled {
  background: rgba(11, 12, 13, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 19px;
}
.brand__mark {
  width: 26px; height: 26px;
  border: 1.5px solid var(--accent);
  position: relative;
  flex: none;
}
.brand__mark::before, .brand__mark::after {
  content: "";
  position: absolute;
  background: var(--accent);
}
.brand__mark::before { left: 50%; top: 4px; bottom: 4px; width: 1.5px; transform: translateX(-50%); }
.brand__mark::after  { top: 50%; left: 4px; right: 4px; height: 1.5px; transform: translateY(-50%); }
.brand small { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; color: var(--text-mute); font-weight: 400; display:block; margin-top:2px; }

/* Image logo (header + footer) */
.brand__logo { height: 60px; width: auto; display: block; }
.footer__logo { height: 70px; width: auto; display: block; margin-bottom: 22px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14px;
  color: var(--text-dim);
  padding: 9px 14px;
  letter-spacing: 0.01em;
  transition: color .25s;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.nav--cta {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  margin-left: 8px;
}
.nav a.nav--cta:hover { border-color: var(--accent-2); color: var(--text); }
.nav a.nav--cta::after { display: none; }

/* Language switcher */
.lang { display: inline-flex; align-items: center; gap: 2px; margin-left: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; }
.lang a { color: var(--text-mute); padding: 6px 6px; transition: color .25s; }
.lang a:hover { color: var(--text); }
.lang a.is-active { color: var(--accent); }
.lang a.is-active::after { display: none; }
.lang__sep { color: var(--line-strong); }
/* Drawer variant */
.lang--drawer { display: flex; gap: 8px; margin-top: 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.lang--drawer a { display: inline-block; font-size: 15px; letter-spacing: 0.06em; padding: 8px 14px; border: 1px solid var(--line-strong); color: var(--text-dim); }
.lang--drawer a.is-active { color: #0c0e0c; background: var(--accent); border-color: var(--accent); }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  width: 46px; height: 46px;
  position: relative;
}
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .3s, opacity .3s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 92px 0 0 0;
  z-index: 99;
  background: var(--bg);
  border-top: 1px solid var(--line);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s, transform .35s;
  padding: 24px var(--gutter) 40px;
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a {
  display: block;
  font-size: 22px;
  font-weight: 500;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  letter-spacing: -0.01em;
}
.mobile-nav a .mi { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-right: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(130px, 18vh, 200px);
  padding-bottom: clamp(60px, 9vw, 110px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -10%; right: -5%;
  width: 60vw; height: 60vw;
  max-width: 820px; max-height: 820px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}
/* Kodowy monogram FT — tło hero po prawej, delikatne pulsowanie */
.hero__monogram {
  position: absolute;
  top: 40%;
  right: clamp(10px, -2vw, 0px);
  transform: translateY(-50%) scale(1);
  width: min(48vw, 600px);
  height: auto;
  aspect-ratio: 1 / 1;
  z-index: 0;
  pointer-events: none;
  opacity: 0.09;
  animation: monogramPulse 7s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes monogramPulse {
  0%, 100% { opacity: 0.06; transform: translateY(-50%) scale(1); }
  50%      { opacity: 0.14; transform: translateY(-50%) scale(1.045); }
}

.hero__inner { position: relative; z-index: 2; }
.hero__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}
.hero__tag .dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 12px var(--accent); }
.hero h1 { max-width: 17ch; }
.hero h1 .accent { color: var(--accent); }
.hero__sub {
  margin-top: 32px;
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  line-height: 1.62;
  color: var(--text-dim);
  max-width: 60ch;
}
.hero__cta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; }

.hero__features {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.feat {
  padding: 30px 28px 30px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.feat:first-child { padding-left: 0; }
.feat:last-child { border-right: none; }
.feat .n { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.16em; display: block; margin-bottom: 16px; }
.feat .t { font-size: 1.02rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.feat::after {
  content: ""; position: absolute; top: -1px; left: 28px; width: 36px; height: 2px; background: var(--accent);
}
.feat:first-child::after { left: 0; }

/* ============================================================
   TECH IMAGE PLACEHOLDER
   ============================================================ */
.imgslot {
  position: relative;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 11px, rgba(255,255,255,0.012) 11px, rgba(255,255,255,0.012) 12px),
    var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  min-height: 280px;
  overflow: hidden;
}
.imgslot::before, .imgslot::after,
.imgslot .tl, .imgslot .tr {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--accent-2);
}
.imgslot::before { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.imgslot::after  { bottom: 14px; right: 14px; border-left: none; border-top: none; }
.imgslot .tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.imgslot .tl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.imgslot__ico { width: 38px; height: 38px; color: var(--text-mute); opacity: .8; }
.imgslot__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.imgslot__cap { font-size: 13px; color: var(--text-mute); max-width: 32ch; padding-inline: 20px; }

/* Gotowa grafika sekcji (zawiera własne ramki/HUD — bez dodatkowych ozdobników) */
.section-img { width: 100%; height: auto; display: block; }

/* ============================================================
   GENERIC SECTION GRID (split header / two-col)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split--rev { grid-template-columns: 1.15fr 0.85fr; }

/* About stats */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,72px); align-items: start; }
.statline { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); margin-top: 48px; }
.statline .st { padding-top: 22px; border-right: 1px solid var(--line); padding-right: 18px; padding-left: 22px; }
.statline .st:first-child { padding-left: 0; }
.statline .st:last-child { border-right: none; }
.statline .st .v { font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 700; letter-spacing: -0.03em; color: var(--text); font-family: var(--font-sans); }
.statline .st .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); margin-top: 8px; line-height:1.4; }

/* ============================================================
   AREA CARDS (Obszary działalności)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(30px, 3.4vw, 48px);
  position: relative;
  transition: background .4s;
  min-height: 250px;
  display: flex;
  flex-direction: column;
}
.card:hover { background: var(--bg-1); }
.card__n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}
.card__ico { width: 30px; height: 30px; color: var(--accent); margin-bottom: 22px; }
.card h3 { font-size: 1.32rem; letter-spacing: -0.02em; margin-bottom: 14px; }
.card p { color: var(--text-dim); font-size: 0.97rem; line-height: 1.6; }
.card__line {
  position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--accent); transition: width .45s;
}
.card:hover .card__line { width: 56px; }

/* ============================================================
   CONCESSION / NON-CONCESSION
   ============================================================ */
.panel {
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: clamp(30px, 4vw, 56px);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .3s, color .3s;
}
.tag:hover { border-color: var(--accent-2); color: var(--text); }
.tag .b { width: 5px; height: 5px; background: var(--accent); }

/* Formal list with rule dividers */
.flist { margin-top: 8px; border-top: 1px solid var(--line); }
.flist li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 1.02rem;
}
.flist li .ix { font-family: var(--font-mono); font-size: 11px; color: var(--accent); flex: none; min-width: 28px; letter-spacing: 0.05em; }

/* Notice / formal note */
.notice {
  margin-top: 28px;
  border-left: 2px solid var(--accent-2);
  background: var(--bg-2);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.notice .ico { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.notice p { font-size: 0.92rem; color: var(--text-dim); line-height: 1.55; max-width: none; }

/* Category grid (non-concession) */
.catgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cat {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 24px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .35s;
}
.cat:hover { background: var(--bg-1); }
.cat__ico { width: 26px; height: 26px; color: var(--accent); }
.cat__t { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; margin-top: 24px; }
.cat__n { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); letter-spacing: 0.12em; }

/* ============================================================
   AUDIENCE (Dla kogo)
   ============================================================ */
.aud {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.aud li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.aud li:nth-child(odd) { padding-right: clamp(20px,4vw,56px); border-right: 1px solid var(--line); }
.aud li:nth-child(even) { padding-left: clamp(20px,4vw,56px); }
.aud li .ax { font-family: var(--font-mono); font-size: 12px; color: var(--accent); flex: none; }

/* ============================================================
   STANDARDS
   ============================================================ */
.std-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 56px;
}
.std {
  background: var(--bg);
  padding: clamp(28px,3vw,40px);
  transition: background .35s;
}
.std:hover { background: var(--bg-1); }
.std .ico { width: 28px; height: 28px; color: var(--accent); margin-bottom: 22px; }
.std h4 { font-size: 1.12rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.std p { color: var(--text-dim); font-size: 0.93rem; line-height: 1.55; }

/* ============================================================
   4GUN BRAND BAND
   ============================================================ */
.brandband {
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 90% 140% at 85% 50%, var(--accent-glow), transparent 60%),
    var(--bg-1);
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(32px,5vw,64px);
  align-items: center;
}
.brandband__logo {
  font-weight: 800;
  font-size: clamp(2.4rem,5vw,3.6rem);
  letter-spacing: -0.03em;
  color: var(--text);
}
.brandband__logo span { color: var(--accent); }
.brandband .right { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px,6vw,80px);
  margin-top: 56px;
}
.coord { border-top: 1px solid var(--line); }
.coord .row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.coord .row .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }
.coord .row .v { color: var(--text); text-align: right; font-size: 0.98rem; }
.coord .addr { padding: 22px 0; border-bottom: 1px solid var(--line); }
.coord .addr .v { font-size: 1.15rem; line-height: 1.5; color: var(--text); }

/* Form */
.form { display: grid; gap: 0; }
.field { border-bottom: 1px solid var(--line); position: relative; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; }
.field--row .field { border-bottom: none; }
.field--row .field:first-child { border-right: 1px solid var(--line); }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 16px 0 0;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  padding: 8px 0 16px;
  outline: none;
}
.field--row .field input { padding-right: 16px; }
.field--row .field:last-child input { padding-left: 16px; padding-right: 0; }
.field--row .field:last-child label { padding-left: 16px; }
.field textarea { resize: vertical; min-height: 220px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); opacity: .55; }
.field.is-focus { background: var(--bg-1); }
.field select { appearance: none; cursor: pointer; }
.field option { background: var(--bg-2); color: var(--text); }

.consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.consent input { appearance: none; width: 20px; height: 20px; border: 1px solid var(--line-strong); flex: none; margin-top: 2px; cursor: pointer; position: relative; transition: border-color .3s, background .3s; }
.consent input:checked { background: var(--accent); border-color: var(--accent); }
.consent input:checked::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #0c0e0c; font-size: 13px; font-weight: 700; }
.consent label { font-size: 0.82rem; color: var(--text-mute); line-height: 1.55; cursor: pointer; }
.consent label a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent label a:hover { color: var(--text); }
.form__submit { margin-top: 28px; }
.form__note { margin-top: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.04em; opacity: 0; transition: opacity .4s; }
.form__note.show { opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: clamp(56px,7vw,88px) 40px; position: relative; z-index: 1; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand .brand { margin-bottom: 20px; }
.footer__brand p { color: var(--text-mute); font-size: 0.9rem; max-width: 38ch; }
.footer__col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 20px; }
.footer__col a, .footer__col p { display: block; color: var(--text-dim); font-size: 0.95rem; padding: 6px 0; transition: color .25s; }
.footer__col a:hover { color: var(--accent); }
.footer__legal {
  margin-top: clamp(40px,5vw,64px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.footer__legal .reg { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-mute); line-height: 1.8; }
.footer__legal .copy { font-size: 0.85rem; color: var(--text-mute); }
.footer__disclaimer {
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.footer__disclaimer .ico { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.footer__disclaimer p { font-size: 0.82rem; color: var(--text-mute); line-height: 1.55; flex: 1; max-width: none; }

/* ============================================================
   LEGAL / LONG-FORM PAGES (Polityka prywatności, RODO)
   ============================================================ */
.section--legal { padding-top: clamp(140px, 18vh, 220px); }
.legal { max-width: 80ch; margin-top: 40px; }
.legal h2 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-top: 44px;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal h2 .s { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); flex: none; }
.legal h3 { font-size: 1.05rem; color: var(--text); margin-top: 26px; margin-bottom: 8px; }
.legal p { color: var(--text-dim); margin-bottom: 14px; }
.legal ul { margin: 4px 0 16px; }
.legal li { color: var(--text-dim); padding: 6px 0 6px 24px; position: relative; }
.legal li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--text); }
.legal strong { color: var(--text); }
.legal__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-mute); margin-top: 10px; }
.legal__box {
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent-2);
  background: var(--bg-1);
  padding: 20px 24px;
  margin: 22px 0;
}
.legal__box p:last-child { margin-bottom: 0; }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 16px);
  width: min(960px, calc(100% - 36px));
  z-index: 300;
  background: rgba(15, 17, 18, 0.97);
  backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid var(--line-strong);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s, transform .4s;
}
.cookie.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cookie__text { font-size: 0.88rem; color: var(--text-dim); line-height: 1.55; }
.cookie__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie__text a:hover { color: var(--text); }
.cookie__actions { display: flex; gap: 10px; flex: none; }
.cookie .btn { padding: 12px 18px; font-size: 12px; white-space: nowrap; }
@media (max-width: 720px) {
  .cookie {
    left: 0; bottom: 0;
    width: 100%;
    transform: translateY(16px);
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
    border-left: none; border-right: none; border-bottom: none;
  }
  .cookie.is-visible { transform: translateY(0); }
  .cookie__actions { flex-direction: column-reverse; }
  .cookie .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  /* tylko bez animacji — pozycję ustala reguła bazowa/mobilna, nie nadpisujemy transform */
  .cookie { transition: opacity .2s; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.16,.8,.3,1), transform .9s cubic-bezier(.16,.8,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__monogram { animation: none; opacity: 0.08; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: block; }
  .split, .split--rev, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .split--rev .imgslot { order: -1; }
  .brandband { grid-template-columns: 1fr; }
  .catgrid { grid-template-columns: repeat(2, 1fr); }
  .std-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero__monogram { display: none; }
  .header__inner { height: 68px; }
  .mobile-nav { inset: 68px 0 0 0; }
  .brand__logo { height: 36px; }
  .footer__logo { height: 42px; }
  .hero__features { grid-template-columns: 1fr 1fr; }
  .feat { border-bottom: 1px solid var(--line); padding-right: 20px; }
  .feat:nth-child(odd) { border-right: 1px solid var(--line); padding-left: 0; }
  .feat:nth-child(odd)::after { left: 0; }
  .feat:nth-child(even) { border-right: none; padding-left: 28px; }
  .feat:nth-child(even)::after { left: 28px; }
  .cards { grid-template-columns: 1fr; }
  .aud { grid-template-columns: 1fr; }
  .aud li:nth-child(odd) { border-right: none; padding-right: 4px; }
  .aud li:nth-child(even) { padding-left: 4px; }
  .statline { grid-template-columns: 1fr; }
  .statline .st { border-right: none; border-bottom: 1px solid var(--line); padding-bottom: 18px; padding-left: 0; }
  .field--row { grid-template-columns: 1fr; }
  .field--row .field:first-child { border-right: none; border-bottom: 1px solid var(--line); }
  .field--row .field:last-child input { padding-left: 0; }
  .field--row .field:last-child label { padding-left: 0; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 460px) {
  .catgrid { grid-template-columns: 1fr; }
  .hero__features { grid-template-columns: 1fr; }
  .feat { border-right: none !important; padding-left: 0; }
  .feat::after { left: 0; }
  .brand__logo { height: 32px; }
  /* Pełnoszerokie przyciski CTA = większe tap-targety na telefonie */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .btn { padding: 16px 22px; }
  /* Adres/dane: etykieta nad wartością zamiast ściśniętego rzędu */
  .coord .row { gap: 12px; }
}
