/* ============================================================
   RemontKofe-MSK.ru — дизайн блога о ремонте и строительстве
   Палитра: графит #20242A / сталь #39404B / строительный
   оранжевый #EE7B1E / янтарь #F5A623 / бетон #F5F4F0 / бумага #FFF
   ============================================================ */
:root{
  --rk-graphite:#20242A;
  --rk-graphite2:#17191D;
  --rk-steel:#39404B;
  --rk-accent:#EE7B1E;
  --rk-accent2:#F5A623;
  --rk-accent-dark:#C75F10;
  --rk-concrete:#F5F4F0;
  --rk-paper:#FFFFFF;
  --rk-ink:#26262B;
  --rk-muted:#71706C;
  --rk-border:#E4E1D8;
}

/* ---------- Фон сайта ---------- */
body{
  background-color:var(--rk-concrete);
  background-image:url("bg-build.jpg");
  background-repeat:repeat;
  background-size:760px auto;
  color:var(--rk-ink);
}
#wrap, #main, .site-main{ background:transparent !important; }
a{ color:var(--rk-accent-dark); }
a:hover{ color:var(--rk-accent); }
::selection{ background:var(--rk-accent); color:#fff; }

/* ---------- Шапка ---------- */
html body #site-header{
  background-color:var(--rk-graphite2) !important;
  background-image:linear-gradient(120deg,#141519 0%,#20242A 55%,#2E333D 100%) !important;
  border-bottom:3px solid var(--rk-accent) !important;
  box-shadow:0 6px 24px rgba(10,10,15,.35);
}
/* Шапка: sticky вместо fixed из старого SO CSS (не накрывает контент) */
html body #site-header{
  position:sticky !important;
  top:0;
  z-index:1000;
}
/* Однорядная шапка: логотип — меню — соцсети/поиск в одну строку */
@media (min-width: 961px){
  html body #site-header{ display:flex; align-items:center; }
  html body #site-header .header-bottom{ order:1; flex:0 0 auto; }
  html body #site-header .header-top{ order:2; flex:1 1 auto; min-width:0; }
  html body #site-header .header-bottom .container{
    width:auto; max-width:none; padding-left:15px; padding-right:4px;
  }
  html body #site-header .header-top #site-header-inner{
    width:auto; max-width:none; padding-right:15px;
    display:flex; align-items:center; justify-content:space-between;
  }
  html body #site-header .header-top .left,
  html body #site-header .header-top .right{ float:none; }
  html body #site-header .header-top .left .inner,
  html body #site-header .header-top .right .inner{
    display:flex; align-items:center; gap:12px;
  }
}
#site-description{ display:none !important; }
/* Одна строка: без зелёной подложки меню, блоки строго по центру строки */
html body #site-header .header-top,
html body #site-header .header-top #site-header-inner,
html body #site-header #site-navigation-wrap{
  background:transparent !important;
}
html body #site-header .header-top #site-header-inner{
  align-items:center !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
}
html body #site-header .header-top .left,
html body #site-header .header-top .right{
  display:flex;
  align-items:center;
  float:none !important;
  height:auto;
}
body #main{ padding-top:0 !important; }
body #site-header-inner{ background:transparent !important; }
html body #site-header .top-header-wrap{ background:transparent !important; }
#top-bar{ background:#101114 !important; color:#C9C9CE; }
#top-bar a{ color:var(--rk-accent2); }

/* Логотип (шорткод [sc name="logo"]) */
.rk-logo{
  display:inline-flex !important;
  align-items:center;
  gap:16px;
  text-decoration:none !important;
  padding:6px 0;
}
body #site-logo #site-logo-inner a.rk-logo img{
  position:static !important;
  float:none !important;
  width:66px !important;
  height:66px !important;
  max-width:none !important;
  border-radius:16px;
  border:1px solid rgba(245,166,35,.55);
  box-shadow:0 6px 18px rgba(0,0,0,.45);
  background:#22262E;
  transform:none !important;
}
.rk-logo-text{ display:block; text-align:left; line-height:1.15; }
.rk-logo-text strong{
  display:block;
  font-size:25px;
  font-weight:800;
  letter-spacing:.6px;
  color:#F6F3EC !important;
  white-space:nowrap;
}
.rk-logo-text strong .rk-dot{ color:var(--rk-accent2); }
.rk-logo-text small{
  display:block;
  margin-top:3px;
  font-size:12px;
  font-weight:600;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:var(--rk-accent2) !important;
  white-space:nowrap;
}
.rk-logo:hover .rk-logo-text strong{ color:var(--rk-accent2) !important; }
#site-logo a.site-logo-text{ color:#F6F3EC !important; }

/* Меню */
#site-navigation-wrap .dropdown-menu > li > a,
#site-header .dropdown-menu > li > a{
  color:#ECEAE4 !important;
  font-weight:600;
}
#site-navigation-wrap .dropdown-menu > li > a:hover,
#site-navigation-wrap .dropdown-menu > li.current-menu-item > a,
#site-header .dropdown-menu > li > a:hover{
  color:var(--rk-accent2) !important;
}
#site-navigation-wrap .dropdown-menu .sub-menu{
  background:var(--rk-paper);
  border:1px solid var(--rk-border);
  border-top:3px solid var(--rk-accent);
  border-radius:0 0 12px 12px;
  box-shadow:0 16px 30px rgba(20,20,28,.25);
}
#site-navigation-wrap .dropdown-menu .sub-menu li a{ color:var(--rk-ink) !important; }
#site-navigation-wrap .dropdown-menu .sub-menu li a:hover{
  color:var(--rk-accent-dark) !important;
  background:var(--rk-concrete);
}
/* Иконки поиска/соцсетей в шапке */
#site-header .oceanwp-social-menu a,
#site-header .oceanwp-menu-search a,
#searchform-overlay-btn, .oceanwp-menu-icon a{ color:#ECEAE4 !important; }
#site-header .oceanwp-social-menu a:hover{ color:var(--rk-accent2) !important; }
#medium-searchform{ background:rgba(255,255,255,.07); border:1px solid rgba(245,166,35,.4); border-radius:30px; }
#medium-searchform input{ color:#F6F3EC !important; }
#medium-searchform input::placeholder{ color:#A9A49A; }
#medium-searchform button{ color:var(--rk-accent2) !important; }

/* ---------- Бегущая строка «Интересное» ---------- */
.marqueefon{
  background:linear-gradient(90deg,#20242A,#39404B 60%,#20242A) !important;
  border-bottom:1px solid rgba(0,0,0,.35);
  padding:9px 0 !important;
  position:relative;
  z-index:2;
}
.marqueefon .marquee{ display:flex; align-items:center; gap:14px; }
.marqueefon marquee{ flex:1 1 auto; }
.breaking-title-text{
  position:static !important;
  flex:0 0 auto;
  background:var(--rk-accent) !important;
  color:#fff !important;
  border-radius:20px;
  padding:4px 14px;
  font-weight:700;
  letter-spacing:.4px;
}
.marqueefon marquee a,
.marqueefon .rt-detail h4 a{ color:#F1EEE6 !important; font-size:14px; }
.marqueefon .rt-detail h4{ font-size:14px !important; margin:0; }

/* ---------- Карусель в шапке ---------- */
.borma{
  background:linear-gradient(180deg,#17191D 0%,#20242A 70%,#262B34 100%) !important;
  border-bottom:4px solid var(--rk-accent);
  padding:36px 0 44px !important;
}
.rk-carousel-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:22px;
}
.rk-kicker{
  display:inline-block;
  color:var(--rk-accent2);
  font-size:12px;
  font-weight:700;
  letter-spacing:2.2px;
  text-transform:uppercase;
}
.rk-carousel-head h2{
  margin:6px 0 0;
  color:#F6F3EC !important;
  font-size:29px;
  line-height:1.2;
  font-weight:800;
}
.rk-carousel-sub{
  color:#C7C9CD;
  font-size:14.5px;
  line-height:1.55;
  max-width:430px;
  margin:0;
}
.borma .psacp-post-carousel-wrap{ position:relative; }
.borma .psacp-post-slide{ padding:0 8px; }
.borma .psacp-post-carousel-content{
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 12px 26px rgba(0,0,0,.45);
  border:1px solid rgba(245,166,35,.3);
  background:#101114;
}
.borma .psacp-post-img-bg{
  height:250px !important;
  background-size:cover;
  background-position:center;
  position:relative;
  transition:transform .6s ease;
}
.borma .psacp-post-slide:hover .psacp-post-img-bg{ transform:scale(1.045); }
.borma .psacp-post-overlay{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:44px 16px 14px;
  background:linear-gradient(180deg,rgba(12,12,16,0) 0%,rgba(12,12,16,.72) 55%,rgba(12,12,16,.94) 100%);
}
body .borma .psacp-post-cats a.psacp-post-cat-link,
body .borma a.psacp-post-cat-link{
  display:inline-block;
  background:var(--rk-accent) !important;
  color:#fff !important;
  border-radius:20px;
  padding:3px 11px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.6px;
  text-transform:uppercase;
  text-decoration:none !important;
}
body .borma .psacp-post-cats a.psacp-post-cat-link:hover{ background:var(--rk-accent2) !important; }
.borma .psacp-post-title{ margin:9px 0 6px; font-size:17px; line-height:1.35; }
.borma .psacp-post-title a{
  color:#FDFBF6 !important;
  font-weight:700;
  text-decoration:none !important;
  display:-webkit-box;
  -webkit-line-clamp:2; line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.borma .psacp-post-title a:hover{ color:var(--rk-accent2) !important; }
.borma .psacp-post-meta, .borma .psacp-post-date{ color:#E9D9BE !important; font-size:12px; }
.borma .psacp-post-meta i{ color:var(--rk-accent2); margin-right:5px; }
/* Стрелки карусели */
.borma .owl-nav button.owl-prev,
.borma .owl-nav button.owl-next{
  position:absolute;
  top:44%;
  width:44px; height:44px;
  border-radius:50% !important;
  background:rgba(18,18,22,.78) !important;
  border:1px solid var(--rk-accent) !important;
  color:var(--rk-accent2) !important;
  font-size:20px !important;
  line-height:1 !important;
  transition:all .25s ease;
  z-index:5;
}
.borma .owl-nav button.owl-prev{ left:-8px; }
.borma .owl-nav button.owl-next{ right:-8px; }
.borma .owl-nav button:hover{ background:var(--rk-accent) !important; color:#fff !important; }
/* Точки карусели */
.borma .owl-dots{ text-align:center; margin-top:20px; }
.borma .owl-dots .owl-dot span{
  display:block;
  width:9px; height:9px;
  border-radius:50%;
  background:#6E6A5E;
  margin:0 4px;
  transition:all .25s ease;
}
.borma .owl-dots .owl-dot.active span{
  background:var(--rk-accent2);
  width:26px;
  border-radius:6px;
}

/* ---------- Карточки записей ---------- */
.blog-entry-inner, .entry-inner{ background:var(--rk-paper); }
#blog-entries .blog-entry-inner{
  border:1px solid var(--rk-border);
  border-radius:16px;
  padding:20px;
  box-shadow:0 5px 16px rgba(32,36,42,.06);
  transition:box-shadow .3s ease, transform .3s ease;
}
#blog-entries .blog-entry-inner:hover{
  box-shadow:0 12px 28px rgba(32,36,42,.13);
  transform:translateY(-3px);
}
.blog-entry-thumbnail img, .thumbnail img{ border-radius:12px; }
.blog-entry-title a, .entry-title a{ color:var(--rk-ink) !important; }
.blog-entry-title a:hover, .entry-title a:hover{ color:var(--rk-accent-dark) !important; }
.blog-entry-summary, .entry-summary{ color:#55534F; }
.meta, .blog-entry-meta, .meta li, .meta a{ color:var(--rk-muted) !important; }
.meta a:hover{ color:var(--rk-accent) !important; }
.blog-entry-readmore a, a.more-link{
  display:inline-block;
  border:1.5px solid var(--rk-accent);
  color:var(--rk-accent-dark) !important;
  border-radius:30px;
  padding:7px 18px;
  font-weight:700;
  font-size:13px;
  text-decoration:none !important;
  transition:all .25s ease;
}
.blog-entry-readmore a:hover, a.more-link:hover{
  background:var(--rk-accent);
  color:#fff !important;
}

/* ---------- Заголовки и контент ---------- */
h1, h2, h3, h4{ color:var(--rk-graphite); }
.single-post .entry-content h2,
.page .entry-content h2{
  border-left:4px solid var(--rk-accent);
  padding-left:12px;
}
.entry-content a{ color:var(--rk-accent-dark); text-decoration:underline; text-decoration-color:rgba(238,123,30,.45); }
.entry-content a:hover{ color:var(--rk-accent); }
blockquote{
  border-left:4px solid var(--rk-accent);
  background:var(--rk-concrete);
  border-radius:0 12px 12px 0;
  color:var(--rk-steel);
}
input[type="text"], input[type="email"], input[type="search"], textarea, select{
  border:1px solid var(--rk-border) !important;
  border-radius:10px !important;
  background:#fff !important;
}
input:focus, textarea:focus{ border-color:var(--rk-accent) !important; outline:none; }
button, input[type="submit"], .button, .owp-btn{
  background:linear-gradient(135deg,var(--rk-accent),#D96C1E) !important;
  color:#fff !important;
  border:none !important;
  border-radius:30px !important;
  font-weight:700;
}
button:hover, input[type="submit"]:hover, .button:hover{ filter:brightness(1.08); }

/* Подложка под текст одиночной записи/страницы */
.single-post #primary, .page #primary{
  background:var(--rk-paper);
  border:1px solid var(--rk-border);
  border-radius:16px;
  padding:28px 30px;
  box-shadow:0 5px 16px rgba(32,36,42,.06);
}

/* H1 и описание на главной (шорткод text_home-page) */
h1.p{
  color:var(--rk-graphite) !important;
  font-size:32px;
  font-weight:800;
}
p.pap{ color:#55534F; font-size:16.5px; line-height:1.65; max-width:820px; }

/* ---------- Сайдбар ---------- */
#right-sidebar .widget, #right-sidebar-inner .widget,
.sidebar-box{
  background:var(--rk-paper);
  border:1px solid var(--rk-border);
  border-radius:16px;
  padding:20px;
  margin-bottom:24px;
  box-shadow:0 5px 16px rgba(32,36,42,.06);
}
#right-sidebar .widget-title, .sidebar-box .widget-title{
  color:var(--rk-graphite) !important;
  font-size:16.5px;
  font-weight:800;
  border-bottom:2px solid var(--rk-accent) !important;
  padding-bottom:9px;
  margin-bottom:14px;
}
#right-sidebar a{ color:var(--rk-accent-dark); }
#right-sidebar a:hover{ color:var(--rk-accent); }
#right-sidebar .oceanwp-recent-posts .recent-posts-thumbnail img{ border-radius:10px; }

/* ---------- Навигация по страницам ---------- */
.page-numbers{
  border:1px solid var(--rk-border) !important;
  background:var(--rk-paper);
  color:var(--rk-accent-dark) !important;
  border-radius:10px !important;
}
.page-numbers.current{
  background:var(--rk-accent) !important;
  border-color:var(--rk-accent) !important;
  color:#fff !important;
  font-weight:700;
}
a.page-numbers:hover{ background:var(--rk-concrete); color:var(--rk-graphite) !important; }

/* ---------- Подвал ---------- */
#footer, #site-footer{
  background:linear-gradient(180deg,#262B34,#17191D) !important;
  color:#C7C9CD;
}
#footer a{ color:var(--rk-accent2); }
#footer .widget-title{ color:#F6F3EC !important; }
#footer-bottom{
  background:#101114 !important;
  color:#9BA0A8 !important;
}
#footer-bottom a{ color:var(--rk-accent2) !important; }
#footerka{
  background:linear-gradient(120deg,#20242A,#2A2F38);
  color:#E3E1D9;
  border-top:3px solid var(--rk-accent);
  padding:26px 0;
}
#footerka a{ color:var(--rk-accent2) !important; }
#footerka b{ color:#F6F3EC; }
#scroll-top{
  background:var(--rk-accent) !important;
  color:#fff !important;
  border-radius:12px !important;
}
#scroll-top:hover{ background:var(--rk-accent2) !important; }

/* ---------- Карусель в подвале ---------- */
.bormadesign{
  background:linear-gradient(180deg,#262B34 0%,#17191D 100%) !important;
  border-top:4px solid var(--rk-accent) !important;
  border-color:var(--rk-accent) !important;
  padding:40px 0 46px !important;
}
.bormasign .psacp-post-slide{ padding:0 8px; }
.bormasign .psacp-post-carousel-content{
  background:#fff;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--rk-border);
  box-shadow:0 10px 24px rgba(0,0,0,.35);
  transition:transform .3s ease, box-shadow .3s ease;
}
.bormasign .psacp-post-slide:hover .psacp-post-carousel-content{
  transform:translateY(-4px);
  box-shadow:0 18px 34px rgba(0,0,0,.45);
}
.bormasign .psacp-post-img-bg{
  height:190px !important;
  background-size:cover;
  background-position:center;
  transition:transform .6s ease;
}
.bormasign .psacp-post-slide:hover .psacp-post-img-bg{ transform:scale(1.05); }
.bormasign .psacp-post-margin-content{
  padding:16px 18px 18px;
  background:#fff;
}
body .bormasign .psacp-post-cats a.psacp-post-cat-link{
  display:inline-block;
  background:var(--rk-accent) !important;
  color:#fff !important;
  border-radius:20px;
  padding:3px 11px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.6px;
  text-transform:uppercase;
  text-decoration:none !important;
}
body .bormasign .psacp-post-cats a.psacp-post-cat-link:hover{ background:var(--rk-accent2) !important; }
.bormasign .psacp-post-title{ margin:9px 0 7px; font-size:16.5px; line-height:1.4; }
.bormasign .psacp-post-title a{
  color:var(--rk-ink) !important;
  font-weight:700;
  text-decoration:none !important;
  display:-webkit-box;
  -webkit-line-clamp:2; line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.bormasign .psacp-post-title a:hover{ color:var(--rk-accent-dark) !important; }
.bormasign .psacp-post-meta, .bormasign .psacp-post-date{
  color:var(--rk-muted) !important;
  font-size:12.5px;
}
.bormasign .psacp-post-meta i{ color:var(--rk-accent); margin-right:5px; }
/* Стрелки футерной карусели */
.bormadesign .owl-nav button.owl-prev,
.bormadesign .owl-nav button.owl-next{
  position:absolute;
  top:38%;
  width:44px; height:44px;
  border-radius:50% !important;
  background:rgba(18,18,22,.78) !important;
  border:1px solid var(--rk-accent) !important;
  color:var(--rk-accent2) !important;
  font-size:20px !important;
  line-height:1 !important;
  transition:all .25s ease;
  z-index:5;
}
.bormadesign .owl-nav button.owl-prev{ left:-8px; }
.bormadesign .owl-nav button.owl-next{ right:-8px; }
.bormadesign .owl-nav button:hover{ background:var(--rk-accent) !important; color:#fff !important; }
/* Точки футерной карусели */
.bormadesign .owl-dots{ text-align:center; margin-top:22px; }
.bormadesign .owl-dots .owl-dot span{
  display:block;
  width:9px; height:9px;
  border-radius:50%;
  background:#6E6A5E;
  margin:0 4px;
  transition:all .25s ease;
}
.bormadesign .owl-dots .owl-dot.active span{
  background:var(--rk-accent2);
  width:26px;
  border-radius:6px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 860px){
  .rk-carousel-head{ flex-direction:column; align-items:flex-start; gap:8px; }
  .rk-carousel-head h2{ font-size:23px; }
  body #site-logo #site-logo-inner a.rk-logo img{ width:50px !important; height:50px !important; border-radius:12px; }
  .rk-logo-text strong{ font-size:19px; }
  .rk-logo-text small{ font-size:10px; letter-spacing:1.1px; }
  .borma .psacp-post-img-bg{ height:210px !important; }
  h1.p{ font-size:25px; }
}

/* Воздух между логотипом и меню в однорядной шапке */
@media (min-width: 961px){
  html body #site-header .header-top #site-header-inner{ padding-left:14px; }
  html body #site-header .header-top .left{ margin-right:auto; }
}
