:root {
  --text: #222;
  --muted: #666;
  --header: #dcdcdc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.5;
}

/* PAGE CONTAINER */

.page {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 24px;
}

/* HEADER */

.header {
  background: var(--header);
  padding: 28px 36px;
  margin-bottom: 34px;
}

.header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.header h2 {
  margin: 8px 0 26px;
  font-size: 20px;
  font-weight: 500;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.email {
  display: inline-block;
  margin-top: 4px;
  color: inherit;
  text-decoration: underline;
  font-size: 14px;
  font-weight: 500;
}

/* LAYOUT SCREEN */

.layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 64px;
}

/* SIDEBAR */

.sidebar section {
  margin-bottom: 34px;
}

.sidebar h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.links a {
  color: inherit;
  text-decoration: underline;
  margin-right: 6px;
  font-size: 14px;
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: underline;
  margin-right: 6px;
  font-size: 14px;
  font-weight: 500;
}

.plain-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
}

.hobby {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

/* CONTENT */

.content {
  line-height: 1.55;
}

.content h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 600;
}

.profile p {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
}

/* EXPERIENCE */

.experience-list {
  border-left: 1.5px solid #d6d6d6;
  padding-left: 26px;
  margin-top: 12px;
}

.exp {
  margin-bottom: 42px;
}

/* EXPERIENCE HEAD */

.exp-head {
  display: grid;
  grid-template-columns: 1fr 170px;
  align-items: baseline;
  column-gap: 20px;
  font-size: 15px;
}

.exp-head strong {
  font-weight: 600;
}

.exp-head span {
  font-weight: 450;
  font-size: 14px;
  color: #555;
  text-align: right;
  white-space: nowrap;
  letter-spacing: 0.1px;
}

.exp p {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.exp ul {
  margin: 12px 0 0 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

/* PRINT */

@page {
  size: A4;
  margin: 12mm;
}

@media print {

  /* убираем двойной верх */
  .page {
    margin-top: 0;
  }

  /* шире правую колонку */
  .layout {
    grid-template-columns: 0.65fr 2.35fr;
    gap: 40px;
  }

  /* не рвать блоки */
  .header,
  .sidebar,
  .content section,
  .exp {
    break-inside: avoid;
  }
}

/* MOBILE */

@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .exp-head {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .exp-head span {
    text-align: left;
  }
}
