:root{
  --blue:#1d4ed8;
  --blue2:#2563eb;
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --line:#e2e8f0;
  --radius:16px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  font-size:16.5px;
  line-height:1.65;
}

.container{
  width:min(1100px, 92%);
  margin:0 auto;
}

/* ===== HEADER ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 0;
}

.brand-text{ line-height:1.05; }
.brand-name{ font-weight:900; font-size:22px; letter-spacing:.2px; }
.brand-sub{ font-size:14px; color:var(--muted); font-weight:600; margin-top:2px; }

.nav{
  display:flex;
  gap:18px;
  align-items:center;
}
.nav a{
  color:var(--text);
  text-decoration:none;
  font-weight:700;
}
.nav a:hover{ text-decoration: underline; }

.nav-cta{
  background: var(--blue);
  color:#fff !important;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid rgba(29,78,216,.25);
  box-shadow: 0 10px 20px rgba(29,78,216,.20);
  text-decoration:none !important;
}

.nav-toggle{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-size:18px;
  cursor:pointer;
}

/* ===== HERO ===== */
.hero{
  position:relative;
  min-height:78vh;
  display:flex;
  align-items:center;
}
.hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,.75), rgba(255,255,255,.35));
}
.hero-content{
  position:relative;
  padding: 72px 0;
}

.hero-card{
  max-width: 900px;
  background:#fff;
  padding: 40px 44px;
  border-radius:22px;
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 20px 60px rgba(15,23,42,.14);
}

.hero-card h1{
  margin:0 0 14px;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height:1.12;
  letter-spacing:-0.02em;
}

.hero-card p{
  margin:0 0 14px;
  color:#334155;
}

.hero-card .lead{
  color: var(--text);
  font-weight:800;
}

/* ===== BUTTONS ===== */
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:999px;
  font-weight:800;
  text-decoration:none !important;
  border:1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn.primary{
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color:#fff;
  border-color:transparent;
  box-shadow: 0 14px 28px rgba(29,78,216,.25);
}

.btn.ghost{
  background: rgba(255,255,255,.92);
  color: var(--text);
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(15,23,42,.14);
}
.btn:active{ transform: translateY(0); }

/* ===== SECTIONS (więcej przestrzeni) ===== */
.section{ padding: 96px 0; }
.section.alt{ padding: 104px 0; background:#f9fbff; }

.section h2{
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing:-0.01em;
  margin:0 0 24px;
}

/* ===== LAYOUTS ===== */
.grid-2{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items:center;
}
.grid-2 > div{ min-width:0; }

.image{
  width:100%;
  max-width: 560px;
  justify-self:end;
  border-radius:24px;
  border:1px solid rgba(29,78,216,.10);
  box-shadow: 0 26px 70px rgba(15,23,42,.16);
}

/* ===== O NAS ===== */
#o-nas p{
  font-size:17px;
  line-height:1.75;
  color:#334155;
  margin:0 0 14px;
  max-width: 64ch;
}
#o-nas .container.grid-2 > div{
  padding: 6px 0 6px 18px;
  border-left: 4px solid rgba(29,78,216,.22);
}
.muted{ color: var(--muted); }

/* ===== OFERTA ===== */
#oferta{
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(29,78,216,.10), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(37,99,235,.08), transparent 55%),
    #f9fbff;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card{
  background:#fff;
  padding:30px;
  border-radius:24px;
  border:1px solid rgba(29,78,216,.14);
  box-shadow: 0 22px 60px rgba(15,23,42,.12);
  position:relative;
  overflow:hidden;
  min-height: 280px; /* równa wysokość */
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:6px;
  background: linear-gradient(90deg, var(--blue), var(--blue2));
}

.card h3{
  font-size:22px;
  margin: 6px 0 16px;
  display:flex;
  align-items:center;
  gap:10px;
}

.card h3::before{
  content:"";
  width:10px; height:10px;
  border-radius:999px;
  background: var(--blue2);
  box-shadow: 0 0 0 6px rgba(37,99,235,.12);
}

/* ikonki per karta */
#oferta .card:nth-child(1) h3::after{ content:"  📘"; font-size:18px; }
#oferta .card:nth-child(2) h3::after{ content:"  👥"; font-size:18px; }
#oferta .card:nth-child(3) h3::after{ content:"  🧾"; font-size:18px; }

.card ul{
  margin:0;
  padding-left:20px;
  font-size:16px;
  line-height:1.8;
  color:#334155;
}
.card li{ margin:8px 0; }

.card:hover{
  transform: translateY(-3px);
  box-shadow: 0 30px 80px rgba(15,23,42,.16);
  border-color: rgba(29,78,216,.22);
}

/* ===== DLACZEGO MY ===== */
#dlaczego-my{
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(29,78,216,.08), transparent 55%),
    #ffffff;
}

.why-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.why-item{
  background:#fff;
  padding: 18px 18px 18px 54px;
  border-radius: 22px;
  border: 1px solid rgba(29,78,216,.12);
  box-shadow: 0 18px 55px rgba(15,23,42,.10);
  position: relative;
  font-size: 16px;
  line-height: 1.5;
}

.why-item::before{
  content:"✓";
  position:absolute;
  left:18px; top:18px;
  width:28px; height:28px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(37,99,235,.12);
  border: 1px solid rgba(37,99,235,.18);
  color: var(--blue);
  font-weight:900;
}

/* ===== KONTAKT ===== */
#kontakt{
  background:
    radial-gradient(1100px 550px at 80% -5%, rgba(29,78,216,.10), transparent 55%),
    #f9fbff;
}

.contact-card{
  background:#fff;
  border: 1px solid rgba(29,78,216,.12);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 22px 60px rgba(15,23,42,.10);
}

#kontakt p{
  font-size:17px;
  line-height:1.75;
  color:#334155;
}
#kontakt strong{
  color:var(--text);
  font-size:18px;
}

iframe{
  width:100%;
  min-height: 340px;
  border:0;
  border-radius: 24px;
  border: 1px solid rgba(29,78,216,.10);
  box-shadow: 0 22px 60px rgba(15,23,42,.10);
}

/* ===== FOOTER ===== */
.footer{
  padding:30px 0;
  border-top:1px solid var(--line);
  text-align:center;
  color:var(--muted);
}

/* ===== SCROLL REVEAL (tylko gdy JS działa) ===== */
html.js .reveal{
  opacity:0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 700ms ease, transform 700ms ease, filter 700ms ease;
  will-change: opacity, transform, filter;
}
html.js .reveal.is-visible{
  opacity:1;
  transform: translateY(0);
  filter: blur(0);
}

html.js .stagger > *{
  opacity:0;
  transform: translateY(14px);
  transition: opacity 650ms ease, transform 650ms ease;
}
html.js .reveal.is-visible .stagger > *{
  opacity:1;
  transform: translateY(0);
}
html.js .reveal.is-visible .stagger > *:nth-child(1){ transition-delay:.10s; }
html.js .reveal.is-visible .stagger > *:nth-child(2){ transition-delay:.20s; }
html.js .reveal.is-visible .stagger > *:nth-child(3){ transition-delay:.30s; }
html.js .reveal.is-visible .stagger > *:nth-child(4){ transition-delay:.40s; }
html.js .reveal.is-visible .stagger > *:nth-child(5){ transition-delay:.50s; }
html.js .reveal.is-visible .stagger > *:nth-child(6){ transition-delay:.60s; }

@media (prefers-reduced-motion: reduce){
  html.js .reveal, html.js .stagger > *{
    transition:none !important;
    transform:none !important;
    filter:none !important;
    opacity:1 !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px){
  .cards{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  #o-nas .container.grid-2 > div{
    border-left:none;
    padding-left:0;
  }
  .image{
    max-width: 100%;
    justify-self: start;
  }
}

@media (max-width: 720px){
  .nav{ display:none; }
  .nav.open{
    display:flex;
    position:absolute;
    right:16px;
    top:70px;
    background:#fff;
    border:1px solid var(--line);
    border-radius: 14px;
    padding:14px;
    flex-direction:column;
    gap:12px;
    box-shadow: 0 18px 40px rgba(15,23,42,.12);
  }
  .nav-toggle{ display:inline-flex; }
}

/* === HERO: tytuł zawsze w 1 linii na desktopie === */
@media (min-width: 980px){
  .hero-card{
    max-width: 980px;
  }

  .hero-card h1{
    white-space: nowrap;
    font-size: clamp(28px, 2.6vw, 42px); /* minimalnie mniejszy, żeby się zmieścił */
  }
}

/* ===== Footer link (Polityka prywatności) ===== */
.footer-inner{
  display:flex;
  justify-content:center;          
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
}

.footer a,
.footer a:visited{
  color: var(--blue) !important;  
  text-decoration: underline;
  font-weight: 700;
}

.footer a:hover{
  text-decoration-thickness: 2px;
}
