#comments input,
#comments textarea {
  color:#4b4b4b;
  border: 1px solid #a5a5a5;
  resize: none; }

#comments .container{padding:0}

#comments input::placeholder,
#comments textarea::placeholder {color:#4b4b4b;opacity:.3}

#comments-header {color:#1d1c1c;line-height:1.4;margin-bottom:20px;font-size:26px;font-weight:700 }

@media screen and (max-width: 767px) {
  #comments-header{font-size:18px}
}

#comments-all { text-decoration: none; }

/* Форма отправки */

#comments-form { margin-top: 30px; }

#comments-form-top {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-bottom:10px;
  width: 100%;
  max-width: calc(100% - 195px)
}

.comments-form-input-container { flex: 1 1 auto; }
.comments-form-input-container:last-child { margin-left: 16px; }

#comments-form-name,
#comments-form-email,
#comments-form-textarea {
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko */
  box-sizing: border-box;         /* Opera/IE 8+ */
  width  : 100%;
  font   : inherit;
  padding: 15px 25px;
  border-radius: 16px; }

#comments-form-body {
  display: flex;
  flex-direction: row-reverse;
  gap: 12px; }

#comments-captcha {
  flex-shrink: 0;
  width: 185px;
  height: 140px;
  padding: 8px 0;
  line-height: 1em;
  border: 1px solid #a5a5a5;
  border-radius: 16px;
  text-align: center;
}

#comments-captcha-img {
  position: relative;
  width : 120px;
  height: 80px;
  margin: 0 auto;
  background-image   : url('../captcha.php');
  background-repeat  : no-repeat;
  background-position: center;
  cursor: pointer; }

#comments-captcha-img:hover::after {
  content: 'Обновить';
  display: block;
  line-height: 75px;
  text-align : center;
  font-size  : 16px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.65);
  color: #fff; }

#comments-captcha-response {
  width: 80px;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  -moz-appearance: textfield;
  border-radius: 8px; }

#comments-captcha-response::-webkit-inner-spin-button,
#comments-captcha-response::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0; }

#comments-form-main {
  flex-grow:1;
}

#comments-form-textarea {
  min-width : 100%;
  max-width : 100%;
  min-height: 70px;
  max-height: 250px;
  height: 96px;
  }

.comments-btn{transition:.3s ease-in-out;position:relative;z-index:1;display:flex;justify-content:center;align-items:center;gap:24px;background:linear-gradient(215deg, #343435 0%, #212122 100%);color:#fff;height:60px;padding:0 25px;font-size:20px;font-weight:700;border-radius:16px;cursor:pointer}
.comments-btn::before{transition:.3s ease-in-out;opacity:0;position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;content:'';background:linear-gradient(240deg, #212122 10%, #343435 100%);border-radius:inherit}
.comments-btn:hover::before{opacity:1}

#comments-form-bottom {
  position: relative;
  margin-top: 36px;
}

  #comments-form-extra {
    position: absolute;
    top: -20px;
    right: 0;
    font-size: 16px;
    float: right;
    color: #4b4b4b; }

/* Комментарии */

#comments-list {
  position: relative;
  margin-top: 20px;
  /* min-height: 100px; */
  max-height: 400px;
  overflow-y: scroll; }

#comments-list::-webkit-scrollbar { width: 6px; }

#comments-list::-webkit-scrollbar-track,
#comments-list::-webkit-scrollbar { background-color: #f5f5f5; }

#comments-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border: 1px solid transparent; }

#comments-list:hover::-webkit-scrollbar-track { box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); }

#comments-list:hover::-webkit-scrollbar-thumb {
  background-color: #777;
  border: 1px solid #444; }

#comments-empty {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 24px;
  color: #aaa;
  font-style: italic; }

.comments-hidden { visibility: hidden; }

.comment {
  position: relative;
  padding: 8px 10px;
  margin-bottom: 20px;
  border-radius: 3px;
  background-color: #f6f6f6; }

.comment::after {
  content: '';
  display: block;
  clear: both; }

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

.comment.admin { background-color: #e9e9f6; }

.comment-avatar {
  display: none;
  float: left;
  width: 48px;
  margin: 2px 4px;
  margin-right: 12px;
  border: 1px solid #cfcfcf;
  pointer-events: none; }

.comment-header{display:flex;align-items:center;flex-wrap:wrap;gap:15px}

.comment-author,
.comment-body { line-height:1.5;}

.comment-author {
  color: #1d1c1c;
  font-weight: 700;
}

.comment-time {
  font-size: 16px;
  font-weight: normal;
  color: #A5A5A5 }

.comment-body { margin-top:12px; }

@media screen and (max-width: 991px) {
  #comments-form-bottom{display:flex;flex-direction:column-reverse;justify-content:start;align-items:start;gap:15px;margin-top:10px}
  #comments-form-extra{position:static}
}

@media screen and (max-width: 767px) {
  #comments-form-name, #comments-form-email, #comments-form-textarea{border-radius:12px;padding:15px}
  .comments-btn{height:56px;font-size:18px;border-radius:12px}
}

@media screen and (max-width: 575px) {
  #comments-form-top{max-width:100%}
  #comments-form-body{flex-direction:column}
  #comments-captcha{width:100%}
}



/*    DINT    */
/* stylelint-disable no-duplicate-selectors, no-descending-specificity, block-opening-brace-space-before */

#comments {
  padding: 0 0 50px 0;
  text-align: left; }

#comments-form-name:focus::-webkit-input-placeholder      { color: transparent; }
#comments-form-name:focus::-moz-placeholder               { color: transparent; }
#comments-form-name:focus:-ms-input-placeholder           { color: transparent; }
#comments-form-name:focus::placeholder                    { color: transparent; }
#comments-form-email:focus::-webkit-input-placeholder     { color: transparent; }
#comments-form-email:focus::-moz-placeholder              { color: transparent; }
#comments-form-email:focus:-ms-input-placeholder          { color: transparent; }
#comments-form-email:focus::placeholder                   { color: transparent; }
#comments-form-textarea:focus::-webkit-input-placeholder  { color: transparent; }
#comments-form-textarea:focus::-moz-placeholder           { color: transparent; }
#comments-form-textarea:focus:-ms-input-placeholder       { color: transparent; }
#comments-form-textarea:focus::placeholder                { color: transparent; }

#comments-form-textarea {
  height: 140px; }

#comments-form-top .comments-form-input-container             { display: none; }
#comments-form-top .comments-form-input-container:first-child { display: block; }

#comments-list {
  max-height: none;
  overflow: visible; }

.comment {
  background-color: transparent;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  margin: 0; }

  .comment.admin { background-color: transparent; }
  .comment.admin .comment-author { color: #d30000; }


/* CUSTOM */

.container ~ #comments{
  width: 100%;
    max-width: 980px;
    padding: 0 20px;
    margin: 0 auto;
    padding-bottom: 40px;
}


#comments-thanks {
  position: relative;
  max-width: 620px;
  margin-top: 16px;
  padding: 16px 70px 16px 83px;
  box-sizing: border-box;
  font-size: .9rem;
  line-height: 1.4;
  letter-spacing: .5px;
  border-radius: 4px;
  border: 1px solid #d2e7d2;
  background: #f0fcf0
}
#comments-thanks::before {
  content: '';
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 23px;
  width: 35px;
  height: 35px;
  transform: translateY(-50%);
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAMAAAANmfvwAAABAlBMVEUAAADI5snI5snO6s3H6cjO6c7L6czJ5srI5snI5cjH5sjH58nK58vL58zI5snI5snI5sm+4r/J5srI58rH6MjI5snI5snH58jH58jV7dXI68nI4snH5cjH58jM4c7K5svL6MzI5snK6MvJ58/L5szM587A5cXG5cfH5sjF6MbI6cnI6MnJ5srL58zI5snH5cjF5cbL58xNsFHG5cc2pTsvojTd793N6c7k8+TJ5srT69OKy4xKrk7e8N/V7NZIrkzJ5Mp2wnng8ODZ7trX7de13rdfuGIypDfh8uHP6dCd05+PzZFXtFs9qUIqoC8ony2Vz5eEyIZ8xH9rvW9BqkYfmyQg0YhmAAAALnRSTlMAYk8XEw0Cv2DQsGcuHvPn2dCjhnlvVBoQCgTk4se6tKuYlIB0cFZSST07ODYqC5+8uAAAAXZJREFUOMt102d3gjAUBuAIzrpX7d573ARRKxQQ99bO//9XGmYE0vdTyHnOvTeHBAWSeH1Ip4VcAv2TeDaDMdgp1eMccHCpwG4qEXQPkaSDogKcnCd3xBnmEVxm5oIANzjliTsT+FFI3RGHJuYUkEYKBkV2zrXHa/E2HxvUQMYSCcIT3c/NYkCJLFJyS3jifbreLIZ0WaXkhCvavZY2NuhHgQ4rc4XWakodu76Ictg7goR5Ap6Q4ApFNVTid2EC9lHMFd3laj4kUQExl0jGsrWdjIZkp4tPBIeMvrfN6cTozMKCNsq5M3b6bWr0D+u0ks6E+YgSzkpWB9SsVz06hyUYaSBU9Mys39Z+tJAAnESoZnpGp3XYHO7ulXWvAVivX7cGI3lEk8K+Mb7GnYDAJed9Yd9IuhoQQERkJ0sU/yqG/ui1DVirSHAGeUmW+eT4CDGzx6tzyoQ9T8TINygUMVQolUfRNGpFcFOoUsBP/EVIx4RnMbD5B4N2onerfBSbAAAAAElFTkSuQmCC);
  background-repeat: no-repeat
}
#comments-thanks-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 11px;
  height: 11px;
  background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKBAMAAAB/HNKOAAAALVBMVEUAAABraWlraWlraWlraWlraWlraWlraWlraWlraWlraWlraWlraWlraWlraWmMmLDyAAAADnRSTlMAJhRC6lQ2EN47MRoIBQwb9AkAAABASURBVAjXY3jFwMAQwpAnwMD8kIHxIYOdAgODnOIjoCD7uwtAkvFdAZC0O/SQgYH5EYOcAEOcAgPjSwZvoGAGAJU1DTVtUBEnAAAAAElFTkSuQmCC);
  background-repeat: no-repeat;
  cursor: pointer
}
@media only screen and (max-width:580px) {
  #comments-thanks {
    padding-right: 32px
  }
}