@font-face {
  font-family: "Kopeek Book";
  src: url("../fonts/Kopeek20-Book.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Kopeek Regular";
  src: url("../fonts/Kopeek20-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --page-background: #ffffff;
  --text-color: #121212;
  --secondary-text-color: #888888;
  --navigation-color: #888888;
  --avatar-color: #d4d4d8;
  --page-width: 672px;
  --page-padding-vertical: 96px;
  --page-padding-horizontal: 32px;
  --font-family-h1: "Kopeek Regular", ui-sans-serif, system-ui, sans-serif;
  --font-family-h2: "Kopeek Regular", ui-sans-serif, system-ui, sans-serif;
  --font-family-p1: "Kopeek Book", ui-sans-serif, system-ui, sans-serif;
  --font-family-p2: "Kopeek Book", ui-sans-serif, system-ui, sans-serif;
  --font-family-text: var(--font-family-p1);
  --font-family-heading: var(--font-family-h2);
}

* {
  box-sizing: border-box;
}

::selection {
  background-color: #009b3a;
  color: #121212;
}

::-moz-selection {
  background-color: #009b3a;
  color: #121212;
}

html {
  scroll-behavior: auto;
  scrollbar-gutter: stable;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--page-background);
  color: var(--text-color);
  font-family: var(--font-family-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-color: var(--secondary-text-color);
  text-decoration-thickness: 0.5px;
  text-underline-offset: 4px;
  transition: text-decoration-thickness 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a:focus-visible {
  text-decoration-thickness: 1px;
}

@media (hover: hover) {
  a:hover {
    text-decoration-thickness: 1px;
  }
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--page-width);
  margin-inline: auto;
  padding: var(--page-padding-vertical) var(--page-padding-horizontal);
}

.case-back-link ~ .identity,
.project-page .page-content,
.logofolio-page .page-content {
  animation: nelson-detail-container-in 700ms cubic-bezier(0, 0, 0.2, 1) backwards;
}

.case-back-link,
.case-back-link ~ .identity > *,
.project-page .page-content > *,
.logofolio-page .page-content > * {
  animation:
    nelson-detail-child-in 800ms linear backwards,
    nelson-child-fade-in 300ms cubic-bezier(0, 0, 0.2, 1) backwards;
  animation-delay: var(--detail-item-delay, 0ms);
}

.case-back-link ~ .identity > :nth-child(1) { --detail-item-delay: 60ms; }
.case-back-link ~ .identity > :nth-child(2) { --detail-item-delay: 120ms; }
.case-back-link ~ .identity > :nth-child(3) { --detail-item-delay: 180ms; }

.project-page .page-content > *,
.logofolio-page .page-content > * {
  animation-delay: calc(180ms + var(--detail-content-delay, 0ms));
}

.animate-site-identity {
  --page-items-start-delay: 320ms;
}

.animate-site-identity .site-identity,
.cases-page .page-content,
.tools-page .page-content,
.consultations-page .page-content,
.contacts-page .page-content,
.error-page .page-content {
  animation: nelson-home-container-in 700ms cubic-bezier(0, 0, 0.2, 1) backwards;
}

.animate-site-identity .site-identity > *,
.animate-site-identity .navigation {
  animation:
    nelson-header-child-in 800ms linear backwards,
    nelson-child-fade-in 300ms cubic-bezier(0, 0, 0.2, 1) backwards;
  animation-delay: var(--site-item-delay, 0ms);
}

.cases-page .page-content > *,
.tools-page .page-content > *,
.consultations-page .page-content > *,
.contacts-page .page-content > *,
.error-page .page-content > * {
  animation:
    nelson-home-child-in 1400ms linear backwards,
    nelson-child-fade-in 300ms cubic-bezier(0, 0, 0.2, 1) backwards;
  animation-delay:
    calc(var(--page-items-start-delay, 0ms) + var(--home-item-delay, 0ms));
}

.animate-site-identity .site-identity > :nth-child(2) {
  --site-item-delay: 55ms;
}

.animate-site-identity .site-identity > :nth-child(3) {
  --site-item-delay: 110ms;
}

.animate-site-identity .navigation {
  --site-item-delay: 165ms;
  animation:
    nelson-header-child-in 800ms linear backwards,
    nelson-child-fade-in 300ms cubic-bezier(0, 0, 0.2, 1) backwards,
    nelson-home-blur-in 700ms cubic-bezier(0, 0, 0.2, 1) backwards;
  animation-delay: var(--site-item-delay, 0ms);
}

.case-back-link {
  animation:
    nelson-detail-child-in 800ms linear backwards,
    nelson-child-fade-in 300ms cubic-bezier(0, 0, 0.2, 1) backwards,
    nelson-detail-blur-in 700ms cubic-bezier(0, 0, 0.2, 1) backwards;
  animation-delay: var(--detail-item-delay, 0ms);
}

.page-content > :nth-child(2) {
  --home-item-delay: 80ms;
  --detail-content-delay: 60ms;
}
.page-content > :nth-child(3) {
  --home-item-delay: 160ms;
  --detail-content-delay: 120ms;
}
.page-content > :nth-child(4) {
  --home-item-delay: 240ms;
  --detail-content-delay: 180ms;
}
.page-content > :nth-child(5) {
  --home-item-delay: 320ms;
  --detail-content-delay: 240ms;
}
.page-content > :nth-child(6) {
  --home-item-delay: 400ms;
  --detail-content-delay: 300ms;
}
.page-content > :nth-child(7) {
  --home-item-delay: 480ms;
  --detail-content-delay: 360ms;
}
.page-content > :nth-child(8) {
  --home-item-delay: 560ms;
  --detail-content-delay: 420ms;
}
.page-content > :nth-child(9) {
  --home-item-delay: 640ms;
  --detail-content-delay: 480ms;
}
.page-content > :nth-child(10) {
  --home-item-delay: 720ms;
  --detail-content-delay: 540ms;
}
.page-content > :nth-child(11) {
  --home-item-delay: 800ms;
  --detail-content-delay: 600ms;
}
.page-content > :nth-child(12) {
  --home-item-delay: 880ms;
  --detail-content-delay: 660ms;
}
.page-content > :nth-child(13) {
  --home-item-delay: 960ms;
  --detail-content-delay: 720ms;
}
.page-content > :nth-child(14) {
  --home-item-delay: 1040ms;
  --detail-content-delay: 780ms;
}
.page-content > :nth-child(15) {
  --home-item-delay: 1120ms;
  --detail-content-delay: 840ms;
}
.page-content > :nth-child(16) {
  --home-item-delay: 1200ms;
  --detail-content-delay: 900ms;
}

.page.is-leaving {
  pointer-events: none;
}

@keyframes nelson-home-container-in {
  from {
    opacity: 0;
    filter: blur(8px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes nelson-detail-container-in {
  from {
    opacity: 0;
    filter: blur(6px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes nelson-home-blur-in {
  from { filter: blur(8px); }
  to { filter: blur(0); }
}

@keyframes nelson-detail-blur-in {
  from { filter: blur(6px); }
  to { filter: blur(0); }
}

@keyframes nelson-child-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nelson-home-child-in {
  0% { transform: translateY(16px); }
  10% { transform: translateY(12.21px); }
  20% { transform: translateY(7.2px); }
  30% { transform: translateY(3.78px); }
  40% { transform: translateY(1.87px); }
  50% { transform: translateY(0.89px); }
  60% { transform: translateY(0.41px); }
  70% { transform: translateY(0.19px); }
  80% { transform: translateY(0.08px); }
  90% { transform: translateY(0.04px); }
  100% { transform: translateY(0); }
}

@keyframes nelson-header-child-in {
  0% { transform: translateY(-12px); }
  10% { transform: translateY(-9.16px); }
  20% { transform: translateY(-5.4px); }
  30% { transform: translateY(-2.83px); }
  40% { transform: translateY(-1.4px); }
  50% { transform: translateY(-0.67px); }
  60% { transform: translateY(-0.31px); }
  70% { transform: translateY(-0.14px); }
  80% { transform: translateY(-0.06px); }
  90% { transform: translateY(-0.03px); }
  100% { transform: translateY(0); }
}

@keyframes nelson-detail-child-in {
  0% { transform: translateY(12px); }
  10% { transform: translateY(9.16px); }
  20% { transform: translateY(5.4px); }
  30% { transform: translateY(2.83px); }
  40% { transform: translateY(1.4px); }
  50% { transform: translateY(0.67px); }
  60% { transform: translateY(0.31px); }
  70% { transform: translateY(0.14px); }
  80% { transform: translateY(0.06px); }
  90% { transform: translateY(0.03px); }
  100% { transform: translateY(0); }
}

.intro {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.avatar {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 32px;
  border-radius: 9999px;
  background:
    var(--avatar-color) url("../images/common/avatar.png") center / cover no-repeat;
  animation: none !important;
  transition: none;
}

.avatar:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 3px;
}

.case-back-link {
  width: fit-content;
  margin-bottom: 4px;
  color: var(--text-color);
  font-family: var(--font-family-h1);
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
}

.case-back-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.identity h1,
.identity p,
.navigation,
.experience h3,
.experience p {
  margin: 0;
}

.identity {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 4px;
}

.identity h1 {
  font-family: var(--font-family-h1);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.identity-role {
  color: var(--text-color);
  font-family: var(--font-family-h2);
}

.identity-description {
  max-width: 560px;
  margin-top: 12px !important;
  color: var(--secondary-text-color);
  font-family: var(--font-family-p2);
}

.navigation {
  display: flex;
  width: 100%;
  align-items: center;
  flex-wrap: nowrap;
  gap: 15px;
  margin-top: 48px;
  padding-bottom: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  scrollbar-width: none;
  transform: translateZ(0);
  will-change: transform;
}

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

.navigation a {
  position: relative;
  flex-shrink: 0;
  padding-bottom: 4px;
  color: var(--navigation-color);
  text-decoration: none;
  text-decoration-thickness: 0.5px;
  transition: color 160ms ease;
}

.navigation a:focus-visible {
  color: #009b3a;
  text-decoration-thickness: 0.5px;
}

@media (hover: hover) {
  .navigation a:hover {
    color: #009b3a;
    text-decoration-thickness: 0.5px;
  }
}

.navigation a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.navigation a[aria-current="page"] {
  color: #009b3a;
  text-decoration-line: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 10px;
}

.experience {
  display: flex;
  width: 100%;
  max-width: calc(100% + 32px);
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 40px;
  margin-left: -16px;
}

.experience-item {
  position: relative;
  display: flex;
  max-width: 100%;
  flex-direction: column;
  gap: 4px;
  padding: 8px 16px;
  color: inherit;
  text-decoration: none;
}

.experience-item:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.experience-item + .experience-item {
  margin-top: 0;
}

.experience-link-area {
  display: flex;
  max-width: 100%;
  flex-direction: column;
  gap: 4px;
}

.experience-item h3,
.experience-section-title {
  max-width: 100%;
  margin: 0;
  color: var(--text-color);
  font-family: var(--font-family-h1);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.experience-link {
  color: var(--text-color);
  text-decoration-line: underline;
  text-decoration-color: var(--secondary-text-color);
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
  transition: none;
}

.experience-link:hover {
  text-decoration-color: var(--secondary-text-color);
  text-decoration-thickness: 0.5px;
}

.experience-role {
  color: var(--text-color);
  font-family: var(--font-family-p1);
  line-height: 1.2;
}

.experience-tags {
  color: var(--secondary-text-color);
  font-family: var(--font-family-p2);
  line-height: 1.2;
}

.tools-intro {
  max-width: 560px;
  padding: 8px 16px 24px;
  color: var(--text-color);
  font-family: var(--font-family-h2);
  line-height: 1.2;
}

.tool-description {
  color: var(--text-color);
  font-family: var(--font-family-p1);
  line-height: 1.2;
}

.consultations {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 48px;
  margin-top: 40px;
}

.consultations-intro {
  max-width: 608px;
  margin: 0;
  color: var(--text-color);
  font-family: var(--font-family-h2);
  line-height: 1.2;
}

.consultation-block {
  display: flex;
  width: 100%;
  max-width: 608px;
  flex-direction: column;
  gap: 12px;
}

.consultation-block h2,
.consultation-block p {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.consultation-block h2 {
  color: var(--text-color);
  font-family: var(--font-family-h1);
}

.consultation-label {
  color: var(--text-color);
  font-family: var(--font-family-h2);
}

.consultation-block p {
  color: var(--text-color);
  font-family: var(--font-family-p1);
}

.consultation-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consultation-block--reviews {
  max-width: 100%;
}

.reviews-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.review-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.review-image[role="button"] {
  cursor: zoom-in;
}

.review-image[role="button"]:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 3px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 32px;
  border: 0;
  background: rgb(18 18 18 / 50%);
  cursor: zoom-out;
  outline: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.image-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox.is-open {
  opacity: 1;
}

.image-lightbox::backdrop {
  background: transparent;
}

.image-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 64px);
  border-radius: 5px;
  cursor: zoom-out;
  transform: scale(0.98);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.image-lightbox.is-open .image-lightbox-image {
  transform: scale(1);
}

html.lightbox-open {
  overflow: hidden;
}

.legal-document {
  display: flex;
  width: 100%;
  max-width: 608px;
  margin-top: 40px;
  flex-direction: column;
  gap: 48px;
}

.legal-document-intro,
.legal-section {
  display: flex;
  flex-direction: column;
}

.legal-document-intro,
.legal-section {
  gap: 12px;
}

.legal-point {
  display: block;
}

.legal-document h2,
.legal-document h3,
.legal-document p,
.legal-list {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.legal-document h2 {
  color: var(--text-color);
  font-family: var(--font-family-h2);
}

.legal-document h3 {
  display: inline;
  color: var(--text-color);
  font-family: var(--font-family-p1);
}

.legal-document h3::after {
  content: ". ";
}

.legal-document p,
.legal-list {
  color: var(--text-color);
  font-family: var(--font-family-p1);
}

.legal-point p {
  display: inline;
}

.legal-point .legal-list {
  margin-top: 4px;
}

.legal-title-date {
  white-space: nowrap;
}

.legal-list {
  display: flex;
  padding: 0;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}

.legal-list li::before {
  content: "— ";
}

.about {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 48px;
  margin-top: 40px;
}

.about-copy,
.about-section {
  display: flex;
  width: 100%;
  max-width: 608px;
  flex-direction: column;
  gap: 12px;
}

.about-copy p,
.about-section h2,
.about-section p,
.about-services {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.about-copy p {
  color: var(--text-color);
  font-family: var(--font-family-p1);
}

.about-copy .about-greeting {
  font-family: var(--font-family-h2);
}

.about-links {
  display: flex;
  margin-top: -36px;
  align-items: center;
  gap: 4px;
  color: var(--text-color);
  font-family: var(--font-family-p1);
}

.about-link,
.about-section h2,
.about-contact {
  color: var(--text-color);
  font-family: var(--font-family-h2);
}

.about-event-contact {
  color: var(--text-color);
  font-family: var(--font-family-p1);
}

.about-link {
  width: fit-content;
  font-family: var(--font-family-p1);
}

.about-events {
  display: flex;
  width: calc(100% + 32px);
  max-width: calc(100% + 32px);
  margin-left: -16px;
  flex-direction: column;
  gap: 6px;
}

.about-events .experience-item {
  width: 100%;
  padding-block: 3px;
}

.about-events .experience-link {
  transition: text-decoration-thickness 160ms ease;
}

.about-events .experience-item:hover .experience-link,
.about-events .experience-item:focus-visible .experience-link {
  text-decoration-color: var(--secondary-text-color);
  text-decoration-thickness: 1px;
}

.about-event-description {
  color: var(--secondary-text-color);
  font-family: var(--font-family-p2);
  line-height: 1.2;
}

.about-services {
  display: flex;
  padding: 0;
  flex-direction: column;
  gap: 4px;
  color: var(--text-color);
  font-family: var(--font-family-p1);
  list-style: none;
}

.about-services li::before {
  content: "• ";
}

.about-note {
  color: var(--secondary-text-color) !important;
  font-family: var(--font-family-p2) !important;
}

.contacts {
  display: flex;
  width: 100%;
  max-width: 608px;
  margin-top: 40px;
  flex-direction: column;
  gap: 48px;
}

.contacts-copy,
.contacts-socials,
.contacts-socials ul {
  display: flex;
  flex-direction: column;
}

.contacts-copy {
  gap: 12px;
  color: var(--text-color);
  font-family: var(--font-family-h2);
}

.contacts-copy p,
.contacts-socials h2,
.contacts-socials ul {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.contacts-socials {
  gap: 12px;
}

.contacts-socials h2 {
  color: var(--text-color);
  font-family: var(--font-family-h2);
}

.contacts-socials ul {
  padding: 0;
  gap: 8px;
  font-family: var(--font-family-p1);
  list-style: none;
}

.contacts-disclaimer {
  margin: 0;
  color: var(--secondary-text-color);
  font-family: var(--font-family-p1);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.error-page-content {
  display: flex;
  width: 100%;
  max-width: 608px;
  margin-top: 40px;
  flex-direction: column;
  gap: 8px;
}

.error-page-content h2,
.error-page-content p {
  margin: 0;
  color: var(--text-color);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.error-page-content h2 {
  font-family: var(--font-family-h2);
}

.error-page-content p {
  font-family: var(--font-family-p1);
}

.logofolio {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.case-description {
  max-width: 560px;
  margin-top: 12px !important;
  color: var(--secondary-text-color);
  font-family: var(--font-family-p1);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.project-case {
  display: flex;
  width: 100%;
  margin-top: 40px;
  flex-direction: column;
  gap: 48px;
}

.project-case-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.project-case-image-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.project-case-image-stack {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 8px;
}

.project-case-figure {
  display: flex;
  width: 100%;
  margin: 0;
  flex-direction: column;
  gap: 12px;
}

.project-case-caption {
  margin: 0;
  color: var(--secondary-text-color);
  font-family: var(--font-family-p1);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.project-case-section {
  display: flex;
  width: 100%;
  max-width: 608px;
  flex-direction: column;
  gap: 12px;
}

.project-case-section h2,
.project-case-section p {
  margin: 0;
  color: var(--text-color);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.project-case-section h2 {
  font-family: var(--font-family-h2);
}

.project-case-section p {
  font-family: var(--font-family-p1);
}

.spaces-grid {
  display: grid;
  width: calc(100% + 32px);
  margin-top: 40px;
  margin-left: -16px;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.spaces-intro-figure {
  width: 100%;
  margin: 40px 0 0;
}

.paper-formats-intro-figure {
  width: 100%;
  margin: 40px 0 0;
}

.paper-formats {
  display: flex;
  width: 100%;
  margin-top: 48px;
  flex-direction: column;
  gap: 48px;
}

.paper-format-section {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
}

.paper-format-section h2,
.paper-format-section p {
  margin: 0;
  color: var(--text-color);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.paper-format-section h2 {
  font-family: var(--font-family-h2);
}

.paper-format-section p {
  font-family: var(--font-family-p1);
}

.paper-format-table {
  display: grid;
  width: 100%;
  margin-top: 8px;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  column-gap: 28px;
}

.paper-format-row {
  display: grid;
  grid-column: 1 / -1;
  min-width: 0;
  padding: 10px 0;
  border-top: 0.5px solid var(--secondary-text-color);
  grid-template-columns: subgrid;
  column-gap: inherit;
  color: var(--text-color);
  font-family: var(--font-family-p1);
  font-size: 17px;
  line-height: 1.2;
}

.paper-format-row:first-child {
  border-top: 0;
}

.paper-format-row span:nth-child(2) {
  margin-left: 4px;
  text-align: right;
}

.paper-format-row span:last-child {
  text-align: right;
}

.space-item {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-width: 0;
  padding: 16px;
  color: var(--text-color);
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.space-item h2,
.space-item p {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.space-item h2 {
  width: 100%;
  min-width: 0;
  color: var(--text-color);
  font-family: var(--font-family-h1);
  text-decoration: none;
}

.space-copy-button {
  --space-glass-offset-x: 0px;
  --space-glass-offset-y: 0px;

  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  width: fit-content;
  max-width: calc(100% + 12px);
  padding: 8px 12px;
  margin: 0 0 0 -12px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  hyphens: auto;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
}

.space-copy-button::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border: 1px solid #f4f4f6;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 78%) 0%,
    rgb(250 250 250 / 72%) 100%
  );
  box-shadow:
    inset 0 2px 4px #ffffff,
    inset 0 -4px 8px rgb(255 255 255 / 54%),
    0 4px 14px -10px rgb(53 53 79 / 40%),
    0 11px 24px -14px rgb(53 53 79 / 18%);
  content: "";
  pointer-events: none;
  transform: translate3d(
    var(--space-glass-offset-x),
    var(--space-glass-offset-y),
    0
  );
  transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.space-copy-label {
  position: relative;
  z-index: 1;
  display: block;
  overflow-wrap: break-word;
  will-change: transform;
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .space-copy-button::before {
    -webkit-backdrop-filter: blur(8px) saturate(1.15);
    backdrop-filter: blur(8px) saturate(1.15);
  }
}

.space-mark {
  background-color: rgb(0 155 58 / 50%);
  color: rgb(0 155 58 / 50%);
  text-decoration: none;
}

.space-item p {
  color: var(--text-color);
  font-family: var(--font-family-p2);
}

.space-usage {
  display: block;
  margin-top: 8px;
  color: var(--secondary-text-color);
}

.space-copy-button:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.logofolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 48px;
}

.logo-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.logo-card-title a::after {
  position: absolute;
  inset: 0;
  content: "";
  cursor: pointer;
}

.logo-card-title a:focus-visible {
  outline: none;
}

.logo-card-title a:focus-visible::after {
  border-radius: 5px;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.logo-card-image,
.logo-card-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
}

.logo-card-image {
  height: auto;
  object-fit: cover;
}

.logo-card-placeholder {
  background: #eeeeee;
}

.logo-card-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.logo-card-title,
.logo-card-year,
.logo-card-description {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}

.logo-card-title {
  color: var(--text-color);
  font-family: var(--font-family-h1);
}

.logo-card-year {
  color: var(--text-color);
  font-family: var(--font-family-p1);
}

.logo-card-description {
  color: var(--secondary-text-color);
  font-family: var(--font-family-p2);
}

.experience-section-title {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 24px 16px 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.experience-section-title::after {
  content: "↓";
}

.experience-section-title[aria-expanded="true"]::after {
  content: "↑";
}

.experience-section-title:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.experience-archive {
  width: 100%;
}

.experience-archive-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows 320ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 200ms ease,
    visibility 0s linear 320ms;
}

.experience-archive.is-open .experience-archive-content {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.experience-archive-list {
  display: flex;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  overflow: hidden;
}

.experience-archive.is-preview-ready .experience-archive-list {
  overflow: visible;
}

@media (hover: hover) and (min-width: 1080px) {
  a.experience-item::after {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: calc(var(--page-width) - 24px);
    display: block;
    width: min(360px, calc(50vw - 360px));
    aspect-ratio: 2 / 1;
    border-radius: 5px;
    background: #d4d4d4;
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-50% + 8px)) scale(0.98);
    transform-origin: center;
    transition:
      opacity 160ms ease,
      transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  a.experience-item:hover::after,
  a.experience-item:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  .tools-page a.experience-item::after {
    display: none;
  }

  .tools-page a#paper-size::after,
  .tools-page a#spacing-and-spaces::after,
  .tools-page a#paper-formats::after,
  .tools-page a#pantone-library::after,
  .tools-page a#pantone-palette-library::after,
  .tools-page a#pantone-palette-library-illustrator::after,
  .tools-page a#marketplaces::after {
    display: block;
  }

  .tools-page a#paper-size::after {
    width: min(180px, calc(25vw - 180px));
    aspect-ratio: 507 / 920;
    background: transparent url("../images/tools/ngolowin-instrmnt-p-s.png") center / cover
      no-repeat;
  }

  .tools-page a#spacing-and-spaces::after {
    aspect-ratio: 16 / 9;
    background: transparent url("../images/tools/ngolowin-instrmnt-s.jpg") center / cover
      no-repeat;
  }

  .tools-page a#paper-formats::after {
    aspect-ratio: 1350 / 958;
    background: transparent url("../images/tools/ngolowin-instrmnt-p.png?v=2") center /
      cover no-repeat;
  }

  .tools-page a#pantone-library::after {
    aspect-ratio: 16 / 9;
    background: transparent
      url("../images/tools/ngolowin-instrmnt-pantone-solid-coated.jpg") center / cover
      no-repeat;
  }

  .tools-page a#pantone-palette-library::after {
    width: min(180px, calc(25vw - 180px));
    aspect-ratio: 558 / 920;
    background: transparent
      url("../images/tools/ngolowin-tools-pantone-palette-library.png") center / cover
      no-repeat;
  }

  .tools-page a#pantone-palette-library-illustrator::after {
    width: min(180px, calc(25vw - 180px));
    aspect-ratio: 537 / 952;
    background: transparent
      url("../images/tools/ngolowin-tools-pantone-palette-library-illustrator.png")
      center / cover no-repeat;
  }

  .tools-page a#marketplaces::after {
    aspect-ratio: 16 / 9;
    background: transparent url("../images/tools/ngolowin-instrmnt-wb-ozon-yandex.jpg")
      center / cover no-repeat;
  }

  .about-page a.experience-item::after {
    display: none;
  }

  .cases-page a#logofolio::after {
    aspect-ratio: 16 / 9;
    background: #d4d4d4 url("../images/logofolio/ngolowin-logofolio.jpg") center / cover
      no-repeat;
  }

  .cases-page a#ithub::after {
    aspect-ratio: 1467 / 1080;
    background:
      #d4d4d4 url("../images/ithub/ngolowin-it-hub.jpg") center / cover no-repeat;
  }

  .cases-page a#qnits::after {
    aspect-ratio: 16 / 9;
    background: transparent url("../images/qnits/ngolowin-qnits-1.png?v=4") center / cover
      no-repeat;
  }

  .cases-page a#kraum::after {
    aspect-ratio: 16 / 9;
    background: #101313 url("../images/kraum/ngolowin-kraum-1.jpg") center / cover
      no-repeat;
  }

  .cases-page a#first-souvenir-company::after {
    width: min(288px, calc(40vw - 288px));
    aspect-ratio: 1;
    background: #67479a url("../images/psk/ngolowin-psk.jpg?v=1") center / cover
      no-repeat;
  }

  .cases-page a#civic-initiatives-fund::after {
    width: min(240px, calc(33vw - 240px));
    aspect-ratio: 2 / 3;
    background: #eeeeee url("../images/fond/ngolowin-fond-1.jpg?v=1") center / cover
      no-repeat;
  }
}

.case-liquid-glass {
  --glass-offset-x: 0px;
  --glass-offset-y: 0px;

  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  overflow: hidden;
  border: 1px solid #f4f4f6;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  box-shadow:
    inset 0 2px 4px #ffffff,
    inset 0 -4px 4px rgb(255 255 255 / 50%),
    inset 0 -4px 16px #ffffff,
    inset 0 4px 10px rgb(111 111 117 / 7%),
    0 4px 14px -10px rgb(53 53 79 / 40%),
    0 11px 28px -10px rgb(53 53 79 / 10%);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--glass-offset-x), var(--glass-offset-y), 0)
    scale(0.98);
  transform-origin: center;
  transition:
    top 420ms cubic-bezier(0.22, 1, 0.36, 1),
    left 420ms cubic-bezier(0.22, 1, 0.36, 1),
    width 420ms cubic-bezier(0.22, 1, 0.36, 1),
    height 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 160ms ease,
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: top, left, width, height, opacity, transform;
}

.case-liquid-glass::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 72%) 0%,
    rgb(255 255 255 / 8%) 48%,
    rgb(255 255 255 / 42%) 100%
  );
  content: "";
  opacity: 0.9;
}

.case-liquid-glass.is-visible {
  opacity: 1;
  transform: translate3d(var(--glass-offset-x), var(--glass-offset-y), 0)
    scale(1);
}

.case-liquid-glass:not(.is-positioned) {
  transition:
    opacity 160ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
  .case-liquid-glass {
    -webkit-backdrop-filter: blur(8px) saturate(1.15);
    backdrop-filter: blur(8px) saturate(1.15);
  }
}

@media (hover: none) {
  .case-liquid-glass {
    display: none;
  }
}

@media (max-width: 640px) {
  .logofolio-grid,
  .reviews-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .image-lightbox {
    padding: 16px;
  }

  .image-lightbox-image {
    max-height: calc(100dvh - 32px);
  }
}

@media (max-width: 393px) and (max-height: 852px) {
  .paper-formats-page .paper-format-row {
    font-size: 14px;
  }
}

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

  a,
  .experience-link,
  .experience-archive-content,
  .experience-item::after,
  .space-copy-button,
  .space-copy-button::before,
  .image-lightbox,
  .image-lightbox-image,
  .case-liquid-glass {
    transition: none;
  }

  .case-back-link,
  .case-back-link ~ .identity,
  .case-back-link ~ .identity > *,
  .project-page .page-content,
  .logofolio-page .page-content,
  .animate-site-identity .site-identity,
  .animate-site-identity .site-identity > *,
  .animate-site-identity .navigation,
  .cases-page .page-content > *,
  .tools-page .page-content > *,
  .consultations-page .page-content > *,
  .contacts-page .page-content > *,
  .error-page .page-content > *,
  .page-content,
  .page-content > :not(.logofolio-grid),
  .page-content > .logofolio-grid > *,
  .page.is-leaving .case-back-link,
  .page.is-leaving .case-back-link ~ .identity,
  .page.is-leaving .page-content {
    animation: none;
  }
}
