@import "../fonts/Roboto/stylesheet.css";
* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}
body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  background: #f4f4f4;
  color: #272836;
}
h1 {
  font-size: 58px;
  font-weight: 900;
  color: #31428c;
  margin-bottom: 30px;
  margin-top: 0;
}

h2 {
  font-size: 40px;
  font-weight: 900;
  color: #31428c;
  margin: 100px 0 50px 0;
}

h3 {
  font-size: 30px;
  font-weight: 900;
  color: #31428c;
  margin: 0 0 25px 0;
}
.hr {
  margin: 15px 0;
  width: 90px;
  height: 2px;
  background-color: #e62121;
}

p {
  font-size: 18px;
  font-weight: 400;
}
ul {
  padding: 0;
}

main ul li {
  font-size: 18px;
  font-weight: 400;
  list-style-type: none;
  line-height: 30px;
}
main ul li::before {
  content: "";
  background: #31428c;
  border-radius: 2px;
  height: 8px;
  width: 8px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}
.container {
  width: 900px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  text-align: center;
  color: #ffffff;
  font-size: 25px;
  font-weight: 400;
  background: #e62121;
  border-radius: 4px;
  padding: 20px 50px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.btn:hover {
  background: #ee4c4c;
  box-shadow: 0px 4px 14px rgba(230, 33, 33, 0.3);
}

button {
  border: none;
  cursor: pointer;
}

form label {
  font-size: 14px;
  margin: 4px;
}

form input,
form textarea {
  width: 100%;
  padding: 20px;
  border-radius: 4px;
  font-size: 20px;
  outline: none;
  background: #ffffff;
  border: none;
  margin: 3px 0 20px 0;
}
form input::placeholder {
  font-size: 20px;
  color: #bebebe;
}

form button {
  width: 100%;
  margin-top: 10px;
}
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.tel {
  font-size: 24px;
  width: 170px;
}

.tel::before {
  content: "";
  background-image: url(../img/tel.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top center;
  height: 28px;
  width: 22px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 15px;
}

header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.06);
  padding: 20px 80px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #f4f4f4;
  z-index: 10;
}
header > div {
  display: flex;
  align-items: center;
}

header .logo {
  height: 40px;
  width: 243px;
  z-index: 11;
}

header .navbar-toggle {
  display: none;
}
header div {
  vertical-align: middle;
}
header nav {
  margin: 0 15px;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
}

header nav ul li {
  list-style: none;
  margin: 0;
  padding: 0;
}
header nav a {
  font-size: 18px;
  margin: 0 15px;
  line-height: 1.5;
}

header nav ul a:hover,
header nav ul a:active {
  color: #e62121;
}

header nav .contacts {
  display: none;
}

.cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cards p {
  text-align: center;
}

.row {
  display: flex;
  flex-direction: row;
}
.row > div {
  width: 50%;
}

.img-container {
  display: flex;
  justify-content: right;
  align-items: center;
}
.row img {
  width: 420px;
  border-radius: 8px;
}

footer {
  background: #ffffff;
  margin-top: 100px;
}
footer .logo {
  height: 40px;
  width: 243px;
}
footer .contacts {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 40px 0 100px 0;
}

footer .contacts > div {
  display: flex;
  align-items: center;
}
footer .email {
  font-size: 20px;
  margin-left: 20px;
}
footer .tel {
  font-size: 20px;
}
.contacts .tel::before,
.contacts .email::before {
  content: "";
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top center;
  height: 28px;
  width: 22px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 15px;
}
.contacts .tel::before {
  background-image: url(../img/f-tel.svg);
}

.contacts .email::before {
  background-image: url(../img/email.svg);
}
footer h2 {
  margin-top: 0px;
}

footer .rights {
  padding: 60px 0;
  text-align: center;
}
footer form {
  width: 350px;
}
footer form input {
  border: 1px solid #c8c8c8;
}

address {
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  margin: 15px 0 40px 0;
}

address::before {
  content: "";
  background-image: url(../img/map.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top center;
  height: 22px;
  width: 22px;
  display: inline-block;
  vertical-align: baseline;
  margin-right: 10px;
}
footer iframe {
  border: 0;
  width: 50vw;
  height: 420px;
}

.popup_wrapper {
  display: none;
  padding: 0 10px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  top: 0;
  z-index: 999;
  left: 0;
  height: 100%;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.6);
  text-align: center;
}

.popup_wrapper.form_popup {
  display: none;
  text-align: left;
}

.popup_wrapper.submit_popup > div {
  max-width: 500px;
  top: 35%;
  text-align: center;
  padding: 50px 20px 30px 20px;
}

.popup_wrapper > div {
  position: absolute;
  right: 0px;
  left: 0px;
  margin: 0px auto;
  background: #ffffff;
  border-radius: 10px;
  -webkit-animation: 0.7s ease 0s normal none 1 running pop-up-appear;
  animation: 0.7s ease 0s normal none 1 running pop-up-appear;
  overflow: hidden;
}
.popup_wrapper .close_popup {
  display: block;
  background: transparent;
  border: none;
  position: absolute;
  cursor: pointer;
  top: 25px;
  right: 15px;
}
.popup_wrapper .close_popup span {
  display: block;
  background: #31428c;
  height: 3px;
  width: 25px;
  border-radius: 4px;
  margin: 5px;
  transition: all 0.2s ease-in-out;
}

.popup_wrapper .close_popup:hover span {
  background: #e62121;
}

.popup_wrapper .close_popup span:nth-child(1) {
  -ms-transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.popup_wrapper .close_popup span:nth-child(2) {
  margin-top: -8px;
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}
.popup_wrapper.submit_popup > div span {
  font-size: 30px;
  font-weight: 600;
}

.popup_wrapper.submit_popup p {
  margin-top: 20px;
}

.popup_wrapper.submit_popup .btn {
  margin-top: 25px;
  background: #31428c;
}
.popup_wrapper.submit_popup .btn:hover {
  box-shadow: 0px 4px 14px rgba(33, 69, 230, 0.3);
}

.popup_wrapper.form_popup > div {
  width: 900px;
  top: 15%;
  max-height: 85vh;
  overflow-y: auto;
}
.popup_wrapper.form_popup > div > div {
  background: #ffffff url(../img/banner.webp) no-repeat right bottom 30%;
  background-size: 60%;
  padding: 50px 30px 40px 30px;
  bottom: 0;
  height: auto;
  width: 100%;
}
.popup_wrapper.form_popup h2 {
  margin-top: 0;
}

.popup_wrapper.form_popup form {
  width: 350px;
}
.popup_wrapper.form_popup form input,
.popup_wrapper.form_popup form textarea {
  border: 1px solid #c8c8c8;
}
@-webkit-keyframes pop-up-appear {
  0% {
    -webkit-transform: translateY(-2000px);
    transform: translateY(-2000px);
  }
  30% {
    -webkit-transform: translateY(100px);
    transform: translateY(100px);
  }
  100% {
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
  }
}

@keyframes pop-up-appear {
  0% {
    -webkit-transform: translateY(-2000px);
    transform: translateY(-2000px);
  }
  30% {
    -webkit-transform: translateY(100px);
    transform: translateY(100px);
  }
  100% {
    -webkit-transform: translateY(0px);
    transform: translateY(0px);
  }
}
@media screen and (max-width: 930px) {
  .container {
    width: 550px;
  }
  .tel {
    font-size: 20px;
    width: 130px;
  }

  .tel::before {
    height: 22px;
    width: 18px;
    margin-right: 10px;
  }
  header {
    padding: 15px 20px;
  }
  header picture {
    height: 42px;
  }
  header .logo {
    margin-top: 7px;
    height: 35px;
    width: 213px;
  }

  header .navbar-toggle {
    display: block;
    transition: all 0.2s ease-in-out;
    background: transparent;
    border: none;
    position: relative;
    z-index: 1000;
    cursor: pointer;
  }
  header .navbar-toggle span {
    display: block;
    background: #31428c;
    height: 2px;
    width: 20px;
    border-radius: 4px;
    margin: 5px;
    transition: all 0.2s ease-in-out;
  }
  header .nav.show .navbar-toggle span:nth-child(1) {
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }
  header .nav.show .navbar-toggle span:nth-child(2) {
    display: none;
  }
  header .nav.show .navbar-toggle span:nth-child(3) {
    margin-top: -7px;
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
  }
  header > div:nth-child(2) {
    order: 3;
  }

  header > div:nth-child(3) {
    margin: 0 30px 0 auto;
  }

  header nav {
    max-height: 0;
    overflow: auto;
    position: absolute;
    width: 100%;
    top: 73px;
    left: 0;
    background-color: #fafafa;
    margin: 0;

    transition: max-height 0.3s ease;
  }

  header nav .contacts {
    display: flex;
    flex-direction: column;
    margin: 30px 0;
    align-items: center;
  }

  header .nav.show nav {
    max-height: 100vh;
  }

  header nav ul {
    margin: 0;
    padding: 20px 0 50px 0;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid #c4c4c4;
  }
  header nav ul li {
    font-size: 25px;
    font-weight: 600;
    margin-top: 10px;
  }

  .row {
    flex-direction: column-reverse;
  }
  .row > div {
    width: 100%;
  }
  .row img {
    width: 100%;
  }
  .img-container {
    justify-content: center;
  }

  footer h2 {
    margin-top: 70px;
  }
  footer .contacts {
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
  }

  footer .contacts > div:nth-child(2) {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 40px;
    width: 100%;
  }
  .contacts .email,
  .contacts .tel {
    font-size: 25px;
    margin: 20px 0 0 0;
  }

  .contacts .tel {
    width: auto;
  }

  footer .rights {
    padding: 60px 0;
  }
  footer form {
    width: 100%;
  }

  address {
    font-size: 20px;

    margin: 15px 0 40px 0;
  }

  footer iframe {
    width: 100%;
    height: 420px;
  }

  .popup_wrapper.form_popup > div {
    width: 550px;
  }

  .popup_wrapper.form_popup > div > div {
    background: #ffffff;
  }
  .popup_wrapper.form_popup h2 {
    text-align: center;
  }

  .popup_wrapper.form_popup form {
    margin: 0 auto;
  }
}

@media screen and (max-width: 580px) {
  h1,
  h2 {
    font-size: 30px;
  }
  h3 {
    font-size: 25px;
  }

  h2 {
    margin: 80px 0 30px;
  }
  p {
    font-size: 17px;
  }

  .container {
    width: 90%;
  }
  .btn {
    padding: 20px 30px;
    width: 100%;
  }

  ul li {
    font-size: 16px;
  }

  form input,
  form textarea {
    padding: 15px;
    font-size: 18px;
  }
  form input::placeholder {
    font-size: 18px;
  }

  header .logo {
    height: 35px;
    width: 61px;
  }

  header nav ul,
  header nav .contacts {
    align-items: flex-start;
    padding-left: 25px;
    padding-right: 25px;
  }

  .cards {
    justify-content: center;
  }

  footer {
    margin-top: 70px;
  }
  address {
    margin: 15px 0 30px 0;
  }
  .contacts .email,
  .contacts .tel {
    font-size: 20px;
    margin-left: 0;
    margin-top: 20px;
  }
  footer iframe {
    height: 300px;
  }
  footer .rights {
    padding: 40px 0;
  }

  .popup_wrapper.submit_popup > div {
    padding-top: 70px;
  }
  .popup_wrapper.submit_popup .btn {
    width: auto;
    min-width: 150px;
  }

  .popup_wrapper.form_popup > div {
    width: 90%;
  }

  .popup_wrapper.form_popup > div > div {
    padding: 55px 15px 30px 15px;
  }
  .popup_wrapper.form_popup h2 {
    font-size: 26px;
  }

  .popup_wrapper.form_popup form {
    width: 90%;
  }

  .popup_wrapper.form_popup .btn {
    padding: 20px;
  }
}
