  .nice-banners {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
  }

  .nice-banner {
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #000;
    background: #fff;
    min-height: 350px;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  }
.nice-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}
  
  .nice-banner h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 300;
  }

.nice-banner img {
  width: 60%;
  height: auto;
  object-fit: contain;
  margin-top: 10px;
  display: block;
}

.banner-images-nice {
  display: flex;
  gap: 16px;
}

.banner-images-nice img {
  width: 22%;
  object-fit: cover;
}
  .nice-banner p {
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 300;
  }

  .nice-buttons {
    display: flex;
    gap: 10px;
  }

  .nice-buttons button {
    padding: 10px 16px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.8s;
  }
  .nice-buttons button:hover {
    background: #404040;
  }
  .nice-buttons-white {
    display: flex;
    gap: 10px;
  }

  .nice-buttons-white button {
    padding: 10px 16px;
    background: #f1f1f1;
    color: black;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.8s;
  }
  .nice-buttons-white button:hover {
    background: #ccc;
  }  
    
.subtitle {
  font-size: 12px;
  color: #5b42ff;
  margin-top: 0px;    /* mezera pod h3 */
  margin-bottom: 0px; /* mezera nad obrázkem */
  display: block;
}
.subtitle-2 {
  font-size: 13px;
  color: #fff;
  margin-top: 0px;    /* mezera pod h3 */
  margin-bottom: 0px; /* mezera nad obrázkem */
  display: block;
}

.nice-banner.image-bg {
  position: relative;
  overflow: hidden;
  color: white;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 24px;
}

.nice-banner.image-bg img.bg-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  margin: 0;
}

.nice-banner.image-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0,0,0,0.1) 50%);
  z-index: 1;
  pointer-events: none;
}

.banner-bottom p {
max-width: 300px;
}


.nice-banner.image-bg .banner-top,
.nice-banner.image-bg .banner-bottom {
  position: relative;
  z-index: 2;
}

.nice-banner.image-bg .banner-top {
  margin-bottom: auto;
}

.nice-banner.image-bg .banner-bottom {
  margin-top: auto;
}

.nice-banner.image-bg .nice-buttons button {
  background: rgba(0, 0, 0, 0.7);
  color: white;
}

.nice-banner.image-bg .nice-buttons button:hover {
  background: rgba(255, 255, 255, 0.3);
}


  /* Barvy pozadí */
  .bg-yellow { background-color: #f9f0d8; }
  .bg-purple { background-color: #867bff; color: white; }
  .bg-purple-light { background-color: #F3F3FF; color: black; }
  .bg-black { background-color: #1a1a1a; color: white; }
  .bg-blue { background-color: #e5f0ff; }
  .bg-white { background-color: #ffffff; color: black; }
  .bg-gray { background-color: #f2f2f2; color: black; }
  .bg-orange { background-color: #FFD1A5; color: black; }
  .bg-dark-gray { background-color: #9BA3AF; color: white; }

  /* Velikosti jako z obrázku */
  .span-1 { grid-column: span 1; }
  .span-2 { grid-column: span 2; }

  @media (max-width: 1200px) {
    .nice-banners {
      grid-template-columns: repeat(2, 1fr);
    }

    .span-2 {
      grid-column: span 2;
    }
  }

  @media (max-width: 768px) {
    .nice-banners {
      grid-template-columns: 1fr;
    }

    .span-1, .span-2 {
      grid-column: span 1;
    }
  }