:root{
  --bg: #f6f9ff;
  --bg-2: #eef5ff;
  --surface: #ffffff;
  --text: #0b1b33;
  --muted: #52627a;

  --primary: #0b63d6;
  --primary-2: #1d8cff;
  --accent: #20b26b;
  --line: rgba(11, 27, 51, 0.12);

  --shadow: 0 18px 45px rgba(11, 27, 51, 0.12);
  --radius: 18px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 300px at 15% 10%, rgba(29, 140, 255, 0.16), transparent 60%),
    radial-gradient(900px 300px at 85% 15%, rgba(32, 178, 107, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 60%, var(--bg) 100%);
}

a{ color: inherit; text-decoration: none; }

.container{
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
}

/* Skip link dla accessibility */
.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 9999;
}
.skip-link:focus{ left: 16px; }

/* Header */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(246, 249, 255, 0.72);
  border-bottom: 1px solid var(--line);
}

.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  position: relative;
}

/* Brand */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  z-index: 52;
}

.brand__logo{
  height: 34px;
  width: auto;
  display: block;
}

.brand__tag{
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(11, 99, 214, 0.10);
  border: 1px solid rgba(11, 99, 214, 0.25);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Hamburger - UKRYTY NA DESKTOP */
.menu-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 52;
  position: relative;
}

.menu-toggle span{
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle--active span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle--active span:nth-child(2){
  opacity: 0;
}

.menu-toggle--active span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

/* Nawigacja - domyślnie widoczna (desktop) */
.nav{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a{
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover{
  background: rgba(11, 99, 214, 0.08);
  color: var(--text);
}

.nav__cta{
  color: var(--primary) !important;
  background: rgba(32, 178, 107, 0.10);
  border: 1px solid rgba(32, 178, 107, 0.25);
}

/* Hero Section */
.hero{
  padding: 54px 0 28px;
}

.hero__grid{
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 10px;
}

.eyebrow::before{
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px rgba(11, 99, 214, 0.10);
}

.hero h1{
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 58ch;
}

.hero__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.18s ease, background 0.18s ease;
  user-select: none;
  text-align: center;
}

.btn:active{ 
  transform: translateY(1px); 
}

.btn--primary{
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  box-shadow: 0 14px 30px rgba(11, 99, 214, 0.20);
}

.btn--primary:hover{
  box-shadow: 0 18px 40px rgba(11, 99, 214, 0.26);
}

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

.btn--ghost:hover{
  background: #fff;
}

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

.pill{
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

/* Panel */
.panel{
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel__title{
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.checklist{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 15px;
}

.checklist li{
  position: relative;
  padding-left: 26px;
}

.checklist li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}

/* Sections */
.section{
  padding: 56px 0;
}

.section--alt{
  background: linear-gradient(180deg, rgba(238,245,255,0.7), rgba(255,255,255,0.0));
  border-top: 1px solid rgba(11, 27, 51, 0.06);
  border-bottom: 1px solid rgba(11, 27, 51, 0.06);
}

.section__head{
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section__head h2{
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.4px;
}

.section__head p{
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
  line-height: 1.65;
}

/* Cards */
.cards{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.card{
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(11, 27, 51, 0.08);
}

.card h3{
  margin: 0 0 8px;
  font-size: 16px;
}

.card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.card--accent{
  border-color: rgba(32, 178, 107, 0.35);
  background: linear-gradient(180deg, rgba(32,178,107,0.10), rgba(255,255,255,0.85));
}

/* Solutions */
.solution-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.solution{
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 14px 40px rgba(11, 27, 51, 0.09);
}

.solution__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.solution h3{
  margin: 8px 0 10px;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.solution__lead{
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.badge{
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(11, 99, 214, 0.10);
  border: 1px solid rgba(11, 99, 214, 0.25);
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
}

.badge--green{
  background: rgba(32, 178, 107, 0.12);
  border-color: rgba(32, 178, 107, 0.28);
  color: #117a48;
}

.badge--blue{
  background: rgba(29, 140, 255, 0.12);
  border-color: rgba(29, 140, 255, 0.25);
  color: #0b63d6;
}

.badge--dark{
  background: rgba(11, 27, 51, 0.06);
  border-color: rgba(11, 27, 51, 0.14);
  color: #0b1b33;
}

.bullets{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.bullets li{ 
  margin: 8px 0; 
}

/* CTA */
.cta{
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 99, 214, 0.22);
  background: linear-gradient(135deg, rgba(11,99,214,0.10), rgba(32,178,107,0.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cta__content h3{
  margin: 0 0 6px;
  font-size: 18px;
}

.cta__content p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 70ch;
}

/* Contact */
.contact-centered{
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-centered h2{
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.4px;
}

.contact-lead{
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 24px;
}

.contact__box{
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 14px 40px rgba(11, 27, 51, 0.09);
  text-align: left;
}

.contact__item{
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(11, 27, 51, 0.08);
}

.contact__item:last-child{ 
  border-bottom: 0; 
}

.label{
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.link{
  color: var(--primary);
  font-weight: 800;
  word-break: break-word;
}

.value{ 
  color: var(--text); 
  font-weight: 700;
  line-height: 1.5;
}

/* Footer */
.footer{
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  background: rgba(246, 249, 255, 0.65);
}

.footer__inner{
  display: grid;
  gap: 6px;
  text-align: center;
}

.footer p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer__muted{
  color: rgba(82, 98, 122, 0.9);
  font-weight: 700;
}

/* ===================================================
   RESPONSIVE - TABLET (max-width: 960px)
   =================================================== */
@media (max-width: 960px){
  .hero__grid{ 
    grid-template-columns: 1fr; 
    gap: 18px;
  }

  .cards{ 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
  }

  .solution-grid{ 
    grid-template-columns: 1fr; 
    gap: 12px;
  }

  .section{
    padding: 42px 0;
  }

  .hero{
    padding: 38px 0 22px;
  }
}

/* ===================================================
   RESPONSIVE - MOBILE (max-width: 768px)
   =================================================== */
@media (max-width: 768px){
  .container{ 
    width: min(1140px, calc(100% - 32px)); 
  }

  /* POKAŻ HAMBURGER NA MOBILE */
  .menu-toggle{
    display: flex;
  }

  /* NAWIGACJA MOBILNA - SLIDE FROM RIGHT */
  .nav{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    max-width: 85vw;
    background: rgba(246, 249, 255, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--line);
    box-shadow: -10px 0 40px rgba(11, 27, 51, 0.15);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px 24px 24px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 51;
  }

  .nav--open{
    transform: translateX(0);
  }

  .nav a{
    padding: 14px 16px;
    font-size: 16px;
    border-radius: 12px;
  }

  .nav__cta{
    margin-top: 8px;
  }

  /* Hero mobile */
  .hero h1{
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.12;
  }

  .lead{
    font-size: 15px;
  }

  .hero__actions{
    flex-direction: column;
    gap: 10px;
  }

  .btn{
    width: 100%;
    padding: 14px 18px;
  }

  .hero__meta{
    justify-content: center;
  }

  .pill{
    font-size: 12px;
    padding: 7px 11px;
  }

  /* Sections mobile */
  .section{
    padding: 36px 0;
  }

  .section__head h2{
    font-size: 24px;
  }

  .section__head p{
    font-size: 15px;
  }

  /* Cards mobile */
  .cards{ 
    grid-template-columns: 1fr; 
    gap: 12px;
  }

  .card{
    padding: 14px;
  }

  /* Solutions mobile */
  .solution{
    padding: 16px;
  }

  .solution h3{
    font-size: 17px;
  }

  .solution__lead{
    font-size: 14px;
  }

  .bullets{
    font-size: 13px;
    padding-left: 16px;
  }

  /* CTA mobile */
  .cta{
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .cta__content h3{
    font-size: 17px;
    text-align: center;
  }

  .cta__content p{
    font-size: 14px;
    text-align: center;
  }

  .cta .btn{
    width: 100%;
  }

  /* Contact mobile */
  .contact-centered h2{
    font-size: 24px;
  }

  .contact-lead{
    font-size: 15px;
  }

  .contact__box{
    padding: 14px;
  }

  /* Footer mobile */
  .footer p{
    font-size: 13px;
  }
}

/* ===================================================
   RESPONSIVE - SMALL MOBILE (max-width: 480px)
   =================================================== */
@media (max-width: 480px){
  .container{ 
    width: min(1140px, calc(100% - 24px)); 
  }

  .brand{
    min-width: 180px;
  }

  .brand__logo{
    height: 28px;
  }

  .brand__tag{
    height: 26px;
    padding: 0 8px;
    font-size: 11px;
  }

  .hero h1{
    font-size: 24px;
  }

  .eyebrow{
    font-size: 10px;
  }

  .eyebrow::before{
    width: 8px;
    height: 8px;
  }

  .section__head h2{
    font-size: 22px;
  }

  .card h3, .solution h3{
    font-size: 16px;
  }

  .nav{
    width: 100%;
    max-width: 100vw;
  }
}