#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #e0e0e0;
  border-top: 6px solid #3a9bdc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

  @font-face {
      font-family: 'Comfortaa';
      src: url('Comfortaa-Regular.ttf') format('truetype');
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: 'Comfortaa', sans-serif;
      color: #333;
      background-color: #f0f0f0;
    }
    #logo {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      height: 120px;
      z-index: 999;
      transition: opacity 0.3s ease;
    }
    #menu {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 70px;
      background-color: rgba(255,255,255,0.95);
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 998;
    }
    #menu img { height: 60px; }

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 30px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transition: opacity 1s ease-in-out;
  opacity: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  color: white;
  text-align: left;
}

    .hero-text h1 {
      font-size: 64px;
      margin: 0 0 10px;
      text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    }
    .hero-text h2 {
      font-size: 28px;
      font-weight: 300;
      text-transform: uppercase;
      margin: 0;
      text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
    }

.section-wrapper {
  background-color: #f0f0f0;
  padding: 20px 5px; /* doda 5px ob robovih na vseh straneh */
}

.section-box {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 40px 30px;
  max-width: 900px;
  margin: auto;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
}


    .section-box h2 {
      font-size: 30px;
      color: #3a3a3a;
      border-left: 4px solid #92c9d4;
      padding-left: 12px;
    }

    .section-box h3 {
      margin-top: 20px;
    }

    .section-box p, .section-box li {
      font-size: 18px;
      color: #555;
      margin-top: 10px;
    }

    .section-box ul {
      padding-left: 20px;
    }
.hero {
  transition: background-size 0.3s ease, min-height 0.3s ease;
}
    @media (max-width: 768px) {
      #logo { height: 60px; top: 15px; }
      #menu { height: 63px; }
      #menu img { height: 60px; }
.hero {
  background: url('vibroakusticna-terapija.jpg') no-repeat center top;
  background-size: cover;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px;
  box-sizing: border-box;
}

      .hero-text h1 { font-size: 38px; }
      .hero-text h2 { font-size: 20px; }
      .section-box h2 { font-size: 24px; }
      .section-box p, .section-box li { font-size: 16px; }
    }

    @media (max-width: 480px) {
      #logo { height: 60px; top: 10px; }
      #menu { height: 63px; }
      #menu img { height: 60px; }
      .hero-text h1 { font-size: 24px; }
      .hero-text h2 { font-size: 11px; }
    }
	.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.benefit-card {
  background-color: #fdfdfd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.1);
  transform: translateY(-5px);
}


.benefit-card.show {
  opacity: 1;
  transform: translateY(0);
}

.benefit-card .icon {
  font-size: 28px;
  margin-bottom: 10px;
  color: #3a9bdc; /* nežno modra */
}

.benefit-card h4 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #333;
}

.benefit-card p {
  margin: 0;
  font-size: 16px;
  color: #555;
}
.footer {
  background-color: #2f3a4c;
  color: #ffffff;
  padding: 60px 20px;
}

.footer-container {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-info h3 {
  margin-bottom: 10px;
  font-size: 24px;
  color: #ffffff;
}

.footer-info p {
  font-size: 16px;
  color: #d0d0d0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: none;
  border-radius: 5px;
  font-family: 'Comfortaa', sans-serif;
  font-size: 16px;
}

.contact-form button {
  background-color: #3a9bdc;
  color: white;
  padding: 12px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #338ac0;
}

@media (max-width: 600px) {
  .footer-container {
    gap: 20px;
  }
}
.gallery-section {
     padding: 1px 0px 20px 0px;
}

.gallery-main img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  margin: 20px;
  max-width: -webkit-fill-available;
}

.gallery-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  padding-top: 0px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 0px;
}

.gallery-row img {
  flex: 1 1 48%;
  height: 250px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  object-fit: cover;
  width: 100%;
}

@media (max-width: 600px) {
  .gallery-row {
    flex-direction: column;
    gap: 15px;
  }

  .gallery-row img {
    width: 100%;
    height: auto;
  }
}


#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #3a9bdc;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

#scrollToTopBtn:hover {
  transform: scale(1.1);
  background-color: #338ac0;
}