.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding:0 0 0 var(--scroll-width);
  margin: auto;
  min-height: 100vh;
}

.bg{
   background-image: url('/bg-intro.jpg');
  background-size: cover;
position: fixed;
top: -2.5%;
left: -2.5%;
  width:105%;
  height:105%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
  -webkit-transition: all 100ms ease;
  -moz-transition: all 100ms ease;
  transition: all 100ms ease;
}

.overlay {
     background-image: url('/bg-intro.jpg');
  background-size: cover;
position: fixed;
top: -2.5%;
left: -2.5%;
  width:105%;
  height:105%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
  transition: all 100ms ease;
  background: url('/bg-overlay.png') rgba(0, 0, 0, 0.6) repeat;
}
.center {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.main_text {
  color: #EEEEEE;
  padding-right: 15px;
  padding-left: 15px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.main_text h2{
  font-weight: 600;
  max-width: 44ch;
}

.btn_border {
  border: 2px solid var(--secondary-400);
  color: var(--secondary-400);
  overflow: hidden;
  font-size: 16px;
  line-height: 22px;
  font-weight: 300;
}
.btn_border:hover, .btn_border:active {
  color: var(--secondary-400);
}
.btn {
  cursor: pointer;
  padding: 10px 16px;
  display: inline-block;
  outline: none;
  position: relative;
  -webkit-transition: all 120ms ease;
  -moz-transition: all 120ms ease;
  transition: all 120ms ease;
}
.btn:hover{
    background: rgba(255, 255, 255, 0.2);
}
.main_text .btn {
  font-size: 20px;
  padding: 12px 30px;
}
.red_span{
  display:block;position:absolute;
  left:0;top:0;
  width:70px;height:70px;
  background:salmon;
  border-radius:50%;
  transform:scale(1);
  transition:all .8s;
}

.grid {
  color:#EEEEEE;
  display: grid;
  grid-template-columns: 250px 250px 270px 360px;
  max-width: var(--max-width);
  width: fit-content;
}
.grid_700{
  display: none;
}
.card {
  padding: 1rem 1.2rem;
  border-radius: var(--border-radius);
  background: rgba(var(--card-rgb), 0);
  border: 1px solid rgba(var(--card-border-rgb), 0);
  transition: background 200ms, border 200ms;
}

.card span {
  display: inline-block;
  transition: transform 200ms;
}

.card h2 {
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.card p {
  margin: 0;
  opacity: 0.6;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 50ch;
}

.logo {
  position: relative;
  user-select: none;
  margin-top: 4rem;
  filter: invert(1) drop-shadow(0 0 0.3rem #ffffff70);
}

.fadeInRight{
  opacity: 0;
  animation: fadeInRight 240ms ease 80ms forwards;
}
@keyframes fadeInRight {
  from{
    opacity: 0;
    transform:translate(-32px,0);
  }to{
    opacity: 1;
    transform:translate(0,0);
  }
}

/* Enable hover only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    background: rgba(var(--card-rgb), 0.1);
    border: 1px solid rgba(var(--card-border-rgb), 0.15);
  }

  .card:hover span {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion) {
  .card:hover span {
    transform: none;
  }
}

/*Tablet*/
@media (max-width: 1140px){
  .grid{
    grid-template-columns: 270px 360px;
    grid-template-rows: 1fr 1fr;
  }
  .main_text h2{
    max-width: 24ch;
  }  
}

/* Mobile */
@media (max-width: 700px) {
  .grid{
    display: none;
  }
  .grid_700 {
    color:#EEEEEE;
    display: grid;
    max-width: 100%;
    text-align: center;
    font-size: 0.84rem;
  }

  .card {
    padding: 1rem 1.2rem;
  }

  .card h2 {
    margin-bottom: 0.3rem;
  }
}

@media (prefers-color-scheme: dark) {
  .logo {
    filter: invert(1) drop-shadow(0 0 0.3rem #ffffff70);
  }
}