/* ============================================================
   JivoKnowledge — Main Stylesheet
   Палитра: #29B05D (зелёный Jivo), белый фон, чёрный текст
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { line-height: 1.15; scroll-behavior: smooth; }

body {
  margin: 0;
  color: #1a1a1a;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background: #fff;
  transition: background 0.3s, color 0.3s;
}

/* --- Dark mode --- */
body.dark-mode {
  background: #0d1a12;
  color: #e0ece5;
}
body.dark-mode .site-header,
body.dark-mode .header-main { background: #091209; }
body.dark-mode .header-top { background: #1a5c2e; }
body.dark-mode .post-card { background: #0f2018; border-color: #1a3326; }
body.dark-mode .category-card { background: #0f2018; border-color: #1a3326; }
body.dark-mode .widget-area section { background: #0f2018; }
body.dark-mode a { color: #4dcc80; }
body.dark-mode .primary-menu a { color: #e0ece5; }

a { color: #1a1a1a; text-decoration: none; transition: color 0.2s; }
a:hover { color: #29B05D; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0;
  color: #1a1a1a;
}

p { margin-top: 0; line-height: 1.7; }

ul { margin: 0; padding: 0; list-style: none; }

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 6px;
  top: 6px;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: #29B05D;
  color: #fff;
  z-index: 10000;
  border-radius: 4px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header-top {
  background: #29B05D;
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-contact { opacity: 0.92; }
.header-email { color: #fff; }

.dark-mode-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  transition: background 0.2s;
}
.dark-mode-toggle:hover { background: rgba(255,255,255,0.2); }

.lang-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-family: monospace;
  font-weight: 700;
  line-height: 1.5;
  margin-left: 8px;
  transition: background 0.2s;
}
.lang-toggle:hover { background: rgba(255,255,255,0.2); }

.header-main {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
body.dark-mode .header-main { box-shadow: 0 2px 8px rgba(0,0,0,0.4); }

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 20px;
}

.site-branding { flex-shrink: 0; }
.site-logo { text-decoration: none; }
.site-title {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}
body.dark-mode .site-title { color: #e0ece5; }
.site-description {
  margin: 0;
  font-size: 12px;
  color: #555;
  letter-spacing: 0.3px;
}

/* --- Navigation --- */
.site-navigation { position: relative; }

.primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-menu li { position: relative; }

.primary-menu a {
  display: block;
  padding: 8px 14px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  background: #29B05D;
  color: #fff;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid #d0edd9;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(41,176,93,0.12);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}
body.dark-mode .sub-menu { background: #0f2018; border-color: #1a3326; }

.menu-item-has-children:hover .sub-menu,
.menu-item-has-children:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  padding: 9px 16px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
}
body.dark-mode .sub-menu li a { color: #e0ece5; }
.sub-menu li a:hover { background: #e8f7ee; color: #1a1a1a; }
body.dark-mode .sub-menu li a:hover { background: #1a3326; color: #fff; }
.sub-menu li:first-child a { border-radius: 6px 6px 0 0; }
.sub-menu li:last-child a { border-radius: 0 0 6px 6px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-icon { position: relative; }
.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }

.menu-toggle.active .menu-icon { background: transparent; }
.menu-toggle.active .menu-icon::before { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active .menu-icon::after { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero / Header Image --- */
.header-image {
  background: linear-gradient(135deg, #29B05D 0%, #1a8040 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.header-title {
  font-size: clamp(28px, 5vw, 48px);
  margin: 0 0 12px;
  color: #fff;
}
.header-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin: 0;
  color: #fff;
}
.header-subtitle code {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.site-content { padding: 40px 0 60px; }

.content-area {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
}

/* --- Search bar --- */
.search-bar { margin-bottom: 40px; }
.search-bar form {
  display: flex;
  border: 2px solid #29B05D;
  border-radius: 8px;
  overflow: hidden;
  max-width: 600px;
}
.search-bar input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 15px;
  background: #fff;
  color: #1a1a1a;
}
body.dark-mode .search-bar input { background: #0f2018; color: #e0ece5; }
.search-bar button {
  padding: 12px 20px;
  background: #29B05D;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.search-bar button:hover { background: #1e8f45; }

/* --- Intro --- */
.intro-section { margin-bottom: 36px; }
.intro-text {
  font-size: 16px;
  color: #444;
  line-height: 1.75;
  border-left: 4px solid #29B05D;
  padding-left: 16px;
  margin: 0;
}
body.dark-mode .intro-text { color: #a0bfaa; border-color: #29B05D; }

/* --- Section Titles --- */
.section-title {
  font-size: 22px;
  color: #1a1a1a;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 3px solid #29B05D;
}
body.dark-mode .section-title { color: #e0ece5; border-color: #29B05D; }

/* --- Screenshots --- */
.screenshots-section { margin-bottom: 60px; }

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.screenshot-item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #c8ecd5;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.screenshot-item:hover {
  box-shadow: 0 8px 28px rgba(41,176,93,0.18);
  border-color: #29B05D;
}
.screenshot-item {
  cursor: zoom-in;
}
.screenshot-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.screenshot-item figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: #555;
  background: #f4fbf6;
  border-top: 1px solid #c8ecd5;
}
body.dark-mode .screenshot-item { border-color: #1a3326; background: #0f2018; }
body.dark-mode .screenshot-item:hover { border-color: #29B05D; }
body.dark-mode .screenshot-item figcaption { background: #091209; color: #7aaa8c; border-color: #1a3326; }

/* --- Credentials --- */
.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.credential-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f4fbf6;
  border: 1px solid #c8ecd5;
  border-radius: 8px;
  padding: 12px 18px;
}
.credential-label {
  font-size: 13px;
  color: #555;
  min-width: 80px;
}
.credential-value code {
  background: none;
  padding: 0;
  font-size: 15px;
  color: #1a1a1a;
}
body.dark-mode .credential-row { background: #0f2018; border-color: #1a3326; }
body.dark-mode .credential-label { color: #7aaa8c; }
body.dark-mode .credential-value code { color: #e0ece5; }

/* --- Demo Blocks --- */
.demo-block {
  background: #f4fbf6;
  border: 1px solid #c8ecd5;
  border-left: 4px solid #29B05D;
  border-radius: 0 8px 8px 0;
  padding: 24px;
  margin: 24px 0 32px;
}
.demo-block-title {
  font-size: 12px;
  font-weight: 700;
  color: #29B05D;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 16px;
}
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}
.demo-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #555;
}
.demo-form input[type="text"],
.demo-form input[type="email"],
.demo-form input[type="tel"],
.demo-form input[type="number"] {
  padding: 8px 12px;
  border: 1px solid #c8ecd5;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s;
}
.demo-form input:focus { border-color: #29B05D; }
.demo-form .checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.demo-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.demo-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #29B05D;
  color: #fff;
  border: 2px solid #29B05D;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
}
.demo-btn:hover { background: #1a8040; border-color: #1a8040; }
.demo-btn--outline {
  background: transparent;
  color: #29B05D;
}
.demo-btn--outline:hover { background: #29B05D; color: #fff; }
.demo-result {
  margin-top: 12px;
  padding: 10px 14px;
  background: #e0f5e9;
  border-radius: 6px;
  font-size: 13px;
  color: #1a5c2e;
  display: none;
}
.demo-result.visible { display: block; }
body.dark-mode .demo-block { background: #0d1a12; border-color: #1a3326; }
body.dark-mode .demo-form label { color: #a0bfaa; }
body.dark-mode .demo-form input { background: #0f2018; border-color: #1a3326; color: #e0ece5; }
body.dark-mode .demo-form input:focus { border-color: #29B05D; }
body.dark-mode .demo-result { background: #0f2018; color: #4dcc80; }

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #1a1a1a;
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 8888;
  max-width: 90vw;
  pointer-events: none;
  white-space: nowrap;
}
.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.toast-close:hover { color: #fff; }

/* --- Minimal Footer --- */
.site-footer-minimal {
  border-top: 1px solid #c8ecd5;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #777;
}
.site-footer-minimal p { margin: 0; }
.site-footer-minimal strong { color: #1a1a1a; }
body.dark-mode .site-footer-minimal { border-color: #1a3326; color: #7aaa8c; }
body.dark-mode .site-footer-minimal strong { color: #e0ece5; }

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  padding: 0;
}
.lightbox-close:hover { opacity: 1; }

/* --- Categories Grid --- */
.categories-section { margin-bottom: 50px; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.categories-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.category-card {
  display: block;
  padding: 24px 20px;
  background: #fff;
  border: 1px solid #c8ecd5;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: #1a1a1a;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(41,176,93,0.15);
  border-color: #29B05D;
  color: #1a1a1a;
}
body.dark-mode .category-card { background: #0f2018; border-color: #1a3326; color: #e0ece5; }
body.dark-mode .category-card:hover { border-color: #29B05D; color: #e0ece5; }

.category-icon { font-size: 36px; margin-bottom: 12px; display: block; }
.category-card h3 { margin: 0 0 8px; font-size: 16px; color: #1a1a1a; }
body.dark-mode .category-card h3 { color: #e0ece5; }
.category-card p { margin: 0; font-size: 13px; color: #555; line-height: 1.5; }
body.dark-mode .category-card p { color: #7aaa8c; }

/* --- Posts Grid --- */
.posts-section { margin-bottom: 40px; }

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: #fff;
  border: 1px solid #d8ede0;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(41,176,93,0.12);
}
body.dark-mode .post-card { background: #0f2018; border-color: #1a3326; }

.post-thumbnail-link { display: block; }
.post-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.placeholder-thumb {
  background: linear-gradient(135deg, #29B05D 0%, #1a8040 100%);
}

.post-content { padding: 18px; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 10px;
}
.post-category a {
  background: #e0f5e9;
  color: #1a7a40;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
body.dark-mode .post-category a { background: #1a3326; color: #4dcc80; }
.post-date { color: #777; }

.post-title { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.post-title a { color: #1a1a1a; }
body.dark-mode .post-title a { color: #e0ece5; }
.post-title a:hover { color: #29B05D; }

.post-excerpt { margin: 0 0 14px; font-size: 13px; color: #555; line-height: 1.6; }
body.dark-mode .post-excerpt { color: #7aaa8c; }

.read-more {
  font-size: 13px;
  font-weight: 600;
  color: #29B05D;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.read-more:hover { border-color: #29B05D; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.widget-area { position: sticky; top: 80px; }

.widget-area section {
  background: #f4fbf6;
  border: 1px solid #c8ecd5;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}
body.dark-mode .widget-area section { background: #0f2018; border-color: #1a3326; }

.widget-title {
  font-size: 16px;
  color: #1a1a1a;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #29B05D;
}
body.dark-mode .widget-title { color: #e0ece5; border-color: #29B05D; }

.widget-search form {
  display: flex;
  border: 1px solid #b0dfc0;
  border-radius: 6px;
  overflow: hidden;
}
.widget-search input {
  flex: 1;
  padding: 8px 12px;
  border: none;
  outline: none;
  font-size: 14px;
  background: #fff;
  color: #1a1a1a;
}
body.dark-mode .widget-search input { background: #091209; color: #e0ece5; }
.widget-search button {
  padding: 8px 12px;
  background: #29B05D;
  color: #fff;
  border: none;
  cursor: pointer;
}

.widget-categories ul li,
.widget-recent-posts ul li {
  padding: 7px 0;
  border-bottom: 1px solid #d8ede0;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}
body.dark-mode .widget-categories ul li,
body.dark-mode .widget-recent-posts ul li { border-color: #1a3326; }
.widget-categories ul li:last-child,
.widget-recent-posts ul li:last-child { border-bottom: none; }
.widget-categories span { color: #888; font-size: 12px; }
.widget-recent-posts ul li { display: block; }
.widget-recent-posts a { font-size: 13px; line-height: 1.4; }


/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: #29B05D;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 9000;
  box-shadow: 0 4px 12px rgba(41,176,93,0.35);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: #1e8f45; color: #fff; }

/* ============================================================
   DOCUMENTATION PAGES
   ============================================================ */
.page-article { max-width: 780px; }
.page-article h2 { margin-top: 36px; margin-bottom: 12px; font-size: 20px; color: #1a1a1a; }
.page-article h2:first-child { margin-top: 0; }

pre {
  background: #f0faf4;
  border-left: 4px solid #29B05D;
  border-radius: 0 6px 6px 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 24px;
}
body.dark-mode pre { background: #091209; border-color: #29B05D; }

code {
  font-family: "Cascadia Code", "Fira Code", "Consolas", monospace;
  font-size: 0.9em;
  background: #e0f5e9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #1a5c2e;
}
body.dark-mode code { background: #0f2018; color: #4dcc80; }

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.doc-list {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 24px;
}
.doc-list li { padding: 4px 0; line-height: 1.6; }

ol.doc-list { list-style: decimal; }

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
  font-size: 14px;
}
.doc-table th, .doc-table td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid #c8ecd5;
}
.doc-table th {
  background: #29B05D;
  color: #fff;
  font-weight: 600;
}
.doc-table tr:nth-child(even) td { background: #f4fbf6; }
body.dark-mode .doc-table th { background: #1a5c2e; }
body.dark-mode .doc-table td { border-color: #1a3326; color: #e0ece5; }
body.dark-mode .doc-table tr:nth-child(even) td { background: #0a1a0f; }

/* --- Dark mode: текст (перебиваем явные color на элементах и инлайн-стили) --- */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 { color: #e0ece5; }

body.dark-mode .page-article h2 { color: #e0ece5; }

body.dark-mode p,
body.dark-mode li,
body.dark-mode .page-article p,
body.dark-mode .page-article li { color: #c8ddd2 !important; }

body.dark-mode .demo-block p { color: #a0bfaa !important; }

body.dark-mode .site-content { color: #e0ece5; }

body.dark-mode strong,
body.dark-mode b { color: #e0ece5; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .content-area {
    grid-template-columns: 1fr;
  }
  .widget-area { position: static; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .screenshots-grid { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .header-main-inner { flex-wrap: wrap; }
  .menu-toggle { display: flex; }
  .primary-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 12px 0;
    gap: 2px;
  }
  .primary-menu.open { display: flex; }
  .primary-menu a { width: 100%; }
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    border-radius: 0;
    display: none;
  }
  .menu-item-has-children.open .sub-menu { display: block; }

  .categories-grid,
  .categories-grid--4 { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .header-image { padding: 40px 0; }
}
