@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./fonts/inter-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./fonts/inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("./fonts/inter-cyrillic-500.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("./fonts/inter-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --background: #ffffff;
  --text: #141414;
  --muted: #6e6e6e;
  --quiet: #b2b2b2;
  --line: #e5e5e5;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

a {
  color: inherit;
}

button {
  margin: 0;
  font: inherit;
}

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

.metrika-pixel {
  position: absolute;
  left: -9999px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--background);
  font-size: 14px;
  text-decoration: none;
  transition: transform 160ms ease;
}

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

.site-section {
  width: 100%;
  border-bottom: 1px solid var(--line);
}

footer.site-section {
  border-bottom: 0;
}

.section-content {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 140px 96px;
}

.grid-5 {
  display: grid;
  grid-template-columns: minmax(0, 388fr) minmax(0, 140fr) minmax(0, 192fr)
    minmax(0, 140fr) minmax(0, 388fr);
  width: 100%;
}

.section-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
}

.section-label--right {
  text-align: right;
}

.body-copy {
  font-size: 20px;
  font-weight: 400;
  line-height: 36px;
}

.copy-left {
  grid-column: 1 / span 3;
}

.copy-right {
  grid-column: 3 / span 3;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 140px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 388fr) minmax(0, 140fr) minmax(0, 192fr)
    minmax(0, 140fr) minmax(0, 388fr);
  width: 100%;
}

.hero-portrait {
  grid-column: 1;
  width: 100%;
  aspect-ratio: 388 / 482;
  overflow: hidden;
}

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

.hero-side {
  grid-column: 3 / span 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  min-width: 0;
}

.language-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
}

.language-switcher a {
  color: var(--quiet);
  cursor: pointer;
  text-decoration: none;
  transition: color 180ms ease;
}

.language-switcher a:hover {
  color: var(--text);
}

.language-divider {
  color: var(--quiet);
}

.hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.hero-identity {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-name {
  font-size: 28px;
  font-weight: 500;
  line-height: 34px;
}

.hero-role {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
}

.cases-content,
.technical-content {
  display: flex;
  flex-direction: column;
  gap: 140px;
}

.case-list {
  display: flex;
  flex-direction: column;
  gap: 140px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(0, 388fr) minmax(0, 140fr) minmax(0, 192fr)
    minmax(0, 140fr) minmax(0, 388fr);
  width: 100%;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.case-card--image-left .case-media {
  grid-column: 1 / span 3;
}

.case-card--image-left .case-copy {
  grid-column: 5;
}

.case-card--image-right .case-media {
  grid-column: 3 / span 3;
}

.case-card--image-right .case-copy {
  grid-column: 1;
  grid-row: 1;
}

.case-media {
  grid-row: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f4;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.case-copy {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
  min-width: 0;
  padding-top: 96px;
}

.case-title,
.contact-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 34px;
}

.case-meta {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.32px;
}

.case-card:hover .case-media img,
.case-card:focus-visible .case-media img {
  transform: scale(1.025);
}

.technical-flow {
  display: contents;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 388fr) minmax(0, 140fr) minmax(0, 192fr)
    minmax(0, 140fr) minmax(0, 388fr);
  width: 100%;
}

.contact-intro {
  grid-column: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 140px;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-list {
  grid-column: 4 / span 2;
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
  min-width: 0;
  font-style: normal;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  padding: 38px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: var(--background);
  color: inherit;
}

.contact-row:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-kind {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  letter-spacing: 0.72px;
  text-transform: uppercase;
}

.contact-value {
  min-width: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  text-align: right;
}

.contact-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: color 180ms ease;
}

.contact-action:hover {
  color: var(--quiet);
}

.contact-action.is-copied,
.contact-action.is-copied:hover {
  color: var(--quiet);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .section-content {
    max-width: 1199px;
    padding: 96px 48px;
  }

  .body-copy {
    font-size: 18px;
    line-height: 32px;
  }

  .hero-content,
  .cases-content,
  .technical-content,
  .case-list {
    gap: 96px;
  }

  .hero-bottom {
    gap: 20px;
  }

  .language-switcher {
    font-size: 18px;
    line-height: 22px;
  }

  .case-copy {
    padding-top: 96px;
  }

  .case-title,
  .contact-title {
    font-size: 22px;
    line-height: 32px;
  }

  .case-meta {
    font-size: 15px;
    line-height: 26px;
    letter-spacing: 0.3px;
  }

  .contact-intro {
    gap: 96px;
  }

  .contact-value {
    font-size: 18px;
    line-height: 22px;
  }
}

@media (max-width: 767px) {
  .section-content {
    max-width: 580px;
    padding: 48px 20px;
  }

  .section-label--right {
    text-align: left;
  }

  .body-copy {
    font-size: 16px;
    line-height: 28px;
  }

  .grid-5 {
    display: block;
  }

  .hero-content {
    gap: 20px;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero-portrait {
    order: 0;
  }

  .hero-side {
    display: contents;
  }

  .language-switcher {
    order: -1;
    width: 100%;
    font-size: 16px;
    line-height: 19px;
  }

  .hero-bottom {
    order: 1;
    gap: 48px;
  }

  .hero-name {
    font-size: 28px;
    line-height: 34px;
    letter-spacing: -0.28px;
  }

  .hero-role {
    letter-spacing: 0.6px;
  }

  .copy-left,
  .copy-right {
    width: 100%;
  }

  .cases-content,
  .technical-content {
    gap: 48px;
  }

  .case-list {
    gap: 48px;
  }

  .case-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .case-card--image-left .case-media,
  .case-card--image-left .case-copy,
  .case-card--image-right .case-media,
  .case-card--image-right .case-copy {
    width: 100%;
  }

  .case-card--image-right .case-media {
    order: 0;
  }

  .case-card--image-right .case-copy {
    order: 1;
  }

  .case-copy {
    gap: 8px;
    padding-top: 0;
  }

  .case-title,
  .contact-title {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: -0.1px;
  }

  .case-meta {
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.28px;
  }

  .technical-flow {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }

  .contact-intro {
    gap: 48px;
  }

  .contact-list {
    align-self: stretch;
    width: 100%;
  }

  .contact-value {
    flex: 0 0 auto;
    max-width: none;
    font-size: 16px;
    line-height: 19px;
  }

  .contact-kind {
    letter-spacing: 0.6px;
  }
}

@media (hover: none) {
  .case-card:hover .case-media img {
    transform: none;
  }
}

@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;
  }
}
