:root {
  --bg: #f5f7f3;
  --panel: #ffffff;
  --ink: #080b0f;
  --muted: #5b6470;
  --dark: #080b0f;
  --dark-soft: #12171d;
  --lime: #c8ff3d;
  --blue: #245bd7;
  --cyan: #6ee7ff;
  --line: rgba(8, 11, 15, 0.15);
  --line-dark: rgba(255, 255, 255, 0.14);
  --radius: 8px;
  --shadow: 0 24px 70px rgba(8, 11, 15, 0.14);
  --shell: 1380px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color-scheme: light;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(8, 11, 15, 0.045) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(8, 11, 15, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--bg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(47, 107, 255, 0.16);
}

p {
  text-wrap: pretty;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  scroll-margin-block: 88px 24px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--dark);
  background: var(--lime);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin: 0 auto;
}

.topbar-wrap {
  position: sticky;
  top: 12px;
  z-index: 100;
  padding: 12px 16px 0;
  pointer-events: none;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: var(--space-4);
  width: min(100%, var(--shell));
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 10px;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(8, 11, 15, 0.97);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: var(--dark);
  background: var(--lime);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 950;
}

.brand-name {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-name-mobile {
  display: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.nav a {
  padding: 8px 10px;
  color: rgba(248, 250, 252, 0.74);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}

.lang-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn {
  width: 36px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.64);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.lang-btn.is-active {
  color: var(--dark);
  background: var(--lime);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--dark);
  background: var(--lime);
  box-shadow: 0 12px 30px rgba(200, 255, 61, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 16px 38px rgba(200, 255, 61, 0.28);
}

.btn-ghost,
.btn-quiet {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover,
.btn-quiet:hover {
  background: rgba(255, 255, 255, 0.14);
}

.top-cv {
  min-width: 66px;
  min-height: 40px;
  padding: 0 12px;
}

.icon {
  display: inline-block;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.icon-download {
  mask-image: url("../icons/download.svg");
}

.icon-mail {
  mask-image: url("../icons/mail.svg");
}

.icon-telegram {
  mask-image: url("../icons/telegram.svg");
}

.icon-external {
  mask-image: url("../icons/external-link.svg");
}

.icon-linkedin {
  mask-image: url("../icons/linkedin.svg");
}

.icon-github {
  mask-image: url("../icons/github.svg");
}

.icon-wechat {
  mask-image: url("../icons/wechat.svg");
}

.hero {
  padding: 18px 0 22px;
}

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 610px;
  height: min(720px, calc(100svh - 104px));
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius);
  background-image: url("../../photo_0.jpg");
  background-size: cover;
  background-position: center 42%;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 8, 12, 0.64);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  min-width: 0;
  width: min(100%, 810px);
  min-height: 100%;
  padding: var(--space-8);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.32);
}

.hero-role {
  margin: 0 0 var(--space-3);
  color: var(--lime);
  font-size: 15px;
  font-weight: 900;
}

h1,
h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 850;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

h1 {
  max-width: 760px;
  font-size: 72px;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-lead {
  max-width: 730px;
  margin: var(--space-5) 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  text-shadow: none;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  text-shadow: none;
}

.hero-meta div {
  display: grid;
  gap: 6px;
}

.hero-meta strong {
  font-size: 18px;
}

.hero-meta span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.42;
}

section {
  padding: var(--space-9) 0;
  scroll-margin-top: 104px;
}

.section-dark {
  color: #fff;
  background: var(--dark);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.68fr);
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-7);
}

.section-head > * {
  min-width: 0;
}

.section-index {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding-left: 10px;
  color: #405314;
  border-left: 3px solid var(--lime);
  font-size: 12px;
  font-weight: 850;
}

.section-dark .section-index {
  color: var(--lime);
}

h2 {
  max-width: 800px;
  margin-top: var(--space-4);
  font-size: 52px;
  line-height: 1.06;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.5;
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.result-card {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-6) var(--space-7);
  border-right: 1px solid var(--line-dark);
}

.result-card:last-child {
  border-right: 0;
}

.result-label {
  color: var(--lime);
  font-size: 12px;
  font-weight: 850;
}

.result-card strong {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 54px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.result-card small {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 750;
}

.result-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.5;
}

.skills {
  background: #fff;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-8);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-group {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
}

.skill-group:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.skill-group h3 {
  margin: 0 0 var(--space-3);
  font-size: 23px;
  line-height: 1.15;
}

.skill-group p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.method-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.method-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 800;
}

.experience {
  background: transparent;
}

.experience-list {
  display: grid;
  gap: var(--space-3);
}

.xp-card {
  display: grid;
  grid-template-columns: 80px 176px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}

.xp-card-current {
  border-color: rgba(47, 107, 255, 0.38);
  background: #fff;
  box-shadow: 0 16px 46px rgba(8, 11, 15, 0.08);
}

.xp-logo {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 6px;
  overflow: hidden;
}

.xp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.xp-date {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.xp-copy {
  min-width: 0;
}

.xp-copy h3 {
  margin: 0 0 7px;
  font-size: 22px;
  line-height: 1.16;
  text-wrap: pretty;
}

.xp-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.xp-points {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.xp-points li::marker {
  color: var(--blue);
}

.proof-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: var(--space-3);
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.proof-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.proof-link .icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}

.education {
  background: #fff;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.edu-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.edu-logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  padding: 5px;
}

.edu-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.edu-meta {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: var(--space-4);
  padding-left: 9px;
  color: #405314;
  border-left: 3px solid var(--lime);
  font-size: 12px;
  font-weight: 850;
}

.edu-card h3 {
  margin: 0 0 var(--space-2);
  font-size: 26px;
  line-height: 1.08;
  overflow-wrap: normal;
  text-wrap: balance;
}

.edu-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.projects {
  background: transparent;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(220px, 0.48fr);
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
}

.project-number {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.project-row h3 {
  margin: 0 0 6px;
  font-size: 23px;
  line-height: 1.15;
}

.project-row p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.project-stack {
  justify-self: end;
  max-width: 360px;
  color: var(--ink) !important;
  font-size: 13px !important;
  font-weight: 800;
  text-align: right;
}

.training-line {
  display: grid;
  grid-template-columns: minmax(190px, 0.36fr) repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: start;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.training-line strong {
  font-size: 16px;
}

.training-line span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.contact {
  padding-bottom: var(--space-5);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.54fr);
  gap: var(--space-8);
  align-items: start;
  padding: var(--space-7) 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.contact h2 {
  font-size: 56px;
}

.contact-layout > div:first-child > p {
  max-width: 740px;
  margin: var(--space-5) 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1.52;
}

.contact-links {
  display: grid;
  gap: var(--space-2);
}

.contact-links a,
.contact-links button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  min-height: 54px;
  padding: 0 var(--space-4);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: 14px;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease;
}

.contact-links button {
  cursor: pointer;
}

.contact-links a:hover,
.contact-links button:hover {
  border-color: rgba(200, 255, 61, 0.46);
  background: rgba(255, 255, 255, 0.09);
}

.contact-links a > span:last-child,
.contact-links button > span:last-child {
  color: rgba(255, 255, 255, 0.7);
  overflow-wrap: anywhere;
  text-align: right;
}

.contact-command {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: center;
  padding-top: var(--space-5);
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
}

.footer-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links span {
  color: rgba(255, 255, 255, 0.28);
}

.footer-links a:hover {
  color: #fff;
}

.footer > span:last-child {
  justify-self: end;
  text-align: right;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  h1 {
    font-size: 62px;
  }

  h2 {
    font-size: 46px;
  }

  .section-head {
    gap: var(--space-7);
  }

  .result-card strong {
    font-size: 46px;
  }

  .xp-card {
    grid-template-columns: 72px 150px minmax(0, 1fr);
  }

  .contact h2 {
    font-size: 50px;
  }
}

@media (max-width: 820px) {
  :root {
    --space-8: 48px;
    --space-9: 72px;
  }

  .shell {
    width: min(calc(100% - 32px), var(--shell));
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    align-items: start;
  }

  .section-head p {
    max-width: 680px;
  }

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

  .result-card {
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .result-card:last-child {
    border-bottom: 0;
  }

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

  .skill-group:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .skill-group:last-child {
    border-bottom: 0;
  }

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

  .project-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .project-stack {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .training-line {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .contact-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .footer-links,
  .footer > span:last-child {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --space-7: 36px;
    --space-8: 36px;
    --space-9: 48px;
  }

  html {
    scroll-behavior: auto;
  }

  .topbar-wrap {
    position: relative;
    top: auto;
    padding: 6px 6px 0;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 52px;
    padding: 6px;
    background: rgba(8, 11, 15, 0.97);
    backdrop-filter: none;
    transform: translateZ(0);
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .brand-name-desktop,
  .top-cv {
    display: none;
  }

  .brand-name-mobile {
    display: inline;
    font-size: 11px;
  }

  .lang-btn {
    width: 38px;
    height: 36px;
  }

  .shell {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 10px 0 16px;
  }

  .hero-stage {
    min-height: 0;
    height: auto;
    align-items: stretch;
    background-color: var(--dark);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100% auto;
  }

  .hero-stage::before {
    background:
      linear-gradient(
        to bottom,
        rgba(5, 8, 12, 0.08) 0,
        rgba(5, 8, 12, 0.18) 24%,
        rgba(5, 8, 12, 0.9) 42%,
        rgba(5, 8, 12, 1) 62%
      );
  }

  .hero-content {
    align-content: start;
    min-height: 0;
    padding: clamp(224px, 67vw, 260px) 18px 24px;
  }

  .hero-role {
    font-size: 13px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.06;
    text-wrap: initial;
  }

  html[data-lang="en"] h1 {
    font-size: 32px;
  }

  .hero-lead {
    margin-top: var(--space-4);
    font-size: 17px;
    line-height: 1.43;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-5);
  }

  .hero-actions .btn {
    min-height: 44px;
    padding: 0 13px;
    font-size: 12px;
  }

  .hero-actions .btn-primary {
    grid-column: 1 / -1;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    margin-top: var(--space-5);
    padding-top: var(--space-4);
  }

  .hero-meta div {
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: baseline;
    gap: var(--space-3);
  }

  .hero-meta strong {
    font-size: 14px;
  }

  .hero-meta span {
    font-size: 12px;
  }

  section {
    scroll-margin-top: 16px;
  }

  h2 {
    font-size: 34px;
    line-height: 1.1;
    text-wrap: balance;
  }

  .education h2 {
    font-size: 30px;
  }

  .section-head {
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }

  .section-head p {
    font-size: 16px;
    line-height: 1.48;
  }

  .result-card {
    grid-template-columns: 90px minmax(0, 1fr);
    grid-template-areas:
      "label label"
      "value copy";
    gap: 10px var(--space-4);
    align-items: start;
    padding: var(--space-5) 0;
  }

  .result-label {
    grid-area: label;
  }

  .result-card strong {
    grid-area: value;
    display: grid;
    gap: 5px;
    align-items: start;
    font-size: 40px;
  }

  .result-card small {
    font-size: 12px;
    line-height: 1.2;
    white-space: normal;
  }

  .result-card p {
    grid-area: copy;
    font-size: 14px;
  }

  .skill-group {
    padding: var(--space-5) 0;
  }

  .skill-group h3 {
    font-size: 20px;
  }

  .skill-group p {
    font-size: 15px;
  }

  .method-tags {
    margin-top: var(--space-5);
  }

  .method-tags span {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .xp-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px 16px;
    align-items: start;
    padding: 18px 16px;
  }

  .xp-logo {
    grid-row: 1 / span 2;
    width: 56px;
    height: 56px;
    padding: 4px;
  }

  .xp-date {
    grid-column: 2;
    font-size: 12px;
  }

  .xp-copy {
    grid-column: 2;
  }

  .xp-copy h3 {
    font-size: 18px;
  }

  .xp-copy p {
    font-size: 14px;
  }

  .xp-points {
    padding-left: 17px;
    font-size: 14px;
  }

  .proof-link {
    font-size: 12px;
    line-height: 1.35;
  }

  .edu-card {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "logo meta"
      "title title"
      "description description";
    gap: 12px var(--space-4);
    align-items: center;
    padding: 20px 16px;
  }

  .edu-logo {
    grid-area: logo;
    width: 64px;
    height: 64px;
  }

  .edu-copy {
    display: contents;
  }

  .edu-meta {
    grid-area: meta;
    justify-self: start;
    margin-bottom: 0;
    font-size: 11px;
  }

  .edu-card h3 {
    grid-area: title;
    margin-bottom: 0;
    font-size: 21px;
  }

  .edu-card p {
    grid-area: description;
    font-size: 14px;
  }

  .project-row {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px var(--space-3);
    padding: 20px 0;
  }

  .project-row h3 {
    font-size: 20px;
  }

  .project-row p {
    font-size: 14px;
  }

  .project-stack {
    grid-column: 2;
    font-size: 12px !important;
  }

  .training-line {
    margin-top: var(--space-5);
    padding-top: 20px;
  }

  .contact-layout {
    gap: var(--space-6);
    padding: var(--space-7) 0;
  }

  .contact h2 {
    font-size: 40px;
  }

  .contact-layout > div:first-child > p {
    font-size: 16px;
  }

  .contact-links a,
  .contact-links button {
    min-height: 52px;
    padding: 0 13px;
    font-size: 13px;
  }

  .footer {
    gap: var(--space-3);
  }
}

@media (max-width: 380px) {
  html[data-lang="en"] h1 {
    font-size: 32px;
  }

  .education h2 {
    font-size: 28px;
  }
}

@media (max-width: 360px) {
  .brand-name-mobile {
    font-size: 10px;
  }

  .lang-btn {
    width: 31px;
  }

  h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-content {
    padding-inline: 16px;
  }

  .hero-actions .btn {
    padding-inline: 10px;
  }

  .result-card strong {
    font-size: 36px;
  }

}

@media (max-width: 340px) {
  html[data-lang="en"] h1 {
    font-size: 30px;
  }

  .education h2 {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}

@media print {
  .topbar-wrap {
    display: none;
  }

  .hero-stage {
    min-height: auto;
    height: auto;
    background-image: none;
    background-color: var(--dark);
  }

}
