/* Formal light corporate theme — RU hiring portfolio 2026 */
:root {
  --bg0: #f4f6f8;
  --bg1: #ffffff;
  --ink: #102a43;
  --ink-soft: #243b53;
  --muted: #627d98;
  --accent: #243b53;
  --accent-strong: #102a43;
  --accent-soft: #e6edf4;
  --line: #d9e2ec;
  --line-strong: #bcccdc;
  --card: #ffffff;
  --shadow: none;
  --radius: 4px;
  --wrap: min(980px, calc(100% - 2.5rem));
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --display: "IBM Plex Serif", "Georgia", serif;
  --label: 0.72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg0);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg0);
  position: relative;
  isolation: isolate;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

main a:not(.btn):not(.nav-link):not(.nav-lang):not(.logo) {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
main a:not(.btn):not(.nav-link):not(.nav-lang):not(.logo):hover {
  color: var(--muted);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.2rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  border-bottom: 1px solid var(--accent-strong);
}
.more-link::after {
  content: "→";
  font-weight: 600;
  transition: transform 0.15s ease;
}
.more-link:hover::after {
  transform: translateX(3px);
}

/* Flat formal background — no decorative clouds */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, #eef2f6 0%, var(--bg0) 28%, var(--bg0) 100%);
  border-top: 3px solid var(--accent-strong);
}

.clouds {
  display: none !important;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--accent-strong);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 246, 248, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
}
.logo span {
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.1rem;
  align-items: center;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent-strong);
}

.nav-lang {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.2rem 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--bg1);
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 2.8rem;
  align-items: start;
  padding: 3.2rem 0 2.4rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.8vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  font-weight: 600;
  color: var(--ink);
}

.headline {
  margin: 0 0 1rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink-soft);
  font-family: var(--font);
}

.lead {
  margin: 0 0 1.35rem;
  color: var(--muted);
  max-width: 38rem;
  font-size: 1rem;
}

.stack-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.4rem;
}

.stack-line span {
  font-size: 0.78rem;
  padding: 0.22rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg1);
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  transform: none;
}
.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: none;
}
.btn-primary:hover {
  background: #243b53;
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--bg1);
}
.btn-ghost:hover {
  border-color: var(--accent-strong);
  background: var(--accent-soft);
}

.proof {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}
.hero-salary {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
}
.hero-salary span {
  display: inline-block;
  margin-right: 0.55rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.avatar {
  width: min(100%, 280px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  display: block;
  margin-inline: auto;
  background: var(--bg1);
}

.hero-text,
.avatar {
  animation: none;
}

.section {
  padding: 2.4rem 0 0.4rem;
}
.section h2,
.page-head h1 {
  font-family: var(--display);
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem;
  font-weight: 600;
  font-size: 1.45rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.section-lead {
  color: var(--muted);
  margin: 0.75rem 0 1.25rem;
  font-size: 0.95rem;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bg1);
}
.skill-groups-rich {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.skill-group {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 1.15rem 1.2rem;
  box-shadow: none;
  backdrop-filter: none;
}
.skill-group-rich {
  padding: 1.25rem 1.3rem;
}
.skill-group h3 {
  margin: 0 0 0.55rem;
  font-size: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font);
}
.skill-blurb {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.chips li {
  font-size: 0.8rem;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-weight: 500;
}

.featured-case,
.case,
.case-static {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-strong);
  border-radius: 0;
  padding: 1.45rem 1.5rem 1.5rem;
  box-shadow: none;
  backdrop-filter: none;
}
.featured-stack {
  display: grid;
  gap: 1rem;
}
.featured-case {
  margin-bottom: 0;
}
.featured-case h3,
.case h3,
.case-teaser h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.case-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font);
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  max-width: 52rem;
}
.subhead {
  margin: 1.8rem 0 0.9rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 0;
  padding: 0;
}
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
.case-teaser {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.1rem 1.15rem;
  box-shadow: none;
  backdrop-filter: none;
}
.case-teaser p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .teaser-grid,
  .case-grid,
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-media {
    order: -1;
  }
  .avatar {
    width: min(100%, 200px);
  }
}
a.case:hover {
  border-color: var(--line-strong);
  border-left-color: var(--accent-strong);
  transform: none;
  background: #fafbfc;
}

.case-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.case-block h4 {
  margin: 0 0 0.4rem;
  font-size: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font);
}
.case-block p,
.case-block ul {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.case-block ul {
  padding-left: 1.15rem;
}
.case-block li {
  margin: 0.28rem 0;
}

.job {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
}
.job-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  margin-bottom: 0.5rem;
}
.job-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--display);
  font-weight: 600;
}
.job-head a {
  color: var(--accent-strong);
}
.job-dates {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.job ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.history-list,
.edu-list,
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.history-list li,
.edu-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.h-period {
  display: inline-block;
  min-width: 10rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
.note-inline {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.2rem;
}
.history-rich {
  display: grid;
  gap: 0.85rem;
}
.history-job {
  background: var(--bg1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: 0;
  padding: 1.25rem 1.35rem;
  box-shadow: none;
  backdrop-filter: none;
}
.history-job .job-head h3 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: 1.1rem;
}
.history-job .job-dates {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.history-job .job-summary {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
}
.history-job ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}
.history-job li {
  margin: 0.3rem 0;
  border: 0;
  padding: 0;
  color: var(--ink-soft);
}
.history-job .note-inline {
  margin-top: 0.85rem;
  opacity: 1;
  color: var(--muted);
  font-size: 0.85rem;
}

.page-head {
  padding: 2.4rem 0 0.5rem;
}
.page-head .lead {
  margin-top: 0.85rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 2.2rem;
  align-items: start;
}
.about-role {
  margin: 0.55rem 0 0.35rem;
  font-family: var(--serif, "IBM Plex Serif", Georgia, serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--ink, #102a43);
  line-height: 1.35;
}
.about-aside {
  position: sticky;
  top: 1.5rem;
}
.avatar-about {
  width: min(100%, 240px);
  margin-top: 0.5rem;
}
.about-aside-meta {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.focus-list {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}
.focus-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.1rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}
.focus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--ink, #102a43);
}
.career-path {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  border-left: 2px solid var(--line);
}
.career-path > li {
  position: relative;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.85rem;
  padding: 0 0 1.15rem 1.15rem;
}
.career-path > li:last-child {
  padding-bottom: 0;
}
.career-path > li::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  top: 0.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ink, #102a43);
  border: 2px solid var(--bg1, #fff);
}
.career-period {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.career-title {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink, #102a43);
}
.career-path p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.career-arc {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-weight: 500;
  line-height: 1.45;
}
@media (max-width: 560px) {
  .career-path > li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-aside {
    position: static;
    order: -1;
  }
}

.featured-lead {
  margin: 0.35rem 0 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}
.section-more {
  margin-top: 1.1rem;
}
.salary-line {
  margin: 1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.salary-line span {
  display: inline-block;
  margin-right: 0.65rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.resume-salary {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink, #102a43);
}
.contact-page {
  max-width: 52rem;
  padding-bottom: 2.5rem;
}
.contact-page .eyebrow {
  margin-top: 1rem;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}
.contact-panel {
  margin-top: 0;
  padding: 1.35rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg1, #fff);
}
.max-card {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--bg1, #fff);
  text-align: center;
}
.max-card img {
  width: min(100%, 280px);
  height: auto;
  border-radius: 0.5rem;
}
.max-card figcaption {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:last-child {
  border-bottom: 0;
}
.contact-list > li > span:first-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-list a,
.contact-value {
  color: var(--accent-strong);
  word-break: break-word;
}
.contact-value {
  color: var(--ink, #102a43);
}
.contact-panel .cta-row {
  margin-top: 1.35rem;
  flex-wrap: wrap;
}
@media (max-width: 520px) {
  .contact-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: var(--bg1);
}
.footer-inner {
  padding: 1.35rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner a {
  color: var(--accent-strong);
}
.footer-inner p {
  margin: 0.25rem 0;
}

/* Resume / print — one A4 page */
.resume-body .bg,
.resume-body .clouds,
.resume-body .site-header,
.resume-body .site-footer {
  display: none !important;
}
.resume-page {
  max-width: 820px;
  margin: 1.5rem auto 3rem;
  background: #fff;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
}
.resume-onepage {
  font-size: 0.95rem;
  line-height: 1.4;
}
.resume-onepage .resume-header h1 {
  font-size: 1.45rem;
  margin: 0 0 0.2rem;
}
.resume-onepage .headline {
  margin: 0.15rem 0;
  font-size: 1rem;
}
.resume-meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.resume-skills {
  margin: 0;
  line-height: 1.45;
}
.resume-onepage section {
  margin-top: 0.75rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}
.resume-onepage h2 {
  font-family: var(--font);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-weight: 700;
}
.resume-onepage .job-compact {
  margin: 0 0 0.55rem;
}
.resume-onepage .job-compact .job-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.2rem;
}
.resume-onepage .job-compact h3 {
  font-size: 0.98rem;
  margin: 0;
}
.resume-onepage .job-compact .job-dates {
  margin: 0;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.85rem;
}
.resume-onepage .job-compact ul {
  margin: 0.15rem 0 0;
  padding-left: 1.05rem;
}
.resume-onepage .job-compact li {
  margin: 0.12rem 0;
}
.history-compact {
  margin: 0;
  padding: 0;
  list-style: none;
}
.history-compact li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.5rem;
  padding: 0.18rem 0;
  border-bottom: 0;
  font-size: 0.9rem;
}
.resume-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}
.resume-footer-grid p {
  margin: 0;
  font-size: 0.9rem;
}
.resume-more {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.print-hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

@media print {
  @page {
    size: A4;
    margin: 10mm 12mm;
  }
  .bg,
  .clouds,
  .site-header,
  .site-footer,
  .no-print,
  .cta-row,
  .nav {
    display: none !important;
  }
  html,
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 9.5pt !important;
    line-height: 1.32 !important;
  }
  a {
    color: #000;
    text-decoration: none;
  }
  .resume-page,
  .resume-onepage {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    box-shadow: none !important;
  }
  .resume-onepage section {
    margin-top: 0.45rem;
    padding-top: 0.35rem;
  }
  .resume-onepage h2 {
    font-size: 8pt;
    margin-bottom: 0.2rem;
  }
  .resume-onepage .resume-header h1 {
    font-size: 14pt;
  }
  .resume-onepage .headline {
    font-size: 10pt;
  }
  .resume-meta,
  .resume-more {
    font-size: 8.5pt;
  }
  .job,
  .job-compact,
  .history-list li,
  .history-job {
    break-inside: avoid;
  }
}
