/**
Theme Name: webup53 theme
Author: RyzhkovPavel
Theme URI:   URL темы в каталоге WordPress или где-то еще. Пример: https://webup53.ru
Author URI:  URL автора. Пример: https://github.com/rpm-16
Author Email:  rpm-16@mail.ru
Description: Theme for webup53 site
Tags:        webup53
Version:     Версия темы. Пример: 1.0
*/

@import url(./css/content.css);
@import url(./css/colors.css);


html,
body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  height: 100%;
  color: #666;
  line-height: 130%;
  font-family: 'Nunito', sans-serif;
}

body a {
  color: #000;
}

header {
  background: var(--main-color);
  min-height: 80px;
  width: 100%;
  position: fixed;
  top: 0;
	z-index: 100;
}

section .container .wrapper {
  padding: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.slider .container .wrapper {
  padding: 0 1rem;
}

.space-between{
  justify-content: space-between;
}

header .top {
  align-items: right;
  padding: 5px 1rem;
  max-width: 1440px;
  margin: auto;
  text-align: right;

}

header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  max-width: 1440px;
  margin: auto;
}

header .wrapper .logo {
  font-size: 2rem;
  display: flex;
  align-items: center;
  min-height: 80px;
}

header .wrapper .logo a {
  color: #ccc;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
}

header .wrapper .logo a img {
  margin-right: 0px;
}

header .wrapper .logo:hover a {
  transition: 0.5s;
  color: #fff;
}

header .contacts-header ul {
  list-style: none;
  font-size: 27px;
  padding: 0;
  margin: 0;
}

header .contacts-header ul li {
  background: url("/wp-content/themes/webup/img/phone_ico.svg") no-repeat;
  padding-left: 35px;
}

header .contacts-header ul li a {
  color: #ccc;
  text-decoration: none;
}

.breadcrumbs {
  margin-top: 20px;
}

@media screen and (max-width: 1240px) {
  .contacts-header {
    display: none;
  }
}

@media all and (max-width: 960px) {
  .top, #sidebar {
    display: none;
  }
}

main{
  font-size: 18px;
  line-height: 28px;
  margin: 43px 0px 0px 0px;
}

main .slider {
  width: 100%;
	display:flex;
	align-items: center;
  background: var(--main-color);
  background-size: cover;
 
}

main .slider .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: stretch;
}

main .slider .container .col2x {
  flex-basis: 50%;
  align-items: center;
  align-items: center;
  justify-content: center;
}

main .slider .container .col2x img {
  width: 100%;
  max-width: 700px;
}

main .slider .container .col2x .slogan h2 {
  margin-top: 30px;
  padding-top: 0;
  font-size: 46px;
}

main .slider .container .col2x .slogan ul li a {
  text-decoration: none;
}


main .portfolio .projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  min-width: 290px;
}

main .portfolio .projects .projects__item {
  flex-basis: 25%;
  min-width: 320px;
  box-sizing: border-box;
  border: 1px dotted #333;
  padding: 7px;
}

main .portfolio .projects .projects__item a {
  width: 100%;
}

main .portfolio .projects .projects__item a img {
  width: 100%;
}

main .portfolio .projects .projects__item .projects__item__description {
  display: none;
  font-size: 12px;
  color: #333;
}

main .portfolio .projects .projects__item:hover {
  box-shadow: 3px 3px #333;
  top: 0px;
  bottom: 0px;
}

main .portfolio .projects .projects__item:hover .projects__item__description {
  display: block;
}

.container {
  max-width: 1440px;
  margin: 0px auto;
  width: 100%;
  /* padding: 30px; */
}

.creation .container h2,
.support .container h2,
.promotion .container h2 {
  line-height: 41px;
  color: black;
}

.creation .container ul,
.support .container ul,
.promotion .container ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0;
}

.creation .container ul li,
.support .container ul li,
.promotion .container ul li {
  list-style: none;
  color: #000;
  margin: 15px 7px;
  flex-basis: 23%;
  min-width: 260px;
}

.creation .container ul li p,
.support .container ul li p,
.promotion .container ul li p {
  padding: 0;
  margin: 7px;
  color: #333;
}

.creation .container ul li span,
.support .container ul li span,
.promotion .container ul li span {
  color: #1E6887;
  font-size: 20px;
}

.portfolio,
.support {
  background-color: #ffd04c;
}

.contacts {
  background: #374874;
  position: relative;
}

.contacts .container {
  padding: 0;
  max-width: 1440px;
  min-width: 320px;
  position: relative;
  top: -350px;
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  height: 1px;
}

.contacts .info {
  display: flex;
  flex-direction: column;
  top: 0;
  background: #333;
  opacity: 0.9;
  right: 10px;
  padding: 15px;
  height: 350px;
  min-width: 300px;
  max-width: 450px;
  box-sizing: border-box;
  z-index: 2;
  color: white;
}

.contacts .info h2 {
  margin: 0;
  padding: 0;
  opacity: 1;
}

.contacts .info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 1;
}

.contacts .info ul li {
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 22px;
  margin: 14px 0;
  color: #fff;
}

@media (max-width: 768px) {
  .contacts .container .col2 {
    width: 100%;
  }

  .contacts .container .col2 ul {
    padding: 0;
    margin: 0;
  }
}

footer {
  color: #cfcfcf;
  width: 100%;
}

footer .container {
  max-width: 1440px;
  margin: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-basis: 48%;
}

footer .container a {
  color: white;
  text-decoration: none;
}

footer .container .col2 {
  display: flex;
  flex-direction: column;
}

footer .container .col2 h2 {
  font-size: 2.5em;
}

footer .container .col2 .map {
  border-width: 0.1rem;
  border-color: linear-gradient(#247ba0, #cc66cc);
  filter: grayscale(100%);
  -moz-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  -o-filter: grayscale(100%);
  filter: url(desaturate.svg#greyscale);
  filter: gray;
  -webkit-filter: grayscale(1);
}

footer .container .copy {
  font-style: normal;
  font-weight: 600;
  font-size: 19px;
  line-height: 24px;
}

footer .container .phones {
 font-style: normal;
  font-weight: 600;
  /* font-size: 19px; */
  line-height: 24px;
  /* color: #B84141; */
}

footer .container .phones span {
  color: white;
}

@media (max-width: 768px) {
  .copy {
    display: none;
  }
}

@media all and (max-width: 960px) {
  nav div ul li:hover > ul {
    display: block;
    position: relative !important;
    background: #333;
    font-size: 20px;
}

  .burger {
    display: block;
    position: relative;
    height: 22px;
    width: 30px;
    cursor: pointer;
  }

  .burger span {
    background-color: #fff;
    position: absolute;
    width: 100%;
    height: 2px;
    top: 10px;
  }

  .burger:before,
  .burger:after {
    content: '';
    background-color: #fff;
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
  }

  .burger:before {
    top: 0;
  }

  .burger:after {
    bottom: 0;
  }

  nav {
    position: absolute;
    width: 100%;
    top: 80px;
    left: 0px;
    background-color: #333;
    z-index: 9999;
    display: none;
    text-align: left;
  }

  nav ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
  }

  nav ul li a {
    color: black;
    width: 100%;
    text-align: left;
  }
}

.show {
  display: block;
}


.projects {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.projects li {
  flex-basis: 25%;
  box-sizing: border-box;
  padding: 4px;
  position: relative;
  margin-bottom: 30px;
  text-align: left;
}

.project {
  position: relative;
  padding: 7px;
}

.project__description {
  margin-top: 10px;
  display: none;
  width: 100%;
}

.project__name {
  padding-bottom: 7px;
  border-bottom: 1px solid #CC67CC;
  font-weight: bold;
}

.project:hover {
  background-color: #fff;
  box-shadow: 0px 0px 6px #666;
  z-index: 10000;
  position: absolute;
}

.project:hover .project__description {
  display: block;
  width: 100%;
}


h2 {
  line-height: 41px;
  color: black;
}

.scroll-top {
  position: fixed;
  bottom: 70px;
  right: 70px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: green;
  z-index: 1000;
  background-image: url("../img/arrow_ico.svg");
  background-repeat: no-repeat;
  transform: rotate(180deg);
  background-position: 50% 50%;
  opacity: 0.8;
}

.servicesBlock {
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
}

        .serviceBlock__item {
            flex-basis: 24%;
            min-width: 320px;
           justify-content: flex-start;
            padding: 5px;
        }

        .serviceBlock__title {
            font-weight: bold;
        }

        .p20 {
            padding: 20px;
        }

        .social {
          display: flex;
          height: 32px;
          align-self: center;
      }

      @media screen and (max-width: 768px) {

          .social-flex,
          footer .container {
              justify-content: center;
          }

          footer h3 {
              font-size: 20px;
          }

      }



      .social a {
          display: block;
          width: 32px;
          height: 32px;
          border: 1px solid #333;
          border-radius: 50%;
          background: url('/wp-content/themes/webup/img/social_icons.png');
          background-size: 800%;
      }

      .social a:hover {
          opacity: 0.8;
      }

      .button {
        color: white;
        background: red;
        padding: 15px;
        font-size: 20px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
    }

    .bottom_section {
      background: var(--main-color);
    }

    .footer-flex {
        display: flex;
        flex-wrap: wrap;
        flex: 1 1 24%;
        gap: 20px;
        list-style: none;
        justify-content: space-between;
        font-size: 14px;

    }

    .footer-block {
        width: 320px;
    }

    .footer-block b {
        font-size: 24px;
        padding: 20px 0px;
        margin-bottom: 20px;
        border-bottom: 1px solid #666;
        display: block;
    }

    .popup {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(42, 46, 57, 0.9);
      z-index: 100;
      align-items: center;
  }

  .show {
      display: flex;
  }

  .form-wrapper {
      margin: auto;
      max-width: 560px;
      align-self: center;
      color: #ccc;
      padding: 20px;
      box-sizing: border-box;
  }

