/* prefixed by https://autoprefixer.github.io (PostCSS: v7.0.26, autoprefixer: v9.7.3) */

/* montserrat-regular - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: local('Montserrat Regular'), local('Montserrat-Regular'),
       url('../fonts/montserrat-v14-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/montserrat-v14-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* montserrat-700 - latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat Bold'), local('Montserrat-Bold'),
       url('../fonts/montserrat-v14-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/montserrat-v14-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* roboto-300italic - latin */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 300;
  src: local('Roboto Light Italic'), local('Roboto-LightItalic'),
       url('../fonts/roboto-v20-latin-300italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/roboto-v20-latin-300italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* roboto-regular - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'),
       url('../fonts/roboto-v20-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/roboto-v20-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* kaushan-script-regular - latin */
@font-face {
  font-family: 'Kaushan Script';
  font-style: normal;
  font-weight: 400;
  src: local('Kaushan Script'), local('KaushanScript-Regular'),
       url('../fonts/kaushan-script-v8-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/kaushan-script-v8-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

:root {
  --main-font: 'Montserrat', sans-serif;
  --second-font: 'Roboto', sans-serif;
  --third-font: 'Kaushan Script', sans-serif;
  --light-color: #fff;
  --font-color: #999999;
  --heading-color: #333333;
  --hover-color: #fce38a;
  --second-hover-color: #f38181;
}

* {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
}

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

.container {
  width: 1200px;
  margin: 0 auto;
}

/* HEADER SECTION */

.header {
    padding-top: 26px;
    padding-bottom: 230px;
    background-image: -webkit-gradient( linear, left top, left bottom, from(rgba(243,129,129,0.9)), to(rgba(252,227,138,0.9))), url('../img/section_header/baner.jpg');
    background-image: -o-linear-gradient( rgba(243,129,129,0.9) 0%, rgba(252,227,138,0.9) 100%), url('../img/section_header/baner.jpg');
    background-image: linear-gradient( rgba(243,129,129,0.9) 0%, rgba(252,227,138,0.9) 100%), url('../img/section_header/baner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.header__nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: baseline;
        -ms-flex-align: baseline;
            align-items: baseline;
    margin-bottom: 195px;
}

.logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    font-family: var(--main-font);
    font-weight: 700;
    font-size: 30px;
    line-height: 36px;
    color: var(--light-color);
}

.logo:hover {
    color: var(--hover-color);
}

.navigation__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-left: auto;
    margin-right: 50px;
}

.navigation__item:not(:last-child) {
    margin-right: 58px;
}

.navigation__link {
    position: relative;
    font-family: var(--main-font);
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    color: var(--light-color);
    text-transform: uppercase;
    cursor: pointer;
}

.navigation__link:after {
  content: "";
  position: absolute;
  display: block;
  margin-top: 10px;
  height: 3px;
  left: 0;
  width: 0;
  background-color: var(--hover-color);
  -webkit-transition: width 0.2s linear;
  -o-transition: width 0.2s linear;
  transition: width 0.2s linear;
}

.navigation__link:hover,
.navigation__link:focus,
.widget__button-icon:hover,
.widget__button-icon:focus {
  color: var(--hover-color);
  fill: var(--hover-color);
  outline: none;
}

.navigation__link:hover::after,
.navigation__link:focus::after {
  width: 100%;
}

.widget__button {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.navigation__widget {
    fill: var(--light-color);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.widget__button-icon:first-child {
  margin-right: 42px;
}

.header__title {
    margin: 0 auto;
    margin-bottom: 110px;
    width: 80%;
    font-size: 150px;
    line-height: 170px;
    font-family: var(--main-font);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--light-color);
}

.header__title-style {
    font-family: var(--third-font);
    font-weight: 400;
    font-size: 72px;
    line-height: 86px;
    text-transform: capitalize;
}

.header__title-link {
    font-family: var(--main-font);
    font-weight: 700;
    font-size: 14px;
    line-height: 17px;
    display: block;
    margin: 0 auto;
    padding-top: 8px; 
    width: 160px;
    height: 40px;
    background-color: transparent;
    border: 3px solid var(--light-color);
    color: var(--light-color);
    text-transform: uppercase;
}

.header__title-link:hover {
    cursor: pointer;
    border-color: var(--second-hover-color);
}

/* SERVICES SECTION */

.services {
  padding-top: 115px;
}

.section__title {
  color: #333333;
  font-family: var(--main-font);
  font-weight: 700;
  font-size: 30px;
  line-height: 36px;
  text-align: center;
  text-transform: uppercase;
}

.section__title::first-letter {
  text-transform: uppercase;
}

.section__title::after {
  content: "";
  display: block;
  height: 3px;
  width: 60px;
  background-color: var(--second-hover-color);
  margin: 0 auto;
  margin-top: 40px;
}

.services__title::after {
  margin-bottom: 66px;
}

.section__title-style {
  display: block;
  font-family: var(--third-font);
  font-weight: 400;
  font-size: 24px;
  line-height: 29px;
  margin-bottom: 20px;
  text-transform: capitalize;
}

.services__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -ms-flex-pack: distribute;
      justify-content: space-around;
}

.services__item {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding-left: 83px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 383px;
          flex: 0 0 383px;
  margin-bottom: 105px;
  text-align: left;
}

.services__item-heading {
  font-family: var(--main-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  text-transform: uppercase;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.services__item-description {
  font-family: var(--second-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: var(--font-color);
}

.services__item::before {
  position: absolute;
  content: "";
  background-repeat: no-repeat;
  background-position: top;
  width: 83px;
  height: 100%;
  top: 0;
  left: 0;
}

.services__item-alarm::before {
  background-image: url("../img/services/icons/alarm_icon.svg");
}

.services__item-graph::before {
  background-image: url("../img/services/icons/graph_icon.svg");
}

.services__item-computer::before {
  background-image: url("../img/services/icons/computer_icon.svg");
}

.services__item-book::before {
  background-image: url("../img/services/icons/book_icon.svg");
}

.services__item-home::before {
  background-image: url("../img/services/icons/home_icon.svg");
}

.services__item-square::before {
  background-image: url("../img/services/icons/square_icon.svg");
}

/* TEAM SECTION */

.team {
  padding-bottom: 82px;
}

.team__title::after {
  content: "";
  margin-bottom: 45px;
}

.team__description {
  font-family: var(--second-font);
  color: var(--font-color);
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  margin-bottom: 92px;
}

.team__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  text-align: center;
}

.team__item {
  width: 380px;
}

.team__overlay-wrapp {
  position: relative;
  margin-bottom: 30px;
  -webkit-transition: all 200ms linear;
  -o-transition: all 200ms linear;
  transition: all 200ms linear;
}

.team__overlay {
  position: absolute;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  height: 100%;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(243, 129, 129, 0.9)), to(rgba(252, 227, 138, 0.9)));
  background-image: -o-linear-gradient(rgba(243, 129, 129, 0.9) 0%, rgba(252, 227, 138, 0.9) 100%);
  background-image: linear-gradient(rgba(243, 129, 129, 0.9) 0%, rgba(252, 227, 138, 0.9) 100%);
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 200ms linear;
  -o-transition: opacity 200ms linear;
  transition: opacity 200ms linear;
}

.overlay__list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.overlay__item {
  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;
}

.overlay__link {
  width: 56px;
  height: 56px;
  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: var(--hover-color);
  -webkit-transition: background-color 200ms linear;
  -o-transition: background-color 200ms linear;
  transition: background-color 200ms linear;
}

.social-link {
  width: 50%;
  height: 50%;
  fill: var(--second-hover-color);
  -webkit-transition: fill 0.2s linear;
  -o-transition: fill 0.2s linear;
  transition: fill 0.2s linear;
}

.overlay__item:hover .social-link,
.overlay__item:focus .social-link {
  fill: var(--light-color)
}

.overlay__item:not(:last-child) {
  border-right: 1px solid var(--second-hover-color);
}

.overlay__link:hover,
.overlay__link:focus {
  background-color: var(--second-hover-color);
}

.team__item:hover .overlay,
.team__item:focus .overlay {
  opacity: 1;
  visibility: visible;
}

.team__item:hover .team__overlay-wrapp,
.team__item:focus .team__overlay-wrapp {
  -webkit-transform: translate(-10px, -10px);
      -ms-transform: translate(-10px, -10px);
          transform: translate(-10px, -10px);
  -webkit-box-shadow: 10px 10px #95e1d3;
          box-shadow: 10px 10px #95e1d3;
}

.overlay__heading {
  font-family: var(--main-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  text-transform: uppercase;
  color: var(--heading-color);
  margin-bottom: 14px;
}

.overlay__description {
  font-family: var(--second-font);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  line-height: 24px;
  color: var(--font-color);
  text-transform: capitalize;
}

/* FOOTER SECTION */

.footer {
  border-top: 1px solid #e5e5e5;
  min-height: 62px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.copyright {
  font-family: var(--main-font);
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
}

.copyright__link {
  color: var(--second-hover-color);
}

.copyright__link:hover,
.copyright__link:focus {
  color: var(--hover-color);
  outline: none;
}

.subscription {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.subscription__placeholder {
  border: 1px solid #e7e7e7;
  height: 40px;
  width: 230px;
  padding-left: 12px;
  outline: none;
}

.subscription__placeholder::-webkit-input-placeholder {
  font-family: var(--second-font);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  line-height: 24px;
  color: #cccccc;
}

.subscription__placeholder::-moz-placeholder {
  font-family: var(--second-font);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  line-height: 24px;
  color: #cccccc;
}

.subscription__placeholder:-ms-input-placeholder {
  font-family: var(--second-font);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  line-height: 24px;
  color: #cccccc;
}

.subscription__placeholder::-ms-input-placeholder {
  font-family: var(--second-font);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  line-height: 24px;
  color: #cccccc;
}

.subscription__placeholder::placeholder {
  font-family: var(--second-font);
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  line-height: 24px;
  color: #cccccc;
}

.subscription__btn {
  font-family: var(--main-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 17px;
  text-transform: uppercase;
  background-color: #95e1d3;
  color: var(--light-color);
  height: 40px;
  width: 150px;
  border: none;
}

.subscription__btn:hover,
.subscription__btn:focus {
  background-color: var(--second-hover-color);
  cursor: pointer;
}

/* MEDIA */

@media (-webkit-min-device-pixel-ratio: 2), (-o-min-device-pixel-ratio: 2/1), (min-resolution: 192dpi) {
    .header {
        background-image: -webkit-gradient( linear, left top, left bottom, from(rgba(243,129,129,0.9)), to(rgba(252,227,138,0.9))), url('../img/section_header/baner@2x.jpg');
        background-image: -o-linear-gradient( rgba(243,129,129,0.9) 0%, rgba(252,227,138,0.9) 100%), url('../img/section_header/baner@2x.jpg');
        background-image: linear-gradient( rgba(243,129,129,0.9) 0%, rgba(252,227,138,0.9) 100%), url('../img/section_header/baner@2x.jpg');
    }
}