/* =========================================
   SIMPLE INSIGHT — CUSTOM STYLES
========================================= */

:root {
    --si-bg: #f5f7fb;
    --si-white: #ffffff;
    --si-text: #212529;
    --si-muted: #6c757d;
    --si-accent: #0d6efd;
    --si-border: #dee2e6;
    --si-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    --si-radius: 16px;
}

html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--si-bg);
    color: var(--si-text);
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
}

.site-main {
    flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    color: var(--si-text);
}

a {
    color: var(--si-accent);
    text-decoration: none;
    transition: 0.3s ease;
}

a:hover {
    color: var(--si-text);
}

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

.site-section {
    padding: 60px 0;
}

/* =========================================
   HEADER
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    background: var(--si-white);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.header-inner {
    gap: 24px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.site-logo,
.custom-logo-link {
    display: flex;
    align-items: center;
}

.site-logo img,
.custom-logo {
    max-height: 72px;
    width: auto;
}

.site-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--si-text);
    white-space: nowrap;
}

.main-navbar {
    flex: 1;
    justify-content: center;
}

.navbar-nav {
    gap: 10px;
}

.navbar-nav .menu-item a {
    display: inline-block;
    color: var(--si-text);
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.navbar-nav .menu-item a:hover,
.navbar-nav .current-menu-item a,
.navbar-nav .current_page_item a {
    color: var(--si-accent);
    background: rgba(13, 110, 253, 0.08);
}

.header-search {
    min-width: 260px;
    max-width: 320px;
    width: 100%;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-toggler {
    border: 1px solid var(--si-border);
    border-radius: 12px;
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* =========================================
   SEARCH FORM
========================================= */

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form-label,
.search-form label {
    flex: 1;
    width: 100%;
    margin: 0;
}

.search-field {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--si-border);
    border-radius: 10px;
    outline: none;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-field:focus {
    border-color: var(--si-accent);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.search-submit {
    height: 42px;
    border: none;
    background: var(--si-accent);
    color: #fff;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s ease;
}

.search-submit:hover {
    opacity: 0.92;
    color: #fff;
}

/* =========================================
   LIVE SEARCH
========================================= */

.si-live-search-form {
    position: relative;
    align-items: stretch;
}

.si-live-search-form .search-form-label {
    min-width: 0;
}

.si-live-search-form .search-field {
    width: 100%;
}

.si-live-search-form .search-submit {
    flex-shrink: 0;
}

.si-live-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    background: var(--si-white);
    border: 1px solid var(--si-border);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    z-index: 1200;
    overflow: hidden;
}

.si-live-search-head {
    padding: 14px 18px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--si-text);
    background: #f8f9fc;
    border-bottom: 1px solid var(--si-border);
}

.si-live-search-list {
    max-height: 420px;
    overflow-y: auto;
}

.si-live-search-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 18px;
    color: var(--si-text);
    border-bottom: 1px solid #eef1f5;
    transition: background-color 0.2s ease;
}

.si-live-search-item:last-child {
    border-bottom: none;
}

.si-live-search-item:hover {
    background: #f8f9fc;
    color: var(--si-text);
}

.si-live-search-thumb {
    width: 64px;
    min-width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f5f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.si-live-search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.si-live-search-thumb-placeholder {
    color: var(--si-muted);
    font-size: 1.2rem;
}

.si-live-search-content {
    min-width: 0;
    flex: 1;
}

.si-live-search-meta {
    font-size: 0.82rem;
    color: var(--si-muted);
    margin-bottom: 4px;
}

.si-live-search-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--si-text);
    line-height: 1.35;
    margin-bottom: 6px;
}

.si-live-search-excerpt {
    font-size: 0.92rem;
    color: var(--si-muted);
    line-height: 1.5;
}

.si-live-search-footer {
    padding: 14px 18px;
    background: #f8f9fc;
    border-top: 1px solid var(--si-border);
}

.si-live-search-footer a {
    font-weight: 700;
    color: var(--si-accent);
}

.si-live-search-state {
    padding: 18px;
    color: var(--si-muted);
    font-size: 0.95rem;
}

/* компактный live search в сайдбаре */
.site-sidebar .si-live-search-form {
    width: 100%;
}

.site-sidebar .si-live-search-results {
    left: 0;
    right: 0;
    width: 100%;
}

.site-sidebar .si-live-search-item {
    padding: 12px 14px;
    gap: 12px;
}

.site-sidebar .si-live-search-thumb {
    width: 52px;
    min-width: 52px;
    height: 52px;
    border-radius: 12px;
}

.site-sidebar .si-live-search-title {
    font-size: 0.95rem;
}

.site-sidebar .si-live-search-excerpt {
    font-size: 0.88rem;
    line-height: 1.45;
}

/* =========================================
   SIDEBAR
========================================= */

.site-sidebar {
    position: sticky;
    top: 110px;
}

.site-sidebar > * + * {
    margin-top: 24px;
}

.sidebar-widget,
.site-sidebar .widget {
    background: var(--si-white);
    border: 1px solid var(--si-border);
    border-radius: var(--si-radius);
    padding: 20px;
    box-shadow: var(--si-shadow);
}

.sidebar-title,
.site-sidebar .widget-title,
.site-sidebar .wp-block-heading {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.site-sidebar .widget:last-child {
    margin-bottom: 0 !important;
}

.site-sidebar .widget p:last-child {
    margin-bottom: 0;
}

.site-sidebar ul,
.site-sidebar ol,
.site-sidebar .wp-block-latest-posts,
.site-sidebar .wp-block-categories,
.site-sidebar .wp-block-archives,
.site-sidebar .wp-block-page-list,
.site-sidebar .wp-block-latest-comments,
.site-sidebar .menu {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.site-sidebar ul li,
.site-sidebar ol li,
.site-sidebar .wp-block-latest-posts li,
.site-sidebar .wp-block-categories li,
.site-sidebar .wp-block-archives li,
.site-sidebar .wp-block-page-list li,
.site-sidebar .wp-block-latest-comments li,
.site-sidebar .menu li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--si-border);
}

.site-sidebar ul li:last-child,
.site-sidebar ol li:last-child,
.site-sidebar .wp-block-latest-posts li:last-child,
.site-sidebar .wp-block-categories li:last-child,
.site-sidebar .wp-block-archives li:last-child,
.site-sidebar .wp-block-page-list li:last-child,
.site-sidebar .wp-block-latest-comments li:last-child,
.site-sidebar .menu li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.site-sidebar ul li:first-child,
.site-sidebar ol li:first-child,
.site-sidebar .wp-block-latest-posts li:first-child,
.site-sidebar .wp-block-categories li:first-child,
.site-sidebar .wp-block-archives li:first-child,
.site-sidebar .wp-block-page-list li:first-child,
.site-sidebar .wp-block-latest-comments li:first-child,
.site-sidebar .menu li:first-child {
    padding-top: 0;
}

.site-sidebar ul li a,
.site-sidebar ol li a,
.site-sidebar .wp-block-latest-posts a,
.site-sidebar .wp-block-categories a,
.site-sidebar .wp-block-archives a,
.site-sidebar .wp-block-page-list a,
.site-sidebar .wp-block-latest-comments a,
.site-sidebar .menu a {
    color: var(--si-text);
    font-weight: 600;
    line-height: 1.45;
    display: block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-sidebar ul li a:hover,
.site-sidebar ol li a:hover,
.site-sidebar .wp-block-latest-posts a:hover,
.site-sidebar .wp-block-categories a:hover,
.site-sidebar .wp-block-archives a:hover,
.site-sidebar .wp-block-page-list a:hover,
.site-sidebar .wp-block-latest-comments a:hover,
.site-sidebar .menu a:hover {
    color: var(--si-accent);
    transform: translateX(4px);
}

.site-sidebar .count,
.site-sidebar .post-count,
.site-sidebar .wp-block-categories-list-count {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--si-muted);
    background: rgba(13, 110, 253, 0.08);
    padding: 3px 8px;
    border-radius: 999px;
}

.site-sidebar .sidebar-empty {
    color: var(--si-muted);
    font-size: 0.95rem;
}

.site-sidebar .search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.site-sidebar .search-form label,
.site-sidebar .search-form .search-form-label {
    flex: 1;
    width: 100%;
}

.site-sidebar .search-field {
    width: 100%;
    height: 40px;
}

.site-sidebar .search-submit {
    height: 40px;
    white-space: nowrap;
}

.site-sidebar .wp-block-search__inside-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.site-sidebar .wp-block-search__label {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--si-text);
    margin-bottom: 15px;
}

.site-sidebar .wp-block-search__input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--si-border);
    border-radius: 10px;
    background: #fff;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-sidebar .wp-block-search__input:focus {
    border-color: var(--si-accent);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.12);
}

.site-sidebar .wp-block-search__button {
    height: 40px;
    border: none;
    background: var(--si-accent);
    color: #fff;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.3s ease;
}

.site-sidebar .wp-block-search__button:hover {
    opacity: 0.92;
}

.site-sidebar .wp-block-latest-comments__comment {
    display: block;
    line-height: 1.5;
    color: var(--si-muted);
}

.site-sidebar .wp-block-latest-comments__comment-author,
.site-sidebar .wp-block-latest-comments__comment-link {
    display: inline;
    font-weight: 600;
}

/* =========================================
   HERO
========================================= */

.hero-box {
    background: var(--si-white);
    border-radius: 24px;
    box-shadow: var(--si-shadow);
    border: 1px solid var(--si-border);
}

.hero-badge,
.page-badge,
.category-badge {
    display: inline-block;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--si-accent);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.05rem;
    color: var(--si-muted);
}

.hero-image {
    border-radius: 24px;
    object-fit: cover;
    width: 100%;
}

/* =========================================
   POST CARDS
========================================= */

.post-card .card,
.archive-post-card .card,
.search-result-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card .card {
    border-radius: 20px;
    overflow: hidden;
}

.post-card .card:hover,
.archive-post-card .card:hover,
.search-result-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.post-card .card-img-top,
.archive-post-card .card-img-top {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.post-date {
    font-size: 0.9rem;
    color: var(--si-muted);
}

/* =========================================
   SINGLE POST
========================================= */

.single-post-content {
    background: transparent;
}

.single-post-header,
.single-post-body,
.single-post-tags,
.single-post-navigation,
.related-posts,
.comments-box {
    background: var(--si-white);
    border: 1px solid var(--si-border);
    border-radius: 24px;
    box-shadow: var(--si-shadow);
    padding: 30px;
}

.si-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--si-muted);
}

.si-breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.si-breadcrumb-item:last-child {
    color: var(--si-text);
    font-weight: 600;
}

.si-breadcrumbs a {
    color: var(--si-accent);
    font-weight: 600;
    text-decoration: none;
}

.si-breadcrumbs a:hover {
    color: var(--si-text);
}

.si-breadcrumb-sep {
    color: #b8c0cc;
}

.si-breadcrumb-current {
    color: var(--si-text);
    font-weight: 600;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.94rem;
    color: var(--si-muted);
}

.single-post-meta > span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f8f9fc;
    border: 1px solid var(--si-border);
    border-radius: 999px;
    line-height: 1;
}

.single-post-category a,
.single-post-author {
    color: var(--si-accent);
    font-weight: 600;
}

.single-post-date {
    color: var(--si-muted);
}

.single-post-views {
    color: var(--si-text);
    font-weight: 600;
}

.single-post-title {
    font-size: clamp(1.8rem, 2.2vw, 2.1rem);
    line-height: 1.25;
    margin-bottom: 20px;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.single-post-body {
    margin-top: 30px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.single-post-body p {
    margin-bottom: 20px;
}

.single-post-body h2,
.single-post-body h3,
.single-post-body h4 {
    margin-top: 30px;
    margin-bottom: 20px;
}

.single-post-body h2 {
    font-size: 1.6rem;
}

.single-post-body h3 {
    font-size: 1.35rem;
}

.single-post-body h4 {
    font-size: 1.2rem;
}

.single-post-body ul,
.single-post-body ol {
    margin-bottom: 20px;
    padding-left: 22px;
}

.single-post-body blockquote {
    border-left: 4px solid var(--si-accent);
    padding-left: 20px;
    margin: 25px 0;
    color: var(--si-muted);
    font-style: italic;
}

.content-block-title,
.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

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

.post-tag {
    display: inline-block;
    padding: 10px 16px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--si-accent);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
}

.post-tag:hover {
    background: var(--si-accent);
    color: #fff;
}

.post-nav-box {
    background: #f8f9fa;
    border: 1px solid var(--si-border);
    border-radius: 18px;
    padding: 20px;
}

.post-nav-label {
    display: block;
    font-size: 0.9rem;
    color: var(--si-muted);
    margin-bottom: 10px;
}

.post-nav-link a {
    color: var(--si-text);
    font-weight: 600;
}

.post-nav-link a:hover {
    color: var(--si-accent);
}

.related-post-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* =========================================
   COMMENTS
========================================= */

.comments-area {
    margin-top: 50px;
}

.comment-list li.comment {
    background: #f8f9fa;
    border: 1px solid var(--si-border);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-metadata {
    font-size: 0.9rem;
    color: var(--si-muted);
    margin-bottom: 12px;
}

.comment-content p {
    margin-bottom: 0;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--si-accent);
    font-weight: 600;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form .form-control {
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid var(--si-border);
}

.comment-form .submit {
    border-radius: 14px;
    padding: 12px 22px;
    font-weight: 600;
}

/* =========================================
   PAGES / ARCHIVE / SEARCH / 404
========================================= */

.page-header-box,
.page-content-box,
.archive-header-box,
.search-header-box,
.search-result-box,
.empty-state-box,
.error-box {
    background: var(--si-white);
    border: 1px solid var(--si-border);
    border-radius: 24px;
    box-shadow: var(--si-shadow);
    padding: 30px;
}

.page-title,
.archive-title,
.search-title,
.error-title {
    font-size: 2.2rem;
    line-height: 1.2;
}

.page-thumbnail-box img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.page-content-box {
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-content-box p,
.archive-description p,
.search-result-box p {
    margin-bottom: 18px;
}

.page-content-box p {
    color: var(--si-text);
    line-height: 1.9;
}

.page-content-box h2,
.page-content-box h3 {
    margin-top: 32px;
    margin-bottom: 18px;
    font-size: 1.6rem;
}

.page-content-box ul {
    padding-left: 22px;
    margin-bottom: 20px;
}

.page-content-box li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.page-content-box strong {
    color: var(--si-text);
    font-weight: 700;
}

.page-content-box a {
    color: var(--si-accent);
    font-weight: 600;
}

.page-content-box a:hover {
    color: var(--si-text);
}

.empty-state-box,
.error-box {
    text-align: center;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--si-accent);
    line-height: 1;
    margin-bottom: 20px;
}

.error-text {
    font-size: 1.05rem;
}

.error-search-wrap,
.search-form-wrap {
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   CATEGORIES / ABOUT HOME
========================================= */

.section-heading h2 {
    font-size: 2.2rem;
    line-height: 1.2;
}

.category-card {
    display: block;
    height: 100%;
}

.category-card-inner {
    background: var(--si-white);
    border: 1px solid var(--si-border);
    border-radius: 24px;
    box-shadow: var(--si-shadow);
    padding: 28px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.category-card:hover .category-card-inner {
    transform: translateY(-6px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    border-color: rgba(13, 110, 253, 0.25);
}

.category-card-top {
    margin-bottom: 16px;
}

.category-card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--si-text);
}

.category-card-text {
    color: var(--si-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.category-card-count {
    color: var(--si-accent);
    font-size: 1rem;
    font-weight: 600;
}

.about-home-box {
    background: var(--si-white);
    border: 1px solid var(--si-border);
    border-radius: 24px;
    box-shadow: var(--si-shadow);
    padding: 36px;
}

.about-home-title {
    font-size: 2rem;
    line-height: 1.25;
}

.about-home-text {
    color: var(--si-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--si-border);
    padding: 56px 0 24px;
    margin-top: 80px;
}

.site-footer .row {
    align-items: stretch;
}

.footer-column {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--si-text);
}

.footer-text {
    color: var(--si-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}

.footer-text:last-child {
    margin-bottom: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    text-decoration: none;
    color: var(--si-muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--si-accent);
}

.footer-bottom {
    border-top: 1px solid var(--si-border);
    margin-top: 36px;
    padding-top: 18px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--si-muted);
    font-size: 0.95rem;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 991.98px) {
    .site-sidebar {
        position: static;
        top: auto;
        margin-top: 10px;
    }

    .hero-title,
    .single-post-title {
        font-size: 2rem;
    }

    .page-title,
    .archive-title,
    .search-title,
    .error-title,
    .section-heading h2 {
        font-size: 1.9rem;
    }

    .about-home-title {
        font-size: 1.7rem;
    }

    .site-header {
        padding: 14px 0;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .main-navbar {
        flex: 0 0 auto;
        justify-content: flex-end;
    }

    .navbar-collapse {
        background: #fff;
        border: 1px solid var(--si-border);
        border-radius: 18px;
        padding: 16px;
        margin-top: 14px;
        box-shadow: var(--si-shadow);
    }

    .navbar-nav {
        gap: 6px;
        align-items: flex-start !important;
    }

    .navbar-nav .menu-item a {
        width: 100%;
        padding: 12px 14px;
    }

    .site-footer {
        padding: 48px 0 24px;
    }
}

@media (max-width: 767px) {
    .site-title {
        font-size: 1.5rem;
    }

    .hero-title,
    .single-post-title {
        font-size: 1.7rem;
    }

    .site-section {
        padding: 40px 0;
    }

    .search-form,
    .site-sidebar .search-form {
        flex-wrap: wrap;
    }

    .search-form-label,
    .search-form label,
    .search-submit,
    .site-sidebar .search-form label,
    .site-sidebar .search-form .search-form-label,
    .site-sidebar .search-submit {
        width: 100%;
    }

    .search-submit,
    .site-sidebar .search-submit {
        justify-content: center;
    }

    .si-live-search-results {
        top: calc(100% + 10px);
    }

    .si-live-search-item {
        padding: 12px 14px;
        gap: 12px;
    }

    .si-live-search-thumb {
        width: 56px;
        min-width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .post-card .card-img-top,
    .archive-post-card .card-img-top {
        height: 220px;
    }

    .single-post-header,
    .single-post-body,
    .single-post-tags,
    .single-post-navigation,
    .related-posts,
    .comments-box,
    .page-header-box,
    .page-content-box,
    .archive-header-box,
    .search-header-box,
    .search-result-box,
    .empty-state-box,
    .error-box,
    .category-card-inner,
    .about-home-box,
    .sidebar-widget,
    .site-sidebar .widget {
        padding: 20px;
        border-radius: 18px;
    }

    .page-title,
    .archive-title,
    .search-title,
    .error-title,
    .section-heading h2 {
        font-size: 1.6rem;
    }

    .error-code {
        font-size: 4.5rem;
    }

    .about-home-title {
        font-size: 1.45rem;
    }

    .si-breadcrumbs {
        font-size: 0.88rem;
        gap: 4px;
    }

    .single-post-meta {
        gap: 6px;
        font-size: 0.9rem;
    }

    .site-footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }

    .footer-title {
        margin-bottom: 14px;
    }

    .footer-bottom {
        margin-top: 28px;
        padding-top: 16px;
    }
}

/* =========================================
   SEARCH PAGE FIX
========================================= */

.search-header-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.search-title {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.2;
}

.search-query-value {
    display: inline-block;
    word-break: break-word;
}

.search-form-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.search-form-wrap .search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
}

.search-form-wrap .search-form-label {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.search-form-wrap .search-field {
    width: 100%;
    min-width: 0;
}

.search-form-wrap .search-submit {
    flex: 0 0 auto;
}

/* отдельно сохраняем центрирование только для 404 */
.error-search-wrap {
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .search-title {
        font-size: 1.8rem;
    }

    .search-form-wrap .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form-wrap .search-submit {
        width: 100%;
    }
}
