/*
Theme Name: dds_evgeniasokolova.ru
Author: Евгения Соколова
Description: Информационная тема для экспертного блога о мышлении, обучении и профессиональном развитии.
Version: 1.1
Text Domain: eslab
*/

/* ============================ Базовые токены ============================ */
:root {
    --ink: #1d232b;
    --ink-soft: #4a5360;
    --paper: #f6f2ea;
    --paper-2: #fffdf8;
    --line: #e3dccd;
    --accent: #2f5d62;
    --accent-d: #234648;
    --accent-l: #cfe0df;
    --amber: #c97a3f;
    --dark: #1b2330;
    --dark-soft: #2a3344;
    --on-dark: #e8ecf2;
    --on-dark-soft: #aab4c4;
    --radius: 14px;
    --shell: min(92%, 1180px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "PT Serif", Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 .6em;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

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

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

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.btn {
    display: inline-block;
    font-family: "Inter", system-ui, sans-serif;
    font-size: .95rem;
    font-weight: 600;
    padding: .7em 1.4em;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent-d); color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: #fff; }

/* ============================ Шапка ============================ */
.site-header {
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.brand-logo, .brand-mark { flex: 0 0 auto; display: block; }
.brand-mark { width: 52px; height: 52px; }
.brand-text { min-width: 0; }
.site-title {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}
.site-title a { color: var(--ink); }
.site-title a:hover { text-decoration: none; color: var(--accent); }
.site-desc {
    margin: 2px 0 0;
    font-size: .82rem;
    color: var(--ink-soft);
    font-family: "Inter", system-ui, sans-serif;
    max-width: 52ch;
    line-height: 1.45;
}

/* Навигация */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--ink);
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    font-family: "Inter", system-ui, sans-serif;
}
.main-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 500;
}
.main-nav a:hover { background: var(--accent-l); text-decoration: none; color: var(--accent-d); }
.main-nav .current-menu-item > a { background: var(--accent); color: #fff; }

/* ============================ Каркас контента ============================ */
.site-main { padding: 40px 0 56px; }

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

.crumbs {
    font-family: "Inter", system-ui, sans-serif;
    font-size: .85rem;
    color: var(--ink-soft);
    margin-bottom: 22px;
}
.crumbs a { color: var(--accent); }
.crumbs .sep { margin: 0 6px; color: var(--line); }

/* ============================ Сайдбар ============================ */
.sidebar { min-width: 0; }
.widget {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 24px;
    color: var(--ink);
}
.widget-title {
    font-size: 1.05rem;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-l);
    color: var(--ink);
}
.widget a { color: var(--accent); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin: 0 0 10px; line-height: 1.4; }
.widget .post-date {
    display: block;
    font-family: "Inter", system-ui, sans-serif;
    font-size: .78rem;
    color: var(--ink-soft);
}

/* ============================ Карточки записей ============================ */
.cards { display: grid; gap: 26px; }
.card {
    display: flex;
    flex-direction: column;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(29,35,43,.1); }
.card-thumb-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--accent-l);
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 24px;
}
.card-meta {
    font-family: "Inter", system-ui, sans-serif;
    font-size: .78rem;
    color: var(--ink-soft);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.card-title { font-size: 1.3rem; margin: 0 0 10px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-excerpt { color: var(--ink-soft); font-size: .98rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 14px;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
    font-size: .9rem;
}

/* ============================ Главная ============================ */
.home-wrap { width: 85%; margin-inline: auto; }
.section { margin: 0 0 64px; }
.section-eyebrow {
    font-family: "Inter", system-ui, sans-serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--amber);
    margin: 0 0 10px;
}

/* Блок: текст + иллюстрация */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}
.split.reverse .split-media { order: -1; }
.split-media img { width: 100%; border-radius: var(--radius); display: block; }
.split-text p:last-child { margin-bottom: 0; }

/* Блок: сетка направлений */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
.pillar {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
}
.pillar-icon { width: 54px; height: 54px; margin-bottom: 16px; display: block; }
.pillar h3 { margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* Блок: шаги */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 30px 26px 28px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* Блок: акцентная цитата */
.quote-block {
    background: var(--dark);
    color: var(--on-dark);
    border-radius: var(--radius);
    padding: 56px 8%;
    text-align: center;
}
.quote-block p {
    font-size: clamp(1.3rem, 2.8vw, 1.9rem);
    line-height: 1.45;
    margin: 0 auto 18px;
    max-width: 30ch;
    font-style: italic;
}
.quote-block cite {
    font-family: "Inter", system-ui, sans-serif;
    font-size: .9rem;
    color: var(--on-dark-soft);
    font-style: normal;
}

/* Лента последних записей на главной */
.latest-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/* ============================ Запись / страница ============================ */
.entry-header { margin-bottom: 24px; }
.entry-meta {
    font-family: "Inter", system-ui, sans-serif;
    font-size: .85rem;
    color: var(--ink-soft);
    margin-top: 8px;
}
.entry-thumb { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }
.entry-thumb img { width: 100%; display: block; }
.entry-content { font-size: 1.05rem; }
.entry-content img { border-radius: 10px; display: block; }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content blockquote {
    margin: 1.5em 0;
    padding: 4px 0 4px 22px;
    border-left: 4px solid var(--accent);
    color: var(--ink-soft);
    font-style: italic;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}
.entry-content table, .entry-content th, .entry-content td {
    border: 1px solid var(--line);
}
.entry-content th, .entry-content td { padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--accent-l); }

.tags-line {
    margin: 28px 0 0;
    font-family: "Inter", system-ui, sans-serif;
    font-size: .85rem;
}
.tags-line a {
    display: inline-block;
    background: var(--accent-l);
    color: var(--accent-d);
    padding: 4px 12px;
    border-radius: 999px;
    margin: 0 6px 6px 0;
}
.tags-line a:hover { text-decoration: none; background: var(--accent); color: #fff; }

/* ============================ Пагинация ============================ */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 40px 0 0;
    font-family: "Inter", system-ui, sans-serif;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper-2);
    color: var(--ink);
    font-size: .95rem;
    font-weight: 600;
}
.pager a.page-numbers:hover { background: var(--accent-l); text-decoration: none; }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .page-numbers.dots { border: none; background: none; }

/* ============================ Комментарии ============================ */
.comments-area { margin-top: 48px; }
.comments-title { margin-bottom: 22px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 0 28px; padding: 0; }
.comment-inner {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 18px;
}
.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.comment-author { font-weight: 700; font-family: "Inter", system-ui, sans-serif; }
.comment-date { font-size: .8rem; color: var(--ink-soft); font-family: "Inter", system-ui, sans-serif; }
.comment-await { font-size: .85rem; color: var(--amber); }
.comment-reply { margin-top: 8px; font-family: "Inter", system-ui, sans-serif; font-size: .85rem; }

.comment-respond {
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 28px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    background: #fff;
    margin-top: 4px;
}
.comment-form p { margin-bottom: 14px; }

/* ============================ Поиск ============================ */
.search-form {
    display: flex;
    gap: 8px;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font: inherit;
    background: #fff;
}
.search-form button {
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
    cursor: pointer;
}
.search-form button:hover { background: var(--accent-d); }

/* ============================ 404 ============================ */
.error-404 { text-align: center; padding: 30px 0; }
.error-404 .big { font-size: clamp(4rem, 14vw, 8rem); margin: 0; color: var(--accent); font-family: "Inter", system-ui, sans-serif; }
.error-404 .search-form { max-width: 480px; margin: 26px auto 0; }

/* ============================ Подвал ============================ */
.site-footer {
    background: var(--dark);
    color: var(--on-dark);
    padding: 50px 0 26px;
    margin-top: 40px;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}
.site-footer .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--on-dark);
}
.site-footer .widget-title {
    color: #fff;
    border-bottom-color: var(--dark-soft);
}
.site-footer .widget p,
.site-footer .widget li { color: var(--on-dark-soft); }
.site-footer .widget a { color: var(--on-dark); }
.site-footer .widget a:hover { color: #fff; }
.site-footer .widget .post-date { color: var(--on-dark-soft); }
.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--dark-soft);
    font-family: "Inter", system-ui, sans-serif;
    font-size: .82rem;
    color: var(--on-dark-soft);
    text-align: center;
}

/* ============================ Cookie-баннер ============================ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    background: var(--dark);
    color: var(--on-dark);
    padding: 16px 0;
    box-shadow: 0 -6px 24px rgba(0,0,0,.18);
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-inner p {
    margin: 0;
    font-size: .9rem;
    color: var(--on-dark-soft);
    font-family: "Inter", system-ui, sans-serif;
    min-width: 0;
    flex: 1;
}
.cookie-inner a { color: #fff; text-decoration: underline; }
.cookie-accept {
    border: none;
    border-radius: 999px;
    padding: 10px 24px;
    background: var(--accent);
    color: #fff;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
}
.cookie-accept:hover { background: var(--accent-d); }

/* ============================ Адаптив ============================ */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .pillars, .steps, .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .split.reverse .split-media { order: 0; }
    .home-wrap, .layout-single .content-area { width: 92%; }
}

@media (max-width: 600px) {
    body { font-size: 17px; }
    .nav-toggle { display: block; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .pillars, .steps, .latest-grid { grid-template-columns: minmax(0, 1fr); }
    .home-wrap, .layout-single .content-area { width: 100%; }
    .quote-block { padding: 40px 24px; }
    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .header-inner { gap: 14px; }
}
