/* =========================
   RESET + PODSTAWY
========================= */
* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
  color: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: url("../images/background.jpg") center / cover no-repeat fixed;
  position: relative;
}

/* Overlay tła – NIE BLOKUJE KLIKÓW */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 60, 0.45);
  z-index: 0;
  pointer-events: none;
}

/* =========================
   LAYOUT
========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
}

main {
  flex: 1;
  position: relative;
  z-index: 2;
}

/* =========================
   HEADER
========================= */
.site-header {
  position: relative;
  z-index: 3;
  background: rgba(10, 25, 45, 0.7);
  backdrop-filter: blur(6px);
  height: 90px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* =========================
   LOGO – SMOOTH HOVER (PREMIUM)
========================= */
.brand {
  background: #ffffff;
  padding: 0.5rem 0.9rem;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.22);

  /* KLUCZ */
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;

  will-change: transform;
}
.brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.32);
}


.brand:hover {
  box-shadow:
    0 10px 26px rgba(0,0,0,0.28),
    0 0 0 1px rgba(11,58,102,0.15);
}


.logo {
  height: 58px;
  width: auto;
  max-width: none;
  transition: transform 0.3s ease, filter 0.3s ease;
  display: block;
}



/* =========================
   NAV
========================= */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #e5eef7;
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  transition: background 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.15);
}

.nav-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 2rem 0;
}

.hero-box {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 18px;
  padding: 1.6rem;
  position: relative;
  z-index: 2;
}

.hero-box h1 {
  margin: 0;
  font-size: 2rem;
  color: #ffffff;
}

.hero-subtitle {
  margin-top: 0.4rem; 
  font-size: 1.8rem !important;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 25px;
}

.hero-cta {
  margin-top: 1.2rem;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  background: #0b3a66;
  color: #ffffff;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.15s ease;
}

.btn:hover {
  background: #0e4a80;
  transform: translateY(-2px);
}

/* =========================
   PRODUCTS
========================= */
.product-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  width: 100%;
}

.tile {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  width: 100%;
}

.tile h3 {
  color: #0b3a66;
  margin-top: 0;
}

.tile p {
  color: #475569;
}

/* =========================
   PARTNERS
========================= */
.partners {
  margin: 3rem 0;
}

.partners .container {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.25);
}



.partners h3 {
  color: #0f172a;
  text-align: center;
  margin-bottom: 1.5rem;
}

.partners-slider {
  overflow: hidden;
}

.slide-track {
  display: flex;
  gap: 3rem;
  animation: scroll 70s linear infinite;
}

.slide-track img {
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* =========================
   CONTACT
========================= */
.contact-section {
  width: 100%;
}

.contact-box {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  color: #0f172a;
}

.contact-info p {
  color: #334155;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
}

.contact-form form {
  display: grid;
  gap: 0.8rem;
}

input,
textarea {
  width: 100%;
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

/* =========================
   ABOUT PAGE - BLUR BACKGROUND
========================= */
.about .container {
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

.about .container h2 {
  font-size: 2rem;
  color: #ffffff;
  margin-top: 0;
}

.about .container p {
  font-size: 1.5rem;
  color: #e5eef7;
  line-height: 1.7;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  position: relative;
  z-index: 2;
  background: rgba(10, 25, 45, 0.7);
  backdrop-filter: blur(6px);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.2rem 0;
}

.footer-nav {
  display: flex;
  gap: 1.2rem;
}

.site-footer a {
  color: #e5eef7;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;                        /* ← DODAJ */
    right: 0;                       /* ← DODAJ */
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0;               /* ← ZMIEŃ z 16px na 0 */
    padding: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    z-index: 9999;
    width: 100%;                    /* ← DODAJ */
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.6rem;
  }

  .main-nav a {
    color: #0f172a;
    font-weight: 600;
    display: block;
    text-align: center;
    background: rgba(11, 60, 109, 0.05);
    border: 1.5px solid rgba(11, 60, 109, 0.15);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    margin-bottom: 0.4rem;
    transition: all 0.25s ease;
  }

  .main-nav a:hover {
    background: rgba(11, 60, 109, 0.12);
    border-color: rgba(11, 60, 109, 0.35);
    transform: translateX(3px);
  }

  .product-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
  }
  
  .about .container {
    padding: 1.5rem;
  }
  
  .about .container h2 {
    font-size: 1.5rem;
  }
  
  .about .container p {
    font-size: 1.1rem;
  }
}

@media (hover: none) {
  .tile:hover {
    transform: none;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.82);
  }

  .tile:hover::before {
    border-color: transparent;
  }
}



/* =========================
   LOGO – PRZYWRÓCENIE WYGLĄDU
========================= */
.brand {
  background: #ffffff;
  padding: 0.5rem 0.9rem;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* =========================
   HOVER – KAFELKI PRODUKTÓW
========================= */
.tile {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(4px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

/* efekt hover */
.tile:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(11, 58, 102, 0.35);
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: border-color 0.25s ease;
  pointer-events: none;
  z-index: 1;
}


.tile:hover::before {
  border-color: rgba(11, 58, 102, 0.45);
}

/* nagłówek reaguje na hover */
.tile h3 {
  transition: color 0.25s ease;
}

.tile:hover h3 {
  color: var(--primary);
}

.tile {
  position: relative;
  z-index: 1;
}

.tile h3,
.tile p {
  position: relative;
  z-index: 2;
}

.tile h3 {
  color: #0b3a66 !important;
}

.tile p {
  color: #475569 !important;
}

.tile:hover h3 {
  color: #082f55 !important;
}

.tile:hover p {
  color: #334155 !important;
}

/* =========================
   RAMKA / BOX – CTA PRODUKTOWE
========================= */
.product-cta {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 1.6rem 2rem;
  margin: 2.5rem auto 3rem;
  max-width: 1100px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
}

/* tekst */
.product-cta p {
  color: #e5eef7;
  font-size: 1.05rem;
  margin: 0 0 1.2rem 0;
  line-height: 1.6;
}

/* przycisk */
.product-cta .btn {
  background: var(--primary);
  padding: 0.7rem 1.6rem;
}

.product-cta .btn:hover {
  background: var(--primary-hover);
}

.product-cta .btn {
  margin-top: 1rem;
}

/* =========================
   UJEDNOLICENIE PRZYCISKÓW FORMULARZA
========================= */
button.btn {
  appearance: none;
  -webkit-appearance: none;
  border: none;

  background: #0b3c6d;
  color: #ffffff;

  padding: 0.65rem 1.4rem;
  border-radius: 10px;

  font-weight: 600;
  font-size: 1rem;
  line-height: 1;

  cursor: pointer;
  box-shadow: 0 6px 16px rgba(11, 60, 109, 0.35);
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

button.btn:hover {
  background: #125ea3;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 60, 109, 0.45);
}

button.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(11, 60, 109, 0.35);
}

/* =========================
   UJEDNOLICENIE CZCIONKI PRZYCISKÓW
========================= */
.btn,
button.btn {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================
   GLOBALNY STYL PRZYCISKÓW (A + BUTTON)
========================= */
.btn,
button.btn {
  appearance: none;
  -webkit-appearance: none;

  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;

  background: #0b3c6d;
  color: #ffffff;

  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  border: none;

  cursor: pointer;
  box-shadow: 0 6px 16px rgba(11, 60, 109, 0.35);
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn:hover,
button.btn:hover {
  background: #125ea3;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 60, 109, 0.45);
}

.btn:active,
button.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(11, 60, 109, 0.35);
}

/* =========================
   PRZYCISKI FORMULARZA – ROZRÓŻNIENIE AKCJI
========================= */

/* wspólna baza */
.btn {
  appearance: none;
  -webkit-appearance: none;

  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;

  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  border: none;

  cursor: pointer;
  transition: all 0.2s ease;
}

/* WYŚLIJ – akcja główna */
.btn-primary {
  background: #0b3c6d;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(11, 60, 109, 0.35);
}

.btn-primary:hover {
  background: #125ea3;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 60, 109, 0.45);
}

/* WYCZYŚĆ – akcja pomocnicza */
.btn-secondary {
  background: transparent;
  color: #0b3c6d;
  border: 1.5px solid rgba(11, 60, 109, 0.35);
}

.btn-secondary:hover {
  background: rgba(11, 60, 109, 0.08);
  border-color: #0b3c6d;
}

/* układ */
.form-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

/* =========================
   FORMULARZ – WYŚLIJ vs WYCZYŚĆ (FIX 100%)
========================= */

button.btn {
  appearance: none;
  -webkit-appearance: none;

  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;

  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  border: none;

  cursor: pointer;
  transition: all 0.2s ease;
}

/* WYŚLIJ – akcja główna */
button.btn-send {
  background: #0b3c6d;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(11, 60, 109, 0.35);
}

button.btn-send:hover {
  background: #125ea3;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 60, 109, 0.45);
}

/* WYCZYŚĆ – akcja pomocnicza */
button.btn-clear {
  background: transparent;
  color: #0b3c6d;
  border: 2px solid rgba(11, 60, 109, 0.35);
}

button.btn-clear:hover {
  background: rgba(11, 60, 109, 0.08);
  border-color: #0b3c6d;
}

/* układ */
.form-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

/* =========================
   PARTNERZY – PŁYNNA TAŚMA (BEZ PRZESKOKÓW)
========================= */

.partners-slider {
  overflow: hidden;
  width: 100%;
}

.slide-track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.slide-track img {
  height: 60px;
  margin-right: 3rem;
  flex-shrink: 0;
  object-fit: contain;
}

/* PŁYNNA, NIESKOŃCZONA ANIMACJA */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* =========================
   GLOBALNE WYMUSZENIE CZCIONKI – CAŁA STRONA
========================= */
html, body,
button, input, textarea, select,
a, p, span, li,
h1, h2, h3, h4, h5, h6 {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

