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

body {
  background-color: #b0c4de;
  background-image: url(../images/body.png);
  background-repeat: repeat;
  overflow-x: hidden;
  font-family: BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  padding-bottom: 60px;
  color: #1c2d3f;
}

a {
  color: #004799;
  text-decoration: none;
}
a:hover {
  color: #007bff;
  transition: .4s;
}

.horizontalLine {
  display: block;
  margin: 10px auto;
  max-width: 600px;
  border-bottom: 1px solid #000;
}

#header {
  background-color: #b0c4de;
}
#header > .logo {
  background-image: url(../images/bg.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
#header > .logo > img {
  display: block;
  width: 14%;
  margin: 0 auto;
  padding-top: 10px;
  padding-bottom: 20px;
}
#header > nav {
  text-align: center;
}
#header ul > li {
  display: inline-block;
  font-size: 25px;
  padding: 17px 0;
}
#header ul > li:not(:first-child) {
  margin-left: 20px;
}
@media screen and (max-width: 1180px) {
  #header > .logo > img {
    width: 24%;
  }
}
@media screen and (max-width: 815px) {
  #header > .logo > img {
    width: 44%;
  }
}

#main {
  display: block;
  margin: 0 auto;
  text-align: center;
  max-width: 720px;
  padding: 0 16px 40px;
}
#main form {
  margin-bottom: 60px;
}
#main > h2 {
  font-weight: 400;
  margin: 20px 0;
}
#main p {
  text-align: left;
  font-size: 20px;
  margin-bottom: 15px;
}
#main .editable,
#main textarea,
#main input {
  font-size: 20px;
  padding: 10px;
  margin-top: 5px;
  resize: none;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #000;
  outline: none;
}
#main .editable:focus,
#main textarea:focus,
#main input:focus {
  border: 1px solid #3E3054;
  transition: .3s;
  color: #3E3054;
  box-shadow: 2px 2px 6px rgb(0, 0, 0, 0.5);
}
#main .editable {
  min-height: 200px;
  background-color: #fff;
  text-align: left;
}
#main button {
  margin-top: 10px;
  font-size: 28px;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 10px;
  outline: none;
  border: 1px solid #000;
  background-color: aliceblue;
}
#main button:hover {
  background-color: #F0F0F0;
}
#main .error {
  margin-top: 10px;
  font-weight: 500;
  color: red;
}
#main .form {
  background-color: aliceblue;
  width: 100%;
  padding: 20px;
  border: 1px solid #000;
  border-radius: 10px;
  margin-top: 20px;
  margin-bottom: 0;
}
#main .form h2 {
  margin-bottom: 20px;
  font-weight: 500;
}
#main .form input {
  margin-bottom: 10px;
}
#main .mail {
  color: #000;
  display: block;
  margin: 10px auto;
  font-size: 32px;
  text-decoration: underline;
}
#main .mail:hover {
  color: #007bff;
}
#main .mail__item {
  display: block;
  margin: 0 auto;
  margin-top: 10px;
  background-color: aliceblue;
  color: #000;
  border-radius: 4px;
  border: 1px solid #000;
  padding: 5px 0;
}
#main .mail__item span {
  font-weight: bold;
}
#main .mail__item:hover {
  background-color: #fafafa;
  transition: .3s;
}
#main .about_me {
  font-size: 20px;
  text-align: left;
}
.master-page {
  margin: 24px auto 40px;
  padding: 28px 26px 24px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #c5d4e4;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(31, 78, 121, .12);
  text-align: left;
}
.master-page__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  margin: 0 0 16px;
  border-radius: 999px;
  border: 1px solid #c5d4e4;
  background: #e8f1fa;
  color: #12324f !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
}
.master-page__back:hover {
  background: #d7e8f6;
  color: #12324f !important;
}
.master-page__photo {
  display: block;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #c5d4e4;
  background: #fff;
  margin: 0 auto 18px;
}
.master-page h1 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  color: #12324f;
}
.master-page__cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.master-page__cats span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f1fa;
  color: #1f4e79;
  font-size: 14px;
}
.master-page__about {
  font-size: 18px;
  line-height: 1.5;
  color: #24394d;
  margin-bottom: 18px;
}
.master-page__contacts {
  text-align: center;
  margin: 8px 0 16px;
}
.master-page__call {
  display: inline-block;
  margin: 0 auto 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #2e7d32;
  color: #fff !important;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none !important;
}
.master-page__call:hover {
  background: #1b5e20;
  color: #fff !important;
}
.master-page__phone,
.master-page__site {
  font-size: 18px !important;
  margin-bottom: 8px !important;
  text-align: center !important;
}
.master-page__phone a,
.master-page__site a {
  color: #1f4e79;
  font-weight: 700;
  text-decoration: none;
}
.master-page__request {
  display: block;
  width: fit-content;
  margin: 22px auto 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #1f4e79;
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none !important;
}
.master-page__request:hover {
  background: #16385a;
  color: #fff !important;
}
.master-page__hint {
  text-align: center !important;
  font-size: 15px !important;
  color: #66788a;
  margin: 0 !important;
}
.master-page__rate-form input[type="text"],
.master-page__rate-form textarea { width: 100%; }
.master-page__rate-form input[type="radio"] { width: auto !important; }
@media screen and (max-width: 815px) {
  .master-page__call,
  .master-page__request {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 16px 18px;
  }
}
