/* ══ CV — ekran va bosma ═════════════════════════════════════════════════ */
.cv { max-width: 800px; margin-inline: auto; }
.cv__head { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between;
  align-items: flex-start; padding-bottom: 1.25rem; border-bottom: 2px solid var(--text); }
.cv__name { font-size: var(--step-3); }
.cv__title { color: var(--text-soft); margin-top: 0.3rem; }
.cv__contacts { display: grid; gap: 0.25rem; font-family: var(--font-mono);
  font-size: var(--step--2); color: var(--text-soft); text-align: right; }
.cv__contacts a { text-decoration: none; }
.cv__section { margin-top: var(--sp-6); }
.cv__section > h2 { font-size: var(--step-0); text-transform: uppercase;
  letter-spacing: 0.14em; font-family: var(--font-mono); font-weight: 500;
  color: var(--text-faint); padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
  margin-bottom: 1.1rem; }
.cv__entry { margin-bottom: 1.4rem; break-inside: avoid; }
.cv__entry-head { display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; align-items: baseline; }
.cv__entry-title { font-weight: 600; }
.cv__entry-meta { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text-faint); }
.cv__entry ul { margin-top: 0.5rem; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.cv__entry li { font-size: var(--step--1); color: var(--text-soft); }
.cv__two { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .cv__two { grid-template-columns: 1fr 1fr; } }
.cv__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: var(--sp-6); }

@media print {
  @page { margin: 14mm 12mm; }
  :root { --bg: #fff; --surface: #fff; --text: #000; --text-soft: #333;
          --text-faint: #666; --border: #ccc; }
  html, body { background: #fff !important; color: #000 !important; font-size: 10.5pt; }
  .header, .footer, .field, .grain, .cmdk, .cv__actions, .skip-link, .lightbox { display: none !important; }
  .section { padding-block: 0 !important; }
  .cv { max-width: none; }
  a { text-decoration: none; color: #000; }
  .cv__section { break-inside: auto; }
  h2, h3 { break-after: avoid; }
}

/* -- On screen the resume looks like a sheet of paper; print stays plain -- */
@media screen {
  .cv {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 5vw, 3.5rem);
    box-shadow: var(--shadow-lg);
  }
  .cv__actions {
    justify-content: flex-end;
    padding-bottom: 1.25rem;
    border-bottom: 1px dashed var(--border);
  }
  .cv__name { letter-spacing: -0.04em; }
  .cv__section > h2 { color: var(--turquoise-deep); }
  :root[data-theme="dark"] .cv__section > h2 { color: var(--turquoise); }
  .cv__entry-title { color: var(--text); }
}
@media screen and (max-width: 720px) {
  .cv { padding: 1.25rem; border-radius: var(--radius); }
}

/* -- Screen-only extras: photo, skill chips, experience timeline -------- */
.cv__avatar { display: none; }
.cv__screen-only { display: none; }
@media screen {
  .cv__print-only { display: none; }
  .cv__screen-only { display: flex; }
  .cv__head { align-items: center; }
  .cv__id { flex: 1 1 auto; min-width: 0; }
  .cv__avatar {
    display: block; flex: none;
    width: 76px; height: 76px; border-radius: 22px; object-fit: cover;
    border: 1px solid var(--border);
    box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--indigo) 70%, transparent);
  }
  .cv__entry .cv__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0.5rem 0 0; }
  .cv__entry .cv__chips li {
    font-family: var(--font-mono); font-size: var(--step--2);
    padding: 0.28rem 0.6rem; border-radius: var(--radius-full);
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft);
  }
  .cv__entry .cv__chips li.is-core {
    color: var(--text);
    border-color: color-mix(in srgb, var(--turquoise) 45%, var(--border));
    background: color-mix(in srgb, var(--turquoise) 10%, var(--surface));
  }
  .cv__section--timeline .cv__entry {
    position: relative;
    padding-left: 1.4rem;
    border-left: 1px solid var(--border);
    margin-left: 0.3rem;
    padding-bottom: 0.2rem;
  }
  .cv__section--timeline .cv__entry::before {
    content: ""; position: absolute; left: -5px; top: 0.45rem;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--surface); border: 2px solid var(--turquoise);
  }
  .cv__section--timeline .cv__entry:first-of-type::before {
    background: var(--turquoise);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--turquoise) 20%, transparent);
  }
  .cv__link { text-decoration: none; transition: color var(--dur-fast) var(--ease); }
  .cv__link:hover { color: var(--indigo); }
  .cv__link-arrow { color: var(--text-faint); font-weight: 400; }
}
@media screen and (max-width: 720px) {
  .cv__head { gap: 1rem; }
  .cv__avatar { width: 64px; height: 64px; border-radius: 18px; }
  .cv__contacts { text-align: left; width: 100%; }
  .cv__actions { justify-content: stretch; }
  .cv__actions .btn { flex: 1 1 auto; }
}
