/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:   #1a5276;
  --accent2:  #2e86c1;
  --light:    #eaf2f8;
  --mid:      #aab7b8;
  --text:     #1c1c1c;
  --muted:    #555;
  --bg:       #f4f6f8;
  --white:    #ffffff;
  --radius:   6px;
  --page-w:   960px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

/* ── Filter bar ── */
.filter-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

.filter-label {
  color: var(--light);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 4px;
}

.filter-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.45);
  color: rgba(255,255,255,.85);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}

.filter-btn:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.7);
}

.filter-btn.active {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
  font-weight: 700;
}

/* ── Page wrapper ── */
.page {
  max-width: var(--page-w);
  margin: 28px auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  overflow: hidden;
}

/* ── Header ── */
header {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color: var(--white);
  padding: 36px 40px 28px;
}

.header-name {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .02em;
}

.header-title {
  font-size: 16px;
  font-weight: 400;
  opacity: .9;
  margin-top: 4px;
}

.header-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.header-contacts a,
.header-contacts span {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-contacts a:hover { color: var(--white); text-decoration: underline; }

/* ── Main layout ── */
main {
  display: flex;
  align-items: flex-start;
}

.left-col {
  width: 300px;
  flex-shrink: 0;
  background: var(--light);
  padding: 28px 24px;
  border-right: 1px solid #d5e8f4;
  min-height: 600px;
}

.right-col {
  flex: 1;
  padding: 28px 32px;
}

/* ── Section titles ── */
.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  border-bottom: 2px solid var(--accent2);
  padding-bottom: 4px;
  margin-bottom: 14px;
}

section + section { margin-top: 24px; }

/* ── Summary ── */
.summary-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Skills ── */
.skill-group { margin-bottom: 14px; }

.skill-group-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

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

.skill-tag {
  background: var(--white);
  border: 1px solid #b6cfe0;
  color: var(--accent);
  border-radius: 12px;
  padding: 2px 10px;
  font-size: 11.5px;
  transition: opacity .2s;
}

.skill-group.hidden { display: none; }

/* ── Education & Certifications ── */
.edu-item, .cert-item {
  margin-bottom: 10px;
  font-size: 13px;
}

.edu-degree {
  font-weight: 600;
  color: var(--text);
}

.edu-school, .cert-issuer {
  color: var(--muted);
  font-size: 12px;
}

/* ── Languages ── */
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lang-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.lang-level {
  color: var(--muted);
  font-size: 12px;
}

/* ── Experience ── */
.exp-item {
  margin-bottom: 22px;
  transition: opacity .25s;
}

.exp-item.hidden { display: none; }

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}

.exp-company {
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
}

.exp-period {
  font-size: 12px;
  color: var(--mid);
  white-space: nowrap;
  background: var(--light);
  border-radius: 10px;
  padding: 2px 10px;
}

.exp-title {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 6px;
}

.exp-bullets {
  padding-left: 16px;
  list-style: disc;
}

.exp-bullets li {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 3px;
}

.exp-item + .exp-item {
  border-top: 1px solid #e8eef3;
  padding-top: 20px;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  main { flex-direction: column; }
  .left-col { width: 100%; border-right: none; border-bottom: 1px solid #d5e8f4; }
  .page { margin: 0; border-radius: 0; }
}

@media print {
  .filter-bar { display: none; }
  .page { box-shadow: none; margin: 0; }
}
