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

body {
  font-size: 20px;
  line-height: 1.5;
  font-family: "Arial", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.red {
  color: red;
}

.border-green {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(3, 224, 0, .04);
  border: 4px double rgba(21, 160, 37, .32);
  border-radius: 4px;
}

.border-green p:last-child {
  margin-bottom: 0;
}

ul {
  list-style: none;
}

figure {
  max-width: 660px;
  margin: 0 auto 20px;
  text-align: center;
}

figure img {
  width: 100%;
  display: block;
  margin: 0 auto;
}

h1 {
  font-size: 37px;
  line-height: 1.3;
  margin-bottom: 20px;
}

h2 {
  font-size: 30px;
  line-height: 1.3;
  margin-bottom: 20px;
}

.bg-pink {
  padding: 20px;
  background: #ffeeee;
  color: #9f0d0d;
  margin-bottom: 20px;
}

.bg-blue {
  padding: 20px;
  background: #e5f2ff;
  color: #165391;
  margin-bottom: 20px;
}

.bg-brown {
  padding: 20px;
  background: rgb(255, 239, 182);
  color: rgb(54, 45, 14);
  margin-bottom: 20px;
}

.bg-brown ul,
.bg-blue ul,
.bg-pink ul {
  list-style: disc;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

/* header */

.header {
  background: #262626;
  color: #fff;
  border-bottom: 15px solid #e6e6e6;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.header-container {
  padding: 11px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header li {
  display: inline-block;
  margin: 0 15px;
  letter-spacing: 1px;
}

.header img {
  display: block;
}

a.header-logo {
  color: #b88b58;
  font-weight: bold;
  font-size: 18px;
}

.brown-color {
  color: #b88b58;
}

.title ul,
.title li {
  display: flex;
  justify-content: center;
  align-items: center;
}

.title ul {
  font-size: 15px;
  color: #808080;
}

.title li {
  margin: 20px 10px;
}

.title img {
  display: block;
  margin-right: 5px;
}

.title__btn {
  background: #b88b58;
  color: #fff;
  margin: 0 auto;
  padding: 4px 5px 6px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 1;
  display: block;
  max-width: 210px;
  text-align: center;
}

.header a {
  transition: all 0.2s ease-in;
}

.header a:hover {
  opacity: 0.77;
}

/* main */

.main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px;
}

.main p {
  margin-bottom: 20px;
}

.img-text-bg {
  background: #eee;
  padding: 20px;
  display: grid;
  align-items: center;
  grid-template-columns: 350px 1fr;
  column-gap: 30px;
  margin-bottom: 20px;
}

.img-text-bg img {
  display: block;
  width: 100%;
}

/* comments */

.comments {
  margin-top: 50px;
}

.comments h2 {
  margin-bottom: 30px;
}

.comment-item {
  display: grid;
  grid-template-columns: 70px auto;
  grid-column-gap: 15px;
  margin-bottom: 35px;
}

.comment-item p {
  margin-bottom: 10px;
}

.comment-item .avatar img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.comment-item .info {
  border: 1px solid #b4b4b4;
}

.comment-item .text-comment {
  padding: 0 10px;
}

.text-comment-gray {
  color: #898888;
  font-size: 18px;
}

.comment-item .info .name {
  display: flex;
  margin-bottom: 5px;
  border-bottom: 1px solid #b4b4b4;
  padding: 3px 10px;
  font-weight: bold;
}

.comment-item .info .name .date {
  margin-left: auto;
  color: rgb(158, 148, 148);
}

.red-btn {
  background: red;
  color: #fff;
  font-size: 20px;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 4px;
  padding: 10px 20px;
  display: block;
  max-width: 500px;
  margin: 60px auto;
  text-align: center;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  transition: all 0.3s ease-in;
}

.red-btn:hover {
  box-shadow: none;
}

/* footer */

.footer {
  background: #252525;
  color: #fff;
  font-size: 16px;
}

.footer a {
  transition: all 0.3s ease-in;
}

.footer a:hover {
  opacity: 0.7;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 1000px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 25px;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 18px;
  }

  .hide-mobile,
  .comment-item .info .name .date {
    display: none;
  }

  .header-container {
    justify-content: center;
  }

  h1,
  h2 {
    font-size: 24px;
  }

  .red-btn {
    padding: 12px;
    font-size: 19px;
  }
}

.blue-link {
  color: #165391;
  font-weight: bold;
  text-decoration: underline;
}

.blue-link:hover {
  text-decoration: none;
}

#form-cert,
#form-cert * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#form-cert {
  font-family: sans-serif;
  text-align: center;
  background-image: url(../img/formbg.jpg);
  background-size: 100% 99.8%;
  max-width: 600px;
  padding: 40px 30px;
  margin: 20px auto;
}

#form-cert .red {
  color: red;
}

#form-cert .form-btn-copy {
  text-transform: uppercase;
  white-space: nowrap;
}

#form-cert .med-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

#form-cert .form-title {
  font-size: 28px;
  line-height: 1.3;
  font-weight: bold;
}

#form-cert .form-date {
  color: #097fbe;
  font-weight: bold;
  margin: 10px auto;
  font-size: 17px;
}

#form-cert .form-text {
  font-size: 17px;
  margin: 10px auto;
}

#form-cert .form-border {
  margin: 15px;
  border: 2px solid #0299ff;
  padding: 10px;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.4;
}

#form-cert form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-weight: bold;
}

#form-cert form label {
  font-size: 16px;
}

#form-cert .form-field {
  width: 100%;
  max-width: 300px;
  height: 50px;
  line-height: 50px;
  padding: 0 15px;
  border-radius: 3px;
  border: 2px solid #e9d7dc;
  margin: 3px auto 10px;
  font-size: 16px;
}

#form-cert .form-field:focus {
  outline: none;
  border: 2px solid #d6bcc3;
}

#form-cert .form-btn {
  width: 100%;
  max-width: 300px;
  padding: 16px 20px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 4px 15px 0 rgb(129 150 160 / 45%);
  border: none;
  font-size: 20px;
  border-radius: 5px;
  background-color: #0299ff;
  color: #fff;
  cursor: pointer;
  margin: 10px auto 20px;
  transition: all 0.3s ease;
}

#form-cert .form-btn:hover {
  box-shadow: none;
}

#form-cert small {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  max-width: 400px;
  margin: 0 auto;
}

.add-comment-wrapper {
  background: #eee;
  padding: 50px;
  margin-bottom: 50px;
}

.add-comment {
  max-width: 600px;
  margin: 0 auto;
}

.add-comment__title {
  font-weight: bold;
  font-size: 24px;
  color: #43A047;
  margin-bottom: 20px;
}

.add-comment__field {
  display: block;
  width: 100%;
  background: #fff;
  height: 55px;
  line-height: 55px;
  padding: 0 20px;
  border: 1px solid #43A047;
  box-shadow: 0px 2px 4px -3px #237a27;
  font-size: 14px;
  border-radius: 5px;
  color: #808080;
  margin-bottom: 20px;
  transition: all 0.3s ease-in-out;
}

.add-comment__field:hover {
  border: 1px solid #727c73;
  box-shadow: none;
}

.add-comment__btn {
  background: #43A047;
  border: none;
  box-shadow: 0px 2px 4px -3px #000;
  color: #fff;
  display: block;
  cursor: pointer;
  border-radius: 25px;
  height: 50px;
  line-height: 50px;
  transition: .5s;
  text-align: center;
  text-shadow: 0px 0px 1px #237a27;
  font-size: 18px;
  max-width: 280px;
  width: 100%;
}

.add-comment__btn:hover {
  background: #2f8633;
  box-shadow: none;
}

@media(max-width: 700px) {

  #form-cert {
    padding: 30px 20px;
  }

  #form-cert .form-title {
    font-size: 30px;
  }

  #form-cert .form-border {
    margin: 15px 0;
  }

  #form-cert .form-btn {
    padding: 15px;
    font-size: 19px;
  }

  .title ul {
    flex-direction: column;
    margin: 10px 0;
    row-gap: 5px;
  }

  .title li {
    margin: 0;
  }

  .img-text-bg {
    grid-template-columns: 1fr;
    padding: 10px;
    row-gap: 5px;
  }

  .img-text-bg p {
    margin-bottom: 0;
  }

  .comment-item {
    column-gap: 10px;
    grid-template-columns: 60px auto;
  }

  .comment-item .avatar img {
    width: 60px;
    height: 60px;
  }

  .comment-item .text-comment-gray {
    display: none;
  }

  .header {
    margin-bottom: 20px;
  }

  .add-comment-wrapper {
    padding: 20px;
  }
}