@import 'reset.css';

.a-body {
  font-family: "FuturaLT-Book", sans-serif;
  font-size: 14px;
  position: relative;
}
.a-container {
  width: 100%;
  max-width: 1200px;
  padding: 0 15px;
  box-sizing: border-box;
  margin: 0 auto;
}
.a-section-title {
  font-family: "BarlowCond-Semibold";
  font-size: 36px;
  line-height: 1;
  padding-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  text-align: center;
}
.a-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: #8cc53e;
}
.s-section {
  padding: 45px 0;
}
/* Header */
.s-header {
  position: fixed;
  top: 0;
  z-index: 3;
  box-shadow: 2px 2px 10px #ccc;
  width: 100%;
  background: white;
}
.s-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
  transition: 200ms;
}
.s-header__container--scrolled {
  height: 70px;
}
.s-header__container--scrolled .s-header-logo__image{
  height: 50px;
  width: auto;
}
.s-header-logo {
  width: 200px;
}
.s-header-logo__image {
  height: 89px;
  width: auto;transition: 200ms;
}
/*--Burger--*/
.s-header__burger {
  width: 30px;
  height: 20px;
  position: relative;
  transform: rotate(0deg);
  transition: 300ms;
  cursor: pointer;
  display: none;
}
.s-header__burger-line {
  display: block;
  position: absolute;
  height: 3px;
  border-radius: 3px;
  width: 30px;
  background: #8cc53e;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s;
}
.s-header__burger-line:nth-child(1) {
  top: 0px;
  -webkit-transform-origin: left center;
  transform-origin: left center;
}
.s-header__burger-line:nth-child(2) {
  top: 9px;
  -webkit-transform-origin: left center;
  transform-origin: left center;
}
.s-header__burger-line:nth-child(3) {
  top: 17px;
  -webkit-transform-origin: left center;
  transform-origin: left center;
}
.s-header__burger--open .s-header__burger-line:nth-child(1) {
  transform: rotate(45deg);
  top: -2px;
  left: 5px;
}
.s-header__burger--open .s-header__burger-line:nth-child(2) {
  width: 0;
  opacity: 0;
}
.s-header__burger--open .s-header__burger-line:nth-child(3) {
  transform: rotate(-45deg);
  top: 19px;
  left: 5px;
}
.s-header__menu-overlay {
  display: none;
}
/*--Header nav--*/
.s-header-naw__menu {
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-header-naw__item {
  margin: 0 15px;
}
.s-header-naw__link {
  font-family: "BarlowCond-Regular", sans-serif;
  font-size: 24px;
  line-height: 1;
  color: #a9a9a9;
  text-transform: uppercase;
}
.s-header-naw__link.active {
  color: #8cc53e;
}
/*--Header login--*/
.s-header__login-link {
  display: flex;
  align-items: center;
  font-size: 17px;
  color: #929497;
  line-height: 1.3px;
}
.s-header__login-icon {
  margin-right: 13px;
}
/* Rules section */
.s-scection-rules {
  background: url("../img/progressive_bg.png") center center no-repeat #f5f5f5;
  background-size: contain;
  padding: 0;
}
.s-scection-rules__container {
  height: 600px;
  padding-top: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/*-- Rules title --*/
.s-scection-rules__title {
  font-family: "FuturaLT-Bold";
  font-size: 35px;
  line-height: 1.4;
}

/*-- Rules scheme --*/
.s-scection-rules__sheme {
  min-width: 610px;
  height: 100%;
  position: relative;
}
.s-scection-rules__item {
  width: 200px;
  height: 200px;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s-scection-rules__item > img {
  position: absolute;
  top:0;
  left: 0;
  z-index: 0;
  width: auto;
  height: 200px;
}
.s-scection-rules__item--rule > img {
  left: auto;
  right: 0;
}
.s-scection-rules__name {
  position: relative;
  z-index: 1;
  font-size: 23px;
  letter-spacing: 0.02em;
  color: #919397;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: white;
  border-bottom: 5px solid #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.s-scection-rules__icon {
  margin-bottom: 16px;
}
.s-scection-rules__item--laws {
  top: 28px;
  left: 2px;
}
.s-scection-rules__item--data {
  bottom: 28px;
  left: 2px;
}
.s-scection-rules__item--rule {
  top:50%;
  transform: translateY(-50%);
  left: 160px;
}
.s-scection-rules__item--rule::after {
  content: '';
  background: url("../img/rules/rule_arrow_after.svg")center no-repeat;
  background-size: auto 100%;
  width: 50px;
  height: 24px;
  position: absolute;
  right: -46px;
  top:50%;
  transform: translateY(-50%);
}
.s-scection-rules__item--customers {
  top:50%;
  transform: translateY(-50%);
  left: 415px;
}
/* Our service section */
.s-our-services {
  display: grid;
  grid-template-columns: auto auto;
  grid-column-gap: 40px;
}
.s-scection-our-services__title {
  margin-bottom: 47px;
}
.s-our-services__grid-item--1 {
  grid-area: 1 / 1;
}
.s-our-services__grid-item--2 {
  grid-area: 2 / 1;
}
.s-our-services__grid-item--3 {
  grid-area: 3 / 1;
}
.s-our-services__grid-item--4 {
  grid-area: 1 / 2;
}
.s-our-services__grid-item--5 {
  grid-area: 2 / 2;
}
.s-our-services__grid-item--6 {
  grid-area: 3 / 2;
}
.s-our-services__column-title {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #003448;
  line-height: 1.1;
  letter-spacing: 0.015em;
  font-family: "FuturaLT-Bold";
  text-transform: uppercase;
  margin-bottom: 25px;
}
.s-our-services__column-title img {
  margin-right: 30px;
}
.s-our-services__column-subtitle {
  font-size: 16px;
  font-family: "FuturaLT-Book";
  text-transform: none;
  margin-top: 15px;
  letter-spacing: 0;
}
.s-our-services__column-info {
  margin-bottom: 35px;
}
.s-our-services__column-info-title {
  text-align: center;
  line-height: 56px;
  background: #f5f5f5;
  font-family: "BarlowCond-Regular";
  font-size: 20px;
  text-transform: uppercase;
  border-radius: 5px 5px 0 0;
  margin-bottom: 16px;
}
.s-our-services__column-info-content {
  font-family: "FuturaLT-Light";
  font-size: 16px;
  line-height: 1.4;
  color: #006990;
}

/* How it works */
.s-scection-how-it-works {
  position: relative;
  background: #f5f5f5;
  padding: 45px 0 20px;
}
.s-scection-how-it-works::before,
.s-scection-how-it-works::after {
  content: '';
  position: absolute;
  top:0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: url("../img/how-it-works_bg.png") bottom right no-repeat;
}
.s-scection-how-it-works::after {
  transform: rotate(180deg);
}
.s-scection-how-it-works__container {
  position: relative;
  z-index: 2;
}

/*-- Videos --*/
.s-videos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.s-videos__video {
  width: 31.62%;
  margin-right: 2.57%;
  margin-bottom: 50px;

}
.s-videos__video:nth-child(3n+3),
.s-videos__video:last-of-type {
  margin-right: 0;
}
.s-video__video-player {
  width: 100%;
  height: 250px;
  box-shadow: 4px 6px 8px rgba(0,0,0,0.2);
}
.s-video__video-title {
  font-size: 19px;
  color: #003448;
  font-family: "FuturaLT-Bold";
  margin-top: 20px;
  text-align: center;
  text-transform: uppercase;
}
.s-video__video-title-number {
  color: #8cc53e;
  margin-right: 3px;
}
/* Contacts */
.s-scection-contacts {
  min-height: 325px;
  border-bottom: 8px solid #d3d3d3;
  box-sizing: border-box;
}
.s-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 55px;
}
.s-contacts__contact {
  width: 170px;
  font-size: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #000;
  margin: 0 115px;
}
.s-contacts__contact:hover {
  color: #8cc53e;
}
.s-contacts__contact-icon {
  margin-bottom: 32px;
  height: 31px;
  width: auto;
}
/* Footer */
.a-footer {
  height: 140px;
  background: linear-gradient(#6b6b6b, #1a1b1b);
  border-top: 3px solid #a2a2a2;
}
.a-footer__slogan {
  font-family: "FuturaLT-Book";
  color: #fff;
  font-size: 18px;
  text-align: center;
  margin-top: 36px;
}
.a-footer__copyrights {
  font-family: "FuturaLT-Light";
  font-size: 13px;
  color: #8cc53e;
  text-align: center;
  margin-top: 37px;
}
@media (max-width: 1200px) {
  .a-section-title {
    font-size: 34px;
  }
  .a-container.s-header__container {
    max-width: 100%;
  }
  .s-header__container {
    height: 100px;
  }
  .a-container {
    max-width: 993px;
  }
  .s-header-logo__image {
    height: 75px;
  }
  .s-header__container--scrolled {
    height: 70px;
  }
  .s-header__container--scrolled .s-header-logo__image{
    height: 50px;
    width: auto;
  }
  .s-header-naw__link {
    font-size: 22px;
  }
  /* Rules */
  .s-scection-rules__container {
    height: 530px;
    padding-top: 100px;
  }
  .s-scection-rules__title {
    font-size: 30px;
    line-height: 1.6;
  }
  .s-scection-rules__sheme {
    min-width: 540px;
  }
  .s-scection-rules__item {
    width: 174px;
    height: 174px;
  }
  .s-scection-rules__item > img {
    height: 174px;
  }
  .s-scection-rules__name {
    width: 132px;
    height: 132px;
    font-size: 20px;
  }
  .s-scection-rules__item--rule::after {
    height: 20px;
    width: 40px;
    right: -37px;
  }
  .s-scection-rules__item--laws {
    top: 32px;
    left: 2px;
  }
  .s-scection-rules__item--data {
    bottom: 28px;
    left: 2px;
  }
  .s-scection-rules__item--rule {
    left: 143px;
  }
  .s-scection-rules__item--rule span img {
    width: 76px;
  }
  .s-scection-rules__item--customers {
    left: 368px;
  }
  .s-videos__video {
    margin-bottom: 45px;
  }
  .s-video__video-player {
    height: 200px;
  }
  .s-video__video-title {
    font-size: 18px;
  }
  .s-contacts__contact {
    margin: 0 90px;
  }
}
@media (max-width: 992px) {
  .a-section-title {
    font-size: 32px;
  }
  .a-container.s-header__container {
    height: 90px;
    max-width: 100%;
  }
  .a-container {
    max-width: 768px;
  }
  .s-header-logo__image {
    height: 70px;
  }
  .s-header__container--scrolled {
    height: 65px;
  }
  .s-header__container--scrolled .s-header-logo__image{
    height: 47px;
    width: auto;
  }
  .s-header-naw__link {
    font-size: 21px;
  }

  /* Rules */
  .s-scection-rules {
    background-size: cover;
    background-position: left bottom;
  }
  .s-scection-rules__container {
    height: 610px;
    padding-top: 90px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .s-scection-rules__title {
    font-size: 26px;
    line-height: 1.5;
    text-align: center;
    margin: 20px 0 20px;
  }
  .s-scection-rules__sheme {
    min-width: 530px;
    width: 550px;
    height: 370px;
    margin: 0 auto;
  }
  .s-scection-rules__item--laws {
    top: 0px;
    left: 2px;
  }
  .s-scection-rules__item--data {
    bottom: 0px;
    left: 2px;
  }
  .s-our-services__column-title img {
    margin-right: 15px;
    width: 55px;
    height: auto;
  }
  .s-our-services__column-title {
      font-size: 14px;
    margin-bottom: 20px;
  }
  .s-videos__video {
    width: 48%;
    margin-right: 4%;
    margin-bottom: 40px;

  }
  .s-videos__video:nth-child(3n+3) {
    margin-right: 4%;
  }
  .s-videos__video:nth-child(2n+2) {
    margin-right: 0;
  }
  .s-video__video-player {
    height: 220px;
  }
  .s-video__video-title {
    font-size: 17px;
  }
  .s-contacts__contact {
    margin: 0 80px;
  }

}
@media (max-width: 767px) {
  html.hidden,
  .a-body.hidden {
    overflow: hidden;
  }
  .a-container.s-header__container {
    height: 60px;
  }
  .s-header-logo__image {
    height: 45px;
  }
  .s-header__burger {
    display: block;
    position: relative;
    z-index: 3;
  }
  .s-header__naw {
    padding-top: 60px;
    position: absolute;
    top:0;
    left: -100%;
    z-index: 2;
    transition: 300ms;
  }
  .s-header__naw--open {
    left: 0;
  }
  .s-header-naw__menu {
    flex-direction: column;
    background: #8cc53e;
    height: calc(100vh - 60px);
  }
  .s-header__menu-overlay {
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: 300ms;
  }
  .s-header__menu-overlay--open {
    opacity: 1;
    visibility: visible;
    top: 60px;
    position: absolute;
    left: 0;
    z-index: 1;
    background: rgba(0,0,0,0.2);
    height: calc(100vh - 60px);
    width: 100%;
  }
  .s-header-naw__item {
    margin: 0;
    width: 100%;
  }
  .s-header-naw__link {
    text-transform: uppercase;
    color: #fff;
    font-size: 24px;
    line-height: 56px;
    padding: 0 0 0 39px;
    text-align: left;
    width: 270px;
    box-sizing: border-box;
    display: block;
    border-bottom: 1px solid #a5be60;
    border-top: 1px solid #8fae38;
  }
  .s-header-naw__link.active {
    background: #fff;
    color: #8fae38;
  }
  .s-header-naw__link::after {
    display: none;
  }
  .s-header-logo {
    position: absolute;
    width: auto;
    top:50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }
  .s-header__login {
    position: static;
  }

  .a-section-title {
    font-size: 28px;
  }
  .a-container {
    padding: 0 10px;
  }
  /* Rules */
  .s-scection-rules__container {
    height: 575px;
    padding-top: 60px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .s-scection-rules__title {
    font-size: 22px;
    line-height: 1.5;
    text-align: center;
    margin: 20px 0 20px;
  }
  .s-scection-rules__sheme {
    min-width: 530px;
    width: 550px;
    height: 370px;
    margin: 0 auto;
  }
  .s-our-services {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .s-videos__video {
    width: 100%;
    max-width: 370px;
    margin: 0 0 30px 0 !important;
  }
  .s-video__video-title {
    font-size: 16px;
    margin-top: 10px;
  }
  .s-contacts {
    flex-direction: column;
    margin-top: 50px;
  }
  .s-contacts__contact {
    margin: 0 0 50px 0;
  }
  .s-contacts__contact-icon {
    margin-bottom: 20px;
  }
  .a-footer {
    height: 150px;
  }
}
@media (max-width: 575px) {
  /* Rules */
  .s-scection-rules__container {
    height: 575px;
  }
  .s-scection-rules__title {
    font-size: 18px;
    margin: 20px 0 6px;
  }
  .s-scection-rules__sheme {
    min-width: 300px;
    width: 300px;
  }
  .s-scection-rules__item {
    width: 134px;
    height: 134px;
  }
  .s-scection-rules__item > img {
    height: 134px;
  }
  .s-scection-rules__name {
    width: 100px;
    height: 100px;
    font-size: 15px;
    border-bottom-width: 3px;
  }
  .s-scection-rules__item--rule::after {
    height: 18px;
    width: 35px;
    right: -32px;
  }
  .s-scection-rules__item--laws {
    top: 8px;
    left: auto;
    right: 8px;
  }
  .s-scection-rules__icon--laws {
    width: 27px;
    margin-bottom: 10px;
  }
  .s-scection-rules__item--laws > img {
    transform: rotate(90deg);
    left: 8px;
    top: -8px;
  }
  .s-scection-rules__item--data {
    bottom: auto;
    left: 10px;
    top: 8px;
  }
  .s-scection-rules__icon--data {
    width: 27px;
    margin-bottom: 10px;
  }
  .s-scection-rules__item--data > img {
    transform: rotate(90deg);
    left: 7px;
    top: -8px;
  }
  .s-scection-rules__item--rule {
    left: 50%;
    top:117px;
    transform: translate(-50%, 0);
  }
  .s-scection-rules__icon--rule {
    width: 32px;
    margin-bottom: 7px;
  }
  .s-scection-rules__item--rule > img {
    transform: rotate(90deg);
    top: 3px;
    left: 7px;
  }
  .s-scection-rules__item--rule span img {
    width: 60px;
  }
  .s-scection-rules__item--rule::after {
    top: 111%;
    right: auto;
    left: 41%;
    transform: rotate(90deg) translate(-50%, 0);
    height: 14px;
    width: 28px;
  }
  .s-scection-rules__item--customers {
    left: 50%;
    top:280px;
    transform: translate(-50%, 0);
  }
  .s-scection-rules__icon--customers {
    width: 38px;
    margin-bottom: 10px;
  }
}
