/*
Theme Name: MarketMind_5385
Theme URI: https://imal-label.com
Description: Аналитическая тема для информационных сайтов о маркетплейсах
Version: 1.1
Author: Щербакова Эвелина
Author URI: https://imal-label.com
Text Domain: marketmind5385
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* === Переменные === */
:root {
    --mm-deep: #0A1A2F;
    --mm-accent: #C7A03D;
    --mm-graphite: #2D3E50;
    --mm-light: #F4F7FC;
    --mm-border: #1A2A3F;
    --mm-text-muted: #8A9BB5;
    --mm-surface: #0F2236;
    --mm-sand: #F5F0E1;
    --mm-accent-hover: #D4AF4E;
    --mm-link: #5BAFD7;
}

/* === Сброс и базовые стили === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Merriweather', Georgia, serif;
    background-color: var(--mm-deep);
    color: var(--mm-light);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === Типографика === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--mm-light);
    margin-bottom: 0.6em;
    margin-top: 1.2em;
}

h1 { font-size: 2.2rem; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; letter-spacing: -0.015em; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
    margin-bottom: 1.2em;
    margin-top: 0;
}

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

a:hover {
    color: var(--mm-accent-hover);
}

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

blockquote {
    background: var(--mm-graphite);
    border-left: 3px solid var(--mm-accent);
    padding: 1.2em 1.5em;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--mm-light);
}

blockquote p:last-child {
    margin-bottom: 0;
}

pre, code {
    background: var(--mm-graphite);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}

pre {
    padding: 1.2em;
    overflow-x: auto;
    border-radius: 2px;
    margin: 1.5em 0;
    border: 1px solid var(--mm-border);
}

code {
    padding: 0.15em 0.4em;
    border-radius: 2px;
}

pre code {
    padding: 0;
    background: transparent;
}

ul, ol {
    margin: 0 0 1.2em 1.6em;
    padding: 0;
}

li {
    margin-bottom: 0.4em;
}

/* === Таблицы === */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background: var(--mm-surface);
}

table, th, td {
    border: 1px solid var(--mm-border);
}

th {
    background: var(--mm-graphite);
    color: var(--mm-accent);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-align: left;
    padding: 0.75em 1em;
    font-size: 0.9rem;
}

td {
    padding: 0.65em 1em;
    color: var(--mm-light);
    font-size: 0.92rem;
}

tr:nth-child(even) {
    background: rgba(45, 62, 80, 0.3);
}

.mm-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5em 0;
}

@media (max-width: 768px) {
    .mm-table-wrap table {
        min-width: 600px;
    }
    .mm-table-wrap td:first-child,
    .mm-table-wrap th:first-child {
        position: sticky;
        left: 0;
        background: var(--mm-graphite);
        z-index: 2;
    }
}

/* === Шапка === */
.mm-header {
    background: var(--mm-deep);
    border-bottom: 1px solid var(--mm-border);
    position: relative;
    z-index: 100;
}

.mm-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.mm-logo {
    display: flex;
    align-items: center;
    gap: 0.6em;
    text-decoration: none;
    flex-shrink: 0;
}

.mm-logo-img {
    height: 36px;
    width: auto;
}

.mm-logo-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.mm-logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--mm-light);
    letter-spacing: -0.01em;
}

.mm-logo-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    color: var(--mm-text-muted);
    font-weight: 400;
}

.mm-logo:hover .mm-logo-text {
    color: var(--mm-accent);
}

/* === Навигация === */
.mm-nav-list {
    display: flex;
    list-style: none;
    gap: 0.2em;
    margin: 0;
    padding: 0;
}

.mm-nav-list li {
    margin: 0;
}

.mm-nav-list a {
    display: block;
    padding: 0.5em 1em;
    color: var(--mm-text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease;
}

.mm-nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1em;
    right: 1em;
    height: 2px;
    background: var(--mm-accent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.mm-nav-list a:hover,
.mm-nav-list .current-menu-item a,
.mm-nav-list .current_page_item a {
    color: var(--mm-light);
}

.mm-nav-list a:hover::after,
.mm-nav-list .current-menu-item a::after,
.mm-nav-list .current_page_item a::after {
    transform: scaleX(1);
}

/* Мобильное меню */
.mm-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--mm-border);
    color: var(--mm-light);
    padding: 0.45em 0.7em;
    cursor: pointer;
    border-radius: 2px;
    font-size: 1.3rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .mm-menu-toggle {
        display: block;
    }

    .mm-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--mm-deep);
        border-bottom: 1px solid var(--mm-border);
        padding: 0.5em 0;
        z-index: 99;
    }

    .mm-nav.mm-nav-open {
        display: block;
    }

    .mm-nav-list {
        flex-direction: column;
        gap: 0;
    }

    .mm-nav-list a {
        padding: 0.75em 1.5em;
    }

    .mm-nav-list a::after {
        display: none;
    }
}

/* === Контент === */
.mm-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5em;
}

.mm-content-area {
    padding: 2.5em 0;
}

.mm-layout {
    display: flex;
    gap: 4%;
}

.mm-primary {
    width: 85%;
    margin: 0 auto;
}

.mm-layout .mm-primary {
    width: 67%;
    margin: 0;
}

.mm-layout .mm-aside {
    width: 27%;
    flex-shrink: 0;
}

/* === Карточки статей === */
.mm-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8em;
}

.mm-card {
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.mm-card:hover {
    border-color: var(--mm-accent);
    transform: translateY(-3px);
}

.mm-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--mm-graphite);
    flex-shrink: 0;
}

.mm-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mm-card:hover .mm-card-thumb img {
    transform: scale(1.04);
}

.mm-card-body {
    padding: 1.3em 1.4em;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mm-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5em;
    line-height: 1.35;
}

.mm-card-title a {
    color: var(--mm-light);
    text-decoration: none;
}

.mm-card-title a:hover {
    color: var(--mm-accent);
}

.mm-card-meta {
    font-size: 0.78rem;
    color: var(--mm-text-muted);
    margin-bottom: 0.7em;
    font-family: 'Inter', sans-serif;
}

.mm-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #C5D0DE;
    margin-bottom: 0.8em;
    flex: 1;
}

.mm-card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.mm-card-excerpt a {
    color: var(--mm-accent);
}

.mm-card-more {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--mm-accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    text-decoration: none;
    margin-top: auto;
}

.mm-card-more:hover {
    border-bottom-color: var(--mm-accent);
}

/* === Тематические блоки на главной === */
.mm-theme-block {
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: 2px;
    padding: 2em 2.2em;
    margin-bottom: 2.5em;
}

.mm-theme-block h2 {
    font-size: 1.35rem;
    color: var(--mm-accent);
    margin-top: 0;
    margin-bottom: 0.6em;
}

.mm-theme-block p {
    color: var(--mm-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.mm-theme-blocks-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
    margin-bottom: 2.5em;
}

.mm-theme-tile {
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: 2px;
    padding: 1.5em 1.6em;
    transition: border-color 0.25s ease;
}

.mm-theme-tile:hover {
    border-color: var(--mm-accent);
}

.mm-theme-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(199, 160, 61, 0.1);
    border-radius: 2px;
    margin-bottom: 1em;
}

.mm-theme-tile h3 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 0.4em;
    color: var(--mm-light);
}

.mm-theme-tile p {
    color: var(--mm-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .mm-theme-blocks-row {
        grid-template-columns: 1fr;
    }
}

/* === Featured (кейс недели) === */
.mm-featured {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.8em;
    margin-bottom: 2.5em;
}

.mm-featured-main {
    position: relative;
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: 2px;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
}

.mm-featured-main-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.mm-featured-main-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mm-featured-main-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,26,47,0.95) 0%, rgba(10,26,47,0.4) 100%);
}

.mm-featured-main-content {
    position: relative;
    z-index: 2;
    padding: 2em;
    width: 100%;
}

.mm-featured-main-content .mm-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.4em;
}

.mm-featured-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

.mm-widget-card {
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: 2px;
    padding: 1.2em;
    flex: 1;
}

.mm-widget-card-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mm-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--mm-border);
}

.mm-widget-card-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4em 0;
    font-size: 0.85rem;
    color: var(--mm-text-muted);
    border-bottom: 1px solid rgba(26,42,63,0.5);
}

.mm-widget-card-item:last-child {
    border-bottom: none;
}

.mm-widget-card-val {
    color: var(--mm-light);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 900px) {
    .mm-featured {
        grid-template-columns: 1fr;
    }
}

/* === Одиночная запись === */
.mm-single-header {
    margin-bottom: 2em;
    padding-bottom: 1.5em;
    border-bottom: 1px solid var(--mm-border);
}

.mm-single-title {
    font-size: 2rem;
    margin-bottom: 0.3em;
    margin-top: 0;
}

.mm-single-meta {
    font-size: 0.82rem;
    color: var(--mm-text-muted);
    font-family: 'Inter', sans-serif;
}

.mm-single-thumb {
    margin-bottom: 2em;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--mm-border);
}

.mm-single-content {
    font-size: 1.02rem;
    line-height: 1.8;
}

.mm-single-content h2 {
    margin-top: 2em;
}

.mm-single-content h3 {
    margin-top: 1.6em;
}

.mm-single-content p {
    margin-bottom: 1.3em;
}

.mm-single-content a {
    color: var(--mm-link);
    text-decoration: underline;
    text-decoration-color: rgba(91,175,215,0.3);
    text-underline-offset: 2px;
}

.mm-single-content a:hover {
    text-decoration-color: var(--mm-link);
}

/* Навигация между записями */
.mm-post-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 1px solid var(--mm-border);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}

.mm-post-nav-label {
    display: block;
    font-size: 0.75rem;
    color: var(--mm-text-muted);
    margin-bottom: 0.2em;
}

.mm-post-nav-next {
    text-align: right;
}

/* === Хлебные крошки === */
.mm-breadcrumbs {
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    color: var(--mm-text-muted);
    margin-bottom: 1.5em;
    padding: 0.6em 0;
}

.mm-breadcrumbs a {
    color: var(--mm-text-muted);
    text-decoration: none;
}

.mm-breadcrumbs a:hover {
    color: var(--mm-accent);
}

.mm-breadcrumbs-sep {
    margin: 0 0.45em;
    color: var(--mm-border);
}

/* === Пагинация === */
.mm-pagination {
    display: flex;
    justify-content: center;
    gap: 0.35em;
    margin-top: 2.5em;
    font-family: 'Inter', sans-serif;
}

.mm-pagination a,
.mm-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.6em;
    border: 1px solid var(--mm-border);
    color: var(--mm-text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.mm-pagination a:hover {
    border-color: var(--mm-accent);
    color: var(--mm-accent);
}

.mm-pagination .current {
    background: var(--mm-accent);
    border-color: var(--mm-accent);
    color: var(--mm-deep);
    font-weight: 600;
}

/* === Сайдбар === */
.mm-aside .widget {
    background: var(--mm-surface);
    border: 1px solid var(--mm-border);
    border-radius: 2px;
    padding: 1.3em;
    margin-bottom: 1.5em;
}

.mm-aside .widget-title,
.mm-aside .widgettitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mm-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.6em;
    margin-bottom: 0.8em;
    border-bottom: 1px solid var(--mm-border);
    margin-top: 0;
}

.mm-aside .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mm-aside .widget li {
    margin: 0;
    padding: 0;
}

.mm-aside .widget li a {
    display: block;
    padding: 0.45em 0;
    color: var(--mm-text-muted);
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(26,42,63,0.4);
    text-decoration: none;
}

.mm-aside .widget li:last-child a {
    border-bottom: none;
}

.mm-aside .widget li a:hover {
    color: var(--mm-accent);
}

/* === Комментарии === */
.mm-comments-section {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid var(--mm-border);
}

.mm-comments-title {
    font-size: 1.3rem;
    margin-bottom: 1.2em;
    margin-top: 0;
}

.mm-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mm-comment-item {
    padding: 1.2em 0;
    border-bottom: 1px solid var(--mm-border);
}

.mm-comment-item .children {
    list-style: none;
    margin: 0.8em 0 0 1.5em;
    padding: 0;
}

.mm-comment-author {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--mm-light);
}

.mm-comment-date {
    font-size: 0.78rem;
    color: var(--mm-text-muted);
    margin-left: 0.6em;
}

.mm-comment-body {
    margin-top: 0.5em;
    font-size: 0.92rem;
    line-height: 1.65;
}

.mm-comment-body p {
    margin-bottom: 0.6em;
}

.mm-comment-reply a {
    font-size: 0.8rem;
    color: var(--mm-accent);
    font-family: 'Inter', sans-serif;
}

/* Форма комментариев */
.mm-comment-form label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--mm-text-muted);
    margin-bottom: 0.3em;
}

.mm-comment-form input[type="text"],
.mm-comment-form input[type="email"],
.mm-comment-form input[type="url"],
.mm-comment-form textarea {
    width: 100%;
    background: var(--mm-graphite);
    border: 1px solid var(--mm-border);
    color: var(--mm-light);
    padding: 0.6em 0.8em;
    font-family: 'Merriweather', serif;
    font-size: 0.9rem;
    border-radius: 2px;
    margin-bottom: 1em;
    transition: border-color 0.2s ease;
}

.mm-comment-form input:focus,
.mm-comment-form textarea:focus {
    outline: none;
    border-color: var(--mm-accent);
}

.mm-comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.mm-submit-btn {
    background: transparent;
    color: var(--mm-accent);
    border: 1px solid var(--mm-accent);
    padding: 0.6em 1.8em;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.mm-submit-btn:hover {
    background: var(--mm-accent);
    color: var(--mm-deep);
}

/* === Поиск === */
.mm-search-form {
    display: flex;
    gap: 0;
}

.mm-search-input {
    flex: 1;
    background: var(--mm-graphite);
    border: 1px solid var(--mm-border);
    border-right: none;
    color: var(--mm-light);
    padding: 0.55em 0.9em;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    border-radius: 2px 0 0 2px;
}

.mm-search-input:focus {
    outline: none;
    border-color: var(--mm-accent);
}

.mm-search-input::placeholder {
    color: var(--mm-text-muted);
}

.mm-search-btn {
    background: var(--mm-accent);
    border: 1px solid var(--mm-accent);
    color: var(--mm-deep);
    padding: 0.55em 1em;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 0 2px 2px 0;
    transition: background 0.2s ease;
}

.mm-search-btn:hover {
    background: var(--mm-accent-hover);
}

/* === Подвал === */
.mm-footer {
    background: var(--mm-deep);
    border-top: 1px solid var(--mm-border);
    position: relative;
    overflow: hidden;
}

.mm-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 140%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--mm-accent), transparent);
    opacity: 0.3;
}

.mm-footer-widgets {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5em;
    max-width: 1240px;
    margin: 0 auto;
    padding: 2.5em 1.5em;
}

.mm-footer-col .widget {
    margin-bottom: 1.2em;
}

.mm-footer-col .widget-title,
.mm-footer-col .widgettitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mm-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.8em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--mm-border);
    margin-top: 0;
}

.mm-footer-col .widget p {
    color: var(--mm-text-muted);
    font-size: 0.85rem;
    line-height: 1.65;
}

.mm-footer-col .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mm-footer-col .widget li {
    margin: 0;
}

.mm-footer-col .widget li a {
    display: block;
    padding: 0.35em 0;
    color: var(--mm-text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mm-footer-col .widget li a:hover {
    color: var(--mm-accent);
}

.mm-footer-bottom {
    border-top: 1px solid var(--mm-border);
    padding: 1.2em 1.5em;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--mm-text-muted);
}

@media (max-width: 768px) {
    .mm-footer-widgets {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
}

/* === Куки-баннер === */
.mm-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--mm-graphite);
    border-top: 1px solid var(--mm-border);
    padding: 1em 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    z-index: 9999;
    font-size: 0.85rem;
    color: var(--mm-text-muted);
}

.mm-cookie-notice p {
    margin: 0;
}

.mm-cookie-accept {
    background: transparent;
    color: var(--mm-accent);
    border: 1px solid var(--mm-accent);
    padding: 0.4em 1.4em;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.mm-cookie-accept:hover {
    background: var(--mm-accent);
    color: var(--mm-deep);
}

.mm-cookie-hidden {
    display: none;
}

/* === 404 === */
.mm-not-found {
    text-align: center;
    padding: 4em 1em;
}

.mm-not-found-code {
    font-family: 'Inter', sans-serif;
    font-size: 6rem;
    font-weight: 800;
    color: var(--mm-accent);
    line-height: 1;
    margin-bottom: 0.2em;
    letter-spacing: -0.03em;
}

.mm-not-found h1 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.5em;
}

.mm-not-found p {
    color: var(--mm-text-muted);
    max-width: 500px;
    margin: 0 auto 1.5em;
}

.mm-not-found .mm-search-form {
    max-width: 420px;
    margin: 0 auto 1.5em;
}

.mm-btn-home {
    display: inline-block;
    border: 1px solid var(--mm-accent);
    color: var(--mm-accent);
    padding: 0.6em 1.8em;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.25s ease;
}

.mm-btn-home:hover {
    background: var(--mm-accent);
    color: var(--mm-deep);
}

/* === Страница === */
.mm-page-title {
    font-size: 1.8rem;
    margin-bottom: 0.5em;
    margin-top: 0;
}

.mm-page-content {
    font-size: 1.02rem;
    line-height: 1.8;
}

.mm-page-content a {
    color: var(--mm-link);
}

/* === Адаптивность === */
@media (max-width: 960px) {
    .mm-layout {
        flex-direction: column;
    }

    .mm-primary,
    .mm-layout .mm-primary {
        width: 100%;
    }

    .mm-layout .mm-aside {
        width: 100%;
    }

    .mm-posts-grid {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }

    .mm-single-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 600px) {
    .mm-header-inner {
        padding: 0 1em;
    }

    .mm-container {
        padding: 0 1em;
    }

    .mm-logo-desc {
        display: none;
    }

    .mm-cookie-notice {
        flex-direction: column;
        gap: 0.8em;
        text-align: center;
    }

    .mm-post-nav {
        flex-direction: column;
        gap: 1em;
    }

    .mm-post-nav-next {
        text-align: left;
    }
}

/* === Скрытие WP-элементов === */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* === Блог-страница === */
.mm-blog-header {
    margin-bottom: 2em;
}

.mm-blog-header h1 {
    margin-top: 0;
}

/* === Утилитарные === */
.mm-section-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mm-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.2em;
    margin-top: 0;
}
