* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #f2f2f2;
  color: #333;
}

.cv-container {
  width: 794px;
  min-height: 1122px;
  margin: 24px auto;
  padding: 16px 36px 6px;
  position: relative;
  overflow: visible;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  border-radius: 8px;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid #444;
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.photo img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  border: 2px solid #ddd;
  object-fit: cover;
}

.header-main {
  display: flex;
  justify-content: space-between;
  flex: 1;
  gap: 30px;
  flex-wrap: wrap;
}

.name-title {
  flex: 1;
  min-width: 240px;
}

.name-title h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
}

.name-title h1::after {
  content: "";
  display: block;
  width: 60px;
  border-bottom: 2px solid #005f73;
  margin-top: 6px;
}

.name-title h2 {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 400;
  color: #555;
  line-height: 1.1;
}

.contact-info {
  flex: 1;
  min-width: 240px;
}

.contact-info p {
  margin: 2px 0;
  font-size: 11px;
}

.contact-info i {
  margin-right: 6px;
  color: #005f73;
  width: 14px;
  text-align: center;
}

.contact-info a {
  color: inherit;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.columns {
  display: flex;
  gap: 32px;
  position: relative;
}

.left-column {
  flex: 3;
}

.right-column {
  flex: 2;
}

section {
  margin-bottom: 12px;
}

h3 {
  margin: 12px 0 4px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.6px;
  border-bottom: 1px solid #005f73;
  padding-bottom: 3px;
  color: #005f73;
}

.job {
  margin-bottom: 8px;
  break-inside: avoid;
  page-break-inside: avoid;
}

.job-title {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 1px 0;
}

.job-details {
  font-size: 11px;
  font-style: italic;
  font-weight: 500;
  color: #444;
  margin: 1px 0 5px;
}

.job ul {
  margin: 0;
  padding-left: 18px;
}

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

.right-column ul {
  list-style-type: disc;
  padding-left: 18px;
  margin: 0;
}

.right-column ul li {
  font-size: 11px;
  margin-bottom: 2px;
}

.right-column p,
.left-column p {
  font-size: 11px;
  line-height: 1.35;
  margin-bottom: 2px;
}

.footer-consent {
  margin-top: 16px;
  font-size: 9px;
  color: #555;
  text-align: center;
  line-height: 1.4;
  padding: 8px 12px;
  font-style: italic;
  border-top: 1px solid #ccc;
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 794px;
    height: 1122px;
    overflow: hidden !important;
    background: white !important;
    zoom: 0.94;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cv-container {
    width: 794px !important;
    min-height: 1122px !important;
    padding: 0 36px !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
    page-break-after: avoid;
    page-break-before: avoid;
    background-color: white !important;
  }

  section, .columns, .left-column, .right-column, .job {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  * {
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .footer-consent {
    position: absolute;
    bottom: 12px;
    left: 36px;
    right: 36px;
    background: #fff !important;
    color: #000 !important;
    font-size: 8px;
    padding: 6px 12px;
    border-radius: 0;
    text-align: center;
    font-style: italic;
    border-top: 1px solid #ccc;
  }
}
