html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: #222;
  background: white;
}

.cv {
  background: white;
}

@media screen {
  html,
  body {
    background: #f2f2f2;
  }

  body {
    padding: 40px 0;
  }

  .cv {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px;
    background: white;
  }
}

@media print {
  html,
  body {
    background: white;
  }
  
  body {
    padding: 0;
  }
  
  .cv {
    margin: 0;
    padding: 0;
    max-width: none;
    background: white;
  }
}

@page {
  size: A4;
  margin: 18mm 16mm;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h2 {
  margin-top: 32px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ccc;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

h3 {
  margin-top: 24px;
  margin-bottom: 4px;
  font-size: 1rem;
}

p {
  line-height: 1.5;
}

ul {
  margin-top: 8px;
}

li {
  margin-bottom: 4px;
}

blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid #999;
  background: #f7f7f7;
}

hr {
  margin: 28px 0;
  border: none;
  border-top: 1px solid #ddd;
}

h2,
h3 {
  break-after: avoid;
}

blockquote,
ul {
  break-inside: avoid;
}

.cv-name {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

.cv-label {
  margin: 0.35rem 0 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #111827;
}

.cv-location {
  margin: 0.55rem 0 1.8rem 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #7b8794;
  letter-spacing: 0.01em;
}

.section-title {
  margin: 2.2rem 0 1.4rem 0;
  padding-top: 1.1rem;
  border-top: 1px solid #d9e1ec;
  border-bottom: none;

  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #6f7f91;
}

.summary {
  margin: 0 0 1.5rem 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #6b7788;
}

.skills-list {
  margin: 0;
}

.skill-pill {
  display: inline-block;
  margin: 0 0.35rem 0.45rem 0;
  padding: 0.18rem 0.55rem;

  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 600;

  color: #334155;
  background: #eef6ff;
  border: 1px solid #c7d8ec;
  border-radius: 999px;
}

.project-title {
  margin: 1.4rem 0 0.35rem 0;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

.project-description {
  margin: 0.6rem 0 0.7rem 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #64748b;
}

.project-url {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.project-url:hover {
  text-decoration: underline;
}

.work-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-top: 1.4rem;
}

.work-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

.work-dates {
  margin: 0;
  white-space: nowrap;
  font-size: 0.78rem;
  color: #111827;
}

.work-skills {
  margin: 0.45rem 0 1rem 0;
}

.work-summary {
  margin: 0 0 1rem 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #64748b;
}

.education-item {
  margin: 1.4rem 0;
}

.education-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.education-degree {
  margin: 0 0 0.35rem 0;
  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7b8794;
}

.education-school {
  margin: 0 0 0.35rem 0;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

.education-area {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #64748b;
}

.education-date {
  margin: 0;
  white-space: nowrap;
  font-size: 0.78rem;
  color: #111827;
}

.languages-list {
  margin: 0;
  padding-left: 1rem;
}

.languages-list li {
  margin-bottom: 0.25rem;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #64748b;
}

.languages-list strong {
  color: #111827;
  font-weight: 600;
}
