@media (max-width: 900px){
    .cv{
        grid-template-columns:1fr;
        width:100%;
    }

    .sidebar{
        order:2;
    }

    .content{
        order:1;
    }
}

@page{
    size:A4;
    margin:0;
}

body {
  margin: 0;
  background: #ddd;
  font-family: "Inter", sans-serif;
  color: #222;
}

.cv {
  width: 210mm;
  min-height: 297mm;
  margin: 30px auto;
  background: white;
  display: grid;
  grid-template-columns: 240px 1fr;
  box-shadow: 0 10px 35px rgba(0,0,0,0.2);
}

.sidebar {
  background: #365A7D;
  color: white;
  padding: 30px 25px;
}

.sidebar h2 {
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 6px;
  margin-top: 25px;
}

.sidebar p {
  font-size: 13px;
  line-height: 1.4;
}

.content {
  padding: 35px 40px;
}

h1 {
  font-size: 46px;
  font-weight:700;
  margin-bottom: 8px;
}

.intro {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.content h2 {
  font-size: 18px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 6px;
  margin-top: 28px;
}

.item {
  margin-bottom: 20px;
}

.topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.topline h3 {
  margin: 0;
  font-size: 16px;
}

.topline span {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

.company {
  margin: 4px 0 8px;
  color: #555;
  font-style: italic;
}

li {
  font-size: 14px;
  margin-bottom: 6px;
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  body {
    background: white;
    margin: 0;
    padding: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .cv {
    width: 210mm;
    height: 297mm;
    margin: 0;
    box-shadow: none;
    background: white;
  }

  .sidebar {
    background: #365A7D !important;
    color: white !important;
  }
}