.ad-slot{
  display:none;
  min-height:90px;
  margin:1rem 0;
  box-sizing:border-box;
  overflow:hidden;
}
body.ads-on .ad-slot{display:block}
.ad-slot--placeholder{
  display:flex!important;
  align-items:center;
  justify-content:center;
  background:#f5f5f5;
  border:1px dashed #c8c8c8;
  text-align:center;
}
.ad-slot__label{
  font-family:'Monda',sans-serif;
  font-size:13px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#aaa;
}
.sidebar .ad-slot{margin:0;width:100%}
.sidebar .widget-ad{padding:0;margin-bottom:18px}
.ad-top{margin:0 0 18px}
.ad-bottom{margin:18px 0 0}
.featured-thumbnail img[src*="placeholder.svg"]{object-fit:contain;background:#e8e8e8}

/* ——— Комментарии ——— */
.single #content_box{
  border:1px solid #cdcdcd;
  background:#fff;
  overflow:visible;
}
.single .single_post{
  margin-bottom:0;
  border-bottom:1px solid #ececec;
  padding-top:36px;
  overflow:visible;
  float:left;
  width:100%;
  box-sizing:border-box;
}
.single .single-post-header{
  float:none;
  width:100%;
  margin:0 0 20px;
  padding:0;
  position:relative;
  display:block;
  overflow:hidden;
}
.single .single-post-header .post-date-ribbon{
  margin-top:0;
  margin-bottom:14px;
  position:relative;
  top:auto;
  left:0;
  float:none;
  display:inline-block;
  width:auto;
  min-width:100px;
  padding:0 12px;
  height:25px;
  line-height:25px;
}
.single .single-title{
  float:none;
  clear:both;
  display:block;
  width:100%;
  margin:0 0 12px;
  padding:0;
  font-size:32px;
  line-height:1.35;
  letter-spacing:-1px;
  color:#000;
}
.single .single-postmeta{
  float:none;
  clear:both;
  display:block;
  width:100%;
  margin:0;
  padding:0;
  overflow:hidden;
}
.single .single-postmeta .hp_meta{
  float:left;
  margin:0;
}
.single .post-single-content{
  clear:both;
  float:left;
  width:100%;
}
.comments-wrap{
  float:left;
  clear:both;
  width:100%;
  margin-top:0;
  border:none;
  background:#fff;
  box-sizing:border-box;
}
.comments-block{
  padding:24px 4% 24px;
  border-bottom:none;
}
.comments-block:last-child{border-bottom:none}
.comments-title{
  font-family:'Monda',sans-serif;
  font-size:22px;
  font-weight:700;
  color:#364956;
  margin:0 0 20px;
  padding-bottom:12px;
  border-bottom:3px solid #fc5300;
  display:inline-block;
  line-height:1.3;
}
.comments-count{
  display:inline-block;
  min-width:28px;
  padding:2px 10px;
  margin-left:6px;
  font-size:14px;
  font-weight:700;
  color:#fff;
  background:#fc5300;
  border-radius:12px;
  vertical-align:middle;
  text-align:center;
}
.comments-empty{
  color:#888;
  font-style:italic;
  margin:0;
  padding:12px 0;
}
.comment-notice{
  padding:10px 14px;
  margin:0 0 16px;
  border-radius:3px;
  font-size:14px;
}
.comment-notice--ok{background:#e8f5e9;border-left:4px solid #27ae60;color:#1e6b32}
.comment-notice--err{background:#fdecea;border-left:4px solid #e74c3c;color:#922b21}

.commentlist{
  list-style:none;
  margin:0;
  padding:0;
}
.commentlist > .comment{
  margin:0;
  padding:0;
  border:none;
  list-style:none;
}
.comment-body{
  display:flex;
  align-items:flex-start;
  gap:16px;
  padding:18px 0;
  border-top:1px solid #ececec;
}
.commentlist > .comment:first-child .comment-body{border-top:none;padding-top:0}
.commentlist .avatar{
  flex:0 0 56px;
  width:56px;
  height:56px;
  max-width:56px;
  max-height:56px;
  border-radius:6px;
  border:2px solid #e4e4e4;
  box-shadow:0 1px 3px rgba(0,0,0,.08);
  float:none;
  margin:0;
  display:block;
  object-fit:cover;
  align-self:flex-start;
}
.comment-inner{flex:1;min-width:0}
.comment-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:8px 14px;
  margin-bottom:8px;
}
.comment-meta .fn{
  font-family:'Monda',sans-serif;
  font-size:16px;
  font-weight:700;
  color:#364956;
  line-height:1.3;
}
.comment-meta time{
  font-size:12px;
  color:#999;
  font-style:italic;
}
.comment-text{
  font-size:15px;
  line-height:1.65;
  color:#444;
  word-wrap:break-word;
}
.comment-text p{margin:0 0 8px}

.comment-form-entry{margin:0;padding:0}
.comment-form-entry .comment-body{
  border-top:1px solid #ececec;
  padding-top:18px;
  margin-top:0;
}
.comment-hint{
  font-size:12px;
  color:#999;
  font-style:italic;
  font-weight:400;
}
.avatar-guest,
#comment-avatar-preview{
  flex:0 0 56px;
  width:56px;
  height:56px;
  max-width:56px;
  max-height:56px;
  border-radius:6px;
  border:2px dashed #ccc;
  background:#f4f4f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23aaa'%3E%3Cpath d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v1.2h19.2v-1.2c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E") center/28px no-repeat;
  box-shadow:none;
  display:block;
  object-fit:cover;
  align-self:flex-start;
}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  border:0;
}

/* Форма — в том же стиле, что и комментарии */
.comment-form{margin:0}
.comment-form .comment-form-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:10px;
}
.comment-form-field{
  flex:1;
  min-width:140px;
  margin-bottom:10px;
}
.comment-form .comment-form-row .comment-form-field{
  margin-bottom:0;
  min-width:140px;
}
.comment-form .comment-form-row .comment-form-field input[type="text"],
.comment-form .comment-form-row .comment-form-field input[type="email"]{
  width:100%;
  margin:0;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  border:1px solid #ddd;
  border-radius:3px;
  padding:10px 12px;
  font-size:14px;
  font-family:Helvetica,Arial,sans-serif;
  background:#fff;
  color:#444;
  line-height:1.5;
  transition:border-color .2s,box-shadow .2s;
}
.comment-form .comment-form-row input[type="text"],
.comment-form .comment-form-row input[type="email"]{
  flex:1;
  min-width:140px;
  width:auto;
  margin:0;
  float:none;
  max-width:none;
}
.comment-form textarea{
  min-height:100px;
  resize:vertical;
  margin-bottom:12px;
  text-indent:0;
  font-style:normal;
}
.comment-form input:focus,
.comment-form textarea:focus{
  border-color:#fc5300;
  outline:none;
  box-shadow:0 0 0 2px rgba(252,83,0,.12);
}
.comment-form input.is-error,
.comment-form textarea.is-error{
  border-color:#e74c3c;
  box-shadow:0 0 0 2px rgba(231,76,60,.15);
}
.comment-form-submit{margin:0}
.comment-submit-btn,
.comment-form-submit input[type="submit"],
#commentform input#submit{
  display:inline-block;
  min-width:140px;
  padding:10px 22px;
  font-family:'Monda',sans-serif;
  font-size:14px;
  font-weight:700;
  color:#fff;
  background:#fc5300;
  border:none;
  border-radius:3px;
  cursor:pointer;
  transition:background .2s;
  float:none;
  width:auto;
  height:auto;
}
.comment-submit-btn:hover,
.comment-form-submit input[type="submit"]:hover,
#commentform input#submit:hover{background:#364956}
.comment-submit-btn:disabled{opacity:.75;cursor:wait}

/* Сброс старых стилей Ribbon для новой разметки формы */
.comments-wrap #commentform p{display:none}
.comments-wrap #commentform .comment-form-field,
.comments-wrap #commentform .comment-form-row,
.comments-wrap #commentform .comment-form-captcha,
.comments-wrap #commentform .comment-form-submit{display:block}
.comments-wrap #commentform .comment-form-row{display:flex}
.comments-wrap #commentform input#author,
.comments-wrap #commentform input#email,
.comments-wrap #commentform textarea,
.comments-wrap #commentform .comment-submit-btn{
  float:none;
  clear:none;
}

/* Сайдбар: свежие комментарии */
.avatar-sm{
  width:32px;
  height:32px;
  border-radius:4px;
  float:left;
  margin:2px 10px 0 0;
  border:1px solid #ddd;
  box-shadow:0 1px 2px rgba(0,0,0,.06);
}
.sidebar-comment{
  overflow:hidden;
  margin-bottom:12px;
  list-style:none;
  margin-left:0;
  padding-bottom:12px;
  border-bottom:1px dotted #ddd;
  font-size:13px;
  line-height:1.45;
}
.sidebar-comment:last-child{border-bottom:none;padding-bottom:0}
.sidebar-comment a{font-weight:600}

/* Хлебные крошки */
.breadcrumbs{margin:0 0 16px;padding:10px 0;font-size:13px;color:#777}
.breadcrumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}
.breadcrumbs li::after{content:"→";margin:0 8px;color:#ccc}
.breadcrumbs li:last-child::after{content:none}
.breadcrumbs a{color:#fc5300;text-decoration:none}
.breadcrumbs span{color:#555}

/* Бургер-меню */
#header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}
.nav-toggle{display:none;background:none;border:0;width:44px;height:40px;padding:6px;cursor:pointer}
.nav-toggle span{display:block;height:3px;margin:5px 0;background:#364956;border-radius:2px;transition:.2s}
.nav-toggle.is-open span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.nav-toggle.is-open span:nth-child(2){opacity:0}
.nav-toggle.is-open span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
@media screen and (max-width:865px){
  .nav-toggle{display:block}
  #navigation ul.menu{display:none;flex-direction:column;width:100%}
  #navigation.nav-open ul.menu{display:flex}
  #navigation select{display:none!important}
  .secondary-navigation{height:auto;min-height:45px}
  #navigation ul.menu li{float:none;width:100%}
  #navigation ul.menu a{display:block;height:auto;line-height:1.4;padding:12px 16px}
}

/* Похожие статьи */
.related-posts{clear:both;margin:28px 0 0;padding:20px 0 0;border-top:1px solid #ececec;float:left;width:100%}
.related-title{font-family:'Monda',sans-serif;font-size:20px;color:#364956;margin:0 0 16px}
.related-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.related-item{display:flex;gap:12px;align-items:flex-start}
.related-thumb{flex:0 0 120px}
.related-thumb img{width:120px;height:80px;object-fit:cover;border:1px solid #ddd;border-radius:3px}
.related-link{font-size:14px;line-height:1.4;color:#333;font-weight:600}
@media screen and (max-width:700px){.related-list{grid-template-columns:1fr}}

/* Вложенные комментарии */
.commentlist .children{list-style:none;margin:0 0 0 20px;padding:0}
.comment-depth-1 .comment-body{padding-left:8px;border-left:3px solid #f0f0f0}
.comment-depth-2 .comment-body{padding-left:8px;border-left:3px solid #e8e8e8}
.comment-reply-link,.comment-cancel-reply{font-size:12px;color:#fc5300;margin-left:auto}
.comment-form-honeypot{position:absolute;left:-9999px;height:0;overflow:hidden}
.comment-form-captcha{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px;font-size:14px}
.comment-form-captcha input{width:80px!important;flex:none}
.comment-form-captcha.is-error input{border-color:#e74c3c;box-shadow:0 0 0 2px rgba(231,76,60,.15)}
.field-inline-error{
  display:block;
  color:#e74c3c;
  font-size:12px;
  line-height:1.3;
  margin-top:4px;
}
.comment-form-captcha .field-inline-error{
  display:inline;
  margin-top:0;
  white-space:nowrap;
}
.comment-flash{
  margin:0 0 16px;
  padding:12px 16px;
  border-radius:4px;
  font-size:14px;
  line-height:1.5;
}
.comment-flash--ok{
  background:#e8f5e9;
  border-left:4px solid #27ae60;
  color:#1e6b32;
}
.comment-flash--err{
  background:#fdecea;
  border-left:4px solid #e74c3c;
  color:#922b21;
}
.comment-flash__text{margin:0}
.comment-hint.is-success{color:#27ae60;font-weight:600;font-style:normal}
.comment-noscript{
  margin:0 0 16px;
  padding:10px 14px;
  background:#fff8e1;
  border-left:4px solid #f39c12;
  color:#7a5d00;
  font-size:14px;
}
.comment-form.is-busy{opacity:.7;pointer-events:none}

/* Иконки meta без meta.png */
.cat_mt .mt_icon,.comment_mt .mt_icon,.author_mt .mt_icon{
  background:none!important;width:16px;height:16px;margin-right:6px;position:relative
}
.comment_mt .mt_icon::before{content:"💬";font-size:12px;line-height:16px}
.cat_mt .mt_icon::before{content:"📁";font-size:11px;line-height:16px}

/* 404 */
.page-404-title{margin-bottom:12px}
.search-404{margin:16px 0 24px}
.categories-404{list-style:none;margin:0 0 20px;padding:0}
.categories-404 li{margin-bottom:8px}
.categories-404 a{color:#fc5300;font-weight:600}

@media screen and (max-width:600px){
  .comment-body{gap:12px}
  .commentlist .avatar,.avatar-guest,#comment-avatar-preview{flex:0 0 44px;width:44px;height:44px;max-width:44px;max-height:44px}
  .avatar-guest{background-size:22px}
  .comment-form .comment-form-row input[type="text"],
  .comment-form .comment-form-row input[type="email"]{min-width:100%}
  .single .single-title{font-size:24px;line-height:1.3}
  .single .single_post{padding-top:28px}
}
