/*
Theme Name: dds_helpmetoday.ru
Theme URI: https://helpmetoday.ru/
Author: Алексей Мартынов
Author URI: https://helpmetoday.ru/
Description: Образовательный IT-ресурс с опорой на прикладные инструкции: база знаний, учебные материалы по компьютерным системам, основы кибербезопасности, работа с Windows и популярным программным обеспечением.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dds_helpmetoday
*/

/* ---------- Сброс и базовые настройки ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #1a202c;
    background-color: #F8F9FC;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: #0057B3;
    text-decoration: none;
    transition: color .18s ease;
}
a:hover { color: #003f82; text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI Semibold', 'Roboto', sans-serif;
    color: #0A1C2F;
    line-height: 1.25;
    margin: 0 0 0.6em;
    font-weight: 600;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

blockquote {
    margin: 1.2em 0;
    padding: 0.8em 1.2em;
    border-left: 4px solid #0057B3;
    background: #eef4fb;
    color: #0A1C2F;
    font-style: italic;
}

hr {
    border: 0;
    border-top: 1px solid #e1e6ef;
    margin: 2em 0;
}

/* ---------- Контейнер ---------- */
.layout-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Шапка ---------- */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e1e6ef;
    padding: 16px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.brand-logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #eef4fb;
    border-radius: 8px;
}

.brand-logo-wrap svg { width: 32px; height: 32px; }

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-text { min-width: 0; }

.brand-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0A1C2F;
}

.brand-title a { color: inherit; }
.brand-title a:hover { color: #0057B3; text-decoration: none; }

.brand-desc {
    margin: 2px 0 0;
    font-size: 0.82rem;
    color: #5a6578;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- Главная навигация ---------- */
.nav-primary {
    flex-shrink: 0;
}

.nav-primary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.nav-primary li { margin: 0; }

.nav-primary a {
    display: inline-block;
    padding: 8px 14px;
    color: #1a202c;
    font-weight: 500;
    border-radius: 6px;
    position: relative;
}

.nav-primary a:hover {
    background: #eef4fb;
    color: #0057B3;
    text-decoration: none;
}

.nav-primary .current-menu-item > a,
.nav-primary .current_page_item > a {
    color: #0057B3;
}

.nav-primary .current-menu-item > a::after,
.nav-primary .current_page_item > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: #2E7D32;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    color: #0A1C2F;
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    padding: 14px 0;
    font-size: 0.88rem;
    color: #5a6578;
    font-family: 'Consolas', 'Courier New', monospace;
}

.breadcrumbs a {
    color: #0057B3;
}

.breadcrumbs .sep {
    margin: 0 6px;
    color: #a0aec0;
}

.breadcrumbs .current {
    color: #0A1C2F;
    font-weight: 500;
}

/* ---------- Главный блок ---------- */
.site-main {
    padding: 20px 0 40px;
}

.layout-main-with-sidebar {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
    align-items: start;
}

.layout-main-wide {
    width: 85%;
    margin: 0 auto;
}

.single-content, .page-content-main {
    background: #ffffff;
    padding: 30px 36px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.single-content h1, .page-content-main h1 {
    margin-top: 0;
}

.entry-meta {
    font-size: 0.88rem;
    color: #5a6578;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef1f6;
}

.entry-meta a { color: #0057B3; }

.post-thumb-lead {
    margin: 0 0 24px;
    border-radius: 6px;
    overflow: hidden;
}

.post-thumb-lead img {
    display: block;
    width: 100%;
    height: auto;
}

/* Таблицы */
.single-content table,
.page-content-main table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid #cbd5e0;
}

.single-content th, .page-content-main th,
.single-content td, .page-content-main td {
    border: 1px solid #cbd5e0;
    padding: 10px 12px;
    text-align: left;
}

.single-content th, .page-content-main th {
    background: #eef4fb;
    font-weight: 600;
}

/* Блоки кода */
.single-content pre,
.page-content-main pre {
    background: #1E1E1E;
    color: #D4D4D4;
    padding: 16px 20px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 1.2em 0;
    position: relative;
}

.single-content pre::before,
.page-content-main pre::before {
    content: "bash";
    display: block;
    font-size: 0.78rem;
    color: #9CDCFE;
    margin-bottom: 8px;
    font-weight: 600;
}

.single-content code,
.page-content-main code {
    background: #eef4fb;
    color: #0057B3;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.92em;
}

.single-content pre code,
.page-content-main pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* ---------- Карточки записей ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 0 0 30px;
}

.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eef4fb;
}

.card-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #eef4fb 0%, #d6e4f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0057B3;
}

.card-body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: #5a6578;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.card-type-badge svg {
    width: 14px;
    height: 14px;
    fill: #0057B3;
}

.card-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.card-title a { color: #0A1C2F; }
.card-title a:hover { color: #0057B3; text-decoration: none; }

.card-excerpt {
    color: #4a5568;
    font-size: 0.94rem;
    margin-bottom: 14px;
    flex: 1;
}

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

.card-meta {
    font-size: 0.82rem;
    color: #5a6578;
    margin-bottom: 12px;
}

.card-read {
    align-self: flex-start;
    padding: 8px 16px;
    background: #0057B3;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .18s ease;
}

.card-read:hover {
    background: #003f82;
    color: #ffffff;
    text-decoration: none;
}

.card-read::after {
    content: "→";
    font-size: 1.05em;
}

/* Горизонтальная карточка (правило A10) */
.card-horizontal {
    flex-direction: row;
}

.card-horizontal .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}

.card-horizontal .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-horizontal .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card img { display: block; }

/* ---------- Сайдбар ---------- */
.sidebar {
    position: sticky;
    top: 20px;
}

.widget {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.widget-title {
    font-size: 1rem;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0057B3;
    color: #0A1C2F;
}

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

.widget ul li {
    padding: 6px 0;
    border-bottom: 1px dashed #eef1f6;
    margin: 0;
}

.widget ul li:last-child { border-bottom: none; }

.widget a { color: #1a202c; }
.widget a:hover { color: #0057B3; }

.widget.widget_search form {
    display: flex;
    gap: 6px;
}

/* ---------- Форма поиска ---------- */
.search-form {
    display: flex;
    gap: 6px;
}

.search-field {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color .18s ease;
}

.search-field:focus { border-color: #0057B3; }

.search-submit {
    padding: 9px 18px;
    background: #0057B3;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background .18s ease, transform .12s ease;
}

.search-submit:hover { background: #003f82; }
.search-submit:active { transform: scale(0.97); }

/* ---------- Пагинация ---------- */
.pagination {
    margin: 30px 0 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    color: #1a202c;
    font-weight: 500;
    background: #ffffff;
    transition: all .18s ease;
}

.pagination .page-numbers:hover {
    background: #eef4fb;
    border-color: #0057B3;
    color: #0057B3;
    text-decoration: none;
}

.pagination .page-numbers.current {
    background: #0057B3;
    color: #ffffff;
    border-color: #0057B3;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* ---------- Тематические блоки главной ---------- */
.front-section {
    margin-bottom: 50px;
    padding: 34px 36px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.front-section-title {
    margin: 0 0 8px;
    font-size: 1.55rem;
    color: #0A1C2F;
    display: flex;
    align-items: center;
    gap: 12px;
}

.front-section-title svg {
    width: 28px;
    height: 28px;
    fill: #0057B3;
    flex-shrink: 0;
}

.front-section-lead {
    color: #4a5568;
    margin-bottom: 24px;
    font-size: 1.02rem;
}

/* Блок: шаги */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.step-card {
    background: #F8F9FC;
    border-radius: 8px;
    padding: 20px 22px;
    border-left: 3px solid #0057B3;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #0057B3;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: 'Consolas', monospace;
}

.step-card h3 {
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.step-card p {
    margin: 0;
    font-size: 0.94rem;
    color: #4a5568;
}

/* Блок: колонки с иконками */
.feature-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 20px;
}

.feature-col {
    padding: 22px;
    background: #F8F9FC;
    border-radius: 8px;
}

.feature-icon {
    width: 46px;
    height: 46px;
    background: #eef4fb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.feature-icon svg { width: 24px; height: 24px; fill: #0057B3; }

.feature-col h3 { font-size: 1.05rem; margin: 0 0 8px; }
.feature-col p { margin: 0; font-size: 0.94rem; color: #4a5568; }

/* Блок: список с чеками */
.check-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.check-list li {
    padding: 10px 14px 10px 40px;
    background: #F8F9FC;
    border-radius: 6px;
    position: relative;
    margin: 0;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #2E7D32;
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='white' d='M6.5 10.5L4 8l-1 1 3.5 3.5L13 6l-1-1z'/></svg>");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Блок предупреждения */
.warning-block {
    display: flex;
    gap: 14px;
    padding: 18px 22px;
    background: #fdecec;
    border-left: 4px solid #D32F2F;
    border-radius: 6px;
    margin: 20px 0;
}

.warning-block svg {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    fill: #D32F2F;
}

.warning-block-body { color: #742020; font-size: 0.95rem; }
.warning-block-body strong { color: #D32F2F; }

/* ---------- Подвал ---------- */
.site-footer {
    background: #0A1C2F;
    color: #cfd8e0;
    padding: 44px 0 18px;
    margin-top: 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 32px;
}

.footer-col .widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.footer-col .widget-title {
    color: #ffffff;
    border-bottom-color: #1f3a5a;
    font-size: 1.02rem;
}

.footer-col a { color: #a4b4c8; }
.footer-col a:hover { color: #ffffff; }

.footer-col ul li {
    border-bottom-color: #1f3a5a;
    font-size: 0.92rem;
}

.footer-col p { color: #a4b4c8; font-size: 0.92rem; }

.footer-quote {
    background: #091729;
    padding: 18px 24px;
    border-left: 3px solid #0057B3;
    margin-bottom: 22px;
    font-style: italic;
    color: #cfd8e0;
    font-size: 0.98rem;
    border-radius: 0 6px 6px 0;
}

.footer-quote-author {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    font-style: normal;
    color: #7b8ba0;
}

.footer-bottom {
    padding-top: 18px;
    border-top: 1px solid #1f3a5a;
    font-size: 0.85rem;
    color: #7b8ba0;
    text-align: center;
    font-family: 'Consolas', monospace;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: #ffffff;
    color: #1a202c;
    padding: 16px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 18px;
    z-index: 9999;
    max-width: 860px;
    margin: 0 auto;
    border-left: 4px solid #0057B3;
}

.cookie-banner-text {
    flex: 1;
    font-size: 0.9rem;
    color: #4a5568;
}

.cookie-banner-btn {
    padding: 9px 20px;
    background: #0057B3;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.92rem;
    white-space: nowrap;
    transition: background .18s ease, transform .12s ease;
}

.cookie-banner-btn:hover { background: #003f82; }
.cookie-banner-btn:active { transform: scale(0.97); }
.cookie-banner.is-hidden { display: none; }

/* ---------- 404 ---------- */
.error-404 {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.error-404 .error-code {
    font-size: 5rem;
    font-weight: 700;
    color: #0057B3;
    margin: 0;
    line-height: 1;
    font-family: 'Consolas', monospace;
}

.error-404 h1 { margin-top: 12px; }

.error-404 .search-form {
    max-width: 420px;
    margin: 24px auto;
}

.back-home-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 20px;
    background: #0057B3;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
}

.back-home-link:hover { background: #003f82; color: #ffffff; text-decoration: none; }

/* ---------- Комментарии ---------- */
.comments-area {
    margin-top: 36px;
    padding: 26px 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.comments-title {
    margin-top: 0;
    font-size: 1.3rem;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef1f6;
}

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

.comment-list li {
    padding: 16px 0;
    border-bottom: 1px solid #eef1f6;
    margin: 0;
}

.comment-list li:last-child { border-bottom: none; }

.comment-author {
    font-weight: 600;
    color: #0A1C2F;
    margin-bottom: 4px;
}

.comment-meta {
    font-size: 0.84rem;
    color: #5a6578;
    margin-bottom: 8px;
}

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

.comment-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 0.92rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color .18s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #0057B3;
}

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

.comment-form .submit {
    padding: 10px 22px;
    background: #0057B3;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}

.comment-form .submit:hover { background: #003f82; }

/* ---------- Список записей (архив/поиск) ---------- */
.archive-title {
    margin-bottom: 22px;
    color: #0A1C2F;
}

.archive-description {
    color: #5a6578;
    margin-bottom: 26px;
}

.no-results {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* ---------- Блоки Gutenberg ---------- */
.wp-block-image { margin: 1.2em 0; }
.wp-block-image img { border-radius: 6px; }

.wp-block-quote {
    border-left: 4px solid #0057B3;
    background: #eef4fb;
    padding: 0.8em 1.2em;
    margin: 1.2em 0;
}

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .layout-main-with-sidebar {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .layout-main-wide { width: 100%; }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }

    .single-content, .page-content-main { padding: 24px 26px; }
    .front-section { padding: 24px 26px; }

    .sidebar { position: static; }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .nav-primary {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-top: 1px solid #e1e6ef;
        padding: 10px 20px 16px;
        z-index: 50;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    }

    .nav-primary.is-open { display: block; }

    .nav-primary ul {
        flex-direction: column;
        gap: 2px;
    }

    .nav-primary a { display: block; }

    .site-header { position: relative; }
    .header-inner { flex-wrap: wrap; }

    .front-section-title { font-size: 1.3rem; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .brand-title { font-size: 1rem; }
    .brand-desc { font-size: 0.78rem; }
}

@media (max-width: 600px) {
    .card-horizontal {
        flex-direction: column;
    }
    .card-horizontal .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-horizontal .card-thumb-wrap a {
        position: static;
    }
    .card-horizontal .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .single-content, .page-content-main { padding: 20px; }
    .front-section { padding: 20px; }
    .site-main { padding: 14px 0 30px; }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
