/* ================= CV PAGE: MOBILE DEFAULT (320px–767px) ================= */

.page-cv {
  --cv-accent: #f5b942;
  --cv-paper: #171717;
  --cv-muted: #b9b9b9;
}

/* Final English CV print presentation: complete content, no abbreviated cards. */
@page {
  size: A4;
  margin: 12mm 12mm 17mm;
}

@media print {
  /*
   * PDF generation captures the whole document without scrolling through it.
   * Headings below the initial viewport can therefore retain main.js's
   * pre-animation state (opacity: 0), which hides employer names in the PDF.
   */
  .page-cv main .heading-reveal {
    opacity: 1;
    transform: none;
  }

  .page-cv main h1.heading-reveal::after,
  .page-cv main h2.heading-reveal::after,
  .page-cv main h3.heading-reveal::before,
  .page-cv main h4.heading-reveal::before {
    transform: scale(1);
  }

  html,
  body.page-cv {
    background: #ffffff;
    color: #172333;
    font-family: "Schibsted Grotesk", Arial, sans-serif;
    font-size: 9pt;
    line-height: 1.38;
  }

  body.page-cv::after {
    content: none;
  }

  .page-cv main.container {
    display: block;
  }

  body.page-cv main.container > aside.cv-print-notice {
    margin-bottom: 4mm;
    padding: 3mm 4mm 3mm 12mm;
    border: 0.35mm solid #d8b45e;
    border-left: 2.4mm solid #c28b17;
    border-radius: 1.5mm;
    background: #fffaf0;
    color: #273342;
  }

  body.page-cv main.container > aside.cv-print-notice strong {
    color: #795000;
    font-size: 8.5pt;
    letter-spacing: 0.08em;
  }

  .page-cv main > section,
  .page-cv main > section:last-child {
    margin-top: 4mm;
    padding: 4mm;
    border: 0.3mm solid #cbd4dc;
    border-radius: 2mm;
    background: #f8fafc;
    color: #172333;
  }

  .page-cv main > section:first-of-type {
    display: grid;
    grid-template-columns: 30mm minmax(0, 1fr);
    gap: 3mm 5mm;
    padding: 6mm;
    border: 0;
    border-top: 2mm solid #c99525;
    border-radius: 2mm;
    background: #17324d;
    color: #ffffff;
  }

  .page-cv main > section:first-of-type .profile-image {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
  }

  .page-cv main > section:first-of-type .cv-hero-heading {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .page-cv main > section:first-of-type .cv-contact-list,
  .page-cv main > section:first-of-type .cv-profile-summary {
    grid-column: 1 / -1;
  }

  .page-cv main > section:first-of-type h1 {
    color: #ffffff;
    font-size: 25pt;
    letter-spacing: -0.025em;
  }

  .page-cv main > section:first-of-type .cv-eyebrow,
  .page-cv main > section:first-of-type .cv-title,
  .page-cv main > section:first-of-type [data-cv-age] {
    color: #f0c96e;
  }

  .page-cv main > section:first-of-type .cv-contact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5mm;
    margin: 0;
    padding: 2mm 0 0;
    border-color: rgba(255, 255, 255, 0.25);
  }

  .page-cv main > section:first-of-type .cv-contact-list li {
    padding: 1.5mm 2mm;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
  }

  .page-cv main > section:first-of-type .cv-contact-list li > span:first-child,
  .page-cv main > section:first-of-type .cv-auto-note {
    color: #c8d3dd;
  }

  .page-cv main > section:first-of-type .cv-contact-value,
  .page-cv main > section:first-of-type .cv-contact-list time,
  .page-cv main > section:first-of-type .cv-profile-summary p,
  .page-cv main > section:first-of-type a {
    color: #ffffff;
  }

  .page-cv main > section:first-of-type .cv-profile-summary {
    margin: 0;
    padding-top: 2.5mm;
    border-top: 0.25mm solid rgba(255, 255, 255, 0.25);
  }

  .page-cv main > section:first-of-type .cv-profile-summary p {
    font-size: 8.5pt;
    line-height: 1.45;
  }

  .page-cv #nikitacv {
    width: 26mm;
    margin: 0;
    border: 0.8mm solid #f0c96e;
    border-radius: 50%;
    background: #ffffff;
  }

  .page-cv h2 {
    margin-bottom: 2.5mm;
    padding-bottom: 1.5mm;
    border-bottom: 0.5mm solid #c99525;
    color: #17324d;
    font-size: 14pt;
    letter-spacing: -0.01em;
  }

  .page-cv .cv-section-kicker {
    color: #9a6810;
    font-size: 7pt;
    letter-spacing: 0.14em;
  }

  .page-cv #work-experience {
    display: block;
  }

  .page-cv #work-experience > .entrance-experience,
  .page-cv #work-experience > .entrance-experience + .entrance-experience {
    position: relative;
    min-height: 24mm;
    margin-top: 2.5mm;
    padding: 3mm 24mm 3mm 5mm;
    border: 0.25mm solid #cbd4dc;
    border-left: 1.5mm solid #c99525;
    border-radius: 1.5mm;
    background: #ffffff;
    box-shadow: 0 0.5mm 1.5mm rgba(23, 50, 77, 0.08);
    break-inside: avoid;
  }

  .page-cv #work-experience > .entrance-experience h3 {
    margin: 0 0 1.5mm;
    color: #17324d;
    font-size: 11pt;
  }

  .page-cv #work-experience > .entrance-experience p {
    margin: 0.7mm 0 0;
    color: #273342;
    font-size: 8pt;
    line-height: 1.32;
  }

  .page-cv #work-experience > .entrance-experience p:first-of-type,
  .page-cv #work-experience > .entrance-experience p:nth-of-type(3) {
    font-weight: 700;
  }

  .page-cv #work-experience > .entrance-experience .experience-short {
    margin-top: 1.4mm;
    padding-top: 1.2mm;
    border-top: 0.2mm solid #e0e5ea;
  }

  .page-cv #work-experience > .entrance-experience .experience-meta strong {
    color: #8a5a00;
  }

  .page-cv #work-experience > .entrance-experience > a {
    display: inline-flex;
    margin-top: 1.5mm;
    color: #315f86;
    font-size: 7pt;
    font-weight: 700;
  }

  .page-cv #work-experience .company-logos-cv {
    position: absolute;
    top: 3mm;
    right: 3mm;
    width: 18mm;
    height: 18mm;
    margin: 0;
    padding: 0.8mm;
    border: 0.25mm solid #d4dce3;
    border-radius: 1.5mm;
    background: #ffffff;
    object-fit: contain;
  }

  .page-cv .cv-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 5mm;
  }

  .page-cv .cv-capabilities > ul,
  .page-cv .cv-education > ul,
  .page-cv .cv-highlights > ul {
    gap: 1.2mm 2mm;
  }

  .page-cv main > section > ul li {
    padding: 1.7mm 2mm 1.7mm 5mm;
    border: 0.2mm solid #d7dee5;
    border-radius: 1mm;
    background: #ffffff;
    color: #273342;
    font-size: 8pt;
    line-height: 1.3;
  }

  .page-cv .cv-skill-learning .cv-skill-copy > span {
    display: inline-block;
    margin-left: 0.7mm;
    padding: 0.35mm 1.2mm;
    border-radius: 2mm;
    background: #fff1cb;
    color: #795000;
    font-size: 6.6pt;
    line-height: 1.2;
  }

  .page-cv a {
    color: #315f86;
    text-decoration-color: #8eabc2;
  }
}

/* Keep the online-version notice visible in every print/PDF layout. */
@media print {
  body.page-cv main.container > aside.cv-print-notice {
    display: block;
    visibility: visible;
    position: static;
    opacity: 1;
    break-inside: avoid;
    margin: 0 0 4mm;
    padding: 3mm 4mm;
    border: 0.4mm solid #b99545;
    border-radius: 2mm;
    background: #fffaf0;
    color: #242424;
  }

  body.page-cv main.container > aside.cv-print-notice strong,
  body.page-cv main.container > aside.cv-print-notice span {
    display: block;
  }

  body.page-cv main.container > aside.cv-print-notice span {
    margin-top: 1mm;
  }
}

.page-cv main.container {
  max-width: 1180px;
}

.page-cv .cv-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px 0 8px;
}

.page-cv .cv-pdf-button {
  background: #f5b942;
  color: #171717;
}

.page-cv .cv-pdf-help {
  flex-basis: 100%;
  color: #a9a9a9;
  text-align: right;
}

.page-cv .cv-print-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(245, 185, 66, 0.65);
  border-radius: 10px;
  background: rgba(245, 185, 66, 0.1);
  color: #f7d88a;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.page-cv .cv-print-button:hover,
.page-cv .cv-print-button:focus-visible {
  border-color: #f5b942;
  background: rgba(245, 185, 66, 0.2);
  color: #ffffff;
}

.page-cv .cv-print-notice {
  display: none;
}

.page-cv .cv-print-sheet {
  display: none;
}

.page-cv .cv-skill-learning .cv-skill-copy > span {
  color: #f7d88a;
  font-size: 0.82em;
  font-weight: 700;
}

.page-cv .cv-hero-heading {
  min-width: 0;
}

.page-cv .cv-eyebrow,
.page-cv .cv-section-kicker {
  margin: 0 0 7px;
  color: var(--cv-accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-cv .cv-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.page-cv .cv-title {
  max-width: 680px;
  margin-top: 14px;
  color: #f1d28c;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 650;
  line-height: 1.4;
}

.page-cv .cv-contact-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 16px 0;
  border-top: 1px solid rgba(245, 185, 66, 0.25);
  border-bottom: 1px solid rgba(245, 185, 66, 0.25);
  list-style: none;
}

.page-cv .cv-contact-list li {
  min-width: 0;
  color: #e6e6e6;
  overflow-wrap: anywhere;
}

.page-cv .cv-contact-list li > span:first-child {
  display: block;
  margin-bottom: 2px;
  color: #919191;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-cv .cv-contact-value,
.page-cv .cv-contact-list time {
  display: block;
  color: #e6e6e6;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.4;
  text-transform: none;
}

.page-cv [data-cv-age] {
  color: #f7d88a;
  font-size: 1.25rem;
  font-weight: 800;
}

.page-cv .cv-contact-list a {
  color: inherit;
  text-decoration-color: rgba(245, 185, 66, 0.55);
  text-underline-offset: 3px;
}

.page-cv .cv-auto-note {
  display: block;
  margin-top: 3px;
  color: #919191;
  font-size: 0.68rem;
  line-height: 1.3;
}

/* ======================== CV PAGE SPACING ============================= */
/* spacing and small visual adjustments specific to the CV page */

/* Give each CV block consistent vertical space */
.page-cv main > section {
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #242424;
}

.page-cv main > section:last-child {
  border-bottom: 0;
}

/* Add space between top-level CV sections */
.page-cv section + section {
  margin-top: 30px;
}

/* Add space below section headings */
.page-cv h1 + p,
.page-cv h2 + p,
.page-cv h2 + ul {
  margin-top: 12px;
}

/* Add space below section headings before the first experience entry */
.page-cv h2 + .entrance-experience {
  margin-top: 12px;
}

/* Add space between experience entries */
.page-cv .entrance-experience + .entrance-experience {
  margin-top: 28px;
}

/* Add space below experience titles */
.page-cv .entrance-experience h3 + p,
.page-cv .entrance-experience h3 + img {
  margin-top: 8px;
}

/* Add space between paragraphs inside the CV */
.page-cv p + p {
  margin-top: 8px;
}

/* Add space below subsection headings before lists */
.page-cv h3 + ul {
  margin-top: 10px;
}

/* Small profile image shown near the top of the CV page */
#nikitacv {
  display: block;
  width: 112px;
  height: auto;
  aspect-ratio: 1;
  margin-top: 20px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(245, 185, 66, 0.45);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

/* Smaller helper text used inside experience entries */
.p-entrance-experience {
  font-size: 14px;
  line-height: 1.3;
  color: #ababab;
}

.cv-current-status {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(245, 185, 66, 0.42);
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.1);
  color: #f7d88a;
  font-size: 0.86em;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 0 12px rgba(245, 185, 66, 0.12);
  animation: cv-current-glow 2.6s ease-in-out infinite;
}

.cv-current-status::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #f5b942;
  box-shadow: 0 0 7px rgba(245, 185, 66, 0.75);
}

.cv-current-status::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -55%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg);
  animation: cv-current-shine 3.2s ease-in-out infinite;
}

@keyframes cv-current-glow {
  0%, 100% {
    border-color: rgba(245, 185, 66, 0.38);
    box-shadow: 0 0 8px rgba(245, 185, 66, 0.08);
  }

  50% {
    border-color: rgba(245, 185, 66, 0.72);
    box-shadow: 0 0 18px rgba(245, 185, 66, 0.2);
  }
}

@keyframes cv-current-shine {
  0%, 55% { left: -55%; }
  100% { left: 125%; }
}

/* Company logo images aligned to the right inside experience blocks */
.company-logos-cv {
  width: 72px;
  height: 72px;
  margin: 0 0 10px 14px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #ffffff;
  float: right;
}

.page-cv .entrance-experience {
  min-width: 0;
  scroll-margin-top: 100px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 3px solid rgba(245, 185, 66, 0.7);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.page-cv .entrance-experience h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.2;
}

.page-cv #work-experience {
  margin-top: 0;
}

/* Highlight the experience card reached through a "Back to CV" link. */
.page-cv .entrance-experience:target {
  border-color: #f5b942;
  box-shadow: 0 0 0 2px rgba(245, 185, 66, 0.18),
    0 18px 38px rgba(0, 0, 0, 0.28);
}

.page-cv .entrance-experience:hover {
  border-color: rgba(245, 185, 66, 0.38);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}

.page-cv .entrance-experience a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 14px;
  padding: 7px 12px;
  border: 1px solid #f5b942;
  border-radius: 8px;
  background: rgba(245, 185, 66, 0.08);
  color: #f7d88a;
  font-weight: 600;
  text-decoration: none;
}

.page-cv .entrance-experience a::after {
  content: "\2192";
  margin-left: 8px;
  transition: transform 200ms ease;
}

.page-cv .entrance-experience a:hover {
  background: rgba(245, 185, 66, 0.16);
  color: #ffffff;
}

.page-cv .entrance-experience a:hover::after {
  transform: translateX(3px);
}

/* Keep Google Maps locations as familiar inline text links, not action buttons */
.page-cv .entrance-experience .google-maps-link,
.page-cv .entrance-experience .google-maps-link:visited {
  display: inline;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #4da3ff;
  font-weight: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-cv .entrance-experience .google-maps-link::after {
  content: " — View on Google Maps \2197";
  margin-left: 0;
  font-size: 0.9em;
}

.page-cv .entrance-experience .google-maps-link:hover {
  background: none;
  color: #82c4ff;
}

.page-cv .entrance-experience .google-maps-link:hover::after {
  transform: none;
}

.page-cv .experience-short,
.page-cv .experience-meta {
  margin-top: 12px;
}

.page-cv main > section > ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.page-cv main > section > ul li {
  position: relative;
  padding: 11px 12px 11px 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: #d7d7d7;
  line-height: 1.45;
}

.page-cv main > section > ul li::before {
  content: "";
  position: absolute;
  top: 1.05em;
  left: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5b942;
  box-shadow: 0 0 8px rgba(245, 185, 66, 0.45);
}

.page-cv main > section:first-of-type > p:first-of-type {
  color: #f7d88a;
  font-weight: 600;
  line-height: 1.7;
}

.page-cv .cv-profile-summary {
  margin-top: 20px;
}

.page-cv .cv-profile-summary p {
  line-height: 1.7;
}

/* ================= CV PAGE: TABLET (768px+) ================= */
@media screen and (min-width: 768px) {
  .page-cv main.container {
    padding: 32px clamp(28px, 5vw, 72px) 48px;
  }

  .page-cv main > section {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.045),
      rgba(255, 255, 255, 0.015)
    );
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
  }

  .page-cv main > section:last-child {
    border: 1px solid rgba(255, 255, 255, 0.09);
  }

  .page-cv section + section {
    margin-top: 20px;
  }

  .page-cv main > section:first-of-type {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    column-gap: 28px;
  }

  .page-cv main > section:first-of-type .cv-hero-heading {
    grid-column: 1 / -1;
  }

  .page-cv .cv-contact-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 0;
  }

  .page-cv .cv-contact-list li {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
  }

  .page-cv main > section:first-of-type .profile-image {
    grid-column: 1;
  }

  .page-cv main > section:first-of-type .cv-profile-summary {
    grid-column: 2;
    align-self: center;
    margin-top: 20px;
  }

  #nikitacv {
    width: 128px;
  }

  .page-cv .company-logos-cv {
    width: 140px;
    height: 140px;
    margin-left: 24px;
  }

  .page-cv main > .cv-capabilities > ul,
  .page-cv main > section:nth-of-type(3) > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ================= CV PAGE: DESKTOP (1158px+) ================= */
@media screen and (min-width: 1158px) {
  .page-cv main.container {
    width: min(100%, 1440px);
    padding: 44px clamp(40px, 5vw, 80px) 64px;
  }

  .page-cv main > section {
    padding: clamp(30px, 3vw, 42px);
  }

  .page-cv main > section:first-of-type {
    grid-template-columns: 160px minmax(0, 1fr);
    column-gap: 38px;
    border-color: rgba(245, 185, 66, 0.22);
    background: linear-gradient(
      145deg,
      rgba(245, 185, 66, 0.08),
      rgba(255, 255, 255, 0.018)
    );
  }

  .page-cv .cv-contact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  #nikitacv {
    width: 154px;
  }

  .page-cv .company-logos-cv {
    width: 160px;
    height: 160px;
    margin-left: 28px;
  }

  .page-cv main > section:first-of-type .cv-profile-summary {
    max-width: 82ch;
    font-size: 1.03rem;
    line-height: 1.7;
  }

  .page-cv main > .cv-capabilities,
  .page-cv main > section:nth-of-type(3) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }

  .page-cv main > .cv-capabilities > .cv-section-kicker,
  .page-cv main > section:nth-of-type(3) > .cv-section-kicker {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .page-cv main > .cv-capabilities > h2,
  .page-cv main > section:nth-of-type(3) > h2 {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .page-cv main > .cv-capabilities > h3:first-of-type,
  .page-cv main > .cv-capabilities > ul:first-of-type,
  .page-cv main > section:nth-of-type(3) > h3:first-of-type,
  .page-cv main > section:nth-of-type(3) > ul:first-of-type {
    grid-column: 1;
  }

  .page-cv main > .cv-capabilities > h3:last-of-type,
  .page-cv main > .cv-capabilities > ul:last-of-type,
  .page-cv main > section:nth-of-type(3) > h3:last-of-type,
  .page-cv main > section:nth-of-type(3) > ul:last-of-type {
    grid-column: 2;
  }

  .page-cv main > .cv-capabilities > h3,
  .page-cv main > section:nth-of-type(3) > h3 {
    grid-row: 3;
  }

  .page-cv main > .cv-capabilities > ul,
  .page-cv main > section:nth-of-type(3) > ul {
    grid-row: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
  }

  .page-cv main > .cv-education > ul,
  .page-cv main > .cv-highlights > ul,
  .page-cv main > section:nth-of-type(4) > ul,
  .page-cv main > section:nth-of-type(5) > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Capability cards support more than the original two skill groups. */
.page-cv .cv-capability-grid {
  display: grid;
  grid-column: 1 / -1;
  gap: 16px;
  margin-top: 20px;
}

.page-cv .cv-capability-group {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top-color: rgba(245, 185, 66, 0.48);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.page-cv .cv-capability-group h3 {
  margin: 0 0 14px;
  color: #f7d88a;
  font-size: 1.05rem;
  line-height: 1.3;
}

.page-cv .cv-capability-group ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-cv .cv-capability-group li {
  position: relative;
  padding: 10px 11px 10px 28px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  color: #d7d7d7;
  line-height: 1.42;
}

.page-cv .cv-capability-group li::before {
  content: "";
  position: absolute;
  top: 1em;
  left: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f5b942;
  box-shadow: 0 0 8px rgba(245, 185, 66, 0.4);
}

.page-cv .cv-capability-group li.cv-technology-skill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 11px;
}

.page-cv .cv-capability-group li.cv-technology-skill::before {
  display: none;
}

.page-cv .cv-technology-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 3px;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
  object-fit: contain;
}

.page-cv .cv-skill-copy {
  min-width: 0;
}

@media screen and (min-width: 900px) {
  .page-cv .cv-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .page-cv .cv-capability-group:nth-child(1) ul,
  .page-cv .cv-capability-group:nth-child(4) ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-cv .entrance-experience,
  .page-cv .entrance-experience a::after,
  .cv-current-status,
  .cv-current-status::after {
    transition: none;
    animation: none;
  }
}

/* ================= CV PAGE: PRINT / SAVE AS PDF ================= */
@page {
  size: A4;
  margin: 12mm;
}

@media print {
  html,
  body.page-cv {
    background: #ffffff;
    color: #181818;
    font-size: 9pt;
    line-height: 1.35;
    print-color-adjust: exact;
  }

  body.page-cv > #header,
  body.page-cv > header,
  body.page-cv > #footer,
  body.page-cv > footer,
  .page-cv .page-breadcrumbs,
  .page-cv .cv-actions {
    display: none;
  }

  .page-cv main.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .page-cv .cv-print-notice {
    display: grid;
    gap: 1.5mm;
    margin: 0 0 3mm;
    padding: 2.5mm 3mm;
    border: 1px solid #b99545;
    border-radius: 2.5mm;
    background: #fffaf0;
    color: #242424;
    font-size: 7.5pt;
    line-height: 1.25;
  }

  .page-cv .cv-print-notice strong {
    color: #795000;
    font-size: 8pt;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .page-cv .cv-print-notice a {
    color: #173f70;
    font-weight: 700;
  }

  .page-cv main > section,
  .page-cv main > section:last-child {
    margin-top: 2.5mm;
    padding: 3mm;
    border: 1px solid #c9c9c9;
    border-radius: 2mm;
    background: #f8f8f8;
    color: #181818;
    box-shadow: none;
  }

  .page-cv main > section:first-of-type {
    margin-top: 0;
    border-color: #b99545;
    background: #fffaf0;
    grid-template-columns: 22mm minmax(0, 1fr);
    column-gap: 4mm;
  }

  .page-cv .cv-hero-heading,
  .page-cv .cv-contact-list {
    grid-column: 1 / -1;
  }

  .page-cv .cv-hero h1,
  .page-cv main > section:first-of-type h1 {
    font-size: 22pt;
    line-height: 1;
  }

  .page-cv .cv-title {
    margin-top: 1mm;
    font-size: 9pt;
  }

  .page-cv .cv-contact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1mm 3mm;
    margin-top: 2mm;
    padding: 2mm 0;
  }

  .page-cv .cv-contact-list li {
    padding: 1.25mm 1.75mm;
  }

  .page-cv main > section:first-of-type .cv-profile-summary {
    margin-top: 1.5mm;
    font-size: 7.5pt;
    line-height: 1.3;
  }

  .page-cv .entrance-experience {
    break-inside: avoid;
    border-color: #c9c9c9;
    border-left-color: #8a5a00;
    background: #ffffff;
    color: #181818;
    box-shadow: none;
    transform: none;
    min-height: 0;
    margin-top: 0;
    padding: 2mm;
    border-radius: 1.5mm;
  }

  .page-cv #work-experience > .entrance-experience + .entrance-experience {
    margin-top: 2mm;
  }

  .page-cv #work-experience {
    display: block;
  }

  .page-cv #work-experience > .cv-section-kicker,
  .page-cv #work-experience > h2 {
    grid-column: 1 / -1;
  }

  .page-cv #work-experience > h2 {
    margin-bottom: 0.5mm;
  }

  .page-cv .entrance-experience h3 {
    margin: 0 13mm 1mm 0;
    font-size: 10pt;
    line-height: 1.15;
  }

  .page-cv .entrance-experience p {
    margin-top: 0.5mm;
    font-size: 8pt;
    line-height: 1.3;
  }

  .page-cv .entrance-experience > a {
    display: none;
  }

  .page-cv .cv-skill-learning .cv-skill-copy > span {
    color: #795000;
    font-size: inherit;
    font-weight: 700;
  }

  .page-cv .cv-contact-list li,
  .page-cv main > section > ul li {
    border-color: #d4d4d4;
    background: #ffffff;
    color: #242424;
  }

  .page-cv main > section > ul {
    gap: 0.75mm 2mm;
  }

  .page-cv main > section > ul li {
    padding: 1mm 1.5mm 1mm 4mm;
    font-size: 7pt;
    line-height: 1.2;
  }

  .page-cv main > section > ul li::before {
    top: 1.6mm;
    left: 1.7mm;
    width: 1.2mm;
    height: 1.2mm;
    box-shadow: none;
  }

  .page-cv .cv-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 3mm;
  }

  .page-cv .cv-capabilities > .cv-section-kicker,
  .page-cv .cv-capabilities > h2 {
    grid-column: 1 / -1;
  }

  .page-cv .cv-capabilities > h3:first-of-type,
  .page-cv .cv-capabilities > ul:first-of-type {
    grid-column: 1;
  }

  .page-cv .cv-capabilities > h3:last-of-type,
  .page-cv .cv-capabilities > ul:last-of-type {
    grid-column: 2;
  }

  .page-cv .cv-capabilities > h3 {
    grid-row: 3;
    margin: 0 0 1mm;
    font-size: 8pt;
  }

  .page-cv .cv-capabilities > ul {
    grid-row: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-cv .cv-education > ul,
  .page-cv .cv-highlights > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-cv h2 {
    margin: 0 0 1.5mm;
    font-size: 12pt;
    line-height: 1.1;
  }

  .page-cv .cv-eyebrow,
  .page-cv .cv-section-kicker {
    margin: 0 0 0.75mm;
    font-size: 6.5pt;
  }

  .page-cv h1,
  .page-cv h2,
  .page-cv h3,
  .page-cv p,
  .page-cv li,
  .page-cv .cv-contact-value,
  .page-cv .cv-contact-list time {
    color: #181818;
  }

  .page-cv .cv-eyebrow,
  .page-cv .cv-section-kicker,
  .page-cv [data-cv-age] {
    color: #795000;
  }

  .page-cv .cv-title,
  .page-cv .p-entrance-experience,
  .page-cv .cv-auto-note,
  .page-cv .cv-contact-list li > span:first-child {
    color: #4d4d4d;
  }

  .page-cv a,
  .page-cv .entrance-experience a,
  .page-cv .entrance-experience .google-maps-link,
  .page-cv .entrance-experience .google-maps-link:visited {
    min-height: 0;
    margin-top: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #173f70;
    text-decoration: underline;
  }

  .page-cv .entrance-experience a::after,
  .page-cv .entrance-experience .google-maps-link::after {
    content: none;
  }

  .page-cv .company-logos-cv {
    width: 11mm;
    height: 11mm;
    margin: 0 0 1mm 2mm;
    border-color: #cccccc;
    background: #ffffff;
    box-shadow: none;
  }

  .page-cv #nikitacv {
    width: 20mm;
    margin-top: 1.5mm;
    border-color: #b99545;
    box-shadow: none;
  }

  .page-cv h1,
  .page-cv h2,
  .page-cv h3 {
    break-after: avoid;
  }

  .page-cv img,
  .page-cv .cv-contact-list {
    break-inside: avoid;
  }

  .page-cv *,
  .page-cv *::before,
  .page-cv *::after {
    animation: none;
    transition: none;
  }
}

/* Retired experimental print layout; retained temporarily for reference only. */
@media not all {
  .page-cv main.container {
    display: block;
    padding: 0;
    background: #ffffff;
  }

  .page-cv main.container > .cv-print-notice,
  .page-cv main.container > section:not(.cv-print-sheet) {
    display: none;
  }

  .page-cv main.container > .cv-print-sheet {
    display: grid;
    grid-template-columns: 31% 69%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, #e9f0f5 0 31%, #ffffff 31% 100%);
    color: #1c2730;
    box-shadow: none;
    font-family: Arial, Helvetica, sans-serif;
  }

  .page-cv .cv-print-sheet section,
  .page-cv .cv-print-sheet section + section {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-cv .cv-print-sheet-header {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 27mm minmax(0, 1fr);
    gap: 5mm;
    align-items: center;
    padding: 5mm 6mm 4mm;
    border-bottom: 0.7mm solid #3977a8;
    background: #ffffff;
  }

  .page-cv .cv-print-sheet-header > img {
    width: 25mm;
    height: 25mm;
    border: 0.7mm solid #d7e4ee;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
  }

  .page-cv .cv-print-sheet-header h1 {
    margin: 0;
    color: #122536;
    font-size: 25pt;
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 0.95;
    text-transform: uppercase;
  }

  .page-cv .cv-print-sheet-kicker {
    margin: 0 0 1mm;
    color: #3977a8;
    font-size: 6.5pt;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .page-cv .cv-print-sheet-title {
    margin: 1.5mm 0 0;
    color: #445766;
    font-size: 9pt;
    font-weight: 600;
  }

  .page-cv .cv-print-sheet-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75mm 3.5mm;
    margin: 2mm 0 0;
    padding: 0;
    color: #344b5e;
    font-size: 6.7pt;
    list-style: none;
  }

  .page-cv .cv-print-sheet-contact a {
    color: #245f8e;
    text-decoration: none;
  }

  .page-cv .cv-print-sheet-sidebar {
    grid-column: 1;
    padding: 4mm 4mm 3mm;
    background: #e9f0f5;
  }

  .page-cv .cv-print-sheet-sidebar section + section,
  .page-cv .cv-print-sheet-main section + section {
    margin-top: 3mm;
  }

  .page-cv .cv-print-sheet h2 {
    margin: 0 0 1.5mm;
    padding-bottom: 0.8mm;
    border-bottom: 0.45mm solid #75a3c7;
    color: #245f8e;
    font-size: 8pt;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .page-cv .cv-print-sheet-sidebar p,
  .page-cv .cv-print-sheet-sidebar li {
    margin: 0;
    color: #273b4b;
    font-size: 6.7pt;
    line-height: 1.3;
  }

  .page-cv .cv-print-compact-list,
  .page-cv .cv-print-education-list {
    display: grid;
    gap: 1mm;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .page-cv .cv-print-education-list strong {
    display: block;
    color: #245f8e;
    font-size: 6pt;
  }

  .page-cv .cv-print-sheet-main {
    grid-column: 2;
    padding: 4mm 5mm 3mm;
    background: #ffffff;
    counter-reset: cv-job;
  }

  .page-cv .cv-print-timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4mm 2mm;
  }

  .page-cv .cv-print-timeline article {
    position: relative;
    display: grid;
    grid-template-columns: 8mm minmax(0, 1fr);
    gap: 1.5mm;
    min-width: 0;
    padding: 1.4mm 1.4mm 1.4mm 4.8mm;
    border-left: 0.6mm solid #75a3c7;
    background: #f7f9fb;
    break-inside: avoid;
    counter-increment: cv-job;
  }

  .page-cv .cv-print-timeline article::before {
    content: counter(cv-job);
    position: absolute;
    top: 50%;
    left: -2.6mm;
    z-index: 2;
    display: grid;
    width: 5mm;
    height: 5mm;
    border: 0.45mm solid #ffffff;
    border-radius: 50%;
    background: #3977a8;
    color: #ffffff;
    font-size: 6pt;
    font-weight: 800;
    line-height: 1;
    place-items: center;
    transform: translateY(-50%);
  }

  .page-cv .cv-print-timeline article::after {
    position: absolute;
    z-index: 3;
    color: #3977a8;
    font-size: 10pt;
    font-weight: 800;
    line-height: 1;
  }

  .page-cv .cv-print-timeline article:nth-child(odd):not(.cv-print-group-end):not(.cv-print-flow-end)::after {
    content: "\2192";
    top: 50%;
    right: -2.5mm;
    transform: translateY(-50%);
  }

  .page-cv .cv-print-timeline article:nth-child(even):not(.cv-print-group-end):not(.cv-print-flow-end)::after {
    content: "\2199";
    right: 0.75mm;
    bottom: -2.2mm;
  }

  .page-cv .cv-print-timeline .cv-print-group-end::after {
    content: "\2193";
    right: 1mm;
    bottom: -2.2mm;
  }

  .page-cv .cv-print-flow-marker {
    position: absolute;
    z-index: 4;
    padding: 0.5mm 1mm;
    border-radius: 10mm;
    background: #173f70;
    color: #ffffff;
    font-size: 5pt;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
  }

  .page-cv .cv-print-flow-start > .cv-print-flow-marker {
    top: -1.5mm;
    left: 1.5mm;
  }

  .page-cv .cv-print-flow-end > .cv-print-flow-marker {
    right: 1mm;
    bottom: -1.5mm;
  }

  .page-cv .cv-print-timeline .cv-print-no-logo {
    grid-template-columns: 1fr;
    padding-left: 10.9mm;
  }

  .page-cv .cv-print-timeline img {
    width: 7mm;
    height: 7mm;
    border: 0.2mm solid #d9e1e7;
    border-radius: 1mm;
    background: #ffffff;
    object-fit: contain;
  }

  .page-cv .cv-print-timeline h3 {
    margin: 0;
    color: #152938;
    font-size: 7.2pt;
    line-height: 1.1;
  }

  .page-cv .cv-print-timeline p {
    margin: 0.5mm 0 0;
    color: #42525e;
    font-size: 6.1pt;
    line-height: 1.22;
  }

  .page-cv .cv-print-timeline p strong {
    color: #245f8e;
    font-size: 6pt;
  }

  .page-cv .cv-print-results ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5mm;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .page-cv .cv-print-results li {
    padding: 1.2mm;
    border: 0.2mm solid #d8e2ea;
    background: #f7f9fb;
    color: #334957;
    font-size: 6pt;
    line-height: 1.2;
  }

  .page-cv .cv-print-sheet-footer {
    grid-column: 1 / -1;
    padding: 2.5mm 5mm;
    border-top: 0.6mm solid #3977a8;
    background: #f3f7fa;
    color: #354b5b;
    font-size: 6.3pt;
    line-height: 1.3;
    text-align: center;
  }

  .page-cv .cv-print-sheet-footer a {
    color: #245f8e;
    font-weight: 700;
  }
}

/* Retired experimental timeline. */
@media not all {
  .page-cv .cv-print-timeline,
  .page-cv .cv-print-timeline-compact {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7mm;
    padding-left: 3.5mm;
  }

  .page-cv .cv-print-timeline::before {
    content: "";
    position: absolute;
    top: 1.5mm;
    bottom: 1.5mm;
    left: 0.9mm;
    width: 0.45mm;
    border-radius: 1mm;
    background: #75a3c7;
  }

  .page-cv .cv-print-timeline article,
  .page-cv .cv-print-timeline .cv-print-no-logo {
    display: grid;
    grid-template-columns: 7mm minmax(0, 1fr);
    gap: 1.5mm;
    min-height: 0;
    padding: 1mm 1.25mm;
    border: 0;
    border-bottom: 0.2mm solid #dde5eb;
    background: transparent;
  }

  .page-cv .cv-print-timeline .cv-print-no-logo {
    padding-left: 9.75mm;
  }

  .page-cv .cv-print-timeline article::before {
    content: "";
    top: 50%;
    left: -3.2mm;
    width: 2.4mm;
    height: 2.4mm;
    border: 0.45mm solid #ffffff;
    background: #3977a8;
    transform: translateY(-50%);
  }

  .page-cv .cv-print-timeline article::after,
  .page-cv .cv-print-timeline article:nth-child(odd)::after,
  .page-cv .cv-print-timeline article:nth-child(even)::after,
  .page-cv .cv-print-timeline .cv-print-group-end::after {
    content: none;
  }

  .page-cv .cv-print-flow-marker {
    display: none;
  }

  .page-cv .cv-print-timeline img {
    width: 6mm;
    height: 6mm;
    align-self: start;
  }

  .page-cv .cv-print-timeline h3 {
    font-size: 6.9pt;
  }

  .page-cv .cv-print-timeline p {
    margin-top: 0.3mm;
    font-size: 5.8pt;
    line-height: 1.18;
  }

  .page-cv .cv-print-timeline p strong {
    font-size: 5.8pt;
  }
}

/* Retired experimental compact resume. */
@media not all {
  .page-cv main.container > .cv-print-sheet {
    grid-template-columns: minmax(0, 68%) minmax(0, 32%);
    background: #ffffff;
    color: #202a33;
    font-family: Arial, Helvetica, sans-serif;
  }

  .page-cv .cv-print-sheet-header {
    grid-column: 1 / -1;
    grid-row: 1;
    grid-template-columns: 24mm minmax(0, 1fr);
    gap: 5mm;
    padding: 5mm 6mm 4mm;
    border: 0;
    border-bottom: 1mm solid #244d6c;
    background: #ffffff;
  }

  .page-cv .cv-print-sheet-header > img {
    width: 23mm;
    height: 23mm;
    border: 0;
    border-radius: 2mm;
  }

  .page-cv .cv-print-sheet-header h1 {
    color: #18364d;
    font-size: 24pt;
    letter-spacing: 0.015em;
    text-transform: none;
  }

  .page-cv .cv-print-sheet-kicker {
    color: #53758e;
  }

  .page-cv .cv-print-sheet-title {
    color: #2f526b;
    font-size: 9pt;
  }

  .page-cv .cv-print-sheet-contact {
    gap: 0.75mm 3mm;
    color: #455866;
    font-size: 6.5pt;
  }

  .page-cv .cv-print-sheet-main {
    grid-column: 1;
    grid-row: 2;
    padding: 4mm 5mm 3mm 6mm;
    background: #ffffff;
    counter-reset: none;
  }

  .page-cv .cv-print-sheet-sidebar {
    grid-column: 2;
    grid-row: 2;
    padding: 4mm 5mm 3mm;
    border-left: 0.35mm solid #cedae3;
    background: #eef3f6;
  }

  .page-cv .cv-print-sheet-main section + section,
  .page-cv .cv-print-sheet-sidebar section + section {
    margin-top: 2.5mm;
  }

  .page-cv .cv-print-sheet h2 {
    margin-bottom: 1mm;
    padding-bottom: 0.8mm;
    border-bottom: 0.45mm solid #7b9bb2;
    color: #244d6c;
    font-size: 8.5pt;
    letter-spacing: 0.06em;
  }

  .page-cv .cv-print-timeline,
  .page-cv .cv-print-timeline-compact {
    display: block;
    padding: 0;
  }

  .page-cv .cv-print-timeline::before {
    content: none;
  }

  .page-cv .cv-print-timeline article,
  .page-cv .cv-print-timeline .cv-print-no-logo {
    display: grid;
    grid-template-columns: 7mm minmax(0, 1fr);
    gap: 1.5mm;
    margin: 0;
    padding: 1.1mm 0;
    border: 0;
    border-bottom: 0.2mm solid #d9e1e7;
    background: transparent;
  }

  .page-cv .cv-print-timeline .cv-print-no-logo {
    padding-left: 8.5mm;
  }

  .page-cv .cv-print-timeline article::before,
  .page-cv .cv-print-timeline article::after {
    content: none;
  }

  .page-cv .cv-print-timeline img {
    width: 6mm;
    height: 6mm;
    margin: 0;
    border: 0.2mm solid #d8e0e6;
    border-radius: 0.8mm;
  }

  .page-cv .cv-print-timeline h3 {
    color: #1d303e;
    font-size: 7.2pt;
    line-height: 1.12;
  }

  .page-cv .cv-print-timeline p,
  .page-cv .cv-print-timeline p strong {
    margin-top: 0.3mm;
    font-size: 6pt;
    line-height: 1.2;
  }

  .page-cv .cv-print-timeline p strong {
    color: #426983;
  }

  .page-cv .cv-print-sheet-sidebar p,
  .page-cv .cv-print-sheet-sidebar li {
    color: #304451;
    font-size: 6.6pt;
    line-height: 1.32;
  }

  .page-cv .cv-print-results ul {
    grid-template-columns: 1fr;
    gap: 0.7mm;
  }

  .page-cv .cv-print-results li {
    padding: 0.8mm 1mm;
    border: 0;
    border-left: 0.5mm solid #7b9bb2;
    background: #f6f8fa;
    font-size: 6pt;
  }

  .page-cv .cv-print-sheet-footer {
    grid-column: 1 / -1;
    grid-row: 3;
    padding: 2.5mm 5mm;
    border-top: 0.5mm solid #7b9bb2;
    background: #ffffff;
    color: #445965;
  }
}

/* Retired experimental one-page editorial layout. */
@media not all {
  .page-cv main.container {
    display: grid;
    grid-template-columns: minmax(0, 31%) minmax(0, 69%);
    gap: 2.5mm 4mm;
    padding: 5mm;
    background: linear-gradient(90deg, #eaf1f6 0 31%, #ffffff 31% 100%);
    font-family: Arial, Helvetica, sans-serif;
  }

  .page-cv .cv-print-notice {
    grid-column: 1 / -1;
    grid-row: 6;
    margin: 0;
    border: 0;
    border-top: 0.5mm solid #7fa7c8;
    border-radius: 0;
    background: transparent;
  }

  .page-cv .cv-print-notice strong,
  .page-cv .cv-eyebrow,
  .page-cv .cv-section-kicker,
  .page-cv [data-cv-age] {
    color: #376f9e;
  }

  .page-cv main > section,
  .page-cv main > section:last-child {
    margin: 0;
    padding: 2.5mm;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .page-cv main > section:first-of-type {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: minmax(0, 31%) minmax(0, 69%);
    gap: 1.5mm 4mm;
    padding: 2mm 2.5mm 3mm;
    border-bottom: 0.6mm solid #7fa7c8;
    background: transparent;
  }

  .page-cv main > section:first-of-type .cv-hero-heading {
    grid-column: 2;
    grid-row: 1;
  }

  .page-cv main > section:first-of-type > .cv-eyebrow,
  .page-cv main > section:first-of-type > h1,
  .page-cv main > section:first-of-type > .cv-title {
    grid-column: 2;
  }

  .page-cv main > section:first-of-type .profile-image {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    justify-self: center;
  }

  .page-cv main > section:first-of-type .cv-contact-list {
    grid-column: 1;
    grid-row: 4;
    grid-template-columns: 1fr;
    gap: 0.75mm;
    margin: 1mm 0 0;
    padding: 0;
    border: 0;
  }

  .page-cv main > section:first-of-type .cv-profile-summary,
  .page-cv main > section:first-of-type > p:not(.cv-eyebrow):not(.cv-title) {
    grid-column: 2;
    align-self: start;
    margin: 0;
  }

  .page-cv main > section:first-of-type h1 {
    margin: 0;
    color: #111111;
    font-size: 24pt;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 0.95;
    text-transform: uppercase;
  }

  .page-cv main > section:first-of-type .cv-title {
    color: #333333;
    font-size: 8.5pt;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .page-cv #work-experience {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: start;
  }

  .page-cv .cv-capabilities {
    grid-column: 1;
    grid-row: 2 / span 3;
    align-self: start;
    display: block;
    padding-right: 3mm;
  }

  .page-cv .cv-education {
    grid-column: 2;
    grid-row: 4;
  }

  .page-cv .cv-highlights {
    grid-column: 2;
    grid-row: 5;
  }

  .page-cv h2 {
    padding-bottom: 1mm;
    border-bottom: 0.5mm solid #7fa7c8;
    color: #222222;
    font-size: 10pt;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .page-cv .cv-capabilities h3 {
    margin: 2mm 0 0.75mm;
    color: #376f9e;
    font-size: 7.5pt;
    text-transform: uppercase;
  }

  .page-cv .cv-capabilities > ul,
  .page-cv .cv-education > ul,
  .page-cv .cv-highlights > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6mm 1.5mm;
  }

  .page-cv .cv-capabilities > ul:first-of-type {
    grid-template-columns: 1fr;
  }

  .page-cv main > section > ul li,
  .page-cv .cv-contact-list li {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .page-cv .cv-contact-list li {
    padding: 0.75mm 0;
    border-bottom: 0.2mm solid #d2d2d2;
    font-size: 6.8pt;
  }

  .page-cv .cv-contact-list li > span:first-child {
    color: #376f9e;
    font-size: 5.8pt;
  }

  .page-cv .cv-contact-value,
  .page-cv .cv-contact-list time {
    font-size: 7pt;
  }

  .page-cv .cv-auto-note {
    font-size: 5.5pt;
  }

  .page-cv #nikitacv {
    width: 25mm;
    border: 0.6mm solid #ffffff;
    border-radius: 0;
  }

  .page-cv .entrance-experience {
    padding: 1.5mm 1.75mm;
    border: 0;
    border-left: 0.7mm solid #7fa7c8;
    background: #f8fafc;
  }

  .page-cv .entrance-experience h3 {
    margin-right: 0;
    color: #111111;
    font-size: 7.8pt;
  }

  .page-cv .entrance-experience p:first-of-type {
    color: #222222;
    font-weight: 700;
  }

  .page-cv .entrance-experience p:nth-of-type(3) {
    color: #376f9e;
    font-weight: 700;
  }

  .page-cv .company-logos-cv {
    display: block;
    width: 8mm;
    height: 8mm;
    margin: 0 0 0.75mm 1.5mm;
    border: 0.2mm solid #d6d6d6;
    border-radius: 1mm;
    background: #ffffff;
  }
}

/* Final cascade safeguards for the approved print design. */
@page {
  size: A4;
  margin: 12mm 12mm 17mm;
}

@media print {
  body.page-cv main.container > section.cv-hero {
    display: grid;
    grid-template-columns: 30mm minmax(0, 1fr);
    gap: 3mm 5mm;
    margin-top: 0;
    padding: 6mm;
    border: 0;
    border-top: 2mm solid #c99525;
    border-radius: 2mm;
    background: #17324d;
    color: #ffffff;
  }

  body.page-cv main.container > section.cv-hero h1,
  body.page-cv main.container > section.cv-hero p,
  body.page-cv main.container > section.cv-hero li,
  body.page-cv main.container > section.cv-hero a,
  body.page-cv main.container > section.cv-hero time,
  body.page-cv main.container > section.cv-hero .cv-contact-value {
    color: #ffffff;
  }

  body.page-cv main.container > section.cv-hero .profile-image {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
  }

  body.page-cv main.container > section.cv-hero .cv-hero-heading {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
  }

  body.page-cv main.container > section.cv-hero .cv-contact-list,
  body.page-cv main.container > section.cv-hero .cv-profile-summary,
  body.page-cv main.container > section.cv-hero > p:not(.cv-eyebrow):not(.cv-title) {
    grid-column: 1 / -1;
  }

  body.page-cv main.container > section.cv-hero > p:not(.cv-eyebrow):not(.cv-title) {
    margin: 0;
    padding-top: 2.5mm;
    border-top: 0.25mm solid rgba(255, 255, 255, 0.25);
    font-size: 8.5pt;
    line-height: 1.45;
  }

  body.page-cv main.container > section.cv-hero .cv-eyebrow,
  body.page-cv main.container > section.cv-hero .cv-title,
  body.page-cv main.container > section.cv-hero [data-cv-age] {
    color: #f0c96e;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv main > section,
  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv main > section:last-child {
    margin-top: 2.5mm;
    padding: 3mm;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience > .entrance-experience,
  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience > .entrance-experience + .entrance-experience {
    min-height: 22mm;
    margin-top: 1.5mm;
    padding: 2mm 23mm 2mm 4mm;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience > .entrance-experience h3 {
    margin-bottom: 0.8mm;
    font-size: 9.5pt;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience > .entrance-experience p {
    margin-top: 0.35mm;
    font-size: 7.3pt;
    line-height: 1.22;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience > .entrance-experience .experience-short {
    margin-top: 0.8mm;
    padding-top: 0.7mm;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience > .entrance-experience > a {
    margin-top: 0.7mm;
    font-size: 6.6pt;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience .company-logos-cv {
    top: 2mm;
    right: 2mm;
    width: 18mm;
    height: 18mm;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv .cv-capabilities > ul,
  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv .cv-education > ul,
  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv .cv-highlights > ul {
    gap: 0.7mm 1.5mm;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv main > section > ul li {
    padding-top: 1.1mm;
    padding-bottom: 1.1mm;
    font-size: 7.4pt;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv .cv-hero-heading h1 {
    display: block;
    margin: 0;
    font-size: 24pt;
    line-height: 1;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv .cv-hero-heading .cv-title {
    display: block;
    max-width: none;
    margin: 1.5mm 0 0;
    font-size: 9.5pt;
    line-height: 1.3;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience > .entrance-experience,
  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience > .entrance-experience h3,
  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience > .entrance-experience p {
    text-align: left;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience > .entrance-experience h3 {
    padding-right: 12mm;
    color: #17324d;
    font-weight: 800;
    letter-spacing: 0;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience > .entrance-experience p {
    font-size: 7.6pt;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience > .entrance-experience .p-entrance-experience strong {
    color: #795000;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience > .entrance-experience .experience-short {
    color: #33485d;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience > .entrance-experience > a {
    text-decoration: none;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv #work-experience > .entrance-experience > a::after {
    content: "  →";
    color: #b77d08;
  }

  :is(html[lang="ar"], html[lang="de"], html[lang="fr"], html[lang="he"], html[lang="it"], html[lang="ja"], html[lang="pl"], html[lang="ru"], html[lang="uk"], html[lang="zh-Hans"]) .page-cv .cv-capabilities h3 {
    margin-top: 1.5mm;
    color: #17324d;
    font-size: 8.5pt;
  }

  html[lang="fr"] .page-cv main > .cv-capabilities,
  html[lang="fr"] .page-cv main > .cv-education,
  html[lang="fr"] .page-cv main > .cv-highlights {
    margin-top: 1.6mm;
    padding: 2.2mm;
  }

  html[lang="fr"] .page-cv .cv-capabilities > ul,
  html[lang="fr"] .page-cv .cv-education > ul,
  html[lang="fr"] .page-cv .cv-highlights > ul {
    gap: 0.4mm 1.2mm;
  }

  html[lang="fr"] .page-cv main > .cv-capabilities > ul li,
  html[lang="fr"] .page-cv main > .cv-education > ul li,
  html[lang="fr"] .page-cv main > .cv-highlights > ul li {
    padding-top: 0.75mm;
    padding-bottom: 0.75mm;
    font-size: 7pt;
    line-height: 1.2;
  }

  html[lang="fr"] .page-cv .cv-capabilities h3 {
    margin-top: 0.8mm;
    margin-bottom: 0.5mm;
  }

  html[lang="fr"] .page-cv main > .cv-capabilities h2,
  html[lang="fr"] .page-cv main > .cv-education h2,
  html[lang="fr"] .page-cv main > .cv-highlights h2 {
    margin-bottom: 1.2mm;
    padding-bottom: 0.8mm;
  }

  html[lang="pl"] .page-cv main > .cv-capabilities {
    break-before: page;
  }
}

/* Keep contact indicators clear of their labels in every language and layout. */
body.page-cv main.container > section:first-of-type .cv-contact-list li {
  position: relative;
  padding-inline-start: 30px;
}

body.page-cv main.container > section:first-of-type .cv-contact-list li::before {
  left: auto;
  inset-inline-start: 13px;
}

/* Compact capability cards for browser printing and generated PDFs. */
@media print {
  .page-cv .cv-capabilities .cv-capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2mm;
    margin: 1.5mm 0 0;
  }

  .page-cv .cv-capabilities .cv-capability-group {
    break-inside: avoid;
    padding: 2mm;
    border: 0.25mm solid #c8d3dc;
    border-top: 0.6mm solid #376f9e;
    border-radius: 1.5mm;
    background: #ffffff;
  }

  .page-cv .cv-capabilities .cv-capability-group h3 {
    margin: 0 0 1mm;
    color: #17324d;
    font-size: 8pt;
    line-height: 1.2;
    text-transform: none;
  }

  .page-cv .cv-capabilities .cv-capability-group ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4mm;
    margin: 0;
    padding: 0;
  }

  .page-cv .cv-capabilities .cv-capability-group:nth-child(1) ul,
  .page-cv .cv-capabilities .cv-capability-group:nth-child(4) ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4mm 1.5mm;
  }

  .page-cv .cv-capabilities .cv-capability-group li {
    min-height: 0;
    padding: 0.65mm 0.5mm 0.65mm 3mm;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #242424;
    font-size: 7pt;
    line-height: 1.25;
  }

  .page-cv .cv-capabilities .cv-capability-group li::before {
    top: 1.35mm;
    left: 1mm;
    width: 1mm;
    height: 1mm;
    background: #b77d08;
    box-shadow: none;
  }

  .page-cv .cv-capabilities .cv-capability-group li.cv-technology-skill {
    display: flex;
    align-items: center;
    gap: 1.2mm;
    padding-left: 0.5mm;
  }

  .page-cv .cv-capabilities .cv-capability-group li.cv-technology-skill::before {
    display: none;
  }

  .page-cv .cv-technology-icon {
    width: 4mm;
    height: 4mm;
    padding: 0.45mm;
    border: 0.2mm solid #d4dce3;
    border-radius: 1mm;
  }

  .page-cv .cv-section-kicker {
    break-after: avoid;
  }

  .page-cv main.container {
    background: #ffffff;
  }

  .page-cv main.container > section:last-of-type {
    break-inside: avoid;
  }
}

@media print {
  html[lang="ru"] .page-cv #work-experience > .entrance-experience {
    padding: 2mm 23mm 2mm 3mm;
  }

  html[lang="ru"] .page-cv #work-experience > .entrance-experience p {
    margin-top: 0.35mm;
    font-size: 7.1pt;
    line-height: 1.18;
  }

  html[lang="ru"] .page-cv #work-experience > .entrance-experience > a {
    margin-top: 0.35mm;
  }

  html[lang="ru"] .page-cv main > .cv-highlights {
    padding-top: 1.8mm;
    padding-bottom: 1.8mm;
  }

  html[lang="ru"] .page-cv main > .cv-highlights > ul {
    gap: 0.35mm 1.2mm;
  }

  html[lang="ru"] .page-cv main > .cv-highlights > ul li {
    padding-top: 0.65mm;
    padding-bottom: 0.65mm;
    font-size: 6.8pt;
    line-height: 1.15;
  }

  body.page-cv main.container > section:first-of-type .cv-contact-list li {
    padding-inline-start: 5mm;
  }

  body.page-cv main.container > section:first-of-type .cv-contact-list li::before {
    top: 1.6mm;
    left: auto;
    inset-inline-start: 1.7mm;
    width: 1.2mm;
    height: 1.2mm;
    box-shadow: none;
  }
}
