/* style.css */


body {
  margin: 0;
  font-family: 'Noto Sans', sans-serif;
  background-color: #ffffff;
  color: #000;
}
html {
  scroll-behavior: smooth;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000;
  color: #fff;
  padding: 15px 30px;
}

#kontakt, #kontakt h2
{
 line-height: 2.5;
  color: white; 
}


.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5); /* Semi-transparent background */
  backdrop-filter: blur(05px);
}

.modal-content {
  background-color: linear-gradient(135deg, #c01515 100%, #f82a42 50%);
  margin: 5% auto;
  padding: 2%;
  border-radius: 8px;
  width: 50%;
  height: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation-fill-mode: forwards;
     opacity: 0;
  transform: translateY(-30px);
  text-align: center;
  background-color: #ffffff3a;
}
.modal-content h2 
{
  color: white; 
  text-align: center;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* trigger the animation when this class is present */
.modal-content.show {
  animation: fadeInDown 0.3s ease-out forwards;
}
.close {
  float: right;
  font-size: 20px;
  cursor: pointer;
}

.logo img{
  font-size: 24px;
  font-weight: bold;
  width:30%; 
  height: 20%;
}

.logo span {
  color: #b22234;
  font-weight: normal;
  margin-left: 5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 60px;
  margin: 0;
  padding: 0;
  
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; /* odległość od tekstu */
  left: 0;
  width: 0;
  height: 2px;
  background-color: #b22234;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
  text-shadow: #b22234;

}

nav a:hover {
  color: #b22234;
  font-weight: 500;
  position: relative;
  text-shadow: #b22234 4px 0 10px;
}
nav a { 
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}


.hero {
  overflow: hidden;
  background: linear-gradient(135deg, #9b2f2f 0%, #7e131f 100%);
}

.hero-inner {
  display: flex;
  min-height: 600px;
  height: 700px;
}

.hero-content,
.hero-image {
  flex: 1;
  position: relative;
}

.hero-content {
  background: linear-gradient(135deg, #000 0%, #b22234 100%);
  color: white;
  padding: 4rem;
  clip-path: polygon(30 0, 100% 0, 85% 100%, 0% 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-image {
  /* clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%); */
  overflow: hidden;
  
}

.hero-image img {
 height: 100%;
 width: 100%; 
  object-fit: cover;
  display:block;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: white;
  color: #b22234;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}


.btn-primary {
  background-color: #fff;
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #ddd;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top:7px solid #b22234;
    width: 80%;
    margin: 1em auto;
    padding: 0; 
    color: #b22234;
}

.section {
  padding: 60px 20px;
  text-align: center;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.section ul {
  list-style: none;
  padding: 0;
}

.section li {
  font-size: 18px;
  margin-bottom: 10px;
}

form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

button {
  background-color: #b22234;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}


button:hover {
  background-color: #a02030;
}

footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}


.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #b22234;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  transform: translateY(-100%);
  animation: slideDown 0.6s ease-out forwards;
}

.nav-links a {
  margin-left: 1.5rem;
  color: white;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInLink 0.5s ease-out forwards;
}

.nav-links a:nth-child(1) { animation-delay: 0.4s; }
.nav-links a:nth-child(2) { animation-delay: 0.6s; }
.nav-links a:nth-child(3) { animation-delay: 0.8s; }
.nav-links a:nth-child(4) { animation-delay: 1s; }

/* Animacje */
@keyframes slideDown {
  to {
    transform: translateY(0);
  }
}

@keyframes fadeInLink {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

    h2 {
      color: #000000;
      text-align: center;
      margin-bottom: 20px;
    }
    ul {
      list-style: none;
      padding: 0;
      max-width: 600px;
      margin: 0 auto 30px auto;
    }
    #kursy li {
      display: flex;
      justify-content: space-between;
      padding: 10px 15px;
      border: 1px solid rgba(2, 2, 2, 0.041);
      border-radius: 6px;
      margin-bottom: 8px;
      background: linear-gradient(135deg, #000 0%, #b22234 100%), rgba(248,42,66,0.05);
      color: white;
    }
    .price {
      font-weight: bold;
      color: #f8f8f8;
    }

   .section {
    text-align: center;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

/* Siatka galerii */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 220px)); /* stała szerokość kafelków */
    gap: 15px;
    margin-top: 20px;
    justify-content: center; /* wyśrodkowanie w poziomie */
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
    position:relative
}

.gallery-item img {
width: 100%;
    height: 200px;       /* wysokość wszystkich obrazków */
    object-fit: cover;   /* przycina i wypełnia proporcjonalnie */
    transition: transform 0.4s ease, filter 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.07);
    filter: brightness(0.9);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0; left: 0px;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox-img {
    max-width: 90%;
    max-height: 75%;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(255,255,255,0.2);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.lightbox-img.show {
    opacity: 1;
    transform: scale(1);
}

.closeGal {
    position: absolute;
    top: 15px; right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    font-weight: bold;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    transition: color 0.3s;
}

.prev {
    left: 40px;
}

.next {
    right: 40px;
}

.prev:hover, .next:hover, .closeGal:hover {
    color: #f0f0f0;
}

/* Miniatury w lightboxie */
.lightbox-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px;
    max-width: 90%;
}

.lightbox-thumbs img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    opacity: 0.6;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox-thumbs img:hover {
    transform: scale(1.05);
    opacity: 1;
}

.lightbox-thumbs img.active {
    border: 2px solid white;
    opacity: 1;
}
.fb-logo {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #1877f2; /* Niebieski kolor Facebooka */
  color: white;
  text-align: center;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  line-height: 20px;
}
a 
{
  color: white;
  text-decoration: underline;
}
p {
  text-align: center;
}
.opinia-box 
{
height: 400px;
width:100%;
display: block;
overflow:hidden;
}
.qr {
  width: 200px;           /* szerokość kontenera na obrazek */
  height: 200px;          /* wysokość kontenera na obrazek */
  margin: 20px auto 0;    /* odstęp od tekstu i centrowanie */
}
.qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;    /* dopasuj proporcje, bez rozciągania */
  display: block;         /* usuń odstęp inline */
}

/* --- RESPONSYWNOŚĆ --- */

/* Tablety i mniejsze ekrany */
@media (max-width: 1024px) {
  nav ul {
    gap: 30px;
  }
  .hero-inner {
    flex-direction: column;
    height: auto;
  }
  .hero-content {
    clip-path: none;
    padding: 2rem;
    text-align: center;
  }
  .hero-image img {
    height: auto;
    max-height: 400px;
  }
}

/* Telefony */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
  }
  .logo img {
    width: 150px;
    height: auto;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  button, .btn-primary {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
  }
  #kursy li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .gallery-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .modal-content {
    width: 90%;
    height: auto;
    padding: 20px;
  }
  .qr {
    width: 150px;
    height: 150px;
  }
}
