*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: #ffffff;
  background: #111111;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  transition:
    background-color 0.35s ease,
    backdrop-filter 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(16, 13, 11, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

.site-header__container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 40px 40px 0;
  display: flex;
  align-items: center;
  gap: 60px;
}

.site-header__logo {
  flex: 0 0 auto;
  max-width: 158px;
}

.site-header__logo img {
  width: 158px;
  height: auto;
}

.site-header__nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.site-header__nav a {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 100%;
  color: #ffffff;
  text-align: center;
  transition: opacity 0.25s ease;
}

.site-header__nav a:hover {
  opacity: 0.68;
}

.site-header__right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-header__phone {
  font-weight: 510;
  font-size: 16px;
  line-height: 100%;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.site-header__phone:hover {
  opacity: 0.68;
}

.site-header__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 50px;
  border: 1px solid #ffffff;
  border-radius: 8px;
  background: transparent;
  font-weight: 510;
  font-size: 14px;
  line-height: 100%;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
}

.site-header__button:hover {
  background: #ffffff;
  color: #000000;
}

.site-header__burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.site-header__burger span {
  display: block;
  width: 20px;
  height: 1px;
  background: #ffffff;
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header__burger.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header__burger.is-active span:nth-child(2) {
  opacity: 0;
}

.site-header__burger.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 800px;
  background-image: url("/img/hero.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.18) 38%,
      rgba(0, 0, 0, 0.70) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.18) 52%,
      rgba(0, 0, 0, 0.42) 100%
    );
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1920px;
  min-height: 1000px;
  margin: 0 auto;
  padding: 0 40px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 550px;
  gap: 80px;
  align-items: end;
}

.hero__left {
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero__left h1 {
  margin: 0;
  font-weight: 590;
  font-size: 56px;
  line-height: 100%;
  letter-spacing: 0;
  color: #ffffff;
}

.hero__left p {
  margin: 0;
  font-weight: 510;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0;
  color: #ffffff;
}

.hero__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 850px;
}

.hero-btn {
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 24px 80px;
  border-radius: 8px;
  font-weight: 590;
  font-size: 16px;
  line-height: 100%;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease,
    border-color 0.25s ease;
}

.hero-btn--white {
  background: #ffffff;
  border: 1px solid #ffffff;
  color: #000000;
}

.hero-btn--white:hover {
  opacity: 0.82;
}

.hero-btn--white img {
  width: 24px;
  height: 24px;
  margin-left: 10px;
  flex: 0 0 auto;
}

.hero-btn--border {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}

.hero-btn--border:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.hero__advantages {
  width: 565px;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero__advantages-title {
  font-weight: 510;
  font-size: 24px;
  line-height: 100%;
  color: #ffffff;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.advantages-grid__item {
  min-height: 105px;
  padding: 24px;
  font-weight: 510;
  font-size: 20px;
  line-height: 100%;
  color: #ffffff;
}

.advantages-grid__item:nth-child(1),
.advantages-grid__item:nth-child(2) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.75);
}

.advantages-grid__item:nth-child(1),
.advantages-grid__item:nth-child(3) {
  border-right: 1px solid rgba(255, 255, 255, 0.75);
}

@media (min-width: 769px) {
  .advantages-grid__item:nth-child(1) {
    padding-top: 0;
    padding-left: 0;
  }

  .advantages-grid__item:nth-child(2) {
    padding-top: 0;
    padding-right: 0;
  }

  .advantages-grid__item:nth-child(3) {
    padding-left: 0;
    padding-bottom: 0;
  }

  .advantages-grid__item:nth-child(4) {
    padding-right: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 1440px) {
  .site-header__container {
    gap: 40px;
  }

  .site-header__nav {
    gap: 28px;
  }

  .site-header__right {
    gap: 24px;
  }

  .site-header__button {
    padding-left: 34px;
    padding-right: 34px;
  }

  .hero__container {
    grid-template-columns: minmax(0, 1fr) 500px;
    gap: 50px;
  }

  .hero__advantages {
    width: 500px;
  }

  .hero__left h1 {
    font-size: 50px;
  }

  .hero-btn {
    padding-left: 46px;
    padding-right: 46px;
  }
}

@media (max-width: 1180px) {
  .site-header__nav,
  .site-header__right {
    display: none;
  }

  .site-header__container {
    justify-content: space-between;
  }

  .site-header__burger {
    display: block;
  }

  .mobile-menu {
    width: calc(100% - 80px);
    max-width: 1920px;
    margin: 20px auto 0;
    padding: 24px;
    border-radius: 18px;
    background: rgba(16, 13, 11, 0.92);
    backdrop-filter: blur(18px);
  }

  .mobile-menu.is-open {
    display: grid;
    gap: 18px;
  }

  .mobile-menu a {
    font-weight: 510;
    font-size: 18px;
    line-height: 120%;
    color: #ffffff;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 60px;
    align-content: end;
  }

  .hero__advantages {
    width: 100%;
    max-width: 650px;
    justify-self: start;
  }
}

@media (max-width: 768px) {
  .site-header__container {
    padding: 24px 20px 0;
  }

  .site-header__logo,
  .site-header__logo img {
    width: 132px;
  }

  .mobile-menu {
    width: calc(100% - 40px);
  }

  .hero {
    min-height: 900px;
  }

  .hero__container {
    min-height: 900px;
    padding: 0 20px 32px;
    gap: 44px;
  }

  .hero__left {
    gap: 28px;
  }

  .hero__left h1 {
    font-size: 36px;
    line-height: 105%;
  }

  .hero__left p {
    font-size: 17px;
    line-height: 120%;
  }

  .hero__buttons {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: none;
  }

  .hero-btn {
    width: 100%;
    min-height: 64px;
    padding: 20px 24px;
    white-space: normal;
  }

  .hero__advantages {
    gap: 24px;
  }

  .hero__advantages-title {
    font-size: 20px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid__item {
    min-height: auto;
    padding: 18px 0;
    font-size: 17px;
    line-height: 120%;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
  }

  .advantages-grid__item:last-child {
    border-bottom: none;
  }
}