:root{
  --bg:            #F6FAF9;
  --bg-alt:        #EAF4F2;
  --surface:       #FFFFFF;
  --ink:           #16262A;
  --gray:          #56666B;
  --gray-light:    #8CA0A2;
  --line:          #DCEAE7;

  --teal-deep:     #0B7A72;
  --teal:          #14B8A6;
  --teal-bright:   #2FD4B8;
  --mint:          #8FE3C7;

  --grad-node: linear-gradient(135deg, #0B9C93 0%, #2FD4B8 45%, #8FE3C7 100%);

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body:    "Inter", "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", monospace;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;

  --shadow-s: 0 2px 10px rgba(11, 58, 53, 0.06);
  --shadow-m: 0 12px 32px rgba(11, 58, 53, 0.10);

  --container: 1160px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
body{ max-width: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 3px rgba(47,212,184,0.22);
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 0.5em 0;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 600; }
h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
h3{ font-size: 1.2rem; font-weight: 600; }
p{ margin: 0 0 1em 0; color: var(--gray); }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section{ padding: 88px 0; }
@media (max-width: 720px){ section{ padding: 56px 0; } }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:focus-visible{ outline: 3px solid var(--teal-bright); outline-offset: 2px; }
.btn-primary{
  background: var(--grad-node);
  color: #fff;
  box-shadow: var(--shadow-s);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn-ghost{
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--line);
}
.btn-ghost:hover{ border-color: var(--teal); background: var(--bg-alt); }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.site-header::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 250, 249, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand{ display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img{ height: 46px; width: auto; flex-shrink: 0; }
.brand-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.main-nav{ display: flex; align-items: center; gap: 4px; }
.main-nav a{
  padding: 10px 16px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover{ background: var(--bg-alt); color: var(--ink); }
.main-nav a.active{ background: var(--teal-deep); color: #fff; }
.nav-cta{ display: none; }

.nav-item-new{ position: relative; display: inline-flex; align-items: center; }
.nav-item-new > a{ flex: 1; }
.nav-badge-new{
  position: absolute; top: -9px; right: 6px;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap;
  color: #fff; background: linear-gradient(135deg, #7C3AED, #A78BFA);
  padding: 2px 8px; border-radius: 100px;
  box-shadow: 0 2px 8px rgba(124,58,237,0.4);
  pointer-events: none;
  animation: nav-badge-pulse 2.4s ease-in-out infinite;
}
@keyframes nav-badge-pulse{
  0%, 100%{ transform: scale(1); }
  50%{ transform: scale(1.08); }
}

.header-cta{ display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.status-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--teal-deep);
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.status-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-bright);
  animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(47,212,184,0.45); }
  50%{ box-shadow: 0 0 0 6px rgba(47,212,184,0); }
}

/* Nawigacja ma teraz 7 pozycji — poniżej 1300px zdejmujemy dekoracyjną plakietkę statusu, żeby nic się nie ścieśniało/nie ucinało. */
@media (max-width: 1300px){
  .status-pill{ display: none; }
}

.nav-toggle{ display: none; }

@media (max-width: 1020px){
  .main-nav{
    position: fixed; inset: 78px 0 0 0;
    background: var(--surface);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 6px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
    z-index: 100;
  }
  .main-nav.open{ opacity: 1; pointer-events: auto; transform: translateY(0); }
  .main-nav a{ padding: 14px 16px; font-size: 1.05rem; }
  .nav-item-new{ display: block; width: 100%; }
  .nav-badge-new{ position: static; display: inline-block; vertical-align: middle; margin: 0 0 0 10px; }
  .nav-cta{
    display: flex; align-items: center; justify-content: center;
    margin-top: 10px; background: var(--grad-node); color: #fff !important;
    font-weight: 600; box-shadow: var(--shadow-s);
  }
  .status-pill{ display: none; }
  .nav-toggle{
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--surface);
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
    content: ""; display: block; width: 18px; height: 2px; background: var(--ink);
    position: relative; transition: transform 0.2s ease;
  }
  .nav-toggle span::before{ position: absolute; top: -6px; }
  .nav-toggle span::after{ position: absolute; top: 6px; }
}

@media (max-width: 560px){
  .site-header .container{ padding: 0 16px; }
  .header-cta{ gap: 8px; }
  .header-cta .btn-primary{ display: none; }
  .brand-name{ font-size: 1rem; }
  .brand img{ height: 38px; }
}

/* ---------- Node motif divider ---------- */
.node-divider{
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin: 0 auto 40px auto;
}
.node-divider .dot{ width: 9px; height: 9px; border-radius: 50%; background: var(--grad-node); }
.node-divider .dot:nth-child(2){ width: 14px; height: 14px; }
.node-divider .bar{ width: 46px; height: 2px; background: var(--line); }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--ink);
  color: #C9D8D6;
  padding: 64px 0 28px 0;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
}
@media (max-width: 800px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px){ .footer-grid{ grid-template-columns: 1fr; gap: 28px; } }
.site-footer h4{ color: #fff; font-size: 1rem; margin-bottom: 1em; }
.site-footer .brand-name{ color: #fff; }
.site-footer p, .site-footer a{ color: #A9BEBB; font-size: 0.92rem; }
.site-footer ul{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a:hover{ color: var(--mint); }
.footer-bottom{
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: #7E9490;
}
.footer-legal-links{ display: flex; gap: 20px; }
.footer-legal-links a:hover{ color: var(--mint); }

/* ---------- Zgoda marketingowa (rabat za zapis e-maila) ---------- */
.consent-marketing{
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.85rem; color: var(--gray);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 14px 16px; margin-bottom: 22px;
}
.consent-marketing input{ margin-top: 3px; }
.consent-marketing .discount-badge{
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; color: #fff;
  background: var(--grad-node); padding: 2px 9px; border-radius: 100px; margin-right: 6px;
  white-space: nowrap; vertical-align: middle;
}

/* ---------- Page transition (kurtyna między podstronami) ---------- */
.page-transition-overlay{
  position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  background: var(--teal);
  transform: translateY(0);
  pointer-events: none;
  will-change: transform;
  display: flex; align-items: center; justify-content: center;
}
.pt-blur-bg{
  position: absolute; inset: -30px;
  background:
    radial-gradient(ellipse 75% 65% at center, var(--mint) 0%, var(--teal-bright) 40%, var(--teal) 72%, var(--teal-deep) 100%);
  filter: blur(50px);
}
.pt-logo{
  position: relative; z-index: 1;
  width: 220px; height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.25));
}
.page-transition-overlay.pt-animate{
  transition: transform 0.55s cubic-bezier(.76,0,.24,1);
}
.page-transition-overlay.pt-hide{ transform: translateY(-100%); }
.page-transition-overlay.pt-show{ transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .page-transition-overlay{ display: none !important; }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress{
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad-node);
  z-index: 999;
  transition: width 0.12s ease-out;
}
@media (prefers-reduced-motion: reduce){ .scroll-progress{ transition: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }

/* ---------- Cards ---------- */
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: transparent; }

.icon-badge{
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--grad-node);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: #fff;
}
.icon-badge svg{ width: 24px; height: 24px; }

/* ---------- Tags ---------- */
.tag{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--bg-alt);
  color: var(--teal-deep);
  border: 1px solid var(--line);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero{
  padding: 64px 0 48px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.page-hero .container{ max-width: 780px; }

/* ---------- Forms ---------- */
.field{ margin-bottom: 22px; }
.field label{
  display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--ink);
}
.field .hint{ font-weight: 400; color: var(--gray-light); font-size: 0.82rem; }
.field input, .field textarea, .field select{
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(20,184,166,0.14);
}
.field textarea{ resize: vertical; min-height: 130px; }
.field select{
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356666B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
