/*
Theme Name: dds_q10consultancy.com
Author: Анна Соколова
Description: Образовательная онлайн-платформа (EdTech) для развития гибких и цифровых навыков. Информационная тема для WordPress.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: q10c
*/

/* ============ Базовые переменные ============ */
:root {
    --ink: #1d1c33;
    --ink-soft: #4a4866;
    --brand: #2f2d7e;
    --brand-deep: #211f5c;
    --accent: #ff744d;
    --accent-soft: #ffe3da;
    --paper: #f6f6fb;
    --card: #ffffff;
    --line: #e3e2ef;
    --footer-bg: #1a1934;
    --footer-ink: #d7d6ea;
    --footer-line: #34325a;
    --radius: 16px;
    --shell: min(92%, 1180px);
    --shadow: 0 14px 40px rgba(33, 31, 92, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, "PT Sans", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-size: 17px;
    overflow-x: hidden;
}

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

a { color: var(--brand); }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
    line-height: 1.25;
    color: var(--ink);
    font-weight: 700;
}

p { margin: 0 0 1.1em; }

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

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #e85e38; color: #fff; transform: translateY(-2px); }

.btn-ghost {
    display: inline-block;
    border: 2px solid var(--brand);
    color: var(--brand);
    padding: 11px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}
.btn-ghost:hover { background: var(--brand); color: #fff; }

/* ============ Шапка ============ */
.site-head {
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.head-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 0;
}
.brand-logo, .brand svg.brand-mark {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    display: block;
}
.brand-text { min-width: 0; }
.brand-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--brand);
    line-height: 1.2;
    display: block;
    max-width: 520px;
}
.brand-desc {
    font-size: 12.5px;
    color: var(--ink-soft);
    display: block;
    max-width: 520px;
    margin-top: 2px;
}
.head-nav { margin-left: auto; }
.nav-toggle {
    display: none;
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 16px;
    cursor: pointer;
}
.main-menu {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-menu a {
    display: block;
    padding: 9px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
}
.main-menu a:hover,
.main-menu .current-menu-item > a {
    background: var(--accent-soft);
    color: var(--brand-deep);
}

/* ============ Хлебные крошки ============ */
.breadcrumbs {
    width: var(--shell);
    margin: 22px auto 0;
    font-size: 14px;
    color: var(--ink-soft);
}
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 7px; color: var(--accent); }

/* ============ Основная раскладка ============ */
.site-main { padding: 30px 0 60px; }

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

/* ============ Сайдбар ============ */
.sidebar {
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}
.sidebar .widget { margin-bottom: 26px; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 17px;
    margin: 0 0 14px;
    color: var(--brand);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-soft);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--accent); }
.sidebar .post-date,
.sidebar .rss-date { color: var(--ink-soft); font-size: 13px; }

/* ============ Карточки записей ============ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-thumb.placeholder {
    background: linear-gradient(135deg, var(--brand), var(--accent));
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px;
}
.card-meta {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 8px;
}
.card-title {
    font-size: 20px;
    margin: 0 0 10px;
}
.card-title a { text-decoration: none; color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: var(--ink-soft); }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; padding-top: 14px; }
.card-more a {
    font-weight: 600;
    text-decoration: none;
    color: var(--brand);
}
.card-more a:hover { color: var(--accent); }

/* ============ Статья ============ */
.entry {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
}
.entry-title { font-size: 32px; margin: 0 0 12px; }
.entry-meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; }
.entry-thumb { border-radius: 12px; overflow: hidden; margin-bottom: 22px; }
.entry-thumb img { width: 100%; display: block; }
.entry-content { min-width: 0; }
.entry-content img { border-radius: 10px; }
.entry-content h2 { font-size: 25px; margin: 1.4em 0 .5em; }
.entry-content h3 { font-size: 21px; margin: 1.3em 0 .5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content blockquote {
    margin: 1.2em 0;
    padding: 14px 20px;
    border-left: 4px solid var(--accent);
    background: var(--paper);
    border-radius: 0 10px 10px 0;
}

/* ============ Таблицы ============ */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
}
table, th, td { border: 1px solid var(--line); }
th, td { padding: 10px 12px; text-align: left; }
th { background: var(--paper); }

/* ============ Пагинация ============ */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 36px 0 6px;
}
.pagination .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
}
.pagination a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.pagination .page-numbers.current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.pagination .page-numbers.dots {
    border: 0;
    background: none;
}

/* ============ Главная: общие секции ============ */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-head {
    max-width: 720px;
    margin: 0 0 34px;
}
.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.section-title { font-size: 30px; margin: 0 0 12px; }
.section-lead { color: var(--ink-soft); font-size: 18px; margin: 0; }

/* блок: текст + иллюстрация */
.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
}
.split-rev .split-media { order: -1; }
.split-media img { width: 100%; display: block; border-radius: var(--radius); }
.split-text h2 { font-size: 30px; margin: 0 0 16px; }
.split-text .btn { margin-top: 8px; }

/* блок: сетка фишек */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.feature {
    min-width: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
}
.section-alt .feature { background: var(--paper); }
.feature-ico {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand);
    border-radius: 14px;
    margin-bottom: 16px;
}
.feature-ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 18px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* блок: шаги */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    counter-reset: step;
}
.step {
    min-width: 0;
    position: relative;
    padding: 28px 22px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.step-num {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* блок: FAQ */
.faq { max-width: 820px; }
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 20px;
    margin-bottom: 14px;
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 16px 0;
    list-style: none;
    color: var(--brand-deep);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    float: right;
    color: var(--accent);
    font-size: 22px;
    line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* лента последних записей на главной */
.latest-wrap { background: var(--paper); }

/* ============ Поиск ============ */
.search-form {
    display: flex;
    gap: 8px;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
}
.search-form .search-submit {
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 11px 20px;
    font-weight: 600;
    cursor: pointer;
}
.search-form .search-submit:hover { background: var(--accent); }

/* ============ Комментарии ============ */
.comments-area {
    margin-top: 30px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
}
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { margin-bottom: 18px; }
.comment-body {
    background: var(--paper);
    border-radius: 12px;
    padding: 16px 18px;
}
.comment-meta { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
}
.comment-form p { margin-bottom: 14px; }
.comment-form .submit {
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 26px;
    font-weight: 600;
    cursor: pointer;
}

/* ============ 404 ============ */
.notfound { text-align: center; padding: 40px 0; }
.notfound h1 { font-size: 72px; margin: 0; color: var(--brand); }
.notfound p { color: var(--ink-soft); font-size: 19px; }
.notfound .search-form { max-width: 480px; margin: 24px auto; }

/* ============ Подвал ============ */
.site-foot {
    background: var(--footer-bg);
    color: var(--footer-ink);
    padding: 52px 0 24px;
    margin-top: 40px;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}
.foot-col { min-width: 0; }
.foot-col .widget-title {
    color: #fff;
    font-size: 17px;
    margin: 0 0 16px;
}
.foot-col, .foot-col p, .foot-col li { color: var(--footer-ink); }
.foot-col a { color: #fff; text-decoration: none; }
.foot-col a:hover { color: var(--accent); }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li {
    padding: 6px 0;
    border-bottom: 1px solid var(--footer-line);
}
.foot-col li:last-child { border-bottom: 0; }
.foot-col .post-date,
.foot-col .rss-date { color: #a9a7c9; font-size: 13px; }
.foot-mail a { color: var(--accent); }
.foot-social { display: flex; gap: 12px; margin-top: 12px; }
.foot-social a {
    display: inline-flex;
    width: 38px; height: 38px;
    align-items: center; justify-content: center;
    border: 1px solid var(--footer-line);
    border-radius: 10px;
}
.foot-social svg { width: 18px; height: 18px; fill: #fff; }
.foot-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--footer-line);
    font-size: 14px;
    color: #a9a7c9;
}

/* ============ Cookie-баннер ============ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 999;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 50px rgba(20, 19, 51, .22);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    max-width: 760px;
    margin: 0 auto;
}
.cookie-banner p { margin: 0; flex: 1; min-width: 220px; font-size: 14.5px; color: var(--ink-soft); }
.cookie-banner button {
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 11px 24px;
    font-weight: 600;
    cursor: pointer;
}
.cookie-banner button:hover { background: var(--accent); }

/* ============ Адаптив ============ */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 30px; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: 1fr 1fr; }
    .section-title, .split-text h2 { font-size: 26px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .head-nav { margin-left: 0; width: 100%; }
    .nav-toggle { display: block; margin-left: auto; }
    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
    }
    .main-menu.is-open { display: flex; }
    .head-inner { gap: 14px; }
    .cards-grid { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; gap: 28px; }
    .split-rev .split-media { order: 0; }
    .feature-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .foot-cols { grid-template-columns: 1fr; gap: 28px; }
    .entry { padding: 22px; }
    .entry-title { font-size: 26px; }
}
