@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/Montserrat-Regular.woff2) format("woff2"), url(../fonts/Montserrat-Regular.woff) format("woff");
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 500;
  src: url(../fonts/Montserrat-Medium.woff2) format("woff2"), url(../fonts/Montserrat-Medium.woff) format("woff");
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 600;
  src: url(../fonts/Montserrat-SemiBold.woff2) format("woff2"), url(../fonts/Montserrat-SemiBold.woff) format("woff");
  font-display: swap;
}

@font-face {
  font-family: Montserrat;
  font-style: normal;
  font-weight: 700;
  src: url(../fonts/Montserrat-Bold.woff2) format("woff2"), url(../fonts/Montserrat-Bold.woff) format("woff");
  font-display: swap;
}

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */
}

button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  margin: 0;
  font: 16px/1.5 "Montserrat", sans-serif;
  font-weight: 400;
}

a {
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.visibility-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
}

.visible-sm {
  display: none;
}

.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 30px;
}

.title {
  font-size: 44px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}

.btn {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 12px 18px;
  font-size: inherit;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  border: 0;
  border-radius: 3px;
  outline: 0;
  background: #f4555a;
  cursor: pointer;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.btn:hover {
  background-color: #f1252c;
}

/* header */
.header {
  position: relative;
  z-index: 1;
  padding: 42px 0 333px;
  background: #131a2e url(../img/bg.jpg) no-repeat;
  background-size: cover;
}

.header::after {
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  content: "";
  z-index: -1;
  height: 31%;
  -webkit-transform: skewY(-5deg);
      -ms-transform: skewY(-5deg);
          transform: skewY(-5deg);
  -webkit-transform-origin: 100%;
      -ms-transform-origin: 100%;
          transform-origin: 100%;
  background-color: #fff;
}

.header__grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-rows: (max-content)[3];
      grid-template-rows: repeat(3, -webkit-max-content);
      grid-template-rows: repeat(3, max-content);
}

.header__info-block {
  margin: 33px 0 34px;
}

.logo {
  -ms-grid-row: 1;
  -ms-grid-row-span: 1;
  grid-row: 1/2;
  text-align: center;
}

.login {
  -ms-grid-row: 3;
  -ms-grid-row-span: 1;
  grid-row: 3/4;
  text-align: center;
}

.login__btn {
  display: none;
}

.info-block {
  -ms-grid-row: 2;
  -ms-grid-row-span: 1;
  grid-row: 2/3;
  text-align: center;
}

.info-block__title {
  margin-bottom: 3px;
}

.info-block__text {
  margin-top: 3px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(239, 239, 239, 0.8);
}

.info-block__text--hidden {
  display: none;
}

/* main */
.main {
  position: relative;
  z-index: 1;
  margin-top: -277px;
}

.slider {
  display: -ms-grid;
  display: grid;
  grid-gap: 23px;
  -ms-grid-columns: 1fr 1fr 1fr;
      grid-template-columns: 1fr 1fr 1fr;
}

.company {
  position: relative;
  color: #303446;
  border-radius: 5px;
  z-index: 1;
  background-color: #efefef;
  -webkit-box-shadow: 0px 4px 18px rgba(0, 0, 0, 0.12);
          box-shadow: 0px 4px 18px rgba(0, 0, 0, 0.12);
}

.company__bg {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
}

.company__bg img {
  display: block;
  max-width: 100%;
}

.company__wrapper {
  padding: 13px 27px 43px;
}

.company__pic {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 55px;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
}

.company__cat {
  margin-top: 0;
  font-size: 14px;
  font-weight: 500;
  color: #595d6f;
}

.company__stat {
  max-width: 265px;
  margin-top: 20px;
  margin-bottom: 38px;
  -webkit-column-count: 2;
          column-count: 2;
  font-size: 16px;
  font-weight: 500;
}

.company__pay-value {
  margin-top: 0;
  font-size: 24px;
  font-weight: 600;
}

.company__pay-value span {
  font-size: 13px;
  font-weight: 500;
  color: rgba(48, 51, 69, 0.5);
  letter-spacing: -0.03rem;
}

.company__pay-text {
  margin-bottom: 0;
  font-weight: 500;
}

.company__btn {
  margin-top: 20px;
  padding: 9px 30px;
  text-transform: none;
  background-color: #eea84d;
}

.company__btn:hover {
  background-color: #ea911e;
}

.connect {
  margin-top: 40px;
  padding-bottom: 40px;
}

.connect__title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: #4d5163;
}

.connect__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  counter-reset: list1;
}

.connect__list li {
  position: relative;
  width: 33%;
  padding-top: 66px;
  text-align: center;
  color: #595d6f;
}

.connect__list li::before {
  position: absolute;
  top: 0;
  left: 50%;
  counter-increment: list1;
  content: counter(list1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  font-size: 36px;
  font-weight: 400;
  color: #fafafa;
  border-radius: 50%;
  background-color: #f4555a;
}

.connect__list li:first-child span {
  display: none;
}

.connect__line {
  position: absolute;
  top: 26px;
  left: -39%;
  display: block;
  width: 75%;
  height: 2px;
  background-color: #f4555a;
}

.connect__line::after {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  content: "";
  width: 12px;
  height: 16px;
  margin-top: -8px;
  background: url(../img/arrow-line.png) no-repeat;
}

.no-login .login__btn {
  display: inline-block;
}

.no-login .company__wrapper {
  opacity: 0.7;
}

.no-login .company__pay-value {
  display: none;
}

.no-login .company__btn {
  width: 100%;
  padding: 10px;
  text-transform: none;
  background-color: #c4c4c4;
}

.no-login .company__btn:hover {
  background-color: #ababab;
}

.no-login .company__btn span {
  position: relative;
  display: inline-block;
  padding-left: 20px;
}

.no-login .company__btn span::before {
  position: absolute;
  top: -2px;
  left: 0;
  content: "";
  width: 14px;
  height: 18px;
  background: url(../img/lock.svg) no-repeat;
  background-size: 100%;
}

/* modal */
.modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  visibility: hidden;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  opacity: 0;
  -webkit-perspective: 1300px;
          perspective: 1300px;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal.active .modal__wrapper {
  -webkit-transform: rotateX(0deg);
          transform: rotateX(0deg);
  opacity: 1;
}

.modal__wrapper {
  max-width: 537px;
  padding: 30px 53px 60px;
  text-align: center;
  background: #efefef;
  border-radius: 4px;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-transform: rotateX(-60deg);
          transform: rotateX(-60deg);
  -webkit-transform-origin: 50% 0;
      -ms-transform-origin: 50% 0;
          transform-origin: 50% 0;
  opacity: 0;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
}

.modal__header {
  margin-bottom: 50px;
}

.modal__congratulate {
  position: relative;
  padding-top: 150px;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.235em;
  color: #303446;
}

.modal__congratulate::after {
  position: absolute;
  top: 0;
  left: 50%;
  content: "";
  width: 256px;
  height: 120px;
  margin-left: -128px;
  background: url(../img/congratulate.png) no-repeat;
}

.modal__congratulate.error {
  padding-top: 0;
}

.modal__congratulate.error::after {
  display: none;
}

.modal__body {
  font-size: 18px;
  color: #595d6f;
}

@media (min-width: 1950px) {
  .header::after {
    bottom: -60px;
    height: 50%;
  }
}

@media (max-width: 1024px) {
  .visible-sm {
    display: inline-block;
  }
  .header {
    background-image: url(../img/bg-ipad-landscape.jpg);
  }
  .header__grid {
    -ms-grid-rows: (max-content)[2];
        grid-template-rows: repeat(2, -webkit-max-content);
        grid-template-rows: repeat(2, max-content);
    -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
  }
  .logo {
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
    grid-column: 1/2;
    -ms-grid-row: 1;
    -ms-grid-row-span: 1;
    grid-row: 1/2;
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    text-align: left;
  }
  .login {
    -ms-grid-column: 2;
    -ms-grid-column-span: 1;
    grid-column: 2/3;
    -ms-grid-row: 1;
    -ms-grid-row-span: 1;
    grid-row: 1/2;
    text-align: right;
  }
  .info-block {
    max-width: 620px;
    -ms-grid-column: 1;
    -ms-grid-column-span: 2;
    grid-column: 1/3;
    -ms-grid-row: 2;
    -ms-grid-row-span: 1;
    grid-row: 2/3;
    text-align: left;
  }
  .info-block__title {
    margin-bottom: 20px;
  }
  .info-block__text--hidden {
    display: inline-block;
  }
  .title {
    font-size: 40px;
  }
}

@media (max-width: 980px) {
  .header {
    padding-bottom: 250px;
  }
  .main {
    margin-top: -230px;
  }
  .main__wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  .main .swiper-container {
    max-width: 405px;
    margin-right: 0;
  }
  .main .swiper-slide {
    padding: 14px;
    margin-bottom: 16px;
  }
  .main .swiper-pagination-bullet {
    position: relative;
    background-color: #615c5c;
    opacity: 0.4;
  }
  .main .swiper-pagination-bullet-active {
    width: 34px;
    border-radius: 100px;
    background-color: rgba(97, 92, 92, 0.4);
    z-index: -1;
    opacity: 1;
  }
  .main .swiper-pagination-bullet-active::after {
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    z-index: 1;
    width: 50%;
    height: 100%;
    border-radius: 100px;
    background-color: #414141;
    opacity: 1;
  }
  .connect {
    max-width: 280px;
    margin-top: 160px;
    -webkit-box-ordinal-group: 0;
        -ms-flex-order: -1;
            order: -1;
  }
  .connect__title {
    display: none;
  }
  .connect__list {
    display: block;
  }
  .connect__list li {
    width: 100%;
    padding: 0 0 0 50px;
    margin-bottom: 50px;
    text-align: left;
  }
  .connect__list li::before {
    left: 0;
    width: 36px;
    height: 36px;
    margin-left: 0;
    font-size: 14px;
    text-align: center;
  }
  .connect__line {
    display: none;
  }
  .company__stat li {
    margin-bottom: 15px;
  }
}

@media (max-width: 767px) {
  .header {
    padding-bottom: 160px;
  }
  .header::after {
    height: 44%;
  }
  .info-block {
    max-width: 50%;
  }
  .info-block__title {
    margin-bottom: 8px;
    font-size: 24px;
    line-height: 1.4;
  }
  .info-block__text {
    font-size: 12px;
    line-height: 1.8;
  }
  .main .swiper-container {
    max-width: 304px;
  }
  .main .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: auto;
    top: 20px;
  }
  .company .company__wrapper {
    padding-top: 40px;
  }
  .connect {
    max-width: 320px;
    margin-top: 120px;
  }
  .connect__list {
    font-size: 14px;
  }
  .connect__list li {
    margin-bottom: 40px;
  }
}

@media (max-width: 640px) {
  .header {
    padding-bottom: 220px;
  }
  .header::after {
    height: 33%;
  }
  .header__grid {
    -ms-grid-rows: (max-content)[3];
        grid-template-rows: repeat(3, -webkit-max-content);
        grid-template-rows: repeat(3, max-content);
    -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
  }
  .logo {
    -ms-grid-row: 1;
    -ms-grid-row-span: 1;
    grid-row: 1/2;
  }
  .login {
    -ms-grid-row: 3;
    -ms-grid-row-span: 1;
    grid-row: 3/4;
  }
  .info-block {
    max-width: 100%;
  }
  .info-block,
  .login,
  .logo {
    grid-column: auto;
    text-align: center;
  }
  .main .main__wrapper {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .main .swiper-container {
    max-width: 100%;
  }
  .connect {
    max-width: 100%;
    margin: 0 auto;
    -webkit-box-ordinal-group: 1;
        -ms-flex-order: 0;
            order: 0;
  }
  .no-login .header {
    padding-bottom: 260px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 15px;
  }
  .btn {
    font-size: 13px;
  }
  .header__info-block {
    margin-top: 15px;
  }
  .company__wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
  .company__stat li {
    margin-bottom: 0;
  }
  .modal__wrapper {
    padding: 20px;
  }
  .modal__header {
    margin-bottom: 35px;
  }
  .modal__body {
    font-size: 16px;
  }
  .modal__congratulate {
    padding-top: 120px;
    font-size: 20px;
  }
  .modal__congratulate::after {
    width: 190px;
    height: 90px;
    margin-left: -95px;
    background-size: cover;
  }
}