@font-face {
  font-family: "ABCDiatypeVariable";
  src: url("../fonts/ABCDiatypeVariable.ttf") format("truetype");
  font-display: swap;
  font-weight: 100 900;
  font-style: normal;
}

:root {
  --black: #000;
  --black-48: rgba(0, 0, 0, 0.48);
  --black-24: rgba(0, 0, 0, 0.24);
  --black-12: rgba(0, 0, 0, 0.12);
  --white: #fff;
  --white-85: rgba(255, 255, 255, 0.85);
  --white-55: rgba(255, 255, 255, 0.55);
  --white-45: rgba(255, 255, 255, 0.45);
  --white-25: rgba(255, 255, 255, 0.25);
  --white-16: rgba(255, 255, 255, 0.16);
  --white-14: rgba(255, 255, 255, 0.14);
  --text-s: clamp(0.875rem, 0.8072rem + 0.3012vw, 1rem);
  --text-m: clamp(0.875rem, 0.7395rem + 0.6024vw, 1.125rem);
  --text-l: clamp(1.25rem, 0.9789rem + 1.2048vw, 1.75rem);
  --nav-height: clamp(2.8125rem, 2.6092rem + 0.9036vw, 3.1875rem);
  --page-padding: 24px;
  --card-radius: 12px;
  --content-max-width: 1400px;
}

@media screen and (min-width: 768px) {
  :root {
    --page-padding: 32px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-snap-type: none;
  overscroll-behavior-y: auto;
}

body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: "ABCDiatypeVariable", sans-serif;
  font-size: var(--text-m);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "onum" 1;
}

::selection {
  background: var(--white-14);
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  opacity: 0;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--white);
  cursor: pointer;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 25%;
  text-decoration-color: rgba(255, 255, 255, 0.24);
  transition:
    opacity 0.08s ease-in-out,
    color 0.08s ease-in-out,
    text-decoration-color 0.08s ease-in-out,
    background-color 0.08s ease-in-out,
    border-color 0.08s ease-in-out;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

a:active {
  opacity: 0.72;
}

a:focus {
  outline: 0;
}

@media (hover: hover) {
  a:hover {
    opacity: 0.8;
  }
}

h1,
h2 {
  margin: 0;
  font-size: var(--text-m);
  line-height: 1.5;
  font-weight: 400;
}

abbr {
  font-feature-settings: "onum" 0;
}

.app {
  position: relative;
}

.app__card {
  position: relative;
  min-height: auto;
  padding-top: var(--nav-height);
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

.app__card:first-child {
  min-height: 100dvh;
  padding-top: 0;
}

.app__card:last-of-type {
  min-height: 100dvh;
}

.app__nav {
  position: sticky;
  top: 0;
  z-index: 20;
}

.app__cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  pointer-events: none;
  transform: translateY(0);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.app__cta--hidden {
  transform: translateY(100%);
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 0 var(--page-padding);
  list-style: none;
  font-size: var(--text-m);
  line-height: 1.5;
}

.nav__item {
  margin: 0;
  opacity: 1;
}

.nav__item a {
  display: block;
  padding: 12px 0;
  color: var(--white-45);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--white-25);
}

.nav__item--active a {
  color: var(--white);
  text-decoration: none;
}

@media (hover: hover) {
  .nav__item:hover a {
    color: var(--white);
    text-decoration-color: var(--white-45);
  }

  .nav__item--active:hover a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
  }
}

.intro,
.table,
.contacts,
.works-new {
  padding-right: var(--page-padding);
  padding-left: var(--page-padding);
}

.intro {
  padding-top: 16px;
  font-size: var(--text-l);
  line-height: 1.5;
}

.intro p {
  max-width: 34em;
  text-wrap: balance;
}

.intro ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.table {
  padding-bottom: 24px;
}

.table__intro,
.contacts__intro {
  border-top: 0.5px solid var(--white-85);
  border-bottom: 0.5px solid var(--white-85);
  padding-top: 16px;
}

.table__intro p,
.contacts__intro p {
  max-width: 75vw;
  font-size: var(--text-l);
  line-height: 1.5;
  text-wrap: balance;
}

.table__row {
  display: flex;
  gap: 16px;
  border-top: 0.5px solid var(--white-16);
  padding: 12px 0;
}

.table__intro + .table__row {
  border-top: 0;
  padding-top: 20px;
}

.table__cell {
  width: 50%;
  min-width: 0;
}

.table__text--pale {
  color: var(--white-55);
}

.contacts {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
}

.contacts__list ul {
  margin: 0;
  padding: 12px 0;
  list-style: none;
  font-size: var(--text-l);
  line-height: 1.5;
}

.contacts__list li {
  margin: 0;
  padding: 0;
}

.contacts__list a {
  display: block;
  padding: 4px 0;
}

.works-new {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.case-block {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.case-block__title {
  margin: 0 0 16px;
  color: var(--white);
  font-size: var(--text-l);
  line-height: 1.2;
  font-weight: 400;
}

.case-block__image {
  width: 100%;
  max-width: var(--content-max-width);
  border-radius: var(--card-radius);
}

.cta {
  position: relative;
  display: flex;
  width: 100%;
}

.cta::after {
  content: "";
  position: absolute;
  top: -16px;
  right: -256px;
  bottom: -100px;
  left: -256px;
  z-index: 1;
  border-radius: 100%;
  background: oklch(0.489 0.3083 274.24);
  filter: blur(40px);
}

.cta__link {
  position: relative;
  z-index: 2;
  margin: auto;
  padding: 24px 24px 32px;
  pointer-events: all;
  color: var(--white);
  text-align: center;
  text-decoration-color: rgba(255, 255, 255, 0.24);
}

@media screen and (min-width: 768px) {
  .works-new {
    gap: 72px;
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

@media screen and (max-width: 767px) {
  .table__row {
    flex-direction: column;
  }

  .table__cell {
    width: 100%;
  }

  .nav {
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  .cta::after {
    border-radius: 0;
  }

  .cta__link {
    padding-bottom: 24px;
  }
}
