/*
Theme Name: dds_uttransformaciondigital.com
Author: Алексей Марков
Description: Медиа- и экспертный ресурс для компаний в России о цифровизации бизнеса.
Version: 1.1
Text Domain: dds_uttransformaciondigital
*/

/* =========================
   Базовые переменные и сброс
   ========================= */
:root {
    --bg: #F8F9FA;
    --ink: #1A2B3C;
    --ink-soft: #4A5568;
    --accent: #00A86B;
    --accent-dark: #008F5A;
    --accent-warm: #FF6B35;
    --tech: #2D3E50;
    --tech-bg: #1E2A36;
    --tech-gold: #FF8C00;
    --tech-teal: #4ECDC4;
    --line: #E2E8F0;
    --line-soft: #EDF2F7;
    --radius: 8px;
    --radius-sm: 4px;
    --trans: 0.2s ease;
    --shadow-sm: 0 1px 3px rgba(26, 43, 60, 0.06);
    --shadow-md: 0 6px 18px rgba(26, 43, 60, 0.08);
    --shadow-lg: 0 12px 28px rgba(26, 43, 60, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--trans);
}
a:hover { color: var(--accent-dark); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    line-height: 1.25;
    margin: 1.4em 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

code, pre, kbd, samp {
    font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

pre {
    background: var(--tech-bg);
    color: #E2E8F0;
    padding: 16px 18px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.92rem;
    line-height: 1.55;
    position: relative;
}
pre code { background: none; color: inherit; padding: 0; }

:not(pre) > code {
    background: var(--line-soft);
    color: var(--tech);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.92em;
}

blockquote {
    border-left: 4px solid var(--accent);
    background: #FFFFFF;
    padding: 14px 20px;
    margin: 1.2em 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--ink);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    border: 1px solid var(--line);
    background: #FFFFFF;
}
th, td {
    border: 1px solid var(--line);
    padding: 10px 14px;
    text-align: left;
}
th {
    background: var(--line-soft);
    font-weight: 600;
}

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 2em 0;
}

/* =========================
   Раскладка
   ========================= */
.wrap {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 22px;
}

.layout {
    display: grid;
    gap: 36px;
    margin: 32px 0 56px;
}
.layout.has-aside {
    grid-template-columns: 67% 27%;
    justify-content: space-between;
}
.layout.no-aside {
    grid-template-columns: 85%;
    justify-content: center;
}

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

/* =========================
   Шапка
   ========================= */
.site-head {
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
}
.site-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    display: block;
}
.brand-text { min-width: 0; }
.brand-name {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    display: block;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.brand-desc {
    color: var(--ink-soft);
    font-size: 0.85rem;
    line-height: 1.4;
    margin-top: 2px;
    display: none;
}

@media (min-width: 960px) {
    .brand-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.main-nav a {
    color: var(--ink);
    padding: 8px 14px;
    display: inline-block;
    position: relative;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: color var(--trans);
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--trans);
    border-radius: 2px;
}
.main-nav a:hover {
    color: var(--accent);
    text-decoration: none;
}
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after {
    transform: scaleX(1);
}
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--accent); }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 960px) {
    .site-head-inner { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .main-nav {
        order: 10;
        flex-basis: 100%;
        display: none;
    }
    .main-nav.is-open { display: block; padding-bottom: 10px; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
    .main-nav a::after { display: none; }
}

/* =========================
   Хлебные крошки
   ========================= */
.crumbs {
    padding: 14px 0;
    font-size: 0.9rem;
    color: var(--ink-soft);
    background: transparent;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}
.crumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before {
    content: "›";
    margin-right: 10px;
    color: var(--ink-soft);
}
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent); }
.crumbs .crumbs-here { color: var(--ink); font-weight: 500; }

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

.card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
    position: relative;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #D4DBE3;
}

.card::before {
    content: "";
    display: block;
    height: 4px;
    width: 100%;
    background: var(--accent);
}
.card.tag-automation::before { background: #00A86B; }
.card.tag-solutions::before { background: #3B82F6; }
.card.tag-training::before { background: #FF8C00; }
.card.tag-cases::before { background: #8B5CF6; }

.card-thumb-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--line-soft);
}
.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.03); }

.card-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-meta {
    font-size: 0.82rem;
    color: var(--ink-soft);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.card-meta .card-cats a {
    color: var(--accent);
    background: rgba(0, 168, 107, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.card-meta .card-cats a:hover { background: rgba(0, 168, 107, 0.16); text-decoration: none; }

.card-title {
    font-size: 1.15rem;
    margin: 0 0 10px;
    line-height: 1.35;
}
.card-title a {
    color: var(--ink);
}
.card-title a:hover { color: var(--accent); text-decoration: none; }

.card-excerpt {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 14px;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
    padding: 0;
}
.card-excerpt p:last-child { margin-bottom: 0; }

.card-complexity {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin-right: auto;
}
.card-complexity .gear {
    width: 12px; height: 12px;
    display: inline-block;
    background-color: var(--line);
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19.4 13a7.5 7.5 0 0 0 0-2l2-1.5-2-3.4-2.4.8a7.5 7.5 0 0 0-1.7-1l-.4-2.5h-4l-.4 2.5a7.5 7.5 0 0 0-1.7 1l-2.4-.8-2 3.4L6.6 11a7.5 7.5 0 0 0 0 2l-2 1.5 2 3.4 2.4-.8a7.5 7.5 0 0 0 1.7 1l.4 2.5h4l.4-2.5a7.5 7.5 0 0 0 1.7-1l2.4.8 2-3.4L19.4 13zM12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/></svg>") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M19.4 13a7.5 7.5 0 0 0 0-2l2-1.5-2-3.4-2.4.8a7.5 7.5 0 0 0-1.7-1l-.4-2.5h-4l-.4 2.5a7.5 7.5 0 0 0-1.7 1l-2.4-.8-2 3.4L6.6 11a7.5 7.5 0 0 0 0 2l-2 1.5 2 3.4 2.4-.8a7.5 7.5 0 0 0 1.7 1l.4 2.5h4l.4-2.5a7.5 7.5 0 0 0 1.7-1l2.4.8 2-3.4L19.4 13zM12 15a3 3 0 1 1 0-6 3 3 0 0 1 0 6z'/></svg>") center/contain no-repeat;
}
.card-complexity .gear.on { background-color: var(--accent); }

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

/* =========================
   Кнопки
   ========================= */
.btn, .btn-secondary, .btn-tech {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--trans), box-shadow var(--trans), background var(--trans), color var(--trans), border-color var(--trans);
    border: 1.5px solid transparent;
    line-height: 1.2;
    font-family: inherit;
}

.btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #FFFFFF;
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-secondary:hover {
    background: rgba(0, 168, 107, 0.1);
    color: var(--accent-dark);
    text-decoration: none;
}

.btn-tech {
    background: var(--line-soft);
    color: var(--ink-soft);
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}
.btn-tech:hover {
    background: #DDE4EC;
    color: var(--ink);
    text-decoration: none;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Кнопка "Копировать код" у pre */
.code-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 10px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: background var(--trans);
}
.code-copy:hover { background: rgba(255, 255, 255, 0.18); }

/* =========================
   Пагинация
   ========================= */
.pager {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 30px 0 10px;
    list-style: none;
    padding: 0;
}
.pager a, .pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    color: var(--ink);
    border: 1px solid var(--line);
    font-weight: 500;
    font-size: 0.95rem;
    transition: background var(--trans), color var(--trans), border-color var(--trans);
    text-decoration: none;
}
.pager a:hover {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
    text-decoration: none;
}
.pager .current {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}
.pager .dots { background: transparent; border: 0; }

/* =========================
   Сайдбар
   ========================= */
.aside .widget {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 22px;
}
.aside .widget-title {
    font-size: 1rem;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.aside ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.aside li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.95rem;
}
.aside li:last-child { border-bottom: none; }

/* =========================
   Подвал
   ========================= */
.site-foot {
    background: var(--tech);
    color: #CBD5E0;
    padding: 48px 0 20px;
    margin-top: 60px;
}
.site-foot a { color: #E2E8F0; }
.site-foot a:hover { color: var(--tech-teal); }

.foot-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 36px;
    margin-bottom: 32px;
    align-items: start;
}

.foot-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}
.foot-col .widget-title {
    color: #FFFFFF;
    font-size: 1rem;
    margin: 0 0 14px;
}
.foot-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.foot-col li { padding: 4px 0; font-size: 0.93rem; }

.foot-col .widget {
    margin-bottom: 18px;
    width: 100%;
}
.foot-col .widget:last-child { margin-bottom: 0; }

.foot-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
    text-align: center;
    font-size: 0.85rem;
    color: #94A3B8;
}

@media (max-width: 960px) {
    .foot-cols { grid-template-columns: 1fr; gap: 28px; }
}

/* Технологический радар */
.tech-radar {
    background: rgba(78, 205, 196, 0.06);
    border: 1px solid rgba(78, 205, 196, 0.18);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-top: 26px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.tech-radar-title {
    color: var(--tech-teal);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 8px;
    font-weight: 600;
}
.tech-radar-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 4px;
}
.tech-radar-item {
    color: #CBD5E0;
    font-size: 0.88rem;
    white-space: normal;
    word-break: break-word;
    line-height: 1.5;
}
.tech-radar-item b { color: var(--tech-teal); font-weight: 600; margin-right: 4px; }

/* =========================
   Главная — тематические блоки
   ========================= */
.hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #F2F7F4 100%);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 48px 44px;
    margin: 30px 0 40px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -80px; right: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(0, 168, 107, 0.12), transparent 70%);
    pointer-events: none;
}
.hero-label {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.hero-title {
    font-size: 2.3rem;
    margin: 0 0 16px;
    max-width: 800px;
    line-height: 1.2;
}
.hero-lead {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 720px;
    margin: 0 0 24px;
}
.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .hero { padding: 30px 22px; }
    .hero-title { font-size: 1.6rem; }
}

.section-block {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 36px 34px;
    margin: 0 0 32px;
}
.section-eyebrow {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.section-title {
    font-size: 1.75rem;
    margin: 0 0 10px;
}
.section-lead {
    color: var(--ink-soft);
    max-width: 820px;
    margin: 0 0 26px;
    font-size: 1.02rem;
}

/* "Умные теги" категорий */
.smart-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.smart-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--ink);
    font-weight: 500;
    transition: border-color var(--trans), color var(--trans), background var(--trans);
}
.smart-tag::before {
    content: "#";
    color: var(--accent);
    font-weight: 700;
}
.smart-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 168, 107, 0.04);
    text-decoration: none;
}

/* Шаги-процессы (иконографика) */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.step {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    position: relative;
}
.step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.step-title {
    font-size: 1.05rem;
    margin: 0 0 6px;
    color: var(--ink);
    font-weight: 600;
}
.step-text {
    color: var(--ink-soft);
    font-size: 0.93rem;
    margin: 0;
}

/* Песочница процессов — SVG-интерактив */
.sandbox {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    overflow-x: auto;
}
.sandbox svg { display: block; width: 100%; min-width: 640px; height: auto; }
.sandbox-node {
    cursor: pointer;
    transition: transform 0.2s ease;
    transform-origin: center;
    transform-box: fill-box;
}
.sandbox-node:hover { transform: scale(1.04); }
.sandbox-node rect, .sandbox-node circle {
    fill: #FFFFFF;
    stroke: var(--accent);
    stroke-width: 2;
    transition: fill var(--trans);
}
.sandbox-node:hover rect, .sandbox-node:hover circle {
    fill: rgba(0, 168, 107, 0.08);
}
.sandbox-node text {
    fill: var(--ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    pointer-events: none;
}
.sandbox-hint {
    margin: 12px 0 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
    text-align: center;
}

/* =========================
   Single запись
   ========================= */
.entry-header { margin: 10px 0 22px; }
.entry-title { font-size: 2rem; margin: 0 0 12px; line-height: 1.2; }
.entry-meta {
    color: var(--ink-soft);
    font-size: 0.9rem;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.entry-thumb {
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0 0 24px;
}
.entry-thumb img {
    width: 100%;
    height: auto;
    display: block;
}
.entry-content {
    font-size: 1.02rem;
    line-height: 1.75;
}
.entry-content p { margin: 0 0 1.1em; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content img {
    border-radius: var(--radius);
    margin: 1.2em 0;
}

.post-cats, .post-tags {
    margin: 24px 0 0;
    font-size: 0.9rem;
}
.post-cats a, .post-tags a {
    display: inline-block;
    margin: 4px 4px 4px 0;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--line-soft);
    color: var(--tech);
}
.post-cats a:hover, .post-tags a:hover { background: rgba(0, 168, 107, 0.14); color: var(--accent); text-decoration: none; }

/* =========================
   Комментарии
   ========================= */
.comments-area {
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}
.comments-title { font-size: 1.4rem; margin: 0 0 20px; }
.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.commentlist .children {
    list-style: none;
    padding-left: 26px;
    margin: 16px 0 0;
}
.comment-item {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 14px;
}
.comment-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}
.comment-meta .avatar { border-radius: 50%; }
.comment-author { color: var(--ink); font-weight: 600; }
.comment-body p { margin: 0 0 0.6em; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-reply-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--accent);
}

.comment-form {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.comment-form p { margin: 0 0 14px; }
.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    transition: border-color var(--trans), box-shadow var(--trans);
}
.comment-form input:focus,
.comment-form textarea:focus,
.search-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.12);
}
.comment-form textarea { min-height: 110px; resize: vertical; }

/* =========================
   Форма поиска
   ========================= */
.search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.search-form input[type="search"] { flex: 1; }
.search-form button {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #FFFFFF;
    border: 0;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

/* =========================
   404 страница
   ========================= */
.notfound {
    text-align: center;
    padding: 40px 20px;
    max-width: 640px;
    margin: 30px auto;
}
.notfound h1 {
    font-size: 4.5rem;
    color: var(--accent);
    margin: 0;
    line-height: 1;
}
.notfound h2 { margin-top: 10px; }
.notfound p { color: var(--ink-soft); margin-bottom: 24px; }
.notfound .search-form { max-width: 440px; margin: 0 auto 20px; }

/* =========================
   Cookie-баннер
   ========================= */
.cookie-bar {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9990;
    background: var(--ink);
    color: #E2E8F0;
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    max-width: 820px;
    margin: 0 auto;
}
.cookie-bar.visible { transform: translateY(0); opacity: 1; }
.cookie-bar p { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.cookie-bar a { color: var(--tech-teal); }
.cookie-accept {
    flex-shrink: 0;
    padding: 9px 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #FFFFFF;
    border: 0;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.cookie-accept:hover { filter: brightness(1.05); }

@media (max-width: 600px) {
    .cookie-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

/* =========================
   Горизонтальная карточка
   (для главной — последние записи)
   ========================= */
.card-row {
    display: flex;
    align-items: stretch;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 18px;
    transition: box-shadow var(--trans), border-color var(--trans);
}
.card-row:hover { box-shadow: var(--shadow-sm); border-color: #D4DBE3; }
.card-row::before { display: none; }

.card-row .card-thumb-wrap {
    flex: 0 0 260px;
    position: relative;
    overflow: hidden;
    background: var(--line-soft);
}
.card-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: auto;
}
.card-row .card-body {
    flex: 1;
    padding: 20px 24px;
}

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

/* =========================
   Адаптив — мелочи
   ========================= */
@media (max-width: 600px) {
    body { font-size: 15px; }
    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.35rem; }
    .wrap { padding: 0 16px; }
    .section-block { padding: 24px 20px; }
    .entry-title { font-size: 1.6rem; }
    .hero-title { font-size: 1.6rem; }
}

/* Выравнивание вложений и блоков Гутенберга */
.alignleft { float: left; margin: 0 1.2em 0.8em 0; }
.alignright { float: right; margin: 0 0 0.8em 1.2em; }
.aligncenter { display: block; margin: 1em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .screen-reader-text {
    font-size: 0.85rem;
    color: var(--ink-soft);
    text-align: center;
}
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px; height: 1px;
    overflow: hidden;
}
