@font-face {
  font-family: "Graphik LCG";
  src: url("../fonts/GraphikLCG-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Graphik LCG";
  src: url("../fonts/GraphikLCG-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: "Graphik LCG", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  opacity: 0.7;
}

.cv {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 20px 48px;
  background: #fff;
  min-height: 100vh;
}

/* Header */
.cv-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  font-size: 16px;
  line-height: 0.8;
  margin-bottom: 42px;
}

.cv-header a {
  text-decoration: none;
}

.cv-header a:hover {
  text-decoration: underline;
}

/* Name */
.cv-name {
  margin: 0 0 24px;
  font-size: 60px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: -0.02em;
}

/* Main grid: ~61% experience + right column (пропорции макета 595px) */
.cv-grid {
  display: grid;
  grid-template-columns: minmax(0, 61fr) minmax(172px, 29fr);
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 6px;
  align-items: start;
  width: 100%;
}

.cv-tagline {
  margin: 0;
  grid-column: 1;
  grid-row: 1;
  font-size: 24px;
  line-height: 0.8;
  max-width: none;
}

.cv-about {
  margin: 0;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
  padding-top: 34px;
  max-width: 32ch;
  font-size: 11px;
  line-height: 1.4;
}

.cv-about p {
  margin: 0 0 7px;
}

.cv-about p:last-child {
  margin-bottom: 0;
}

.cv-about strong {
  font-weight: 500;
}

.cv-experience {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Job block */
.job {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job__role {
  margin: 0;
  font-size: 33px;
  line-height: 0.8;
}

.job__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  font-size: 18px;
  line-height: 0.8;
}

.job__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job__content > p {
  margin: 0;
}

/* Bullets */
.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bullets--titles {
  gap: 3px;
}

.bullets__item {
  position: relative;
  padding-left: 11px;
}

.bullets__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.bullets__item--cms::before {
  background-image: url("../assets/icons/marker-cms.svg");
}

.bullets__item--promo::before {
  background-image: url("../assets/icons/marker-promo.svg");
}

.bullets__item--lobby::before {
  background-image: url("../assets/icons/marker-lobby.svg");
}

.bullets__item p {
  margin: 0;
}

@media (max-width: 640px) {
  .cv {
    padding: 16px;
  }

  .cv-name {
    font-size: 40px;
    line-height: 1;
  }

  .cv-tagline {
    font-size: 20px;
  }

  .cv-grid {
    grid-template-columns: 1fr;
  }

  .cv-about {
    grid-column: 1;
    grid-row: 2;
    max-width: none;
    padding-top: 0;
  }

  .cv-experience {
    grid-row: 3;
  }

  .cv-header {
    flex-wrap: wrap;
    font-size: 14px;
    margin-bottom: 32px;
    max-width: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .cv {
    max-width: none;
    min-height: auto;
    padding: 12mm 10mm;
  }
}
