/*
Theme Name: dds_duncanleadershipinstitute.com
Theme URI: https://duncanleadershipinstitute.com/
Author: Елена Королёва
Author URI: https://duncanleadershipinstitute.com/
Description: Контентный портал и экспертный ресурс для административных и корпоративных специалистов с материалами по деловым навыкам, организации работы, офисной эффективности, карьерному росту и профессиональной коммуникации.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dlinstitute
*/

/* =========================================================
   РЕСЕТ И БАЗА
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: "Georgia", "Cambria", "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.65;
    color: #1E2629;
    background: #F9F8F6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    color: #1E6F5C;
    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; }

a {
    color: #1E6F5C;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}
a:hover {
    color: #144D40;
    border-bottom-color: #1E6F5C;
}

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

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

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.4em;
    border-left: 4px solid #C4A26A;
    background: #FBF5EA;
    color: #4A3E24;
    font-style: italic;
}

code, pre {
    font-family: "SF Mono", "Consolas", "Monaco", monospace;
    background: #EFEEEB;
    color: #1E2629;
    border-radius: 4px;
}
code { padding: .1em .35em; font-size: .93em; }
pre { padding: 1em; overflow-x: auto; font-size: .92em; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid #D1D6D8;
}
th, td {
    border: 1px solid #D1D6D8;
    padding: .7em .9em;
    text-align: left;
}
th {
    background: #EFEEEB;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    color: #1E2629;
}

/* =========================================================
   КОНТЕЙНЕРЫ
   ========================================================= */
.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

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

/* =========================================================
   ШАПКА
   ========================================================= */
.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #D1D6D8;
    padding: 18px 0;
}
.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
}
.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-text { min-width: 0; }
.brand-title {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1E2629;
    line-height: 1.3;
    display: block;
    margin-bottom: 4px;
    border: none;
}
.brand-title:hover { color: #1E6F5C; border: none; }
.brand-tag {
    font-size: 0.82rem;
    color: #5A6A70;
    line-height: 1.4;
    display: block;
}

.primary-nav { flex-shrink: 0; }
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.primary-nav a {
    display: inline-block;
    padding: 8px 14px;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.93rem;
    color: #1E2629;
    border-radius: 6px;
    border: none;
    transition: background .2s ease, color .2s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    background: #E6F0ED;
    color: #1E6F5C;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #D1D6D8;
    border-radius: 6px;
    padding: 9px 14px;
    font-family: inherit;
    font-size: 0.93rem;
    color: #1E2629;
    cursor: pointer;
    align-items: center;
    gap: 8px;
}
.menu-toggle .toggle-bars {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}
.menu-toggle .toggle-bars span {
    width: 18px;
    height: 2px;
    background: #1E2629;
}

/* =========================================================
   ПОЛОСА РОЛЕЙ
   ========================================================= */
.roles-bar {
    background: #EFEEEB;
    border-bottom: 1px solid #D1D6D8;
    padding: 12px 0;
}
.roles-bar .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}
.roles-bar-label {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5A6A70;
    font-weight: 600;
}
.roles-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.roles-list a {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    background: #E6F0ED;
    color: #1E6F5C;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.85rem;
    border: none;
    transition: all .2s ease;
}
.roles-list a:hover {
    background: #1E6F5C;
    color: #FFFFFF;
}

/* =========================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================= */
.crumbs {
    padding: 16px 0 0;
    font-size: 0.87rem;
    color: #5A6A70;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}
.crumbs a {
    color: #5A6A70;
    border: none;
}
.crumbs a:hover { color: #1E6F5C; }
.crumbs .sep {
    margin: 0 8px;
    color: #C4A26A;
}
.crumbs .current { color: #1E2629; }

/* =========================================================
   LAYOUT — С САЙДБАРОМ / БЕЗ
   ========================================================= */
.layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}
.layout.has-sidebar .content-col { flex: 0 1 67%; min-width: 0; }
.layout.has-sidebar .sidebar-col { flex: 0 1 27%; min-width: 0; }
.layout.no-sidebar .content-col {
    flex: 0 1 85%;
    margin: 0 auto;
    min-width: 0;
}

/* =========================================================
   КАРТОЧКИ ЗАПИСЕЙ
   ========================================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin: 0 0 40px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #D1D6D8;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 38, 41, 0.08);
}

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: #EFEEEB;
}
.card-thumb-wrap a {
    display: block;
    border: none;
}
.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-type-marker {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1E6F5C;
    z-index: 2;
}
.card-type-marker svg { width: 18px; height: 18px; }

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

.card-cats {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #C4A26A;
    margin-bottom: 8px;
    font-weight: 600;
}
.card-cats a { color: #C4A26A; border: none; }
.card-cats a:hover { color: #1E6F5C; }

.card-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    line-height: 1.35;
}
.card-title a { color: #1E2629; border: none; }
.card-title a:hover { color: #1E6F5C; }

.card-meta {
    font-size: 0.82rem;
    color: #5A6A70;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    margin-bottom: 12px;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.9rem;
    color: #1E6F5C;
    font-weight: 600;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.card-more .arrow { transition: transform .2s ease; }
.card-more:hover .arrow { transform: translateX(4px); }

/* =========================================================
   ЗАПИСЬ (single)
   ========================================================= */
.entry {
    background: #FFFFFF;
    border: 1px solid #D1D6D8;
    border-radius: 8px;
    padding: 32px 36px 40px;
    margin-bottom: 30px;
}

.expert-sign {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #F4F1EB;
    border-radius: 8px;
    margin-bottom: 18px;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.88rem;
}
.expert-sign .photo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #1E6F5C;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.expert-sign .expert-info strong { color: #1E2629; display: block; margin-bottom: 2px; }
.expert-sign .expert-info span { color: #5A6A70; font-size: 0.82rem; }
.expert-sign .verified {
    margin-left: auto;
    color: #1E6F5C;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.entry-title {
    margin: 0 0 14px;
    font-size: 2rem;
    color: #1E2629;
}

.entry-meta {
    font-size: 0.87rem;
    color: #5A6A70;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #D1D6D8;
}

.entry-content {
    font-size: 1.02rem;
    line-height: 1.75;
}
.entry-content h2 { font-size: 1.55rem; margin-top: 1.5em; }
.entry-content h3 { font-size: 1.25rem; margin-top: 1.3em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content img { border-radius: 6px; margin: 1em 0; }

.skill-structure {
    margin: 2em 0;
    padding: 20px 24px;
    background: #F4F1EB;
    border-radius: 8px;
    border-left: 4px solid #C4A26A;
}
.skill-structure-title {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5A6A70;
    font-weight: 600;
    margin: 0 0 14px;
}
.skill-structure-steps {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.skill-step {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1px solid #D1D6D8;
    border-radius: 6px;
    text-align: center;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.9rem;
    color: #1E2629;
    font-weight: 600;
}
.skill-link {
    flex: 0 0 22px;
    height: 2px;
    background: linear-gradient(to right, #C4A26A, #1E6F5C);
}

.focus-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #EFEEEB;
    color: #1E2629;
    border: 1px solid #D1D6D8;
    border-radius: 6px;
    padding: 6px 12px;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all .2s ease;
}
.focus-mode-toggle:hover {
    border-color: #1E6F5C;
    color: #1E6F5C;
}

body.focus-mode .sidebar-col,
body.focus-mode .site-header,
body.focus-mode .roles-bar,
body.focus-mode .site-footer,
body.focus-mode .crumbs,
body.focus-mode .cookie-bar { display: none !important; }
body.focus-mode .layout.has-sidebar .content-col { flex: 0 1 100%; max-width: 760px; margin: 0 auto; }
body.focus-mode .entry-content { font-size: 1.12rem; line-height: 2.0; }
body.focus-mode .entry { box-shadow: none; border: none; padding: 20px 0; }
body.focus-mode .focus-exit {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 9999;
    background: #1E6F5C;
    color: #FFFFFF;
    border: none;
    padding: 9px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.88rem;
}
.focus-exit { display: none; }
body.focus-mode .focus-exit { display: inline-block; }

/* =========================================================
   ГЛАВНАЯ
   ========================================================= */
.hero-block {
    background: linear-gradient(135deg, #1E6F5C 0%, #144D40 100%);
    color: #FFFFFF;
    padding: 60px 44px;
    border-radius: 10px;
    margin-bottom: 50px;
}
.hero-block h1 {
    color: #FFFFFF;
    font-size: 2.3rem;
    margin: 0 0 18px;
}
.hero-block p {
    font-size: 1.1rem;
    max-width: 720px;
    opacity: 0.93;
    margin: 0 0 24px;
}
.hero-btn {
    display: inline-block;
    background: #C4A26A;
    color: #FFFFFF;
    padding: 12px 28px;
    border-radius: 6px;
    border: none;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform .2s ease, background .2s ease;
}
.hero-btn:hover {
    background: #A88B56;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.home-section {
    margin: 0 0 56px;
}
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #D1D6D8;
}
.section-head h2 {
    margin: 0;
    font-size: 1.55rem;
}
.section-head .section-hint {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.85rem;
    color: #5A6A70;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.pillar {
    background: #FFFFFF;
    border: 1px solid #D1D6D8;
    border-radius: 8px;
    padding: 24px 26px;
    transition: border-color .2s ease;
}
.pillar:hover { border-color: #1E6F5C; }
.pillar-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #E6F0ED;
    color: #1E6F5C;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}
.pillar p {
    margin: 0;
    font-size: 0.95rem;
    color: #3B4549;
    line-height: 1.6;
}

.focus-spotlight {
    background: #FFFFFF;
    border: 1px solid #D1D6D8;
    border-left: 5px solid #C4A26A;
    border-radius: 8px;
    padding: 32px 36px;
    margin: 0 0 50px;
}
.focus-spotlight-label {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C4A26A;
    font-weight: 700;
    margin-bottom: 10px;
}
.focus-spotlight h3 {
    margin: 0 0 14px;
    font-size: 1.5rem;
    color: #1E2629;
}
.focus-spotlight blockquote {
    margin: 0 0 20px;
    padding: 0 0 0 16px;
    border-left: 3px solid #1E6F5C;
    background: none;
    font-style: italic;
    color: #3B4549;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.role-card {
    background: #FFFFFF;
    border: 1px solid #D1D6D8;
    border-radius: 8px;
    padding: 22px 24px;
    text-align: left;
    transition: all .2s ease;
    display: block;
    border-bottom: 1px solid #D1D6D8;
}
.role-card:hover {
    border-color: #1E6F5C;
    background: #E6F0ED;
    transform: translateY(-2px);
}
.role-card-label {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5A6A70;
    font-weight: 600;
    margin-bottom: 8px;
}
.role-card strong {
    color: #1E6F5C;
    font-size: 1.05rem;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

/* =========================================================
   САЙДБАР
   ========================================================= */
.widget {
    background: #FFFFFF;
    border: 1px solid #D1D6D8;
    border-radius: 8px;
    padding: 22px 24px;
    margin-bottom: 24px;
}
.widget-title {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5A6A70;
    font-weight: 700;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #C4A26A;
}
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li {
    padding: 7px 0;
    border-bottom: 1px dashed #D1D6D8;
    font-size: 0.95rem;
}
.widget li:last-child { border-bottom: none; }
.widget a {
    color: #1E2629;
    border: none;
}
.widget a:hover { color: #1E6F5C; }

.tool-of-week {
    background: #FBF5EA;
    border: 1px dashed #C4A26A;
    border-radius: 8px;
    padding: 20px 22px;
    margin-bottom: 24px;
}
.tool-of-week .tool-label {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #C4A26A;
    font-weight: 700;
    margin-bottom: 8px;
}
.tool-of-week h4 {
    margin: 0 0 10px;
    font-size: 1.05rem;
    color: #1E2629;
}
.tool-of-week p {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #3B4549;
}
.tool-of-week .tool-link {
    display: inline-block;
    background: #C4A26A;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
}
.tool-of-week .tool-link:hover { background: #A88B56; color: #FFFFFF; }

/* =========================================================
   ПАГИНАЦИЯ
   ========================================================= */
.pagination {
    margin: 40px 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #D1D6D8;
    border-radius: 6px;
    color: #1E2629;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.93rem;
    background: #FFFFFF;
    transition: all .2s ease;
}
.pagination .page-numbers:hover {
    border-color: #1E6F5C;
    color: #1E6F5C;
}
.pagination .page-numbers.current {
    background: #1E6F5C;
    color: #FFFFFF;
    border-color: #1E6F5C;
}
.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

/* =========================================================
   КОММЕНТАРИИ
   ========================================================= */
.comments-area {
    background: #FFFFFF;
    border: 1px solid #D1D6D8;
    border-radius: 8px;
    padding: 28px 32px;
}
.comments-title { margin: 0 0 20px; font-size: 1.3rem; }
.comments-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.comments-list .comment {
    padding: 16px 18px;
    background: #F4F1EB;
    border-radius: 6px;
    margin-bottom: 14px;
    list-style: none;
}
.comments-list .children {
    list-style: none;
    padding-left: 24px;
    margin-top: 14px;
    border-left: 2px solid #D1D6D8;
}
.comment-meta {
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.85rem;
    color: #5A6A70;
    margin-bottom: 8px;
}
.comment-meta strong { color: #1E2629; }
.comment-body p { margin: 0 0 0.5em; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D1D6D8;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #FFFFFF;
    color: #1E2629;
}
.comment-respond label {
    display: block;
    margin: 10px 0 5px;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.88rem;
    color: #3B4549;
}
.comment-respond .form-submit { margin-top: 14px; }
.comment-respond input[type="submit"] {
    background: #1E6F5C;
    color: #FFFFFF;
    border: 1px solid #1E6F5C;
    padding: 10px 22px;
    border-radius: 6px;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}
.comment-respond input[type="submit"]:hover {
    background: #144D40;
    transform: translateY(-2px);
}

/* =========================================================
   ФОРМА ПОИСКА
   ========================================================= */
.search-form {
    display: flex;
    gap: 0;
    max-width: 520px;
    margin: 20px 0;
}
.search-form input[type="search"] {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid #D1D6D8;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #FFFFFF;
}
.search-form button,
.search-form input[type="submit"] {
    background: #1E6F5C;
    color: #FFFFFF;
    border: 1px solid #1E6F5C;
    padding: 11px 22px;
    border-radius: 0 6px 6px 0;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
}

/* =========================================================
   404
   ========================================================= */
.not-found {
    text-align: center;
    padding: 60px 20px;
    background: #FFFFFF;
    border: 1px solid #D1D6D8;
    border-radius: 8px;
}
.not-found h1 { font-size: 4.5rem; margin: 0 0 10px; }
.not-found p { font-size: 1.1rem; color: #5A6A70; }
.not-found .search-form { margin: 24px auto; }
.not-found .home-link {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 22px;
    background: #1E6F5C;
    color: #FFFFFF;
    border-radius: 6px;
    border: none;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
}
.not-found .home-link:hover { background: #144D40; color: #FFFFFF; }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.site-footer {
    background: #1E2629;
    color: #D1D6D8;
    padding: 50px 0 0;
    margin-top: 40px;
}
.site-footer a { color: #E6F0ED; border: none; }
.site-footer a:hover { color: #C4A26A; }

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #3D4549;
}
.footer-col .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}
.footer-col .widget-title {
    color: #FFFFFF;
    border-bottom: 2px solid #C4A26A;
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.footer-col .widget li {
    border-bottom: 1px solid #3D4549;
}
.footer-col .widget a { color: #D1D6D8; }
.footer-col .widget a:hover { color: #C4A26A; }

.site-credits {
    padding: 22px 0;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.85rem;
    color: #8A9499;
    text-align: center;
}

/* =========================================================
   COOKIE-БАННЕР
   ========================================================= */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1E2629;
    color: #E6F0ED;
    padding: 16px 22px;
    z-index: 9999;
    display: none;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}
.cookie-bar.visible { display: block; }
.cookie-bar-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}
.cookie-bar p {
    margin: 0;
    flex: 1;
    font-size: 0.92rem;
    line-height: 1.5;
}
.cookie-bar a { color: #C4A26A; border-bottom: 1px solid #C4A26A; }
.cookie-accept {
    background: #C4A26A;
    color: #1E2629;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}
.cookie-accept:hover { background: #A88B56; }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 960px) {
    .site-header .wrap {
        flex-wrap: wrap;
    }
    .menu-toggle {
        display: inline-flex;
        order: 3;
    }
    .primary-nav {
        order: 4;
        flex-basis: 100%;
        display: none;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul {
        flex-direction: column;
        gap: 2px;
        padding: 10px 0 4px;
    }
    .primary-nav a { display: block; padding: 10px 14px; }

    .layout.has-sidebar .content-col,
    .layout.has-sidebar .sidebar-col {
        flex: 0 1 100%;
    }

    .entry { padding: 26px 24px 30px; }
    .entry-title { font-size: 1.7rem; }
    .hero-block { padding: 44px 28px; }
    .hero-block h1 { font-size: 1.8rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .card-body { padding: 18px 18px 20px; }

    .entry { padding: 22px 20px 26px; }
    .entry-title { font-size: 1.5rem; }
    .hero-block { padding: 32px 22px; }
    .hero-block h1 { font-size: 1.5rem; }

    .footer-cols { gap: 28px; }

    .cookie-bar-inner { flex-direction: column; align-items: stretch; }
    .cookie-accept { width: 100%; }

    .skill-structure-steps { flex-direction: column; align-items: stretch; gap: 8px; }
    .skill-link { width: 2px; height: 16px; flex: 0 0 16px; margin: 0 auto; background: linear-gradient(to bottom, #C4A26A, #1E6F5C); }

    .roles-bar .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }

    .expert-sign { flex-wrap: wrap; }
    .expert-sign .verified { margin-left: 0; width: 100%; margin-top: 6px; }
}

/* Чтение экранного доступа */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}
