/* Our default values set as CSS variables */
:root {
  --black:#000;
  --white:#fff;
  --color-bg-main: #fff;
  --color-bg-lightgray: #F5F4FA;
  --color-bg-icons: #AFB1B8;
  --color-bg-bottom: #2f303a;
  --color-blue-main: #2196F3;
  --color-blue-secondary:#188CEB;
  --color-text-main: #212121;
  --color-text-gray: #757575;
  --color-buttom:#2196F3;;
  --color-buttom-active:#188CEB;;
  --color-buttom-nav:#F5F4FA;;
  --color-buttom-nav-active:#2196F3;;
  --font-family: 'Roboto';
  --font-family-logo: 'Raleway', sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, p, blockquote, th, td, img, a {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-family: inherit;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  text-size-adjust: 100%;
}

body {
  font: 400 100%/1.5 var(--font-family), -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  letter-spacing: 0.03em;
}

.section-our-benefits,
.section-our-focus,
.section-our-team,
.section-our-clients,
.section-our-works {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-our-benefits {
  padding-bottom: 0;
}

.section-our-team {
  background-color: var(--color-bg-lightgray);
}

.section-our-clients a {
  color: var(--color-bg-icons);
}

.section-our-works {
  padding-top: 60px;
}

.main-wrap {
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 576px) {
  .main-wrap {
    max-width: 400px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
  }
}

@media (min-width: 768px) {
  .main-wrap {
    max-width: 704px;
    padding-left: 0;
    padding-right: 0;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .main-wrap {
    max-width: 944px;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 1280px) {
  .main-wrap {
    max-width: 1160px;
    padding-left: 0;
    padding-right: 0;
  }
}


/*------------- Typographic styles ------------- */

a {
  color: var(--color-text-main);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--color-blue-main);
}

.active-link {
  color: var(--color-blue-main);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 40px;
}

ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

p {
  margin-bottom: 25px;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

svg {
  vertical-align: middle;
}

.overflow-hidden {
  overflow: hidden;
  width: 100%;
}

.nobr {
  white-space: nowrap
}

.clear {
  clear: both
}


/*------------ Header and Navigation ------------ */


header {
  padding: 0 20px;
  height: 80px;
  display: flex;
  justify-content: space-between;
}

.main-border-top {border-top: 1px solid #ECECEC;}

.logo {
  font: 700 100%/1.4 var(--font-family-logo);
  font-size: 26px;
  line-height: 80px;
  font-weight: 700;
}

.logo span {
  color: var(--color-blue-main);
}

header svg {
  margin-right: 4px;
}

header ul {
  display: flex;
  align-items: center;
  height: 100%;
  font-size: 0.875rem;
  font-weight: 500;
}

header ul li {
  margin: 0 18px;
}

#hamburger-icon {
  margin: auto 0;
  display: none;
  cursor: pointer;
}

#hamburger-icon div {
  width: 35px;
  height: 3px;
  background-color: var(--color-text-main);
  margin: 6px 0;
  transition: 0.4s;
}

.open .bar1 {
  -webkit-transform: rotate(-45deg) translate(-6px, 6px);
  transform: rotate(-45deg) translate(-6px, 6px);
}

.open .bar2 {
  opacity: 0;
}

.open .bar3 {
  -webkit-transform: rotate(45deg) translate(-6px, -8px);
  transform: rotate(45deg) translate(-6px, -8px);
}

.open .mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.375rem;
  font-weight: 500;
  z-index: 3;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 79px;
  left: 0;
  padding: 20px;
  height: calc(100vh - 50px);
  width: 100vw;
  background-color: rgba(100%, 100%, 100%, 0.9);
}

.mobile-menu li {
  margin: 10px 0 0 0;
}

.header-email-tel  {
  color: var(--color-text-gray);
  font-weight: 400;
}

@media (max-width: 1024px) {
  header nav,
  header .header-email-tel {
    display: none;
  }

  #hamburger-icon {
    display: block;
  }
}


/*------------ Baner  ------------*/


.banner-container {
  /*background: url(images/baner-maket.jpg) no-repeat center center;*/
  background: url(images/baner-main.jpeg) no-repeat center center;
  background-color: var(--color-bg-bottom);
  background-size: cover;
}

.banner {
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 160px 0;
  background: rgb(0, 43, 101, 0.35);
  color: var(--white);
}

.baner-title {
  text-align: center;
  padding: 30px 1rem 30px 1rem;
  text-transform: uppercase;
  font-size: 2.125rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .baner-title {
    font-size: 3.0rem;
  }
}

@media (min-width: 1280px) {
  .banner {
    padding-top: 190px;
    padding-bottom: 190px;
  }
}

@media (min-width: 1420px) {
  .banner {
    padding-top: 260px;
    padding-bottom: 260px;
  }
}


/*------------ About Us  ------------*/


.our-benefits, .our-team,
.best-clients {
  display: grid;
  grid-gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  /* grid-template-columns: repeat(1, calc(100% - 9.999975px));*/
}

.best-clients {
  grid-template-columns: repeat(2, calc(50% - 9.999975px));
}

.our-focus, .our-works {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.our-focus li, .our-works li {
  position: relative;
  max-width: 100%;
}

.our-works li {
  border: 1px solid #EEEEEE;
}

.our-works li:hover {
  border: 1px solid #EEEEEE;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.12), 0px 4px 4px rgba(0, 0, 0, 0.06), 1px 4px 6px rgba(0, 0, 0, 0.16);
}

.our-focus h3 {
  background: rgba(0, 0, 0, 0.6);
  background: -webkit-gradient(linear,
      left top,
      left bottom,
      color-stop(50%, rgba(0, 0, 0, 0)),
      to(rgba(0, 0, 0, 0.9)));
  background: -o-linear-gradient(top, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.9) 100%);
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 50%,
      rgba(0, 0, 0, 0.9) 100%);
  z-index: 1;
  padding: 50px 0 20px 0;
  text-align: center;
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  color: var(--white);
  font-weight: 400;
  font-size: 0.785rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 575px) {
  .our-benefits, .our-team {
    /*grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));*/
    grid-template-columns: repeat(2, calc(50% - 9.999975px));
  }

  .our-focus li, .our-works li {
    display: block;
    max-width: 48%;
  }

  .best-clients {
    /*grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));*/
    grid-template-columns: repeat(3, calc(33.333333333333336% - 13.3333px));
  }
}

@media (min-width: 1024px) {

  /*944px*/
  .our-benefits,
  .our-team {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .best-clients {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .our-focus li, .our-works li {
    display: block;
    max-width: 301.3px;
  }
}

@media (min-width: 1280px) {

  /*1160px;*/
  .our-focus li, .our-works li {
    max-width: 373.3px;
  }
}

.our-benefits h3, .our-team h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 5px;
}

.our-team h3 {
  font-size: 1rem;
  text-transform:none;
  font-weight: 500;
}

.our-benefits p {
  color: var(--color-text-gray);
  font-size: 0.875rem;
  line-height: 1.7;
}

@media (max-width: 576px) {
  .our-benefits p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

.our-benefits-img-box {
  background-color: var(--color-bg-lightgray);
  border-radius: 4px;
  width: 100%;
  padding: 15px;
  text-align: center;
  margin-bottom: 15px;
}

.our-benefits-img-box img {
  width: 70px;
  display: inline;
}

.client-logo {
  background: #fff;
  border: 1px solid #afb1b8;
  border-radius: 4px;
  width: 100%;
  padding: 10px 0 5px 0;
  text-align: center;
}

.client-logo:hover {
  border-color: #2196f3;
}

.our-team img {
  max-width: 740px;
  width: 100%;
}

.team-item {
  border-radius: 0px 0px 4px 4px;
  background-color: white;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14),
  0px 2px 1px rgba(0, 0, 0, 0.2);
}

.team-item-title {
  margin: 20px 0 3px 0;
}

.team-item-text {
  text-align: center;
  color: #757575
}

.team-item-social-icons {
  margin: -8px auto 22px auto;
  width: 180px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  color: var(--color-text-gray);
}

.team-item-social-icons a {
  color: var(--color-bg-icons);
  transition: all 0.2s ease;
  border-radius: 50%;
  display: block;
  height: 42px;
  line-height: 42px;
  width: 42px !important;
  text-align: center;
  font-size: 1.25rem;
}

.team-item-social-icons a:hover, 
  .team-item-social-icons a:focus  {
  background: var(--color-blue-main);
  color: var(--white);
}


/*------------ Footer  ------------*/


footer {
  background: var(--color-bg-bottom);
  padding-top: 30px;
  padding-bottom: 50px;
  color: var(--white);
  font-size: 0.875rem;
  line-height: 1.71;
}

footer a {
  color: var(--white);
}

address {
  font-style: normal;
  padding-top: 15px;
}

.footer-phone-mail {
  color: rgba(255, 255, 255, 0.6);
}

.footer-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  text-align: center;
}

.footer-item, .footer-item-forma {
  padding: 30px 0 20px 0;
  min-width: 46%;
}

.footer-item-forma {
  width: 100%;
  max-width: 540px;
}

.footer-item .logo {
  line-height: 0;
}

.footer-social-icons {
  margin: 15px 0 0 0;
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  text-align: center;
  color: var(--color-text-gray);
}

.footer-social-icons a {
  color: var(--white);
  transition: all 0.2s ease;
  border-radius: 50%;
  display: block;
  height: 42px;
  line-height: 42px;
  width: 42px !important;
  text-align: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
}

.footer-social-icons a:hover, .footer-social-icons a:focus {
  background: var(--color-blue-main);
  color: var(--white);
}

.follow-us {
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.footer-forma {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.footer-forma input[type="email"] {
  height: 50px;
  padding: 0 10px;
  font-size: 0.875rem;
  margin: 15px 0 20px 0;
  width: 100%;
  color: rgba(255, 255, 255, 0.6);
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.15));
  border-radius: 4px;
  cursor: pointer;
}

.footer-forma input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-forma label {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

.button, .button-nav, .button-send {
  padding:0 32px;
  height: 50px;
  background: var(--color-blue-main);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-family), sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: var(--color-blue-main);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  white-space: nowrap
}

.button:hover, .button:focus, .button-send:hover, .button-send:focus {
  background: var(--color-buttom-active);
}

.button-send {padding:0 52px; margin-top: 20px;}

.button-nav {
  height: 38px;
  background: var(--color-buttom-nav);
  font-weight: 500;
  line-height: 26px;
  color: var(--color-text-main);
  box-shadow:none;
  padding:0 22px;
}

.button-nav:hover, .button-nav:focus, .button-nav.active {
  background: var(--color-buttom-nav-active);
  color: var(--white);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);

}


/* ---------------- Portfolio page --------------*/


.nav-works {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0 0 50px 0;
}

@media (max-width: 576px) {
  .nav-works {justify-content: left;}
}

.our-works h2 {
  font-weight: 700;
  font-size: 1.125rem;
  line-height:1.3;
  letter-spacing: 0.06em;
  text-align: left;
  padding:20px 18px 15px 18px;
  margin: 0;
}

.our-works p {
  line-height: 10px;
  color: var(--color-text-gray);
  padding:0 18px 25px 18px;
  margin: 0;
}

.work-box-img-text {position: relative; overflow: hidden;}

.work-text-hidden {
  display: block;
  font-size: 1.0rem;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(33, 150, 243, 0.9);
  color: #fff;
  padding: 25px;
  -webkit-transition: width 0ms 300ms, height 0ms 300ms, opacity 300ms ease-in-out 0ms;
  -o-transition: width 0ms 300ms, height 0ms 300ms, opacity 300ms ease-in-out 0ms;
  transition: width 0ms 300ms, height 0ms 300ms, opacity 300ms ease-in-out 0ms;
}

.our-works li:hover .work-text-hidden {
  opacity: unset;
}


/*-------------- User contact form ---------------*/


.popup {
  display: none;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
  background-color: rgba(0, 0, 0, 0.2);
}

.user-contact-form {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  font-size: 0.75rem;
  line-height: 1.8;
  color: #757575;
  background-color: #fff;
  border-radius: 3px;
  padding: 2.5rem;
  width: 90%;
  max-width: 450px;
  margin: 20px auto 0 auto;
  animation-name: animatetop;
  animation-duration: 0.4s;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

@media (max-width: 450px) {
  .user-contact-form {
    font-size: 0.875rem;
    line-height: 1.7;
  }
}

@keyframes animatetop {
  form {
    top: -300px;
    opacity: 0;
  }

  to {
    top: 0;
    opacity: 1;
  }
}

.close-form {
  color: #212121;
  font-size: 24px;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 27px;
}

.close-form:hover {
  color: #2196F3;
  cursor: pointer;
}

.user-contact input,
.user-contact textarea {
  width: 100%;
  border: 1px solid rgba(33, 33, 33, 0.2);
  border-radius: 4px;
  font-size: 0.875rem;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
}

.user-contact textarea {
  height: 100px;
}

.user-contact input[type="checkbox"] {
  width: auto;
 /* transform: scale(1.5);*/
  margin: 0px 5px 0 2px;
}

.user-contact input:hover,
.user-contact input:focus,
.user-contact textarea:hover,
.user-contact textarea:focus {
  border-color: #2196F3;
  cursor: pointer;
  outline: none;
}

textarea::placeholder {
  color: rgba(117, 117, 117, 0.5);
}

.user-contact a {
  color: #2196F3;
}

.user-contact a:hover,
.user-contact a:focus {
  color: #757575;
}

.user-contact-form h2 {
  font-size: 1.25rem;
  text-align: center;
  color: #212121;
  line-height: 1.4;
  margin-bottom: 10px;
}