:root {
  --gap: clamp(20px, 4vw,40px);
}

body {
  background: url("images/background.jpg");
  background-size: cover;
  background-position: center top;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: "Jost", serif;
  color: #000;
  font-size: 16px;
  line-height: 1.5;
}

.overlay-top {
  position: fixed;
  width: 100%;
  height: 80%;
  background: linear-gradient(0deg, transparent, black);
  opacity: 0.3;
  z-index: 0;
  top: 0;
  left: 0;
}

.overlay-bottom {
  position: fixed;
  width: 100%;
  height: 50%;
  background: linear-gradient(0deg, black, transparent);
  opacity: 0.8;
  z-index: 0;
  left: 0;
  bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
}

.wrapper {
  position: relative;
  z-index: 1;
  padding: 0 20px;
  max-width: 960px;
  margin: 0 auto;
  min-height: 100vh;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-flow: column;
}
.wrapper > * {
  margin-top: var(--gap);
  margin-bottom: 0;
}

h1 {
  color: white;
  font-size: clamp(1.8rem, 5vw, 50px);
  line-height: 1.2;
}
@media screen and (min-width: 640px) {
  h1 em {
    display: block;
  }
}

hr {
  border: 0;
  width: 100%;
  display: block;
  background: rgba(255, 255, 255, 0.1);
  height: 1px;
}

.container-homelink {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-flow: row wrap;
}

.content {
  display: flex;
  flex-flow: row wrap;
  margin-left: -20px;
  margin-right: -20px;
  box-sizing: border-box;
  }
.wrapper .separe {
  flex-grow: 1;
  margin: 0;
}
a {
  transition: all 0.3s;
}

.card {
  margin: 20px;
  background: #fff;
  flex: 0 0 calc(33.33% - 40px);
  padding: 25px 20px 40px; 
  box-sizing: border-box;
  border-radius: 12px;
  position: relative;
  text-align: center;
  display: flex;
  align-items: center;
  flex-flow: row wrap;
  justify-content: center;
  position: relative;
}
.card img {
  max-width: 100%;
  height: auto;
}
.label-inner {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  transform: translate(0, 50%);
  text-align: center;
}
.card .label {
  background: #E6F5FF;
  color: #000;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 18px;
  display: inline-block;

}
.card .label.link {
  background: #F2651A;
  text-decoration: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.card .label.link img {
  display: block;
}
.card .label.link:hover {
  background: #9d3c09;
}

.footer {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  padding-bottom: clamp(2rem, 4vw,4rem);
}
.footer .contact {
  color: #f2651a;
}

@media screen and (max-width: 1023px) {
  .content {
    margin-left: 0;
    margin-right: 0;
  }

  .card {
    margin: 10px;
    flex: 0 0 calc(33% - 20px);
  }
  .card .label {
    font-size: 16px;
  }
}
@media screen and (max-width: 639px) {
  .container-homelink {
    gap: 0;
    margin-bottom: 10px;
  }

  img.homelink {
    max-width: 250px;
  }

  img.slogan-s-usmevom {
    width: 200px;
  }

  img.slogan-duchonka {
    max-width: 180px;
  }

  .content {
    display: flex;
    flex-flow: column;
    gap: 1.3rem;
  }

  .card {
    margin: 0;
    gap: 0;
    width: 100%;
    flex-flow: column;
  }
  .card img {
    max-width: 207px;
    max-height: 95px;
  }
  .card .label {
    font-size: 16px;
    padding: 6px 18px;
   
  }
  .card .label-inner {
    transform: translate(0, 30%);
  }
}

/*# sourceMappingURL=style.css.map */
