/* ==========================================================================
   Zmienne
   ========================================================================== */
:root {
  /* Paleta "Ocean" – głęboki granat i błękit */
  --bg-rgb: 8 11 16;
  --gray-50-rgb: 245 248 251;
  --gray-100-rgb: 221 229 236;
  --gray-200-rgb: 195 205 214;
  --gray-300-rgb: 169 179 189;
  --gray-400-rgb: 143 153 163;
  --gray-600-rgb: 93 103 114;
  --gray-700-rgb: 70 79 89;
  --gray-800-rgb: 46 53 61;
  --gray-900-rgb: 23 27 32;
  --accent-from: #0ea5e9;
  --accent-to: #0b1d4d;
  --about-from: #032a44;
  --about-to: #0e7490;
  --glow-from: #4f46e5;
  --glow-to: #082f49;
  /* Światła i metal sceny 3D (czyta je js/scene.js) */
  --light-key: #d6f0ff;
  --light-back: #7cc8ff;
  --metal: #a9b4bf;

  --bg: rgb(var(--bg-rgb));
  --white: #fff;
  --gray-50: rgb(var(--gray-50-rgb));
  --gray-100: rgb(var(--gray-100-rgb));
  --gray-200: rgb(var(--gray-200-rgb));
  --gray-300: rgb(var(--gray-300-rgb));
  --gray-400: rgb(var(--gray-400-rgb));
  --gray-600: rgb(var(--gray-600-rgb));
  --gray-700: rgb(var(--gray-700-rgb));
  --gray-800: rgb(var(--gray-800-rgb));
  --gray-900: rgb(var(--gray-900-rgb));
  --font-display: 'Inria Sans', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --glow-btn: 0 0 105px rgba(255, 255, 255, 0.2);
  --glow-img: 0 0 105px rgba(255, 255, 255, 0.1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: var(--gray-50); color: #161616; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
b { font-weight: 600; }
h1, h2, h3 { font-weight: inherit; font-size: inherit; }

/* ==========================================================================
   Tło (gradienty są rozmywane przez warstwę .bg-blur)
   ========================================================================== */
#layout-gradient {
  position: fixed; left: 0; top: 0; z-index: -50;
  width: 100%; height: 85vh;
  background: linear-gradient(to bottom right, var(--accent-from), var(--accent-to));
  opacity: 0.25;
}
#home-gradient {
  position: fixed; left: 0; top: 0; z-index: -50;
  width: 100%; height: 95vh;
  background: linear-gradient(to top left, var(--accent-from), var(--accent-to));
  opacity: 0;
}
.bg-blur {
  position: fixed; inset: 0; z-index: -40;
  width: 100vw; height: 100vh;
  backdrop-filter: blur(75px);
  -webkit-backdrop-filter: blur(75px);
}
#canvas-container {
  position: fixed; left: 0; top: 0; z-index: -10;
  width: 100%; height: 100lvh;
  overflow: hidden;
}
#canvas-container canvas { display: block; width: 100%; height: 100%; }

/* ==========================================================================
   Pomocnicze
   ========================================================================== */
.glass-border { position: relative; }
.glass-border::before {
  content: '';
  position: absolute; inset: 0; z-index: -10;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(to bottom right, rgb(var(--gray-200-rgb) / 0.2), rgb(var(--gray-800-rgb) / 0) 50%, rgb(var(--gray-800-rgb) / 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0);
  pointer-events: none;
}

/* Małe trójkąty, które "wjeżdżają" z boków po najechaniu */
.hover-arrows { position: relative; }
.hover-arrows::before,
.hover-arrows::after {
  content: '';
  position: absolute; top: 50%;
  width: 6px; height: 6px;
  background: #fff;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
}
.hover-arrows::before { left: 10px; transform: translateY(-50%) rotate(90deg); }
.hover-arrows::after { right: 10px; transform: translateY(-50%) rotate(-90deg); }
.hover-arrows:hover::before { left: 2px; opacity: 1; }
.hover-arrows:hover::after { right: 2px; opacity: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: fit-content;
  border-radius: 12px;
  padding: 12px 32px;
  font-size: 14px;
  letter-spacing: 0.025em;
  transition: box-shadow 0.5s, background-color 0.5s;
}
.btn-primary {
  background: var(--gray-50);
  color: #000;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: var(--glow-btn);
}
.btn-primary:hover { background: var(--gray-100); box-shadow: none; }
.btn-glass {
  background: rgb(var(--gray-600-rgb) / 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.btn-glass:hover { background: rgb(var(--gray-700-rgb) / 0.2); }
.btn-wide { width: 100%; }

.link-btn {
  display: inline-flex; width: fit-content;
  padding: 8px 16px; margin-left: -16px;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
  letter-spacing: 0.025em;
  transition: text-decoration-color 0.5s;
}
.link-btn:hover { text-decoration-color: rgba(255, 255, 255, 0.75); }

.heading { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.heading h2 {
  font-family: var(--font-display);
  font-size: 30px; line-height: 40px;
  letter-spacing: 0.025em;
}
.heading p { font-size: 14px; }
.heading-center { align-items: center; text-align: center; }

.anchor { position: absolute; top: -80px; }
.sm-only { display: none; }

/* Zastępcze "screenshoty" – podmień na swoje obrazy */
.placeholder-shot {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 4px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.placeholder-shot::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.placeholder-shot span { position: relative; }
.shot-blue { background: radial-gradient(circle at 70% 30%, #1d4f9a, #061f46 55%, #020b19); }
.shot-gray { background: radial-gradient(circle at 30% 70%, #8a8a8a, #3b3b3b 55%, #151515); }
.shot-portrait { background: linear-gradient(160deg, var(--gray-600), var(--gray-900)); border-radius: 12px; font-size: 16px; }

/* ==========================================================================
   Nagłówek
   ========================================================================== */
.brand {
  position: fixed; z-index: 50;
  display: flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 20px;
  border-radius: 2px;
}
.brand::before { left: 14px; }
.brand::after { right: 14px; }
.brand:hover::before { left: 6px; }
.brand:hover::after { right: 6px; }
.brand-logo { width: 28px; height: 28px; color: #fff; transform: translateY(-0.5px); }
.brand-name { text-transform: uppercase; letter-spacing: 0.05em; transform: translateY(1px); }

.topbar {
  position: fixed; left: 0; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: flex-end;
  width: 100%; height: 56px;
  padding-right: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.topbar-shade {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 128px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.05) 60%, rgba(0, 0, 0, 0));
  pointer-events: none;
}
.desktop-nav { position: relative; z-index: 50; display: none; align-items: center; gap: 28px; }
.nav-links, .nav-icons { display: flex; align-items: center; gap: 4px; }
.nav-link { display: flex; padding: 8px 16px; border-radius: 2px; font-size: 14px; letter-spacing: 0.025em; }
.nav-link > span { position: relative; }
.nav-link i {
  position: absolute; bottom: -1px; left: 50%;
  width: 0; height: 1px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%);
  transition: width 0.3s;
}
.nav-link.active i { width: 100%; }
.nav-divider { width: 2px; height: 28px; border-radius: 99px; background: rgba(255, 255, 255, 0.4); }
.lang { display: flex; align-items: center; }
.lang-btn { padding: 8px; font-size: 14px; text-transform: uppercase; transition: opacity 0.2s; }
.lang-btn::before { left: 4px; }
.lang-btn::after { right: 4px; }
.lang-btn:hover::before { left: -2px; }
.lang-btn:hover::after { right: -2px; }
.lang-btn.dim { opacity: 0.7; }
.lang-btn.dim:hover { opacity: 1; }

.burger {
  position: fixed; right: 5px; top: 2px; z-index: 50;
  display: flex; flex-direction: column; justify-content: space-between;
  width: 64px; height: 53px; padding: 16px;
}
.burger span { display: block; height: 1px; width: 100%; background: #fff; border-radius: 99px; transition: transform 0.2s, opacity 0.2s; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 25; /* pod paskiem (.topbar z-index 30), żeby hamburger był klikalny */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: rgb(var(--bg-rgb) / 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  font-family: var(--font-display); font-size: 28px; letter-spacing: 0.05em;
}
.mobile-menu[hidden] { display: none; }
.mobile-lang { margin-top: 8px; font-family: var(--font-body); }
.mobile-lang .lang-btn { font-size: 16px; padding: 8px 12px; }

/* ==========================================================================
   Układ strony
   ========================================================================== */
.shell {
  position: relative;
  display: flex; flex-direction: column; gap: 192px;
  min-height: 100vh; width: 100%;
  overflow: clip;
}
.page { flex: 1; width: 100%; padding: 128px 20px 0; }

/* HERO */
#hero-scroller { position: absolute; left: 0; top: 0; width: 100%; height: 100lvh; }
#hero-wrapper {
  position: absolute; left: 0; top: 0; z-index: 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  width: 100%; height: 100svh;
  text-align: center;
  padding: 0 20px;
}
#hero-supporting-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 300;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700; line-height: 44px;
  letter-spacing: 0.15em;
  text-transform: capitalize;
}
.hero-sub { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 4px; letter-spacing: 0.025em; }
.hero-btn { margin-top: 24px; }
#hero-backdrop {
  position: fixed; left: 0; top: 0; width: 100%; height: 100%;
  background: #000; opacity: 0.2; pointer-events: none;
}
#scrollToExplore {
  position: fixed; bottom: 32px; left: 50%; z-index: 10;
  transform: translateX(-50%);
  padding: 8px 16px;
  font-size: 14px; letter-spacing: 0.025em;
  color: transparent;
}

/* OPINIE */
.sp-sticky-area { position: relative; min-height: 100lvh; }
#social-proof-heading-wrapper {
  position: sticky; top: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100vh; max-height: 100vh;
  opacity: 0; transform: scale(0);
}
#social-proof-heading-wrapper .heading { max-width: 384px; align-items: flex-start; text-align: left; }
#social-proof-scroller { display: flex; flex-direction: column; justify-content: flex-end; height: 100svh; margin-top: 600px; }
.reviews-wrap { position: relative; }
#reviews { position: absolute; top: -400px; }
.reviews {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  margin-top: calc(-50vh + 96px);
  padding-bottom: 96px;
}
.review {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  width: 100%; max-width: 384px; height: 288px;
  padding: 24px 32px;
  border-radius: 8px;
  background: rgb(var(--gray-800-rgb) / 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  user-select: none;
}
.quote-mark { height: 44px; width: 100%; overflow: hidden; font-size: 96px; line-height: 1; }
.review > p { text-align: left; }
.review-author { display: flex; flex-direction: column; align-items: flex-start; width: 100%; font-size: 14px; }
.review-author p:last-child { color: rgba(255, 255, 255, 0.75); }

.sections { display: flex; flex-direction: column; gap: 128px; padding-top: 48px; }

/* PROJEKTY */
.projects { position: relative; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.project-list { display: flex; flex-direction: column; align-items: center; gap: 112px; }
.project { position: relative; display: flex; flex-direction: column; gap: 28px; max-width: 512px; }
.thumb {
  position: relative;
  display: block;
  aspect-ratio: 1.872;
  width: 100%;
  cursor: none;
  box-shadow: var(--glow-img);
  transition: box-shadow 1s;
  border-radius: 4px;
}
.thumb-inner { position: absolute; inset: 0; }
.thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.thumb-glow {
  position: absolute; inset: 0; z-index: -10;
  width: 100%; height: 100%; object-fit: cover; border-radius: 4px;
  filter: blur(40px) brightness(3) saturate(1.5);
  opacity: 0;
  transition: opacity 0.7s;
}
.thumb:hover .thumb-glow { opacity: 0.5; }
.project-text { position: relative; display: flex; flex-direction: column; gap: 8px; }
.project-text h3 { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.025em; }
.project-text p { color: var(--gray-200); font-size: 14px; }
.project-text p + p { margin-top: 8px; }
.project-gradient {
  position: absolute; left: -25%; top: -12.5%; z-index: -50;
  width: 150%; height: 125%;
  border-radius: 9999px;
  background: linear-gradient(to top right, var(--from), var(--to));
  opacity: 0.15;
}

/* Tytuł projektu jako link */
.project-link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; transition: text-decoration-color 0.3s; }
.project-link svg { display: inline-block; vertical-align: -2px; margin-left: 6px; opacity: 0.7; transition: transform 0.3s, opacity 0.3s; }
.project-link:hover { text-decoration-color: rgba(255, 255, 255, 0.5); }
.project-link:hover svg { transform: translate(2px, -2px); opacity: 1; }

/* Studium projektu – pełnoekranowe okno otwierane z karty */
.cs-overlay { position: fixed; inset: 0; z-index: 80; }
.cs-overlay[hidden] { display: none; }
.cs-backdrop { position: absolute; inset: 0; background: rgb(var(--bg-rgb) / 0.78); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.cs-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.cs-content { position: relative; max-width: 1100px; margin: 0 auto; padding: 88px 20px 96px; }
.cs-image { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 30px 120px rgb(var(--gray-50-rgb) / 0.08), 0 0 0 1px rgb(var(--gray-50-rgb) / 0.06); transform-origin: 0 0; will-change: transform; }
.cs-body { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.cs-title { font-family: var(--font-display); font-size: 30px; letter-spacing: 0.025em; line-height: 1.2; }
.cs-lead { max-width: 780px; color: var(--gray-200); font-size: 16px; }
.pd-grid { display: grid; gap: 24px; margin-top: 12px; }
.pd-item { padding: 20px 22px; border-radius: 12px; background: rgb(var(--gray-800-rgb) / 0.25); box-shadow: inset 0 0 0 1px rgb(var(--gray-50-rgb) / 0.06); }
.pd-item h4 { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.025em; margin-bottom: 8px; }
.pd-item h4::before { content: ''; display: inline-block; width: 18px; height: 2px; margin: 0 10px 5px 0; border-radius: 2px; background: var(--accent-from); vertical-align: middle; }
.pd-item p { color: var(--gray-200); font-size: 14px; }
.pd-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pd-tags li { padding: 5px 14px; border: 1px solid var(--gray-700); border-radius: 9999px; background: rgb(var(--gray-800-rgb) / 0.2); font-size: 12px; letter-spacing: 0.03em; color: var(--gray-200); }
.cs-close {
  position: fixed; top: 20px; right: 20px; z-index: 2;
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 9999px; color: #fff;
  background: rgb(var(--gray-600-rgb) / 0.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgb(var(--gray-50-rgb) / 0.12);
  transition: background-color 0.3s, transform 0.3s;
}
.cs-close:hover { background: rgb(var(--gray-600-rgb) / 0.45); transform: rotate(90deg); }
html.cs-open { overflow: hidden; }


/* O MNIE */
.about-intro-outer { display: flex; justify-content: center; }
#about-intro-container {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  width: 100%; max-width: 384px;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 300; letter-spacing: 0.05em;
}
#about-intro-container h2 { width: 100%; }
#about-intro-container b { font-weight: 400; }
#about-intro-lower-text { text-align: right; }
.about { position: relative; display: flex; justify-content: center; }
.about-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; max-width: 512px; }
#about-image { aspect-ratio: 0.75; width: 65%; max-width: 288px; }
.portrait { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 12px; box-shadow: var(--glow-img); transition: box-shadow 1s; }
.portrait:hover { box-shadow: none; }
.about-text { position: relative; display: flex; flex-direction: column; gap: 16px; width: 100%; font-size: 14px; letter-spacing: 0.025em; }
.about-text h3 { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: 0.025em; }
#about-gradient {
  position: absolute; left: -25%; top: -66%; z-index: -50;
  width: 150%; height: 175%;
  border-radius: 9999px;
  background: linear-gradient(to top right, var(--about-from), var(--about-to));
  opacity: 0.1;
}

/* JAK PRACUJĘ */
.process { position: relative; display: flex; flex-direction: column; gap: 48px; }
.steps-wrap { width: 100%; max-width: 1152px; margin: 0 auto; }
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 16px; width: 100%; }
/* Oś kroków (tylko desktop): linia wypełnia się przy scrollu, punkty zapalają się po kolei */
.steps-track { display: none; position: relative; grid-template-columns: repeat(5, 1fr); gap: 16px; height: 14px; margin-bottom: 28px; }
.steps-track span { position: relative; z-index: 1; justify-self: center; width: 14px; height: 14px; border-radius: 50%; background: var(--gray-700); box-shadow: 0 0 0 4px var(--bg); }
.steps-line { position: absolute; top: 6px; left: 10%; right: 10%; height: 2px; border-radius: 2px; background: rgb(var(--gray-600-rgb) / 0.4); overflow: hidden; }
.steps-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-from), #38bdf8); transform-origin: 0 50%; transform: scaleX(0); }
.step {
  position: relative;
  padding: 24px 22px;
  border-radius: 12px;
  background: rgb(var(--gray-800-rgb) / 0.25);
  box-shadow: inset 0 0 0 1px rgb(var(--gray-50-rgb) / 0.06);
}
.step-n { display: block; font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--accent-from); margin-bottom: 14px; }
.step h3 { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.02em; margin-bottom: 8px; }
.step p { color: var(--gray-200); font-size: 14px; }

.pricing-sub { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.02em; text-align: center; color: var(--gray-200); }

/* Wyróżniona oferta: aplikacje */
.app-offer {
  display: flex; flex-direction: column; gap: 20px;
  width: 100%; max-width: 1040px; margin: 0 auto;
  padding: 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(14 165 233 / 0.14), rgb(var(--gray-800-rgb) / 0.25) 60%);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.app-offer-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-from); margin-bottom: 8px; }
.app-offer h3 { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.02em; margin-bottom: 8px; }
.app-offer p:not(.app-offer-eyebrow) { color: var(--gray-200); font-size: 15px; max-width: 640px; }
.app-offer .btn { flex-shrink: 0; }

/* CENNIK */
.pricing { position: relative; display: flex; flex-direction: column; gap: 64px; }
.pricing .heading h2 { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 8px; }
.pricing-body { display: flex; flex-direction: column; align-items: center; gap: 28px; width: 100%; }

/* Kalkulator strony */
.xs { font-size: 12px; }
.range input[type='range'] { -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.range input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; border-radius: 50%; transition: transform 0.2s; }
.range input[type='range']::-webkit-slider-thumb:hover { transform: scale(1.1); }
.range input[type='range']::-moz-range-thumb { border: 0; border-radius: 50%; }
.calc { display: grid; grid-template-columns: 1fr; gap: 20px; width: 100%; max-width: 1040px; }
.calc-main, .calc-summary {
  border-radius: 16px;
  background: rgb(var(--gray-800-rgb) / 0.25);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.calc-main { display: flex; flex-direction: column; gap: 22px; padding: 24px 18px; }
.calc-step { display: flex; align-items: flex-start; gap: 14px; }
.calc-step h4 { font-family: var(--font-display); font-size: 19px; letter-spacing: 0.02em; }
.calc-step p { font-size: 14px; color: var(--gray-400); margin-top: 2px; }
.calc-num {
  display: grid; place-items: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 13px; font-weight: 700;
  color: var(--accent-from); box-shadow: inset 0 0 0 1.5px var(--accent-from);
}

.range { padding: 0 2px 4px; }
.range-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.range-top output { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.02em; white-space: nowrap; }
.range-hint { font-size: 12px; color: var(--gray-400); }
.range input[type='range'] { width: 100%; margin: 0; padding: 10px 0; --fill: 0%; }
.range input[type='range']::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent-from), #38bdf8) 0 / var(--fill) 100% no-repeat, rgb(var(--gray-600-rgb) / 0.45); }
.range input[type='range']::-moz-range-track { height: 6px; border-radius: 99px; background: rgb(var(--gray-600-rgb) / 0.45); }
.range input[type='range']::-moz-range-progress { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent-from), #38bdf8); }
.range input[type='range']::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -8px; background: #fff; box-shadow: 0 0 0 5px rgb(14 165 233 / 0.25), 0 2px 8px rgba(0, 0, 0, 0.4); }
.range input[type='range']::-moz-range-thumb { width: 22px; height: 22px; background: #fff; box-shadow: 0 0 0 5px rgb(14 165 233 / 0.25); }
.range-ticks { display: flex; justify-content: space-between; padding: 0 5px; font-size: 11px; color: var(--gray-400); }

.addon-list { display: grid; gap: 10px; }
.addon-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border-radius: 12px;
  text-align: left;
  background: rgb(var(--gray-800-rgb) / 0.35);
  box-shadow: inset 0 0 0 1px rgb(var(--gray-50-rgb) / 0.07);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.addon-card:hover { background: rgb(var(--gray-600-rgb) / 0.22); transform: translateY(-1px); }
.addon-card[aria-pressed='true'] { background: rgb(14 165 233 / 0.10); box-shadow: inset 0 0 0 1.5px var(--accent-from), 0 0 36px rgb(14 165 233 / 0.14); }
.addon-icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; color: var(--gray-200); background: rgb(var(--gray-600-rgb) / 0.25); transition: color 0.3s, background-color 0.3s; }
.addon-card[aria-pressed='true'] .addon-icon { color: #fff; background: var(--accent-from); }
.addon-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.addon-title { font-weight: 600; font-size: 15px; }
.addon-desc { font-size: 13px; color: var(--gray-400); }
.addon-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.addon-price { font-size: 13px; font-weight: 600; color: var(--gray-200); white-space: nowrap; }
.addon-switch { position: relative; width: 38px; height: 22px; border-radius: 99px; background: rgb(var(--gray-600-rgb) / 0.6); transition: background-color 0.3s; }
.addon-switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.addon-card[aria-pressed='true'] .addon-switch { background: var(--accent-from); }
.addon-card[aria-pressed='true'] .addon-switch i { transform: translateX(16px); }

.incl { list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px; font-size: 14px; }
.incl li { display: flex; align-items: center; gap: 10px; }
.incl-check { display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; color: var(--accent-from); background: rgb(14 165 233 / 0.12); }
.incl-hl { font-weight: 600; }
.badge-free { margin-left: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #052e1a; background: #4ade80; }

.calc-summary { display: flex; flex-direction: column; gap: 18px; padding: 28px 24px; align-self: start; }
.calc-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-from); }
.calc-total { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); line-height: 1; }
.calc-from { font-size: 18px; color: var(--gray-400); }
#total { font-size: 48px; letter-spacing: 0.01em; background: linear-gradient(90deg, #fff, #bae6fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-lines { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 1px solid rgb(var(--gray-50-rgb) / 0.08); border-bottom: 1px solid rgb(var(--gray-50-rgb) / 0.08); font-size: 14px; }
.calc-lines li { display: flex; justify-content: space-between; gap: 12px; color: var(--gray-200); }
.calc-lines li[hidden] { display: none; }
.calc-lines b { font-weight: 600; color: #fff; white-space: nowrap; }
.calc-lines .line-free b { color: #4ade80; }
.calc-note { font-size: 12px; color: var(--gray-400); text-align: center; }

.plus { position: relative; display: block; width: 12px; min-width: 12px; height: 12px; transform: rotate(-90deg); transition: transform 0.3s; }
.plus span { position: absolute; left: 50%; top: 50%; width: 100%; height: 2px; background: var(--gray-200); transform: translate(-50%, -50%); }
.plus span:first-child { transform: translate(-50%, -50%) rotate(90deg); transition: width 0.2s; }
.faq-item.open .plus { transform: rotate(0); }
.faq-item.open .plus span:first-child { width: 0; }

/* CTA */
#cta-intro-container { position: relative; display: flex; justify-content: center; width: 100%; padding: 40px 0; }
#cta-intro-background {
  position: absolute; left: -25%; top: -75%;
  display: flex; align-items: center; justify-content: center;
  width: 150%; height: 250%;
  pointer-events: none;
}
.dots {
  width: 100%; height: 100%; max-width: 1536px;
  background: radial-gradient(rgba(255, 255, 255, 0.1) 15%, transparent 8%);
  background-size: 2.2vmin 2.2vmin;
  -webkit-mask-image: radial-gradient(ellipse 60% 43% at center, #000 0%, #000 10%, transparent 80%);
  mask-image: radial-gradient(ellipse 60% 43% at center, #000 0%, #000 10%, transparent 80%);
}
.cta-text { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; letter-spacing: 0.025em; }
.cta-title { font-family: var(--font-display); font-size: 20px; }

/* KONTAKT */
.contact { position: relative; display: flex; justify-content: center; }
.contact-form { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 576px; }
.contact-head { display: flex; flex-direction: column; gap: 16px; }
.contact-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: 0.025em; }
.contact-links { display: flex; flex-direction: column; font-size: 14px; }
.link-plain { display: flex; align-items: center; gap: 10px; width: fit-content; padding: 4px 16px; margin-left: -16px; letter-spacing: 0.025em; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: 0.025em; }
.contact-form input, .contact-form textarea {
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  background: transparent;
  font-size: 14px; font-weight: 400; letter-spacing: 0.025em;
  transition: border-color 0.3s;
  outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gray-50); }
.contact-form ::placeholder { color: var(--gray-600); }
.contact-form textarea { height: 144px; resize: none; }
.underline { text-decoration: underline; text-underline-offset: 2px; }
.submit-area { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.submit-area .btn { height: 44px; }
#submission-result { min-height: 64px; opacity: 0; transition: opacity 0.5s; font-size: 14px; text-align: center; letter-spacing: 0.025em; }

/* FAQ */
.faq { display: flex; justify-content: center; }
.faq > * { width: 100%; }
.faq { flex-direction: column; align-items: center; }
.faq .heading, .faq-list { max-width: 512px; }
.faq-item { border-bottom: 2px solid var(--gray-700); }
.faq-item:last-child { border-bottom: 0; }
.faq-item > button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 20px 4px;
  text-align: left; font-weight: 500;
  transition: color 0.3s;
}
.faq-item > button:hover { color: var(--gray-200); }
.faq-item .plus { width: 16px; min-width: 16px; height: 16px; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease; }
.faq-answer p { overflow: hidden; padding: 0 4px; color: var(--gray-200); font-size: 14px; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-item.open .faq-answer p { padding-bottom: 20px; }

/* STOPKA */
.footer {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 48px;
  overflow: clip;
  padding: 36px 0 24px;
  background: rgba(0, 0, 0, 0.2);
}
.footer-cols { display: flex; justify-content: space-evenly; width: 100%; max-width: 768px; font-size: 12px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols .fh { font-weight: 600; margin-bottom: 4px; }
.footer-cols a { color: var(--gray-200); transition: color 0.2s; }
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  column-gap: 20px; row-gap: 8px;
  padding: 0 24px;
  font-size: 12px; letter-spacing: 0.05em; color: var(--gray-200);
}
.footer-bottom p, .legal a { padding: 4px 8px; text-align: center; }
.footer-logo { width: 24px; height: 24px; margin: 0 -4px; color: #fff; }
.legal { display: flex; gap: 20px; }
.legal a::before { left: 2px; }
.legal a::after { right: 2px; }
.legal a:hover::before { left: -6px; }
.legal a:hover::after { right: -6px; }
.footer-blur { position: absolute; inset: 0; z-index: -20; backdrop-filter: blur(50px); -webkit-backdrop-filter: blur(50px); }
.footer-glow {
  position: absolute; left: -25%; top: 75%; z-index: -30;
  width: 150%; height: 100%;
  border-radius: 9999px;
  background: linear-gradient(to top right, #2d2d2d, #bdbdbd);
  opacity: 0.15;
}
.bottom-glow {
  position: absolute; bottom: -176px; left: -25%; z-index: -50;
  width: 150%; height: 675px;
  border-radius: 24px;
  background: linear-gradient(to top right, var(--glow-from), var(--glow-to));
  opacity: 0.15;
  transform: rotate(-12deg);
}

/* Przycisk do góry i kursor */
#scroll-up-button {
  position: fixed; bottom: 16px; right: 16px; z-index: 40;
  display: flex; padding: 12px;
  border-radius: 9999px;
  background: rgb(var(--gray-600-rgb) / 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s, background-color 0.5s;
}
#scroll-up-button.visible { opacity: 1; pointer-events: auto; }
#scroll-up-button:hover { background: rgb(var(--gray-700-rgb) / 0.2); }

#mouse-follower {
  position: fixed; left: 0; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transform: scale(0);
  transition: opacity 0.15s;
}

/* ==========================================================================
   Breakpointy
   ========================================================================== */
@media (max-width: 639px) {
  .sm-only { display: inline; }
}
@media (min-width: 400px) {
  .hero-sub { padding: 0 64px; }
  #about-intro-container { max-width: 448px; gap: 36px; font-size: 30px; }
  .cta-title { font-size: 24px; }
  .footer-cols { font-size: 14px; }
}
@media (min-width: 640px) {
  .range { padding-left: 44px; }
  .addon-list, .incl { padding-left: 44px; }
  .addon-icon { width: 44px; height: 44px; }
  .addon-card { gap: 14px; padding: 14px 16px; }
  .calc-main { padding: 28px 24px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  #scrollToExplore { left: 32px; transform: none; }
  .sections { gap: 176px; }
  #about-image { width: 100%; }
  #about-intro-container { max-width: 512px; gap: 44px; font-size: 36px; }
  .cta-title { font-size: 30px; }
  .cta-text { gap: 20px; }
  #cta-intro-subtitle-0 { font-size: 18px; }
  .footer { gap: 64px; padding-top: 48px; }
  .footer-bottom { column-gap: 28px; }
  .legal { gap: 28px; }
}
@media (min-width: 768px) {
  .page { padding-top: 144px; }
  #hero-supporting-title { font-size: 20px; }
  #social-proof-scroller { margin-top: 150px; }
  #about-intro-container { max-width: 672px; gap: 48px; font-size: 48px; }
  .cta-title { font-size: 36px; }
  #cta-intro-subtitle-0 { font-size: 20px; }
}
@media (min-width: 1024px) {
  .desktop-nav { display: flex; }
  .burger, .mobile-menu { display: none !important; }
  .brand { gap: 12px; }
  .page { padding: 160px 40px 0; }
  .heading { gap: 16px; }
  .heading h2 { font-size: 36px; }
  .heading p { font-size: 16px; }
  #social-proof-heading-wrapper .heading { max-width: 512px; align-items: center; text-align: center; }
  #reviews { top: -600px; }
  .reviews { flex-direction: row; align-items: stretch; justify-content: center; gap: 16px; margin-top: calc(-50vh + 112px); padding-bottom: 208px; }
  .review { height: auto; min-height: 288px; gap: 16px; }
  .review > p { flex: 1; }
  .sections { gap: 256px; }
  .projects { gap: 80px; }
  .project-list { padding: 0 40px; }
  .project { flex-direction: row; align-items: center; gap: 48px; max-width: 1152px; }
  .project.reverse { flex-direction: row-reverse; }
  .thumb { width: 66.666%; flex-shrink: 0; }
  .project-text { width: 33.333%; }
  .project-gradient { width: 200%; left: -66%; }
  .project.reverse .project-gradient { left: -33%; }
  .pd-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-title { font-size: 40px; }
  .cs-content { padding-top: 96px; }
    .about-inner { flex-direction: row; gap: 48px; max-width: 830px; }
  .about-text { font-size: 16px; }
  #about-gradient { left: -320px; top: -12.5%; width: 200%; height: 125%; }
  .calc { grid-template-columns: 1fr 360px; gap: 24px; }
  .calc-main { padding: 34px 32px; }
  .calc-summary { position: sticky; top: 90px; padding: 32px 28px; }
  .incl { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps-track { display: grid; }
  .app-offer { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; padding: 32px 36px; }
  .contact-head h2 { font-size: 30px; font-weight: 400; }
  .faq-item > button { padding: 24px 4px; }
  #scroll-up-button { bottom: 24px; right: 24px; }
}
@media (min-width: 1280px) {
  .desktop-nav { gap: 40px; }
  .nav-links { gap: 28px; }
  .nav-icons { gap: 8px; }
  .page { padding-top: 176px; }
  #hero-wrapper { gap: 48px; }
  #hero-supporting-title { font-size: 24px; }
  .hero-title { font-size: 48px; line-height: 1.1; }
  .hero-sub { font-size: 18px; column-gap: 6px; }
  #social-proof-scroller { margin-top: 250px; }
  .project-list { gap: 176px; }
  .project-text h3 { font-size: 30px; }
  .project-text p { font-size: 16px; }
}
@media (min-width: 1536px) {
  #hero-wrapper { gap: 64px; }
  #hero-supporting-title { font-size: 30px; }
  .hero-title { font-size: 60px; }
  .hero-sub { font-size: 20px; }
  .heading h2 { font-size: 48px; line-height: 1.1; }
  .heading p { font-size: 18px; }
  #social-proof-heading-wrapper .heading { max-width: 576px; }
  .reviews { margin-top: calc(-50vh + 128px); }
    #about-intro-container { max-width: 896px; gap: 64px; font-size: 60px; }
  .cta-title { font-size: 48px; }
  .cta-text { gap: 32px; }
  #cta-intro-subtitle-0 { font-size: 24px; }
  .contact-form { max-width: 672px; gap: 28px; }
  .contact-head h2 { font-size: 36px; }
  .contact-form label, .contact-form input, .contact-form textarea, .contact-links { font-size: 16px; }
  .contact-form textarea { height: 176px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
