html {
  scroll-behavior: smooth;
}

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: black;
  margin: 0;
  box-shadow: 0 0 30px rgb(0, 0, 0, 0.5);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: steelblue;
  transition: 0.3s;
}

.burger.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.header__menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 2rem;
  z-index: 1000;
}

.nav__logo {
  width: 120px;
  border-radius: 5px;
  box-shadow: 0 0 30px rgb(0, 0, 0, 0.5);
}

.header__menu-list {
  display: flex;
  gap: 25px;

  color: rgba(255, 255, 255, 0.9);
  font-weight: bold;
  align-items: center;
  padding: 22px 0;
}

.header__menu-item {
  transition: text-decoration 0.5s ease;
  padding-left: 25px;
}

.header__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

section[id] {
  scroll-margin-top: 100px;
}

.section__hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
    url("../images/hero-background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  box-shadow: 0 0 30px rgb(0, 0, 0, 0.5);
}

.hero {
  height: 97vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__logo {
  width: 300px;
  border-radius: 50%;
  margin-left: 150px;
  box-shadow: 0 0 30px rgb(0, 0, 0, 0.5);
}

.hero__description {
  width: 70%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero__description-title {
  color: white;
  line-height: 130%;
  margin-bottom: 10px;
  font-family: Roboto, sans-serif;
  margin-bottom: 20px;
}

.hero__description-text {
  font-family: Roboto, sans-serif;
  font-size: 24px;
  color: white;
  font-weight: 200;
  line-height: 130%;
}

.hero__button-group {
  display: flex;
  gap: 15px;
  align-items: flex-end;
  justify-content: flex-start;
  margin-top: 15px;
}

.button-contact {
  margin-top: 10px;
}

.section__about {
  width: 70%;
  margin: 80px auto;
}

.heading {
  margin-left: 25px;
  font-weight: bold;
  font-size: 32px;
  margin-block: 2rem;
  text-align: center;
}

.section__description__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.paragraph-heading {
  font-size: 22px;
  color: steelblue;
  margin-bottom: 10px;
}

.description-text {
  font-size: 18px;
  line-height: 130%;
  margin-bottom: 10px;
}

.description__container-image {
  max-width: 500px;
}

.section__image {
  border-radius: 10px;
  box-shadow: 0 0 10px rgb(0, 0, 0, 0.5);
}

.about-image {
  width: 250px;
}

.gallery__container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  gap: 1rem;
}

.gallery__image {
  width: 30%;
  transition-duration: 0.5s;
  transform-origin: scale;
}

.gallery__image:hover {
  scale: 1.05;
}

.section__nedrivning {
  width: 70%;
  margin: 80px auto;
}

.nedrivning__list {
  margin-block: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.nedrivning__card {
  background-image: url("../images/form-background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  border: 2px solid black;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.nedrivning__card-title {
  padding-bottom: 12px;
}

.nedrivning__card:hover {
  box-shadow: 0 0 30px rgb(0, 0, 0, 0.5);
}

.section__reviews {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
    url("../images/hero-background.jpg");
  background-position: center;
  padding-block: 30px;
}

.reviews__heading {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.reviews__container {
  display: flex;
  justify-content: center;
}

.reviews__list {
  width: 70%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.reviews__list-item {
  display: flex;
  flex-direction: column;
  max-width: 600px;
  gap: 1rem;
  background-color: white;
  padding: 2rem;
}

.client {
  font-style: italic;
}

.why__section {
  padding-block: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgb(199, 223, 242);
}

.why-image {
  width: 100px;
}

.why__list {
  padding-block: 20px;
  width: 70%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.why__list-item {
  background-color: white;
  padding: 20px;
  border: 2px solid steelblue;
  transition: box-shadow 0.3s ease;
}

.why__list-item:hover {
  box-shadow: 0 0 30px rgba(97, 144, 210, 0.5);
}

.why__card-title {
  padding-bottom: 12px;
}

.section__form {
  background-image: url("../images/form-background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 0 30px rgb(0, 0, 0, 0.5);
}

.form__container {
  width: 55%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 15px 25px;
}

.form__text-input {
  width: 100%;
  height: 35px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  font-size: 14px;
  line-height: 16px;
  box-sizing: border-box;
  border-radius: 5px;
  padding: 6px;
}

.form__text-input:hover {
  border: 2px solid steelblue;
}

.form__textarea {
  border: 2px solid rgba(0, 0, 0, 0.2);
  font-size: 14px;
  line-height: 16px;
  padding: 6px;
  border-radius: 5px;
}

.form__textarea:hover {
  border: 2px solid steelblue;
}

.button {
  min-width: 150px;
  background-color: black;
  border-radius: 5px;
  border: none;
  font-weight: bold;
  padding: 15px 30px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 16px;
  font-weight: normal;
}

.button-contact:hover {
  background-color: steelblue;
}

.button-ring {
  background-color: transparent;
  border-radius: 5px;
  border: 2px solid;
  font-weight: bold;
  padding: 12px 30px;
  color: black;
  border: 2px solid black;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
  font-size: 16px;
  font-weight: normal;
}

.button-ring-white {
  color: white;
  border-color: white;
}

.button__icon-black {
  width: 20px;
  height: 20px;
}

.button-nav {
  border: 2px solid white;
  color: white;
  padding: 8px 14px;
}

.button-ring.button-nav:hover {
  box-shadow: rgba(255, 255, 255, 0.6) 0px 5px 15px;
}

.button__icon {
  filter: brightness(0) invert(1);
  width: 20px;
  height: 20px;
}

.button-ring:hover {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.footer {
  margin: 25px 25px 50px;
  padding-inline: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 100px;
}

.contacts__item {
  display: flex;
  gap: 15px;
}

.contacts__img {
  width: 20px;
}

.contacts {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contacts__cvr {
  margin-top: 10px;
}

.footer__logo {
  align-self: self-end;
  width: 150px;
  border-radius: 10px;
  margin-left: 150px;
  box-shadow: 0 0 10px rgb(0, 0, 0, 0.5);
}

@media (max-width: 1000px) {
  body {
    font-size: 16px;
  }
}

@media (max-width: 868px) {
  .burger {
    display: flex;
  }

  .header__menu {
    height: 70px;
    justify-content: space-between;
  }

  .header__menu-list {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 70vh;
    background-color: white;
    padding: 80px 20px;
    gap: 2rem;
    z-index: 1000;
  }

  .header__menu-list.active {
    display: flex;
    background-color: black;
  }

  .nav-phone-desktop {
    display: none;
  }

  .button {
    font-size: 16px;
    width: 220px;
  }

  .button-ring {
    font-size: 16px;
    width: 220px;
  }

  .section {
    width: 90%;
  }

  .section__hero {
    padding-block: 60px;
    padding-inline: 1rem;
    width: 100%;
  }

  .section__reviews {
    width: 100%;
  }

  .hero__button-group {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hero__description-title {
    font-size: 22px;
  }

  .hero__description-text {
    font-size: 18px;
  }

  .section__description__container {
    flex-direction: column;
    margin-top: 2rem;
  }

  .section__gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }

  .gallery__container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .gallery__image {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .nedrivning__list {
    grid-template-columns: repeat(1, 1fr);
  }
  .reviews__list {
    grid-template-columns: repeat(1, 1fr);
    width: 90%;
  }

  .why__section {
    padding: 1rem;
  }

  .why__list {
    grid-template-columns: repeat(1, 1fr);
    width: 90%;
  }

  .footer {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }
}
