body {
  margin: 0;
   color-scheme: light;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(to bottom, #ffffff 70%, #e6f7ff 90%, #3399ff 100%);
  color: #ffffff; /* по-добре черен текст при бял фон */
}
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background: rgba(3, 3, 3, 0.46);
  backdrop-filter: blur(9px);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-sizing: border-box;
  z-index: 10;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  width: 98px;
  height: 63px;
}

.messages {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  font-weight: 200;
}

.messages img {
  width: 60px;
  height: 53px;
}


.navbar-center {
  display: flex;
  font-size: 21px;
  font-weight: 500;
}

.navbar-center a {
  padding: 0 20px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-center a:not(:first-child) {
  border-left: 2px solid rgba(255, 255, 255, 0.5);
}

.navbar-center a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #43A4C7;
  transition: width 0.3s ease;
}

.navbar-center a:hover {
  color: #43A4C7;
}

.navbar-center a:hover::after {
  width: 100%;
}

.navbar-center a.active {
  color: #43A4C7;
}

.navbar-right {
    color: white;
    text-align: center;
}

.navbar-right h1 {
  font-size: 23px;
  font-weight: 700;
  margin: 0;
}

.navbar-right hr {
  border: none;
  height: 2px;
  background: #ffffffa8;
  margin: 4px 0;
}

.navbar-right span {
  font-size: 16px;
  font-weight: 700;
  opacity: 0.55;
}
/* Hero секция */
.hero {
  height: 65vh;
  background: url('Image/swimming-pool.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  color: #fff;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-top: 20%;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.hero-content p {
  font-size: 1.3rem;
  line-height: 1.6;
   color: #ffffffc6;
}

/* Основно съдържание */
.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 50px 10%;
  box-sizing: border-box;
}

/* Стандартна карта */
.card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 25px;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  opacity: 0; /* скрита в началото */
  transform: translateY(40px); /* леко надолу */
  animation: fadeInUp 0.8s ease forwards;
  min-height: 280px; /* фиксирана минимална височина за равномерност */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.card-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 15px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.card h2 {
  margin: 10px 0;
  color: #43A4C7;
  font-size: 1.5rem;
}

.card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #11355b;
}

/* Hover */
.card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
}

/* Keyframes за анимация при зареждане */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Забавяне за всяка карта */
.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }
.card:nth-child(4) { animation-delay: 0.8s; }
.card:nth-child(5) { animation-delay: 1s; }

/* Highlight секция */
.highlight {
  grid-column: span 2;
  text-align: center;
  background: #43A4C7;
  color: #fff;
  border-radius: 20px;
  padding: 40px;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.highlight h2 {
  margin-bottom: 15px;
  font-size: 2rem;
}

.highlight p {
  margin-bottom: 20px;
}

.highlight-logo img {
  display: block;
  margin: 0 auto 25px auto; /* центрира по хоризонтала и дава разстояние */
  width: 140px; /* можеш да коригираш размера */
}

.highlight-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #fff;
  color: #43A4C7;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.highlight-btn:hover {
  background: #1b6f8c;
  color: #fff;
  transform: translateY(-3px);
}

/* Footer */
.footer {
  background: #0d1b2a;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  opacity: 0.7;
}
/* 📱 Малки екрани (до 768px) */
@media (max-width: 768px) {
.navbar {
    height: var(--nav-height);
    padding: 8px 14px;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
  }
  .navbar-right h1 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

  .navbar-left { 
    gap: 10px; 
}
  .logo { 
    width: 72px; height: 46px; 
}
  .messages img {
    width: 50px;
    height: 42px;
}
 .navbar-center {
    display: none;
  }

  .hero {
    height: 50vh; /* по-малко за телефон */
    background-position: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .content {
    grid-template-columns: 1fr; /* всички карти една под друга */
    padding: 30px 5%;
  }

  .card {
    min-height: auto; /* махаме фиксираната височина */
    padding: 20px;
  }

  .card-icon {
    width: 60px;
    height: 60px;
  }

  .highlight {
    grid-column: span 1; /* заема цялата ширина */
    padding: 25px;
  }

  .highlight h2 {
    font-size: 1.5rem;
  }

  .highlight-logo img {
    width: 100px;
  }

  .highlight-btn {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .footer {
    font-size: 12px;
    padding: 15px;
  }
}

/* 📱 Много малки екрани (до 480px) */
@media (max-width: 480px) {
  .hero {
    height: 40vh;
  }
  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 38%;
}

  .hero-content h1 {
    font-size: 1.3rem;
  }

  .hero-content p {
        font-size: 0.8rem;
        padding: 0px 14px 0px 14px;
    }

  .navbar-left .messages img {
    width: 40px;
    height: 35px;
  }

  .logo {
    width: 80px;
    height: auto;
  }
}