:root {
  --bg: #f7f7f8;
  --text: #1d1f24;
  --muted: #5b5f6a;
  --accent: #6366f1;
  /* fiolet pod logo */
  --accent-soft: #f5f3ff;
  /* delikatne tło ikon jak na screenie */
  --card: #ffffff;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('Space_Grotesk/static/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

header {
  position: sticky;
  top: 0;
  background: rgba(247, 247, 248, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.05em;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
}

nav ul li a.active {
  position: relative;
  color: var(--accent);
  font-weight: 600;
}

nav ul li a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  /* odległość pod linkiem */
  left: 0;
  width: 100%;
  height: 3px;
  /* grubość paska */
  background: var(--accent);
  /* niebieski */
  border-radius: 4px;
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.lang-btn {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.page-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

main {
  padding-top: 2rem;
}

section {
  padding: 4rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  margin-bottom: 1rem;
}

p.lead {
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}

.btn-secondary {
  border-color: var(--accent);
  color: var(--accent);
}

.hero {
  display: grid;
  gap: 2.5rem;
  align-content: start;
  grid-template-columns: minmax(0, 1fr);
}

.hero-visual {
  min-height: 320px;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.35));
  border: 1px solid rgba(37, 99, 235, 0.35);
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  max-width: 100%;
  grid-column: 1 / -1;
  margin-top: 0;
}

.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(2px);
}

.hero-visual::before {
  width: 70%;
  height: 40%;
  top: 15%;
  left: 10%;
}

.hero-visual::after {
  width: 50%;
  height: 25%;
  bottom: 15%;
  right: 10%;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.services-grid .card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  min-height: 3.2em;
  /* wyrównuje wysokość tytułów między kartami */
}

.card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.card h3 {
  font-size: 1.05rem;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  /* było większe */
  min-height: 3.2em;
  text-align: left;
}

.card p {
  margin-top: 0;
  /* kasuje „szparę” nad opisem */
}



.icon {
  min-width: 72px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  margin: 0 0 1rem;
}

.tagline {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2rem;
}

.tile-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step {
  position: relative;
  padding-left: 2.5rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.value {
  flex: 1 1 200px;
  padding: 1.5rem 1.6rem;
  border-radius: 1.25rem;

  background: #f4f6ff;
  border: 1px solid rgba(99, 102, 241, 0.45);

  font-weight: 600;
  color: var(--accent);

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  transition: 0.25s ease;
}

.value:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.18);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  font-size: 0.9rem;
  color: var(--muted);
  background: #fff;
}

form {
  display: grid;
  gap: 1rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-card {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.contact-info p {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.problems-list {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
@media (max-width: 768px) {

  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;    
  }

  /* NAV jako kotwica dla menu */
  header nav {
    position: static;
  }

  /* DROPDOWN MENU */
/* DROPDOWN MENU */
header nav ul {
  list-style: none;
  position: absolute;
  top: calc(100% + 0.8rem);

  right: 0.9rem;
  left: auto;
  transform: none;

  background: #ffffff;
  padding: 1rem 1.3rem;
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  flex-direction: column;
  gap: 0.9rem;

  /* 👇 tylko to zmieniasz */
  min-width: 180px;
  width: min(170px, calc(100% - 2rem));

  display: none;
  z-index: 999;
}

  header nav ul.open {
    display: flex;
  }

  header nav ul li a {
    font-size: 0.98rem;
  }

  /* 🔥 BURGER — ważne! */
  .nav-toggle {
    display: block;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
  }

  .hero {
    text-align: left;
  }

  .logo-img {
    height: 44px;
  }
}

@media (max-width: 900px) {
  .page-layout {
    padding: 0 1.25rem 3rem;
    display: block;
  }

  main {
    padding-top: 2rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Desktop: menu między logo a PL/EN */
/* Desktop – menu na środku, ale dopiero od szerokości 1024px */
@media (min-width: 1024px) {
  .nav-container > .logo {
    order: 0;
  }

  .nav-container > nav {
    order: 1;
    flex: 1;
    display: flex;
    justify-content: center;
  }

  .nav-container > nav ul {
    justify-content: center;
  }

  .nav-actions {
    order: 2;
  }
}

.card h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  min-height: 3.2em;
  text-align: left;
}

.card {
  transition: transform 0.22s ease-out,
    box-shadow 0.22s ease-out,
    border-color 0.22s ease-out;
  cursor: pointer;
}

.card:hover,
.card.is-active {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  border-color: rgba(99, 102, 241, 0.35);
}

.service-card {
  cursor: pointer;
  border-radius: 18px;
  transition: transform 0.22s ease-out, box-shadow 0.22s ease-out, border-color 0.22s ease-out;
}

.service-card:hover,
.service-card.is-active {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  border-color: rgba(99, 102, 241, 0.35);
}

.service-category {
  margin-bottom: 3rem;
}

.service-category:last-of-type {
  margin-bottom: 0;
}

.service-category-title {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.service-category-desc {
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.service-card .icon {
  width: 42px;
  height: 42px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card .icon i {
  width: 100%;
  height: 100%;
  stroke-width: 1.8;
  color: #6366f1;
  /* Twój fiolet */
}

/* Kontener ikony – bez animacji, tylko rozmiar / centrowanie */
.icon {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* „Snake” – pasek fioletu, który przesuwa się wzdłuż ramki */
.icon::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  /* grubość ramki */
  border-radius: inherit;

  /* długi, przesuwany gradient */
  background: linear-gradient(90deg,
      rgba(99, 102, 241, 0) 0%,
      #6366f1 25%,
      #8b5cf6 50%,
      #6366f1 75%,
      rgba(99, 102, 241, 0) 100%);
  background-size: 300% 100%;
  animation: icon-border-snake 4s linear infinite;

  /* maska -> widać tylko obwódkę, środek jest przeźroczysty */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* sama ikona w środku */
.icon i {
  width: 30px;
  height: 30px;
  color: #111827;
  stroke-width: 1.8;
  z-index: 1;
}

/* snake: przesuwamy gradient w poziomie */
@keyframes icon-border-snake {
  0% {
    background-position: 0% 0;
  }

  100% {
    background-position: 300% 0;
  }
}

/* Układ numer + ikona */

/* Numer + ikona w jednej ramce snake */
.step-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  width: 90px;
  height: 42px;
  padding: 0 12px;

  border-radius: 999px;
}

/* Numer w ramce */
.step-icon .step-num {
  font-size: 1rem;
  font-weight: 700;
  color: #010101;
  line-height: 1;
}

/* Ikona */
.step-icon i {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

/* honeypot - ukryte pole na spam-boty */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* komunikaty z formularza kontaktowego */
#contactStatus {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

#contactStatus.success {
  color: #16a34a;
  /* zielony */
}

#contactStatus.error {
  color: #dc2626;
  /* czerwony */
}

/* usuwa brzydki domyślny żółto-pomarańczowy outline */
input:focus,
textarea:focus {
  outline: none !important;
  border-color: #6366f1 !important;
  /* Twój fiolet */
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
}

/* usuwa domyślną, pomarańczową ramkę po walidacji */
input:invalid,
textarea:invalid {
  outline: none !important;
  box-shadow: none !important;
}

/* stany przycisku po wysłaniu */
.btn-success {
  background: #16a34a !important;
  /* zielony */
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.35);
}

.btn-error {
  background: #dc2626 !important;
  /* czerwony */
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.35);
}

/* dymek z komunikatem pod przyciskiem */
#contactStatus {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.2em;
  transition: all 0.2s ease;
}

#contactStatus.success {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

#contactStatus.error {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.12);
  color: #b91c1c;
}

/* --- CONTACT FORM TOAST / PREMIUM FEEDBACK --- */

#contactStatus {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.2em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* animowane wejście/wyjście */
#contactStatus.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

/* success bubble */
#contactStatus.success {
  color: #166534;
  background: rgba(34, 197, 94, 0.16);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  display: inline-block;
}

/* error bubble */
#contactStatus.error {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.16);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  display: inline-block;
}

/* premium state guzika */
.btn-success {
  background: #16a34a !important;
  border-color: #16a34a !important;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.45);
}

.btn-error {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.45);
}


/* status pod przyciskiem (dla a11y, można zostawić minimalistycznie) */
#contactStatus {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  min-height: 1.2em;
  opacity: 0.6;
}

/* premium state guzika */
.btn-success {
  background: #16a34a !important;
  border-color: #16a34a !important;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.45);
}

.btn-error {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.45);
}

/* --- STATUS POD PRZYCISKIEM (ANIMOWANY DYMek) --- */

#contactStatus {
  margin-top: 1rem;
  font-size: 0.95rem;
  min-height: 1.2em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* animacja wejścia */
#contactStatus.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

/* PREMIUM: gradient jak w tamtym toast */
#contactStatus.success {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.3rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #22c55e, #15803d);
  color: #ecfdf5;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

#contactStatus.error {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.3rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #f97373, #b91c1c);
  color: #fef2f2;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.35);
}

/* premium state guzika */
.btn-success {
  background: #16a34a !important;
  border-color: #16a34a !important;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.45);
}

.btn-error {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.45);
}

/* --- COOKIE BANNER --- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111827;
  color: #f9fafb;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner .cookie-text {
  font-size: 14px;
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 8px 18px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.cookie-btn.accept {
  background: #6366f1;
  color: white;
}

.cookie-btn.accept:hover {
  background: #4f46e5;
}

.cookie-btn.decline {
  background: #374151;
  color: white;
}

.cookie-btn.decline:hover {
  background: #4b5563;
}

.cookie-banner.hidden {
  display: none;

}

.contact-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin: 1.5rem 0;
}


section {
  scroll-margin-top: 60px;
  /* albo 100/120px – jak Ci się lepiej podoba */
  
}
/* wyrównanie odstępu hero (#start) z widokiem po kliknięciu w menu */
#start {
  margin-top: -70px;                 /* tyle samo co scroll-margin-top */
  padding-top: calc(4rem + 30px);    /* 4rem = Twoje obecne section padding-top */
}
/* kontakt: przygotuj form jako kontener pod toast */
#contactForm {
  position: relative;
  padding-bottom: 4rem; /* miejsce na dymek pod przyciskiem */
}
/* toast ma być "nad" formularzem, bez przesuwania layoutu */
#contactStatus {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;        /* siedzi w dolnej części formularza */
  margin-top: 0;    /* żeby nie dokładac odstępu */
}

/* klasy success/error zostawiasz jak są – tylko wygląd */