/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #fff;
  color: #000;
}

/* Header */
header {
  background: #000;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;

  position: fixed; /* фиксируем */
  top: 0; /* прижать к верху */
  left: 0;
  width: 100%; /* чтобы на всю ширину */
  z-index: 1000;
}

main {
  padding-top: 100px; /* отступ под фиксированное меню */
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: bold;
}
.logo img {
  height: 70px;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}
nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  font-family: "Poiret One", sans-serif;
  font-size: 1.3rem;
}
nav a:hover {
  color: #0f4b39; /* тёмно-зелёный */
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.burger span {
  width: 25px;
  height: 3px;
  background: #fff;
  transition: 0.3s;
  border-radius: 2px;
}

.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
nav a:hover,
nav a:active {
  color: #0f4b39;
}


/* Hero */
.hero {
  position: relative;
  background: url("../images/hero.jpg") center/cover no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  height: 60vh;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(1 17 9 / 75%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  color: #fff;
  font-size: 3rem;
}

.hero p {
  color: #f1f1f1;
  font-size: 1.5rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}
.feature {
  background: #f6f6f6;
  border-left: 5px solid #0b3d2e; /* зелёный акцент */
  padding: 20px;
  transition: transform 0.3s;
}
.feature:hover {
  transform: translateY(-5px);
}
.feature h2 {
  margin-bottom: 10px;
  color: #0b3d2e;
}

.feature p {
  font-family: "Nunito", sans-serif;
}

footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 50px;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero h1 {
    font-size: 2.3rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: #000;
    position: fixed;
    top: 90px;
    right: -100%;
    width: 60%;
    height: calc(100vh - 90px);
    padding: 40px 20px;
    transition: right 0.4s ease;
  }

  nav.open ul {
    right: 0;
  }

  .burger {
    display: flex;
  }
}

@media (max-width: 480px) {
  header {
    padding: 15px 25px;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero p {
    font-size: 1rem;
  }
}
