/*
Theme Name: dds_biz-ko.ru
Author: Алексей Демидов
Description: Информационная тема для консалтинговой компании в сфере образовательного бизнеса.
Version: 1.1
Text Domain: bizko
*/

:root {
    --maxw: 1180px;
    --ink: #1b2233;
    --ink-soft: #43506b;
    --muted: #6b7691;
    --line: #e3e7f0;
    --bg: #ffffff;
    --bg-soft: #f4f6fb;
    --brand: #2b3a8c;
    --brand-2: #1f8a78;
    --brand-deep: #16204d;
    --accent: #e8a33d;
    --on-dark: #eaeefb;
    --on-dark-soft: #aab4d6;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(22, 32, 77, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); margin: 0 0 0.5em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.shell {
    width: min(92%, var(--maxw));
    margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}
.brand-logo, .brand svg.brand-logo { width: 52px; height: 52px; flex: 0 0 auto; display: block; }
.brand-text { min-width: 0; }
.brand-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-deep);
    line-height: 1.3;
    display: block;
    max-width: 540px;
}
.brand-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 4px;
    max-width: 540px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
}
.main-nav a {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 6px 2px;
    display: inline-block;
}
.main-nav a:hover { color: var(--brand); text-decoration: none; }
.nav-toggle {
    display: none;
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.95rem;
    cursor: pointer;
}

/* ---------- Layout ---------- */
.site-main { padding: 36px 0 56px; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 40px;
    align-items: start;
}
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.layout-single { display: block; }
.content-area { min-width: 0; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 22px;
}
.breadcrumbs a { color: var(--brand-2); }
.breadcrumbs .sep { margin: 0 6px; color: var(--line); }

/* ---------- Cards ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 26px;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 0;
}
.card-thumb-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-soft);
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-thumb-fallback {
    width: 100%;
    height: 100%;
    display: block;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
    min-width: 0;
}
.card-title { font-size: 1.18rem; margin-bottom: 8px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--brand); text-decoration: none; }
.card-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.card-excerpt { color: var(--ink-soft); font-size: 0.97rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 14px;
    font-weight: 600;
    color: var(--brand-2);
    align-self: flex-start;
}

/* ---------- Single / Page content ---------- */
.entry-header { margin-bottom: 18px; }
.entry-title { font-size: 2rem; }
.entry-meta { color: var(--muted); font-size: 0.85rem; }
.entry-content { font-size: 1.02rem; }
.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; }
.featured-media { margin-bottom: 24px; border-radius: var(--radius); overflow: hidden; }
.featured-media img { width: 100%; display: block; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
}
table th, table td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
}
table th { background: var(--bg-soft); }

/* ---------- Front page sections ---------- */
.front { width: 85%; margin-inline: auto; }
.section { padding: 46px 0; border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.section-head { max-width: 760px; margin-bottom: 26px; }
.section-head .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-2);
    margin-bottom: 8px;
}
.section-lead { color: var(--ink-soft); font-size: 1.05rem; }

/* split: text + illustration */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}
.split.reverse .split-media { order: -1; }
.split-media img, .split-media svg {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 22px;
}
.feature {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 26px 24px;
    min-width: 0;
}
.feature .ic { width: 44px; height: 44px; margin-bottom: 14px; display: block; }
.feature h3 { font-size: 1.1rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step h3 { font-size: 1.12rem; margin-bottom: 4px; }
.step p { margin: 0; color: var(--ink-soft); }

/* quote */
.quote-band {
    background: var(--brand-deep);
    color: var(--on-dark);
    border-radius: var(--radius);
    padding: 48px 44px;
    text-align: center;
}
.quote-band blockquote {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 600;
    max-width: 820px;
    margin-inline: auto;
}
.quote-band .qauthor { margin-top: 16px; color: var(--on-dark-soft); font-size: 0.95rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 20px; }
.stat { text-align: center; padding: 24px 16px; background: var(--bg-soft); border-radius: var(--radius); min-width: 0; }
.stat .num { font-size: 2.3rem; font-weight: 800; color: var(--brand); line-height: 1; }
.stat .lbl { color: var(--ink-soft); margin-top: 8px; font-size: 0.95rem; }

/* faq */
.faq details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 4px 22px;
    margin-bottom: 14px;
    background: var(--bg);
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 16px 0;
    list-style: none;
    color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand-2); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }

/* cta */
.cta-band {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 46px 40px;
    text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 640px; margin-inline: auto; }
.btn {
    display: inline-block;
    background: var(--accent);
    color: #1b2233;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 10px;
    margin-top: 18px;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }

.latest-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 220px; object-fit: cover; display: block; }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    justify-content: center;
}
.pagination .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;
    color: var(--ink-soft);
    font-weight: 600;
    background: var(--bg);
}
.pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- Sidebar / Widgets ---------- */
.sidebar { min-width: 0; }
.widget {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 22px;
    margin-bottom: 24px;
    color: var(--ink);
}
.widget-title {
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: var(--brand-deep);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ink-soft); }
.widget a:hover { color: var(--brand); }
.widget .post-date { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* search form */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 0.95rem;
}
.search-form button {
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 0 18px;
    cursor: pointer;
    font-weight: 600;
}

/* ---------- Comments ---------- */
.comments-area { margin-top: 48px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.comment-author { font-weight: 700; color: var(--ink); }
.comment-respond { margin-top: 30px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
}
.comment-form input[type="submit"] {
    background: var(--brand);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 12px 26px;
    font-weight: 700;
    cursor: pointer;
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 50px 0; }
.notfound .code { font-size: 5rem; font-weight: 800; color: var(--brand); line-height: 1; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--brand-deep);
    color: var(--on-dark);
    padding: 50px 0 26px;
    margin-top: 40px;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 32px;
}
.footer-cols .widget {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    color: var(--on-dark);
}
.footer-cols .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,0.18); }
.footer-cols .widget a { color: var(--on-dark-soft); }
.footer-cols .widget a:hover { color: #fff; }
.footer-cols .widget li { border-bottom-color: rgba(255,255,255,0.12); }
.footer-cols .widget .post-date { color: var(--on-dark-soft); }
.footer-cols .widget p { color: var(--on-dark-soft); }
.site-copy {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: var(--on-dark-soft);
    font-size: 0.85rem;
    text-align: center;
}

/* ---------- Cookie banner ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    background: var(--brand-deep);
    color: var(--on-dark);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}
.cookie-banner p { margin: 0; font-size: 0.9rem; flex: 1; min-width: 220px; }
.cookie-banner a { color: var(--accent); }
.cookie-accept {
    background: var(--accent);
    color: #1b2233;
    border: 0;
    border-radius: 10px;
    padding: 11px 24px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .front, .layout-single .content-area { width: 100%; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    h1, .entry-title { font-size: 1.6rem; }
    .nav-toggle { display: inline-block; }
    .main-nav { width: 100%; display: none; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .quote-band, .cta-band { padding: 32px 22px; }
    .quote-band blockquote { font-size: 1.2rem; }
    .step { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
    .step::before { width: 44px; height: 44px; font-size: 1.1rem; }
}
