body {
	display: flex;
	flex-direction: column;
	width: 85%;
    margin: auto;
	gap: 80px;
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
}

/* Верхняя сетка */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.featured-card {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.25s ease;
}

.featured-card img {
  width: 100%;
  height: 50%;
  object-fit: cover;
}

.featured-content {
  padding: 16px;
}

.featured-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.featured-card p {
  margin: 0;
  font-size: 1rem;
  color: #555;
}

.featured-card:hover {
  transform: translateY(-4px);
}

/* Нижний слайдер */
.slider-section h2 {
  margin: 0 0 20px;
}

.slider-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
}

.slider-container::-webkit-scrollbar {
    width: 0;
}

.slider-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.25s ease;
}

.slider-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.slider-card h4 {
  font-size: 1rem;
  font-weight: 500;
  padding: 10px;
  margin: 0;
}

.slider-card:hover {
  transform: translateY(4px);
}

.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}

.logo p {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-block-start: 1em;
  margin-block-end: 1em;
}

.menu a {
  margin-left: 30px;
  text-decoration: none;
  font-weight: 500;
  color: rgb(0 0 0);
}

.menu a:hover {
  color: #165259e0;
}

.members {
  background-color: #165259e0;
  color: rgb(255 255 255) !important;
  padding: 10px 20px;
  border-radius: 9999px;
  transition: background 0.3s;
  text-transform:uppercase;
  font-weight: 600 !important;
}

.menu-mobile-only {
	display: none;
}

.welcome-footer {
    display: flex;
	flex-wrap: nowrap;
	flex-direction: column;
	width: 80%;
	margin: auto;
	text-align: center;
	margin-bottom: 10px;
}

.welcome-footer p {
    font-size: 1rem;
	margin-bottom: 5px;
}

.footer-bar-navigation {
    border-top: 1px solid #434957;
    padding: 20px 0;
}

.footer-bar-navigation a {
    font-size: 1rem;
}

.footer-bar-navigation-button {
  text-decoration: none;
  padding: 8px;
  color: #165259e0;
}

.footer-bar-navigation-button:hover {
  color: #000000;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 20;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #000000;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 656px) {
	.menu {
		display: none;
    }
	
	.welcome-footer {
		width: 100%;
    }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .menu {
    display: none;
    position: absolute;
    top: 90px;
    right: 0;
	width: 70%;
    flex-direction: column;
    background: #165259;
    padding: 20px;
    border-radius: 10px;
    z-index: 9999;
  }

  .menu.show {
    display: flex !important;
	flex-direction: column-reverse;
  }
  
  .dropdown-content.show {
	  margin-top: 25px;
	  background-color: #165259;
  }

  .menu a {
    margin: 10px 0;
    color: white;
    font-size: 18px;
  }
  
  .dropbtn {
    margin: 10px 0;
  }
  
  .members {
	  display: none;
  }
  
  .menu-mobile-only {
	display: flex;
  }
  
  .slider-card img {
      height: unset;
  }
}