/* === Reset i podstawowe ustawienia === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  color: #fff;
  background: #000;
  overflow-x: hidden;
  line-height: 1.6;
}

/* === Sekcja HERO z wideo === */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
    flex-direction: column;
padding: 1rem;
  justify-content: flex-end; /* <-- to wypchnie zawartość na dół */

}

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* === HERO Grid === */
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  padding: 2rem;
  width: 100%;
  max-width: 100%;
  z-index: 1;
  position: relative;
  word-wrap: break-word;


}

.col-span-12-h { grid-column: span 12;}
.col-span-12 { grid-column: span 12;       backdrop-filter: blur(50px);
  border-radius: 15px;
  padding: 1rem;}
.col-span-6  { grid-column: span 6; }
.col-span-3  { grid-column: span 3; }

/* === Teksty === */
.hero-heading-main {
  font-size: 3rem;
  font-weight: 400;
  font-family: 'Spectral', serif;
  line-height: 1.2;
  color: white;

}

.hero-subheading {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

/* === Przycisk === */
.neumorphic-button-main {
  display: inline-block;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: white;
  border: none;
  border-radius: 15px;
  box-shadow: 5px 5px 10px #414A3F, -5px -5px 10px #C6D6C3;
  color: black;
  cursor: pointer;
  transition: background 0.3s ease;
  max-width: 100%;
}

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

/* === Media Queries === */

/* Tablety i mniejsze laptopy */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }
  .col-span-6 { grid-column: span 6; }
  .col-span-3 { grid-column: span 3; }

  .hero-heading-main { font-size: 2.5rem; }
  .hero-subheading { font-size: 1.75rem; }
  .hero-text { font-size: 1.125rem; }
}

/* Smartfony poziomo / duże smartfony */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 1rem;
    gap: 0.75rem;
  }
  .col-span-6,
  .col-span-3 { grid-column: span 3; }

  .hero-heading-main { font-size: 2rem; }
  .hero-subheading { font-size: 1.5rem; }
  .hero-text,
  a { font-size: 1rem; }

  .neumorphic-button-main {
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
  }
}

/* Smartfony pionowo / bardzo małe ekrany */
@media (max-width: 480px) {
  .hero-grid {
    grid-template-columns: repeat(1, 1fr);
    padding: 1rem 0.75rem;
    gap: 0.5rem;
  }

  .col-span-12,
  .col-span-6,
  .col-span-3 {
    grid-column: span 1;
  }

  .hero-heading-main { font-size: 1.5rem; }
  .hero-subheading { font-size: 1.25rem; }
  .hero-text,
  a { font-size: 0.95rem; }

  .neumorphic-button-main {
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
  }
}
@media (max-width: 480px) {
  .hero-grid {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .neumorphic-button-main {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    margin: 0 auto;
  }

  .neumorphic-button-main a {
    display: block;
    word-break: break-word;
  }
}
@media (max-width: 480px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.75rem;
    gap: 1rem;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
  }

  .col-span-12,
  .col-span-6,
  .col-span-3,
  .col-span-12-h {
    width: 100%;
    grid-column: span 1;
  }

  .hero-heading-main {
    font-size: 1.5rem;
  }

  .hero-subheading {
    font-size: 1.25rem;
  }

  .hero-text {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .neumorphic-button-main {
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
    width: 100%;
    max-width: 300px;
    margin-top: 0.5rem;
  }

  .neumorphic-button-main a {
    display: block;
    width: 100%;
    word-break: break-word;
  }
}
