/* =========================================================
   Innenausbau Karol Wolczynski
   Kolory z wizytówki: łupkowy fiolet cegły, pomarańczowy dach,
   karminowy klin. Motyw jasny (domyślny) i ciemny.
   ========================================================= */

/* Czcionki serwowane z tej strony (bez łączenia z Google) */
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/figtree-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/figtree-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: normal; font-weight: 700 900; font-display: swap; src: url("fonts/sofia-sans-condensed-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: normal; font-weight: 700 900; font-display: swap; src: url("fonts/sofia-sans-condensed-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #F5F5F9;
  --bg-2: #ECECF3;
  --surface: #FFFFFF;
  --surface-2: #F0F0F6;
  --ink: #1C1E30;
  --ink-2: #555974;
  --ink-3: #7E82A0;
  --line: #E0E1EB;
  --brand: #5A5F92;
  --brand-soft: #E8E9F4;
  --orange: #EE6231;
  --red: #D2334F;
  --grad: linear-gradient(120deg, #F07437 0%, #E5503A 50%, #CF2F55 100%);
  --grad-btn: linear-gradient(120deg, #D6472A 0%, #C42B4D 100%);
  --grad-text: linear-gradient(100deg, #E4552C 0%, #C92E4F 100%);
  --card: linear-gradient(150deg, #7C81B0 0%, #5F6496 55%, #4A4E7D 100%);
  --brick: rgba(90, 95, 146, 0.11);
  --glow: rgba(238, 98, 49, 0.2);
  --header-bg: rgba(245, 245, 249, 0.82);
  --logo-1: #7F83A0;
  --logo-2: #A6A9BD;
  --logo-3: #C9CBD8;
  --wa: #1EB854;
  --shadow-sm: 0 1px 2px rgba(28, 30, 48, 0.05), 0 4px 12px -4px rgba(28, 30, 48, 0.08);
  --shadow: 0 2px 6px rgba(28, 30, 48, 0.04), 0 18px 40px -18px rgba(28, 30, 48, 0.24);
  --shadow-lg: 0 40px 70px -30px rgba(40, 42, 90, 0.55), 0 16px 30px -16px rgba(40, 42, 90, 0.3);

  --font-display: "Sofia Sans Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --wrap: 76rem;
  --gut: 20px;
  --header-h: 66px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);

  --brick-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48'%3E%3Cpath d='M0 1h96M0 25h96M1 1v24M49 25v24' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121428;
    --bg-2: #171A31;
    --surface: #1B1E37;
    --surface-2: #242844;
    --ink: #EDEFF9;
    --ink-2: #A9ADCB;
    --ink-3: #7B80A3;
    --line: #2C3052;
    --brand: #A3A8DC;
    --brand-soft: #262A4A;
    --orange: #FF7B45;
    --red: #F2506D;
    --grad: linear-gradient(120deg, #F47A3C 0%, #EA5540 50%, #D53560 100%);
    --grad-text: linear-gradient(100deg, #FF8A55 0%, #F2587A 100%);
    --brick: rgba(163, 168, 220, 0.075);
    --glow: rgba(255, 123, 69, 0.16);
    --header-bg: rgba(18, 20, 40, 0.8);
    --logo-1: #A7ABCF;
    --logo-2: #8589B2;
    --logo-3: #666A94;
    --wa: #3DDC7A;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px -4px rgba(0, 0, 0, 0.35);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 18px 40px -16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 16px 30px -16px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #121428;
  --bg-2: #171A31;
  --surface: #1B1E37;
  --surface-2: #242844;
  --ink: #EDEFF9;
  --ink-2: #A9ADCB;
  --ink-3: #7B80A3;
  --line: #2C3052;
  --brand: #A3A8DC;
  --brand-soft: #262A4A;
  --orange: #FF7B45;
  --red: #F2506D;
  --grad: linear-gradient(120deg, #F47A3C 0%, #EA5540 50%, #D53560 100%);
  --grad-text: linear-gradient(100deg, #FF8A55 0%, #F2587A 100%);
  --brick: rgba(163, 168, 220, 0.075);
  --glow: rgba(255, 123, 69, 0.16);
  --header-bg: rgba(18, 20, 40, 0.8);
  --logo-1: #A7ABCF;
  --logo-2: #8589B2;
  --logo-3: #666A94;
  --wa: #3DDC7A;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px -4px rgba(0, 0, 0, 0.35);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 16px 30px -16px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gut: 32px; }
}

@media (min-width: 960px) {
  :root { --header-h: 76px; }
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

html.menu-open { overflow: hidden; }

body {
  margin: 0;
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
}

h1, h2, h3, p, figure, ul, ol { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

::selection { background: rgba(238, 98, 49, 0.25); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- Logo ---------- */
.lm-roof { fill: var(--orange); }
.lm-1 { fill: var(--logo-1); }
.lm-2 { fill: var(--logo-2); }
.lm-3 { fill: var(--logo-3); }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: auto;
  flex: none;
  transition: transform 0.4s var(--ease);
}

.logo:hover .logo-mark { transform: translateY(-2px); }

.logo-text { display: flex; flex-direction: column; min-width: 0; line-height: 1; }

.logo-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.logo-sub {
  margin-top: 3px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, 0.35);
}

html.menu-open .site-header { background: var(--bg); border-bottom-color: var(--line); }

.header-in {
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--header-h);
}

.main-nav { display: none; gap: 2px; margin-right: 8px; }

.main-nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--ink); }

.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  transform: translateX(-50%);
}

.header-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s, background-color 0.25s;
}

.icon-btn:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }

.theme-btn .i-sun { display: none; }
.theme-btn svg { animation: spin-in 0.5s var(--ease); }

:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
}

.lang-seg {
  display: none;
  padding: 3px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.lang-seg button {
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.lang-seg button:hover { color: var(--ink); }

.lang-seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.lang-pick { position: relative; display: inline-flex; flex: none; }

.lang-pick select {
  -webkit-appearance: none;
  appearance: none;
  height: 42px;
  padding: 0 30px 0 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.lang-pick::after,
.select-wrap::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.header-tools .header-call { display: none; }

.menu-lines { position: relative; display: block; width: 20px; height: 12px; }

.menu-lines span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.menu-lines span:first-child { top: 0; }
.menu-lines span:last-child { top: 10px; }
.menu-btn[aria-expanded="true"] .menu-lines span:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines span:last-child { top: 5px; transform: rotate(-45deg); }

@media (max-width: 399px) {
  .site-header .logo { gap: 8px; }
  .site-header .logo-mark { width: 34px; }
  .site-header .logo-title { font-size: 1.08rem; }
  .site-header .logo-sub { font-size: 0.68rem; }
  .header-tools { gap: 6px; }
  .lang-pick select { padding: 0 26px 0 11px; }
  .lang-pick::after { right: 11px; }
}

@media (max-width: 359px) {
  .site-header .logo-mark { display: none; }
  .site-header .logo-title { font-size: 1.05rem; }
  .site-header .logo-sub { font-size: 0.68rem; }
}

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .lang-seg { display: inline-flex; }
  .lang-pick { display: none; }
  .header-tools .header-call { display: inline-flex; }
  .menu-btn { display: none; }
  .logo-mark { width: 50px; }
  .logo-title { font-size: 1.35rem; }
}

/* ---------- Menu mobilne ---------- */
.mobile-menu {
  position: fixed;
  inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0;
  z-index: 55;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: 12px calc(28px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.mm-nav { display: grid; }

.mm-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.3rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.mm-nav a[aria-current="page"] { color: var(--orange); }
.mm-nav a svg { color: var(--ink-3); }

.mm-label {
  margin-top: 28px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.mm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.mm-actions .btn:first-child,
.mm-actions .btn:last-child { grid-column: 1 / -1; }

@media (min-width: 960px) {
  .mobile-menu { display: none; }
}

/* ---------- Przyciski ---------- */
.btn {
  --h: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 22px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-sm { --h: 44px; padding: 0 16px; font-size: 0.95rem; border-radius: var(--r-sm); }
.btn-block { width: 100%; }

.btn-grad {
  background: var(--grad-btn);
  color: #FFFFFF;
  box-shadow: 0 10px 24px -12px rgba(196, 43, 77, 0.8);
}

.btn-grad:hover { box-shadow: 0 16px 30px -12px rgba(196, 43, 77, 0.85); }

.btn-soft {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-soft:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }

.btn-icon { width: var(--h); padding: 0; }

.btn-white { background: #FFFFFF; color: #1C1E30; }

.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-glass:hover { background: rgba(255, 255, 255, 0.22); }

.wa-ic { color: var(--wa); }
.ig-color { stroke: url(#kw-ig); }
.ig-color .ig-dot { fill: url(#kw-ig); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.link-arrow svg { transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Typografia sekcji ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
}

.title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 9vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.section-lead {
  margin-top: 16px;
  max-width: 38em;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: var(--ink-2);
}

.section { padding-block: clamp(56px, 9vw, 112px); }
.section--tight { padding-block: clamp(36px, 6vw, 72px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 5vw, 52px); }

/* ---------- Tło z cegieł ---------- */
.bricks {
  position: absolute;
  inset: 0;
  background: var(--brick);
  -webkit-mask: var(--brick-mask) 0 0 / 96px 48px repeat;
  mask: var(--brick-mask) 0 0 / 96px 48px repeat;
}

.bg-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 78% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 78% 30%, #000 20%, transparent 75%);
}

.glow {
  position: absolute;
  z-index: -1;
  width: 70vmax;
  height: 70vmax;
  right: -28vmax;
  top: -34vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(26px, 6vw, 72px) clamp(44px, 8vw, 104px);
}

.hero-grid { display: grid; gap: 44px; align-items: center; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-2);
}

.chip svg { color: var(--orange); }

.hero-title {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 14vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.hero-title .line { display: block; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  color: var(--ink-2);
}

.hero-cta { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; margin-top: 26px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
}

.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { color: var(--brand); }

@media (max-width: 559px) {
  .hero-facts { display: none; }
}

@media (min-width: 560px) {
  .hero-cta { display: flex; flex-wrap: wrap; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
}

/* ---------- Wizytówka w hero ---------- */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1400px;
  padding-block: 6px 18px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 6%;
  z-index: -1;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(60px);
  opacity: 0.3;
}

.bizcard {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1.64;
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
  color: #FFFFFF;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: rotateY(-12deg) rotateX(7deg) rotateZ(-1.5deg);
  transition: transform 0.7s var(--ease);
}

.hero-visual:hover .bizcard { transform: rotateY(-4deg) rotateX(3deg) rotateZ(0deg); }

.biz-wedge {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, #E0325A 0%, #EE5438 45%, #F47A34 100%);
  clip-path: polygon(64% 0, 100% 0, 100% 100%, 47% 100%);
}

.biz-bricks {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.13);
  -webkit-mask: var(--brick-mask) 0 0 / 64px 32px repeat;
  mask: var(--brick-mask) 0 0 / 64px 32px repeat;
}

.biz-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 60%);
  clip-path: polygon(74% 0, 100% 0, 100% 34%);
}

.biz-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7% 7.5%;
}

.biz-logo { width: 30%; height: auto; }
.biz-logo .lm-roof { fill: #F2733A; }
.biz-logo .lm-1 { fill: #A2A5C0; }
.biz-logo .lm-2 { fill: #C2C4D4; }
.biz-logo .lm-3 { fill: #E0E1E9; }

.biz-title {
  margin-top: 5%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 5.4vw, 2.3rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.biz-name { margin-top: 4px; font-size: clamp(0.72rem, 2.3vw, 0.95rem); font-weight: 600; opacity: 0.92; }

.biz-phone {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 4vw, 1.55rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.biz-mail { margin-top: 4px; font-size: clamp(0.62rem, 2vw, 0.82rem); opacity: 0.9; }

.biz-list {
  position: absolute;
  right: 6.5%;
  top: 9%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.64rem, 2.1vw, 0.95rem);
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.biz-list ul { margin: 2px 0 0; padding: 0; list-style: none; }
.biz-list li::before { content: "– "; }

/* ---------- Karty usług (bento) ---------- */
.bento { display: grid; gap: 14px; }

.svc {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.svc:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}

.svc-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand);
  transition: transform 0.35s var(--ease);
}

.svc:hover .svc-icon { transform: rotate(-6deg) scale(1.06); }

.svc h3 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.svc p { font-size: 0.98rem; color: var(--ink-2); }

.svc-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--brand);
}

.svc-more svg { transition: transform 0.3s var(--ease); }
.svc:hover .svc-more svg { transform: translateX(4px); }

.svc--feature {
  min-height: 300px;
  border-color: transparent;
  background: var(--card);
  color: #FFFFFF;
}

.svc--feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.1);
  -webkit-mask: var(--brick-mask) 0 0 / 80px 40px repeat;
  mask: var(--brick-mask) 0 0 / 80px 40px repeat;
}

.svc--feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(200deg, #E0325A 0%, #EE5438 45%, #F47A34 100%);
  clip-path: polygon(80% 0, 100% 0, 100% 100%, 64% 100%);
  transition: clip-path 0.6s var(--ease);
}

.svc--feature:hover::after { clip-path: polygon(74% 0, 100% 0, 100% 100%, 58% 100%); }

.svc--feature p { color: rgba(255, 255, 255, 0.88); max-width: 30em; }
.svc--feature .svc-icon { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
.svc--feature .svc-more { color: #FFFFFF; }
.svc--feature h3 { font-size: clamp(2.1rem, 6vw, 3rem); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; padding: 0; list-style: none; }

.tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Karuzele na telefonie ---------- */
.carousel-dots { display: none; justify-content: center; gap: 2px; margin-top: 12px; }

.carousel-dots button {
  width: 24px;
  height: 24px;
  padding: 8px;
  border: 0;
  border-radius: 999px;
  background-color: var(--line);
  background-clip: content-box;
  cursor: pointer;
  transition: width 0.3s var(--ease), background-color 0.3s;
}

.carousel-dots button[aria-current="true"] { width: 40px; background-color: var(--orange); }

@media (max-width: 639px) {
  .bento {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gut));
    padding: 4px var(--gut) 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gut);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .bento::-webkit-scrollbar { display: none; }
  .bento > .svc { flex: 0 0 min(84%, 340px); scroll-snap-align: start; }
  .bento + .carousel-dots { display: flex; }
}

@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .svc--feature { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .svc--feature { grid-column: span 4; }
  .svc--b { grid-column: span 2; }
  .svc--c { grid-column: span 2; }
}

/* ---------- Kroki ---------- */
.steps { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.steps:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: var(--r-lg); }

.step {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.step-top { display: flex; align-items: center; justify-content: space-between; }

.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.2rem;
  line-height: 0.9;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand);
}

.step h3 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.95rem;
  line-height: 1;
  text-transform: uppercase;
}

.step p { margin-top: 8px; color: var(--ink-2); }

.step-link {
  position: absolute;
  right: -33px;
  top: 50%;
  z-index: 1;
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--orange);
  transform: translateY(-50%);
}

@media (max-width: 859px) {
  .steps {
    display: flex;
    gap: 12px;
    margin-inline: calc(-1 * var(--gut));
    padding: 4px var(--gut) 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gut);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .steps::-webkit-scrollbar { display: none; }
  .steps > .step { flex: 0 0 min(84%, 360px); scroll-snap-align: start; }
  .steps + .carousel-dots { display: flex; }
}

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step-link { display: grid; }
}

/* ---------- Obszar działania ---------- */
.region { display: grid; gap: 22px; align-items: center; }

@media (min-width: 900px) {
  .region { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

.addr-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.addr-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--grad-btn);
  color: #FFFFFF;
}

.addr-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.addr-val { margin-top: 4px; font-weight: 600; font-size: 1.05rem; }
.addr-card .link-arrow { margin-top: 10px; }

/* ---------- Realizacje ---------- */
.projects-home { display: grid; gap: 22px; }
.projects-actions { display: flex; gap: 10px; }

@media (min-width: 900px) {
  .projects-home {
    grid-template-columns: 0.8fr 1.2fr;
    grid-template-areas: "copy feature" "actions feature";
    column-gap: 56px;
    row-gap: 26px;
    align-items: end;
  }

  .projects-copy { grid-area: copy; }
  .projects-feature { grid-area: feature; }
  .projects-actions { grid-area: actions; align-self: start; }
}

.proj-grid { display: grid; gap: 18px; }

@media (min-width: 720px) {
  .proj-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .proj-grid.is-odd > .proj:first-child { grid-column: 1 / -1; }
  .proj-grid.is-odd > .proj:first-child .ba { aspect-ratio: 16 / 9; }
}

.proj {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.proj-body { padding: 18px 20px 22px; }
.proj-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.proj-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
}

.proj-place { display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; font-size: 0.86rem; color: var(--ink-2); }

.proj h3 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.proj-body p { margin-top: 8px; font-size: 0.97rem; color: var(--ink-2); }

.proj-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #1C1E30;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.proj-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(28px, 6vw, 48px) 20px;
  border-radius: var(--r-xl);
  border: 1.5px dashed var(--line);
  background: var(--surface);
  text-align: center;
}

.proj-empty-ic {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--brand-soft);
}

.proj-empty-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1;
  text-transform: uppercase;
}

.proj-empty p:not(.proj-empty-title) { max-width: 28em; color: var(--ink-2); }
.proj-empty .btn { margin-top: 6px; }

/* ---------- Suwak przed / po ---------- */
@property --split {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

.ba {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 50%)); }

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 3px;
  margin-left: -1.5px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92), 0 8px 20px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
}

.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ba-range:focus-visible ~ .ba-line .ba-knob { outline: 3px solid var(--orange); outline-offset: 5px; }

.ba-tag {
  position: absolute;
  bottom: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 22, 40, 0.72);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}

.ba-tag-l { left: 12px; }
.ba-tag-r { right: 12px; }

/* ---------- Pasek CTA ---------- */
.cta-band { padding-block: clamp(20px, 5vw, 56px) clamp(56px, 9vw, 104px); }

.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 26px;
  padding: clamp(28px, 6vw, 64px);
  border-radius: var(--r-xl);
  background: var(--card);
  color: #FFFFFF;
  box-shadow: var(--shadow);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.1);
  -webkit-mask: var(--brick-mask) 0 0 / 88px 44px repeat;
  mask: var(--brick-mask) 0 0 / 88px 44px repeat;
}

.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(200deg, #E0325A 0%, #EE5438 45%, #F47A34 100%);
  clip-path: polygon(0 82%, 100% 62%, 100% 100%, 0 100%);
}

.cta-panel h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}

.cta-panel p { margin-top: 14px; max-width: 32em; color: rgba(255, 255, 255, 0.88); font-size: 1.08rem; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.cta-actions .btn { flex: 1 1 100%; }

@media (min-width: 560px) {
  .cta-actions .btn { flex: 0 0 auto; }
}

@media (min-width: 900px) {
  .cta-panel { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }
  .cta-panel::after { clip-path: polygon(70% 0, 100% 0, 100% 100%, 52% 100%); }
  .cta-actions { justify-content: flex-end; }
}

/* ---------- Nagłówek podstron ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(34px, 7vw, 84px) clamp(30px, 5vw, 60px);
}

.page-hero h1 {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.3rem, 10.5vw, 5.6rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 14ch;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.page-lead {
  margin-top: 18px;
  max-width: 36em;
  font-size: clamp(1.02rem, 2.5vw, 1.18rem);
  color: var(--ink-2);
}

.page-mark {
  position: absolute;
  right: -6%;
  top: 50%;
  z-index: -1;
  width: min(62vw, 520px);
  height: auto;
  opacity: 0.1;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ---------- Leistungen: zakładki ---------- */
.svc-tabs {
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  z-index: 40;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-block: 1px solid var(--line);
}

.svc-tabs-in {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 10px;
  scrollbar-width: none;
}

.svc-tabs-in::-webkit-scrollbar { display: none; }

.svc-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.svc-tabs a:hover { color: var(--ink); }

.svc-tabs a.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* ---------- Leistungen: bloki ---------- */
.svc-block {
  display: grid;
  gap: 26px;
  padding-block: clamp(40px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 74px);
}

.svc-block:last-child { border-bottom: 0; }

.svc-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 2.3;
  border-radius: var(--r-xl);
  background: var(--card);
  color: #FFFFFF;
}

.svc-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.11);
  -webkit-mask: var(--brick-mask) 0 0 / 72px 36px repeat;
  mask: var(--brick-mask) 0 0 / 72px 36px repeat;
}

.svc-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(200deg, #E0325A 0%, #EE5438 45%, #F47A34 100%);
  clip-path: polygon(78% 0, 100% 0, 100% 100%, 62% 100%);
}

.svc-visual svg { width: 22%; min-width: 64px; height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.2)); }

.ticks {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 500;
}

.ticks svg { flex: none; margin-top: 3px; color: var(--orange); }

.ask-btn { margin-top: 24px; }

@media (min-width: 560px) {
  .ticks { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .svc-block { grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
  .svc-visual { aspect-ratio: 1.05; }
  .svc-block:nth-child(even) .svc-visual { order: 2; }
}

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; gap: 28px; }

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: start; }
}

.ccards { display: grid; gap: 12px; }

.ccard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.ccard-ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}

.ccard-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ccard-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.ccard-hint { font-size: 0.9rem; color: var(--ink-2); }

.ccard--primary { border-color: transparent; background: var(--grad-btn); color: #FFFFFF; }
.ccard--primary .ccard-ic { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }
.ccard--primary .ccard-label,
.ccard--primary .ccard-hint { color: rgba(255, 255, 255, 0.85); }
.ccard--primary .ccard-val { font-size: clamp(1.9rem, 8vw, 2.5rem); }

@media (min-width: 560px) {
  .ccards { grid-template-columns: 1fr 1fr; }
  .ccard--primary,
  .ccard--wide { grid-column: 1 / -1; }
}

.contact-side .addr-card { margin-top: 12px; }

.form-card {
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.form-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  line-height: 1;
  text-transform: uppercase;
}

.form-lead { margin-top: 10px; color: var(--ink-2); font-size: 0.98rem; }

.field-row { display: grid; gap: 0 14px; }

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field { display: grid; gap: 7px; margin-top: 18px; }
.field label { font-size: 0.92rem; font-weight: 600; }
.field small { font-weight: 500; color: var(--ink-3); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}

.field input:user-invalid,
.field select:user-invalid { border-color: var(--red); }

.field textarea { min-height: 130px; resize: vertical; }
.select-wrap { position: relative; display: block; }
.select-wrap select { padding-right: 38px; cursor: pointer; }

.form-card .btn-block { margin-top: 22px; }

.form-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--ink-3);
}

.form-note svg { flex: none; margin-top: 3px; color: var(--brand); }

/* ---------- Impressum ---------- */
.legal { display: grid; gap: 14px; max-width: 48rem; }

.legal-card {
  padding: clamp(20px, 4vw, 30px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.legal-card h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.legal-card p { margin-top: 10px; color: var(--ink-2); line-height: 1.75; }
.legal-card a { color: var(--brand); font-weight: 600; overflow-wrap: anywhere; }
.legal-card h2 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.legal-stand { margin-top: 6px; font-size: 0.88rem; color: var(--ink-3); }
.form-note a { color: var(--brand); font-weight: 600; }

/* ---------- Stopka ---------- */
.site-footer {
  padding-block: 44px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "brand brand"
    "contact contact"
    "services pages";
  gap: 32px 18px;
}

.footer-brand { grid-area: brand; }
.footer-contact { grid-area: contact; }
.footer-services { grid-area: services; }
.footer-pages { grid-area: pages; }

@media (min-width: 720px) {
  .footer-grid {
    grid-template-areas:
      "brand contact"
      "services pages";
    gap: 40px 32px;
  }
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1.3fr 1fr 0.8fr;
    grid-template-areas: "brand contact services pages";
    gap: 40px;
  }
}

.footer-tag { margin-top: 14px; max-width: 30em; font-size: 0.95rem; color: var(--ink-2); }

.footer-h {
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.contact-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}

.contact-rows li + li { border-top: 1px solid var(--line); }

.contact-rows a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.2s;
}

.contact-rows a:hover { background: var(--surface-2); }
.contact-rows span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.contact-rows svg:first-child { color: var(--brand); }
.contact-rows svg:last-child { color: var(--ink-3); transition: transform 0.25s var(--ease); }
.contact-rows a:hover svg:last-child { transform: translateX(3px); }

.footer-links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }

.footer-links a {
  display: block;
  padding: 7px 0;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--ink); }

.socials { display: flex; gap: 10px; margin-top: 18px; }

.social-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.social-btn:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-3);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s, transform 0.25s var(--ease);
}

.to-top:hover { color: var(--ink); transform: translateY(-2px); }

/* ---------- Pasek akcji (telefon) i przyciski pływające (komputer) ---------- */
.action-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.action-bar .btn { --h: 50px; }
.action-bar .btn-grad { flex: 1; }

.action-bar.is-hidden { transform: translateY(calc(100% + 30px)); opacity: 0; }

.float-social {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: none;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.float-social.is-hidden { transform: translateY(16px); opacity: 0; pointer-events: none; }

.fs-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease);
}

.fs-btn:hover { transform: translateY(-3px); }

.fs-tip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(6px, -50%);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}

.fs-btn:hover .fs-tip,
.fs-btn:focus-visible .fs-tip { opacity: 1; transform: translate(0, -50%); }

@media (min-width: 960px) {
  .action-bar { display: none; }
  .float-social { display: flex; }
}

/* ---------- Animacje ---------- */
@keyframes rise {
  from { opacity: 0; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes card-in {
  from { opacity: 0; translate: 0 34px; scale: 0.95; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes spin-in {
  from { opacity: 0; transform: rotate(-90deg) scale(0.6); }
  to { opacity: 1; transform: none; }
}

@keyframes ba-hint {
  0% { --split: 50%; }
  30% { --split: 34%; }
  65% { --split: 64%; }
  100% { --split: 50%; }
}

@keyframes reveal {
  from { opacity: 0; translate: 0 30px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .chip,
  .hero-title .line,
  .hero-lead,
  .hero-cta,
  .hero-facts,
  .page-hero .eyebrow,
  .page-hero h1,
  .page-lead { animation: rise 0.8s var(--ease) both; }

  .hero-title .line:nth-child(1) { animation-delay: 0.06s; }
  .hero-title .line:nth-child(2) { animation-delay: 0.13s; }
  .hero-title .line:nth-child(3) { animation-delay: 0.2s; }
  .hero-lead { animation-delay: 0.28s; }
  .hero-cta { animation-delay: 0.36s; }
  .hero-facts { animation-delay: 0.44s; }
  .page-hero h1 { animation-delay: 0.07s; }
  .page-lead { animation-delay: 0.15s; }

  .hero-visual { animation: card-in 1.1s var(--ease) 0.2s both; }
  .bizcard { animation: float 7s ease-in-out 1.3s infinite; }

  .mobile-menu.is-open .mm-nav a { animation: rise 0.5s var(--ease) both; }
  .mobile-menu.is-open .mm-nav a:nth-child(2) { animation-delay: 0.05s; }
  .mobile-menu.is-open .mm-nav a:nth-child(3) { animation-delay: 0.1s; }

  .ba.ba-hint { animation: ba-hint 1.5s var(--ease) 1; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .bizcard { transform: none; }
}

.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; }
