﻿:root {
      --sidebar: #3f6992;
      --sidebar-dark: #355c81;
      --ink: #2e3238;
      --muted: #68727f;
      --line: #d6dce3;
      --paper: #ffffff;
      --soft: #f3f6f9;
      --accent: #416f99;
    }

    * {
      box-sizing: border-box;
    }

body {
      margin: 0;
      background: #e8edf2;
      color: var(--ink);
      font-family: "Segoe UI", Arial, sans-serif;
      font-size: 13px;
      line-height: 1.45;
    }

    a {
      color: inherit;
    }

    .cv-page {
      display: grid;
      grid-template-columns: 300px minmax(0, 1fr);
      width: min(1120px, 100%);
      min-height: 100vh;
      margin: 0 auto;
      background: var(--paper);
      box-shadow: 0 20px 55px rgba(31, 44, 59, 0.18);
    }

    .sidebar {
      background: linear-gradient(180deg, var(--sidebar), var(--sidebar-dark));
      color: #fff;
      padding: 36px 28px;
    }

    .portrait {
      display: block;
      width: 190px;
      height: 190px;
      margin: 0 auto 34px;
      border: 4px solid #fff;
      border-radius: 50%;
      object-fit: cover;
      filter: grayscale(1);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    }

    .side-section {
      margin-top: 30px;
    }

    .side-title {
      margin: 0 0 14px;
      font-size: 1rem;
      letter-spacing: 0.15em;
      line-height: 1.2;
      text-transform: uppercase;
    }

    .detail-list {
      display: grid;
      gap: 14px;
      margin: 0;
    }

    .detail-item {
      display: grid;
      grid-template-columns: 22px 1fr;
      gap: 10px;
      align-items: start;
    }

    .detail-item dd {
      margin: 0;
    }

    .detail-icon,
    .section-icon {
      display: inline-grid;
      place-items: center;
      flex: 0 0 auto;
      border-radius: 50%;
      font-weight: 700;
    }

    .detail-icon {
      width: 20px;
      height: 20px;
      font-size: 0.76rem;
      color: var(--sidebar);
      background: rgba(255, 255, 255, 0.92);
    }

    .detail-label {
      display: block;
      font-weight: 700;
      line-height: 1.25;
    }

    .detail-value {
      display: block;
      color: rgba(255, 255, 255, 0.88);
      font-size: 0.92rem;
      line-height: 1.35;
    }

    .tag-list {
      display: grid;
      gap: 7px;
      padding: 0;
      margin: 0;
      list-style: none;
      color: rgba(255, 255, 255, 0.9);
    }

    .tag-list li {
      position: relative;
      padding-left: 18px;
    }

    .tag-list li::before {
      position: absolute;
      content: "";
      left: 1px;
      top: 0.68em;
      width: 6px;
      height: 6px;
      background: #fff;
    }

    .rating-list {
      display: grid;
      gap: 9px;
      margin-top: 4px;
    }

    .rating-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 14px;
      align-items: center;
      color: rgba(255, 255, 255, 0.94);
    }

    .stars {
      letter-spacing: 2px;
      white-space: nowrap;
    }

.main {
      padding: 34px 34px 42px;
    }

    #cvContent {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 0 30px;
      align-items: start;
    }

    .hero {
      padding-bottom: 26px;
      border-bottom: 1px solid var(--line);
    }

    h1 {
      margin: 0 0 14px;
      color: #262a30;
      font-size: 2.2rem;
      line-height: 1;
      letter-spacing: 0.18em;
      text-transform: uppercase;
    }

.summary {
      max-width: 760px;
      margin: 0;
      color: #4d5661;
      font-size: 0.92rem;
    }

.section {
      padding: 26px 0 2px;
      border-bottom: 1px solid var(--line);
    }

    .section--education {
      grid-column: 1;
    }

    .section--experience {
      grid-column: 2;
    }

    .section--grants {
      grid-column: 1;
    }

    .section--awards {
      grid-column: 2;
    }

    .section--publications {
      grid-column: 1;
    }

    .section--presentations {
      grid-column: 2;
    }

    .section--service {
      grid-column: 1;
    }

    .section--professional-memberships {
      grid-column: 2;
    }

    .section:not(.section--education):not(.section--experience):not(.section--grants):not(.section--awards):not(.section--publications):not(.section--presentations):not(.section--service):not(.section--professional-memberships) {
      grid-column: 1 / -1;
    }

    .course-columns {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 30px;
      align-items: start;
    }

    .course-item .item-title {
      margin-top: -1px;
    }

    .course-dates {
      column-count: 2;
      column-gap: 18px;
      padding-left: 18px;
      margin: 8px 0 0;
      color: #45505a;
      font-size: 0.78rem;
      line-height: 1.35;
    }

    .course-dates li {
      break-inside: avoid;
      margin-bottom: 3px;
    }

    .section:last-child {
      border-bottom: 0;
    }

.section-heading {
      display: flex;
      gap: 12px;
      align-items: center;
      margin-bottom: 20px;
    }

.section-icon {
      width: 36px;
      height: 36px;
      border: 2px solid #2d3238;
      color: #2d3238;
      background: #fff;
      font-size: 0.9rem;
    }

h2 {
      margin: 0;
      color: #2d3238;
      font-size: 1.05rem;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }

.timeline {
      position: relative;
      display: grid;
      gap: 18px;
      padding-left: 16px;
      margin-left: 22px;
      border-left: 1px solid #22272d;
    }

.timeline-item {
      position: relative;
      display: grid;
      grid-template-columns: 1fr;
      gap: 2px;
      padding-bottom: 2px;
    }

.timeline-item::before {
      position: absolute;
      content: "";
      left: -22px;
      top: 6px;
      width: 10px;
      height: 10px;
      border: 1px solid #22272d;
      border-radius: 50%;
      background: #fff;
    }

.date {
      color: #45505a;
      font-size: 0.82rem;
      white-space: nowrap;
    }

.item-title {
      margin: 0;
      color: #343941;
      font-size: 0.9rem;
      line-height: 1.25;
      font-weight: 800;
    }

    .item-title em,
    .item-title strong {
      font-style: inherit;
      font-weight: inherit;
    }

.item-body {
      margin: 4px 0 0;
      color: #59636f;
      font-size: 0.86rem;
    }

    .section--publications .date,
    .section--presentations .date,
    .section--service .date,
    .section--professional-memberships .date {
      font-size: 0.72rem;
    }

    .section--publications .item-title,
    .section--presentations .item-title,
    .section--service .item-title,
    .section--professional-memberships .item-title {
      font-size: 0.78rem;
      line-height: 1.2;
    }

    .section--publications .item-body,
    .section--presentations .item-body,
    .section--service .item-body,
    .section--professional-memberships .item-body {
      font-size: 0.74rem;
      line-height: 1.35;
    }

    .item-body em {
      font-style: italic;
    }

    .item-body strong {
      font-weight: 800;
    }

.status {
      margin-top: 18px;
      padding: 14px 16px;
      border: 1px dashed #bcc7d1;
      color: var(--muted);
      background: var(--soft);
    }

    @media print {
      body {
        background: #fff;
      }

      .cv-page {
        width: 100%;
        box-shadow: none;
      }

      .section {
        break-inside: avoid;
      }
    }

@media (max-width: 850px) {
      .cv-page {
        grid-template-columns: 1fr;
      }

      .sidebar {
        display: grid;
        grid-template-columns: 160px minmax(0, 1fr);
        gap: 22px 26px;
        padding: 24px;
      }

      .portrait {
        width: 150px;
        height: 150px;
        margin: 0;
      }

      .side-section {
        margin-top: 0;
      }

.main {
        padding: 28px 22px 38px;
      }

      #cvContent {
        grid-template-columns: 1fr;
      }

      .section--education,
      .section--experience,
      .section--grants,
      .section--awards,
      .section--publications,
      .section--presentations,
      .section--service,
      .section--professional-memberships {
        grid-column: 1;
      }

      .course-columns {
        grid-template-columns: 1fr;
      }

      .course-dates {
        column-count: 1;
      }

      h1 {
        font-size: 1.75rem;
      }

.timeline-item {
        grid-template-columns: 1fr;
        gap: 4px;
      }
    }

    @media (max-width: 560px) {
      .sidebar {
        display: block;
      }

      .portrait {
        margin: 0 auto 26px;
      }

      .side-section + .side-section {
        margin-top: 28px;
      }

      h1 {
        font-size: 1.45rem;
        letter-spacing: 0.1em;
      }

      .timeline {
        margin-left: 12px;
      }
    }
