/* fonts */

@font-face {
  font-family: 'Rubik';
  src: url('./fonts/Rubik-Bold.eot');
  src: url('./fonts/Rubik-Bold.eot?#iefix') format('embedded-opentype'),
  url('./fonts/Rubik-Bold.woff2') format('woff2'),
  url('./fonts/Rubik-Bold.woff') format('woff'),
  url('./fonts/Rubik-Bold.ttf') format('truetype'),
  url('./fonts/Rubik-Bold.svg#Rubik-Bold') format('svg');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rubik';
  src: url('./fonts/Rubik-Regular.eot');
  src: url('./fonts/Rubik-Regular.eot?#iefix') format('embedded-opentype'),
  url('./fonts/Rubik-Regular.woff2') format('woff2'),
  url('./fonts/Rubik-Regular.woff') format('woff'),
  url('./fonts/Rubik-Regular.ttf') format('truetype'),
  url('./fonts/Rubik-Regular.svg#Rubik-Regular') format('svg');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0;
  margin: 0;
  padding: 0;
  font-family: 'Rubik', sans-serif;
}

html, body {
  height: 100%;
}

footer, header, main {
  display: block;
}

/* index */
.page {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  padding: 72px 115px 45px;
  max-width: 1700px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  max-height: 1400px;
  min-height: 750px;
  flex-direction: column;
  justify-content: stretch;
}

.header {
  position: absolute;
  top: 72px;
  left: 115px;
}

.main {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-end;
  max-height: calc(100% - 80px);
}

.content {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 740px;
}

.labels {
  max-width: 665px;
}

.img {
  flex-shrink: 1;
  display: flex;
  max-width: 646px;
  max-height: 100%;
  width: 100%;
  height: 100%;
}

.img img {
  display: block;
  max-width: 646px;
  max-height: 100%;
  height: auto;
  width: auto;
}

h1 {
  font-weight: bold;
  font-size: 65px;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 80px;
}

.label {
  color: #fff;
  border-radius: 44px;
  display: inline-flex;
  flex-grow: 0;
  font-weight: 400;
  font-size: 24px;
  line-height: 1;
  margin: 0 5px 8px 0;
  padding: 22px 54px;
  white-space: nowrap;
}

.label.violet {
  background: linear-gradient(88.01deg, #8799FA -16.03%, #1A0083 99.36%);
}
.label.cyan {
  background: linear-gradient(83.81deg, #3AE8E8 -6.98%, #00BA9E 93.3%);
}
.label.green {
  background: linear-gradient(76.88deg, #98FD74 -25.52%, #00A707 57.82%);
}

.footer {
  color: #979797;
  font-size: 16px;
  margin-top: 50px;
  text-align: center;
  width: 100%;
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.footer span {
  margin: 0 5px;
}

.footer .desktop {
  display: block;
}
.footer .mobile {
  display: none;
}


/* tablet styles */

@media screen and (max-width: 1600px) {
  h1 {
    font-size: 60px;
  }
  .label {
    font-size: 24px;
    padding: 15px 36px;
  }
}

@media screen and (max-width: 1200px) {
  .header {
    top: 40px;
    left: 60px;
  }

  h1 {
    font-size: 50px;
    margin-bottom: 40px;
  }

  .page {
    padding: 120px 60px 35px;
    height: 100%;
    width: 100%;
    min-height: 860px;
  }
  .content {
    min-width: auto;
    width: 100%;
    flex-shrink: 1;
    min-height: 0;
  }

  .main {
    flex-direction: column-reverse;
    /*flex-grow: 1;*/
    align-items: center;
    justify-content: space-around;
    min-height: 0;
    gap: 40px;
    width: 100%;
  }

  .footer {
    height: 20px;
    flex-shrink: 0;
    flex-grow: 0;
    font-size: 14px;
  }

  .footer .desktop {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  .img {
    min-height: 250px;
    height: 65%;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

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

@media screen and (max-width: 730px) {
  .logo {
    width: 170px;
  }

  h1 {
    font-size: 30px;
    margin-bottom: 35px;
  }
  .label {
    font-size: 14px;
    margin: 0 2px 5px 0;
    padding: 8px 15px;
  }

  .footer {
    margin-top: 20px;
    display: block;
    text-align: left;
    height: 20px;
  }
  .footer .desktop {
    display: none;
  }
  .footer .mobile {
    display: block;
  }
  max-height: calc(100% - 40px);
}

/* mobile styles */
@media screen and (max-width: 640px) {
  .wrapper {
    gap: 35px;
  }
  .page {
    padding: 75px 20px 20px;
    min-height: 580px;
    justify-content: space-around;
  }

  .header {
    left: 20px;
    top: 18px;
  }

  .footer {
    margin-top: 20px;
    font-size: 10px;
    height: 20px;
  }
}

@media screen and (max-width: 410px) {
  .wrapper {
    gap: 25px;
  }
  .img {
    min-height: 235px;
  }

  .img img {
    min-height: 235px;
  }

  h1 {
    font-size: 25px;
    margin-bottom: 20px;
  }
  .label {
    font-size: 12px;
    margin: 0 2px 5px 0;
    padding: 5px 15px;
  }

  .footer {
    margin-top: 20px;
    font-size: 10px;
    display: block;
    text-align: left;
    height: 20px;
  }
  .footer .desktop {
    display: none;
  }
  .footer .mobile {
    display: block;
  }
}

