/* Reset and base styles  */
* {
  padding: 0px;
  margin: 0px;
  border: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Links */
a,
a:link,
a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Common */
aside,
nav,
footer,
header,
section,
main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

address {
  font-style: normal;
}

/* Form */
input,
textarea,
button,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background-color: transparent;
}

input::-ms-clear {
  display: none;
}

button,
input[type=submit] {
  display: inline-block;
  box-shadow: none;
  background-color: transparent;
  background: none;
  cursor: pointer;
}

input:focus,
input:active,
button:focus,
button:active {
  outline: none;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

label {
  cursor: pointer;
}

legend {
  display: block;
}

@font-face {
  font-family: ArialBlack;
  font-display: swap;
  src: url("../fonts/ArialBlack.woff2") format("woff2"), url("../fonts/ArialBlack.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}

body {
  font-family: "ArialBlack", "Arial", sans-serif;
  font-size: 24px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
  background-color: #EEE1DE;
  color: #000;
}

a {
  color: inherit;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.map {
  width: 100%;
  height: 640px;
}

.button {
  border: 1px solid #E15434;
  border-radius: 50px;
  color: #E15434;
  padding: 16px 32px;
  display: inline-block;
  text-align: center;
}

.button:hover {
  background-color: #E15434;
  color: #fff;
  cursor: pointer;
}

.button-accent {
  background-color: #fff;
  background-color: #E15434;
  color: #fff;
}

input {
  font-size: 24px;
  padding: 16px 32px;
  border-radius: 50px;
  background-color: #fff;
  text-align: center;
}

.form-load {
  font-size: 24px;
  padding: 16px 32px;
  border-radius: 50px;
  background-color: #fff;
  text-align: center;
}

input[type=file] {
  display: none;
}

.header {
  padding-top: 32px;
}

.header .container {
  position: relative;
  display: flex;
  gap: 24px;
}

@media screen and (max-width: 768px) {
  .header .container {
    flex-direction: column-reverse;
  }
}

.header-right {
  text-align: center;
  width: 50%;
}

@media screen and (max-width: 768px) {
  .header-right {
    width: 100%;
  }
}

.header-left {
  width: 50%;
}

@media screen and (max-width: 768px) {
  .header-left {
    width: 100%;
  }
}

.header-form {
  margin-top: 40px;
}

.header-form__input {
  display: block;
  width: 100%;
}

.header-form__button {
  margin-top: 16px;
  width: 100%;
}

.header__img {
  margin-top: 48px;
}

.header__phone {
  padding: 8px 24px;
  border: 1px solid #000;
  border-radius: 50px;
  font-size: 16px;
}

.header__title {
  font-size: 64px;
  margin-top: 120px;
}

@media screen and (max-width: 768px) {
  .header__title {
    font-size: 56px;
  }
}

.header__title--middle {
  font-size: 40px;
  display: block;
  margin: 40px 0;
}

.header__title--small {
  font-size: 18px;
  display: block;
}

.site-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  position: absolute;
  top: -25px;
  left: calc(50% - 50px);
  max-width: 100px;
}

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

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media screen and (max-width: 768px) {
  .nav__list {
    justify-content: center;
  }

  .site-logo {
    position: absolute;
    top: -25px;
    left: 15px;
    max-width: 100px;
  }

  .header-right .header__phone {
    display: block;
    width: 225px;
    margin: 0 15px 0 auto;
  }
}

.nav__link {
  display: block;
  padding: 8px 16px;
  border: 1px solid #000;
  border-radius: 50px;
  font-size: 16px;
}

.services {
  padding: 96px 0;
}

.services__title {
  font-size: 48px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .services__title {
    font-size: 40px;
  }
}

.services-tabs {
  padding: 8px;
  background-color: #fff;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  margin: 56px 0;
}

@media screen and (max-width: 768px) {
  .services-tabs {
    flex-direction: column;
    border-radius: 16px;
    padding: 16px;
  }
}

.services-tabs__item {
  width: 100%;
  text-align: center;
  font-size: 24px;
  padding: 8px 16px;
}

.services-tabs__item--active {
  background-color: #E15434;
  color: #fff;
  border-radius: 50px;
}

.services-list__title {
  font-size: 32px;
  margin-bottom: 32px;
}

.services-list__item {
  display: flex;
  padding: 8px 32px;
  border-bottom: 1px solid #A4A9B9;
  align-items: center;
  font-size: 24px;
  gap: 24px;
}

@media screen and (max-width: 768px) {
  .services-list__item {
    flex-direction: column;
  }
}

.services-list__name {
  max-width: 560px;
}

@media screen and (max-width: 768px) {
  .services-list__name {
    text-align: center;
  }
}

.services-list__num {
  font-size: 56px;
  color: #A4A9B9;
  width: 128px;
}

@media screen and (max-width: 768px) {
  .services-list__num {
    display: none;
  }
}

.services-list__button {
  margin-left: auto;
}

@media screen and (max-width: 768px) {
  .services-list__button {
    margin: 0 auto;
  }
}

.services-list--third p {
  margin-bottom: 24px;
}

.advantages {
  padding: 96px 0;
  background-color: #211E1D;
}

.advantages .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media screen and (max-width: 768px) {
  .advantages .container {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
}

.advantages__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 8px;
  padding: 32px;
}

.advantages__item::after {
  content: "";
  display: block;
  height: 2px;
  width: 80px;
  background-color: #E15434;
  margin-top: 32px;
}

.footer {
  background-color: #211E1D;
}

.footer__title {
  font-size: 48px;
  text-align: center;
  color: #fff;
  margin-bottom: 54px;
}

.footer-top {
  padding: 64px 0;
  border-bottom: 1px solid #585858;
}

@media screen and (max-width: 768px) {
  .footer__title {
    font-size: 40px;
  }
}

.footer-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media screen and (max-width: 768px) {
  .footer-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.footer-form__input {
  display: block;
  font-size: 24px;
  padding: 16px 32px;
  border-radius: 50px;
  background-color: #fff;
  width: 100%;
}

.footer-form__button {
  background-color: #E15434;
  color: #fff;
  padding: 16px 32px;
  width: 100%;
  border-radius: 50px;
  font-size: 24px;
}

.footer-bottom {
  padding: 32px 0;
  display: flex;
  color: #fff;
  justify-content: space-between;
  font-size: 16px;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-bottom__contacts {
  display: flex;
  gap: 24px;
}

@media screen and (max-width: 768px) {
  .footer-bottom__contacts {
    flex-direction: column;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .footer-bottom__contact {
    text-align: center;
  }
}

.footer-links__link {
  padding: 8px 24px;
  border: 1px solid #fff;
  border-radius: 50px;
  font-size: 16px;
  display: block;
  margin-bottom: 8px;
}

@media screen and (max-width: 768px) {
  .footer-links {
    margin: 0 auto;
  }
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.5);
  place-items: center;
  overflow-y: auto;
  padding: 24px;
}

.modal-wrap {
  background-color: #EEE1DE;
  border-radius: 8px;
  padding: 64px;
  position: relative;
  max-width: 720px;
}

@media screen and (max-width: 768px) {
  .modal-wrap {
    padding: 24px;
    max-width: 300px;
  }
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
}

.modal__title {
  font-size: 40px;
  margin-bottom: 24px;
}

@media screen and (max-width: 768px) {
  .modal__title {
    font-size: 32px;
    margin-bottom: 16px;
  }
}

.modal-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}