:root {
  color-scheme: light;
  --ink: #273123;
  --muted: #6f725f;
  --soft: #f8ead4;
  --paper: #fff6e7;
  --white: #ffffff;
  --silver: #e7e3d9;
  --silver-strong: #cfc7b8;
  --orange: #d96f25;
  --orange-dark: #9f4c1d;
  --orange-soft: #ffe0c4;
  --green: #586d35;
  --green-soft: #e5edcf;
  --line: #e5d7c1;
  --shadow: 0 22px 58px rgba(75, 53, 27, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 14%, rgba(217, 111, 37, 0.16), rgba(217, 111, 37, 0) 28%),
    radial-gradient(circle at 88% 10%, rgba(88, 109, 53, 0.18), rgba(88, 109, 53, 0) 30%),
    var(--paper);
  letter-spacing: 0;
}

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

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

.page-shell {
  min-height: 100vh;
  padding: clamp(16px, 3vw, 30px);
}

.resume-sheet {
  width: min(1220px, 100%);
  margin: 0 auto;
  background: rgba(255, 252, 244, 0.96);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sheet-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: clamp(24px, 5vw, 80px);
  align-items: stretch;
  min-height: 220px;
  padding: 26px clamp(24px, 4vw, 44px) 22px;
  background: #fffaf1;
  border-bottom: 2px solid var(--ink);
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 0.96;
  letter-spacing: 0;
}

.subtitle {
  max-width: 720px;
  margin: 0;
  color: #455035;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
}

.location-line {
  margin: 0;
  color: #77786d;
  font-size: 15px;
  line-height: 1.25;
}

.contact-line {
  display: grid;
  gap: 0;
  justify-items: start;
  color: #4d4f43;
  font-style: normal;
  line-height: 1.35;
  text-align: left;
}

.contact-line a {
  color: var(--orange-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.header-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: center;
  align-items: start;
  align-self: start;
  justify-self: end;
  margin-top: 0;
}

.contact-icons {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.icon-link img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.icon-link--mail,
.icon-link--mail img {
  width: 54px;
  height: 54px;
}

.icon-link--telegram {
  width: 38px;
  height: 38px;
  align-self: center;
}

.icon-link--telegram img {
  width: 34px;
  height: 34px;
}

.portrait-card {
  width: 180px;
  height: 180px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
}

.portrait-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sheet-header > div:first-child {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.sheet-header > div:first-child .contact-line {
  margin-top: 30px;
}

.sheet-header > div:first-child .location-line {
  margin-top: auto;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 14px clamp(18px, 4vw, 42px);
  background: #fff0d9;
  border-bottom: 2px solid var(--ink);
}

.tabs button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.tabs button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff8eb;
}

.tab-panel {
  display: none;
  padding: clamp(22px, 4vw, 42px);
}

.tab-panel.is-active {
  display: block;
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.74fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
}

.positioning h2 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(28px, 2.75vw, 40px);
  line-height: 1.12;
  letter-spacing: 0;
}

.positioning p,
.plain-copy {
  color: #455035;
  font-size: 18px;
  line-height: 1.55;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.proof-row div {
  min-height: 106px;
  padding: 16px;
  background: var(--green-soft);
  border: 2px solid var(--green);
  border-radius: 8px;
}

.proof-row strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

.proof-row span {
  display: block;
  color: #4f583e;
  font-size: 14px;
  line-height: 1.35;
}

.metric-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 2px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf1;
  box-shadow: 10px 10px 0 var(--green-soft);
}

.metric-board div {
  min-height: 132px;
  padding: 20px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.metric-board div:nth-child(2n) {
  border-right: 0;
}

.metric-board div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.metric-board strong {
  display: block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: clamp(34px, 3.7vw, 46px);
  line-height: 0.95;
}

.metric-board span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.38;
}

.compact-section {
  margin-top: clamp(24px, 4vw, 38px);
  padding-top: clamp(22px, 4vw, 34px);
  border-top: 2px solid var(--ink);
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.achievement-grid article {
  min-height: 196px;
  padding: 18px;
  background: #fff7ea;
  border: 2px solid var(--line);
  border-radius: 8px;
}

.achievement-grid article:nth-child(2n) {
  background: var(--green-soft);
}

.achievement-grid h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.2;
}

.achievement-grid p {
  margin: 0;
  color: #5d614e;
  font-size: 14px;
  line-height: 1.46;
}

.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(20px, 4vw, 38px);
}

.clean-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #455035;
  line-height: 1.48;
}

.plain-copy {
  margin-bottom: 0;
}

.experience-list {
  display: grid;
  gap: 14px;
}

.experience-item {
  padding: clamp(18px, 3vw, 26px);
  background: #fffaf1;
  border: 2px solid var(--line);
  border-left: 8px solid var(--orange);
  border-radius: 8px;
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 10px;
  color: #666b58;
  font-size: 14px;
}

.company-name {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.company-logo {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 5px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.company-logo--tripleten {
  padding: 7px;
}

.company-logo--yandex {
  object-fit: cover;
}

.company-logo--raiffeisen {
  padding: 0;
  background: #ffe600;
}

.company-logo--vk {
  padding: 0;
  background: #0877f2;
}

.company-logo--sap {
  padding: 4px;
  background: #fff;
  object-fit: contain;
}

.experience-meta span,
.company-name span {
  color: var(--ink);
  font-weight: 850;
}

.experience-item h2 {
  margin-bottom: 10px;
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.15;
  letter-spacing: 0;
}

.experience-item p {
  max-width: 900px;
  color: #455035;
  line-height: 1.5;
}

.experience-item ul {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: #455035;
  line-height: 1.42;
}

.education-section {
  margin-top: clamp(28px, 4vw, 42px);
  padding-top: clamp(22px, 4vw, 34px);
  border-top: 2px solid var(--ink);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.education-grid article,
.project-card {
  padding: 20px;
  background: #fff7ea;
  border: 2px solid var(--line);
  border-radius: 8px;
}

.education-grid h3,
.project-card h2 {
  margin-bottom: 10px;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.15;
}

.education-grid p,
.project-card p {
  margin: 0;
  color: #5d614e;
  line-height: 1.5;
}

.project-grid {
  display: grid;
  gap: 14px;
}

.project-card {
  width: 100%;
  max-width: none;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 18px;
  margin-bottom: 12px;
  color: #666b58;
  font-size: 14px;
}

.project-card__meta span {
  color: var(--ink);
  font-weight: 850;
}

.project-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.project-card dl div {
  display: grid;
  gap: 4px;
}

.project-card dt {
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card dd {
  margin: 0;
  color: #455035;
  line-height: 1.45;
}

.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 20px;
  padding: 9px 14px;
  background: var(--green);
  border-radius: 999px;
  color: #fff8eb;
  font-weight: 850;
}

@media (max-width: 980px) {
  .summary-grid,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .header-side {
    justify-content: start;
  }

  .portrait-card {
    width: 150px;
    height: 150px;
  }

  .contact-line {
    justify-items: start;
    text-align: left;
  }

  .achievement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .sheet-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding: 0;
  }

  .resume-sheet {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .tabs {
    overflow-x: auto;
  }

  .metric-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-board div:nth-child(5n) {
    border-right: 1px solid var(--line);
  }

  .metric-board div:nth-child(2n) {
    border-right: 0;
  }

  .metric-board div:nth-last-child(-n + 5) {
    border-bottom: 1px solid var(--line);
  }

  .metric-board div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

@media (max-width: 430px) {
  h1 {
    font-size: 40px;
  }

  .positioning h2 {
    font-size: 27px;
  }

  .portrait-card {
    width: 132px;
    height: 132px;
  }

  .header-side {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .location-line {
    margin-top: 32px;
  }

  .proof-row {
    grid-template-columns: 1fr;
  }

  .metric-board {
    grid-template-columns: 1fr;
  }

  .metric-board div,
  .metric-board div:nth-child(2n),
  .metric-board div:nth-child(5n),
  .metric-board div:nth-last-child(-n + 2),
  .metric-board div:nth-last-child(-n + 5) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-board div:last-child {
    border-bottom: 0;
  }
}
