/*
Theme Name: dds_armadaru.ru
Author: Алексей Князев
Description: Образовательная онлайн-платформа с курсами, статьями и инструментами. Дизайн-концепция «Цифровая архитектура» — холодная технологичная палитра, строгая структурность и визуальная лёгкость.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: armada
*/

/* ==========================================================================
   Переменные
   ========================================================================== */
:root {
    --bg:        #F4F7FC;
    --bg-alt:    #E8EEF5;
    --footer:    #1A1F2B;
    --sidebar:   #FFFFFF;
    --text:      #1E2532;
    --accent:    #2A7DE1;
    --accent-2:  #00A3B2;
    --muted:     #7A869A;
    --card-bd:   #D0D9E6;
    --shell:     1180px;
}

/* ==========================================================================
   База
   ========================================================================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Roboto', 'Open Sans', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(42,125,225,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42,125,225,0.05) 1px, transparent 1px);
    background-size: 100px 100px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'SF Pro Display', Arial, sans-serif;
    color: var(--text);
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}

h1 { font-size: 4.2rem; text-transform: uppercase; letter-spacing: 0.01em; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; }

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

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

/* Строгие текстовые ссылки внутри контента — подчёркивание слева направо */
.entry-content a,
.widget-text a {
    position: relative;
    color: var(--accent);
}
.entry-content a::after,
.widget-text a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 3px;
    background: var(--accent);
    transition: width .25s ease;
}
.entry-content a:hover::after,
.widget-text a:hover::after { width: 100%; }

/* ==========================================================================
   Контейнер
   ========================================================================== */
.shell {
    width: min(92%, var(--shell));
    margin-inline: auto;
}

.shell-wide { width: 85%; margin-inline: auto; }

/* ==========================================================================
   Кнопки — брутальные прямоугольные, срез угла
   ========================================================================== */
.btn {
    display: inline-block;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.85em 1.9em;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
    cursor: pointer;
    transition: transform .12s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translate(2px, 2px); background: #1f6ac9; color: #fff; }

.btn-outline {
    background: transparent;
    color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ==========================================================================
   Шапка
   ========================================================================== */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--card-bd);
    padding: 1.1rem 0;
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1;
}
.brand-logo { width: 52px; height: 52px; display: block; flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-name {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--text);
    display: block;
    max-width: 640px;
}
.brand-name a { color: var(--text); }
.brand-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 0.35rem;
    max-width: 640px;
    display: none;
}

/* Навигация */
.main-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.main-nav a {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    position: relative;
    padding-bottom: 4px;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 3px;
    background: var(--accent);
    transition: width .25s ease;
}
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after { width: 100%; }

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--text);
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    border-radius: 0;
}

/* ==========================================================================
   Раскладки контента
   ========================================================================== */
.site-main { padding: 2.5rem 0 3.5rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3%;
    align-items: start;
}
.layout-single .content-area { width: 85%; margin-inline: auto; }

.sidebar {
    background: var(--sidebar);
    border: 1px solid var(--card-bd);
    padding: 1.6rem 1.4rem;
    box-shadow: 0 8px 30px rgba(26,31,43,0.06);
}

/* ==========================================================================
   Хлебные крошки + линейка-заголовок
   ========================================================================== */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}
.breadcrumbs a { color: var(--accent-2); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--muted); margin: 0 0.35rem; }

/* Архитектурная линейка */
.ruler {
    height: 12px;
    margin-bottom: 1.2rem;
    background-image: repeating-linear-gradient(90deg, var(--card-bd) 0, var(--card-bd) 1px, transparent 1px, transparent 16px);
    border-bottom: 1px solid var(--card-bd);
    max-width: 260px;
}

/* Заголовки секций — квадратный маркер слева */
.section-title {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 1.6rem;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0; top: 0.15em;
    width: 14px; height: 14px;
    background: var(--accent);
}

/* ==========================================================================
   Записи (single / page)
   ========================================================================== */
.entry-header { margin-bottom: 1.4rem; }
.entry-title { font-size: 2.6rem; text-transform: none; }
.entry-meta { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.entry-meta a { color: var(--accent-2); }

.entry-thumb { margin-bottom: 1.6rem; border: 1px solid var(--card-bd); }
.entry-thumb img { display: block; width: 100%; height: auto; filter: grayscale(35%) saturate(0.9); }

.entry-content { font-size: 1.02rem; }
.entry-content h2 { margin-top: 1.8rem; }
.entry-content h3 { margin-top: 1.4rem; }
.entry-content img { border: 1px solid var(--card-bd); display: block; }
.entry-content blockquote {
    border-left: 4px solid var(--accent);
    background: var(--bg-alt);
    margin: 1.4rem 0;
    padding: 1.2rem 1.4rem;
    font-style: italic;
    color: #33405a;
}
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.5rem;
}
.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.55em;
    width: 8px; height: 8px;
    background: var(--accent-2);
}
.entry-content ol { padding-left: 1.4rem; }

/* Таблицы */
.entry-content table { border-collapse: collapse; width: 100%; margin: 1.4rem 0; }
.entry-content table, .entry-content th, .entry-content td { border: 1px solid var(--card-bd); }
.entry-content th, .entry-content td { padding: 0.6rem 0.8rem; text-align: left; }
.entry-content th { background: var(--bg-alt); font-family: 'Inter', Arial, sans-serif; }

/* ==========================================================================
   Карточки записей
   ========================================================================== */
.cards-list { display: flex; flex-direction: column; gap: 1.4rem; }

.card {
    display: flex;
    flex-direction: row;
    border: 1px solid var(--card-bd);
    border-left: 3px solid var(--card-bd);
    border-radius: 0;
    background: var(--sidebar);
    overflow: hidden;
    transition: background .2s ease, border-color .2s ease;
}
.card:hover { background: var(--bg-alt); border-left-color: var(--accent); }

.card-thumb-wrap {
    flex: 0 0 260px;
    position: relative;
    overflow: hidden;
    min-height: 180px;
}
.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(45%) saturate(0.85) contrast(1.02);
}
.card-thumb-ph {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-alt);
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.4rem 1.6rem;
    display: flex;
    flex-direction: column;
}
.card-title { font-size: 1.3rem; margin-bottom: 0.5rem; text-transform: none; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.7rem; }
.card-excerpt { color: #3a4557; font-size: 0.97rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--accent);
    align-self: flex-start;
}

/* ==========================================================================
   Пагинация
   ========================================================================== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 2.5rem;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.7rem;
    border: 1px solid var(--card-bd);
    background: var(--sidebar);
    color: var(--text);
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 500;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .page-numbers.dots { border: none; background: none; }

/* ==========================================================================
   Главная страница
   ========================================================================== */
.front-section { padding: 3.2rem 0; }
.front-section.alt { background: var(--bg-alt); }

/* --- Блок 1: Hero --- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4.5rem;
    background: var(--bg-alt);
}
.hero-blob {
    position: absolute;
    right: -8%;
    bottom: -20%;
    width: 520px;
    height: 520px;
    opacity: 0.5;
    filter: blur(6px);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-ruler {
    height: 12px;
    width: 220px;
    margin-bottom: 1.5rem;
    background-image: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 1px, transparent 1px, transparent 18px);
}
.hero h1 {
    font-size: 4.2rem;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.hero .hero-sub {
    font-size: 1.15rem;
    color: #33405a;
    max-width: 560px;
    margin-bottom: 2rem;
}
.hero-grid {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    width: 340px;
    height: 340px;
    z-index: 1;
    opacity: 0.85;
    pointer-events: none;
}

/* --- Блок 2: Чек-лист принципов --- */
.checklist { display: flex; flex-direction: column; gap: 0; }
.checklist-row {
    display: grid;
    grid-template-columns: 84px 40px minmax(0, 1fr);
    gap: 0.5rem;
    align-items: start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--card-bd);
}
.checklist-row:first-child { border-top: 1px solid var(--card-bd); }
.checklist-num {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--muted);
    opacity: 0.55;
    line-height: 1;
}
.checklist-mark {
    width: 26px; height: 26px;
    margin-top: 0.35rem;
}
.checklist-body h3 { font-size: 1.25rem; margin-bottom: 0.3rem; text-transform: none; }
.checklist-body p { margin: 0; color: #3a4557; font-size: 0.98rem; }

/* --- Последние записи (на главной) --- */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}
.latest-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-bd);
    border-top: 3px solid var(--card-bd);
    background: var(--sidebar);
    overflow: hidden;
    transition: background .2s ease, border-color .2s ease;
}
.latest-card:hover { background: var(--bg-alt); border-top-color: var(--accent); }
.latest-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(45%) saturate(0.85); }
.latest-thumb-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); }
.latest-body { flex: 1; min-width: 0; padding: 1.2rem 1.3rem; display: flex; flex-direction: column; }
.latest-body h3 { font-size: 1.15rem; text-transform: none; margin-bottom: 0.4rem; }
.latest-body h3 a { color: var(--text); }
.latest-body h3 a:hover { color: var(--accent); }
.latest-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.6rem; }
.latest-excerpt { font-size: 0.92rem; color: #3a4557; }
.latest-excerpt p { margin: 0 0 0.5em; background: none; }

/* --- Блок 3: Zigzag текст + иллюстрация --- */
.zigzag-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}
.zigzag-row:last-child { margin-bottom: 0; }
.zigzag-row.reverse .zigzag-media { order: 2; }
.zigzag-row.reverse .zigzag-text { order: 1; }

.zigzag-media { min-width: 0; }
/* Стилизация под поляроид */
.polaroid {
    background: #fff;
    border: 1px solid var(--card-bd);
    padding: 12px 12px 42px;
    display: inline-block;
    max-width: 100%;
}
.polaroid img { display: block; width: 100%; height: auto; filter: grayscale(30%) saturate(0.9); }
.polaroid figcaption {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.85rem;
    color: var(--muted);
    padding-top: 0.7rem;
    text-align: center;
}
.zigzag-text { min-width: 0; }
.zigzag-text h3 { font-size: 1.7rem; text-transform: none; margin-bottom: 0.7rem; }
.zigzag-text p { color: #3a4557; }

/* --- Блок 4: Карта тем / рубрикатор --- */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}
.topic-tile {
    display: block;
    border: 2px solid var(--card-bd);
    background: var(--sidebar);
    padding: 1.8rem 1.4rem;
    text-align: left;
    transition: border-color .2s ease, transform .12s ease, background .2s ease;
    min-width: 0;
}
.topic-tile:hover { border-color: var(--accent); transform: translate(2px, 2px); background: var(--bg-alt); }
.topic-icon { width: 40px; height: 40px; margin-bottom: 1rem; display: block; }
.topic-tile h3 {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
    color: var(--text);
}

/* --- CTA-секция --- */
.fs-cta {
    background: linear-gradient(120deg, var(--bg-alt) 0%, rgba(0,163,178,0.18) 100%);
    border: 1px solid var(--card-bd);
    padding: 3rem 2.6rem;
    text-align: center;
}
.fs-cta h2 { margin-bottom: 0.8rem; }
.fs-cta p { color: #33405a; max-width: 620px; margin-inline: auto; margin-bottom: 1.6rem; }

/* Диагональный разделитель */
.diag-divider {
    display: block;
    width: 100%;
    height: 46px;
    line-height: 0;
}
.diag-divider svg { display: block; width: 100%; height: 100%; }

/* ==========================================================================
   Виджеты — сайдбар (светлый фон)
   ========================================================================== */
.widget { margin-bottom: 1.8rem; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    padding-left: 0.9rem;
    position: relative;
    color: var(--text);
}
.widget-title::before {
    content: "";
    position: absolute;
    left: 0; top: 0.15em;
    width: 10px; height: 10px;
    background: var(--accent-2);
}
.sidebar .widget { color: var(--text); }
.sidebar .widget a { color: var(--accent); }
.sidebar .widget a:hover { color: var(--accent-2); }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget ul li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--card-bd);
    font-size: 0.95rem;
}
.sidebar .widget ul li:last-child { border-bottom: none; }
.sidebar .widget .post-date { display: block; font-size: 0.78rem; color: var(--muted); }

/* ==========================================================================
   Подвал (тёмный фон)
   ========================================================================== */
.site-footer {
    background: var(--footer);
    color: #C3CCDA;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}
.site-footer .widget-title { color: #fff; }
.site-footer .widget-title::before { background: var(--accent-2); }
.site-footer .widget,
.site-footer .widget p { color: #C3CCDA; }
.site-footer .widget a { color: #9FB4D6; }
.site-footer .widget a:hover { color: #fff; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget ul li { padding: 0.4rem 0; font-size: 0.95rem; }
.site-footer .post-date { display: block; font-size: 0.78rem; color: #7A869A; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: #7A869A;
    text-align: center;
}

/* ==========================================================================
   Форма поиска
   ========================================================================== */
.search-form { display: flex; gap: 0; max-width: 420px; }
.search-form .search-field {
    flex: 1;
    min-width: 0;
    border: 2px solid var(--card-bd);
    border-right: none;
    background: #fff;
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    border-radius: 0;
    font-family: inherit;
}
.search-form .search-field:focus { outline: none; border-color: var(--accent); }
.search-form .search-submit {
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    padding: 0 1.3rem;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 0;
    transition: background .2s ease;
}
.search-form .search-submit:hover { background: #1f6ac9; }

/* ==========================================================================
   Комментарии
   ========================================================================== */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--card-bd); }
.comments-title { margin-bottom: 1.5rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list ul.children { list-style: none; margin: 0 0 0 1.6rem; padding: 0; }
.comment-item { margin-bottom: 1.4rem; }
.comment-body {
    border: 1px solid var(--card-bd);
    background: var(--sidebar);
    padding: 1.2rem 1.4rem;
}
.comment-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.comment-author { font-family: 'Inter', Arial, sans-serif; font-weight: 600; }
.comment-date { font-size: 0.8rem; color: var(--muted); }
.comment-reply a {
    font-size: 0.82rem;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}
.comment-awaiting { font-size: 0.85rem; color: var(--accent-2); }
.comment-respond { margin-top: 2rem; }
.comment-form-comment textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    border: 2px solid var(--card-bd);
    padding: 0.7rem 0.9rem;
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 0;
    background: #fff;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form label { display: block; font-size: 0.88rem; margin: 0.8rem 0 0.3rem; font-family: 'Inter', Arial, sans-serif; }
.comment-form .submit,
.comment-form #submit {
    margin-top: 1rem;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    padding: 0.8rem 1.9rem;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
}
.comment-form .submit:hover { background: #1f6ac9; }

/* ==========================================================================
   404
   ========================================================================== */
.error-404 { text-align: center; padding: 2rem 0 3rem; }
.error-404 .code {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 6rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1rem;
}
.error-404 .search-form { margin: 1.8rem auto 0; }

/* ==========================================================================
   Cookie-баннер
   ========================================================================== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    background: var(--footer);
    color: #C3CCDA;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    border-top: 3px solid var(--accent);
}
.cookie-banner p { margin: 0; font-size: 0.9rem; max-width: 760px; }
.cookie-banner a { color: #9FB4D6; }
.cookie-banner .cookie-accept {
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1.6rem;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.82rem;
    cursor: pointer;
    border-radius: 0;
    flex: 0 0 auto;
    transition: background .2s ease;
}
.cookie-banner .cookie-accept:hover { background: #1f6ac9; }

/* ==========================================================================
   Прочее
   ========================================================================== */
.page-title { margin-bottom: 1.8rem; }
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px; overflow: hidden;
}
.post-navigation { margin-top: 2.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.post-navigation a { font-family: 'Inter', Arial, sans-serif; font-weight: 500; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 960px) {
    h1, .hero h1 { font-size: 3rem; }
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .layout-single .content-area,
    .shell-wide { width: 92%; }
    .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }
    .hero-grid { display: none; }
    .zigzag-row { grid-template-columns: 1fr; gap: 1.4rem; }
    .zigzag-row.reverse .zigzag-media,
    .zigzag-row.reverse .zigzag-text { order: 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1, .hero h1 { font-size: 2.2rem; }
    h2 { font-size: 1.7rem; }
    .entry-title { font-size: 1.9rem; }
    .hero { padding: 3rem 0; }
    .front-section { padding: 2.4rem 0; }
    .fs-cta { padding: 2rem 1.4rem; }

    .main-nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { border-bottom: 1px solid var(--card-bd); }
    .main-nav a { display: block; padding: 0.7rem 0; }
    .nav-toggle { display: inline-block; }
    .header-inner { justify-content: space-between; }

    .card { flex-direction: column; }
    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        min-height: 0;
    }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .card-thumb-ph { position: relative; aspect-ratio: 16 / 9; }

    .latest-grid { grid-template-columns: 1fr; }
    .topics-grid { grid-template-columns: 1fr; }
    .checklist-row { grid-template-columns: 54px 30px minmax(0, 1fr); gap: 0.4rem; }
    .checklist-num { font-size: 1.8rem; }
    .cookie-banner { flex-direction: column; text-align: center; }
}
