*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: #2e2e2e;
  background-color: #f7f7f3;
}

a {
  color: inherit;
  text-decoration: none;
}

.stub {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;

  background-image: url("background.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.stub__content {
  width: 100%;
  max-width: 920px;
  margin-top: -42px;
  text-align: center;
}

.stub__logo {
  display: block;
  width: 360px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 48px;
}

.stub__title {
  margin: 0 0 28px;
  font-size: 56px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.045em;
  color: #174f19;
}

.stub__text {
  margin: 0 0 34px;
  font-size: 28px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0.055em;
  color: #343434;
}

.stub__contacts {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 27px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #2f2f2f;
}

.stub__contacts a {
  transition: color 0.2s ease;
}

.stub__contacts a:hover {
  color: #174f19;
}

/* Планшеты */
@media (max-width: 1024px) {
  .stub {
    padding: 36px 24px;
    background-position: center center;
  }

  .stub__content {
    max-width: 760px;
    margin-top: -24px;
  }

  .stub__logo {
    width: 300px;
    margin-bottom: 40px;
  }

  .stub__title {
    margin-bottom: 24px;
    font-size: 44px;
    letter-spacing: 0.035em;
  }

  .stub__text {
    margin-bottom: 28px;
    font-size: 23px;
    letter-spacing: 0.035em;
  }

  .stub__contacts {
    gap: 14px;
    font-size: 22px;
    letter-spacing: 0.03em;
  }
}

/* Смартфоны */
@media (max-width: 640px) {
  .stub {
    padding: 32px 18px;
    background-position: center center;
  }

  .stub__content {
    max-width: 100%;
    margin-top: -12px;
  }

  .stub__logo {
    width: 220px;
    margin-bottom: 34px;
  }

  .stub__title {
    margin-bottom: 20px;
    font-size: 31px;
    line-height: 1.2;
    letter-spacing: 0.02em;
  }

  .stub__text {
    max-width: 320px;
    margin: 0 auto 24px;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 0.02em;
  }

  .stub__contacts {
    flex-direction: column;
    gap: 6px;
    font-size: 18px;
    line-height: 1.45;
    letter-spacing: 0.015em;
  }

  .stub__contacts span {
    display: none;
  }
}

.fade-item {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.8s ease,
      transform 0.8s ease;
    will-change: opacity, transform;
  }
  
  .fade-item--visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .fade-item--delay-1 {
    transition-delay: 0.15s;
  }
  
  .fade-item--delay-2 {
    transition-delay: 0.3s;
  }
  
  .fade-item--delay-3 {
    transition-delay: 0.45s;
  }
  
  @media (prefers-reduced-motion: reduce) {
    .fade-item {
      opacity: 1;
      transform: none;
      transition: none;
    }
  }