:root {
  --page-width: 1120px;
  --aside-width: 280px;
  --content-gap: 48px;
  --text: #202225;
  --muted: #5b5e63;
  --link: #009afe;
  --rule: rgba(32, 34, 37, 0.08);
  --surface: #ffffff;
  --page-bg: #f9f5f1;
  --font-default: "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --font-istok: "Istok Web", "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --radius: 14px;
  --shadow-card: 4px 4px 0 rgba(0, 0, 0, 0.2);
  --shadow-header: 0 3px 9px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-default);
  font-size: 20px;
  line-height: 1.28;
}

a {
  color: var(--link);
  text-decoration: none;
  border-radius: 6px;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

a:hover,
a:focus-visible {
  background: rgba(0, 154, 254, 0.1);
  box-shadow: 0 0 0 1px rgba(0, 154, 254, 0.12);
  text-decoration: none;
  outline: none;
}

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

.page {
  width: min(calc(100% - 48px), var(--page-width));
  margin: 0 auto;
  padding: 0 0 96px;
}

.hero {
  display: grid;
  grid-template-columns: var(--aside-width) minmax(0, 1fr);
  gap: var(--content-gap);
  align-items: start;
  margin: 0 calc(50% - 50vw) 40px;
  padding: 32px max(24px, calc(50vw - (var(--page-width) / 2))) 28px;
  background: var(--surface);
  box-shadow: var(--shadow-header);
  font-family: var(--font-istok);
}

.hero__photo {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(32, 34, 37, 0.08);
}

.hero__photo picture {
  display: block;
  width: 100%;
}

.hero__photo-placeholder,
.hero__photo-main {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero__photo-placeholder {
  position: absolute;
  inset: 0;
  height: 100%;
  filter: blur(18px);
  transform: scale(1.08);
  opacity: 1;
  transition: opacity 320ms ease;
}

.hero__photo-main {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition:
    opacity 320ms ease,
    transform 420ms ease;
}

.hero__photo.is-loaded .hero__photo-placeholder {
  opacity: 0;
}

.hero__photo.is-loaded .hero__photo-main {
  opacity: 1;
}

.hero__info h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.02;
  font-weight: 700;
}

.contact-list,
.plain-list,
.achievement-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
}

.contact-list span {
  font-weight: 400;
}

.section-row {
  display: grid;
  grid-template-columns: var(--aside-width) minmax(0, 1fr);
  gap: var(--content-gap);
  padding: 28px 0;
  align-items: start;
}

.section-row + .section-row {
  border-top: 1px solid var(--rule);
}

.section-row__label {
  font-size: clamp(1.4rem, 1.8vw, 2rem);
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding-top: 20px;
  position: sticky;
  top: 0;
  align-self: start;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: opacity 180ms ease;
}

.entry + .entry {
  margin-top: 22px;
}

.entry h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  line-height: 1.12;
  font-weight: 700;
}

.entry {
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.entry p,
.plain-list li,
.achievement-list li {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 1.65vw, 1.45rem);
}

.entry__meta {
  color: var(--text);
}

.plain-list li:last-child,
.achievement-list li:last-child,
.entry p:last-child {
  margin-bottom: 0;
}

.achievement-list li {
  position: relative;
  padding-left: 34px;
}

.achievement-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
}

@media (max-width: 980px) {
  .page {
    width: min(calc(100% - 32px), var(--page-width));
  }

  .hero {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    padding-left: max(16px, calc(50vw - (var(--page-width) / 2)));
    padding-right: max(16px, calc(50vw - (var(--page-width) / 2)));
  }

  .section-row {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
  }

  .section-row__label {
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .page {
    width: min(calc(100% - 24px), var(--page-width));
    padding-bottom: 56px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 36px;
    padding: 20px 16px 18px;
  }

  .section-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero__photo {
    max-width: 260px;
  }

  .section-row__label {
    padding-top: 0;
    position: static;
  }

  .contact-list li,
  .entry p,
  .plain-list li,
  .achievement-list li {
    font-size: 1.25rem;
    line-height: 1.36;
  }

  .entry h2 {
    font-size: 1.45rem;
  }

  .section-row {
    padding: 22px 0;
  }
}
