/*
Theme Name: ZarzadzanieGabinetem
Theme URI: https://zarzadzaniegabinetem.pl
Author: Redakcja ZarzadzanieGabinetem
Description: SaaS-owy motyw dla portalu o zarządzaniu praktyką stomatologiczną. Slate + indygo, Plus Jakarta Sans + JetBrains Mono, dynamiczne pętle.
Version: 1.0.0
Text Domain: zarzadzaniegabinetem
*/

:root{
  --bg:#f6f7f9; --paper:#ffffff; --paper-2:#f0f2f5; --ink:#0f1729; --ink-2:#283143;
  --line:#e6e9ef; --line-2:#d7dce5; --blue:#3457e6; --blue-dk:#2742bf; --blue-wash:#eef1fe;
  --green:#0fa968; --green-wash:#e6f6ee; --amber:#e08a18; --muted:#6b7488;
  --sans:'Plus Jakarta Sans',system-ui,sans-serif; --mono:'JetBrains Mono',monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--sans);color:var(--ink);background:var(--bg);line-height:1.6;font-size:16px}
a{color:inherit;text-decoration:none}img{max-width:100%;display:block;height:auto}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
h1,h2,h3,h4{line-height:1.15;letter-spacing:-.02em;font-weight:700}
.mono{font-family:var(--mono);font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.ph{position:relative;background:repeating-linear-gradient(135deg,#e4e8ef 0 11px,#eef1f5 11px 22px);display:flex;align-items:center;justify-content:center;overflow:hidden;color:#8b93a5}
.ph span{font-family:var(--mono);font-size:11px;letter-spacing:.04em;background:rgba(255,255,255,.86);padding:5px 10px;border-radius:4px;text-transform:uppercase}
.ph img{width:100%;height:100%;object-fit:cover}

header.site{background:rgba(255,255,255,.9);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}
.head{display:flex;align-items:center;justify-content:space-between;height:72px;gap:20px}
.brand svg{height:38px;width:auto}
nav.main{display:flex;align-items:center;gap:2px}
nav.main ul{display:flex;gap:2px;list-style:none;align-items:center}
nav.main a{font-weight:600;font-size:14px;color:var(--ink-2);padding:8px 13px;border-radius:8px;transition:.15s;display:inline-block}
nav.main a:hover,nav.main .current-menu-item a{background:var(--paper-2)}
.head-cta{display:flex;align-items:center;gap:10px}
.head-cta .search{display:flex;align-items:center;gap:8px;background:var(--paper-2);border-radius:8px;padding:8px 12px;width:180px}
.head-cta .search input{border:0;background:transparent;font-family:var(--sans);font-size:13px;width:100%;outline:none}

.btn{font-family:var(--sans);font-weight:600;font-size:14px;border-radius:9px;padding:10px 18px;border:0;cursor:pointer;transition:.15s;display:inline-flex;align-items:center;gap:7px;text-decoration:none}
.btn-blue{background:var(--blue);color:#fff}.btn-blue:hover{background:var(--blue-dk)}
.btn-soft{background:var(--paper-2);color:var(--ink)}.btn-soft:hover{background:var(--line)}

.pill{display:inline-flex;align-items:center;gap:7px;font-family:var(--mono);font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--blue);background:var(--blue-wash);padding:6px 11px;border-radius:20px;font-weight:600}
.tag{font-family:var(--mono);font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:var(--blue);background:var(--blue-wash);padding:4px 9px;border-radius:5px;font-weight:600;display:inline-block}
.tag.green{color:var(--green);background:var(--green-wash)}
.tag.gray{color:var(--muted);background:var(--paper-2)}

.hero{padding:46px 0 36px}
.hero-grid{display:grid;grid-template-columns:1fr 1.05fr;gap:48px;align-items:center}
.hero .pill{margin-bottom:18px}
.hero h1,.hero h2{font-size:50px;font-weight:800;line-height:1.02;margin-bottom:18px;letter-spacing:-.03em}
.hero h1 a:hover,.hero h2 a:hover{color:var(--blue)}
.hero p{font-size:17.5px;color:var(--muted);max-width:46ch;margin-bottom:24px}
.hero .actions{display:flex;gap:12px;flex-wrap:wrap}

.dash{background:var(--paper);border:1px solid var(--line);border-radius:18px;box-shadow:0 30px 60px -40px rgba(15,23,41,.4);overflow:hidden}
.dash .bar{display:flex;align-items:center;gap:7px;padding:13px 16px;border-bottom:1px solid var(--line);background:var(--paper-2)}
.dash .bar .d{width:10px;height:10px;border-radius:50%;background:var(--line-2)}
.dash .bar .t{margin-left:8px;font-family:var(--mono);font-size:11px;color:var(--muted)}
.dash .body{padding:20px}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}
.kpi{border:1px solid var(--line);border-radius:12px;padding:14px}
.kpi .l{font-family:var(--mono);font-size:9.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.kpi .v{font-size:24px;font-weight:800;margin-top:6px;letter-spacing:-.02em;font-family:var(--mono)}
.kpi .delta{font-family:var(--mono);font-size:11px;font-weight:600;color:var(--green);margin-top:3px}
.dash .chart{border:1px solid var(--line);border-radius:12px;padding:16px}
.dash .chart .ttl{font-size:13px;font-weight:700;margin-bottom:14px;display:flex;justify-content:space-between;align-items:center}
.dash .chart .ttl .mono{color:var(--green)}
.minibars{display:flex;align-items:flex-end;gap:8px;height:90px}
.minibars .c{flex:1;background:var(--blue-wash);border-radius:5px 5px 0 0}
.minibars .c.on{background:linear-gradient(180deg,#5e7bf0,#3457e6)}

.section{padding:54px 0}
.shead{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:28px;gap:20px;flex-wrap:wrap}
.shead .mono{color:var(--blue);margin-bottom:8px}
.shead h2{font-size:32px;font-weight:800}
.shead a{font-weight:600;font-size:14px;color:var(--blue);display:inline-flex;gap:6px}

.layout{display:grid;grid-template-columns:1fr 320px;gap:44px}
.feed{display:grid;gap:16px}
.feed article{display:grid;grid-template-columns:200px 1fr;gap:20px;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:18px;transition:.15s}
.feed article:hover{border-color:var(--blue);box-shadow:0 18px 36px -28px rgba(15,23,41,.4)}
.feed .ph{height:130px;border-radius:10px}
.feed h3{font-size:20px;font-weight:700;margin:9px 0 8px;line-height:1.18}
.feed h3 a:hover{color:var(--blue)}
.feed p{font-size:14px;color:var(--muted)}
.feed .meta{margin-top:11px;font-family:var(--mono);font-size:11px;color:var(--muted);display:flex;gap:12px;flex-wrap:wrap}

.pagination,.nav-links{display:flex;gap:8px;margin-top:22px;flex-wrap:wrap}
.pagination a,.pagination span,.nav-links a,.nav-links span{min-width:40px;height:40px;padding:0 12px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line-2);border-radius:9px;font-weight:700;font-size:14px;background:var(--paper)}
.pagination .current,.nav-links .current{background:var(--blue);color:#fff;border-color:var(--blue)}

aside{display:flex;flex-direction:column;gap:22px}
.widget{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:22px}
.widget.blue{background:var(--blue);color:#fff;border:0}
.widget.sticky{position:static;top:90px}
.whead,.widget .widget-title,.widget h2{font-weight:800;font-size:15px;margin-bottom:15px;display:flex;align-items:center;gap:8px}
.whead::before,.widget .widget-title::before,.widget h2::before{content:"";width:8px;height:8px;border-radius:3px;background:var(--blue);display:inline-block}
.widget.blue .whead::before{background:#fff}
.widget.blue h3{font-size:19px;font-weight:800;margin-bottom:7px}
.widget.blue p{font-size:13.5px;color:#d3ddff;margin-bottom:15px}
.nlf{display:flex;flex-direction:column;gap:9px}
.nlf input{padding:12px 14px;border-radius:9px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.12);color:#fff;font-family:var(--sans);font-size:14px}
.nlf input::placeholder{color:#bcc9f5}
.nlf .btn-white{background:#fff;color:var(--blue);font-weight:700}
.nlf .note{font-family:var(--mono);font-size:10px;color:#bcc9f5;text-align:center}

.pop{display:flex;gap:13px;padding:12px 0;border-bottom:1px solid var(--line)}
.pop:first-child{padding-top:0}.pop:last-child{border-bottom:0;padding-bottom:0}
.pop .num{font-family:var(--mono);font-weight:600;font-size:14px;color:var(--blue);background:var(--blue-wash);width:26px;height:26px;border-radius:7px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.pop h4{font-size:14px;line-height:1.3;font-weight:600}
.pop:hover h4{color:var(--blue)}
.pop .m{font-family:var(--mono);font-size:10px;color:var(--muted);margin-top:4px}

.cat-list a,.widget ul li a{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid var(--line);font-weight:600;font-size:14px;color:inherit}
.cat-list a:last-child,.widget ul li:last-child a{border-bottom:0}
.cat-list a:hover,.widget ul li a:hover{color:var(--blue)}
.cat-list .c,.widget .post-count{font-family:var(--mono);font-size:10.5px;color:var(--muted)}
.widget ul{list-style:none}

.tags{display:flex;flex-wrap:wrap;gap:7px}

.proc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.proc{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:22px;transition:.15s}
.proc:hover{border-color:var(--blue);transform:translateY(-3px)}
.proc .n{font-family:var(--mono);font-size:12px;font-weight:600;color:var(--blue);background:var(--blue-wash);width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.proc h4{font-size:16px;font-weight:700;margin-bottom:7px}
.proc p{font-size:13px;color:var(--muted)}

.crumb{font-family:var(--mono);font-size:11px;letter-spacing:.04em;color:var(--muted);padding:24px 0 0;display:flex;gap:8px;flex-wrap:wrap;text-transform:uppercase}
.crumb a:hover{color:var(--blue)}
.art-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:44px;padding:14px 0 60px}
.art-head{max-width:780px;margin:18px 0 26px}
.art-head .pill{margin-bottom:14px}
.art-head h1{font-size:44px;font-weight:800;line-height:1.05;margin-bottom:14px;letter-spacing:-.03em}
.art-head .dek{font-size:18px;color:var(--muted);line-height:1.5}
.byline{display:flex;align-items:center;gap:14px;margin:22px 0 0;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);flex-wrap:wrap}
.byline .av{width:44px;height:44px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;flex-shrink:0}
.byline .who b{font-size:14.5px;font-weight:700;display:block}
.byline .who .m{font-family:var(--mono);font-size:11px;color:var(--muted);margin-top:3px}
.byline .share{margin-left:auto;display:flex;gap:8px}
.byline .share a{width:36px;height:36px;border:1px solid var(--line);border-radius:9px;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.byline .share a:hover{border-color:var(--blue);color:var(--blue)}
.hero-img-art{height:420px;border-radius:14px;margin-bottom:32px;width:100%;object-fit:cover}

.prose{max-width:760px;font-size:17px;line-height:1.75;color:#1f2842}
.prose p{margin-bottom:22px}
.prose h2{font-size:28px;margin:42px 0 16px;font-weight:800;letter-spacing:-.02em}
.prose h3{font-size:22px;margin:30px 0 12px;font-weight:700}
.prose ul{margin:0 0 22px 0;padding:0;list-style:none}
.prose ul li{position:relative;padding-left:24px;margin-bottom:10px}
.prose ul li::before{content:"";position:absolute;left:0;top:11px;width:8px;height:8px;background:var(--blue);border-radius:2px}
.prose ol{margin:0 0 22px 24px}
.prose a{color:var(--blue);font-weight:600;border-bottom:1px solid var(--blue)}
.prose strong{font-weight:700;color:var(--ink)}
.prose blockquote{margin:30px 0;padding:24px 28px;background:var(--blue-wash);border-left:4px solid var(--blue);border-radius:0 12px 12px 0;font-size:18px;font-weight:500;line-height:1.5;color:var(--ink-2)}
.prose table{width:100%;border-collapse:collapse;margin:28px 0;font-size:14.5px;background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.prose table th,.prose table td{text-align:left;padding:13px 16px;border-bottom:1px solid var(--line)}
.prose table thead th{font-family:var(--mono);font-size:11px;letter-spacing:.04em;text-transform:uppercase;background:var(--paper-2);font-weight:600;color:var(--ink-2)}
.prose img{margin:24px 0;border-radius:10px}

.tagrow{display:flex;flex-wrap:wrap;gap:8px;margin:32px 0;max-width:760px}
.author-box{display:grid;grid-template-columns:auto 1fr;gap:22px;background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:26px;margin:44px 0 0;max-width:760px}
.author-box .av{width:72px;height:72px;border-radius:50%;background:var(--blue);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:22px;flex-shrink:0}
.author-box .pill{margin-bottom:6px}
.author-box h4{font-size:19px;margin:0 0 10px;font-weight:700}
.author-box p{font-size:14px;color:var(--muted);margin-bottom:12px}
.author-box .links{display:flex;gap:14px;font-family:var(--mono);font-size:11px;font-weight:600;flex-wrap:wrap}
.author-box .links a{color:var(--blue)}

.toc a{display:block;padding:8px 0;font-size:14px;color:var(--muted);border-left:2px solid var(--line);padding-left:14px}
.toc a:hover{color:var(--blue);border-color:var(--blue)}
.toc ul{list-style:none;padding:0;margin:0}

.related{border-top:1px solid var(--line);padding:54px 0 10px;margin-top:30px}

.page-content{max-width:820px;margin:40px auto;padding:40px;background:var(--paper);border:1px solid var(--line);border-radius:14px}
.page-content h1{font-size:36px;margin-bottom:24px;font-weight:800;letter-spacing:-.02em}
.page-content h2{font-size:24px;margin:32px 0 14px;font-weight:700}
.page-content h3{font-size:18px;margin:24px 0 10px;font-weight:600}
.page-content p{margin-bottom:16px;font-size:16.5px;line-height:1.65}
.page-content ul,.page-content ol{margin:0 0 18px 24px}
.page-content a{color:var(--blue);border-bottom:1px solid var(--blue)}

footer.site{background:var(--ink);color:#9aa3b8;padding:54px 0 28px;margin-top:10px}
.foot-grid{display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:34px;padding-bottom:34px;border-bottom:1px solid #283143}
.foot-grid h5{color:#fff;font-size:13px;margin-bottom:14px;font-weight:700}
.foot-grid a{display:block;padding:6px 0;font-size:13.5px;color:#9aa3b8}
.foot-grid a:hover{color:#fff}
.foot-grid ul{list-style:none}
.foot-brand svg{height:36px;margin-bottom:14px}
.foot-brand p{font-size:13.5px;max-width:300px;color:#6b7488}
.foot-bottom{display:flex;justify-content:space-between;padding-top:22px;font-family:var(--mono);font-size:11px;color:#6b7488;flex-wrap:wrap;gap:12px}
.foot-bottom a{color:#9aa3b8}.foot-bottom a:hover{color:#fff}

.entry-meta .author,.byline-author,.posted-by{display:none !important}

@media(max-width:980px){
  .hero-grid,.layout,.proc-grid,.foot-grid,.art-layout{grid-template-columns:1fr}
  .proc-grid{grid-template-columns:1fr 1fr}
  nav.main{display:none}
  .head-cta .search{display:none}
  .feed article{grid-template-columns:1fr}
  .hero h1,.hero h2{font-size:36px}
  .art-head h1{font-size:30px}
  .widget.sticky{position:static}
}
