/*
Theme Name: dds_maxim-mel.ru
Theme URI: https://maxim-mel.ru/
Author: Максим Мельников
Description: Тема для образовательной платформы и карьерного ресурса digital-специалистов: курсы, статьи, менторство и помощь в трудоустройстве.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mxmel
*/

/* ---------- Правила для [hidden] (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Токены ---------- */
:root {
    --bg: #F5F9FC;
    --bg-alt: #E8F0F8;
    --ink: #1A2B3C;
    --navy: #1E3A5F;
    --navy-deep: #152C49;
    --accent: #3B82F6;
    --accent-dark: #2563EB;
    --amber: #F59E0B;
    --amber-dark: #D97F06;
    --green: #10B981;
    --violet: #8B5CF6;
    --muted: #6B7C8C;
    --line: #CBD5E1;
    --dot: #D1DCE8;
    --white: #FFFFFF;
    --font-head: "Manrope", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shadow-card: 0 2px 8px rgba(30, 58, 95, 0.08);
    --shadow-card-hover: 0 8px 20px rgba(30, 58, 95, 0.12);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cpath fill='%233B82F6' fill-opacity='0.05' d='M421 64c71 31 140 98 146 175 6 78-50 166-128 214-78 48-178 56-252 18C113 433 66 349 70 269c4-80 59-157 133-196 74-40 147-40 218-9z'/%3E%3C/svg%3E"),
        radial-gradient(circle, var(--dot) 1px, transparent 1.4px);
    background-repeat: no-repeat, repeat;
    background-position: right -180px top 60px, 0 0;
    background-size: 640px 640px, 24px 24px;
    overflow-wrap: break-word;
    hyphens: auto;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.2;
    margin: 1.6em 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.01em;
    hyphens: manual;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }
blockquote {
    margin: 1.6em 0;
    padding: 1.2em 1.5em;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    border-radius: 0 10px 10px 0;
    font-size: 1.1rem;
}
blockquote p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 1.4em 0; border: 1px solid var(--line); background: var(--white); }
th, td { border: 1px solid var(--line); padding: 0.6em 0.8em; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 700; }
code, pre { font-family: Consolas, "Courier New", monospace; font-size: 0.92em; }
pre { overflow-x: auto; background: var(--navy); color: #E2EAF4; padding: 1em 1.2em; border-radius: 8px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1.5px;
    transition: background-size .25s ease, color .2s ease;
}
a:hover, a:focus-visible { background-size: 100% 1.5px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    left: 1rem; top: -60px;
    z-index: 100;
    background: var(--amber);
    color: var(--ink);
    padding: 0.6em 1em;
    border-radius: 8px;
    font-weight: 600;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.8em 1.5em;
    border-radius: 8px;
    border: 2px solid transparent;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    background-image: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); background-size: auto; }
.btn-fill { background-color: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-fill:hover, .btn-fill:focus-visible { background-color: var(--accent-dark); border-color: var(--accent-dark); color: var(--white); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.btn-outline { background-color: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--accent-dark); color: var(--white); background-color: var(--accent-dark); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.btn-amber { background-color: var(--amber); border-color: var(--amber); color: #1A2B3C; }
.btn-amber:hover, .btn-amber:focus-visible { background-color: var(--amber-dark); border-color: var(--amber-dark); color: #1A2B3C; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35); }
.btn-ghost-light { background-color: transparent; border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-ghost-light:hover, .btn-ghost-light:focus-visible { border-color: var(--white); background-color: rgba(255, 255, 255, 0.12); color: var(--white); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }

/* ---------- Цветная полоса сверху ---------- */
.spectrum { display: flex; height: 4px; }
.spectrum i { flex: 1; display: block; }
.spectrum i:nth-child(1) { background: #3B82F6; }
.spectrum i:nth-child(2) { background: #F59E0B; }
.spectrum i:nth-child(3) { background: #10B981; }
.spectrum i:nth-child(4) { background: #8B5CF6; }

/* ---------- Шапка ---------- */
.masthead { background: var(--navy); color: var(--white); }
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 auto;
    color: var(--white);
    background-image: none;
}
.brand:hover { background-size: 0 0; }
.brand-mark, .brand-logo { flex: 0 0 auto; width: 48px; height: 48px; display: block; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; max-width: 640px; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.3;
    color: var(--white);
}
.brand-desc {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #B7C7DA;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    padding: 0.55em 0.9em;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    font: 600 0.95rem var(--font-head);
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { flex: 0 0 auto; }
.site-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.site-nav-list li { margin: 0; }
.site-nav-list a {
    display: block;
    padding: 0.55em 0.95em;
    border-radius: 8px;
    color: #E6EEF7;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    background-image: none;
    transition: background-color .2s ease, color .2s ease;
}
.site-nav-list a:hover, .site-nav-list a:focus-visible { background-color: rgba(59, 130, 246, 0.25); color: var(--white); }
.site-nav-list .current-menu-item > a { background-color: var(--accent); color: var(--white); }

/* ---------- Заголовки секций ---------- */
.section-title, .page-title {
    position: relative;
    margin: 0 0 0.7em;
    padding-left: 1.1rem;
    border-left: 4px solid var(--accent);
    font-size: 2.25rem;
    line-height: 1.15;
}
.section-title::before, .page-title::before {
    content: "";
    display: inline-block;
    width: 0.32em; height: 0.32em;
    margin-right: 0.45em;
    border-radius: 50%;
    background: var(--amber);
    vertical-align: 0.18em;
}
.section-lead { max-width: 68ch; color: var(--muted); font-size: 1.1rem; margin: -0.2em 0 2.2rem; }

/* ---------- Главная ---------- */
.front-inner { width: 85%; margin-left: auto; margin-right: auto; }
.front-section { padding: 5.5rem 0; }
.tone-main { background-color: transparent; }
.tone-alt { background-color: var(--bg-alt); }
.figures { background-color: var(--bg-alt); }
.rule { width: min(92%, 1240px); margin: 0 auto; border: 0; border-top: 1px solid var(--line); }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background-color: var(--navy);
    padding: 7.5rem 0 7rem;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(100deg, rgba(14, 31, 54, 0.93) 0%, rgba(30, 58, 95, 0.8) 50%, rgba(30, 58, 95, 0.35) 100%);
    z-index: 1;
}
.hero .shell { position: relative; z-index: 2; }
.hero-title {
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.025em;
    max-width: 15ch;
    margin: 0 0 1.4rem;
}
.hero-title::after {
    content: "";
    display: inline-block;
    width: 0.2em; height: 0.2em;
    margin-left: 0.08em;
    border-radius: 50%;
    background: var(--amber);
}
.hero-lead { max-width: 56ch; font-size: 1.2rem; color: rgba(255, 255, 255, 0.78); margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Сетка направлений */
.dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.dir-card {
    position: relative;
    min-width: 0;
    padding: 2rem 1.7rem 1.8rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.dir-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transition: height .2s ease;
}
.dir-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.dir-card:hover::before { height: 4px; }
.dir-icon {
    width: 44px; height: 44px;
    display: block;
    margin-bottom: 1.1rem;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dir-card h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.dir-card p { margin: 0; color: #3F5266; font-size: 0.98rem; }

/* Последние записи */
.latest-more { margin: 2.4rem 0 0; }

/* Статистика */
.figures-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
}
.figure {
    min-width: 0;
    padding: 0.4rem 1.6rem;
    border-left: 1px solid var(--line);
}
.figure:first-child { border-left: 0; padding-left: 0; }
.figure dt {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 3.4rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.03em;
    margin-bottom: 0.6rem;
}
.figure dd { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.45; }

/* Чек-лист */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 860px; }
.checklist li {
    position: relative;
    margin: 0;
    padding: 1.35rem 0 1.35rem 3.2rem;
    border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
    content: "";
    position: absolute;
    left: 0; top: 1.45rem;
    width: 1.9rem; height: 1.9rem;
    border-radius: 50%;
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.checklist strong { display: block; font-family: var(--font-head); font-size: 1.28rem; line-height: 1.3; margin-bottom: 0.3rem; }
.checklist span { display: block; color: #3F5266; }

/* ---------- Карточки записей ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
.card-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-single .card-grid-two { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    z-index: 2;
    transition: height .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card:hover::before { height: 4px; }
.card.sticky::after {
    content: "Закреплено";
    position: absolute;
    top: 0.9rem; left: 0.9rem;
    z-index: 3;
    padding: 0.2em 0.65em;
    border-radius: 6px;
    background: var(--amber);
    color: #1A2B3C;
    font: 700 0.78rem var(--font-head);
}
.card-thumb { display: block; background-image: none; background-color: var(--bg-alt); }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1.3rem 1.4rem 1.5rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; }
.card-cat { color: var(--amber-dark); font-weight: 600; }
.card-title { margin: 0 0 0.6rem; font-size: 1.22rem; line-height: 1.3; }
.card-title a { color: var(--ink); background-image: linear-gradient(var(--accent), var(--accent)); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: #3F5266; font-size: 0.96rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { align-self: flex-start; margin-top: 0.7rem; font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }

.empty-note {
    padding: 1.6rem 1.8rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    color: var(--muted);
}

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 2rem 0 5rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem; }
.crumbs a { color: var(--accent); }
.crumbs-sep { margin: 0 0.35em; color: var(--line); }
.crumbs span:last-child { color: var(--ink); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 2rem; }
.page-head .page-title, .entry-head .page-title { font-size: 2.6rem; }
.archive-desc { color: var(--muted); max-width: 70ch; }

.entry {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 2.6rem 3rem;
    border-top: 2px solid var(--accent);
}
.entry-head { margin-bottom: 1.6rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--muted); font-size: 0.92rem; }
.entry-cover { margin: 0 0 2rem; }
.entry-cover img { display: block; width: 100%; border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.entry-content { max-width: 74ch; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: 8px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.4em; }
.entry-content h2 { padding-left: 0.8rem; border-left: 4px solid var(--accent); }
.entry-content .alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; }
.entry-tags a { padding: 0.25em 0.75em; background: var(--bg-alt); border-radius: 6px; font-size: 0.9rem; background-image: none; }
.entry-tags a:hover { background-color: var(--accent); color: var(--white); }
.page-links { margin-top: 1.5rem; font-weight: 600; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 1.7rem 1.6rem;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--accent);
    font-size: 1.12rem;
    color: var(--ink);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin: 0; padding: 0.65rem 0; border-bottom: 1px solid #E2E9F1; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: #1F4E8C; font-weight: 500; }
.sidebar a:hover { color: var(--accent); }
.sidebar .post-date { display: block; font-size: 0.82rem; color: var(--muted); }
.sidebar p, .sidebar .textwidget { color: var(--ink); }

/* ---------- Пагинация (type=plain) ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 2.8rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.85rem;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 700;
    background-image: none;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pager .page-numbers.dots { border: 0; background: transparent; min-width: auto; padding: 0 0.3rem; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: 0.6rem; max-width: 520px; margin: 1.2rem 0; }
.search-field {
    flex: 1;
    min-width: 0;
    padding: 0.75em 1em;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    font: inherit;
    color: var(--ink);
}
.search-field:focus { border-color: var(--accent); outline: none; }

/* ---------- 404 ---------- */
.notfound { padding: 2rem 0; }
.notfound-code {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 7rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.18;
}

/* ---------- Комментарии ---------- */
.comments {
    margin-top: 2.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 2.2rem 2.6rem;
}
.comments-title, .comment-reply-title { margin-top: 0; font-size: 1.5rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.6rem; border-left: 2px solid var(--bg-alt); }
.cmt-body { padding: 1.2rem 0; border-bottom: 1px solid #E2E9F1; }
.cmt-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.cmt-head img { border-radius: 50%; display: block; }
.cmt-author { display: block; font-family: var(--font-head); }
.cmt-head time { font-size: 0.85rem; color: var(--muted); }
.cmt-moderation { color: var(--amber-dark); font-size: 0.9rem; }
.cmt-reply a { font-weight: 600; font-size: 0.92rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 0.7em 0.9em;
    border: 2px solid var(--line);
    border-radius: 8px;
    font: inherit;
    background: var(--bg);
    color: var(--ink);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); outline: none; }
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form .submit {
    padding: 0.8em 1.6em;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: var(--white);
    font: 700 1rem var(--font-head);
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.comment-form .submit:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.comments .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }

/* ---------- Подвал ---------- */
.colophon { background: var(--navy); color: #C9D6E5; padding: 4rem 0 2rem; margin-top: 0; }
.colophon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1.5rem; color: #C9D6E5; }
.colophon .widget-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--white);
}
.colophon .widget-title::before {
    content: "";
    display: inline-block;
    width: 0.4em; height: 0.4em;
    margin-right: 0.5em;
    border-radius: 50%;
    background: var(--amber);
    vertical-align: 0.15em;
}
.colophon p, .colophon .textwidget { color: #C9D6E5; font-size: 0.95rem; }
.colophon a { color: #8FBCFF; }
.colophon a:hover { color: var(--white); }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin: 0 0 0.55rem; }
.colophon .post-date { color: #93A7BD; }
.colophon-copy {
    margin: 2.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(203, 213, 225, 0.2);
    font-size: 0.88rem;
    color: #93A7BD;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 920px;
    margin: 0 auto;
    padding: 1.1rem 1.4rem;
    background: var(--white);
    color: var(--ink);
    border-radius: 12px;
    border-top: 3px solid var(--accent);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.22);
}
.cookie-text { margin: 0; font-size: 0.93rem; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .masthead-row { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .site-nav { flex: 1 0 100%; }
    .site-nav-list { flex-direction: column; gap: 0.2rem; padding: 0.4rem 0 0.6rem; }
    .js-ready .site-nav:not(.is-open) { display: none; }
    .front-inner { width: 92%; }
    .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid, .layout-single .card-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid-two { grid-template-columns: minmax(0, 1fr); }
    .figures-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .figure:nth-child(3) { border-left: 0; padding-left: 0; }
    .layout-with-sidebar { display: block; }
    .sidebar { margin-top: 2.5rem; }
    .layout-single .content-area { width: 100%; }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-title { font-size: 2.8rem; }
    .entry { padding: 2rem 2rem; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .brand-desc { display: none; }
    .brand-name { font-size: 0.86rem; }
    .brand-mark, .brand-logo { width: 40px; height: 40px; }
    .front-section { padding: 3.5rem 0; }
    .front-inner { width: 100%; }
    .hero { padding: 4.5rem 0 4rem; }
    .hero-title { font-size: 2.15rem; }
    .hero-lead { font-size: 1.05rem; }
    .section-title, .page-title, .page-head .page-title, .entry-head .page-title { font-size: 1.75rem; }
    .dir-grid, .card-grid, .card-grid-two, .layout-single .card-grid-two { grid-template-columns: minmax(0, 1fr); }
    .dir-card { padding: 1.6rem 1.4rem; }
    .figures-row { grid-template-columns: minmax(0, 1fr); }
    .figure { border-left: 0; padding: 0 0 1.2rem; border-bottom: 1px solid var(--line); }
    .figure:last-child { border-bottom: 0; }
    .figure dt { font-size: 2.8rem; }
    .checklist li { padding-left: 2.8rem; }
    .entry { padding: 1.5rem 1.3rem; }
    .comments { padding: 1.5rem 1.3rem; }
    .sidebar { padding: 1.4rem 1.3rem; }
    .empty-note { padding: 1.3rem 1.3rem; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; }
    .search-form { flex-direction: column; }
    .entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em 0; }
}
