* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* Фиксированный топ-бар */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 40px;
  color: white;
  background-color: rgba(0, 0, 0, 0.8);
}

.logo h1 {
  font-size: 28px;
  line-height: 1.2;
}

.logo mark {
  background-color: #ffd633;
  color: #000;
  padding: 2px 5px;
}

.contact h1 {
  font-size: 24px;
  white-space: nowrap;
}

.buttons {
  display: flex;
  gap: 15px;
}

.btn {
  background-color: rgb(255, 214, 51);
  border-radius: 25px;
  border: none;
  width: 180px;
  height: 60px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #000;
}

.btn:hover {
  background-color: rgb(255, 200, 30);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Первый блок */
.header {
  position: relative;
  width: 100%;
  height: 100vh;
}

.background-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  color: white;
  height: 100vh;
  padding-top: 80px;
}

.hero-title {
  font-size: 54px;
  margin-bottom: 30px;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 24px;
  line-height: 1.5;
  max-width: 800px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Блоки контента */
.second-block {
  position: relative;
  width: 100%;
  min-height: 850px;
  overflow: hidden;
}

.img1 {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.section-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 100px 40px;
  min-height: 850px;
  display: flex;
  align-items: center;
}

.nv {
  max-width: 1200px;
}

.nv .hero-title {
  font-size: 48px;
  margin-bottom: 40px;
}

.nv .hero-subtitle {
  font-size: 22px;
  margin-bottom: 20px;
}

.nv li {
  font-size: 20px;
  margin-bottom: 15px;
  list-style-position: inside;
}

/* Блок работ */
.rabot_row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.rabot_img {
  width: 23%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 10px 10px 20px 0px rgba(0, 0, 0, 0.3);
}

/* Последний блок */
.end_block {
  text-align: center;
  width: 100%;
}

.end_block .hero-title {
  margin-bottom: 50px;
}

.end_block .btn {
  width: 250px;
  height: 70px;
  font-size: 20px;
}

/* Футер */
.footer {
  background-color: #282828;
  color: white;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon {
  width: 40px;
  height: 40px;
  margin-left: 10px;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .topbar {
    padding: 15px;
  }

  .hero-content {
    padding: 0 20px;
    padding-top: 80px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .rabot_img {
    width: 48%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-content {
    padding: 60px 20px;
  }

  .rabot_img {
    width: 100%;
    height: 300px;
  }

  .footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .nv .hero-title {
    font-size: 36px;
  }

  .nv .hero-subtitle {
    font-size: 18px;
  }
}
