/* ==================================================
   Base / Reset
================================================== */

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

body {
  font-family: 'Lato', Arial, sans-serif;
  margin: 0;
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 1.5rem;      /* bazowy tekst */
  color: #333;
  background: #f0f1f4;
}

/* ==================================================
   Grid System
================================================== */

.grid-container,
.info-section,
.info-b-section,
.footer-columns,
.two-column-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.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; }

/* ==================================================
   Navbar
================================================== */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 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: 1.5rem;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

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

.lang-active {
  display: none;
}

/* Hamburger + overlay (desktop: ukryte) */
.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
}

.nav-menu {
  /* desktop: zwykły flex – wersja mobilna w media query */
}

.overlay {
  display: none;
}

/* ==================================================
   Hero
================================================== */

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

.hero_1 {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.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;
}

.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: #fff;
}

.hero-heading-main {
  font-size: 3rem;           /* ~48px na dużych ekranach */
  font-weight: normal;
  font-family: 'spectral', serif;
  line-height: 3rem;
  color: #fff;
}

/* ==================================================
   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 boxy w rzędzie na desktopie */
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.text-content {
  padding: 0 2rem;
}

.subheading {
  font-size: 3rem;
  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 elementy w rzędzie na desktopie */
  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;
  text-align: center;
  margin-top: 20px;
}

/* ==================================================
   Buttons
================================================== */

.neumorphic-button,
.neumorphic-button-all,
.neumorphic-button-main {
  border: none;
  border-radius: 12px;
  padding: 15px 30px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lato', Arial, sans-serif;
}

/* Szare przyciski */
.neumorphic-button,
.neumorphic-button-all {
  background: #f0f1f4;
  box-shadow: 5px 5px 10px #cccccc, -5px -5px 10px #ffffff;
  font-weight: 900;
}

.neumorphic-button:active,
.neumorphic-button-all:active {
  box-shadow: inset 5px 5px 10px #cccccc, inset -5px -5px 10px #ffffff;
}

/* Główny przycisk w hero */
.neumorphic-button-main {
  font-size: 1.5rem;
  background: #667D61;
  box-shadow: 5px 5px 10px #414A3F, -5px -5px 10px #C6D6C3;
  font-weight: bold;
  width: 100%;
  color: #fff;
}

.neumorphic-button-main:active {
  box-shadow: inset 5px 5px 10px #414A3F, inset -5px -5px 10px #C6D6C3;
}

/* Button z karuzeli – pełna szerokość kolumny */
.neumorphic-button-all {
  width: 100%;
}

/* Czerwony CTA */
.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: 1.5rem;
  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;
}

/* ==================================================
   Splide – common styles
================================================== */

.splide-grid-container {
  padding: 1.5rem;
}

.splide__container {
  font-family: sans-serif;
  background: #fff;
  margin: 0;
  padding: 2rem;
}

.splide__slide {
  background: #f0f1f4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

.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: 1.5rem;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

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

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

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

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

.slide-caption_table {
  border: 1px solid #ffffff;
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  border-spacing: 1px;
  text-align: left;
}

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

.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 {
  margin: auto;
}

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

/* ==================================================
   Splide – karuzela #splide (4 typy hal + przyciski)
================================================== */

/* Każdy slajd to kolumna: media u góry, caption pod spodem */
#splide .splide__slide {
  display: flex;
  flex-direction: column;
}

/* Media w slajdzie – wspólna wysokość (desktop) */
#splide .splide__slide > video,
#splide .splide__slide > img {
  width: 100%;
  height: 660px;           /* dostosuj w razie potrzeby (np. 320) */
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Caption: tekst + przycisk jako kolumna */
#splide .slide-caption-main,
#splide .slide-caption-mainsz {
  padding: 0.5rem 1rem 1rem;
  font-size: 1.5rem;
  text-align: left;
  width: 100%;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  gap: 1rem;

  flex: 1 1 auto;          /* caption „zajmuje” resztę wysokości slajdu */
}

/* Tabela z tekstem wypełnia górną część captionu */
#splide .slide-caption-table {
  flex: 1 1 auto;
}

/* Kontener z przyciskiem jest doklejony do dołu captionu */
#splide .right-column {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  align-items: flex-end;
  margin-top: auto;
}

/* ==================================================
   Splide – druga karuzela (#splide2)
================================================== */

#splide2 .splide__slide img,
#splide2 .splide__slide video {
  width: 100%;
  height: 660px;          /* stała wysokość dla mediów (desktop) */
  object-fit: cover;
  border-radius: 12px;
}

#splide2 .slide-caption {
  min-height: 8rem;       /* wspólne pole pod podpisy */
}

/* Pozostałe karuzele (#splide3, #splide4) korzystają z common styles */

/* ==================================================
   Picture container
================================================== */

.pic-ctn {
  padding: 1.5rem;
}

.pic-ctn img,
.pic-ctn .pic {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==================================================
   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;
}

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

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

.footer-column h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column a {
  font-size: 1.5rem;
  text-decoration: none;
  color: inherit;
}

.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: 1.5rem;
  width: 100%;
}

/* ==================================================
   Typography – desktop (bazowe)
================================================== */

.h1,
h1 {
  font-size: 2.5rem;      /* ~40px */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.h2,
h2 {
  font-size: 2rem;        /* ~32px */
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.h3,
h3 {
  font-size: 1.75rem;     /* ~28px */
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.h4,
h4 {
  font-size: 1.5rem;      /* ~24px */
  margin-block-start: 0.5rem;
  margin-block-end: 0.5rem;
}

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

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

.d-box {
  padding: 1rem;
}

/* ==================================================
   Subpage Hero (simple)
================================================== */

.sub-heroa {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 50rem;
  width: 100%;
  padding: 1.5rem;
  color: #fff;
  overflow: hidden;
}

.sub-heroa .background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: -1;
}

.sub-heroa .hero-grid {
  position: relative;
  z-index: 1;
}

/* ==================================================
   Breakpoints
   - Large desktop: domyślne style
   - Medium (≤1200px)
   - Tablet (≤1024px)
   - Mobile (≤768px)
================================================== */

/* Medium (laptopy, mniejsze desktopy) */
@media (max-width: 1200px) {

  .hero-heading-main {
    font-size: 2.4rem;
    line-height: 2.6rem;
  }

  .info-box {
    grid-column: span 4;
  }

  /* trochę mniejsze nagłówki na średnich ekranach */
  h1,
  .h1 {
    font-size: 2.2rem;    /* ~35px */
  }

  h2,
  .h2 {
    font-size: 1.8rem;    /* ~29px */
  }

  h3,
  .h3 {
    font-size: 1.5rem;    /* ~24px */
  }
}

/* Tablet */
@media (max-width: 1024px) {

  .grid-container,
  .info-section,
  .info-b-section,
  .footer-columns,
  .two-column-list {
    grid-template-columns: repeat(6, 1fr);
  }

  .hero-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .hero-grid-col,
  .hero-col {
    grid-column: span 6;
  }

  .info-box {
    grid-column: span 3;  /* 2 boxy w rzędzie */
  }

  .two-column-list li {
    grid-column: span 6;
  }

  .two-column-list .button-container {
    grid-column: span 6;
  }

  .footer-column {
    grid-column: span 3;  /* 2 kolumny w rzędzie */
  }
}

/* Mobile */
@media (max-width: 768px) {

  /* Navbar + hero offset */
  .navbar {
    height: 64px;
    padding: 0 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .hero {
    min-height: 100svh;
    padding-top: 72px;        /* miejsce na navbar */
  }

  .hero-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0.75rem;
  }

  .hero-col,
  .hero-grid-col {
    grid-column: span 3;
  }

  /* Mobile menu */
  .menu {
    display: none;
  }

  .hamburger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 28px;
  }

  .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,0.15);
    transition: right 0.3s ease;
    padding: 1rem 1.25rem;
    z-index: 1100;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu .menu {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
    display: block;
  }

  .overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Grid na mobile */
  .grid-container,
  .info-section,
  .info-b-section,
  .footer-columns,
  .two-column-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .grid-container.four-steps {
    padding: 1rem;
  }

  /* Typografia – skala */
  .subheading {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
    line-height: 1.15;
    padding-left: 0;
  }

  .main-heading {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    line-height: 1.55;
  }

  .hero-heading-main {
    font-size: clamp(1.6rem, 6.2vw, 2.2rem);
    line-height: 1.2;
    font-weight: 400;
  }

  /* Nagłówki – bezpieczne rozmiary na telefonie */
  h1,
  .h1 {
    font-size: clamp(1.8rem, 6vw, 2.1rem);
    line-height: 1.25;
  }

  h2,
  .h2 {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    line-height: 1.3;
  }

  h3,
  .h3 {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    line-height: 1.35;
  }

  h4,
  .h4 {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  /* Captiony w karuzelach – min. ~14–15px */
  .slide-caption,
  .slide-caption-main {
    font-size: 1.5rem;
  }

  .slide-caption span {
    font-size: 1.5rem;
  }

  /* Przyciski – pełna szerokość */
  .neumorphic-button,
  .neumorphic-button-main {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  /* 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;
  }

  /* Splide #splide – bez sztywnej wysokości media na mobile */
  #splide .splide__slide > video,
  #splide .splide__slide > img,
  #splide2 .splide__slide > video,
  #splide2 .splide__slide > img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  #splide .slide-caption-main,
  #splide .slide-caption-mainsz {
    flex: 0 0 auto;
  }

  #splide .right-column {
    min-width: 0;
    margin-top: 0.75rem;
  }

  .slide-caption-table,
  .slide-caption_table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Lista – po jednym elemencie w rzędzie */
  .two-column-list li {
    grid-column: span 3;
  }

  .two-column-list .button-container {
    grid-column: span 3;
  }

  /* Stopka – jedna kolumna */
  .footer-column {
    grid-column: span 3;
  }

  .footer-container {
    padding: 1rem;
  }

  .footer-bottom {
    gap: 0.75rem;
  }
}

/* Drobna optymalizacja na urządzenia dotykowe */
@media (hover: none) {
  .button:hover {
    background-image: none;
    backdrop-filter: none;
  }
}
