/*
Theme Name: ПЛАНАТА Kanban
Description: Local-first project management workspace for WordPress.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: brainoffice-kanban
*/

html, body { margin: 0; min-height: 100%; }
html { scroll-behavior: smooth; }
body { background: #f7f8fc; color: #141827; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
#bo-app { min-height: calc(100vh - 76px); }
body.admin-bar #bo-app { min-height: calc(100vh - 108px); }

.bo-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 76px;
    padding: 0 max(24px,calc((100vw - 1320px)/2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255,255,255,.86);
    border-bottom: 1px solid rgba(220,224,235,.82);
    box-shadow: 0 1px 0 rgba(255,255,255,.75) inset;
    backdrop-filter: blur(18px) saturate(150%);
}
.bo-site-brand { display: inline-flex; align-items: center; gap: 11px; color: #141827; text-decoration: none; font-size: 19px; font-weight: 850; letter-spacing: -.045em; }
.bo-wordmark { transform: translateY(-1px); }
.bo-site-nav { display: flex; align-items: center; gap: 8px; }
.bo-site-nav a { color: #5f6677; text-decoration: none; padding: 10px 13px; border-radius: 11px; font-size: 14px; font-weight: 720; transition: .18s ease; }
.bo-site-nav a:hover, .bo-site-nav a.active { color: #5548dc; background: #f0efff; }
.bo-site-nav .bo-header-cta { margin-left: 6px; padding: 11px 16px; background: #635bff; color: #fff; box-shadow: 0 8px 20px rgba(99,91,255,.22); }
.bo-site-nav .bo-header-cta:hover { transform: translateY(-1px); background: #5048e5; color: #fff; box-shadow: 0 11px 25px rgba(99,91,255,.3); }

.bo-page-shell { min-height: calc(100vh - 64px); padding: 48px 20px; }
.bo-page-card { width: min(920px,100%); margin: 0 auto; padding: 42px; border: 1px solid #e4e9f0; border-radius: 20px; background: #fff; box-shadow: 0 12px 36px rgba(34,44,65,.07); }
.bo-page-card h1 { margin: 20px 0 12px; font-size: clamp(32px,5vw,52px); letter-spacing: -.045em; }
.bo-page-card h2 { margin-top: 32px; }
.bo-page-back { color: #6c5ce7; text-decoration: none; font-weight: 750; }
.bo-page-lead, .bo-page-content { color: #596579; font-size: 17px; line-height: 1.75; }
.bo-post-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.bo-post-card { padding: 20px; border: 1px solid #e4e9f0; border-radius: 14px; }
.bo-post-card time { color: #7b8495; font-size: 12px; }
.bo-post-card h2 { margin: 8px 0; font-size: 19px; }
.bo-post-card h2 a { color: #182230; text-decoration: none; }
.bo-post-card p, .bo-page-empty { color: #697586; }
.bo-page-empty { grid-column: 1/-1; padding: 28px; border-radius: 12px; background: #f5f7fb; text-align: center; }

@media (max-width: 782px) {
    body.admin-bar #bo-app { min-height: calc(100vh - 110px); }
    .bo-site-header { padding: 0 14px; }
    .bo-site-nav a { padding: 8px; }
    .bo-site-nav .bo-header-cta { display: none; }
    .bo-page-card { padding: 26px 20px; }
    .bo-post-list { grid-template-columns: 1fr; }
}

.bo-about { overflow: hidden; background: #f5f7fb; }
.bo-about-hero { position: relative; min-height: 700px; padding: 92px max(24px,calc((100vw - 1180px)/2)); background: #171a28; color: #fff; }
.bo-about-kicker, .bo-about-heading > span, .bo-about-final > span, .bo-about-warning span { color: #a99cff; font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.bo-about-hero h1 { position: relative; z-index: 2; max-width: 820px; margin: 18px 0 22px; font-size: clamp(54px,8vw,104px); line-height: .92; letter-spacing: -.065em; }
.bo-about-hero > p { position: relative; z-index: 2; max-width: 620px; margin: 0; color: #b8c0d2; font-size: clamp(18px,2vw,23px); line-height: 1.5; }
.bo-about-actions { position: relative; z-index: 2; display: flex; gap: 12px; margin-top: 34px; }
.bo-about-actions a, .bo-about-final a { display: inline-flex; align-items: center; justify-content: center; padding: 14px 19px; border-radius: 11px; text-decoration: none; font-weight: 800; }
.bo-about-primary, .bo-about-final a { background: #7664f3; color: #fff; }
.bo-about-primary:hover, .bo-about-final a:hover { background: #8979fa; }
.bo-about-secondary { border: 1px solid #3b4054; color: #dce1eb; }
.bo-about-board { position: absolute; right: max(24px,calc((100vw - 1180px)/2)); bottom: 54px; width: min(560px,45vw); display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; padding: 16px; border: 1px solid #34394c; border-radius: 18px; background: rgba(28,32,48,.92); transform: rotate(-2deg); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.bo-about-column { min-height: 215px; padding: 12px; border-radius: 12px; background: #252a3b; }
.bo-about-column span { display: block; margin-bottom: 12px; color: #bbc3d4; font-size: 11px; font-weight: 800; }
.bo-about-column i { display: block; height: 52px; margin: 8px 0; border-radius: 9px; background: #343a4e; }
.bo-about-column.accent i:first-of-type { border-left: 3px solid #f59e42; }
.bo-about-column.done i { border-left: 3px solid #20b26b; }
.bo-about-section { width: min(1180px,calc(100% - 40px)); margin: 0 auto; padding: 110px 0; }
.bo-about-heading { max-width: 730px; }
.bo-about-heading h2 { margin: 14px 0 18px; font-size: clamp(38px,5vw,68px); line-height: 1.02; letter-spacing: -.055em; }
.bo-about-heading p { margin: 0; color: #697586; font-size: 19px; line-height: 1.65; }
.bo-about-features { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 55px; }
.bo-about-features article { min-height: 245px; padding: 26px; border: 1px solid #e1e6ed; border-radius: 18px; background: #fff; }
.bo-about-features b { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: #efecff; color: #6c5ce7; font-size: 11px; }
.bo-about-features h3 { margin: 46px 0 8px; font-size: 21px; }
.bo-about-features p { margin: 0; color: #697586; line-height: 1.65; }
.bo-about-numbers { display: grid; grid-template-columns: repeat(3,1fr); background: #6c5ce7; color: #fff; }
.bo-about-numbers div { padding: 58px 30px; text-align: center; border-right: 1px solid rgba(255,255,255,.2); }
.bo-about-numbers div:last-child { border-right: 0; }
.bo-about-numbers strong { display: block; font-size: clamp(50px,7vw,88px); line-height: 1; letter-spacing: -.06em; }
.bo-about-numbers span { display: block; margin-top: 12px; color: #e1dcff; }
.bo-about-steps { display: grid; gap: 1px; margin-top: 48px; border: 1px solid #e1e6ed; border-radius: 18px; overflow: hidden; background: #e1e6ed; }
.bo-about-steps article { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 27px; background: #fff; }
.bo-about-steps article > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #171a28; color: #fff; font-weight: 850; }
.bo-about-steps h3 { margin: 0 0 6px; font-size: 20px; }
.bo-about-steps p { margin: 0; color: #697586; }
.bo-about-warning { width: min(1180px,calc(100% - 40px)); margin: 0 auto 110px; display: grid; grid-template-columns: 72px 1fr; gap: 26px; padding: 38px; border: 1px solid #f3d899; border-radius: 20px; background: #fff8e8; }
.bo-about-warning-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: #f59e42; color: #fff; font-size: 30px; font-weight: 900; }
.bo-about-warning span { color: #b76b05; }
.bo-about-warning h2 { margin: 8px 0 12px; font-size: clamp(28px,4vw,44px); letter-spacing: -.04em; }
.bo-about-warning p { max-width: 850px; color: #655c4e; font-size: 16px; line-height: 1.7; }
.bo-about-final { padding: 110px 24px; text-align: center; background: #171a28; color: #fff; }
.bo-about-final h2 { margin: 15px 0; font-size: clamp(48px,7vw,90px); line-height: .98; letter-spacing: -.06em; }
.bo-about-final p { color: #aeb7ca; font-size: 19px; }
.bo-about-final a { margin-top: 20px; }

@media (max-width: 900px) {
    .bo-about-hero { min-height: auto; padding-top: 70px; padding-bottom: 70px; }
    .bo-about-board { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 50px; transform: none; }
    .bo-about-features { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px) {
    .bo-about-hero h1 { font-size: 52px; }
    .bo-about-actions { align-items: stretch; flex-direction: column; }
    .bo-about-board { grid-template-columns: 1fr; }
    .bo-about-column { min-height: 130px; }
    .bo-about-features, .bo-about-numbers { grid-template-columns: 1fr; }
    .bo-about-numbers div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
    .bo-about-warning { grid-template-columns: 1fr; padding: 26px 20px; }
}

.bo-blog { background: #f5f7fb; }
.bo-blog-hero { padding: 90px max(24px,calc((100vw - 1180px)/2)) 74px; background: #171a28; color: #fff; }
.bo-blog-hero > span, .bo-blog-cta span, .bo-related-head > span { color: #a99cff; font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.bo-blog-hero h1 { max-width: 980px; margin: 18px 0 22px; font-size: clamp(50px,7vw,92px); line-height: .96; letter-spacing: -.06em; }
.bo-blog-hero p { max-width: 680px; margin: 0; color: #b7c0d2; font-size: 20px; line-height: 1.6; }
.bo-blog-controls { width: min(1180px,calc(100% - 40px)); margin: 0 auto; padding: 32px 0; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid #dfe4eb; }
.bo-blog-categories { display: flex; gap: 7px; overflow-x: auto; flex: 1; padding-bottom: 2px; }
.bo-blog-categories a { flex: 0 0 auto; padding: 9px 13px; border: 1px solid #dfe4eb; border-radius: 999px; background: #fff; color: #596579; text-decoration: none; font-weight: 750; }
.bo-blog-categories a:hover, .bo-blog-categories a.active { border-color: #6c5ce7; background: #6c5ce7; color: #fff; }
.bo-blog-search { position: relative; flex: 0 0 270px; }
.bo-blog-search span { position: absolute; left: 13px; top: 9px; color: #697586; }
.bo-blog-search input { width: 100%; padding: 10px 12px 10px 36px; border: 1px solid #dfe4eb; border-radius: 11px; background: #fff; outline: none; }
.bo-blog-search input:focus { border-color: #6c5ce7; box-shadow: 0 0 0 3px rgba(108,92,231,.1); }
.bo-blog-feed { width: min(1180px,calc(100% - 40px)); min-height: 450px; margin: 0 auto; padding: 52px 0 110px; }
.bo-blog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.bo-blog-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid #e1e6ed; border-radius: 18px; background: #fff; transition: transform .18s, box-shadow .18s; }
.bo-blog-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(34,44,65,.09); }
.bo-blog-card.featured { grid-column: 1/-1; display: grid; grid-template-columns: 1.1fr 1fr; min-height: 390px; }
.bo-blog-card-visual { min-height: 210px; padding: 22px; display: flex; align-items: flex-start; justify-content: space-between; text-decoration: none; color: #fff; }
.bo-blog-card-visual span { max-width: 70%; padding: 7px 10px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; background: rgba(0,0,0,.1); font-size: 12px; font-weight: 750; }
.bo-blog-card-visual strong { align-self: flex-end; font-size: 72px; line-height: .8; opacity: .35; letter-spacing: -.08em; }
.bo-blog-card-visual.tone-0 { background: linear-gradient(135deg,#6553df,#9c8fff); }
.bo-blog-card-visual.tone-1 { background: linear-gradient(135deg,#208a66,#55c998); }
.bo-blog-card-visual.tone-2 { background: linear-gradient(135deg,#e57933,#ffb766); }
.bo-blog-card-visual.tone-3 { background: linear-gradient(135deg,#2769bc,#6aa6ee); }
.bo-blog-card-body { flex: 1; padding: 24px; display: flex; flex-direction: column; }
.bo-blog-card.featured .bo-blog-card-body { justify-content: center; padding: 44px; }
.bo-blog-meta { display: flex; gap: 14px; color: #7a8495; font-size: 12px; }
.bo-blog-card h2 { margin: 13px 0 10px; font-size: 23px; line-height: 1.2; letter-spacing: -.025em; }
.bo-blog-card.featured h2 { font-size: clamp(31px,4vw,48px); }
.bo-blog-card h2 a { color: #182230; text-decoration: none; }
.bo-blog-card p { margin: 0 0 22px; color: #697586; line-height: 1.6; }
.bo-blog-read { margin-top: auto; color: #5b49d8; text-decoration: none; font-weight: 800; }
.bo-blog-pagination { margin-top: 40px; display: flex; justify-content: center; gap: 7px; }
.bo-blog-pagination .page-numbers { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 9px; border: 1px solid #dfe4eb; border-radius: 9px; background: #fff; color: #596579; text-decoration: none; }
.bo-blog-pagination .current { background: #6c5ce7; border-color: #6c5ce7; color: #fff; }
.bo-blog-empty { padding: 70px 20px; border: 1px solid #e1e6ed; border-radius: 18px; background: #fff; text-align: center; }
.bo-blog-empty strong { font-size: 30px; }
.bo-blog-empty p { color: #697586; }
.bo-blog-empty a { color: #5b49d8; font-weight: 800; }
.bo-blog-cta { padding: 80px max(24px,calc((100vw - 1180px)/2)); display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; background: #6c5ce7; color: #fff; }
.bo-blog-cta span { color: #ddd7ff; }
.bo-blog-cta h2 { margin: 12px 0 0; font-size: clamp(44px,6vw,78px); line-height: .97; letter-spacing: -.055em; }
.bo-blog-cta > a { padding: 14px 18px; border-radius: 11px; background: #fff; color: #5745ce; text-decoration: none; font-weight: 850; }

.bo-article { background: #fff; }
.bo-article-hero { padding: 70px max(24px,calc((100vw - 980px)/2)) 55px; text-align: center; }
.bo-article-back { display: inline-block; margin-bottom: 35px; color: #6c5ce7; text-decoration: none; font-weight: 750; }
.bo-article-category { color: #6c5ce7; font-size: 12px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.bo-article-hero h1 { margin: 15px auto 20px; max-width: 1050px; font-size: clamp(44px,6vw,78px); line-height: 1.02; letter-spacing: -.055em; }
.bo-article-hero > p { max-width: 740px; margin: 0 auto; color: #697586; font-size: 20px; line-height: 1.6; }
.bo-article-meta { margin-top: 26px; display: flex; justify-content: center; gap: 22px; color: #7b8494; font-size: 13px; }
.bo-article-cover { width: min(1180px,calc(100% - 40px)); height: min(52vw,530px); margin: 0 auto; padding: 35px; display: flex; align-items: flex-end; justify-content: space-between; border-radius: 24px; background: linear-gradient(135deg,#171a28 0%,#4437a8 60%,#8f82f5 100%); color: #fff; overflow: hidden; }
.bo-article-cover span { align-self: flex-start; font-weight: 800; }
.bo-article-cover strong { font-size: clamp(140px,30vw,420px); line-height: .65; opacity: .18; }
.bo-article-layout { width: min(1080px,calc(100% - 40px)); margin: 0 auto; padding: 75px 0 110px; display: grid; grid-template-columns: 230px minmax(0,720px); justify-content: space-between; gap: 70px; }
.bo-article-toc { position: sticky; top: 90px; align-self: start; }
.bo-article-toc > span { color: #7b8494; font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.bo-article-toc nav { display: grid; gap: 10px; margin: 14px 0 22px; }
.bo-article-toc nav a { padding-left: 12px; border-left: 2px solid #e3e6ec; color: #697586; text-decoration: none; font-size: 13px; line-height: 1.35; }
.bo-article-toc nav a:hover { border-color: #6c5ce7; color: #5544d8; }
.bo-article-toc button { border: 1px solid #dfe4eb; border-radius: 9px; background: #fff; padding: 9px 11px; color: #596579; }
.bo-article-content { color: #303947; font-size: 18px; line-height: 1.78; }
.bo-article-content > p:first-child { font-size: 23px; line-height: 1.6; color: #182230; }
.bo-article-content h2 { scroll-margin-top: 90px; margin: 60px 0 18px; color: #182230; font-size: 36px; line-height: 1.15; letter-spacing: -.035em; }
.bo-article-content h3 { margin-top: 35px; font-size: 25px; }
.bo-article-content blockquote { margin: 35px 0; padding: 25px 28px; border: 0; border-radius: 14px; background: #f1efff; color: #40378b; font-size: 20px; }
.bo-article-content ul, .bo-article-content ol { padding-left: 25px; }
.bo-article-content li { margin: 8px 0; }
.bo-related { padding: 80px max(24px,calc((100vw - 1180px)/2)); background: #f5f7fb; }
.bo-related-head h2 { margin: 9px 0 30px; font-size: 46px; letter-spacing: -.045em; }
.bo-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.bo-related-grid article { min-height: 220px; padding: 24px; display: flex; flex-direction: column; border: 1px solid #e1e6ed; border-radius: 16px; background: #fff; }
.bo-related-grid article > span { color: #7b8494; font-size: 12px; }
.bo-related-grid h3 { font-size: 21px; line-height: 1.3; }
.bo-related-grid h3 a { color: #182230; text-decoration: none; }
.bo-related-grid article > a { margin-top: auto; color: #5b49d8; text-decoration: none; font-weight: 800; }

@media (max-width: 900px) {
    .bo-blog-controls { align-items: stretch; flex-direction: column; }
    .bo-blog-search { flex-basis: auto; width: 100%; }
    .bo-blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .bo-blog-card.featured { grid-template-columns: 1fr; }
    .bo-blog-cta { align-items: flex-start; flex-direction: column; }
    .bo-article-layout { grid-template-columns: 1fr; gap: 25px; }
    .bo-article-toc { position: static; padding: 20px; border-radius: 13px; background: #f5f7fb; }
}
@media (max-width: 620px) {
    .bo-blog-hero h1 { font-size: 48px; }
    .bo-blog-grid, .bo-related-grid { grid-template-columns: 1fr; }
    .bo-blog-card.featured { display: flex; }
    .bo-blog-card.featured .bo-blog-card-body { padding: 24px; }
    .bo-blog-card.featured h2 { font-size: 27px; }
    .bo-article-meta { align-items: center; flex-direction: column; gap: 5px; }
    .bo-article-cover { height: 330px; padding: 22px; }
    .bo-article-layout { padding-top: 40px; }
    .bo-article-content { font-size: 17px; }
    .bo-article-content h2 { font-size: 30px; }
}

/* Brainoffice 1.4 — refreshed marketing surface */
.bo-about-hero, .bo-blog-hero { background: radial-gradient(circle at 82% 12%,rgba(111,101,255,.32),transparent 30%),radial-gradient(circle at 20% 100%,rgba(43,207,166,.12),transparent 34%),#111420; }
.bo-about-primary, .bo-about-final a, .bo-blog-categories a.active, .bo-blog-cta { background-color: #635bff; }
.bo-about-features article, .bo-blog-card, .bo-related-grid article, .bo-page-card { border-color: #e5e7ef; border-radius: 24px; box-shadow: 0 14px 38px rgba(24,29,50,.045); }
.bo-about-features article { transition: transform .2s ease, box-shadow .2s ease; }
.bo-about-features article:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(24,29,50,.08); }
.bo-about-features b { background: #efeeff; color: #5a51e7; }
.bo-about-numbers { background: linear-gradient(115deg,#564ee4,#756dff); }
.bo-blog-card { box-shadow: 0 9px 28px rgba(24,29,50,.04); }
.bo-blog-card:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(24,29,50,.1); }
.bo-blog-card-visual.tone-0 { background: linear-gradient(145deg,#5148df,#8d86ff); }
.bo-blog-card-visual.tone-1 { background: linear-gradient(145deg,#0f8c76,#50d0af); }
.bo-blog-card-visual.tone-2 { background: linear-gradient(145deg,#e7663d,#ffb066); }
.bo-blog-card-visual.tone-3 { background: linear-gradient(145deg,#176dbd,#62b3ee); }
.bo-article-cover { border-radius: 32px; background: radial-gradient(circle at 75% 15%,#837aff,transparent 38%),linear-gradient(135deg,#151928,#5148df); box-shadow: 0 30px 70px rgba(43,37,124,.18); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(99,91,255,.32); outline-offset: 3px; }

@media (max-width: 620px) {
    .bo-site-header { height: 66px; padding: 0 14px; }
    .bo-site-brand { font-size: 17px; }
    .bo-site-nav { gap: 2px; }
    .bo-site-nav a { padding: 8px 7px; font-size: 13px; }
    .bo-logo-mark { width: 34px; height: 34px; border-radius: 11px; }
}
