﻿:root {
  --bg: #f3f3f1;
  --ink: #2b2b2b;
  --muted: #7d7d7a;
  --line: #d9d9d4;
  --text-font: "TT Masters", "Helvetica Neue", Arial, system-ui, sans-serif;
  --display-font: "TT Masters", "Helvetica Neue", Arial, system-ui, sans-serif;
}

@font-face {
  font-family: "TT Masters";
  src:
    local("TT Masters"),
    local("TTMasters-Regular"),
    url("assets/fonts/TTMasters-Regular.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: block;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text-font);
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body.has-lightbox {
  overflow: hidden;
}

body.cookie-consent-open {
  padding-bottom: 0;
}

.is-restoring-scroll .stats,
.is-restoring-scroll .intro {
  visibility: hidden;
}

.is-hero-intro-pending .stats strong,
.is-hero-intro-pending .stats span,
.is-hero-intro-pending .subtitle,
.is-hero-intro-pending .hero-copy {
  visibility: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-menu {
  position: fixed;
  z-index: 20;
  top: 132px;
  left: 24px;
  display: grid;
  gap: 12px;
  width: max-content;
  max-width: 132px;
}

.page-menu__link {
  position: relative;
  display: block;
  padding: 3px 0 3px 14px;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  transition: transform 180ms ease;
}

.page-menu__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FF9800;
  opacity: 0;
  transform: translateY(-50%) scale(0.72);
  transition: opacity 180ms ease, transform 180ms ease;
}

.page-menu__link.is-active::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.mobile-menu-toggle,
.mobile-page-menu {
  display: none;
}

.mobile-menu-toggle {
  position: fixed;
  z-index: 41;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #F4F4F2;
  color: #111;
  cursor: pointer;
}

.mobile-menu-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, top 180ms ease;
}

.mobile-menu-toggle span:first-child {
  top: 17px;
}

.mobile-menu-toggle span:last-child {
  top: 25px;
}

.mobile-menu-toggle.is-open span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.mobile-menu-toggle.is-open span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-page-menu {
  position: fixed;
  z-index: 40;
  top: 68px;
  right: 16px;
  width: min(220px, calc(100vw - 32px));
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #F4F4F2;
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.08);
}

.mobile-page-menu.is-open {
  display: grid;
  gap: 10px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  padding: 20px 28px 34px;
  isolation: isolate;
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 1180px;
  height: 34px;
  margin: 0 auto;
  padding-left: 104px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.messenger-links a {
  color: #1c1c1c;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.messenger-links a:hover {
  border-color: currentColor;
}

.messenger-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.stats {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  gap: 78px;
  max-width: 1180px;
  margin: 86px auto 0;
  padding-left: 104px;
}

.stats div {
  display: grid;
  gap: 10px;
  width: 150px;
  align-content: start;
}

.stats strong,
.stat-number {
  color: #2b2b2b;
  font-family: var(--display-font);
  font-size: 55px !important;
  font-weight: 300;
  line-height: 0.95;
  white-space: nowrap;
}

.stats span,
.stat-label {
  max-width: none;
  color: #61615f;
  font-size: 22px !important;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.stat-number .text-roll,
.stat-number .text-roll-letter,
.stat-number .text-roll-letter > span {
  font-size: 55px !important;
  font-family: var(--display-font);
  font-weight: 300;
  line-height: 0.95;
}

.stat-label .text-roll,
.stat-label .text-roll-letter,
.stat-label .text-roll-letter > span {
  font-size: 22px !important;
  font-weight: 500;
  line-height: 1.25;
}

.text-roll {
  display: inline-block;
  vertical-align: baseline;
  font: inherit;
  color: inherit;
  line-height: inherit;
  white-space: inherit;
}

.text-roll-word {
  display: inline-block;
  white-space: nowrap;
}

.text-roll-letter {
  position: relative;
  display: inline-block;
  width: auto;
  font: inherit;
  color: inherit;
  line-height: inherit;
  perspective: 10000px;
  transform-style: preserve-3d;
}

.text-roll-letter > span {
  display: inline-block;
  transform-origin: 50% 100%;
  backface-visibility: hidden;
  font: inherit;
  color: inherit;
  line-height: inherit;
  animation: text-roll-in 588ms cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: var(--roll-delay, 0ms);
}

.delayed-underline {
  position: relative;
  z-index: 0;
  display: inline-block;
  isolation: isolate;
  white-space: nowrap;
}

.delayed-underline-svg {
  position: absolute;
  left: -0.03em;
  bottom: -0.08em;
  width: calc(100% + 0.06em);
  height: 0.42em;
  z-index: -1;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
}

.delayed-underline-path {
  fill: none;
  stroke: #FF9800;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 920ms cubic-bezier(.2, .7, .2, 1);
}

.delayed-underline.is-underlined .delayed-underline-path {
  stroke-dashoffset: 0;
}

.delayed-underline.is-underlined .delayed-underline-svg {
  opacity: 1;
}

@keyframes text-roll-in {
  from {
    opacity: 0;
    transform: rotateX(90deg) translateY(0.16em);
  }

  to {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .text-roll-letter > span {
    animation: none;
  }

  .delayed-underline {
    transition: none;
  }

  .delayed-underline-path {
    transition: none;
  }

  .about__orb,
  .about__orb-path {
    animation: none !important;
  }

}

.intro {
  position: relative;
  z-index: 4;
  max-width: 1180px;
  margin: 118px auto 0;
  padding-left: 104px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #4c4c4a;
  font-size: 19px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 19px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: #4d4d4b;
}

h1 {
  margin: 0;
  max-width: 470px;
  font-family: var(--display-font);
  font-size: 200px;
  font-weight: 300;
  line-height: 0.86;
}

.subtitle,
.hero-copy {
  max-width: 480px;
  margin: 38px 0 0;
  color: #202020;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
}

.hero-copy {
  max-width: 500px;
  margin-top: 22px;
}

.scroll-note {
  position: absolute;
  left: calc(50% - 520px);
  bottom: 12px;
  z-index: 4;
  color: #343432;
  font-size: 18px;
  font-weight: 500;
}

.portrait {
  position: absolute;
  top: -48px;
  right: 18px;
  bottom: -2px;
  z-index: 2;
  width: 54vw;
  max-width: 710px;
  min-width: 560px;
  height: auto;
  margin: 0;
  overflow: hidden;
  background: var(--bg) url("assets/maxim-portrait-video-frame-first.jpg") 50% 25% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 13%);
  mask-image: linear-gradient(to right, transparent 0, #000 13%);
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to bottom, rgb(243 243 241 / 0.72) 0, rgb(243 243 241 / 0.26) 5%, rgb(243 243 241 / 0) 15%),
    linear-gradient(to left, rgb(243 243 241 / 0.64) 0, rgb(243 243 241 / 0.24) 5%, rgb(243 243 241 / 0) 14%),
    radial-gradient(ellipse at 0 100%, rgb(243 243 241 / 0.46) 0, rgb(243 243 241 / 0.23) 28%, rgb(243 243 241 / 0) 58%);
  pointer-events: none;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 17%;
  background: linear-gradient(to bottom, rgb(243 243 241 / 0), var(--bg));
  pointer-events: none;
}

.portrait-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  opacity: 1;
  transform: scale(1.02);
  transform-origin: 50% 50%;
  transition: opacity 120ms ease;
  pointer-events: none;
}

.portrait-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  filter: none;
  opacity: 1;
}

.portrait-video {
  z-index: 0;
  background: transparent;
  transform: scale(1.02);
  transform-origin: 50% 50%;
}

.portrait-video.is-ready {
  opacity: 1;
}

.portrait.is-ready .portrait-poster {
  opacity: 0;
}

.work-scope {
  padding: 108px 28px 116px;
  background: var(--bg);
}

.work-scope__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 104px;
}

.work-scope__header {
  display: grid;
  gap: 34px;
  max-width: 920px;
}

.work-scope h2 {
  margin: 0;
  max-width: 900px;
  color: #202020;
  font-family: var(--display-font);
  font-size: clamp(64px, 8vw, 128px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: 0;
}

.work-scope__lead {
  max-width: 500px;
  margin: 0;
  color: #202020;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
}

.work-scope__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 72px;
}

.work-card {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: 30px 0 0;
  border-top: 1px solid var(--line);
}

.work-card__number {
  display: block;
  margin-bottom: 34px;
  color: #2b2b2b;
  font-family: var(--display-font);
  font-size: 55px;
  font-weight: 300;
  line-height: 0.95;
  white-space: nowrap;
}

.work-card h3 {
  max-width: 430px;
  margin: 0;
  color: #202020;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.work-card p {
  max-width: 430px;
  margin: 20px 0 0;
  color: #61615f;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.42;
}

.work-card__label {
  color: #4c4c4a !important;
}

.work-card ul {
  display: grid;
  gap: 9px;
  max-width: 430px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.work-card li {
  position: relative;
  padding-left: 17px;
  color: #61615f;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.38;
}

.work-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 1px;
  background: #4d4d4b;
}

.work-card__result {
  max-width: 430px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.work-card__result span {
  display: block;
  color: #4c4c4a;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}

.work-card__result .delayed-underline {
  display: inline-block;
}

.work-card__result p {
  margin-top: 10px;
  color: #2b2b2b;
}

.about {
  padding: 108px 28px 122px;
  background: var(--bg);
}

.about__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: 76px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 104px;
}

.about__media {
  margin: 0;
}

.about__photo {
  display: block;
  width: 100%;
  min-height: 520px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  background: var(--bg);
}

.about__caption {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #4c4c4a;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
}

.about__caption strong {
  color: #202020;
  font: inherit;
}

.about__caption span {
  max-width: 320px;
}

.about__content {
  display: grid;
  align-content: start;
  position: relative;
  isolation: isolate;
}

.about__orb {
  position: absolute;
  top: 44px;
  left: -126px;
  width: 354px;
  height: 354px;
  opacity: 0.72;
  pointer-events: none;
  transform-origin: 50% 50%;
  z-index: 0;
  animation: about-orb-float 9600ms ease-in-out infinite;
}

.about__orb-path {
  fill: none;
  stroke: #FF9800;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 0.88 0.12;
  stroke-dashoffset: 0;
  animation: about-orb-line 12000ms linear infinite;
}

.about h2,
.about__copy,
.about__requisites {
  position: relative;
  z-index: 1;
}

@keyframes about-orb-float {
  0% {
    transform: translate3d(0, 0, 0) rotate(-2deg) scale(1);
  }

  25% {
    transform: translate3d(4px, -4px, 0) rotate(0deg) scale(1.012);
  }

  50% {
    transform: translate3d(7px, -6px, 0) rotate(2deg) scale(1.02);
  }

  75% {
    transform: translate3d(3px, 2px, 0) rotate(0deg) scale(1.008);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg) scale(1);
  }
}

@keyframes about-orb-line {
  0% {
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dashoffset: -0.5;
  }

  100% {
    stroke-dashoffset: -1;
  }
}

.about h2 {
  margin: 0;
  color: #202020;
  font-family: var(--display-font);
  font-size: clamp(72px, 8.8vw, 128px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0;
}

.about__copy {
  display: grid;
  gap: 22px;
  margin-top: 42px;
}

.about__copy p {
  max-width: 560px;
  margin: 0;
  color: #202020;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
}

.about__requisites {
  display: grid;
  gap: 8px;
  max-width: 420px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.about__requisites p {
  margin: 0;
  color: #61615f;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.cases-showcase {
  padding: 108px 28px 116px;
  background: var(--bg);
}

.cases-showcase__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 104px;
}

.cases-showcase__header {
  display: grid;
  gap: 34px;
  max-width: 900px;
}

.cases-showcase h2 {
  max-width: 820px;
  margin: 0;
  color: #202020;
  font-family: var(--display-font);
  font-size: clamp(64px, 8vw, 128px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0;
}

.cases-showcase__lead {
  max-width: 500px;
  margin: 0;
  color: #202020;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
}

.cases-showcase__lead-highlight {
  display: inline-block;
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 780px;
  margin-top: 48px;
}

.case-filter {
  appearance: none;
  min-height: 42px;
  padding: 10px 16px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #4c4c4a;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.case-filter:hover,
.case-filter.is-active {
  border-color: #202020;
  color: #202020;
  background: rgb(32 32 32 / 0.045);
}

.case-filter:active {
  transform: translateY(1px);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
  perspective: 1200px;
}

.case-card-reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(24px);
  height: 100%;
  perspective: 1200px;
  transition:
    opacity 720ms cubic-bezier(.2, .7, .2, 1),
    filter 720ms cubic-bezier(.2, .7, .2, 1),
    transform 720ms cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.case-card-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.case-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  height: 100%;
  padding: 24px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgb(243 243 241 / 0.68);
  color: #202020;
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
  will-change: transform;
}

.case-card-orange-border {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.case-card-orange-border-line {
  --case-line-shift-x: 0;
  --case-line-shift-y: 0;
  fill: none;
  stroke: #FF9800;
  stroke-width: 2;
  stroke-linecap: round;
  transform: translate3d(0, 0, 0);
  transform-box: fill-box;
  transform-origin: center;
}

.case-card-orange-border-line--top {
  --case-line-shift-x: clamp(-120px, -14vw, -62px);
  --case-line-shift-y: 0;
}

.case-card-orange-border-line--right {
  --case-line-shift-x: 0;
  --case-line-shift-y: clamp(62px, 14vw, 120px);
}

.case-card:hover {
  border-color: #b8b8b2;
  background: rgb(255 255 255 / 0.22);
}

.case-card:hover .case-card-orange-border,
.case-card:focus-visible .case-card-orange-border {
  opacity: 1;
}

.case-card:hover .case-card-orange-border-line,
.case-card:focus-visible .case-card-orange-border-line {
  animation: case-orange-line-sway 4000ms cubic-bezier(.45, 0, .2, 1) infinite;
}

@keyframes case-orange-line-sway {
  50% {
    transform: translate3d(var(--case-line-shift-x), var(--case-line-shift-y), 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

.case-card:focus-visible {
  outline: 1px solid #FF9800;
  outline-offset: 4px;
}

.case-card__category {
  color: #4c4c4a;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}

.case-card__title {
  max-width: 420px;
  margin: 28px 0 0;
  color: #202020;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.case-card__result {
  max-width: 470px;
  margin: 34px 0 0;
  color: #2b2b2b;
  font-family: var(--display-font);
  font-size: clamp(31px, 3.5vw, 55px);
  font-weight: 300;
  line-height: 0.98;
}

.case-card__channel {
  display: block;
  margin-top: auto;
  padding-top: 24px;
  color: #61615f;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.case-card__more {
  display: inline-block;
  width: fit-content;
  margin-top: 18px;
  color: #1c1c1c;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease;
}

.case-card__more::after {
  content: " →";
  display: inline-block;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(.2, .7, .2, 1);
}

.case-card:hover .case-card__more {
  border-color: #FF9800;
}

.case-card:hover .case-card__more::after,
.case-card:focus-visible .case-card__more::after {
  opacity: 1;
  transform: translateX(2px);
}

.cases-empty {
  max-width: 430px;
  margin: 34px 0 0;
  color: #61615f;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
}

.cases-load-more {
  appearance: none;
  margin-top: 34px;
  padding: 13px 18px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: #202020;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.cases-load-more:hover {
  border-color: #202020;
  background: rgb(32 32 32 / 0.045);
}

.cases-load-more:active {
  transform: translateY(1px);
}

.reviews-section {
  padding: 104px 28px 118px;
  background: var(--bg);
  color: var(--ink);
}

.reviews-section__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 104px;
}

.reviews-section__head {
  display: grid;
  gap: 34px;
  max-width: 760px;
}

.reviews-section__eyebrow {
  margin: 0;
  color: #4c4c4a;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
}

.reviews-section__eyebrow::before {
  content: "";
  display: inline-block;
  width: 19px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: #4d4d4b;
}

.reviews-section__title {
  max-width: 820px;
  margin: 0;
  color: #202020;
  font-family: var(--display-font);
  font-size: clamp(72px, 10vw, 150px);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: 0;
}

.reviews-section__text {
  max-width: 500px;
  margin: 0;
  color: #61615f;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
}

.reviews-section__text-highlight {
  display: inline-block;
}

.reviews-gallery {
  --review-radius: 8px;
  position: relative;
  min-height: 590px;
  margin-top: 58px;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  perspective: 1300px;
}

.reviews-gallery__stage {
  position: relative;
  min-height: 540px;
  transform-style: preserve-3d;
  touch-action: pan-y;
}

.reviews-gallery__item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72vw, 440px);
  transform-style: preserve-3d;
  z-index: 1;
}

.reviews-gallery__button {
  appearance: none;
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 520px;
  padding: 0;
  border: 0;
  border-radius: var(--review-radius);
  background: transparent;
  cursor: pointer;
  transform: var(--reviews-transform);
  transform-origin: center;
  transition:
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reviews-gallery__button.is-tilting {
  transform:
    var(--reviews-transform)
    rotateX(var(--tilt-rotate-x, 0deg))
    rotateY(var(--tilt-rotate-y, 0deg))
    translateZ(var(--tilt-lift, 0px));
  transition-duration: 80ms;
}

.reviews-gallery__button:hover {
  opacity: 0.96;
}

.reviews-gallery__button:active {
  filter: saturate(0.96);
}

.reviews-gallery__button:focus-visible {
  outline: 1px solid #FF9800;
  outline-offset: 4px;
}

.reviews-gallery__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  box-sizing: border-box;
  border: 1px solid rgb(217 217 212 / 0.9);
  border-radius: var(--review-radius);
  clip-path: inset(0 round var(--review-radius));
  object-fit: contain;
  background: rgb(255 255 255 / 0.36);
}

.reviews-gallery__button[aria-current="true"] .reviews-gallery__image {
  border-color: rgb(77 77 75 / 0.34);
}

.reviews-gallery__nav {
  appearance: none;
  position: absolute;
  top: 50%;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(243 243 241 / 0.82);
  color: #202020;
  font-family: var(--text-font);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.reviews-gallery__nav--prev {
  left: 0;
}

.reviews-gallery__nav--next {
  right: 0;
}

.reviews-gallery__nav:hover {
  border-color: #b8b8b2;
  background: var(--bg);
}

.reviews-gallery__nav:focus-visible {
  outline: 1px solid #FF9800;
  outline-offset: 4px;
}

.reviews-gallery__nav:active {
  transform: translateY(calc(-50% + 1px));
}

.reviews-gallery__progress {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 9px;
  transform: translateX(-50%);
}

.reviews-gallery__dot {
  appearance: none;
  width: 22px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c4c4bf;
  cursor: pointer;
  transition: width 220ms ease, background-color 220ms ease;
}

.reviews-gallery__dot.is-active {
  width: 38px;
  background: #FF9800;
}

.reviews-gallery__dot:focus-visible {
  outline: 1px solid #FF9800;
  outline-offset: 4px;
}

.reviews-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 100dvw;
  max-width: 100dvw;
  min-height: 100dvh;
  padding: 24px;
  overflow: hidden;
  background: rgb(18 18 18 / 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.reviews-lightbox[hidden] {
  display: none;
}

.reviews-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.reviews-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.reviews-lightbox__figure {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 12px;
  max-width: calc(100dvw - 48px);
  max-height: calc(100dvh - 48px);
  margin: 0;
}

.reviews-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1040px, 86dvw);
  max-height: 82dvh;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.reviews-lightbox__counter {
  justify-self: center;
  color: var(--bg);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}

.reviews-lightbox__nav,
.reviews-lightbox__close {
  appearance: none;
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: 999px;
  background: rgb(243 243 241 / 0.92);
  color: #202020;
  font-family: var(--text-font);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.reviews-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.reviews-lightbox__nav--prev {
  left: 24px;
}

.reviews-lightbox__nav--next {
  right: 24px;
}

.reviews-lightbox__close {
  top: 24px;
  right: 24px;
  font-size: 32px;
}

.reviews-lightbox__nav:hover,
.reviews-lightbox__close:hover {
  border-color: rgb(255 255 255 / 0.62);
  background: var(--bg);
}

.reviews-lightbox__nav:focus-visible,
.reviews-lightbox__close:focus-visible {
  outline: 1px solid #FF9800;
  outline-offset: 4px;
}

.reviews-lightbox__nav:active {
  transform: translateY(calc(-50% + 1px));
}

.reviews-lightbox__close:active {
  transform: translateY(1px);
}

.case-detail-page {
  background: var(--bg);
}

.case-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px 108px;
}

.case-back-link {
  display: inline-block;
  margin-left: 104px;
  color: #1c1c1c;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.case-back-link:hover {
  border-color: currentColor;
}

.case-detail {
  padding-left: 104px;
}

.case-loading {
  margin: 72px 0 0;
  color: #61615f;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
}

.case-hero {
  display: grid;
  gap: 34px;
  padding: 78px 0 82px;
}

.case-hero__meta {
  margin: 0;
  color: #4c4c4a;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
}

.case-hero__meta::before {
  content: "";
  display: inline-block;
  width: 19px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: #4d4d4b;
}

.case-hero h1 {
  max-width: 980px;
  margin: 0;
  color: #202020;
  font-family: var(--display-font);
  font-size: clamp(68px, 8vw, 128px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0;
}

.case-hero__lead,
.case-hero__result {
  max-width: 620px;
  margin: 0;
  color: #202020;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
}

.case-hero__result {
  max-width: 760px;
  color: #2b2b2b;
  font-family: var(--display-font);
  font-size: clamp(38px, 5.5vw, 76px);
  font-weight: 300;
  line-height: 0.96;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 28px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
}

.case-metric {
  display: grid;
  gap: 10px;
  align-content: start;
}

.case-metric strong {
  color: #2b2b2b;
  font-family: var(--display-font);
  font-size: 55px;
  font-weight: 300;
  line-height: 0.95;
}

.case-metric span {
  color: #61615f;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.case-facts {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 0 28px;
  margin: 0 0 34px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.case-facts dt,
.case-facts dd {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid rgb(217 217 212 / 0.62);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
}

.case-facts dt:nth-child(1),
.case-facts dd:nth-child(2) {
  border-top: 0;
}

.case-facts dt {
  color: #4c4c4a;
}

.case-facts dd {
  color: #202020;
}

.case-content-section,
.case-gallery-section,
.case-conclusion,
.related-cases {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.case-content-section h2,
.case-gallery-section h2,
.case-conclusion h2,
.related-cases h2 {
  margin: 0;
  color: #202020;
  font-family: var(--display-font);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: 0;
}

.case-content-section__copy {
  display: grid;
  gap: 22px;
  align-content: start;
}

.case-content-section p,
.case-conclusion p {
  max-width: 680px;
  margin: 0;
  color: #202020;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
}

.case-content-list {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.case-content-list li {
  position: relative;
  padding-left: 18px;
  color: #61615f;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.38;
}

.case-content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: #4d4d4b;
}

.case-project {
  padding: 0 0 34px;
  border-top: 1px solid var(--line);
}

.case-project__header {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 20px 28px;
  padding: 76px 0 44px;
}

.case-project__number {
  grid-row: span 2;
  margin: 0;
  color: #4c4c4a;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
}

.case-project__number::before {
  content: "";
  display: inline-block;
  width: 19px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: #4d4d4b;
}

.case-project__header h2 {
  margin: 0;
  color: #202020;
  font-family: var(--display-font);
  font-size: clamp(50px, 6vw, 86px);
  font-weight: 300;
  line-height: 0.92;
}

.case-project__intro {
  max-width: 680px;
  margin: 0;
  color: #202020;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
}

.case-project .case-metrics {
  padding-top: 28px;
}

.case-project .case-content-section,
.case-project .case-gallery-section {
  padding: 58px 0;
}

.case-project .case-content-section h3,
.case-project .case-gallery-section h3 {
  margin: 0;
  color: #202020;
  font-family: var(--display-font);
  font-size: clamp(38px, 4.6vw, 66px);
  font-weight: 300;
  line-height: 0.95;
}

.case-gallery {
  --screenshot-radius: 8px;
  position: relative;
  min-height: clamp(420px, 48vw, 560px);
  width: 100%;
  max-width: 100vw;
  overflow: visible;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}

.case-gallery__stage {
  position: relative;
  min-height: inherit;
  transform-style: preserve-3d;
  touch-action: pan-y;
  cursor: grab;
}

.case-gallery__item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72vw, 560px);
  margin: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.case-gallery__button {
  appearance: none;
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(320px, 40vw, 500px);
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: var(--screenshot-radius);
  background: transparent;
  cursor: zoom-in;
  opacity: 0;
  pointer-events: auto;
  transform: var(--coverflow-transform);
  transform-style: preserve-3d;
  transition:
    transform 640ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.case-gallery__button.is-tilting {
  transform:
    var(--coverflow-transform)
    rotateX(var(--tilt-rotate-x, 0deg))
    rotateY(var(--tilt-rotate-y, 0deg))
    translateZ(var(--tilt-lift, 0px));
  transition-duration: 80ms;
}

.case-gallery__button:hover {
  opacity: 0.96;
}

.case-gallery__button:focus-visible {
  outline: 1px solid #FF9800;
  outline-offset: 4px;
}

.case-gallery__button:active {
  filter: saturate(0.96);
}

.case-gallery img {
  box-sizing: border-box;
  display: block;
  width: auto;
  height: auto;
  max-width: min(78vw, 620px);
  max-height: clamp(320px, 40vw, 500px);
  object-fit: contain;
  border: 1px solid rgb(77 77 75 / 0.22);
  border-radius: var(--screenshot-radius);
  background: rgb(255 255 255 / 0.08);
  box-shadow: 0 12px 28px rgb(32 32 32 / 0.1);
  clip-path: inset(0 round var(--screenshot-radius));
  backface-visibility: hidden;
}

.case-gallery__button[aria-current="true"] img {
  border-color: rgb(77 77 75 / 0.34);
  box-shadow: 0 16px 36px rgb(32 32 32 / 0.14);
}

.case-gallery__nav {
  appearance: none;
  position: absolute;
  top: 50%;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgb(243 243 241 / 0.9);
  color: #202020;
  font: inherit;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.case-gallery__nav--prev {
  left: 0;
}

.case-gallery__nav--next {
  right: 0;
}

.case-gallery__nav:hover {
  border-color: #b8b8b2;
  background: var(--bg);
}

.case-gallery__nav:focus-visible {
  outline: 1px solid #FF9800;
  outline-offset: 4px;
}

.case-gallery__nav:active {
  transform: translateY(calc(-50% + 1px));
}

.case-gallery__progress {
  position: absolute;
  left: 50%;
  bottom: 4px;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 8px;
  transform: translateX(-50%);
}

.case-gallery__dot {
  appearance: none;
  width: 26px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c7c7c1;
  cursor: pointer;
  transition:
    width 180ms ease,
    background-color 180ms ease;
}

.case-gallery__dot.is-active {
  width: 42px;
  background: #FF9800;
}

.case-gallery__dot:focus-visible {
  outline: 1px solid #FF9800;
  outline-offset: 4px;
}

.case-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 100dvw;
  max-width: 100dvw;
  min-height: 100dvh;
  padding: 28px;
  overflow: hidden;
  background: rgb(32 32 32 / 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.case-lightbox[hidden] {
  display: none;
}

.case-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.case-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.case-lightbox__figure {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 12px;
  max-width: calc(100dvw - 56px);
  max-height: calc(100dvh - 56px);
  margin: 0;
}

.case-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1120px, 86dvw);
  max-height: 82dvh;
  object-fit: contain;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: 8px;
  background: var(--bg);
}

.case-lightbox__caption {
  justify-self: center;
  color: var(--bg);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}

.case-lightbox__button,
.case-lightbox__close {
  appearance: none;
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: 999px;
  background: rgb(243 243 241 / 0.92);
  color: #202020;
  font: inherit;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.case-lightbox__button {
  top: 50%;
  transform: translateY(-50%);
}

.case-lightbox__button--prev {
  left: 24px;
}

.case-lightbox__button--next {
  right: 24px;
}

.case-lightbox__close {
  top: 24px;
  right: 24px;
  font-size: 32px;
}

.case-lightbox__button:hover,
.case-lightbox__close:hover {
  border-color: rgb(255 255 255 / 0.62);
  background: var(--bg);
}

.case-lightbox__button:focus-visible,
.case-lightbox__close:focus-visible {
  outline: 1px solid #FF9800;
  outline-offset: 4px;
}

.case-lightbox__button:active {
  transform: translateY(calc(-50% + 1px));
}

.case-lightbox__close:active {
  transform: translateY(1px);
}

.related-list-wrap {
  position: relative;
  max-height: 430px;
  overflow: hidden;
}

.related-list-wrap::before,
.related-list-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 14px;
  z-index: 1;
  height: 34px;
  pointer-events: none;
}

.related-list-wrap::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg), rgb(243 243 241 / 0));
}

.related-list-wrap::after {
  bottom: 0;
  background: linear-gradient(to bottom, rgb(243 243 241 / 0), var(--bg));
}

.related-list {
  display: grid;
  gap: 12px;
  max-height: 430px;
  overflow-y: auto;
  padding: 4px 12px 4px 4px;
  scrollbar-width: thin;
  scrollbar-color: #b8b8b2 transparent;
  scroll-behavior: smooth;
}

.related-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.related-list::-webkit-scrollbar-track {
  background: transparent;
}

.related-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b8b8b2;
}

.related-card {
  --related-hover-x: 0px;
  --related-hover-y: 0px;
  --related-hover-rotate-x: 0deg;
  --related-hover-rotate-y: 0deg;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #202020;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 420ms ease,
    transform 180ms cubic-bezier(.2, .7, .2, 1),
    border-color 180ms ease,
    background-color 180ms ease;
}

.related-card:hover {
  border-color: #b8b8b2;
  background: rgb(255 255 255 / 0.2);
}

.related-card.is-visible {
  opacity: 1;
  transform-origin: left center;
  transform:
    translate3d(var(--related-hover-x), var(--related-hover-y), 0)
    rotateX(var(--related-hover-rotate-x))
    rotateY(var(--related-hover-rotate-y))
    scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .page-menu__link:hover {
    transform: translateX(3px);
  }

  .page-menu__link:hover::before {
    opacity: 0.6;
    transform: translateY(-50%) scale(0.9);
  }

  .page-menu__link.is-active:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }

  .related-card.is-visible {
    transform-style: preserve-3d;
    will-change: transform;
  }

  .related-card.is-visible:hover {
    border-color: #b8b8b2;
    background: rgb(255 255 255 / 0.24);
    transform:
      translate3d(var(--related-hover-x), calc(var(--related-hover-y) - 2px), 0)
      rotateX(var(--related-hover-rotate-x))
      rotateY(var(--related-hover-rotate-y))
      scale(1.01);
  }
}

.related-card__title {
  color: #202020;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.12;
}

.related-card__result {
  color: #2b2b2b;
  font-family: var(--display-font);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  line-height: 0.98;
}

.related-card__channel {
  color: #61615f;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .page-menu__link,
  .page-menu__link::before,
  .mobile-menu-toggle span {
    transition: none !important;
  }

  .case-card-reveal,
  .case-card,
  .case-filter,
  .cases-load-more,
  .related-card {
    transition: none !important;
    transform: none !important;
  }

  .case-card-reveal {
    opacity: 1;
    filter: none;
  }

  .case-gallery__button,
  .case-gallery__nav,
  .case-lightbox,
  .case-lightbox__button,
  .case-lightbox__close,
  .reviews-gallery__button,
  .reviews-gallery__nav,
  .reviews-gallery__dot,
  .reviews-lightbox,
  .reviews-lightbox__nav,
  .reviews-lightbox__close {
    transition: none !important;
  }

  .case-gallery__button {
    transform: translate(-50%, -50%) translateX(var(--coverflow-x, 0px)) !important;
  }

  .case-gallery__button.is-tilting,
  .case-gallery__button:hover {
    transform: translate(-50%, -50%) translateX(var(--coverflow-x, 0px)) !important;
  }

  .reviews-gallery__button {
    transform: translate(-50%, -50%) translateX(var(--reviews-x, 0px)) scale(var(--reviews-scale, 1)) !important;
  }

  .reviews-gallery__button.is-tilting,
  .reviews-gallery__button:hover {
    transform: translate(-50%, -50%) translateX(var(--reviews-x, 0px)) scale(var(--reviews-scale, 1)) !important;
  }

  .case-card-orange-border-line,
  .case-card__more::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 920px) {
  .page-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    right: auto;
    left: 16px;
  }

  .mobile-page-menu {
    right: auto;
    left: 16px;
  }

  .portrait {
    background: var(--bg);
  }

  .portrait-poster {
    transform: none;
  }

  .portrait-video {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero {
    padding: 18px 18px 28px;
  }

  .topbar {
    justify-content: flex-end;
    padding-left: 0;
  }

  .messenger-links {
    gap: 14px;
  }

  .stats {
    gap: 44px;
    margin-top: 58px;
    padding-left: 0;
  }

  .stats div {
    width: 106px;
  }

  .intro {
    margin-top: 56px;
    padding-left: 0;
  }

  h1 {
    font-size: 121px;
  }

  .subtitle,
  .hero-copy {
    max-width: 320px;
    font-size: 19px;
  }

  .hero-copy {
    margin-top: 19px;
  }

  .portrait {
    top: auto;
    right: -120px;
    width: min(112vw, 430px);
    min-width: 0;
    height: 62dvh;
    opacity: 1;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 18%);
    mask-image: linear-gradient(to right, transparent 0, #000 18%);
  }

  .scroll-note {
    left: 18px;
  }

  .work-scope {
    padding: 82px 18px 88px;
  }

  .work-scope__inner {
    padding-left: 0;
  }

  .work-scope h2 {
    max-width: 650px;
    font-size: clamp(56px, 12vw, 92px);
  }

  .work-scope__lead {
    max-width: 420px;
    font-size: 19px;
  }

  .work-scope__grid {
    gap: 38px;
    margin-top: 58px;
  }

  .work-card h3,
  .work-card p,
  .work-card ul,
  .work-card__result {
    max-width: none;
  }

  .about {
    padding: 82px 18px 90px;
  }

  .about__inner {
    position: relative;
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0;
  }

  .about__content {
    display: contents;
  }

  .about__orb {
    display: block;
    top: -12px;
    left: 152px;
    width: 240px;
    height: 240px;
    opacity: 0.4;
  }

  .about h2 {
    order: 1;
    max-width: 520px;
    font-size: clamp(64px, 12vw, 92px);
  }

  .about__media {
    order: 2;
    max-width: 430px;
    margin-top: 34px;
  }

  .about__copy {
    order: 3;
    margin-top: 38px;
  }

  .about__copy p {
    max-width: 620px;
    font-size: 19px;
  }

  .about__requisites {
    order: 4;
    margin-top: 36px;
  }

  .about h2,
  .about__copy,
  .about__requisites {
    position: relative;
    z-index: 1;
  }

  .cases-showcase {
    padding: 82px 18px 90px;
  }

  .cases-showcase__inner {
    padding-left: 0;
  }

  .cases-showcase h2 {
    max-width: 650px;
    font-size: clamp(56px, 12vw, 92px);
  }

  .cases-showcase__lead {
    max-width: 420px;
    font-size: 19px;
  }

  .cases-grid {
    gap: 16px;
  }

  .reviews-section {
    padding: 82px 18px 94px;
  }

  .reviews-section__inner {
    padding-left: 0;
  }

  .reviews-section__title {
    max-width: 650px;
    font-size: clamp(56px, 12vw, 92px);
  }

  .reviews-section__text {
    max-width: 420px;
    font-size: 19px;
  }

  .reviews-gallery {
    min-height: 500px;
    margin-top: 48px;
  }

  .reviews-gallery__stage {
    min-height: 452px;
  }

  .reviews-gallery__item {
    width: min(78vw, 380px);
  }

  .reviews-gallery__button {
    height: 430px;
  }

  .reviews-gallery__image {
    max-height: 430px;
  }

  .case-shell {
    padding: 22px 18px 90px;
  }

  .case-back-link,
  .case-detail {
    margin-left: 0;
    padding-left: 0;
  }

  .case-hero {
    padding: 62px 0 70px;
  }

  .case-hero h1 {
    max-width: 760px;
    font-size: clamp(58px, 11vw, 92px);
  }

  .case-hero__lead,
  .case-content-section p,
  .case-conclusion p {
    max-width: 620px;
    font-size: 19px;
  }

  .case-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-content-section,
  .case-gallery-section,
  .case-conclusion,
  .related-cases {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 62px 0;
  }

  .case-project__header {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 62px 0 38px;
  }

  .case-project__number {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 100dvh;
  }

  .topbar {
    height: 32px;
    font-size: 14px;
  }

  .stats {
    margin-top: 44px;
    gap: 22px;
  }

  .stats div {
    width: 90px;
  }

  .stats strong,
  .stat-number {
    font-size: 36px !important;
  }

  .stats span,
  .stat-label {
    font-size: 17px !important;
  }

  .stat-number .text-roll,
  .stat-number .text-roll-letter,
  .stat-number .text-roll-letter > span {
    font-size: 36px !important;
  }

  .stat-label .text-roll,
  .stat-label .text-roll-letter,
  .stat-label .text-roll-letter > span {
    font-size: 17px !important;
  }

  .intro {
    margin-top: 44px;
  }

  h1 {
    font-size: 87px;
  }

  .subtitle,
  .hero-copy {
    max-width: 270px;
    font-size: 18px;
  }

  .hero-copy {
    margin-top: 18px;
  }

  .portrait {
    top: auto;
    right: -170px;
    bottom: 0;
    width: min(104vw, 390px);
    min-width: 0;
    height: 58dvh;
    -webkit-mask-image: linear-gradient(to right, transparent 0, rgb(0 0 0 / 0.28) 24%, #000 42%);
    mask-image: linear-gradient(to right, transparent 0, rgb(0 0 0 / 0.28) 24%, #000 42%);
  }

  .portrait::before {
    background:
      linear-gradient(to right, var(--bg) 0, rgb(243 243 241 / 0.86) 24%, rgb(243 243 241 / 0) 48%),
      linear-gradient(to bottom, rgb(243 243 241 / 0.7) 0, rgb(243 243 241 / 0.2) 8%, rgb(243 243 241 / 0) 22%),
      radial-gradient(ellipse at 0 45%, rgb(243 243 241 / 0.62) 0, rgb(243 243 241 / 0.26) 34%, rgb(243 243 241 / 0) 64%);
  }

  .scroll-note {
    bottom: 24px;
    font-size: 14px;
  }

  .work-scope {
    padding: 64px 18px 76px;
  }

  .work-scope__header {
    gap: 28px;
  }

  .work-scope h2 {
    max-width: 320px;
    font-size: 64px;
    line-height: 0.9;
  }

  .work-scope__lead {
    max-width: 310px;
    font-size: 18px;
  }

  .work-scope__grid {
    grid-template-columns: 1fr;
    gap: 44px;
    margin-top: 50px;
  }

  .work-card {
    padding-top: 24px;
  }

  .work-card__number {
    margin-bottom: 28px;
    font-size: 36px;
  }

  .work-card h3 {
    font-size: 25px;
  }

  .work-card p {
    font-size: 17px;
  }

  .work-card li {
    font-size: 16px;
  }

  .about {
    padding: 64px 18px 78px;
  }

  .about h2 {
    max-width: 320px;
    font-size: 87px;
    line-height: 0.86;
  }

  .about__orb {
    top: 6px;
    left: 162px;
    width: 178px;
    height: 178px;
    opacity: 0.34;
  }

  .about__media {
    max-width: 320px;
    margin-top: 30px;
  }

  .about__photo {
    min-height: 410px;
  }

  .about__caption {
    font-size: 17px;
  }

  .about__caption span {
    max-width: 270px;
  }

  .about__copy {
    gap: 20px;
    margin-top: 34px;
  }

  .about__copy p {
    max-width: 320px;
    font-size: 18px;
  }

  .about__requisites {
    max-width: 320px;
  }

  .about__requisites p {
    font-size: 16px;
  }

  .cases-showcase {
    padding: 64px 18px 78px;
  }

  .cases-showcase__header {
    gap: 28px;
  }

  .cases-showcase h2 {
    max-width: 320px;
    font-size: 64px;
    line-height: 0.9;
  }

  .cases-showcase__lead {
    max-width: 310px;
    font-size: 18px;
  }

  .case-filters {
    flex-wrap: wrap;
    gap: 8px;
    margin: 36px 0 0;
    padding: 0;
    overflow-x: visible;
  }

  .case-filter {
    min-height: 40px;
    padding: 10px 14px;
    font-size: 16px;
  }

  .cases-grid {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .case-card {
    min-height: 260px;
    height: auto;
    padding: 20px;
    transform: none !important;
  }

  .case-card-reveal {
    filter: blur(6px);
    transform: translateY(18px);
  }

  .case-card__title {
    margin-top: 24px;
    font-size: 25px;
  }

  .case-card__result {
    margin-top: 28px;
    font-size: 36px;
  }

  .case-card__channel,
  .case-card__more,
  .cases-load-more {
    font-size: 17px;
  }

  .reviews-section {
    padding: 64px 18px 78px;
  }

  .reviews-section__head {
    gap: 28px;
  }

  .reviews-section__title {
    max-width: 320px;
    font-size: 64px;
    line-height: 0.9;
  }

  .reviews-section__text {
    max-width: 320px;
    font-size: 18px;
  }

  .reviews-gallery {
    min-height: 430px;
    margin-top: 42px;
  }

  .reviews-gallery__stage {
    min-height: 382px;
  }

  .reviews-gallery__item {
    width: min(82vw, 320px);
  }

  .reviews-gallery__button {
    height: 360px;
  }

  .reviews-gallery__image {
    max-height: 360px;
  }

  .reviews-gallery__nav {
    top: auto;
    bottom: 0;
    width: 42px;
    height: 42px;
    transform: none;
  }

  .reviews-gallery__nav--prev {
    left: 0;
  }

  .reviews-gallery__nav--next {
    right: 0;
  }

  .reviews-gallery__nav:active {
    transform: translateY(1px);
  }

  .reviews-gallery__progress {
    bottom: 13px;
  }

  .reviews-gallery__dot {
    width: 18px;
  }

  .reviews-gallery__dot.is-active {
    width: 30px;
  }

  .reviews-lightbox {
    padding: 18px;
  }

  .reviews-lightbox__figure {
    max-width: calc(100dvw - 36px);
    max-height: calc(100dvh - 124px);
  }

  .reviews-lightbox__image {
    max-width: 100%;
    max-height: calc(100dvh - 150px);
  }

  .reviews-lightbox__nav,
  .reviews-lightbox__close {
    width: 44px;
    height: 44px;
  }

  .reviews-lightbox__nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .reviews-lightbox__nav--prev {
    left: calc(50% - 58px);
  }

  .reviews-lightbox__nav--next {
    right: calc(50% - 58px);
  }

  .reviews-lightbox__nav:active {
    transform: translateY(1px);
  }

  .reviews-lightbox__close {
    top: 18px;
    right: 18px;
  }

  .case-shell {
    padding: 20px 18px 78px;
  }

  .case-back-link {
    font-size: 16px;
  }

  .case-hero {
    gap: 28px;
    padding: 52px 0 58px;
  }

  .case-hero h1 {
    max-width: 320px;
    font-size: 64px;
    line-height: 0.9;
  }

  .case-hero__lead {
    max-width: 320px;
    font-size: 18px;
  }

  .case-hero__result {
    max-width: 320px;
    font-size: 43px;
  }

  .case-metrics {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 34px;
  }

  .case-metric strong {
    font-size: 36px;
  }

  .case-metric span {
    font-size: 17px;
  }

  .case-facts {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .case-facts dt {
    padding-bottom: 4px;
  }

  .case-facts dd {
    padding-top: 0;
    border-top: 0;
  }

  .case-content-section,
  .case-gallery-section,
  .case-conclusion,
  .related-cases {
    gap: 24px;
    padding: 52px 0;
  }

  .case-content-section h2,
  .case-gallery-section h2,
  .case-conclusion h2,
  .related-cases h2 {
    max-width: 320px;
    font-size: 44px;
  }

  .case-project__header h2 {
    max-width: 320px;
    font-size: 52px;
  }

  .case-project__intro {
    max-width: 320px;
    font-size: 18px;
  }

  .case-project .case-content-section,
  .case-project .case-gallery-section {
    padding: 52px 0;
  }

  .case-project .case-content-section h3,
  .case-project .case-gallery-section h3 {
    max-width: 320px;
    font-size: 44px;
  }

  .case-content-section p,
  .case-conclusion p,
  .case-content-list li {
    max-width: 320px;
    font-size: 18px;
  }

  .case-gallery {
    min-height: 340px;
  }

  .case-gallery__stage {
    min-height: inherit;
  }

  .case-gallery__item {
    width: min(82vw, 340px);
  }

  .case-gallery__button {
    height: 300px;
  }

  .case-gallery img {
    width: auto;
    height: auto;
    max-width: min(82vw, 340px);
    max-height: 300px;
  }

  .case-gallery__nav {
    top: auto;
    bottom: 0;
    width: 42px;
    height: 42px;
    transform: none;
  }

  .case-gallery__nav--prev {
    left: 0;
  }

  .case-gallery__nav--next {
    right: 0;
  }

  .case-gallery__nav:active {
    transform: translateY(1px);
  }

  .case-gallery__progress {
    bottom: 12px;
  }

  .case-gallery__dot {
    width: 20px;
  }

  .case-gallery__dot.is-active {
    width: 34px;
  }

  .case-lightbox {
    padding: 18px;
  }

  .case-lightbox__figure {
    max-width: calc(100dvw - 36px);
    max-height: calc(100dvh - 124px);
  }

  .case-lightbox__image {
    max-width: 100%;
    max-height: calc(100dvh - 150px);
  }

  .case-lightbox__button,
  .case-lightbox__close {
    width: 44px;
    height: 44px;
  }

  .case-lightbox__button {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .case-lightbox__button--prev {
    left: calc(50% - 58px);
  }

  .case-lightbox__button--next {
    right: calc(50% - 58px);
  }

  .case-lightbox__button:active {
    transform: translateY(1px);
  }

  .case-lightbox__close {
    top: 18px;
    right: 18px;
  }

  .related-list-wrap {
    max-height: none;
    overflow: visible;
  }

  .related-list-wrap::before,
  .related-list-wrap::after {
    display: none;
  }

  .related-list {
    max-height: none;
    padding: 0;
    scrollbar-width: none;
  }

  .related-list::-webkit-scrollbar {
    display: none;
  }

  .related-card {
    opacity: 1;
    transform: none;
  }
}

.site-footer {
  padding: 34px 28px 42px;
  background: #e9e9e4;
  color: #343431;
  border-top: 1px solid rgb(43 43 43 / 0.1);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.35;
}

.site-footer a,
.site-footer button {
  color: inherit;
  font: inherit;
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid rgb(43 43 43 / 0.28);
  background: transparent;
  cursor: pointer;
  padding: 0 0 2px;
  transition: border-color 180ms ease, color 180ms ease;
}

.site-footer a:hover,
.site-footer button:hover,
.site-footer a:focus-visible,
.site-footer button:focus-visible {
  color: #111;
  border-color: #FF9800;
  outline: 0;
}

.legal-page {
  min-height: 100vh;
}

.legal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px;
  font-size: 18px;
  line-height: 1;
}

.legal-home-link {
  font-weight: 600;
}

.legal-shell {
  padding: 72px 28px 96px;
}

.legal-document {
  max-width: 920px;
  margin: 0 auto;
}

.legal-kicker,
.legal-date {
  margin: 0;
  color: #676762;
  font-size: 17px;
  line-height: 1.45;
}

.legal-document h1 {
  max-width: 840px;
  margin: 18px 0 18px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: 0;
}

.legal-document section {
  margin-top: 52px;
}

.legal-document h2 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}

.legal-document h3 {
  margin: 30px 0 12px;
  max-width: 720px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 500;
}

.legal-document p,
.legal-document li,
.legal-requisites dd,
.legal-requisites dt {
  font-size: 20px;
  line-height: 1.5;
}

.legal-document p {
  max-width: 780px;
  margin: 0 0 16px;
}

.legal-document a {
  border-bottom: 1px solid rgb(43 43 43 / 0.38);
}

.legal-document a:hover,
.legal-document a:focus-visible {
  border-color: #FF9800;
  outline: 0;
}

.legal-document ul {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0;
  padding-left: 24px;
}

.legal-requisites {
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0;
}

.legal-requisites div {
  display: grid;
  grid-template-columns: minmax(160px, 230px) 1fr;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgb(43 43 43 / 0.12);
}

.legal-requisites dt {
  color: #696965;
}

.legal-requisites dd {
  margin: 0;
}

.cookie-consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1000;
  box-sizing: border-box;
  width: 328px;
  max-width: calc(100vw - 48px);
  padding: 30px 22px 22px;
  color: #26231f;
  background: #fff;
  border: 1px solid rgb(43 43 43 / 0.08);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgb(29 27 24 / 0.18);
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.96);
  transform-origin: 50% 100%;
  pointer-events: none;
  transition:
    opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}

.cookie-consent__icon {
  width: 76px;
  height: 76px;
  margin: -62px auto 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 26px 24px, #7b4b25 0 4px, transparent 5px),
    radial-gradient(circle at 49px 36px, #7b4b25 0 5px, transparent 6px),
    radial-gradient(circle at 33px 52px, #7b4b25 0 4px, transparent 5px),
    radial-gradient(circle at 58px 56px, #7b4b25 0 3px, transparent 4px),
    #f2b35d;
  border: 5px solid #fff;
  box-shadow: 0 12px 24px rgb(79 55 30 / 0.2);
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.9);
  transition:
    opacity 300ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.18, 1.45, 0.36, 1);
  transition-delay: 120ms;
}

.cookie-consent.is-visible .cookie-consent__icon {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.cookie-consent__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.42;
  text-align: center;
  overflow-wrap: anywhere;
}

.cookie-consent__text a {
  color: #1f1f1d;
  border-bottom: 1px solid #FF9800;
  overflow-wrap: anywhere;
}

.cookie-consent__button {
  display: block;
  min-width: 138px;
  margin: 18px auto 0;
  padding: 12px 22px;
  color: #17130f;
  background: #FF9800;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  background: #ee8d00;
  outline: 0;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .site-footer {
    padding: 28px 18px 34px;
  }

  .site-footer__inner {
    display: grid;
    gap: 12px;
    font-size: 14px;
  }

  .legal-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 18px;
    font-size: 16px;
  }

  .legal-shell {
    padding: 48px 18px 72px;
  }

  .legal-document h1 {
    font-size: clamp(44px, 16vw, 72px);
  }

  .legal-document p,
  .legal-document li,
  .legal-requisites dd,
  .legal-requisites dt {
    font-size: 18px;
  }

  .legal-requisites div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .cookie-consent {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding: 28px 18px 18px;
    border-radius: 22px;
  }

  .cookie-consent__icon {
    width: 64px;
    height: 64px;
    margin: -56px auto 12px;
  }

  .cookie-consent__button {
    max-width: 100%;
    white-space: normal;
  }
}

.site-footer--contacts {
  min-height: 72dvh;
  padding: 96px 28px 28px;
  background: var(--bg, #f3f3f1);
  color: var(--ink, #2b2b2b);
  border-top: 0;
}

.site-footer--contacts .site-footer__inner {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 72px;
  max-width: 1180px;
  min-height: calc(72dvh - 124px);
  margin: 0 auto;
  padding-left: 104px;
  font-size: inherit;
  line-height: inherit;
}

.site-footer__main {
  display: block;
}

.site-footer__content {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(440px, 1fr);
  column-gap: clamp(36px, 5vw, 88px);
  align-items: start;
  min-width: 0;
}

.site-footer__title {
  margin: 0;
  color: #202020;
  font-family: var(--display-font);
  font-size: clamp(72px, 9vw, 138px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0;
}

.site-footer__lead {
  max-width: 480px;
  margin: 30px 0 0;
  color: #61615f;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.45;
}

.site-footer__lead-highlight {
  display: inline-block;
}

.site-footer__location {
  width: fit-content;
  margin: 34px 0 0;
  color: #1c1c1c;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1.18;
}

.site-footer__contact-list {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin: 10px 0 0;
  font-style: normal;
}

.site-footer--contacts .site-footer__contact-list a {
  width: fit-content;
  color: #1c1c1c;
  border-bottom: 1px solid transparent;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1.18;
  padding: 0 0 2px;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.site-footer--contacts .site-footer__contact-list a:hover,
.site-footer--contacts .site-footer__contact-list a:focus-visible {
  color: #1c1c1c;
  border-color: currentColor;
  outline: 0;
}

.site-footer__channels {
  max-width: 520px;
  margin-top: 36px;
}

.site-footer__channels-title {
  margin: 0 0 14px;
  color: var(--muted, #7d7d7a);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.site-footer__channels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.site-footer--contacts .site-footer__channel-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 48px;
  padding: 6px 0;
  color: #1c1c1c;
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer__channel-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}

.site-footer--contacts .site-footer__channel-link:hover,
.site-footer--contacts .site-footer__channel-link:focus-visible {
  color: #ee8d00;
  outline: 0;
  transform: translateX(2px);
}

.site-footer--contacts .site-footer__channel-link:focus-visible {
  box-shadow: 0 0 0 2px rgb(238 141 0 / 0.45);
  border-radius: 4px;
}

.site-footer__details {
  display: grid;
  gap: 4px;
  margin-top: 34px;
  color: var(--muted, #7d7d7a);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.site-footer__details p {
  margin: 0;
}

.site-footer__signature {
  --footer-signature-x: 0px;
  --footer-signature-y: 0px;
  --footer-signature-rotate: 0deg;
  --footer-signature-scale: 1;
  max-width: min(46vw, 560px);
  margin-top: 190px;
  justify-self: end;
}

.site-footer__signature-image {
  display: block;
  width: 100%;
  height: auto;
  transform:
    translate3d(var(--footer-signature-x), var(--footer-signature-y), 0)
    rotate(var(--footer-signature-rotate))
    scale(var(--footer-signature-scale));
  transform-origin: 50% 50%;
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
  will-change: transform;
}

.site-footer__signature-caption {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted, #7d7d7a);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
}

.site-footer--contacts .site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  color: var(--muted, #7d7d7a);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.site-footer--contacts .site-footer__legal a,
.site-footer--contacts .site-footer__legal button {
  width: fit-content;
  color: inherit;
  border: 0;
  border-bottom: 1px solid rgb(125 125 122 / 0.35);
  background: transparent;
  font: inherit;
  padding: 0 0 2px;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease;
}

.site-footer--contacts .site-footer__legal a:hover,
.site-footer--contacts .site-footer__legal button:hover,
.site-footer--contacts .site-footer__legal a:focus-visible,
.site-footer--contacts .site-footer__legal button:focus-visible {
  color: #1c1c1c;
  border-color: currentColor;
  outline: 0;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__signature {
    cursor: default;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__signature-image {
    transition: none;
    transform: none !important;
  }
}

@media (max-width: 920px) {
  .site-footer--contacts {
    min-height: auto;
    padding: 72px 18px 24px;
  }

  .site-footer--contacts .site-footer__inner {
    gap: 56px;
    min-height: 0;
    padding-left: 0;
  }

  .site-footer__content {
    display: block;
  }

  .site-footer__signature {
    max-width: min(82vw, 420px);
    margin-top: 56px;
    justify-self: auto;
  }
}

@media (max-width: 560px) {
  .site-footer--contacts {
    padding: 64px 18px 22px;
  }

  .site-footer__title {
    font-size: 87px;
  }

  .site-footer__lead {
    max-width: 320px;
    margin-top: 26px;
    font-size: 18px;
  }

  .site-footer--contacts .site-footer__contact-list a {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 22px;
  }

  .site-footer__channels {
    margin-top: 32px;
  }

  .site-footer__channels-title {
    font-size: 18px;
  }

  .site-footer__channels-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer--contacts .site-footer__channel-link {
    font-size: 18px;
  }

  .site-footer__signature {
    max-width: min(100%, 360px);
    margin-top: 46px;
  }

  .site-footer--contacts .site-footer__legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    font-size: 14px;
  }
}
