/*
Theme Name: dds_miravlandshaft.ru
Theme URI: https://miravlandshaft.ru/
Author: Илья Миронов
Author URI: https://miravlandshaft.ru/
Description: Тема для контентного образовательного проекта об IT-обучении для новичков. Курсы, статьи, подборки профессий, практические гайды по цифровым навыкам, программированию, аналитике, тестированию и инструментам для удалённой работы.
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
Text Domain: miravl
*/

/* ===========================================================
   0. БАЗА И ШРИФТЫ
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: #1A2A3A;
    background-color: #F8F9FC;
    background-image:
        radial-gradient(rgba(44, 95, 138, 0.035) 1px, transparent 1px),
        radial-gradient(rgba(232, 168, 124, 0.025) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px;
    background-position: 0 0, 20px 30px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #2C5F8A;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: #E8A87C; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, sans-serif;
    color: #1A2A3A;
    font-weight: 700;
    line-height: 1.25;
    margin: 1.4em 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.2rem; font-weight: 800; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

code, pre, kbd, samp {
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

code {
    background: #F5F2EA;
    color: #B22234;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.92em;
}

pre {
    background: #F5F2EA;
    padding: 18px 22px;
    border-radius: 10px;
    overflow-x: auto;
    border-left: 3px solid #2C5F8A;
    font-size: 0.92em;
    position: relative;
}
pre code { background: none; color: #1A2A3A; padding: 0; }

blockquote {
    margin: 1.5em 0;
    padding: 14px 22px;
    border-left: 4px solid #E8A87C;
    background: #FFFFFF;
    border-radius: 0 10px 10px 0;
    color: #5B6F82;
    font-style: italic;
}

hr { border: none; border-top: 1px solid #E2E8F0; margin: 2.5em 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 10px 14px;
    text-align: left;
    border: 1px solid #E2E8F0;
}
th {
    background: #F5F2EA;
    font-weight: 600;
    color: #1A2A3A;
}

/* ===========================================================
   1. LAYOUT
   =========================================================== */

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    padding: 40px 0 60px;
}

.layout {
    display: grid;
    gap: 40px;
}
.layout.has-sidebar {
    grid-template-columns: 67% 27%;
    gap: 6%;
}
.layout.no-sidebar {
    grid-template-columns: 85%;
    justify-content: center;
}
.layout.full {
    grid-template-columns: 1fr;
}

@media (max-width: 960px) {
    .layout.has-sidebar { grid-template-columns: 1fr; gap: 40px; }
    .layout.no-sidebar { grid-template-columns: 1fr; }
}

/* ===========================================================
   2. HEADER
   =========================================================== */

.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 14px 0;
}

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

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

.brand-logo {
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 10px;
    display: block;
    object-fit: contain;
    background: linear-gradient(135deg, rgba(44, 95, 138, 0.08), rgba(232, 168, 124, 0.08));
    padding: 4px;
}

.brand-text { min-width: 0; }
.brand-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1A2A3A;
    line-height: 1.2;
    margin: 0 0 3px;
    display: block;
    letter-spacing: -0.01em;
}
.brand-title a { color: inherit; }
.brand-tagline {
    font-size: 0.82rem;
    color: #5B6F82;
    line-height: 1.35;
    display: block;
    max-width: 560px;
}

/* Main nav */
.main-nav {
    display: flex;
    align-items: center;
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.main-nav a {
    display: inline-block;
    padding: 9px 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.97rem;
    color: #1A2A3A;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    background: rgba(44, 95, 138, 0.08);
    color: #2C5F8A;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #E2E8F0;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #1A2A3A;
    position: relative;
    border-radius: 2px;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top:  6px; }

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .main-nav {
        display: none;
        flex-basis: 100%;
        margin-top: 14px;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a { display: block; padding: 11px 14px; }
}

/* ===========================================================
   3. FOOTER
   =========================================================== */

.site-footer {
    background: #1A2A3A;
    color: #D7DEE6;
    padding: 50px 0 20px;
    margin-top: 60px;
}
.site-footer a { color: #E8A87C; }
.site-footer a:hover { color: #FFFFFF; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col h2,
.footer-col h3,
.footer-col .widget-title {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin: 0 0 14px;
    font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin: 6px 0; }
.footer-col p { margin: 0 0 10px; font-size: 0.93rem; line-height: 1.6; color: #B0BAC5; }

.ask-ilya-block {
    margin-top: 28px;
    background: #FFFFFF;
    color: #1A2A3A;
    padding: 16px 20px;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    max-width: 420px;
    transform: rotate(-1deg);
    border: 2px dashed #E8A87C;
}
.ask-ilya-block::before {
    content: '✎';
    position: absolute;
    top: -14px;
    left: 18px;
    width: 30px;
    height: 30px;
    background: #E8A87C;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
.ask-ilya-block strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 4px;
}
.ask-ilya-block span { font-size: 0.88rem; color: #5B6F82; }

.copyright {
    padding-top: 20px;
    font-size: 0.85rem;
    color: #8A94A0;
    text-align: center;
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ===========================================================
   4. КАРТОЧКИ ЗАПИСЕЙ
   =========================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}
@media (max-width: 760px) {
    .posts-grid { grid-template-columns: 1fr; }
}

.card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 42, 58, 0.08);
    border-color: #D1DCE8;
}

.card-thumb {
    display: block;
    overflow: hidden;
    background: #F5F2EA;
}
.card-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }

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

.card-meta {
    font-size: 0.82rem;
    color: #5B6F82;
    margin: 0 0 8px;
    font-family: 'JetBrains Mono', monospace;
}
.card-meta a { color: #5B6F82; }
.card-meta .cat-tag {
    display: inline-block;
    background: rgba(232, 168, 124, 0.15);
    color: #B05E30;
    padding: 2px 9px;
    border-radius: 4px;
    margin-right: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
}

.card-title {
    margin: 0 0 10px;
    font-size: 1.18rem;
    line-height: 1.3;
}
.card-title a { color: #1A2A3A; }
.card-title a:hover { color: #2C5F8A; }

.card-excerpt {
    color: #5B6F82;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 16px;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-excerpt p:last-child { margin-bottom: 0; }

.card-footer {
    margin-top: auto;
}

/* ===========================================================
   5. КНОПКИ
   =========================================================== */

.btn-primary,
.btn-secondary {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.22s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, #2C5F8A, #1E4668);
    color: #FFFFFF;
    padding: 14px 28px;
    min-height: 48px;
    border-radius: 12px;
    font-size: 0.95rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.btn-primary:hover {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), 0 4px 14px rgba(44, 95, 138, 0.28);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #2C5F8A;
    padding: 11px 24px;
    min-height: 44px;
    border-radius: 40px;
    font-size: 0.92rem;
    border: 1.5px solid #2C5F8A;
}
.btn-secondary:hover {
    background: rgba(44, 95, 138, 0.06);
    color: #2C5F8A;
}

/* ===========================================================
   6. SIDEBAR / WIDGETS
   =========================================================== */

.sidebar .widget,
.site-sidebar .widget {
    background: #FFFFFF;
    padding: 20px 22px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    margin-bottom: 24px;
}
.sidebar .widget-title,
.site-sidebar .widget-title,
.sidebar h2.widget-title,
.site-sidebar h2.widget-title {
    margin: 0 0 14px;
    font-size: 1rem;
    color: #1A2A3A;
    padding-bottom: 10px;
    border-bottom: 2px solid #E8A87C;
    display: inline-block;
}
.sidebar ul,
.site-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar ul li,
.site-sidebar ul li {
    padding: 7px 0;
    border-bottom: 1px solid #F1F4F8;
    font-size: 0.93rem;
}
.sidebar ul li:last-child,
.site-sidebar ul li:last-child { border-bottom: none; }

/* ===========================================================
   7. ХЛЕБНЫЕ КРОШКИ
   =========================================================== */

.breadcrumbs {
    font-size: 0.85rem;
    color: #5B6F82;
    margin: 0 0 20px;
    padding: 10px 0;
    font-family: 'JetBrains Mono', monospace;
}
.breadcrumbs a { color: #5B6F82; }
.breadcrumbs a:hover { color: #2C5F8A; }
.breadcrumbs .sep { margin: 0 8px; color: #B0BAC5; }
.breadcrumbs .current { color: #1A2A3A; font-weight: 500; }

/* ===========================================================
   8. ПАГИНАЦИЯ
   =========================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0 0;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: #1A2A3A;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pagination a:hover {
    border-color: #2C5F8A;
    color: #2C5F8A;
    background: rgba(44, 95, 138, 0.04);
}
.pagination .current {
    background: linear-gradient(45deg, #2C5F8A, #1E4668);
    color: #FFFFFF;
    border-color: #2C5F8A;
}
.pagination .dots { background: transparent; border: none; }

/* ===========================================================
   9. ЗАПИСЬ И СТРАНИЦА
   =========================================================== */

.entry {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 32px 34px;
}
.entry-header { margin-bottom: 22px; }
.entry-title {
    margin: 0 0 10px;
    font-size: 2rem;
    line-height: 1.2;
}
.entry-meta {
    font-size: 0.85rem;
    color: #5B6F82;
    font-family: 'JetBrains Mono', monospace;
}
.entry-meta a { color: #5B6F82; }
.entry-content p { margin: 0 0 1em; }
.entry-thumbnail {
    margin: 0 -34px 24px;
    overflow: hidden;
}
.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 600px) {
    .entry { padding: 22px 20px; }
    .entry-thumbnail { margin: 0 -20px 20px; }
    .entry-title { font-size: 1.6rem; }
}

/* ===========================================================
   10. КОММЕНТАРИИ
   =========================================================== */

.comments-area {
    margin-top: 30px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 28px 30px;
}
.comments-title { margin: 0 0 18px; font-size: 1.3rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { padding: 14px 0; border-bottom: 1px solid #F1F4F8; }
.comment-list li:last-child { border-bottom: none; }
.comment-list .children { list-style: none; padding-left: 28px; margin-top: 10px; }
.comment-author {
    font-weight: 600;
    color: #1A2A3A;
    font-family: 'Inter', sans-serif;
}
.comment-meta {
    font-size: 0.82rem;
    color: #5B6F82;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 6px;
}
.comment-form label {
    display: block;
    margin: 0 0 4px;
    font-size: 0.88rem;
    color: #1A2A3A;
    font-weight: 500;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #FFFFFF;
    color: #1A2A3A;
    margin-bottom: 14px;
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #2C5F8A;
    outline: none;
    box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.12);
}
.comment-form .submit {
    background: linear-gradient(45deg, #2C5F8A, #1E4668);
    color: #FFFFFF;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
}
.comment-form .submit:hover { transform: translateY(-1px); }

/* ===========================================================
   11. ПОИСК
   =========================================================== */

.search-form {
    display: flex;
    gap: 8px;
    max-width: 480px;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #FFFFFF;
    color: #1A2A3A;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: #2C5F8A;
    box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.12);
}
.search-form button {
    background: linear-gradient(45deg, #2C5F8A, #1E4668);
    color: #FFFFFF;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.92rem;
}

/* ===========================================================
   12. ГЛАВНАЯ — ТЕМАТИЧЕСКИЕ БЛОКИ
   =========================================================== */

.home-hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F2EA 100%);
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    padding: 50px 44px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '{ }';
    position: absolute;
    top: 14px;
    right: 28px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.4rem;
    color: #E8A87C;
    opacity: 0.35;
    font-weight: 700;
}
.home-hero h1 {
    font-size: 2.4rem;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    max-width: 780px;
}
.home-hero p {
    font-size: 1.1rem;
    color: #5B6F82;
    max-width: 700px;
    margin: 0 0 24px;
    line-height: 1.6;
}
.home-hero .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .home-hero { padding: 32px 24px; }
    .home-hero h1 { font-size: 1.7rem; }
    .home-hero p { font-size: 1rem; }
}

/* 12.1 Блок «Карточки навыка» */

.home-block {
    margin-bottom: 54px;
}
.home-block-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.home-block-header h2 {
    margin: 0;
    font-size: 1.75rem;
}
.home-block-header .tagline {
    font-size: 0.92rem;
    color: #5B6F82;
}

.skill-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.skill-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-left: 4px solid #E8A87C;
    border-radius: 12px;
    padding: 22px 22px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.skill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 42, 58, 0.07);
}
.skill-card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    color: #2C5F8A;
}
.skill-card h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}
.skill-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.skill-card ul li {
    font-size: 0.9rem;
    color: #5B6F82;
    padding: 5px 0 5px 22px;
    position: relative;
    line-height: 1.45;
}
.skill-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 5px;
    color: #3A7D5C;
    font-weight: 700;
    font-size: 0.9rem;
}

@media (max-width: 960px) { .skill-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skill-cards { grid-template-columns: 1fr; } }

/* 12.2 Блок «Путь в IT» — вертикальный прогресс-трек */

.path-track {
    position: relative;
    padding-left: 42px;
}
.path-track::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, #E8A87C 0%, #2C5F8A 100%);
    border-radius: 2px;
}
.path-step {
    position: relative;
    margin-bottom: 22px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 18px 22px;
    transition: transform 0.2s ease;
}
.path-step:hover { transform: translateX(4px); }
.path-step::before {
    content: attr(data-step);
    position: absolute;
    left: -42px;
    top: 14px;
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    border: 2px solid #2C5F8A;
    color: #2C5F8A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.88rem;
}
.path-step h3 { margin: 0 0 6px; font-size: 1.12rem; }
.path-step p { margin: 0; color: #5B6F82; font-size: 0.94rem; }
.path-step .path-meta {
    margin-top: 10px;
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: #5B6F82;
    font-family: 'JetBrains Mono', monospace;
    flex-wrap: wrap;
}
.path-step .path-meta span {
    background: #F5F2EA;
    padding: 2px 9px;
    border-radius: 5px;
}

/* 12.3 Блок «Реальные задачи» — две колонки */

.real-task {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
}
.real-task-col {
    padding: 22px 24px;
}
.real-task-col:first-child {
    background: #F5F2EA;
    border-right: 1px solid #E2E8F0;
}
.real-task-col .label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #B05E30;
    background: rgba(232, 168, 124, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 500;
}
.real-task-col:last-child .label {
    color: #2C5F8A;
    background: rgba(44, 95, 138, 0.12);
}
.real-task-col h4 { margin: 0 0 8px; font-size: 1.05rem; }
.real-task-col p { margin: 0 0 10px; font-size: 0.94rem; color: #5B6F82; }
.real-task-col pre {
    margin: 10px 0 0;
    font-size: 0.85rem;
    padding: 12px 14px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-left: 3px solid #2C5F8A;
}

@media (max-width: 720px) {
    .real-task { grid-template-columns: 1fr; }
    .real-task-col:first-child { border-right: none; border-bottom: 1px solid #E2E8F0; }
}

/* 12.4 Блок «Сравнение профессий» */

.prof-compare {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.prof-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 22px 22px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.prof-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 42, 58, 0.08);
}
.prof-card h3 {
    margin: 0 0 14px;
    font-size: 1.18rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #E8A87C;
    display: inline-block;
}
.prof-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 0.92rem;
    border-bottom: 1px dashed #E2E8F0;
}
.prof-row:last-child { border-bottom: none; }
.prof-row .key { color: #5B6F82; }
.prof-row .value {
    color: #1A2A3A;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
}
.prof-row .value.accent { color: #3A7D5C; }

@media (max-width: 860px) { .prof-compare { grid-template-columns: 1fr; } }

/* ===========================================================
   13. БЛОК ПОСЛЕДНИХ ЗАПИСЕЙ НА ГЛАВНОЙ
   =========================================================== */

.home-posts {
    margin-bottom: 50px;
}

/* ===========================================================
   14. COOKIE-БАННЕР
   =========================================================== */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: #1A2A3A;
    color: #FFFFFF;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 18px;
    max-width: 680px;
    margin: 0 auto;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #D7DEE6;
    flex: 1;
}
.cookie-banner p a { color: #E8A87C; text-decoration: underline; }
.cookie-accept {
    background: #E8A87C;
    color: #1A2A3A;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    flex: none;
}
.cookie-accept:hover { background: #FFFFFF; }

@media (max-width: 540px) {
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ===========================================================
   15. 404
   =========================================================== */

.error-404 {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 50px 40px;
    text-align: center;
}
.error-404 .code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 4.5rem;
    font-weight: 700;
    color: #E8A87C;
    margin: 0 0 8px;
    line-height: 1;
}
.error-404 h1 { margin: 0 0 10px; font-size: 1.6rem; }
.error-404 p { color: #5B6F82; max-width: 480px; margin: 0 auto 24px; }
.error-404 .search-form { margin: 20px auto; }

/* ===========================================================
   16. ПРОЧЕЕ
   =========================================================== */

.page-title {
    margin: 0 0 22px;
    font-size: 1.8rem;
    color: #1A2A3A;
}
.page-title small {
    display: block;
    font-size: 0.9rem;
    color: #5B6F82;
    font-weight: 400;
    margin-top: 6px;
    font-family: 'JetBrains Mono', monospace;
}

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

.alignleft  { float: left;  margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin: 1em auto; }

.sticky, .gallery-caption, .bypostauthor { display: block; }
