/* Global Settings */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  margin: 0;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
  color: #333;
  background: #f0f1f4;
}

/* ---=== Grid System & Helpers ===--- */
/* Universal Grid Container */
.grid-container, .info-section, .info-b-section, .footer-columns, .two-column-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem; /* Ustawiono na 1.5rem */
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
  .grid-container, .info-section, .info-b-section, .footer-columns, .two-column-list {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-container, .info-section, .info-b-section, .footer-columns, .two-column-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Column Span Helpers */
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-12 { grid-column: span 12; }

/* Responsive Spans */
@media (max-width: 1024px) {
  .tablet-span-6 { grid-column: span 6; }
  .tablet-span-3 { grid-column: span 3; }
}
@media (max-width: 768px) {
  .mobile-span-3 { grid-column: span 3; }
}


/* ---=== Component Styles ===--- */
/* Navbar (Flexbox is better suited here) */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: transparent;
  color: #fff;
  z-index: 1000;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.navbar.scrolled {
  background-color: #f0f1f4;
  color: #000;
}

.logo a {
  font-size: 2rem;
  font-weight: bold;
  color: inherit;
  text-decoration: none;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.menu a {
  color: inherit;
  text-decoration: none;
  transition: color 0.5s ease;
}

/* Hamburger, Overlay & Mobile Menu */
.hamburger { display: none; cursor: pointer; /* ...pozostałe style bez zmian... */ }
.nav-menu { /* ...style bez zmian... */ }
.overlay { /* ...style bez zmian... */ }

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  height: 100vh;
  padding: 1.5rem;
  *color: #fff;
}

.background-video {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  *backdrop-filter: blur(90px);
  *border-radius: 12px;
}
.hero-grid-col { grid-column: span 7; }
.hero-col {     grid-column: span 5;
    backdrop-filter: blur(90px);
    border-radius: 1.5rem;
    Padding: 1.5rem;
    color:white;
}

.hero-heading-main { font-size: 3rem;
     font-size: 3rem;
    font-weight: normal;
    font-family: 'spectral', serif;
    line-height: 3rem;
    color: white;
}

@media (max-width: 1024px) { .hero-grid { grid-template-columns: repeat(6, 1fr); } .hero-grid-col, .hero-col { grid-column: span 6; } }
@media (max-width: 768px) { .hero-grid { grid-template-columns: repeat(3, 1fr); } .hero-grid-col, .hero-col { grid-column: span 3; } }


/* Informational Sections */
.info-container {
  padding: 2rem;
  background-color: #f0f1f4;
}

.info-section, .info-b-section {
  padding: 2rem 1.5rem;
  background-color: #f0f1f4;
}

.info-box {
  grid-column: span 4; /* 3 boxes per row on desktop */
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 1024px) {
  .info-box { grid-column: span 3; } /* 2 boxes per row on tablet */
}
@media (max-width: 768px) {
  .info-box { grid-column: span 3; } /* 1 box per row on mobile */
}

/* Text Content & Headings */
.text-content { padding: 0 2rem; }
.subheading { font-size: 4rem; margin: 0; font-family: 'spectral', serif; font-weight: lighter; padding-left: 2rem; }
.main-heading { font-size: 1.5rem; margin: 1.5rem 0; font-weight: normal; }
.grid-container.four-steps { padding: 1.5rem;}

/* Two-Column List */
.two-column-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.two-column-list li {
  grid-column: span 6; /* 2 items per row */
  display: flex;
  align-items: center;
}
.two-column-list li img, .two-column-list li svg { margin-right: 10px; }

.two-column-list .button-container {
  grid-column: span 12; /* Full width */
  text-align: center;
  margin-top: 20px;
}

@media (max-width: 1024px) {
  .two-column-list li { grid-column: span 6; }
  .two-column-list .button-container { grid-column: span 6; }
}
@media (max-width: 768px) {
  .two-column-list li { grid-column: span 3; }
  .two-column-list .button-container { grid-column: span 3; }
}


/* Neumorphic Button */
.neumorphic-button {
  border: none;
  border-radius: 12px;
  padding: 15px 30px;
  font-size: 16px;
  background: #f0f1f4;
  box-shadow: 5px 5px 10px #cccccc, -5px -5px 10px #ffffff;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 900;
}


.neumorphic-button-all {
  border: none;
  border-radius: 12px;
  padding: 15px 30px;
  font-size: 16px;
  background: #f0f1f4;
  box-shadow: 5px 5px 10px #cccccc, -5px -5px 10px #ffffff;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 900;
  width: 100%
}

.neumorphic-button-main {
  border: none;
  border-radius: 12px;
  padding: 15px 30px;
  font-size: 1.17em;
  background: #667D61;
  *transparent:10%;
  box-shadow: 5px 5px 10px #414A3F, -5px -5px 10px #C6D6C3;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: bold;
  width: 100%;
  *color: white;
}
.neumorphic-button:active { box-shadow: inset 5px 5px 10px #cccccc, inset -5px -5px 10px #ffffff; }
.neumorphic-button-all:active { box-shadow: inset 5px 5px 10px #cccccc, inset -5px -5px 10px #ffffff;}
.neumorphic-button-main:active { box-shadow: inset 5px 5px 10px #414A3F, inset -5px -5px 10px #C6D6C3;}



/* Splide.js Carousel */
.splide-grid-container { padding: 1.5rem 1.5rem; }
.splide__container { background: #f0f1f4; }
.splide__slide { background: #f0f1f4; }
.slide-caption { background-color: #f0f1f4; }
.slide-caption_table {
    border: 1px solid #ffffff;
    height: 100%;
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    border-spacing: 1px;
    text-align: left;
}
caption {
    display: table-caption;
    text-align: -webkit-left;
    unicode-bidi: isolate;
}
.splide__container {
font-family: sans-serif;
background: #fff;
margin: 0;
padding: 2rem;
}





.splide__slide {
overflow: hidden;
*background: #f8f8f8;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.splide__slide img,
.splide__slide video {
border-radius: 12px;
width: 100%;
height: auto;
display: block;
}





.slide-caption-main {
padding: 0.5rem 1rem 1rem;
font-size: 0.9rem;
text-align: left;
*background-color: #fff;
width: 100%;
box-sizing: border-box;
height: 40rem;
}

.slide-caption {
padding: 0.5rem 1rem 1rem;
font-size: 0.9rem;
text-align: left;
*background-color: #fff;
width: 100%;
box-sizing: border-box;
}

.caption {
    display: table-caption;
    text-align: left !important;
    unicode-bidi: isolate;
}

.slide-caption strong {
display: block;
font-weight: bold;
}

.slide-caption span {
color: #666;
font-size: 0.85rem;

}



.custom-arrows {

display: flex;

justify-content: flex-end;

gap: 1rem;

margin-bottom: 1rem;

}



.custom-arrows button {

background: none;

border: none;

cursor: pointer;

padding: 0;

}



.splide__pagination {
margin-top: 1rem;
text-align: center;
}



.splide {
*max-width: 1000px;
margin: auto;
}



.splide__track {
padding: 0 1rem;
overflow: visible;
}


/* Footer */
.footer {
  padding: 3rem 1.5rem;
  background-image: url('../assets/back_01.jpg');
  background-color: #1E3A8A;
  background-size: cover;
  color: #fff;
}

.footer-container {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  padding: 1.5rem;
  border-radius: 16px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.footer-brand { grid-column: span 12; text-align: center; } /* Full width brand */

.footer-columns {
  grid-column: span 12;
}

.footer-column {
  grid-column: span 3;
  text-align: left;
}

.footer-column h3 { font-size: 1rem; margin-bottom: 1rem; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column a { font-size: 0.9rem; text-decoration: none; color: inherit; }

@media (max-width: 1024px) {
  .footer-column { grid-column: span 3; } /* 2 per row */
}
@media (max-width: 768px) {
  .footer-column { grid-column: span 3; } /* 1 per row */
}

.footer-bottom {
  grid-column: span 12;
  border-top: 1px solid rgba(255,255,255,0.3);
  margin-top: 2rem;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.85rem;
  width: 100%;
}

.button {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background-color: red;
color: #fff;
padding: 0.75rem 1.5rem;
border-radius: 5px;
font-size: 1rem;
text-decoration: none;
transition: background-color 0.3s ease;

}

.button:hover {
backdrop-filter: blur(30px);
background-image: url(../assets/back_01.jpg);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}

.d-box {padding: 1rem;}

/* ==================================================
   Typography
================================================== */

/* Heading Styles */
.h1, h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.h2, h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.h3, h3 {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.h4, h4 {
  font-size: 1.5rem;
  margin-block-start: 0.5rem;
  margin-block-end: 0.5rem;

}
.h5, h5 {
  font-size: 1rem;
    font-weight: normal;
      margin-block-start: 1rem;
  margin-block-end: 0.5rem;


}
.h6, h6 {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.pic-ctn {
  padding: 1.5rem;
}

.pic-ctn img,
.pic-ctn .pic {
  display: block;
  width: 100%;       /* dopasuj szerokość do kontenera lub strony */
  max-width: 100%;   /* nie przekracza szerokości ekranu */
  height: auto;      /* zachowuje proporcje */
  object-fit: cover;
}


/* ===== MOBILE-ONLY FIXES (≤768px) ================================= */
@media (max-width: 768px) {

  /* 1) Pasek i hero */
  .navbar {
    height: 64px;
    padding: 0 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .hero {
    min-height: 100svh;        /* bezpieczne 100% ekranu na iOS/Android */
    padding-top: 72px;         /* miejsce na navbar */
  }
  .hero-grid { padding: .75rem; }
  .hero-col, .hero-grid-col { grid-column: span 3; }

  /* 2) Menu mobilne (hamburger + szuflada) */
  .menu { display: none; }     /* chowamy desktopowy układ listy */
  .hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px; height: 28px; cursor: pointer;
  }
  .hamburger span {
    display: block; height: 3px; width: 100%;
    background: currentColor; border-radius: 2px;
  }
  .nav-menu {
    position: fixed; inset: 64px 0 0 auto; right: -100%;
    width: min(85vw, 360px);
    background: #f0f1f4; color: #111;
    box-shadow: -8px 0 24px rgba(0,0,0,.15);
    transition: right .3s ease;
    padding: 1rem 1.25rem; z-index: 1100;
  }
  .nav-menu.active { right: 0; }
  .nav-menu .menu {
    display: flex; flex-direction: column; gap: .75rem;
    margin: 0; padding: 0; list-style: none;
  }
  .overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.35);
    opacity: 0; visibility: hidden; transition: opacity .3s ease;
    z-index: 1000;
  }
  .overlay.active { opacity: 1; visibility: visible; }

  /* 3) Siatka i odstępy */
  .grid-container, .info-section, .info-b-section, .footer-columns, .two-column-list {
    gap: 1rem;
  }
  .grid-container.four-steps { padding: 1rem; }

  /* 4) Typografia – skalowanie */
  .subheading {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    line-height: 1.15; padding-left: 0;
  }
  .main-heading {
    font-size: clamp(1.05rem, 3.5vw, 1.25rem);
    line-height: 1.55;
  }
  .hero-heading-main {
    font-size: clamp(1.6rem, 6.2vw, 2.2rem);
    line-height: 1.2; font-weight: 400;
  }

  /* 5) Przyciski – wygodne w dotyku */
  .neumorphic-button,
  .neumorphic-button-main {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  /* 6) Slidery i media */
  .splide__slide img,
  .splide__slide video,
  .pic-ctn img,
  .pic-ctn .pic {
    width: 100%; max-width: 100%; height: auto; display: block;
  }
  .splide__slide video { aspect-ratio: 16 / 9; object-fit: cover; }

  /* 7) Podpisy/tabele – bez sztywnych wysokości i z przewijaniem */
  .slide-caption-main { height: auto; padding-bottom: .75rem; }
  .slide-caption-table, .slide-caption_table {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }

  /* 8) Lista dwukolumnowa – na mobile po 1 elemencie w wierszu */
  .two-column-list li { grid-column: span 3; }
  .two-column-list .button-container { grid-column: span 3; }

  /* 9) Stopka – kolumny jedna pod drugą */
  .footer-column { grid-column: span 3; }
  .footer-container { padding: 1rem; }
  .footer-bottom { gap: .75rem; }

  /* 10) Lżejsze efekty na urządzeniach dotykowych */
  @media (hover: none) {
    .button:hover { background-image: none; backdrop-filter: none; }
  }
}
