body {
  margin: 0;
  color-scheme: light;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f9f9f9;
  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: 50vh;
  background: url('Image/joanna-kosinska-LAaSoL0LrYs-unsplash.jpg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  color: #cccccc;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: 16%;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Карти */
.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 60px 10%;
  box-sizing: border-box;
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
}

.card h2 {
  margin-top: 0;
  color: #43A4C7;
}

.card p {
    line-height: 1.5;
    color: #0d2239;
}

.card .date {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #777;
}

/* Footer */
.footer {
  background: #0d1b2a;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

@media (max-width: 450px) {

  /* Navbar адаптация */
  .navbar {
    padding: 8px 14px;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    box-sizing: border-box; /* да не излиза извън ширината */
    width: 100%;
  }

  .navbar-left {
    gap: 10px;
  }

  .logo {
    width: 72px;
    height: 46px;
  }
  /* Скриваме централното меню */
  .navbar-center {
    display: none;
  }
      .navbar-right h1 {
        font-size: 16px;
        font-weight: 700;
        margin: 0;
    }
    .navbar-right {
    text-align: center;
    color: #fff;
  }
}