/* ==========================================================================
   mirivlad.ru — «Небо, листва и код»
   Структура шапки как у xlada61.ru: светлая панель (лого | меню | поиск)
   + hero-баннер с заголовком, подзаголовком и кнопкой.
   Палитра: нежно-голубой (небо) + зелёный (листья), акценты — код и ИИ.
   Откат: удалить mu-plugins/mir-design.php (и hero пропадёт).
   ========================================================================== */

:root{
  --sky-50:#F5FBFE;
  --sky-100:#EAF6FC;
  --sky-200:#D9EEF9;
  --sky-300:#C2E2F3;
  --sky-400:#8FC5E3;
  --leaf-50:#F6FBF7;
  --leaf-100:#EAF6EC;
  --leaf-200:#D2EAD8;
  --leaf-300:#A9D6B4;
  --leaf-400:#7FBB8C;
  --leaf-500:#5FA772;
  --leaf-600:#3F8256;
  --leaf-700:#2C6B48;
  --ink:#2B5468;
  --ink-soft:#5B7585;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}

/* ======================= ВЕРХНЯЯ ПАНЕЛЬ (как у xlada61) ================= */

html body header#site-header{
  background:#FFFFFF !important;
  background-image:none !important;
  background-color:#FFFFFF !important;
  padding:0 !important;
  position:relative !important;
  border-bottom:0 !important;
  box-shadow:0 2px 18px rgba(120,165,190,.09);
  overflow:visible;
  z-index:30;
}
html body header#site-header:before{content:none !important;display:none !important;}
/* тонкая живая линия по низу панели */
html body header#site-header:after{
  content:'' !important;
  display:block !important;
  position:absolute !important;
  left:0;bottom:0;
  width:100%;height:3px;
  background:linear-gradient(90deg,#8FC5E3,#9AD2A8,#7FBB8C,#8FC5E3) !important;
  background-size:220% 100%;
  animation:mirlf-flow 16s linear infinite;
  z-index:3;
}
@keyframes mirlf-flow{
  0%{background-position:0% 50%}
  100%{background-position:220% 50%}
}
@media (prefers-reduced-motion:reduce){
  html body header#site-header:after{animation:none !important;}
}

html body div#site-header-inner{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:22px;
  padding:12px 0 !important;
  min-height:76px;
  position:relative;
}
html body #site-logo{order:1;flex:0 0 auto;}
html body .oceanwp-social-menu{display:none !important;}
html body div#site-navigation-wrap{order:2;flex:1 1 auto;background:transparent !important;background-image:none !important;}
html body .oceanwp-mobile-menu-icon{order:3;margin-left:auto;}

/* ------------- логотип ------------- */
html body #site-logo-inner .text-left a{
  display:inline-flex;align-items:center;gap:11px;
  text-decoration:none !important;
}
html body #site-logo-inner .text-left a:before{
  content:'';
  width:38px;height:38px;flex:0 0 38px;
  border-radius:11px;
  background:linear-gradient(135deg,#8FC5E3 0%,#5FA772 100%);
  box-shadow:0 8px 18px rgba(95,167,114,.28);
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3E%20%3Cdefs%3E%20%3ClinearGradient%20id='g'%20x1='0'%20y1='0'%20x2='1'%20y2='1'%3E%20%3Cstop%20offset='0%25'%20stop-color='%23A7DBF2'/%3E%20%3Cstop%20offset='46%25'%20stop-color='%2363AFCF'/%3E%20%3Cstop%20offset='100%25'%20stop-color='%233F8256'/%3E%20%3C/linearGradient%3E%20%3CradialGradient%20id='hl'%20cx='0.26'%20cy='0.2'%20r='0.78'%3E%20%3Cstop%20offset='0%25'%20stop-color='%23ffffff'%20stop-opacity='0.38'/%3E%20%3Cstop%20offset='100%25'%20stop-color='%23ffffff'%20stop-opacity='0'/%3E%20%3C/radialGradient%3E%20%3C/defs%3E%20%3Crect%20rx='116'%20fill='url(%23g)'/%3E%20%3Crect%20rx='116'%20fill='url(%23hl)'/%3E%20%3Cg%20fill='none'%20stroke='%23ffffff'%20stroke-width='40'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%20%3Cpath%20d='M196%20168%20L132%20256%20L196%20344'/%3E%20%3Cpath%20d='M316%20168%20L380%20256%20L316%20344'/%3E%20%3Cpath%20d='M286%20148%20L226%20364'/%3E%20%3C/g%3E%20%3C/svg%3E"),
    linear-gradient(135deg,#A7DBF2 0%,#63AFCF 46%,#3F8256 100%);
  background-size:38px 38px,100% 100%;
  background-repeat:no-repeat;
  background-position:center;
}
html body #site-logo-inner .text-left u{
  display:inline-block;
  color:#2C6B48 !important;
  background:linear-gradient(100deg,#2C6B48 0%,#37837A 55%,#3D7FA6 100%);
  -webkit-background-clip:text !important;
  background-clip:text !important;
  -webkit-text-fill-color:transparent !important;
  text-decoration:none !important;
  font-weight:800 !important;
  font-size:23px !important;
  line-height:1.1 !important;
  letter-spacing:-.01em !important;
  text-transform:none !important;
  filter:none !important;
  text-shadow:none !important;
  white-space:nowrap;
}
html body #site-logo-inner .text-left u img{display:none !important;}
html body #site-logo-inner .text-left a:after{content:none !important;}

/* ------------- меню ------------- */
html body #site-navigation .main-menu{
  display:flex !important;
  align-items:center;
  gap:4px;
  float:none !important;
}
html body #site-navigation .menu-item > a.menu-link{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:10px 14px !important;
  border-radius:10px !important;
  transition:background .2s ease,color .2s ease !important;
}
html body #site-navigation .menu-link,
html body #site-navigation .menu-link .text-wrap,
html body #site-navigation .menu-link span{
  color:#33596B !important;
  font-weight:700 !important;
  font-size:14.5px !important;
  letter-spacing:0;
  text-shadow:none !important;
}
html body #site-navigation .menu-item > a.menu-link:hover{
  background:#F1FAFD !important;
}
html body #site-navigation .menu-item.current-menu-item > a.menu-link,
html body #site-navigation .menu-item.current-menu-ancestor > a.menu-link{
  background:#EAF6EC !important;
}
html body #site-navigation .menu-item > a.menu-link:hover .text-wrap,
html body #site-navigation .menu-item.current-menu-item > a.menu-link .text-wrap,
html body #site-navigation .menu-item.current-menu-ancestor > a.menu-link .text-wrap{
  color:#2C6B48 !important;
}
html body #site-navigation .menu-item > a.menu-link:after{display:none !important;}

/* ------------- кнопка поиска справа ------------- */
html body #site-navigation li.search-toggle-li{
  margin-left:auto !important;
  padding-left:12px;
}
html body #site-navigation .search-toggle-li > a{
  display:inline-flex !important;
  align-items:center;
  gap:9px;
  height:auto !important;
  width:auto !important;
  padding:11px 17px !important;
  border-radius:12px !important;
  background:linear-gradient(120deg,#5FA772 0%,#3F8256 100%) !important;
  border:0 !important;
  box-shadow:0 10px 22px rgba(63,130,86,.26) !important;
  transition:box-shadow .2s ease,transform .2s ease,filter .2s ease !important;
}
html body #site-navigation .search-toggle-li > a:hover{
  transform:translateY(-1px);
  filter:saturate(1.05) brightness(1.03);
  box-shadow:0 14px 28px rgba(63,130,86,.32) !important;
}
html body #site-navigation .search-toggle-li > a i{color:#fff !important;font-size:16px !important;}
html body #site-navigation .search-toggle-li > a:after{
  content:'Поиск';
  color:#fff;
  font-size:14px;
  font-weight:700;
  letter-spacing:.01em;
}

/* панель поиска на всю ширину панели */
html body #site-navigation{position:static !important;}
html body #site-navigation-wrap{position:static !important;}

/* панель поиска, которая выезжает */
html body #searchform-header-replace{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  top:0 !important;
  height:100% !important;
  width:auto !important;
  display:flex !important;
  align-items:center;
  padding:0 4px !important;
  background-color:rgba(245,251,254,.98) !important;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #D9EEF9 !important;
  box-shadow:0 10px 26px rgba(120,165,190,.14) !important;
}
html body #searchform-header-replace input{
  color:#2B5468 !important;
  font-family:var(--mono) !important;
  font-size:15px !important;
}
html body #searchform-header-replace input::placeholder{color:#8CA6B4 !important;}
html body #searchform-header-replace-close i{color:#3F8256 !important;}

/* мобильное меню */
html body #site-header .hamburger-inner,
html body #site-header .hamburger-inner:before,
html body #site-header .hamburger-inner:after{background-color:#3F8256 !important;}

/* ===================== HERO-БАННЕР ПОД ШАПКОЙ ========================== */

.mir-hero{
  position:relative;
  overflow:hidden;
  background-color:#EAF6FC;
  background-image:url("https://mirivlad.ru/wp-content/uploads/2026/11/mir-banner2.jpg");
  background-position:center right;
  background-size:cover;
  background-repeat:no-repeat;
  border-bottom:0;
}
.mir-hero:before{
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(93deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.90) 30%,rgba(255,255,255,.58) 55%,rgba(255,255,255,.10) 82%,rgba(255,255,255,0) 100%);
}
.mir-hero:after{
  content:'';
  position:absolute;left:0;bottom:0;width:100%;height:4px;
  background:linear-gradient(90deg,#8FC5E3,#9AD2A8,#7FBB8C);
}
.mir-hero-inner{
  position:relative;
  z-index:2;
  max-width:1200px;
  margin:0 auto;
  padding:58px 24px 62px;
}
.mir-hero-text{max-width:600px;}
.mir-kicker{
  display:inline-flex;align-items:center;gap:9px;
  font-family:var(--mono);
  font-size:11px;
  font-weight:600;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:#4E9463;
  margin:0 0 16px;
}
.mir-kicker:before{
  content:'';
  width:7px;height:7px;border-radius:50%;
  background:#5FA772;
  box-shadow:0 0 0 4px rgba(95,167,114,.18);
}
.mir-hero-title{
  margin:0 0 16px;
  font-size:clamp(30px,3.5vw,47px);
  line-height:1.05;
  font-weight:800;
  letter-spacing:-.012em;
  color:#2C6B48;
  background:linear-gradient(100deg,#2C6B48 0%,#33796E 45%,#3D7FA6 100%);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;
}
.mir-hero-sub{
  margin:0 0 26px;
  font-size:16.5px;
  line-height:1.62;
  color:#4B6B79;
  max-width:44ch;
}
.mir-hero-cta{display:flex;flex-wrap:wrap;gap:12px;align-items:center;}
.mir-btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:14px 24px;
  border-radius:999px;
  background:linear-gradient(120deg,#5FA772 0%,#2C6B48 100%);
  color:#fff !important;
  font-size:15px;
  font-weight:700;
  text-decoration:none !important;
  box-shadow:0 12px 26px rgba(44,107,72,.26);
  transition:transform .2s ease,box-shadow .2s ease;
}
.mir-btn:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(44,107,72,.32);}
.mir-btn span{transition:transform .2s ease;}
.mir-btn:hover span{transform:translateX(3px);}
.mir-btn-ghost{
  background:rgba(255,255,255,.92);
  color:#2B5468 !important;
  border:1px solid #D5EAF5;
  box-shadow:0 8px 18px rgba(88,140,170,.12);
}
.mir-btn-ghost:hover{box-shadow:0 12px 24px rgba(88,140,170,.18);}
.mir-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px;}
.mir-chips span{
  font-family:var(--mono);
  font-size:11.5px;
  letter-spacing:.05em;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.78);
  border:1px solid #DCEEF7;
  color:#3F7F97;
  -webkit-backdrop-filter:blur(4px);
  backdrop-filter:blur(4px);
}

/* выезжающее мобильное меню */
html body #mobile-dropdown,
html body .mobile-menu-inner,
html body #oceanwp-mobile-menu-navbar{
  background:#FFFFFF !important;
  border-left:1px solid #E4F1F8 !important;
  box-shadow:-12px 0 30px rgba(88,140,170,.14) !important;
}
html body #mobile-dropdown .mobile-close-btn,
html body .mobile-menu-close,
html body .mobile-close-btn a,
html body #mobile-dropdown .close-btn{color:#3F8256 !important;}
html body #mobile-dropdown a,
html body .mobile-menu-inner a{color:#33596B !important;font-weight:600 !important;}
html body #mobile-dropdown a:hover,
html body .mobile-menu-inner a:hover{color:#2C6B48 !important;background:#F3FAFD !important;}
html body #mobile-dropdown li,
html body .mobile-menu-inner li{border-bottom:1px solid #EFF6F9 !important;}

/* ============================ САЙДБАР =================================== */

html body .widget-area.sidebar-primary{
  background:linear-gradient(180deg,#F2FAFE 0%,#F4FBF7 100%) !important;
  border:1px solid #DDEEF8 !important;
  border-radius:20px !important;
  padding:14px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 14px 34px rgba(120,165,190,.10);
}
html body #right-sidebar-inner .widget.sidebar-box,
html body .sidebar-box#ocean_recent_posts-1,
html body .sidebar-box#ocean_recent_posts-2{
  background:rgba(255,255,255,.78) !important;
  -webkit-backdrop-filter:blur(9px) saturate(1.1);
  backdrop-filter:blur(9px) saturate(1.1);
  border:1px solid rgba(228,241,248,.95) !important;
  border-radius:16px !important;
  box-shadow:0 6px 18px rgba(88,140,170,.07) !important;
  padding:16px 16px 10px !important;
  margin:0 0 14px !important;
  position:relative;
  overflow:hidden;
  transition:box-shadow .25s ease,transform .25s ease,border-color .25s ease !important;
}
html body #right-sidebar-inner .widget.sidebar-box:before{
  content:'';position:absolute;left:0;top:0;width:100%;height:2px;
  background:linear-gradient(90deg,#8FC5E3,#9AD2A8 60%,#7FBB8C);
  opacity:.55;transition:opacity .25s ease;
}
html body #right-sidebar-inner .widget.sidebar-box:hover{
  transform:translateY(-2px);
  border-color:#D7EBD8 !important;
  box-shadow:0 14px 30px rgba(88,140,170,.14) !important;
}
html body #right-sidebar-inner .widget.sidebar-box:hover:before{opacity:1;}
html body #right-sidebar-inner .widget.sidebar-box:last-child{margin-bottom:0 !important;}

html body .widget-area.sidebar-primary .widget-title{
  color:#2C6B48 !important;
  font-size:13.5px !important;
  font-weight:800 !important;
  letter-spacing:.1em !important;
  text-transform:uppercase;
  text-align:left !important;
  border-bottom:0 !important;
  padding:0 0 10px 12px !important;
  margin:0 0 12px !important;
  display:block;
  position:relative;
}
html body .widget-area.sidebar-primary .widget-title:before{
  content:'';position:absolute;left:0;top:2px;
  width:4px;height:14px;border-radius:3px;
  background:linear-gradient(180deg,#8FC5E3,#7FBB8C);
}
html body .widget-area.sidebar-primary .widget-title:after{
  content:'';position:absolute;left:0;bottom:0;
  width:52px;height:3px;border-radius:3px;
  background:linear-gradient(90deg,#8FC5E3 0%,#9AD2A8 100%);
}

html body .widget-area.sidebar-primary,
html body .widget-area.sidebar-primary *{color:#4C6775 !important;}
html body .widget-area.sidebar-primary .widget-title{color:#2C6B48 !important;}
html body .widget-area.sidebar-primary a{color:#2B5468 !important;text-decoration:none !important;}
html body .widget-area.sidebar-primary a:hover{color:#2C6B48 !important;}
html body .widget-area.sidebar-primary img{border-radius:12px !important;display:block;}

html body .widget-area.sidebar-primary .oceanwp-recent-posts li{
  border-bottom:1px solid #EFF6F9 !important;
  padding:10px 0 !important;
  transition:transform .2s ease;
}
html body .widget-area.sidebar-primary .oceanwp-recent-posts li:last-child{border-bottom:0 !important;}
html body .widget-area.sidebar-primary .oceanwp-recent-posts li:hover{transform:translateX(2px);}
html body .widget-area.sidebar-primary .recent-posts-thumbnail{
  border-radius:12px !important;
  overflow:hidden !important;
  border:1px solid #E8F2F7 !important;
  transition:border-color .2s ease,box-shadow .2s ease !important;
}
html body .widget-area.sidebar-primary .oceanwp-recent-posts li:hover .recent-posts-thumbnail{
  border-color:#CBE7D3 !important;
  box-shadow:0 6px 14px rgba(88,140,170,.16) !important;
}
html body .widget-area.sidebar-primary .recent-posts-title{
  color:#2B5468 !important;
  font-size:13.5px !important;
  font-weight:600 !important;
  line-height:1.42 !important;
}
html body .widget-area.sidebar-primary .oceanwp-recent-posts li:hover .recent-posts-title{color:#2C6B48 !important;}
html body .widget-area.sidebar-primary .recent-posts-date,
html body .widget-area.sidebar-primary .recent-posts-info{
  color:#93A9B4 !important;
  font-family:var(--mono) !important;
  font-size:11px !important;
  letter-spacing:.04em !important;
}
/* карусель постов: текст поверх фото остаётся белым и читаемым */
html body .widget-area.sidebar-primary .psac-post-carousel .psac-post-title,
html body .widget-area.sidebar-primary .psac-post-carousel .psac-post-title a,
html body .widget-area.sidebar-primary .psac-post-carousel .psac-post-meta,
html body .widget-area.sidebar-primary .psac-post-carousel .psac-time{
  color:#FFFFFF !important;
  text-shadow:0 1px 10px rgba(12,38,30,.55) !important;
}
html body .widget-area.sidebar-primary .psac-post-carousel .psac-post-title a{
  font-size:14px !important;
  font-weight:700 !important;
  line-height:1.35 !important;
}
html body .widget-area.sidebar-primary .psac-post-carousel .psac-post-meta,
html body .widget-area.sidebar-primary .psac-post-carousel .psac-time{
  font-family:var(--mono) !important;
  font-size:11px !important;
  letter-spacing:.04em !important;
}
html body .widget-area.sidebar-primary .psac-post-carousel .psac-post-carousel-content{
  background:linear-gradient(180deg,rgba(20,50,42,0) 0%,rgba(20,50,42,.55) 45%,rgba(20,50,42,.82) 100%) !important;
}
html body .widget-area.sidebar-primary .psac-post-carousel .psac-post-carousel-slide,
html body .widget-area.sidebar-primary .psac-post-carousel .psac-post-image-bg{
  border-radius:12px !important;
  overflow:hidden !important;
}

html body .widget-area.sidebar-primary .wp-block-latest-comments__comment,
html body .widget-area.sidebar-primary .widget_recent_comments li{
  border-bottom:1px solid #EFF6F9 !important;
  padding:9px 0 !important;
  font-size:13.5px !important;
}
html body #scroll-top{
  background:linear-gradient(140deg,#8FC5E3 0%,#7FBB8C 100%) !important;
  box-shadow:0 8px 20px rgba(96,150,180,.28) !important;
}

/* ============================ АДАПТИВ =================================== */
@media (max-width:980px){
  .mir-hero:before{
    background:linear-gradient(180deg,rgba(255,255,255,.95) 0%,rgba(255,255,255,.90) 55%,rgba(255,255,255,.82) 100%);
  }
  .mir-hero-inner{padding:36px 18px 40px;}
  .mir-hero-text{max-width:none;}
  .mir-hero-sub{font-size:15.5px;}
}
@media (max-width:767px){
  html body div#site-header-inner{min-height:64px;padding:10px 0 !important;gap:12px;}
  html body #site-logo-inner .text-left a{gap:9px;}
  html body #site-logo-inner .text-left a:before{width:32px;height:32px;flex:0 0 32px;border-radius:9px;background-size:32px 32px,100% 100%;}
  html body #site-logo-inner .text-left u{font-size:19px !important;}
  html body #site-navigation li.search-toggle-li{margin-left:auto !important;padding-left:0;}
  html body #site-navigation .search-toggle-li > a{padding:9px 13px !important;}
  html body #site-navigation .search-toggle-li > a:after{content:none;}
  .mir-hero-inner{padding:28px 16px 32px;}
  .mir-hero-title{font-size:27px;}
  .mir-hero-sub{font-size:15px;margin-bottom:20px;}
  .mir-btn{padding:12px 20px;font-size:14px;}
  .mir-chips{margin-top:18px;}
  html body .widget-area.sidebar-primary{
    border-radius:16px !important;
    padding:10px !important;
    margin-top:24px !important;
  }
  html body #right-sidebar-inner .widget.sidebar-box{padding:14px 14px 8px !important;border-radius:14px !important;}
}
