* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  color-scheme: light;
}

html {
  background: #fff;
  min-height: 100%;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 10.5pt;
  color: #1a1a1a;
  background: #fff;
  padding: 36px 48px;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Header ── */
.header {
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.header h1 {
  font-size: 22pt;
  font-weight: bold;
  letter-spacing: 0.5px;
  font-family: Arial, sans-serif;
}

.header .title {
  font-size: 11pt;
  color: #444;
  margin-top: 2px;
  font-family: Arial, sans-serif;
}

.contacts {
  margin-top: 6px;
  font-size: 9.5pt;
  color: #333;
  font-family: Arial, sans-serif;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.contacts a {
  color: #1a1a1a;
  text-decoration: none;
}

/* ── Section ── */
.section {
  margin-bottom: 16px;
}

.section-title {
  font-family: Arial, sans-serif;
  font-size: 9.5pt;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #1a1a1a;
  border-bottom: 1px solid #ccc;
  padding-bottom: 3px;
  margin-bottom: 10px;
}

.summary {
  font-size: 10pt;
}

/* ── Experience item ── */
.job {
  margin-bottom: 12px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: Arial, sans-serif;
}

.job-title {
  font-size: 10.5pt;
  font-weight: bold;
}

.job-company {
  font-size: 10.5pt;
  font-weight: normal;
  color: #333;
}

.job-date {
  font-size: 9.5pt;
  color: #555;
  white-space: nowrap;
}

.job ul {
  margin-top: 4px;
  padding-left: 16px;
}

.job ul li {
  margin-bottom: 2px;
  font-size: 10pt;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 4px 8px;
  font-size: 10pt;
}

.skills-grid .label {
  font-family: Arial, sans-serif;
  font-weight: bold;
  color: #333;
  font-size: 9.5pt;
}

/* ── Two column layout for bottom ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}

/* ── Education ── */
.education {
  font-family: Arial, sans-serif;
}

.education-school {
  font-weight: bold;
  font-size: 10.5pt;
}

.education-meta {
  font-size: 10pt;
  color: #444;
}

/* ── Languages ── */
.languages {
  font-size: 10pt;
}

@media print {
  body { padding: 24px 36px; }
  a { color: #1a1a1a !important; }

  /* Не разрывать секцию между страницами */
  .section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Не отрывать заголовок секции от её содержимого */
  .section-title {
    break-after: avoid;
    page-break-after: avoid;
  }

  /* Не разрывать карточку опыта работы пополам */
  .job {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .job-header {
    break-after: avoid;
    page-break-after: avoid;
  }
}
