:root {
  --page-bg: #eff2f8;
  --sidebar-bg: #e7ebf3;
  --panel-bg: rgba(255, 255, 255, 0.76);
  --card-border: rgba(125, 145, 170, 0.18);
  --text-strong: #3f4650;
  --text-body: #647083;
  --text-soft: #7f8a9c;
  --chip-bg: #f4f6fb;
  --chip-border: #e4e8f1;
  --button-bg: #6b90b8;
  --button-bg-hover: #5b83ad;
  --shadow-soft: 0 18px 40px rgba(87, 103, 129, 0.08);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --green: #0d7c2b;
  --lime: #9bc000;
  --magenta: #d55be1;
  --purple: #6248f5;
  --orange: #f0672c;
  --blue: #2c7de4;
  --red: #f14c63;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(157, 196, 238, 0.28), transparent 26%),
    linear-gradient(180deg, #f6f8fc 0%, var(--page-bg) 100%);
  color: var(--text-strong);
}

img {
  display: block;
  max-width: 100%;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

p,
li {
  color: var(--text-body);
  line-height: 1.65;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  padding: 32px 18px;
}

.layout {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.panel,
.section-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.sidebar {
  background: var(--sidebar-bg);
  overflow: hidden;
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

.hero-media {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticker {
  position: absolute;
  left: 18px;
  bottom: -26px;
  width: 92px;
  aspect-ratio: 1;
  transform: rotate(-8deg);
  filter: drop-shadow(0 14px 16px rgba(71, 89, 111, 0.16));
}

.sidebar-content {
  padding: 42px 18px 18px;
  display: grid;
  gap: 14px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  scrollbar-gutter: stable;
}

.sidebar-content::-webkit-scrollbar {
  width: 10px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: rgba(107, 144, 184, 0.35);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 144, 184, 0.55);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.section-card,
.experience-card {
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
}

.section-card {
  padding: 18px;
}

.intro-card {
  padding-top: 10px;
}

.compact-card {
  padding: 12px;
}

.eyebrow {
  margin-bottom: 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.identity-block h1 {
  margin-bottom: 2px;
  font-size: clamp(1.95rem, 4vw, 2.45rem);
  line-height: 1.05;
  color: var(--text-strong);
}

.role {
  margin-bottom: 16px;
  font-size: 1.08rem;
  font-weight: 600;
  color: #4d5665;
}

.separator {
  width: 100%;
  height: 1px;
  margin: 12px 0 16px;
  background: linear-gradient(90deg, rgba(109, 133, 164, 0.06), rgba(109, 133, 164, 0.45), rgba(109, 133, 164, 0.06));
}

.summary {
  margin-bottom: 0;
  font-size: 0.97rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--text-body);
  font-size: 0.92rem;
  line-height: 1.2;
}

.chips-contact {
  display: grid;
  gap: 8px;
}

.chip-contact {
  width: 100%;
  justify-content: flex-start;
  min-height: 42px;
  padding-inline: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.section-card h2,
.experience-card h2 {
  margin-bottom: 14px;
  font-size: 1.32rem;
  color: var(--text-strong);
}

.section-card h3,
.experience-card h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
  color: var(--text-strong);
}

.mini-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.mini-block.stacked {
  align-items: center;
}

.mini-block p:last-child {
  margin-bottom: 0;
}

.mini-icons {
  display: flex;
  gap: 8px;
  order: 2;
}

.mini-badge,
.initial-badge {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 700;
  color: white;
  font-size: 0.95rem;
}

.mini-badge.university {
  background: linear-gradient(135deg, #0646bd, #f6d600);
}

.mini-badge.dark,
.initial-badge.dark {
  background: #111111;
}

.mini-badge.brand.green {
  background: #0f5841;
}

.mini-badge.brand.orange {
  background: #f94b00;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border-radius: 14px;
  background: var(--button-bg);
  color: white;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--button-bg-hover);
  transform: translateY(-1px);
}

.content-column {
  display: grid;
  gap: 20px;
}

.experience-card {
  padding: 24px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.card-head h2 {
  margin-bottom: 6px;
}

.card-head p {
  margin-bottom: 0;
}

.initial-badge.pink {
  background: linear-gradient(135deg, #ff4f99, #f23db0);
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  color: white;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
}

.tag.green { background: var(--green); }
.tag.lime { background: var(--lime); color: #233400; }
.tag.magenta { background: var(--magenta); }
.tag.purple { background: var(--purple); }
.tag.orange { background: var(--orange); }
.tag.blue { background: var(--blue); }
.tag.red { background: var(--red); }

.card-body h3 {
  margin-bottom: 10px;
}

.card-body li + li {
  margin-top: 6px;
}

.training-tags {
  margin-top: 12px;
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 320px minmax(0, 1fr);
  }

  .experience-card {
    padding: 22px;
  }
}

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

  .sidebar {
    position: static;
    max-height: none;
  }

  .sidebar-content {
    overflow: visible;
  }

  .hero-media {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 12px 28px;
  }

  .hero-media {
    height: 170px;
  }

  .sticker {
    width: 74px;
    left: 14px;
    bottom: -20px;
  }

  .sidebar-content {
    padding: 34px 12px 12px;
  }

  .section-card,
  .experience-card {
    border-radius: 18px;
  }

  .experience-card,
  .section-card {
    padding: 18px;
  }

  .card-head {
    flex-direction: column;
  }

  .card-head .initial-badge {
    order: -1;
  }

  .identity-block h1 {
    font-size: 1.9rem;
  }

  .section-card h2,
  .experience-card h2 {
    font-size: 1.18rem;
  }

  .chip,
  .tag {
    font-size: 0.84rem;
  }
}
