@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/InterTight-VariableFont_wght.ttf")
    format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
}

:root {
  --page-bg: #fbfbfa;
  --text-main: #8e8e8e;
  --text-strong: #0f0f0f;
  --color-primary: #0f0f0f;
  --color-secondary: #878787;
  --header-height: 76px;
  --right-column-width: 774px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--text-strong);
  font-family: "Inter Tight", sans-serif;
  scroll-behavior: smooth;
}

body.is-preloading {
  overflow: hidden;
}

main {
  margin: 0;
  padding: 0;
}

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

button {
  padding: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

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

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f0f;
  transform: translateY(0);
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}

.site-preloader-title {
  margin: 0;
  font-size: clamp(28px, 2vw, 44px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  color: #fbfbfa;
  transition:
    opacity 0.3s ease,
    transform 0.45s ease;
}

.site-preloader.is-ready .preloader-animate-word {
  will-change: transform, opacity, filter;
}

.preloader-animate-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 24px, 0);
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
  transition-delay: var(--preloader-word-delay, 0s);
}

.site-preloader.is-visible .preloader-animate-word {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

body:not(.is-preloading) .site-preloader {
  transform: translateY(-100%);
}

body:not(.is-preloading) .site-preloader-title {
  opacity: 0;
  transform: translate3d(0, -16px, 0);
}

.hero-page {
  position: relative;
  width: min(100%, 2560px);
  max-width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  margin: 0;
  padding: 0;
  padding-top: 0;
  padding-bottom: 0;
  background: #fbfbfa;
}

.hero-header.is-scrolled {
  border-bottom: 1px solid #e9e9e9;
}

.brand {
  position: absolute;
  top: 50%;
  left: 32px;
  width: fit-content;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-main);
  letter-spacing: -0.02em;
  transform: translateY(-50%);
}

.menu-button {
  position: absolute;
  top: 50%;
  left: 712px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  padding: 0;
  border-radius: 0;
  transition: background-color 0.2s ease;
  transform: translateY(-50%);
}

.menu-button img {
  width: 56px;
  height: 56px;
}

.cta-link {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: var(--right-column-width);
  height: 76px;
  padding-left: 32px;
  padding-right: 32px;
  gap: 32px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--text-strong);
  box-sizing: border-box;
  flex: 0 0 auto;
  transition: background-color 0.2s ease;
}

.cta-link img {
  margin-left: auto;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
}

.menu-button:hover,
.cta-link:hover {
  background-color: #f1f1f1;
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-100%);
  transition:
    transform 0.6s ease,
    opacity 0.35s ease,
    visibility 0s linear 0.6s;
}

.site-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    transform 0.45s ease,
    opacity 0.25s ease,
    visibility 0s linear 0s;
}

.site-menu-header {
  position: relative;
  flex: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid #e4e4e4;
}

.site-menu-brand {
  position: absolute;
  top: 50%;
  left: 32px;
  width: fit-content;
  margin: 0;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-main);
  letter-spacing: -0.02em;
  transform: translateY(-50%);
}

.site-menu-close {
  position: absolute;
  top: 50%;
  left: 712px;
  width: 76px;
  height: 76px;
  transform: translateY(-50%);
}

.site-menu-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 1px;
  background: var(--text-strong);
}

.site-menu-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-menu-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-menu-cta {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  width: var(--right-column-width);
  height: var(--header-height);
  padding: 0 32px;
  gap: 32px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-strong);
}

.site-menu-cta img,
.site-menu-row > img {
  width: 56px;
  height: 56px;
  margin-left: auto;
  flex: 0 0 auto;
}

.site-menu-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.site-menu-row {
  display: grid;
  align-items: center;
  min-height: 260px;
  padding-left: 44px;
  padding-right: 32px;
  border-bottom: 1px solid #e4e4e4;
}

.site-menu-row:not(.site-menu-row-projects) {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
}

.site-menu-projects-block {
  display: block;
}

.site-menu-row-projects {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(160px, 270px)
    minmax(160px, 270px)
    minmax(160px, 270px)
    auto;
  gap: 0;
}

.site-menu-label {
  font-size: clamp(56px, 6vw, 112px);
  line-height: 0.94;
  font-weight: 400;
  letter-spacing: 0;
}

.rolling-text {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.section-intro-link.rolling-text,
.section-works-link.rolling-text {
  width: fit-content;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-self: flex-start;
  white-space: nowrap;
}

.rolling-text-char {
  display: inline-flex;
  overflow: hidden;
  height: 1.08em;
  line-height: 0.94;
}

.rolling-text-char.is-space {
  width: 0.28em;
}

.rolling-text-track {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--char-index, 0) * 0.025s);
}

.rolling-text-glyph {
  display: block;
  line-height: 0.94;
  height: 1.08em;
  padding-bottom: 0.14em;
}

.rolling-text-glyph:last-child {
  color: #878787;
}

@media (hover: hover) and (pointer: fine) {
  .has-rolling-text:hover .rolling-text-track {
    transform: translateY(-1.08em);
  }
}

.site-menu-row-projects .site-menu-label {
  grid-column: 1;
  min-height: 260px;
  display: flex;
  align-items: center;
  padding-left: 0;
}

.site-menu-row-projects > img {
  grid-column: 5;
  width: 56px;
  height: 56px;
  margin-left: auto;
  margin-right: 0;
}

.site-menu-projects-preview {
  display: contents;
}

.site-menu-project-preview-item {
  display: contents;
}

.site-menu-project-preview-item:nth-child(1) {
  grid-column: 2;
}

.site-menu-project-preview-item:nth-child(2) {
  grid-column: 3;
}

.site-menu-project-preview-item:nth-child(3) {
  grid-column: 4;
}

.site-menu-project-preview-item:nth-child(3) img {
  border-right: 1px solid #e4e4e4;
}

.site-menu-projects-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  padding: 48px;
  border-left: 1px solid #e4e4e4;
}

.site-menu-hover-label {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 10px 14px;
  background: #ffffff;
  color: #0f0f0f;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(-9999px, -9999px, 0);
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.site-menu-hover-label.is-visible {
  opacity: 1;
}

.site-menu-socials {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 32px 44px 40px;
}

.site-menu-socials a {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-strong);
}

.site-menu-close:hover,
.site-menu-cta:hover,
.site-menu-row:hover {
  background: #f8f8f8;
}

.hero {
  display: grid;
  grid-template-columns: 1fr var(--right-column-width);
  height: calc(100vh - var(--header-height));
}

.hero-column {
  min-width: 0;
}

.hero-column-left {
  position: relative;
  height: calc(100vh - var(--header-height));
  width: 100%;
  min-width: 0;
}

.left-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  height: 350px;
  margin: 0;
  transform: translate(-50%, -70%);
}

.left-preview img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.left-preview-slide {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.left-preview-slide.is-active {
  opacity: 1;
}

.hero-column-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: var(--right-column-width);
  min-width: 0;
  justify-self: end;
}

.hero-image {
  width: 100%;
  height: 100%;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}

.hero-image-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.hero-slide {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
}

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

.hero-title {
  position: absolute;
  left: 32px;
  bottom: 32px;
  margin: 0;
  max-width: 502px;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-main);
}

.hero-title-accent {
  color: var(--text-main);
}

.hero-title-dark {
  color: var(--text-strong);
}

@media (min-width: 1201px) {
  .hero-page {
    overflow: visible;
  }

  .hero {
    position: sticky;
    top: var(--header-height);
    z-index: 1;
    isolation: isolate;
    overflow: hidden;
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, var(--hero-overlay-opacity, 0));
    pointer-events: none;
  }

  .hero-column {
    position: relative;
    z-index: 1;
  }

  .section-intro {
    position: relative;
    z-index: 3;
    margin-top: -20vh;
    background: var(--page-bg);
    transform: translate3d(0, var(--intro-overlap-y, 20vh), 0);
    will-change: transform;
  }
}

.section-intro {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}

.section-intro-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.section-intro-content.is-ready .intro-animate-word,
.section-intro-content.is-ready .section-intro-link {
  will-change: transform, opacity, filter;
}

.section-intro-text {
  width: 100%;
  max-width: 654px;
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 56px;
  color: var(--color-secondary);
  text-align: left;
}

.intro-animate-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 24px, 0);
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
  transition-delay: var(--intro-word-delay, 0s);
}

.section-intro-content.is-visible .intro-animate-word {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.section-intro-link {
  margin-top: 48px;
  display: inline-flex;
  justify-content: flex-start;
  align-self: flex-start;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-primary);
  text-align: left;
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease;
  transition-delay: var(--intro-link-delay, 0s);
}

.section-intro-content.is-visible .section-intro-link {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

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

@media (prefers-reduced-motion: reduce) {
  .preloader-animate-word,
  .intro-animate-word,
  .section-intro-link,
  .footer-animate-word {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

.section-works {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 200px;
  padding: 0 0 200px;
}

.section-case {
  width: 100%;
  scroll-margin-top: 200px;
}

.section-works-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 32px;
}

.section-works-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.section-works-tags-wrapper {
  display: flex;
  align-items: flex-start;
  margin-top: 32px;
}

.section-works-link {
  align-self: flex-start;
  margin-left: 0 !important;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-primary);
}

.section-works-title {
  margin: 0;
  font-size: 40px;
  line-height: 56px;
  font-weight: 500;
  color: var(--color-primary);
}

.section-works-tags {
  margin-top: 0;
  display: grid;
  grid-template-columns: 190px 190px;
  column-gap: 20px;
  row-gap: 24px;
}

.tag {
  margin: 0;
  width: 190px;
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--color-secondary);
  white-space: nowrap;
}

.tag-link {
  color: var(--text-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-works-slider {
  margin-top: 120px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 0 32px 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.section-works-slider::-webkit-scrollbar {
  display: none;
}

.section-works-slider.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.slider-item {
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  height: auto;
}

.slider-item:nth-child(3n + 1) {
  width: 594px;
}

.slider-item:nth-child(3n + 2) {
  width: 372px;
}

.slider-item:nth-child(3n + 3) {
  width: 510px;
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  min-height: 80vh;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(720px, 1.5fr) minmax(180px, 1fr);
  grid-template-rows: auto minmax(180px, 1fr) auto;
  column-gap: 48px;
  row-gap: 56px;
  align-items: start;
  padding: 40px 32px 48px;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
  transition: opacity 0.2s ease;
}

.footer-icon-link img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.footer-contact-link {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.footer-title {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  max-width: 900px;
  font-size: clamp(56px, 5.35vw, 104px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: 0;
}

.footer-title.is-ready .footer-animate-word {
  will-change: transform, opacity, filter;
}

.footer-animate-word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 24px, 0);
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
  transition-delay: var(--footer-word-delay, 0s);
}

.footer-title.is-visible .footer-animate-word {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.footer-title-muted {
  color: var(--text-main);
}

.footer-title-strong {
  color: var(--text-strong);
}

.footer-socials {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-top: 10px;
}

.footer-socials a,
.footer-email,
.footer-privacy {
  transition: opacity 0.2s ease;
}

.footer-socials a {
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0;
}

.footer-email {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  width: fit-content;
  margin-bottom: 8px;
  font-size: clamp(34px, 3.2vw, 64px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.footer-privacy {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  width: fit-content;
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  color: var(--text-main);
  letter-spacing: 0;
}

.footer-portrait {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  width: 184px;
  height: 184px;
}

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

.footer-top-link {
  grid-column: 3;
  grid-row: 3;
  justify-self: end;
  align-self: end;
}

.footer-icon-link:hover,
.footer-socials a:hover,
.footer-email:hover {
  opacity: 0.6;
}

@media (min-width: 481px) {
  .section-works-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .section-works-main {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex: 0 1 42%;
    width: 42%;
    min-width: 35%;
    max-width: 45%;
    gap: 40px;
  }

  .section-works-link {
    flex: 0 0 auto;
  }

  .section-works-title {
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
  }

  .section-works-tags-wrapper {
    flex: 0 0 auto;
    margin-top: 0;
    margin-left: auto;
  }
}

@media (max-width: 1920px) {
  .menu-button {
    left: 361px;
  }

  .site-menu-close {
    left: 361px;
  }
}

@media (max-width: 1920px) and (min-width: 1200px) {
  .section-works-title {
    transform: none;
  }

  .footer-title {
    font-size: 56px;
    line-height: 68px;
  }

  .footer-email {
    font-size: 40px;
    line-height: 50px;
  }
}

@media (min-width: 1920px) {
  .footer-title {
    font-size: 76px;
    line-height: 84px;
  }

  .site-menu-row-projects .site-menu-projects-preview img {
    transform: translateX(-80%);
  }
}

@media (max-width: 1440px) {
  .menu-button {
    left: 296px;
  }

  .site-menu-close {
    left: 296px;
  }

  :root {
    --right-column-width: 636px;
  }

  .left-preview {
    width: 192px;
    height: 192px;
  }

  .slider-item:nth-child(3n + 1) {
    width: 472px;
  }

  .slider-item:nth-child(3n + 2) {
    width: 296px;
  }

  .slider-item:nth-child(3n + 3) {
    width: 404px;
  }
}

@media (max-width: 1200px) {
  .section-intro {
    height: auto;
    padding-top: 120px;
    padding-bottom: 0;
    justify-content: flex-start;
  }

  .section-intro-text {
    width: auto;
  }

  .section-intro-link {
    display: none;
  }

  .site-footer {
    min-height: 50vh;
    grid-template-columns: 168px minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr auto;
    column-gap: 40px;
    row-gap: 48px;
    padding: 32px;
  }

  .footer-contact-link {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .footer-socials {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    padding-top: 0;
  }

  .footer-title {
    grid-column: 1 / 3;
    grid-row: 1;
    max-width: none;
    font-size: clamp(48px, 7vw, 76px);
  }

  .footer-email {
    grid-column: 1 / 3;
    grid-row: 3;
    align-self: end;
    margin-bottom: 0;
  }

  .footer-privacy {
    grid-column: 2;
    grid-row: 4;
    justify-self: center;
    align-self: end;
  }

  .footer-portrait {
    grid-column: 1;
    grid-row: 4;
    width: 168px;
    height: 168px;
  }

  .footer-top-link {
    grid-column: 3;
    grid-row: 4;
    justify-self: end;
    align-self: end;
  }

  .cta-link {
    display: none;
  }

  .site-menu-cta {
    display: none;
  }

  .brand {
    left: 32px;
  }

  .menu-button {
    left: auto;
    right: 24px;
  }

  .site-menu-close {
    left: auto;
    right: 24px;
  }

  .site-menu-row {
    min-height: 220px;
    padding-left: 32px;
  }

  .site-menu-socials {
    gap: 40px;
    padding: 24px 32px 32px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height));
    min-height: 0;
  }

  .hero-column-left {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    min-height: 0;
  }

  .left-preview {
    position: relative;
    top: auto;
    left: auto;
    width: 160px;
    height: 160px;
    margin: auto auto 0;
    transform: none;
  }

  .left-preview-slide {
    width: 160px;
    height: 160px;
  }

  .hero-title {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    margin-top: auto;
    margin-bottom: 32px;
    padding: 0 32px;
    font-size: 32px;
    line-height: 44px;
  }

  .hero-column-right {
    height: 40vh;
    flex-shrink: 0;
    width: 100%;
    justify-self: auto;
  }

  .hero-image {
    width: 100%;
    max-width: none;
    height: 100%;
  }

  .hero-slide {
    width: 100%;
    max-width: none;
    height: 100%;
  }

  .section-intro-text {
    font-size: 32px;
    line-height: 44px;
  }
}

@media (min-width: 1201px) {
  .site-menu-project-preview-item img {
    transform: translateX(-30%);
  }
}

@media (max-width: 1024px) {
}

@media (max-width: 820px) and (min-width: 481px) {
  .section-case {
    scroll-margin-top: 120px;
  }

  .site-menu-projects-block {
    display: block;
    border-bottom: 1px solid #e4e4e4;
  }

  .site-menu-header {
    height: 76px;
  }

  .site-menu-brand {
    left: 32px;
  }

  .site-menu-close {
    top: 0;
    right: 0;
    width: 76px;
    height: 76px;
    transform: none;
  }

  .site-menu-row {
    min-height: 180px;
    padding-left: 32px;
  }

  .site-menu-row:not(.site-menu-row-projects) {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-menu-row-projects {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: stretch;
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .site-menu-row-projects::after {
    content: "";
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    width: 56px;
    height: 56px;
    background: url("assets/icons/arrow.svg") center / 56px 56px no-repeat;
  }

  .site-menu-label {
    font-size: 56px;
  }

  .site-menu-row-projects .site-menu-label,
  .site-menu-row-projects > img {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .site-menu-row-projects .site-menu-label {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    align-self: stretch;
    min-height: 180px;
    padding-left: 0;
  }

  .site-menu-row-projects > img {
    display: none;
  }

  .site-menu-projects-preview {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0;
    justify-items: center;
    margin-left: -32px;
    margin-right: -32px;
    padding-left: 32px;
    padding-right: 32px;
    border-top: 1px solid #e4e4e4;
    background-image:
      linear-gradient(#e4e4e4, #e4e4e4),
      linear-gradient(#e4e4e4, #e4e4e4);
    background-size: 1px 100%, 1px 100%;
    background-position: calc(100% / 3) 0, calc(200% / 3) 0;
    background-repeat: no-repeat;
  }

  .site-menu-projects-preview img {
    width: 240px;
    max-width: 100%;
    transform: none;
    margin-inline: auto;
    border-left: 0;
    justify-self: center;
  }

  .site-menu-projects-preview img:last-child {
    border-right: 0;
  }

  .site-menu-socials {
    flex-wrap: wrap;
    gap: 24px 40px;
  }

  .site-footer {
    min-height: 50vh;
    grid-template-columns: 152px minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr auto;
    column-gap: 32px;
    padding: 32px;
    row-gap: 40px;
  }

  .footer-title {
    grid-column: 1 / 3;
    grid-row: 1;
    max-width: none;
  }

  .footer-contact-link {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .footer-icon-link img {
    width: 32px;
    height: 32px;
  }

  .footer-socials {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    gap: 20px;
  }

  .footer-email {
    grid-column: 1 / 3;
    grid-row: 3;
    align-self: end;
  }

  .footer-privacy {
    grid-column: 2;
    grid-row: 4;
    justify-self: center;
    align-self: end;
  }

  .footer-portrait {
    grid-column: 1;
    grid-row: 4;
    width: 152px;
    height: 152px;
  }

  .footer-top-link {
    grid-column: 3;
    grid-row: 4;
    justify-self: end;
    align-self: end;
  }

  .section-works {
    gap: 120px;
    padding: 120px 0;
  }

  .section-works-header {
    flex-direction: column;
    gap: 32px;
  }

  .section-works-main {
    flex: 0 0 auto;
    width: 70%;
    max-width: 70%;
  }

  .section-works-tags-wrapper {
    align-self: flex-start;
    justify-content: flex-start;
    width: 70%;
    max-width: 70%;
    margin-top: 0;
    margin-left: 0;
  }

  .section-works-title {
    max-width: none;
    font-size: 32px;
    line-height: 44px;
    font-weight: 500;
    transform: none;
  }

  .section-works-tags {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    margin-top: 0;
    margin-left: 0;
    width: auto;
    max-width: none;
    grid-template-columns: none !important;
    column-gap: 0;
    row-gap: 0;
    transform: none;
  }

  .section-works-slider {
    margin-top: 64px;
    gap: 16px;
    padding-left: 16px;
    padding-right: 32px;
  }

  .slider-item:nth-child(3n + 1) {
    width: 324px;
  }

  .slider-item:nth-child(3n + 2) {
    width: 204px;
  }

  .slider-item:nth-child(3n + 3) {
    width: 280px;
  }

  .tag {
    display: block;
    margin: 0;
    width: auto;
  }
}

@media (max-width: 780px) and (min-width: 481px) {
  .footer-title {
    font-size: 32px;
    line-height: 40px;
  }

  .footer-email {
    font-size: 24px;
    line-height: 32px;
  }
}

@media (max-width: 1200px) and (min-width: 781px) {
  .footer-title {
    line-height: normal;
  }
}

@media (max-width: 1200px) and (min-width: 821px) {
  .section-intro {
    padding-bottom: 120px;
  }

  .site-menu-projects-block {
    display: block;
    border-bottom: 1px solid #e4e4e4;
  }

  .site-menu-row-projects {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: stretch;
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .site-menu-row-projects::after {
    content: "";
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    width: 56px;
    height: 56px;
    background: url("assets/icons/arrow.svg") center / 56px 56px no-repeat;
  }

  .site-menu-row-projects .site-menu-label,
  .site-menu-row-projects > img {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .site-menu-row-projects .site-menu-label {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    align-self: stretch;
    min-height: 220px;
    padding-left: 0;
  }

  .site-menu-row-projects > img {
    display: none;
  }

  .site-menu-projects-preview {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0;
    justify-items: center;
    margin-left: -32px;
    margin-right: -32px;
    padding-left: 32px;
    padding-right: 32px;
    border-top: 1px solid #e4e4e4;
    background-image:
      linear-gradient(#e4e4e4, #e4e4e4),
      linear-gradient(#e4e4e4, #e4e4e4);
    background-size: 1px 100%, 1px 100%;
    background-position: calc(100% / 3) 0, calc(200% / 3) 0;
    background-repeat: no-repeat;
  }

  .site-menu-projects-preview img {
    width: 240px;
    max-width: 100%;
    transform: none;
    margin-inline: auto;
    border-left: 0;
    justify-self: center;
  }

  .site-menu-projects-preview img:last-child {
    border-right: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 42px;
  }

  .section-case {
    scroll-margin-top: 80px;
  }

  .site-menu-projects-block {
    display: block;
    border-bottom: 1px solid #e4e4e4;
  }

  .site-menu-header {
    height: 42px;
    padding-right: 8px;
  }

  .site-menu-brand {
    top: 50%;
    left: 16px;
    font-size: 14px;
    line-height: 20px;
    transform: translateY(-50%);
  }

  .site-menu-close {
    top: 50%;
    right: 8px;
    left: auto;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
  }

  .site-menu-close span {
    width: 18px;
  }

  .site-menu-row {
    min-height: 120px;
    padding: 0 16px;
  }

  .site-menu-row:not(.site-menu-row-projects) {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }

  .site-menu-row-projects {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .site-menu-row-projects .site-menu-label {
    display: flex;
    align-items: center;
    min-height: 120px;
    align-self: stretch;
    padding-left: 0;
  }

  .site-menu-projects-preview {
    display: flex;
    gap: 16px;
    overflow-x: visible;
    grid-column: auto;
    border-top: 1px solid #e4e4e4;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .site-menu-projects-preview::-webkit-scrollbar {
    display: none;
  }

  .site-menu-project-preview-item {
    position: relative;
    display: flex;
    flex: 0 0 auto;
  }

  .site-menu-project-preview-item:nth-child(1)::after,
  .site-menu-project-preview-item:nth-child(2)::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -8px;
    width: 1px;
    background: #e4e4e4;
  }

  .site-menu-projects-preview img {
    width: 120px;
    flex: 0 0 auto;
    max-width: 100%;
    padding: 16px 16px;
    margin-inline: auto;
    border-left: 0;
  }

  .site-menu-project-preview-item:nth-child(3) img {
    border-right: 0;
  }

  .site-menu-label {
    font-size: 24px;
    line-height: 32px;
  }

  .site-menu-row > img {
    width: 32px;
    height: 32px;
    margin-right: 0;
  }

  .site-menu-socials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 16px 32px;
    padding: 16px;
  }

  .site-menu-socials a {
    font-size: 14px;
    line-height: 20px;
  }

  .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto auto;
    min-height: auto;
    column-gap: 24px;
    row-gap: 32px;
    padding: 24px 16px 16px;
  }

  .footer-icon-link {
    gap: 4px;
    font-size: 14px;
    line-height: 20px;
  }

  .footer-icon-link img {
    width: 24px;
    height: 24px;
  }

  .footer-title {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 300px;
    font-size: 24px;
    line-height: 32px;
  }

  .footer-contact-link {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin-top: 8px;
  }

  .footer-email {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 4px;
    margin-top: -8px;
  }

  .footer-portrait {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: center;
    justify-self: end;
    width: 52px;
    height: 52px;
  }

  .footer-socials {
    grid-column: 1;
    grid-row: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    column-gap: 48px;
    row-gap: 16px;
    justify-content: start;
    justify-items: start;
    justify-self: start;
    padding-top: 0;
  }

  .footer-socials a {
    font-size: 14px;
    line-height: 20px;
  }

  .footer-privacy,
  .footer-top-link {
    font-size: 14px;
    line-height: 20px;
  }

  .footer-privacy {
    grid-column: 1;
    grid-row: 5;
    justify-self: start;
    align-self: end;
  }

  .footer-top-link {
    grid-column: 2;
    grid-row: 5;
    justify-self: end;
    align-self: end;
  }

  .brand {
    top: 50%;
    left: 16px;
    font-size: 14px;
    line-height: 22px;
    transform: translateY(-50%);
  }

  .menu-button {
    top: 50%;
    right: 8px;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
  }

  .menu-button img {
    width: 36px;
    height: 36px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-height));
  }

  .hero-column-left {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .left-preview {
    width: 116px;
    height: 116px;
    margin: auto auto 0;
  }

  .left-preview-slide {
    width: 116px;
    height: 116px;
  }

  .hero-title {
    font-size: 24px;
    line-height: 32px;
    margin-top: auto;
    margin-bottom: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-column-right {
    height: 40vh;
    flex-shrink: 0;
  }

  .hero-image {
    width: 100%;
    height: 100%;
  }

  .section-intro {
    height: auto;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 80px;
    padding-bottom: 0;
  }

  .section-intro-text {
    width: 100%;
    max-width: none;
    font-size: 24px;
    line-height: 32px;
    padding-left: 0;
    padding-right: 0;
  }

  .section-intro-link {
    margin-top: 24px;
    font-size: 14px;
    line-height: 22px;
  }

  .section-works {
    gap: 80px;
    padding: 80px 0;
  }

  .section-works-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 16px;
    row-gap: 24px;
    padding: 0 16px;
  }

  .section-works-main {
    display: contents;
  }

  .section-works-title {
    order: 1;
    grid-column: 1 / -1;
    flex: 0 0 100%;
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    transform: none;
  }

  .section-works-tags-wrapper {
    order: 2;
    display: flex;
    align-items: flex-end;
    margin-top: 0;
  }

  .section-works-tags {
    margin-top: 0;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    grid-template-columns: none !important;
    column-gap: 0;
    row-gap: 0;
  }

  .tag {
    margin: 0 !important;
    display: block;
    width: auto;
    font-size: 12px;
    line-height: 14px;
  }

  .section-works-link {
    order: 3;
    font-size: 14px;
    line-height: 22px;
    margin-left: 0;
    align-self: flex-end;
  }

  .section-works-slider {
    margin-top: 40px;
    gap: 16px;
    padding: 0 0 0 16px;
  }

  .slider-item:nth-child(3n + 1) {
    width: 188px;
  }

  .slider-item:nth-child(3n + 2) {
    width: 118px;
  }

  .slider-item:nth-child(3n + 3) {
    width: 162px;
  }
}
