/* ── Self-hosted DM Sans (RODO-safe, bez Google CDN) ── */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/dm-sans-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: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/dm-sans-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 {
  /* ── Brand colours — z logo pasjareklamy.pl ── */
  --blue:         #80BEFF; /* jasny niebieski — "pasja", akcenty, highlights */
  --blue-light:   #B3D4FF; /* bardzo jasny — subtext na ciemnym tle foto */
  --blue-soft:    #EBF3FF; /* tint tła — subtelne podkłady */
  --purple:       #003F80; /* ciemny niebieski — nagłówki, CTA */
  --purple-dark:  #002D5C; /* hover state */

  /* ── Neutrals ── */
  --ink:    #003F80; /* body text — ciemny niebieski marki */
  --muted:  #0058B3; /* podteksty — średni niebieski */
  --cream:  #f4f8ff; /* page background — bardzo lekki niebieski tint */
  --white:  #ffffff;

  /* ── UI tokens ── */
  --line:      rgba(0, 63, 128, 0.13); /* borders */
  --radius:    8px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

/* Focus-visible — widoczny tylko przy nawigacji klawiaturą (nie myszą) */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Karty mają własny border-radius */
.card:focus-visible { border-radius: var(--radius); }

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.58;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { border: 0; cursor: pointer; }

.container { width: var(--container); margin: 0 auto; }

/* Białe podłoże pod sekcjami — gasnące sekcje (sekcyjne gaśnięcie w main.js)
   prześwitują na biel zamiast na kremowe tło strony, więc nie zmieniają koloru,
   a kolorowe tła (band, kontakt) wyłaniają się z bieli dopiero przy scrollu. */
main { background: #ffffff; }

.section { padding: 96px 0; background: var(--white); position: relative; }

.section-title { max-width: 720px; margin: 0 auto 56px; text-align: center; position: relative; z-index: 1; }
.section-title p { margin-top: 12px; }
#mountain-title { line-height: 1.22; }

h1, h2, h3 {
  margin: 0;
  font-family: "Google Sans", "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--ink);
}

h1 { font-size: clamp(1.86rem, 4.8vw, 4.44rem); max-width: 500px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); text-wrap: balance; }
h3 { font-size: 1.22rem; line-height: 1.2; text-wrap: balance; }
p { margin: 0; color: var(--muted); text-wrap: pretty; }
.accent { color: var(--blue); }

.eyebrow {
  margin-bottom: 12px;
  color: var(--purple);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 100px;
  border: 1px solid transparent;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 200ms ease, border-color 200ms ease, background 240ms ease, box-shadow 240ms ease, color 200ms ease;
  white-space: nowrap;
}

/* ── Liquid Glass Primary ──
   Semi-transparentny granat marki + Figma bevel system (wersja jasna, skalowana).
   Działa na białym tle (nasycony niebieski glass) i ciemnym hero (dark glass).
   Jeden styl wszędzie — background opacity robi robotę.              */
/* ── Primary — solidny granat, podświetlenie tylko na hover ── */
.button-primary {
  position: relative;
  overflow: hidden;
  background: #003F80;
  border: none;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 8px rgba(0, 63, 128, 0.28),
    0 1px 3px rgba(0, 0, 0, 0.10);
}
.button:hover { transform: translateY(-2px); }
.button-primary:hover {
  background: #0058B3;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 20px rgba(0, 63, 128, 0.45),
    0 2px 6px rgba(0, 0, 0, 0.14);
}

.icon-arrow { width: 18px; height: 18px; transition: transform 220ms ease; }
.button:hover .icon-arrow, .text-link:hover .icon-arrow { transform: translateX(4px); }

/* Po wysłaniu formularza strzałka morfuje w "ptaszka" (JS podmienia path) */
.icon-arrow.icon-pop { animation: iconPop 480ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes iconPop {
  0%   { transform: scale(0.4); }
  100% { transform: scale(1); }
}

/* ── Nav ── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 10px 20px; background: transparent; transition: transform 300ms ease; }
.site-header.nav-hidden { transform: translateY(-140%); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  min-height: 52px;
  margin: 0 auto;
  gap: 28px;
  padding: 0 20px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(120,184,237,0.18);
  box-shadow: 0 4px 24px rgba(13,64,115,0.08);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Google Sans", "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.98rem, 1.15vw, 1.16rem);
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1;
}

.logo-img { height: 22px; width: auto; display: block; }
.logo-mark { width: 27px; height: 27px; flex: 0 0 auto; object-fit: contain; }
.logo-text { display: inline-flex; align-items: baseline; gap: 1px; font-weight: 700; letter-spacing: -0.01em; }
.logo-text span:first-child { color: #80BEFF; }   /* "pasja" — jasny niebieski */
.logo-text span:nth-child(2) { color: #003F80; }  /* "reklamy.pl" — ciemny niebieski */
.logo small { font-family: inherit; font-size: 0.72em; color: #0058B3; font-weight: 600; }

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 44px);
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 200ms ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--purple); }

.nav-cta {
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.72rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Sweep światła — odpala się przy najechaniu kursorem (do-shine via JS) */
.nav-cta::before {
  content: "";
  position: absolute;
  inset: -30% auto -30% -60%;
  width: 38%;
  pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.52), transparent);
  transform: translateX(-100%) skewX(-18deg);
}
.nav-cta.do-shine::before {
  animation: navCtaShine 0.65s ease forwards !important;
}

/* ── Hamburger morph ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.burger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 280ms ease, opacity 200ms ease, width 220ms ease;
}

body.nav-open .burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger-bar:nth-child(2) { opacity: 0; width: 0; }
body.nav-open .burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  padding: clamp(180px, 26vh, 300px) 0 clamp(72px, 8vh, 112px);
  padding-top: calc(72px + clamp(120px, 16vh, 200px));
  position: relative;
  overflow: hidden;
  background: #c8dff7; /* fallback gdy video się ładuje */
}

/* video tło */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  pointer-events: none;
}
/* ukryj natywne kontrolki przeglądarki */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-enclosure,
.hero-video::-webkit-media-controls-panel { display: none !important; }

/* overlay — rozjaśnia lewą stronę żeby tekst był czytelny */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(72deg,
    rgba(255,255,255,0.96) 0%,
    rgba(255,255,255,0.85) 26%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0)    65%);
}

/* dolne zanikanie do białego */
.hero::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: auto 0 -1px 0;
  display: block;
  height: 18%;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, #ffffff 100%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.hero-copy {
  max-width: 560px;
  margin-top: clamp(22px, 4vh, 58px);
  position: relative;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -40px -60px -40px -60px;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.28) 45%, transparent 72%);
  pointer-events: none;
  z-index: -1;
  filter: blur(18px);
}
/* Hero — hierarchia kolorów marki */
.hero-copy p { max-width: 370px; margin: 18px 0 26px; font-size: clamp(0.88rem, 1.05vw, 1rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero .eyebrow {
  font-size: 0.68rem;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0.09em;
}
/* "Dla firm w całej Polsce" — nowa linia, wyróżniony kolor */
.eyebrow-geo {
  display: block;
  margin-top: 5px;
  color: var(--purple);
  font-weight: 800;
  letter-spacing: 0.05em;
}
.hero .button { min-height: 38px; padding: 0 17px; font-size: 0.78rem; font-weight: 600; }

/* Typed text cursor */
#typedWord::after {
  content: "|";
  color: var(--blue);
  font-weight: 300;
  margin-left: 1px;
  animation: cursorBlink 0.75s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Hero CTA — sweep światła co 6s ──
   Kolor i glass dziedziczy z .button-primary.
   Tylko animowany sweep pozostaje jako override. */
.hero-actions .button-primary {
  overflow: hidden;
}
.hero-actions .button-primary::before {
  content: "";
  position: absolute;
  inset: -30% auto -30% -60%;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.50), transparent);
  transform: translateX(0) skewX(-18deg);
  animation: ctaShine 6s ease-in-out 1.2s infinite;
}

/* ── Brand divider — duży, animowany mark marki ── */
.brand-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 0 0;
  margin: 0;
  background: #ffffff;
  position: relative;
  z-index: 10;
}

.brand-divider-img {
  width: 64px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(13,64,115,0.18));
  opacity: 0;
  transform: scale(0.5) rotate(-15deg);
  transition: opacity 550ms cubic-bezier(0.34, 1.56, 0.64, 1), transform 550ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-divider.is-visible .brand-divider-img {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  animation: brandFloat 7s ease-in-out 700ms infinite;
}

@keyframes brandFloat {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50%      { transform: translateY(-6px) rotate(3deg) scale(1.03); }
}

/* ── Keyframes ── */
@keyframes navCtaShine {
  0%   { transform: translateX(-100%) skewX(-18deg); }
  100% { transform: translateX(380%) skewX(-18deg); }
}
@keyframes navCtaBreath {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(13,64,115,0.26),
                inset 0 1px 0 rgba(255,255,255,0.5),
                inset 0 -4px 9px rgba(9,48,87,0.5);
  }
  50% {
    box-shadow: 0 8px 20px rgba(13,64,115,0.3), 0 0 18px rgba(120,184,237,0.26),
                inset 0 1px 0 rgba(255,255,255,0.5),
                inset 0 -4px 9px rgba(9,48,87,0.5);
  }
}
@keyframes navCtaHalo {
  0%, 100% { opacity: 0.14; transform: scale(0.98); }
  50% { opacity: 0.5; transform: scale(1.04); }
}
@keyframes ctaGlow {
  0%, 70%, 100% {
    box-shadow: 0 12px 26px rgba(13,64,115,0.34),
                inset 0 1px 0 rgba(255,255,255,0.55),
                inset 0 -5px 12px rgba(9,48,87,0.55);
  }
  82% {
    box-shadow: 0 12px 26px rgba(13,64,115,0.34), 0 0 22px 10px rgba(120,184,237,0.3),
                inset 0 1px 0 rgba(255,255,255,0.55),
                inset 0 -5px 12px rgba(9,48,87,0.55);
  }
}
@keyframes ctaShine {
  0%, 68% { transform: translateX(0) skewX(-18deg); }
  84%, 100% { transform: translateX(420%) skewX(-18deg); }
}

/* ── Roadmap ── */
/* Górny odstęp daje brand-divider (96px + symbol) — tu tylko domknięcie do nagłówka */
.roadmap { overflow: hidden; padding-top: 40px; padding-bottom: 96px; }
.roadmap::before { display: none; }
.roadmap .section-title h2 { margin-bottom: 12px; }

.process-map { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; padding: 18px 0 8px; }

.process-line {
  position: absolute;
  left: calc(16.666% - 12px);
  right: calc(16.666% - 12px);
  top: 56px;
  height: 2px;
  background: linear-gradient(90deg, rgba(120,184,237,0.18), rgba(13,64,115,0.7), rgba(120,184,237,0.18));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity 150ms ease, transform 920ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.process-map.line-ready .process-line { opacity: 1; transform: scaleX(1); }

.process-line::after {
  content: "";
  position: absolute;
  inset: -5px 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  transform: translateX(-100%);
  animation: pathShine 4.4s ease-in-out infinite;
}

@keyframes pathShine {
  0%, 35% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  75%, 100% { transform: translateX(100%); opacity: 0; }
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.process-step { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; }

.process-node {
  width: 77px;
  height: 77px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(63,132,150,0.16);
  border-radius: 50%;
  background: #ffffff;
  color: var(--blue);
  position: relative;
  box-shadow: 0 20px 48px rgba(51,68,81,0.1), inset 0 0 0 9px var(--blue-soft);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.process-step:hover .process-node {
  transform: translateY(-7px);
  border-color: rgba(120,184,237,0.62);
  box-shadow: 0 26px 60px rgba(51,68,81,0.16), inset 0 0 0 9px rgba(120,184,237,0.16);
}

.process-node svg { width: 29px; height: 29px; stroke-width: 1.75; }

/* Ikony rysują się kreską, gdy krok wjeżdża na ekran (pathLength="1" w HTML) */
.process-node svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.process-step.is-visible .process-node svg path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 850ms cubic-bezier(0.4, 0, 0.2, 1) 350ms;
}
.process-step.is-visible .process-node svg path:nth-child(2) { transition-delay: 560ms; }

.process-number {
  position: absolute;
  top: -8px;
  right: calc(50% - 44px);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(13,64,115,0.24);
}

.process-step h3 { margin-bottom: 12px; }
.process-step p { max-width: 285px; margin: 0 auto; font-size: 0.96rem; }

/* ── Cards ── */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.card {
  position: relative;
  min-height: 260px;
  padding: 34px;
  border: 1px solid rgba(48,66,79,0.1);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 20px -20px rgba(51,68,81,0.38);
  transition: transform 260ms ease, box-shadow 300ms ease, border-color 260ms ease;
}

.card:hover {
  border-color: rgba(120,184,237,0.45);
  box-shadow: 0 22px 24px -20px rgba(51,68,81,0.48);
}

.icon-circle {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(63,132,150,0.1);
}

.icon-circle svg { width: 31px; height: 31px; stroke-width: 1.75; }
.card p { margin: 14px 0 26px; font-size: 0.96rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  background: transparent;
  color: var(--muted); /* 6.9:1 na białym — jasny --blue miał ledwo 2:1 */
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 220ms ease;
}

.text-link .icon-arrow { color: var(--blue); }
.text-link:hover { color: var(--purple); }
.text-link:hover .icon-arrow { color: var(--purple); }

/* ── Mountain band — pełnoszerokie brandowe pasmo z kartą ──
   Docelowo wjedzie tu wizual/wideo; na razie miękkie pływające
   poświaty w kolorach marki, żeby sekcja wyglądała skończenie. */
.mountain-band {
  display: grid;
  place-items: center;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--blue-soft) 18%, var(--blue-soft) 82%, #ffffff 100%);
}

/* Placeholder na przyszły wizual/film */
.mountain-placeholder {
  position: absolute;
  inset: 16px;
  z-index: 0;
  border: 2px dashed rgba(0, 63, 128, 0.22);
  border-radius: 16px;
  display: grid;
  align-content: start;
  justify-items: center;
  padding-top: clamp(20px, 5vh, 48px);
  pointer-events: none;
}
.mountain-placeholder span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 63, 128, 0.4);
}
.mountain-band::after {
  content: "";
  position: absolute;
  width: clamp(360px, 42vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(46px);
  right: -12%;
  bottom: -22%;
  background: radial-gradient(circle, rgba(0, 88, 179, 0.28), transparent 65%);
  animation: blobFloat 13s ease-in-out infinite;
  animation-delay: -6.5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-26px) scale(1.05); }
}

@keyframes dotDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(16px, -10px) scale(1.04); }
}

@keyframes dotBreath {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

/* ── Pola halftone — generowane w JS (main.js, dotFieldSVG) ──
   Kropki fizycznie maleją z odległością od kotwicy aż do zera,
   więc pole rozpuszcza się samo — nic się nie ucina o karty. */
.dot-field {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.dot-field > div {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  animation: dotDrift 14s ease-in-out infinite, dotBreath 9s ease-in-out infinite;
}

#oferta { overflow: hidden; }

.mountain-content { position: relative; z-index: 3; max-width: 760px; margin: 0 auto; text-align: center; }
.mountain-content p { max-width: 640px; margin: 22px auto 32px; color: var(--muted); }

/* Tytuł na szklanej karcie — ciemny granat marki, bez glow */
.mountain-content h2 {
  color: var(--purple);
  text-shadow: none;
}
.mountain-content h2 .accent-blue {
  color: var(--muted); /* #0058B3 — wystarczający kontrast na białej karcie */
}
.mountain-content p {
  text-shadow: none;
}

/* ── Offer ── */
.offer-card { min-height: 290px; padding: 32px; }
.offer-card h3 { font-size: 1.08rem; }
.offer-card .icon-circle { width: 58px; height: 58px; margin-bottom: 26px; }

/* Ikona karty oferty — delikatne ożywienie na hover */
.icon-circle { transition: transform 280ms cubic-bezier(0.34, 1.3, 0.64, 1), background 280ms ease; }
.icon-circle svg { transition: transform 280ms ease; }
.offer-card:hover .icon-circle { transform: scale(1.08) rotate(-4deg); background: rgba(128, 190, 255, 0.26); }
.offer-card:hover .icon-circle svg { transform: scale(1.06); }

/* ── Contact modal variant ── */
.contact-modal .offer-dialog { width: min(560px, 100%); grid-template-columns: 1fr; }
.contact-modal .offer-dialog-content { padding: clamp(26px, 4vw, 42px); }
.contact-modal .contact-form { width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }

/* ── Modals ── */
.offer-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 45, 92, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  backdrop-filter: blur(10px);
}

.offer-modal.is-open { opacity: 1; pointer-events: auto; }

.offer-dialog {
  position: relative;
  width: min(940px, 100%);
  /* auto zamiast sztywnych 560px — dialog rośnie do treści, scrollbar się nie pojawia */
  height: auto;
  max-height: 86vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.46);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(0, 45, 92, 0.34);
  transform: translateY(22px) scale(0.98);
  opacity: 0;
  transition: transform 320ms ease, opacity 320ms ease;
}

.offer-modal.is-open .offer-dialog { transform: translateY(0) scale(1); opacity: 1; }

/* ── Modal dots — przełączanie usług (klik w kropkę lub strzałki klawiatury) ── */
.modal-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.modal-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(13,64,115,0.18);
  transition: background 240ms ease, transform 240ms ease;
  flex: 0 0 auto;
}
/* Niewidoczny, większy obszar dotyku — kropki to jedyny pstryczek do przełączania */
.modal-dot::after { content: ""; position: absolute; inset: -12px; }

.modal-dot.active { background: var(--purple); transform: scale(1.4); }

/* Panel wizualny modala — placeholder w stylu kafelków realizacji.
   Gdy będą grafiki: podmień .offer-ph na <img> albo tło. */
.offer-dialog-image {
  position: relative;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--blue-soft) 0%, rgba(128, 190, 255, 0.24) 100%);
  transition: opacity 220ms ease;
}
.offer-dialog-image::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px dashed rgba(120, 184, 237, 0.38);
  border-radius: 12px;
  pointer-events: none;
}
.offer-dialog-image.is-switching { opacity: 0; }

.offer-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  color: var(--blue);
}
.offer-ph-icon { display: block; animation: brandFloat 9s ease-in-out infinite; }
.offer-ph-icon svg { width: 72px; height: 72px; stroke-width: 1.4; display: block; }
.offer-ph-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  opacity: 0.6;
}

.offer-dialog-content { padding: clamp(24px, 4vw, 44px); overflow-y: auto; scrollbar-width: thin; display: flex; flex-direction: column; transition: opacity 200ms ease, transform 200ms ease; }
.offer-dialog-content.is-switching { opacity: 0; transform: translateY(10px); pointer-events: none; }
.offer-dialog-content h3 { margin-bottom: 14px; font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.offer-dialog-content p { margin-bottom: 16px; }

.offer-dialog-content ul { display: grid; gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; color: #53606c; }
.offer-dialog-content li { display: flex; gap: 11px; align-items: flex-start; }
.offer-dialog-content li::before { content: ""; width: 8px; height: 8px; flex: 0 0 auto; margin-top: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(120,184,237,0.18); }

.offer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(48,66,79,0.14);
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  color: var(--ink);
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.offer-close:hover { background: var(--purple); color: #ffffff; transform: rotate(90deg); }
.offer-close svg { width: 20px; height: 20px; }

/* ── About visual / print animation ── */
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-soft) 0%, rgba(13,64,115,0.05) 100%);
  border: 1px solid rgba(120,184,237,0.2);
  overflow: hidden;
}

.print-paper {
  position: relative;
  width: 130px;
  height: 168px;
  background: #ffffff;
  border-radius: 3px;
  box-shadow: 0 18px 48px rgba(13,64,115,0.16), 0 0 0 1px rgba(120,184,237,0.22);
  padding: 20px 16px 16px;
  overflow: hidden;
}

.print-head {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--blue) 30%, var(--purple) 70%, transparent 100%);
  box-shadow: 0 0 10px rgba(120,184,237,0.9), 0 0 3px rgba(120,184,237,1);
  animation: printScan 3.2s ease-in-out infinite;
  top: 20px;
}

@keyframes printScan {
  0%   { top: 20px; opacity: 1; }
  75%  { top: 152px; opacity: 1; }
  85%  { top: 152px; opacity: 0; }
  100% { top: 20px; opacity: 0; }
}

.print-lines { display: grid; gap: 9px; }

.print-line {
  height: 7px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ink) 0%, rgba(32,34,56,0.3) 100%);
  opacity: 0;
  animation: printReveal 3.2s ease-in-out infinite;
}

.print-line:nth-child(1) { width: 88%; animation-delay: 0.18s; }
.print-line:nth-child(2) { width: 72%; animation-delay: 0.44s; }
.print-line:nth-child(3) { width: 82%; animation-delay: 0.70s; }
.print-line:nth-child(4) { width: 58%; animation-delay: 0.96s; }
.print-line:nth-child(5) { width: 78%; animation-delay: 1.22s; height: 5px; background: linear-gradient(90deg, var(--blue) 0%, rgba(120,184,237,0.3) 100%); }
.print-line:nth-child(6) { width: 48%; animation-delay: 1.48s; height: 5px; background: linear-gradient(90deg, var(--blue) 0%, rgba(120,184,237,0.3) 100%); }

@keyframes printReveal {
  0%, 12% { opacity: 0; }
  28%     { opacity: 1; }
  80%     { opacity: 1; }
  95%     { opacity: 0; }
  100%    { opacity: 0; }
}

.print-corner {
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 18px 18px 0;
  border-color: transparent var(--blue-soft) transparent transparent;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(360px, 1.38fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: start;
  position: relative;
  z-index: 1;
}

.about-section {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.about-visual-col { display: flex; flex-direction: column; }
/* Wizual ma stałą wysokość, ale prawa kolumna rośnie z treścią —
   sztywna wysokość sklejała button „Więcej pytań" z ostatnim pytaniem */
.about-visual { height: clamp(560px, 62vw, 780px); }
.about-right { display: flex; flex-direction: column; }
#faq { display: flex; flex-direction: column; min-height: 0; }
.about-copy { padding: 24px 0 0; }
.about-copy p { margin: 16px 0 0; }
.about-faq-sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0 16px; }
.faq-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.faq-more-btn { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; margin-top: 18px; padding: 10px 18px; background: none; border: 1.5px solid var(--line); border-radius: var(--radius); font-size: 0.88rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: border-color 200ms, color 200ms, background 200ms; }
.faq-more-btn:hover { border-color: var(--blue); color: var(--ink); background: var(--blue-soft); }

/* ── FAQ extra modal ── */
.faq-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(13, 43, 69, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none;
  transition: opacity 260ms ease;
}
.faq-modal-overlay.is-open { opacity: 1; pointer-events: all; }
.faq-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(13,64,115,0.18);
  width: min(680px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px 44px;
  position: relative;
  transform: translateY(12px);
  transition: transform 260ms ease;
}
.faq-modal-overlay.is-open .faq-modal { transform: translateY(0); }
.faq-modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: none; border: 1.5px solid var(--line); border-radius: 50%;
  color: var(--muted); cursor: pointer;
  transition: border-color 180ms, color 180ms;
}
.faq-modal-close:hover { border-color: var(--blue); color: var(--ink); }
.faq-modal h3 { font-size: 1.1rem; margin: 0 0 24px; color: var(--ink); }
.faq-modal .faq-list { display: grid; gap: 12px; }

/* ── FAQ ── */
.faq-list { display: grid; gap: 14px; }

details {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.82);
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
  overflow: hidden;
}

details[open] { border-color: rgba(120,184,237,0.46); background: #ffffff; box-shadow: 0 18px 38px rgba(13,64,115,0.08); }

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  color: var(--purple);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
details[open] summary { color: var(--purple-dark); }

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 1.38rem; font-weight: 500; transition: transform 220ms ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 24px; font-size: 0.96rem; overflow: hidden; height: 0; }
details[open] p { height: auto; padding-bottom: 22px; }

/* ── Contact section — brandowe tło (bez zewnętrznych zdjęć) ── */
.contact {
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #eaf2ff 100%);
}

.contact-grid { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(380px, 0.9fr);
  gap: clamp(30px, 5vw, 62px);
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.contact-copy h2 { max-width: 360px; font-size: clamp(1.5rem, 2.05vw, 2.05rem); }
/* Akcent musi się różnić od koloru nagłówka (--ink == --purple) — średni niebieski, kontrast 6.9:1 */
.contact .accent { color: var(--muted); }
.contact-copy p { max-width: 360px; margin: 16px 0 20px; font-size: 0.94rem; }

.check-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: #53606c; }
.check-list li { display: flex; align-items: center; gap: 12px; }
.check-list svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--blue); }

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 470px);
  padding: 18px;
  border: 1px solid rgba(48,66,79,0.09);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
  box-shadow: 0 22px 60px rgba(51,68,81,0.08);
  backdrop-filter: blur(12px);
}

.field {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.field:focus { border-color: rgba(120,184,237,0.86); background: #ffffff; box-shadow: 0 0 0 4px rgba(120,184,237,0.18); }
textarea.field { grid-column: 1 / -1; min-height: 96px; padding-top: 12px; resize: vertical; }
.form-submit { grid-column: 1 / -1; min-height: 44px; font-size: 0.88rem; }
.form-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* RODO checkbox */
.form-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}
.form-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--purple);
  cursor: pointer;
}
.form-consent a { color: var(--purple); text-decoration: underline; }
.form-consent a:hover { color: var(--blue); }

/* Status formularza — komunikaty wysłania */
.form-status {
  grid-column: 1 / -1;
  font-size: 0.88rem;
  line-height: 1.5;
  min-height: 0;
  padding: 0;
  border-radius: 6px;
  transition: padding 200ms ease, background 200ms ease, color 200ms ease;
}
.form-status:empty { display: none; }
.form-status.is-success {
  padding: 12px 16px;
  background: rgba(120, 184, 237, 0.18);
  color: var(--purple);
  border: 1px solid rgba(120, 184, 237, 0.45);
  font-weight: 600;
}
.form-status.is-error {
  padding: 12px 16px;
  background: rgba(220, 60, 60, 0.1);
  color: #a8302f;
  border: 1px solid rgba(220, 60, 60, 0.3);
  font-weight: 500;
}

/* Visually hidden — dostępne dla screen readerów, niewidoczne wizualnie */
.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;
}

/* Skip-to-content — pierwszy Tab pokazuje, klawiaturowi użytkownicy pomijają nawigację */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom-right-radius: 8px;
  box-shadow: 0 8px 24px rgba(13, 64, 115, 0.3);
  transform: translateY(-120%);
  transition: transform 200ms ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ── Scroll progress — cienki pasek na górnej krawędzi ekranu ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 60;
  pointer-events: none;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ── Footer ── */
.site-footer { background: #0c2340; padding: 64px 0 0; }

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(360px, 1.7fr);
  gap: clamp(40px, 8vw, 100px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { display: flex; flex-direction: column; gap: 20px; }
.footer-logo { display: inline-block; }
.footer-logo-img { height: 30px; width: auto; display: block; filter: brightness(0) invert(1); }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.88rem; line-height: 1.7; margin: 0; max-width: 260px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding-top: 4px;
}
.footer-nav-group h4 {
  color: rgba(255,255,255,0.95);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-nav-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-nav-group li, .footer-nav-group a { color: rgba(255,255,255,0.48); font-size: 0.875rem; line-height: 1.4; }
.footer-nav-group a { transition: color 180ms ease; }
.footer-nav-group a:hover { color: rgba(255,255,255,0.9); }

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  color: rgba(255,255,255,0.28);
  font-size: 0.81rem;
}
.footer-bar a { color: rgba(255,255,255,0.28); transition: color 180ms; }
.footer-bar a:hover { color: rgba(255,255,255,0.65); }

.site-footer .socials a { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65); border: 1.5px solid rgba(255,255,255,0.12); }
.site-footer .socials a:hover { background: var(--blue); color: #fff; border-color: transparent; transform: translateY(-3px); }

.socials { display: flex; gap: 10px; margin-top: 0; }

.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(0,63,128,0.25);
  border-radius: 50%;
  color: var(--purple);
  background: rgba(255,255,255,0.72);
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.socials a:hover { color: #ffffff; background: var(--blue); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

/* ── Reveal — sam translateY, bez scale (scale powodował repaint snap na końcu animacji) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1), transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* Karty oferty po reveal — przywraca smooth border i shadow na hover */
.card.reveal.is-visible {
  transition: opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 1100ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 320ms ease,
              border-color 380ms ease;
}
/* delay klasy jako fallback — JS nadpisuje je inline podczas animacji wejścia */
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }
.delay-5 { transition-delay: 400ms; }

/* ══════════════════════════════════════════════════════
   ── Glassmorphism system ──
   backdrop-filter + półprzezroczyste powierzchnie
   nad bogatymi tłami (zdjęcia gór, gradienty)
══════════════════════════════════════════════════════ */

/* Nav — wyraźny glass nad wideo hero */
.nav {
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 4px 24px rgba(13, 64, 115, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ── Mountain band — floating glass card ──
   Półprzezroczyste mrożone szkło z wyraźniejszą bielą
   i delikatną świetlistą poświatą wokół ramki.            */
.mountain-content {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(36px, 5vw, 64px) clamp(32px, 6vw, 72px);
  box-shadow: 0 18px 40px -24px rgba(0, 63, 128, 0.25);
}

/* ── Formularz kontaktowy — glass nad polem halftone ── */
.contact-form {
  background: rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 22px 60px rgba(0, 63, 128, 0.16),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ── Okna modalne — glass dialog ── */
/* Okno modala prawie nieprzezroczyste — pod spodem jest ciemna zasłona,
   która przy niższym kryciu brudzi biel na szaro-fioletowo. */
.offer-dialog {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 34px 90px rgba(0, 45, 92, 0.28),
              inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

/* Przycisk zamknięcia modala — glass */
.offer-close {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

/* Modal FAQ — prawie nieprzezroczysty (ciemna zasłona pod spodem) */
.faq-modal {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ══ Koniec Glassmorphism ══ */

/* ── Mockup showcase ── */
.mockups { background: #ffffff; overflow: hidden; }

/* Pływający mark marki w tle sekcji realizacji */
.mockups::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10%;
  width: clamp(480px, 58%, 900px);
  aspect-ratio: 16 / 11;
  background: url("../tlo-szklo.png") right center / contain no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  transform-origin: 75% 50%;
  animation: markFloat 13s ease-in-out infinite;
}

@keyframes markFloat {
  0%, 100% { transform: translateY(-50%) rotate(0deg) scale(1); }
  50%      { transform: translateY(-54%) rotate(3deg) scale(1.04); }
}

.mockups::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.55), transparent 50%);
  z-index: 0;
}

.mockups .container { position: relative; z-index: 1; }

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mockup-featured { grid-column: span 2; }

.mockup-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 16px 20px -20px rgba(51,68,81,0.3);
  transition: transform 260ms ease, box-shadow 300ms ease, border-color 260ms ease;
}

.mockup-card:hover {
  transform: translateY(-4px);
  border-color: rgba(120,184,237,0.45);
  box-shadow: 0 22px 28px -20px rgba(51,68,81,0.38);
}

/* Reveal kafelków — płynny fade. Bez tego własny transition .mockup-card
   (260ms, bez opacity) nadpisywał reveal i przezroczystość "wskakiwała" 0→1. */
.mockup-card.reveal {
  transform: none;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mockup-card.reveal.is-visible {
  transform: none;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 260ms ease, box-shadow 300ms ease, border-color 260ms ease;
}

.mockup-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--blue-soft);
}

.mockup-featured .mockup-slot { aspect-ratio: 16 / 9; }

.mockup-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.mockup-card:hover .mockup-slot img { transform: scale(1.04); }

.mockup-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--blue-soft) 0%, rgba(120,184,237,0.1) 100%);
  color: var(--blue);
  border: 2px dashed rgba(120,184,237,0.32);
  transition: background 240ms ease, border-color 240ms ease;
}

.mockup-card:hover .mockup-ph {
  background: linear-gradient(135deg, rgba(120,184,237,0.18) 0%, rgba(120,184,237,0.06) 100%);
  border-color: rgba(120,184,237,0.55);
}

.mockup-ph svg { width: 52px; height: 52px; opacity: 0.75; }
.mockup-featured .mockup-ph svg { width: 72px; height: 72px; }

.mockup-ph span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  opacity: 0.65;
}

.mockup-info { padding: 18px 22px 22px; }
.mockup-info h3 { font-size: 1rem; margin-bottom: 6px; }
.mockup-info p { font-size: 0.88rem; }

.mockup-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.mockup-cta p { font-size: 0.96rem; }

@media (max-width: 920px) {
  .mockup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mockup-featured { grid-column: span 2; }
}

@media (max-width: 640px) {
  .mockup-grid { grid-template-columns: 1fr; gap: 14px; }
  .mockup-featured { grid-column: span 1; }
  .mockup-featured .mockup-slot { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  .brand-divider { opacity: 1; transform: none; }
}

/* ── Responsive ── */
@media (max-width: 1120px) {
  .nav-menu { gap: 18px; }
  .nav-links { gap: 18px; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  :root { --container: min(100% - 32px, 760px); }
  .section { padding: 72px 0; }
  .brand-divider { padding-top: 72px; }
  .roadmap { padding-top: 36px; padding-bottom: 72px; }
  .menu-toggle { display: inline-flex; }

  .nav-menu {
    position: fixed;
    inset: 58px 0 auto 0;
    display: grid;
    justify-items: stretch;
    gap: 20px;
    padding: 28px 20px 32px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.96);
    box-shadow: 0 24px 52px rgba(13,64,115,0.14);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 260ms ease, opacity 260ms ease;
    backdrop-filter: blur(18px);
  }

  body.nav-open .nav-menu { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links { display: grid; gap: 4px; }
  .nav-links a { display: block; padding: 13px 4px; font-size: 1rem; }
  .nav-cta { width: 100%; }

  .hero {
    min-height: 100vh;
    padding-top: 120px;
    background:
      linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.94) 8%, rgba(246,250,255,0.78) 36%, rgba(120,184,237,0.16) 100%),
      url("../hero-mobile.jpg") center 4% / cover no-repeat;
  }

  /* Na mobile wideo się nie ładuje (JS) — chowamy element, tło robi robotę */
  .hero-video { display: none; }

  .hero-inner { grid-template-columns: 1fr; }

  .process-line {
    left: 39px; right: auto; top: 46px; bottom: 46px; width: 2px; height: auto;
    background: linear-gradient(180deg, rgba(120,184,237,0.18), rgba(13,64,115,0.7), rgba(120,184,237,0.18));
    transform: scaleY(0);
    transform-origin: top center;
  }

  .process-map.line-ready .process-line { transform: scaleY(1); }
  .process-line::after { inset: 0 -5px; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.9), transparent); }

  @keyframes pathShine {
    0%, 35% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    75%, 100% { transform: translateY(100%); opacity: 0; }
  }

  .process-steps { grid-template-columns: 1fr; gap: 30px; }
  .process-step { grid-template-columns: 77px minmax(0, 1fr); justify-items: start; gap: 22px; text-align: left; }
  .process-node { margin-bottom: 0; }
  .process-number { top: -8px; right: auto; left: 53px; }
  .process-step p { max-width: 100%; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-copy { max-width: 100%; }
  .about-visual-col { position: static; }
  .contact-form { width: 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
  .footer-logo-img { height: 32px; }
  .offer-dialog { grid-template-columns: 1fr; }
  /* Panel z placeholderem to dekoracja — na wąskich ekranach zabierał miejsce
     i wymuszał pasek przewijania w modalu */
  .offer-dialog-image { display: none; }
}

@media (max-width: 640px) {
  :root { --container: min(100% - 24px, 520px); }
  .nav { min-height: 56px; }
  .nav-menu { inset: 56px 0 auto 0; }
  .section { padding: 72px 0; }
  .section-title { margin-bottom: 40px; }
  .brand-divider { padding-top: 64px; }
  .roadmap { padding-top: 32px; padding-bottom: 72px; }
  h1 { font-size: clamp(1.9rem, 8.4vw, 2.76rem); }
  h2 { font-size: clamp(1.75rem, 7vw, 2.35rem); }
  .button { width: 100%; }
  .hero { min-height: calc(100vh - 56px); padding: 96px 0 70px; }
  .hero-copy p { margin: 22px 0 26px; }
  .hero-actions { width: 100%; }
  .process-map { padding-top: 0; }
  .process-line { left: 30px; }
  .process-step { grid-template-columns: 60px minmax(0, 1fr); gap: 16px; }
  .process-node { width: 60px; height: 60px; box-shadow: 0 18px 38px rgba(51,68,81,0.1), inset 0 0 0 9px var(--blue-soft); }
  .process-node svg { width: 24px; height: 24px; }
  .process-number { left: 42px; }
  .card, .offer-card { min-height: auto; padding: 28px; }
  .cards-4 { grid-template-columns: 1fr; }
  .mountain-band { padding: 72px 0; }
  .contact-form { grid-template-columns: 1fr; padding: 16px; }
  .offer-modal { padding: 14px; }
  .offer-dialog { max-height: calc(100vh - 28px); overflow-y: auto; scrollbar-width: thin; }
  .footer-logo-img { height: 28px; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 0; }

  /* ── A11y / mobile touch targets — minimum 44×44 (WCAG 2.5.5) ── */
  .hero .button { min-height: 48px; padding: 0 22px; font-size: 0.86rem; }
  .nav-cta { min-height: 44px; padding: 0 18px; font-size: 0.78rem; }
  .socials a { width: 44px; height: 44px; }
  .socials svg { width: 20px; height: 20px; }
  .footer-nav-group a { display: inline-block; padding: 8px 0; }
  .footer-bar a { display: inline-block; padding: 10px 0; }

  /* Na wąskich ekranach pola kropek właziłyby pod tekst — zostaje tylko kontakt */
  .dot-field:not(.dot-field-contact) { display: none; }
}
