/*
  Theme Name:   Kadence Child
  Description:  Дочерняя тема Kadence для сайта продажи проектов домов
  Template:     kadence
  Version:      1.0.1
  Text Domain:  kadence-child
*/

/* =========================================================
   1. БАЗА
   ========================================================= */

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #161616;
  background: #f4f4f4;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: #254f9f;
}

/* =========================================================
   2. ШАПКА САЙТА
   ========================================================= */

body .site-header,
body.transparent-header .site-header,
body.non-transparent-header .site-header,
body.mobile-transparent-header .site-header,
body.mobile-non-transparent-header .site-header {
  position: relative !important;
  z-index: 1000 !important;
  width: 100% !important;
  padding: 0 !important;
  border: none !important;
  background: rgba(244, 244, 244, 0.96) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

body .site-header .site-header-wrap,
body .site-header .site-main-header-wrap,
body .site-header .site-header-row-container,
body .site-header .site-header-row,
body .site-header .site-header-section {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .site-header .site-container,
body .site-header .site-header-row-container-inner {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding-right: 30px !important;
  padding-left: 30px !important;
}

body .site-header .site-header-row,
body .site-header .site-main-header-wrap,
body .site-header .site-header-row-container-inner {
  display: flex !important;
  align-items: center !important;
  height: 90px !important;
  min-height: 90px !important;
}

.site-header .site-header-row {
  justify-content: space-between !important;
}

.site-header .site-branding {
  margin: 0 auto 0 0 !important;
  padding: 0 !important;
}

.site-header .main-navigation {
  margin: 0 0 0 auto !important;
  padding: 0 !important;
}

.site-header .main-navigation ul {
  display: flex !important;
  justify-content: flex-end !important;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .main-navigation li {
  padding: 0 12px;
}

.site-header .site-branding a,
.site-header .main-navigation a {
  color: #254f9f;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-header .site-branding a:hover,
.site-header .main-navigation a:hover {
  color: #163569;
  transform: translateY(-1px);
}

.site-header .main-navigation .current-menu-item > a,
.site-header .main-navigation .current_page_item > a {
  color: #163569;
  border-bottom: 2px solid #163569;
  padding-bottom: 4px;
}

/* =========================================================
   3. ГЛАВНАЯ СТРАНИЦА
   ========================================================= */

body.home {
  position: relative;
  background: #f4f4f4;
}

body.home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(244, 244, 244, 0.22), rgba(244, 244, 244, 0.22)),
    url("http://192.168.1.98:8080/wp-content/uploads/2026/05/ChatGPT-Image-26-февр.-2026-г.-23_53_52.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  opacity: 0.8;
}

body.home .entry.content-bg,
body.home .entry-content-wrap,
body.home .content-wrap,
body.home .content-container.site-container,
body.home .site-main,
body.home .content-area,
body.home .entry-content.single-content,
body.home .entry-content {
  border: none;
  background: transparent;
  box-shadow: none;
  padding-top: 0;
  padding-bottom: 0;
}

body.home .entry-header {
  display: none;
}

body.home .hpo-hero {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  padding: 40px;
  animation: heroFadeUp 0.9s ease-out;
}

body.home .hpo-hero .wp-block-post-title,
body.home .hpo-hero h1 {
  max-width: 780px;
  margin: 0 auto;
  color: #161616;
  background: transparent;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   4. ВНУТРЕННИЕ СТРАНИЦЫ
   ========================================================= */

body.page-id-90,
body.page-id-83,
body.page-id-93 {
  background:
    linear-gradient(180deg, #e9eef4 0, #e9eef4 320px, #f4f4f4 320px, #f4f4f4 100%);
}

body.page-id-90 .entry-hero,
body.page-id-83 .entry-hero,
body.page-id-93 .entry-hero {
  display: none;
}

body.page-id-90 .content-container,
body.page-id-83 .content-container,
body.page-id-93 .content-container {
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding: 36px 30px 40px !important;
}

body.page-id-90 .content-bg,
body.page-id-83 .content-bg,
body.page-id-93 .content-bg,
body.page-id-90 .content-wrap,
body.page-id-83 .content-wrap,
body.page-id-93 .content-wrap,
body.page-id-90 .entry-content-wrap,
body.page-id-83 .entry-content-wrap,
body.page-id-93 .entry-content-wrap {
  border: none;
  box-shadow: none;
  margin-top: 0;
}

body.page-id-90 .entry-content-wrap,
body.page-id-83 .entry-content-wrap,
body.page-id-93 .entry-content-wrap {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(25, 40, 70, 0.08);
  padding: 20px !important;
}

/* =========================================================
   5. КАТАЛОГ ПРОЕКТОВ
   ========================================================= */

body.page-id-90 .hpo-page-title,
body.page-id-90 .hpo-catalog-title {
  margin: 0 0 28px;
  color: #1b2233;
  text-align: center;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2;
  font-weight: 700;
}

body.page-id-90 .hpo-catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: start;
}

body.page-id-90 .hpo-catalog-sidebar {
  position: sticky;
  top: 110px;
  background: rgba(247, 248, 251, 0.96);
  border: 1px solid rgba(32, 52, 88, 0.08);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 8px 28px rgba(25, 40, 70, 0.05);
}

body.page-id-90 .hpo-filter-group + .hpo-filter-group {
  margin-top: 20px;
}

body.page-id-90 .hpo-filter-label {
  display: block;
  margin-bottom: 10px;
  color: #1b2233;
  font-size: 16px;
  font-weight: 600;
}

body.page-id-90 .hpo-filter-form input[type="number"],
body.page-id-90 .hpo-filter-form input[type="text"],
body.page-id-90 .hpo-filter-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d7dde7;
  border-radius: 14px;
  outline: none;
  background: #ffffff;
  color: #1b2233;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.page-id-90 .hpo-filter-form input:focus,
body.page-id-90 .hpo-filter-form select:focus {
  border-color: #7ca2df;
  box-shadow: 0 0 0 4px rgba(61, 122, 224, 0.12);
}

body.page-id-90 .hpo-filter-inline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

body.page-id-90 .hpo-filter-separator {
  color: #8390a5;
  font-size: 20px;
}

body.page-id-90 .hpo-filter-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.page-id-90 .hpo-filter-submit,
body.page-id-90 .hpo-filter-reset {
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.page-id-90 .hpo-filter-submit {
  border: none;
  background: linear-gradient(135deg, #4b87e8, #78a8ef);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(75, 135, 232, 0.24);
}

body.page-id-90 .hpo-filter-reset {
  background: #eef3fb;
  color: #315fae;
}

body.page-id-90 .hpo-filter-submit:hover,
body.page-id-90 .hpo-filter-reset:hover {
  transform: translateY(-1px);
}

body.page-id-90 .hpo-catalog-results {
  min-width: 0;
}

body.page-id-90 .hpo-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

body.page-id-90 .hpo-catalog-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(32, 52, 88, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(25, 40, 70, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.page-id-90 .hpo-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(25, 40, 70, 0.1);
}

body.page-id-90 .hpo-catalog-card__image-wrap {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f8;
}

body.page-id-90 .hpo-catalog-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   6. МОИ ЗАКАЗЫ / ЛИЧНЫЙ КАБИНЕТ
   ========================================================= */

body.page-id-83 table,
body.page-id-83 .hpo-orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.96);
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(25, 40, 70, 0.06);
}

body.page-id-83 table thead th,
body.page-id-83 .hpo-orders-table thead th {
  background: linear-gradient(135deg, #4b87e8, #78a8ef);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 18px 16px;
  text-align: left;
  border: none;
}

body.page-id-83 table tbody td,
body.page-id-83 .hpo-orders-table tbody td {
  padding: 15px 14px;
  border-top: 1px solid #e7ebf2;
  color: #34425b;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.96);
}

body.page-id-93 .um,
body.page-id-93 .um-account,
body.page-id-93 .um-login,
body.page-id-93 .um-form {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

body.page-id-93 .um-form,
body.page-id-93 .um-account {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(32, 52, 88, 0.08);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(25, 40, 70, 0.08);
  padding: 25px;
}

/* =========================================================
   7. БАЗА ЗНАНИЙ — ОБЩЕЕ
   ========================================================= */

.wkb-archive {
  background: #f4f4f4 !important;
  color: #161616 !important;
}

.wkb-container,
.wkb-archive .wkb-container {
  width: calc(100% - 40px) !important;
  max-width: 1080px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.wkb-hero {
  padding: 42px 0 40px !important;
  background: linear-gradient(180deg, #edf2f7 0%, #f4f4f4 100%) !important;
  border-bottom: 1px solid rgba(22, 22, 22, 0.08) !important;
}

.wkb-hero .wkb-container {
  position: relative;
}

.wkb-eyebrow,
.wkb-category-label,
.wkb-grid,
.wkb-category-grid,
.wkb-related-grid {
  display: none !important;
}

.wkb-hero h1 {
  max-width: 820px;
  margin: 0 0 12px !important;
  color: #161616 !important;
  font-size: clamp(32px, 3.6vw, 46px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em !important;
}

.wkb-hero p,
.wkb-section-header p {
  color: #596271 !important;
}

.wkb-hero p {
  max-width: 760px;
  margin: 0 0 26px !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

.wkb-search {
  display: flex;
  width: 100% !important;
  padding: 6px !important;
  background: #ffffff;
  border: 1px solid rgba(22, 22, 22, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 22px rgba(25, 40, 70, 0.06) !important;
}

.wkb-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 15px 18px !important;
  border: 0;
  outline: none;
  background: transparent;
  color: #161616;
  font-size: 15px !important;
}

.wkb-search button {
  min-height: 40px !important;
  padding: 0 22px !important;
  border: 1px solid #2f7df6 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #2f7df6 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
}

.wkb-search button:hover {
  background: #2f7df6 !important;
  color: #ffffff !important;
}

.wkb-content,
.wkb-single-content {
  padding: 42px 0 70px !important;
}

.wkb-categories {
  margin-bottom: 42px !important;
}

.wkb-latest {
  margin-top: 0 !important;
}

.wkb-section-header {
  display: block !important;
  margin-bottom: 18px !important;
}

.wkb-section-header h2,
.wkb-content h2,
.wkb-related h2,
.wkb-sidebar-box h3 {
  margin: 0 0 4px !important;
  color: #161616 !important;
  letter-spacing: -0.02em !important;
  font-size: clamp(24px, 2.4vw, 32px) !important;
}

.wkb-section-header p {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.45;
}

/* =========================================================
   8. БАЗА ЗНАНИЙ — СПИСКИ
   ========================================================= */

.wkb-category-list,
.wkb-article-list,
.wkb-related-list {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.wkb-category-list,
.wkb-article-list {
  gap: 10px;
}

.wkb-related-list {
  gap: 0 !important;
}

.wkb-category-row,
.wkb-article-row,
.wkb-related-row {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(22, 22, 22, 0.08) !important;
  transition: border-color 0.2s ease;
}

.wkb-category-row:hover,
.wkb-article-row:hover,
.wkb-related-row:hover {
  background: transparent !important;
  transform: none !important;
  border-bottom-color: rgba(22, 22, 22, 0.22) !important;
}

.wkb-category-row,
.wkb-article-row a,
.wkb-related-row a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  padding: 14px 0 !important;
  color: inherit;
  text-decoration: none;
}

.wkb-category-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wkb-category-icon {
  width: 22px;
  color: #254f9f;
  font-size: 17px;
  font-weight: 600;
  opacity: 0.72;
  text-align: center;
}

.wkb-category-row span,
.wkb-article-row h3,
.wkb-related-row h3 {
  margin: 0 !important;
  color: #161616 !important;
  font-size: 16px !important;
  font-weight: 700;
}

.wkb-category-row small,
.wkb-article-row span,
.wkb-related-row span {
  flex: 0 0 auto;
  color: #254f9f !important;
  font-size: 13px !important;
  font-weight: 700;
}

.wkb-article-row p,
.wkb-related-row p {
  display: none !important;
}

/* =========================================================
   9. БАЗА ЗНАНИЙ — СТАТЬЯ
   ========================================================= */

.wkb-single-hero {
  padding: 48px 0 42px !important;
}

.wkb-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px !important;
  gap: 24px !important;
  align-items: start;
}

.wkb-main-column {
  min-width: 0;
  width: 100%;
}

.wkb-article-body {
  background: #ffffff !important;
  border: 1px solid rgba(22, 22, 22, 0.08) !important;
  border-radius: 20px !important;
  padding: 36px 40px !important;
  box-shadow: 0 10px 30px rgba(25, 40, 70, 0.06) !important;
  color: #263244;
  font-size: 18px;
  line-height: 1.75;
}

.wkb-article-body p {
  margin: 0 0 22px;
}

.wkb-article-body h2 {
  margin: 42px 0 18px;
  color: #161616;
  font-size: 27px !important;
  line-height: 1.2;
}

.wkb-article-body h3 {
  margin: 34px 0 14px;
  color: #161616;
  font-size: 22px !important;
  line-height: 1.25;
}

.wkb-article-body h2[id],
.wkb-article-body h3[id] {
  scroll-margin-top: 110px;
}

.wkb-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px !important;
  color: #667085;
  font-size: 13px !important;
  font-weight: 700;
}

.wkb-breadcrumbs a,
.wkb-sidebar-box a {
  color: #254f9f !important;
  text-decoration: none;
}

.wkb-breadcrumbs a:hover,
.wkb-sidebar-box a:hover {
  color: #163569 !important;
  text-decoration: underline !important;
}

.wkb-article-sidebar {
  position: sticky;
  top: 96px;
}

.wkb-sidebar-box {
  padding: 0 !important;
  margin-bottom: 26px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.wkb-sidebar-box h3 {
  margin-bottom: 12px !important;
  font-size: 21px !important;
}

.wkb-sidebar-box ul {
  margin: 0;
  padding-left: 0 !important;
  list-style: none !important;
}

.wkb-sidebar-box li {
  margin-bottom: 10px !important;
}

.wkb-sidebar-box li a,
.wkb-toc a {
  color: #254f9f !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

.wkb-toc {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wkb-toc a {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.wkb-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wkb-tag-list a,
.wkb-meta-pill {
  display: inline-flex !important;
  width: auto !important;
  padding: 6px 10px !important;
  border-radius: 999px;
  background: #e9eef4 !important;
  color: #254f9f !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.wkb-article-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px !important;
  padding: 18px 0 0 !important;
  background: transparent !important;
  border: none !important;
  border-top: 1px solid rgba(22, 22, 22, 0.1) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.wkb-article-file h3 {
  margin: 0 0 4px !important;
  color: #161616;
  font-size: 20px !important;
}

.wkb-article-file p {
  margin: 0 !important;
  color: #667085 !important;
  font-size: 14px !important;
}

.wkb-article-file a {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #2f7df6 !important;
  padding: 0 !important;
  min-height: auto !important;
  font-size: 14px !important;
  text-decoration: underline;
}

.wkb-article-file a:hover {
  color: #163569 !important;
}

.wkb-related {
  margin-top: 28px;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.wkb-related h2 {
  margin-bottom: 16px !important;
}

.wkb-post-navigation {
  margin-top: 28px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.wkb-post-nav-card {
  width: fit-content !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: inherit;
  text-decoration: none !important;
}

.wkb-post-nav-card strong {
  order: 1;
  color: #161616 !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

.wkb-post-nav-card span {
  order: 2;
  margin: 2px 0 0 !important;
  color: #254f9f !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.wkb-post-nav-card:hover strong {
  color: #254f9f !important;
}

/* =========================================================
   10. ПЕРЕКЛЮЧАТЕЛЬ И ТЁМНАЯ ТЕМА БАЗЫ ЗНАНИЙ
   ========================================================= */

.wkb-theme-toggle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 52px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(22, 22, 22, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: #254f9f;
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
}

.wkb-theme-toggle:hover {
  border-color: #254f9f;
}

/* =========================================================
   Переключатель темы
   ========================================================= */

/* Светлая тема */

body:not(.wkb-dark) .wkb-theme-toggle-sun {
    display: none;
}

body:not(.wkb-dark) .wkb-theme-toggle-moon {
    display: inline-block;
    color: #254f9f;
    opacity: 1;
    font-size: 15px;
    font-weight: 600;
}

/* Тёмная тема */

body.wkb-dark .wkb-theme-toggle-moon {
    display: none;
}

body.wkb-dark .wkb-theme-toggle-sun {
    display: inline-block;
    color: #ffd45c;
    opacity: 1;
    font-size: 15px;
    font-weight: 600;
}

body.wkb-dark .wkb-archive {
  background: #15181d !important;
  color: #e8edf5 !important;
}

body.wkb-dark .wkb-hero {
  background: linear-gradient(180deg, #1b2028 0%, #15181d 100%) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.wkb-dark .wkb-hero h1,
body.wkb-dark .wkb-content h2,
body.wkb-dark .wkb-related h2,
body.wkb-dark .wkb-sidebar-box h3,
body.wkb-dark .wkb-category-row span,
body.wkb-dark .wkb-article-row h3,
body.wkb-dark .wkb-related-row h3,
body.wkb-dark .wkb-post-nav-card strong,
body.wkb-dark .wkb-article-body h2,
body.wkb-dark .wkb-article-body h3,
body.wkb-dark .wkb-article-file h3 {
  color: #e8edf5 !important;
}

body.wkb-dark .wkb-hero p,
body.wkb-dark .wkb-section-header p,
body.wkb-dark .wkb-article-body,
body.wkb-dark .wkb-article-file p {
  color: #aab4c3 !important;
}

body.wkb-dark .wkb-search,
body.wkb-dark .wkb-article-body {
  background: #1d2229 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

body.wkb-dark .wkb-search input[type="search"] {
  color: #e8edf5 !important;
}

body.wkb-dark .wkb-search input[type="search"]::placeholder {
  color: #7f8b9d !important;
}

body.wkb-dark .wkb-category-row,
body.wkb-dark .wkb-article-row,
body.wkb-dark .wkb-related-row,
body.wkb-dark .wkb-article-file {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.wkb-dark .wkb-category-row small,
body.wkb-dark .wkb-article-row span,
body.wkb-dark .wkb-related-row span,
body.wkb-dark .wkb-breadcrumbs a,
body.wkb-dark .wkb-sidebar-box a,
body.wkb-dark .wkb-toc a,
body.wkb-dark .wkb-category-icon,
body.wkb-dark .wkb-post-nav-card span,
body.wkb-dark .wkb-article-file a {
  color: #79a8ff !important;
}

body.wkb-dark .wkb-search button {
  background: transparent !important;
  border-color: #79a8ff !important;
  color: #79a8ff !important;
}

body.wkb-dark .wkb-search button:hover {
  background: #79a8ff !important;
  color: #15181d !important;
}

body.wkb-dark .wkb-tag-list a,
body.wkb-dark .wkb-meta-pill {
  background: rgba(121, 168, 255, 0.12) !important;
  color: #9bbcff !important;
}

body.wkb-dark .wkb-theme-toggle {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #79a8ff;
}

/* =========================================================
   11. ПОДВАЛ
   ========================================================= */

.site-footer,
.site-bottom-footer-wrap,
.site-footer-wrap,
.site-info,
.footer-html {
  display: none !important;
}

/* =========================================================
   12. АДАПТИВ
   ========================================================= */

@media (max-width: 1100px) {
  body.page-id-90 .hpo-catalog-layout {
    grid-template-columns: 1fr !important;
  }

  body.page-id-90 .hpo-catalog-sidebar {
    position: static;
  }

  body.page-id-90 .hpo-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1000px) {
  .wkb-single-layout {
    grid-template-columns: 1fr !important;
  }

  .wkb-article-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  body .site-header .site-container,
  body .site-header .site-header-row-container-inner {
    max-width: 100% !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  body .site-header .site-header-row,
  body .site-header .site-main-header-wrap,
  body .site-header .site-header-row-container-inner {
    min-height: 70px !important;
    height: 70px !important;
  }

  body.page-id-90 .content-container,
  body.page-id-83 .content-container,
  body.page-id-93 .content-container {
    padding: 24px 16px 40px !important;
  }

  body.page-id-90 .hpo-catalog-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 700px) {
  .wkb-article-file {
    flex-direction: column;
    align-items: flex-start;
  }

  .wkb-related-row a,
  .wkb-article-row a,
  .wkb-category-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .wkb-container,
  .wkb-archive .wkb-container {
    width: calc(100% - 28px) !important;
  }

  .wkb-hero {
    padding: 42px 0 44px !important;
  }

  .wkb-theme-toggle {
    position: static;
    margin-bottom: 18px;
  }

  .wkb-search {
    flex-direction: column;
  }

  .wkb-search button {
    min-height: 54px !important;
  }

  .wkb-article-body {
    padding: 24px !important;
    font-size: 16px;
  }
}
/* =========================================================
   WKB THEME TOGGLE — FINAL FIX
   ========================================================= */

.wkb-theme-toggle {
    width: 46px !important;
    height: 34px !important;
    padding: 0 !important;
    gap: 0 !important;
}

/* Светлая тема: показываем только луну */
body:not(.wkb-dark) .wkb-theme-toggle-sun,
body:not(.wkb-dark) .wkb-theme-toggle-light {
    display: none !important;
}

body:not(.wkb-dark) .wkb-theme-toggle-moon,
body:not(.wkb-dark) .wkb-theme-toggle-dark {
    display: inline-flex !important;
    opacity: 1 !important;
    color: #0f3d75 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

/* Тёмная тема: показываем только солнце */
body.wkb-dark .wkb-theme-toggle-moon,
body.wkb-dark .wkb-theme-toggle-dark {
    display: none !important;
}

body.wkb-dark .wkb-theme-toggle-sun,
body.wkb-dark .wkb-theme-toggle-light {
    display: inline-flex !important;
    opacity: 1 !important;
    color: #ffd45c !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}
/* =========================================================
   WKB REMOVE CATEGORY ICONS
   ========================================================= */

.wkb-category-icon {
    display: none !important;
}

.wkb-category-title {
    display: inline-flex;
    align-items: center;
    gap: 0 !important;
}
/* Кнопка файла */

.wkb-article-file a {
    text-decoration: none !important;
}

.wkb-article-file a:hover {
    text-decoration: underline !important;
}
/* =========================================================
   КАТАЛОГ ПРОЕКТОВ — ФИЛЬТРЫ И КНОПКИ
========================================================= */

/* Общий блок каталога */
.hpo-projects-catalog,
.hpo-catalog-wrapper {
    gap: 24px;
}

/* Убираем двойную рамку */
.hpo-catalog-sidebar,
.hpo-filter-sidebar,
.hpo-project-filters {
    background: #f4f5f7;
    border: 1px solid #dfe3ea !important;
    border-radius: 28px;
    padding: 18px;
    box-shadow: none !important;
}

/* Внутренний контейнер фильтров */
.hpo-catalog-sidebar form,
.hpo-filter-sidebar form,
.hpo-project-filters form {
    background: #ffffff;
    border: none !important;
    border-radius: 22px;
    padding: 22px;
    box-shadow: none !important;
}

/* Заголовки фильтров */
.hpo-catalog-sidebar label,
.hpo-filter-sidebar label,
.hpo-project-filters label {
    font-size: 15px;
    font-weight: 600;
    color: #172033;
    margin-bottom: 10px;
    display: block;
}

/* Поля */
.hpo-catalog-sidebar input,
.hpo-catalog-sidebar select,
.hpo-filter-sidebar input,
.hpo-filter-sidebar select,
.hpo-project-filters input,
.hpo-project-filters select {
    width: 100%;
    border: 1px solid #ccd4df;
    border-radius: 14px;
    background: #f8fafc;
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
    transition: all 0.25s ease;
}

/* Фокус */
.hpo-catalog-sidebar input:focus,
.hpo-catalog-sidebar select:focus,
.hpo-filter-sidebar input:focus,
.hpo-filter-sidebar select:focus,
.hpo-project-filters input:focus,
.hpo-project-filters select:focus {
    border-color: #4d8dff;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(77,141,255,0.12);
}

/* Чекбоксы */
.hpo-catalog-sidebar input[type="checkbox"],
.hpo-filter-sidebar input[type="checkbox"],
.hpo-project-filters input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-height: auto;
    margin-right: 8px;
}
/* =========================================================
   КАТАЛОГ ПРОЕКТОВ — ФИЛЬТР
========================================================= */

.hpo-catalog-sidebar {
    width: 216px;
    flex: 0 0 216px;
    background: #f7f9fc;
    border: 1px solid #dfe5ef;
    border-radius: 18px;
    padding: 14px;
    box-shadow: none;
}

.hpo-filter-form {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.hpo-filter-group {
    margin-bottom: 28px;
}

.hpo-filter-label {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #07162f;
}

.hpo-filter-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hpo-filter-inline input {
    width: 54px;
    height: 40px;
    padding: 0 8px;
    text-align: center;
}

.hpo-filter-separator {
    color: #6b7280;
}

.hpo-filter-form input,
.hpo-filter-form select {
    border: 1px solid #cfd8e6;
    border-radius: 10px;
    background: #ffffff;
    color: #07162f;
    font-size: 12px;
}

.hpo-filter-form select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
}

.hpo-filter-checkbox-list {
    display: grid;
    gap: 9px;
}

.hpo-filter-checkbox-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #07162f;
}

.hpo-filter-checkbox-item input {
    width: 12px;
    height: 12px;
}

/* Кнопки */
.hpo-filter-actions {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.hpo-filter-submit,
.hpo-filter-reset {
    width: 100%;
    height: 38px;
    border-radius: 999px;
    border: 1.5px solid #0d6efd;
    background: transparent;
    color: #0d6efd;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease;
}

.hpo-filter-submit:hover,
.hpo-filter-reset:hover {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.22);
}

.hpo-filter-reset {
    background: #f4f7fb;
}
