/* ProBusiness / Irina Kibalyuk — landing & blog */
:root {
  --bg: #f7f4ef;
  --bg2: #fff;
  --ink: #1a2332;
  --muted: #5c6778;
  --accent: #1e4d6b;
  --accent2: #c4a35a;
  --line: rgba(26, 35, 50, .1);
  --radius: 14px;
  --shadow: 0 12px 40px rgba(26, 35, 50, .08);
  --max: 1120px;
  --font: "Cormorant Garamond", "Georgia", serif;
  --sans: "Source Sans 3", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: clip;
}
h1, h2, h3, .display {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.wrap--narrow { max-width: 640px; }
.section {
  padding: 56px 0;
  width: 100%;
}
.section--alt {
  background: var(--bg2);
  border-top: 1px solid var(--line);
}
.section--alt-border-bottom { border-bottom: 1px solid var(--line); }
.section--accent {
  background: var(--accent);
  color: #fff;
}
.section-head { margin-bottom: 28px; }
.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.section-head p { color: var(--muted); max-width: 42em; }
.section--accent .section-head p { color: rgba(255, 255, 255, .88); }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 244, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { font-family: var(--font); font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.logo em { color: var(--accent2); font-style: normal; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.nav a { color: var(--muted); font-size: .95rem; text-decoration: none; }
.nav a:hover, .nav a.active { color: var(--ink); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 600; font-size: .92rem; text-decoration: none; transition: .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.hero {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px;
  align-items: end;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 48px; }
}
.hero-kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  color: var(--accent2); margin-bottom: 12px; font-weight: 600;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 16px; }
.hero-lead { color: var(--muted); font-size: 1.12rem; max-width: 36em; margin-bottom: 24px; }
.hero-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.hero-card dl { display: grid; gap: 12px; }
.hero-card dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hero-card dd { font-family: var(--font); font-size: 1.15rem; word-break: break-word; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.stat {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center; min-width: 0;
}
.stat b { display: block; font-family: var(--font); font-size: clamp(1.6rem, 3vw, 2rem); color: var(--accent); margin-bottom: 4px; }
.stat span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.35; }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 860px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.grid-3--spaced { margin-top: 28px; }
.card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; min-width: 0;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }
.timeline { display: grid; gap: 14px; }
.timeline-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item > div:last-child { min-width: 0; }
.blog-preview { display: grid; gap: 16px; min-height: 120px; }
.contact-section { text-align: center; }
.contact-section h2 { color: #fff; margin-bottom: 12px; }
.contact-section p { opacity: .9; margin-bottom: 24px; }
.contact-section .contact-links { justify-content: center; }
.contact-section .contact-links a { color: #fff; }
.contact-section .contact-links a:hover { color: #fff; opacity: .85; }
.site-header .inner { width: 100%; max-width: var(--max); }
.site-footer .inner { width: 100%; max-width: var(--max); }
.timeline-item:last-child { border-bottom: none; }
.timeline-year { font-family: var(--font); font-size: 1.5rem; color: var(--accent2); flex-shrink: 0; }
.blog-item {
  display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.blog-item:last-child { border-bottom: none; }
.blog-item h3 { font-size: 1.15rem; }
.blog-item time { font-size: .85rem; color: var(--muted); }
.blog-item p { color: var(--muted); font-size: .94rem; }
.site-footer {
  border-top: 1px solid var(--line); padding: 32px 0 48px; margin-top: 24px;
  color: var(--muted); font-size: .92rem;
}
.site-footer .inner {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
}
.contact-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.page-main { padding: 40px 0 64px; min-height: 60vh; }
.post-body { max-width: 720px; }
.post-body h2 { margin: 1.4em 0 .6em; font-size: 1.5rem; }
.post-body p, .post-body li { margin-bottom: .8em; }
.post-body ul { padding-left: 1.2em; }
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }

/* ── Blog admin ── */
.page-admin-body { background: linear-gradient(165deg, #f7f4ef 0%, #efe9df 45%, #f7f4ef 100%); }
.page-admin { padding-top: 28px; }
.admin-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 28px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.admin-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 6px; }
.admin-hero-lead { color: var(--muted); max-width: 36em; font-size: 1.02rem; }
.admin-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
@media (max-width: 960px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
}
.admin-sidebar { display: grid; gap: 18px; }
.admin-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.admin-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
}
.admin-card-head h2 {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
}
.admin-card-hint { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.admin-scroll {
  max-height: min(42vh, 420px);
  overflow: auto;
  padding: 12px;
  scrollbar-width: thin;
}
.admin-scroll--short { max-height: min(32vh, 320px); }
.admin-loading { padding: 16px 6px; color: var(--muted); font-size: .92rem; }
.suggestion {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 14px 16px;
  margin-bottom: 10px;
  background: #fff;
  border-left: 3px solid var(--accent2);
  transition: border-color .15s, box-shadow .15s;
}
.suggestion:hover {
  border-color: rgba(30, 77, 107, .25);
  box-shadow: 0 6px 20px rgba(26, 35, 50, .06);
}
.suggestion:last-child { margin-bottom: 0; }
.suggestion h4 {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
}
.suggestion p {
  font-size: .86rem;
  color: var(--muted);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.suggestion-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.post-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  padding: 11px 12px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.post-list-item:last-child { margin-bottom: 0; }
.post-list-item:hover {
  background: rgba(30, 77, 107, .05);
  border-color: rgba(30, 77, 107, .12);
}
.post-list-item.active {
  background: rgba(30, 77, 107, .08);
  border-color: rgba(30, 77, 107, .22);
}
.post-list-title {
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-list-date { grid-column: 1; font-size: .75rem; color: var(--muted); }
.post-list-item .badge { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.admin-editor {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.admin-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 28px;
  min-height: 420px;
}
.admin-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  color: var(--accent);
  background: rgba(30, 77, 107, .08);
  border: 1px solid rgba(30, 77, 107, .12);
  margin-bottom: 18px;
}
.admin-empty h3 {
  font-family: var(--font);
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.admin-form { display: flex; flex-direction: column; flex: 1; }
.admin-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
}
.admin-status {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eee;
  color: var(--muted);
}
.admin-status--published {
  background: #e6f4ea;
  color: #137333;
}
.admin-form-meta { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.admin-form-grid { padding: 20px 22px; flex: 1; }
.admin-form-grid .form-row--wide { grid-column: 1 / -1; }
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: #faf8f5;
  border-radius: 0 0 calc(var(--radius) + 2px) calc(var(--radius) + 2px);
}
.admin-form-actions-primary { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-danger { color: #b3261e !important; border-color: rgba(179, 38, 30, .25) !important; }
.btn-danger:hover { background: #fdecea !important; border-color: #b3261e !important; }
.form-row { display: grid; gap: 8px; margin-bottom: 16px; }
.form-row label { font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: rgba(30, 77, 107, .45);
  box-shadow: 0 0 0 3px rgba(30, 77, 107, .1);
}
.form-row textarea { min-height: 300px; resize: vertical; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88rem; line-height: 1.5; }
.form-row textarea#post-excerpt { min-height: auto; font-family: var(--sans); font-size: inherit; }
.rich-editor {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.rich-editor .ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid var(--line);
  background: #faf8f5;
  font-family: var(--sans);
}
.rich-editor .ql-container.ql-snow {
  border: none;
  font-family: var(--sans);
  font-size: 1rem;
  min-height: 320px;
}
.rich-editor .ql-editor {
  min-height: 320px;
  line-height: 1.65;
  color: var(--ink);
}
.rich-editor .ql-editor.ql-blank::before {
  color: #9aa3b0;
  font-style: normal;
}
.post-body h2, .post-body h3, .post-body h4 { font-family: var(--font); margin: 1.4em 0 .55em; }
.post-body h2 { font-size: 1.55rem; }
.post-body h3 { font-size: 1.25rem; }
.post-body blockquote {
  margin: 1.2em 0;
  padding: 12px 18px;
  border-left: 3px solid var(--accent2);
  background: rgba(196, 163, 90, .08);
  color: var(--muted);
}
.post-body a { word-break: break-word; }
.badge {
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eceae6;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.badge-pub { background: #e6f4ea; color: #137333; }
.badge-period { background: rgba(196, 163, 90, .18); color: #7a6228; text-transform: none; font-weight: 600; }
.alert { padding: 12px 14px; border-radius: 10px; background: #fdecea; color: #b3261e; font-size: .92rem; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* legacy aliases */
.admin-panel { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.admin-panel h2 { font-size: 1rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
